PageSourceSearch

https://studio.terra.do/_next/static/chunks/0hr__bm_ywmyu.js?dpl=dpl_CGqEysYSbuffFzejsUHdaxY8Qp6t

js terra.do collected 2026-09-24 08:54:18 UTC 32,619 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32872,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s="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)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92380,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(81258),o=e.r(44066),i=e.r(61656),l=s._(e.r(21952)),d=o._(e.r(11219)),c=e.r(67893),u=e.r(38564),f=e.r(32872),p=new Map,m=new Set,x=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:s,children:o="",strategy:i="afterInteractive",onError:d,stylesheets:c}=e,f=r||t;if(f&&m.has(f))return;if(p.has(t)){m.add(f),p.get(t).then(n,d);return}let x=()=>{a&&a(),m.add(f)},h=document.createElement("script"),g=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),n&&n.call(this,t),x()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){d&&d(e)});s?(h.innerHTML=s.__html||"",x()):o?(h.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",x()):t&&(h.src=t,p.set(t,g)),(0,u.setAttributesFromProps)(h,e),"worker"===i&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",i),c&&(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 r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(h)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>x(e))}):x(e)}function g(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:s="afterInteractive",onError:o,stylesheets:u,...p}=e,{updateScripts:h,scripts:g,getIsSsr:b,appDir:v,nonce:y}=(0,d.useContext)(c.HeadManagerContext);y=p.nonce||y;let j=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=t||r;j.current||(a&&e&&m.has(e)&&a(),j.current=!0)},[a,t,r]);let w=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!w.current){if("afterInteractive"===s)x(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>x(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>x(e))}));w.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(h?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:o,...p,nonce:y}]),h(g)):b&&b()?m.add(t||r):b&&!b()&&x({...e,nonce:y})),v){if(u&&u.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...p,id:t}])})`}});else return l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:y,crossOrigin:p.crossOrigin}:{as:"script",nonce:y,crossOrigin:p.crossOrigin}),(0,i.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...p,id:t}])})`}});"afterInteractive"===s&&r&&l.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:y,crossOrigin:p.crossOrigin}:{as:"script",nonce:y,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let v=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54727,e=>{"use strict";var t=e.i(61656),r=e.i(11219),n=e.i(64541),a=e.i(83642),s=e.i(67881),o=e.i(23750);function i(){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 6.29C4.672 4.163 6.656 3.58 9 3.58Z",fill:"#EA4335"})]})}e.s(["default",0,function(){let{modalOpen:e,closeModal:l,authView:d,setAuthView:c,signInWithGoogle:u,signInWithEmail:f,signUpWithEmail:p,error:m,clearError:x,user:h}=(0,a.useAuth)(),[g,b]=(0,r.useState)(""),[v,y]=(0,r.useState)(""),[j,w]=(0,r.useState)(""),[C,N]=(0,r.useState)(""),[k,P]=(0,r.useState)(!1);async function S(e){e.preventDefault(),P(!0),"sign-in"===d?await f(g,v):await p(g,v,j,C),P(!1)}async function _(){P(!0),await u(),P(!1)}return((0,r.useEffect)(()=>{b(""),y(""),w(""),N(""),x()},[d,x]),h)?null:(0,t.jsx)(n.Dialog.Root,{open:e,onOpenChange:e=>{e||l()},children:(0,t.jsxs)(n.Dialog.Portal,{children:[(0,t.jsx)(n.Dialog.Overlay,{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),(0,t.jsxs)(n.Dialog.Content,{className:"fixed left-1/2 top-1/2 z-50 w-full max-w-sm -translate-x-1/2 -translate-y-1/2 border border-border bg-card p-8 shadow-2xl focus:outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",children:[(0,t.jsxs)("div",{className:"mb-6 flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"font-mono text-sm tracking-widest uppercase text-muted-foreground",children:"Terra Studio"}),(0,t.jsx)(n.Dialog.Title,{className:"text-xl font-bold text-foreground",children:"sign-in"===d?"Sign in to continue":"Create your account"}),(0,t.jsx)(n.Dialog.Description,{className:"text-base text-muted-foreground leading-relaxed",children:"sign-in"===d?"Free courses are available to all Terra Studio members.":"Join Terra Studio to access free climate + AI courses."})]}),(0,t.jsxs)("button",{onClick:_,disabled:k,className:"flex w-full items-center justify-center gap-3 rounded-xl border border-border bg-card px-4 py-3 text-base font-medium text-foreground transition-all hover:bg-muted disabled:opacity-50",children:[(0,t.jsx)(i,{}),"Continue with Google"]}),(0,t.jsxs)("div",{className:"my-5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"or"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-border"})]}),(0,t.jsxs)("form",{onSubmit:S,className:"flex flex-col gap-3",children:["sign-up"===d&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(o.Input,{type:"text",placeholder:"First name",value:j,onChange:e=>{w(e.target.value),x()},required:!0}),(0,t.jsx)(o.Input,{type:"text",placeholder:"Last name",value:C,onChange:e=>{N(e.target.value),x()},required:!0})]}),(0,t.jsx)(o.Input,{type:"email",placeholder:"Email",value:g,onChange:e=>{b(e.target.value),x()},required:!0}),(0,t.jsx)(o.Input,{type:"password",placeholder:"Password",value:v,onChange:e=>{y(e.target.value),x()},required:!0,minLength:6}),m&&(0,t.jsx)("p",{className:"text-sm text-destructive leading-relaxed",children:m}),(0,t.jsx)(s.Button,{type:"submit",className:"w-full",disabled:k||!g||!v||"sign-up"===d&&(!j||!C),children:k?"...":"sign-in"===d?"Sign in":"Create account"})]}),(0,t.jsx)("p",{className:"mt-5 text-center text-sm text-muted-foreground",children:"sign-in"===d?(0,t.jsxs)(t.Fragment,{children:["No account?"," ",(0,t.jsx)("button",{onClick:()=>
1c("sign-up"),className:"text-foreground/70 hover:text-foreground underline underline-offset-2 transition-colors",children:"Create one free"})]}):(0,t.jsxs)(t.Fragment,{children:["Already have an account?"," ",(0,t.jsx)("button",{onClick:()=>c("sign-in"),className:"text-foreground/70 hover:text-foreground underline underline-offset-2 transition-colors",children:"Sign in"})]})})]})]})})}])},34107,e=>{"use strict";e.i(93989);var t=e.i(61656),r=e.i(11219),n=e.i(66860),a=e.i(91967),s=e.i(22353),o=e.i(9413),i=e.i(3659),l=e.i(87656),d=e.i(62854),c=e.i(11207),u=e.i(45311),f=e.i(76903),p=e.i(90816),m=e.i(85565),x=e.i(60310),h=e.i(36567),g=e.i(73772),b=e.i(69759),v="Popover",[y,j]=(0,o.createContextScope)(v,[u.createPopperScope]),w=(0,u.createPopperScope)(),[C,N]=y(v),k=e=>{let{__scopePopover:n,children:a,open:s,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,d=w(n),f=r.useRef(null),[p,m]=r.useState(!1),[x,g]=(0,h.useControllableState)({prop:s,defaultProp:o??!1,onChange:i,caller:v});return(0,t.jsx)(u.Root,{...d,children:(0,t.jsx)(C,{scope:n,contentId:(0,c.useId)(),triggerRef:f,open:x,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:p,onCustomAnchorAdd:r.useCallback(()=>m(!0),[]),onCustomAnchorRemove:r.useCallback(()=>m(!1),[]),modal:l,children:a})})};k.displayName=v;var P="PopoverAnchor",S=r.forwardRef((e,n)=>{let{__scopePopover:a,...s}=e,o=N(P,a),i=w(a),{onCustomAnchorAdd:l,onCustomAnchorRemove:d}=o;return r.useEffect(()=>(l(),()=>d()),[l,d]),(0,t.jsx)(u.Anchor,{...i,...s,ref:n})});S.displayName=P;var _="PopoverTrigger",L=r.forwardRef((e,r)=>{let{__scopePopover:n,...o}=e,i=N(_,n),l=w(n),d=(0,s.useComposedRefs)(r,i.triggerRef),c=(0,t.jsx)(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":V(i.open),...o,ref:d,onClick:(0,a.composeEventHandlers)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,t.jsx)(u.Anchor,{asChild:!0,...l,children:c})});L.displayName=_;var A="PopoverPortal",[R,I]=y(A,{forceMount:void 0}),O=e=>{let{__scopePopover:r,forceMount:n,children:a,container:s}=e,o=N(A,r);return(0,t.jsx)(R,{scope:r,forceMount:n,children:(0,t.jsx)(p.Presence,{present:n||o.open,children:(0,t.jsx)(f.Portal,{asChild:!0,container:s,children:a})})})};O.displayName=A;var E="PopoverContent",M=r.forwardRef((e,r)=>{let n=I(E,e.__scopePopover),{forceMount:a=n.forceMount,...s}=e,o=N(E,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:a||o.open,children:o.modal?(0,t.jsx)(D,{...s,ref:r}):(0,t.jsx)(F,{...s,ref:r})})});M.displayName=E;var T=(0,x.createSlot)("PopoverContent.RemoveScroll"),D=r.forwardRef((e,n)=>{let o=N(E,e.__scopePopover),i=r.useRef(null),l=(0,s.useComposedRefs)(n,i),d=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(b.RemoveScroll,{as:T,allowPinchZoom:!0,children:(0,t.jsx)(z,{...e,ref:l,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),d.current||o.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;d.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),F=r.forwardRef((e,n)=>{let a=N(E,e.__scopePopover),s=r.useRef(!1),o=r.useRef(!1);return(0,t.jsx)(z,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(s.current||a.triggerRef.current?.focus(),t.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(s.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let r=t.target;a.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),z=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:x,...h}=e,g=N(E,n),b=w(n);return(0,l.useFocusGuards)(),(0,t.jsx)(d.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:x,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1),children:(0,t.jsx)(u.Content,{"data-state":V(g.open),role:"dialog",id:g.contentId,...b,...h,ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose",H=r.forwardRef((e,r)=>{let{__scopePopover:n,...s}=e,o=N(B,n);return(0,t.jsx)(m.Primitive.button,{type:"button",...s,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})});H.displayName=B;var q=r.forwardRef((e,r)=>{let{__scopePopover:n,...a}=e,s=w(n);return(0,t.jsx)(u.Arrow,{...s,...a,ref:r})});function V(e){return e?"open":"closed"}q.displayName="PopoverArrow",e.s(["Anchor",0,S,"Arrow",0,q,"Close",0,H,"Content",0,M,"Popover",0,k,"PopoverAnchor",0,S,"PopoverArrow",0,q,"PopoverClose",0,H,"PopoverContent",0,M,"PopoverPortal",0,O,"PopoverTrigger",0,L,"Portal",0,O,"Root",0,k,"Tr
1igger",0,L,"createPopoverScope",0,j],64406);var Z=e.i(64406),Z=Z,$=e.i(47163);function U({...e}){return(0,t.jsx)(Z.Root,{"data-slot":"popover",...e})}function G({...e}){return(0,t.jsx)(Z.Trigger,{"data-slot":"popover-trigger",...e})}function W({className:e,align:r="center",sideOffset:n=4,...a}){return(0,t.jsx)(Z.Portal,{children:(0,t.jsx)(Z.Content,{"data-slot":"popover-content",align:r,sideOffset:n,className:(0,$.cn)("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}var J=e.i(83642);let K=(0,e.i(54864).default)("scan-eye",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]);var Y=e.i(63352),X=e.i(17447),Q=e.i(82825);function ee(){let{user:e,viewAsEmail:n,viewAsActive:a,setViewAs:s}=(0,J.useAuth)(),[o,i]=(0,r.useState)(""),[l,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1);if(!(0,Q.isAdminEmail)(e?.email))return null;async function f(e){e.preventDefault();let t=o.trim();t&&(d(!0),s(t),setTimeout(()=>{d(!1),u(!1)},1200))}return(0,t.jsxs)(U,{open:c,onOpenChange:u,children:[(0,t.jsx)(G,{asChild:!0,children:(0,t.jsx)("button",{"aria-label":"Admin: view as user",className:["flex items-center justify-center w-7 h-7 rounded-md transition-colors",a?"bg-amber-400/20 text-amber-500 dark:text-amber-400 hover:bg-amber-400/30":"text-muted-foreground hover:text-foreground hover:bg-accent"].join(" "),children:(0,t.jsx)(K,{className:"size-4"})})}),(0,t.jsxs)(W,{align:"end",className:"w-72 p-3 flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("p",{className:"text-base font-semibold",children:"View as user"}),(0,t.jsx)("p",{className:"text-base text-muted-foreground",children:"Preview terra data (alumni status, pricing, offers) as any email."})]}),a&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 border border-amber-400/40 bg-amber-400/10 px-3 py-2",children:[(0,t.jsx)("span",{className:"text-base font-medium truncate text-amber-600 dark:text-amber-400",children:n}),(0,t.jsx)("button",{onClick:function(){s(null),i(""),u(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Clear view-as",children:(0,t.jsx)(Y.X,{className:"size-4"})})]}),(0,t.jsxs)("form",{onSubmit:f,className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{type:"email",value:o,onChange:e=>i(e.target.value),placeholder:"[email protected]",className:"w-full border border-border bg-background px-3 py-1.5 text-base placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring"}),(0,t.jsxs)("button",{type:"submit",disabled:l||!o.trim(),className:"flex items-center justify-center gap-2 h-9 px-4 text-base font-medium bg-foreground text-background hover:bg-foreground
1/90 transition-colors disabled:opacity-50",children:[l?(0,t.jsx)(X.Loader2,{className:"size-4 animate-spin"}):null,l?"Loading…":"View as this user"]})]})]})]})}e.i(43606);var et=e.i(46854);let er=[{label:"Free Courses",href:"/free-courses"},{label:"Intensive",href:"/intensive"},{label:"For teams",href:"/teams"},{label:"Events",href:"/#events"}];function en({initial:e}){return(0,t.jsx)("span",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-primary text-primary-foreground font-medium text-base cursor-pointer select-none hover:bg-primary/90 transition-colors",children:e.toUpperCase()})}function ea({open:e}){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-foreground",children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,t.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,t.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17"})]})})}e.s(["SiteNav",0,function(){let{openModal:e,setAuthView:a,user:s,signOut:o,isIntensiveAlumni:i}=(0,J.useAuth)(),[l,d]=(0,r.useState)(!1),c=s?.displayName?.[0]??s?.email?.[0]??"?";return(0,t.jsxs)("nav",{className:"sticky top-0 z-50 border-b border-border bg-background/80 backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-6 flex items-center justify-between h-14",children:[(0,t.jsxs)(et.default,{href:"/",className:"flex items-center gap-2 font-display text-lg font-bold tracking-tight hover:opacity-75 transition-opacity",children:[(0,t.jsx)("svg",{viewBox:"0 0 32 43",fill:"currentColor",className:"w-5 h-5 text-foreground",children:(0,t.jsx)("path",{d:"M31.9995 12.5136L22.6159 6.79444L18.2341 9.37893L9.4117 4L0 9.75395V31.9182L18.2038 43L27.5891 37.2791V26.6445L32 23.9546L31.9995 12.5136ZM1.17544 31.2002V11.188L8.79273 15.8239V26.6171L17.6038 31.9086L17.6175 31.9176V41.2044L1.17544 31.2002ZM9.41121 5.43238L17.0577 10.0947L9.41067 14.7571L1.76367 10.0947L9.41121 5.43238ZM18.2336 30.8255L10.6147 26.1787L13.7487 24.2684L21.3681 28.9138L18.2336 30.8255ZM22.027 18.5932V27.8801L14.4102 23.2375V13.9495L22.027 18.5932ZM22.5876 17.5002L14.9978 12.8732L22.6151 8.22779L30.2071 12.8547L22.5876 17.5002Z"})}),"Terra Studio"]}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-2 md:gap-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[er.map(e=>(0,t.jsx)(et.default,{href:e.href,className:"px-4 py-1.5 text-base text-muted-foreground rounded-md transition-colors hover:text-foreground hover:bg-accent",children:e.label},e.href)),s&&(0,t.jsx)(et.default,{href:"/dashboard",className:"px-4 py-1.5 text-base text-muted-foreground rounded-md transition-colors hover:text-foreground hover:bg-accent",children:"My learning"}),i&&(0,t.jsx)(et.default,{href:"/playground",className:"px-4 py-1.5 text-base text-muted-foreground rounded-md transition-colors hover:text-foreground hover:bg-accent",children:"Playground"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(n.ThemeToggle,{}),!1,(0,t.jsx)(ee,{}),s?(0,t.jsxs)(U,{children:[(0,t.jsx)(G,{asChild:!0,children:(0,t.jsx)("button",{"aria-label":"Account menu",children:(0,t.jsx)(en,{initial:c})})}),(0,t.jsxs)(W,{align:"end",className:"w-52 p-2",children:[(0,t.jsxs)("div",{className:"px-2 py-1.5 mb-1",children:[(0,t.jsx)("p",{className:"text-base font-medium truncate",children:s.displayName??s.email}),s.displayName&&(0,t.jsx)("p",{className:"text-base text-muted-foreground truncate",children:s.email})]}),(0,t.jsx)("div",{className:"border-t border-border my-1"}),(0,t.jsx)(et.default,{href:"/dashboard",className:"flex w-full items-center px-2 py-1.5 text-base rounded-sm hover:bg-accent transition-colors",children:"Dashboard"}),(0,t.jsx)("button",{onClick:()=>o(),className:"flex w-full items-center px-2 py-1.5 text-base rounded-sm hover:bg-accent transition-colors cursor-pointer text-left",children:"Sign out"})]})]}):(0,t.jsx)("button",{onClick:()=>{a("sign-up"),e()},className:"inline-flex cursor-pointer items-center h-8 px-3 rounded-md text-base font-medium bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"Sign up / Login"})]})]}),(0,t.jsxs)("div",{className:"flex md:hidden items-center gap-3",children:[(0,t.jsx)(n.ThemeToggle,{}),(0,t.jsx)("button",{onClick:()=>d(e=>!e),"aria-label":l?"Close menu":"Open menu",className:"flex items-center justify-center w-8 h-8",children:(0,t.jsx)(ea,{open:l})})]})]}),l&&(0,t.jsx)("div",{className:"md:hidden border-t border-border bg-background/95 backdrop-blur-md",children:(0,t.jsxs)("div",{className:"flex flex-col px-6 py-4 gap-1",children:[er.map(e=>(0,t.jsx)(et.default,{href:e.href,onClick:()=>d(!1),className:"flex items-center py-3 text-base text-muted-foreground hover:text-foreground transition-colors border-b border-border last:border-0",children:e.label},e.href)),s&&(0,t.jsx)(et.default,{href:"/dashboard",onClick:()=>d(!1),className:"flex items-center py-3 text-base text-muted-foreground hover:text-foreground transition-colors border-b border-border",children:"My learning"}),i&&(0,t.jsx)(et.default,{href:"/playground",onClick:()=>d(!1),className:"flex items-center py-3 text-base text-muted-foreground hover:text-foreground transition-colors border-b border-border",children:"Playground"}),(0,t.jsx)("div",{className:"pt-3 mt-2 border-t border-border",children:s?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 py-2",children:[(0,t.jsx)(en,{initial:c}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("p",{className:"text-base font-medium truncate",children:s.displayName??s.email}),s.displayName&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground truncate",children:s.email})]})]}),(0,t.jsx)(et.default,{href:"/dashboard",onClick:()=>d(!1),className:"flex items-center py-3 text-base text-muted-foreground hover:text-foreground transition-colors",children:"Dashboard"}),(0,t.jsx)("button",{onClick:()=>{o(),d(!1)},className:"flex items-center py-3 text-base text-muted-foreground hover:text-foreground transition-colors cursor-pointer text-left",children:"Sign out"})]}):(0,t.jsx)("button",{onClick:()=>{a("sign-up"),e(),d(!1)},className:"flex w-full items-center justify-center py-3 rounded-md text-base font-medium bg-primary text-primary-foreground hover:bg-primary/90 transition-colors cursor-pointer",children:"Sign up / Login"})})]})})]})}],34107)},77768,e=>{"use strict";var t=e.i(61656),r=e.i(11219),n=e.i(83642);
1let a=["deer","cactus","fish","sapling","wave","bird"];function s([e,r],n){return(0,t.jsx)("rect",{x:4*e,y:4*r,width:4,height:4,fill:n},`${e}-${r}`)}let o="var(--primary)",i="var(--background)",l="oklch(0.38 0.1 165)",d=[[1,0],[5,0],[1,1],[5,1],[1,2],[2,2],[3,2],[4,2],[5,2],[1,3],[2,3],[4,3],[5,3],[0,4],[1,4],[2,4],[3,4],[4,4],[5,4],[6,4],[7,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[0,6],[1,6],[2,6],[3,6],[4,6],[5,6],[6,6],[7,6]],c=[[2,7],[5,7],[2,8],[5,8]],u=[[1,9],[2,9],[4,9],[5,9]],f=[[1,7],[6,7],[1,8],[6,8]],p=[[0,9],[1,9],[5,9],[6,9]];function m(){return(0,t.jsxs)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.48s 0.55s ease-in-out infinite"},children:[d.map(e=>s(e,o)),s([3,3],i),(0,t.jsxs)("g",{style:{animation:"terra-legs-blink 0.48s 0.55s steps(1) infinite"},children:[c.map(e=>s(e,o)),u.map(e=>s(e,l))]}),(0,t.jsxs)("g",{style:{animation:"terra-legs-blink 0.48s 0.79s steps(1) infinite"},children:[f.map(e=>s(e,o)),p.map(e=>s(e,l))]})]})}let x=[[3,0],[4,0],[1,1],[3,1],[4,1],[1,2],[2,2],[3,2],[4,2],[3,3],[4,3],[6,3],[3,4],[4,4],[6,4],[3,5],[4,5],[5,5],[6,5],[3,6],[4,6],[3,7],[4,7],[2,8],[3,8],[4,8],[5,8],[2,9],[3,9],[4,9],[5,9]];function h(){return(0,t.jsx)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.72s 0.55s ease-in-out infinite"},children:x.map(e=>s(e,o))})}let g=[[3,2],[4,2],[2,3],[3,3],[4,3],[5,3],[6,3],[7,3],[1,4],[2,4],[3,4],[4,4],[5,4],[6,4],[7,4],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[3,6],[4,6]];function b(){return(0,t.jsxs)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.54s 0.55s ease-in-out infinite"},children:[g.map(e=>s(e,o)),s([6,4],i)]})}let v=[[3,1],[4,1],[2,2],[3,2],[4,2],[5,2],[1,3],[2,3],[3,3],[4,3],[5,3],[6,3],[3,4],[4,4],[3,5],[4,5]],y=[[2,6],[3,6],[4,6],[5,6],[1,7],[2,7],[3,7],[4,7],[5,7],[6,7],[2,8],[3,8],[4,8],[5,8]];function j(){return(0,t.jsxs)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.78s 0.55s ease-in-out infinite"},children:[v.map(e=>s(e,o)),y.map(e=>s(e,l))]})}let w=[[1,2],[2,2],[5,2],[6,2],[0,3],[1,3],[2,3],[3,3],[4,3],[5,3],[6,3],[7,3],[0,4],[1,4],[2,4],[3,4],[4,4],[5,4],[6,4],[7,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[1,6],[2,6],[3,6],[4,6],[5,6],[6,6]];function C(){return(0,t.jsx)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.9s 0.55s ease-in-out infinite"},children:w.map(e=>s(e,o))})}let N=[[2,3],[3,3],[4,3],[5,3],[2,4],[3,4],[4,4],[5,4],[2,5],[3,5],[4,5],[5,5],[3,6],[4,6],[3,7],[4,7]],k=[[0,2],[1,2],[2,2],[5,2],[6,2],[7,2],[0,3],[1,3],[6,3],[7,3]],P=[[0,5],[1,5],[6,5],[7,5],[0,6],[1,6],[2,6],[5,6],[6,6],[7,6]];function S(){return(0,t.jsxs)("svg",{width:80,height:100,viewBox:"0 0 32 40",style:{imageRendering:"pixelated",animation:"terra-deer-float 0.44s 0.55s ease-in-out infinite"},children:[N.map(e=>s(e,o)),s([4,3],i),(0,t.jsx)("g",{style:{animation:"terra-legs-blink 0.4s 0.55s steps(1) infinite"},children:k.map(e=>s(e,o))}),(0,t.jsx)("g",{style:{animation:"terra-legs-blink 0.4s 0.75s steps(1) infinite"},children:P.map(e=>s(e,o))})]})}function _({type:e}){switch(e){case"deer":return(0,t.jsx)(m,{});case"cactus":return(0,t.jsx)(h,{});case"fish":return(0,t.jsx)(b,{});case"sapling":return(0,t.jsx)(j,{});case"wave":return(0,t.jsx)(C,{});case"bird":return(0,t.jsx)(S,{})}}e.s(["LoadingScreen",0,function(){let{loading:e,user:s,profileSettled:o}=(0,n.useAuth)(),[i,l]=(0,r.useState)(!1),[d,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(null),[p,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{f(a[Math.floor(Math.random()*a.length)])},[]),(0,r.useEffect)(()=>{e||s||(m(!0),l(!0))},[e,s]);let x=!e&&o;return((0,r.useEffect)(()=>{if(p)return;let e=setTimeout(()=>c(!0),700);return()=>clearTimeout(e)},[p]),(0,r.useEffect)(()=>{if(x&&d){let e=setTimeout(()=>l(!0),550);return()=>clearTimeout(e)}},[x,d]),p||i)?null:(0,t.jsx)("div",{className:"fixed inset-0 z-[9999] bg-background flex items-center justify-center pointer-events-none select-none",style:{opacity:+!x,transition:"opacity 0.5s ease"},children:u&&(0,t.jsx)("div",{style:{animation:"terra-deer-enter 0.55s cubic-bezier(0.22,1,0.36,1) both"},children:(0,t.jsx)(_,{type:u})})})}])},88343,e=>{"use strict";var t=e.i(11219),r=e.i(14764),n=e.i(83642);e.i(93989);let a=null,s=!1,o=[];async function i(){if(s)return;s=!0;let{RudderAnalytics:t}=await e.A(89860);(a=new t).load("1taGqWG0YJjVt3DZXYNMi3fGGRf","https://terramayagh.dataplane.rudderstack.com",{integrations:{"Google Tag Manager":!1}}),a.page(),o.forEach(({event:e,properties:t})=>a.track(e,t)),o=[]}e.s(["default",0,function(){let{user:e}=(0,n.useAuth)(),s=(0,r.usePathname)();return(0,t.useEffect)(()=>{i()},[]),(0,t.useEffect)(()=>{a?.page()},[s]),(0,t.useEffect)(()=>
1{if(e){var t,r;t=e.uid,r={email:e.email??void 0,name:e.displayName??void 0},a?.identify(t,r)}else a?.reset()},[e]),null}],88343)},25859,e=>{"use strict";var t=e.i(11219),r=e.i(14764);function n(e,t,r){let n=new Date;n.setDate(n.getDate()+r);let a=window.location.hostname.endsWith("terra.do")?"domain=.terra.do; ":"";document.cookie=`${e}=${encodeURIComponent(t)}; ${a}path=/; SameSite=Lax; expires=${n.toUTCString()}`}e.s(["CdcInit",0,function(){let e=(0,r.useSearchParams)();return(0,t.useEffect)(()=>{let t=e.get("cdc"),r=e.get("user_referral")??e.get("r"),a=e.get("partner_code"),s=e.get("sfname"),o=function(){if("u"<typeof document)return"";let e=document.cookie.match("(?:^|;\\s*)cdc=([^;]*)");return e?decodeURIComponent(e[1]):""}(),i=new Set(o?o.split(",").map(e=>e.trim()).filter(Boolean):[]);i.add("earlybird"),t&&i.add(t),r&&i.add(r);let l=Array.from(i).join(",");l!==o&&n("cdc",l,30),r&&n("user_referral",r,30),a?n("partner_code",a,30):t?.startsWith("sp_")&&n("partner_code","sponsorship",30),s&&n("sfname",s,30)},[e]),null}])},44878,e=>{"use strict";var t=e.i(61656),r=e.i(11219),n=e.i(14764),a=e.i(90552);let s="referral_toast_dismissed";e.s(["ReferralToast",0,function(){let e=(0,n.useSearchParams)(),o=(0,n.useRouter)(),i=(0,n.usePathname)(),[l,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(null);return((0,r.useEffect)(()=>{if(sessionStorage.getItem(s))return;let t=e.get("r")??e.get("user_referral")??function(e){if("u"<typeof document)return"";let t=document.cookie.match(`(?:^|;\\s*)${e}=([^;]*)`);return t?decodeURIComponent(t[1]):""}("user_referral");t&&(0,a.fetchCohortPricing)(t).then(e=>{e&&e.disc>0&&(u(e),d(!0))})},[e]),l&&c)?(0,t.jsx)("div",{className:"w-full border-b border-primary/25 bg-primary/8 px-4 py-3",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-4",children:[(0,t.jsxs)("p",{className:"text-base text-foreground",children:["You've been referred by a Terra.do alumnus —"," ",(0,t.jsxs)("span",{className:"font-semibold text-primary",children:["get ",c.disc,"% off"]})," ","the Intensive."]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[(0,t.jsx)("button",{onClick:()=>{"/intensive"===i?document.getElementById("pricing")?.scrollIntoView({behavior:"smooth"}):o.push("/intensive#pricing")},className:"cursor-pointer rounded-md bg-foreground px-4 py-2 text-base font-semibold text-background hover:bg-foreground
1/90",children:"Apply now →"}),(0,t.jsx)("button",{onClick:()=>{sessionStorage.setItem(s,"1"),d(!1)},"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground",children:(0,t.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]})}):null}])}]);

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.