PageSourceSearch

https://mcsm.ai/_next/static/immutable/chunks/3k-nk_9rmvo7t.js

js mcsm.ai collected 2026-10-09 21:20:32 UTC 35,238 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63104,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(71645),i=e.i(76677);e.s(["ConsentBanner",0,function(){let[e,o]=(0,r.useState)(!1),a=(0,r.useRef)(null),s=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{null===(0,i.getStoredConsent)()&&o(!0);let e=()=>{s.current=!0,o(!0)};return window.addEventListener(i.CONSENT_OPEN_EVENT,e),()=>window.removeEventListener(i.CONSENT_OPEN_EVENT,e)},[]),(0,r.useEffect)(()=>{e&&s.current&&(a.current?.focus(),s.current=!1)},[e]),!e)return null;function l(e){(0,i.setConsent)(e),o(!1)}return(0,t.jsxs)("div",{ref:a,role:"dialog","aria-modal":"false","aria-labelledby":"mc-consent-title","aria-describedby":"mc-consent-desc",tabIndex:-1,style:{position:"fixed",right:"clamp(12px, 3vw, 24px)",bottom:"clamp(12px, 3vw, 24px)",zIndex:1e3,width:"min(300px, calc(100vw - 24px))",background:"var(--background)",color:"var(--foreground)",border:"2px solid var(--border-strong)",padding:"12px 14px 14px"},children:[(0,t.jsx)("p",{id:"mc-consent-title",className:"mc-label",style:{fontFamily:"var(--font-mono, ui-monospace, monospace)",textTransform:"uppercase",letterSpacing:"0.08em",fontSize:"0.64rem",fontWeight:600,marginBottom:"0.4rem"},children:"Cookies"}),(0,t.jsxs)("p",{id:"mc-consent-desc",style:{fontSize:"0.76rem",lineHeight:1.45,marginBottom:"0.7rem"},children:["We use Google Analytics to learn how the site is used and improve it. These cookies are only set if you accept. See our"," ",(0,t.jsx)(n.default,{href:"/privacy-policy",style:{color:"var(--color-accent-blue)",textDecoration:"underline"},children:"Privacy Policy"}),"."]}),(0,t.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:[(0,t.jsx)("button",{type:"button",className:"mc-btn mc-btn--primary mc-btn--sm",onClick:()=>l("granted"),children:"Accept"}),(0,t.jsx)("button",{type:"button",className:"mc-btn mc-btn--outline mc-btn--sm",onClick:()=>l("denied"),children:"Decline"})]})]})}])},56691,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(18566),i=e.i(83487),o=e.i(71645),a=e.i(50381);function s(){let[e,r]=(0,o.useState)(""),[i,s]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)("idle"),[f,p]=(0,o.useState)(""),h=(0,o.useRef)(null),m=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=!1;return fetch("/api/form-token").then(e=>e.ok?e.json():null).then(t=>{e||(m.current=t?.token||null)}).catch(()=>{}),()=>{e=!0}},[]);let g=async t=>{if(t.preventDefault(),"loading"!==d){if(!l){s(!0),u("error"),p("Please agree to the Privacy Policy to subscribe.");return}u("loading"),p("");try{let t=m.current;t||(m.current=t=await fetch("/api/form-token").then(e=>e.ok?e.json():null).then(e=>e?.token||null).catch(()=>null));let n=h.current?.form?.elements.namedItem("cf-turnstile-response")?.value||"",i=await fetch("/api/contact",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:"Newsletter signup",email:e,asset:"newsletter",consent:!0,_trap:h.current?.value||"",formToken:t||"",turnstileToken:n})});if(!i.ok){let e=await i.json().catch(()=>({}));u("error"),p(e.error||"Something went wrong. Please try again.");return}u("done"),p("Thanks — you're on the list."),r("")}catch{u("error"),p("Something went wrong. Please try again.")}}};return(0,t.jsxs)("form",{onSubmit:g,className:"flex flex-col gap-1 w-full sm:w-auto",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("input",{ref:h,type:"text",name:"_trap",tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0}}),(0,t.jsx)("input",{type:"email",name:"email",value:e,onFocus:()=>s(!0),onChange:e=>r(e.target.value),placeholder:"[email protected]",required:!0,"aria-label":"Email address",className:"mc-input px-4 py-2 text-sm flex-1",style:{minWidth:"180px"}}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===d,className:"mc-btn mc-btn--primary text-sm font-semibold disabled:opacity-60",style:{whiteSpace:"nowrap"},children:"loading"===d?"Subscribing…":"Subscribe"})]}),i&&(0,t.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",ga
1p:8,marginTop:8,fontFamily:"var(--font-inter)",fontSize:"0.72rem",lineHeight:1.45,color:"var(--color-muted-slate)",cursor:"pointer"},children:[(0,t.jsx)("input",{type:"checkbox",required:!0,checked:l,onChange:e=>c(e.target.checked),style:{marginTop:2,accentColor:"var(--color-orange)",flexShrink:0}}),(0,t.jsxs)("span",{children:["I agree to the"," ",(0,t.jsx)(n.default,{href:"/privacy-policy",className:"underline transition-colors hover:text-orange",style:{color:"inherit"},children:"Privacy Policy"}),"."]})]}),(0,t.jsx)(a.Turnstile,{}),f&&(0,t.jsx)("p",{role:"status",style:{fontFamily:"var(--font-inter)",fontSize:"0.8rem",marginTop:6,color:"error"===d?"var(--danger)":"var(--color-muted-slate)"},children:f})]})}var l=e.i(44506),c=e.i(36884);let d=["/supplychainrisk","/energyinvestmentrisk","/macroeconomicforecasting"],u={fontFamily:"var(--font-inter)",fontSize:"var(--mc-nav-type)",fontWeight:500};e.s(["Footer",0,function(){let e=(0,r.usePathname)();function o(t,n){let r=n?n.includes(e):e===t;return{className:"mc-foot-link",style:{...u,...r?{"--foot-c":"var(--accent)"}:{}}}}return(0,t.jsxs)("footer",{style:{borderTop:c.FRAME},children:[(0,t.jsx)("div",{id:"newsletter",style:{scrollMarginTop:"100px",borderBottom:c.FRAME},children:(0,t.jsxs)("div",{className:"mc-newsletter-band max-w-[1600px] mx-auto w-full flex flex-col sm:flex-row items-start sm:items-center justify-between gap-5",style:{padding:"clamp(16px,2.4vw,24px) clamp(24px,5vw,48px)"},children:[(0,t.jsx)("p",{style:{fontFamily:"var(--font-inter)",fontWeight:500,fontSize:"clamp(0.95rem, 1vw, 1.15rem)",color:"var(--foreground)"},children:"Join Our Newsletter"}),(0,t.jsx)(s,{})]})}),(0,t.jsx)("div",{className:"max-w-[1600px] mx-auto w-full",children:(0,t.jsxs)("div",{className:"mc-footer-grid",style:{display:"grid",gridTemplateColumns:"1.4fr 1.6fr"},children:[(0,t.jsx)("div",{className:"mc-footer-brand",style:{padding:"clamp(20px,3vw,32px) clamp(24px,5vw,48px)"},children:(0,t.jsx)(n.default,{href:"/",className:"text-fg hover:text-orange transition-colors duration-150",style:{display:"inline-block"},children:(0,t.jsx)(i.MacrocosmLogo,{height:"var(--mc-nav-logo)"})})}),(0,t.jsxs)("div",{className:"mc-footer-navwrap",style:{display:"flex",justifyContent:"flex-end",gap:"clamp(40px,7vw,96px)",padding:"clamp(20px,3vw,32px) clamp(20px,3vw,40px)"},children:[(0,t.jsx)("nav",{children:(0,t.jsxs)("div",{className:"mc-footer-links flex flex-col gap-3",children:[(0,t.jsx)(n.default,{href:"/",...o("/"),children:"Home"}),(0,t.jsx)(n.default,{href:"/#solutions",...o("/#solutions",d),children:"Solutions"}),(0,t.jsx)(n.default,{href:"/press",...o("/press"),children:"Press & Events"}),(0,t.jsx)(n.default,{href:"/about",...o("/about"),children:"About Us"}),(0,t.jsx)(n.default,{href:"/about#roles",...o("/about#roles"),children:"Open Roles"})]})}),(0,t.jsx)("nav",{children:(0,t.jsxs)("div",{className:"mc-footer-links flex flex-col gap-3",children:[(0,t.jsx)(n.default,{href:"/faq",...o("/faq"),children:"FAQ"}),(0,t.jsx)(n.default,{href:"/design-partners",...o("/design-partners"),children:"Design Partners"}),(0,t.jsx)(n.default,{href:"/contactus",...o("/contactus"),children:"Contact"}),(0,t.jsx)("a",{href:"https://www.linkedin.com/company/macrocosm-group/",target:"_blank",rel:"noopener noreferrer","aria-label":"Macrocosm on LinkedIn",className:"mc-foot-social",style:{marginTop:4},children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4.98 3.5C4.98 4.88 3.87 6 2.5 6S0 4.88 0 3.5 1.12 1 2.5 1 4.98 2.12 4.98 3.5zM.5 8h4V23h-4V8zM7.5 8h3.8v2.05h.05c.53-1 1.83-2.05 3.76-2.05 4.02 0 4.76 2.65 4.76 6.1V23h-4v-6.4c0-1.53-.03-3.5-2.13-3.5-2.13 0-2.46 1.66-2.46 3.38V23h-4V8z"})})})]})})]})]})}),(0,t.jsx)("div",{style:{borderTop:c.FRAME},children:(0,t.jsxs)("div",{className:"mc-foot-bottom max-w-[1600px] mx-auto w-full flex items-center justify-between gap-4",style:{padding:"0.7rem clamp(24px,5vw,48px)"},children:[(0,t.jsx)("span",{className:"mc-label",style:{fontSize:"clamp(0.6rem, 0.55vw, 0.72rem)"},children:"© Macrocosm"}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(l.CookiePreferences,{variant:"link",className:"mc-foot-link",style:{...u,fontSize:"clamp(0.6rem, 0.55vw, 0.72rem)",letterSpacing:"0.14em",background:"transparent",border:"none",padding:0,cursor:"pointer","--foot-c":"var(--secondary)"}}),(0,t.jsx)(n.default,{href:"/privacy-policy",className:"mc-foot-link",style:{...u,fontSize:"clamp(0.6rem, 0.55vw, 0.72rem)",letterSpacing:"0.14em","--foot-c":"/privacy-policy"===e?"var(--accent)":"var(--secondary)"},children:"Privacy Policy"})]})]})})]})}],56691)},34377,e=>{"use strict";var t=e.i(43476),n=e.i(3303),r=e.i(71645);let i="G-C4BBYM1558";var o=e.i(76677);e.s(["GoogleAnalytics",0,function(){let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>(a((0,o.getStoredConsent)()),(0,o.subscribeConsentChange)(a)),[]),(0,r.useEffect)(()=>{e&&(window.gtag?.("consent","update",{ad_storage:e,ad_user_data:e,ad_personalization:e,anal
1ytics_storage:e,functionality_storage:e,personalization_storage:e}),"denied"===e&&function(){let e="Thu, 01 Jan 1970 00:00:00 GMT";for(let t of document.cookie.split(";")){let n=t.split("=")[0].trim();("_gid"===n||n.startsWith("_ga"))&&(document.cookie=`${n}=; expires=${e}; path=/`,document.cookie=`${n}=; expires=${e}; path=/; domain=.${window.location.hostname}`)}}())},[e]),i)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{src:`https://www.googletagmanager.com/gtag/js?id=${i}`,strategy:"afterInteractive"}),(0,t.jsx)(n.default,{id:"ga4-init",strategy:"afterInteractive",children:`window.dataLayer = window.dataLayer || [];
2function gtag(){dataLayer.push(arguments);}
3gtag('js', new Date());
4gtag('config', '${i}');`})]}):null}],34377)},72776,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(18566),i=e.i(71645),o=e.i(31178),a=e.i(47414),s=e.i(74008),l=e.i(21476),c=e.i(72846),d=i,u=e.i(37806);function f(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends d.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,c.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,c.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,c.isHTMLElement)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:n,anchorX:r,anchorY:o,root:a,pop:s}){let l=(0,d.useId)(),c=(0,d.useRef)(null),m=(0,d.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,d.useContext)(u.MotionConfigContext),v=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():f(e[t],null)}}}}(...e),e)}(c,e.props?.ref??e?.ref);return(0,d.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:d,right:u,bottom:f,direction:p}=m.current;if(n||!1===s||!c.current||!e||!t)return;let h="rtl"===p,v="left"===r?h?`right: ${u}`:`left: ${d}`:h?`left: ${d}`:`right: ${u}`,x="bottom"===o?`bottom: ${f}`:`top: ${i}`;c.current.dataset.motionPopId=l;let y=document.createElement("style");g&&(y.nonce=g);let b=a??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
5          [data-motion-pop-id="${l}"] {
6            position: absolute !important;
7            width: ${e}px !important;
8            height: ${t}px !important;
9            ${v}px !important;
10            ${x}px !important;
11          }
12        `),()=>{c.current?.removeAttribute("data-motion-pop-id"),b.contains(y)&&b.removeChild(y)}},[n]),(0,t.jsx)(p,{isPresent:n,childRef:c,sizeRef:m,pop:s,children:!1===s?e:d.cloneElement(e,{ref:v})})}let m=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:s,presenceAffectsLayout:c,mode:d,anchorX:u,anchorY:f,root:p})=>{let m=(0,a.useConstant)(g),v=(0,i.useId)(),x=!0,y=(0,i.useMemo)(()=>(x=!1,{id:v,initial:n,isPresent:r,custom:s,onExitComplete:e=>
12{for(let t of(m.set(e,!0),m.values()))if(!t)return;o&&o()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[r,m,o]);return c&&x&&(y={...y}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[r]),i.useEffect(()=>{r||m.size||!o||o()},[r]),e=(0,t.jsx)(h,{pop:"popLayout"===d,isPresent:r,anchorX:u,anchorY:f,root:p,children:e}),(0,t.jsx)(l.PresenceContext.Provider,{value:y,children:e})};function g(){return new Map}var v=e.i(64978);let x=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:n,initial:r=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:f="left",anchorY:p="top",root:h})=>{let[g,b]=(0,v.usePresence)(u),w=(0,i.useMemo)(()=>y(e),[e]),j=u&&!g?[]:w.map(x),S=(0,i.useRef)(!0),E=(0,i.useRef)(w),k=(0,a.useConstant)(()=>new Map),C=(0,i.useRef)(new Set),[P,_]=(0,i.useState)(w),[A,T]=(0,i.useState)(w);(0,s.useIsomorphicLayoutEffect)(()=>{S.current=!1,E.current=w;for(let e=0;e<A.length;e++){let t=x(A[e]);j.includes(t)?(k.delete(t),C.current.delete(t)):!0!==k.get(t)&&k.set(t,!1)}},[A,j.length,j.join("-")]);let I=[];if(w!==P){let e=[...w];for(let t=0;t<A.length;t++){let n=A[t],r=x(n);j.includes(r)||(e.splice(t,0,n),I.push(n))}return"wait"===d&&I.length&&(e=I),T(y(e)),_(w),null}let{forceRender:L}=(0,i.useContext)(o.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:A.map(e=>{let i=x(e),o=(!u||!!g)&&(w===A||j.includes(i));return(0,t.jsx)(m,{isPresent:o,initial:(!S.current||!!r)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:h,onExitComplete:o?void 0:()=>{if(C.current.has(i)||!k.has(i))return;C.current.add(i),k.set(i,!0);let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(L?.(),T(E.current),u&&b?.(),l&&l())},anchorX:f,anchorY:p,children:e},i)})})};var w=e.i(46932),j=e.i(83487);let S=[{href:"/supplychainrisk",label:"Supply Chain Risk"}
12,{href:"/energyinvestmentrisk",label:"Energy Investment and Risk"},{href:"/macroeconomicforecasting",label:"Macroeconomic Modeling"}],E=[{href:"/about",label:"About Us"},{href:"/faq",label:"FAQ"},{href:"/press",label:"Press & Events"}],k={fontFamily:"var(--font-inter)",fontSize:"var(--mc-nav-type)",fontWeight:500,whiteSpace:"nowrap",textDecoration:"none"};function C(){return(0,t.jsx)("span",{"aria-hidden":"true",style:{width:1,height:18,background:"var(--border-strong)",opacity:.5,flexShrink:0}})}function P({label:e,href:o,links:a,isActive:s}){let[l,c]=(0,i.useState)(!1),d=(0,r.useRouter)(),u=(0,i.useRef)(null),f=s||l?"var(--accent)":"var(--color-nav-muted)",p=`nav-menu-${e.toLowerCase().replace(/\s+/g,"-")}`;return(0,t.jsxs)("div",{ref:u,className:"relative",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:e=>{u.current?.contains(e.relatedTarget)||c(!1)},children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"true","aria-expanded":l,"aria-controls":p,onClick:()=>{o?d.push(o):c(e=>!e)},onKeyDown:e=>{"Escape"===e.key?c(!1):"ArrowDown"===e.key&&(e.preventDefault(),c(!0))},className:"flex items-center gap-1.5 transition-colors duration-150",style:{...k,color:f,background:"none",border:"none",cursor:"pointer",padding:0},children:[e,(0,t.jsx)("svg",{width:"9",height:"5",viewBox:"0 0 10 6",fill:"none",style:{transform:l?"rotate(180deg)":"none",transition:"transform 0.15s ease",flexShrink:0},"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M1 1L5 5L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsx)(b,{children:l&&(0,t.jsx)(w.motion.div,{id:p,initial:{opacity:0,y:-4},animate:{opacity:1,y:0,transition:{type:"spring",bounce:.2,duration:.3}},exit:{opacity:0,y:-4,transition:{duration:.15}},className:"absolute top-full left-0",style:{paddingTop:"10px",zIndex:100},children:(0,t.jsx)("div",{className:"flex flex-col",style:{background:"var(--surface)",borderRadius:0,boxShadow:"0 4px 24px rgba(0,0,0,0.4)",padding:"12px 16px",gap:"10px",minWidth:"max-content",border:"3px solid var(--border-strong)"},children:a.map(({href:e,label:r})=>(0,t.jsx)(n.default,{href:e,onClick:()=>{window.location.pathname===e&&window.scrollTo({top:0,behavior:"smooth"})},className:"transition-transform duration-150 hover:scale-[1.06] hover:!text-orange",style:{...k,color:"var(--secondary)",fontSize:"calc(var(--mc-nav-type) - 1px)",whiteSpace:"nowrap",display:"inline-block",transformOrigin:"left center"},children:r},e))})})})]})}function _({label:e,href:r,links:i,isActive:o,expanded:a,onToggle:s,onLinkClick:l}){let c=`mobile-menu-${e.toLowerCase().replace(/\s+/g,"-")}`,d=r?[{href:r,label:"Overview"},...i]:i;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{className:`flex items-center gap-2 w-full text-left transition-colors duration-150 hover:text-orange ${o?"text-orange":"text-fg"}`,style:{...k,fontSize:"28px",letterSpacing:"-0.03em",background:"none",border:"none",cursor:"pointer",padding:0},onClick:s,"aria-expanded":a,"aria-controls":c,children:[e,(0,t.jsx)("svg",{width:"9",height:"5",viewBox:"0 0 10 6",fill:"none",style:{transform:a?"rotate(180deg)":"none",transition:"transform 0.15s ease",flexShrink:0},"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M1 1L5 5L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,t.jsx)(b,{initial:!1,children:a&&(0,t.jsx)(w.motion.div,{id:c,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{duration:.22,ease:"easeOut"}},exit:{height:0,opacity:0,transition:{duration:.16,ease:"easeIn"}},style:{overflow:"hidden"},children:(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12,paddingLeft:16,paddingTop:12,paddingBottom:4},children:d.map(({href:e,label:r})=>(0,t.jsx)(n.default,{href:e,onClick:l,className:"text-fg transition-colors duration-150 hover:text-orange",style:{...k,fontSize:"18px",letterSpacing:"-0.03em"},children:r},e))})})})]})}e.s(["Navigation",0,function(){let e=(0,r.usePathname)(),[o,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(null),f=S.some(t=>e===t.href),p=E.some(t=>e===t.href)||"/about"===e;function h(){a(!1),l(null)}function m(e){l(t=>t===e?null:e)}return(0,i.useEffect)(()=>
12{if(o)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){c.current?.contains(e.target)||d.current?.contains(e.target)||a(!1)}},[o]),(0,i.useEffect)(()=>{a(!1),l(null)},[e]),(0,i.useEffect)(()=>{if(!o)return;let e=d.current;if(!e)return;let t=()=>Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent);t()[0]?.focus();let n=e=>{if("Escape"===e.key){a(!1),l(null),u.current?.focus();return}if("Tab"!==e.key)return;let n=t();if(!n.length)return;let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),r.focus())};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{ref:c,className:"relative z-40 w-full",style:{backgroundColor:"var(--background)",borderBottom:"3px solid var(--border-strong)",paddingTop:"12px"},children:(0,t.jsxs)("div",{className:"flex items-center justify-between",style:{maxWidth:1600,margin:"0 auto",height:"var(--mc-nav-h)",paddingLeft:"clamp(24px, 5vw, 64px)",paddingRight:"clamp(24px, 5vw, 64px)"},children:[(0,t.jsx)(n.default,{href:"/",onClick:h,"aria-label":"Macrocosm home",className:"text-fg hover:text-orange transition-colors duration-150",style:{flexShrink:0},children:(0,t.jsx)(j.MacrocosmLogo,{height:"var(--mc-nav-logo)"})}),(0,t.jsxs)("nav",{className:"hidden sm:flex items-center",style:{gap:"16px"},"aria-label":"Primary",children:[(0,t.jsx)(P,{label:"Solutions",links:S,isActive:f}),(0,t.jsx)(C,{}),(0,t.jsx)(n.default,{href:"/research",className:`transition-colors duration-150 hover:text-orange ${"/research"===e?"text-orange":"text-nav-muted"}`,style:k,children:"Research"}),(0,t.jsx)(C,{}),(0,t.jsx)(P,{label:"Company",links:E,isActive:p}),(0,t.jsx)(C,{}),(0,t.jsx)(n.default,{href:"/contactus",className:`transition-colors duration-150 hover:text-orange ${"/contactus"===e?"text-orange":"text-nav-muted"}`,style:k,children:"Contact"})]}),(0,t.jsx)("button",{ref:u,className:"sm:hidden flex flex-col items-center justify-center",onClick:()=>a(e=>!e),"aria-label":o?"Close menu":"Open menu","aria-expanded":o,"aria-controls":"mobile-nav",style:{width:34,height:34,gap:6,background:"transparent",borderRadius:0,border:"3px solid var(--border-strong)",cursor:"pointer",flexShrink:0,padding:0},children:[0,1,2].map(e=>(0,t.jsx)("span",{style:{display:"block",width:18,height:2,background:"var(--foreground)",borderRadius:0,transition:"transform 0.2s ease, opacity 0.2s ease",transform:o&&0===e?"translateY(8px) rotate(45deg)":o&&2===e?"translateY(-8px) rotate(-45deg)":"none",opacity:o&&1===e?0:1}},e))})]})}),(0,t.jsx)(b,{children:o&&(0,t.jsxs)(w.motion.div,{ref:d,id:"mobile-nav",initial:{opacity:0,y:-8},animate:{opacity:1,y:0,transition:{type:"spring",bounce:.15,duration:.35}},exit:{opacity:0,y:-8,transition:{duration:.18,ease:"easeIn"}},className:"sm:hidden fixed left-0 z-30 flex flex-col",style:{top:"calc(12px + clamp(52px, 5vw, 64px))",borderTop:"1px solid var(--border)",borderBottom:"3px solid var(--border-strong)",width:"100%",background:"var(--background)",padding:"24px 40px 32px",gap:22},children:[(0,t.jsx)(_,{label:"Solutions",links:S,isActive:f,expanded:"Solutions"===s,onToggle:()=>m("Solutions"),onLinkClick:h}),(0,t.jsx)(n.default,{href:"/research",onClick:h,className:`transition-colors duration-150 hover:text-orange ${"/research"===e?"text-orange":"text-fg"}`,style:{...k,fontSize:"28px",letterSpacing:"-0.03em"},children:"Research"}),(0,t.jsx)(_,{label:"Company",links:E,isActive:p,expanded:"Company"===s,onToggle:()=>m("Company"),onLinkClick:h}),(0,t.jsx)("div",{style:{display:"flex",alignItems:"center",gap:16},children:(0,t.jsx)(n.default,{href:"/contactus",onClick:h,className:"mc-btn mc-btn--outline",style:{fontFamily:"var(--font-inter)",fontSize:14,fontWeight:600,minHeight:0,padding:"6px 16px",display:"inline-flex",alignItems:"center",width:"fit-content",textDecoration:"none"},children:"Contact"})})]})})]})}],72776)},2355,e=>{"use strict";var t=e.i(47167),n=e.i(71645),r=e.i(18566);function i(){return"u">typeof window}function o(){return"production"}function a(){return"development"===((i()?window.vam:o())||"production")}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function c(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var n;if(!i())return;let{beforeSend:r,src:s,dataset:c}=function(e,t){var n,r;let i=e;if(t)try{i={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=o();return}window.vam=e}(i.mode);
12let s={sdkn:"@vercel/analytics"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.1"};return i.disableAutoTrack&&(s.disableAutoTrack="1"),i.viewEndpoint&&(s.viewEndpoint=l(i.viewEndpoint)),i.eventEndpoint&&(s.eventEndpoint=l(i.eventEndpoint)),i.sessionEndpoint&&(s.sessionEndpoint=l(i.sessionEndpoint)),a()&&!1===i.debug&&(s.debug="false"),i.dsn&&(s.dsn=i.dsn),i.endpoint?s.endpoint=i.endpoint:i.basePath&&(s.endpoint=l(`${i.basePath}/insights`)),{beforeSend:i.beforeSend,src:(r=i).scriptSrc?l(r.scriptSrc):a()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?l(`${r.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:s}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),r&&(null==(n=window.va)||n.call(window,"beforeSend",r)),document.head.querySelector(`script[src*="${s}"]`))return;let d=document.createElement("script");for(let[e,t]of(d.src=s,Object.entries(c)))d.dataset[e]=t;d.defer=!0,d.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${s}. ${e}`)},document.head.appendChild(d)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var n;null==(n=window.va)||n.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function d(e){let i,o,a,{route:l,path:d}=(i=(0,r.useParams)(),o=(0,r.useSearchParams)(),a=(0,r.usePathname)(),i?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=s(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=s(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}(a,Object.keys(i).length?i:Object.fromEntries(o.entries())),path:a}:{route:null,path:a});return n.default.createElement(c,{path:d,route:l,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
12(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"d3804a5cf74394be/script.js","viewEndpoint":"d3804a5cf74394be/view","eventEndpoint":"d3804a5cf74394be/event","sessionEndpoint":"d3804a5cf74394be/session"},"speedInsights":{"scriptSrc":"2d6bf94a5fbe017b/script.js","endpoint":"2d6bf94a5fbe017b/vitals"}}'}(),framework:"next"})}e.s(["Analytics",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(d,{...e}))}])},57215,e=>{"use strict";var t=e.i(47167),n=e.i(71645),r=e.i(18566);function i(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function s(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!r.current){let n=function(e={},t){var n;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:r,src:o,dataset:s}=function(e,t){var n,r;let o=e;if(t)try{o={...null==(n=JSON.parse(t))?void 0:n.speedInsights,...e}}catch{}let s={sdkn:"@vercel/speed-insights"+(o.framework?`/${o.framework}`:""),sdkv:"2.0.0"};return o.sampleRate&&(s.sampleRate=o.sampleRate.toString()),o.route&&(s.route=o.route),i()&&!1===o.debug&&(s.debug="false"),o.dsn&&(s.dsn=o.dsn),o.endpoint?s.endpoint=a(o.endpoint):o.basePath&&(s.endpoint=a(`${o.basePath}/speed-insights/vitals`)),{src:(r=o).scriptSrc?a(r.scriptSrc):i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":r.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":r.basePath?a(`${r.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:o.beforeSend,dataset:s}}(e,t);if(document.head.querySelector(`script[src*="${o}"]`))return null;r&&(null==(n=window.si)||n.call(window,"beforeSend",r));let l=document.createElement("script");for(let[e,t]of(l.src=o,l.defer=!0,Object.entries(s)))l.dataset[e]=t;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${o}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:e=>{l.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());n&&(r.current=n.setRoute)}},[e]),(0,n.useEffect)(()=>{r.current&&e.route&&r.current(e.route)},[e.route]),null}function l(e){let i=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,n=(0,r.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!i)return n;let a=n;try{let e=Object.entries(i);for(let[t,n]of e)if(!Array.isArray(n)){let e=o(n);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=o(n.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch{return n}})();return n.default.createElement(s,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
12(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"d3804a5cf74394be/script.js","viewEndpoint":"d3804a5cf74394be/view","eventEndpoint":"d3804a5cf74394be/event","sessionEndpoint":"d3804a5cf74394be/session"},"speedInsights":{"scriptSrc":"2d6bf94a5fbe017b/script.js","endpoint":"2d6bf94a5fbe017b/vitals"}}'}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(l,{...e}))}])},8341,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},19083,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return d},htmlEscapeJsonString:function(){return c}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function c(e){return e.replace(a,e=>o[e])}function d(e){return e.replace(l,e=>s[e])}},79520,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return x}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(55682),a=e.r(90809),s=e.r(43476),l=o._(e.r(74080)),c=a._(e.r(71645)),d=e.r(42732),u=e.r(22737),f=e.r(8341),p=e.r(19083),h=new Map,m=new Set,g=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:c,stylesheets:d}=e,f=n||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(r,c);return}let p=()=>{i&&i(),m.add(f)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(g.innerHTML=o.__html||"",p()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",p()):t&&(g.src=t,h.set(t,v)),(0,u.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),d&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function x(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function y(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:a,stylesheets:u,...h}=e,{updateScripts:v,scripts:x,getIsSsr:y,appDir:b,nonce:w}=(0,c.useContext)(d.HeadManagerContext);w=h.nonce||w;let j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||n;j.current||(i&&e&&m.has(e)&&i(),j.current=!0)},[i,t,n]);let S=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!S.current){if("afterInteractive"===o)g(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));S.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(x[o]=(x[o]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:a,...h,nonce:w}]),v(x)):y&&y()?m.add(t||n):y&&!y()&&g({...e,nonce:w}
12)),b){if(u&&u.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!n)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([n,{...h,id:t}]))})`}});"afterInteractive"===o&&n&&l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},3303,(e,t,n)=>{t.exports=e.r(79520)},18566,(e,t,n)=>{t.exports=e.r(76562)}]);

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