1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3041],{84734:function(e,t,n){Promise.resolve().then(n.bind(n,83669)),Promise.resolve().then(n.bind(n,87411)),Promise.resolve().then(n.bind(n,28423)),Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.t.bind(n,72972,23))},83669:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var l=n(57437),s=n(36760),a=n.n(s),r=n(44984),i=n(73086),o=n(15339),c=n(99376),u=n(27648),f=n(2265);function d(e){let{className:t,defaultSelected:n,onChange:s,options:r}=e,[i,o]=(0,f.useState)(n);return(0,f.useEffect)(()=>{o(n)},[n]),(0,f.useEffect)(()=>{null!=i&&i>-1&&i!==n&&s(i)},[i]),(0,l.jsx)("div",{className:a()("rounded-button bg-background-layer-1 p-2",t),children:(0,l.jsxs)("div",{className:"relative grid h-full items-center",style:{gridTemplateColumns:"repeat(".concat(r.length,", 1fr)")},children:[null!=i&&i>-1&&(0,l.jsx)("div",{className:"absolute left-0 top-0 h-full rounded-button bg-primary transition-transform",style:{transform:"translateX(".concat(100*i,"%)"),width:"".concat(100/r.length,"%")}}),r.map((e,t)=>{let n=t===i;return(0,l.jsx)(u.default,{className:a()("btn btn-small w-full !gap-0 px-4 transition-[color] ease-linear hover:text-white-90 active:!shadow-none",n&&"pointer-events-none !text-background"),href:e.value,onClick:e=>{e.preventDefault(),o(t)},onKeyUp:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o(t))},children:e.label},"switch-bg-".concat(t))})]})})}let h=[{label:"Learn",value:"/"},{label:"Watch",value:"/watch"},{label:"Create",value:"/create"}];function C(e){let{defaultSelected:t,className:n}=e,s=(0,c.usePathname)(),a=(0,c.useRouter)(),r=t||h.findIndex(e=>!!s&&(e.value===s||"/"!==s&&"/"!==e.value&&s.startsWith(e.value)));return(0,l.jsx)(d,{className:n,defaultSelected:r,options:h,onChange:e=>{a.push(h[e].value)}})}var x=n(45286);function p(e){let{className:t}=e,{loggedIn:n}=(0,r.a)();return(0,l.jsxs)("header",{className:a()("relative z-20 flex shrink-0 flex-col items-center justify-between gap-2 px-5 py-3 lg:flex-row lg:px-20",t),children:[(0,l.jsxs)("div",{className:"relative flex w-full flex-row items-center justify-between",children:[(0,l.jsx)(o.Z,{href:n?"/watch":"/",showText:"always"}),n?(0,l.jsx)(x.Z,{}):(0,l.jsx)(i.Z,{})]}),(0,l.jsx)("div",{className:"w-full lg:absolute lg:left-1/2 lg:w-auto lg:-translate-x-1/2",children:(0,l.jsx)(C,{})})]})}},85602:function(e,t,n){"use strict";n.d(t,{LoginProvider:function(){return d},N:function(){return f}});var l=n(57437),s=n(93810),a=n.n(s),r=n(2265),i=n(63259),o=n(14922);function c(){let{description:e,loginOpen:t,setLoginOpen:n,title:s}=f();return(0,l.jsx)(o.Z,{"aria-label":"Log in",className:"left-1/2 top-[calc(60px+1rem)] !w-[calc(100%-2rem)] max-w-modal bg-white text-background lg:left-auto lg:right-4 lg:top-[80px] lg:!translate-x-0",closeClass:"translate-y-[-30px]",id:"login-modal",open:t,openClass:"translate-y-0",onClose:()=>{n(!1)},children:(0,l.jsx)(i.default,{saveReturnTo:!0,className:"w-full p-4 lg:p-8",description:e,title:s})})}let u=(0,r.createContext)({loginOpen:!1,setLoginOpen:a()}),f=()=>(0,r.useContext)(u);function d(e){let{children:t}=e,[n,s]=(0,r.useState)(""),[a,i]=(0,r.useState)(!1),[o,f]=(0,r.useState)("");return(0,l.jsxs)(u.Provider,{value:{description:n,loginOpen:a,setLoginOpen:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(t.title&&f(t.title||""),t.description&&s(t.description||"")),i(e)},title:o},children:[t,(0,l.jsx)(c,{})]})}},11309:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(57437),s=n(36760),a=n.n(s);function r(e){let{className:t}=e;return(0,l.jsxs)("svg",{className:a()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,l.jsx)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 23.9859 5.85094 30.6053 13.5 31.8056V20.625H9.4375V16H13.5V12.475C13.5 8.465 15.8888 6.25 19.5434 6.25C21.2934 6.25 23.125 6.5625 23.125 6.5625V10.5H21.1075C19.12 10.5 18.5 11.7334 18.5 13V16H22.9375L22.2281 20.625H18.5V31.8056C26.1491 30.6053 32 23.9859 32 16Z",fill:"#1877F2"}),(0,l.jsx)("path",{d:"M22.2281 20.625L22.9375 16H18.5V13C18.5 11.7347 19.12 10.5 21.1075 10.5H23.125V6.5625C23.125 6.5625 21.2941 6.25 19.5434 6.25C15.8888 6.25 13.5 8.465 13.5 12.475V16H9.4375V20.625H13.5V31.8056C15.1566 32.0648 16.8434 32.0648 18.5 31.8056V20.625H22.2281Z",fill:"white"})]})}},4779:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(57437),s=n(36760),a=n.n(s);function r(e){let{className:t}=e;return(0,l.jsxs)("svg",{className:a()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:[(0,l.jsx)("path",{d:"M31.688 16.3686C31.688 15.2809 31.5998 14.1874 31.4117 13.1174H16.3199V19.2787H24.9623C24.6036 21.2659 23.4513 23.0237 21.764 24.1408V28.1386H26.92C29.9478 25.3519 31.688 21.2365 31.688 16.3686Z",fill:"#4285F4"}),(0,l.jsx)("path",{d:"M16.32 32.0011C20.6352 32.0011 24.2744 30.5842 26.9259 28.1385L21.7699 24.1407C20.3354 25.1166 18.4835 25.6693 16.3259 25.6693C12.1517 25.6693 8.61246 22.8532 7.34257 19.067H2.02197V23.1883C4.73812 28.5912 10.2704 32.0011 16.32 32.0011Z",fill:"#34A853"}),(0,l.jsx)("path",{d:"M7.33666 19.067C6.66645 17.0798 6.66645 14.9281 7.33666 12.941V8.8197H2.02195C-0.247388 13.3407 -0.247388 18.6672 2.02195 23.1882L7.33666 19.067Z",fill:"#FBBC04"}),(0,l.jsx)("path",{d:"M16.32 6.33288C18.6011 6.29761 20.8057 7.15596 22.4578 8.73156L27.0258 4.16349C24.1333 1.44734 20.2943 -0.0459547 16.32 0.00107822C10.2704 0.00107822 4.73812 3.41096 2.02197 8.81974L7.33669 12.941C8.6007 9.14897 12.1458 6.33288 16.32 6.33288Z",fill:"#EA4335"})]})}},90851:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var l=n(57437),s=n(36760),a=n.n(s),r=n(27648),i=n(99376);function o(e){let{className:t}=e;return(0,l.jsx)("svg",{className:a()("icon",t),height:"32",viewBox:"0 0 32 32",width:"32",children:(0,l.jsx)("path",{d:"M27.7901 22.8599C27.3465 23.8848 26.8215 24.8281 26.2131 25.6954C25.3838 26.8778 24.7048 27.6962 24.1815 28.1506C23.3704 28.8966 22.5013 29.2787 21.5706 29.3004C20.9025 29.3004 20.0967 29.1103 19.1588 28.7246C18.2178 28.3408 17.3531 28.1506 16.5624 28.1506C15.7331 28.1506 14.8437 28.3408 13.8924 28.7246C12.9396 29.1103 12.1721 29.3113 11.5853 29.3312C10.6928 29.3692 9.8
10323 28.9763 8.91529 28.1506C8.34856 27.6563 7.6397 26.809 6.79051 25.6085C5.87939 24.3266 5.13033 22.84 4.5435 21.1453C3.91503 19.3147 3.59998 17.5421 3.59998 15.8259C3.59998 13.8601 4.02475 12.1646 4.87557 10.7438C5.54424 9.60258 6.43381 8.70233 7.54717 8.04144C8.66054 7.38056 9.86353 7.04378 11.159 7.02223C11.8679 7.02223 12.7975 7.2415 13.9527 7.67243C15.1046 8.10482 15.8443 8.32408 16.1685 8.32408C16.411 8.32408 17.2327 8.0677 18.6256 7.55655C19.9428 7.08253 21.0546 6.88625 21.9653 6.96357C24.4332 7.16274 26.2873 8.1356 27.5204 9.8883C25.3132 11.2256 24.2214 13.0988 24.2431 15.5017C24.263 17.3733 24.942 18.9308 26.2764 20.1675C26.8812 20.7415 27.5566 21.1851 28.308 21.5001C28.145 21.9727 27.973 22.4254 27.7901 22.8599ZM22.1301 0.5872C22.1301 2.0542 21.5941 3.42394 20.5259 4.69175C19.2367 6.19893 17.6774 7.06985 15.9864 6.93242C15.9648 6.75643 15.9524 6.5712 15.9524 6.37656C15.9524 4.96824 16.5654 3.46105 17.6542 2.22873C18.1977 1.60478 18.889 1.08598 19.7274 0.672118C20.5639 0.264434 21.3551 0.038975 22.0993 0.000366211C22.121 0.196481 22.1301 0.392609 22.1301 0.587181V0.5872Z",fill:"white"})})}var c=n(11309),u=n(4779);function f(e){let{className:t,saveReturnTo:n}=e,s=(0,i.usePathname)();function f(){n&&(document.cookie="return_to=".concat(s,"; path=/"))}return(0,l.jsxs)("div",{className:a()("flex flex-col items-stretch justify-start gap-2",t),children:[(0,l.jsxs)(r.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/google",prefetch:!1,onClick:f,children:[(0,l.jsx)(u.Z,{className:"size-[26px]"}),"Continue using Google"]}),(0,l.jsxs)(r.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/facebook",prefetch:!1,onClick:f,children:[(0,l.jsx)(c.Z,{className:"size-[26px]"}),"Continue using Facebook"]}),(0,l.jsxs)(r.default,{className:"btn btn-secondary login-link btn-large gap-4",href:"/api/auth/apple",prefetch:!1,onClick:f,children:[(0,l.jsx)(o,{className:"size-[26px]"}),"Continue using Apple"]})]})}},63259:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var l=n(57437),s=n(36760),a=n.n(s),r=n(99376),i=n(2265),o=n(85518),c=n(90851);function u(e){let{className:t,description:n,saveReturnTo:s,title:u}=e,f=(0,r.useSearchParams)(),d=null==f?void 0:f.get("error"),{addToast:h}=(0,o.e)();return u||(u="Log in"),n||(n="Don't worry. If you don't have an account, one will be created for you."),(0,i.useEffect)(()=>{d&&requestAnimationFrame(()=>{h({type:"error",message:d})})},[d]),(0,l.jsxs)("div",{className:a()("flex flex-col bg-white text-background",t),children:[(0,l.jsx)("h2",{className:"mb-2 text-background",children:u}),(0,l.jsx)("p",{className:"mb-4",children:n}),(0,l.jsx)(c.Z,{saveReturnTo:s})]})}}},function(e){e.O(0,[5501,2739,7376,2972,8629,7209,5878,5207,8217,8583,6805,8715,2971,2117,1744],function(){return e(e.s=84734)}),_N_E=e.O()}]);
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.