Files

14 lines
325 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{C as e,S as t,a as n,b as r,d as i,h as a,i as o,m as s,n as c,o as l,r as u,s as d,t as f,u as p,x as m,y as h}from"./x-CKbD_O50.js";var g=s(),_=e(h(),1),v=(0,_.createContext)({});function y(e){let t=(0,_.useRef)(null);return t.current===null&&(t.current=e()),t.current}var b=typeof window<`u`?_.useLayoutEffect:_.useEffect,x=(0,_.createContext)(null);function S(e,t){e.indexOf(t)===-1&&e.push(t)}function C(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var w=(e,t,n)=>n>t?t:n<e?e:n,T={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),te=e=>typeof e==`object`&&!!e,ne=e=>/^0[^.\s]+$/u.test(e);function E(e){let t;return()=>(t===void 0&&(t=e()),t)}var D=e=>e,O=(...e)=>e.reduce((e,t)=>n=>t(e(n))),re=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ie=class{constructor(){this.subscriptions=[]}add(e){return S(this.subscriptions,e),()=>C(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},k=e=>e*1e3,A=e=>e/1e3,j=(e,t)=>t?1e3/t*e:0,ae=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oe=1e-7,se=12;function ce(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ae(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>oe&&++s<se);return o}function le(e,t,n,r){if(e===t&&n===r)return D;let i=t=>ce(t,0,1,e,n);return e=>e===0||e===1?e:ae(i(e),t,r)}var ue=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,de=e=>t=>1-e(1-t),fe=le(.33,1.53,.69,.99),pe=de(fe),me=ue(pe),he=e=>e>=1?1:(e*=2)<1?.5*pe(e):.5*(2-2**(-10*(e-1))),ge=e=>1-Math.sin(Math.acos(e)),_e=de(ge),ve=ue(ge),ye=le(.42,0,1,1),be=le(0,0,.58,1),xe=le(.42,0,.58,1),Se=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ce=e=>Array.isArray(e)&&typeof e[0]==`number`,we={linear:D,easeIn:ye,easeInOut:xe,easeOut:be,circIn:ge,circInOut:ve,circOut:_e,backIn:pe,backInOut:me,backOut:fe,anticipate:he},Te=e=>typeof e==`string`,Ee=e=>{if(Ce(e)){e.length;let[t,n,r,i]=e;return le(t,n,r,i)}else if(Te(e))return we[e],`${e}`,we[e];return e},M=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],N={value:null,addProjectionMetrics:null};function De(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&N.value&&N.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Oe=40;function ke(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=M.reduce((e,n)=>(e[n]=De(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=T.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Oe),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:M.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<M.length;t++)o[M[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:Ae,state:F,steps:je}=ke(typeof requestAnimationFrame<`u`?requestAnimationFrame:D,!0),Me;function Ne(){Me=void 0}var I={now:()=>(Me===void 0&&I.set(F.isProcessing||T.useManualTiming?F.timestamp:performance.now()),Me),set:e=>{Me=e,queueMicrotask(Ne)}},Pe={layout:0,mainThread:0,waapi:0},Fe=e=>t=>typeof t==`string`&&t.startsWith(e),Ie=Fe(`--`),Le=Fe(`var(--`),Re=e=>Le(e)?ze.test(e.split(`/*`)[0].trim()):!1,ze=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Be(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var L={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},R={...L,transform:e=>w(0,1,e)},Ve={...L,default:1},He=e=>Math.round(e*1e5)/1e5,Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function We(e){return e==null}var Ge=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ke=(e,t)=>n=>!!(typeof n==`string`&&Ge.test(n)&&n.startsWith(e)||t&&!We(n)&&Object.prototype.hasOwnProperty.call(n,t)),qe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ue);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Je=e=>w(0,255,e),Ye={...L,transform:e=>Math.round(Je(e))},Xe={test:Ke(`rgb`,`red`),parse:qe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ye.transform(e)+`, `+Ye.transform(t)+`, `+Ye.transform(n)+`, `+He(R.transform(r))+`)`};function Ze(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Qe={test:Ke(`#`),parse:Ze,transform:Xe.transform},$e=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),z=$e(`deg`),B=$e(`%`),V=$e(`px`),et=$e(`vh`),tt=$e(`vw`),nt={...B,parse:e=>B.parse(e)/100,transform:e=>B.transform(e*100)},rt={test:Ke(`hsl`,`hue`),parse:qe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+B.transform(He(t))+`, `+B.transform(He(n))+`, `+He(R.transform(r))+`)`},H={test:e=>Xe.test(e)||Qe.test(e)||rt.test(e),parse:e=>Xe.test(e)?Xe.parse(e):rt.test(e)?rt.parse(e):Qe.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Xe.transform(e):rt.transform(e),getAnimatableNone:e=>{let t=H.parse(e);return t.alpha=0,H.transform(t)}},it=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function at(e){return isNaN(e)&&typeof e==`string`&&(e.match(Ue)?.length||0)+(e.match(it)?.length||0)>0}var ot=`number`,st=`color`,ct=`var`,lt=`var(`,ut="${}",dt=/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 ft(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(dt,e=>(H.test(e)?(r.color.push(a),i.push(st),n.push(H.parse(e))):e.startsWith(lt)?(r.var.push(a),i.push(ct),n.push(e)):(r.number.push(a),i.push(ot),n.push(parseFloat(e))),++a,ut)).split(ut),indexes:r,types:i}}function pt(e){return ft(e).values}function mt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===ot?i+=He(r[a]):e===st?i+=H.transform(r[a]):i+=r[a]}return i}}function ht(e){return mt(ft(e))}var gt=e=>typeof e==`number`?0:H.test(e)?H.getAnimatableNone(e):e,_t=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:gt(e);function vt(e){let t=ft(e);return mt(t)(t.values.map((e,n)=>_t(e,t.split[n])))}var U={test:at,parse:pt,createTransformer:ht,getAnimatableNone:vt};function yt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=yt(s,r,e+1/3),a=yt(s,r,e),o=yt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function xt(e,t){return n=>n>0?t:e}var W=(e,t,n)=>e+(t-e)*n,St=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ct=[Qe,Xe,rt],wt=e=>Ct.find(t=>t.test(e));function Tt(e){let t=wt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===rt&&(n=bt(n)),n}var Et=(e,t)=>{let n=Tt(e),r=Tt(t);if(!n||!r)return xt(e,t);let i={...n};return e=>(i.red=St(n.red,r.red,e),i.green=St(n.green,r.green,e),i.blue=St(n.blue,r.blue,e),i.alpha=W(n.alpha,r.alpha,e),Xe.transform(i))},Dt=new Set([`none`,`hidden`]);function Ot(e,t){return Dt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kt(e,t){return n=>W(e,t,n)}function At(e){return typeof e==`number`?kt:typeof e==`string`?Re(e)?xt:H.test(e)?Et:Pt:Array.isArray(e)?jt:typeof e==`object`?H.test(e)?Et:Mt:xt}function jt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>At(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Mt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=At(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Nt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Pt=(e,t)=>{let n=U.createTransformer(t),r=ft(e),i=ft(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Dt.has(e)&&!i.values.length||Dt.has(t)&&!r.values.length?Ot(e,t):O(jt(Nt(r,i),i.values),n):(`${e}${t}`,xt(e,t))};function Ft(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?W(e,t,n):At(e)(e,t)}var It=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>Ae(t),now:()=>F.isProcessing?F.timestamp:I.now()}},Lt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Rt=2e4;function zt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Bt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(zt(r),Rt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:A(i)}}var G={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 Vt(e,t){return e*Math.sqrt(1-t*t)}var Ht=12;function Ut(e,t,n){let r=n;for(let n=1;n<Ht;n++)r-=e(r)/t(r);return r}var Wt=.001;function Gt({duration:e=G.duration,bounce:t=G.bounce,velocity:n=G.velocity,mass:r=G.mass}){let i,a;G.maxDuration;let o=1-t;o=w(G.minDamping,G.maxDamping,o),e=w(G.minDuration,G.maxDuration,A(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Vt(t,o),c=Math.exp(-i);return Wt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Vt(t**2,o);return(-i(t)+Wt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Ut(i,a,s);if(e=k(e),isNaN(c))return{stiffness:G.stiffness,damping:G.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Kt=[`duration`,`bounce`],qt=[`stiffness`,`damping`,`mass`];function Jt(e,t){return t.some(t=>e[t]!==void 0)}function Yt(e){let t={velocity:G.velocity,stiffness:G.stiffness,damping:G.damping,mass:G.mass,isResolvedFromDuration:!1,...e};if(!Jt(e,qt)&&Jt(e,Kt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*w(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:G.mass,stiffness:i,damping:a}}else{let n=Gt({...e,velocity:0});t={...t,...n,mass:G.mass},t.isResolvedFromDuration=!0}return t}function Xt(e=G.visualDuration,t=G.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Yt({...n,velocity:-A(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=A(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?G.restSpeed.granular:G.restSpeed.default,i||=v?G.restDelta.granular:G.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Vt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>k(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=k(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=k(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(zt(T),Rt),t=Lt(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Xt.applyToOptions=e=>{let t=Bt(e,100,Xt);return e.ease=t.ease,e.duration=k(t.duration),e.type=`keyframes`,e};var Zt=5;function Qt(e,t,n){let r=Math.max(t-Zt,0);return j(n-e(r),t-r)}function $t({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Xt({keyframes:[f.value,m(f.value)],velocity:Qt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function en(e,t,n){let r=[],i=n||T.mix||Ft,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=O(Array.isArray(t)?t[n]||D:t,a)),r.push(a)}return r}function tn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=en(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=re(e[r],e[r+1],n);return s[r](i)};return n?t=>l(w(e[0],e[a-1],t)):l}function nn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=re(0,t,r);e.push(W(n,1,i))}}function rn(e){let t=[0];return nn(t,e.length-1),t}function an(e,t){return e.map(e=>e*t)}function on(e,t){return e.map(()=>t||xe).splice(0,e.length-1)}function sn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Se(r)?r.map(Ee):Ee(r),a={done:!1,value:t[0]},o=tn(an(n&&n.length===t.length?n:rn(t),e),t,{ease:Array.isArray(i)?i:on(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var cn=e=>e!==null;function ln(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(cn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var un={decay:$t,inertia:$t,tween:sn,keyframes:sn,spring:Xt};function dn(e){typeof e.type==`string`&&(e.type=un[e.type])}var fn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},pn=e=>e/100,mn=class extends fn{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=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Pe.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;dn(e);let{type:t=sn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||sn;s!==sn&&typeof o[0]!=`number`&&(this.mixKeyframes=O(pn,Ft(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=zt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=w(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==$t&&(b.value=ln(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return A(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Qt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=A(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=It,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(I.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,Pe.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),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 hn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var gn=e=>e*180/Math.PI,_n=e=>yn(gn(Math.atan2(e[1],e[0]))),vn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_n,rotateZ:_n,skewX:e=>gn(Math.atan(e[1])),skewY:e=>gn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yn=e=>(e%=360,e<0&&(e+=360),e),bn=_n,xn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Sn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Cn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xn,scaleY:Sn,scale:e=>(xn(e)+Sn(e))/2,rotateX:e=>yn(gn(Math.atan2(e[6],e[5]))),rotateY:e=>yn(gn(Math.atan2(-e[2],e[0]))),rotateZ:bn,rotate:bn,skewX:e=>gn(Math.atan(e[4])),skewY:e=>gn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wn(e){return+!!e.includes(`scale`)}function Tn(e,t){if(!e||e===`none`)return wn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Cn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vn,i=t}if(!i)return wn(t);let a=r[t],o=i[1].split(`,`).map(Dn);return typeof a==`function`?a(o):o[a]}var En=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Tn(n,t)};function Dn(e){return parseFloat(e.trim())}var On=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],kn=new Set([...On,`pathRotation`]),An=e=>e===L||e===V,jn=new Set([`x`,`y`,`z`]),Mn=On.filter(e=>!jn.has(e));function Nn(e){let t=[];return Mn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Pn={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tn(t,`x`),y:(e,{transform:t})=>Tn(t,`y`)};Pn.translateX=Pn.x,Pn.translateY=Pn.y;var Fn=new Set,In=!1,Ln=!1,Rn=!1;function zn(){if(Ln){let e=Array.from(Fn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Nn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Ln=!1,In=!1,Fn.forEach(e=>e.complete(Rn)),Fn.clear()}function Bn(){Fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ln=!0)})}function Vn(){Rn=!0,Bn(),zn(),Rn=!1}var Hn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Fn.add(this),In||(In=!0,P.read(Bn),P.resolveKeyframes(zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}hn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fn.delete(this)}cancel(){this.state===`scheduled`&&(Fn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Un=e=>e.startsWith(`--`);function Wn(e,t,n){Un(t)?e.style.setProperty(t,n):e.style[t]=n}var Gn={};function Kn(e,t){let n=E(e);return()=>Gn[t]??n()}var qn=Kn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Jn=Kn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Yn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Yn([0,.65,.55,1]),circOut:Yn([.55,0,1,.45]),backIn:Yn([.31,.01,.66,-.59]),backOut:Yn([.33,1.53,.69,.99])};function Zn(e,t){if(e)return typeof e==`function`?Jn()?Lt(e,t):`ease-out`:Ce(e)?Yn(e):Array.isArray(e)?e.map(e=>Zn(e,t)||Xn.easeOut):Xn[e]}function Qn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Zn(s,i);Array.isArray(d)&&(u.easing=d),N.value&&Pe.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return N.value&&p.finished.finally(()=>{Pe.waapi--}),p}function $n(e){return typeof e==`function`&&`applyToOptions`in e}function er({type:e,...t}){return $n(e)&&Jn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var tr=class extends fn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=er(e);this.animation=Qn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ln(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Wn(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return A(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+A(e)}get time(){return A(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),t&&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?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&qn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D):r(this)}},nr={anticipate:he,backInOut:me,circInOut:ve};function rr(e){return e in nr}function ir(e){typeof e.ease==`string`&&rr(e.ease)&&(e.ease=nr[e.ease])}var ar=10,or=class extends tr{constructor(e){ir(e),dn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new mn({...a,autoplay:!1}),s=Math.max(ar,I.now()-this.startTime),c=w(0,ar,s-ar),l=o.sample(s).value,{name:u}=this.options;i&&u&&Wn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},sr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(U.test(e)||e===`0`)&&!e.startsWith(`url(`));function cr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function lr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=sr(i,t),s=sr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:cr(e)||(n===`spring`||$n(n))&&r}function ur(e){e.duration=0,e.type=`keyframes`}var dr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),fr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function pr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&fr.test(e[t]))return!0;return!1}var mr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),hr=E(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function gr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return hr()&&n&&(dr.has(n)||mr.has(n)&&pr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var _r=40,vr=class extends fn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Hn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=I.now();let u=!0;lr(e,i,a,o)||(u=!1,(T.instantAnimations||!s)&&l?.(ln(e,n,t)),e[0]=e[e.length-1],ur(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>_r?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&gr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new or({...d,element:p})}catch{m=new mn(d)}else m=new mn(d);m.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vn()),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 yr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var br=30,xr=e=>!isNaN(parseFloat(e)),Sr={current:void 0},Cr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ie);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Sr.current&&Sr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>br)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,br);return j(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 wr(e,t){return new Cr(e,t)}function Tr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Er(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Tr(n,e)}var Dr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Or=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kr={type:`keyframes`,duration:.8},Ar={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},jr=(e,{keyframes:t})=>t.length>2?kr:kn.has(e)?e.startsWith(`scale`)?Or(t[1]):Dr:Ar,Mr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Nr(e){for(let t in e)if(!Mr.has(t))return!0;return!1}var Pr=(e,t,n,r={},i,a)=>o=>{let s=Er(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=k(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Nr(s)||Object.assign(u,jr(e,u)),u.duration&&=k(u.duration),u.repeatDelay&&=k(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ur(u),u.delay===0&&(d=!0)),(T.instantAnimations||T.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ur(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ln(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new mn(u):new vr(u)},Fr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ir(e){let t=Fr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Lr(e,t,n=1){`${e}`;let[r,i]=Ir(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return Re(i)?Lr(i,t,n+1):i}function Rr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function zr(e,t,n,r){if(typeof t==`function`){let[i,a]=Rr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Rr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Br(e,t,n){let r=e.getProps();return zr(r,t,n===void 0?r.custom:n,e)}var Vr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...On]),Hr=e=>Array.isArray(e);function Ur(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wr(n))}function Wr(e){return Hr(e)?e[e.length-1]||0:e}function Gr(e,t){let{transitionEnd:n={},transition:r={},...i}=Br(e,t)||{};i={...i,...n};for(let t in i)Ur(e,t,Wr(i[t]))}var K=e=>!!(e&&e.getVelocity);function Kr(e){return!!(K(e)&&e.add)}function qr(e,t){let n=e.getValue(`willChange`);if(Kr(n))return n.add(t);if(!n&&T.WillChange){let n=new T.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Jr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Yr=`data-`+Jr(`framerAppearId`);function Xr(e){return e.props[Yr]}function Zr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Qr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Tr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Zr(f,t))continue;let o={delay:n,...Er(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Xr(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,p=!0)}}qr(e,t);let m=l??e.shouldReduceMotion;r.start(Pr(t,r,i,m&&Vr.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>P.update(()=>{o&&Gr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function $r(e,t,n={}){let r=Br(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Qr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ei(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ei(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push($r(c,t,{...o,delay:n+(typeof r==`function`?0:r)+yr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ti(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>$r(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=$r(e,t,n);else{let i=typeof t==`function`?Br(e,t,n.custom):t;r=Promise.all(Qr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ni={test:e=>e===`auto`,parse:e=>e},ri=e=>t=>t.test(e),ii=[L,V,B,z,tt,et,ni],ai=e=>ii.find(ri(e));function oi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||ne(e)}var si=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ci(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ue)||[];if(!r)return e;let i=n.replace(r,``),a=+!!si.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var li=/\b([a-z-]*)\(.*?\)/gu,ui={...U,getAnimatableNone:e=>{let t=e.match(li);return t?t.map(ci).join(` `):e}},di={...U,getAnimatableNone:e=>{let t=U.parse(e);return U.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},fi={...L,transform:Math.round},pi={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,rotate:z,pathRotation:z,rotateX:z,rotateY:z,rotateZ:z,scale:Ve,scaleX:Ve,scaleY:Ve,scaleZ:Ve,skew:z,skewX:z,skewY:z,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:R,originX:nt,originY:nt,originZ:V,zIndex:fi,fillOpacity:R,strokeOpacity:R,numOctaves:fi},mi={...pi,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ui,WebkitFilter:ui,mask:di,WebkitMask:di},hi=e=>mi[e],gi=new Set([ui,di]);function _i(e,t){let n=hi(e);return gi.has(n)||(n=U),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var vi=new Set([`auto`,`none`,`0`]);function yi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!vi.has(t)&&ft(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=_i(n,i)}var bi=class extends Hn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Re(r))){let i=Lr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Vr.has(n)||e.length!==2)return;let[r,i]=e,a=ai(r),o=ai(i);if(Be(r)!==Be(i)&&Pn[n]){this.needsMeasurement=!0;return}if(a!==o)if(An(a)&&An(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Pn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||oi(e[t]))&&n.push(t);n.length&&yi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Pn[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function xi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Si=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ci(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:wi,cancel:Ti}=ke(queueMicrotask,!1),q={x:!1,y:!1};function Ei(){return q.x||q.y}function Di(e){return e===`x`||e===`y`?q[e]?null:(q[e]=!0,()=>{q[e]=!1}):q.x||q.y?null:(q.x=q.y=!0,()=>{q.x=q.y=!1})}function Oi(e,t){let n=xi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ki(e){return!(e.pointerType===`touch`||Ei())}function Ai(e,t,n={}){let[r,i,a]=Oi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ki(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ji=(e,t)=>t?e===t?!0:ji(e,t.parentElement):!1,Mi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ni=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Pi(e){return Ni.has(e.tagName)||e.isContentEditable===!0}var Fi=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new WeakSet;function Ri(e){return t=>{t.key===`Enter`&&e(t)}}function zi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Bi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ri(()=>{if(Li.has(n))return;zi(n,`down`);let e=Ri(()=>{zi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>zi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Vi(e){return Mi(e)&&!Ei()}var Hi=new WeakSet;function Ui(e,t,n={}){let[r,i,a]=Oi(e,n),o=e=>{let r=e.currentTarget;if(!Vi(e)||Hi.has(e))return;Li.add(r),n.stopPropagation&&Hi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Li.has(r)&&Li.delete(r),Vi(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ji(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ci(e)&&(e.addEventListener(`focus`,e=>Bi(e,i)),!Pi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Wi(e){return te(e)&&`ownerSVGElement`in e}var Gi=new WeakMap,Ki,qi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Wi(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ji=qi(`inline`,`width`,`offsetWidth`),Yi=qi(`block`,`height`,`offsetHeight`);function Xi({target:e,borderBoxSize:t}){Gi.get(e)?.forEach(n=>{n(e,{get width(){return Ji(e,t)},get height(){return Yi(e,t)}})})}function Zi(e){e.forEach(Xi)}function Qi(){typeof ResizeObserver>`u`||(Ki=new ResizeObserver(Zi))}function $i(e,t){Ki||Qi();let n=xi(e);return n.forEach(e=>{let n=Gi.get(e);n||(n=new Set,Gi.set(e,n)),n.add(t),Ki?.observe(e)}),()=>{n.forEach(e=>{let n=Gi.get(e);n?.delete(t),n?.size||Ki?.unobserve(e)})}}var ea=new Set,ta;function na(){ta=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ea.forEach(t=>t(e))},window.addEventListener(`resize`,ta)}function ra(e){return ea.add(e),ta||na(),()=>{ea.delete(e),!ea.size&&typeof ta==`function`&&(window.removeEventListener(`resize`,ta),ta=void 0)}}function ia(e,t){return typeof e==`function`?ra(e):$i(e,t)}function aa(e){return Wi(e)&&e.tagName===`svg`}var oa=[...ii,H,U],sa=e=>oa.find(ri(e)),ca=()=>({translate:0,scale:1,origin:0,originPoint:0}),la=()=>({x:ca(),y:ca()}),ua=()=>({min:0,max:0}),J=()=>({x:ua(),y:ua()}),da=new WeakMap;function fa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function pa(e){return typeof e==`string`||Array.isArray(e)}var ma=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ha=[`initial`,...ma];function ga(e){return fa(e.animate)||ha.some(t=>pa(e[t]))}function _a(e){return!!(ga(e)||e.variants)}function va(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,wr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,wr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ya={current:null},ba={current:!1},xa=typeof window<`u`;function Sa(){if(ba.current=!0,xa)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ya.current=e.matches;e.addEventListener(`change`,t),t()}else ya.current=!1}var Ca=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],wa={};function Ta(e){wa=e}function Ea(){return wa}var Da=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Hn,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=()=>{let e=I.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ga(t),this.isVariantNode=_a(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&K(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,da.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((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ba.current||Sa(),this.shouldReduceMotion=ya.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(),Ae(this.notifyUpdate),Ae(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&dr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new tr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:k(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=kn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 wa){let t=wa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ca.length;t++){let n=Ca[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=va(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=wr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):!sa(n)&&U.test(t)&&(n=_i(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=zr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ie),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){wi.render(this.render)}},Oa=class extends Da{constructor(){super(...arguments),this.KeyframeResolver=bi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ka=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Aa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ja({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ma(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Na(e){return e===void 0||e===1}function Pa({scale:e,scaleX:t,scaleY:n}){return!Na(e)||!Na(t)||!Na(n)}function Fa(e){return Pa(e)||Ia(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ia(e){return La(e.x)||La(e.y)}function La(e){return e&&e!==`0%`}function Ra(e,t,n){return n+t*(e-n)}function za(e,t,n,r,i){return i!==void 0&&(e=Ra(e,i,r)),Ra(e,n,r)+t}function Ba(e,t=0,n=1,r,i){e.min=za(e.min,t,n,r,i),e.max=za(e.max,t,n,r,i)}function Va(e,{x:t,y:n}){Ba(e.x,t.translate,t.scale,t.originPoint),Ba(e.y,n.translate,n.scale,n.originPoint)}var Ha=.999999999999,Ua=1.0000000000001;function Wa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Ga(e.x,-a.scroll.offset.x),Ga(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Va(e,o)),r&&Fa(a.latestValues)&&Ja(e,a.latestValues,a.layout?.layoutBox))}t.x<Ua&&t.x>Ha&&(t.x=1),t.y<Ua&&t.y>Ha&&(t.y=1)}function Ga(e,t){e.min+=t,e.max+=t}function Ka(e,t,n,r,i=.5){Ba(e,t,n,W(e.min,e.max,i),r)}function qa(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ja(e,t,n){let r=n??e;Ka(e.x,qa(t.x,r.x),t.scaleX,t.scale,t.originX),Ka(e.y,qa(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ya(e,t){return Aa(Ma(e.getBoundingClientRect(),t))}function Xa(e,t,n){let r=Ya(e,n),{scroll:i}=t;return i&&(Ga(r.x,i.offset.x),Ga(r.y,i.offset.y)),r}var Za={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Qa=On.length;function $a(e,t,n){let r=``,i=!0;for(let a=0;a<Qa;a++){let o=On[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Si(s,pi[o]);if(!c){i=!1;let t=Za[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Si(a,pi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function eo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(kn.has(e)){o=!0;continue}else if(Ie(e)){i[e]=n;continue}else{let t=Si(n,pi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=$a(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function to(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function no(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ro={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(V.test(e))e=parseFloat(e);else return e;return`${no(e,t.target.x)}% ${no(e,t.target.y)}%`}},io={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=U.parse(e);if(i.length>5)return r;let a=U.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ao={borderRadius:{...ro,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:io};function oo(e,{layout:t,layoutId:n}){return kn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ao[e]||e===`opacity`)}function so(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||oo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function co(e){return window.getComputedStyle(e)}var lo=class extends Oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=to}readValueFromInstance(e,t){if(kn.has(t))return this.projection?.isProjecting?wn(t):En(e,t);{let n=co(e),r=(Ie(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ya(e,t)}build(e,t,n){eo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}},uo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fo={offset:`strokeDashoffset`,array:`strokeDasharray`};function po(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?uo:fo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var mo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ho(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(eo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of mo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&po(d,i,a,o,!1)}var go=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`]),_o=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vo(e,t,n,r){to(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(go.has(n)?n:Jr(n),t.attrs[n])}function yo(e,t,n){let r=so(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=On.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bo=class extends Oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(kn.has(t)){let e=hi(t);return e&&e.default||0}return t=go.has(t)?t:Jr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yo(e,t,n)}build(e,t,n){ho(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vo(e,t,n,r)}mount(e){this.isSVGTag=_o(e.tagName),super.mount(e)}},xo=ha.length;function So(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&So(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<xo;n++){let r=ha[n],i=e.props[r];(pa(i)||i===!1)&&(t[r]=i)}return t}function Co(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var wo=[...ma].reverse(),To=ma.length;function Eo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ti(e,t,n)))}function Do(e){let t=Eo(e),n=Ao(),r=!0,i=!1,a=t=>(n,r)=>{let i=Br(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=So(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<To;t++){let p=wo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=pa(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||fa(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Oo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},ee=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Hr(t)&&Hr(n)?!Co(t,n)||y:t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let te=v&&y;b&&(!te||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!te&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Br(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=yr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Br(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ao(),i=!0}}}function Oo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Co(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ao(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}function jo(e,t){e.min=t.min,e.max=t.max}function Y(e,t){jo(e.x,t.x),jo(e.y,t.y)}function Mo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var No=.9999,Po=1.0001,Fo=-.01,Io=.01;function X(e){return e.max-e.min}function Lo(e,t,n){return Math.abs(e-t)<=n}function Ro(e,t,n,r=.5){e.origin=r,e.originPoint=W(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=W(n.min,n.max,e.origin)-e.originPoint,(e.scale>=No&&e.scale<=Po||isNaN(e.scale))&&(e.scale=1),(e.translate>=Fo&&e.translate<=Io||isNaN(e.translate))&&(e.translate=0)}function zo(e,t,n,r){Ro(e.x,t.x,n.x,r?r.originX:void 0),Ro(e.y,t.y,n.y,r?r.originY:void 0)}function Bo(e,t,n,r=0){e.min=(r?W(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function Vo(e,t,n,r){Bo(e.x,t.x,n.x,r?.x),Bo(e.y,t.y,n.y,r?.y)}function Ho(e,t,n,r=0){let i=r?W(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function Uo(e,t,n,r){Ho(e.x,t.x,n.x,r?.x),Ho(e.y,t.y,n.y,r?.y)}function Wo(e,t,n,r,i){return e-=t,e=Ra(e,1/n,r),i!==void 0&&(e=Ra(e,1/i,r)),e}function Go(e,t=0,n=1,r=.5,i,a=e,o=e){if(B.test(t)&&(t=parseFloat(t),t=W(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W(a.min,a.max,r);e===a&&(s-=t),e.min=Wo(e.min,t,n,s,i),e.max=Wo(e.max,t,n,s,i)}function Ko(e,t,[n,r,i],a,o){Go(e,t[n],t[r],t[i],t.scale,a,o)}var qo=[`x`,`scaleX`,`originX`],Jo=[`y`,`scaleY`,`originY`];function Yo(e,t,n,r){Ko(e.x,t,qo,n?n.x:void 0,r?r.x:void 0),Ko(e.y,t,Jo,n?n.y:void 0,r?r.y:void 0)}function Xo(e){return e.translate===0&&e.scale===1}function Zo(e){return Xo(e.x)&&Xo(e.y)}function Qo(e,t){return e.min===t.min&&e.max===t.max}function $o(e,t){return Qo(e.x,t.x)&&Qo(e.y,t.y)}function es(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ts(e,t){return es(e.x,t.x)&&es(e.y,t.y)}function ns(e){return X(e.x)/X(e.y)}function rs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function is(e){return[e(`x`),e(`y`)]}function as(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var os=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],ss=os.length,cs=e=>typeof e==`string`?parseFloat(e):e,ls=e=>typeof e==`number`||V.test(e);function us(e,t,n,r,i,a){i?(e.opacity=W(0,n.opacity??1,fs(r)),e.opacityExit=W(t.opacity??1,0,ps(r))):a&&(e.opacity=W(t.opacity??1,n.opacity??1,r));for(let i=0;i<ss;i++){let a=os[i],o=ds(t,a),s=ds(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||ls(o)===ls(s)?(e[a]=Math.max(W(cs(o),cs(s),r),0),(B.test(s)||B.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W(t.rotate||0,n.rotate||0,r))}function ds(e,t){return e[t]===void 0?e.borderRadius:e[t]}var fs=ms(0,.5,_e),ps=ms(.5,.95,D);function ms(e,t,n){return r=>r<e?0:r>t?1:n(re(e,t,r))}function hs(e,t,n){let r=K(e)?e:wr(e);return r.start(Pr(``,r,t,n)),r.animation}function gs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var _s=(e,t)=>e.depth-t.depth,vs=class{constructor(){this.children=[],this.isDirty=!1}add(e){S(this.children,e),this.isDirty=!0}remove(e){C(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_s),this.isDirty=!1,this.children.forEach(e)}};function ys(e,t){let n=I.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ae(r),e(a-t))};return P.setup(r,!0),()=>Ae(r)}function bs(e){return K(e)?e.get():e}var xs=class{constructor(){this.members=[]}add(e){S(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(C(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(C(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.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)}},Ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ws=[``,`X`,`Y`,`Z`],Ts=1e3,Es=0;function Ds(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Os(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Xr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Os(r)}function ks({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Es++,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,N.value&&(Cs.nodes=Cs.calculatedTargetDeltas=Cs.calculatedProjections=0),this.nodes.forEach(Ms),this.nodes.forEach(Vs),this.nodes.forEach(Hs),this.nodes.forEach(Ns),N.addProjectionMetrics&&N.addProjectionMetrics(Cs)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new vs)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ie),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Wi(t)&&!aa(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ys(i,250),Ss.hasAnimatedSinceResize&&(Ss.hasAnimatedSinceResize=!1,this.nodes.forEach(Bs)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ys,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ts(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Er(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Bs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ae(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(Us),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Os(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Is),this.nodes.forEach(Fs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ls);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rs),this.nodes.forEach(zs),this.nodes.forEach(As),this.nodes.forEach(js)):this.nodes.forEach(Ls),this.clearAllSnapshots();let e=I.now();F.delta=w(0,1e3/60,e-F.timestamp),F.timestamp=e,F.isProcessing=!0,je.update.process(F),je.preRender.process(F),je.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ps),this.sharedNodes.forEach(Ws)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Fa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),$s(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tc))){let{scroll:e}=this.root;e&&(Ga(t.x,e.offset.x),Ga(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Y(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Y(t,e),Ga(t.x,i.offset.x),Ga(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();Y(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Ga(r.x,-n.scroll.offset.x),Ga(r.y,-n.scroll.offset.y)),Fa(n.latestValues)&&Ja(r,n.latestValues,n.layout?.layoutBox)}return Fa(this.latestValues)&&Ja(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();Y(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Fa(n.latestValues))continue;let r;n.instance&&(Pa(n.latestValues)&&n.updateSnapshot(),r=J(),Y(r,n.measurePageBox())),Yo(t,n.latestValues,n.snapshot?.layoutBox,r)}return Fa(this.latestValues)&&Yo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=F.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),Va(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),N.value&&Cs.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Pa(this.parent.latestValues)||Ia(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Uo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===F.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Y(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Wa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mo(this.prevProjectionDelta.x,this.projectionDelta.x),Mo(this.prevProjectionDelta.y,this.projectionDelta.y)),zo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),N.value&&Cs.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=la(),this.projectionDelta=la(),this.projectionDeltaWithTransform=la()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=la();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Js));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=W(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=W(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Gs(o.x,e.x,n),Gs(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),qs(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&$o(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),Y(f,this.relativeTarget)),c&&(this.animationValues=a,us(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Ae(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{Ss.hasAnimatedSinceResize=!0,Pe.layout++,this.motionValue||=wr(0),this.motionValue.jump(0,!1),this.currentAnimation=hs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Pe.layout--},onComplete:()=>{Pe.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ts),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ec(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=X(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=X(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Y(t,n),Ja(t,i),zo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new xs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Ds(`z`,e,r,this.animationValues);for(let t=0;t<ws.length;t++)Ds(`rotate${ws[t]}`,e,r,this.animationValues),Ds(`skew${ws[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=bs(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=bs(t?.pointerEvents)||``),this.hasProjected&&!Fa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=as(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in ao){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ao[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?bs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Fs),this.root.sharedNodes.clear()}}}function As(e){e.updateLayout()}function js(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)is(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;jo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ec(i,t.layoutBox,n)&&is(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=la();zo(o,n,t.layoutBox);let s=la();a?zo(s,e.applyTransform(r,!0),t.measuredBox):zo(s,n,t.layoutBox);let c=!Zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();Uo(s,t.layoutBox,i.layoutBox,o);let c=J();Uo(c,n,a.layoutBox,o),ts(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ms(e){N.value&&Cs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ns(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ps(e){e.clearSnapshot()}function Fs(e){e.clearMeasurements()}function Is(e){e.isLayoutDirty=!0,e.updateLayout()}function Ls(e){e.isLayoutDirty=!1}function Rs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function zs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Bs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vs(e){e.resolveTargetDelta()}function Hs(e){e.calcProjection()}function Us(e){e.resetSkewAndRotation()}function Ws(e){e.removeLeadSnapshot()}function Gs(e,t,n){e.translate=W(t.translate,0,n),e.scale=W(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ks(e,t,n,r){e.min=W(t.min,n.min,r),e.max=W(t.max,n.max,r)}function qs(e,t,n,r){Ks(e.x,t.x,n.x,r),Ks(e.y,t.y,n.y,r)}function Js(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ys={duration:.45,ease:[.4,0,.1,1]},Xs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zs=Xs(`applewebkit/`)&&!Xs(`chrome/`)?Math.round:D;function Qs(e){e.min=Zs(e.min),e.max=Zs(e.max)}function $s(e){Qs(e.x),Qs(e.y)}function ec(e,t,n){return e===`position`||e===`preserve-aspect`&&!Lo(ns(t),ns(n),.2)}function tc(e){return e!==e.root&&e.scroll?.wasRoot}var nc=ks({attachResizeListener:(e,t)=>gs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rc={current:void 0},ic=ks({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rc.current){let e=new nc({});e.mount(window),e.setOptions({layoutScroll:!0}),rc.current=e}return rc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ac=(0,_.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function oc(e=!0){let t=(0,_.useContext)(x);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,_.useId)();(0,_.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,_.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var sc=(0,_.createContext)({strict:!1}),cc={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`]},lc=!1;function uc(){if(lc)return;let e={};for(let t in cc)e[t]={isEnabled:e=>cc[t].some(t=>!!e[t])};Ta(e),lc=!0}function dc(){return uc(),Ea()}function fc(e){let t=dc();for(let n in e)t[n]={...t[n],...e[n]};Ta(t)}var pc=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`.split(`.`));function mc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||pc.has(e)}var hc=m({default:()=>gc}),gc,_c=r((()=>{throw gc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),vc=e=>!mc(e);function yc(e){typeof e==`function`&&(vc=t=>t.startsWith(`on`)?!mc(t):e(t))}try{yc((_c(),t(hc)).default)}catch{}function bc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||K(e[i])||(vc(i)||n===!0&&mc(i)||!t&&!mc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var xc=(0,_.createContext)({});function Sc(e,t){if(ga(e)){let{initial:t,animate:n}=e;return{initial:t===!1||pa(t)?t:void 0,animate:pa(n)?n:void 0}}return e.inherit===!1?{}:t}function Cc(e){let{initial:t,animate:n}=Sc(e,(0,_.useContext)(xc));return(0,_.useMemo)(()=>({initial:t,animate:n}),[wc(t),wc(n)])}function wc(e){return Array.isArray(e)?e.join(` `):e}var Tc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ec(e,t,n){for(let r in t)!K(t[r])&&!oo(r,n)&&(e[r]=t[r])}function Dc({transformTemplate:e},t){return(0,_.useMemo)(()=>{let n=Tc();return eo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Oc(e,t){let n=e.style||{},r={};return Ec(r,n,e),Object.assign(r,Dc(e,t)),r}function kc(e,t){let n={},r=Oc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ac=()=>({...Tc(),attrs:{}});function jc(e,t,n,r){let i=(0,_.useMemo)(()=>{let n=Ac();return ho(n,t,_o(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Ec(t,e.style,e),i.style={...t,...i.style}}return i}var Mc=[`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 Nc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Mc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Nc(e)?jc:kc)(t,r,i,e),c=bc(t,typeof e==`string`,a),l=e===_.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,_.useMemo)(()=>K(u)?u.get():u,[u]);return(0,_.createElement)(e,{...l,children:d})}function Fc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ic(n,r,i,e),renderState:t()}}function Ic(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=bs(a[e]);let{initial:o,animate:s}=e,c=ga(e),l=_a(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!fa(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=zr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Lc=e=>(t,n)=>{let r=(0,_.useContext)(xc),i=(0,_.useContext)(x),a=()=>Fc(e,t,r,i);return n?a():y(a)},Rc=Lc({scrapeMotionValuesFromProps:so,createRenderState:Tc}),zc=Lc({scrapeMotionValuesFromProps:yo,createRenderState:Ac}),Bc=Symbol.for(`motionComponentSymbol`);function Vc(e,t,n){let r=(0,_.useRef)(n);(0,_.useInsertionEffect)(()=>{r.current=n});let i=(0,_.useRef)(null);return(0,_.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Hc=(0,_.createContext)({});function Uc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Wc(e,t,n,r,i,a){let{visualElement:o}=(0,_.useContext)(xc),s=(0,_.useContext)(sc),c=(0,_.useContext)(x),l=(0,_.useContext)(ac),u=l.reducedMotion,d=l.skipAnimations,f=(0,_.useRef)(null),p=(0,_.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,_.useContext)(Hc);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Gc(f.current,n,i,h);let g=(0,_.useRef)(!1);(0,_.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let v=n[Yr],y=(0,_.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return b(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,_.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function Gc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Kc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Uc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Kc(e){if(e)return e.options.allowProjection===!1?Kc(e.parent):e.projection}function qc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&fc(r);let a=n?n===`svg`:Nc(e),o=a?zc:Rc;function s(n,s){let c,l={...(0,_.useContext)(ac),...n,layoutId:Jc(n)},{isStatic:u}=l,d=Cc(n),f=o(n,u);if(!u&&typeof window<`u`){Yc(l,r);let t=Xc(l);c=t.MeasureLayout,d.visualElement=Wc(e,f,l,i,t.ProjectionNode,a)}return(0,g.jsxs)(xc.Provider,{value:d,children:[c&&d.visualElement?(0,g.jsx)(c,{visualElement:d.visualElement,...l}):null,Pc(e,n,Vc(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,_.forwardRef)(s);return c[Bc]=e,c}function Jc({layoutId:e}){let t=(0,_.useContext)(v).id;return t&&e!==void 0?t+`-`+e:e}function Yc(e,t){(0,_.useContext)(sc).strict}function Xc(e){let{drag:t,layout:n}=dc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zc(e,t){if(typeof Proxy>`u`)return qc;let n=new Map,r=(n,r)=>qc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qc(a,void 0,e,t)),n.get(a))})}var Qc=(e,t)=>t.isSVG??Nc(e)?new bo(t):new lo(t,{allowProjection:e!==_.Fragment}),$c=class extends ka{constructor(e){super(e),e.animationState||=Do(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();fa(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},el=0,tl={animation:{Feature:$c},exit:{Feature:class extends ka{constructor(){super(...arguments),this.id=el++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Br(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function nl(e){return{point:{x:e.pageX,y:e.pageY}}}var rl=e=>t=>Mi(t)&&e(t,nl(t));function il(e,t,n,r){return gs(e,t,rl(n),r)}var al=({current:e})=>e?e.ownerDocument.defaultView:null,ol=(e,t)=>Math.abs(e-t);function sl(e,t){let n=ol(e.x,t.x),r=ol(e.y,t.y);return Math.sqrt(n**2+r**2)}var cl=new Set([`auto`,`scroll`]),ll=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ul(this.lastRawMoveEventInfo,this.transformPagePoint));let e=fl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=sl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=F;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ul(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=fl(e.type===`pointercancel`?this.lastMoveEventInfo:ul(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Mi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=ul(nl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=F;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,fl(s,this.history)),this.removeListeners=O(il(this.contextWindow,`pointermove`,this.handlePointerMove),il(this.contextWindow,`pointerup`,this.handlePointerUp),il(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(cl.has(e.overflowX)||cl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ae(this.updatePoint)}};function ul(e,t){return t?{point:t(e.point)}:e}function dl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fl({point:e},t){return{point:e,delta:dl(e,ml(t)),offset:dl(e,pl(t)),velocity:hl(t,.1)}}function pl(e){return e[0]}function ml(e){return e[e.length-1]}function hl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ml(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>k(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>k(t)*2&&(r=e[1]);let a=A(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function gl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W(n,e,r.max):Math.min(e,n)),e}function _l(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function vl(e,{top:t,left:n,bottom:r,right:i}){return{x:_l(e.x,n,i),y:_l(e.y,t,r)}}function yl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bl(e,t){return{x:yl(e.x,t.x),y:yl(e.y,t.y)}}function xl(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=re(t.min,t.max-r,e.min):r>i&&(n=re(e.min,e.max-i,t.min)),w(0,1,n)}function Sl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Cl=.35;function wl(e=Cl){return e===!1?e=0:e===!0&&(e=Cl),{x:Tl(e,`left`,`right`),y:Tl(e,`top`,`bottom`)}}function Tl(e,t,n){return{min:El(e,t),max:El(e,n)}}function El(e,t){return typeof e==`number`?e:e[t]||0}var Dl=new WeakMap,Ol=class{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=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(nl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Di(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),is(e=>{let t=this.getAxisMotionValue(e).get()||0;if(B.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),qr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Ml(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ll(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:al(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!jl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=gl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Uc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=vl(n.layoutBox,e):this.constraints=!1,this.elastic=wl(t),r!==this.constraints&&!Uc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&is(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Sl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Uc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Xa(n,r.root,this.visualElement.getTransformPagePoint()),a=bl(r.layout.layoutBox,i);if(t){let e=t(ja(a));this.hasMutatedConstraints=!!e,e&&(a=Aa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=is(o=>{if(!jl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return qr(this.visualElement,e),n.start(Pr(e,n,0,t,this.visualElement,!1))}stopAnimation(){is(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){is(t=>{let{drag:n}=this.getProps();if(!jl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-W(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Uc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};is(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=xl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),is(t=>{if(!jl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Dl.set(this.visualElement,this);let e=this.visualElement.current,t=il(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ii(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Uc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Al(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=gs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(is(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Cl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function kl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Al(e,t,n){let r=ia(e,kl(n)),i=ia(t,kl(n));return()=>{r(),i()}}function jl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ml(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Nl=class extends ka{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new Ol(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Pl=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},Fl=class extends ka{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new ll(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:al(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Pl(e),onStart:Pl(t),onMove:Pl(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=il(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Il=!1,Ll=class extends _.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Il&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Il=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),wi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Il=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Rl(e){let[t,n]=oc(),r=(0,_.useContext)(v);return(0,g.jsx)(Ll,{...e,layoutGroup:r,switchLayoutGroup:(0,_.useContext)(Hc),isPresent:t,safeToRemove:n})}var zl={pan:{Feature:Fl},drag:{Feature:Nl,ProjectionNode:ic,MeasureLayout:Rl}};function Bl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,nl(t)))}var Vl=class extends ka{mount(){let{current:e}=this.node;e&&(this.unmount=Ai(e,(e,t)=>(Bl(this.node,t,`Start`),e=>Bl(this.node,e,`End`))))}unmount(){}},Hl=class extends ka{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=O(gs(this.node.current,`focus`,()=>this.onFocus()),gs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ul(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,nl(t)))}var Wl=class extends ka{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ui(e,(e,t)=>(Ul(this.node,t,`Start`),(e,{success:t})=>Ul(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Gl=new WeakMap,Kl=new WeakMap,ql=e=>{let t=Gl.get(e.target);t&&t(e)},Jl=e=>{e.forEach(ql)};function Yl({root:e,...t}){let n=e||document;Kl.has(n)||Kl.set(n,{});let r=Kl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Jl,{root:e,...t})),r[i]}function Xl(e,t,n){let r=Yl(t);return Gl.set(e,n),r.observe(e),()=>{Gl.delete(e),r.unobserve(e)}}var Zl={some:0,all:1},Ql=class extends ka{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Zl[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Xl(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some($l(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function $l({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var eu={inView:{Feature:Ql},tap:{Feature:Wl},focus:{Feature:Hl},hover:{Feature:Vl}},tu={layout:{ProjectionNode:ic,MeasureLayout:Rl}},Z=Zc({...tl,...eu,...zl,...tu},Qc);function nu(){!ba.current&&Sa();let[e]=(0,_.useState)(ya.current);return e}var ru=(0,_.createContext)(!1);function iu(){return(0,_.useContext)(ru)}var au=d(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Q=d(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),ou=d(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),su=d(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),cu=d(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),lu=d(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),uu=d(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),du=d(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),fu=d(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),pu=d(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),mu=d(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),hu=d(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),gu=d(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),_u=d(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),vu=d(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),yu=d(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),bu=d(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),xu=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Su=d(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),Cu=d(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),wu=d(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Tu=d(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Eu=d(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);function Du({gallery:e}){let t=e?.items||[],[n,r]=(0,_.useState)(0),[i,a]=(0,_.useState)(!1);return _.useEffect(()=>{let e=()=>a(window.innerWidth<1024);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),_.useEffect(()=>{if(!t.length)return;let e=setInterval(()=>{r(e=>(e+1)%t.length)},4e3);return()=>clearInterval(e)},[n,t.length]),(0,g.jsx)(`section`,{id:`featured-gallery`,style:{padding:i?`4rem 1.25rem`:`6rem 4rem 4rem 4rem`,background:`linear-gradient(180deg, #020710 0%, #0f4652 65%, #2791a5 100%)`,position:`relative`,overflow:`hidden`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,position:`relative`,zIndex:10},children:[(0,g.jsxs)(`div`,{style:{marginBottom:`3rem`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(2.2rem, 3.2vw, 2.8rem)`,fontWeight:500,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`},children:`Case Studies`}),(0,g.jsx)(`span`,{style:{color:`#8c9ba5`,fontSize:`0.78rem`,fontWeight:500,textTransform:`uppercase`,letterSpacing:`0.08em`,display:`block`,marginBottom:`0.6rem`},children:`BEFORE VS. AFTER: THE NUMBERS DON'T LIE.`}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.95rem`,marginTop:`0.5rem`,maxWidth:`720px`,lineHeight:`1.5`,fontWeight:400},children:`Discover how leading manufacturers are using AI, SAP, and smart factory technologies to boost productivity, reduce costs, and gain competitive advantage.`})]}),(0,g.jsx)(Ou,{galleryData:t,activeIdx:n,setActiveIdx:r})]})})}function Ou({galleryData:e,activeIdx:t,setActiveIdx:r}){let[i,o]=_.useState(!1),s=nu();_.useEffect(()=>{let e=()=>{o(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let c=e=>s?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15}};return i?(0,g.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:e.map((e,t)=>{let r=t===0,i=c(t);return(0,g.jsxs)(Z.div,{className:`glass-card`,...i,transition:{duration:.8,ease:[.22,1,.36,1],delay:t*.1},style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,height:r?`320px`:`240px`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%), url(${a(e.image)})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-end`,padding:`2rem 1.5rem`,boxShadow:r?`0 10px 30px -10px rgba(255, 170, 0, 0.15)`:`none`,borderColor:r?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,g.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.05em`,marginBottom:`0.25rem`},children:e.category}),(0,g.jsx)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,margin:`0 0 0.5rem 0`,lineHeight:`1.3`},children:e.title}),(0,g.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:`0 0 1rem 0`,lineHeight:`1.5`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.excerpt}),(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,borderTop:`1px solid rgba(255, 255, 255, 0.1)`,paddingTop:`0.75rem`},children:[(0,g.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,g.jsx)(n,{size:14}),` `,e.readTime]}),(0,g.jsxs)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,g.jsx)(Q,{size:14})]})]})]},e.id)})}):(0,g.jsx)(`div`,{style:{display:`flex`,gap:`1.25rem`,width:`100%`,height:`460px`,alignItems:`stretch`,position:`relative`},children:e.map((e,i)=>{let o=t===i,l=c(i);return(0,g.jsxs)(Z.div,{layout:!0,onMouseEnter:()=>r(i),className:`glass-card`,...l,transition:s?{type:`spring`,stiffness:350,damping:32}:{layout:{type:`spring`,stiffness:350,damping:32},y:{duration:.8,ease:[.22,1,.36,1],delay:i*.1},opacity:{duration:.8,ease:`easeOut`,delay:i*.1}},style:{flex:o?2.8:1,borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:o?`0 15px 35px -12px rgba(255, 170, 0, 0.2)`:`0 4px 20px rgba(0, 0, 0, 0.3)`,borderColor:o?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,g.jsx)(Z.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`url(${a(e.image)})`,backgroundSize:`cover`,backgroundPosition:`center`,zIndex:1},animate:{scale:o?1.06:1},transition:{duration:.6}}),(0,g.jsx)(Z.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%)`,zIndex:2},animate:{opacity:o?.95:.85},transition:{duration:.4}}),(0,g.jsx)(`div`,{style:{position:`relative`,zIndex:3,padding:`2rem 1.8rem 0 1.8rem`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:(0,g.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.08em`,background:`rgba(255, 170, 0, 0.08)`,padding:`0.3rem 0.6rem`,borderRadius:`8px`,border:`1px solid rgba(255, 170, 0, 0.15)`},children:e.category})}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:3,padding:`0 1.8rem 2rem 1.8rem`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},children:[(0,g.jsx)(`h3`,{style:{fontSize:o?`1.5rem`:`1.15rem`,fontWeight:700,color:`#ffffff`,margin:0,lineHeight:`1.3`,transition:`font-size 0.3s ease`,whiteSpace:o?`normal`:`nowrap`,overflow:o?`visible`:`hidden`,textOverflow:o?`clip`:`ellipsis`,maxWidth:`100%`},children:e.title}),(0,g.jsx)(Z.div,{initial:!1,animate:{height:o?`auto`:0,opacity:+!!o,marginTop:o?6:0},transition:{duration:.4,ease:`easeInOut`},style:{overflow:`hidden`},children:(0,g.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:0,lineHeight:`1.5`,maxWidth:`90%`},children:e.excerpt})})]}),(0,g.jsxs)(`div`,{style:{marginTop:`1.5rem`},children:[(0,g.jsx)(`div`,{style:{width:`100%`,height:`2px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,borderRadius:`1px`,marginBottom:`1rem`,position:`relative`,overflow:`hidden`},children:o?(0,g.jsx)(Z.div,{style:{height:`100%`,backgroundColor:`#ffaa00`,borderRadius:`1px`},initial:{width:`0%`},animate:{width:`100%`},transition:{duration:4,ease:`linear`}},`active-bar-${t}`):(0,g.jsx)(`div`,{style:{height:`100%`,width:`0%`,backgroundColor:`#ffaa00`,borderRadius:`1px`}})}),(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,minHeight:`24px`},children:[(0,g.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,g.jsx)(n,{size:13,style:{color:`#ffaa00`}}),` `,e.readTime]}),o&&(0,g.jsxs)(Z.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3},style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,g.jsx)(Q,{size:14})]})]})]})]})]},e.id)})})}var ku=[`linear-gradient(0deg, #ffffff 0%, #ffffff 50%, #e6f7ef 100%)`,`linear-gradient(0deg, #ffffff 0%, #ffffff 50%, #f7effe 100%)`,`linear-gradient(0deg, #ffffff 0%, #ffffff 50%, #fefce8 100%)`];function Au({product:e,isMobile:t,delay:n=0,index:r=0}){if(!e)return null;let i=nu(),o=[[{bottom:`25px`,left:`20px`,bg:`rgba(30, 30, 35, 0.65)`,color:`#ffffff`},{top:`15px`,right:`15px`,bg:`rgba(30, 30, 35, 0.65)`,color:`#ffffff`}],[{top:`40px`,left:`15px`,bg:`rgba(255, 255, 255, 0.65)`,color:`#000000`},{bottom:`15px`,right:`15px`,bg:`rgba(30, 30, 35, 0.65)`,color:`#ffffff`}],[{bottom:`40px`,left:`20px`,bg:`rgba(255, 255, 255, 0.75)`,color:`#166534`}]],s=o[r%o.length]||[];return(0,g.jsx)(Z.div,{initial:i?!1:{opacity:0,y:40},whileInView:i?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{duration:.8,ease:[.22,1,.36,1],delay:n},style:{height:`100%`},children:(0,g.jsxs)(`div`,{className:`product-card`,style:{borderRadius:`24px`,border:`6px solid #ffffff`,background:ku[r%ku.length],padding:t?`1.75rem 1.25rem 0`:`2.2rem 2rem 0 2rem`,boxShadow:`0 8px 25px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,height:`100%`,minHeight:t?`400px`:`520px`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{t||(e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 12px 35px rgba(0, 0, 0, 0.08)`,e.currentTarget.style.borderColor=`rgba(0, 0, 0, 0.15)`)},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 8px 25px rgba(0, 0, 0, 0.04)`,e.currentTarget.style.borderColor=`rgba(0, 0, 0, 0.08)`},children:[(0,g.jsx)(`h3`,{style:{fontSize:t?`1.4rem`:`1.8rem`,fontWeight:600,color:`#0f172a`,margin:`0 0 0.6rem 0`,letterSpacing:`-0.02em`,position:`relative`,zIndex:3},children:e.name}),(0,g.jsx)(`p`,{style:{color:`#475569`,fontSize:t?`0.88rem`:`0.94rem`,lineHeight:`1.55`,margin:`0 0 1.5rem 0`,fontWeight:400,maxWidth:`100%`,position:`relative`,zIndex:3},children:e.description}),(0,g.jsxs)(`div`,{style:{position:`relative`,marginTop:`auto`,width:`100%`,height:t?`220px`:`310px`,borderRadius:`14px 14px 0 0`,overflow:`hidden`,zIndex:2,boxShadow:`0 -4px 20px rgba(0, 0, 0, 0.06)`},children:[(0,g.jsx)(`img`,{src:a(e.image),alt:`${e.name} dashboard`,style:{width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`top center`,display:`block`}}),e.stats?.map((e,t)=>{let n=s[t]||{};return(0,g.jsxs)(`div`,{style:{position:`absolute`,...n,background:n.bg||`rgba(30, 30, 35, 0.65)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.2)`,padding:`0.5rem 0.85rem`,borderRadius:`10px`,boxShadow:`0 6px 20px rgba(0, 0, 0, 0.15)`,zIndex:5,whiteSpace:`nowrap`,maxWidth:`none`},children:[(0,g.jsx)(`span`,{style:{fontWeight:700,color:n.color||`#ffffff`,fontSize:`1.1rem`,display:`block`,lineHeight:1.1},children:e.value}),(0,g.jsx)(`span`,{style:{fontSize:`0.7rem`,color:n.color||`#ffffff`,opacity:.9,fontWeight:500,whiteSpace:`nowrap`,display:`block`},children:e.label})]},t)})]})]})})}function ju({onVerify:e,onError:t,onExpire:n}){let r=(0,_.useRef)(null),i=(0,_.useRef)(null),[a,o]=(0,_.useState)(!1),s=`1x00000000000000000000AA`;return(0,_.useEffect)(()=>{if(window.turnstile){o(!0);return}let e=`cf-turnstile-script`,t=document.getElementById(e);if(t)t.addEventListener(`load`,()=>o(!0)),window.turnstile&&o(!0);else{let t=document.createElement(`script`);t.id=e,t.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,t.async=!0,t.defer=!0,t.onload=()=>o(!0),document.head.appendChild(t)}},[]),(0,_.useEffect)(()=>{if(!(!a||!r.current||!window.turnstile)){if(i.current!==null)try{window.turnstile.remove(i.current)}catch{}try{i.current=window.turnstile.render(r.current,{sitekey:s,theme:`dark`,callback:t=>{e&&e(t)},"error-callback":e=>{t&&t(e)},"expired-callback":()=>{n&&n()}})}catch(e){console.error(`[Turnstile] Render error:`,e)}return()=>{if(i.current!==null&&window.turnstile){try{window.turnstile.remove(i.current)}catch{}i.current=null}}}},[a,s]),(0,g.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,margin:`0.75rem 0`,minHeight:`65px`,width:`100%`},children:(0,g.jsx)(`div`,{ref:r})})}function Mu({isMobile:e,onOpenStrategy:t}){let[r,i]=(0,_.useState)({name:``,email:``,phone:``,subject:``,message:``}),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(``),m=(0,_.useCallback)(e=>{s(e),f&&p(``)},[f]),h=(0,_.useCallback)(()=>{s(``)},[]),v=e=>{i({...r,[e.target.name]:e.target.value}),f&&p(``)};return(0,g.jsxs)(`section`,{id:`contactus`,style:{position:`relative`,backgroundColor:`#020710`,color:`#ffffff`,overflow:`hidden`,width:`100%`,maxWidth:`100%`,boxSizing:`border-box`,padding:e?`3rem 1.25rem`:`5rem 4rem`,zIndex:10},children:[(0,g.jsx)(`img`,{src:a(`/assets/World Map Vector.svg`),alt:``,style:{position:`absolute`,top:`-20px`,left:`50%`,transform:`translateX(-50%)`,width:`100%`,maxWidth:`1400px`,height:`auto`,maxHeight:`700px`,objectFit:`contain`,opacity:.22,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`10%`,left:`50%`,transform:`translateX(-50%)`,width:`60%`,height:`400px`,background:`radial-gradient(ellipse at center, rgba(3, 135, 218, 0.12) 0%, rgba(236, 137, 34, 0.05) 50%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1,maxWidth:`1440px`,margin:`0 auto`,width:`100%`},children:[(0,g.jsxs)(`div`,{style:{marginBottom:e?`3rem`:`5rem`},children:[(0,g.jsxs)(Z.h1,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},style:{fontSize:`clamp(2.5rem, 5vw, 4.5rem)`,fontWeight:700,lineHeight:1.1,letterSpacing:`-0.02em`,marginBottom:`1.25rem`,color:`#ffffff`},children:[`Contact`,` `,(0,g.jsx)(`span`,{style:{background:`linear-gradient(135deg, #EC8922 0%, #f97316 60%, #eab308 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,display:`inline-block`},children:`Us`})]}),(0,g.jsx)(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},style:{fontSize:e?`0.98rem`:`1.1rem`,color:`#cbd5e1`,maxWidth:`560px`,lineHeight:1.6,marginBottom:`2rem`,fontWeight:400},children:`We'd love to hear from you. Whether you have questions about our products and services, need support, or would like to discuss a business opportunity, our team is here to help.`})]}),(0,g.jsxs)(`div`,{style:{position:`relative`,marginBottom:e?`3rem`:`4.5rem`},children:[(0,g.jsx)(`img`,{src:a(`/assets/Wave form.svg`),alt:``,style:{position:`absolute`,top:`68%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`100vw`,minWidth:`100vw`,height:`auto`,maxHeight:`750px`,objectFit:`contain`,pointerEvents:`none`,opacity:.95,zIndex:0}}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},style:{position:`relative`,zIndex:1,marginBottom:`2.5rem`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.5vw, 2.8rem)`,fontWeight:700,color:`#ffffff`,letterSpacing:`-0.02em`,marginBottom:`0.75rem`},children:`Let's Start The Conversation`}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.9rem`:`1.02rem`,color:`#94a3b8`,maxWidth:`780px`,lineHeight:1.5},children:`Tell Us About Your Goals, Challenges, Or Project Requirements. Our Team Will Get Back To You Within 24 Hours.`})]}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},style:{position:`relative`,zIndex:1,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(5, 11, 24, 0.85)`,backdropFilter:`blur(20px)`,WebkitBackdropFilter:`blur(20px)`,overflow:`hidden`,boxShadow:`0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08)`,display:`grid`,gridTemplateColumns:e?`1fr`:`38% 62%`,minHeight:`520px`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`url(${a(`/assets/Lets start the conversation bg.svg`)})`,backgroundSize:`cover`,backgroundPosition:`center`,opacity:.6,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1,padding:e?`2.5rem 1.5rem`:`3.5rem 3rem`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,background:`radial-gradient(circle at top left, rgba(3, 135, 218, 0.25) 0%, rgba(2, 7, 16, 0.4) 100%)`,borderRight:e?`none`:`1px solid rgba(255, 255, 255, 0.08)`,borderBottom:e?`1px solid rgba(255, 255, 255, 0.08)`:`none`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(`/assets/C0ntact form blur.svg`),alt:``,style:{position:`absolute`,top:`-20%`,left:`-20%`,width:`140%`,height:`140%`,objectFit:`cover`,opacity:.7,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,g.jsx)(`h3`,{style:{fontSize:e?`1.5rem`:`1.85rem`,fontWeight:700,color:`#ffffff`,marginBottom:`2rem`,letterSpacing:`-0.01em`},children:`How We Can Help?`}),(0,g.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[`Product Demonstrations`,`Technical Support`,`Partnership Opportunities`,`Project Consultations`].map((t,n)=>(0,g.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.85rem`,color:`#e2e8f0`,fontSize:e?`0.95rem`:`1.05rem`,fontWeight:500},children:[(0,g.jsx)(`span`,{style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`20px`,height:`20px`,color:`#ffffff`},children:``}),(0,g.jsx)(`span`,{children:t})]},n))})]})]}),(0,g.jsx)(`div`,{style:{position:`relative`,zIndex:1,padding:e?`2.5rem 1.5rem`:`3.5rem 3.5rem`,display:`flex`,flexDirection:`column`,justifyContent:`center`,background:`rgba(2, 7, 16, 0.4)`},children:u?(0,g.jsxs)(`div`,{style:{padding:`2.5rem 1.5rem`,textAlign:`center`,background:`rgba(16, 185, 129, 0.1)`,border:`1px solid rgba(16, 185, 129, 0.3)`,borderRadius:`16px`},children:[(0,g.jsx)(`div`,{style:{width:`56px`,height:`56px`,borderRadius:`50%`,background:`rgba(16, 185, 129, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.25rem auto`,color:`#34d399`},children:(0,g.jsx)(uu,{size:28})}),(0,g.jsx)(`h4`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,marginBottom:`0.5rem`},children:`Message Sent Successfully!`}),(0,g.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.95rem`,lineHeight:1.5,marginBottom:`1.5rem`},children:`Thank you for reaching out to Cavin Infotech. Our experts will review your details and respond within 24 hours.`}),(0,g.jsx)(`button`,{onClick:()=>d(!1),style:{background:`transparent`,border:`1px solid rgba(255, 255, 255, 0.3)`,color:`#ffffff`,padding:`0.6rem 1.5rem`,borderRadius:`50px`,fontSize:`0.88rem`,fontWeight:600,cursor:`pointer`},children:`Send Another Message`})]}):(0,g.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!r.name.trim()||!r.email.trim()||!r.message.trim()){p(`Please fill in your Name, Email, and Message.`);return}if(!o){p(`Please complete the Cloudflare Turnstile security verification.`);return}l(!0),p(``);try{let e=await fetch(`/api/contact`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`contact`,name:r.name,email:r.email,phone:r.phone,subject:r.subject,message:r.message,turnstileToken:o})});e.ok||(e=await fetch(`/api/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`contact`,name:r.name,email:r.email,phone:r.phone,subject:r.subject,message:r.message,turnstileToken:o})}));let t=await e.json().catch(()=>({}));e.ok&&t.success?(d(!0),i({name:``,email:``,phone:``,subject:``,message:``}),s(``)):p(t.error||t.smtpError||`Cloudflare Turnstile verification failed. Please try again.`)}catch(e){console.error(`Contact submit error:`,e),d(!0),i({name:``,email:``,phone:``,subject:``,message:``}),s(``)}finally{l(!1)}},style:{display:`flex`,flexDirection:`column`,gap:`2rem`},children:[f&&(0,g.jsx)(`div`,{style:{padding:`0.75rem 1rem`,background:`rgba(239, 68, 68, 0.15)`,border:`1px solid rgba(239, 68, 68, 0.4)`,borderRadius:`8px`,color:`#fca5a5`,fontSize:`0.88rem`},children:f}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:e?`1fr`:`1fr 1fr`,gap:`2rem`},children:[(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`text`,name:`name`,value:r.name,onChange:v,placeholder:`Name`,required:!0,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.target.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.target.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`email`,name:`email`,value:r.email,onChange:v,placeholder:`Email`,required:!0,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.target.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.target.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})})]}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`tel`,name:`phone`,value:r.phone,onChange:v,placeholder:`Phone No. (Optional)`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.target.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.target.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`text`,name:`subject`,value:r.subject,onChange:v,placeholder:`Subject`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.target.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.target.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`,marginTop:`0.5rem`},children:(0,g.jsx)(`textarea`,{name:`message`,value:r.message,onChange:v,placeholder:`Message`,rows:2,required:!0,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,resize:`none`,fontFamily:`inherit`,transition:`border-color 0.3s ease`},onFocus:e=>e.target.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.target.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(ju,{onVerify:m,onExpire:h}),(0,g.jsx)(`button`,{type:`submit`,disabled:c,style:{marginTop:`1rem`,width:`100%`,background:`#ffffff`,color:`#020710`,border:`none`,padding:`0.95rem 1.5rem`,borderRadius:`50px`,fontSize:`1.05rem`,fontWeight:700,cursor:c?`not-allowed`:`pointer`,boxShadow:`0 10px 25px rgba(255, 255, 255, 0.15)`,transition:`all 0.3s ease`,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`0.5rem`},onMouseEnter:e=>{c||(e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 15px 35px rgba(255, 255, 255, 0.3)`)},onMouseLeave:e=>{c||(e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 10px 25px rgba(255, 255, 255, 0.15)`)},children:c?`Sending...`:`Send Message`})]})})]})]}),(0,g.jsx)(`div`,{style:{position:`relative`,zIndex:1},children:(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},style:{position:`relative`,zIndex:1,display:`grid`,gridTemplateColumns:e?`1fr`:`repeat(3, 1fr)`,gap:`1.5rem`},children:[(0,g.jsx)(`a`,{href:`mailto:info@cavinfotech.com`,style:{textDecoration:`none`},children:(0,g.jsxs)(`div`,{style:{background:`rgba(8, 16, 32, 0.65)`,border:`1px solid rgba(255, 255, 255, 0.12)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`,borderRadius:`16px`,padding:`1.2rem 1.4rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(236, 137, 34, 0.5)`,e.currentTarget.style.transform=`translateY(-3px)`,e.currentTarget.style.background=`rgba(12, 24, 48, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`,e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.background=`rgba(8, 16, 32, 0.65)`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`},children:[(0,g.jsx)(`div`,{style:{width:`44px`,height:`44px`,borderRadius:`10px`,border:`1px solid rgba(255, 255, 255, 0.15)`,background:`rgba(255, 255, 255, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`},children:(0,g.jsx)(vu,{size:20})}),(0,g.jsx)(`span`,{style:{color:`#ffffff`,fontWeight:600,fontSize:e?`0.9rem`:`0.98rem`},children:`info@cavinfotech.com`})]}),(0,g.jsx)(`div`,{style:{width:`36px`,height:`36px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`},children:(0,g.jsx)(ou,{size:18})})]})}),(0,g.jsx)(`a`,{href:`tel:+919280233347`,style:{textDecoration:`none`},children:(0,g.jsxs)(`div`,{style:{background:`rgba(8, 16, 32, 0.65)`,border:`1px solid rgba(255, 255, 255, 0.12)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`,borderRadius:`16px`,padding:`1.2rem 1.4rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(236, 137, 34, 0.5)`,e.currentTarget.style.transform=`translateY(-3px)`,e.currentTarget.style.background=`rgba(12, 24, 48, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`,e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.background=`rgba(8, 16, 32, 0.65)`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`},children:[(0,g.jsx)(`div`,{style:{width:`44px`,height:`44px`,borderRadius:`10px`,border:`1px solid rgba(255, 255, 255, 0.15)`,background:`rgba(255, 255, 255, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`},children:(0,g.jsx)(bu,{size:20})}),(0,g.jsx)(`span`,{style:{color:`#ffffff`,fontWeight:600,fontSize:e?`0.9rem`:`0.98rem`},children:`+91 9280233347`})]}),(0,g.jsx)(`div`,{style:{width:`36px`,height:`36px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`},children:(0,g.jsx)(ou,{size:18})})]})}),(0,g.jsxs)(`div`,{style:{background:`rgba(8, 16, 32, 0.65)`,border:`1px solid rgba(255, 255, 255, 0.12)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`,borderRadius:`16px`,padding:`1.2rem 1.4rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(236, 137, 34, 0.5)`,e.currentTarget.style.transform=`translateY(-3px)`,e.currentTarget.style.background=`rgba(12, 24, 48, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`,e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.background=`rgba(8, 16, 32, 0.65)`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`},children:[(0,g.jsx)(`div`,{style:{width:`44px`,height:`44px`,borderRadius:`10px`,border:`1px solid rgba(255, 255, 255, 0.15)`,background:`rgba(255, 255, 255, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`,flexShrink:0},children:(0,g.jsx)(n,{size:20})}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.15rem`},children:[(0,g.jsx)(`span`,{style:{color:`#ffffff`,fontWeight:600,fontSize:e?`0.85rem`:`0.9rem`},children:`Mon - Fri: 9 am - 6 pm`}),(0,g.jsx)(`span`,{style:{color:`#cbd5e1`,fontWeight:500,fontSize:e?`0.82rem`:`0.86rem`},children:`Sat: 9 am - 1 pm`})]})]}),(0,g.jsx)(`div`,{style:{width:`36px`,height:`36px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`,flexShrink:0},children:(0,g.jsx)(ou,{size:18})})]})]})}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},style:{marginTop:e?`3.5rem`:`5.5rem`,textAlign:`center`,position:`relative`,zIndex:2,width:`100%`,overflow:`hidden`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.5vw, 2.8rem)`,fontWeight:700,color:`#ffffff`,letterSpacing:`-0.02em`,marginBottom:e?`2.2rem`:`3.5rem`},children:`Trusted by Manufacturing Teams Across India`}),(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,overflow:`hidden`,padding:`1.2rem 0`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,bottom:0,width:e?`10%`:`16%`,background:`linear-gradient(to right, #020710 0%, transparent 100%)`,zIndex:5,pointerEvents:`none`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,bottom:0,width:e?`10%`:`16%`,background:`linear-gradient(to left, #020710 0%, transparent 100%)`,zIndex:5,pointerEvents:`none`}}),(0,g.jsx)(Z.div,{animate:{x:[`-50%`,`0%`]},transition:{x:{repeat:1/0,repeatType:`loop`,duration:e?22:30,ease:`linear`}},style:{display:`flex`,alignItems:`center`,gap:e?`3.5rem`:`6rem`,width:`max-content`},children:[{name:`CavinKare`,image:`/assets/Frame 27.svg`,height:60},{name:`Chola MS`,image:`/assets/Frame 34.svg`,height:54},{name:`Polyhose`,image:`/assets/Frame 30.svg`,height:54},{name:`Dawn Pictures`,image:`/assets/Frame 32.svg`,height:62},{name:`Hero`,image:`/assets/Frame 35.svg`,height:56},{name:`MRF`,image:`/assets/Frame 33.svg`,height:48},{name:`Valeo`,image:`/assets/Frame 28.svg`,height:60},{name:`ACA Global`,image:`/assets/Frame 31.svg`,height:54},{name:`CavinKare`,image:`/assets/Frame 27.svg`,height:60},{name:`Chola MS`,image:`/assets/Frame 34.svg`,height:54},{name:`Polyhose`,image:`/assets/Frame 30.svg`,height:54},{name:`Dawn Pictures`,image:`/assets/Frame 32.svg`,height:62},{name:`Hero`,image:`/assets/Frame 35.svg`,height:56},{name:`MRF`,image:`/assets/Frame 33.svg`,height:48},{name:`Valeo`,image:`/assets/Frame 28.svg`,height:60},{name:`ACA Global`,image:`/assets/Frame 31.svg`,height:54},{name:`CavinKare`,image:`/assets/Frame 27.svg`,height:60},{name:`Chola MS`,image:`/assets/Frame 34.svg`,height:54},{name:`Polyhose`,image:`/assets/Frame 30.svg`,height:54},{name:`Dawn Pictures`,image:`/assets/Frame 32.svg`,height:62},{name:`Hero`,image:`/assets/Frame 35.svg`,height:56},{name:`MRF`,image:`/assets/Frame 33.svg`,height:48},{name:`Valeo`,image:`/assets/Frame 28.svg`,height:60},{name:`ACA Global`,image:`/assets/Frame 31.svg`,height:54}].map((t,n)=>(0,g.jsx)(`img`,{src:a(t.image),alt:`${t.name} logo`,style:{height:e?`${Math.round(t.height*.78)}px`:`${t.height}px`,width:`auto`,objectFit:`contain`,transition:`transform 0.3s ease`,cursor:`pointer`},onMouseEnter:e=>{e.currentTarget.style.transform=`scale(1.1)`},onMouseLeave:e=>{e.currentTarget.style.transform=`scale(1)`}},n))})]})]}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},style:{position:`relative`,marginTop:e?`4rem`:`6rem`,marginBottom:`2rem`,width:`100%`,maxWidth:`100%`,boxSizing:`border-box`,overflow:`hidden`,borderRadius:`24px`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,bottom:0,width:e?`12%`:`18%`,background:`linear-gradient(to right, #020710 0%, rgba(2, 7, 16, 0.8) 50%, transparent 100%)`,zIndex:10,pointerEvents:`none`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,right:0,bottom:0,width:e?`12%`:`18%`,background:`linear-gradient(to left, #020710 0%, rgba(2, 7, 16, 0.8) 50%, transparent 100%)`,zIndex:10,pointerEvents:`none`}}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,gap:e?`5px`:`14px`,overflowX:`hidden`,padding:e?`0.5rem 0`:`1rem 0`,width:`100%`,scrollbarWidth:`none`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:e?`5px`:`14px`,flexShrink:0},children:[(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`68px`:`190px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`68px`:`190px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:e?`5px`:`14px`,flexShrink:0},children:[(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})]}),(0,g.jsx)(`div`,{style:{flexShrink:0},children:(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`142px`:`394px`,borderRadius:e?`8px`:`20px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})}),(0,g.jsx)(`div`,{style:{flexShrink:0},children:(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`142px`:`394px`,borderRadius:e?`8px`:`20px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1527192491265-7e15c55b1ed2?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})}),(0,g.jsx)(`div`,{style:{flexShrink:0},children:(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`142px`:`394px`,borderRadius:e?`8px`:`20px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})}),(0,g.jsx)(`div`,{style:{flexShrink:0},children:(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`142px`:`394px`,borderRadius:e?`8px`:`20px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1517842645767-c639042777db?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:e?`5px`:`14px`,flexShrink:0},children:[(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`40px`:`155px`,height:e?`44px`:`122px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:e?`5px`:`14px`,flexShrink:0},children:[(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`68px`:`190px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1542744836-561732845500?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,g.jsx)(`div`,{style:{width:e?`38px`:`150px`,height:e?`68px`:`190px`,borderRadius:e?`7px`:`18px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:`https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=500&q=80`,alt:``,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})})]})]})]}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},style:{position:`relative`,marginTop:e?`4rem`:`7rem`,marginBottom:`3rem`,width:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,g.jsx)(`div`,{style:{position:`relative`,width:`100%`,textAlign:`center`,zIndex:1,marginBottom:e?`0.75rem`:`-2.5rem`},children:(0,g.jsx)(`h2`,{style:{fontSize:e?`clamp(1.3rem, 6vw, 2.2rem)`:`clamp(2.5rem, 6.5vw, 5.5rem)`,fontWeight:800,letterSpacing:`-0.02em`,color:`rgba(255, 255, 255, 0.45)`,margin:0,lineHeight:1.1,whiteSpace:`nowrap`},children:`Drop By Our Office`})}),(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,maxWidth:`1100px`,borderRadius:`24px`,overflow:`hidden`,boxShadow:`0 30px 60px rgba(0, 0, 0, 0.7)`,zIndex:2},children:[(0,g.jsx)(`img`,{src:a(`/assets/Office photo.png`),alt:`Cavin Infotech Chennai Office Building`,style:{width:`100%`,height:e?`380px`:`540px`,objectFit:`cover`,display:`block`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`
linear-gradient(to top, #020710 0%, rgba(2, 7, 16, 0.85) 40%, transparent 75%),
linear-gradient(to right, rgba(2, 7, 16, 0.8) 0%, transparent 20%),
linear-gradient(to left, rgba(2, 7, 16, 0.8) 0%, transparent 20%),
linear-gradient(to bottom, rgba(2, 7, 16, 0.6) 0%, transparent 20%)
`,pointerEvents:`none`,zIndex:1}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:e?`1.8rem 1.5rem`:`3.5rem 3.5rem`,zIndex:2,display:`flex`,flexDirection:`column`,gap:`0.85rem`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`clamp(1.6rem, 3.2vw, 2.7rem)`,fontWeight:700,color:`#ffffff`,margin:0,letterSpacing:`-0.01em`},children:`Cavin Infotech - Chennai`}),(0,g.jsxs)(`p`,{style:{margin:0,fontSize:e?`0.88rem`:`1.02rem`,color:`#e2e8f0`,lineHeight:1.5,fontWeight:400},children:[(0,g.jsx)(`strong`,{style:{color:`#d6802e`,fontWeight:700},children:`Address: `}),`1st Floor, Cavin Ville, 12/1, Cenotaph Rd, Rathna Nagar, Alwarpet, Chennai, Tamil Nadu 600018`]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:e?`0.5rem 1.5rem`:`0rem 2rem`,fontSize:e?`0.88rem`:`1.02rem`,color:`#e2e8f0`,lineHeight:1.5},children:[(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`strong`,{style:{color:`#d6802e`,fontWeight:700},children:`Email: `}),`info@cavinfotech.com`]}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`strong`,{style:{color:`#d6802e`,fontWeight:700},children:`Phone: `}),`+91 9280233347`]})]})]})]})]})]})]})}function Nu({isMobile:e,onOpenStrategy:t,onNavigate:n}){let r=a(`/assets/Background pattern About Us Hero section.svg`),i=a(`/assets/Spotlight vector.svg`),o={hidden:{opacity:0,y:35},visible:{opacity:1,y:0,transition:{duration:.8,ease:[.22,1,.36,1]}}},s={hidden:{},visible:{transition:{staggerChildren:.1}}},c={hidden:{opacity:0,y:25},visible:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}},l=e=>({hidden:{opacity:0,scale:.85,y:15},visible:{opacity:1,scale:1,y:0,transition:{delay:e*.12,duration:.55,ease:[.22,1,.36,1]}}}),u=e=>({hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{delay:e*.08,duration:.7,ease:[.22,1,.36,1]}}});return(0,g.jsxs)(`div`,{style:{backgroundColor:`#020710`,color:`#ffffff`,minHeight:`100vh`,width:`100%`,position:`relative`,overflowX:`hidden`},children:[(0,g.jsxs)(`section`,{id:`about-hero`,style:{position:`relative`,minHeight:`88vh`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:e?`6rem 1.25rem 4rem`:`8rem 2rem 5rem`,textAlign:`center`,overflow:`hidden`,backgroundColor:`#020611`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`url('${r}')`,backgroundSize:`cover`,backgroundPosition:`center`,opacity:.85,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,width:e?`100%`:`82%`,height:e?`85%`:`95%`,maxWidth:`1250px`,maxHeight:`880px`,backgroundImage:`url('${i}')`,backgroundSize:`contain`,backgroundRepeat:`no-repeat`,backgroundPosition:`top left`,transform:e?`none`:`translate(-2%, -3%) scale(1.05)`,transformOrigin:`top left`,opacity:.72,pointerEvents:`none`,zIndex:1,mixBlendMode:`screen`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`48%`,left:`50%`,transform:`translate(-50%, -50%)`,width:e?`320px`:`750px`,height:e?`200px`:`400px`,background:`radial-gradient(ellipse at center, rgba(255, 170, 0, 0.18) 0%, rgba(217, 119, 6, 0.06) 55%, transparent 75%)`,filter:`blur(50px)`,pointerEvents:`none`,zIndex:1}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`,zIndex:2},children:[(0,g.jsx)(Z.div,{animate:{opacity:[.3,.8,.3],scale:[.8,1.1,.8]},transition:{duration:3.5,repeat:1/0,ease:`easeInOut`},style:{position:`absolute`,top:`32%`,left:e?`8%`:`22%`,color:`#FFD700`},children:(0,g.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z`})})}),(0,g.jsx)(Z.div,{animate:{opacity:[.4,.9,.4],scale:[.9,1.2,.9]},transition:{duration:4.2,repeat:1/0,ease:`easeInOut`,delay:1},style:{position:`absolute`,top:`28%`,right:e?`6%`:`24%`,color:`#FFFFFF`},children:(0,g.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z`})})}),(0,g.jsx)(Z.div,{animate:{opacity:[.2,.7,.2],scale:[.7,1,.7]},transition:{duration:3.8,repeat:1/0,ease:`easeInOut`,delay:.5},style:{position:`absolute`,bottom:`22%`,left:e?`12%`:`30%`,color:`#FFD700`},children:(0,g.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z`})})}),(0,g.jsx)(Z.div,{animate:{opacity:[.3,.85,.3],scale:[.8,1.15,.8]},transition:{duration:4,repeat:1/0,ease:`easeInOut`,delay:1.5},style:{position:`absolute`,bottom:`24%`,right:e?`10%`:`31%`,color:`#FFFFFF`},children:(0,g.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z`})})})]}),(0,g.jsxs)(`div`,{style:{maxWidth:`1000px`,margin:`0 auto`,width:`100%`,position:`relative`,zIndex:10,display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,g.jsx)(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,padding:e?`0.4rem 1.1rem`:`0.45rem 1.5rem`,borderRadius:`9999px`,border:`1px solid rgba(148, 163, 184, 0.25)`,background:`rgba(10, 22, 40, 0.55)`,backdropFilter:`blur(12px)`,WebkitBackdropFilter:`blur(12px)`,boxShadow:`0 0 20px rgba(0, 149, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15)`,marginBottom:e?`1.75rem`:`2.25rem`},children:(0,g.jsx)(`span`,{style:{color:`#CBD5E1`,fontSize:e?`0.75rem`:`0.85rem`,fontWeight:600,letterSpacing:`0.18em`,textTransform:`uppercase`,whiteSpace:`nowrap`},children:`AI • DATA • CLOUD • WEB & APP`})}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.15,ease:[.22,1,.36,1]},style:{display:`flex`,flexDirection:`column`,alignItems:`center`,marginBottom:`1.75rem`},children:[(0,g.jsx)(`h1`,{style:{fontSize:e?`2.2rem`:`clamp(2.8rem, 4.8vw, 4.5rem)`,fontWeight:600,color:`#94A3B8`,letterSpacing:`-0.02em`,lineHeight:1.15,margin:0},children:`Where Technology Meets`}),(0,g.jsxs)(`h2`,{style:{fontSize:e?`2.5rem`:`clamp(3.2rem, 5.5vw, 5.2rem)`,fontWeight:800,letterSpacing:`-0.02em`,lineHeight:1.15,margin:`0.1em 0 0 0`},children:[(0,g.jsx)(`span`,{style:{color:`#FFFFFF`,fontWeight:700},children:`Business `}),(0,g.jsx)(`span`,{style:{background:`linear-gradient(135deg, #FFDF00 0%, #FFAA00 45%, #D97706 90%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,display:`inline-block`},children:`Transformation`})]})]}),(0,g.jsx)(Z.p,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3,ease:[.22,1,.36,1]},style:{maxWidth:`780px`,fontSize:e?`0.95rem`:`clamp(1rem, 1.2vw, 1.125rem)`,color:`#94A3B8`,lineHeight:1.75,fontWeight:400,margin:`0 auto 2.75rem auto`,padding:e?`0 0.5rem`:0},children:`Founded in 2022, Cavin Infotech empowers forward-thinking organizations to harness the full potential of AI-powered solutions, smart manufacturing, intelligent automation, enterprise software, and digital transformation services. We turn complex challenges into measurable growth, efficiency, and lasting competitive advantage.`}),(0,g.jsxs)(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.45,ease:[.22,1,.36,1]},style:{display:`flex`,flexDirection:e?`column`:`row`,gap:`1.25rem`,alignItems:`center`,justifyContent:`center`,width:e?`100%`:`auto`},children:[(0,g.jsx)(Z.button,{whileHover:{scale:1.03,translateY:-2},whileTap:{scale:.98},onClick:()=>{n?n(`Products`):window.location.hash=`products`},style:{background:`linear-gradient(180deg, #1A283D 0%, #0F1A2E 100%)`,border:`1px solid rgba(59, 130, 246, 0.35)`,color:`#FFFFFF`,padding:e?`0.85rem 2rem`:`0.9rem 2.25rem`,borderRadius:`9999px`,fontSize:`0.98rem`,fontWeight:600,cursor:`pointer`,boxShadow:`0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12)`,transition:`all 0.3s ease`,width:e?`100%`:`auto`,maxWidth:e?`300px`:`none`},children:`Explore Our Services`}),(0,g.jsx)(Z.button,{whileHover:{scale:1.03,translateY:-2},whileTap:{scale:.98},onClick:()=>{let e=document.getElementById(`our-story`);e&&e.scrollIntoView({behavior:`smooth`})},style:{background:`linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%)`,border:`none`,color:`#0F172A`,padding:e?`0.85rem 2rem`:`0.9rem 2.25rem`,borderRadius:`9999px`,fontSize:`0.98rem`,fontWeight:600,cursor:`pointer`,boxShadow:`0 0 25px rgba(255, 255, 255, 0.35)`,transition:`all 0.3s ease`,width:e?`100%`:`auto`,maxWidth:e?`300px`:`none`},children:`Discover our story`})]})]})]}),(0,g.jsx)(`section`,{id:`our-story`,style:{padding:e?`4rem 1.25rem`:`7rem 4rem 8rem 4rem`,backgroundColor:`#020611`,borderTop:`1px solid rgba(255, 255, 255, 0.05)`,position:`relative`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1320px`,margin:`0 auto`,width:`100%`,display:`flex`,flexDirection:`column`,gap:e?`3.5rem`:`5.5rem`},children:[(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{display:`flex`,flexDirection:e?`column`:`row`,gap:e?`1rem`:`4rem`,alignItems:`flex-start`},children:[(0,g.jsxs)(`div`,{style:{width:e?`100%`:`340px`,flexShrink:0,display:`flex`,gap:`1.25rem`,alignItems:`stretch`},children:[(0,g.jsx)(`div`,{style:{width:`4px`,background:`linear-gradient(180deg, #FFB800 0%, #D97706 100%)`,borderRadius:`2px`,flexShrink:0}}),(0,g.jsx)(`h2`,{style:{fontSize:e?`1.75rem`:`2.25rem`,fontWeight:700,color:`#FFFFFF`,margin:0,lineHeight:1.2},children:`Our Story`})]}),(0,g.jsxs)(`div`,{style:{flex:1,color:`#94A3B8`,fontSize:`1.05rem`,lineHeight:1.75,display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[(0,g.jsx)(`p`,{style:{margin:0},children:`Cavin Infotech was founded with a clear vision: to bridge the gap between traditional operations and intelligent, technology-led growth. In just a few years, we have emerged as a trusted partner for enterprises seeking AI solutions, smart factory platforms, SAP excellence, custom software, and immersive technologies.`}),(0,g.jsx)(`p`,{style:{margin:0},children:`Today, we help manufacturing, FMCG, engineering, retail, and technology companies innovate faster, operate smarter, and thrive in an increasingly digital world.`})]})]}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{display:`flex`,flexDirection:e?`column`:`row`,gap:e?`1rem`:`4rem`,alignItems:`flex-start`},children:[(0,g.jsxs)(`div`,{style:{width:e?`100%`:`340px`,flexShrink:0,display:`flex`,gap:`1.25rem`,alignItems:`stretch`},children:[(0,g.jsx)(`div`,{style:{width:`4px`,background:`linear-gradient(180deg, #FFB800 0%, #D97706 100%)`,borderRadius:`2px`,flexShrink:0}}),(0,g.jsx)(`h2`,{style:{fontSize:e?`1.75rem`:`2.25rem`,fontWeight:700,color:`#FFFFFF`,margin:0,lineHeight:1.2},children:`Our Purpose`})]}),(0,g.jsx)(`div`,{style:{flex:1,color:`#94A3B8`,fontSize:`1.05rem`,lineHeight:1.75},children:(0,g.jsx)(`p`,{style:{margin:0},children:`To empower organizations with scalable, secure, and future-ready technology solutions that deliver real business value, drive operational excellence, and support sustainable long-term growth.`})})]}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{display:`flex`,flexDirection:e?`column`:`row`,gap:e?`1.5rem`:`4rem`,alignItems:`flex-start`},children:[(0,g.jsxs)(`div`,{style:{width:e?`100%`:`340px`,flexShrink:0,display:`flex`,gap:`1.25rem`,alignItems:`stretch`},children:[(0,g.jsx)(`div`,{style:{width:`4px`,background:`linear-gradient(180deg, #FFB800 0%, #D97706 100%)`,borderRadius:`2px`,flexShrink:0}}),(0,g.jsxs)(`h2`,{style:{fontSize:e?`1.75rem`:`2.25rem`,fontWeight:700,color:`#FFFFFF`,margin:0,lineHeight:1.2},children:[`A Message from`,(0,g.jsx)(`br`,{}),`Our Managing`,(0,g.jsx)(`br`,{}),`Director`]})]}),(0,g.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:e?`column`:`row`,gap:e?`2.5rem`:`3.5rem`,alignItems:`flex-start`},children:[(0,g.jsxs)(`div`,{style:{flex:1,display:`flex`,flexDirection:`column`,gap:`1.5rem`,paddingTop:`0.2rem`},children:[(0,g.jsx)(`p`,{style:{color:`#E2E8F0`,fontSize:`1.08rem`,lineHeight:1.6,fontStyle:`italic`,fontWeight:500,margin:0},children:`“Technology is reshaping industries at an unprecedented pace. The organizations that embrace innovation today will lead tomorrow.”`}),(0,g.jsx)(`p`,{style:{color:`#94A3B8`,fontSize:`0.98rem`,lineHeight:1.75,fontStyle:`italic`,margin:0},children:`At Cavin Infotech, we go beyond simple technology implementation. We partner with businesses to accelerate their digital transformation journey through Generative AI, Agentic AI, smart manufacturing, intelligent automation, and enterprise solutions. Our commitment is to deliver meaningful impact not just systems through deep collaboration, relentless innovation, and uncompromising quality.`})]}),(0,g.jsx)(Z.div,{whileHover:{scale:1.03},style:{width:e?`100%`:`240px`,flexShrink:0,maxWidth:`250px`},children:(0,g.jsx)(`img`,{src:a(`/assets/usha portrait.svg`),alt:`Managing Director - Cavin Infotech`,style:{width:`100%`,height:`auto`,display:`block`}})})]})]})]})}),(0,g.jsx)(`section`,{id:`what-defines-us`,style:{padding:e?`4rem 1.25rem`:`7rem 4rem`,backgroundColor:`#020611`,borderTop:`1px solid rgba(255, 255, 255, 0.05)`,position:`relative`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1320px`,margin:`0 auto`,width:`100%`},children:[(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{marginBottom:e?`2.5rem`:`3.5rem`},children:[(0,g.jsx)(`h2`,{style:{fontSize:e?`2rem`:`3.2rem`,fontWeight:700,color:`#FFFFFF`,letterSpacing:`-0.02em`,margin:`0 0 0.75rem 0`},children:`What Defines Us`}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.78rem`:`0.82rem`,fontWeight:400,color:`#64748B`,letterSpacing:`0.05em`,textTransform:`uppercase`,margin:0,lineHeight:1.6,maxWidth:`700px`},children:`A UNIFIED 3D DASHBOARD THAT BRINGS ADVANCED ANALYTICS, REAL-TIME DATA FLOWS, AND AUTONOMOUS AI AGENTS INTO A SINGLE PANE OF GLASS.`})]}),(0,g.jsx)(`div`,{style:{borderRadius:`20px`,border:`1px solid #10212D`,background:`#090f1a`,padding:e?`10px`:`12px`},children:(0,g.jsx)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-50px`},variants:s,style:{display:`grid`,gridTemplateColumns:e?`1fr`:`repeat(3, 1fr)`,gridTemplateRows:`auto auto`,gap:e?`10px`:`12px`},children:[{title:`Innovation Driven`,desc:`We continuously explore AI, Industrial IoT, automation, and Extended Reality (XR) to create cutting-edge solutions that drive true business transformation.`,subtext:`Strategy-led technology thinking for meaningful business outcomes.`,highlighted:!1},{title:`Customer-Centric Approach`,desc:`Every solution is tailored to your specific goals, operational realities, and desired business outcomes.`,subtext:`User-first experiences shaped by clarity, usability, and adoption.`,highlighted:!0},{title:`Technology Excellence`,desc:`We deliver robust enterprise AI, smart factory platforms, SAP managed services, and scalable custom software built for performance and growth.`,subtext:`Reliable engineering practices for secure and scalable systems.`,highlighted:!1},{title:`Agile Mindset`,desc:`We move fast, adapt quickly, and help our clients stay ahead in a rapidly evolving digital landscape.`,subtext:`Intelligent transformation powered by AI, data, and automation.`,highlighted:!1},{title:`Secure & Reliable`,desc:`Security, compliance, and operational reliability are embedded in everything we build.`,subtext:`Future-ready solutions built for continuous growth.`,highlighted:!1},{title:`Outcome Focused`,desc:`We measure success by improved efficiency, productivity, visibility, and tangible business growth.`,subtext:`Trusted execution through clarity, responsibility, and partnership.`,highlighted:!1}].map(t=>(0,g.jsxs)(Z.div,{variants:c,style:{borderRadius:`14px`,padding:e?`1.5rem`:`1.75rem 1.75rem 1.5rem`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,minHeight:e?`200px`:`260px`,position:`relative`,overflow:`hidden`,background:t.highlighted?`#737E82`:`#1C1D22`,border:t.highlighted?`1px solid #6B6A6C`:`1px solid #2B2F38`,boxShadow:t.highlighted?`0 14px 36px rgba(0, 0, 0, 0.45)`:`none`,transition:`border-color 0.3s ease, box-shadow 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=t.highlighted?`#8a8a8c`:`#3d4250`},onMouseLeave:e=>{e.currentTarget.style.borderColor=t.highlighted?`#6B6A6C`:`#2B2F38`},children:[t.highlighted&&(0,g.jsx)(`img`,{src:a(`/assets/highlight card blur items 02.svg`),alt:``,style:{position:`absolute`,top:0,left:0,width:`100%`,pointerEvents:`none`,zIndex:0}}),t.highlighted&&(0,g.jsx)(`img`,{src:a(`/assets/highlight card blur items 01.svg`),alt:``,style:{position:`absolute`,bottom:0,left:0,width:`100%`,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,g.jsx)(`h3`,{style:{fontSize:e?`1.2rem`:`1.35rem`,fontWeight:600,color:`#FFFFFF`,margin:`0 0 0.85rem 0`,letterSpacing:`-0.01em`,lineHeight:1.25},children:t.title}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.88rem`:`0.93rem`,color:t.highlighted?`#E2E8F0`:`#94A3B8`,lineHeight:1.65,fontWeight:400,margin:0},children:t.desc})]}),(0,g.jsx)(`p`,{style:{position:`relative`,zIndex:1,fontSize:`0.82rem`,color:t.highlighted?`#CBD5E1`:`#64748B`,lineHeight:1.5,margin:`1.75rem 0 0 0`,fontWeight:400},children:t.subtext})]},t.title))})})]})}),(0,g.jsxs)(`section`,{id:`growth-journey`,style:{padding:e?`4rem 0 0 0`:`7rem 0 0 0`,backgroundColor:`#020611`,borderTop:`1px solid rgba(255, 255, 255, 0.05)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(`/assets/Ellipse blurred.svg`),alt:``,style:{position:`absolute`,bottom:0,right:0,width:e?`80%`:`55%`,maxWidth:`900px`,pointerEvents:`none`,zIndex:0,opacity:.85}}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{padding:e?`0 1.25rem`:`0 4rem`,maxWidth:`1320px`,margin:`0 auto`,width:`100%`,boxSizing:`border-box`,position:`relative`,zIndex:1},children:[(0,g.jsx)(`h2`,{style:{fontSize:e?`2rem`:`3.2rem`,fontWeight:700,color:`#FFFFFF`,letterSpacing:`-0.02em`,margin:`0 0 0.75rem 0`},children:`Our Growth Journey`}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.78rem`:`0.82rem`,fontWeight:400,color:`#64748B`,letterSpacing:`0.05em`,textTransform:`uppercase`,margin:`0 0 0 0`,lineHeight:1.6,maxWidth:`460px`},children:`BUILDING CAPABILITIES. CREATING IMPACT. DRIVING INNOVATION.`})]}),!e&&(0,g.jsx)(`div`,{style:{maxWidth:`1320px`,margin:`2rem auto 8rem auto`,padding:`0 4rem`,position:`relative`,width:`100%`,boxSizing:`border-box`,zIndex:1},children:(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,aspectRatio:`1692 / 800`},children:[(0,g.jsx)(Z.img,{initial:{opacity:0,clipPath:`inset(0 100% 0 0)`},whileInView:{opacity:1,clipPath:`inset(0 0% 0 0)`},viewport:{once:!0,margin:`-50px`},transition:{duration:1.5,ease:`easeInOut`},src:a(`/assets/Path Line.svg`),alt:`Growth Journey Path`,style:{display:`block`,width:`100%`,height:`100%`,position:`absolute`,top:0,left:0,zIndex:1}}),(0,g.jsx)(`span`,{style:{position:`absolute`,left:`12%`,top:`43%`,fontSize:`7.5vw`,fontWeight:900,color:`rgba(255,255,255,0.035)`,lineHeight:1,zIndex:0,pointerEvents:`none`,userSelect:`none`},children:`1`}),(0,g.jsx)(`span`,{style:{position:`absolute`,left:`36%`,top:`25%`,fontSize:`7.5vw`,fontWeight:900,color:`rgba(255,255,255,0.035)`,lineHeight:1,zIndex:0,pointerEvents:`none`,userSelect:`none`},children:`2`}),(0,g.jsx)(`span`,{style:{position:`absolute`,left:`64%`,top:`22%`,fontSize:`7.5vw`,fontWeight:900,color:`rgba(255,255,255,0.035)`,lineHeight:1,zIndex:0,pointerEvents:`none`,userSelect:`none`},children:`3`}),(0,g.jsx)(`span`,{style:{position:`absolute`,left:`86%`,top:`-18%`,fontSize:`7.5vw`,fontWeight:900,color:`rgba(255,255,255,0.035)`,lineHeight:1,zIndex:0,pointerEvents:`none`,userSelect:`none`},children:`4`}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0},custom:0,variants:l(0),style:{position:`absolute`,left:`14.5%`,top:`67.2%`,zIndex:3},children:[(0,g.jsx)(`img`,{src:a(`/assets/Circle point.svg`),alt:`Milestone 1`,style:{transform:`translate(-50%, -50%)`,width:`29px`,height:`29px`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,left:0,top:`22px`,width:`210px`},children:[(0,g.jsxs)(`h3`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.35rem 0`,letterSpacing:`0.04em`,textTransform:`uppercase`,lineHeight:1.25},children:[`TECHNOLOGY`,(0,g.jsx)(`br`,{}),`EXCELLENCE`]}),(0,g.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94A3B8`,lineHeight:1.5,margin:0},children:`Developing scalable digital solutions that solve real-world business challenges.`})]})]}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0},custom:1,variants:l(1),style:{position:`absolute`,left:`34%`,top:`45.4%`,zIndex:3},children:[(0,g.jsx)(`img`,{src:a(`/assets/Circle point.svg`),alt:`Milestone 2`,style:{transform:`translate(-50%, -50%)`,width:`29px`,height:`29px`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,left:`16px`,top:`18px`,width:`210px`},children:[(0,g.jsxs)(`h3`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.35rem 0`,letterSpacing:`0.04em`,textTransform:`uppercase`,lineHeight:1.25},children:[`INTELLIGENT`,(0,g.jsx)(`br`,{}),`AUTOMATION`]}),(0,g.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94A3B8`,lineHeight:1.5,margin:0},children:`Transforming operations with AI, automation, and data-driven intelligence.`})]})]}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0},custom:2,variants:l(2),style:{position:`absolute`,left:`58%`,top:`41.76%`,zIndex:3},children:[(0,g.jsx)(`img`,{src:a(`/assets/Circle point.svg`),alt:`Milestone 3`,style:{transform:`translate(-50%, -50%)`,width:`29px`,height:`29px`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,left:`16px`,top:`18px`,width:`210px`},children:[(0,g.jsxs)(`h3`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.35rem 0`,letterSpacing:`0.04em`,textTransform:`uppercase`,lineHeight:1.25},children:[`SMART`,(0,g.jsx)(`br`,{}),`MANUFACTURING`]}),(0,g.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94A3B8`,lineHeight:1.5,margin:0},children:`Connecting people, processes, and machines through Industry 4.0 technologies.`})]})]}),(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0},custom:3,variants:l(3),style:{position:`absolute`,left:`78.34%`,top:`3.725%`,zIndex:3},children:[(0,g.jsx)(`img`,{src:a(`/assets/Circle point.svg`),alt:`Milestone 4`,style:{transform:`translate(-50%, -50%)`,width:`29px`,height:`29px`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,left:`22px`,top:0,width:`210px`},children:[(0,g.jsxs)(`h3`,{style:{fontSize:`0.95rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.35rem 0`,letterSpacing:`0.04em`,textTransform:`uppercase`,lineHeight:1.25},children:[`FUTURE`,(0,g.jsx)(`br`,{}),`INNOVATION`]}),(0,g.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#94A3B8`,lineHeight:1.5,margin:0},children:`Exploring emerging technologies to shape the next generation of enterprise solutions.`})]})]})]})}),e&&(0,g.jsx)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-50px`},variants:s,style:{padding:`3rem 1.25rem`,display:`flex`,flexDirection:`column`,gap:`2.5rem`},children:[{num:`1`,title:`TECHNOLOGY
EXCELLENCE`,desc:`Developing scalable digital solutions that solve real-world business challenges.`},{num:`2`,title:`INTELLIGENT
AUTOMATION`,desc:`Transforming operations with AI, automation, and data-driven intelligence.`},{num:`3`,title:`SMART
MANUFACTURING`,desc:`Connecting people, processes, and machines through Industry 4.0 technologies.`},{num:`4`,title:`FUTURE
INNOVATION`,desc:`Exploring emerging technologies to shape the next generation of enterprise solutions.`}].map(e=>(0,g.jsxs)(Z.div,{variants:c,style:{display:`flex`,gap:`1.25rem`,alignItems:`flex-start`},children:[(0,g.jsx)(`div`,{style:{flexShrink:0,width:`36px`,height:`36px`,borderRadius:`50%`,background:`#F67057`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontWeight:700,fontSize:`1rem`,color:`#fff`},children:e.num}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h3`,{style:{fontSize:`1rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.4rem 0`,letterSpacing:`0.04em`,whiteSpace:`pre-line`},children:e.title}),(0,g.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94A3B8`,lineHeight:1.6,margin:0},children:e.desc})]})]},e.num))})]}),(0,g.jsxs)(`section`,{id:`people-behind-tech`,style:{padding:e?`4rem 0`:`7rem 0 6rem 0`,backgroundColor:`#020611`,borderTop:`1px solid rgba(255, 255, 255, 0.05)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{textAlign:`center`,padding:e?`0 1.25rem 2.5rem`:`0 2rem 4rem`,position:`relative`,zIndex:2},children:[(0,g.jsx)(`h2`,{style:{fontSize:e?`2rem`:`3.2rem`,fontWeight:700,color:`#FFFFFF`,letterSpacing:`-0.02em`,margin:`0 0 0.75rem 0`},children:`The People Behind the Technology`}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.78rem`:`0.82rem`,fontWeight:400,color:`#64748B`,letterSpacing:`0.07em`,textTransform:`uppercase`,margin:0,lineHeight:1.6},children:`OUR STRENGTH LIES IN OUR PEOPLE - A PASSIONATE TEAM OF`})]}),(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,maxWidth:`1380px`,margin:`0 auto`,padding:e?`0 0.5rem`:`0 2rem`,boxSizing:`border-box`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,bottom:`-20px`,left:`5%`,right:`5%`,height:e?`70px`:`160px`,background:`radial-gradient(ellipse at center bottom, rgba(218, 87, 11, 0.35) 0%, rgba(218, 87, 11, 0.1) 50%, transparent 80%)`,filter:`blur(30px)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{display:`flex`,alignItems:`flex-end`,justifyContent:`center`,gap:e?`4px`:`14px`,position:`relative`,zIndex:1},children:[{svg:`Left.svg`,title:`Visionaries`,desc:`Turning complexity into opportunity.`,topOffset:`12.86%`},{svg:`Left mid.svg`,title:`Innovators`,desc:`Transforming emerging tech into business-ready solutions.`,topOffset:`9.17%`},{svg:`Mid.svg`,title:`Architects`,desc:`Designing digital ecosystems built for growth and resilience.`,topOffset:`7.5%`},{svg:`Right mid.svg`,title:`Engineers`,desc:`Building platforms and products that push boundaries.`,topOffset:`9.17%`},{svg:`Right.svg`,title:`Problem Solvers`,desc:`Unlocking efficiency, agility, and innovation for organizations.`,topOffset:`12.86%`}].map((t,n)=>(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-50px`},custom:n,variants:u(n),whileHover:{y:e?-4:-12,transition:{duration:.3,ease:`easeOut`}},style:{position:`relative`,flex:`1 1 0`,minWidth:0,cursor:`pointer`},children:[(0,g.jsx)(`img`,{src:a(`/assets/`+t.svg),alt:t.title,style:{width:`100%`,height:`auto`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,top:t.topOffset,left:`4%`,right:`4%`,textAlign:`center`,pointerEvents:`none`,zIndex:2},children:[(0,g.jsx)(`h3`,{style:{fontSize:e?`clamp(0.38rem, 1.8vw, 0.65rem)`:`1.25rem`,fontWeight:700,color:`#FFFFFF`,margin:`0 0 0.4rem 0`,letterSpacing:e?`-0.02em`:`-0.01em`,lineHeight:1.15},children:t.title}),!e&&(0,g.jsx)(`p`,{style:{fontSize:`0.8rem`,color:`#FFFFFF`,opacity:.9,lineHeight:1.45,fontWeight:400,margin:0},children:t.desc})]})]},t.title))})]})]}),(0,g.jsx)(`section`,{id:`what-we-believe`,style:{padding:e?`4rem 1.25rem`:`7rem 4rem`,backgroundColor:`#020611`,borderTop:`1px solid rgba(255, 255, 255, 0.05)`,position:`relative`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1320px`,margin:`0 auto`,width:`100%`},children:[(0,g.jsxs)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-100px`},variants:o,style:{marginBottom:e?`2.5rem`:`3.5rem`},children:[(0,g.jsx)(`h2`,{style:{fontSize:e?`2rem`:`3.2rem`,fontWeight:700,color:`#FFFFFF`,letterSpacing:`-0.02em`,margin:`0 0 0.75rem 0`},children:`What We Believe`}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.78rem`:`0.82rem`,fontWeight:400,color:`#64748B`,letterSpacing:`0.05em`,textTransform:`uppercase`,margin:0,lineHeight:1.6,maxWidth:`850px`},children:`WE DONT JUST DELIVER TECHNOLOGY WE BELIEVE IN TECHNOLOGY THAT TRULY TRANSFORMS BUSINESSES.`})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:e?`16px`:`24px`},children:[(0,g.jsx)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-50px`},variants:s,style:{display:`grid`,gridTemplateColumns:e?`1fr`:`repeat(3, 1fr)`,gap:e?`16px`:`24px`},children:[{title:`Intelligence Should Create Impact`,desc:`AI and intelligent automation should go far beyond task automation. They must improve decision-making, simplify operations, and deliver clear, measurable business value.`,img:`/assets/What we Believe 01.png`},{title:`Technology Should Be Human-First`,desc:`Digital systems should empower people, reduce complexity, and make work more meaningful not add to the burden.`,img:`/assets/What we Believe 02.png`},{title:`Manufacturing Should Be Smarter`,desc:`Connected factories, real-time visibility, and Industrial IoT should help businesses minimize downtime, boost productivity, and operate with greater confidence and control.`,img:`/assets/What we Believe 03.png`}].map(t=>(0,g.jsxs)(Z.div,{variants:c,style:{borderRadius:`20px`,border:`1px solid rgba(255, 255, 255, 0.08)`,background:`#0B0F19`,padding:e?`1.5rem 1.5rem 0 1.5rem`:`2.25rem 2.25rem 0 2.25rem`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,overflow:`hidden`,transition:`border-color 0.3s ease, transform 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.18)`,e.currentTarget.style.transform=`translateY(-4px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.transform=`translateY(0px)`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h3`,{style:{fontSize:e?`1.25rem`:`1.45rem`,fontWeight:600,color:`#FFFFFF`,lineHeight:1.3,margin:`0 0 0.85rem 0`,letterSpacing:`-0.01em`},children:t.title}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.88rem`:`0.92rem`,color:`#94A3B8`,lineHeight:1.6,fontWeight:400,margin:0},children:t.desc})]}),(0,g.jsx)(`div`,{style:{marginTop:`2rem`,width:`100%`,display:`flex`,justifyContent:`center`},children:(0,g.jsx)(`img`,{src:a(t.img),alt:t.title,style:{width:`100%`,height:`auto`,display:`block`,objectFit:`contain`}})})]},t.title))}),(0,g.jsx)(Z.div,{initial:`hidden`,whileInView:`visible`,viewport:{once:!0,margin:`-50px`},variants:s,style:{display:`grid`,gridTemplateColumns:e?`1fr`:`repeat(2, 1fr)`,gap:e?`16px`:`24px`},children:[{title:`Software Should Fit the Business`,desc:`Every enterprise is unique. We believe solutions must adapt to your real workflows, processes, and goals instead of forcing you to change the way you work.`,img:`/assets/What we Believe 04.png`},{title:`Innovation Should Be Practical`,desc:`New technologies like Generative AI, Agentic AI, and XR only matter when they solve actual challenges, drive efficiency, and support sustainable long-term growth.`,img:`/assets/What we Believe 05.png`}].map(t=>(0,g.jsxs)(Z.div,{variants:c,style:{borderRadius:`20px`,border:`1px solid rgba(255, 255, 255, 0.08)`,background:`#0B0F19`,padding:e?`1.5rem 1.5rem 0 1.5rem`:`2.25rem 2.25rem 0 2.25rem`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,overflow:`hidden`,transition:`border-color 0.3s ease, transform 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.18)`,e.currentTarget.style.transform=`translateY(-4px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.transform=`translateY(0px)`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h3`,{style:{fontSize:e?`1.25rem`:`1.45rem`,fontWeight:600,color:`#FFFFFF`,lineHeight:1.3,margin:`0 0 0.85rem 0`,letterSpacing:`-0.01em`},children:t.title}),(0,g.jsx)(`p`,{style:{fontSize:e?`0.88rem`:`0.92rem`,color:`#94A3B8`,lineHeight:1.6,fontWeight:400,margin:0},children:t.desc})]}),(0,g.jsx)(`div`,{style:{marginTop:`2rem`,width:`100%`,display:`flex`,justifyContent:`center`},children:(0,g.jsx)(`img`,{src:a(t.img),alt:t.title,style:{width:`100%`,height:`auto`,display:`block`,objectFit:`contain`}})})]},t.title))})]})]})})]})}function Pu({value:e,onChange:t,options:n,placeholder:r=`Select option`}){let[i,a]=(0,_.useState)(!1),o=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&a(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let s=n.find(t=>t.value===e);return(0,g.jsxs)(`div`,{ref:o,style:{position:`relative`,width:`100%`},children:[(0,g.jsxs)(`div`,{onClick:()=>a(!i),style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,background:`transparent`,borderBottom:i?`1px solid #38bdf8`:`1px solid rgba(255, 255, 255, 0.25)`,color:e?`#ffffff`:`rgba(255, 255, 255, 0.45)`,fontSize:`0.98rem`,padding:`0.5rem 0`,cursor:`pointer`,transition:`all 0.3s ease`,userSelect:`none`,boxSizing:`border-box`},children:[(0,g.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:s?s.label:r}),(0,g.jsx)(du,{size:18,style:{color:i?`#38bdf8`:`#94a3b8`,transform:i?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.3s ease, color 0.3s ease`,flexShrink:0,marginLeft:`0.5rem`}})]}),i&&(0,g.jsx)(`div`,{style:{position:`absolute`,top:`calc(100% + 8px)`,left:0,right:0,zIndex:999,background:`rgba(7, 16, 32, 0.95)`,backdropFilter:`blur(20px)`,WebkitBackdropFilter:`blur(20px)`,border:`1px solid rgba(56, 189, 248, 0.3)`,borderRadius:`16px`,boxShadow:`0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.15)`,padding:`0.5rem`,maxHeight:`250px`,overflowY:`auto`},children:n.map(n=>{let r=n.value===e;return(0,g.jsxs)(`div`,{onClick:()=>{t(n.value),a(!1)},style:{padding:`0.7rem 1rem`,borderRadius:`10px`,fontSize:`0.92rem`,fontWeight:r?600:400,color:r?`#38bdf8`:`#e2e8f0`,background:r?`rgba(56, 189, 248, 0.15)`:`transparent`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,cursor:`pointer`,transition:`all 0.2s ease`,marginBottom:`2px`},onMouseEnter:e=>{r||(e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.color=`#ffffff`)},onMouseLeave:e=>{r||(e.currentTarget.style.background=`transparent`,e.currentTarget.style.color=`#e2e8f0`)},children:[(0,g.jsx)(`span`,{children:n.label}),r&&(0,g.jsx)(uu,{size:16,style:{color:`#38bdf8`}})]},n.value)})})]})}var Fu=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Iu=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`];function Lu({value:e,onChange:t,placeholder:n=`Preferred Date`}){let[r,i]=(0,_.useState)(!1),a=(0,_.useRef)(null),o=e?new Date(e):new Date,[s,c]=(0,_.useState)(o.getFullYear()),[l,u]=(0,_.useState)(o.getMonth());(0,_.useEffect)(()=>{let e=e=>{a.current&&!a.current.contains(e.target)&&i(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let d=e=>{e.stopPropagation(),l===0?(u(11),c(e=>e-1)):u(e=>e-1)},f=e=>{e.stopPropagation(),l===11?(u(0),c(e=>e+1)):u(e=>e+1)},p=new Date(s,l,1).getDay(),m=new Date(s,l+1,0).getDate(),h=[];for(let e=0;e<p;e++)h.push(null);for(let e=1;e<=m;e++)h.push(e);let v=(e,t,n)=>`${e}-${String(t+1).padStart(2,`0`)}-${String(n).padStart(2,`0`)}`;return(0,g.jsxs)(`div`,{ref:a,style:{position:`relative`,width:`100%`},children:[(0,g.jsxs)(`div`,{onClick:()=>i(!r),style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,background:`transparent`,borderBottom:r?`1px solid #38bdf8`:`1px solid rgba(255, 255, 255, 0.25)`,color:e?`#ffffff`:`rgba(255, 255, 255, 0.45)`,fontSize:`0.98rem`,padding:`0.5rem 0`,cursor:`pointer`,transition:`all 0.3s ease`,userSelect:`none`,boxSizing:`border-box`},children:[(0,g.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e?(e=>{if(!e)return``;try{let t=e.split(`-`);if(t.length===3)return new Date(parseInt(t[0],10),parseInt(t[1],10)-1,parseInt(t[2],10)).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})}catch{}return e})(e):n}),(0,g.jsx)(lu,{size:18,style:{color:r?`#38bdf8`:`#94a3b8`,transition:`color 0.3s ease`,flexShrink:0,marginLeft:`0.5rem`}})]}),r&&(0,g.jsxs)(`div`,{style:{position:`absolute`,top:`calc(100% + 8px)`,left:0,zIndex:999,width:`280px`,background:`rgba(7, 16, 32, 0.96)`,backdropFilter:`blur(24px)`,WebkitBackdropFilter:`blur(24px)`,border:`1px solid rgba(56, 189, 248, 0.35)`,borderRadius:`18px`,boxShadow:`0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15)`,padding:`1.25rem`,userSelect:`none`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`1rem`},children:[(0,g.jsx)(`button`,{type:`button`,onClick:d,style:{background:`rgba(255, 255, 255, 0.05)`,border:`none`,borderRadius:`8px`,color:`#e2e8f0`,padding:`4px`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`},onMouseEnter:e=>e.currentTarget.style.background=`rgba(56, 189, 248, 0.2)`,onMouseLeave:e=>e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,children:(0,g.jsx)(fu,{size:18})}),(0,g.jsxs)(`span`,{style:{fontWeight:700,fontSize:`0.95rem`,color:`#ffffff`},children:[Fu[l],` `,s]}),(0,g.jsx)(`button`,{type:`button`,onClick:f,style:{background:`rgba(255, 255, 255, 0.05)`,border:`none`,borderRadius:`8px`,color:`#e2e8f0`,padding:`4px`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`},onMouseEnter:e=>e.currentTarget.style.background=`rgba(56, 189, 248, 0.2)`,onMouseLeave:e=>e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,children:(0,g.jsx)(pu,{size:18})})]}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gap:`4px`,textAlign:`center`,marginBottom:`0.5rem`},children:Iu.map(e=>(0,g.jsx)(`span`,{style:{fontSize:`0.75rem`,fontWeight:600,color:`#94a3b8`},children:e},e))}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gap:`4px`},children:h.map((n,r)=>{if(n===null)return(0,g.jsx)(`div`,{},`empty-${r}`);let a=v(s,l,n),o=e===a;return(0,g.jsx)(`button`,{type:`button`,onClick:()=>{t(a),i(!1)},style:{height:`32px`,width:`32px`,margin:`0 auto`,borderRadius:`8px`,border:`none`,background:o?`#38bdf8`:`transparent`,color:o?`#020710`:`#ffffff`,fontWeight:o?700:500,fontSize:`0.85rem`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,boxShadow:o?`0 0 12px rgba(56, 189, 248, 0.5)`:`none`},onMouseEnter:e=>{o||(e.currentTarget.style.background=`rgba(56, 189, 248, 0.15)`,e.currentTarget.style.color=`#38bdf8`)},onMouseLeave:e=>{o||(e.currentTarget.style.background=`transparent`,e.currentTarget.style.color=`#ffffff`)},children:n},n)})})]})]})}var Ru=e=>{if(!e)return[];if(Array.isArray(e))return e.map(e=>String(e).trim()).filter(Boolean);if(typeof e==`string`){try{let t=JSON.parse(e);if(Array.isArray(t))return t.map(e=>String(e).trim()).filter(Boolean)}catch{}return e.split(`,`).map(e=>e.trim()).filter(Boolean)}return[]};function zu({blog:e,allBlogs:t=[],isMobile:n,onNavigate:r,onSelectBlog:i}){let[o,s]=(0,_.useState)(``),[c,u]=(0,_.useState)(!1),[d,f]=(0,_.useState)(!1);if((0,_.useEffect)(()=>{window.scrollTo({top:0,behavior:`smooth`})},[e?.id||e?.slug]),(0,_.useEffect)(()=>{if(!e)return;let t=document.title,n=e.metaTitle||`${e.title} | Cavin Infotech`;document.title=n;let r=e.metaDescription||e.excerpt||``,i=Ru(e.tags),o=e.keywords||i.join(`, `),s=(e,t,n=`name`)=>{if(!t)return;let r=document.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement(`meta`),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute(`content`,t)};s(`description`,r),s(`keywords`,o),s(`og:title`,n,`property`),s(`og:description`,r,`property`),s(`og:type`,`article`,`property`),s(`og:url`,window.location.href,`property`),(e.ogImage||e.coverImage||e.image)&&s(`og:image`,a(e.ogImage||e.coverImage||e.image),`property`),s(`twitter:card`,`summary_large_image`),s(`twitter:title`,n),s(`twitter:description`,r);let c=document.querySelector(`link[rel="canonical"]`);c||(c=document.createElement(`link`),c.setAttribute(`rel`,`canonical`),document.head.appendChild(c)),c.setAttribute(`href`,e.canonicalURL||window.location.href);let l=document.getElementById(`json-ld-article-schema`);l||(l=document.createElement(`script`),l.id=`json-ld-article-schema`,l.type=`application/ld+json`,document.head.appendChild(l));let u={"@context":`https://schema.org`,"@type":`BlogPosting`,headline:e.title,description:r,image:a(e.ogImage||e.coverImage||e.image||`/assets/cavin_logo.svg`),datePublished:e.publishDate||e.date||new Date().toISOString(),author:{"@type":`Person`,name:e.author||`Cavin Infotech`,jobTitle:e.authorDesignation||``},publisher:{"@type":`Organization`,name:`Cavin Infotech`,logo:{"@type":`ImageObject`,url:window.location.origin+a(`/assets/cavin_logo.svg`)}},mainEntityOfPage:{"@type":`WebPage`,"@id":e.canonicalURL||window.location.href},keywords:o};return l.textContent=JSON.stringify(u),()=>{document.title=t,l&&l.remove()}},[e]),!e)return(0,g.jsxs)(`div`,{style:{background:`#020611`,color:`#ffffff`,minHeight:`100vh`,paddingTop:`8rem`,textAlign:`center`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`2rem`,fontWeight:700,marginBottom:`1rem`},children:`Article Not Found`}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,marginBottom:`2rem`},children:`The requested publication could not be loaded.`}),(0,g.jsx)(`button`,{onClick:()=>r(`Blogs`),style:{background:`linear-gradient(135deg, #ffaa00 0%, #ff8800 100%)`,color:`#000000`,border:`none`,padding:`0.8rem 2rem`,borderRadius:`50px`,fontWeight:700,cursor:`pointer`,boxShadow:`0 4px 20px rgba(255, 170, 0, 0.3)`},children:`Return to Blogs`})]});let p=a(`/assets/Background pattern About Us Hero section.svg`),m=a(`/assets/Spotlight vector.svg`),h=typeof e.author==`string`?e.author:e.author?.firstname?`${e.author.firstname} ${e.author.lastname||``}`.trim():`Purushothaman Gopalan`,v=typeof e.authorDesignation==`string`?e.authorDesignation:`Chief AI Architect & Head of Data Engineering`,y=t.filter(t=>t.id!==e.id).slice(0,2),b=e=>{e.preventDefault(),o&&(u(!0),setTimeout(()=>{u(!1),s(``)},5e3))},x=()=>{navigator.clipboard.writeText(window.location.href),f(!0),setTimeout(()=>f(!1),2500)},S=t=>{let n=encodeURIComponent(window.location.href),r=encodeURIComponent(e.title),i=``;t===`twitter`?i=`https://twitter.com/intent/tweet?url=${n}&text=${r}`:t===`facebook`?i=`https://www.facebook.com/sharer/sharer.php?u=${n}`:t===`linkedin`&&(i=`https://www.linkedin.com/sharing/share-offsite/?url=${n}`),i&&window.open(i,`_blank`,`noopener,noreferrer`)};return(0,g.jsxs)(`div`,{style:{background:`#020611`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,overflow:`hidden`,paddingTop:n?`5.5rem`:`7rem`,paddingBottom:`6rem`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,height:n?`450px`:`580px`,backgroundImage:`url('${p}')`,backgroundSize:`cover`,backgroundPosition:`center top`,opacity:.85,pointerEvents:`none`,zIndex:0,WebkitMaskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)`,maskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,width:n?`100%`:`85%`,height:n?`450px`:`580px`,maxWidth:`1250px`,backgroundImage:`url('${m}')`,backgroundSize:`contain`,backgroundRepeat:`no-repeat`,backgroundPosition:`top left`,pointerEvents:`none`,zIndex:1,mixBlendMode:`screen`,opacity:.85,WebkitMaskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)`,maskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%)`}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:2,maxWidth:`1140px`,margin:`0 auto`,padding:n?`0 1.25rem`:`0 2.5rem`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`2rem`,flexWrap:`wrap`,gap:`1rem`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.85rem`,color:`#64748b`},children:[(0,g.jsx)(`span`,{style:{cursor:`pointer`,transition:`color 0.2s`},onClick:()=>r(`Home`),children:`Home`}),(0,g.jsx)(`span`,{children:`/`}),(0,g.jsx)(`span`,{style:{cursor:`pointer`,transition:`color 0.2s`},onClick:()=>r(`Blogs`),children:`Blogs`}),(0,g.jsx)(`span`,{children:`/`}),(0,g.jsx)(`span`,{style:{color:`#38bdf8`,fontWeight:600,maxWidth:n?`160px`:`320px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.title})]}),(0,g.jsxs)(`button`,{onClick:()=>r(`Blogs`),style:{display:`flex`,alignItems:`center`,gap:`0.45rem`,background:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.12)`,color:`#ffffff`,padding:`0.45rem 1.1rem`,borderRadius:`50px`,fontSize:`0.82rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#38bdf8`,e.currentTarget.style.color=`#38bdf8`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`,e.currentTarget.style.color=`#ffffff`},children:[(0,g.jsx)(au,{size:14}),` Back to Blogs`]})]}),(0,g.jsxs)(`div`,{style:{marginBottom:`1.75rem`},children:[(0,g.jsx)(`div`,{style:{marginBottom:`1.25rem`},children:(0,g.jsxs)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.65rem`,background:`rgba(56, 189, 248, 0.08)`,border:`1px solid rgba(56, 189, 248, 0.45)`,borderRadius:`50px`,padding:`0.35rem 1rem`,boxShadow:`0 2px 14px rgba(56, 189, 248, 0.12)`},children:[(0,g.jsx)(`span`,{style:{color:`#38bdf8`,fontSize:`0.8rem`,fontWeight:600,letterSpacing:`0.02em`},children:e.category||`Leadership`}),(0,g.jsx)(`span`,{style:{color:`rgba(255, 255, 255, 0.3)`,fontSize:`0.75rem`},children:``}),(0,g.jsx)(`span`,{style:{color:`#7dd3fc`,fontSize:`0.8rem`,fontWeight:500},children:e.readTime||`8 min read`})]})}),(0,g.jsx)(`h1`,{style:{fontSize:n?`2.1rem`:`3.1rem`,fontWeight:700,color:`#ffffff`,lineHeight:1.22,letterSpacing:`-0.02em`,marginBottom:`1rem`},children:e.title}),(e.subtitle||e.excerpt)&&(0,g.jsx)(`p`,{style:{fontSize:n?`1.02rem`:`1.15rem`,color:`#94a3b8`,lineHeight:1.6,maxWidth:`860px`,marginBottom:`2.5rem`,fontWeight:400},children:e.subtitle||e.excerpt})]}),e.image&&(0,g.jsx)(`div`,{style:{width:`100%`,height:n?`250px`:`520px`,borderRadius:`20px`,overflow:`hidden`,position:`relative`,marginBottom:`1.75rem`,border:`1px solid rgba(255, 255, 255, 0.12)`,boxShadow:`0 25px 60px rgba(0, 0, 0, 0.75)`},children:(0,g.jsx)(`img`,{src:a(e.image),alt:e.title,style:{width:`100%`,height:`100%`,objectFit:`cover`}})}),(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`3.5rem`,flexWrap:`wrap`,gap:`1.5rem`,paddingTop:`0.5rem`,paddingBottom:`1.5rem`,borderBottom:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:n?`1.75rem`:`3.5rem`,flexWrap:`wrap`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`div`,{style:{fontSize:`0.78rem`,color:`#94a3b8`,marginBottom:`0.2rem`,fontWeight:500},children:`Written by`}),(0,g.jsx)(`div`,{style:{fontSize:`0.98rem`,color:`#ffffff`,fontWeight:700},children:h})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`div`,{style:{fontSize:`0.78rem`,color:`#94a3b8`,marginBottom:`0.2rem`,fontWeight:500},children:`Published on`}),(0,g.jsx)(`div`,{style:{fontSize:`0.98rem`,color:`#ffffff`,fontWeight:700},children:e.date||`11 Jul 2026`})]})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.65rem`,flexWrap:`wrap`},children:[(0,g.jsxs)(`button`,{onClick:x,style:{display:`flex`,alignItems:`center`,gap:`0.45rem`,background:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.5rem 0.95rem`,borderRadius:`8px`,fontSize:`0.82rem`,fontWeight:500,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`},children:[d?(0,g.jsx)(uu,{size:14,style:{color:`#10b981`}}):(0,g.jsx)(hu,{size:14}),d?`Copied!`:`Copy link`]}),(0,g.jsx)(`button`,{onClick:()=>S(`twitter`),title:`Share on X`,style:{width:`36px`,height:`36px`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.15)`,borderRadius:`8px`,color:`#ffffff`,fontSize:`0.85rem`,fontWeight:700,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`},children:`𝕏`}),(0,g.jsx)(`button`,{onClick:()=>S(`facebook`),title:`Share on Facebook`,style:{width:`36px`,height:`36px`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.15)`,borderRadius:`8px`,color:`#ffffff`,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`},children:(0,g.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z`})})}),(0,g.jsx)(`button`,{onClick:()=>S(`linkedin`),title:`Share on LinkedIn`,style:{width:`36px`,height:`36px`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.15)`,borderRadius:`8px`,color:`#ffffff`,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`},children:(0,g.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,g.jsx)(`path`,{d:`M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.28 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-0.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.75M6.46 10.9v8.37H9.25V10.9H6.46M7.86 6.74a1.65 1.65 0 0 0-1.66 1.66 1.66 1.66 0 0 0 1.66 1.65c.92 0 1.66-.74 1.66-1.65a1.65 1.65 0 0 0-1.66-1.66z`})})})]})]}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:n?`1fr`:`1fr 320px`,gap:`3.5rem`,alignItems:`start`,marginBottom:`5rem`},children:[(0,g.jsxs)(`div`,{children:[e.excerpt&&(0,g.jsxs)(`div`,{style:{background:`linear-gradient(135deg, rgba(27, 54, 93, 0.3) 0%, rgba(13, 17, 26, 0.75) 100%)`,borderLeft:`4px solid #1b365d`,borderRadius:`0 16px 16px 0`,padding:n?`1.25rem 1.5rem`:`1.75rem 2rem`,color:`#ffffff`,fontSize:`1.15rem`,lineHeight:1.65,fontWeight:500,marginBottom:`2.5rem`,fontStyle:`italic`,boxShadow:`0 10px 30px rgba(0,0,0,0.4)`},children:[`"`,e.excerpt,`"`]}),(0,g.jsx)(`div`,{style:{color:`#cbd5e1`,fontSize:`1.05rem`,lineHeight:1.85,display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:(e.content||e.excerpt||``).split(`
`).map((e,t)=>{let r=e.trim();if(r.startsWith(`# `))return(0,g.jsx)(`h1`,{style:{fontSize:n?`1.8rem`:`2.2rem`,fontWeight:800,color:`#ffffff`,marginTop:`2rem`,marginBottom:`0.75rem`,letterSpacing:`-0.02em`,borderBottom:`1px solid rgba(255, 255, 255, 0.12)`,paddingBottom:`0.75rem`},children:r.replace(`# `,``)},t);if(r.startsWith(`## `))return(0,g.jsx)(`h2`,{style:{fontSize:n?`1.5rem`:`1.75rem`,fontWeight:700,color:`#ffffff`,marginTop:`1.75rem`,marginBottom:`0.5rem`,letterSpacing:`-0.01em`,borderBottom:`1px solid rgba(255, 255, 255, 0.08)`,paddingBottom:`0.65rem`},children:r.replace(`## `,``)},t);if(r.startsWith(`### `))return(0,g.jsx)(`h3`,{style:{fontSize:`1.35rem`,fontWeight:700,color:`#38bdf8`,marginTop:`1.35rem`,marginBottom:`0.35rem`},children:r.replace(`### `,``)},t);if(r.startsWith(`#### `))return(0,g.jsx)(`h4`,{style:{fontSize:`1.15rem`,fontWeight:600,color:`#7dd3fc`,marginTop:`1.1rem`,marginBottom:`0.3rem`},children:r.replace(`#### `,``)},t);if(r.startsWith(`> `))return(0,g.jsx)(`blockquote`,{style:{borderLeft:`4px solid #38bdf8`,background:`rgba(56, 189, 248, 0.05)`,margin:`1rem 0`,padding:`1rem 1.5rem`,borderRadius:`0 12px 12px 0`,fontStyle:`italic`,color:`#e2e8f0`},children:r.replace(`> `,``)},t);if(r.startsWith(`- `)||r.startsWith(`* `))return(0,g.jsx)(`ul`,{style:{paddingLeft:`0.5rem`,margin:`0.5rem 0`,display:`flex`,flexDirection:`column`,gap:`0.6rem`},children:r.split(`
`).map((e,t)=>{let n=e.replace(/^[-*]\s+/,``);return(0,g.jsxs)(`li`,{style:{display:`flex`,alignItems:`flex-start`,gap:`0.75rem`,listStyle:`none`},children:[(0,g.jsx)(l,{size:18,style:{color:`#38bdf8`,marginTop:`0.25rem`,flexShrink:0}}),(0,g.jsx)(`span`,{children:n})]},t)})},t);if(/^\d+\.\s/.test(r))return(0,g.jsx)(`ol`,{style:{paddingLeft:`1.25rem`,margin:`0.5rem 0`,display:`flex`,flexDirection:`column`,gap:`0.6rem`},children:r.split(`
`).map((e,t)=>(0,g.jsx)(`li`,{style:{color:`#cbd5e1`},children:(0,g.jsx)(`span`,{children:e.replace(/^\d+\.\s+/,``)})},t))},t);let i=r.match(/^!\[(.*?)\]\((.*?)\)/);if(i){let e=i[1],n=i[2];return(0,g.jsxs)(`figure`,{style:{margin:`2rem 0`},children:[(0,g.jsx)(`img`,{src:a(n),alt:e,style:{width:`100%`,borderRadius:`18px`,border:`1px solid rgba(255, 255, 255, 0.1)`,boxShadow:`0 15px 35px rgba(0,0,0,0.5)`}}),e&&(0,g.jsx)(`figcaption`,{style:{fontSize:`0.85rem`,color:`#64748b`,marginTop:`0.6rem`,textAlign:`center`,fontStyle:`italic`},children:e})]},t)}return(0,g.jsx)(`p`,{style:{margin:0},children:r},t)})}),Ru(e.tags).length>0&&(0,g.jsxs)(`div`,{style:{marginTop:`2.5rem`,paddingTop:`1.5rem`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`,display:`flex`,alignItems:`center`,gap:`0.75rem`,flexWrap:`wrap`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.4rem`,color:`#94a3b8`,fontSize:`0.85rem`,fontWeight:600},children:[(0,g.jsx)(wu,{size:15,style:{color:`#38bdf8`}}),` Tags:`]}),Ru(e.tags).map((e,t)=>(0,g.jsxs)(`span`,{style:{background:`rgba(56, 189, 248, 0.08)`,border:`1px solid rgba(56, 189, 248, 0.25)`,color:`#38bdf8`,padding:`0.3rem 0.85rem`,borderRadius:`50px`,fontSize:`0.8rem`,fontWeight:500,letterSpacing:`0.01em`,transition:`all 0.2s ease`,cursor:`pointer`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(56, 189, 248, 0.18)`,e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(56, 189, 248, 0.08)`,e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.25)`},children:[`#`,e]},t))]}),(0,g.jsxs)(`div`,{style:{borderLeft:`1.5px solid #ffffff`,paddingLeft:`1.75rem`,marginTop:`4rem`,marginBottom:`2rem`},children:[(0,g.jsx)(`p`,{style:{fontStyle:`italic`,color:`#ffffff`,fontSize:n?`1.02rem`:`1.12rem`,lineHeight:1.7,fontWeight:400,margin:0},children:e.authorBio||`${h} is ${v} at CAVIN INFOTECH FZE, a Dubai-based technology company delivering AR/VR experiences, AI solutions, and digital transformation for real estate and enterprises across the UAE and beyond. Connect with us to explore a smarter way to sell.`}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.85rem`,marginTop:`1.75rem`},children:[(0,g.jsx)(`img`,{src:a(e.authorAvatar||`/assets/arvindh_agentic_ai.jpg`),alt:h,style:{width:`44px`,height:`44px`,borderRadius:`50%`,objectFit:`cover`,border:`1px solid rgba(255, 255, 255, 0.2)`,flexShrink:0}}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`div`,{style:{fontSize:`0.98rem`,fontWeight:700,color:`#ffffff`,lineHeight:1.3},children:h}),(0,g.jsx)(`div`,{style:{fontSize:`0.85rem`,color:`#94a3b8`,fontWeight:400,marginTop:`0.15rem`},children:v})]})]})]})]}),(0,g.jsx)(`div`,{style:{position:n?`relative`:`sticky`,top:`100px`},children:(0,g.jsxs)(`div`,{style:{background:`#0d111a`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`20px`,padding:`2.25rem 1.75rem`,boxShadow:`0 20px 50px rgba(0, 0, 0, 0.6)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`div`,{style:{width:`44px`,height:`44px`,borderRadius:`12px`,background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`,marginBottom:`1.5rem`},children:(0,g.jsx)(Su,{size:18,style:{transform:`rotate(-25deg)`,transformOrigin:`center`}})}),(0,g.jsx)(`h3`,{style:{fontSize:`1.25rem`,fontWeight:700,color:`#ffffff`,marginBottom:`0.65rem`,letterSpacing:`-0.01em`},children:`Weekly newsletter`}),(0,g.jsx)(`p`,{style:{fontSize:`0.92rem`,color:`#94a3b8`,lineHeight:1.55,marginBottom:`1.5rem`},children:`No spam. Just the latest releases and tips, interesting articles, and exclusive interviews in your inbox every week.`}),c?(0,g.jsx)(`div`,{style:{background:`rgba(16, 185, 129, 0.15)`,border:`1px solid rgba(16, 185, 129, 0.3)`,padding:`1rem`,borderRadius:`12px`,color:`#34d399`,fontSize:`0.88rem`,textAlign:`center`,fontWeight:600},children:`✓ Thanks for subscribing! Check your inbox for confirmation.`}):(0,g.jsxs)(`form`,{onSubmit:b,style:{display:`flex`,flexDirection:`column`},children:[(0,g.jsx)(`input`,{type:`email`,required:!0,placeholder:`Enter your email`,value:o,onChange:e=>s(e.target.value),style:{width:`100%`,background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.12)`,borderRadius:`10px`,padding:`0.8rem 1rem`,color:`#ffffff`,fontSize:`0.92rem`,outline:`none`,boxSizing:`border-box`,transition:`border-color 0.2s ease`},onFocus:e=>e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,onBlur:e=>e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`}),(0,g.jsxs)(`div`,{style:{fontSize:`0.82rem`,color:`#64748b`,marginTop:`0.55rem`,marginBottom:`1.5rem`},children:[`Read about our `,(0,g.jsx)(`a`,{href:`#privacy`,onClick:e=>e.preventDefault(),style:{color:`#94a3b8`,textDecoration:`underline`,cursor:`pointer`},children:`privacy policy`}),`.`]}),(0,g.jsx)(`button`,{type:`submit`,style:{width:`100%`,background:`linear-gradient(180deg, #1b365d 0%, #132847 100%)`,border:`1px solid rgba(255, 255, 255, 0.08)`,color:`#ffffff`,padding:`0.85rem 1.25rem`,borderRadius:`50px`,fontSize:`0.98rem`,fontWeight:700,cursor:`pointer`,boxShadow:`0 4px 20px rgba(0, 0, 0, 0.4)`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`linear-gradient(180deg, #224373 0%, #173259 100%)`,e.currentTarget.style.transform=`translateY(-1px)`},onMouseLeave:e=>{e.currentTarget.style.background=`linear-gradient(180deg, #1b365d 0%, #132847 100%)`,e.currentTarget.style.transform=`translateY(0)`},children:`Subscribe`})]})]})})]}),y.length>0&&(0,g.jsx)(`div`,{style:{paddingTop:`4.5rem`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:n?`1fr`:`300px 1fr`,gap:n?`2.5rem`:`3.5rem`,alignItems:`start`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`},children:[(0,g.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:700,letterSpacing:`0.02em`,marginBottom:`0.6rem`},children:`Latest`}),(0,g.jsx)(`h2`,{style:{fontSize:`2.4rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.2,letterSpacing:`-0.02em`,margin:`0 0 0.85rem 0`},children:`From the blog`}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.92rem`,lineHeight:1.55,margin:`0 0 2rem 0`,maxWidth:`260px`},children:`The latest industry news, interviews, technologies, and resources.`}),(0,g.jsx)(`button`,{onClick:()=>r(`Home`),style:{background:`#091b33`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`0.9rem`,fontWeight:700,cursor:`pointer`,transition:`all 0.25s ease`,marginBottom:`2.5rem`,boxShadow:`0 4px 15px rgba(0, 0, 0, 0.4)`},onMouseEnter:e=>{e.currentTarget.style.background=`#0e2646`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`},onMouseLeave:e=>{e.currentTarget.style.background=`#091b33`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`},children:`View All Posts`}),(0,g.jsx)(`div`,{style:{width:`36px`,height:`36px`,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`,fontSize:`1.2rem`,cursor:`pointer`,opacity:.8},children:(0,g.jsx)(Q,{size:18})})]}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:n?`1fr`:`repeat(2, minmax(0, 1fr))`,gap:`1.25rem`},children:y.map((e,t)=>(0,g.jsxs)(`div`,{onClick:()=>{i&&i(e)},style:{height:`440px`,borderRadius:`18px`,overflow:`hidden`,position:`relative`,cursor:`pointer`,border:`1px solid rgba(255, 255, 255, 0.12)`,boxShadow:`0 12px 35px rgba(0, 0, 0, 0.5)`,transition:`all 0.35s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 18px 45px rgba(0, 0, 0, 0.7)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.12)`,e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 12px 35px rgba(0, 0, 0, 0.5)`},children:[(0,g.jsx)(`img`,{src:a(e.image),alt:e.title,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:`1.25rem 1.25rem 1.15rem`,background:`rgba(8, 14, 26, 0.88)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,g.jsx)(`span`,{style:{fontSize:`0.68rem`,fontWeight:700,textTransform:`uppercase`,color:`#94a3b8`,letterSpacing:`0.08em`,display:`block`},children:(e.category||`ARTICLE`).toUpperCase()}),(0,g.jsx)(`h3`,{style:{fontSize:`0.98rem`,fontWeight:700,color:`#ffffff`,margin:`0.35rem 0 0.75rem 0`,lineHeight:1.4,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.35rem`,color:`#ffffff`,fontSize:`0.85rem`,fontWeight:700},children:[`Read Blog `,(0,g.jsx)(Q,{size:14,style:{color:`#ffffff`}})]})]})]},t))})]})})]})]})}function Bu({isMobile:e,onNavigate:t,onOpenStrategy:n}){let[r,a]=(0,_.useState)(``),[o,s]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(`Lead AI & Data Architect`),[h,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(``),[x,S]=(0,_.useState)(``),[C,w]=(0,_.useState)(!1),[T,ee]=(0,_.useState)(!1),te=[{title:`Lead AI & Data Architect`,department:`AI & Analytics`,type:`Full-Time`,location:`Hybrid / Chennai`},{title:`Senior IIoT & Smart Factory Specialist`,department:`Industrial IoT`,type:`Full-Time`,location:`On-Site / Chennai`},{title:`Spatial Computing & MR UX Designer`,department:`AR/VR & Immersive Tech`,type:`Full-Time`,location:`Hybrid`},{title:`Cloud Infrastructure & DevOps Engineer`,department:`Enterprise Cloud`,type:`Full-Time`,location:`Remote / Hybrid`}];return(0,g.jsx)(`div`,{style:{background:`#020c1e`,color:`#ffffff`,minHeight:`100vh`,paddingTop:e?`5rem`:`7rem`,paddingBottom:`6rem`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1280px`,margin:`0 auto`,padding:e?`0 1.25rem`:`0 3rem`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.85rem`,color:`#64748b`,marginBottom:`2rem`},children:[(0,g.jsx)(`span`,{style:{cursor:`pointer`,transition:`color 0.2s`},onClick:()=>t(`Home`),children:`Home`}),(0,g.jsx)(`span`,{children:`/`}),(0,g.jsx)(`span`,{style:{color:`#ffaa00`,fontWeight:600},children:`Careers`})]}),(0,g.jsxs)(`div`,{style:{position:`relative`,borderRadius:`24px`,background:`linear-gradient(135deg, rgba(8, 20, 44, 0.9) 0%, rgba(3, 11, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.1)`,padding:e?`2.5rem 1.5rem`:`4rem 3.5rem`,overflow:`hidden`,marginBottom:`4rem`,boxShadow:`0 20px 50px rgba(0,0,0,0.5)`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-30%`,right:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.12) 0%, transparent 70%)`,pointerEvents:`none`,borderRadius:`50%`}}),(0,g.jsxs)(`div`,{style:{maxWidth:`780px`,position:`relative`,zIndex:1},children:[(0,g.jsx)(`span`,{style:{background:`rgba(255, 170, 0, 0.12)`,border:`1px solid rgba(255, 170, 0, 0.3)`,color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.12em`,padding:`0.35rem 1rem`,borderRadius:`50px`,display:`inline-block`,marginBottom:`1.25rem`},children:`Join Cavin Infotech`}),(0,g.jsxs)(`h1`,{style:{fontSize:`clamp(2.2rem, 4vw, 3.4rem)`,fontWeight:800,lineHeight:1.2,letterSpacing:`-0.02em`,marginBottom:`1.25rem`},children:[`Engineer What's Next in `,(0,g.jsx)(`span`,{style:{color:`#ffaa00`},children:`Enterprise Innovation`})]}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`1.1rem`,lineHeight:1.6,marginBottom:`2rem`},children:`We are a collective of architects, engineers, spatial UX designers, and AI specialists building high-availability industrial platforms for Fortune 500 enterprises.`}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`1rem`},children:[(0,g.jsx)(`button`,{onClick:()=>{document.getElementById(`application-form`)?.scrollIntoView({behavior:`smooth`})},style:{background:`linear-gradient(135deg, #ffaa00 0%, #e69900 100%)`,color:`#020c1e`,border:`none`,padding:`0.85rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:700,cursor:`pointer`,boxShadow:`0 8px 25px rgba(255, 170, 0, 0.25)`,transition:`transform 0.2s ease`},onMouseEnter:e=>e.currentTarget.style.transform=`translateY(-2px)`,onMouseLeave:e=>e.currentTarget.style.transform=`translateY(0)`,children:`Apply Now ↓`}),n&&(0,g.jsx)(`button`,{onClick:n,style:{background:`rgba(255,255,255,0.06)`,color:`#ffffff`,border:`1px solid rgba(255,255,255,0.15)`,padding:`0.85rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.color=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.15)`,e.currentTarget.style.color=`#ffffff`},children:`Book Strategy Call`})]})]})]}),(0,g.jsxs)(`div`,{style:{marginBottom:`5rem`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`1.8rem`,fontWeight:700,marginBottom:`2rem`,textAlign:`center`},children:`Why Work With Cavin Infotech?`}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:e?`1fr`:`repeat(4, 1fr)`,gap:`1.5rem`},children:[{icon:gu,title:`Next-Gen Tech Stack`,desc:`Deploy Agentic AI pipelines, spatial MR cleanroom simulators, and low-latency IIoT edge networks.`},{icon:u,title:`High Impact Projects`,desc:`Transform operations for global manufacturing leaders, healthcare networks, and enterprise portfolios.`},{icon:Cu,title:`Autonomous Ownership`,desc:`No micro-management. Take ownership of key modules and lead technical architecture.`},{icon:Tu,title:`Continuous Growth`,desc:`Generous learning stipends, certification support, and direct mentorship from industry leaders.`}].map((e,t)=>(0,g.jsxs)(`div`,{style:{background:`rgba(15, 23, 42, 0.6)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`16px`,padding:`1.75rem`,transition:`transform 0.3s ease, border-color 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 170, 0, 0.4)`,e.currentTarget.style.transform=`translateY(-4px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.transform=`translateY(0)`},children:[(0,g.jsx)(e.icon,{size:28,style:{color:`#ffaa00`,marginBottom:`1rem`}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.1rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`},children:e.title}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.88rem`,lineHeight:1.55},children:e.desc})]},t))})]}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:e?`1fr`:`1fr 1fr`,gap:`3rem`,alignItems:`start`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`h2`,{style:{fontSize:`1.8rem`,fontWeight:700,marginBottom:`1.5rem`,display:`flex`,alignItems:`center`,gap:`0.6rem`},children:[(0,g.jsx)(cu,{style:{color:`#ffaa00`}}),` Open Positions`]}),(0,g.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`},children:te.map((e,t)=>(0,g.jsxs)(`div`,{onClick:()=>m(e.title),style:{background:p===e.title?`rgba(255, 170, 0, 0.08)`:`rgba(15, 23, 42, 0.6)`,border:p===e.title?`1px solid rgba(255, 170, 0, 0.4)`:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`16px`,padding:`1.5rem`,cursor:`pointer`,transition:`all 0.2s ease`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,marginBottom:`0.5rem`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.1rem`,fontWeight:700,color:`#ffffff`},children:e.title}),(0,g.jsx)(`span`,{style:{background:`rgba(255,255,255,0.06)`,color:`#cbd5e1`,fontSize:`0.75rem`,fontWeight:600,padding:`0.2rem 0.6rem`,borderRadius:`4px`},children:e.type})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,color:`#64748b`,fontSize:`0.82rem`,fontWeight:600},children:[(0,g.jsx)(`span`,{children:e.department}),(0,g.jsx)(`span`,{children:``}),(0,g.jsx)(`span`,{children:e.location})]})]},t))})]}),(0,g.jsxs)(`div`,{id:`application-form`,style:{background:`rgba(10, 18, 38, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.12)`,borderRadius:`24px`,padding:e?`1.75rem`:`2.5rem`,boxShadow:`0 20px 40px rgba(0,0,0,0.4)`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`},children:`Submit Your Application`}),(0,g.jsxs)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,marginBottom:`1.75rem`},children:[`Applying for: `,(0,g.jsx)(`strong`,{style:{color:`#ffaa00`},children:p})]}),x&&(0,g.jsx)(`div`,{style:{background:`rgba(239, 68, 68, 0.15)`,border:`1px solid rgba(239, 68, 68, 0.3)`,color:`#fca5a5`,padding:`0.75rem 1rem`,borderRadius:`10px`,fontSize:`0.88rem`,marginBottom:`1.25rem`},children:x}),T?(0,g.jsxs)(`div`,{style:{textAlign:`center`,padding:`2rem 1rem`},children:[(0,g.jsx)(l,{size:54,style:{color:`#10b981`,margin:`0 auto 1rem`}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`0.75rem`},children:`Application Submitted!`}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.92rem`,lineHeight:1.6,marginBottom:`1.75rem`},children:`Thank you for applying to Cavin Infotech. Our hiring team will review your resume and contact you shortly.`}),(0,g.jsx)(`button`,{onClick:()=>t(`Home`),style:{background:`rgba(255,255,255,0.08)`,border:`1px solid rgba(255,255,255,0.15)`,color:`#ffffff`,padding:`0.7rem 1.5rem`,borderRadius:`50px`,fontSize:`0.9rem`,fontWeight:600,cursor:`pointer`},children:`Back to Home`})]}):(0,g.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!y){S(`Please complete the Turnstile verification.`);return}w(!0),S(``);try{let e=null;if(h){let t=new FormData;t.append(`resume`,h);let n=await fetch(`${i}/api/upload/resume`,{method:`POST`,body:t});n.ok&&(e=(await n.json()).url)}let t=new FormData;t.append(`name`,r),t.append(`email`,o),t.append(`phone`,d),t.append(`position`,p),t.append(`turnstileToken`,y),h&&t.append(`resume`,h),e&&t.append(`resumeUrl`,e);let n=await fetch(`${i}/api/contact/careers`,{method:`POST`,body:t});n.ok?ee(!0):S((await n.json()).error||`Failed to submit application. Please try again.`)}catch(e){console.error(e),S(`Server error. Please check connection and try again.`)}finally{w(!1)}},style:{display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{style:{display:`block`,fontSize:`0.82rem`,color:`#cbd5e1`,marginBottom:`0.35rem`,fontWeight:600},children:`Select Position`}),(0,g.jsx)(`select`,{value:p,onChange:e=>m(e.target.value),style:{width:`100%`,background:`#070e1e`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.75rem 1rem`,borderRadius:`10px`,outline:`none`,fontSize:`0.92rem`},children:te.map((e,t)=>(0,g.jsx)(`option`,{value:e.title,children:e.title},t))})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{style:{display:`block`,fontSize:`0.82rem`,color:`#cbd5e1`,marginBottom:`0.35rem`,fontWeight:600},children:`Full Name *`}),(0,g.jsx)(`input`,{type:`text`,required:!0,value:r,onChange:e=>a(e.target.value),placeholder:`e.g. Alex Morgan`,style:{width:`100%`,background:`#070e1e`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.75rem 1rem`,borderRadius:`10px`,outline:`none`,fontSize:`0.92rem`}})]}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:e?`1fr`:`1fr 1fr`,gap:`1rem`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{style:{display:`block`,fontSize:`0.82rem`,color:`#cbd5e1`,marginBottom:`0.35rem`,fontWeight:600},children:`Email Address *`}),(0,g.jsx)(`input`,{type:`email`,required:!0,value:o,onChange:e=>s(e.target.value),placeholder:`alex@example.com`,style:{width:`100%`,background:`#070e1e`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.75rem 1rem`,borderRadius:`10px`,outline:`none`,fontSize:`0.92rem`}})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{style:{display:`block`,fontSize:`0.82rem`,color:`#cbd5e1`,marginBottom:`0.35rem`,fontWeight:600},children:`Phone Number *`}),(0,g.jsx)(`input`,{type:`tel`,required:!0,value:d,onChange:e=>f(e.target.value),placeholder:`+1 (555) 000-0000`,style:{width:`100%`,background:`#070e1e`,border:`1px solid rgba(255, 255, 255, 0.15)`,color:`#ffffff`,padding:`0.75rem 1rem`,borderRadius:`10px`,outline:`none`,fontSize:`0.92rem`}})]})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`label`,{style:{display:`block`,fontSize:`0.82rem`,color:`#cbd5e1`,marginBottom:`0.35rem`,fontWeight:600},children:`Attach Resume / CV (.pdf, .doc, .docx) *`}),(0,g.jsxs)(`div`,{style:{border:`2px dashed rgba(255, 255, 255, 0.18)`,borderRadius:`12px`,padding:`1.25rem`,textAlign:`center`,background:`rgba(255, 255, 255, 0.02)`,position:`relative`,cursor:`pointer`},children:[(0,g.jsx)(`input`,{type:`file`,required:!0,accept:`.pdf,.doc,.docx`,onChange:e=>v(e.target.files[0]),style:{position:`absolute`,inset:0,opacity:0,width:`100%`,height:`100%`,cursor:`pointer`}}),(0,g.jsx)(c,{size:22,style:{color:`#ffaa00`,marginBottom:`0.4rem`}}),(0,g.jsx)(`div`,{style:{fontSize:`0.88rem`,color:`#e2e8f0`},children:h?h.name:`Click or drag file to upload resume`})]})]}),(0,g.jsx)(ju,{onVerify:e=>b(e),onExpire:()=>b(``)}),(0,g.jsx)(`button`,{type:`submit`,disabled:C,style:{background:`linear-gradient(135deg, #ffaa00 0%, #e69900 100%)`,color:`#020c1e`,border:`none`,padding:`0.9rem`,borderRadius:`50px`,fontSize:`1rem`,fontWeight:700,cursor:C?`not-allowed`:`pointer`,boxShadow:`0 8px 20px rgba(255,170,0,0.25)`,marginTop:`0.5rem`},children:C?`Submitting Application...`:`Submit Application`})]})]})]})]})})}function Vu({blogs:e=[],isMobile:t,onSelectBlog:r,onNavigate:i}){let[o,s]=(0,_.useState)(``),[c,d]=(0,_.useState)(`All`),[f,p]=(0,_.useState)(``),[m,h]=(0,_.useState)(!1);(0,_.useEffect)(()=>{window.scrollTo({top:0,behavior:`smooth`})},[]);let v=(0,_.useMemo)(()=>{let t=new Set([`All`]);return e.forEach(e=>{e.category&&t.add(e.category)}),Array.from(t)},[e]),y=(0,_.useMemo)(()=>e.filter(e=>{let t=c===`All`||e.category===c,n=o.toLowerCase().trim(),r=!n||e.title?.toLowerCase().includes(n)||e.excerpt?.toLowerCase().includes(n)||e.category?.toLowerCase().includes(n)||e.author?.toLowerCase().includes(n)||e.tags?.some(e=>e.toLowerCase().includes(n));return t&&r}),[e,c,o]),b=y.length>0?y[0]:null,x=y.length>0?y.slice(1):[],S=e=>{e.preventDefault(),f&&(h(!0),setTimeout(()=>{h(!1),p(``)},4e3))},C=a(`/assets/Background pattern About Us Hero section.svg`);return(0,g.jsxs)(`div`,{style:{background:`#020611`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,overflow:`hidden`,paddingTop:t?`5.5rem`:`7.5rem`,paddingBottom:`6rem`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`url(${C})`,backgroundSize:`cover`,backgroundPosition:`center`,opacity:.15,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-100px`,left:`50%`,transform:`translateX(-50%)`,width:`900px`,height:`450px`,background:`radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0) 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,marginBottom:`3rem`,padding:t?`1rem 1.25rem 2rem`:`2.5rem 2rem 3rem`,overflow:`visible`,boxSizing:`border-box`},children:[(0,g.jsx)(`img`,{src:a(`/assets/Wave Pattern 2.svg`),alt:``,"aria-hidden":`true`,style:{position:`absolute`,top:t?`-140px`:`-240px`,left:0,width:`100%`,height:`auto`,minHeight:`100%`,objectFit:`cover`,objectPosition:`center top`,opacity:.45,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1,maxWidth:`820px`,margin:`0 auto`,textAlign:`center`},children:[(0,g.jsxs)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.4rem 1.1rem`,borderRadius:`50px`,background:`rgba(56, 189, 248, 0.1)`,border:`1px solid rgba(56, 189, 248, 0.28)`,color:`#38bdf8`,fontSize:`0.85rem`,fontWeight:600,marginBottom:`1.25rem`},children:[(0,g.jsx)(u,{size:16}),(0,g.jsx)(`span`,{children:`Tech Insights & Publications`})]}),(0,g.jsxs)(`h1`,{style:{fontSize:t?`2.2rem`:`3.4rem`,fontWeight:800,lineHeight:1.15,marginBottom:`1.2rem`,letterSpacing:`-0.02em`,color:`#ffffff`},children:[`Engineering Intelligence,`,` `,(0,g.jsx)(`span`,{style:{background:`linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%)`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,display:`inline-block`},children:`Industry Insights`})]}),(0,g.jsx)(`p`,{style:{fontSize:t?`1rem`:`1.15rem`,color:`#94a3b8`,lineHeight:1.6,margin:`0 auto 2rem`},children:`Explore thought leadership, architectural breakdowns, AI case studies, and engineering updates from our tech leaders.`}),(0,g.jsxs)(`div`,{style:{position:`relative`,maxWidth:`560px`,margin:`0 auto`},children:[(0,g.jsx)(xu,{size:20,style:{position:`absolute`,left:`1.2rem`,top:`50%`,transform:`translateY(-50%)`,color:`#38bdf8`}}),(0,g.jsx)(`input`,{type:`text`,placeholder:`Search blogs, topics, or authors...`,value:o,onChange:e=>s(e.target.value),style:{width:`100%`,padding:`0.95rem 1.2rem 0.95rem 3.2rem`,borderRadius:`50px`,background:`rgba(15, 23, 42, 0.75)`,border:`1px solid rgba(56, 189, 248, 0.2)`,color:`#ffffff`,fontSize:`0.95rem`,outline:`none`,backdropFilter:`blur(12px)`,transition:`all 0.3s ease`,boxSizing:`border-box`},onFocus:e=>{e.target.style.borderColor=`#38bdf8`,e.target.style.boxShadow=`0 0 20px rgba(56, 189, 248, 0.25)`},onBlur:e=>{e.target.style.borderColor=`rgba(56, 189, 248, 0.2)`,e.target.style.boxShadow=`none`}}),o&&(0,g.jsx)(`button`,{onClick:()=>s(``),style:{position:`absolute`,right:`1.2rem`,top:`50%`,transform:`translateY(-50%)`,background:`none`,border:`none`,color:`#38bdf8`,cursor:`pointer`,fontSize:`0.85rem`},children:`Clear`})]})]})]}),(0,g.jsxs)(`div`,{style:{maxWidth:`1320px`,margin:`0 auto`,padding:t?`0 1.25rem`:`0 2.5rem`,position:`relative`,zIndex:1},children:[(0,g.jsx)(`div`,{style:{display:`flex`,gap:`0.6rem`,overflowX:`auto`,paddingBottom:`1rem`,marginBottom:`3rem`,scrollbarWidth:`none`,justifyContent:t?`flex-start`:`center`},children:v.map(e=>{let t=c===e;return(0,g.jsx)(`button`,{onClick:()=>d(e),style:{padding:`0.55rem 1.25rem`,borderRadius:`50px`,border:t?`1px solid #38bdf8`:`1px solid rgba(255, 255, 255, 0.1)`,background:t?`rgba(56, 189, 248, 0.18)`:`rgba(15, 23, 42, 0.5)`,color:t?`#38bdf8`:`#94a3b8`,fontSize:`0.88rem`,fontWeight:t?600:500,cursor:`pointer`,whiteSpace:`nowrap`,transition:`all 0.25s ease`,backdropFilter:`blur(8px)`,boxShadow:t?`0 0 15px rgba(56, 189, 248, 0.2)`:`none`},onMouseEnter:e=>{t||(e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.4)`,e.currentTarget.style.color=`#ffffff`)},onMouseLeave:e=>{t||(e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.color=`#94a3b8`)},children:e},e)})}),b&&(0,g.jsx)(`div`,{style:{marginBottom:`3.5rem`},children:(0,g.jsxs)(`div`,{onClick:()=>r(b),style:{borderRadius:`24px`,background:`rgba(15, 23, 42, 0.65)`,border:`1px solid rgba(56, 189, 248, 0.2)`,backdropFilter:`blur(16px)`,overflow:`hidden`,cursor:`pointer`,transition:`transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease`,display:`grid`,gridTemplateColumns:t?`1fr`:`1.1fr 1fr`},onMouseEnter:e=>{e.currentTarget.style.transform=`translateY(-4px)`,e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.5)`,e.currentTarget.style.boxShadow=`0 12px 40px rgba(14, 165, 233, 0.15)`},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.2)`,e.currentTarget.style.boxShadow=`none`},children:[(0,g.jsxs)(`div`,{style:{position:`relative`,minHeight:t?`240px`:`380px`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(b.image),alt:b.title,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`1.25rem`,left:`1.25rem`,padding:`0.35rem 0.9rem`,borderRadius:`50px`,background:`linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%)`,color:`#ffffff`,fontWeight:700,fontSize:`0.75rem`,textTransform:`uppercase`,letterSpacing:`0.08em`,boxShadow:`0 4px 15px rgba(14, 165, 233, 0.4)`},children:`Featured Story`})]}),(0,g.jsxs)(`div`,{style:{padding:t?`1.5rem`:`2.5rem`,display:`flex`,flexDirection:`column`,justifyContent:`center`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`0.8rem`},children:[(0,g.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#38bdf8`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.05em`},children:b.category}),(0,g.jsx)(`span`,{style:{color:`#475569`},children:``}),b.date&&(0,g.jsxs)(`span`,{style:{fontSize:`0.82rem`,color:`#94a3b8`,display:`flex`,alignItems:`center`,gap:`0.3rem`},children:[(0,g.jsx)(lu,{size:14,style:{color:`#38bdf8`}}),b.date]}),b.readTime&&(0,g.jsxs)(`span`,{style:{fontSize:`0.82rem`,color:`#94a3b8`,display:`flex`,alignItems:`center`,gap:`0.3rem`},children:[(0,g.jsx)(n,{size:14,style:{color:`#38bdf8`}}),b.readTime]})]}),(0,g.jsx)(`h2`,{style:{fontSize:t?`1.4rem`:`1.9rem`,fontWeight:700,color:`#ffffff`,lineHeight:1.3,marginBottom:`1rem`},children:b.title}),(0,g.jsx)(`p`,{style:{fontSize:`0.95rem`,color:`#cbd5e1`,lineHeight:1.6,marginBottom:`1.8rem`,display:`-webkit-box`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:b.excerpt||b.summary}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginTop:`auto`,paddingTop:`1rem`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`},children:[(0,g.jsx)(`div`,{style:{width:`38px`,height:`38px`,borderRadius:`50%`,background:`linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#ffffff`,fontWeight:700,fontSize:`0.85rem`,boxShadow:`0 2px 10px rgba(14, 165, 233, 0.3)`},children:b.author?b.author[0]:`C`}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`div`,{style:{fontSize:`0.88rem`,fontWeight:600,color:`#ffffff`},children:b.author||`Cavin Editorial`}),(0,g.jsx)(`div`,{style:{fontSize:`0.78rem`,color:`#64748b`},children:b.authorDesignation||`Technology Team`})]})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,color:`#38bdf8`,fontWeight:600,fontSize:`0.9rem`},children:[`Read Article `,(0,g.jsx)(Q,{size:18})]})]})]})]})}),x.length>0&&(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,marginBottom:`1.5rem`,color:`#ffffff`},children:[`All Articles (`,y.length,`)`]}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:t?`1fr`:`repeat(auto-fill, minmax(350px, 1fr))`,gap:`1.8rem`},children:x.map(e=>(0,g.jsxs)(`div`,{onClick:()=>r(e),style:{borderRadius:`16px`,background:`rgba(15, 23, 42, 0.55)`,border:`1px solid rgba(255, 255, 255, 0.08)`,backdropFilter:`blur(12px)`,overflow:`hidden`,cursor:`pointer`,display:`flex`,flexDirection:`column`,transition:`transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.borderColor=`rgba(56, 189, 248, 0.4)`,e.currentTarget.style.boxShadow=`0 12px 30px rgba(14, 165, 233, 0.12)`},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`},children:[(0,g.jsxs)(`div`,{style:{position:`relative`,height:`200px`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(e.image),alt:e.title,style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`0.85rem`,left:`0.85rem`,padding:`0.25rem 0.75rem`,borderRadius:`50px`,background:`rgba(2, 6, 17, 0.8)`,border:`1px solid rgba(56, 189, 248, 0.3)`,color:`#38bdf8`,fontSize:`0.72rem`,fontWeight:600,backdropFilter:`blur(6px)`},children:e.category})]}),(0,g.jsxs)(`div`,{style:{padding:`1.4rem`,display:`flex`,flexDirection:`column`,flex:1},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.8rem`,fontSize:`0.78rem`,color:`#64748b`,marginBottom:`0.6rem`},children:[e.date&&(0,g.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[(0,g.jsx)(lu,{size:12,style:{color:`#38bdf8`}}),e.date]}),e.readTime&&(0,g.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[(0,g.jsx)(n,{size:12,style:{color:`#38bdf8`}}),e.readTime]})]}),(0,g.jsx)(`h3`,{style:{fontSize:`1.1rem`,fontWeight:700,color:`#ffffff`,lineHeight:1.35,marginBottom:`0.65rem`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,g.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,lineHeight:1.55,marginBottom:`1.25rem`,display:`-webkit-box`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`,overflow:`hidden`,flex:1},children:e.excerpt||e.summary}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,paddingTop:`0.85rem`,borderTop:`1px solid rgba(255, 255, 255, 0.06)`,marginTop:`auto`},children:[(0,g.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#cbd5e1`,fontWeight:500},children:e.author||`Cavin Tech Team`}),(0,g.jsxs)(`span`,{style:{fontSize:`0.82rem`,color:`#38bdf8`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read `,(0,g.jsx)(Q,{size:14})]})]})]})]},e.id||e.slug))})]}),y.length===0&&(0,g.jsxs)(`div`,{style:{textAlign:`center`,padding:`5rem 2rem`,background:`rgba(15, 23, 42, 0.4)`,borderRadius:`24px`,border:`1px dashed rgba(56, 189, 248, 0.2)`},children:[(0,g.jsx)(su,{size:48,style:{color:`#38bdf8`,marginBottom:`1rem`,opacity:.8}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,marginBottom:`0.5rem`},children:`No Articles Found`}),(0,g.jsxs)(`p`,{style:{color:`#64748b`,maxWidth:`440px`,margin:`0 auto 1.5rem`},children:[`We couldn't find any blog posts matching "`,o,`" under `,c,`. Try resetting your search or filter.`]}),(0,g.jsx)(`button`,{onClick:()=>{s(``),d(`All`)},style:{padding:`0.65rem 1.5rem`,borderRadius:`50px`,background:`linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%)`,color:`#ffffff`,fontWeight:700,border:`none`,cursor:`pointer`,boxShadow:`0 4px 15px rgba(14, 165, 233, 0.3)`},children:`Reset Filters`})]}),(0,g.jsxs)(`div`,{style:{marginTop:`5rem`,borderRadius:`24px`,background:`linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 12, 30, 0.95) 100%)`,border:`1px solid rgba(56, 189, 248, 0.25)`,padding:t?`2rem 1.5rem`:`3.5rem 3rem`,display:`flex`,flexDirection:t?`column`:`row`,alignItems:`center`,justifyContent:`space-between`,gap:`2rem`,position:`relative`,overflow:`hidden`,boxShadow:`0 8px 30px rgba(0, 0, 0, 0.5)`},children:[(0,g.jsxs)(`div`,{style:{maxWidth:`560px`},children:[(0,g.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`1.9rem`,fontWeight:700,color:`#ffffff`,marginBottom:`0.6rem`},children:`Stay Ahead of the Tech Curve`}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.95rem`,lineHeight:1.6},children:`Subscribe to our monthly digest to receive deep dives on Agentic AI, Cloud Architectures, and IIoT directly in your inbox.`})]}),(0,g.jsx)(`form`,{onSubmit:S,style:{width:t?`100%`:`auto`,flexShrink:0},children:m?(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.85rem 1.5rem`,borderRadius:`50px`,background:`rgba(56, 189, 248, 0.15)`,border:`1px solid rgba(56, 189, 248, 0.35)`,color:`#38bdf8`,fontWeight:600},children:[(0,g.jsx)(l,{size:18}),`Subscribed successfully!`]}):(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:t?`column`:`row`,gap:`0.75rem`,width:`100%`},children:[(0,g.jsx)(`input`,{type:`email`,required:!0,placeholder:`Enter your work email...`,value:f,onChange:e=>p(e.target.value),style:{padding:`0.85rem 1.25rem`,borderRadius:`50px`,background:`rgba(255, 255, 255, 0.06)`,border:`1px solid rgba(56, 189, 248, 0.2)`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,minWidth:t?`100%`:`260px`},onFocus:e=>{e.target.style.borderColor=`#38bdf8`},onBlur:e=>{e.target.style.borderColor=`rgba(56, 189, 248, 0.2)`}}),(0,g.jsxs)(`button`,{type:`submit`,style:{padding:`0.85rem 1.75rem`,borderRadius:`50px`,background:`linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%)`,color:`#ffffff`,fontWeight:700,fontSize:`0.9rem`,border:`none`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,gap:`0.5rem`,boxShadow:`0 4px 20px rgba(14, 165, 233, 0.35)`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%)`},onMouseLeave:e=>{e.currentTarget.style.background=`linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%)`},children:[`Subscribe `,(0,g.jsx)(Su,{size:16})]})]})})]})]})]})}function $({children:e,delay:t=0,style:n}){let r=nu(),i=iu();return r&&!i?(0,g.jsx)(`div`,{style:n,children:e}):(0,g.jsx)(Z.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.8,ease:[.22,1,.36,1],delay:t},style:n,children:e})}var Hu=({src:e,alt:t,radiusX:n,radiusY:r,startAngle:i,duration:a,clockwise:o=!0,size:s=120})=>{let[c,l]=(0,_.useState)({x:0,y:0});return(0,_.useEffect)(()=>{let e=2*Math.PI/(a*1e3),t=o?1:-1,s=i*Math.PI/180,c,u=()=>{let i=performance.now(),a=s+t*e*i;l({x:n*Math.cos(a),y:r*Math.sin(a)}),c=requestAnimationFrame(u)};return c=requestAnimationFrame(u),()=>cancelAnimationFrame(c)},[n,r,i,a,o]),(0,g.jsx)(Z.div,{whileHover:{scale:1.1},transition:{type:`spring`,stiffness:300,damping:15},style:{position:`absolute`,top:`50%`,left:`50%`,x:`calc(-50% + ${c.x}px)`,y:`calc(-50% + ${c.y}px)`,width:`${s}px`,height:`80px`,display:`flex`,justifyContent:`center`,alignItems:`center`,cursor:`pointer`,zIndex:10,pointerEvents:`auto`},children:(0,g.jsx)(`img`,{src:e,alt:t,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`}})})};function Uu({service:e,isMobile:t,index:n=0}){let r=nu(),i=[`/assets/image 179.png`,`/assets/image 180.png`,`/assets/image 181.png`,`/assets/image 182.png`,`/assets/image 184.png`],o=[`radial-gradient(circle at 85% 15%, rgba(150, 45, 30, 0.45) 0%, rgba(22, 10, 11, 0.98) 55%)`,`radial-gradient(circle at 85% 15%, rgba(20, 100, 140, 0.45) 0%, rgba(10, 18, 25, 0.98) 55%)`,`radial-gradient(circle at 85% 15%, rgba(140, 50, 30, 0.4) 0%, rgba(20, 12, 12, 0.98) 55%)`,`radial-gradient(circle at 85% 15%, rgba(15, 115, 140, 0.45) 0%, rgba(10, 19, 26, 0.98) 55%)`,`radial-gradient(circle at 85% 15%, rgba(30, 90, 140, 0.45) 0%, rgba(12, 18, 28, 0.98) 55%)`],s=e=>e.includes(`AI & Data`)?(0,g.jsxs)(g.Fragment,{children:[`AI & Data`,(0,g.jsx)(`br`,{}),`Services`]}):e.includes(`Enterprise`)?(0,g.jsxs)(g.Fragment,{children:[`Enterprise`,(0,g.jsx)(`br`,{}),`Software`]}):e.includes(`SAP`)?(0,g.jsxs)(g.Fragment,{children:[`SAP Managed`,(0,g.jsx)(`br`,{}),`Services`]}):e.includes(`Smart`)?(0,g.jsxs)(g.Fragment,{children:[`Smart`,(0,g.jsx)(`br`,{}),`Factory`]}):e.includes(`AR/VR`)?(0,g.jsxs)(g.Fragment,{children:[`AR/VR &`,(0,g.jsx)(`br`,{}),`Immersive`,(0,g.jsx)(`br`,{}),`Technologies`]}):e,c=r?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{y:{type:`tween`,duration:.8,ease:[.22,1,.36,1],delay:n*.1},opacity:{duration:.8,ease:`easeOut`,delay:n*.1}}},l=e.image||i[n%i.length];return(0,g.jsxs)(Z.div,{whileHover:t?{}:{y:-6,borderColor:`rgba(255, 255, 255, 0.25)`,boxShadow:`0 20px 40px rgba(0, 0, 0, 0.6)`},...c,style:{flex:`0 0 auto`,scrollSnapAlign:`start`,width:t?`300px`:`390px`,minHeight:t?`560px`:`630px`,background:o[n%o.length],backdropFilter:`blur(16px)`,borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.12)`,padding:t?`1.8rem 1.4rem`:`2.2rem 2rem`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:`0 10px 30px rgba(0, 0, 0, 0.4)`,transition:`all 0.3s ease`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,bottom:`-25px`,right:`15px`,fontSize:t?`130px`:`170px`,fontWeight:900,color:`rgba(255, 255, 255, 0.025)`,lineHeight:`1`,pointerEvents:`none`,userSelect:`none`,zIndex:0},children:e.number}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:2},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,marginBottom:`1.8rem`,minHeight:`120px`},children:[(0,g.jsx)(`h3`,{style:{fontSize:t?`1.6rem`:`2.1rem`,fontWeight:500,color:`#ffffff`,letterSpacing:`-0.02em`,lineHeight:`1.18`,margin:0,maxWidth:`220px`},children:s(e.title)}),(0,g.jsx)(`div`,{style:{width:t?`140px`:`185px`,height:t?`140px`:`185px`,flexShrink:0,position:`absolute`,top:`-15px`,right:`-15px`,pointerEvents:`none`},children:(0,g.jsx)(`img`,{src:a(l),alt:`${e.title} 3D Illustration`,style:{width:`100%`,height:`100%`,objectFit:`contain`,filter:`drop-shadow(0 12px 25px rgba(0, 0, 0, 0.6))`}})})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,gap:`0.85rem`,marginBottom:`1.6rem`},children:[(0,g.jsx)(`div`,{style:{width:`3px`,background:`#ffffff`,borderRadius:`2px`,flexShrink:0}}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h4`,{style:{fontSize:t?`0.88rem`:`0.94rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.4`,margin:`0 0 0.5rem 0`},children:e.boldStatement}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:t?`0.8rem`:`0.85rem`,lineHeight:`1.5`,margin:0,fontWeight:400},children:e.description})]})]}),(0,g.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`0.7rem`},children:e.capabilities.map((e,n)=>{let r=e.split(/\s[-]\s/),i=r.length>1?r[0]:null,a=r.length>1?r.slice(1).join(` - `):e;return(0,g.jsxs)(`li`,{style:{display:`flex`,alignItems:`flex-start`,gap:`0.55rem`,fontSize:t?`0.8rem`:`0.85rem`,fontWeight:400,color:`#94a3b8`,lineHeight:`1.45`},children:[(0,g.jsx)(`span`,{style:{color:`#ffffff`,opacity:.9,fontSize:`0.95rem`,marginTop:`0.05rem`,fontWeight:`bold`},children:`»`}),(0,g.jsx)(`div`,{children:i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`strong`,{style:{color:`#ffffff`,fontWeight:600},children:i}),` `,a]}):a})]},n)})})]})]})}function Wu({previewMode:e=!1}){let{content:t,loading:n}=p(),r=t.services?.items??[],i=t.insights?.items??[],s=t.metrics??[],c=t.hero??{},l=t.about??{},u=t.partners??{logos:[]},d=t.certifications??{items:[]};t.whyUs;let m=t.products??{items:[]},h=t.footer??{cta:{},quickLinks:[],productLinks:[],social:[],legal:[]},[v,y]=(0,_.useState)(`agile`),[b,x]=(0,_.useState)(0),[S,C]=(0,_.useState)(0),[w,T]=(0,_.useState)(!1),[ee,te]=(0,_.useState)(!1),[ne,E]=(0,_.useState)(`home`),[D,O]=(0,_.useState)(`home`),[re,ie]=(0,_.useState)(!0);(0,_.useRef)(0);let k=e=>{document.body.style.pointerEvents=`none`,window.scrollTo({top:e,behavior:`smooth`});let t,n=()=>{document.body.style.pointerEvents=``,window.removeEventListener(`scrollend`,n),window.removeEventListener(`scroll`,r),clearTimeout(t)},r=()=>{clearTimeout(t),t=setTimeout(n,100)};window.addEventListener(`scrollend`,n),window.addEventListener(`scroll`,r),t=setTimeout(n,800)},[A,j]=(0,_.useState)(null),ae=e=>{ie(!0),he(!1),j(e),O(`blog`),window.location.hash=e?.slug?`blog-${e.slug}`:`blog`,k(0)};(0,_.useEffect)(()=>{let e=(e=!1)=>{let t=window.location.hash.replace(`#`,``);if(t===`contact`||t===`contactus`)j(null),O(`contact`),E(`contactus`),e&&k(0);else if(t===`about`||t===`aboutus`)j(null),O(`about`),E(`aboutus`),e&&k(0);else if(t===`careers`)j(null),O(`careers`),E(`careers`),e&&k(0);else if(t===`blogs`)j(null),O(`blogs`),E(`blogs`),e&&k(0);else if(t.startsWith(`blog-`)||t===`blog`){let n=t.replace(`blog-`,``),r=i.find(e=>e.slug===n||String(e.id)===n);r?j(e=>e&&(e.id===r.id||e.slug&&e.slug===r.slug)?e:r):i&&i.length>0&&j(e=>e||i[0]),O(`blog`),e&&k(0)}else (t===`home`||t===``)&&(j(null),O(`home`))};e(!1);let t=()=>e(!0);return window.addEventListener(`hashchange`,t),()=>window.removeEventListener(`hashchange`,t)},[i]);let[oe,se]=(0,_.useState)(null),[ce,le]=(0,_.useState)(!1),[ue,de]=(0,_.useState)(!1),[fe,pe]=(0,_.useState)(!1),[me,he]=(0,_.useState)(!1),[ge,_e]=(0,_.useState)(``),[ve,ye]=(0,_.useState)(``),[be,xe]=(0,_.useState)(``),[Se,Ce]=(0,_.useState)(null),[we,Te]=(0,_.useState)(``),[Ee,M]=(0,_.useState)(``),[N,De]=(0,_.useState)(!1),[Oe,ke]=(0,_.useState)(``),[P,Ae]=(0,_.useState)(``),[F,je]=(0,_.useState)(``),[Me,Ne]=(0,_.useState)(``),[I,Pe]=(0,_.useState)(``),[Fe,Ie]=(0,_.useState)(``),[Le,Re]=(0,_.useState)({"AI & Analytics":!1,"SAP Services":!1,"XR Platforms":!1,"Smart Factory":!1,"Cloud Engineering":!1,"Enterprise Software":!1}),[ze,Be]=(0,_.useState)(``),[L,R]=(0,_.useState)(``),[Ve,He]=(0,_.useState)(!1);(0,_.useEffect)(()=>{let e=()=>{T(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let[Ue,We]=(0,_.useState)(null);(0,_.useEffect)(()=>{let e=setInterval(()=>{let e=[27,28,30,31,32,33,34,35,36],t=e[Math.floor(Math.random()*e.length)];We(t),setTimeout(()=>{We(null)},1e3)},3500);return()=>clearInterval(e)},[]),(0,_.useEffect)(()=>{if(e)return;let t=window.scrollY,n=()=>{let e=window.scrollY,n=e-t;if(e<=50?ie(!0):n>5&&e>100?ie(!1):n<-5&&ie(!0),t=e,D===`home`){if(e<100){E(`home`);return}let t=[`home`,`aboutus`,`services`,`whyus`,`products`,`insights`,`contactus`],n=e+120;if(e>300&&window.innerHeight+e>=document.documentElement.scrollHeight-100){E(`contactus`);return}for(let e of t){let t=document.getElementById(e);if(t){let r=t.offsetTop,i=t.offsetHeight;if(n>=r&&n<r+i){E(e);break}}}}};return window.addEventListener(`scroll`,n),n(),()=>window.removeEventListener(`scroll`,n)},[e,D]);let Ge=()=>{if(D===`blogs`||D===`blog`)return`Blogs`;if(D===`contact`)return`Contact Us`;if(D===`about`)return`About Us`;switch(ne){case`home`:return`Home`;case`aboutus`:case`services`:case`whyus`:return`About Us`;case`products`:return`Products`;case`insights`:case`blogs`:return`Blogs`;case`contactus`:return`Contact Us`;default:return`Home`}},Ke=(0,_.useRef)(null),qe=e=>{if(Ke.current){let t=w?310:444;Ke.current.scrollBy({left:e===`left`?-t:t,behavior:`smooth`})}},[Je,Ye]=(0,_.useState)(0),Xe=(0,_.useRef)(null),Ze=e=>{if(Xe.current){let t=(w?window.innerWidth*.72:340)+24;Xe.current.scrollBy({left:e*t,behavior:`smooth`})}},Qe=w?`1.25rem`:`4rem`,$e=[`Home`,`About Us`,`Products`,`Blogs`,`Careers`,`Contact Us`],z=w?72:88,B=e=>{let t=document.getElementById(e);t?(k(t.getBoundingClientRect().top+window.scrollY-z),E(e)):e===`contactus`&&(k(document.documentElement.scrollHeight),E(`contactus`))},V=e=>{if(ie(!0),he(!1),j(null),e===`Careers`){te(!0);return}if(e===`Blogs`){O(`blogs`),E(`blogs`),window.location.hash=`blogs`,k(0);return}if(e===`Contact Us`){O(`contact`),E(`contactus`),window.location.hash=`contact`,k(0);return}if(e===`About Us`){O(`about`),E(`aboutus`),window.location.hash=`aboutus`,k(0);return}let t={Home:`home`,Products:`products`}[e],n=e=>{if(!e||e===`home`){k(0);return}requestAnimationFrame(()=>{let t=document.getElementById(e);t&&(k(t.getBoundingClientRect().top+window.scrollY-z),E(e))})};if(D!==`home`){O(`home`),E(t||`home`),window.location.hash=t||`home`,setTimeout(()=>n(t),350);return}window.location.hash=t||`home`,n(t)};return(0,_.useEffect)(()=>(document.body.style.overflow=me?`hidden`:``,()=>{document.body.style.overflow=``}),[me]),n?(0,g.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#020710`,color:`#94a3b8`},children:`Loading...`}):(0,g.jsxs)(`div`,{style:{backgroundColor:`#020710`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,display:`flex`,flexDirection:`column`,width:`100%`},children:[(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:10,backgroundColor:`#020710`,width:`100%`,overflow:`hidden`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:`10%`,right:`10%`,height:`600px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.12) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`1200px`,right:`5%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 85, 0, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`2200px`,left:`5%`,width:`600px`,height:`600px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`nav`,{className:`glass site-nav`,style:{position:`sticky`,top:re?0:w?`-72px`:`-88px`,zIndex:50,padding:w?`0.85rem 1.25rem`:`1.2rem 4rem`,borderBottom:ne===`products`?`1px solid rgba(15, 23, 42, 0.08)`:`1px solid rgba(255, 255, 255, 0.05)`,transition:`top 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-bottom 0.3s ease, padding 0.3s ease`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:[(0,g.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,cursor:`pointer`},onClick:()=>{O(`home`),E(`home`),window.location.hash=`home`,window.scrollTo({top:0,behavior:`smooth`})},children:(0,g.jsx)(`img`,{src:a(`/assets/cavin_logo.svg`),alt:`Cavin Infotech Logo`,style:{height:w?`38px`:`50px`,display:`block`}})}),!w&&(0,g.jsxs)(`div`,{className:`site-nav-links`,style:{display:`flex`,gap:`2rem`,alignItems:`center`},children:[$e.map(e=>{let t=ne===`products`,n=Ge()===e,r=oe===e,i;return i=t?n||r?`#b45309`:`#1e293b`:n||r?`#ffaa00`:`#a0aec0`,(0,g.jsx)(`a`,{href:e===`Careers`||e===`Products`?void 0:`#${e.toLowerCase().replace(` `,``)}`,onClick:t=>{t.preventDefault(),V(e)},style:{color:i,textDecoration:`none`,fontSize:`0.95rem`,fontWeight:500,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:()=>se(e),onMouseLeave:()=>se(null),children:e},e)}),(0,g.jsxs)(`div`,{className:`btn-sparkle-wrapper`,children:[(0,g.jsx)(`img`,{src:a(`/assets/button_hover_effect.png`),className:`btn-sparkles`,alt:``}),(0,g.jsx)(`button`,{className:`btn-talk`,onClick:()=>de(!0),children:`Book a Strategy Call`})]})]}),w&&(0,g.jsx)(`button`,{type:`button`,"aria-label":me?`Close menu`:`Open menu`,onClick:()=>he(e=>!e),style:{background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,borderRadius:`8px`,width:`42px`,height:`42px`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:ne===`products`?`#1e293b`:`#fff`,cursor:`pointer`},children:me?(0,g.jsx)(f,{size:20}):(0,g.jsx)(o,{size:20})})]})}),w&&me&&(0,g.jsx)(`div`,{className:`mobile-menu-overlay`,onClick:()=>he(!1),style:{position:`fixed`,inset:0,background:`rgba(2, 7, 16, 0.75)`,backdropFilter:`blur(6px)`,zIndex:60,display:`flex`,justifyContent:`flex-end`},children:(0,g.jsxs)(`div`,{className:`mobile-menu-panel`,onClick:e=>e.stopPropagation(),style:{width:`min(85vw, 320px)`,height:`100%`,background:`#0a1628`,borderLeft:`1px solid rgba(255,255,255,0.08)`,padding:`1.5rem 1.25rem`,display:`flex`,flexDirection:`column`,gap:`0.25rem`},children:[$e.map(e=>(0,g.jsx)(`button`,{type:`button`,onClick:()=>V(e),style:{background:Ge()===e?`rgba(255,170,0,0.12)`:`transparent`,border:`none`,color:Ge()===e?`#ffaa00`:`#e2e8f0`,textAlign:`left`,padding:`0.85rem 1rem`,borderRadius:`8px`,fontSize:`1rem`,fontWeight:500,cursor:`pointer`},children:e},e)),(0,g.jsx)(`button`,{type:`button`,className:`btn-talk`,onClick:()=>{he(!1),de(!0)},style:{marginTop:`1rem`,width:`100%`,minWidth:`unset`},children:`Book a Strategy Call`})]})}),D===`contact`?(0,g.jsx)(Mu,{isMobile:w,onOpenStrategy:()=>de(!0)}):D===`about`?(0,g.jsx)(Nu,{isMobile:w,onOpenStrategy:()=>de(!0),onNavigate:V}):D===`careers`?(0,g.jsx)(Bu,{isMobile:w,onNavigate:V,onOpenStrategy:()=>de(!0)}):D===`blogs`?(0,g.jsx)(Vu,{blogs:i,isMobile:w,onSelectBlog:ae,onNavigate:V}):D===`blog`?(0,g.jsx)(zu,{blog:A||i[0],allBlogs:i,isMobile:w,onNavigate:V,onSelectBlog:ae}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`section`,{id:`home`,style:{padding:w?`5.5rem 1.25rem 2rem`:`7.5rem 4rem 2.5rem 4rem`,textAlign:`center`,position:`relative`,zIndex:10,height:`100vh`,minHeight:`100vh`,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`flex-start`,overflow:`hidden`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,height:`100%`},children:[(0,g.jsxs)(`video`,{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,objectFit:`cover`,zIndex:-1,pointerEvents:`none`},children:[(0,g.jsx)(`source`,{src:a(c.video),type:`video/mp4`}),`Your browser does not support the video tag.`]}),(0,g.jsxs)($,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`},children:[(0,g.jsx)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,backgroundColor:`rgba(255, 255, 255, 0.05)`,border:`1px solid rgba(255, 255, 255, 0.2)`,borderRadius:`9999px`,padding:`0.4rem 1.2rem`,marginBottom:`1.2rem`,backdropFilter:`blur(10px)`,boxShadow:`0 4px 16px rgba(0, 0, 0, 0.4)`},children:(0,g.jsx)(`span`,{style:{color:`#ffffff`,fontSize:`0.82rem`,fontWeight:500},children:(c.badge||`Chennai & Dubai • Trusted by 100+ Clients`).includes(`100+ Clients`)?(0,g.jsxs)(g.Fragment,{children:[(c.badge||`Chennai & Dubai • Trusted by 100+ Clients`).split(`100+ Clients`)[0],(0,g.jsx)(`span`,{style:{color:`#ffaa00`,fontWeight:700},children:`100+ Clients`}),(c.badge||`Chennai & Dubai • Trusted by 100+ Clients`).split(`100+ Clients`)[1]]}):c.badge})}),(0,g.jsxs)(`h1`,{style:{fontSize:`clamp(1.8rem, 3.6vw, 3.2rem)`,fontWeight:800,lineHeight:1.15,maxWidth:`1000px`,margin:`0 auto 1rem auto`,letterSpacing:`-0.02em`,filter:`drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8))`,textShadow:`0 2px 10px rgba(0, 0, 0, 0.5)`},children:[(0,g.jsx)(`span`,{style:{color:`#ffffff`,display:`block`,fontSize:`clamp(1.2rem, 2.5vw, 2.2rem)`,marginBottom:`0.3rem`,fontWeight:600},children:c.headline||`Engineering Intelligence`}),(0,g.jsx)(`span`,{className:`gradient-text-gold`,style:{display:`block`,fontSize:`clamp(2rem, 4vw, 3.4rem)`},children:c.subheadline||`Delivering Impact`})]}),(0,g.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`clamp(0.9rem, 1.1vw, 1.05rem)`,lineHeight:1.6,maxWidth:`760px`,margin:`0 auto 1.8rem auto`,fontWeight:400,textAlign:`center`,textShadow:`0 2px 8px rgba(0, 0, 0, 0.7)`},children:c.description||`In a world driven by intelligence, data, and automation, organisations need more than technology they need a digital transformation partner that delivers measurable business impact.`}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:w?`column`:`row`,gap:`1rem`,alignItems:`center`,justify:`center`,width:w?`100%`:`auto`,marginBottom:`0`},children:[(0,g.jsxs)(`button`,{type:`button`,className:`btn-talk`,onClick:()=>B(`services`),style:{display:`inline-flex`,alignItems:`center`,justify:`center`,gap:`0.5rem`,padding:`0.8rem 1.75rem`,borderRadius:`9999px`,background:`linear-gradient(135deg, #ffaa00 0%, #ff8800 100%)`,color:`#000000`,fontWeight:700,fontSize:`0.95rem`,border:`none`,cursor:`pointer`,boxShadow:`0 4px 20px rgba(255, 170, 0, 0.4)`,transition:`all 0.3s ease`,width:w?`100%`:`auto`,minWidth:`unset`},children:[(0,g.jsx)(`span`,{children:c.primaryCta||`Power your next move`}),(0,g.jsx)(Q,{size:18})]}),(0,g.jsxs)(`button`,{type:`button`,onClick:()=>de(!0),style:{display:`inline-flex`,alignItems:`center`,justify:`center`,gap:`0.5rem`,padding:`0.8rem 1.75rem`,borderRadius:`9999px`,background:`rgba(255, 255, 255, 0.06)`,color:`#ffffff`,fontWeight:600,fontSize:`0.95rem`,border:`1px solid rgba(255, 255, 255, 0.3)`,cursor:`pointer`,backdropFilter:`blur(10px)`,transition:`all 0.3s ease`,width:w?`100%`:`auto`},children:[(0,g.jsx)(`span`,{children:c.secondaryCta||`Book a Strategy Call`}),(0,g.jsx)(Q,{size:18})]})]})]})]})}),(0,g.jsx)(`section`,{style:{padding:w?`3rem 1.25rem`:`4rem 4rem 2rem 4rem`,backgroundColor:`#020710`,position:`relative`,zIndex:10,display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,g.jsx)($,{style:{width:`100%`,display:`flex`,justifyContent:`center`},children:(0,g.jsx)(`div`,{style:{background:`rgba(25, 23, 21, 0.75)`,padding:w?`1.5rem 1.2rem`:`1.2rem 3rem`,display:`flex`,flexDirection:w?`column`:`row`,gap:w?`1.2rem`:`2rem`,justifyContent:w?`center`:`space-between`,alignItems:`center`,width:`100%`,maxWidth:`1100px`,borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.08)`,backdropFilter:`blur(20px)`,marginTop:`0`,marginBottom:`0`,position:`relative`,zIndex:20,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8)`},children:s.map((e,t)=>(0,g.jsxs)(_.Fragment,{children:[t>0&&!w&&(0,g.jsx)(`div`,{style:{width:`1px`,height:`30px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,flexShrink:0}}),(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,flex:`1 1 auto`,minWidth:w?`unset`:`150px`,justifyContent:w?`center`:`flex-start`},children:[(0,g.jsx)(`div`,{style:{width:`42px`,height:`42px`,borderRadius:`50%`,border:`1.5px solid rgba(255, 170, 0, 0.4)`,background:`rgba(255, 170, 0, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:[(0,g.jsx)(Eu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`z`),(0,g.jsx)(_u,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`g`),(0,g.jsx)(yu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`l`),(0,g.jsx)(mu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`c`)][t%4]}),(0,g.jsxs)(`div`,{style:{textAlign:`left`},children:[(0,g.jsx)(`span`,{style:{display:`block`,fontSize:`1.5rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.1},children:e.value}),(0,g.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:e.label})]})]})]},e.label))})})}),(0,g.jsx)(`section`,{id:`aboutus`,style:{padding:w?`3.5rem 1.25rem`:`6.5rem 4rem 5.5rem 4rem`,backgroundColor:`#020710`,backgroundImage:`url('${a(l.backgroundImage)}')`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.02)`,position:`relative`},children:(0,g.jsx)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,g.jsxs)($,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,bottom:`15%`,left:`50%`,transform:`translateX(-50%)`,width:`320px`,height:`60px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.25) 0%, transparent 80%)`,pointerEvents:`none`,zIndex:0,filter:`blur(10px)`}}),(0,g.jsx)(`h2`,{style:{fontSize:`clamp(1.6rem, 2.8vw, 2.4rem)`,fontWeight:600,color:`#ffffff`,marginBottom:`2.5rem`,letterSpacing:`-0.02em`,position:`relative`,zIndex:1},children:l.heading}),(0,g.jsx)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,zIndex:1,boxShadow:`0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(71, 115, 179, 0.15)`,borderRadius:`4px`,overflow:`hidden`},children:(0,g.jsx)(`img`,{src:a(l.badgeImage),alt:l.badgeAlt,style:{height:w?`40px`:`54px`,display:`block`,maxWidth:`100%`,objectFit:`contain`}})})]})})}),(0,g.jsxs)(`section`,{style:{padding:w?`4rem 1.25rem`:`4rem 4rem`,borderTop:`1px solid rgba(255, 255, 255, 0.03)`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`,background:`#020710`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`linear-gradient(rgba(255, 170, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 170, 0, 0.02) 1px, transparent 1px)`,backgroundSize:`50px 50px`,opacity:.4,pointerEvents:`none`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsx)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,position:`relative`,zIndex:2},children:(0,g.jsx)($,{style:{width:`100%`},children:w?(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`3rem`,position:`relative`,zIndex:2},children:[(0,g.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`2rem`,fontWeight:800,marginBottom:`0.8rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:u.heading}),(0,g.jsx)(`h4`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#a0aec0`,marginBottom:`1rem`},children:u.subheading}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:1.5,maxWidth:`400px`,margin:`0 auto`},children:u.body})]}),(0,g.jsx)(`div`,{style:{position:`relative`,width:`280px`,height:`280px`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,g.jsx)(`img`,{src:a(`/assets/GlobeVector.svg`),alt:`Globe Map`,style:{width:`100%`,height:`100%`,objectFit:`contain`,opacity:.3}})}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:`1.5rem 1rem`,width:`100%`,alignItems:`center`,justifyItems:`center`},children:u.logos.map((e,t)=>(0,g.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`50px`,width:`100%`,padding:`0.2rem`},children:(0,g.jsx)(`img`,{src:a(e.image),alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})},t))})]}):(0,g.jsxs)(`div`,{style:{position:`relative`,width:`1100px`,height:`800px`,margin:`0 auto`,zIndex:2},children:[(0,g.jsx)(`img`,{src:a(`/assets/GlobeVector.svg`),alt:`Globe Map`,style:{position:`absolute`,width:`800px`,height:`800px`,top:`58%`,left:`50%`,transform:`translate(-50%, -50%)`,objectFit:`contain`,opacity:.55,zIndex:1,pointerEvents:`none`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5,textAlign:`center`,width:`420px`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`2.2rem`,fontWeight:800,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:u.heading}),(0,g.jsx)(`span`,{style:{fontSize:`1.8rem`,fontWeight:700,color:`#cbd5e1`,margin:`0 0 1rem 0`,letterSpacing:`-0.02em`},children:u.subheading}),(0,g.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0,fontWeight:500,maxWidth:`340px`},children:u.body})]}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 33.svg`),alt:`MRF Logo`,radiusX:520,radiusY:320,startAngle:0,duration:60,clockwise:!0,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 31.svg`),alt:`ACA Global Logo`,radiusX:520,radiusY:320,startAngle:78,duration:60,clockwise:!0,size:175}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 30.svg`),alt:`Polyhose Logo`,radiusX:520,radiusY:320,startAngle:144,duration:60,clockwise:!0,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 32.svg`),alt:`Dawn Pictures Logo`,radiusX:520,radiusY:320,startAngle:216,duration:60,clockwise:!0,size:180}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 35.svg`),alt:`Hero Logo`,radiusX:520,radiusY:320,startAngle:282,duration:60,clockwise:!0,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 28.svg`),alt:`Valeo Logo`,radiusX:360,radiusY:225,startAngle:36,duration:40,clockwise:!1,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 36.svg`),alt:`BorgWarner Logo`,radiusX:360,radiusY:225,startAngle:108,duration:40,clockwise:!1,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/kone.png`),alt:`KONE Logo`,radiusX:360,radiusY:225,startAngle:180,duration:40,clockwise:!1,size:160}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 34.svg`),alt:`Chola MS Logo`,radiusX:360,radiusY:225,startAngle:252,duration:40,clockwise:!1,size:170}),(0,g.jsx)(Hu,{src:a(`/assets/Frame 27.svg`),alt:`CavinKare Logo`,radiusX:360,radiusY:225,startAngle:324,duration:40,clockwise:!1,size:180})]})})})]}),(0,g.jsx)(`section`,{id:`certifications`,style:{padding:w?`3rem 1.25rem`:`5rem 4rem`,backgroundColor:`#020710`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,g.jsx)($,{children:(0,g.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.2vw, 2.5rem)`,fontWeight:600,color:`#e2e8f0`,marginBottom:`3.5rem`,letterSpacing:`-0.02em`,opacity:.9},children:d.heading})}),(0,g.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:w?`1.5rem`:`5rem`,flexWrap:`wrap`},children:d.items.map((e,t)=>(0,g.jsx)($,{delay:t*.1,children:(0,g.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`110px`,padding:`0 0.5rem`,transition:`all 0.3s ease`},children:(0,g.jsx)(`img`,{src:a(e.image),alt:e.alt,style:{height:`100%`,maxHeight:`105px`,width:`auto`,maxWidth:`260px`,objectFit:`contain`}})})},e.alt||t))})]})}),(0,g.jsxs)(`section`,{id:`services`,style:{padding:w?`4rem 0`:`96px 0`,backgroundColor:`#070d18`,position:`relative`,overflow:`hidden`,borderBottom:`1px solid rgba(255, 255, 255, 0.04)`,scrollMarginTop:`${z}px`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:`0%`,right:`0%`,width:`700px`,height:`700px`,background:`radial-gradient(circle at 80% 20%, rgba(30, 85, 145, 0.22) 0%, transparent 60%)`,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,padding:w?`0 1.25rem`:`0 4rem`,display:`flex`,flexDirection:w?`column`:`row`,alignItems:`stretch`,gap:w?`2.5rem`:`40px`,position:`relative`,zIndex:1},children:[(0,g.jsxs)($,{style:{flex:w?`1`:`0 0 260px`,width:w?`100%`:`260px`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h2`,{style:{color:`#ffffff`,fontSize:w?`2.2rem`:`2.9rem`,fontWeight:400,letterSpacing:`-0.02em`,margin:`0 0 1rem 0`,lineHeight:`1.1`},children:`Our Services`}),(0,g.jsx)(`span`,{style:{color:`#8c9ba5`,fontSize:`0.78rem`,fontWeight:500,textTransform:`uppercase`,letterSpacing:`0.06em`,display:`block`,marginBottom:`2rem`,lineHeight:`1.4`},children:`TECHNOLOGY THAT MOVES YOUR BUSINESS FORWARD.`}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:w?`0.88rem`:`0.92rem`,lineHeight:`1.65`,margin:`0 0 2rem 0`,fontWeight:400},children:`From market leaders to high-growth innovators enterprises trust Cavin Infotech to deliver secure, scalable, and future-ready digital solutions that create measurable business value.`})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,gap:`10px`,marginTop:w?`1.5rem`:`auto`,justifyContent:`flex-start`},children:[(0,g.jsx)(`button`,{onClick:()=>qe(`left`),style:{width:`42px`,height:`42px`,borderRadius:`4px`,background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,padding:0,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.03)`},"aria-label":`Scroll left`,children:(0,g.jsx)(fu,{size:18,strokeWidth:2.5})}),(0,g.jsx)(`button`,{onClick:()=>qe(`right`),style:{width:`42px`,height:`42px`,borderRadius:`4px`,background:`#ffffff`,border:`1px solid #ffffff`,color:`#070d18`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,padding:0,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.opacity=`0.9`},onMouseLeave:e=>{e.currentTarget.style.opacity=`1`},"aria-label":`Scroll right`,children:(0,g.jsx)(pu,{size:18,strokeWidth:2.5})})]})]}),(0,g.jsx)(`div`,{style:{flexGrow:1,overflow:`visible`,width:w?`100%`:`calc(100% - 364px)`},children:(0,g.jsx)($,{style:{width:`100%`},children:(0,g.jsx)(`div`,{ref:Ke,className:`services-carousel`,style:{display:`flex`,gap:w?`1rem`:`24px`,overflowX:`auto`,overflowY:`hidden`,scrollSnapType:`x mandatory`,paddingBottom:`2rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},children:r.map((e,t)=>(0,g.jsx)(Uu,{service:e,isMobile:w,index:t},e.id))})})})]})]}),(0,g.jsx)(`section`,{id:`whyus`,style:{padding:w?`4rem 1.25rem`:`6rem 4rem`,background:`rgba(5, 16, 34, 0.3)`,position:`relative`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,position:`relative`,zIndex:10},children:[(0,g.jsx)(`div`,{style:{textAlign:`left`,marginBottom:`3rem`},children:(0,g.jsxs)($,{children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(2.2rem, 3.2vw, 2.8rem)`,fontWeight:400,marginTop:0,color:`#ffffff`,marginBottom:`0.4rem`,letterSpacing:`-0.02em`},children:`Why Organizations choose us`}),(0,g.jsx)(`span`,{style:{color:`#8c9ba5`,fontSize:`0.78rem`,fontWeight:500,textTransform:`uppercase`,letterSpacing:`0.08em`},children:`BUILT ON ENTERPRISE EXPERIENCE, DRIVEN BY EXECUTION.`})]})}),w?(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.25rem`,position:`relative`,zIndex:10},children:[(0,g.jsx)($,{delay:0,children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`16px`,background:`linear-gradient(135deg, rgba(80, 105, 145, 0.4) 0%, rgba(9, 14, 24, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:500,color:`#ffffff`,margin:0},children:`The Expertise Edge`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,margin:`1.2rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0},children:`Deep manufacturing domain expertise + certified SAP mastery + production-grade AI engineering. We don't just consult - we've lived your challenges.`})]})}),(0,g.jsx)($,{delay:.1,children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`16px`,background:`radial-gradient(ellipse at 25% 30%, rgba(210, 135, 25, 0.2) 0%, rgba(9, 14, 24, 0.98) 70%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:500,color:`#ffffff`,margin:0},children:`Speed That Sets Us Apart`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,margin:`1.2rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0},children:`In just five years, we've delivered what takes most companies decades - with clean architecture, zero bureaucracy, and exceptional quality.`})]})}),(0,g.jsx)($,{delay:.2,children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`16px`,background:`radial-gradient(ellipse at 25% 30%, rgba(210, 135, 25, 0.2) 0%, rgba(9, 14, 24, 0.98) 70%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:500,color:`#ffffff`,margin:0},children:`Proven Platforms, Real Impact`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,margin:`1.2rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:`0 0 1rem 0`},children:`PRODMAX and Nebula AI Platform are not pilots - they're delivering measurable gains in factories right now.`}),(0,g.jsxs)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,color:`#8c9ba5`,fontSize:`0.86rem`,lineHeight:`1.6`},children:[(0,g.jsx)(`li`,{children:`• Up to 30% reduction in operational overheads`}),(0,g.jsx)(`li`,{children:`• Real-time visibility across 100+ connected machines`}),(0,g.jsx)(`li`,{children:`• End-to-end traceability from raw materials to dispatch`})]})]})}),(0,g.jsx)($,{delay:.3,children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{borderRadius:`16px`,background:`linear-gradient(to bottom, rgba(9, 14, 24, 0.98) 0%, rgba(9, 14, 24, 0.92) 50%, rgba(9, 14, 24, 0.3) 70%), url(${a(`/assets/whyus_teamwork_user.jpg`)})`,backgroundSize:`cover`,backgroundPosition:`center`,border:`1px solid rgba(255, 255, 255, 0.12)`,padding:`2rem 1.8rem`,minHeight:`380px`},children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:500,color:`#ffffff`,margin:0},children:`Results We Stand By`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,margin:`1.2rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0},children:`We track what matters: productivity, cost savings, OEE, ROI, and business impact. Transformation only counts when it shows in your numbers.`})]})})]}):(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1.2fr 1.6fr 2.2fr 1.2fr 2.4fr`,gridTemplateRows:`auto auto`,gap:`1.25rem`,alignItems:`stretch`,position:`relative`,zIndex:10},children:[(0,g.jsx)($,{delay:0,style:{height:`100%`,gridColumn:`1 / 3`,gridRow:`1`},children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.2rem`,borderRadius:`16px`,background:`linear-gradient(135deg, rgba(80, 105, 145, 0.45) 0%, rgba(30, 45, 70, 0.7) 40%, rgba(9, 14, 24, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`,boxSizing:`border-box`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-20%`,right:`-20%`,width:`220px`,height:`220px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.08)`,pointerEvents:`none`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-35%`,right:`-35%`,width:`300px`,height:`300px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.05)`,pointerEvents:`none`}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.8rem`,fontWeight:500,color:`#ffffff`,lineHeight:`1.2`,margin:`0 0 2.5rem 0`,maxWidth:`200px`},children:`The Expertise Edge`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,margin:`0 0 1.5rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.88rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Deep manufacturing domain expertise + certified SAP mastery + production-grade AI engineering. We don't just consult - we've lived your challenges.`})]})}),(0,g.jsx)($,{delay:.1,style:{height:`100%`,gridColumn:`3 / 5`,gridRow:`1`},children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.2rem`,borderRadius:`16px`,background:`radial-gradient(ellipse at 25% 30%, rgba(210, 135, 25, 0.22) 0%, rgba(9, 14, 24, 0.98) 70%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`,boxSizing:`border-box`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-20%`,right:`-20%`,width:`220px`,height:`220px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.05)`,pointerEvents:`none`}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.8rem`,fontWeight:500,color:`#ffffff`,lineHeight:`1.25`,margin:`0 0 2.5rem 0`,maxWidth:`240px`},children:`Speed That Sets Us Apart`}),(0,g.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,margin:`0 0 1.5rem 0`}}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.88rem`,lineHeight:`1.6`,margin:0,fontWeight:400,maxWidth:`95%`},children:`In just five years, we've delivered what takes most companies decades - with clean architecture, zero bureaucracy, and exceptional quality.`})]})}),(0,g.jsx)($,{delay:.2,style:{height:`100%`,gridColumn:`5`,gridRow:`1 / 3`},children:(0,g.jsx)(`div`,{className:`glass-card`,style:{borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`,backgroundImage:`linear-gradient(to bottom, rgba(9, 14, 24, 0.98) 0%, rgba(9, 14, 24, 0.92) 42%, rgba(9, 14, 24, 0.2) 58%, transparent 75%), url(${a(`/assets/whyus_teamwork_user.jpg`)})`,backgroundSize:`cover`,backgroundPosition:`bottom center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`2.2rem`,height:`100%`,boxSizing:`border-box`},children:(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h3`,{style:{fontSize:`1.8rem`,fontWeight:500,color:`#ffffff`,lineHeight:`1.2`,margin:`0 0 1.5rem 0`},children:`Results We Stand By`}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.88rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`We track what matters: productivity, cost savings, OEE, ROI, and business impact. Transformation only counts when it shows in your numbers.`})]})})}),(0,g.jsx)($,{delay:.3,style:{height:`100%`,gridColumn:`1`,gridRow:`2`},children:(0,g.jsx)(`div`,{style:{borderRadius:`16px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.12)`,height:`100%`,minHeight:`260px`},children:(0,g.jsx)(`img`,{src:a(`/assets/Indian Financial Advisers Stock Market Strategy.jpg`),alt:`Financial Advisers & Strategy`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,g.jsx)($,{delay:.4,style:{height:`100%`,gridColumn:`2 / 4`,gridRow:`2`},children:(0,g.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.2rem`,borderRadius:`16px`,background:`radial-gradient(ellipse at 25% 25%, rgba(210, 135, 25, 0.2) 0%, rgba(9, 14, 24, 0.98) 70%)`,border:`1px solid rgba(255, 255, 255, 0.12)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`,boxSizing:`border-box`},children:[(0,g.jsx)(`div`,{style:{position:`absolute`,top:`-20%`,right:`-20%`,width:`220px`,height:`220px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.05)`,pointerEvents:`none`}}),(0,g.jsx)(`h3`,{style:{fontSize:`1.7rem`,fontWeight:500,color:`#ffffff`,lineHeight:`1.25`,margin:`0 0 1.2rem 0`,maxWidth:`240px`},children:`Proven Platforms, Real Impact`}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.86rem`,lineHeight:`1.55`,margin:`0 0 1.2rem 0`,fontWeight:400},children:`PRODMAX and Nebula AI Platform are not pilots - they're delivering measurable gains in factories right now.`}),(0,g.jsxs)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,color:`#8c9ba5`,fontSize:`0.84rem`,lineHeight:`1.6`,display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,g.jsx)(`li`,{children:`• Up to 30% reduction in operational overheads`}),(0,g.jsx)(`li`,{children:`• Real-time visibility across 100+ connected machines`}),(0,g.jsx)(`li`,{children:`• End-to-end traceability from raw materials to dispatch`})]})]})}),(0,g.jsx)($,{delay:.5,style:{height:`100%`,gridColumn:`4`,gridRow:`2`},children:(0,g.jsx)(`div`,{style:{borderRadius:`16px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.12)`,height:`100%`,minHeight:`260px`},children:(0,g.jsx)(`img`,{src:a(`/assets/side-view-people-working-together.jpg`),alt:`People working together`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})})]})]})}),(0,g.jsx)($,{children:(0,g.jsx)(Du,{gallery:t.gallery})}),(0,g.jsxs)(`section`,{id:`products`,style:{padding:w?`4rem 1.25rem`:`6rem 4rem`,background:`linear-gradient(180deg, #2791a5 0%, #0f4652 35%, #020710 100%)`,position:`relative`,overflow:`hidden`,scrollMarginTop:`${z}px`},children:[(0,g.jsx)(`img`,{src:a(`/assets/Wave Pattern 2.svg`),alt:``,"aria-hidden":`true`,style:{position:`absolute`,top:`-50%`,left:0,width:`100%`,height:`180%`,objectFit:`cover`,objectPosition:`center top`,opacity:.42,pointerEvents:`none`,zIndex:1}}),(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,position:`relative`,zIndex:10},children:[(0,g.jsx)($,{children:(0,g.jsxs)(`div`,{style:{textAlign:`left`,marginBottom:`3.5rem`,position:`relative`,zIndex:10},children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(2.2rem, 3.2vw, 2.8rem)`,fontWeight:500,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`},children:m.title||`Our Products Suite`}),(0,g.jsx)(`span`,{style:{color:`#8c9ba5`,fontSize:`0.78rem`,fontWeight:500,textTransform:`uppercase`,letterSpacing:`0.08em`,display:`block`},children:m.eyebrow||`ONE ECOSYSTEM. EXPONENTIAL IMPACT.`})]})}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr`:`repeat(auto-fit, minmax(320px, 1fr))`,gap:w?`1.5rem`:`2.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10,marginBottom:`2.5rem`},children:m.items.map((e,t)=>(0,g.jsx)(Au,{product:e,isMobile:w,delay:t*.1,index:t},e.name||t))}),(0,g.jsx)(`p`,{style:{color:`#8c9ba5`,fontSize:`0.88rem`,textAlign:`center`,maxWidth:`850px`,margin:`0 auto 1.8rem auto`,lineHeight:`1.5`,fontWeight:400},children:`Plus many more specialized solutions: LiveWire, Nucleus, Digital Meeting Agenda, SEC, XR Workbench, TMS, and others - purpose-built for manufacturing and enterprise excellence.`})]})]}),(0,g.jsx)(`section`,{id:`insights`,style:{padding:w?`3.5rem 0 4rem`:`5rem 0 6rem 0`,background:`#020c1e`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`},children:[(0,g.jsxs)($,{style:{padding:w?`0 1.25rem`:`0 4rem`,display:`flex`,flexDirection:w?`column`:`row`,justifyContent:`space-between`,alignItems:w?`stretch`:`flex-start`,gap:w?`1.25rem`:`0`,marginBottom:w?`2rem`:`3rem`},children:[(0,g.jsxs)(`div`,{style:{maxWidth:`680px`},children:[(0,g.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3vw, 2.6rem)`,fontWeight:700,color:`#ffffff`,lineHeight:1.25,marginBottom:`1rem`,letterSpacing:`-0.02em`},children:t.insights.title}),(0,g.jsx)(`p`,{style:{color:`#64748b`,fontSize:`0.82rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.06em`,lineHeight:1.6,maxWidth:`540px`},children:t.insights.subtitle})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`center`,flexShrink:0,marginTop:`0.5rem`,flexWrap:`wrap`},children:[(0,g.jsxs)(`button`,{onClick:()=>V(`Blogs`),style:{padding:`0.55rem 1.25rem`,borderRadius:`50px`,background:`rgba(56,189,248,0.12)`,border:`1px solid rgba(56,189,248,0.3)`,color:`#38bdf8`,fontWeight:600,fontSize:`0.85rem`,cursor:`pointer`,display:`flex`,alignItems:`center`,gap:`0.4rem`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`#38bdf8`,e.currentTarget.style.color=`#000`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(56,189,248,0.12)`,e.currentTarget.style.color=`#38bdf8`},children:[`View All Blogs `,(0,g.jsx)(Q,{size:14})]}),(0,g.jsx)(`button`,{onClick:()=>Ze(-1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,g.jsx)(Q,{size:16,style:{transform:`rotate(180deg)`}})}),(0,g.jsx)(`button`,{onClick:()=>Ze(1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,g.jsx)(Q,{size:16})})]})]}),(0,g.jsx)($,{style:{width:`100%`},children:(0,g.jsx)(`div`,{ref:Xe,style:{display:`flex`,gap:`1.5rem`,overflowX:`auto`,overflowY:`hidden`,scrollSnapType:`x mandatory`,scrollPaddingLeft:w?`1.25rem`:`4rem`,paddingLeft:w?`1.25rem`:`4rem`,paddingRight:w?`1.25rem`:`4rem`,paddingBottom:`1.5rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},className:`blog-carousel`,children:i.map((e,t)=>(0,g.jsx)($,{delay:t*.1,style:{flex:w?`0 0 72vw`:`0 0 340px`,minWidth:w?`72vw`:`340px`,height:`420px`,scrollSnapAlign:`start`,flexShrink:0},children:(0,g.jsxs)(`div`,{className:`blog-card`,onClick:()=>ae(e),style:{width:`100%`,height:`100%`,borderRadius:`14px`,overflow:`hidden`,position:`relative`,cursor:`pointer`,border:`1px solid rgba(255,255,255,0.08)`,transition:`all 0.35s cubic-bezier(0.4,0,0.2,1)`,boxShadow:`0 4px 30px rgba(0,0,0,0.5)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255,170,0,0.35)`,e.currentTarget.style.boxShadow=`0 16px 48px rgba(255,170,0,0.12)`,e.currentTarget.style.transform=`translateY(-5px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.08)`,e.currentTarget.style.boxShadow=`0 4px 30px rgba(0,0,0,0.5)`,e.currentTarget.style.transform=`translateY(0)`},children:[(0,g.jsx)(`img`,{src:a(e.image),alt:e.title,className:`blog-card-img`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`center top`,display:`block`,transition:`transform 0.6s ease`}}),(0,g.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(to bottom, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.0) 100%)`,pointerEvents:`none`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:`1.3rem 1.2rem 1.2rem 1.2rem`,display:`flex`,flexDirection:`column`,gap:`0.5rem`,background:`rgba(8, 14, 32, 0.55)`,backdropFilter:`blur(14px)`,WebkitBackdropFilter:`blur(14px)`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,g.jsx)(`span`,{style:{fontSize:`0.63rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.13em`,color:`#64748b`},children:e.category}),(0,g.jsx)(`h3`,{style:{fontSize:`0.97rem`,fontWeight:700,color:`#f1f5f9`,lineHeight:1.4,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,g.jsxs)(`div`,{className:`blog-read-more`,style:{marginTop:`0.2rem`,display:`flex`,alignItems:`center`,gap:`0.35rem`,color:`#cbd5e1`,fontSize:`0.82rem`,fontWeight:600,transition:`color 0.2s ease`},children:[`Read Blog `,(0,g.jsx)(Q,{size:14,style:{color:`#ffaa00`}})]})]})]})},t))})})]})})]}),(0,g.jsx)(`section`,{style:{background:`#020c1e`,position:`relative`,zIndex:10,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`flex-end`,padding:`4rem 0 0 0`},children:(0,g.jsx)(`img`,{src:a(`/assets/Citpl footer.svg`),alt:`Cavin Infotech Logo Divider`,style:{width:`100%`,height:`auto`,display:`block`}})})]}),` `,(0,g.jsx)(`footer`,{id:`footer`,style:{position:`sticky`,bottom:0,zIndex:1,background:`linear-gradient(180deg, #ffffff 0%, #dde6f5 100%)`,padding:w?`3rem 0`:`4rem 0`,color:`#1e293b`,width:`100%`,scrollMarginTop:`${z}px`},children:(0,g.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,width:`100%`,padding:`0 ${Qe}`},children:[w?(0,g.jsx)($,{children:(0,g.jsx)(`div`,{style:{background:`linear-gradient(135deg, #092244 0%, #05162d 100%)`,borderRadius:`20px`,padding:`2.2rem 1.6rem`,display:`flex`,flexDirection:`column`,gap:`1.2rem`,marginBottom:`2.5rem`,position:`relative`,overflow:`hidden`,boxShadow:`0 20px 40px rgba(0,0,0,0.25)`,border:`1px solid rgba(255, 255, 255, 0.08)`},children:(0,g.jsxs)(`div`,{children:[(0,g.jsxs)(`h2`,{style:{fontSize:`1.65rem`,fontWeight:600,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`,letterSpacing:`-0.02em`},children:[`Let's Build What's Next -`,(0,g.jsx)(`br`,{}),`Together.`]}),(0,g.jsx)(`p`,{style:{fontSize:`0.82rem`,fontWeight:500,lineHeight:1.55,color:`#cbd5e1`,marginBottom:`1.8rem`,textTransform:`uppercase`,letterSpacing:`0.06em`},children:h.cta.body}),(0,g.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.9rem`},children:(0,g.jsx)(`button`,{onClick:()=>B(`contactus`),style:{background:`linear-gradient(135deg, #d6802e 0%, #ba6a20 100%)`,border:`none`,boxShadow:`0 8px 25px rgba(214, 128, 46, 0.35)`,color:`#ffffff`,padding:`0.85rem 1.6rem`,borderRadius:`50px`,fontSize:`0.88rem`,fontWeight:600,cursor:`pointer`,width:`100%`,textAlign:`center`},children:h.cta.primaryButton})})]})})}):(0,g.jsx)($,{children:(0,g.jsxs)(`div`,{style:{position:`relative`,width:`100%`,marginBottom:`3.5rem`},children:[(0,g.jsx)(`img`,{src:a(h.cta.image),alt:`CTA Banner`,style:{width:`100%`,height:`auto`,display:`block`}}),(0,g.jsxs)(`div`,{style:{position:`absolute`,left:`5.5%`,top:`50%`,transform:`translateY(-50%)`,width:`56%`,zIndex:2},children:[(0,g.jsxs)(`h2`,{style:{fontSize:`clamp(1.5rem, 2.5vw, 2.4rem)`,fontWeight:500,color:`#ffffff`,lineHeight:1.2,marginBottom:`1rem`,letterSpacing:`-0.02em`},children:[`Let's Build What's Next -`,(0,g.jsx)(`br`,{}),`Together.`]}),(0,g.jsx)(`p`,{style:{fontSize:`clamp(0.72rem, 1vw, 0.9rem)`,fontWeight:500,lineHeight:1.55,color:`#cbd5e1`,marginBottom:`2.2rem`,textTransform:`uppercase`,letterSpacing:`0.06em`,maxWidth:`92%`},children:h.cta.body}),(0,g.jsx)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`center`,flexWrap:`wrap`},children:(0,g.jsx)(`button`,{onClick:()=>B(`contactus`),style:{background:`linear-gradient(135deg, #d6802e 0%, #ba6a20 100%)`,border:`none`,boxShadow:`0 8px 25px rgba(214, 128, 46, 0.35)`,color:`#ffffff`,padding:`0.85rem 1.8rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 0.95vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 12px 30px rgba(214, 128, 46, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 8px 25px rgba(214, 128, 46, 0.35)`},children:h.cta.primaryButton})})]})]})}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr 1fr`:`180px 180px 1fr`,gap:w?`2rem 1.5rem`:`1.25rem`,paddingBottom:w?`2rem`:`2.5rem`,borderBottom:`1px solid rgba(30,41,59,0.12)`,marginBottom:`1.5rem`},children:[(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h5`,{style:{fontSize:`0.75rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Quick Links`}),(0,g.jsxs)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.45rem`,padding:0,margin:0},children:[(0,g.jsx)(`li`,{children:(0,g.jsx)(`a`,{href:`#home`,onClick:e=>{e.preventDefault(),B(`home`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.85rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Home`})}),(0,g.jsx)(`li`,{children:(0,g.jsx)(`a`,{href:`#aboutus`,onClick:e=>{e.preventDefault(),V(`About Us`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.85rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`About Us`})}),(0,g.jsx)(`li`,{children:(0,g.jsx)(`a`,{href:`#services`,onClick:e=>{e.preventDefault(),D===`home`?B(`services`):(O(`home`),setTimeout(()=>B(`services`),300))},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.85rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Our Services`})}),(0,g.jsx)(`li`,{children:(0,g.jsx)(`a`,{href:`#contactus`,onClick:e=>{e.preventDefault(),V(`Contact Us`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.85rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Contact Us`})})]})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`h5`,{style:{fontSize:`0.75rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Products`}),(0,g.jsx)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.45rem`,padding:0,margin:0},children:(h.productLinks&&h.productLinks.length?h.productLinks.map(e=>e.label):[`Nebula AI Platform`,`Prodmax`,`Budgie`]).map(e=>(0,g.jsx)(`li`,{children:(0,g.jsx)(`a`,{href:`#products`,onClick:e=>{e.preventDefault(),D===`home`?B(`products`):(O(`home`),setTimeout(()=>B(`products`),300))},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.85rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:e})},e))})]}),(0,g.jsxs)(`div`,{style:{gridColumn:w?`span 2`:`auto`},children:[(0,g.jsx)(`h5`,{style:{fontSize:`0.75rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e40af`,marginBottom:`1rem`},children:`Social Links`}),(0,g.jsx)(`div`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`center`,flexWrap:`wrap`},children:(h.social&&h.social.length?h.social:[{platform:`Facebook`,url:`https://www.facebook.com/cavininfotech1`},{platform:`X`,url:`https://x.com/cavin_infotech`},{platform:`Instagram`,url:`https://www.instagram.com/cavin_infotech`},{platform:`LinkedIn`,url:`https://www.linkedin.com/company/cavin-infotech/`},{platform:`YouTube`,url:`https://youtube.com/@cavin_infotech`}]).map(({platform:e,url:t})=>{let n={Facebook:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`,Instagram:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.051.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z`,LinkedIn:`M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z`,X:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`,YouTube:`M23.498 6.163a3.003 3.003 0 0 0-2.11-2.11C19.53 3.545 12 3.545 12 3.545s-7.53 0-9.388.508a3.003 3.003 0 0 0-2.11 2.11C0 8.017 0 12 0 12s0 3.983.502 5.837a3.003 3.003 0 0 0 2.11 2.11c1.858.508 9.388.508 9.388.508s7.53 0 9.388-.508a3.003 3.003 0 0 0 2.11-2.11C24 15.983 24 12 24 12s0-3.983-.502-5.837zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},r=n[e]||n.Facebook;return(0,g.jsx)(`a`,{href:t||`#`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":e,style:{width:`36px`,height:`36px`,borderRadius:`50%`,background:`rgba(30,41,59,0.08)`,border:`1px solid rgba(30,41,59,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,color:`#475569`},onMouseEnter:e=>{e.currentTarget.style.background=`#1e40af`,e.currentTarget.style.color=`#fff`,e.currentTarget.style.borderColor=`#1e40af`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(30,41,59,0.08)`,e.currentTarget.style.color=`#475569`,e.currentTarget.style.borderColor=`rgba(30,41,59,0.12)`},children:(0,g.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,children:(0,g.jsx)(`path`,{d:r})})},e)})})]})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:w?`column`:`row`,alignItems:w?`flex-start`:`center`,justifyContent:`space-between`,gap:w?`0.75rem`:`1.5rem`,fontSize:`0.82rem`,color:`#475569`},children:[(0,g.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,flexWrap:`wrap`},children:[(0,g.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Privacy Policy`}),(0,g.jsx)(`span`,{style:{color:`#cbd5e1`},children:``}),(0,g.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Terms & Conditions`})]}),(0,g.jsx)(`span`,{style:{fontSize:`0.78rem`,color:`#64748b`},children:`Copyrights reserved to CAVIN INFOTECH`})]})]})}),ee&&!e&&(0,g.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:w?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,g.jsxs)(`div`,{style:{position:`relative`,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(5, 11, 24, 0.95)`,backdropFilter:`blur(20px)`,WebkitBackdropFilter:`blur(20px)`,overflow:`hidden`,boxShadow:`0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08)`,display:`grid`,gridTemplateColumns:w?`1fr`:`38% 62%`,minHeight:`520px`,width:`100%`,maxWidth:`920px`,color:`#ffffff`},children:[(0,g.jsx)(`button`,{onClick:()=>{te(!1),le(!1),Te(``),M(``)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`,zIndex:10},onMouseEnter:e=>e.currentTarget.style.color=`#38bdf8`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1,padding:w?`2.5rem 1.5rem`:`3.5rem 3rem`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,background:`radial-gradient(circle at top left, rgba(3, 135, 218, 0.25) 0%, rgba(2, 7, 16, 0.4) 100%)`,borderRight:w?`none`:`1px solid rgba(255, 255, 255, 0.08)`,borderBottom:w?`1px solid rgba(255, 255, 255, 0.08)`:`none`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(`/assets/C0ntact form blur.svg`),alt:``,style:{position:`absolute`,top:`-20%`,left:`-20%`,width:`140%`,height:`140%`,objectFit:`cover`,opacity:.7,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,g.jsx)(`h3`,{style:{fontSize:w?`1.5rem`:`1.85rem`,fontWeight:700,color:`#ffffff`,marginBottom:`2rem`,letterSpacing:`-0.01em`},children:`Join Our Team`}),(0,g.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[`Work on Challenging Projects`,`Collaborative Global Team`,`Continuous Growth & Learning`,`Competitive Compensation`].map((e,t)=>(0,g.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.85rem`,color:`#e2e8f0`,fontSize:w?`0.95rem`:`1.05rem`,fontWeight:500},children:[(0,g.jsx)(`span`,{style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`20px`,height:`20px`,color:`#ffffff`},children:``}),(0,g.jsx)(`span`,{children:e})]},t))})]})]}),(0,g.jsx)(`div`,{style:{position:`relative`,zIndex:1,padding:w?`2.5rem 1.5rem`:`3.5rem 3.5rem`,display:`flex`,flexDirection:`column`,justifyContent:`center`,background:`rgba(2, 7, 16, 0.4)`},children:ce?(0,g.jsxs)(`div`,{style:{textAlign:`center`,padding:`1rem 0`},children:[(0,g.jsx)(`div`,{style:{width:`56px`,height:`56px`,borderRadius:`50%`,background:`rgba(16, 185, 129, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.25rem auto`,color:`#34d399`},children:(0,g.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#34d399`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,g.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,g.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Application Received!`}),(0,g.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for applying to Cavin Infotech. We have received your resume and details successfully. Our recruitment team will review your application and contact you if your qualifications match our current needs.`}),(0,g.jsx)(`button`,{onClick:()=>{te(!1),le(!1),_e(``),ye(``),xe(``),Ce(null),Te(``)},style:{background:`transparent`,border:`1px solid rgba(255, 255, 255, 0.3)`,color:`#ffffff`,padding:`0.6rem 2rem`,borderRadius:`50px`,fontSize:`0.88rem`,fontWeight:600,cursor:`pointer`},children:`Close Window`})]}):(0,g.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!ge.trim()||!ve.trim()||!be.trim()){M(`Please fill in Name, Email, and Phone fields.`);return}if(!Se){M(`Please upload your resume file.`);return}if(!we){M(`Please complete the Cloudflare Turnstile security verification.`);return}De(!0),M(``);try{let e=new FormData;e.append(`type`,`careers`),e.append(`name`,ge),e.append(`email`,ve),e.append(`phone`,be),Se&&(e.append(`resume`,Se),e.append(`resumeName`,Se.name)),e.append(`message`,`New Careers Application from ${ge}`),e.append(`turnstileToken`,we);let t=await fetch(`/api/contact`,{method:`POST`,body:e});t.ok||(t=await fetch(`/api/send`,{method:`POST`,body:e}));let n=await t.json().catch(()=>({}));t.ok&&n.success,le(!0)}catch(e){console.error(`Error sending application:`,e),le(!0)}finally{De(!1)}},style:{display:`flex`,flexDirection:`column`,gap:`2rem`},children:[Ee&&(0,g.jsx)(`div`,{style:{padding:`0.75rem 1rem`,background:`rgba(239, 68, 68, 0.15)`,border:`1px solid rgba(239, 68, 68, 0.4)`,borderRadius:`8px`,color:`#fca5a5`,fontSize:`0.88rem`},children:Ee}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`text`,required:!0,value:ge,onChange:e=>{_e(e.target.value),Ee&&M(``)},placeholder:`Name`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`email`,required:!0,value:ve,onChange:e=>{ye(e.target.value),Ee&&M(``)},placeholder:`Email`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`tel`,required:!0,value:be,onChange:e=>{xe(e.target.value),Ee&&M(``)},placeholder:`Phone`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.6rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`,marginTop:`0.5rem`},children:(0,g.jsxs)(`div`,{style:{position:`relative`,border:`2px dashed rgba(255, 255, 255, 0.15)`,borderRadius:`12px`,padding:`1.5rem`,textAlign:`center`,background:`rgba(255, 255, 255, 0.01)`,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#38bdf8`,e.currentTarget.style.background=`rgba(56, 189, 248, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.01)`},children:[(0,g.jsx)(`input`,{type:`file`,required:!0,accept:`.pdf,.doc,.docx`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,opacity:0,cursor:`pointer`},onChange:e=>{let t=e.target.files[0];Ce(t),Ee&&M(``);let n=t?.name,r=document.getElementById(`file-upload-label`);r&&n&&(r.textContent=n)}}),(0,g.jsx)(`span`,{id:`file-upload-label`,style:{fontSize:`0.88rem`,color:`#cbd5e1`,fontWeight:500},children:`Click to upload your Resume (.pdf, .doc, .docx)`})]})}),(0,g.jsx)(ju,{onVerify:e=>{Te(e),Ee&&M(``)},onExpire:()=>Te(``)}),(0,g.jsx)(`button`,{type:`submit`,disabled:N,style:{marginTop:`1rem`,width:`100%`,background:`#ffffff`,color:`#020710`,border:`none`,padding:`0.95rem 1.5rem`,borderRadius:`50px`,fontSize:`1.05rem`,fontWeight:700,cursor:N?`not-allowed`:`pointer`,boxShadow:`0 10px 25px rgba(255, 255, 255, 0.15)`,transition:`all 0.3s ease`},onMouseEnter:e=>{N||(e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 15px 35px rgba(255, 255, 255, 0.3)`)},onMouseLeave:e=>{N||(e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 10px 25px rgba(255, 255, 255, 0.15)`)},children:N?`Submitting...`:`Submit Application`})]})})]})}),ue&&!e&&(0,g.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:w?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,g.jsxs)(`div`,{style:{position:`relative`,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(5, 11, 24, 0.95)`,backdropFilter:`blur(20px)`,WebkitBackdropFilter:`blur(20px)`,overflow:`hidden`,boxShadow:`0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08)`,display:`grid`,gridTemplateColumns:w?`1fr`:`38% 62%`,minHeight:`520px`,width:`100%`,maxWidth:`920px`,color:`#ffffff`},children:[(0,g.jsx)(`button`,{onClick:()=>{de(!1),pe(!1),Be(``),R(``)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`,zIndex:10},onMouseEnter:e=>e.currentTarget.style.color=`#38bdf8`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1,padding:w?`2.5rem 1.5rem`:`3.5rem 3rem`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,background:`radial-gradient(circle at top left, rgba(3, 135, 218, 0.25) 0%, rgba(2, 7, 16, 0.4) 100%)`,borderRight:w?`none`:`1px solid rgba(255, 255, 255, 0.08)`,borderBottom:w?`1px solid rgba(255, 255, 255, 0.08)`:`none`,overflow:`hidden`},children:[(0,g.jsx)(`img`,{src:a(`/assets/C0ntact form blur.svg`),alt:``,style:{position:`absolute`,top:`-20%`,left:`-20%`,width:`140%`,height:`140%`,objectFit:`cover`,opacity:.7,pointerEvents:`none`,zIndex:0}}),(0,g.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,g.jsx)(`h3`,{style:{fontSize:w?`1.5rem`:`1.85rem`,fontWeight:700,color:`#ffffff`,marginBottom:`2rem`,letterSpacing:`-0.01em`},children:`How We Can Help?`}),(0,g.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[`Tailored Strategy Session`,`Expert Guidance`,`Technical Architecture Review`,`Value-Added Partnership`].map((e,t)=>(0,g.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.85rem`,color:`#e2e8f0`,fontSize:w?`0.95rem`:`1.05rem`,fontWeight:500},children:[(0,g.jsx)(`span`,{style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`20px`,height:`20px`,color:`#ffffff`},children:``}),(0,g.jsx)(`span`,{children:e})]},t))})]})]}),(0,g.jsx)(`div`,{style:{position:`relative`,zIndex:1,padding:w?`2.5rem 1.5rem`:`3.5rem 3.5rem`,display:`flex`,flexDirection:`column`,justifyContent:`center`,background:`rgba(2, 7, 16, 0.4)`},children:fe?(0,g.jsxs)(`div`,{style:{textAlign:`center`,padding:`1.5rem 0`},children:[(0,g.jsx)(`div`,{style:{width:`56px`,height:`56px`,borderRadius:`50%`,background:`rgba(16, 185, 129, 0.2)`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.25rem auto`,color:`#34d399`},children:(0,g.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#34d399`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,g.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,g.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Strategy Session Scheduled!`}),(0,g.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for booking a Strategy Call. We have successfully received your information and areas of interest. A technology consultant from Cavin Infotech will reach out to you within 24 hours with an invitation link and slot confirmation.`}),(0,g.jsx)(`button`,{onClick:()=>{de(!1),pe(!1),ke(``),Ae(``),je(``),Ne(``),Pe(``),Ie(``),Re({"AI & Analytics":!1,"SAP Services":!1,"XR Platforms":!1,"Smart Factory":!1,"Cloud Engineering":!1,"Enterprise Software":!1}),Be(``)},style:{background:`transparent`,border:`1px solid rgba(255, 255, 255, 0.3)`,color:`#ffffff`,padding:`0.6rem 2rem`,borderRadius:`50px`,fontSize:`0.88rem`,fontWeight:600,cursor:`pointer`},children:`Close Window`})]}):(0,g.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!Oe.trim()||!P.trim()||!F.trim()||!Me.trim()||!I.trim()||!Fe.trim()){R(`Please fill in all required fields including Date and Time Slot.`);return}if(!ze){R(`Please complete the Cloudflare Turnstile security verification.`);return}He(!0),R(``);let t=Object.keys(Le).filter(e=>Le[e]).join(`, `),n=`${I} (${Fe})`;try{let e=await fetch(`/api/contact`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`strategy`,name:Oe,email:P,phone:F,designation:Me,dateTime:n,interests:t||`General Consultation`,message:`New Strategy Call Request from ${Oe}`,turnstileToken:ze})});e.ok||(e=await fetch(`/api/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({type:`strategy`,name:Oe,email:P,phone:F,designation:Me,dateTime:n,interests:t||`General Consultation`,message:`New Strategy Call Request from ${Oe}`,turnstileToken:ze})}));let r=await e.json().catch(()=>({}));e.ok&&r.success,pe(!0)}catch(e){console.error(`Error scheduling strategy session:`,e),pe(!0)}finally{He(!1)}},style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:[L&&(0,g.jsx)(`div`,{style:{padding:`0.75rem 1rem`,background:`rgba(239, 68, 68, 0.15)`,border:`1px solid rgba(239, 68, 68, 0.4)`,borderRadius:`8px`,color:`#fca5a5`,fontSize:`0.88rem`},children:L}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr`:`1fr 1fr`,gap:`1.5rem`},children:[(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`text`,required:!0,value:Oe,onChange:e=>{ke(e.target.value),L&&R(``)},placeholder:`Name`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.5rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`email`,required:!0,value:P,onChange:e=>{Ae(e.target.value),L&&R(``)},placeholder:`Email`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.5rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})})]}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr`:`1fr 1fr`,gap:`1.5rem`},children:[(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`tel`,required:!0,value:F,onChange:e=>{je(e.target.value),L&&R(``)},placeholder:`Mobile`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.5rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(`input`,{type:`text`,required:!0,value:Me,onChange:e=>{Ne(e.target.value),L&&R(``)},placeholder:`Designation`,style:{width:`100%`,background:`transparent`,border:`none`,borderBottom:`1px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,fontSize:`0.98rem`,padding:`0.5rem 0`,outline:`none`,transition:`border-color 0.3s ease`},onFocus:e=>e.currentTarget.style.borderBottomColor=`#38bdf8`,onBlur:e=>e.currentTarget.style.borderBottomColor=`rgba(255, 255, 255, 0.25)`})})]}),(0,g.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr`:`1fr 1fr`,gap:`1.5rem`},children:[(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(Lu,{value:I,onChange:e=>{Pe(e),L&&R(``)},placeholder:`Preferred Date`})}),(0,g.jsx)(`div`,{style:{position:`relative`},children:(0,g.jsx)(Pu,{value:Fe,onChange:e=>{Ie(e),L&&R(``)},placeholder:`Preferred Time Slot`,options:[{value:`09:00 AM - 10:00 AM`,label:`09:00 AM - 10:00 AM`},{value:`10:00 AM - 11:00 AM`,label:`10:00 AM - 11:00 AM`},{value:`11:00 AM - 12:00 PM`,label:`11:00 AM - 12:00 PM`},{value:`02:00 PM - 03:00 PM`,label:`02:00 PM - 03:00 PM`},{value:`03:00 PM - 04:00 PM`,label:`03:00 PM - 04:00 PM`},{value:`04:00 PM - 05:00 PM`,label:`04:00 PM - 05:00 PM`},{value:`05:00 PM - 06:00 PM`,label:`05:00 PM - 06:00 PM`}]})})]}),(0,g.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},children:[(0,g.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Areas of Interest`}),(0,g.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`0.5rem`,background:`rgba(255, 255, 255, 0.01)`,border:`1px solid rgba(255, 255, 255, 0.05)`,borderRadius:`10px`,padding:`0.75rem`},children:[`AI & Analytics`,`SAP Services`,`XR Platforms`,`Smart Factory`,`Cloud Engineering`,`Enterprise Software`].map(e=>(0,g.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.82rem`,color:`#cbd5e1`,cursor:`pointer`,userSelect:`none`},children:[(0,g.jsx)(`input`,{type:`checkbox`,checked:Le[e],onChange:t=>Re(n=>({...n,[e]:t.target.checked})),style:{accentColor:`#38bdf8`,cursor:`pointer`,width:`16px`,height:`16px`}}),e]},e))})]}),(0,g.jsx)(ju,{onVerify:e=>{Be(e),L&&R(``)},onExpire:()=>Be(``)}),(0,g.jsx)(`button`,{type:`submit`,disabled:Ve,style:{marginTop:`0.5rem`,width:`100%`,background:`#ffffff`,color:`#020710`,border:`none`,padding:`0.95rem 1.5rem`,borderRadius:`50px`,fontSize:`1.05rem`,fontWeight:700,cursor:Ve?`not-allowed`:`pointer`,boxShadow:`0 10px 25px rgba(255, 255, 255, 0.15)`,transition:`all 0.3s ease`},onMouseEnter:e=>{Ve||(e.currentTarget.style.transform=`translateY(-2px)`,e.currentTarget.style.boxShadow=`0 15px 35px rgba(255, 255, 255, 0.3)`)},onMouseLeave:e=>{Ve||(e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 10px 25px rgba(255, 255, 255, 0.15)`)},children:Ve?`Booking...`:`Book Session`})]})})]})})]})}export{ru as n,Wu as t};