{"version":3,"file":"script_main.BCPuMahN.mjs","names":["React.useState","React.useRef","React.useCallback","_Fragment","React.useMemo","NavigationBar","Footer","TheCursor","isBrowser","useRef","React.useId","PropertyOverrides","React.createElement","Main","Framer.PageRoot","Framer.lazy","Framer.useCurrentRoute","Framer.useLocaleInfo","Framer.useRouter","React.Fragment","React.memo","React.useCallback","React.useEffect","React.useRef","React.useState","React.useLayoutEffect","Framer.LazyValue","Framer.GracefullyDegradingErrorBoundary","Framer.PageEffectsProvider","Framer.patchRoutesForABTesting","Framer.inferInitialRouteFromPath","Framer.yieldToMain","React.startTransition","Framer.ErrorPlaceholder"],"sources":["https:/framerusercontent.com/modules/WdpmUUt8yQtkefAZgK1f/yIEaTqcf0sOWKhA8R9rN/PortfolioChatbot.js","https:/framerusercontent.com/modules/lEEqpnkktUGrYzqK21hq/4TteVHoVaGYGDGOJqLgo/LCSqrNW0D.js","framer:toplevel/main"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView,useReducedMotion}from\"framer-motion\";/* ============================================================================\n * CONSISTENCY CONTRACT — EmChat.tsx (/em-ai) + PortfolioChatbot.tsx (panel)\n * ============================================================================\n * Two surfaces, one experience. Framer components can't import each other, so\n * this is duplicated by hand and nothing enforces it: change one file, check\n * the other.\n *\n * Keep identical: visitor-facing copy, Em's face and its moods, colour tokens, fonts,\n * motion timings, and reply/composer behaviour.\n *\n * Shared storage: sessionStorage key `em-chat-thread-v1`, an array of\n * { id, role: \"user\" | \"model\", content, at? }. Both surfaces read and write\n * this one thread, so a conversation follows the visitor between them. Change\n * it in both files and bump the version suffix.\n *\n * Intentionally different: the panel is 400px, so its type, spacing and radii\n * are smaller, and it's a fixed shell with a trigger button and mobile\n * takeover. The page uses @container queries — media queries measure the editor\n * window, not the frame, so they break inside Framer.\n *\n * Ask event: other components ask Em a question by firing `em:ask` on window\n * with { text }. AiSummarizeRow.tsx (the blog summarize row) sends it and the\n * panel answers. Only the breakpoint copy actually on screen may answer —\n * Framer mounts all three and hidden ones still run. Nothing checks the event\n * name, so rename it in every file or the button dies silently.\n *\n * Never: put the panel on /em-ai (two components, one thread, one tab); write\n * to storage before hydrating; clear storage outside New chat; add handoff UI,\n * as continuity is ambient by design.\n * ============================================================================\n */// Production chat backend base URL (do not include /api/chat here; fetch appends that path).\nconst CHAT_BACKEND_BASE_URL=\"https://portfolio-chatbot-1050731569228.asia-southeast1.run.app\";const BRAND={// Live Framer token refs: BG/Canvas (303ecbb5-69bc-4712-9ee8-f347a6e5b661)\nbackground:\"var(--token-303ecbb5-69bc-4712-9ee8-f347a6e5b661, rgb(247, 242, 234))\",// Live Framer token refs: BG/Surface (f7338c0a-d832-42c5-b4e4-1cbad66883ca)\nsurface:\"var(--token-f7338c0a-d832-42c5-b4e4-1cbad66883ca, rgb(253, 251, 246))\",// Live Framer token refs: BG/Elevated (898be6ae-cc6f-4c7f-be46-b844295e598c)\nelevated:\"var(--token-898be6ae-cc6f-4c7f-be46-b844295e598c, rgb(255, 255, 255))\",// Live Framer token refs: Text/Icons primary (f006ec0f-67a5-48a9-a3a1-2ec748d8a3dd)\ntextPrimary:\"var(--token-f006ec0f-67a5-48a9-a3a1-2ec748d8a3dd, rgb(32, 24, 15))\",// Live Framer token refs: Text/Icons secondary (2f372d1b-784c-41ad-99d8-02a8b821c767)\ntextSecondary:\"var(--token-2f372d1b-784c-41ad-99d8-02a8b821c767, rgb(101, 87, 74))\",// Live Framer token refs: Text/Icons tertiary (0492865d-06f3-48fc-895b-13f4f992dc26)\ntextTertiary:\"var(--token-0492865d-06f3-48fc-895b-13f4f992dc26, rgb(164, 152, 138))\",// Live Framer token refs: accent (5c4d744f-63e5-47a7-9f2e-d2c5b265c22b)\naccent:\"var(--token-5c4d744f-63e5-47a7-9f2e-d2c5b265c22b, rgb(61, 127, 140))\",// Live Framer token refs: accent-hover (714d6b76-1d9e-4c7c-8b45-8117b9335f43)\naccentHover:\"var(--token-714d6b76-1d9e-4c7c-8b45-8117b9335f43, rgb(42, 101, 113))\",// Live Framer token refs: accent-soft (94752b58-7710-4268-82e9-d5f65e1f63dd)\naccentSoft:\"var(--token-94752b58-7710-4268-82e9-d5f65e1f63dd, rgb(201, 221, 227))\",// Live Framer token refs: accent-on (2d64a198-6824-4a6c-bfa4-dd51b73490a4)\naccentOn:\"var(--token-2d64a198-6824-4a6c-bfa4-dd51b73490a4, rgb(255, 255, 255))\",// Live Framer token refs: border (87807844-4666-43b2-bacc-bfd106b3dd17)\nborder:\"var(--token-87807844-4666-43b2-bacc-bfd106b3dd17, rgb(229, 220, 201))\",// Live Framer token refs: BG/Sunken (157e6d37-ef08-43a6-8b3a-017dcf860585)\nsunken:\"var(--token-157e6d37-ef08-43a6-8b3a-017dcf860585, rgb(237, 229, 214))\",// Live Framer token refs: shadow (a5a6d5d4-f44d-4d98-8af7-19a2b50094c9)\nshadow:\"var(--token-a5a6d5d4-f44d-4d98-8af7-19a2b50094c9, rgba(32, 24, 15, 0.2))\",// shape + typography tokens remain fixed\nradius:\"12px\",fontBody:\"'Host Grotesk', sans-serif\",fontHeading:\"Domine, serif\"};/** Matches MAX_MESSAGE_CHARS on the server, so the UI stops you before it does. */const MAX_INPUT_CHARS=2e3;/** The composer grows with your text up to here, then scrolls internally. */const MAX_COMPOSER_HEIGHT=120;/** How close to the bottom (px) still counts as \"following along\". */const STICK_THRESHOLD=48;/**\n * How far up you must scroll before the jump-to-latest button appears.\n * Deliberately larger than STICK_THRESHOLD so it doesn't flicker in on a nudge.\n */const JUMP_THRESHOLD=140;/**\n * How fast Em types a reply out, in characters per second. Gemini sends text\n * in a few big bursts; typing it out at a steady pace makes the reply flow.\n */const TYPE_SPEED=90;/** Extra speed per character still waiting, so Em never trails far behind. */const TYPE_CATCH_UP=2.5;/**\n * The one ongoing conversation for this browser tab, shared with the full page.\n * sessionStorage, not localStorage: tab-scoped and self-clearing, so no chat\n * lingers on a shared machine. See CONSISTENCY CONTRACT → Storage.\n */const STORAGE_KEY=\"em-chat-thread-v1\";/**\n * How other components ask Em a question. AiSummarizeRow.tsx fires this on\n * window; the listener below opens the panel and sends the question straight\n * away. Framer components can't import each other, so a browser event is the\n * only channel — and the name is a plain string in two files with nothing\n * checking it, so rename it in both or the button silently stops working.\n * See CONSISTENCY CONTRACT → Ask event.\n */const ASK_EVENT=\"em:ask\";/**\n * True only for the breakpoint copy the visitor can actually see.\n *\n * Framer renders one copy of this component per breakpoint and hides the ones\n * that don't match — hidden, but still running. Note we can't use offsetParent\n * for this: it is null for position:fixed elements even when they're visible,\n * which is exactly what this panel is. A hidden breakpoint measures zero.\n */function isOnScreen(el){if(!el)return false;const native=el.checkVisibility;if(typeof native===\"function\")return native.call(el);const rect=el.getBoundingClientRect();return rect.width>0||rect.height>0;}/**\n * Em — floating side panel, the compact companion to the full-page chat.\n *\n * Renders the chat UI and streams the conversation from the backend /api/chat.\n * Chat state is client-side only — no database. See the CONSISTENCY CONTRACT at\n * the top of this file before changing anything here.\n */export default function PortfolioChatbot(props){const{botName=\"Em\",greeting=\"Hey, I'm Em.\",subtitle=\"Manas's AI sidekick. I know his work, his story and how he thinks about design — ask me anything.\",bottomOffset=24,rightOffset=24,buttonSize=60}=props||{};// State: chat visibility (trigger button toggles this)\nconst[isOpen,setIsOpen]=React.useState(false);// State: full conversation list. Empty means the landing screen is showing.\nconst[messages,setMessages]=React.useState([]);// State: current text in the composer\nconst[inputText,setInputText]=React.useState(\"\");// State: waiting for the first token\nconst[isThinking,setIsThinking]=React.useState(false);// State: a reply is actively streaming in\nconst[isStreaming,setIsStreaming]=React.useState(false);// State: the reply being typed out on screen, and how much of it shows\nconst[typing,setTyping]=React.useState(null);// State: network/server error shown inline in chat\nconst[error,setError]=React.useState(null);// State: id of the clickable element currently hovered (for hover affordance)\nconst[hovered,setHovered]=React.useState(\"\");// State: which reply was just copied (shows the tick)\nconst[copiedId,setCopiedId]=React.useState(null);// State: is the viewport phone-sized? Drives the full-screen mobile experience.\nconst[isMobile,setIsMobile]=React.useState(false);// State: reader has scrolled away from the newest message\nconst[showJump,setShowJump]=React.useState(false);const scrollRef=React.useRef(null);const composerRef=React.useRef(null);const abortRef=React.useRef(null);const lastAttemptRef=React.useRef(\"\");// Blocks storage writes until we've read the existing thread once.\nconst hydratedRef=React.useRef(false);// Whether the reader is following the newest message. Only flips when they\n// scroll away, so a long streamed reply never yanks the panel out from\n// under someone reading further up.\nconst stickToBottomRef=React.useRef(true);const didInitialScrollRef=React.useRef(false);// Read by the typing loop, which runs outside React's render cycle.\nconst messagesRef=React.useRef(messages);messagesRef.current=messages;const streamDoneRef=React.useRef(true);const reduceMotion=useReducedMotion();const reduceMotionRef=React.useRef(reduceMotion);reduceMotionRef.current=reduceMotion;const isStatic=useIsStaticRenderer();// The always-mounted shell. Used to tell whether this breakpoint copy is\n// the one on screen — see isOnScreen above.\nconst rootRef=React.useRef(null);const isEmpty=messages.length===0;const isBusy=isThinking||isStreaming||typing!==null;// Only the newest reply's Em stays animated; older ones hold still.\nconst lastReplyIdx=messages.map(m=>m.role).lastIndexOf(\"model\");// --- Persistence ---------------------------------------------------------\n// Shared thread — see CONSISTENCY CONTRACT (Storage, and the hydrate/clear\n// hard rules). Every storage call is wrapped because private browsing and\n// blocked site data make sessionStorage throw rather than return null.\nReact.useEffect(()=>{if(isStatic)return;try{const raw=window.sessionStorage.getItem(STORAGE_KEY);if(raw){const saved=JSON.parse(raw);if(Array.isArray(saved)){const clean=saved.filter(m=>m&&typeof m.id===\"string\"&&typeof m.content===\"string\"&&(m.role===\"user\"||m.role===\"model\"));if(clean.length)setMessages(clean);}}}catch{/* no storage available — start fresh, nothing to report */}finally{hydratedRef.current=true;}},[isStatic]);// Save after each turn settles. Skipped mid-stream: otherwise this writes on\n// every chunk for no benefit.\nReact.useEffect(()=>{if(isStatic||isStreaming||!hydratedRef.current)return;if(messages.length===0)return;try{window.sessionStorage.setItem(STORAGE_KEY,JSON.stringify(messages));}catch{/* storage full or blocked — the chat still works in memory */}},[messages,isStreaming,isStatic]);// --- Questions asked from elsewhere on the page --------------------------\n// Kept in a ref so the listener below always calls the current version and\n// never a stale copy captured on an earlier render.\nconst askRef=React.useRef(()=>{});React.useEffect(()=>{askRef.current=text=>{setIsOpen(true);void handleSendMessage(text);};});React.useEffect(()=>{if(isStatic)return;function onAsk(event){const text=event.detail?.text?.trim();if(!text)return;// All three breakpoint copies hear this. Without the guard, one\n// click would fire three identical requests, burn three of the\n// visitor's ten-per-minute, and — worst — let a hidden copy lock\n// page scrolling for its mobile takeover with nothing on screen to\n// close. So only the visible copy answers. It then claims the\n// event, which stops the other copies' listeners from running at\n// all, and cancels it to tell the sender it was handled.\nif(!isOnScreen(rootRef.current))return;event.stopImmediatePropagation();event.preventDefault();askRef.current(text);}window.addEventListener(ASK_EVENT,onAsk);return()=>window.removeEventListener(ASK_EVENT,onAsk);},[isStatic]);// --- Scroll behaviour ----------------------------------------------------\nconst scrollToBottom=React.useCallback(smooth=>{const el=scrollRef.current;if(!el)return;el.scrollTo({top:el.scrollHeight,behavior:smooth?\"smooth\":\"auto\"});},[]);const handleScroll=React.useCallback(()=>{const el=scrollRef.current;if(!el)return;const distance=el.scrollHeight-el.scrollTop-el.clientHeight;stickToBottomRef.current=distance<STICK_THRESHOLD;// Functional update that returns the previous value when nothing changed,\n// so a scroll gesture doesn't re-render on every frame.\nconst away=distance>JUMP_THRESHOLD;setShowJump(prev=>prev===away?prev:away);},[]);const jumpToLatest=React.useCallback(()=>{stickToBottomRef.current=true;setShowJump(false);scrollToBottom(true);},[scrollToBottom]);// Follow the newest message, but only while the reader is at the bottom.\nReact.useEffect(()=>{if(messages.length===0)return;if(!stickToBottomRef.current)return;// Jump instantly the first time (a restored thread shouldn't animate in)\n// and while streaming, where smooth scrolling can't keep up.\nconst smooth=didInitialScrollRef.current&&!isStreaming&&!typing;didInitialScrollRef.current=true;scrollToBottom(smooth);},[messages,isThinking,isStreaming,typing,scrollToBottom]);// Growing content doesn't fire a scroll event, so a reply streaming in while\n// the reader sits just above the fold would never reveal the jump button.\nReact.useEffect(()=>{if(stickToBottomRef.current)return;handleScroll();},[messages,typing,handleScroll]);// --- Typing ----------------------------------------------------------------\n// Type the live reply out at a steady pace instead of dumping each burst on\n// screen. The full text still lands in `messages` (and storage) as it\n// arrives; only what's shown trails behind.\nReact.useEffect(()=>{const id=typing?.id;if(!id)return;let shown=0;let last=performance.now();let frame=requestAnimationFrame(function tick(now){const full=messagesRef.current.find(m=>m.id===id)?.content??\"\";const waiting=full.length-shown;shown=reduceMotionRef.current?full.length:Math.min(full.length,shown+(now-last)/1e3*(TYPE_SPEED+waiting*TYPE_CATCH_UP));last=now;if(shown>=full.length&&streamDoneRef.current){setTyping(null);return;}const next=Math.floor(shown);// Leaves it alone if New chat or Stop already cleared it.\nsetTyping(prev=>prev?.id!==id||prev.shown===next?prev:{id,shown:next});frame=requestAnimationFrame(tick);});return()=>cancelAnimationFrame(frame);},[typing?.id]);// Track whether we're on a phone-sized screen (≤600px) so the chat can go\n// full-screen on mobile instead of a cramped floating card.\nReact.useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(max-width: 600px)\");const update=()=>setIsMobile(mq.matches);update();mq.addEventListener?.(\"change\",update);return()=>mq.removeEventListener?.(\"change\",update);},[]);// On mobile, lock the page behind the chat so it doesn't scroll under your\n// finger while the full-screen chat is open.\nReact.useEffect(()=>{if(typeof document===\"undefined\")return;if(isOpen&&isMobile){const previous=document.body.style.overflow;document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=previous;};}},[isOpen,isMobile]);// Focus the composer when the panel opens so you can just start typing.\nReact.useEffect(()=>{if(!isOpen)return;const id=window.setTimeout(()=>composerRef.current?.focus(),260);return()=>window.clearTimeout(id);},[isOpen]);// Cancel any in-flight reply if the component goes away mid-stream.\nReact.useEffect(()=>{return()=>abortRef.current?.abort();},[]);// Grow the composer with its content, up to a cap.\nReact.useEffect(()=>{const el=composerRef.current;if(!el)return;el.style.height=\"auto\";el.style.height=`${Math.min(el.scrollHeight,MAX_COMPOSER_HEIGHT)}px`;},[inputText]);const toggleChat=()=>setIsOpen(!isOpen);const handleSendMessage=async(text=\"\")=>{// API flow:\n// 1) validate input and append user message locally\n// 2) POST the conversation history to `/api/chat`\n// 3) stream the model response in, or surface an inline error\nconst messageText=text||inputText;if(!messageText.trim()||isBusy)return;setError(null);lastAttemptRef.current=messageText.trim();const userMsg={id:\"msg-\"+Date.now()+\"-user\",role:\"user\",content:messageText.trim(),// Stamped for storage-shape parity; only replies display a time.\nat:Date.now()};const history=[...messages,userMsg];setMessages(history);setInputText(\"\");setIsThinking(true);stickToBottomRef.current=true;setShowJump(false);// Unique id for the streamed reply, plus a flag telling us whether any text\n// has arrived yet (used for graceful mid-stream error handling below).\nconst streamId=\"msg-\"+Date.now()+\"-bot\";let streamedSomething=false;const controller=new AbortController;abortRef.current=controller;try{// Build simple message history payload for the secure backend API\nconst payload=history.map(m=>({role:m.role,content:m.content}));// Call the chat backend, asking for a streamed reply (stream: true).\nconst response=await fetch(CHAT_BACKEND_BASE_URL+\"/api/chat\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},signal:controller.signal,body:JSON.stringify({messages:payload,stream:true})});// Errors always come back as JSON, even from the streaming endpoint.\nif(!response.ok){let message=\"Can't reach my brain right now — try me again in a sec?\";try{const errData=await response.json();if(errData?.error)message=errData.error;}catch(_){}throw new Error(message);}const contentType=response.headers.get(\"content-type\")||\"\";// Fallback: if the server replied as JSON (not a stream), handle it the old way.\nif(contentType.includes(\"application/json\")||!response.body){const data=await response.json();if(data.error)throw new Error(data.error);setIsThinking(false);setMessages(prev=>[...prev,{id:streamId,role:\"model\",content:data.text,at:Date.now()}]);return;}// Streaming: read the reply piece by piece and fill the text live.\nconst reader=response.body.getReader();const decoder=new TextDecoder;let accumulated=\"\";while(true){const{done,value}=await reader.read();if(done)break;const piece=decoder.decode(value,{stream:true});if(!piece)continue;accumulated+=piece;if(!streamedSomething){// First words arrived — drop the thinking state, show the reply.\nstreamedSomething=true;setIsThinking(false);setIsStreaming(true);streamDoneRef.current=false;setTyping({id:streamId,shown:0});const initial=accumulated;setMessages(prev=>[...prev,{id:streamId,role:\"model\",content:initial,at:Date.now()}]);}else{const current=accumulated;setMessages(prev=>prev.map(m=>m.id===streamId?{...m,content:current}:m));}}// Flush any trailing bytes and write the final text.\naccumulated+=decoder.decode();if(streamedSomething){const finalText=accumulated;setMessages(prev=>prev.map(m=>m.id===streamId?{...m,content:finalText}:m));}else if(accumulated.trim()){setMessages(prev=>[...prev,{id:streamId,role:\"model\",content:accumulated,at:Date.now()}]);}else{throw new Error(\"Huh, I blanked on that one. Give it another go?\");}}catch(err){const aborted=err?.name===\"AbortError\";if(aborted){// They pressed stop — keep whatever arrived, no error.\n}else if(streamedSomething){// A partial reply is already on screen — append a gentle note instead\n// of replacing it with a scary error box.\nsetMessages(prev=>prev.map(m=>m.id===streamId?{...m,content:(m.content||\"\")+\"\\n\\n*(Looks like I got cut off there — hit me with that again?)*\"}:m));}else{console.error(err);setError(err.message||\"Something glitched on my end. One more try?\");}}finally{abortRef.current=null;setIsThinking(false);setIsStreaming(false);streamDoneRef.current=true;composerRef.current?.focus();}};// Stop also finishes the typing, showing whatever has arrived.\nconst stopGenerating=()=>{abortRef.current?.abort();setTyping(null);};const retry=()=>{const text=lastAttemptRef.current;if(!text)return;// Drop the user message that failed, then resend it.\nsetMessages(prev=>{const next=[...prev];if(next.length&&next[next.length-1].role===\"user\")next.pop();return next;});setError(null);window.setTimeout(()=>handleSendMessage(text),0);};const resetChat=()=>{abortRef.current?.abort();setTyping(null);setMessages([]);setInputText(\"\");setError(null);stickToBottomRef.current=true;setShowJump(false);// Explicit clear — the shared thread is only ever dropped from here.\ntry{window.sessionStorage.removeItem(STORAGE_KEY);}catch{/* nothing to clear */}composerRef.current?.focus();};const copyReply=async message=>{if(typeof navigator===\"undefined\"||!navigator.clipboard)return;try{await navigator.clipboard.writeText(message.content);setCopiedId(message.id);window.setTimeout(()=>setCopiedId(null),1600);}catch{/* clipboard blocked — silently skip */}};const handleKeyDown=e=>{if(e.key===\"Enter\"&&!e.shiftKey){e.preventDefault();handleSendMessage();}};// Brand-driven fixed visual system (single warm light theme).\nconst rootStyle={...rootContainerStyle,// The whole widget forms one stacking context. Normally it sits at 9 —\n// below the sticky top nav (z-index 10) and the custom cursor layer. On\n// mobile when open, nudge it to 11: just enough to cover the nav for the\n// full-screen takeover, while staying under Framer's much higher\n// custom-cursor layer so the cursor still renders on top.\nzIndex:isMobile&&isOpen?11:9};const triggerBtnStyle={...buttonStyle,// No box: Em's face is the button. The shadow is a drop-shadow, so it\n// follows the hexagon (and moves with it) rather than a square.\nbackgroundColor:\"transparent\",overflow:\"visible\",filter:`drop-shadow(0 6px 14px ${BRAND.shadow})`,bottom:`${bottomOffset}px`,right:`${rightOffset}px`,width:`${buttonSize}px`,height:`${buttonSize}px`,transform:hovered===\"trigger\"?\"scale(1.06)\":\"scale(1)\"};const chatBoxStyle={...chatContainerStyle,backgroundColor:BRAND.surface,color:BRAND.textPrimary,borderColor:BRAND.border,boxShadow:`0 12px 30px ${BRAND.shadow}`,fontFamily:BRAND.fontBody,...isMobile?{// Full-screen takeover: fill the viewport, no rounded corners/border.\n// 100dvh (dynamic viewport height) keeps the input above the mobile\n// browser's address bar instead of hidden behind it.\ntop:0,left:0,right:0,bottom:0,width:\"100%\",height:\"100dvh\",maxWidth:\"none\",maxHeight:\"none\",borderRadius:0,border:\"none\",zIndex:10,display:\"flex\",// Slide up from the bottom on open; slide away on close.\ntransform:isOpen?\"translateY(0)\":\"translateY(100%)\",opacity:isOpen?1:0,pointerEvents:isOpen?\"auto\":\"none\",transition:\"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease\"}:{// Desktop: floating card anchored just above the trigger button.\nbottom:`${bottomOffset+buttonSize+16}px`,right:`${rightOffset}px`,display:isOpen?\"flex\":\"none\"}};const headerStyle={...headerContainerStyle,backgroundColor:BRAND.elevated,borderBottomColor:BRAND.border,// Clear the notch / status bar when full-screen on mobile.\n...isMobile?{paddingTop:\"calc(16px + env(safe-area-inset-top))\"}:{}};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:rootStyle,children:[/*#__PURE__*/_jsx(\"style\",{children:PANEL_CSS}),/*#__PURE__*/_jsx(\"button\",{className:\"emp-trigger\",onClick:toggleChat,onMouseEnter:()=>setHovered(\"trigger\"),onMouseLeave:()=>setHovered(\"\"),style:triggerBtnStyle,\"aria-label\":isOpen?\"Close chat\":`Chat with ${botName}`,children:/*#__PURE__*/_jsx(EmFace,{size:buttonSize,close:isOpen})}),/*#__PURE__*/_jsxs(\"div\",{style:chatBoxStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:headerStyle,children:[/*#__PURE__*/_jsxs(\"button\",{className:\"emp-newchat\",type:\"button\",onClick:resetChat,disabled:isEmpty&&!isBusy,title:\"Start fresh\",\"aria-label\":\"Start a new chat\",children:[/*#__PURE__*/_jsx(PlusIcon,{}),/*#__PURE__*/_jsx(\"span\",{children:\"New chat\"})]}),/*#__PURE__*/_jsx(\"button\",{className:\"emp-iconbtn\",type:\"button\",onClick:()=>setIsOpen(false),style:{display:isMobile?\"inline-flex\":\"none\"},title:\"Close\",\"aria-label\":\"Close chat\",children:/*#__PURE__*/_jsx(CloseIcon,{})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"emp-scroll\",ref:scrollRef,onScroll:handleScroll,style:{...messageListStyle,justifyContent:isEmpty?\"center\":\"flex-start\"},children:isEmpty?/* Landing screen. Copy matches the full-page experience;\n                           stays left-aligned, as the panel always has. *//*#__PURE__*/_jsxs(\"div\",{className:\"emp-hero\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"emp-hero-face\",children:/*#__PURE__*/_jsx(EmFace,{size:32,mood:\"excited\"})}),/*#__PURE__*/_jsx(\"div\",{className:\"emp-hero-title\",children:greeting}),/*#__PURE__*/_jsx(\"p\",{className:\"emp-hero-sub\",children:subtitle}),/*#__PURE__*/_jsx(\"div\",{className:\"emp-chips\",children:suggestions.map((s,idx)=>/*#__PURE__*/_jsx(\"button\",{className:\"emp-chip\",type:\"button\",onClick:()=>handleSendMessage(s),children:s},idx))})]}):/*#__PURE__*/_jsxs(\"div\",{className:\"emp-thread\",role:\"log\",\"aria-live\":\"polite\",children:[messages.map((m,i)=>{// Set only on the reply being typed out.\nconst shown=typing?.id===m.id?typing.shown:null;const isLive=shown!==null;return m.role===\"user\"?/*#__PURE__*/_jsx(\"div\",{className:\"emp-user-row\",children:/*#__PURE__*/_jsx(\"div\",{className:\"emp-user-bubble\",children:m.content})},m.id):/*#__PURE__*/_jsxs(\"article\",{className:\"emp-reply\",\"aria-busy\":isLive||undefined,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emp-reply-label\",children:[/*#__PURE__*/_jsx(EmFace,{size:20,mood:isLive?\"writing\":\"idle\",still:!isLive&&(isBusy||i!==lastReplyIdx)}),/*#__PURE__*/_jsx(\"span\",{className:\"emp-sr-only\",children:botName})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"emp-reply-body\",children:[/*#__PURE__*/_jsx(Markdown,{text:shown===null?m.content:settlePartial(m.content.slice(0,shown))}),isLive&&/*#__PURE__*/_jsx(\"span\",{className:\"emp-caret\",\"aria-hidden\":\"true\"})]}),!isLive&&/*#__PURE__*/_jsxs(\"div\",{className:\"emp-meta\",children:[m.at&&/*#__PURE__*/_jsx(Time,{at:m.at}),!isBusy&&/*#__PURE__*/_jsx(\"button\",{className:\"emp-copy\",type:\"button\",onClick:()=>copyReply(m),\"aria-label\":\"Copy reply\",children:copiedId===m.id?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CheckIcon,{}),\"Copied\"]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CopyIcon,{}),\"Copy\"]})})]})]},m.id);}),isThinking&&/*#__PURE__*/_jsxs(\"div\",{className:\"emp-reply emp-thinking-row\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emp-reply-label is-thinking\",children:[/*#__PURE__*/_jsx(EmFace,{size:20,mood:\"thinking\"}),/*#__PURE__*/_jsx(\"span\",{className:\"emp-sr-only\",children:botName})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"emp-thinking\",role:\"status\",\"aria-label\":`${botName} is thinking`,children:[/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{})]})]}),error&&/*#__PURE__*/_jsxs(\"div\",{className:\"emp-error\",role:\"alert\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emp-error-text\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Well, that's awkward\"}),/*#__PURE__*/_jsx(\"span\",{children:error})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:retry,children:\"Try again\"})]})]})}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:e=>{e.preventDefault();handleSendMessage();},style:{...formStyle,borderTopColor:BRAND.border,// Clear the home-bar / gesture area on full-screen mobile.\n...isMobile?{paddingBottom:\"calc(12px + env(safe-area-inset-bottom))\"}:{}},children:[showJump&&!isEmpty&&/*#__PURE__*/_jsx(\"button\",{className:\"emp-jump\",type:\"button\",onClick:jumpToLatest,\"aria-label\":\"Scroll to latest message\",children:/*#__PURE__*/_jsx(ArrowDownIcon,{})}),/*#__PURE__*/_jsxs(\"div\",{className:\"emp-composer\",style:{borderRadius:BRAND.radius},children:[/*#__PURE__*/_jsxs(\"label\",{className:\"emp-sr-only\",htmlFor:\"emp-input\",children:[\"Message \",botName]}),/*#__PURE__*/_jsx(\"textarea\",{id:\"emp-input\",className:\"emp-input\",ref:composerRef,rows:1,value:inputText,maxLength:MAX_INPUT_CHARS,placeholder:`Ask ${botName} about Manas…`,onChange:e=>setInputText(e.target.value),onKeyDown:handleKeyDown,style:{// 16px on mobile: iOS zooms the page on focus for\n// any field smaller than that.\nfontSize:isMobile?\"16px\":\"13.5px\"}}),isBusy?/*#__PURE__*/_jsx(\"button\",{className:\"emp-send is-stop\",type:\"button\",onClick:stopGenerating,\"aria-label\":\"Stop generating\",children:/*#__PURE__*/_jsx(StopIcon,{})}):/*#__PURE__*/_jsx(\"button\",{className:\"emp-send\",type:\"submit\",disabled:!inputText.trim(),\"aria-label\":\"Send message\",children:/*#__PURE__*/_jsx(ArrowUpIcon,{})})]})]})]})]});}// Framer property controls for instant sidebar-based overrides\naddPropertyControls(PortfolioChatbot,{botName:{type:ControlType.String,title:\"Bot Name\",defaultValue:\"Em\"},greeting:{type:ControlType.String,title:\"Greeting\",defaultValue:\"Hey, I'm Em.\"},subtitle:{type:ControlType.String,title:\"Subtitle\",displayTextArea:true,defaultValue:\"Manas's AI sidekick. I know his work, his story and how he thinks about design — ask me anything.\"},bottomOffset:{type:ControlType.Number,title:\"Bottom px\",min:10,max:200,step:1,defaultValue:24},rightOffset:{type:ControlType.Number,title:\"Right px\",min:10,max:200,step:1,defaultValue:24},buttonSize:{type:ControlType.Number,title:\"Button Size\",min:40,max:100,step:1,defaultValue:60}});const suggestions=[\"What's Manas's design experience?\",\"What are his strongest design skills?\",\"What does Manas write about?\",\"Recommend one of his articles\"];// Em's geometry on a 20×20 grid: a rounded hexagon head and two pill eyes.\nconst FACE_HEAD=\"M 9.5 0.289 C 9.809 0.11 10.191 0.11 10.5 0.289 C 12.029 1.171 16.631 3.828 18.16 4.711 C 18.47 4.89 18.66 5.22 18.66 5.577 C 18.66 7.343 18.66 12.657 18.66 14.422 C 18.66 14.78 18.47 15.11 18.16 15.289 C 16.631 16.172 12.029 18.828 10.5 19.711 C 10.191 19.89 9.809 19.89 9.5 19.711 C 7.971 18.828 3.369 16.172 1.84 15.289 C 1.53 15.11 1.34 14.78 1.34 14.423 C 1.34 12.657 1.34 7.343 1.34 5.577 C 1.34 5.22 1.53 4.89 1.84 4.711 C 3.369 3.829 7.971 1.171 9.5 0.289 Z\";const FACE_EYES=[{x:6,lean:1},{x:11,lean:-1}];// Per mood: eye lean (deg, tops toward each other), openness, ms between blinks.\nconst FACE_POSE={idle:{lean:15,open:1,blinkGap:[2e3,4200]},excited:{lean:6,open:1.12,blinkGap:[2400,4500]},thinking:{lean:0,open:.78,blinkGap:[3800,6500]},writing:{lean:0,open:.72,blinkGap:[2400,4200]}};const FACE_CENTER={x:0,y:0,lift:0};const FACE_GLANCES=[{x:-1.7,y:0,lift:0},{x:1.7,y:0,lift:0},{x:-1.3,y:-1.1,lift:0},{x:1.3,y:-1.1,lift:0},{x:0,y:-1.2,lift:0}];// Eyes squashed and leaning hard read as ^ ^, a smile.\nconst FACE_HAPPY={x:0,y:-.5,lift:0,open:.4,lean:26};// The whole face: y lifts it (a hop), tilt cocks it (deg).\nconst FACE_REST={y:0,tilt:0};const faceSpring={type:\"spring\",stiffness:300,damping:24};const faceBounce={type:\"spring\",stiffness:520,damping:14};const rand=(min,max)=>min+Math.random()*(max-min);const pick=items=>items[Math.floor(Math.random()*items.length)];/**\n * Em's face, with moods. Kept in step with EmFace.tsx, the canvas playground\n * for them. `still` holds the idle pose without motion, so only the live Em in\n * a thread moves. `close` swings the eyes into an ✕, for the chat button. The hover perk-up is CSS (.emp-face-perk), so still faces\n * get it too.\n */function EmFace({size=20,mood=\"idle\",still=false,close=false}){const isStatic=useIsStaticRenderer();const reduceMotion=useReducedMotion();const ref=React.useRef(null);const inView=useInView(ref);const alive=!still&&!close&&inView&&!isStatic&&!reduceMotion;const[look,setLook]=React.useState(FACE_CENTER);const[body,setBody]=React.useState(FACE_REST);const[blink,setBlink]=React.useState(false);const[turns,setTurns]=React.useState(0);React.useEffect(()=>{setLook(mood===\"thinking\"?{x:-1.3,y:-1.3,lift:.6}:FACE_CENTER);setBody(FACE_REST);if(!alive)return;const timers=new Set;const later=(fn,ms)=>{const id=window.setTimeout(()=>{timers.delete(id);fn();},ms);timers.add(id);};const hop=(height=1.8)=>{setBody({y:-height,tilt:0});later(()=>setBody(FACE_REST),170);};// Blink now and then; one in five is a double blink.\nconst blinkLoop=()=>later(()=>{setBlink(true);later(()=>setBlink(false),110);if(Math.random()<.2){later(()=>setBlink(true),260);later(()=>setBlink(false),370);}blinkLoop();},rand(...FACE_POSE[mood].blinkGap));blinkLoop();if(mood===\"idle\"){// Glance somewhere and come back, sometimes cocking the head\n// toward it.\nconst glance=()=>later(()=>{const to=pick(FACE_GLANCES);setLook(to);if(to.x!==0&&Math.random()<.4){setBody({y:0,tilt:to.x>0?6:-6});}later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},rand(600,1100));glance();},rand(2200,4200));glance();}if(mood===\"excited\"){// Something new every few seconds, never the same move twice\n// running: a smile with a double hop (also the hello), a happy\n// wiggle, a peek to the side, a wide-eyed look up.\nconst cheer=()=>{setLook(FACE_HAPPY);hop();later(()=>hop(1.2),360);later(()=>setLook(FACE_CENTER),1e3);};const wiggle=()=>{setLook(FACE_HAPPY);const tilts=[-10,10,-7,7,0];tilts.forEach((tilt,i)=>later(()=>setBody({y:0,tilt}),i*150));later(()=>setLook(FACE_CENTER),800);};const peek=()=>{const to=pick(FACE_GLANCES.filter(g=>g.x!==0));setLook(to);setBody({y:0,tilt:to.x>0?7:-7});later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},900);};const wonder=()=>{setLook({x:0,y:-1.4,lift:0,open:1.25,lean:0});setBody({y:-.6,tilt:0});later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},900);};const moves=[cheer,wiggle,peek,wonder];let last=cheer;later(cheer,250);const loop=()=>later(()=>{const next=pick(moves.filter(m=>m!==last));next();last=next;loop();},rand(2200,3600));loop();}if(mood===\"thinking\"){// Look up to one side, then the other, the head clicking round a\n// sixth each time (a hexagon lands back on its own shape).\nlet side=1;const ponder=()=>later(()=>{setLook({x:1.3*side,y:-1.3,lift:side<0?.6:0});setTurns(t=>t+1);side=-side;ponder();},1100);ponder();}if(mood===\"writing\"){// Eyes down in a busy squint, darting along a line; at the end,\n// a little nod down to the next one.\nlet step=0;const write=()=>{const col=step%5;setLook({x:-1.6+col*.8,y:1+rand(-.25,.25),lift:0,open:rand(.6,.8)});if(col===4){later(()=>setBody({y:.6,tilt:0}),300);later(()=>setBody(FACE_REST),480);}step++;later(write,col===4?560:300);};write();}return()=>{timers.forEach(id=>window.clearTimeout(id));// A blink cut off mid-way would leave the eyes shut.\nsetBlink(false);};},[mood,alive]);const pose=FACE_POSE[mood];const busy=close||mood===\"thinking\"||mood===\"writing\";// Idle breathes: a slow, slight rise and fall.\nconst breathing=alive&&mood===\"idle\";return /*#__PURE__*/_jsx(\"svg\",{ref:ref,className:busy?\"emp-face is-busy\":\"emp-face\",width:size,height:size,viewBox:\"0 0 20 20\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{y:breathing?[0,-.45,0]:0},transition:breathing?{duration:2.8,repeat:Infinity,ease:\"easeInOut\"}:faceSpring,children:/*#__PURE__*/_jsxs(motion.g,{initial:false,animate:{y:body.y,rotate:body.tilt},transition:faceBounce,children:[/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{rotate:turns*60},transition:{type:\"spring\",stiffness:180,damping:14},children:/*#__PURE__*/_jsx(\"path\",{d:FACE_HEAD,fill:BRAND.accent})}),/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{x:look.x,y:look.y},transition:faceSpring,children:FACE_EYES.map(eye=>// Lean outside, blink inside, so a blink closes\n    // along the eye rather than skewing it.\n    /*#__PURE__*/_jsx(motion.g,{initial:false,animate:close?{rotate:eye.lean*45,x:eye.lean*2.5,y:-1}:{rotate:eye.lean*(look.lean??pose.lean),x:0,y:eye.lean>0?-look.lift:0},transition:faceSpring,children:/*#__PURE__*/_jsx(\"g\",{className:\"emp-face-perk\",children:/*#__PURE__*/_jsx(motion.rect,{x:eye.x,y:8,width:3,height:6,rx:1.5,fill:BRAND.accentSoft,initial:false,animate:close?{scaleX:.75,scaleY:1.2}:{scaleX:1,scaleY:blink?.12:look.open??pose.open},transition:{duration:blink?.06:.14,ease:\"easeOut\"}})})},eye.x))})]})})});}// --- Time --------------------------------------------------------------------\nfunction Time({at}){const date=new Date(at);const label=date.toLocaleTimeString([],{hour:\"2-digit\",minute:\"2-digit\"});return /*#__PURE__*/_jsx(\"time\",{className:\"emp-time\",dateTime:date.toISOString(),title:date.toLocaleString(),children:label});}// --- Icons -------------------------------------------------------------------\nfunction ArrowDownIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"15\",height:\"15\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 4v11m0 0 4.5-4.5M10 15l-4.5-4.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function ArrowUpIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"16\",height:\"16\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 16V5m0 0 4.5 4.5M10 5 5.5 9.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function StopIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"16\",height:\"16\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"rect\",{x:\"6\",y:\"6\",width:\"8\",height:\"8\",rx:\"1.5\",fill:\"currentColor\"})});}function PlusIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"15\",height:\"15\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 5v10M5 10h10\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"})});}function CloseIcon({size=15}){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:size,height:size,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l8 8M14 6l-8 8\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"})});}function CopyIcon(){return /*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 20 20\",width:\"13\",height:\"13\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"7\",y:\"7\",width:\"8.5\",height:\"8.5\",rx:\"2\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13 4.5H6.5A2 2 0 0 0 4.5 6.5V13\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\"})]});}function CheckIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"13\",height:\"13\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4.5 10.5l3.5 3.5 7-7.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.7\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}// --- Markdown ----------------------------------------------------------------\n// Headings, bullet and numbered lists, paragraphs, bold, italic, inline code\n// and links.\nfunction Markdown({text}){const blocks=React.useMemo(()=>parseBlocks(text||\"\"),[text]);return /*#__PURE__*/_jsx(_Fragment,{children:blocks});}/**\n * Tidies a reply that's only partly typed out, so half-written markdown never\n * flashes as raw symbols: a link shows as plain text until it's complete, and\n * bold, italic or code still open on the current line gets closed early.\n */function settlePartial(text){let out=text// Never cut an emoji in half.\n.replace(/[\\uD800-\\uDBFF]$/,\"\").replace(/\\[([^\\]\\n]*)(\\](\\([^)\\n]*)?)?$/,\"$1\")// Markers mid-typing: a trailing * or `, or a bare list/heading marker.\n.replace(/[*`]+$/,\"\").replace(/(^|\\n)\\s*(#{1,3}|[-*]|\\d+[.)]?)\\s*$/,\"$1\");const line=out.slice(out.lastIndexOf(\"\\n\")+1).replace(/^\\s*[-*]\\s+/,\"\");const count=(s,re)=>(s.match(re)||[]).length;if(count(line,/`/g)%2)out+=\"`\";if(count(line.replace(/\\*\\*/g,\"\"),/\\*/g)%2)out+=\"*\";if(count(line,/\\*\\*/g)%2)out+=\"**\";return out;}function parseBlocks(source){const lines=source.replace(/\\r\\n/g,\"\\n\").split(\"\\n\");const blocks=[];let i=0;while(i<lines.length){const line=lines[i];if(!line.trim()){i++;continue;}const heading=line.match(/^\\s*(#{1,3})\\s+(.+)$/);if(heading){const level=heading[1].length;blocks.push(/*#__PURE__*/_jsx(\"div\",{className:`emp-md-h emp-md-h${level}`,children:inline(heading[2],`h-${i}`)},`h-${i}`));i++;continue;}if(/^\\s*[-*]\\s+/.test(line)){const items=[];while(i<lines.length&&/^\\s*[-*]\\s+/.test(lines[i])){items.push(lines[i].replace(/^\\s*[-*]\\s+/,\"\"));i++;}blocks.push(/*#__PURE__*/_jsx(\"ul\",{className:\"emp-md-list\",children:items.map((item,idx)=>/*#__PURE__*/_jsx(\"li\",{children:inline(item,`ul-${i}-${idx}`)},idx))},`ul-${i}`));continue;}if(/^\\s*\\d+[.)]\\s+/.test(line)){const items=[];while(i<lines.length&&/^\\s*\\d+[.)]\\s+/.test(lines[i])){items.push(lines[i].replace(/^\\s*\\d+[.)]\\s+/,\"\"));i++;}blocks.push(/*#__PURE__*/_jsx(\"ol\",{className:\"emp-md-list\",children:items.map((item,idx)=>/*#__PURE__*/_jsx(\"li\",{children:inline(item,`ol-${i}-${idx}`)},idx))},`ol-${i}`));continue;}// Paragraph: gather until a blank line or the start of another block.\nconst paragraph=[];while(i<lines.length&&lines[i].trim()&&!/^\\s*(#{1,3}\\s|[-*]\\s|\\d+[.)]\\s)/.test(lines[i])){paragraph.push(lines[i].trim());i++;}blocks.push(/*#__PURE__*/_jsx(\"p\",{className:\"emp-md-p\",children:inline(paragraph.join(\" \"),`p-${i}`)},`p-${i}`));}return blocks;}/** Bold, italic, inline code and links inside one line of text. */function inline(text,keyPrefix){const pattern=/(\\[[^\\]]+\\]\\([^)]+\\))|(\\*\\*[^*]+\\*\\*)|(\\*[^*]+\\*)|(_[^_]+_)|(`[^`]+`)|(https?:\\/\\/[^\\s)]+)/g;const out=[];let last=0;let match;let n=0;while((match=pattern.exec(text))!==null){if(match.index>last)out.push(text.slice(last,match.index));const token=match[0];const key=`${keyPrefix}-${n++}`;if(token.startsWith(\"[\")){const link=token.match(/^\\[([^\\]]+)\\]\\(([^)]+)\\)$/);if(link){out.push(/*#__PURE__*/_jsx(\"a\",{className:\"emp-md-a\",href:link[2],children:link[1]},key));}else{out.push(token);}}else if(token.startsWith(\"**\")){out.push(/*#__PURE__*/_jsx(\"strong\",{children:token.slice(2,-2)},key));}else if(token.startsWith(\"`\")){out.push(/*#__PURE__*/_jsx(\"code\",{className:\"emp-md-code\",children:token.slice(1,-1)},key));}else if(token.startsWith(\"*\")||token.startsWith(\"_\")){out.push(/*#__PURE__*/_jsx(\"em\",{children:token.slice(1,-1)},key));}else{out.push(/*#__PURE__*/_jsx(\"a\",{className:\"emp-md-a\",href:token,children:token.replace(/^https?:\\/\\//,\"\")},key));}last=match.index+token.length;}if(last<text.length)out.push(text.slice(last));return out;}// ==========================================\n// 🎨 STYLES\n// ==========================================\n// Layout/positioning stays as inline style objects (below); everything needing\n// hover, animation or descendant selectors lives in PANEL_CSS.\nconst rootContainerStyle={position:\"fixed\",// Keep within the site's max-10 stacking range so native overlays (like custom cursor) can stay above.\nzIndex:9};const buttonStyle={position:\"fixed\",// Reset the browser's default button padding/box model so the mark sits dead\n// centre instead of inside a padded (rectangular) content box.\npadding:0,boxSizing:\"border-box\",borderRadius:\"8px\",border:\"none\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"hidden\",transition:\"all 0.25s cubic-bezier(0.4, 0, 0.2, 1)\",// Keep within normal max-10 stacking tiers; above page content, below native overlay layers.\nzIndex:9};const chatContainerStyle={position:\"fixed\",width:\"400px\",height:\"580px\",maxHeight:\"calc(100vh - 125px)\",maxWidth:\"calc(100vw - 48px)\",borderRadius:BRAND.radius,overflow:\"hidden\",// One tier below trigger button, while still staying in the site's max-10 stacking system.\nzIndex:8,border:\"1px solid\",display:\"flex\",flexDirection:\"column\",transition:\"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)\"};const headerContainerStyle={padding:\"10px 12px\",display:\"flex\",alignItems:\"center\",// Controls only — nothing on the left any more.\njustifyContent:\"flex-end\",gap:\"6px\",borderBottom:\"1px solid\"};const messageListStyle={flex:1,minHeight:0,overflowY:\"auto\",overflowX:\"hidden\",padding:\"20px\",display:\"flex\",flexDirection:\"column\"};const formStyle={// position: relative anchors the jump-to-latest button above the composer.\nposition:\"relative\",padding:\"12px 16px\",display:\"flex\",borderTop:\"1px solid\"};const PANEL_CSS=`\n.emp-sr-only {\n    position: absolute; width: 1px; height: 1px;\n    padding: 0; margin: -1px; overflow: hidden;\n    clip: rect(0 0 0 0); white-space: nowrap; border: 0;\n}\n\n/* ---------- Scroll area ---------- */\n.emp-scroll {\n    scrollbar-width: thin;\n    scrollbar-color: ${BRAND.border} transparent;\n    overscroll-behavior: contain;\n}\n.emp-scroll::-webkit-scrollbar { width: 8px; }\n.emp-scroll::-webkit-scrollbar-track { background: transparent; }\n.emp-scroll::-webkit-scrollbar-thumb {\n    background: ${BRAND.border}; border-radius: 99px;\n    border: 2px solid transparent; background-clip: content-box;\n}\n\n/* ---------- Header controls ---------- */\n.emp-newchat, .emp-iconbtn {\n    display: inline-flex; align-items: center; gap: 5px;\n    font-family: ${BRAND.fontBody}; font-size: 11px; line-height: 1.4;\n    color: ${BRAND.textTertiary}; background: ${BRAND.surface};\n    border: 1px solid ${BRAND.border}; border-radius: 8px;\n    padding: 4px 8px; cursor: pointer;\n    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;\n}\n.emp-iconbtn { padding: 5px; }\n.emp-newchat:hover:not(:disabled), .emp-iconbtn:hover {\n    color: ${BRAND.textPrimary}; background: ${BRAND.sunken};\n}\n.emp-newchat:disabled { opacity: .4; cursor: default; }\n\n/* ---------- Landing screen ---------- */\n.emp-hero { padding: 4px 0; }\n.emp-hero-face { display: inline-flex; width: 32px; height: 32px; margin-bottom: 14px; }\n.emp-hero-title {\n    font-family: ${BRAND.fontHeading}; font-weight: 700;\n    font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;\n    color: ${BRAND.textPrimary}; margin-bottom: 8px;\n}\n.emp-hero-sub {\n    margin: 0; font-family: ${BRAND.fontBody}; font-weight: 400;\n    font-size: 13px; line-height: 1.5; color: ${BRAND.textSecondary};\n}\n.emp-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 22px; }\n.emp-chip {\n    font-family: ${BRAND.fontBody}; font-size: 11.5px; line-height: 1.35;\n    color: ${BRAND.textSecondary}; background: ${BRAND.surface};\n    border: 1px solid ${BRAND.border}; border-radius: 8px;\n    padding: 7px 11px; cursor: pointer; text-align: left;\n    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;\n}\n.emp-chip:hover {\n    color: ${BRAND.textPrimary}; border-color: ${BRAND.accent};\n    background: ${BRAND.elevated}; transform: translateY(-1px);\n}\n\n/* ---------- Thread ---------- */\n.emp-thread { display: flex; flex-direction: column; gap: 22px; }\n@keyframes emp-in {\n    from { opacity: 0; transform: translateY(5px); }\n    to   { opacity: 1; transform: none; }\n}\n.emp-user-row { display: flex; justify-content: flex-end; animation: emp-in .22s ease both; }\n.emp-user-bubble {\n    max-width: 88%; padding: 10px 13px; border-radius: 8px;\n    background: ${BRAND.accentSoft}; color: ${BRAND.textPrimary};\n    font-family: ${BRAND.fontBody}; font-size: 13.5px; line-height: 1.5;\n    white-space: pre-wrap; word-break: break-word;\n}\n.emp-reply { animation: emp-in .22s ease both; }\n.emp-reply-label { display: flex; align-items: center; height: 20px; margin-bottom: 8px; }\n.emp-reply-body {\n    font-family: ${BRAND.fontBody}; font-size: 13.5px; line-height: 1.62;\n    color: ${BRAND.textPrimary}; word-break: break-word;\n}\n.emp-caret {\n    display: inline-block; width: 2px; height: 1.05em;\n    margin-left: 2px; vertical-align: text-bottom;\n    background: ${BRAND.accent}; animation: emp-blink 1s step-end infinite;\n}\n@keyframes emp-blink { 50% { opacity: 0; } }\n/* While typing, the last paragraph runs inline so the caret follows the text. */\n.emp-reply-body > .emp-md-p:has(+ .emp-caret) { display: inline; }\n\n/* ---------- Em's face ---------- */\n/* Pointing at an idle Em perks it up: eyes widen and lift a touch. Busy faces\n   (thinking, writing) are already expressive, so they ignore hover. */\n.emp-face { display: block; overflow: visible; }\n.emp-face-perk {\n    transform-box: fill-box; transform-origin: center;\n    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);\n}\n.emp-trigger:hover .emp-face:not(.is-busy) .emp-face-perk,\n.emp-hero-face:hover .emp-face:not(.is-busy) .emp-face-perk,\n.emp-reply:hover .emp-face:not(.is-busy) .emp-face-perk {\n    transform: translateY(-0.5px) scaleY(1.15);\n}\n\n/* ---------- Meta row (time + copy) ---------- */\n.emp-meta { display: flex; align-items: center; gap: 9px; margin-top: 7px; min-height: 20px; }\n.emp-time {\n    font-family: ${BRAND.fontBody}; font-size: 10px; line-height: 1;\n    color: ${BRAND.textTertiary}; font-variant-numeric: tabular-nums;\n}\n.emp-copy {\n    display: inline-flex; align-items: center; gap: 4px;\n    font-family: ${BRAND.fontBody}; font-size: 11px;\n    color: ${BRAND.textTertiary}; background: transparent;\n    border: 1px solid ${BRAND.border}; border-radius: 8px;\n    padding: 3px 7px; cursor: pointer;\n    opacity: 0; pointer-events: none;\n    transition: opacity .18s ease, color .18s ease, background-color .18s ease;\n}\n.emp-reply:hover .emp-copy,\n.emp-reply:focus-within .emp-copy { opacity: 1; pointer-events: auto; }\n.emp-copy:hover { color: ${BRAND.textPrimary}; background: ${BRAND.sunken}; }\n/* Touch devices have no hover, so the button would never appear. */\n@media (hover: none) {\n    .emp-copy { opacity: 1; pointer-events: auto; }\n}\n\n/* ---------- Thinking ---------- */\n.emp-thinking-row { display: flex; align-items: center; gap: 10px; }\n.emp-thinking-row .emp-reply-label { margin-bottom: 0; }\n.emp-thinking { display: inline-flex; align-items: center; gap: 4px; height: 20px; }\n.emp-thinking span {\n    width: 4.5px; height: 4.5px; border-radius: 50%;\n    background: ${BRAND.textTertiary}; animation: emp-breathe 1.5s ease-in-out infinite;\n}\n.emp-thinking span:nth-child(2) { animation-delay: .2s; }\n.emp-thinking span:nth-child(3) { animation-delay: .4s; }\n@keyframes emp-breathe {\n    0%, 100% { opacity: .22; }\n    50% { opacity: .8; }\n}\n\n/* ---------- Error ---------- */\n.emp-error {\n    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;\n    padding: 10px 12px; border-radius: 8px;\n    background: ${BRAND.surface}; border: 1px solid ${BRAND.border};\n    font-family: ${BRAND.fontBody}; font-size: 12px; line-height: 1.45;\n    color: ${BRAND.textSecondary};\n}\n.emp-error-text {\n    display: flex; flex-direction: column; gap: 3px;\n    flex: 1 1 auto; min-width: 0;\n}\n.emp-error-text strong { color: ${BRAND.textPrimary}; font-size: 12.5px; }\n.emp-error button {\n    font-family: ${BRAND.fontBody}; font-size: 11.5px; font-weight: 600;\n    color: ${BRAND.accentOn}; background: ${BRAND.accent};\n    border: none; border-radius: 8px; padding: 5px 10px; cursor: pointer;\n    transition: background-color .18s ease;\n}\n.emp-error button:hover { background: ${BRAND.accentHover}; }\n\n/* ---------- Jump to latest ---------- */\n/* Floats just above the composer. */\n.emp-jump {\n    position: absolute; bottom: 100%; left: 50%;\n    transform: translateX(-50%); margin-bottom: 10px;\n    width: 30px; height: 30px; border-radius: 50%;\n    display: inline-flex; align-items: center; justify-content: center;\n    background: ${BRAND.elevated}; color: ${BRAND.textSecondary};\n    border: 1px solid ${BRAND.border};\n    box-shadow: 0 3px 10px ${BRAND.shadow};\n    cursor: pointer; z-index: 4;\n    animation: emp-jump-in .2s ease both;\n    transition: color .18s ease, background-color .18s ease;\n}\n.emp-jump:hover { color: ${BRAND.textPrimary}; background: ${BRAND.sunken}; }\n@keyframes emp-jump-in {\n    from { opacity: 0; transform: translateX(-50%) translateY(5px); }\n    to   { opacity: 1; transform: translateX(-50%) translateY(0); }\n}\n\n/* ---------- Composer ---------- */\n.emp-composer {\n    flex: 1; display: flex; align-items: flex-end; gap: 6px;\n    padding: 6px 6px 6px 12px;\n    background: ${BRAND.elevated};\n    border: 1px solid ${BRAND.border};\n    transition: border-color .18s ease, box-shadow .18s ease;\n}\n.emp-composer:focus-within {\n    border-color: ${BRAND.accent};\n    box-shadow: 0 0 0 3px ${BRAND.accentSoft};\n}\n.emp-input {\n    flex: 1 1 auto; min-width: 0;\n    border: none; outline: none; resize: none; background: transparent;\n    font-family: ${BRAND.fontBody}; line-height: 1.45;\n    color: ${BRAND.textPrimary};\n    /* min-height matches the send button, and the padding is symmetric, so a\n       single line of text centres against the button instead of riding high. */\n    min-height: 30px; padding: 5px 0;\n    max-height: ${MAX_COMPOSER_HEIGHT}px;\n    scrollbar-width: thin;\n    display: block;\n}\n.emp-input::placeholder { color: ${BRAND.textTertiary}; }\n.emp-send {\n    flex: 0 0 auto;\n    width: 30px; height: 30px; border-radius: 8px;\n    display: inline-flex; align-items: center; justify-content: center;\n    border: none; cursor: pointer;\n    background: ${BRAND.accent}; color: ${BRAND.accentOn};\n    transition: background-color .18s ease, opacity .18s ease;\n}\n.emp-send:hover:not(:disabled) { background: ${BRAND.accentHover}; }\n.emp-send:disabled {\n    background: ${BRAND.sunken}; color: ${BRAND.textTertiary};\n    cursor: default;\n}\n.emp-send.is-stop { background: ${BRAND.textPrimary}; color: ${BRAND.background}; }\n\n/* ---------- Focus visibility ---------- */\n.emp-chip:focus-visible, .emp-copy:focus-visible, .emp-send:focus-visible,\n.emp-jump:focus-visible, .emp-newchat:focus-visible, .emp-iconbtn:focus-visible {\n    outline: 2px solid ${BRAND.accent}; outline-offset: 2px;\n}\n\n/* ---------- Markdown ---------- */\n.emp-md-p { margin: 0 0 .8em; }\n.emp-md-p:last-child { margin-bottom: 0; }\n.emp-md-h {\n    font-family: ${BRAND.fontHeading}; font-weight: 600;\n    line-height: 1.3; color: ${BRAND.textPrimary};\n    margin: 1em 0 .4em;\n}\n.emp-md-h:first-child { margin-top: 0; }\n.emp-md-h1 { font-size: 1.24em; }\n.emp-md-h2 { font-size: 1.14em; }\n.emp-md-h3 { font-size: 1.05em; }\n.emp-md-list { margin: 0 0 .8em; padding-left: 1.25em; }\n.emp-md-list:last-child { margin-bottom: 0; }\n.emp-md-list li { margin: .28em 0; }\n.emp-md-list li::marker { color: ${BRAND.textTertiary}; }\n.emp-md-a {\n    color: ${BRAND.accent};\n    text-decoration: underline;\n    text-decoration-thickness: 1px;\n    text-underline-offset: 2px;\n    transition: color .18s ease;\n}\n.emp-md-a:hover { color: ${BRAND.accentHover}; }\n.emp-md-code {\n    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n    font-size: .88em;\n    background: ${BRAND.sunken}; color: ${BRAND.textPrimary};\n    padding: .1em .35em; border-radius: 4px;\n}\n\n/* ---------- Reduced motion ---------- */\n@media (prefers-reduced-motion: reduce) {\n    .emp-user-row, .emp-reply { animation: none; }\n    .emp-caret { animation: none; }\n    .emp-thinking span { animation: none; opacity: .5; }\n    .emp-face-perk { transition: none; transform: none !important; }\n    .emp-chip:hover { transform: none; }\n    .emp-jump { animation: none; }\n}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PortfolioChatbot\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PortfolioChatbot.map","// Generated by Framer (ec6c716)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,Container,ControlType,cx,forwardLoader,GeneratedComponentContext,getFonts,PropertyOverrides,RenderTarget,runTasksWithYield,useCustomCursors,useHydratedBreakpointVariants,useIsOnFramerCanvas,useLocaleInfo,withCSS,withFX}from\"framer\";import{LayoutGroup,motion}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import Footer from\"#framer/local/canvasComponent/CibtiOm6U/CibtiOm6U.js\";import TheCursor from\"#framer/local/canvasComponent/Haqom5F0U/Haqom5F0U.js\";import NavigationBar from\"#framer/local/canvasComponent/oSOtMFvR3/oSOtMFvR3.js\";import PortfolioChatbot from\"#framer/local/codeFile/MTkEVGd/PortfolioChatbot.js\";const NavigationBarFonts=getFonts(NavigationBar);const FooterFonts=getFonts(Footer);const ContainerWithFX=withFX(Container);const PortfolioChatbotFonts=getFonts(PortfolioChatbot);const TheCursorFonts=getFonts(TheCursor);const breakpoints={I7iwXnAI0:\"(min-width: 810px) and (max-width: 1439.98px)\",m8rtkT0l5:\"(min-width: 1440px)\",qT38onCl8:\"(max-width: 809.98px)\"};const isBrowser=()=>typeof document!==\"undefined\";const serializationHash=\"framer-1SAjB\";const variantClassNames={I7iwXnAI0:\"framer-v-z6x66i\",m8rtkT0l5:\"framer-v-56lvgo\",qT38onCl8:\"framer-v-ge2rft\"};const wvtQyqTi_=undefined;const DoV8wk8jD=undefined;const uiD27GSdc=undefined;const matchVariant=(...args)=>{for(const arg of args){if(arg&&typeof arg===\"string\")return arg;}return undefined;};const animation={opacity:0,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:24};const transition1={delay:0,duration:.5,ease:[.44,0,.56,1],type:\"tween\"};const animation1={opacity:0,rotate:0,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,transition:transition1,x:0,y:24};const breakpointRules={I7iwXnAI0:[\".framer-1SAjB .framer-kw1wng-container { max-width: 980px; }\"],qT38onCl8:[\".framer-1SAjB .framer-17bv004 { padding: 0px 16px 0px 16px; }\",\".framer-1SAjB .framer-xbd8s0 { top: 32px; }\",\".framer-1SAjB .framer-kw1wng-container { width: 92%; }\"]};const breakpointKeys=Object.keys(breakpointRules);const selectors={I7iwXnAI0:\".framer-z6x66i-override\",qT38onCl8:\".framer-ge2rft-override\"};const rules=[\".framer-1SAjB.framer-a2ovve, .framer-1SAjB .framer-a2ovve { display: block; }\",\".framer-1SAjB.framer-56lvgo { align-content: center; align-items: center; background-color: var(--token-303ecbb5-69bc-4712-9ee8-f347a6e5b661); display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: flex-start; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 100%; }\",\".framer-1SAjB .framer-17bv004 { align-content: flex-start; align-items: flex-start; bottom: 0px; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; justify-content: center; left: 0px; order: -1000; padding: 0px 24px 0px 24px; pointer-events: none; position: absolute; right: 0px; top: 0px; z-index: 0; }\",\".framer-1SAjB .framer-1lglj5k { --border-bottom-width: 0px; --border-color: var(--token-87807844-4666-43b2-bacc-bfd106b3dd17); --border-left-width: 0px; --border-right-width: 1px; --border-style: solid; --border-top-width: 0px; align-content: flex-start; align-items: flex-start; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 100%; justify-content: flex-start; max-width: 1210px; padding: 0px; position: relative; width: 100%; }\",\".framer-1SAjB .framer-nmwmue, .framer-1SAjB .framer-8kgp08, .framer-1SAjB .framer-12nsdzy, .framer-1SAjB .framer-1m1e76t, .framer-1SAjB .framer-97u8v4, .framer-1SAjB .framer-1pttvdd { --border-bottom-width: 0px; --border-color: var(--token-87807844-4666-43b2-bacc-bfd106b3dd17); --border-left-width: 1px; --border-right-width: 0px; --border-style: solid; --border-top-width: 0px; flex: 1 0 0px; height: 100%; position: relative; width: 1px; }\",\".framer-1SAjB .framer-xbd8s0 { align-content: flex-start; align-items: flex-start; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; left: 0px; order: -999; padding: 0px; pointer-events: none; position: var(--framer-canvas-fixed-position, fixed); right: 0px; top: 40px; z-index: 10; }\",\".framer-1SAjB .framer-kw1wng-container { flex: none; height: auto; max-width: 1210px; pointer-events: auto; position: relative; width: 84%; z-index: 10; }\",\".framer-1SAjB .framer-zm09lr { background: transparent; flex-grow: 1; height: 0px; margin: 0px; margin-bottom: -0px; position: relative; width: 0px; }\",\".framer-1SAjB .framer-lconkq-container { flex: none; height: auto; order: 1003; position: relative; width: 100%; }\",\".framer-1SAjB .framer-ntr6pl-container { flex: none; height: auto; order: 1004; position: relative; width: auto; }\",'[data-layout-template=\"true\"] > #overlay { margin-bottom: -0px; }','.framer-1SAjB[data-border=\"true\"]::after, .framer-1SAjB [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];const mediaQueries={I7iwXnAI0:\"(min-width: 810px) and (max-width: 1439.98px)\",m8rtkT0l5:\"(min-width: 1440px)\",qT38onCl8:\"(max-width: 809.98px)\"};const humanReadableVariantMap={Desktop:\"m8rtkT0l5\",Phone:\"qT38onCl8\",Tablet:\"I7iwXnAI0\"};const HTMLStyle=({value})=>{const onCanvas=useIsOnFramerCanvas();if(onCanvas)return null;return /*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:value},\"data-framer-html-style\":\"\"});};const getProps=({height,id,showEmButton,showFooter,showGrid,width,...props})=>{return{...props,DoV8wk8jD:showFooter??props.DoV8wk8jD??true,uiD27GSdc:showEmButton??props.uiD27GSdc??true,variant:humanReadableVariantMap[props.variant]??props.variant??\"m8rtkT0l5\",wvtQyqTi_:showGrid??props.wvtQyqTi_??true};};const cursor={component:TheCursor,variant:\"SJFkUQZtd\"};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,wvtQyqTi_,DoV8wk8jD,uiD27GSdc,children,...restProps}=getProps(props);const[baseVariant,hydratedBaseVariant]=useHydratedBreakpointVariants(variant,breakpoints,false);const gestureVariant=undefined;const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(!isBrowser())return true;if(baseVariant===\"qT38onCl8\")return false;return true;};const isDisplayed1=()=>{if(!isBrowser())return true;if([\"I7iwXnAI0\",\"qT38onCl8\"].includes(baseVariant))return false;return true;};useCustomCursors({\"1srvik5\":cursor});return /*#__PURE__*/_jsx(GeneratedComponentContext.Provider,{value:{activeVariantId:baseVariant,humanReadableVariantMap,isLayoutTemplate:true,primaryVariantId:\"m8rtkT0l5\",variantClassNames},children:/*#__PURE__*/_jsxs(LayoutGroup,{id:layoutId??defaultLayoutId,children:[/*#__PURE__*/_jsx(HTMLStyle,{value:\":root body { background: var(--token-303ecbb5-69bc-4712-9ee8-f347a6e5b661); }\"}),/*#__PURE__*/_jsxs(motion.div,{...restProps,className:cx(scopingClassNames,\"framer-56lvgo\",className),\"data-framer-cursor\":\"1srvik5\",\"data-layout-template\":true,ref:refBinding,style:{...style},children:[wvtQyqTi_!==false&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-17bv004\",\"data-framer-name\":\"Grid Lines\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"framer-1lglj5k\",\"data-border\":true,\"data-framer-name\":\"Columns\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"framer-nmwmue\",\"data-border\":true,\"data-framer-name\":\"Column 1\"}),/*#__PURE__*/_jsx(\"div\",{className:\"framer-8kgp08\",\"data-border\":true,\"data-framer-name\":\"Column 2\"}),isDisplayed()&&/*#__PURE__*/_jsx(\"div\",{className:\"framer-12nsdzy hidden-ge2rft\",\"data-border\":true,\"data-framer-name\":\"Column 3\"}),isDisplayed()&&/*#__PURE__*/_jsx(\"div\",{className:\"framer-1m1e76t hidden-ge2rft\",\"data-border\":true,\"data-framer-name\":\"Column 4\"}),isDisplayed1()&&/*#__PURE__*/_jsx(\"div\",{className:\"framer-97u8v4 hidden-z6x66i hidden-ge2rft\",\"data-border\":true,\"data-framer-name\":\"Column 5\"}),isDisplayed1()&&/*#__PURE__*/_jsx(\"div\",{className:\"framer-1pttvdd hidden-z6x66i hidden-ge2rft\",\"data-border\":true,\"data-framer-name\":\"Column 6\"})]})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-xbd8s0\",\"data-framer-name\":\"Nav Shell\",children:/*#__PURE__*/_jsx(PropertyOverrides,{breakpoint:baseVariant,overrides:{I7iwXnAI0:{width:\"min(84vw, 980px)\"},qT38onCl8:{width:\"min(92vw, 1210px)\",y:32}},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:60,width:\"min(84vw, 1210px)\",y:40,children:/*#__PURE__*/_jsx(Container,{className:\"framer-kw1wng-container\",nodeId:\"bku6rycUB\",scopeId:\"LCSqrNW0D\",children:/*#__PURE__*/_jsx(PropertyOverrides,{breakpoint:baseVariant,overrides:{I7iwXnAI0:{variant:matchVariant(\"Z0iiBWfvp\")},qT38onCl8:{variant:matchVariant(\"TwPvAYltG\")}},children:/*#__PURE__*/_jsx(NavigationBar,{height:\"100%\",id:\"bku6rycUB\",layoutId:\"bku6rycUB\",style:{maxWidth:\"100%\",width:\"100%\"},variant:matchVariant(\"RJp808YVP\"),width:\"100%\"})})})})})}),children,/*#__PURE__*/_jsx(\"div\",{className:\"framer-zm09lr\"}),DoV8wk8jD!==false&&/*#__PURE__*/_jsx(ComponentViewportProvider,{height:130,width:\"100vw\",y:1e3,children:/*#__PURE__*/_jsx(ContainerWithFX,{__framer__animate:{transition:transition1},__framer__animateOnce:true,__framer__enter:animation,__framer__exit:animation1,__framer__styleAppearEffectEnabled:true,__framer__threshold:.18,__perspectiveFX:false,__targetOpacity:1,className:\"framer-lconkq-container\",nodeId:\"GpPqp8zZh\",rendersWithMotion:true,scopeId:\"LCSqrNW0D\",children:/*#__PURE__*/_jsx(PropertyOverrides,{breakpoint:baseVariant,overrides:{I7iwXnAI0:{variant:matchVariant(\"bx5OdrLEl\")},qT38onCl8:{variant:matchVariant(\"on9Ch5PoD\")}},children:/*#__PURE__*/_jsx(Footer,{height:\"100%\",id:\"GpPqp8zZh\",layoutId:\"GpPqp8zZh\",style:{width:\"100%\"},variant:matchVariant(\"nVeNRf7M_\"),width:\"100%\"})})})}),uiD27GSdc!==false&&/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(Container,{className:\"framer-ntr6pl-container\",isAuthoredByUser:true,nodeId:\"K5TkdhEWE\",scopeId:\"LCSqrNW0D\",children:/*#__PURE__*/_jsx(PortfolioChatbot,{botName:\"Em\",bottomOffset:24,buttonSize:52,greeting:\"Hey, I'm Em.\",height:\"100%\",id:\"K5TkdhEWE\",layoutId:\"K5TkdhEWE\",rightOffset:24,subtitle:\"Manas's AI sidekick. I know his work, his story and how he thinks about design — ask me anything.\",width:\"100%\"})})})]}),/*#__PURE__*/_jsx(\"div\",{id:\"template-overlay\"})]})});});const css=target=>{const isStaticRenderer=target===RenderTarget.canvas||target===RenderTarget.export;if(!isStaticRenderer){return[...rules,...breakpointKeys.map(key=>{const query=mediaQueries[key];return`@media ${query} { ${breakpointRules[key].join(\" \")} }`;})];}return[...rules,...breakpointKeys.flatMap(key=>{const selector=selectors[key];return breakpointRules[key].map(rule=>`${selector} {${rule}}`);})];};/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 1000\n * @framerIntrinsicWidth 1440\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"I7iwXnAI0\":{\"layout\":[\"fixed\",\"fixed\"]},\"qT38onCl8\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"wvtQyqTi_\":\"showGrid\",\"DoV8wk8jD\":\"showFooter\",\"uiD27GSdc\":\"showEmButton\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n * @framerHitTargets {\"m8rtkT0l5\":[\".framer-17bv004\",\".framer-xbd8s0\",\".framer-lconkq-container\",\".framer-ntr6pl-container\"],\"I7iwXnAI0\":[\".framer-17bv004\",\".framer-xbd8s0\",\".framer-lconkq-container\",\".framer-ntr6pl-container\"],\"qT38onCl8\":[\".framer-17bv004\",\".framer-xbd8s0\",\".framer-lconkq-container\",\".framer-ntr6pl-container\"]}\n * @framerBreakpoints {\"m8rtkT0l5\":{\"min\":1440,\"canvasClassName\":\"framer-56lvgo-override\",\"minHeight\":1000,\"viewportHeight\":800,\"name\":\"Desktop\",\"width\":1440,\"rootFontSize\":16},\"I7iwXnAI0\":{\"min\":810,\"max\":1439,\"canvasClassName\":\"framer-z6x66i-override\",\"minHeight\":1000,\"viewportHeight\":800,\"name\":\"Tablet\",\"width\":810,\"rootFontSize\":16},\"qT38onCl8\":{\"max\":809,\"canvasClassName\":\"framer-ge2rft-override\",\"minHeight\":1000,\"viewportHeight\":800,\"name\":\"Phone\",\"width\":390,\"rootFontSize\":16}}\n * @framerDefaultVariant m8rtkT0l5\n * @framerLayoutTemplate true\n */const FramerLCSqrNW0D=withCSS(Component,css,\"framer-1SAjB\");export default FramerLCSqrNW0D;FramerLCSqrNW0D.displayName=\"Main\";FramerLCSqrNW0D.defaultProps={height:1e3,width:1440};addPropertyControls(FramerLCSqrNW0D,{wvtQyqTi_:{defaultValue:true,title:\"Show Grid\",type:ControlType.Boolean},DoV8wk8jD:{defaultValue:true,title:\"Show Footer\",type:ControlType.Boolean},uiD27GSdc:{defaultValue:true,title:\"Show Em Button\",type:ControlType.Boolean}});addFonts(FramerLCSqrNW0D,[{explicitInter:true,fonts:[]},...NavigationBarFonts,...FooterFonts,...PortfolioChatbotFonts,...TheCursorFonts],{supportsExplicitInterCodegen:true});FramerLCSqrNW0D.loader={load:(props,context)=>{return runTasksWithYield([()=>forwardLoader(NavigationBar,{},context),()=>forwardLoader(Footer,{},context)],context);}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerLCSqrNW0D\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerLayoutTemplate\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1440\",\"framerBreakpoints\":\"{\\\"m8rtkT0l5\\\":{\\\"min\\\":1440,\\\"canvasClassName\\\":\\\"framer-56lvgo-override\\\",\\\"minHeight\\\":1000,\\\"viewportHeight\\\":800,\\\"name\\\":\\\"Desktop\\\",\\\"width\\\":1440,\\\"rootFontSize\\\":16},\\\"I7iwXnAI0\\\":{\\\"min\\\":810,\\\"max\\\":1439,\\\"canvasClassName\\\":\\\"framer-z6x66i-override\\\",\\\"minHeight\\\":1000,\\\"viewportHeight\\\":800,\\\"name\\\":\\\"Tablet\\\",\\\"width\\\":810,\\\"rootFontSize\\\":16},\\\"qT38onCl8\\\":{\\\"max\\\":809,\\\"canvasClassName\\\":\\\"framer-ge2rft-override\\\",\\\"minHeight\\\":1000,\\\"viewportHeight\\\":800,\\\"name\\\":\\\"Phone\\\",\\\"width\\\":390,\\\"rootFontSize\\\":16}}\",\"framerImmutableVariables\":\"true\",\"framerDefaultVariant\":\"m8rtkT0l5\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"I7iwXnAI0\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"qT38onCl8\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"1000\",\"framerHitTargets\":\"{\\\"m8rtkT0l5\\\":[\\\".framer-17bv004\\\",\\\".framer-xbd8s0\\\",\\\".framer-lconkq-container\\\",\\\".framer-ntr6pl-container\\\"],\\\"I7iwXnAI0\\\":[\\\".framer-17bv004\\\",\\\".framer-xbd8s0\\\",\\\".framer-lconkq-container\\\",\\\".framer-ntr6pl-container\\\"],\\\"qT38onCl8\\\":[\\\".framer-17bv004\\\",\\\".framer-xbd8s0\\\",\\\".framer-lconkq-container\\\",\\\".framer-ntr6pl-container\\\"]}\",\"framerColorSyntax\":\"true\",\"framerVariables\":\"{\\\"wvtQyqTi_\\\":\\\"showGrid\\\",\\\"DoV8wk8jD\\\":\\\"showFooter\\\",\\\"uiD27GSdc\\\":\\\"showEmButton\\\"}\",\"framerDisplayContentsDiv\":\"false\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","\r\n\t\timport * as Framer from \"framer\";\r\nimport * as React from \"react\";\r\nimport { createPortal } from \"react-dom\";\r\nimport * as ReactDOM from \"react-dom/client\";\r\nimport Main from \"https://framerusercontent.com/modules/lEEqpnkktUGrYzqK21hq/4TteVHoVaGYGDGOJqLgo/LCSqrNW0D.js\";\r\n\r\n\t\tconst routes = {mlH_ZLdeA: {elements: {azLI9Slay: \"about\", cGybSR00z: \"contact\", cNxzrl3wj: \"writing\", hZX9D4dUo: \"building-with-ai\", jC1uunhb_: \"journey\", SpMM2ubAs: \"featured\", SqUMtup3m: \"faq\"}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/HLweRNVfeYuJSzpvw35u/LRBbDz44Mo9AK3hZWtHD/mlH_ZLdeA.js\")), path: \"/\"}, rA1rwTSCG: {elements: {mI5S8KFEv: \"featured-in\", pJNoETItZ: \"journey-with-ai\"}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/1tRT01ZVXwjXBJDX3BGq/kjwqK40V0gqOV9g13Pfr/rA1rwTSCG.js\")), path: \"/portfolio\"}, F0EhEosyn: {elements: {LzSg6PRv1: \"social-proof\"}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/P9gbfKTj9PbFx32jBmb1/sWPHEk9q1nbbRTT10Eom/F0EhEosyn.js\")), path: \"/portfolio/cf-app\"}, n0ly3erRb: {elements: {cdi5_Szf7: \"social-proof-2\", FBsy0xsMQ: \"social-proof-4\", fspGDxG4v: \"social-proof\", GxTmpFBfZ: \"social-proof-3\", vkkCp4Yca: \"social-proof-1\"}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/NXKDKLKCeryTWGLRGvOb/nhRUM7rEroBPz6JNHR1p/n0ly3erRb.js\")), path: \"/portfolio/riskshield\"}, f747xG8dY: {elements: {}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/wwkZ8AT8BhEov2EgWtI2/FFhFsDxrSEEpI5uXov1A/f747xG8dY.js\")), path: \"/blog\"}, UiXdHOBId: {elements: {}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/h01RbFVqoPHzrgMW1Bii/Zq2JUHpYu5hSgUgnwZWM/UiXdHOBId.js\")), path: \"/em-ai\"}, jooxsTBP_: {collectionId: \"X_SULsUBT\", elements: {}, page: Framer.lazy(() => import(\"https://framerusercontent.com/modules/7WscPGvjRmT5I6ZXYCev/wtMwlMaxJ3IyoVrrVVeF/jooxsTBP_.js\")), path: \"/blog/:R9a_pQYjb\"}}\r\n\r\n\t\tconst locales = [{code: \"en\", id: \"default\", name: \"English\", slug: \"\", textDirection: \"ltr\"}]\r\n\t\tconst collectionUtils = {X_SULsUBT: async () => (await import(\"https://framerusercontent.com/modules/97PpgFLkpZZfp5N6B8jb/eOcEwLv0xMRQftMIKcke/X_SULsUBT.js\"))?.[\"utils\"]}\r\n\t\tconst serverDatabaseClient = undefined\r\n\t\tconst framerSiteId = \"cddc1ed80b635f9350a77f4b76f142f0adb98bf510e3ceab4672b20d370e591b\"\r\n\t\tfunction Template({webPageId, children, style, ...rest}) {const props1 = {DoV8wk8jD: true, uiD27GSdc: true, wvtQyqTi_: true}\r\nconst props2 = {...props1, wvtQyqTi_: false}\r\nconst props3 = {...props1, DoV8wk8jD: false, uiD27GSdc: false}\r\nconst templateProps = {F0EhEosyn: props2, f747xG8dY: props1, jooxsTBP_: props1, mlH_ZLdeA: props1, n0ly3erRb: props2, PBB3hHy_S: props2, rA1rwTSCG: props1, UiXdHOBId: props3}\r\nconst props = templateProps[webPageId] ?? {}\r\nswitch (webPageId) {case \"mlH_ZLdeA\":\r\ncase \"PBB3hHy_S\":\r\ncase \"rA1rwTSCG\":\r\ncase \"F0EhEosyn\":\r\ncase \"n0ly3erRb\":\r\ncase \"f747xG8dY\":\r\ncase \"UiXdHOBId\":\r\ncase \"jooxsTBP_\":\r\nreturn React.createElement(Main, {...props, key: \"Main\", style}, children(true));\r\ndefault: { return children(false) }}}\r\nexport function getLayoutTemplateBreakpoints(routeId) {switch (routeId) {case \"mlH_ZLdeA\":\r\ncase \"PBB3hHy_S\":\r\ncase \"rA1rwTSCG\":\r\ncase \"F0EhEosyn\":\r\ncase \"n0ly3erRb\":\r\ncase \"f747xG8dY\":\r\ncase \"UiXdHOBId\":\r\ncase \"jooxsTBP_\":\r\nreturn [{hash: \"56lvgo\", mediaQuery: \"(min-width: 1440px)\"}, {hash: \"z6x66i\", mediaQuery: \"(min-width: 810px) and (max-width: 1439.98px)\"}, {hash: \"ge2rft\", mediaQuery: \"(max-width: 809.98px)\"}]\r\ndefault: { return undefined }}}\r\n\r\n\t\tconst isBrowser = typeof document !== \"undefined\"\r\n\t\tconst isBot = isBrowser && /bot|-google|google-|yandex|ia_archiver|crawl|spider/iu.test(navigator.userAgent)\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\texport async function getPageRoot({\r\n\t\t\trouteId,\r\n\t\t\tpathVariables,\r\n\t\t\tcanonicalPathVariables,\r\n\t\t\tlocaleId,\r\n\t\t\tcollectionItemId,\r\n\t\t\tcontentLocaleId,\r\n\t\t\tshouldResolveInitialRouteContentState = false,\r\n\t\t}) {\r\n\t\t\tconst rootPreload = routes[routeId].page.preload()\r\n\r\n\t\t\t\r\n\r\n\t\t\tFramer.setLibraryFeatures({checkServerSideRouter: true, disableCustomCode: false, disableHoverOnMobile: false, editorBarDisableFrameAncestorsSecurity: false, motionDivToDiv: false, onPageLocalizationSupport: true, onPageMoveTool: true, onPageRichTextBlockSelection: true, scrollRestoration: true, synchronousNavigationOnDesktop: false, yieldOnTap: false})\r\n\t\t\tFramer.setCurrentSiteId(framerSiteId)\r\n\r\n\t\t\tconst content = React.createElement(\r\n\t\t\t\tFramer.PageRoot,\r\n\t\t\t\t{\r\n\t\t\t\t\tisWebsite: true,\r\n\t\t\t\t\tenvironment: \"site\",\r\n\t\t\t\t\trouteId,\r\n\t\t\t\t\tpathVariables,\r\n\t\t\t\t\tcanonicalPathVariables,\r\n\t\t\t\t\troutes,\r\n\t\t\t\t\tcollectionUtils,\r\n\t\t\t\t\tserverDatabaseClient,\r\n\t\t\t\t\tframerSiteId,\r\n\t\t\t\t\tnotFoundPage: Framer.lazy(() => import(\"__framer-not-found-page\")),\r\n\t\t\t\t\tisReducedMotion: false,\r\n\t\t\t\t\tlocaleId,\r\n\t\t\t\t\tlocales,\r\n\t\t\t\t\tpreserveQueryParams: undefined,\r\n\t\t\t\t\tsiteCanonicalURL: \"https://www.manasmano.com\",\r\n\t\t\t\t\tEditorBar: \r\n\t\t\ttypeof window !== \"undefined\" ? (() => {\r\n\t\t\t\tif (isBot) {\r\n\t\t\t\t\tconsole.log(\"[Framer On-Page Editing] Unavailable because navigator is bot\")\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn Framer.lazy(async () => {\r\n\t\t\t\t\tconst dependencies = {\r\n\t\t\t\t\t\t__version: 3,\r\n\t\t\t\t\t\tframer: {\r\n\t\t\t\t\t\t\tuseCurrentRoute: Framer.useCurrentRoute,\r\n\t\t\t\t\t\t\tuseLocaleInfo: Framer.useLocaleInfo,\r\n\t\t\t\t\t\t\tuseRouter: Framer.useRouter,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\treact: {\r\n\t\t\t\t\t\t\tcreateElement: React.createElement,\r\n\t\t\t\t\t\t\tFragment: React.Fragment,\r\n\t\t\t\t\t\t\tmemo: React.memo,\r\n\t\t\t\t\t\t\tuseCallback: React.useCallback,\r\n\t\t\t\t\t\t\tuseEffect: React.useEffect,\r\n\t\t\t\t\t\t\tuseRef: React.useRef,\r\n\t\t\t\t\t\t\tuseState: React.useState,\r\n\t\t\t\t\t\t\tuseLayoutEffect: React.useLayoutEffect,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\"react-dom\": { createPortal },\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twindow.__framer_editorBarDependencies = dependencies\r\n\r\n\t\t\t\t\tconst { createEditorBar } = await import(\"https://framer.com/edit/init.mjs\")\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tdefault: createEditorBar(),\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t})() : undefined\r\n\t\t,\r\n\t\t\t\t\tadaptLayoutToTextDirection: false,\r\n\t\t\t\t\tLayoutTemplate: Template,\r\n\t\t\t\t\tloadSnippetsModule: new Framer.LazyValue(() => import(\"https://framerusercontent.com/modules/96dx9B9BpRK7zwtuOVLK/cAWb5oc2cJi5e3cnCrTw/snippets.js\")),\r\n\t\t\t\t\tinitialCollectionItemId: collectionItemId,\r\n\t\t\t\t\tinitialContentLocaleIdOverride: contentLocaleId,\r\n\t\t\t\t}\r\n\t\t\t)\r\n\r\n\t\t\tconst contentWithGracefullyDegradingErrorBoundary = React.createElement(Framer.GracefullyDegradingErrorBoundary, {\r\n\t\t\t\tchildren: content\r\n\t\t\t})\r\n\r\n\t\t\t\r\n\t\t\tconst page = React.createElement(Framer.PageEffectsProvider, {\r\n\t\t\t\tchildren: contentWithGracefullyDegradingErrorBoundary,\r\n\t\t\t\tvalue: {routes: {}}\r\n\t\t\t})\r\n\r\n\t\t\t// We don't want the initial render to immediately have to suspend.\r\n\t\t\tawait rootPreload\r\n\t\t\treturn page\r\n\t\t}\r\n\t\r\n\r\n\t\tif (isBrowser) {\r\n\t\t\t// Note: HTTPArchive also uses this function to detect Framer sites; see https://github.com/HTTPArchive/wappalyzer/blob/371a17583f74fd9171b9077f59a5619b24062891/src/technologies/f.json#L1722-L1748.\r\n\t\t\twindow.__framer_importFromPackage = (packageAndFilename, exportIdentifier) => () => {\r\n\t\t\t\treturn React.createElement(Framer.ErrorPlaceholder, { error: 'Package component not supported: \"' + exportIdentifier + '\" in \"' + packageAndFilename + '\"' })\r\n\t\t\t}\r\n\r\n\t\t\twindow.__framer_events = window.__framer_events || []\r\n\r\n\t\t\t// Initialize lazy modules cache for hydration\r\n\t\t\tFramer.initLazyModulesCache()\r\n\r\n\t\t\tconst container = document.getElementById(\"main\")\r\n\t\t\t// We know that #main is parsed before this script, so we don't need to wait for DOMContentLoaded or similar events.\r\n\t\t\tif (\"framerHydrateV2\" in container.dataset) main(true, container)\r\n\t\t\telse main(false, container)\r\n\t\t}\r\n\r\n\t\tfunction track() {\r\n\t\t\tif (!isBrowser) return\r\n\t\t\twindow.__framer_events.push(arguments)\r\n\t\t}\r\n\r\n\t\tasync function main(shouldHydrate, container) {\r\n\t\t\tfunction handleError(error, errorInfo, recoverable = true) {\r\n\t\t\t\tif (error.caught || window.__framer_hadFatalError) return // we already logged it\r\n\r\n\t\t\t\tconst componentStack = errorInfo?.componentStack\r\n\t\t\t\tif (recoverable) {\r\n\t\t\t\t\tconsole.warn(\"Caught a recoverable error. The site is still functional, but might have some UI flickering or degraded page load performance. If you are the author of this website, update external components and check recently added custom code or code overrides to fix the following server/client mismatches:\\n\", error, componentStack)\r\n\t\t\t\t\t// we only want to collect 1%, because this can be quite noisy (floods the data pipeline)\r\n\t\t\t\t\tif (Math.random() > 0.01) return\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconsole.error(\"Caught a fatal error. Please report the following to the Framer team via https://www.framer.com/contact/:\\n\", error, componentStack)\r\n\t\t\t\t}\r\n\t\t\t\ttrack(recoverable ? \"published_site_load_recoverable_error\" : \"published_site_load_error\", {\r\n\t\t\t\t\tmessage: String(error),\r\n\t\t\t\t\tcomponentStack, // componentStack is more useful\r\n\t\t\t\t\tstack: componentStack ? undefined : error instanceof Error && typeof error.stack === \"string\" ? error.stack : null,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tlet routeId, localeId, contentLocaleId, pathVariables, canonicalPathVariables, breakpoints, routeData\r\n\t\t\t\tif (shouldHydrate) {\r\n\t\t\t\t\trouteData = JSON.parse(container.dataset[\"framerHydrateV2\"])\r\n\t\t\t\t\trouteId = routeData.routeId\r\n\t\t\t\t\tlocaleId = routeData.localeId\r\n\t\t\t\t\tcontentLocaleId = routeData.contentLocaleId\r\n\t\t\t\t\tpathVariables = routeData.pathVariables\r\n\t\t\t\t\tcanonicalPathVariables = routeData.canonicalPathVariables\r\n\t\t\t\t\tbreakpoints = routeData.breakpoints\r\n\r\n\t\t\t\t\trouteId = Framer.patchRoutesForABTesting(routes, routeId) // Prioritize optimized route id to avoid flickering in browsers not supporting the server-timing header (Safari older than 16.4)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tFramer.patchRoutesForABTesting(routes, undefined) // This must happen before inferInitialRouteFromPath\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tconst serverRoute = performance.getEntriesByType(\"navigation\")[0]?.serverTiming?.find(e => e.name === \"route\")?.description\r\n\t\t\t\t\tif (serverRoute) {\r\n\t\t\t\t\t\tconst routeData = new URLSearchParams(serverRoute)\r\n\t\t\t\t\t\trouteId = routeData.get(\"id\")\r\n\t\t\t\t\t\tlocaleId = routeData.get(\"locale\")\r\n\t\t\t\t\t\tfor (const [key, value] of routeData.entries()) {\r\n\t\t\t\t\t\t\tif (!key.startsWith(\"var.\")) continue\r\n\t\t\t\t\t\t\tpathVariables ??= {}\r\n\t\t\t\t\t\t\tpathVariables[key.slice(4)] = value\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!routeId || !localeId) {\r\n\t\t\t\t\t\tconst routeData = Framer.inferInitialRouteFromPath(routes, decodeURIComponent(location.pathname), true, locales)\r\n\t\t\t\t\t\trouteId = routeData.routeId\r\n\t\t\t\t\t\tlocaleId = routeData.localeId\r\n\t\t\t\t\t\tpathVariables = routeData.pathVariables\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst pagePromise = getPageRoot({\r\n\t\t\t\t\trouteId,\r\n\t\t\t\t\tlocaleId,\r\n\t\t\t\t\tcontentLocaleId,\r\n\t\t\t\t\tpathVariables,\r\n\t\t\t\t\tcanonicalPathVariables,\r\n\t\t\t\t\tcollectionItemId: shouldHydrate ? routeData?.collectionItemId : undefined,\r\n\t\t\t\t\tshouldResolveInitialRouteContentState: !shouldHydrate,\r\n\t\t\t\t})\r\n\r\n\t\t\t\t\r\nif (typeof window !== \"undefined\") {\r\n\tvoid (async () => {\r\n\t\tconst route = routes[routeId]\r\n\r\n\t\tconst defaultLocaleId = \"default\"\r\n\t\tconst framerLocale = locales.find(({ id }) => !localeId ? id === defaultLocaleId : id === localeId).code\r\n\r\n\t\t\r\n\t\tlet collectionItemId = routeData?.collectionItemId ?? null\r\n\t\tif (collectionItemId === null && route?.collectionId && collectionUtils) {\r\n\t\t\tconst utils = await collectionUtils[route.collectionId]?.()\r\n\t\t\tconst [slug] = Object.values(pathVariables)\r\n\t\t\tif (utils && typeof slug === \"string\") {\r\n\t\t\t\tcollectionItemId = (await utils.getRecordIdBySlug(slug, framerLocale || undefined)) ?? null\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\r\n\t\tconst resolvedDateTimeOptions = Intl.DateTimeFormat().resolvedOptions()\r\n\t\tconst timezone = resolvedDateTimeOptions.timeZone\r\n\t\tconst locale = resolvedDateTimeOptions.locale\r\n\r\n\t\t// wait for the page to be activated before sending the pageview event\r\n\t\t// https://developer.chrome.com/docs/web-platform/prerender-pages#impact-on-analytics\r\n\t\tawait new Promise((resolve) => {\r\n\t\t\tif (document.prerendering) {\r\n\t\t\t\tdocument.addEventListener(\"prerenderingchange\", resolve, { once: true })\r\n\t\t\t} else {\r\n\t\t\t\tresolve()\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\twindow.__framer_events.push([\r\n\t\t\t\"published_site_pageview\",\r\n\t\t\t{\r\n\t\t\t\tframerSiteId,\r\n\t\t\t\tversion: 2,\r\n\t\t\t\troutePath: route?.path || \"/\",\r\n\t\t\t\tcollectionItemId,\r\n\t\t\t\tframerLocale: framerLocale || null,\r\n\t\t\t\twebPageId: route?.abTestingVariantId ?? routeId,\r\n\t\t\t\tabTestId: route?.abTestId,\r\n\t\t\t\treferrer: document.referrer || null,\r\n\t\t\t\turl: window.location.href,\r\n\t\t\t\thostname: window.location.hostname || null,\r\n\t\t\t\tpathname: window.location.pathname || null,\r\n\t\t\t\thash: window.location.hash || null,\r\n\t\t\t\tsearch: window.location.search || null,\r\n\t\t\t\ttimezone,\r\n\t\t\t\tlocale,\r\n\t\t\t},\r\n\t\t\t\"eager\"\r\n\t\t])\r\n\r\n\t\t// Yield to avoid blocking the main thread with the user code\r\n\t\tawait Framer.yieldToMain({ priority: \"background\", ensureContinueBeforeUnload: true, continueAfter: \"paint\" })\r\n\r\n\t\tdocument.dispatchEvent(new CustomEvent(\"framer:pageview\", {\r\n\t\t\tdetail: { framerLocale: framerLocale || null }\r\n\t\t}))\r\n\t})()\r\n}\r\n\r\n\r\n\t\t\t\tconst page = await pagePromise\r\n\t\t\t\tif (shouldHydrate) {\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tFramer.withPerformanceMarks(\"framer-rewrite-breakpoints\", () => {\r\n\t\t\t\t\t\tFramer.removeHiddenBreakpointLayersV2(breakpoints)\r\n\t\t\t\t\t\twindow.__framer_onRewriteBreakpoints?.(breakpoints)\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tconst startTransition = isBot ? cb => cb() : React.startTransition\r\n\t\t\t\t\tstartTransition(() => {\r\n\t\t\t\t\t\tFramer.markHydrationStart()\r\n\t\t\t\t\t\tFramer.turnOffReactEventHandling()\r\n\t\t\t\t\t\tReactDOM.hydrateRoot(container, page, { onRecoverableError: handleError })\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tReactDOM.createRoot(container, { onRecoverableError: handleError }).render(page)\r\n\t\t\t\t}\r\n\t\t\t} catch (error) {\r\n\t\t\t\thandleError(error, undefined, false)\r\n\t\t\t\tthrow error\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\r\n\t\t\r\n\t"],"mappings":"4xBAqEG,SAAS,GAAW,EAAG,CAAC,GAAG,CAAC,EAAG,MAAO,GAAM,IAAM,EAAO,EAAG,gBAAgB,GAAG,OAAO,GAAS,WAAW,OAAO,EAAO,KAAK,CAAE,EAAE,IAAM,EAAK,EAAG,sBAAsB,EAAE,OAAO,EAAK,MAAM,GAAG,EAAK,OAAO,CAAE,CAM1M,SAAwB,GAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,KAAK,WAAS,eAAe,WAAS,oGAAoG,eAAa,GAAG,cAAY,GAAG,aAAW,IAAI,GAAO,CAAC,EAC5P,CAAC,EAAO,GAAWA,EAAe,EAAK,EACvC,CAAC,EAAS,GAAaA,EAAe,CAAC,CAAC,EACxC,CAAC,EAAU,GAAcA,EAAe,EAAE,EAC1C,CAAC,EAAW,GAAeA,EAAe,EAAK,EAC/C,CAAC,EAAY,GAAgBA,EAAe,EAAK,EACjD,CAAC,EAAO,GAAWA,EAAe,IAAI,EACtC,CAAC,GAAM,GAAUA,EAAe,IAAI,EACpC,CAAC,GAAQ,IAAYA,EAAe,EAAE,EACtC,CAAC,GAAS,IAAaA,EAAe,IAAI,EAC1C,CAAC,EAAS,GAAaA,EAAe,EAAK,EAC3C,CAAC,GAAS,GAAaA,EAAe,EAAK,EAAQ,EAAUC,EAAa,IAAI,EAAQ,EAAYA,EAAa,IAAI,EAAQ,EAASA,EAAa,IAAI,EAAQ,GAAe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