const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codemirror-BxGqM6_g.js","assets/vendor-BUCcd7Gn.js","assets/algolia-cJNACQZo.js","assets/chartist-C4RTv1uP.js","assets/chartist-DBSU0riA.css"])))=>i.map(i=>d[i]); import{u as fe,v as st,w as U,x as $e,y as nt,z as Pe,A as xe,C as ce,D as it,E as lt,F as at,G as ot,H as rt,J as ct,K as dt,L as ut,M as qe,O as ht,Q as ft,R as mt}from"./vendor-BUCcd7Gn.js";import{r as M,o as I,n as re,a as i,c as r,b as _,d as s,e as H,f as S,g as x,w as p,h as g,u as c,i as be,F as w,j as L,k as pt,l as Ve,m as v,p as j,v as q,t as f,q as u,s as m,x as V,y as we,G as ee,z as A,A as me,T as _e,B as Me,C as xt,D as J,E as te,H as Ae,I as O,J as Ee,K as Ce,$ as _t,L as De,M as de,N as Qe,O as pe,P as le,Q as gt,R as yt,S as vt,U as Re,V as bt,W as wt,X as Ct}from"./vue-CNz3Gjml.js";import{a as kt,b as $t,d as Lt,e as Bt}from"./algolia-cJNACQZo.js";import"./chartist-C4RTv1uP.js";const St="modulepreload",Mt=function(e){return"/build/"+e},Ie={},ne=function(t,n,o){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=Promise.allSettled(n.map(y=>{if(y=Mt(y),y in Ie)return;Ie[y]=!0;const C=y.endsWith(".css"),B=C?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${B}`))return;const b=document.createElement("link");if(b.rel=C?"stylesheet":St,C||(b.as="script"),b.crossOrigin="",b.href=y,h&&b.setAttribute("nonce",h),document.head.appendChild(b),C)return new Promise(($,T)=>{b.addEventListener("load",$),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function a(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return l.then(d=>{for(const h of d||[])h.status==="rejected"&&a(h.reason);return t().catch(a)})};class At{constructor(t={}){Object.assign(this,t)}isAdmin(){return this.username==="JeffreyWay"}isStaff(){return this.staff}is(t){return this.id===t.id}isNot(t){return!this.is(t)}follows(t){if(!this.following)throw new Error("User does not have 'follows' list loaded.");return this.following.includes(t.id)}bookmarked(t,n="watch_later"){var o;return(o=this.bookmarks)==null?void 0:o.find(l=>l.category===n&&l.bookmarkable_id===t.id&&l.bookmarkable_type===t.className)}isALifer(){var t;return((t=this.plan)==null?void 0:t.type)==="forever"}isAForumUser(){var t;return((t=this.plan)==null?void 0:t.type)==="guest"}hasPrivateProfile(){return!this.settings.show_profile}planLabel(){return this.subscribed?this.plan.name:this.canceled?"Canceled":"Guest"}}const ke={on(e,t){fe.on(e,t)},off(e,t){fe.off(e,t)},emit(e,t){fe.emit(e,t)}};let Ge=[];function Ne(e=null){let t=M(!1),n;e&&(n=e.proxy.id.replace("-dialog",""),I(()=>Ge.push(n)));function o(){e.proxy.inert&&document.querySelector("#"+e.proxy.id).showModal(),t.value=!0,re(()=>e.emit("opened"))}function l(){t.value&&(document.querySelector("#"+e.proxy.id).close(),t.value=!1,e.emit("closed"))}function a(h=null){Ge.includes(h)&&ke.emit("dialog",h)}function d(){return ke.on("dialog",h=>{n===h&&this.show()}),this}return{open:t,show:o,close:l,trigger:a,listen:d}}function zt(){function e(t={}){return new Promise(n=>{ke.emit("flash-overlay",{options:t,callback:function(o,l){n({confirmed:o,dialog:l})}})})}return{overlay:e}}const Ft={key:0,width:"6",viewBox:"0 0 6 5"},Tt=s("g",{fill:"none","fill-rule":"evenodd"},[s("g",{class:"fill-current"},[s("g",null,[s("g",null,[s("g",null,[s("path",{d:"M6.888 3.2c-.154.005-.301.072-.409.187L4.24 5.738l-.773-.647c-.123-.103-.28-.151-.437-.133-.157.019-.3.101-.399.23-.205.27-.163.662.093.878l1.189.998c.237.198.577.178.791-.047L7.32 4.272c.176-.178.23-.453.134-.69-.095-.238-.32-.39-.565-.382z",transform:"translate(-776.000000, -320.000000) translate(774.000000, 311.000000) translate(0.000000, 4.000000) translate(0.000000, 2.000000)"})])])])])],-1),Ut=[Tt],jt={key:1,width:"25",height:"100%",viewBox:"0 0 21 16"},Pt=s("g",{class:"fill-current","fill-rule":"evenodd"},[s("path",{fill:"none",d:"M-3-5h27v27H-3z"}),s("path",{d:"M7.439 12.152l-5.037-5.36c-.447-.477-1.119-.477-1.566 0a1.204 1.204 0 0 0 0 1.667l6.603 7.03L20.086 2.025a1.204 1.204 0 0 0 0-1.668c-.447-.476-1.12-.476-1.567 0L7.44 12.152z"})],-1),It=[Pt],Gt={key:2,x:"0px",y:"0px",viewBox:"0 0 191.667 191.667","xml:space":"preserve",width:"32px"},Ot=s("path",{d:"M95.833,0C42.991,0,0,42.99,0,95.833s42.991,95.834,95.833,95.834s95.833-42.991,95.833-95.834S148.676,0,95.833,0z M150.862,79.646l-60.207,60.207c-2.56,2.56-5.963,3.969-9.583,3.969c-3.62,0-7.023-1.409-9.583-3.969l-30.685-30.685 c-2.56-2.56-3.97-5.963-3.97-9.583c0-3.621,1.41-7.024,3.97-9.584c2.559-2.56,5.962-3.97,9.583-3.97c3.62,0,7.024,1.41,9.583,3.971 l21.101,21.1l50.623-50.623c2.56-2.56,5.963-3.969,9.583-3.969c3.62,0,7.023,1.409,9.583,3.969 C156.146,65.765,156.146,74.362,150.862,79.646z",class:"fill-current"},null,-1),Ht=[Ot],qt={key:3,width:"30",viewBox:"0 0 15 15",fill:"none"},Vt=s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.787 4.305a2.314 2.314 0 0 0-4.622 0H4.063a3.415 3.415 0 0 1 6.827 0H9.787zM4.283 4.966A1.983 1.983 0 0 0 2.3 6.95v5.068C2.3 13.112 3.188 14 4.283 14h6.39a1.983 1.983 0 0 0 1.983-1.983V6.95a1.983 1.983 0 0 0-1.983-1.983h-6.39zm3.195 6.34a1.822 1.822 0 1 0 0-3.645 1.822 1.822 0 0 0 0 3.644z",fill:"#fff"},null,-1),Et=[Vt],Dt={key:4,width:"9",viewBox:"0 0 9 12"},Qt=s("g",{fill:"none","fill-rule":"evenodd"},[s("g",{class:"fill-current"},[s("g",null,[s("g",null,[s("g",null,[s("path",{d:"M2.858 5.15v4.415c0 .197-.11.371-.273.436-.231.092-.51.14-.808.14-.855 0-1.775-.396-1.775-1.266v-5.65c-.02-.389.1-1.074.676-1.445C.945 1.607 2.348.589 3.052.074c.125-.092.286-.098.417-.018.132.081.214.237.214.406v.669c0 .255-.183.462-.41.462-.175 0-.325-.125-.383-.302-.636.462-1.574 1.14-1.806 1.29-.21.136-.255.385-.264.52 0 .151.029.27.081.335.145.18.63.068 1.157-.29C2.566 2.802 5.067.92 5.092.902c.126-.095.287-.104.42-.023.133.08.216.237.216.408v.052c0 .155-.068.299-.182.385 0 0-1.736 1.31-1.89 1.42-.589.428-.798.953-.798 2.005zM9 2.92v5.998c0 .158-.072.306-.191.39 0 0-2.385 2.092-2.869 2.425-.254.175-.578.267-.936.267-.85 0-1.73-.52-1.73-1.389V4.878l.001-.006c.008-.338.078-.82.635-1.285.334-.278 2.321-1.809 2.406-1.873.125-.097.288-.107.421-.027.134.08.218.237.218.408v.67c0 .254-.183.461-.409.461-.169 0-.314-.115-.376-.28-.635.49-1.566 1.212-1.775 1.385-.263.22-.298.365-.303.551.001.138.034.243.101.313.209.216.77.125 1.324-.25.41-.278 2.176-1.819 2.822-2.389.124-.108.29-.128.431-.05.14.077.23.237.23.414zm-.818 2.059L6.137 6.77v.924l2.045-1.792v-.924z",transform:"translate(-890.000000, -316.000000) translate(774.000000, 311.000000) translate(116.000000, 4.000000) translate(0.000000, 1.000000)"})])])])])],-1),Rt=[Qt],Nt={key:5,width:"10",viewBox:"0 0 10 10"},Zt=s("g",{fill:"none","fill-rule":"evenodd"},[s("g",null,[s("g",null,[s("g",null,[s("g",null,[s("path",{class:"fill-current",d:"M5 2C2.25 2 0 4.25 0 7s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm2.282 6.923L4.615 7.318v-3.01h.77v2.608l2.307 1.355-.41.652z",transform:"translate(-978.000000, -378.000000) translate(330.000000, 364.000000) translate(444.000000, 8.000000) translate(204.000000, 4.000000)"})])])])])],-1),Wt=[Zt],Yt={key:6,width:"40%",height:"100%",viewBox:"0 0 19 32"},Kt=s("path",{fill:"none","fill-rule":"evenodd",stroke:"#FFF","stroke-linecap":"round","stroke-width":"2.5",d:"M1.5 2.164v17.133l15.796 6.673"},null,-1),Jt=[Kt],Xt={key:7,width:"12",viewBox:"0 0 25 25",class:"fill-current"},es=s("path",{d:"M22.222 0 25 2.778l-9.723 9.721L25 22.222 22.222 25 12.5 15.277 2.778 25 0 22.222 9.722 12.5 0 2.778 2.778 0 12.5 9.722 22.222 0z",class:"fill-current","fill-rule":"evenodd"},null,-1),ts=[es],ss={key:8,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},ns=s("path",{d:"M2 9.75L10 2.25",stroke:"#EC454F","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),is=s("path",{d:"M2.25 2L9.75 10",stroke:"#EC454F","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ls=[ns,is],as={key:9,width:"12",viewBox:"0 0 17 19","aria-hidden":"true"},os=s("g",{class:"fill-current","fill-rule":"evenodd"},[s("path",{fill:"none",d:"M-7-4h27v27H-7z"}),s("path",{d:"M16.043 10.283L1.873 18.38h-.001a.924.924 0 0 1-.915 0 .905.905 0 0 1-.457-.784V1.405C.5 1.08.675.783.957.62a.924.924 0 0 1 .915 0l14.17 8.096h.001c.282.161.457.46.457.783a.905.905 0 0 1-.457.783z"})],-1),rs=[os],cs={key:10,width:"15",height:"15",viewBox:"0 0 15 15"},ds=s("g",{fill:"none","fill-rule":"evenodd"},[s("path",{d:"M-1-1h18v18H-1z"}),s("path",{class:"fill-current",d:"M6 10.875L10.5 7.5 6 4.125v6.75zM7.5 0C3.36 0 0 3.36 0 7.5 0 11.64 3.36 15 7.5 15c4.14 0 7.5-3.36 7.5-7.5C15 3.36 11.64 0 7.5 0zm0 13.5c-3.307 0-6-2.693-6-6s2.693-6 6-6 6 2.693 6 6-2.693 6-6 6z"})],-1),us=[ds],hs={key:11,width:"20",viewBox:"0 0 15 15"},fs=s("g",{fill:"none","fill-rule":"evenodd"},[s("path",{d:"M-2-2h20v20H-2z"}),s("path",{class:"fill-current",d:"M10.443 9.232h-.638l-.226-.218A5.223 5.223 0 0 0 10.846 5.6 5.247 5.247 0 1 0 5.6 10.846c1.3 0 2.494-.476 3.414-1.267l.218.226v.638l4.036 4.028 1.203-1.203-4.028-4.036zm-4.843 0A3.627 3.627 0 0 1 1.967 5.6 3.627 3.627 0 0 1 5.6 1.967 3.627 3.627 0 0 1 9.232 5.6 3.627 3.627 0 0 1 5.6 9.232z"})],-1),ms=[fs],ps={key:12,width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},xs=s("path",{"clip-rule":"evenodd",d:"M1 25V1h24v24H1z",stroke:"#000","stroke-opacity":".012","stroke-width":".514"},null,-1),_s=s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.296 21.236a1.552 1.552 0 0 1 0-2.193L15.324 13l-6.03-6.043a1.552 1.552 0 0 1 2.196-2.193l7.387 7.388a1.2 1.2 0 0 1 0 1.697l-7.387 7.387a1.552 1.552 0 0 1-2.195 0z",class:"fill-current"},null,-1),gs=[xs,_s],ys={key:13,width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},vs=s("path",{"clip-rule":"evenodd",d:"M25 1v24H1V1h24z",stroke:"#000","stroke-opacity":".012","stroke-width":".514"},null,-1),bs=s("path",{class:"fill-current","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.704 4.764c.605.605.606 1.587 0 2.193L10.676 13l6.03 6.043a1.552 1.552 0 0 1-2.196 2.193l-7.387-7.388a1.2 1.2 0 0 1 0-1.697l7.387-7.387a1.552 1.552 0 0 1 2.195 0z"},null,-1),ws=[vs,bs],Cs={key:14,viewBox:"0 0 22 22",width:"11"},ks=s("g",{fill:"none","fill-rule":"evenodd"},[s("path",{"stroke-opacity":".012",stroke:"#000","stroke-width":".5",d:"M21 21H1V1h20z"}),s("path",{class:"fill-current",d:"M14.825 13.911 11 10.094l-3.825 3.817L6 12.736l5-5 5 5z"})],-1),$s=[ks],Ls={key:15,width:"10",height:"16",class:"fill-current",viewBox:"0 0 10 16"},Bs=s("path",{d:"M5 11L0 6l1.5-1.5L5 8.25 8.5 4.5 10 6z"},null,-1),Ss=[Bs],Ms={key:16,viewBox:"0 0 32 32"},As=s("g",{stroke:"none","stroke-width":"1.2",class:"fill-current","fill-rule":"evenodd"},[s("path",{class:"fill-current",d:"M13.6196,11.2 C11.6246857,11.2 10.4,12.85425 10.4,14.2106375 C10.4,17.143925 13.9170286,19.8671 16.4,21.6 C18.8829714,19.86645 22.4,17.143925 22.4,14.2106375 C22.4,12.8541363 21.1758971,11.2 19.1804,11.2 C18.0661143,11.2 17.1138286,12.042335 16.4,12.8420625 C15.6854857,12.0422538 14.73392,11.2 13.6196,11.2 Z"})],-1),zs=[As],Fs={key:17,width:"8",viewBox:"0 0 8 10",class:"fill-current"},Ts=s("path",{"fill-rule":"nonzero",d:"M7.092 0H.941C.44 0 0 .389 0 .849v8.583c0 .154.045.282.119.381a.469.469 0 0 0 .38.187c.143 0 .295-.06.435-.173l2.753-2.204a.54.54 0 0 1 .334-.108.54.54 0 0 1 .334.108l2.743 2.203a.683.683 0 0 0 .425.174C7.765 10 8 9.824 8 9.432V.849C8 .389 7.593 0 7.092 0z"},null,-1),Us=[Ts],js={key:18,width:"17",height:"14",viewBox:"0 0 17 14",fill:"none"},Ps=s("path",{d:"M11.567 3.03126C10.49 1.78563 8.91427 1 7.1588 1C3.91272 1 1.28125 3.68629 1.28125 7C1.28125 10.3137 3.91272 13 7.1588 13C8.91427 13 10.49 12.2144 11.567 10.9687",stroke:"white","stroke-width":"1.8","stroke-linecap":"round"},null,-1),Is=s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7244 7.71069L8.93089 4.98411L8.93061 4.98363C8.83484 4.92907 8.77636 4.82777 8.77699 4.71756C8.7779 4.60782 8.83754 4.50554 8.93395 4.44987L13.7629 1.66186C13.8593 1.6062 13.9777 1.60569 14.0732 1.65977C14.169 1.71433 14.2275 1.81563 14.2269 1.92584L14.1914 7.44044L14.1917 7.44092C14.1908 7.55066 14.1311 7.65294 14.0347 7.7086C13.9383 7.76427 13.8199 7.76477 13.7244 7.71069Z",fill:"white"},null,-1),Gs=[Ps,Is],Os={key:19,width:"41",height:"43",viewBox:"0 0 41 43",fill:"none"},Hs=H('',2),qs=[Hs],Vs={key:20,width:"40",height:"43",viewBox:"0 0 40 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Es=H('',2),Ds=[Es],Qs={key:21,width:"41",height:"43",viewBox:"0 0 41 43",fill:"none"},Rs=H('',2),Ns=[Rs],Zs={key:22,width:"41",height:"43",viewBox:"0 0 32 34",fill:"none"},Ws=H('',2),Ys=[Ws],F={__name:"Icon",props:{name:String},setup(e){return(t,n)=>e.name==="checkmark"?(i(),r("svg",Ft,Ut)):e.name==="checkmark-thin"?(i(),r("svg",jt,It)):e.name==="checkmark-circled"?(i(),r("svg",Gt,Ht)):e.name==="lock"?(i(),r("svg",qt,Et)):e.name==="book"?(i(),r("svg",Dt,Rt)):e.name==="clock"?(i(),r("svg",Nt,Wt)):e.name==="clock-hands"?(i(),r("svg",Yt,Jt)):e.name==="x"?(i(),r("svg",Xt,ts)):e.name==="x-fat"?(i(),r("svg",ss,ls)):e.name==="play-button"?(i(),r("svg",as,rs)):e.name==="play-button-circled"?(i(),r("svg",cs,us)):e.name==="search"?(i(),r("svg",hs,ms)):e.name==="next-arrow"?(i(),r("svg",ps,gs)):e.name==="previous-arrow"?(i(),r("svg",ys,ws)):e.name==="up-arrow"?(i(),r("svg",Cs,$s)):e.name==="down-arrow"?(i(),r("svg",Ls,Ss)):e.name==="heart"?(i(),r("svg",Ms,zs)):e.name==="ribbon"?(i(),r("svg",Fs,Us)):e.name==="restart"?(i(),r("svg",js,Gs)):e.name==="elite-1"?(i(),r("svg",Os,qs)):e.name==="elite-2"?(i(),r("svg",Vs,Ds)):e.name==="elite-3"?(i(),r("svg",Qs,Ns)):e.name==="elite"?(i(),r("svg",Zs,Ys)):_("",!0)}},Ks={key:4,height:"15",viewBox:"0 0 18 19",class:"mr-2"},Js=s("g",{class:"fill-current","fill-rule":"nonzero"},[s("path",{d:"M13.284 10.215a.672.672 0 0 0-.475-.823L6.123 7.601a.672.672 0 1 0-.348 1.298l6.686 1.791a.672.672 0 0 0 .823-.475zM5.427 10.197a.672.672 0 1 0-.347 1.298l4.06 1.088a.672.672 0 1 0 .348-1.298l-4.06-1.088z"}),s("path",{d:"M5.283 16.837l-2.17-.581a1.346 1.346 0 0 1-.951-1.646L5.223 3.185a1.346 1.346 0 0 1 1.646-.95l7.98 2.138c.716.192 1.143.93.95 1.646l-1.069 3.992a.672.672 0 1 0 1.298.348l1.07-3.992a2.691 2.691 0 0 0-1.9-3.292L7.216.937a2.691 2.691 0 0 0-3.292 1.9L.864 14.262a2.691 2.691 0 0 0 1.9 3.292l2.171.581a.672.672 0 1 0 .348-1.298z"}),s("path",{d:"M16.425 13.477a2.018 2.018 0 0 0-2.753-.738l-4.517 2.6a.672.672 0 0 0-.235.228l-1.46 2.347a.672.672 0 0 0 .576 1.027l2.814-.024a.672.672 0 0 0 .33-.09l4.507-2.596a2.018 2.018 0 0 0 .738-2.754zm-5.763 4.098l-1.416.012.726-1.167 3.048-1.755.672 1.164-3.03 1.746zm4.354-2.508l-.16.092-.672-1.164.16-.092a.673.673 0 0 1 .672 1.164zM13.505 6.796L6.819 5.004a.672.672 0 1 0-.348 1.299l6.686 1.791a.672.672 0 1 0 .348-1.298z"})],-1),Xs=[Js],en={class:"flex-center h-full flex-shrink-0 text-wrap leading-none"},Q={__name:"Btn",props:{state:{type:String,default:"secondary"},play:{type:Boolean,default:!1},restart:{type:Boolean,default:!1},bookmark:{type:Boolean,default:!1},checkmark:{type:Boolean,default:!1},quiz:{type:Boolean,default:!1},is:{type:String,default:"InertiaLink"},on:{type:Boolean,default:!1},small:{type:Boolean,default:!1},external:{type:Boolean,default:!1}},setup(e){let t=e,n=S(()=>t.external?"a":t.is),o=S(()=>{let l=["btn","btn-base"];return t.state==="primary"&&l.push("btn-primary"),t.state==="secondary"&&l.push("btn-secondary"),t.small&&l.push("is-small"),(t.play||t.bookmark||t.quiz||t.checkmark||t.restart||pt().icon)&&l.push("has-icon"),t.on&&l.push("active is-active"),l.join(" ")});return(l,a)=>(i(),x(be(c(n)),{class:g(c(o))},{default:p(()=>[e.play?(i(),x(F,{key:0,name:"play-button-circled",class:"mr-2"})):_("",!0),e.restart?(i(),x(F,{key:1,name:"restart",class:"mr-2"})):e.bookmark?(i(),r(w,{key:2},[e.on?(i(),x(F,{key:0,name:"checkmark-circled",class:"mr-[8px] flex-shrink-0 inline-block",width:"15"})):(i(),x(F,{key:1,name:"ribbon",class:"mr-[10px] inline-block flex-shrink-0 relative",width:"9"}))],64)):_("",!0),e.checkmark?(i(),x(F,{key:3,name:"checkmark-circled",class:"mr-[11px] flex-shrink-0",width:"15"})):_("",!0),e.quiz?(i(),r("svg",Ks,Xs)):_("",!0),L(l.$slots,"icon"),L(l.$slots,"inner",{},()=>[s("span",en,[L(l.$slots,"default")])])]),_:3},8,["class"]))}},k=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},K={__name:"Panel",props:{tag:{type:String,default:"div"},border:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!0},background:{type:[String,Boolean],default:!1},active:{type:Boolean,default:!1},activeClasses:{type:String,default:""}},setup(e){return(t,n)=>{var o,l,a;return i(),x(be(e.tag),{class:g(["panel relative transition-colors duration-300",{hoverable:e.hoverable,"px-4 lg:px-8":!((o=t.$attrs.class)!=null&&o.includes("px-")),"py-4":!((l=t.$attrs.class)!=null&&l.includes("py-")),"rounded-xl":!((a=t.$attrs.class)!=null&&a.includes("rounded-")),[e.background]:!!e.background,"has-custom-bg":e.background}])},{default:p(()=>[L(t.$slots,"default")]),_:3},8,["class"])}}},tn={props:{title:String,description:String,gradient:{type:Boolean,default:!1},size:{type:String,default:"base"}}},sn=["innerHTML"],nn=["innerHTML"],ln=["innerHTML"];function an(e,t,n,o,l,a){var d;return i(),r("header",{class:g(["container mx-auto mb-4 max-w-[800px] px-6 pb-4 text-center",((d=e.$attrs.class)==null?void 0:d.includes("text-"))||"text-white"])},[L(e.$slots,"top"),n.gradient?(i(),r("h3",{key:0,class:g(["inherits-color relative z-10 text-balance text-5xl font-semibold leading-tighter tracking-tight",n.size==="base"?"md:text-6xl":""])},[s("span",{class:"bg-gradient-to-r from-[#49dbff] to-[#0587eb] bg-clip-text",style:{"-webkit-text-fill-color":"transparent","text-fill-color":"transparent"},innerHTML:n.title},null,8,sn)],2)):(i(),r("h3",{key:1,class:g(["inherits-color relative z-10 text-balance text-3xl font-semibold leading-tighter tracking-tight",n.size==="base"?"md:text-6xl":""]),innerHTML:n.title},null,10,nn)),n.description?(i(),r("p",{key:2,class:"inherits-color mt-3 text-balance text-lg font-medium text-grey-600",innerHTML:n.description},null,8,ln)):_("",!0),L(e.$slots,"default")],2)}const on=k(tn,[["render",an]]),Y={async get(e){return this.send("get",e)},async post(e,t={}){return this.send("post",e,t)},async put(e,t={}){return this.send("put",e,t)},async patch(e,t={}){return this.send("patch",e,t)},async delete(e,t={}){return this.send("delete",e,t)},async send(e,t,n={}){return Ve({method:e,url:t,data:n})}};class rn{constructor(t,n,o="997",l="623"){return this.shouldPlaySlice=!1,this.vimeo=this.initializeVimeo(t,n,o,l),this.setDefaultSettings().addListeners(),this}initializeVimeo(t,n,o,l){let[a,d]=this.calculateStartAndEndTime();return new st(t,{id:n,speed:!0,autoplay:!0,width:o,height:l,responsive:!0,color:"328af1",pip:!0,quality:"auto",start_time:a,end_time:d,texttrack:U.get("laracasts_preferred_captions")})}setDefaultSettings(){return this.adjustVolume().adjustPlaybackRate().adjustCaptions(),this}addListeners(){this.on("volumechange",({volume:t})=>{this.recordVolume(t)}),this.on("ended",()=>{U.remove(location.pathname+"-progress")}),this.on("texttrackchange",t=>{t.language?U.set("laracasts_preferred_captions",t.language):U.remove("laracasts_preferred_captions")}),this.whenPlaybackRateChanges(this.adjustPlaybackRate)}on(t,n){this.vimeo.on(t,n)}async changeVideo(t){return this.vimeo.loadVideo({id:t,autoplay:!0})}play(){return this.vimeo.play()}pause(){return this.vimeo.pause()}destroy(){this.vimeo.unload()}whenPlaybackRateChanges(t){setInterval(()=>{let n=U.get("laracasts_playback_speed")||1;this.playbackRate(o=>{o!==n&&t.call(this,o)})},5e3)}currentTime(t){return this.vimeo.getCurrentTime().then(t)}setCurrentTime(t){this.vimeo.setCurrentTime(t)}recordVolume(t){return U.set("laracasts_volume",t),this}adjustVolume(t){return t||(t=U.get("laracasts_volume")||1),this.vimeo.setVolume(t),this}playbackRate(t){this.vimeo.getPlaybackRate().then(t)}adjustPlaybackRate(t){let n="laracasts_playback_speed";return t||(t=U.get(n)||1),this.vimeo.setPlaybackRate(t),U.set(n,t),this}adjustCaptions(){let t="laracasts_preferred_captions";return U.get(t)?this.vimeo.enableTextTrack(U.get(t)):this.vimeo.disableTextTrack(),this}calculateStartAndEndTime(){let t=$e.parse(window.location.search),n=!1,o=!1;return t.start&&(t.slice=t.start),t.end&&(t.start?t.slice+=","+t.end:t.slice="0,"+t.end),t.slice?(this.shouldPlaySlice=!0,[n,o]=t.slice.split(","),[n,o].map(l=>{if(!l)return!1;let a=l.split(":").filter(d=>d);return a.length===1&&(a=[0,a[0]]),parseInt(a[0])*60+parseInt(a[1])})):[!1,!1]}}let D;const cn={data(){return{lesson:!1,lessonUrl:"",firstTimePlaying:!0,startPlayingTimeout:null}},computed:{prefersFloat(){var e,t;return((t=(e=this.currentUser)==null?void 0:e.settings)==null?void 0:t.float_video_player)??!0},prefersAutoplay(){var e,t;return((t=(e=this.currentUser)==null?void 0:e.settings)==null?void 0:t.autoplay_next_video)??!0},float(){return!this.prefersFloat||this.isVideoPage?!1:!!this.recentlyWatchedInStorage()},vimeoId(){var e;return((e=this.lesson)==null?void 0:e.vimeoId)??!1}},async mounted(){await this.$nextTick(),this.dispatcher.on("currentVideo",({lesson:e,lessonUrl:t})=>{e.vimeoId?this.loadAndPlay(e,t):this.reset()}),window.addEventListener("popstate",()=>{!this.float&&!this.isVideoPage&&this.markAsClosed()}),this.isVideoPage||this.recentlyWatchedInStorage()&&this.dispatcher.emit("currentVideo",this.recentlyWatchedInStorage()),this.dispatcher.on("logout",this.reset),document.addEventListener("inertia:start",()=>{(!this.prefersFloat||!this.recentlyWatchedInStorage())&&(clearTimeout(this.startPlayingTimeout),D&&D.vimeo.pause())}),this.dispatcher.on("video.update_time",e=>{D.setCurrentTime(e),D.play()}),this.dispatcher.on("video.pause",()=>{if(!D)return setTimeout(()=>{this.dispatcher.emit("video.pause")},300);D.pause()})},methods:{markAsPlaying(){this.prefersFloat&&(this.startPlayingTimeout=setTimeout(()=>{U.set("currentVideo",{lesson:this.lesson,lessonUrl:this.lessonUrl})},3e3))},markAsStopped(e=!1){clearTimeout(this.startPlayingTimeout),this.prefersFloat&&(this.isVideoPage||e)&&U.remove("currentVideo")},markAsClosed(){this.reset()},reset(){this.markAsStopped(!0),this.lesson=null,this.lessonUrl=null,D&&(D.vimeo.pause(),D.destroy(),D=null)},async loadAndPlay(e,t){if(this.firstTimePlaying=!0,t!==this.lessonUrl){if(this.lesson=e,this.lessonUrl=t,await this.$nextTick(),D){await D.changeVideo(this.vimeoId),D.setDefaultSettings();return}D=new rn("laracasts-video",this.vimeoId),this.adjustStartTime(D),this.registerVimeoEvents(D)}},registerVimeoEvents(e){e.on("play",()=>{this.markAsPlaying(),this.firstTimePlaying&&(this.incrementViewCount(e),this.signedIn&&this.recordViewingForUser(e),this.lesson.series.id===192&&window.fathom.trackEvent("phpstorm-series-view")),this.firstTimePlaying=!1}),e.on("pause",()=>{this.markAsStopped()}),e.on("ended",()=>{this.markAsStopped(),!e.shouldPlaySlice&&this.prepareForNextVideo()}),e.on("timeupdate",nt(t=>{t.percent!==1&&this.lesson&&(U.set(`episodes/${this.lesson.id}:progress`,t),this.dispatcher.emit("video.time_update",t))},1e3))},adjustStartTime(e){if(e.shouldPlaySlice)return!1;let t=U.get(`episodes/${this.lesson.id}:progress`)??{};e.setCurrentTime(parseInt(t.seconds??0))},incrementViewCount(e){e.currentTime(t=>{t>2||Y.put(`/api/videos/${this.lesson.id}`,{updateCount:!0})})},recordViewingForUser(e){e.currentTime(t=>{t>2||Y.post(`/api/watching/${this.lesson.id}`)})},async prepareForNextVideo(){let e=await Y.get(`${this.lessonUrl}/next`);if(!e.data.data){this.flashOverlay({title:"Lesson Complete",text:"Great job! That's it for now. Check back often for new episodes.",buttons:[!1,"Close"],icon:"success"}),this.float&&this.markAsClosed(),this.dispatcher.emit("videoEnded",!1);return}if(this.float)return this.dispatcher.emit("currentVideo",{lesson:e.data.data,lessonUrl:e.data.url.replace(location.origin,"")});this.showNextEpisodeCountdownModal(t=>{let n=!1;t.confirmed&&this.prefersAutoplay&&(n=!0),this.dispatcher.emit("videoEnded",n)})},showNextEpisodeCountdownModal(e){let t;if(this.prefersAutoplay)t="Advancing to the next episode in 3 seconds...";else{let n=["Great work! Keep it up.","Excellent job. Don't stop now!","Nice job. You got this!","And...scene. Onward to the next episode!","You made it to the end. Nice work!"];t=n[Math.floor(Math.random()*n.length)]}this.flashOverlay({title:"Lesson Complete",text:t,timer:3500,icon:"success",buttons:["Cancel","Next Episode!"]}).then(e),this.prefersAutoplay&&setTimeout(()=>{let n=document.querySelector("#flash-dialog .timer-count"),o=+n.innerHTML,l=()=>{if(o>1)return n.innerHTML=--o,setTimeout(l,1e3)};setTimeout(l,1e3)},500)},recentlyWatchedInStorage(){return U.get("currentVideo")}}},dn={class:"video-main container relative mx-auto flex justify-center w-auto"},un={class:"mb-2 flex h-10 justify-between"},hn=["src"],fn={class:"flex-1"},mn={class:"flex items-center text-2xs"};function pn(e,t,n,o,l,a){var h,y,C,B,b,$;const d=v("Icon");return l.lesson?j((i(),r("section",{key:0,id:"laracasts-video-wrap",class:g(["max-w-none px-4 py-0",a.float?"bg-deep-black":"bg-card-900"])},[s("div",dn,[s("div",{class:g(a.float?"fixed bottom-6 z-1000 md:right-6":"flex-1 overflow-hidden")},[j(s("div",un,[s("div",{class:g(["ml-auto mr-3 flex flex-1 items-center rounded-full px-4 text-white",`bg-gradient-to-l from-${((C=(y=(h=l.lesson.series)==null?void 0:h.taxonomy)==null?void 0:y.name)==null?void 0:C.toLowerCase())||"frameworks"}-light to-${(($=(b=(B=l.lesson.series)==null?void 0:B.taxonomy)==null?void 0:b.name)==null?void 0:$.toLowerCase())||"frameworks"}`]),style:{"max-width":"500px"}},[s("img",{src:l.lesson.series?l.lesson.series.thumbnail:l.lesson.thumbnail,alt:"",width:"25",height:"25",class:"mr-2"},null,8,hn),s("h4",fn,[s("button",{class:"flex w-full items-center justify-between text-xs font-semibold text-white",onClick:t[0]||(t[0]=T=>e.$inertia.visit(l.lessonUrl))},[s("span",null,f(l.lesson.title.substr(0,25)+(l.lesson.title.length>25?"...":"")),1),s("span",mn,[u(d,{name:"book",class:"mr-1"}),m(" Episode "+f(l.lesson.position),1)])])])],2),s("button",{class:"flex h-10 w-10 items-center justify-center rounded-full bg-grey-800 text-white transition-all hover:bg-blue",onClick:t[1]||(t[1]=(...T)=>a.markAsClosed&&a.markAsClosed(...T))},[u(d,{name:"x",width:"20"})])],512),[[q,a.float]]),s("div",{class:g(a.float?"z-1000 overflow-hidden rounded-xl bg-white shadow-lg":"")},[s("div",{id:"laracasts-video",class:g({"!my-4 mx-auto max-w-[1400px] overflow-hidden rounded-xl border border-card-default":!a.float}),style:V(a.float?"overflow: auto; resize: horizontal; direction: rtl; width: 400px; max-width: 90vw;":"")},null,6)],2)],2)])],2)),[[q,l.lesson&&l.lesson.viewingStatus.watchable&&(e.isVideoPage||a.float)]]):_("",!0)}const _5=k(cn,[["render",pn]]);function xn(){Pe("[data-tooltip]",{theme:"light",allowHTML:!0,delay:[200,null],content(e){return e.getAttribute("data-tooltip")}}),Pe("[data-tooltip-template]",{content(e){const t=e.getAttribute("data-tooltip-template");return document.getElementById(t).innerHTML},allowHTML:!0,theme:"light",delay:[200,null]})}const _n={props:{achievement:{type:Object,required:!0},delay:{type:Number,required:!0}},data(){return{icon:"",isVisible:!0}},computed:{achievementLevelClass(){return{beginner:"is-beginner",intermediate:"is-intermediate",advanced:"is-advanced"}[this.achievement.level]}},watch:{achievement:{handler(){setTimeout(this.show,this.delay)},deep:!0,immediate:!0}},methods:{hide(){this.$el.style.transform="translateX(300px)"},show(){this.$el.style.transform="translateX(0)"}}},gn=["src","alt"],yn={class:"relative flex-1"},vn=s("h5",{class:"mb-1 text-base font-semibold"},"You leveled up!",-1),bn={class:"text-xs"},wn={class:"font-normal"},Cn=["textContent"];function kn(e,t,n,o,l,a){const d=v("Panel");return j((i(),x(d,{background:"bg-card-900",style:{width:"275px",transform:"translateX(300px)","box-shadow":"0 0 15px 0 rgba(0, 0, 0, 0.25)"},class:"achievement-notification transition-ease-out fade-in group z-1000 mt-5 flex transform items-center rounded-xl px-4 py-3 transition-all duration-300"},{default:p(()=>[s("div",{class:g(["achievement has-been-awarded mr-4",a.achievementLevelClass]),style:{width:"50px",height:"50px"}},[s("img",{src:"/images/badges/"+n.achievement.icon,width:"50",height:"53",alt:`${n.achievement.name} Achievement Badge`},null,8,gn)],2),s("div",yn,[s("button",{class:"absolute right-0 top-0 z-10 cursor-pointer rounded-xl bg-card-500 px-3 py-1 font-medium text-card-200 transition-colors duration-300 hover:card-300",style:{"font-size":"8px"},onClick:t[0]||(t[0]=(...h)=>a.hide&&a.hide(...h))}," Close "),vn,s("p",bn,[s("span",wn,[m(" You unlocked the "),s("strong",{class:g(["achievement-notification-name","is-"+n.achievement.level]),textContent:f(n.achievement.name)},null,10,Cn),m(" badge! "+f(n.achievement.description),1)])])])]),_:1},512)),[[q,l.isVisible]])}const $n=k(_n,[["render",kn]]),Ln={components:{AchievementNotification:$n},setup(){if(typeof window>"u")return{achievements:[]};let e=M([]),t=()=>{if(me().props.auth.user)return Y.get("/unlocked-achievements").then(({data:n})=>e.value=n)};return we(ee.on("success",t)),{achievements:e}}},Bn={key:0,class:"fixed bottom-6 right-6 z-100 flex flex-col-reverse"};function Sn(e,t,n,o,l,a){const d=v("AchievementNotification");return o.achievements.length?(i(),r("div",Bn,[(i(!0),r(w,null,A(o.achievements,(h,y)=>(i(),x(d,{key:h.id,achievement:h,delay:y===0?500:500*(y+1)*.7},null,8,["achievement","delay"]))),128))])):_("",!0)}const g5=k(Ln,[["render",Sn]]),Mn=["textContent"],y5={__name:"ScreenSizeDebug",setup(e){let t=M("mobile");I(()=>{window.addEventListener("resize",n,{passive:!0}),n()});function n(){const l={mobile:0,md:768,lg:992,xl:1200,"2xl":1350,widescreen:1500,xlwidescreen:1700};t.value=Object.keys(l).reverse().find(a=>window.innerWidth>=l[a])}function o(){return window.location.host==="laracasts.test"}return(l,a)=>o()?(i(),r("div",{key:0,class:"flex-center fixed bottom-2 left-2 z-1000 h-12 rounded-md bg-blue px-4 py-2 font-grotesk text-lg font-semibold text-white",style:{"min-width":"100px"},textContent:f("@screen "+c(t))},null,8,Mn)):_("",!0)}},An={},zn={width:"71",viewBox:"0 0 71 62",fill:"none"},Fn=s("path",{d:"M16.536 25.15 31.064 0h8.634L71 54.217l-4.064 7.038H19.51l7.612-13.184 25.108.001-16.837-29.165-3.622 6.243H16.536z",fill:"#fff"},null,-1),Tn=s("path",{d:"M12.258 32.584h15.235l-16.615 28.72H4.345L0 53.778l12.258-21.194z",fill:"#53B5FF"},null,-1),Un=[Fn,Tn];function jn(e,t){return i(),r("svg",zn,Un)}const Pn=k(An,[["render",jn]]),In={key:0,class:"announcement section max-w-none overflow-hidden bg-card-default py-0 text-center text-sm text-grey-600 md:h-[50px] lg:z-50","data-js":"announcement"},Gn={class:"container flex h-full items-center justify-center",style:{"max-width":"800px"}},On=["innerHTML"],Hn={key:1,class:"font-medium"},qn=["innerHTML"],v5={__name:"Announcement",props:{announcement:Object},setup(e){I(()=>{window.fathom.trackEvent("top-ad-impression")});function t(){window.fathom.trackEvent("top-ad-click")}return(n,o)=>{const l=v("InertiaLink");return e.announcement.shouldDisplay?(i(),r("div",In,[s("div",Gn,[e.announcement.link?(i(),r(w,{key:0},[u(Pn,{width:"20",class:"hidden md:inline-block"}),u(l,{href:e.announcement.link,class:"py-4 font-medium hover:underline ml-4 lg:ml-3 md:py-0 text-left",onClick:t},{default:p(()=>[s("span",{innerHTML:e.announcement.message},null,8,On)]),_:1},8,["href"]),u(Q,{state:"primary",small:"",href:e.announcement.link,class:"ml-4 hidden px-4 py-xs !text-white md:inline"},{default:p(()=>[m(" Check it Out ")]),_:1},8,["href"])],64)):(i(),r("p",Hn,[s("span",{innerHTML:e.announcement.message},null,8,qn)]))])])):_("",!0)}}};let{overlay:Be}=zt();const Vn={data(){return{show:!0,message:!1}},watch:{"$page.props.flash.success":{handler(e){e&&this.flash(e)},deep:!0},"$page.props.flash.overlay":{handler(e){e&&Be(e)},deep:!0}},mounted(){this.dispatcher.on("flash",e=>this.flash(e)),this.$page.props.flash.overlay&&Be(this.$page.props.flash.overlay)},methods:{flash(e){this.message=e,this.show=!0,setTimeout(()=>this.show=!1,3500)},flashOverlay(e={}){return e.buttons||(e.buttons=[!1,"OK"]),Be(e)}}},En={key:0,"data-js":"flash",class:"fixed bottom-0 right-0 z-1000 mb-5 mr-5 rounded-xl bg-blue-400 px-8 py-4 text-white shadow"},Dn=["innerHTML"];function Qn(e,t,n,o,l,a){return i(),x(_e,{"enter-active-class":"transition duration-300 transform ease-out","enter-from-class":"translate-x-full opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-200 transform ease-out","leave-from-class":"opacity-100","leave-to-class":"translate-x-full opacity-0"},{default:p(()=>[l.message&&l.show?(i(),r("div",En,[s("h1",{innerHTML:l.message},null,8,Dn)])):_("",!0)]),_:1})}const b5=k(Vn,[["render",Qn]]),P={__name:"LazyImg",setup(e){let t=M(null);return I(()=>{t.value.addEventListener("load",n=>n.target.classList.remove("lazy"))}),(n,o)=>(i(),r("img",{ref_key:"img",ref:t,loading:"lazy",class:"lazy"},null,512))}},Rn={},Nn={width:"275",height:"29",viewBox:"0 0 275 29",fill:"none"},Zn=s("path",{d:"M261.632 28.907c-8.259 0-12.614-2.936-12.582-9.291h5.807c.226 2.548 2.323 4.162 6.775 4.194 4.195 0 6.485-1.42 6.485-3.55 0-1.87-1.516-2.806-4.742-3.354l-3.356-.581c-5.13-.903-10.227-2.258-10.227-8.163 0-5.13 4.323-8.162 11.905-8.162 7.065 0 11.969 2.484 12.034 9.195h-5.775c-.42-2.452-2.323-4.098-6.388-4.098-3.678 0-5.614 1.259-5.614 3.356 0 1.645 1.323 2.678 4.098 3.194l2.935.516c5.162.936 11.518 1.807 11.518 8.291 0 5.388-4.42 8.453-12.873 8.453zM245.015.904V6.29h-10.163v21.713H228.4V6.291h-10.131V.904h26.746zM201.712 28.907c-8.259 0-12.614-2.936-12.582-9.291h5.807c.226 2.548 2.323 4.162 6.775 4.194 4.195 0 6.485-1.42 6.485-3.55 0-1.87-1.516-2.806-4.742-3.354l-3.356-.581c-5.129-.903-10.227-2.258-10.227-8.163 0-5.13 4.323-8.162 11.905-8.162 7.065 0 11.969 2.484 12.034 9.195h-5.775c-.42-2.452-2.323-4.098-6.388-4.098-3.678 0-5.614 1.259-5.614 3.356 0 1.645 1.323 2.678 4.098 3.194l2.935.516c5.162.936 11.518 1.807 11.518 8.291 0 5.388-4.42 8.453-12.873 8.453zM137.862 28.907c-8.775 0-14.84-5.936-14.84-14.453 0-8.518 6.065-14.454 14.84-14.454 5.937 0 12.034 2.646 13.357 10.614h-6.162c-1.161-3.484-3.839-5.033-7.195-5.033-4.807 0-8.485 3.646-8.485 8.873 0 5.194 3.678 8.872 8.485 8.872 3.356 0 6.034-1.549 7.195-5.065h6.162c-1.323 8-7.356 10.646-13.357 10.646zM114.405 28.004l-1.678-4.549H99.371l-1.678 4.55h-6.646L101.532.903h9.034l10.517 27.1h-6.678zm-13.228-9.42h9.744L106.662 7h-1.226l-4.259 11.582zM87.247 28.004h-6.388l-4.452-8.065h-8.744v8.065h-6.42V.904h14.228c7.259 0 11.098 3.387 11.098 9.71 0 3.775-1.839 6.518-4.613 8.034l5.29 9.356zM67.663 6.292v8.71h7.453c3.259 0 5.065-1.484 5.065-4.355 0-2.871-1.806-4.355-5.065-4.355h-7.453zM49.684 28.004l-1.677-4.549H34.65l-1.678 4.55h-6.646L36.812.903h9.033l10.518 27.1h-6.679zm-13.227-9.42H46.2L41.94 7h-1.226l-4.258 11.583zM0 28.004V.904h6.42v21.712h15.615v5.388H0zM161.708 11.998 168.141.862h3.823l13.86 24.006-1.799 3.116h-21l3.37-5.837h11.117l-7.455-12.913-1.604 2.764h-6.745z",fill:"#fff"},null,-1),Wn=s("path",{d:"M159.814 15.29h6.745l-7.357 12.716h-2.892l-1.924-3.332 5.428-9.385z",fill:"#53B5FF"},null,-1),Yn=[Zn,Wn];function Kn(e,t){return i(),r("svg",Nn,Yn)}const w5=k(Rn,[["render",Kn]]),Jn={},Xn={viewBox:"0 0 16 19",class:"transition-all"},ei=s("g",{class:"fill-current","fill-rule":"nonzero"},[s("path",{d:"M6.4 0H5.371l-.685 2.629L4 0H2.857c.229.686.457 1.257.686 1.943.343.914.571 1.714.571 2.171v2.743h1.029V4.114L6.4 0zm2.743 5.143V3.429c0-.572-.114-.915-.343-1.258-.229-.342-.571-.457-1.029-.457-.457 0-.8.229-1.028.572-.229.228-.343.571-.343 1.143v1.828c0 .572.114.914.343 1.143.228.343.571.457 1.028.457.458 0 .8-.228 1.029-.571.229-.115.343-.572.343-1.143zm-.914.228c0 .458-.115.686-.458.686-.342 0-.457-.228-.457-.686V3.2c0-.457.115-.686.457-.686.343 0 .458.229.458.686v2.171zm4.342 1.486V1.714h-.914V5.6c-.228.343-.343.457-.571.457a.246.246 0 0 1-.229-.228V1.714h-.914v4c0 .343 0 .572.114.8 0 .229.229.343.572.343.342 0 .685-.228 1.028-.571v.571h.914zM13.029 12c-.343 0-.458.229-.458.686v.457h.915v-.457c0-.457-.115-.686-.457-.686zM9.714 12c-.114 0-.343.114-.457.229v3.085c.114.115.343.229.457.229.229 0 .343-.229.343-.686v-2.171c0-.457-.114-.686-.343-.686z"}),s("path",{d:"M15.314 9.486C15.086 8.686 14.4 8 13.714 8 11.886 7.771 9.943 7.771 8 7.771c-1.943 0-3.771 0-5.714.229-.686 0-1.372.686-1.6 1.486-.229 1.143-.229 2.4-.229 3.543 0 1.142 0 2.4.229 3.542.228.8.8 1.372 1.6 1.486 1.943.229 3.771.229 5.714.229 1.943 0 3.771 0 5.714-.229.8-.114 1.486-.686 1.6-1.486.229-1.142.229-2.4.229-3.542 0-1.143 0-2.4-.229-3.543zM4.8 10.514H3.657v5.829H2.63v-5.829H1.6V9.486h3.2v1.028zm2.743 5.829h-.914v-.572c-.343.458-.686.572-1.029.572-.343 0-.457-.114-.571-.343 0-.114-.115-.343-.115-.8v-4h.915v4c0 .114.114.229.228.229.229 0 .343-.115.572-.458V11.2h.914v5.143zm3.428-1.6c0 .457 0 .8-.114 1.028-.114.343-.343.572-.686.572-.342 0-.685-.229-.914-.572v.458h-.914V9.486h.914v2.171c.343-.343.572-.571.914-.571.343 0 .572.228.686.571.114.229.114.572.114 1.029v2.057zm3.429-.8h-1.829v.914c0 .457.115.686.458.686.228 0 .342-.114.457-.343v-.571h.914V15.314c0 .229-.114.343-.229.572-.228.343-.571.571-1.142.571-.458 0-.8-.228-1.143-.571-.229-.229-.343-.686-.343-1.143v-1.714c0-.572.114-.915.228-1.143.229-.343.572-.572 1.143-.572.457 0 .8.229 1.029.572.228.228.228.685.228 1.143v.914h.229z"})],-1),ti=[ei];function si(e,t){return i(),r("svg",Xn,ti)}const C5=k(Jn,[["render",si]]),ni={},ii={class:"transition-all",viewBox:"0 0 23 20",fill:"none"},li=s("path",{d:"m.759 0 8.24 11.018-8.292 8.958h1.866l7.26-7.843 5.866 7.843h6.35L13.347 8.338 21.064 0h-1.866l-6.686 7.223L7.11 0H.759zm2.745 1.375H6.42L19.305 18.6h-2.918L3.504 1.375z",class:"fill-current"},null,-1),ai=[li];function oi(e,t){return i(),r("svg",ii,ai)}const ri=k(ni,[["render",oi]]),ci={},di={viewBox:"0 0 30 29",class:"transition-all"},ui=s("path",{class:"fill-current","fill-rule":"nonzero",d:"M27.959 7.434a14.866 14.866 0 0 0-5.453-5.414C20.21.69 17.703.025 14.984.025c-2.718 0-5.226.665-7.521 1.995A14.864 14.864 0 0 0 2.01 7.434C.67 9.714 0 12.202 0 14.901c0 3.242.953 6.156 2.858 8.746 1.906 2.589 4.367 4.38 7.385 5.375.351.064.611.019.78-.136a.755.755 0 0 0 .254-.58l-.01-1.047c-.007-.658-.01-1.233-.01-1.723l-.448.077a5.765 5.765 0 0 1-1.083.068 8.308 8.308 0 0 1-1.356-.136 3.04 3.04 0 0 1-1.308-.58c-.403-.304-.689-.701-.858-1.192l-.195-.445a4.834 4.834 0 0 0-.614-.988c-.28-.362-.563-.607-.85-.736l-.136-.097a1.428 1.428 0 0 1-.253-.233 1.062 1.062 0 0 1-.176-.271c-.039-.09-.007-.165.098-.223.104-.059.292-.087.566-.087l.39.058c.26.052.582.206.965.465.384.258.7.594.947 1.007.299.53.66.933 1.082 1.21.423.278.85.417 1.278.417.43 0 .8-.032 1.112-.097a3.9 3.9 0 0 0 .878-.29c.117-.866.436-1.53.956-1.996a13.447 13.447 0 0 1-2-.348 7.995 7.995 0 0 1-1.833-.756 5.244 5.244 0 0 1-1.571-1.298c-.416-.516-.758-1.195-1.024-2.034-.267-.84-.4-1.808-.4-2.905 0-1.563.514-2.893 1.541-3.99-.481-1.176-.436-2.493.137-3.952.377-.116.936-.03 1.678.261.741.291 1.284.54 1.629.746.345.207.621.381.83.523a13.948 13.948 0 0 1 3.745-.503c1.288 0 2.537.168 3.747.503l.741-.464c.507-.31 1.106-.595 1.795-.853.69-.258 1.216-.33 1.58-.213.586 1.46.638 2.777.156 3.951 1.028 1.098 1.542 2.428 1.542 3.99 0 1.099-.134 2.07-.4 2.916-.267.846-.611 1.524-1.034 2.034-.423.51-.95.94-1.58 1.288a8.01 8.01 0 0 1-1.834.756c-.592.155-1.259.271-2 .349.676.58 1.014 1.498 1.014 2.75v4.087c0 .232.081.426.244.58.163.155.42.2.77.136 3.019-.994 5.48-2.786 7.386-5.375 1.905-2.59 2.858-5.504 2.858-8.746 0-2.698-.671-5.187-2.01-7.466z"},null,-1),hi=[ui];function fi(e,t){return i(),r("svg",di,hi)}const mi=k(ci,[["render",fi]]),pi={},xi={viewBox:"0 0 28 28",fill:"none",class:"transition-all"},_i=s("path",{d:"M22.8539 7.80051C21.6888 7.55128 20.6337 6.93642 19.8425 6.04556C19.0513 5.15469 18.5654 4.03441 18.4555 2.84801V2.33351H14.4364V18.2842C14.4339 18.9903 14.2102 19.678 13.7968 20.2504C13.3833 20.8229 12.8009 21.2514 12.1313 21.4758C11.4618 21.7002 10.7387 21.7092 10.0638 21.5014C9.3889 21.2937 8.79603 20.8797 8.36854 20.3177C7.9344 19.7462 7.69357 19.0513 7.68098 18.3338C7.66838 17.6162 7.88468 16.9133 8.2985 16.327C8.71231 15.7406 9.30214 15.3014 9.98244 15.0728C10.6627 14.8443 11.3982 14.8384 12.082 15.056V10.9727C10.557 10.7619 9.00427 11.033 7.64094 11.7481C6.27762 12.4633 5.17191 13.5866 4.47849 14.9611C3.78507 16.3356 3.53862 17.8925 3.7736 19.414C4.00858 20.9354 4.71325 22.3454 5.78904 23.4467C6.81495 24.4964 8.1304 25.2166 9.56747 25.5153C11.0045 25.8141 12.498 25.6778 13.8573 25.1239C15.2166 24.57 16.38 23.6237 17.199 22.4056C18.018 21.1876 18.4554 19.7531 18.4555 18.2853V10.135C20.0798 11.2962 22.0274 11.9189 24.024 11.9153V7.92184C23.6308 7.92233 23.2386 7.88166 22.8539 7.80051Z",fill:"#BAD9FC"},null,-1),gi=[_i];function yi(e,t){return i(),r("svg",xi,gi)}const k5=k(pi,[["render",yi]]),vi={__name:"DialogClose",emits:["close"],setup(e,{emit:t}){let n=t;return(o,l)=>(i(),x(Q,{is:"button","data-js":"dialog-close",class:"pin-0 absolute right-5 top-5 z-10 flex items-center justify-center focus-visible:outline-none focus-visible:ring md:right-[20px] md:top-[20px] w-10 h-10 px-4",onClick:l[0]||(l[0]=a=>c(n)("close"))},{default:p(()=>[u(F,{name:"x",width:"14"})]),_:1}))}},bi=["id","open","data-js","onKeydown"],wi={class:"my-auto flex-1"},Ci=Object.assign({inheritAttrs:!1},{__name:"Dialog",props:{id:{type:String,required:!0},width:{type:String,default:"100%"},maxWidth:{type:String,default:"800px"},maximize:{type:Boolean,default:!1},animationIn:{type:String,default:"slideUp"},height:{type:String,default:"max-content"},showCloseButton:{type:Boolean,default:!0},autofocus:{type:[String,Boolean]},blurred:{type:Boolean,default:!0},inert:{type:Boolean,default:!0},closeOnSuccess:{type:[String,Boolean],default:!0},anchor:{type:String,default:"middle"}},emits:["opened","closed"],setup(e,{expose:t}){Me(h=>({"5d41eeae":e.maxWidth,"1508de64":e.height,"3fdff6fc":e.animationIn}));let n=e,{open:o,close:l}=Ne(xt()).listen(),a=M(null);n.autofocus&&J(o,h=>{h&&setTimeout(()=>{a.value.querySelector("[name="+n.autofocus+"]").focus()},750)}),I(()=>{a.value.style.maxHeight="calc(var(--vh, 1vh) * 100)"});function d(){l()}return t({open:o,close:l}),ee.on("success",function(){n.closeOnSuccess&&o.value&&l()}),(h,y)=>(i(),x(Ee,{to:"body"},[s("dialog",te({id:e.id,ref_key:"dialog",ref:a,class:["overflow-auto hide-scrollbar bg-card-default py-6 text-white md:rounded-2xl md:border md:border-card-default md:py-9 md:shadow-lg",{maximize:e.maximize,"md:mt-0":e.anchor==="top","md:my-auto":e.anchor==="middle","md:mb-0":e.anchor==="bottom",blurred:e.blurred===!0}],style:{width:e.width},open:c(o),"data-js":e.id},h.$attrs,{onKeydown:Ae(O(d,["prevent"]),["esc"]),onClick:y[0]||(y[0]=C=>C.target===c(a)&&c(l)())}),[L(h.$slots,"inner",{},()=>[s("div",wi,[e.showCloseButton?(i(),x(vi,{key:0,onClose:c(l)},null,8,["onClose"])):_("",!0),L(h.$slots,"default",{open:c(o),close:c(l)})])])],16,bi)]))}}),ki={};function $i(e,t){var n;return i(),r("div",{class:g(["dialog-main",{"px-8 md:px-12":!((n=e.$attrs.class)!=null&&n.includes("px-"))}])},[L(e.$slots,"default")],2)}const Li=k(ki,[["render",$i]]);class ze{static async plans(t){return(await Y.get("/api/plans?coupon="+t)).data}static colors(){return{frameworks:"#EC454F",red:"#EC454F",languages:"#F8B02B",yellow:"#F8B02B",tooling:"#9A67DC",purple:"#9A67DC",techniques:"#459FFB",blue:"#459FFB",testing:"#6CC8A3",green:"#6CC8A3",devops:"#5F77A1",metal:"#5F77A1"}}}const Bi={components:{Panel:K,Btn:Q},props:{plan:{},name:String,button:{},link:{},highlight:{type:Boolean,default:!1}},data(){return{interval:"yearly",teamCount:2}},computed:{querystring(){let e=$e.parse(window.location.search),t={plan:this.plan.kind};return this.interval==="yearly"&&this.plan.kind!=="forever"&&(t.plan=this.plan.kind==="monthly"?"yearly":"team_yearly"),this.plan.category==="business"&&(t.quantity=this.teamCount),e.coupon&&(t.coupon=e.coupon),t},frequencyPrice(){return this.interval==="monthly"?this.plan.discounted?this.plan.discountedPrice:this.plan.price:this.plan.discounted?this.plan.discountedTogglePrice:this.plan.togglePrice}},methods:{formattedPrice(e){return this.plan.category==="business"?"$"+Math.round(e*this.teamCount/100).toLocaleString("en-US"):"$"+Math.round(e/100).toLocaleString("en-US")}}},Si={style:{minWidth:"240px"},class:"w-full widescreen:h-[500px]"},Mi={class:"flex h-full w-full flex-col justify-around"},Ai={class:"mb-4 flex items-center"},zi={class:"flex gap-x-1"},Fi={class:"text-right text-base font-bold tracking-wide"},Ti={key:0,class:"font-inter relative block text-2xs font-medium tracking-tight text-white",style:{top:"-3px"}},Ui={key:0,class:"flex flex-wrap justify-end gap-x-2"},ji={class:"plan-slash font-inter relative flex items-baseline self-center text-xl font-medium text-blue/25"},Pi=["textContent"],Ii={class:"font-inter relative flex items-baseline text-blue-400"},Gi=["textContent"],Oi={key:1,class:"font-inter relative flex items-baseline text-blue-400"},Hi=["textContent"],qi={class:"mb-6 text-2xl widescreen:text-[30px] font-semibold tracking-wide"},Vi=["src","alt"],Ei=["innerHTML"],Di={key:0,class:"mx-4 flex justify-center gap-x-1",style:{"margin-bottom":"-10px"}},Qi=["value"];function Ri(e,t,n,o,l,a){const d=v("Btn"),h=v("InertiaLink"),y=v("Panel");return i(),r("div",Si,[u(y,{hoverable:!1,class:g([{[n.highlight?"border-blue":"border-none"]:!0},"plan group relative z-10 mx-auto mb-5 flex h-full w-full border px-6 py-5 text-center transition-colors duration-300 hover:border-blue lg:mb-0 relative"]),"data-js":`plan-card-${n.plan.kind}`},{default:p(()=>[s("div",Mi,[s("div",Ai,[s("div",zi,[n.plan.name==="Forever"?(i(),x(d,{key:0,is:"button",class:"rounded-xl px-3 py-2 text-sm font-medium h-8 widescreen:h-10",transparent:"",on:""},{default:p(()=>[m(" Forever ")]),_:1})):(i(),r(w,{key:1},[u(d,{is:"button",class:"rounded-xl px-3 py-2 text-sm font-medium h-8 widescreen:h-10",on:l.interval==="monthly",transparent:"",onClick:t[0]||(t[0]=O(C=>l.interval="monthly",["prevent"]))},{default:p(()=>[m(" Monthly ")]),_:1},8,["on"]),u(d,{is:"button",on:l.interval==="yearly",class:"rounded-xl px-3 py-2 text-sm font-medium h-8 widescreen:h-10",transparent:"",onClick:t[1]||(t[1]=O(C=>l.interval="yearly",["prevent"]))},{default:p(()=>[m(" Yearly ")]),_:1},8,["on"])],64))]),s("div",{class:g([n.plan.discounted?"is-discounted":"","plan-price relative ml-auto text-2xl font-medium leading-none tracking-tight"])},[s("div",Fi,[n.plan.discounted?(i(),r("span",Ti,f(n.plan.discountedPercentage)+"% Off ",1)):_("",!0)]),n.plan.discounted?(i(),r("div",Ui,[s("div",ji,[s("span",{textContent:f(a.formattedPrice(l.interval==="monthly"?n.plan.price:n.plan.togglePrice))},null,8,Pi)]),s("div",Ii,[s("span",{"data-js":"price",textContent:f(a.formattedPrice(a.frequencyPrice))},null,8,Gi)])])):(i(),r("div",Oi,[s("span",{"data-js":"price",textContent:f(a.formattedPrice(a.frequencyPrice))},null,8,Hi)]))],2)]),s("h5",qi,[u(h,{href:n.link,data:a.querystring,class:"inherits-color"},{default:p(()=>[m(f(n.name)+" Plan ",1)]),_:1},8,["href","data"])]),u(h,{href:n.link,data:a.querystring,class:"flex justify-center"},{default:p(()=>[s("img",{src:`/images/plans/sub-${n.plan.icon??"monthly"}.svg?v=6`,alt:n.name+" Plan",class:"relative widescreen:w-[200px]",loading:"lazy",style:{top:"-25px"}},null,8,Vi)]),_:1},8,["href","data"]),s("p",{class:"mx-auto -mt-3 mb-5 text-balance px-4 widescreen:text-lg",style:{"max-width":"25rem"},innerHTML:n.plan.description},null,8,Ei),n.plan.category==="business"?(i(),r("div",Di,[u(d,{is:"button",type:"button",transparent:"",class:"px-4 py-1 group-hover:bg-blue-400 font-bold text-lg hover:!bg-blue-500","aria-label":"Decrease team count",onClick:t[2]||(t[2]=C=>l.teamCount>2?l.teamCount--:2)},{default:p(()=>[m(" - ")]),_:1}),s("input",{type:"number",min:"2",max:"250",class:"plan-team-count flex-center mx-2 w-auto flex-1 flex-grow-0 rounded-lg bg-card-900 py-1 text-center",style:{width:"87px"},value:l.teamCount,onInput:t[3]||(t[3]=C=>l.teamCount=C.target.value>2&&C.target.value<=250?C.target.value:2)},null,40,Qi),u(d,{is:"button",type:"button",transparent:"",class:"px-4 py-1 group-hover:bg-blue-400 font-bold text-lg hover:!bg-blue-500","aria-label":"Increase team count",onClick:t[4]||(t[4]=C=>l.teamCount++)},{default:p(()=>[m(" + ")]),_:1})])):_("",!0),u(d,{transparent:"",checkmark:"",href:n.link,data:a.querystring,"data-js":"join-button",class:"flex-center mx-auto mt-6 w-full gap-x-1 py-4 text-base lg:mx-6 lg:w-auto h-12 widescreen:h-[60px]"},{default:p(()=>[m(f(n.button),1)]),_:1},8,["href","data"])]),s("div",null,[L(e.$slots,"right-side")])]),_:3},8,["class","data-js"])])}const Ni=k(Bi,[["render",Ri]]),Zi={components:{Panel:K,PlanCard:Ni},props:{plansClasses:{type:String,default:""},couponCode:{type:String,default:""},promoteAnnualPlans:{type:Boolean,default:!0}},data(){return{allPlans:[]}},computed:{plans(){return this.allPlans.individual||[]},individual(){return this.findPlanByName("Monthly")},forever(){return this.findPlanByName("Forever")},team(){return this.findPlanByName("Team Monthly")},coupon(){return this.couponCode||$e.parse(window.location.search).coupon}},async mounted(){this.allPlans=await ze.plans(this.coupon)},methods:{findPlanByName(e){var t;return((t=this.allPlans)==null?void 0:t.find(n=>n.name===e))||[]}}},Wi={class:"mx-auto"},Yi={key:0,class:"mb-8 text-center mobile:flex-1 md:mx-auto md:w-3/4"},Ki={key:1,class:"text-center"},Ji=s("div",{class:"flex-center font-grotesk text-lg"},[s("img",{src:"/images/settings/lary-head.svg",alt:"Lary the mascot",class:"mr-2",width:"20"}),s("p",null,[m("Save "),s("strong",{class:"text-blue-400"},"50%"),m(" with annual billing!")])],-1);function Xi(e,t,n,o,l,a){const d=v("Panel"),h=v("PlanCard");return i(),r("div",null,[s("div",Wi,[e.$slots.heading?(i(),r("div",Yi,[L(e.$slots,"heading")])):_("",!0),n.promoteAnnualPlans?(i(),r("div",Ki,[u(d,{class:"mx-auto mb-4 inline-block text-center text-sm font-medium",background:"bg-card-default"},{default:p(()=>[Ji]),_:1})])):_("",!0),s("div",{class:g(["plans grid lg:grid-cols-3 lg:justify-center gap-4 pb-6",n.plansClasses])},[(i(),x(h,{key:a.individual.id,plan:a.individual,name:"Individual",button:"Select Plan",link:"/subscription"+(n.couponCode?"?coupon="+n.couponCode:"")},null,8,["plan","link"])),(i(),x(h,{key:a.forever.id,plan:a.forever,name:a.forever.name,button:"Select Plan",highlight:!0,link:"/subscription"+(n.couponCode?"?coupon="+n.couponCode:"")},null,8,["plan","name","link"])),(i(),x(h,{key:a.team.id,plan:a.team,name:"Team",button:"Select Plan",link:"/subscription"+(n.couponCode?"?coupon="+n.couponCode:"")},null,8,["plan","link"]))],2)])])}const el=k(Zi,[["render",Xi]]),tl={key:1,class:"block text-sm text-grey-600 hover:underline"},sl={__name:"DialogButton",props:{is:{type:String,default:"button",validator:function(e){return["a","button","plain"].includes(e)}},processing:{type:Boolean,default:!1},wide:{type:Boolean,default:!1}},setup(e){let t=e,n=S(()=>{let o="focus:ring focus:ring-2 ";return t.processing&&(o+=" is-loading pointer-events-none"),t.wide?o+=" w-full mx-auto":o+="w-32 flex-1 md:flex-none",o});return(o,l)=>{const a=v("Btn");return e.is==="button"?(i(),x(a,{key:0,is:"button",state:"primary",class:g(c(n)),disabled:e.processing},{icon:p(()=>[L(o.$slots,"icon")]),default:p(()=>[L(o.$slots,"default")]),_:3},8,["class","disabled"])):e.is==="plain"?(i(),r("button",tl,[L(o.$slots,"default")])):e.is==="a"?(i(),x(a,{key:2,is:"a",class:g(c(n))},{icon:p(()=>[L(o.$slots,"icon")]),default:p(()=>[L(o.$slots,"default")]),_:3},8,["class"])):_("",!0)}}},nl={method:"dialog"},il={class:"mt-2 text-xl font-semibold"},ll=["innerHTML"],al={class:"mt-5 space-y-2"},ol={__name:"FlashDialog",setup(e){let t=M(null),n=Ce({title:"",message:"",icon:"info",buttons:["Cancel","OK"],callback:()=>{},timer:!1}),o;ke.on("flash-overlay",(d={})=>{var h;n.title=d.options.title,n.message=d.options.text,n.icon=d.options.icon??"info",n.timer=d.options.timer??0,(h=d.options).buttons??(h.buttons=["Cancel","OK"]),n.buttons=d.options.buttons,n.buttons=n.buttons.filter(y=>y),n.callback=d.callback,setTimeout(()=>{Ne().trigger("flash")},500),n.timer&&(o=setTimeout(()=>{t.value.close(),l(n.buttons[1])},n.timer))});function l(d){let h=n.buttons.length===1||d===n.buttons[1];n.callback&&n.callback(h,t.value),o&&clearTimeout(o)}function a(){Object.assign(n,{title:"",message:"",icon:"",buttons:[],callback:()=>{},timer:!1})}return(d,h)=>(i(),x(Ci,{id:"flash-dialog",ref_key:"dialog",ref:t,width:"300px","show-close-button":!1,"animation-in":"bounce",style:{height:"max-content","align-content":"center"},class:"rounded-2xl m-auto",onClose:a},{default:p(()=>[s("form",nl,[u(Li,{class:"px-8 py-1 text-center"},{default:p(()=>[c(n).icon?(i(),x(P,{key:0,src:`/images/icons/flash/${c(n).icon}.svg`,alt:"",width:"96",height:"96"},null,8,["src"])):_("",!0),s("h1",il,f(c(n).title),1),s("p",{id:"flash-dialog-message",class:"mt-3 text-sm",innerHTML:c(n).message},null,8,ll),s("div",al,[(i(!0),r(w,null,A(c(n).buttons,(y,C)=>(i(),x(sl,{wide:"",state:C===1||c(n).buttons.length===1?"primary":"secondary",value:y,onClick:B=>l(y)},{default:p(()=>[m(f(y),1)]),_:2},1032,["state","value","onClick"]))),256))])]),_:1})])]),_:1},512))}},Fe={__name:"Rive",props:{src:String,fit:{type:String,default:xe.Fit.Cover},alignment:{type:String,default:xe.Alignment.TopCenter},autoplay:{type:Boolean,default:!1},state:String,defaultPosition:{type:[Number,Boolean],default:!1}},setup(e){let t=e,n=M(null),o;I(l),we(()=>{o.cleanup()}),J(()=>t.state,a);function l(){o=new xe.Rive({canvas:n.value,src:t.src,layout:new xe.Layout({fit:t.fit,alignment:t.alignment}),autoplay:t.autoplay,onLoad:()=>{o.resizeDrawingSurfaceToCanvas(),t.defaultPosition&&o.scrub(t.state,t.defaultPosition)},animations:t.state})}function a(){o.play(t.state)}return(d,h)=>(i(),r("canvas",{ref_key:"canvas",ref:n},null,512))}};let Z=Ce({activeTab:"",notifications:[]});const he={__name:"AccountMenuNotificationLink",props:{notification:Object,dot:{type:Boolean,default:!0}},setup(e){let t=e;function n(){ee.visit(t.notification.subject.path,{preserveScroll:!1,onSuccess:()=>_t.hide("account-slideout-menu")})}let o=S(()=>{let l=t.notification.subject.title;return[".","!","?"].includes(l[l.length-1])?l:l+(t.dot?".":"")});return(l,a)=>{const d=v("InertiaLink");return e.notification.subject?(i(),x(d,{key:0,href:e.notification.subject.path,class:"link font-semibold",onClick:O(n,["prevent"])},{default:p(()=>[L(l.$slots,"default",{},()=>[m(' "'+f(c(o))+'" ',1)])]),_:3},8,["href"])):L(l.$slots,"default",{key:1},()=>[m(f(c(o)),1)])}}},rl={class:"flex justify-between items-start -mb-1",style:{height:"25px"}},cl={class:"block text-3xs !font-medium text-card-200"},dl={class:"flex items-center gap-3"},ul=["src"],hl={class:"user-content leading-normal"},fl={key:0},ml={key:0,class:"text-card-200"},pl={key:1},xl={key:0,class:"text-card-200"},_l={key:2},gl={key:0,class:"text-card-200"},yl={key:3},vl={key:4},bl={key:5},wl={key:6},Cl={__name:"AccountMenuNotification",props:{notification:Object},setup(e){let t=e;function n(){Y.delete("/notifications/"+t.notification.id),Z.notifications=Z.notifications.filter(o=>o.id!==t.notification.id)}return(o,l)=>{const a=v("Btn"),d=v("InertiaLink"),h=v("Panel");return i(),x(h,{class:"block px-4 py-3 text-xs group"},{default:p(()=>{var y,C,B,b;return[s("div",rl,[s("p",cl,f(e.notification.date),1),u(a,{is:"button",class:"h-auto px-2 py-2 -translate-y-1 translate-x-2 hidden group-hover:inline",onClick:n},{default:p(()=>[u(F,{name:"x",width:"7"})]),_:1})]),s("div",dl,[e.notification.image||(y=e.notification.subject)!=null&&y.image?(i(),r("img",{key:0,src:e.notification.image||e.notification.subject.image,alt:"",width:"35",class:"rounded-full"},null,8,ul)):_("",!0),s("div",hl,[e.notification.type==="Mentioned"?(i(),r("p",fl,[u(d,{href:"/@"+e.notification.mentioner.username,class:"link font-semibold"},{default:p(()=>[m(f("@"+e.notification.mentioner.username),1)]),_:1},8,["href"]),m(" mentioned you in "),u(he,{notification:e.notification},null,8,["notification"]),(C=e.notification.subject)!=null&&C.excerpt?(i(),r("span",ml,' "'+f(e.notification.subject.excerpt)+'" ',1)):_("",!0)])):_("",!0),e.notification.type==="RepliedTo"?(i(),r("p",pl,[u(d,{href:"/@"+e.notification.mentioner.username,class:"link font-semibold"},{default:p(()=>[m(f("@"+e.notification.mentioner.username),1)]),_:1},8,["href"]),m(" replied to the"),u(he,{notification:e.notification,dot:!1},null,8,["notification"]),m(" conversation: "),(B=e.notification.subject)!=null&&B.excerpt?(i(),r("span",xl,' "'+f(e.notification.subject.excerpt)+'" ',1)):_("",!0)])):_("",!0),e.notification.type==="Commented"?(i(),r("p",_l,[u(d,{href:"/@"+e.notification.mentioner.username,class:"link font-semibold"},{default:p(()=>[m(f("@"+e.notification.mentioner.username),1)]),_:1},8,["href"]),m(" commented on the "),u(he,{notification:e.notification,dot:!1},null,8,["notification"]),m(" lesson: "),(b=e.notification.subject)!=null&&b.excerpt?(i(),r("span",gl,' "'+f(e.notification.subject.excerpt)+'" ',1)):_("",!0)])):_("",!0),e.notification.type==="AchievementUnlocked"?(i(),r("p",yl,[m(f(["Nice","Wew","Hooray","Yay","Boom"][Math.floor(Math.random()*3)])+"! You just unlocked the ",1),u(he,{notification:e.notification,dot:!1},null,8,["notification"]),m(" achievement badge. 🤺 ")])):_("",!0),e.notification.type==="AssignmentCreated"?(i(),r("p",vl,[m(" You have a new team assignment. Please watch: "),u(he,{notification:e.notification},null,8,["notification"]),m(" Get to work! 🥋 ")])):_("",!0),e.notification.type==="AssignmentCompleted"?(i(),r("p",bl,[m(" Your "),u(he,{notification:e.notification,dot:!1},null,8,["notification"]),m(" assignment for "+f(e.notification.data.username)+" has been completed. 🎉 ",1)])):_("",!0),e.notification.type==="GlobalNotification"?(i(),r("p",wl,[e.notification.subject.path&&e.notification.subject.title?(i(),r(w,{key:0},[m(f(e.notification.subject.intro)+" ",1),u(he,{notification:e.notification},{default:p(()=>[m(f(e.notification.subject.title.trim()),1)]),_:1},8,["notification"]),m(" "+f(["🤘","🎉","🚀"][Math.floor(Math.random()*3)]),1)],64)):(i(),r(w,{key:1},[m(' "'+f(e.notification.message)+'" ',1)],64))])):_("",!0)])])]}),_:1})}}},kl={class:"flex items-center justify-end text-white"},$l={class:"mt-4 h-full"},Ll={key:0,class:"space-y-3"},Bl={key:0,class:"flex h-full flex-col items-center justify-center text-card-200 text-xs"},Sl={class:"mt-4 text-center"},Ml={key:1,class:"mt-3 flex-center gap-x-2"},Al=s("img",{src:"/svg-loaders/loading-indicator.svg",alt:"",width:"20"},null,-1),zl={__name:"Notifications",setup(e){let t=M(!1);async function n(){t.value=!0,await Y.delete("/notifications"),Z.notifications=[],t.value=!1}return Y.get("/notifications").then(({data:o})=>{Z.notifications=o}),(o,l)=>(i(),r("div",{class:g(c(Z).notifications.length?"":"self-center")},[s("header",kl,[c(Z).notifications.length?(i(),r("form",{key:0,class:"text-center",onSubmit:O(n,["prevent"])},[u(Q,{is:"button",transparent:"",type:"submit",class:g(["h-auto px-4 py-2 text-2xs",c(t)?"is-loading":""])},{default:p(()=>[m(" Clear All ")]),_:1},8,["class"])],32)):_("",!0)]),s("div",$l,[u(_e,{"enter-from-class":"transition-all duration-1000 opacity-0","enter-to-class":"transition-all duration-1000"},{default:p(()=>[c(Z).notifications.length?(i(),r("div",Ll,[(i(!0),r(w,null,A(c(Z).notifications,a=>(i(),x(Cl,{key:a.id,notification:a},null,8,["notification"]))),128))])):_("",!0)]),_:1}),c(Z).notifications.length?_("",!0):(i(),r("div",Bl,[c(Z).activeTab==="Notifications"?(i(),x(Fe,{key:0,src:"/images/rive/bug-monster.riv",alignment:"center",fit:"fitWidth",autoplay:"",width:"160"})):_("",!0),s("p",Sl," When other Laracasts users mention @"+f(o.currentUser.username)+" or respond to forum threads you've created, you'll receive a notification here. ",1),c(Z).notifications.length?(i(),r("p",Ml,[Al,m(" Loading... ")])):_("",!0)]))])],2))}},Fl={class:"account-slideout-link relative font-medium"},Tl={class:"text-2xs text-card-300 group-hover:text-blue-400"},Ul={inheritAttrs:!1},ie=Object.assign(Ul,{__name:"AccountSlideOutMenuLink",props:{text:String,comment:String},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("li",Fl,[u(o,te({class:"group ml-8 block text-left font-grotesk text-xl font-medium hover:text-blue-400"},t.$attrs),{default:p(()=>[m(f(e.text)+" ",1),s("div",Tl,"// "+f(e.comment),1)]),_:1},16)])}}}),jl={class:"pt-6 text-white"},Pl={class:"flex items-start"},Il={style:{width:"200px"},class:"hidden flex-shrink-0 md:block overflow-hidden"},Gl={class:"mb-6 pt-8"},Ol={class:"flex items-center"},Hl=["src","alt"],ql={class:"ml-5"},Vl={class:"text-[14px] font-medium"},El=s("span",{class:"text-white"},"Plan",-1),Dl={class:"mt-10"},Ql={class:"-ml-8 flex h-full flex-col space-y-7"},$5={__name:"AccountMenuNotificationsTab",emits:["close"],setup(e,{emit:t}){let n=t;function o(){fe.emit("logout")}function l(){n("close")}return(a,d)=>{const h=v("InertiaLink");return i(),r("div",jl,[s("div",Pl,[s("div",Il,[s("header",Gl,[s("div",Ol,[u(h,{href:`/@${a.currentUser.username}`,onSuccess:l,class:"inline-flex flex-shrink-0"},{default:p(()=>[s("img",{src:a.currentUser.avatar,alt:"Avatar of "+a.currentUser.username,width:"60",height:"60",style:{height:"60px","border-radius":"9px"}},null,8,Hl)]),_:1},8,["href"]),s("div",ql,[s("h5",Vl,f(a.currentUser.username),1),u(h,{href:"/settings/subscription/portal",class:"inline-flex text-2xs font-medium text-blue-400",onSuccess:l},{default:p(()=>[s("span",null,[m(f(a.currentUser.planLabel())+" ",1),El])]),_:1})])])]),s("nav",Dl,[s("ul",Ql,[a.currentUser.team_member||a.currentUser.team_owner?(i(),x(ie,{key:0,href:"/admin/subscription/team/members",text:a.currentUser.team_owner?"Manage Team":"My Team",comment:"we are the champions",onSuccess:l},null,8,["text"])):_("",!0),u(ie,{text:"What's New",href:"/week-in-review",comment:"new content for ya",onSuccess:l}),u(ie,{text:"My Library",href:"/me",comment:"keep going",onSuccess:l}),u(ie,{text:"Social Feed",href:"/discuss/feed",comment:"new from the community",onSuccess:l}),u(ie,{text:"My Profile",href:"/@"+a.currentUser.username,comment:a.currentUser.hasPrivateProfile()?"only you can see this page":"everyone sees this page",onSuccess:l},null,8,["href","comment"]),u(ie,{text:"Settings",href:"/settings/account",comment:"make a tweak",onSuccess:l}),a.currentUser.isAForumUser()?(i(),x(ie,{key:1,text:"Upgrade Plan",href:"/join",comment:"access thousands of videos",onSuccess:l,class:"text-red"})):_("",!0),u(ie,{text:"Gift an Account",href:"/gift-certificates",comment:"from the kindness of your <3",onSuccess:l}),a.currentUser.subscribed?(i(),x(ie,{key:2,text:"Referral Program",href:"/settings/referrals",comment:"learn AND profit from Laracasts",onSuccess:l})):_("",!0),u(ie,{text:"Logout",href:"/logout",comment:"but... why?",as:"button",method:"post",onSuccess:o})])])]),u(c(zl),{class:"ml-8 flex-1 overflow-y-auto hide-scrollbar",style:{width:"300px","max-height":"calc(100vh - 95px)"}})])])}}},Rl={class:"hide-scrollbar flex-1 overflow-auto rounded-2xl pt-6 shadow-inner",style:{"max-height":"90vh"}},Nl={class:"container relative"},Zl={class:"lg:mx-auto"},L5={__name:"AccountMenuSearchTab",emits:["close"],setup(e,{emit:t}){let n=M(!1),o=t;J(()=>Z.activeTab,d=>{n.value=d==="Search",d==="Search"&&setTimeout(()=>document.querySelector(".aa-Input").focus(),600)},{immediate:!0});let l=d=>{n.value=!1,o("close"),typeof d=="string"?ee.visit("/search?query="+d):ee.visit(d.path)},a=De(()=>ne(()=>Promise.resolve().then(()=>d5),void 0));return(d,h)=>(i(),r("div",Rl,[s("div",Nl,[s("div",Zl,[u(c(a),{refresh:c(n),onSearch:c(l)},null,8,["refresh","onSearch"])])])]))}};ce.registerLanguage("php",it);ce.registerLanguage("javascript",lt);ce.registerLanguage("css",at);ce.registerLanguage("html",ot);ce.registerLanguage("yaml",rt);ce.registerLanguage("ts",ct);ce.registerLanguage("diff",dt);function Ze(e=""){e=`${e} pre code`,document.querySelectorAll(e.trim()).forEach(We)}function We(e){ce.highlightElement(e)}function Ye(){let e=me();return e.props.auth.signedIn?S(()=>new At(e.props.auth.user)):!1}const Wl={key:1,width:"30",height:"24",viewBox:"0 0 30 24",fill:"none"},Yl=H('',1),Kl=[Yl],Jl=de({__name:"GreyLaryIcon",props:{animated:{type:Boolean,default:!1}},setup(e){return(t,n)=>e.animated?(i(),x(Fe,{key:0,src:"/images/rive/ai-chat.riv",autoplay:"",style:{width:"50px",height:"50px"},fit:c(xe.Fit).Contain,alignment:c(xe.Alignment).TopLeft,class:"-mb-3"},null,8,["fit","alignment"])):(i(),r("svg",Wl,Kl))}}),Xl={},ea={class:"icon-container flex-center h-6 w-6 bg-contain",style:{"background-image":'url("/images/icons/lary-thinking-bg.svg")',"background-repeat":"no-repeat"}},ta=H('',1),sa=[ta];function na(e,t){return i(),r("div",ea,sa)}const ia=k(Xl,[["render",na],["__scopeId","data-v-58225d7d"]]),la={id:"account-menu-chat-wrapper",class:"grid h-full grid-rows-6 overflow-auto overflow-hidden pt-8 text-white"},aa={class:"mb-auto flex items-start gap-x-2"},oa=s("div",{class:"content mb-0 text-grey-600"},[s("strong",null,"Mind-blowing tip"),m(": press the "),s("code",{class:"font-bold text-blue-400"},"?"),m(" key to quickly open this chat window from any page. Amazing, right? ")],-1),ra={class:"mx-auto mb-auto max-w-2/3 text-base text-grey-600"},ca=s("strong",{class:"text-white"},'Lary "QuickDraw" AI',-1),da=s("strong",{class:"text-white"},'Lary "QuickDraw" AI',-1),ua=s("img",{src:"/images/lary-ai-face.svg",width:"24",alt:"Lary's avatar"},null,-1),ha=[ua],fa=["innerHTML"],ma={key:1,class:"pr-1 text-right text-sm text-blue-400"},pa=["innerHTML"],xa={class:"relative w-full"},_a={class:"mt-2 text-3xs font-medium text-card-200"},ga=["placeholder","maxlength","disabled","onKeydown"],ya=["textContent"],va={class:"absolute right-4 top-4 flex gap-1"},ba=s("svg",{width:"20",height:"15",viewBox:"0 0 22 17",fill:"none"},[s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.966 4.391V3.318l8.028 4.724-8.028 4.724v-3.5h2.129a1.213 1.213 0 0 0 0-2.429H5.456a1.213 1.213 0 0 0 0 2.428h2.128v5.48c-.026.246.022.503.153.734l.01.016a1.188 1.188 0 0 0 1.626.423L20.95 9.106c.393-.232.61-.65.605-1.076a1.227 1.227 0 0 0-.605-1.052L9.462.218A1.184 1.184 0 0 0 8.244.125a1.184 1.184 0 0 0-.507.48c-.131.232-.179.488-.153.735V4.39a1.192 1.192 0 1 0 2.382 0zM1.212 9.265h.998a1.213 1.213 0 0 0 0-2.428h-.998a1.213 1.213 0 0 0 0 2.428z",fill:"url(#lbd11yxlva)"}),s("defs",null,[s("linearGradient",{id:"lbd11yxlva",x1:"21.555",y1:"8.041",x2:"0",y2:"8.041",gradientUnits:"userSpaceOnUse"},[s("stop",{"stop-color":"#21C8F6"}),s("stop",{offset:"1","stop-color":"#637BFF"})])])],-1),B5={__name:"AccountMenuChatTab",setup(e){let t=Ye(),n="/lary/chat",o=M([]),l=M(""),a=M(!1),d=M(!1),h=M(null),y=M(null),C=1200,B=S(()=>l.value.length);J(()=>Z.activeTab,async z=>{z==="Chat"&&Y.get(n).then(R=>{o.value=R.data})},{immediate:!0}),J(o,async()=>{await re(),Ze("#"+y.value.id),G(),setTimeout(()=>h.value.focus(),500)},{deep:!0});async function b(){let z=l.value;l.value="";let R=await W(z),ve=setTimeout(()=>{o.value.push({user_id:t.id,message:R}),setTimeout(()=>a.value=!0,500),setTimeout(G,2e3)},400);Y.post(n,{message:z}).then(()=>{a.value=!1,Y.get(n).then(N=>{o.value=N.data})}).catch(({response:N})=>{clearTimeout(ve),a.value=!1,d.value=N.status===429?"You are making too many chat requests. Please take a break and try again later.":N.data.message,T()})}function $(){o.value=[],Y.delete(n)}function T(){re(()=>{document.querySelector("#account-menu-chat-wrapper").lastElementChild.querySelector("textarea").scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})})}function G(){re(()=>{y.value.lastElementChild.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})}function W(z){return Y.post("/markdown",{body:z}).then(R=>R.data.html)}let se=S(()=>{let z=["What's the PHP function to calculate the sum of two numbers?","Write a PHP function to validate an email address.","How do I define a PHP function to calculate the sum of two numbers.","Implement a search feature in a Laravel application.","How do I write a feature test using PestPHP?","How do I create a custom validation rule in Laravel?","How to implement a RESTful API in a Laravel application?","How do I implement pagination in a Laravel application?"];return z[Math.floor(Math.random()*z.length)]});function oe(){let z=["Patience is not the ability to wait, but the ability to keep a good attitude while waiting...","To lose patience is to lose the battle...","Patience is bitter, but its fruit is sweet...","Patience is the road to wisdom...","Rivers know this: there is no hurry. We shall get there some day..."];return z[Math.floor(Math.random()*z.length)]}return(z,R)=>{const ve=v("InertiaLink");return i(),r("div",la,[s("article",{id:"account-menu-chat-messages",ref_key:"messagesContainer",ref:y,class:"row-span-5 mb-8 space-y-4 overflow-y-auto",style:V(c(o).length?"":"background: url('/images/chat-with-lary-empty-bg@2x.png') center no-repeat; background-size: 70%; background-position: center 60%;")},[!c(o).length&&!c(a)?(i(),r("div",{key:0,class:g(["gap-x-2 text-center",!c(o).length&&!c(a)?"flex-center h-full flex-col":"flex items-start"])},[s("div",aa,[u(K,{class:"flex-1 px-5 py-3 text-left text-sm"},{default:p(()=>[oa]),_:1})]),c(Z).activeTab==="Chat"?(i(),x(Fe,{key:0,src:"/images/rive/ai-chat.riv",autoplay:"",width:200,class:"mb-8"})):_("",!0),s("p",ra,[c(t).subscribed?(i(),r(w,{key:0},[m(" Hi! I'm "),ca,m(", your personal programming assistant. Go ahead, ask me anything code-related, and I'll do my best to help! ")],64)):(i(),r(w,{key:1},[m(" Hi! I'm "),da,m(", your personal programming assistant. I'm ready to help out with anything you need, but you'll need to have an "),u(ve,{class:"link",href:"/join"},{default:p(()=>[m(" active Laracasts subscription. ")]),_:1})],64))])],2)):_("",!0),(i(!0),r(w,null,A(c(o),N=>(i(),r("div",{class:g(["flex items-start gap-x-2",N.ai?"":"justify-end"])},[s("div",{class:g(["flex-center h-10 w-10 flex-shrink-0 rounded-xl bg-card-500",N.ai?"":"invisible"])},ha,2),u(K,{class:"px-5 py-3 text-sm",background:N.ai?"bg-card-default":"bg-blue-400"},{default:p(()=>[s("div",{class:"content mb-0",innerHTML:N.message},null,8,fa)]),_:2},1032,["background"])],2))),256)),!c(a)&&c(o).length&&c(o).length%2===0?(i(),r("div",ma,[s("button",{"data-js":"clear-all-button",class:"text-right hover:underline",onClick:$}," Clear chat? ")])):_("",!0),c(a)?(i(),x(K,{key:2,class:"flex items-center px-5",background:"bg-card-500"},{default:p(()=>[u(ia),s("p",{class:"ml-3 text-xs italic text-grey-600/75",innerHTML:oe()},null,8,pa)]),_:1})):_("",!0)],4),s("form",{class:g(["relative row-span-2 flex",c(t).subscribed?"":"opacity-50"]),onSubmit:O(b,["prevent"]),onKeydown:R[1]||(R[1]=N=>pe(d)?d.value=!1:d=!1)},[s("div",xa,[s("div",{class:g(["pointer-events-none absolute flex flex-col items-center text-center",c(o).length?"left-3 top-2":"left-4 top-4 w-[37px]"])},[c(Z).activeTab==="Chat"?(i(),x(Jl,{key:0,animated:c(o).length},null,8,["animated"])):_("",!0),s("span",_a,f(c(B))+"/"+f(c(C)),1)],2),j(s("textarea",{ref_key:"textarea",ref:h,"onUpdate:modelValue":R[0]||(R[0]=N=>pe(l)?l.value=N:l=N),"data-js":"chat-textarea",placeholder:c(t).subscribed?c(se):"You must be subscribed to ask me questions.",class:"h-full w-full rounded-xl bg-card-default p-4 text-xs text-white placeholder-card-300 focus:outline-none",style:{"padding-right":"130px","padding-left":"67px"},required:"",maxlength:c(C),disabled:!c(t).subscribed,onKeydown:Ae(O(b,["meta"]),["enter"])},null,40,ga),[[Qe,c(l)]]),c(d)?(i(),r("p",{key:0,class:"mt-2 text-xs text-red",textContent:f(c(d))},null,8,ya)):_("",!0)]),s("div",va,[u(Q,{is:"button",type:"submit",disabled:c(a),class:"px-2 py-2 disabled:bg-blue/3 disabled:hover:bg-blue/3 disabled:hover:text-card-200",title:"Cmd + Return","data-js":"chat-submit-button"},{default:p(()=>[ba]),_:1},8,["disabled"])])],34)])}}},wa={class:"progress-circle"},Ca={class:"episode-number flex-shrink-0 h-full"},ka={__name:"CircularProgress",props:{progress:{type:Number,default:0},progressBarColor:{type:String,default:"transparent"},width:{type:Number,default:61}},setup(e){return Me(t=>({"6281eed2":e.width,f51a54be:e.progress,"86e3405e":e.progressBarColor})),(t,n)=>(i(),r("div",wa,[s("span",Ca,[L(t.$slots,"default",{},void 0,!0)])]))}},Ke=k(ka,[["__scopeId","data-v-141e80d3"]]),$a={},La={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Ba=s("path",{class:"fill-current",d:"M4.27505 1.63379H11.8523C12.3005 1.63379 12.6832 1.79235 13.0003 2.10946C13.3175 2.42658 13.476 2.80925 13.476 3.25747V12.9996C13.476 13.4478 13.3175 13.8305 13.0003 14.1476C12.6832 14.4647 12.3005 14.6233 11.8523 14.6233H4.27505C3.82683 14.6233 3.44416 14.4647 3.12704 14.1476C2.80993 13.8305 2.65137 13.4478 2.65137 12.9996V3.25747C2.65137 2.80925 2.80993 2.42658 3.12704 2.10946C3.44416 1.79235 3.82683 1.63379 4.27505 1.63379ZM5.89873 10.8347H10.2286C10.3781 10.8347 10.5057 10.8876 10.6113 10.9932C10.717 11.0989 10.7698 11.2264 10.7698 11.3759C10.7698 11.5254 10.717 11.6529 10.6113 11.7586C10.5057 11.8642 10.3781 11.917 10.2286 11.917H5.89873C5.74927 11.917 5.62171 11.8642 5.51606 11.7586C5.41042 11.6529 5.35759 11.5254 5.35759 11.3759C5.35759 11.2264 5.41042 11.0989 5.51606 10.9932C5.62171 10.8876 5.74927 10.8347 5.89873 10.8347ZM5.89873 8.66966H10.2286C10.3781 8.66966 10.5057 8.72249 10.6113 8.82813C10.717 8.93378 10.7698 9.06134 10.7698 9.2108C10.7698 9.36027 10.717 9.48783 10.6113 9.59347C10.5057 9.69912 10.3781 9.75194 10.2286 9.75194H5.89873C5.74927 9.75194 5.62171 9.69912 5.51606 9.59347C5.41042 9.48783 5.35759 9.36027 5.35759 9.2108C5.35759 9.06134 5.41042 8.93378 5.51606 8.82813C5.62171 8.72249 5.74927 8.66966 5.89873 8.66966ZM11.8521 2.71633H4.27479C4.12533 2.71633 3.99777 2.76915 3.89212 2.8748C3.78647 2.98045 3.73365 3.10801 3.73365 3.25747V12.9996C3.73365 13.149 3.78647 13.2766 3.89212 13.3822C3.99777 13.4879 4.12533 13.5407 4.27479 13.5407H11.8521C12.0015 13.5407 12.1291 13.4879 12.2347 13.3822C12.3404 13.2766 12.3932 13.149 12.3932 12.9996V3.25747C12.3932 3.10801 12.3404 2.98045 12.2347 2.8748C12.1291 2.76915 12.0015 2.71633 11.8521 2.71633ZM5.89873 6.50484H10.2286C10.3781 6.50484 10.5057 6.55766 10.6113 6.66331C10.717 6.76896 10.7698 6.89651 10.7698 7.04598C10.7698 7.19545 10.717 7.323 10.6113 7.42865C10.5057 7.5343 10.3781 7.58712 10.2286 7.58712H5.89873C5.74927 7.58712 5.62171 7.5343 5.51606 7.42865C5.41042 7.323 5.35759 7.19545 5.35759 7.04598C5.35759 6.89651 5.41042 6.76896 5.51606 6.66331C5.62171 6.55766 5.74927 6.50484 5.89873 6.50484ZM5.89873 4.34001H8.06356C8.21302 4.34001 8.34058 4.39284 8.44623 4.49849C8.55188 4.60413 8.6047 4.73169 8.6047 4.88116C8.6047 5.03062 8.55188 5.15818 8.44623 5.26382C8.34058 5.36947 8.21302 5.4223 8.06356 5.4223H5.89873C5.74927 5.4223 5.62171 5.36947 5.51606 5.26382C5.41042 5.15818 5.35759 5.03062 5.35759 4.88116C5.35759 4.73169 5.41042 4.60413 5.51606 4.49849C5.62171 4.39284 5.74927 4.34001 5.89873 4.34001Z"},null,-1),Sa=[Ba];function Ma(e,t){return i(),r("svg",La,Sa)}const S5=k($a,[["render",Ma]]),Aa={key:0},za={key:5,class:"font-light"},M5=de({__name:"VideoNumberCircled",props:{episode:{type:Object,required:!0},progress:{type:Number,required:!0},isCurrent:{type:Boolean,required:!0}},setup(e){let t=e,n=S(()=>String(t.episode.position).padStart(2,"0"));return(o,l)=>(i(),r("div",{class:g(["circle flex-center h-14 w-14 text-2xl font-medium tracking-tight text-white",{[`bg-${e.episode.taxonomy.name.toLowerCase()}`]:e.isCurrent,"bg-card-600 transition-colors duration-300 group-hover:bg-card-300":!e.isCurrent}])},[!e.isCurrent&&e.progress>0?(i(),r("div",Aa,[u(Ke,{class:g(`text-${e.episode.taxonomy.name.toLowerCase()}`),progress:e.progress},{default:p(()=>[m(f(c(n)),1)]),_:1},8,["class","progress"])])):e.episode.isScheduled?(i(),x(F,{key:1,name:"clock-hands",class:"relative",style:{left:"6px"}})):e.episode.viewingStatus.watchable?e.isCurrent?(i(),x(F,{key:3,name:"play-button",class:"inline-block",style:{"margin-left":"7px"},width:"25"})):e.episode.viewingStatus.isCompleted?(i(),x(F,{key:4,name:"checkmark-thin",class:"inline-block translate-x-px translate-y-px",width:"30"})):(i(),r("span",za,f(c(n)),1)):(i(),x(F,{key:2,name:"lock",width:"25",class:"relative -top-px"}))],2))}}),Fa={},Ta={width:"71",viewBox:"0 0 71 62",fill:"none"},Ua=s("path",{d:"M16.536 25.15 31.064 0h8.634L71 54.217l-4.064 7.038H19.51l7.612-13.184 25.108.001-16.837-29.165-3.622 6.243H16.536z",fill:"#fff"},null,-1),ja=s("path",{d:"M12.258 32.584h15.235l-16.615 28.72H4.345L0 53.778l12.258-21.194z",class:"fill-current"},null,-1),Pa=[Ua,ja];function Ia(e,t){return i(),r("svg",Ta,Pa)}const Ga=k(Fa,[["render",Ia]]),Oa={},Ha={width:"17",height:"12",viewBox:"0 0 17 12",fill:"none"},qa=s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.78072 1.50291C5.05825 1.78045 5.0585 2.23035 4.78126 2.50819L2.01771 5.27778L4.78126 8.04737C5.0585 8.3252 5.05825 8.77511 4.78072 9.05264C4.50296 9.33039 4.05264 9.33039 3.77489 9.05264L0.388915 5.66667C0.174137 5.45189 0.174138 5.10367 0.388915 4.88889L3.77489 1.50291C4.05264 1.22516 4.50297 1.22516 4.78072 1.50291Z",class:"fill-current"},null,-1),Va=s("rect",{x:"8",width:"9",height:"2",rx:"1",class:"fill-current"},null,-1),Ea=s("rect",{x:"8",y:"5",width:"9",height:"2",rx:"1",class:"fill-current"},null,-1),Da=s("rect",{x:"8",y:"10",width:"9",height:"2",rx:"1",class:"fill-current"},null,-1),Qa=[qa,Va,Ea,Da];function Ra(e,t){return i(),r("svg",Ha,Qa)}const A5=k(Oa,[["render",Ra]]),Na={class:"flex h-full flex-col items-center justify-center md:flex-row md:gap-x-10 xl:gap-x-24"},Za={class:"max-w-sm text-center md:w-1/2 md:text-left"},Wa=s("h3",{class:"mb-6 text-4xl font-medium leading-tighter"},"A massive community of programmers just like you.",-1),Ya=s("p",{class:"font-medium"}," Think of Laracasts sort of like Netflix, but for developers. You could spend weeks binging, and still not get through all the content we have to offer. ",-1),Ka=s("p",{class:"mt-6 font-medium"}," Push your web development skills to the next level, through expert screencasts on PHP, Laravel, Vue, and much more. ",-1),Ja={class:"mt-6 xl:mt-8"},z5={__name:"SignupBanner",setup(e){return(t,n)=>{const o=v("Btn"),l=v("AppSection");return i(),x(l,{wide:"",class:"py-0"},{default:p(()=>[u(K,{class:"relative mx-auto w-full md:h-[600px] py-10 px-10",hoverable:!1},{default:p(()=>[u(P,{src:"/images/signup-banner-teacher-bg@2x.webp",alt:"",class:"absolute left-[5%] top-0 h-full w-[90%] object-contain mix-blend-luminosity"}),s("div",Na,[s("div",null,[u(P,{src:"/images/signup-banner-main-illustration.svg?v=3",class:"mix-blend-luminosity",alt:"Illustration of Jeffrey and Lary the robot.",width:"400"})]),s("div",Za,[Wa,Ya,Ka,s("p",Ja,[u(o,{href:"/subscription",class:"!inline-block rounded-xl",state:"primary"},{default:p(()=>[m(" Get Started For Free! ")]),_:1})])])])]),_:1})]),_:1})}}},Xa=["data-tooltip-template"],eo=["src","width","height","alt"],to=["id"],so=["textContent"],no=["innerHTML"],io={key:0},lo={inheritAttrs:!1},ao=Object.assign(lo,{__name:"AchievementBadge",props:{achievement:Object,accountAge:{type:Number,default:1},tooltip:{type:Boolean,default:!0}},setup(e){let t=e,n=S(()=>t.achievement.name==="Laravel Architect"),o=S(()=>t.achievement.name==="Laracasts Loyalty"?`/images/badges/${{0:"one",1:"one",2:"two",3:"three",4:"four",5:"five"}[t.accountAge]||"many"}-year-member.svg`:`/images/badges/${t.achievement.icon}`),l=S(()=>t.achievement.name==="Laracasts Loyalty"?(t.accountAge||1)+" Year Member":t.achievement.name),a=S(()=>{if(t.achievement.name==="Laracasts Loyalty")return`Rewarded for being a Laracasts account holder for ${t.accountAge||1} ${t.accountAge>1?"years":"year"}. Wow!`;if(t.achievement.name==="Chatterbox"){let y=t.achievement.description;return me().props.profileUser&&(y+=` (Current: ${me().props.profileUser.stats.repliesCount.toLocaleString()})`),y}return t.achievement.description}),d=S(()=>t.tooltip?"achievement-template-"+t.achievement.id:!1),h=()=>{n.value&&ee.visit("/path")};return(y,C)=>(i(),r(w,null,[s("div",{class:"flex flex-shrink-0 cursor-pointer","data-tooltip-template":c(d)},[s("img",{src:c(o),width:c(n)?y.$attrs.width+13:y.$attrs.width,height:c(n)?y.$attrs.height+13:y.$attrs.height,alt:`${e.achievement.name} Achievement Badge`,onClick:C[0]||(C[0]=(...B)=>c(h)&&c(h)(...B))},null,8,eo)],8,Xa),s("div",{id:`achievement-template-${e.achievement.id}`,class:"hidden"},[s("h4",{class:"mb-1 text-sm font-bold",textContent:f(c(l))},null,8,so),s("p",{innerHTML:c(a)},null,8,no),c(n)?(i(),r("p",io,"Click to learn more.")):_("",!0)],8,to)],64))}}),oo={components:{AchievementBadge:ao,LazyImg:P},props:{user:Object,height:{default:78},width:{default:78},achievement:{default:!1},achievementWidth:{default:30},achievementPlacement:{default:"right: -10px; top: -10px; "},tooltip:{default:!0},bioTooltip:{default:!0},imageClasses:{type:String,default:""},outlined:{type:Boolean,default:!1},outlineStyles:{type:String,default:"background-image: linear-gradient(to right, #f19a1a 1%, #ffc73c 99%); border-radius: 10px;"},imageStyles:{type:String,default:"border-radius: 9px"}},computed:{anchorStyles(){let e=`width: ${this.width}px; height: ${this.height}px; padding: 2px;`;return this.outlined&&(e+=this.outlineStyles),e}}};function ro(e,t,n,o,l,a){const d=v("AchievementBadge"),h=v("LazyImg"),y=v("InertiaLink");return i(),x(y,{href:`/@${n.user.username}`,style:V(a.anchorStyles),class:g(["relative flex items-start max-w-[fit-content]",n.achievement?"achievement is-elite":""])},{default:p(()=>[n.achievement?(i(),r("span",{key:0,class:"absolute z-10",style:V(n.achievementPlacement)},[u(d,{achievement:n.achievement,width:n.achievementWidth,tooltip:n.tooltip},null,8,["achievement","width","tooltip"])],4)):_("",!0),u(h,{src:n.user.avatar,class:g({[`relative ${n.imageClasses}`]:!0}),alt:n.user.username+"'s avatar",width:n.width,height:n.height,style:V(n.imageStyles),"data-tooltip":n.bioTooltip?n.user.profile.bio:null},null,8,["src","class","alt","width","height","style","data-tooltip"])]),_:1},8,["href","style","class"])}const Te=k(oo,[["render",ro]]),co={},uo={key:0,class:"mb-6 flex items-center"},ho={class:"text-xl font-semibold text-white md:mr-2"},fo={key:1,class:"mb-6 text-xl font-semibold text-white md:mr-2"};function mo(e,t){return e.$slots.after?(i(),r("div",uo,[s("h2",ho,[L(e.$slots,"default")]),L(e.$slots,"after")])):(i(),r("h2",fo,[L(e.$slots,"default")]))}const F5=k(co,[["render",mo]]),po={__name:"BtnTaxonomy",props:{color:String},setup(e){return(t,n)=>{var l,a;const o=v("InertiaLink");return i(),x(o,{class:g(["btn btn-base is-small border-inherit text-2xs hover:border-transparent hover:text-white",["text-"+e.color.toLowerCase(),"hover:bg-"+e.color.toLowerCase(),(l=t.$attrs.class)!=null&&l.includes("px-")?"":"px-5",(a=t.$attrs.class)!=null&&a.includes("py-")?"":"py-2"]]),style:{width:"120px"}},{default:p(()=>[L(t.$slots,"default")]),_:3},8,["class"])}}},xo={components:{BtnTaxonomy:po},props:{video:{type:Object,required:!0},isBit:{type:Boolean,default:!1}}},_o={class:"flex flex-1 justify-between gap-x-4"},go={class:"flex items-center"},yo={class:"mr-5 flex flex-shrink-0"},vo=["src","alt"],bo=["innerHTML"],wo={key:0,class:"clamp one-line mt-2 text-grey-600 text-xs"},Co={class:"text-blue-400"},ko={key:1,class:"mt-1 text-xs hidden lg:block"},$o=["innerHTML"],Lo={class:"ml-4 flex flex-1 items-center justify-end gap-4 text-xs"},Bo={key:0,class:"hidden font-semibold text-green md:flex md:items-center"},So={class:"flex-center mr-2 h-4 w-4 rounded-full bg-green p-1"},Mo={key:1,class:"hidden flex-shrink-0 rounded-full bg-card-900/50 lg:flex",style:{padding:"3px"}},Ao=["src"],zo={class:"hidden md:block"};function Fo(e,t,n,o,l,a){const d=v("Icon"),h=v("BtnTaxonomy"),y=v("Panel");return i(),x(y,{tag:"InertiaLink",href:n.video.path,title:n.video.title,class:"group flex h-[95px] w-full items-center px-8"},{default:p(()=>[s("div",_o,[s("div",go,[s("div",yo,[s("img",{class:g({"h-[70px] w-[70px]":!0}),src:n.video.series.thumbnail+"?v=4&tr=w-140,q-50",alt:n.video.series.title+" thumbnail"},null,8,vo)]),s("div",null,[s("h2",{class:"line-clamp-2 text-base font-medium leading-tight md:text-xl lg:mr-5 lg:line-clamp-1",innerHTML:n.video.title},null,8,bo),n.isBit?_("",!0):(i(),r("div",wo,[s("span",Co,f(n.video.series.title)+", Episode "+f(n.video.position),1)])),n.isBit?(i(),r("div",ko,[s("p",{class:"clamp two-lines pr-10 text-grey-700",innerHTML:n.video.body.replace(/<\/?p>/g,"")},null,8,$o)])):_("",!0)])]),s("div",Lo,[n.video.viewingStatus.isCompleted?(i(),r("div",Bo,[s("div",So,[u(d,{name:"checkmark",class:"text-black",width:"15"})]),m(" Completed ")])):_("",!0),n.isBit?_("",!0):(i(),r("div",Mo,[s("img",{src:n.video.author.avatar,alt:"",class:"rounded-full",width:"33"},null,8,Ao)])),s("div",zo,[u(h,{href:n.video.taxonomy.path,color:n.video.taxonomy.name,class:"uppercase"},{default:p(()=>[m(f(n.video.taxonomy.name),1)]),_:1},8,["href","color"])])])]),L(e.$slots,"remove-button",{video:n.video})]),_:3},8,["href","title"])}const T5=k(xo,[["render",Fo]]),Je={__name:"WatchLaterButton",props:{media:Object,category:{type:String,default:"watch_later"}},setup(e){return(t,n)=>{const o=v("Btn");return i(),x(o,{state:"secondary",bookmark:"",as:"button",method:"post",href:e.media.path+"/bookmark",data:{category:e.category},"preserve-scroll":!0,only:["series","bits","auth"],on:!!t.currentUser.bookmarked(e.media),class:"flex-1"},{default:p(()=>[L(t.$slots,"default",{},()=>[m(f(t.currentUser.bookmarked(e.media)?"On Watchlist":"Add to Watchlist"),1)])]),_:3},8,["href","data","on"])}}},To={class:"xl:sticky xl:top-[40px] xl:self-start flex flex-col gap-2.5"},Uo={class:"flex-shrink-0 text-grey-600 text-sm"},jo={class:"font-medium text-white text-lg text-right"},Po={style:{width:"100%",height:"426px"},class:"relative lg:max-w-sm flex flex-1 overflow-hidden rounded-xl"},Io=["src","alt"],Go={class:"flex items-start gap-2.5 flex-wrap lg:flex-nowrap"},Oo={key:0,class:"flex lg:flex-col gap-1 justify-between lg:w-[50px] w-full"},Ho={class:"flex-1"},qo=["title","innerHTML"],U5={__name:"InstructorSidebar",props:{instructor:Object,figureClasses:String},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("aside",To,[s("figure",{class:g(e.figureClasses)},[u(K,{tag:"figcaption",class:"px-5 flex items-center justify-between w-full py-3",hoverable:!1,style:{height:"50px"}},{default:p(()=>[j(s("span",Uo,"Your Instructor",512),[[q,e.instructor.profile.full_name.length<=18]]),s("h5",jo,[u(o,{href:"/browse/instructors/"+e.instructor.username,class:"hover:underline"},{default:p(()=>[m(f(e.instructor.profile.full_name),1)]),_:1},8,["href"])])]),_:1}),s("div",Po,[u(o,{href:"/browse/instructors/"+e.instructor.username},{default:p(()=>[s("img",{src:`https://ik.imagekit.io/laracasts/instructors/${e.instructor.id}.jpeg?tr=w-630`,class:"mx-auto w-full lg:object-cover lg:h-[445px]",alt:"Photo of "+e.instructor.profile.full_name},null,8,Io)]),_:1},8,["href"])]),t.$page.component.includes("Instructors/Show")?_("",!0):(i(),x(Q,{key:0,href:"/browse/instructors/"+e.instructor.username,class:"max-w-none bg-card-default"},{default:p(()=>[m(" More Series From Me ")]),_:1},8,["href"]))],2),s("div",null,[s("div",Go,[e.instructor.profile.twitter||e.instructor.profile.github?(i(),r("div",Oo,[e.instructor.profile.twitter?(i(),x(Q,{key:0,href:`https://twitter.com/${e.instructor.profile.twitter}`,target:"_blank",class:"px-2 py-1 flex-center flex-1 hover:text-white bg-card-default",external:""},{default:p(()=>[u(ri,{class:"p-1",width:"32"})]),_:1},8,["href"])):_("",!0),e.instructor.profile.github?(i(),x(Q,{key:1,href:`https://github.com/${e.instructor.profile.github}`,target:"_blank",class:"px-2 py-1 flex-center flex-1 hover:text-white bg-card-default",external:""},{default:p(()=>[u(mi,{class:"p-1",width:"32"})]),_:1},8,["href"])):_("",!0),s("div",Ho,[u(Q,{href:e.instructor.profile.website,transparent:"",class:"lg:[writing-mode:vertical-lr] px-2 py-2 w-full text-xs font-medium h-full lg:h-auto flex justify-center bg-card-default",target:"_blank",external:""},{default:p(()=>[m(" Website ")]),_:1},8,["href"])])])):_("",!0),u(K,{class:"px-5 flex w-full flex-1 self-stretch",hoverable:!1},{default:p(()=>[s("p",{class:"content font-semibold mb-0 lg:text-xs line-clamp-6",title:e.instructor.profile.bio,innerHTML:e.instructor.profile.bio},null,8,qo)]),_:1})])])])}}},Vo={class:"text-center"},Eo={__name:"_Thumbnail",props:{series:Object,completed:{type:Boolean,default:!1},hd:{type:Boolean,default:!1}},setup(e){return(t,n)=>(i(),r("div",Vo,[u(P,{class:g(["thumbnail pointer-events-none absolute top-0 mb-8 mt-[-200px] hidden -translate-y-1/4 rounded-lg md:right-0 md:my-0 md:h-full xl:inline-block",{"opacity-30 mix-blend-luminosity":e.completed,"scale-125 duration-500 group-hover:scale-[126%] md:translate-x-2/3 md:translate-y-0 xl:translate-x-1/2":!0}]),src:e.hd?e.series.thumbnail+"?tr=w-890":e.series.thumbnail,alt:e.series.title,style:{transition:"transform 0.3s ease-in-out"}},null,8,["class","src","alt"]),e.completed?(i(),r("div",{key:0,class:g(["flex-center absolute bottom-6 right-6 h-12 w-12 rounded-full",{["bg-gradient-"+e.series.taxonomy.name.toLowerCase()]:!0}]),style:{border:"3px solid #293346"},title:"Series Complete!","aria-label":"Series Complete"},[u(F,{name:"checkmark",width:"20",style:{"margin-top":"2px","margin-left":"2px"}})],2)):_("",!0)]))}},Do=s("span",{class:"inline-block h-1 w-2 flex-1 rounded bg-grey-600"},null,-1),Qo={class:"font-medium"},Ro=s("br",null,null,-1),No={key:2,class:"flex items-center"},Zo=s("span",{class:"block rounded bg-grey-600",style:{width:"5px",height:"11px"}},null,-1),Wo=["textContent"],Yo={__name:"SeriesDifficultyBubbles",props:{difficulty:String,type:{type:String,default:"card"}},setup(e){let t=e,n=S(()=>({beginner:1,intermediate:2,advanced:3})[t.difficulty.toLowerCase()]??2),o=S(()=>({beginner:"bg-green",intermediate:"bg-orange-dark",advanced:"bg-red-dark"})[t.difficulty.toLowerCase()]??"bg-green");return(l,a)=>(i(),r(w,null,[e.type==="card"?(i(),r("div",{key:0,class:g(["difficulty-meter mx-4 flex justify-center space-x-1","is-"+e.difficulty.toLowerCase()])},[Do,s("span",{class:g(["inline-block h-1 w-2 flex-1 rounded",c(n)>1?"bg-grey-600":"bg-card-900/50"])},null,2),s("span",{class:g(["inline-block h-1 w-2 flex-1 rounded",c(n)>2?"bg-grey-600":"bg-card-900/50"])},null,2)],2)):_("",!0),e.type==="vertical"?(i(),r(w,{key:1},[s("div",{class:g(["difficulty-meter mr-2 flex flex-col","is-"+e.difficulty.toLowerCase()])},[s("span",{class:g(["block h-1 w-2 rounded",c(n)>2?c(o):"bg-grey-700"])},null,2),s("span",{class:g(["mt-1 block h-1 w-2 rounded",c(n)>1?c(o):"bg-grey-700"])},null,2),s("span",{class:g(["mt-1 block h-1 w-2 rounded",c(o)])},null,2)],2),s("span",Qo,[m(f(e.difficulty)+" ",1),Ro,m(" Difficulty ")])],64)):_("",!0),e.type==="banner"?(i(),r("div",No,[s("div",{class:g(["difficulty-meter mr-2 flex space-x-1","is-"+e.difficulty.toLowerCase()])},[Zo,s("span",{class:g(["block rounded",c(n)>1?"bg-grey-600":"bg-grey-600/25"]),style:{width:"5px",height:"11px"}},null,2),s("span",{class:g(["block rounded",c(n)>2?"bg-grey-600":"bg-grey-600/25"]),style:{width:"5px",height:"11px"}},null,2)],2),L(l.$slots,"default",{difficulty:e.difficulty},()=>[s("span",{class:"text-xs font-medium mobile:text-left",textContent:f(e.difficulty)},null,8,Wo)])])):_("",!0)],64))}},Ko={class:"mt-6 hidden w-[115%] gap-4 pl-1 text-[14px] font-medium text-grey-600 xl:flex 2xl:flex-wrap 2xl:justify-start"},Jo={class:"flex items-center"},Xo={class:"flex items-center"},er=["textContent"],tr={class:"flex items-center"},sr={class:"text-sm font-medium"},nr={class:"flex items-center md:hidden xl:flex"},ir=de({__name:"SeriesCardMeta",props:{series:Object,completed:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("div",Ko,[s("div",Jo,[u(F,{name:"book",width:"12",class:"mr-2"}),u(o,{href:e.series.path,class:"link inherits-color no-transition font-medium"},{default:p(()=>[m(f(e.series.episodeCount)+" Lessons ",1)]),_:1},8,["href"])]),s("div",Xo,[u(F,{name:"clock",width:"13",class:"mr-2"}),s("span",{class:"font-medium",textContent:f(e.series.runTime)},null,8,er)]),s("div",tr,[u(Yo,{difficulty:e.series.difficultyLevel,type:"banner"},{default:p(({difficulty:l})=>[s("span",sr,f(l),1)]),_:1},8,["difficulty"])]),s("div",nr,[u(P,{src:e.series.author.avatar,alt:e.series.author.username+"'s avatar",width:"20",height:"20",class:"mr-2 rounded-full"},null,8,["src","alt"]),u(o,{href:"/browse/instructors/"+e.series.author.username,class:"link font-medium text-blue-300",textContent:f(e.series.author.profile.full_name)},null,8,["href","textContent"])])])}}}),lr={class:"flex items-center text-3xs font-semibold uppercase leading-loose",style:{"letter-spacing":"1.2px"}},ar={key:0,src:"/images/series/creator-series/laracasts-creator-series-logo-arrow.svg",alt:"CreatorSeries prism triangle",width:"15",class:"mr-1"},or=s("span",{class:"text-white"},"Creator",-1),rr=s("span",{class:"text-blue-400"},"Series",-1),cr={__name:"CreatorSeriesLogo",props:{prism:{type:Boolean,default:!0}},setup(e){return(t,n)=>(i(),r("div",lr,[e.prism?(i(),r("img",ar)):_("",!0),or,m(" "),rr]))}},dr={class:"flex h-full w-full max-w-[400px] flex-shrink-0 flex-col xl:max-w-[500px] 2xl:max-w-[550px]"},ur={class:"mb-4 flex-1 text-center md:text-left"},hr={class:"mb-6 flex flex-col items-center md:items-start"},fr={class:"text-2xl font-semibold leading-tight lg:text-3xl"},mr=["innerHTML"],pr={class:"mt-6 h-full w-full md:mt-0 md:h-auto"},xr={class:"mx-auto flex max-w-[420px] flex-col gap-4 md:mx-0 md:flex-row"},_r={class:"md:flex-1"},gr={class:"md:flex-1"},yr={__name:"_Body",props:{series:Object,completed:{type:Boolean,default:!1},clamp:{type:Number,default:3}},setup(e){return(t,n)=>{const o=v("InertiaLink"),l=v("Btn");return i(),r("div",dr,[s("div",ur,[s("div",hr,[e.series.isCreatorSeries?(i(),x(cr,{key:0,class:"mb-1 hidden 2xl:inline-block"})):_("",!0),s("h2",fr,[u(o,{href:e.series.path,class:"inherits-color link text-balance"},{default:p(()=>[m(f(e.series.title),1)]),_:1},8,["href"])])]),s("div",{class:g(["content hide-scrollbar clamp mb-2 overflow-hidden leading-loose text-white md:mb-8 xl:mr-0",{"line-clamp-1":e.clamp===1,"line-clamp-2":e.clamp===2,"line-clamp-3":e.clamp===3,"line-clamp-4":e.clamp===4,"line-clamp-5":e.clamp===5,"line-clamp-6":e.clamp===6}]),innerHTML:e.series.strippedBody},null,10,mr)]),s("div",pr,[s("div",xr,[s("div",_r,[u(l,{state:"primary",href:e.series.links.continue,play:"",class:g({["bg-gradient- border-none"+e.series.taxonomy.name.toLowerCase()]:e.completed})},{default:p(()=>[m(f(e.completed?"Restart":e.series.progress.started?"Continue":"Play")+" "+f((e.series.isCreatorSeries,"Series")),1)]),_:1},8,["href","class"])]),s("div",gr,[u(Je,{media:e.series,class:"w-full"},null,8,["media"])])]),u(ir,{series:e.series,completed:e.completed},null,8,["series","completed"])])])}}},vr={class:"w-full text-center"},br={class:"mt-3 font-medium text-grey-600"},wr={__name:"_Author",props:{series:Object,show:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("div",{class:g(["relative hidden max-w-[250px] flex-shrink-0 md:block 2xl:max-w-xs",e.show?"":"lg:hidden"])},[u(o,{href:e.series.path,class:"relative rounded-2xl"},{default:p(()=>[s("figure",vr,[u(P,{src:`https://ik.imagekit.io/laracasts/instructors/${e.series.author.id}.jpeg?tr=w-670,q-60`,alt:`Photo of ${e.series.author.profile.full_name}`,class:"rounded-2xl"},null,8,["src","alt"]),s("figcaption",br,[u(o,{href:"/browse/instructors/"+e.series.author.username,class:"hover:underline",n:""},{default:p(()=>[m("Presented By "+f(e.series.author.profile.full_name),1)]),_:1},8,["href"])])])]),_:1},8,["href"])],2)}}},ge={__name:"SeriesCard",props:{series:Object,size:{type:String,default:"large"},panelAttrs:Object,active:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0}},setup(e){return(t,n)=>(i(),r("div",{class:g(["group flex flex-shrink-0 flex-grow-0",{"w-full h-[335px] md:aspect-square":e.size==="small","w-[243px] h-[247px]":e.size==="featured","w-full md:max-w-[443px]":e.size==="large"}])},[u(K,te({tag:"InertiaLink",href:e.series.path,class:["flex-1 overflow-hidden text-center",{"h-[300px] px-6 xl:h-[377px] 2xl:h-[447px]":e.size==="large"}]},e.panelAttrs),{default:p(()=>{var o,l;return[s("header",{class:g(["flex flex-col items-center justify-center text-center",e.size==="featured"?"md:h-[80px]":"md:h-[150px]"])},[s("h2",{class:g(["inherits-color mb-3 inline-flex items-center text-balance font-semibold leading-tight",{"my-auto text-lg md:line-clamp-3":e.size==="featured","mt-4 text-2xl md:text-4xl xl:text-2xl md:line-clamp-2 xl:mx-4":e.size==="small","mt-4 text-4xl md:line-clamp-2 md:text-3xl xl:mx-4":e.size==="large"}])},f(e.series.title),3),s("div",{class:g(["flex text-grey-600",e.size==="featured"?"text-2xs":"text-sm"])},[u(Te,{user:e.series.author,"image-styles":"border-radius: 100%",width:22,height:22,class:"mr-2","bio-tooltip":!1},null,8,["user"]),m(" with "+f(e.series.author.profile.full_name),1)],2)],2),(i(),x(be(e.lazy?P:"img"),{src:e.series.thumbnail+"?tr=w-490",alt:e.series.title+" thumbnail",class:g(["bottom-0 left-0 right-0 mt-3 w-full translate-y-[55%] scale-[200%]",{"opacity-30 mix-blend-luminosity":((o=e.series.progress)==null?void 0:o.completed)??!1,"scale-[205%]":e.active,"group-hover:scale-[205%]":!e.active}]),style:{width:"245px",transition:"transform 0.3s ease-in-out"}},null,8,["src","alt","class"])),((l=e.series.progress)==null?void 0:l.completed)??!1?(i(),r("div",{key:0,class:g(["flex-center absolute bottom-6 right-6 h-12 w-12 rounded-full",{["bg-gradient-"+e.series.taxonomy.name.toLowerCase()]:!0}]),style:{border:"3px solid #293346"},title:"Series Complete!","aria-label":"Series Complete"},[u(F,{name:"checkmark",width:"20",style:{"margin-top":"2px","margin-left":"2px"}})],2)):_("",!0)]}),_:1},16,["href","class"])],2))}},Cr={class:"h-full md:grid md:grid-flow-col md:grid-cols-12 md:gap-12"},kr={class:"body relative flex items-center gap-16 md:col-span-full lg:items-stretch xl:col-span-9"},$r={inheritAttrs:!1},ye=Object.assign($r,{__name:"SeriesCardWide",props:{series:Object,showAuthorPhoto:{type:Boolean,default:!1},clampDescription:{type:Number,default:3},placement:{type:String,default:"start"},responsive:{type:Boolean,default:!0}},setup(e){let t=e,n=S(()=>{var o;return((o=t.series.progress)==null?void 0:o.completed)??!1});return(o,l)=>{const a=v("Panel");return i(),r(w,null,[u(ge,{series:e.series,class:g(e.responsive?"block xl:hidden":"")},null,8,["series","class"]),u(a,te({class:["group overflow-hidden p-8 duration-500 md:px-10 md:py-[38px]",{"hidden xl:block":e.responsive,"xl:col-start-1 xl:col-end-3":e.placement==="start","xl:col-span-full xl:col-start-2":e.placement==="end","xl:col-span-full xl:col-start-1":e.placement==="full","h-full":e.showAuthorPhoto,"xl:h-[377px] 2xl:h-[447px]":!e.showAuthorPhoto}]},o.$attrs),{default:p(()=>[s("div",Cr,[s("div",kr,[u(wr,{series:e.series,show:e.showAuthorPhoto},null,8,["series","show"]),u(yr,{series:e.series,completed:c(n),class:"xl:pr-10",clamp:e.clampDescription},null,8,["series","completed","clamp"])]),u(Eo,{series:e.series,completed:c(n),hd:""},null,8,["series","completed"])])]),_:1},16,["class"])],64)}}}),Se=Object.assign({inheritAttrs:!1},{__name:"CardsList",props:{series:Array,featureFirstCourse:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0}},setup(e){return(t,n)=>(i(),r(w,null,[e.featureFirstCourse?(i(),x(ye,{key:0,series:e.series[0],"show-author-photo":!0,"clamp-description":6,placement:"full",responsive:e.responsive},null,8,["series","responsive"])):_("",!0),(i(!0),r(w,null,A(e.series.slice(e.featureFirstCourse?1:0),o=>(i(),x(ge,te({key:o.id,series:o,style:e.responsive?"":"max-width: none",ref_for:!0},t.$attrs),null,16,["series","style"]))),128))],64))}}),j5={__name:"SeriesProgressBar",props:{series:Object,showProgress:{type:Boolean,default:!0},thumbnail:{type:Boolean,default:!0},width:{type:Number,default:100}},setup(e){return(t,n)=>e.showProgress&&t.signedIn?(i(),x(Ke,{key:0,progress:e.series.progress.completionPercentage,width:e.width,"progress-bar-color":"#12223b"},{default:p(()=>[e.thumbnail?(i(),x(P,{key:0,class:g(["m-2",e.series.isLarabit?"rounded-full":""]),src:`${e.series.svgThumbnail}?tr=w-${e.width*2}`,alt:e.series.title+" thumbnail",width:e.width,height:e.width},null,8,["class","src","alt","width","height"])):_("",!0)]),_:1},8,["progress","width"])):(i(),r(w,{key:1},[e.thumbnail?(i(),x(P,{key:0,class:g(e.series.isLarabit?"rounded-full":""),src:`${e.series.svgThumbnail}?tr=w-${(e.width-6)*2}`,alt:e.series.title+" thumbnail",width:e.width-6,height:e.width-6},null,8,["class","src","alt","width","height"])):_("",!0)],64))}},Lr={},Br={class:"inline-block bg-gradient-to-r from-[#617efe] to-blue-300 bg-clip-text text-transparent"};function Sr(e,t){return i(),r("span",Br,[L(e.$slots,"default")])}const P5=k(Lr,[["render",Sr]]),Mr={__name:"CommentButton",props:{tag:{default:"a"},theme:{type:String,default:"light"}},setup(e){return(t,n)=>(i(),x(Q,{is:e.tag,state:"secondary"},{default:p(()=>[L(t.$slots,"default")]),_:3},8,["is"]))}},Ar={components:{Icon:F,CommentButton:Mr},props:{likes:{default:Array,required:!0}},computed:{hasLikes(){return this.likes.length>0},isLikedByCurrentUser(){return this.signedIn?this.likes.includes(this.currentUser.username):!1},_uid(){let e=100;return Math.random()*(1e5-e)+e}},methods:{onChange(){this.signedIn?this.$emit("like",!this.isLikedByCurrentUser):this.dialog("join")}}},zr=["id","checked"],Fr=["for"],Tr=["textContent"];function Ur(e,t,n,o,l,a){const d=v("Icon"),h=v("CommentButton");return i(),x(h,{"data-js":"reply-like-button",tag:"button",title:a.hasLikes?"Liked by "+n.likes.join(", "):"Like this Comment",on:a.isLikedByCurrentUser,class:"w-16 px-0 has-icon"},{default:p(()=>[s("input",{id:"checkbox-"+a._uid,type:"checkbox",checked:a.isLikedByCurrentUser,class:"hidden",onChange:t[0]||(t[0]=(...y)=>a.onChange&&a.onChange(...y))},null,40,zr),s("label",{for:"checkbox-"+a._uid,class:"flex-center w-full cursor-pointer"},[u(d,{name:"heart",width:"45",class:"-ml-1"}),s("span",{"data-js":"reply-likes-count",class:"text-xs font-semibold relative",style:{left:"-7px"},textContent:f(n.likes.length)},null,8,Tr)],8,Fr)]),_:1},8,["title","on"])}const I5=k(Ar,[["render",Ur]]),G5={__name:"CommentPinLink",props:{comment:{type:Object,default:()=>({id:null,pinned:!1}),required:!0}},setup(e){let t=e;function n(){if(t.comment.pinned){ee.delete(`/comments/${t.comment.id}/pin`,{preserveScroll:!0,only:["comments"]}),fe.emit("flash","Comment unpinned.");return}ee.post(`/comments/${t.comment.id}/pin`,{},{preserveScroll:!0,only:["comments"]}),fe.emit("flash","Comment pinned.")}return(o,l)=>{var a;return i(),r("a",{href:"#",onClick:O(n,["prevent"])},f((a=e.comment)!=null&&a.pinned?"Unpin":"Pin"),1)}}},jr={components:{Btn:Q},props:{minimized:[String,Boolean]}};function Pr(e,t,n,o,l,a){const d=v("Btn");return i(),x(d,{is:"button",class:"relative ml-4 inline-flex items-baseline px-4 py-2",onClick:t[0]||(t[0]=O(h=>e.$emit("update:minimized",!n.minimized),["prevent"]))},{default:p(()=>[s("span",{class:g(["mr-2 block w-4 rounded-full",n.minimized?"h-2 bg-blue":"h-1 bg-languages"])},null,2),m(" "+f(n.minimized?"Maximize":"Minimize"),1)]),_:1})}const Ir=k(jr,[["render",Pr]]),Gr={props:{links:{type:Array,default:()=>[]},only:{type:Array,default:()=>[]}},methods:{label(e){return e.includes("Previous")?"Previous":e.includes("More")?"Next":e}}},Or={key:0},Hr={class:"flex flex-wrap justify-center gap-x-2"},qr=["innerHTML"],Vr=["innerHTML"],Er=["innerHTML"];function Dr(e,t,n,o,l,a){const d=v("Btn");return n.links.length>3?(i(),r("div",Or,[s("div",Hr,[(i(!0),r(w,null,A(n.links,(h,y)=>(i(),r(w,{key:y},[h.label.includes("Previous")||h.label.includes("More")?(i(),r(w,{key:0},[h.url?(i(),x(d,{key:0,class:"flex-center h-8 w-24 text-2xs",only:n.only,onSuccess:()=>e.$emit("on-success"),href:h.url||"#"},{default:p(()=>[s("span",{innerHTML:a.label(h.label)},null,8,qr)]),_:2},1032,["only","onSuccess","href"])):(i(),x(d,{key:1,is:"button",class:"flex-center h-8 w-24 text-2xs",only:n.only,onSuccess:()=>e.$emit("on-success"),href:h.url||"#",disabled:!0},{default:p(()=>[s("span",{innerHTML:a.label(h.label)},null,8,Vr)]),_:2},1032,["only","onSuccess","href"]))],64)):(i(),x(d,{key:1,class:"leading-4 hidden lg:flex h-8 lg:items-center lg:justify-center text-2xs px-0",on:h.active,style:{"min-width":"40px"},only:n.only,onSuccess:()=>e.$emit("on-success"),href:h.url||"#"},{default:p(()=>[s("span",{innerHTML:a.label(h.label)},null,8,Er)]),_:2},1032,["on","only","onSuccess","href"]))],64))),128))])])):_("",!0)}const Xe=k(Gr,[["render",Dr]]),Qr={components:{Panel:K},props:{replacedBy:{type:[Object,Boolean],default:!1}}},Rr=s("img",{src:"/images/icons/notification-alert.svg",class:"absolute mb-0 mr-3 w-28 opacity-10 md:relative md:w-auto md:opacity-100",alt:"Notification bell"},null,-1),Nr={style:{"margin-bottom":"0"}},Zr=s("strong",{"data-tooltip-template":"archived-explanation-template",tabindex:"0",class:"cursor-pointer font-bold"}," archived. ",-1),Wr=s("div",{id:"archived-explanation-template",class:"hidden"},[m(" A series is marked as "),s("strong",null,"archived"),m(" when the content is no longer up-to-date or relevant to most viewers. ")],-1);function Yr(e,t,n,o,l,a){const d=v("InertiaLink"),h=v("Panel");return i(),x(h,{hoverable:!1,class:"relative mx-auto mb-[10px] flex flex-col items-center justify-center overflow-hidden py-4 text-center font-bold text-white md:flex-row md:text-left"},{default:p(()=>[Rr,s("p",Nr,[m(" This series has been "),Zr,n.replacedBy?(i(),r(w,{key:0},[m(" We instead recommend: "),u(d,{href:n.replacedBy.path,class:"link font-bold text-white"},{default:p(()=>[m(f(n.replacedBy.title)+". ",1)]),_:1},8,["href"])],64)):_("",!0)]),Wr]),_:1})}const O5=k(Qr,[["render",Yr]]),Kr=["innerHTML"],Oe=de({__name:"ExamQuestionsListButton",props:{active:{type:Boolean,default:!1},label:String},setup(e){return(t,n)=>{const o=v("Btn");return i(),x(o,{is:"button",class:g(["group flex h-auto w-full items-center justify-between gap-3 px-4 py-2 hover:bg-card-600 hover:text-blue-400 max-w-none",{"bg-card-600 text-blue-400":e.active,"bg-card-600/35":!e.active}])},{inner:p(()=>[s("span",{class:g(["flex-center h-8 w-8 rounded-full text-base text-white",{"bg-card-500 group-hover:bg-card-300":!e.active,"bg-card-300":e.active}])},[L(t.$slots,"icon")],2),s("span",{class:"mr-auto",innerHTML:e.label},null,8,Kr),L(t.$slots,"default")]),_:3},8,["class"])}}}),Jr={class:"mt-8 rounded-xl bg-card-1000 text-center",style:{height:"7px"}},Xr={class:"pt-2.5 text-xs font-medium text-center text-grey-600"},e1=de({__name:"ExamProgressOutput",setup(e){let t=le("store");return(n,o)=>(i(),r("output",null,[s("div",Jr,[s("div",{class:g(["h-full rounded-xl transition-all duration-[2s]","bg-blue"]),style:V({width:(c(t).exam.progress.completionRate||5)+"%"})},null,4)]),s("p",Xr,f(c(t).exam.progress.completionRate)+"% Complete",1)]))}}),t1=de({__name:"AvatarImage",props:{user:Object},setup(e){return(t,n)=>(i(),x(P,{src:e.user.avatar,alt:e.user.username+"'s avatar"},null,8,["src","alt"]))}}),s1={class:"min-h-0"},n1={class:"grid h-full",style:{"grid-template-rows":"90px 1fr auto"}},i1=["textContent"],l1=["data-tooltip","textContent"],a1={__name:"ExamQuestionsList",setup(e){let t=le("store");I(()=>{xn()});let n=M(!1);function o(l){const a=l.target.scrollHeight-l.target.scrollTop<=l.target.clientHeight+1;n.value=!a}return(l,a)=>{const d=v("Icon");return i(),r("div",s1,[s("div",n1,[s("h2",{class:"flex items-center text-lg text-grey-600",style:{height:"90px"},textContent:f(c(t).exam.title)},null,8,i1),s("ol",{class:g(["flex flex-col gap-1 overflow-auto min-h-0",c(n)?"masked-fade":""]),onScrollPassive:o},[(i(!0),r(w,null,A(c(t).exam.questions,h=>(i(),r("li",{key:h.id},[u(Oe,{label:h.label,active:c(t).activeTab!=="results"&&c(t).currentQuestion.number===h.number,onClick:y=>c(t).changeQuestion(h.number)},{icon:p(()=>[h.answer?(i(),r(w,{key:0},[h.answer.correct?(i(),x(d,{key:0,name:"checkmark",width:14,class:"relative text-testing top-px"})):(i(),x(d,{key:1,name:"x-fat",width:11,class:"relative left-px text-red"}))],64)):(i(),r(w,{key:1},[m(f(h.number),1)],64))]),default:p(()=>[h.answer&&h.answer.retries>0?(i(),r("span",{key:0,"data-tooltip":`You retried this question ${h.answer.retries===1?"1 time":`${h.answer.retries} times`}.`,class:"w-5 h-5 flex-center !rounded-full bg-blue-400 text-white text-3xs leading-none inline-block",style:{width:"18px",height:"18px"},textContent:f(h.answer.retries)},null,8,l1)):_("",!0)]),_:2},1032,["label","active","onClick"])]))),128)),c(t).exam.progress.complete?(i(),x(Oe,{key:0,active:c(t).activeTab==="results",label:"View Results",class:"!mt-auto",onClick:a[0]||(a[0]=h=>c(t).activeTab="results")},{icon:p(()=>[u(t1,{user:l.$page.props.auth.user,class:"rounded-full"},null,8,["user"])]),_:1},8,["active"])):_("",!0)],34),u(e1)])])}}},o1={name:"Loader",props:{width:{type:[Number,String],required:!1,default:50},fillColor:{type:String,required:!1,default:"currentColor"}}},r1=["fill"],c1=H('',3),d1=[c1];function u1(e,t,n,o,l,a){return i(),r("svg",{class:"mx-auto block",style:V({width:`${n.width}px`}),viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n.fillColor},d1,12,r1)}const h1=k(o1,[["render",u1]]),Ue=Object.assign({inheritAttrs:!1},{__name:"CodeMirror",props:{modelValue:{type:String,default:""},readOnly:{type:Boolean,default:!1},showResetButton:{type:Boolean,default:!1}},emits:["update:modelValue","reset"],setup(e,{emit:t}){const n=e,o=t,l=M(null);let a,d=M(!1);return window.codeMirrorView=null,I(async()=>{const{EditorView:h,lineNumbers:y,keymap:C}=await ne(async()=>{const{EditorView:E,lineNumbers:X,keymap:ue}=await import("./codemirror-BxGqM6_g.js").then(Le=>Le.a);return{EditorView:E,lineNumbers:X,keymap:ue}},__vite__mapDeps([0,1,2])),{EditorSelection:B,EditorState:b}=await ne(async()=>{const{EditorSelection:E,EditorState:X}=await import("./codemirror-BxGqM6_g.js").then(ue=>ue.i);return{EditorSelection:E,EditorState:X}},__vite__mapDeps([0,1,2])),{php:$}=await ne(async()=>{const{php:E}=await import("./codemirror-BxGqM6_g.js").then(X=>X.d);return{php:E}},__vite__mapDeps([0,1,2])),{oneDark:T}=await ne(async()=>{const{oneDark:E}=await import("./codemirror-BxGqM6_g.js").then(X=>X.e);return{oneDark:E}},__vite__mapDeps([0,1,2])),{defaultKeymap:G,indentWithTab:W,history:se,historyKeymap:oe}=await ne(async()=>{const{defaultKeymap:E,indentWithTab:X,history:ue,historyKeymap:Le}=await import("./codemirror-BxGqM6_g.js").then(tt=>tt.f);return{defaultKeymap:E,indentWithTab:X,history:ue,historyKeymap:Le}},__vite__mapDeps([0,1,2])),{closeBrackets:z,closeBracketsKeymap:R}=await ne(async()=>{const{closeBrackets:E,closeBracketsKeymap:X}=await import("./codemirror-BxGqM6_g.js").then(ue=>ue.c);return{closeBrackets:E,closeBracketsKeymap:X}},__vite__mapDeps([0,1,2])),{indentUnit:ve}=await ne(async()=>{const{indentUnit:E}=await import("./codemirror-BxGqM6_g.js").then(X=>X.b);return{indentUnit:E}},__vite__mapDeps([0,1,2]));a=new h({doc:n.modelValue,extensions:[ve.of(" "),y(),z(),se(),C.of([...G,...oe,W,...R]),$(),T,b.readOnly.of(n.readOnly),h.editable.of(!n.readonly),h.contentAttributes.of({contenteditable:"true"}),h.updateListener.of(E=>{E.docChanged&&o("update:modelValue",E.state.doc.toString())})],parent:l.value});const N=a.state.doc.length;a.focus(),a.dispatch({selection:B.cursor(N)}),window.codeMirrorView=a,d.value=!0}),gt(()=>{a&&a.destroy()}),J(()=>n.modelValue,h=>{a&&h!==a.state.doc.toString()&&a.dispatch({changes:{from:0,to:a.state.doc.length,insert:h}})}),(h,y)=>(i(),r(w,null,[s("div",te(h.$attrs,{class:["code-editor relative",e.readOnly?"read-only":""]}),[e.showResetButton&&!e.readOnly?(i(),r("button",{key:0,type:"button",class:"absolute right-5 top-14 text-3xs text-white z-10 bg-card-600 rounded-lg px-3 py-1 hover:bg-card-300 fade-in",onClick:y[0]||(y[0]=C=>o("reset"))}," Reset Editor ")):_("",!0),s("div",{ref_key:"editorRef",ref:l,class:g(["editor-container",{flex:!c(d)}])},[c(d)?_("",!0):(i(),x(h1,{key:0,class:"text-blue-400"}))],2)],16),L(h.$slots,"default")],64))}}),f1={key:0,class:"bg-card-600 pl-1 pr-3 py-[2px] rounded-xl inline-flex items-center gap-x-2 absolute -top-4 right-4 text-2xs text-white z-100"},m1={class:"w-6 h-6 bg-card-300 flex-center rounded-full"},p1={__name:"ResultLabel",setup(e){let t=le("store");return(n,o)=>{const l=v("Icon");return c(t).currentQuestion.answer?(i(),r("div",f1,[s("span",m1,[c(t).currentQuestion.answer.correct?(i(),x(l,{key:0,name:"checkmark",width:12,class:"relative top-px text-testing"})):(i(),x(l,{key:1,name:"x-fat",width:8,class:"relative text-red"}))]),m(" "+f(c(t).currentQuestion.answer.correct?"Correct":"Wrong")+" Answer! ",1)])):_("",!0)}}},x1={key:0,class:"code-editor-output relative z-100 -mt-2 rounded-bl-xl rounded-br-xl border-t border-card-default text-sm px-[20px] pt-[20px]"},_1={key:0,class:"overflow-auto font-normal text-frameworks"},g1={class:"xl:pr-[100px]"},y1={class:"xl:pr-[100px]"},v1=["textContent"],b1={__name:"YourSolution",setup(e,{expose:t}){let n=le("store");function o(b){return b.replace(/<\/?[^>]+(>|$)/g,"")}let l=function(){var T;if(n.pendingAnswers[n.currentQuestion.number])return n.pendingAnswers[n.currentQuestion.number];if((T=n.currentQuestion.answer)!=null&&T.answer)return n.currentQuestion.answer.answer;let b=`"// "+G).join(` `),b+=$,b};function a(){delete n.pendingAnswers[n.currentQuestion.number]}function d(){n.pendingAnswers[n.currentQuestion.number]=l()}function h(){ee.delete(`/exams/${n.exam.id}/questions/${n.currentQuestion.number}/answer`,{only:["lesson"],preserveScroll:!0,onSuccess:()=>{re(()=>{a(),d(),n.error=!1})}})}J(()=>n.currentQuestionNumber,d),J(()=>n.currentQuestion.answer,d),I(()=>re(d));let y=M(null);function C(b){try{const $=JSON.parse(b);return JSON.stringify($,null,2)}catch{return b.replace(/['"]{2}/g,"").replace(/\\\\/g,"\\")}}let B=S(()=>{var b;return((b=n.currentQuestion.answer)==null?void 0:b.answer)||n.hasErrorForQuestion(n.currentQuestion)});return t({editor:y}),(b,$)=>{var T,G;return i(),r("div",{class:"relative grid h-full flex-1 grid-cols-1 items-stretch",style:V(c(B)?"grid-template-rows: minmax(250px, 1fr) minmax(auto, 125px)":"grid-template-rows: minmax(250px, 1fr)")},[(i(),x(Ue,{key:c(n).currentQuestion.id,modelValue:c(n).pendingAnswers[c(n).currentQuestion.number],"onUpdate:modelValue":$[0]||($[0]=W=>c(n).pendingAnswers[c(n).currentQuestion.number]=W),"show-reset-button":!((T=c(n).currentQuestion.answer)!=null&&T.correct),class:"relative","read-only":(G=c(n).currentQuestion.answer)==null?void 0:G.correct,onReset:h},{default:p(()=>{var W;return[c(B)?(i(),r("div",x1,[c(n).hasErrorForQuestion(c(n).currentQuestion)?(i(),r("div",_1,[s("p",g1,f(c(n).error.message),1)])):(i(),r(w,{key:1},[u(p1),s("div",{class:g([(W=c(n).currentQuestion.answer)!=null&&W.correct?"text-testing":"text-frameworks","overflow-auto font-normal h-full"]),style:{"min-height":"50px","padding-bottom":"20px"}},[s("p",y1,f(c(n).currentQuestion.answer.correct?"Correct!":c(n).currentQuestion.answer.validation_message),1),s("pre",{class:"mt-3 bg-transparent text-grey-600",textContent:f("> "+C(c(n).currentQuestion.answer.evaluated_answer))},null,8,v1)],2)],64))])):_("",!0)]}),_:1},8,["modelValue","show-reset-button","read-only"]))],4)}}},w1={__name:"TestCode",setup(e){let t=le("store"),n=S(()=>[t.currentQuestion.validator,` `));return(o,l)=>(i(),x(Ue,{key:c(t).currentQuestion.id+"-test",modelValue:c(n),"onUpdate:modelValue":l[0]||(l[0]=a=>pe(n)?n.value=a:n=a),"read-only":""},null,8,["modelValue"]))}},C1={__name:"InstructorSolution",setup(e){let t=le("store"),n=S(()=>`(i(),x(Ue,{key:c(t).currentQuestion.id+"-solution",modelValue:c(n),"onUpdate:modelValue":l[0]||(l[0]=a=>pe(n)?n.value=a:n=a),class:"h-full rounded-bl-xl rounded-br-xl","read-only":""},null,8,["modelValue"]))}},k1={class:"flex justify-between"},$1={class:"exam-question flex items-center gap-5 text-lg pr-10 py-6"},L1=["textContent"],B1=["innerHTML"],S1={class:"space-x-2 self-center flex-shrink-0 flex"},M1={class:"relative"},A1={class:"absolute top-0 z-10 bg-card-900 w-full flex justify-start rounded-tl-xl rounded-tr-xl overflow-hidden"},z1={class:"py-2.5 px-4 text-right flex items-center ml-auto"},F1={class:"ml-auto text-[10px] text-grey-600"},T1=["textContent"],U1=["textContent"],j1=de({__name:"ExamQuestion",emits:["submit"],setup(e,{emit:t}){let n=le("store"),o=t,l=()=>o("submit");function a(){return navigator.platform.toUpperCase().indexOf("MAC")>=0||navigator.userAgent.toUpperCase().indexOf("MAC")>=0}let d=S(()=>{var C;let h=a()?"Opt+Enter":"Alt+Enter",y="submit your code";return(C=n.currentQuestion.answer)!=null&&C.correct&&(y="advance to the next question"),{shortcut:h,message:y}});return(h,y)=>{var B,b,$,T,G,W,se,oe;const C=v("Btn");return i(),r("form",{autocomplete:"off",class:"exam-question-wrap h-full grid",onSubmit:y[6]||(y[6]=O((...z)=>c(l)&&c(l)(...z),["prevent"])),onKeydown:y[7]||(y[7]=Ae(O(z=>{var R;return(R=c(n).currentQuestion.answer)!=null&&R.correct?c(n).nextQuestion():c(l)()},["alt","exact","prevent"]),["enter"]))},[s("div",k1,[s("h2",$1,[s("span",{class:"flex-center h-10 w-10 lg:rounded-xl bg-card-600 flex-shrink-0",textContent:f(c(n).currentQuestion.number)},null,8,L1),s("span",{class:g({"line-clamp-1":c(n).minimized}),innerHTML:c(n).currentQuestion.question},null,10,B1)]),s("div",S1,[!c(n).minimized&&!((B=c(n).currentQuestion.answer)!=null&&B.correct)?(i(),x(C,{key:0,is:"button",id:"submit-answer-button",style:{width:"130px"},type:"submit",state:"primary",disabled:c(n).form.processing,class:g(["px-0",{"is-loading":c(n).form.processing,wiggle:c(n).form.recentlySuccessful&&c(n).currentQuestion.answer&&!c(n).currentQuestion.answer.correct}])},{default:p(()=>[m(f(c(n).currentQuestion.answer&&!c(n).currentQuestion.answer.correct?"Try Again":"Submit Answer"),1)]),_:1},8,["disabled","class"])):_("",!0),(b=c(n).currentQuestion.answer)!=null&&b.correct&&!c(n).exam.progress.complete?(i(),x(C,{key:1,is:"button",id:"next-question-button","data-js":"next-question-button",style:{width:"130px"},class:"hover:!animate-none px-0",type:"button",state:"primary",onClick:y[0]||(y[0]=z=>c(n).nextQuestion())},{default:p(()=>[m(" Next Question ")]),_:1})):_("",!0),u(Ir,{minimized:c(n).minimized,"onUpdate:minimized":y[1]||(y[1]=z=>c(n).minimized=z),class:"ml-auto"},null,8,["minimized"]),u(C,{is:"button",type:"button",class:"px-4",onClick:y[2]||(y[2]=z=>c(n).dialog.close())},{default:p(()=>[u(F,{name:"x"})]),_:1})])]),s("div",M1,[s("div",A1,[s("button",{type:"button",class:g(["py-2.5 px-4 border-r border-card-800 text-sm",{"text-grey-800":c(n).activeTab!=="challenge","text-grey-600 bg-[#141924]":c(n).activeTab==="challenge"}]),onClick:y[3]||(y[3]=z=>c(n).activeTab="challenge"),textContent:"Challenge.php"},null,2),($=c(n).currentQuestion.answer)!=null&&$.correct||(((G=(T=c(n).currentQuestion)==null?void 0:T.answer)==null?void 0:G.retries)??0)>=1?(i(),r("button",{key:0,type:"button",class:g(["py-2.5 px-4 border-r border-card-800 text-sm",{"text-grey-800":c(n).activeTab!=="test","text-grey-600 bg-[#141924]":c(n).activeTab==="test"}]),onClick:y[4]||(y[4]=z=>c(n).activeTab="test"),textContent:"Test.php"},null,2)):_("",!0),(W=c(n).currentQuestion.answer)!=null&&W.correct||(((oe=(se=c(n).currentQuestion)==null?void 0:se.answer)==null?void 0:oe.retries)??0)>=3?(i(),r("button",{key:1,type:"button",class:g(["py-2.5 px-4 border-r border-card-800 text-sm",{"text-grey-800":c(n).activeTab!=="solution","text-grey-600 bg-[#141924]":c(n).activeTab==="solution"}]),onClick:y[5]||(y[5]=z=>c(n).activeTab="solution"),textContent:"Solution.php"},null,2)):_("",!0),s("div",z1,[s("p",F1,[m(" Press "),s("code",{class:"text-[10px] text-blue-400 font-bold",textContent:f(c(d).shortcut)},null,8,T1),m(" to "),s("strong",{textContent:f(c(d).message)},null,8,U1),m(". ")])])]),c(n).activeTab==="challenge"?(i(),x(b1,{key:0})):_("",!0),c(n).activeTab==="test"?(i(),x(w1,{key:1})):_("",!0),c(n).currentQuestion.answer&&c(n).activeTab==="solution"?(i(),x(C1,{key:2})):_("",!0)])],32)}}}),P1={class:"grid grid-rows-[auto,1fr] h-full"},I1={class:"flex justify-between flex-shrink-0",style:{height:"90px"}},G1={class:"exam-question flex items-center gap-3 text-lg pr-10 text-grey-600"},O1={class:"flex-center h-10 w-10 lg:rounded-xl bg-card-600"},H1={class:"space-x-2 self-center flex-shrink-0"},q1={class:"bg-card-900 h-full rounded-xl grid place-items-center relative overflow-hidden"},V1={class:"w-full text-xl",style:{"max-width":"320px"}},E1=s("h3",{class:"font-medium pl-2"},"Nice Work!",-1),D1={class:"mt-4 space-y-2.5 text-lg"},Q1={class:"bg-card-500 rounded-xl px-5 py-1 w-full text-grey-600 flex justify-between gap-x-4"},R1=s("dt",null,"Solved Questions",-1),N1={"data-js":"solved-questions-count"},Z1={class:"bg-card-500 rounded-xl px-5 py-1 w-full text-grey-600 flex justify-between gap-x-4"},W1=s("dt",null,"Question Retries",-1),Y1={"data-js":"question-retries-count"},K1={class:"bg-card-500 rounded-xl px-5 py-1 w-full text-grey-600 flex justify-between gap-x-4"},J1=s("dt",null,"Final Score",-1),X1={"data-js":"final-score"},e2=["src"],t2=de({__name:"ExamResults",setup(e){let t=le("store"),n=S(()=>t.questions.map(o=>o.answer.retries).reduce((o,l)=>o+l,0));return(o,l)=>{const a=v("Btn");return i(),r("div",P1,[s("div",I1,[s("h2",G1,[s("span",O1,[u(Ga,{width:"22",class:"relative -top-px"})]),m(" All done! Let's see how you did. ")]),s("div",H1,[u(a,{as:"button",method:"delete",href:`/exams/${c(t).exam.id}/answers`,type:"button",only:["lesson"],onSuccess:c(t).restart.bind(c(t)),"preserve-scroll":!0,"data-js":"restart-exam-button"},{default:p(()=>[m(" Restart? ")]),_:1},8,["href","onSuccess"]),u(a,{is:"button",type:"button",state:"primary","data-js":"close-exam-button",onClick:l[0]||(l[0]=d=>c(t).dialog.close())},{default:p(()=>[m(" Close Exam ")]),_:1})])]),s("div",q1,[s("div",V1,[E1,s("dl",D1,[s("div",Q1,[R1,s("dd",N1,f(c(t).questions.length),1)]),s("div",Z1,[W1,s("dd",Y1,f(c(n)),1)]),s("div",K1,[J1,s("dd",X1,f(o.$page.props.lesson.exam.progress.score)+"%",1)])])]),s("img",{src:o.$page.props.series.svgThumbnail,alt:"",class:"absolute w-1/2 right-0 translate-x-1/2 mix-blend-luminosity opacity-10"},null,8,e2)])])}}}),s2=()=>{let e=ze.colors();ne(()=>import("./vendor-BUCcd7Gn.js").then(t=>t.a5),__vite__mapDeps([1,2])).then(t=>t.default({origin:{y:.9},colors:[e.frameworks,e.languages,e.tooling,e.techniques,e.testing,e.devops],zIndex:1e3}))},n2={class:"grid h-full w-full gap-4 px-6 pb-5 lg:grid-cols-[minmax(0,270px)_1fr]"},i2={class:"hide-scrollbar h-full overflow-auto"},H5={__name:"Exam",setup(e){let t=le("store");I(()=>{t.currentQuestionNumber=me().props.lesson.exam.progress.currentQuestionNumber,t.pendingAnswers={},J(()=>t.exam.progress.complete,o=>{o&&(t.activeTab="results")},{immediate:!0})}),we(()=>{});function n(){t.form.answer=t.pendingAnswers[t.currentQuestion.number].trim();let o=t.currentQuestionNumber;t.form.post(`/exams/${t.exam.id}/questions/${o}/answer`,{only:["flash","errors","lesson"],preserveScroll:!0,onError:()=>{t.form.errors.answer&&(t.error={questionNumber:o,message:t.form.errors.answer})},onSuccess:()=>{t.currentQuestion.answer.correct&&s2(),t.error=!1,t.form.reset()}})}return(o,l)=>(i(),r("div",n2,[u(a1),s("div",i2,[c(t).exam.progress.complete&&c(t).activeTab==="results"?(i(),x(t2,{key:0,onRestart:o.restart},null,8,["onRestart"])):(i(),x(j1,{key:1,onSubmit:n}))])]))}};function q5(){let e=Ce({dialog:null,minimized:!1,activeTab:"challenge",error:!1,hasErrorForQuestion(t){var n;return((n=this.error)==null?void 0:n.questionNumber)===t.number},setDialog(t){this.dialog=t},exam:S(()=>me().props.lesson.exam),questions:S(()=>e.exam.questions),currentQuestionNumber:1,currentQuestion:S(()=>e.questions[e.currentQuestionNumber-1]),pendingAnswers:{},changeQuestion(t){this.currentQuestionNumber=t,this.activeTab="challenge"},nextQuestion(){this.changeQuestion(e.exam.progress.currentQuestionNumber)},restart(){this.changeQuestion(1),this.pendingAnswers={}},form:yt({answer:""})});return e}const l2={},a2={class:"bg-blue-400 rounded-xl text-2xs px-3 inline-block text-white"};function o2(e,t){return i(),r("span",a2,[L(e.$slots,"default")])}const V5=k(l2,[["render",o2]]),r2={},c2={width:"62",height:"62",viewBox:"0 0 62 62",fill:"none"},d2=s("circle",{opacity:"0.824079",cx:"31",cy:"31",r:"29.5",fill:"#328AF1","fill-opacity":"0.1",stroke:"#328AF1","stroke-width":"3"},null,-1),u2=s("path",{d:"M19.875 12H42.6253C43.971 12 45.12 12.4761 46.0721 13.4282C47.0242 14.3803 47.5003 15.5292 47.5003 16.875V46.125C47.5003 47.4708 47.0242 48.6197 46.0721 49.5718C45.12 50.5239 43.971 51 42.6253 51H19.875C18.5292 51 17.3803 50.5239 16.4282 49.5718C15.4761 48.6197 15 47.4708 15 46.125V16.875C15 15.5292 15.4761 14.3803 16.4282 13.4282C17.3803 12.4761 18.5292 12 19.875 12ZM24.75 39.6253H37.7503C38.199 39.6253 38.582 39.7839 38.8992 40.1011C39.2164 40.4183 39.375 40.8012 39.375 41.25C39.375 41.6988 39.2164 42.0817 38.8992 42.3989C38.582 42.7161 38.199 42.8747 37.7503 42.8747H24.75C24.3012 42.8747 23.9183 42.7161 23.6011 42.3989C23.2839 42.0817 23.1253 41.6988 23.1253 41.25C23.1253 40.8012 23.2839 40.4183 23.6011 40.1011C23.9183 39.7839 24.3012 39.6253 24.75 39.6253ZM24.75 33.1247H37.7503C38.199 33.1247 38.582 33.2833 38.8992 33.6005C39.2164 33.9177 39.375 34.3007 39.375 34.7495C39.375 35.1982 39.2164 35.5812 38.8992 35.8984C38.582 36.2156 38.199 36.3742 37.7503 36.3742H24.75C24.3012 36.3742 23.9183 36.2156 23.6011 35.8984C23.2839 35.5812 23.1253 35.1982 23.1253 34.7495C23.1253 34.3007 23.2839 33.9177 23.6011 33.6005C23.9183 33.2833 24.3012 33.1247 24.75 33.1247ZM42.6245 15.2503H19.8742C19.4255 15.2503 19.0425 15.4089 18.7253 15.7261C18.4081 16.0433 18.2495 16.4262 18.2495 16.875V46.125C18.2495 46.5738 18.4081 46.9567 18.7253 47.2739C19.0425 47.5911 19.4255 47.7497 19.8742 47.7497H42.6245C43.0732 47.7497 43.4562 47.5911 43.7734 47.2739C44.0906 46.9567 44.2492 46.5738 44.2492 46.125V16.875C44.2492 16.4262 44.0906 16.0433 43.7734 15.7261C43.4562 15.4089 43.0732 15.2503 42.6245 15.2503ZM24.75 26.625H37.7503C38.199 26.625 38.582 26.7836 38.8992 27.1008C39.2164 27.418 39.375 27.801 39.375 28.2497C39.375 28.6985 39.2164 29.0815 38.8992 29.3987C38.582 29.7159 38.199 29.8745 37.7503 29.8745H24.75C24.3012 29.8745 23.9183 29.7159 23.6011 29.3987C23.2839 29.0815 23.1253 28.6985 23.1253 28.2497C23.1253 27.801 23.2839 27.418 23.6011 27.1008C23.9183 26.7836 24.3012 26.625 24.75 26.625ZM24.75 20.1253H31.2497C31.6985 20.1253 32.0815 20.2839 32.3987 20.6011C32.7159 20.9183 32.8745 21.3012 32.8745 21.75C32.8745 22.1988 32.7159 22.5817 32.3987 22.8989C32.0815 23.2161 31.6985 23.3747 31.2497 23.3747H24.75C24.3012 23.3747 23.9183 23.2161 23.6011 22.8989C23.2839 22.5817 23.1253 22.1988 23.1253 21.75C23.1253 21.3012 23.2839 20.9183 23.6011 20.6011C23.9183 20.2839 24.3012 20.1253 24.75 20.1253Z",fill:"#328AF1"},null,-1),h2=s("ellipse",{cx:"41.7358",cy:"16.8108",rx:"7.73582",ry:"7.81076",fill:"#328AF1"},null,-1),f2=s("path",{d:"M38.3399 17.2413L40.7196 19.4002L45.8854 14.6089",stroke:"white","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),m2=[d2,u2,h2,f2];function p2(e,t){return i(),r("svg",c2,m2)}const E5=k(r2,[["render",p2]]),x2={},_2={width:"62",height:"62",viewBox:"0 0 62 62",fill:"none"},g2=H('',5),y2=[g2];function v2(e,t){return i(),r("svg",_2,y2)}const D5=k(x2,[["render",v2]]),b2={},w2={width:"62",height:"62",viewBox:"0 0 62 62",fill:"none"},C2=H('',8),k2=[C2];function $2(e,t){return i(),r("svg",w2,k2)}const Q5=k(b2,[["render",$2]]),L2=["href"],B2=["src","alt"],R5={__name:"Ad",props:{link:{type:String,default:"https://laracasts.com/contact"},image:{type:String,default:"/images/call-to-action/laracasts-cta-placeholder.png"},imageAlt:{type:String,default:""}},setup(e){return(t,n)=>(i(),r("a",{href:e.link,class:"mx-auto block cursor-pointer outline-none",style:{"max-width":"370px"},target:"_blank"},[s("img",{src:e.image,alt:e.imageAlt,width:"370",height:"140",loading:"lazy",class:"rounded-md"},null,8,B2)],8,L2))}},S2={components:{Icon:F},inheritAttrs:!1,props:{modelValue:[String,Number,Object]}},M2={class:"relative flex h-full items-center overflow-hidden rounded-xl bg-card-600 text-white hover:bg-card-300"},A2=["value"];function z2(e,t,n,o,l,a){const d=v("Icon");return i(),r("div",M2,[s("select",te(e.$attrs,{value:n.modelValue,class:"select-css h-8 bg-transparent pl-4 pr-8 text-2xs font-medium focus:bg-card-300",onChange:t[0]||(t[0]=h=>e.$emit("update:modelValue",h.target.value))}),[L(e.$slots,"default")],16,A2),u(d,{name:"down-arrow",width:"18",class:"pointer-events-none absolute",style:{right:"10px",top:"9px"}})])}const N5=k(S2,[["render",z2]]),Z5={__name:"FeedCountLabel",setup(e){let t=M(0);if(typeof window<"u"){let n=()=>{Y.get("/discuss/feed/fresh").then(({data:o})=>t.value=o.count)};we(ee.on("success",()=>{me().component.startsWith("Forum")&&n()})),I(n)}return(n,o)=>j((i(),r("div",{class:"fade-in flex-center absolute right-0 mr-3 h-5 w-5 rounded-full bg-blue-400 text-3xs font-semibold leading-off text-white"},f(c(t)),513)),[[q,c(t)>0]])}},F2=s("div",{class:"carbon-ads"},null,-1),W5=Object.assign({inheritAttrs:!1},{__name:"ForumPromo",setup(e){let t=M(!1),n=M(),o=M(null);const l=vt("(max-width: 991px)");I(()=>{a(),l.value&&fe.on("forum:mounted",()=>{t.value=!0,n.value="#forum-main-top"})});function a(){const d=document.createElement("script");d.id="_carbonads_js",d.src="//cdn.carbonads.com/carbon.js?serve=CKYILK77&placement=laracastscom",o.value.$el.appendChild(d)}return(d,h)=>{const y=v("Panel");return i(),x(Ee,{to:c(n),disabled:!c(t)},[u(y,te({ref_key:"ad",ref:o},d.$attrs),{default:p(()=>[F2]),_:1},16)],8,["to","disabled"])}}}),T2={class:"flex-1"},U2=["innerHTML"],j2=["textContent"],P2={class:"w-full"},et={__name:"SignUpCard",props:{wide:{type:Boolean,default:!1}},setup(e){let t="Join Laracasts Today!",n='Level Up Your Programming with Laracasts',o="$25 a month for everything we know about programming. Everything!",l=le("cta",{title:n,body:o,button:t});return(a,d)=>{const h=v("Panel");return i(),x(h,{class:"mx-auto px-0 py-0 text-center",background:!1,border:!1,style:{height:"220px",background:"linear-gradient(148deg, #21c8f6 -11%, rgba(33, 200, 246, 0) 42%)","max-width":"450px"}},{default:p(()=>[s("div",{class:g(["flex h-full flex-col justify-between gap-y-3 rounded-2xl px-5 py-4",e.wide?"items-start":"items-center"]),style:{"background-image":"radial-gradient(circle at 0% 2%, #0075ff, #1f406a 100%)","border-radius":"inherit"}},[s("div",{class:g(["flex flex-col items-center",e.wide?"mr-15 text-left":""])},[s("div",T2,[u(P,{src:"/images/forum/sidebar-join-laracasts-bg.png?v=2",class:g(["absolute",e.wide?"right-4 w-[174px]":"left-0"]),"aria-hidden":""},null,8,["class"]),u(P,{src:"/images/forum/sidebar-join-laracasts-robot.png?v=2",class:"absolute right-0 top-0",width:"105",alt:"Lary the robot head with HTML tag reflection in his goggles."}),s("h5",{class:g(["-mt-1 text-left font-semibold leading-tighter tracking-normal text-white",e.wide?"text-2xl xl:text-[30px]":"w-[65%] text-sm xl:text-xl"]),innerHTML:c(l).title||c(n)},null,10,U2),s("p",{class:"mt-5 text-xs text-white",textContent:f(c(l).body||c(o))},null,8,j2)])],2),s("div",P2,[u(Q,{is:"button",state:"primary",class:g(["mb-2 w-full",e.wide?"py-4":""])},{default:p(()=>[m(f(c(l).button||c(t)),1)]),_:1},8,["class"])])],2)]),_:1})}}},I2={class:"flex items-end justify-between"},G2={class:"flex items-center text-xl leading-none text-white"},O2=s("span",{"aria-hidden":"true",class:"absolute inset-0 rounded-3xl"},null,-1),H2={class:"font-grotesk text-xs text-grey-600"},q2={class:"clamp two-lines mt-4 text-xs text-grey-100"},V2={class:"flex items-center gap-x-2"},E2=["src"],D2={class:"flex w-full justify-between text-2xs"},Q2={class:"font-semibold tracking-tight"},R2=s("span",{"aria-hidden":"true",class:"absolute inset-0 rounded-2xl"},null,-1),N2={class:"text-grey-600"},Z2=["innerHTML"],Y5={__name:"ChannelCard",props:{channel:Object,showLatestConversation:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const o=v("InertiaLink"),l=v("Panel");return i(),x(l,{class:"group flex flex-col justify-between px-6 py-6",style:V({height:e.showLatestConversation?"250px":"120px"})},{default:p(()=>[s("header",null,[s("div",I2,[s("h2",G2,[s("span",{"aria-hidden":"true",class:"mr-3 inline-block h-5 rounded-xl",style:V([{width:"9px"},{background:e.channel.color}])},null,4),u(o,{href:e.channel.path},{default:p(()=>[O2,m(" "+f(e.channel.title),1)]),_:1},8,["href"])]),s("span",H2,f(e.channel.conversationCount.toLocaleString("en-US"))+" conversations ",1)]),s("p",q2,f(e.channel.description),1)]),e.showLatestConversation?(i(),x(l,{key:0,style:{height:"105px"},class:"py-3"},{default:p(()=>[s("div",V2,[s("img",{src:e.channel.latestConversation.avatar,alt:"",class:"w-6 rounded-lg"},null,8,E2),s("div",D2,[s("h5",Q2,[u(o,{href:e.channel.latestConversation.path,class:"link"},{default:p(()=>[R2,m(" "+f(e.channel.latestConversation.username.slice(0,1).toUpperCase()+e.channel.latestConversation.username.slice(1)),1)]),_:1},8,["href"]),m(" posted... ")]),s("span",N2,f(e.channel.latestConversation.date),1)])]),s("div",{class:"clamp three-lines mt-2 text-[11px] font-medium text-grey-100",style:{"word-break":"break-word"},innerHTML:e.channel.latestConversation.body},null,8,Z2)]),_:1})):_("",!0)]),_:1},8,["style"])}}},W2={key:0},Y2={class:"flex flex-wrap justify-center gap-x-2"},K2=["innerHTML"],K5={__name:"PaginationSimple",props:{links:{type:Object,default:()=>{}},only:{type:Array,default:()=>[]}},setup(e){let t=e,n=S(()=>[{label:"Previous",url:t.links.prev},{label:"Next",url:t.links.next}]);return(o,l)=>{const a=v("Btn");return c(n)[0].url||c(n)[1].url?(i(),r("div",W2,[s("div",Y2,[(i(!0),r(w,null,A(c(n),(d,h)=>(i(),r(w,{key:h},[d.url?(i(),x(a,{key:0,class:"leading-4 flex h-8 items-center justify-center rounded-xl border border-transparent p-4 text-2xs font-semibold",style:{"min-width":"40px"},only:e.only,onSuccess:()=>o.$emit("on-success"),href:d.url},{default:p(()=>[s("span",{innerHTML:d.label},null,8,K2)]),_:2},1032,["only","onSuccess","href"])):_("",!0)],64))),128))])])):_("",!0)}}},J2={},X2=s("img",{src:"/images/lary-tip-1.svg",alt:"Lary the robot mascot",class:"flex-shrink-1 absolute -my-3 -ml-8 -mr-3 opacity-10 md:relative md:opacity-100"},null,-1),ec={class:"py-4 md:flex"},tc=s("h6",{class:"mb-2 mr-3 flex-shrink-0 font-bold uppercase md:mb-0 md:normal-case",style:{"line-height":"inherit"}}," Tip: ",-1);function sc(e,t,n,o,l,a){const d=v("Panel");return i(),x(d,{class:"user-content relative mx-auto flex items-center text-sm",hoverable:!1},{default:p(()=>[X2,s("div",ec,[tc,s("div",null,[L(e.$slots,"default")])])]),_:3})}const J5=k(J2,[["render",sc]]),nc=s("div",{class:"pl-[105px] text-sm font-medium text-card-200"},[m(" Welcome to your "),s("strong",null,"Social Feed"),m(". Here, you can review a feed of all "),s("strong",null,"activity"),m(" from the Laracasts members you follow, such as when they "),s("strong",null,"publish"),m(" a new conversation, or "),s("strong",null,"post"),m(" a reply, or "),s("strong",null,"like"),m(" a comment. It's a great way to keep track of the people you admire. ")],-1),X5={__name:"FeedExplanation",setup(e){return(t,n)=>(i(),x(K,{class:"relative hidden py-5 md:flex md:items-center",border:!1},{default:p(()=>[u(P,{src:"/images/forum/forum-feed-lary-tip-icon.png",alt:"Lary the robot mascot",class:"absolute bottom-0",width:"89",height:"106"}),nc]),_:1}))}},ic=["textContent"],lc={class:"absolute right-0 mr-4 flex items-center rounded-lg p-3 transition-opacity group-hover:bg-card-300",style:{height:"30px"}},ac={__name:"FollowListTitle",props:{title:String,modelValue:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const o=v("Panel");return e.title?(i(),x(o,{key:0,class:"group flex cursor-pointer items-center justify-between py-3",role:"button",border:!1,onClick:n[0]||(n[0]=l=>t.$emit("update:modelValue",!e.modelValue))},{default:p(()=>[s("h2",{class:"font-bold",textContent:f(e.title)},null,8,ic),s("button",lc,[e.modelValue?(i(),x(F,{key:0,name:"up-arrow",class:"text-white",width:"20"})):(i(),x(F,{key:1,name:"down-arrow",class:"text-white",width:"20"}))])]),_:1})):_("",!0)}}},oc={components:{FollowListTitle:ac,Avatar:Te,Pagination:Xe},props:{users:{type:Array,required:!0},title:String,paginationLinks:Array,showPrivateFollows:{type:Boolean,default:!1}},data(){return{showList:!0,isHovered:!0}},computed:{viewableUsers(){return this.users.filter(e=>this.currentUser.is(e)?!1:this.showPrivateFollows||e.settings.show_profile)}}},rc={key:0},cc={key:0,class:"lg:mx-4"},dc={class:"clamp max-w-3/5 ml-4 pr-2 font-medium md:text-lg"},uc={class:"mt-1 text-2xs text-grey-600"},hc={key:0},fc={key:0,class:"ml-auto"};function mc(e,t,n,o,l,a){const d=v("FollowListTitle"),h=v("Avatar"),y=v("InertiaLink"),C=v("Btn"),B=v("Pagination");return a.viewableUsers.length?(i(),r("div",rc,[u(d,{modelValue:l.showList,"onUpdate:modelValue":t[0]||(t[0]=b=>l.showList=b),title:n.title,class:"my-5"},null,8,["modelValue","title"]),l.showList?(i(),r("div",cc,[(i(!0),r(w,null,A(a.viewableUsers,(b,$)=>(i(),r(w,{key:b.id},[e.currentUser.isNot(b)?(i(),r("div",{key:0,class:g(["flex items-center py-1 md:pl-1",{"mt-4":$>0}])},[u(h,{user:b,width:42,height:42,class:"flex-shrink-0"},null,8,["user"]),s("h3",dc,[u(y,{href:b.links.profile,class:"text-white"},{default:p(()=>[b.profile.full_name?(i(),r(w,{key:0},[m(f(b.profile.full_name)+" ",1),s("div",uc,[s("p",null,"@"+f(b.username),1),b.profile.job_title?(i(),r("p",hc,[m(f(b.profile.job_title)+" ",1),b.profile.employment?(i(),r(w,{key:0},[m(" at "+f(b.profile.employment),1)],64)):_("",!0)])):_("",!0)])],64)):(i(),r(w,{key:1},[m(f(b.username[0].toUpperCase()+b.username.substr(1)),1)],64))]),_:2},1032,["href"])]),b.settings.show_profile?(i(),r("div",fc,[u(C,{as:"button",transparent:!e.currentUser.follows(b),href:b.links.follow,method:e.currentUser.follows(b)?"delete":"post","preserve-scroll":"",class:"w-32 py-3 text-2xs md:w-48 md:text-xs",on:e.currentUser.follows(b),textContent:f(e.currentUser.follows(b)?"Following":"Not Following")},null,8,["transparent","href","method","on","textContent"])])):_("",!0)],2)):_("",!0)],64))),128))])):_("",!0),u(B,{links:n.paginationLinks,class:"mt-8"},null,8,["links"])])):_("",!0)}const e8=k(oc,[["render",mc]]),pc=s("div",{class:"mx-auto max-w-[670px] space-y-4 text-center"},[s("img",{src:"/images/forum/forum-feed-follow-placeholder@2x.png",alt:"Grey placeholder for following a user."}),s("img",{src:"/images/forum/forum-feed-follow-placeholder@2x.png",alt:"Grey placeholder for following a user."}),s("img",{src:"/images/forum/forum-feed-follow-placeholder@2x.png",alt:"Grey placeholder for following a user."})],-1),xc={class:"text-center"},t8={__name:"FollowListPlaceholder",setup(e){return(t,n)=>(i(),r(w,null,[pc,u(K,{border:!1,class:"mt-6"},{default:p(()=>[s("p",xc,[L(t.$slots,"default")])]),_:3})],64))}},_c={class:"lg:clamp lg:one-line ml-4 text-lg leading-tight text-white"},gc={__name:"FeedItemHeading",props:{item:Object},setup(e){let t=e,n=l=>ut(l),o=l=>({commented_on_lesson:"replied/commented on",replied_to_conversation:"replied/commented on",started_conversation:"started a new conversation",liked_comment:"loved a comment on",followed:l.is(t.item.user)?"were followed by":"was followed by",awarded_best_answer:(l.is(t.item.user)?"were":"was")+" awarded the best answer on",achievement_unlocked:"unlocked a new achievement badge:",completed_lesson:"watched a lesson:",completed_series:"completed the series: ",published_lesson:"published a video: "})[t.item.type];return(l,a)=>{const d=v("InertiaLink");return i(),r("h2",_c,[e.item.type!=="mentioned_member"?(i(),r(w,{key:0},[u(d,{href:`/@${e.item.user.username}`,class:"link font-medium"},{default:p(()=>[m(f(l.currentUser.is(e.item.user)?"You":c(n)(e.item.user.username)),1)]),_:1},8,["href"]),m(" "+f(c(o)(l.currentUser)+" "),1)],64)):(i(),r(w,{key:1},[u(d,{href:"/@"+e.item.subject.username,class:"link font-medium"},{default:p(()=>[m(f(c(n)(e.item.subject.username)),1)]),_:1},8,["href"]),l.currentUser.is(e.item.user)?(i(),r(w,{key:0},[m(" mentioned you in  ")],64)):(i(),r(w,{key:1},[m(" mentioned "),u(d,{href:`/@${e.item.user.username}`,class:"link font-medium"},{default:p(()=>[m(f(c(n)(e.item.user.username)),1)]),_:1},8,["href"]),m(" in ")],64))],64)),u(d,{href:e.item.subject.path,class:"link font-medium",title:e.item.subject.title},{default:p(()=>[m(f(e.item.type==="followed"&&e.item.subject.id===l.currentUser.id?"You":e.item.subject.title),1)]),_:1},8,["href","title"])])}}},yc={class:"activity-feed-item flex space-x-4 lg:space-x-6"},vc={class:"relative before:absolute before:left-1/2 before:mx-auto before:-ml-px before:mt-[30px] before:block before:h-full before:border-2 before:border-blue/15"},bc=["src"],wc=["src"],Cc={class:"flex items-center"},kc={class:"md:w-[46px]"},$c={class:"mt-3 md:ml-4 md:mt-0 md:pl-[46px]"},Lc=["innerHTML"],Bc={class:"text-2xs font-medium text-card-200"},Sc={__name:"FeedItem",props:{item:Object,index:Number},setup(e){let t=(n,o)=>{var l,a;o.target.tagName.toLowerCase()==="a"||((a=(l=o.target)==null?void 0:l.parentNode)==null?void 0:a.tagName.toLowerCase())==="a"||ee.visit(n.subject.path)};return(n,o)=>{const l=v("Panel");return i(),r("article",yc,[s("div",vc,[s("div",{class:g(["flex-center relative h-[38px] w-[38px] overflow-hidden rounded-full border border-card bg-card-900",e.index===0?"mt-4":"mt-8"])},[e.item.type==="achievement_unlocked"?(i(),r("img",{key:0,src:"/images/badges/"+e.item.icon,alt:"Achievement Badge'",class:g(`achievement is-${e.item.subject.level} has-been-awarded`),width:"30"},null,10,bc)):(i(),r("img",{key:1,src:e.item.icon+"?v=3",alt:"",class:"invert-0"},null,8,wc))],2)]),u(l,{border:"",class:g(["max-h-[700px] w-full cursor-pointer overflow-auto px-6 py-4 md:px-4 md:pb-3 md:pt-4",{"mt-4":e.index>0}]),onClick:o[0]||(o[0]=O(a=>c(t)(e.item,a),["prevent"]))},{default:p(()=>[s("header",Cc,[s("div",kc,[u(Te,{user:e.item.type==="mentioned_member"?e.item.subject.user:e.item.user,"bio-tooltip":!1,width:46,height:46},null,8,["user"])]),u(c(gc),{item:e.item},null,8,["item"])]),s("div",$c,[e.item.subject.body?(i(),r("div",{key:0,class:"content user-content mb-2 break-words text-sm text-grey-100 lg:pr-6",innerHTML:e.item.subject.body},null,8,Lc)):_("",!0),s("p",Bc,f(e.item.createdDiff),1)])]),_:1},8,["class"])])}}},Mc={id:"social-feed",class:"activity-feed"},Ac={key:0},zc={class:"mb-1 flex h-[40px] justify-end text-xs font-semibold uppercase text-grey-600 lg:text-sm"},Fc={key:1},s8={__name:"Feed",props:{feed:Object,paginationLinks:Array},setup(e){let t=(n,o)=>qe(n).format(o);return(n,o)=>(i(),r("div",Mc,[Object.keys(e.feed).length?(i(),r("div",Ac,[(i(!0),r(w,null,A(e.feed,(l,a)=>(i(),r("div",{key:a,"data-js":"feed-item",class:"relative"},[s("div",{class:g(["my-6",a===Object.keys(e.feed)[0]?"md:absolute md:right-0 md:top-[-97px]":""])},[s("div",zc,[u(Q,{is:"span",class:"h-7 flex-center mr-1 rounded-xl px-5 font-semibold hover:bg-card-600",textContent:f(c(t)(a,"MMM"))},null,8,["textContent"]),u(Q,{is:"span",hoverable:!1,class:"h-7 flex-center rounded-xl px-5 text-xs font-semibold hover:bg-card-600",textContent:f(c(t)(a,"D"))},null,8,["textContent"])])],2),(i(!0),r(w,null,A(l,(d,h)=>(i(),x(c(Sc),{key:d.id,item:d,index:h},null,8,["item","index"]))),128))]))),128)),e.paginationLinks.length?(i(),x(Xe,{key:0,links:e.paginationLinks,class:"mt-8"},null,8,["links"])):_("",!0)])):(i(),r("div",Fc,"No feed yet."))]))}},Tc={class:"inline-flex items-center normal-case"},Uc={class:"absolute right-0 z-100 mt-4 inline-flex min-w-[225px] flex-col space-y-1 rounded-xl bg-card-800 px-5 py-6 text-white shadow md:mt-[50px]"},jc={class:"inline-flex items-center text-xs font-medium"},Pc=["onUpdate:modelValue"],n8={__name:"FeedFilters",props:{filters:Object,omit:Array},emits:["update"],setup(e,{emit:t}){let n=e,o=t,l=M(!1),a=b=>ht(b),d={key:"feed.filters",get(){return typeof window<"u"?U.get(this.key):null},set(b){U.set(this.key,b)}};function h(){let b={};return n.omit.length===0&&d.get()?tap(d.get(),$=>o("update",$)):(n.filters.forEach($=>{b[$]=!n.omit.includes($)}),b)}let y=Ce(h()),C=M(null),B=b=>{C.value.contains(b.target)||(l.value=!1)};return J(l,b=>{document[b?"addEventListener":"removeEventListener"]("click",B)}),J(y,b=>{d.set(b),o("update",b)}),(b,$)=>{const T=v("Icon"),G=v("Btn");return i(),r("div",{ref_key:"el",ref:C,class:"relative focus:outline-none",tabindex:"-1",onFocusin:$[1]||($[1]=W=>pe(l)?l.value=!0:l=!0)},[u(G,{class:g(["btn btn-secondary py-0 md:px-6",{"is-active":c(l)}]),onMousedown:$[0]||($[0]=O(W=>pe(l)?l.value=!c(l):l=!c(l),["prevent"]))},{default:p(()=>[s("span",Tc,[m(" Custom "),u(T,{name:"down-arrow",class:"ml-3"})])]),_:1},8,["class"]),u(_e,{"enter-active-class":"transition duration-300 transform ease-out","enter-from-class":"translate-y-2 opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-200 transform ease-out","leave-from-class":"opacity-100","leave-to-class":"translate-y-2 opacity-0"},{default:p(()=>[j(s("div",Uc,[(i(!0),r(w,null,A(c(y),(W,se)=>(i(),r("div",{key:se},[s("label",jc,[j(s("input",{"onUpdate:modelValue":oe=>c(y)[se]=oe,type:"checkbox",class:"mr-2"},null,8,Pc),[[Re,c(y)[se]]]),m(" "+f(c(a)(se)),1)])]))),128))],512),[[q,c(l)]])]),_:1})],544)}}},Ic={},Gc={width:"51",viewBox:"0 0 51 54",fill:"none"},Oc=H('',12),Hc=[Oc];function qc(e,t){return i(),r("svg",Gc,Hc)}const i8=k(Ic,[["render",qc]]),Vc={},Ec={width:"51",viewBox:"0 0 51 54",fill:"none"},Dc=H('',14),Qc=[Dc];function Rc(e,t){return i(),r("svg",Ec,Qc)}const l8=k(Vc,[["render",Rc]]),Nc={},Zc={width:"51",viewBox:"0 0 51 54",fill:"none"},Wc=H('',11),Yc=[Wc];function Kc(e,t){return i(),r("svg",Zc,Yc)}const a8=k(Nc,[["render",Kc]]),Jc={},Xc={width:"52",viewBox:"0 0 52 55",fill:"none"},e0=H('',15),t0=[e0];function s0(e,t){return i(),r("svg",Xc,t0)}const o8=k(Jc,[["render",s0]]),n0={},i0={width:"51",viewBox:"0 0 51 54",fill:"none"},l0=H('',17),a0=[l0];function o0(e,t){return i(),r("svg",i0,a0)}const r8=k(n0,[["render",o0]]),r0={},c0={width:"50",viewBox:"0 0 29 31",fill:"none"},d0=H('',4),u0=[d0];function h0(e,t){return i(),r("svg",c0,u0)}const c8=k(r0,[["render",h0]]),f0={props:{error:String,stripeKey:String,paymentIntent:String},data(){return{stripe:null,elements:null,paymentElement:null}},watch:{paymentIntent(e){e&&this.mountPaymentElement()}},mounted(){let e=document.createElement("script");e.setAttribute("src","https://js.stripe.com/v3/"),e.async=!0,document.head.appendChild(e),this.dispatcher.on("payment:process",t=>{this.processPayment(t)})},unmounted(){this.dispatcher.off("payment:process")},methods:{mountPaymentElement(){if(typeof Stripe>"u")return setTimeout(this.mountPaymentElement,50);this.stripe=Stripe(this.stripeKey),this.elements=this.stripe.elements({clientSecret:this.paymentIntent}),this.paymentElement=this.elements.create("payment",{fields:{billingDetails:{name:"never",email:"never"}}}),this.paymentElement.mount(this.$el),this.paymentElement.addEventListener("change",e=>{e.error&&this.$emit("update:error",e.error.message)})},processPayment(e){let t=location.origin==="https://laracasts.com"?"always":"if_required";this.stripe.confirmPayment({elements:this.elements,confirmParams:{return_url:e.returnUrl,payment_method_data:{billing_details:{name:e.name,email:e.email}}},redirect:t}).then(n=>n.error?(alert("Unfortunately, your payment was declined. Please try again."),this.dispatcher.emit("payment:failed"),this.$emit("update:error",n.error.message)):this.dispatcher.emit("payment:complete"))}}},m0={id:"payment-element",class:"mt-2 border border-solid border-grey-500 p-5 bg-white"},p0=s("img",{src:"/svg-loaders/loading-indicator.svg",alt:""},null,-1),x0=[p0];function _0(e,t,n,o,l,a){return i(),r("div",m0,x0)}const d8=k(f0,[["render",_0]]),je={__name:"CardsTwo",props:{series:Array},setup(e){let t=Math.random()>=.5;return(n,o)=>c(t)?(i(),r(w,{key:0},[u(ye,{series:e.series[0],placement:"start","clamp-description":2},null,8,["series"]),u(ge,{series:e.series[1]},null,8,["series"])],64)):(i(),r(w,{key:1},[u(ge,{series:e.series[1]},null,8,["series"]),u(ye,{series:e.series[0],placement:"end","clamp-description":2},null,8,["series"])],64))}},g0={__name:"CardsThree",props:{series:Array},setup(e){return(t,n)=>(i(),r(w,null,[u(ye,{series:e.series[0],"show-author-photo":!0,"clamp-description":6,placement:"full"},null,8,["series"]),u(je,{series:e.series.slice(1,3)},null,8,["series"])],64))}},y0={__name:"CardsFive",props:{series:Array},setup(e){return(t,n)=>(i(),r(w,null,[u(je,{series:e.series.slice(0,2)},null,8,["series"]),(i(!0),r(w,null,A(e.series.slice(2),o=>(i(),x(ge,{key:o.id,series:o},null,8,["series"]))),128))],64))}},v0={__name:"CardsSix",props:{series:Array},setup(e){return(t,n)=>(i(),x(Se,{series:e.series,"feature-first-course":!1},null,8,["series"]))}},u8={__name:"Cards",props:{series:Array,wide:{type:Boolean,default:!1},list:{type:Boolean,default:!1},featureFirstCourse:{type:Boolean,default:!0},showAuthorPhoto:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0}},setup(e){let t=e,n=S(()=>({2:je,3:g0,5:y0,6:v0})[t.series.length]??!1);return(o,l)=>(i(),r("div",{class:g(["cards flex xl:w-auto xl:grid",{"justify-center":e.series.length===1,"lg:justify-center":e.series.length<3,"hide-scrollbar overflow-auto px-[30px] xl:px-0 gap-6":e.responsive,"flex-wrap gap-4 xl:gap-6":!e.responsive}])},[e.wide?(i(!0),r(w,{key:0},A(e.series,a=>(i(),x(ye,{key:a.id,series:a,"show-author-photo":e.showAuthorPhoto,"clamp-description":6,placement:"full"},null,8,["series","show-author-photo"]))),128)):(i(),r(w,{key:1},[e.list?(i(),x(Se,{key:0,series:e.series,"feature-first-course":e.featureFirstCourse,responsive:e.responsive},null,8,["series","feature-first-course","responsive"])):c(n)?(i(),x(be(c(n)),{key:1,series:e.series},null,8,["series"])):(i(),x(Se,{key:2,series:e.series},null,8,["series"]))],64))],2))}},b0={class:"relative group overflow-hidden h-full flex"},w0={class:"absolute rounded-bl-xl rounded-br-xl bottom-0 w-full translate-y-0 text-center leading-none py-6 flex-center flex-col bg-black/50 font-semibold pointer-events-none"},C0=["textContent"],k0=["textContent"],h8={__name:"InstructorCard",props:{instructor:Object},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),x(o,{href:"/browse/instructors/"+e.instructor.username},{default:p(()=>[s("figure",b0,[u(P,{src:`https://ik.imagekit.io/laracasts/instructors/${e.instructor.id}.jpeg?tr=w-532`,class:"rounded-xl transition-all duration-300 grayscale hover:grayscale-0",alt:"Photo of "+e.instructor.profile.full_name,width:"266",height:"382"},null,8,["src","alt"]),s("figcaption",w0,[s("span",{class:"text-lg lg:text-2xl",textContent:f(e.instructor.profile.full_name)},null,8,C0),s("span",{class:"text-grey-600 text-sm mt-1",textContent:f(e.instructor.profile.job_title+" at "+e.instructor.profile.employment)},null,8,k0)])])]),_:1},8,["href"])}}},$0={__name:"ScrollingContainer",setup(e){const t=M(null);return I(()=>{var o;const n=(o=t.value)==null?void 0:o.firstElementChild;n&&n.classList.add("scrolling-container","hide-scrollbar")}),(n,o)=>{const l=v("Container");return i(),x(l,null,{default:p(()=>[s("div",{ref_key:"section",ref:t,class:"scrolling-container-section"},[L(n.$slots,"default")],512)]),_:3})}}},L0={class:"text-xs font-medium text-grey-600 group-hover:text-white"},B0={class:"font-bold text-white"},S0={class:"font-bold"},M0={key:0,class:"text-white"},ae={__name:"CodeLink",props:{property:String,value:{type:[String,Number]},comment:String,is:{type:String,default:"InertiaLink"},comma:{type:Boolean,default:!0}},setup(e){return(t,n)=>(i(),x(be(e.is),{class:"code-link group relative my-4 block rounded border-none pl-4 text-left text-blue-400 hover:bg-blue-400 hover:text-white",style:{"margin-left":"10px",width:"calc(100% - 10px)","font-size":"17px"}},{default:p(()=>[s("div",L0,"// "+f(e.comment.toLowerCase()),1),s("span",B0,'"'+f(e.property.toLowerCase())+'" => ',1),s("span",S0,'"'+f(e.value)+'"',1),e.comma?(i(),r("span",M0," , ")):_("",!0)]),_:1}))}},A0={class:"font-bold"},z0=s("span",{class:"font-bold text-[#ec454f]"},'"menu"',-1),F0=s("span",{class:"hidden font-bold xl:inline"},"]",-1),f8={__name:"CodeMenu",setup(e){let t=M(!1);I(o);let n=S(()=>window.innerWidth>=1200);function o(){if(!n.value)return;let l=document.querySelector(".home-banner-main"),a=l.getBoundingClientRect(),d={x:0,y:0,moved:!1};function h(B){d.moved=!0,d.x=B.clientX-a.left,d.y=B.clientY-a.top}l.addEventListener("mousemove",h,{passive:!0});function y(B,b){let $=document.querySelector(B),T=(d.x-a.width/2)/a.width*b,G=(d.y-a.height/2)/a.height*b;G<-20&&(l=document.querySelector(".home-banner-main"),a=l.getBoundingClientRect(),d={x:0,y:0,moved:!1},T=0,G=0),$.style.transform=`translate(${T}px, ${G}px)`}function C(){d.moved&&(y(".code-menu",-40),d.moved=!1),requestAnimationFrame(C)}C(),we(ee.on("start",function(){l.removeEventListener("mousemove",h,{passive:!0})}))}return(l,a)=>(i(),r("div",{class:g(["code-menu hide-scrollbar relative z-10 h-auto w-full flex-shrink-0 overflow-visible rounded-xl border border-card-900 bg-[#020407] px-6 py-6 font-bold text-white lg:w-[317px]",{"pending-hover":!c(t)}]),onMouseover:a[2]||(a[2]=d=>pe(t)?t.value=!0:t=!0)},[s("div",A0,[z0,m(" => [ "),u(ae,{property:"Browse",value:"Series",comment:"Deep dives",href:"/series"}),u(ae,{property:"Watch",value:"Larabits",comment:"got five minutes",href:"/bits"}),u(ae,{property:"Find",value:"Topics",comment:"pick a category",href:"/browse"}),u(ae,{property:"Follow",value:"Path",comment:"learn this next",href:"/path"}),u(ae,{property:"Discuss",value:"Forum",comment:"Engage the community",href:"/discuss"}),l.signedIn?(i(),x(ae,{key:0,property:"Review",value:"Feed",comment:"what's going on",href:"/discuss/feed"})):_("",!0),l.signedIn?(i(),x(ae,{key:1,property:"Manage",value:"Library",comment:"things you've saved",href:"/me"})):_("",!0),u(ae,{is:"button",property:"Play",value:"Commercial",comment:"watch our ad",comma:!l.signedIn,onClick:a[0]||(a[0]=O(d=>l.dialog("commercial"),["prevent"]))},null,8,["comma"]),l.signedIn?_("",!0):(i(),x(ae,{key:2,is:"button",property:"Join",value:"Sign Up",comment:"you know what to do",comma:!1,onClick:a[1]||(a[1]=O(d=>l.dialog("signup"),["prevent","stop"]))})),F0])],34))}},T0={class:"container relative mx-auto flex w-full flex-1 flex-col items-center justify-center overflow-hidden px-8 py-10 widescreen:py-[100px] md:px-12 lg:flex-row lg:gap-16 xl:mx-[-100px] xl:justify-around xl:gap-16 widescreen:px-15 border-t-white/10 border-l-white/5 border-r-white/5 border-x border-t",style:{"max-width":"1550px","border-radius":"24px","background-color":"#020407"}},U0={class:"absolute left-0 top-0 z-20 flex gap-x-3 p-6"},j0=s("div",{class:"h-3 w-3 rounded-full bg-white/10"},null,-1),P0=s("div",{class:"h-3 w-3 rounded-full bg-white/10"},null,-1),m8={__name:"CodeEditorWindow",emits:["close"],setup(e,{emit:t}){let n=t;return(o,l)=>(i(),r("div",T0,[s("div",U0,[s("button",{class:"flex-center h-3 w-3 cursor-pointer rounded-full bg-red text-2xs font-bold text-red transition-colors duration-300 hover:bg-red-dark hover:text-black",onClick:l[0]||(l[0]=a=>c(n)("close"))}," ✕ "),j0,P0]),L(o.$slots,"default")]))}},I0={components:{Panel:K},inheritAttrs:!1,props:{topic:Object,active:{type:Boolean,default:!1}},computed:{thumbnailStyles(){return["nova","laravel forge"].includes(this.topic.name.toLowerCase())?"filter: invert(100%);":{}}},methods:{onSuccess(){document.querySelector("#topics-main").scrollIntoView({behavior:"smooth"})}}},G0={class:"topic-card flex flex-1 justify-center text-center md:max-w-[225px]"},O0={class:"flex flex-1 items-center"},H0={class:"mr-4 flex flex-shrink-0 justify-center"},q0=["src","alt"],V0={class:"w-full lg:w-auto flex justify-between md:block"},E0=["textContent"],D0=s("span",{class:"relative inline-block px-1 text-xs",style:{top:"1px"}}," • ",-1);function Q0(e,t,n,o,l,a){const d=v("Panel");return i(),r("div",G0,[u(d,te({tag:"InertiaLink",href:n.topic.path,active:n.active,class:["flex h-full w-full flex-shrink-0 cursor-pointer flex-col justify-between rounded-2xl px-3 py-1",{"bg-blue":n.active}],style:{height:"84px","min-width":"192px"},"preserve-scroll":e.$page.component==="Taxonomies/Show"||e.$page.component==="Topics/Show",onSuccess:a.onSuccess},e.$attrs),{default:p(()=>[s("div",O0,[s("div",H0,[s("img",{width:"50",height:"50",src:`/images/topics/icons/${n.topic.thumbnail}?v=4`,alt:n.topic.thumbnail+" topic icon",class:"h-full",style:V(a.thumbnailStyles),loading:"lazy"},null,12,q0)]),s("div",V0,[s("h2",{class:"text-left text-base font-semibold leading-tight",textContent:f(n.topic.name)},null,8,E0),s("div",{class:g(["hidden text-left md:block text-sm md:text-3xs",{"text-white md:text-card-200":!n.active}])},[m(f(n.topic.series_count)+" Series ",1),D0,m(" "+f(n.topic.episode_count)+" Videos ",1)],2)])])]),_:1},16,["href","active","class","preserve-scroll","onSuccess"])])}const He=k(I0,[["render",Q0]]),R0={id:"topics-nav",class:"max-w-none p-0"},N0={key:0,class:"container overflow-hidden px-[30px] xl:px-0","aria-label":"Topics Menu"},Z0={class:"flex min-h-[40px] items-center gap-x-4 overflow-x-auto overflow-y-hidden from-transparent via-[rgba(50,138,241,0.15)] to-transparent pr-[20px] text-center leading-loose after:absolute after:bottom-[-20px] after:hidden after:h-px after:w-full after:flex-shrink-0 after:bg-gradient-to-r md:mx-auto md:min-h-0 md:justify-center md:gap-x-8 md:overflow-x-visible md:overflow-y-visible md:pr-0 after:md:block lg:gap-x-12",style:{"max-width":"800px"}},W0={class:"relative inline-block flex-shrink-0"},Y0={key:1},K0={key:1},p8={__name:"TopicsGrid",props:{taxonomies:Array,topics:Array,showNav:{type:Boolean,default:!0},rows:{type:[Boolean,Number],default:!1},scrolling:{type:Boolean,default:!0}},setup(e){let t=e,n=t.rows||Math.ceil(t.topics.length/5);return(o,l)=>{const a=v("InertiaLink"),d=v("Container");return i(),r("section",R0,[e.showNav?(i(),r("nav",N0,[s("ul",Z0,[s("li",W0,[u(a,{href:"/browse/all",class:g(["taxonomy-nav-link rounded-full px-4 py-2 text-base font-medium hover:text-white md:px-0 md:py-0 md:text-lg",o.isUrl("browse/all")||o.isUrl("/")||o.isUrl("latest/*")?"is-active text-white md:bg-transparent":"md:bg-transparent text-card-300"]),"preserve-scroll":o.$page.component.includes("Taxonomies")||o.$page.component.includes("Topics")},{default:p(()=>[m(" All Topics ")]),_:1},8,["class","preserve-scroll"])]),(i(!0),r(w,null,A(e.taxonomies,h=>{var y;return i(),r("li",{key:h.id,class:"relative inline-block flex-shrink-0"},[u(a,{href:h.path,class:g(["taxonomy-nav-link rounded-full px-4 py-2 text-base font-medium hover:text-white md:px-0 md:py-0 md:text-lg",o.isUrl(h.path)||((y=o.$page.props.taxonomy)==null?void 0:y.id)===h.id?"is-active text-white md:bg-transparent":"md:bg-transparent text-card-300"]),"preserve-scroll":o.$page.component.includes("Taxonomies")||o.$page.component.includes("Topics")},{default:p(()=>[m(f(h.name),1)]),_:2},1032,["href","class","preserve-scroll"])])}),128))])])):_("",!0),e.scrolling?(i(),x($0,{key:1},{default:p(()=>[s("div",{class:g(["mx-auto mb-3 mt-8 grid grid-flow-col justify-start gap-x-4 gap-y-5 px-[30px] overflow-auto",e.showNav?"md:mt-10":""]),style:V(`grid-template-rows: repeat(${c(n)}, 1fr); grid-auto-columns: 225px`)},[e.topics.length?(i(!0),r(w,{key:0},A(e.topics,h=>(i(),x(He,{key:h.id,topic:h,active:o.isUrl(h.path)},{default:p(()=>[m(f(h.name),1)]),_:2},1032,["topic","active"]))),128)):(i(),r("p",Y0,"No topics for this taxonomy yet."))],6)]),_:1})):(i(),x(d,{key:2,class:"flex"},{default:p(()=>[s("div",{class:g(["mx-auto mb-3 mt-8 grid grid-flow-col justify-start gap-x-4 gap-y-5 px-[30px] overflow-auto",e.showNav?"md:mt-10":""]),style:V(`grid-template-rows: repeat(${c(n)}, 1fr); grid-auto-columns: 225px`)},[e.topics.length?(i(!0),r(w,{key:0},A(e.topics,h=>(i(),x(He,{key:h.id,topic:h,active:o.isUrl(h.path)},{default:p(()=>[m(f(h.name),1)]),_:2},1032,["topic","active"]))),128)):(i(),r("p",K0,"No topics for this taxonomy yet."))],6)]),_:1}))])}}},J0={class:"text-right"},x8={__name:"PlanCardsContainer",setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("div",null,[L(t.$slots,"heading",{},()=>[u(on,{title:"A Plan for Every Personality.",description:"Joining takes less than a minute, and, if your peers are correct, is the best decision you'll make all day. If you're still on the fence, we have a plan called “monthly” - and it’s not like the gym. Seriously, you can cancel in five seconds."})]),u(el),s("div",J0,[s("p",null,[u(o,{href:"/teams",class:"link font-medium text-grey-600"},{default:p(()=>[m(" *Learn more about team plans. ")]),_:1})])])])}}},X0=["onClick"],_8={__name:"TaxonomyFilters",props:{videos:Array,modelValue:String},setup(e){let t=e,n=S(()=>["All",...new Set(t.videos.map(l=>l.taxonomy.name))]),o=l=>l==="All"?t.videos.length:t.videos.filter(a=>a.taxonomy.name===l).length;return(l,a)=>(i(!0),r(w,null,A(c(n),d=>(i(),r("button",{key:d.toLowerCase(),class:g({"text-sm font-medium transition-colors duration-300":!0,"text-white":e.modelValue===d,"text-card-300":e.modelValue!==d,[d==="All"?"hover:text-white":`hover:text-${d.toLowerCase()}`]:!0}),onClick:h=>l.$emit("update:modelValue",d)},f(d)+" ("+f(c(o)(d))+") ",11,X0))),128))}},ed={inheritAttrs:!1,props:{items:Array,icon:{type:String,default:"checkmark"}}},td={class:"space-y-2"},sd=["innerHTML"];function nd(e,t,n,o,l,a){const d=v("Icon");return i(),r("ul",td,[(i(!0),r(w,null,A(n.items,(h,y)=>(i(),r("li",{key:y,class:"flex items-center text-sm font-semibold"},[s("div",te({class:"mr-2 flex items-center gap-x-3 rounded-full p-1",ref_for:!0},e.$attrs),[u(d,{name:n.icon,width:"10",height:"10",class:"text-white"},null,8,["name"]),s("div",{class:"font-medium",innerHTML:h},null,8,sd)],16)]))),128))])}const id=k(ed,[["render",nd]]),ld={class:"relative mb-10 w-full flex-shrink-0 xl:mb-0 xl:max-w-[435px] px-[30px] lg:px-0"},ad={class:"sticky space-y-6",style:{top:"40px"}},od={key:0,class:"bg-gradient-frameworks absolute hidden rounded-full md:flex md:items-center md:justify-center",style:{width:"103px",height:"103px","box-shadow":"0 0 0 8px #223452",top:"40px",left:"55px"},title:"Level Complete!","aria-label":"Level Complete"},rd={class:"md:ml-[205px]"},cd={class:"text-[30px] font-bold leading-tight"},dd=["textContent"],ud={class:"mt-4 flex justify-center gap-4 md:justify-start"},hd={class:"rounded-xl bg-card-default px-5 py-3 text-center"},fd=["textContent"],md=s("div",{class:"font-grotesk text-[14px] font-medium text-grey-600"},"Series",-1),pd={class:"rounded-xl bg-card-default px-5 py-3 text-center"},xd=["textContent"],_d=s("div",{class:"font-grotesk text-[14px] font-medium text-grey-600"},"Hours",-1),gd={class:"mt-6 space-y-6"},yd=["innerHTML"],vd=s("h5",{class:"-mx-3 mb-3 rounded-xl bg-card-default px-4 py-2 font-semibold text-grey-600"}," Things You'll Learn ",-1),bd={class:"-mx-3 rounded-xl bg-card-default px-4 py-2 font-semibold text-grey-600"},wd={class:"mt-3 flex flex-wrap gap-3"},Cd={class:"-mx-3 mb-3 rounded-xl bg-card-default px-4 py-2 font-semibold text-grey-600"},kd={class:"max-w-[calc(100vw-126px] relative block overflow-auto lg:max-w-none",style:{"max-width":"calc(100vw - 126px)"}},$d={class:"relative inline-flex gap-4 before:absolute before:top-[calc(50%-1.875px)] before:block before:h-[3px] before:w-full before:bg-card-600"},Ld={key:0,class:"flex-center h-10 w-10 rounded-full bg-frameworks relative"},Bd=["textContent"],Sd={__name:"LevelDetails",props:{level:Object},setup(e){let t=e,n=S(()=>t.level.completed),o=S(()=>({1:"One",2:"Two",3:"Three",4:"Four",5:"Five",6:"Six",7:"Seven",8:"Eight",9:"Nine",10:"Ten"})[t.level.position]),l=S(()=>{let a={1:264,2:264,3:225,4:212},d={1:"md:-ml-12 md:-mt-2 w-[200px] md:w-[264px]",2:"md:-ml-[5.5rem] md:-mt-2 w-[200px] md:w-[264px]",3:"md:-ml-10 md:-mt-2 w-[200px] md:w-[225px]",4:"md:-ml-10 md:-mt-2 w-[200px] md:w-[212px]"};return{width:a[t.level.position],class:d[t.level.position]}});return(a,d)=>{const h=v("Panel"),y=v("InertiaLink");return i(),r("aside",ld,[s("div",ad,[u(h,{hoverable:!1,class:"level-details px-8 text-center md:text-left"},{default:p(()=>[u(P,te({src:`/images/path/difficulty-${e.level.position}.png`,alt:"",class:"md:absolute md:-translate-y-12"},c(l)),null,16,["src"]),c(n)?(i(),r("div",od,[u(F,{name:"checkmark",width:"55",style:{"margin-top":"5px","margin-left":"2px"}})])):_("",!0),s("div",rd,[s("h2",cd,"Level "+f(c(o)),1),s("h4",{class:g(c(n)?"text-lg font-semibold text-blue-400":"font-medium text-grey-600"),textContent:f(c(n)?"Level Completed!":e.level.title)},null,10,dd),s("div",ud,[s("div",hd,[s("div",{class:"font-grotesk text-[28px] font-semibold leading-tight",textContent:f(e.level.series.length)},null,8,fd),md]),s("div",pd,[s("div",{class:"font-grotesk text-[28px] font-semibold leading-tight",textContent:f(e.level.totalHours)},null,8,xd),_d])])]),s("div",gd,[s("p",{class:"!font-normal",innerHTML:e.level.description},null,8,yd),s("div",null,[vd,u(id,{items:e.level.keyConcepts,class:"text-base"},null,8,["items"])]),s("div",null,[s("h5",bd," Your "+f(e.level.instructors.length>1?"Instructors":"Instructor")+" For Level "+f(c(o)),1),s("div",wd,[(i(!0),r(w,null,A(e.level.instructors,C=>(i(),x(P,{src:C.avatar,alt:C.name+"'s photo",width:"70",height:"70",class:"rounded-xl border-4 border-card-300"},null,8,["src","alt"]))),256))])]),s("div",null,[s("h5",Cd," Your Progress — "+f(e.level.completed?"Completed":e.level.completionRate+"% Complete"),1),s("div",kd,[s("div",$d,[(i(!0),r(w,null,A(e.level.series,(C,B)=>(i(),r(w,null,[a.signedIn&&C.progress.completed?(i(),r("div",Ld,[u(F,{name:"checkmark",width:"20",style:{"margin-top":"2px"}})])):(i(),r("div",{key:1,class:g(["flex-center h-10 w-10 rounded-full text-lg font-semibold bg-card-600 relative",{"cursor-not-allowed":!a.signedIn}]),textContent:f(B+1)},null,10,Bd))],64))),256))])])])])]),_:1}),a.currentUser.subscribed?_("",!0):(i(),x(y,{key:0,href:"/signup",class:"block"},{default:p(()=>[u(et,{heading:"",wide:""})]),_:1}))])])}}},Md={},Ad={width:"13",viewBox:"0 0 19 21",fill:"none",class:"text-card-900 group-hover:text-card-300"},zd=H('',4),Fd=[zd];function Td(e,t){return i(),r("svg",Ad,Fd)}const Ud=k(Md,[["render",Td]]),jd={key:0,class:"branches mt-10 flex flex-col gap-x-8 xl:flex-row"},Pd={class:"relative mb-4 w-full flex-shrink-0 xl:mb-0 xl:mb-10 xl:max-w-[435px]"},Id={class:"group relative inline-block cursor-pointer text-xl font-semibold","data-tooltip":"Here, you'll find a list of recommended, but optional resources that are relevant to this level. You may work through them, or continue along the main path."},Gd=s("h4",{class:"text-2xs font-medium text-grey-600"},"Care for some extra credit?",-1),Od={class:"relative flex w-full flex-col gap-y-3 text-white"},Hd={class:"flex items-center"},qd={key:0,width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",class:"mr-3",alt:"Blog Post Icon"},Vd=s("circle",{opacity:".07",cx:"17",cy:"17",r:"17",fill:"#328AF1"},null,-1),Ed=s("rect",{x:"24.25",y:"6.75",width:"20.5",height:"14.5",rx:"2.25",transform:"rotate(90 24.25 6.75)",stroke:"#BAD9FC","stroke-width":"1.5"},null,-1),Dd=s("path",{d:"M20 10v14M14 10v10M17 10v5M17 19v5",stroke:"#BAD9FC","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Qd=[Vd,Ed,Dd],Rd={key:1,width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",class:"mr-3",alt:"Series Icon"},Nd=s("circle",{opacity:".07",cx:"17",cy:"17",r:"17",fill:"#328AF1"},null,-1),Zd=s("path",{d:"M25.168 17.045 13.006 24.17a.756.756 0 0 0-.028.016.03.03 0 0 1-.015.004.029.029 0 0 1-.014-.004.053.053 0 0 1-.022-.044V9.857c0-.021.01-.037.022-.044a.028.028 0 0 1 .014-.004c.004 0 .01 0 .015.004l12.19 7.143.006.003c.009.008.017.023.017.04a.053.053 0 0 1-.023.046z",stroke:"#BAD9FC","stroke-width":"1.5"},null,-1),Wd=[Nd,Zd],Yd={key:2,width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",class:"mr-3",alt:"Book Icon"},Kd=s("circle",{opacity:".07",cx:"17",cy:"17",r:"17",fill:"#328AF1"},null,-1),Jd=s("rect",{x:"9.75",y:"7.75",width:"14.5",height:"18.5",rx:"1.998",stroke:"#BAD9FC","stroke-width":"1.5"},null,-1),Xd=s("path",{d:"M12.557 21.75H24.25v2.502a1.998 1.998 0 0 1-1.998 1.998H11.443a1.693 1.693 0 0 1-1.693-1.693 2.807 2.807 0 0 1 2.807-2.807z",stroke:"#BAD9FC","stroke-width":"1.5"},null,-1),e3=s("path",{d:"M13 13h7.5",stroke:"#BAD9FC","stroke-width":"1.5","stroke-linecap":"round"},null,-1),t3=[Kd,Jd,Xd,e3],s3={class:"font-medium"},n3={class:"ml-auto hidden text-xs font-medium text-grey-600 md:inline"},i3={__name:"LevelBranches",props:{branches:Array},setup(e){return(t,n)=>{const o=v("Panel");return e.branches.length?(i(),r("div",jd,[s("aside",Pd,[u(o,{hoverable:!1,class:"px-8 text-center"},{default:p(()=>[u(P,{src:"/images/path/branch-icon.svg",class:"absolute right-0 top-0 -translate-y-1/3",alt:"","aria-hidden":""}),s("h3",Id,[m(" Optional Branches "),u(Ud,{class:"absolute -right-2 -top-px translate-x-1/2"})]),Gd]),_:1})]),s("div",Od,[(i(!0),r(w,null,A(e.branches,l=>(i(),x(o,{key:l.position,tag:"a",href:l.url,target:"_blank",class:"block w-full"},{default:p(()=>[s("div",Hd,[l.type==="post"?(i(),r("svg",qd,Qd)):l.type==="series"?(i(),r("svg",Rd,Wd)):l.type==="book"?(i(),r("svg",Yd,t3)):_("",!0),s("h5",s3,f(l.title),1),s("span",n3,f(l.source),1)])]),_:2},1032,["href"]))),128))])])):_("",!0)}}},l3={class:"level relative"},a3={class:"relative z-10 flex flex-col gap-x-8 xl:flex-row"},o3={class:"level-series relative flex-1"},r3={class:"hide-scrollbar flex flex-1 gap-6 overflow-auto xl:flex-col px-[30px] lg:px-0"},g8={__name:"Level",props:{level:Object,showBranches:{type:Boolean,default:!0},limit:{type:Number,default:20}},setup(e){return(t,n)=>(i(),r("div",l3,[s("div",a3,[u(Sd,{level:e.level},null,8,["level"]),s("div",o3,[s("div",r3,[(i(!0),r(w,null,A(e.level.series.slice(0,e.limit||20),o=>(i(),x(ye,{key:o.id,series:o,"author-photo":!1,"clamp-description":2},null,8,["series"]))),128))]),L(t.$slots,"default")])]),e.showBranches&&e.level.branches.length?(i(),x(i3,{key:0,branches:e.level.branches,class:"px-[30px] lg:px-0"},null,8,["branches"])):_("",!0)]))}},c3={class:"flex max-w-none flex-col items-center pb-10 pt-0 text-white xl:pt-4"},d3={class:"container rounded-xl",style:{"max-width":"1300px"}},u3={class:"relative z-10 mx-auto w-full rounded-xl bg-card-default md:h-[517px]"},h3=s("div",{class:"absolute inset-0 opacity-35",style:{"background-image":'url("/images/path/achievement-banner-bg.png")',"background-repeat":"no-repeat","background-position":"0 0","background-size":"534px 517px"}},null,-1),f3={class:"max-w-sm text-center md:w-1/2"},m3={class:"group relative cursor-pointer",style:{width:"260px",height:"279px",margin:"auto"}},p3={key:0,src:"/images/path/laravel-path-achievement-unlocked.png",class:"absolute left-0 opacity-0 transition-opacity duration-1000 group-hover:opacity-100",width:"260",alt:"Laravel Architect Achievement Badge"},x3=s("h3",{class:"mt-2 text-[30px] font-medium leading-tighter"},"The Laravel Architect Badge",-1),_3=["textContent"],g3={key:0,class:"mt-3 text-sm font-medium"},y3=s("span",{class:"text-blue-400"},"unlocked",-1),v3={key:1,class:"mt-3 text-sm font-medium"},b3={key:2,class:"mt-3 text-sm font-medium"},y8={__name:"PathAchievement",props:{path:Object},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r("div",null,[s("section",c3,[s("div",d3,[s("div",u3,[h3,s("div",{class:"flex h-full flex-col items-center justify-center p-5",style:V(e.path.completed?{background:"url('/images/path/achievement-banner-glow.png') top center no-repeat",backgroundSize:"947px auto"}:{})},[s("div",f3,[s("div",m3,[u(P,{src:`/images/path/laravel-path-achievement-${e.path.completed?"unlocked":"locked"}.png`,class:g({"mix-blend-luminosity transition-opacity duration-1000 group-hover:opacity-0":!e.path.completed}),width:"260",alt:"Laravel Architect Achievement Badge"},null,8,["src","class"]),e.path.completed?_("",!0):(i(),r("img",p3))]),x3,s("p",{class:"mt-1 font-grotesk text-lg font-semibold text-grey-600",textContent:f(e.path.completed?"Congratulations! We're proud of you!":e.path.started?"You're on your way!":"Complete this path to unlock.")},null,8,_3),e.path.completed?(i(),r("p",g3,[m(" You've reached the top of the mountain! Way to go! Breathe in that fresh air. This achievement badge has now been "),y3,m(" in your profile. ")])):e.path.started?(i(),r("p",v3," Remember, getting started is half the battle! Great work. Finish the path to unlock this achievement badge. ")):(i(),r("p",b3," The path is long, but you can do it! It's time to complete your first series. "))])],4)])]),t.currentUser.subscribed?_("",!0):(i(),x(o,{key:0,href:"/signup",class:"relative mt-10 block before:absolute before:left-[calc(50%-2px)] before:top-[-45px] before:block before:h-full before:w-[3px] before:bg-card-300",style:{"max-width":"433px"}},{default:p(()=>[u(et,{heading:"Let's get you signed up!",wide:""})]),_:1}))])])}}},w3={data(){return{tabs:[],activeTab:null}},watch:{activeTab(e){this.changeTab(e)}},mounted(){this.setInitialActiveTab()},methods:{setInitialActiveTab(){this.activeTab=this.tabs.find(e=>e.isActive)||this.tabs[0]},changeTab(e){this.tabs.map(t=>t.isActive=t==e)}}},C3={class:"mb-4 mb-8 flex justify-center border-b border-gray-400",role:"tablist"},k3=["aria-selected","aria-controls","onClick","textContent"];function $3(e,t,n,o,l,a){return i(),r("div",null,[L(e.$slots,"default",{tabs:l.tabs,changeTab:a.changeTab},()=>[s("ul",C3,[(i(!0),r(w,null,A(l.tabs,(d,h)=>(i(),r("li",{key:h,class:g(["mb-1 px-4 pb-1 text-xl",{"border-b-2 border-solid border-blue":d.isActive}])},[s("button",{class:g([{"font-bold":d.isActive},"focus:outline-none"]),role:"tab","aria-selected":d.isActive,"aria-controls":d.id,onClick:y=>l.activeTab=d,textContent:f(d.title)},null,10,k3)],2))),128))])])])}const v8=k(w3,[["render",$3]]),L3={props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}},data(){return{isActive:this.active}},computed:{id(){return"tab-"+this.title.replace(/ /g,"-").toLowerCase()}},watch:{isActive(e){e&&this.$emit("active")}},created(){this.$parent.tabs.push(this)}},B3=["id"];function S3(e,t,n,o,l,a){return j((i(),r("div",{id:a.id,role:"tabpanel"},[L(e.$slots,"default")],8,B3)),[[q,l.isActive]])}const b8=k(L3,[["render",S3]]),M3={inject:["quiz"],props:["currentQuestion"],computed:{width(){return this.currentQuestion/this.quiz.questions_count*100+"%"},styles(){return{transition:"transform 1s",transform:"translateX("+this.width+")",left:"-100vw"}}}},A3={class:"h-3 flex-none bg-grey-500"};function z3(e,t,n,o,l,a){return i(),r("div",A3,[s("div",{class:"bg-gradient-frameworks relative h-full w-full",style:V(a.styles)},null,4)])}const F3=k(M3,[["render",z3]]),T3={components:{QuizProgressBar:F3},inject:["quiz"],props:["status","currentQuestion"]},U3={class:"z-10 lg:fixed lg:w-full"},j3={key:0,class:"section flex flex-none items-center justify-between py-5"},P3={class:"hidden items-center md:flex"},I3=["src","alt"];function G3(e,t,n,o,l,a){const d=v("QuizProgressBar");return i(),r("header",U3,[j(u(d,{"current-question":n.currentQuestion},null,8,["current-question"]),[[q,n.status!=="idle"]]),n.status!=="completed"?(i(),r("div",j3,[s("div",null,[j(s("h2",P3,[s("img",{src:a.quiz.thumbnail,width:"31",height:"31",alt:a.quiz.title,class:"mr-3"},null,8,I3),s("button",{"data-js":"quiz-header-title",class:"font-bold text-black",onClick:t[0]||(t[0]=h=>e.$emit("restart"))},f(a.quiz.title),1)],512),[[q,n.status==="inProgress"||n.status==="inReview"]])]),j(s("div",{class:"text-3xl font-bold text-black"},f(n.currentQuestion||0)+" / "+f(a.quiz.questions_count),513),[[q,n.status!=="completed"]])])):_("",!0)])}const O3=k(T3,[["render",G3]]),H3={inject:["quiz"],props:["question","status","questionNumber"]},q3={class:"quiz-footer section bottom-0 w-full lg:fixed lg:right-0 lg:w-auto"},V3={class:"flex lg:justify-end"},E3=["disabled"],D3=s("svg",{width:"16",height:"9",viewBox:"0 0 16 9"},[s("path",{class:"fill-current","fill-rule":"evenodd",d:"M13.502 8.579c1.336 1.277 3.402-.64 2.066-1.916L9.006.392a1.478 1.478 0 0 0-2.005 0L.44 6.662C-.896 7.94 1.108 9.857 2.506 8.58l5.467-5.284 5.529 5.284z"})],-1),Q3=[D3],R3=["disabled"],N3=s("svg",{width:"16",height:"9",viewBox:"0 0 16 9"},[s("path",{class:"fill-current","fill-rule":"evenodd",d:"M2.498.421C1.162-.856-.904 1.061.432 2.337l6.562 6.271a1.478 1.478 0 0 0 2.005 0l6.561-6.27C16.896 1.06 14.892-.857 13.494.42L8.027 5.705 2.498.42z"})],-1),Z3=[N3];function W3(e,t,n,o,l,a){return i(),r("footer",q3,[s("div",V3,[j(s("button",{"data-js":"previous-question-button",class:"quiz-arrow mr-4 focus:outline-none",disabled:n.questionNumber===1,onClick:t[0]||(t[0]=d=>e.$emit("previous"))},Q3,8,E3),[[q,n.status==="inProgress"||n.status==="inReview"]]),j(s("button",{"data-js":"next-question-button",class:g(["quiz-arrow focus:outline-none",n.question&&n.question.solution.providedAnswer?"pulse":""]),disabled:n.question&&!n.question.solution.providedAnswer,onClick:t[1]||(t[1]=d=>e.$emit("next"))},Z3,10,R3),[[q,n.status==="inProgress"||n.status==="inReview"]])])])}const Y3=k(H3,[["render",W3]]),K3={inject:["quiz"],props:["question","number","status"],data(){return{readyToContinue:!1}},computed:{inReview(){return this.status==="inReview"},description(){return this.question.description?this.readyToContinue||this.inReview?this.question.solution.providedAnswer==="All of the Above"?this.question.description.replace(//g,this.question.choices[0]):this.question.description.replace(//g,this.question.solution.providedAnswer):this.question.description.replace(//g,"..."):null}},watch:{number(){this.readyToContinue=!1,this.$nextTick(Ze)},description(){this.$nextTick(()=>{this.$refs.description&&We(this.$refs.description.querySelector("pre code"))})}},methods:{answer(e){this.readyToContinue=!0,this.$emit("answered",{choice:e,continue:this.selectedChoice(e)})},indexToLetter(e){return["A","B","C","D","E"][e]},selectedChoice(e){return this.question.solution.providedAnswer==e},resultDescription(e){if(e==this.question.solution.answer&&this.selectedChoice(e))return"Correct!";if(e==this.question.solution.answer)return"Answer";if(this.selectedChoice(e))return"You Chose"}}},J3={class:"question container w-full overflow-auto lg:mx-auto lg:max-h-4/5 lg:px-0"},X3={class:"flex items-center text-xs text-card-200 lg:text-base font-medium"},eu={width:"18",height:"100%",viewBox:"0 0 21 16",class:"relative mr-2 h-4 w-4 rounded-full bg-blue p-1"},tu=s("g",{fill:"#FFF","fill-rule":"evenodd"},[s("path",{fill:"none",d:"M-3-5h27v27H-3z"}),s("path",{d:"M7.439 12.152l-5.037-5.36c-.447-.477-1.119-.477-1.566 0a1.204 1.204 0 0 0 0 1.667l6.603 7.03L20.086 2.025a1.204 1.204 0 0 0 0-1.668c-.447-.476-1.12-.476-1.567 0L7.44 12.152z"})],-1),su=[tu],nu={class:"bg-frameworks relative mr-2 h-4 w-4 rounded-full p-1",style:{top:"1px"}},iu=H('',1),lu=[iu],au=["innerHTML"],ou={key:0,ref:"description",class:"code-fragment-wrap mb-8"},ru=["innerHTML"],cu=["textContent"],du={class:"flex items-center"},uu=["data-js","onClick"],hu=["innerHTML"],fu=["innerHTML"];function mu(e,t,n,o,l,a){return i(),r("div",J3,[s("div",X3,[a.inReview?(i(),r(w,{key:0},[j((i(),r("svg",eu,su,512)),[[q,n.question.solution.isCorrect]]),j(s("div",nu,lu,512),[[q,!n.question.solution.isCorrect]])],64)):_("",!0),m(" Question "+f(n.number),1)]),s("h1",{class:"question-title mb-8 text-xl font-bold text-black lg:text-2xl",innerHTML:n.question.title},null,8,au),n.question.description?(i(),r("div",ou,[s("pre",null,[s("code",{innerHTML:a.description},null,8,ru)])],512)):_("",!0),s("ul",{class:g(["lg:ml-30",{"ml-5":n.status==="inProgress"}]),style:{"touch-action":"manipulation"}},[(i(!0),r(w,null,A(n.question.choices,(d,h)=>(i(),r("li",{key:h,class:g(["question-choice mb-5 flex flex-col lg:flex-row lg:items-center",{"hidden lg:flex":a.inReview&&d!=n.question.solution.providedAnswer&&d!=n.question.solution.answer}])},[a.inReview?(i(),r("span",{key:0,class:g(["quiz-review-question-label relative float-left inline-flex items-center justify-end self-start text-right lg:pt-2",{"font-bold text-blue-400":a.resultDescription(d)==="Correct!"||a.resultDescription(d)==="Answer","font-normal text-black":a.resultDescription(d)==="You Chose"}]),textContent:f(a.resultDescription(d))},null,10,cu)):_("",!0),s("div",du,[s("div",null,[s("button",{"data-js":"choice-"+a.indexToLetter(h).toLowerCase(),class:g(["flex items-center focus:outline-none",{"cursor-not-allowed":a.inReview,"is-selected":a.selectedChoice(d)}]),onClick:y=>a.answer(d)},[a.inReview?(i(),r("span",{key:0,class:g(["mr-5 inline-block rounded-lg px-4 py-2 text-lg font-bold transition-all",{"bg-blue text-white":d===n.question.solution.answer,"bg-frameworks text-white":d!==n.question.solution.answer&&a.selectedChoice(d),"bg-grey-400 text-black":d!==n.question.answer&&d!==n.question.solution.answer&&!a.selectedChoice(d)}])},f(a.indexToLetter(h)),3)):(i(),r("span",{key:1,class:g(["mr-5 inline-block rounded-lg px-4 py-2 text-lg font-bold transition-all",a.selectedChoice(d)?"btn-pulse bg-blue text-white":"bg-grey-400 text-black"])},f(a.indexToLetter(h)),3)),s("span",{style:{"max-width":"450px"},class:g(["text-left",{"font-bold text-black":!a.inReview&&a.selectedChoice(d)||a.inReview&&d==n.question.solution.answer,"text-card-200":!a.inReview&&!a.selectedChoice(d)}]),innerHTML:d},null,10,hu)],10,uu),a.inReview&&d==n.question.solution.answer?(i(),r("div",{key:0,class:"mt-2 text-xs text-black lg:ml-10 lg:mt-0 lg:pl-4",style:{"max-width":"350px"},innerHTML:n.question.solution.answerExplanation},null,8,fu)):_("",!0)])])],2))),128))],2)])}const pu=k(K3,[["render",mu]]),xu={inject:["quiz"],computed:{difficulty(){return["Beginner","Intermediate","Advanced"][this.quiz.difficulty-1]}}},_u={class:"fade-in flex h-full w-full flex-col items-center justify-around text-center lg:h-auto lg:justify-center"},gu=["src"],yu=["textContent"],vu={class:"mb-10"},bu=s("span",{class:"block rounded bg-blue",style:{width:"12px",height:"12px"}},null,-1),wu={class:"text-sm text-card-200"},Cu={class:"w-full"},ku=s("img",{src:"/images/quizzes/lary-info.svg",alt:"Lary the robot tip icon",class:"mb-2 mr-2 w-16 lg:mb-0 lg:w-auto"},null,-1),$u={key:0,class:"text-sm text-black"},Lu=["textContent"],Bu=s("br",{class:"lg:hidden"},null,-1),Su=s("strong",null,"Can you do better?",-1),Mu={key:1,class:"text-xs text-card-200"},Au=s("br",{class:"hidden lg:block"},null,-1),zu=s("strong",{class:"font-semibold"},"only the score from your first try will be recorded",-1),Fu=s("a",{href:"https://vignette.wikia.nocookie.net/doug/images/9/9e/Doug_Didn%27t_Do_It.png/revision/latest?cb=20180523142730",target:"_blank"},"permanent record",-1);function Tu(e,t,n,o,l,a){return i(),r("div",_u,[s("div",null,[s("img",{src:a.quiz.thumbnail,width:"110",height:"110",alt:"Quiz Title",class:"mb-4"},null,8,gu),s("h1",{"data-js":"quiz-cover-title",class:"mb-5 text-3xl font-bold text-black",textContent:f(a.quiz.title)},null,8,yu),s("div",vu,[s("div",{class:g(["difficulty-meter mb-2 flex flex-row-reverse justify-center",`is-${a.difficulty.toLowerCase()}`])},[s("span",{class:g(["block rounded",a.quiz.difficulty>2?"bg-blue":"bg-grey-500"]),style:{width:"12px",height:"12px","margin-left":"3px"}},null,2),s("span",{class:g(["block rounded bg-grey-500",a.quiz.difficulty>1?"bg-blue":"bg-grey-500"]),style:{width:"12px",height:"12px","margin-left":"3px"}},null,2),bu],2),s("h5",wu,f(a.difficulty)+" Difficulty",1)])]),s("div",Cu,[s("div",{class:g(["mb-8",a.quiz.recorded_score?"lg:flex lg:justify-center":""])},[ku,a.quiz.recorded_score?(i(),r("p",$u,[m(" Your original recorded score is "),s("strong",{class:"text-blue-400",textContent:f(a.quiz.recorded_score+"%")},null,8,Lu),m(". "),Bu,Su])):(i(),r("p",Mu,[m(" Heads up! You may take this quiz as many times as you wish, "),Au,m(" but "),zu,m(" to your "),Fu,m(". ")]))],2),s("button",{"data-js":"quiz-start-button",class:"btn mb-6 inline-block h-14 w-full border-grey-400 bg-grey-400 lg:mb-0 lg:w-64 lg:py-4",onClick:t[0]||(t[0]=d=>e.$emit("begin"))}," Let's Get Started ")])])}const Uu=k(xu,[["render",Tu]]),ju={props:{end:{},speed:{default:40},restart:{}},data(){return{count:0,interval:null}},computed:{increment(){return Math.ceil(this.end/30)}},watch:{restart(){this.count=0,this.begin()}},mounted(){this.begin()},methods:{begin(){ft(this.$el,()=>{this.interval=setInterval(this.tick,this.speed)})},tick(){if(this.count+this.increment>=this.end){this.count=this.end,clearInterval(this.interval),this.$emit("finished");return}this.count+=this.increment}}},Pu=["textContent"];function Iu(e,t,n,o,l,a){return i(),r("span",{textContent:f(l.count)},null,8,Pu)}const Gu=k(ju,[["render",Iu]]),Ou={components:{Counter:Gu},inject:["quiz"],props:{status:{},results:{default:function(){return{}}}},data(){return{showScore:!1}},computed:{shareMessage(){let e="";return this.results.score===100?e='🏆 I aced the "'+this.quiz.title+'" at Laracasts. Can you? '+this.quiz.path:e="🏆 I got "+this.results.correctAnswers+" out of "+this.quiz.questions_count+' questions right on the "'+this.quiz.title+'" at Laracasts. Beat that! '+this.quiz.path,encodeURI(e)}}},Hu={class:"fade-in flex h-full w-full flex-col items-center justify-around text-center lg:h-auto lg:justify-center"},qu={class:"relative mb-4 flex items-start overflow-hidden rounded-full"},Vu=["src"],Eu={class:"absolute inset-0 bg-blue",style:{opacity:"0.8"}},Du={viewBox:"0 0 23 17",class:"absolute inset-0 h-full w-full p-6",style:{"margin-top":"3px"}},Qu=s("path",{fill:"#FFF","fill-rule":"evenodd",d:"M7.865 12.881l-5.593-5.57a1.205 1.205 0 0 0-1.74 0 1.193 1.193 0 0 0 0 1.733l7.333 7.303L21.911 2.36a1.193 1.193 0 0 0 0-1.732 1.205 1.205 0 0 0-1.74 0L7.865 12.88z"},null,-1),Ru=[Qu],Nu={class:"mb-4 text-4xl font-bold text-black lg:mb-0 lg:text-5xl"},Zu={class:"mb-8 w-full"},Wu=s("br",{class:"hidden lg:block"},null,-1),Yu={class:"mb-8 lg:flex"},Ku=s("img",{src:"/images/quizzes/lary-info.svg",alt:"Lary the robot tip icon",class:"mb-2 mr-2 w-16 lg:mb-0 lg:w-auto"},null,-1),Ju={class:"text-sm text-black"},Xu=s("strong",null,"Hey, psst!",-1),e4=["textContent"],t4=s("h5",{class:"mb-2 text-sm text-black"},"Share Your Score",-1),s4=["href"],n4=s("svg",{width:"25",height:"25",viewBox:"0 0 25 25",class:"p-px text-blue-400 transition-all hover:text-card-300"},[s("path",{class:"fill-current","fill-rule":"nonzero",d:"M12.413 0C5.568 0 0 5.569 0 12.413s5.569 12.413 12.413 12.413 12.413-5.569 12.413-12.413C24.826 5.568 19.258 0 12.413 0zm5.538 9.572c.005.123.008.247.008.371 0 3.776-2.873 8.127-8.13 8.127a8.081 8.081 0 0 1-4.379-1.282 5.734 5.734 0 0 0 4.23-1.183 2.86 2.86 0 0 1-2.669-1.984 2.88 2.88 0 0 0 1.29-.049 2.858 2.858 0 0 1-2.292-2.801l.001-.036c.385.213.825.343 1.293.357a2.855 2.855 0 0 1-1.27-2.378c0-.524.14-1.015.386-1.437a8.112 8.112 0 0 0 5.889 2.987 2.857 2.857 0 0 1 4.869-2.607 5.703 5.703 0 0 0 1.814-.694 2.87 2.87 0 0 1-1.258 1.581 5.68 5.68 0 0 0 1.642-.449 5.747 5.747 0 0 1-1.424 1.477z"})],-1),i4=[n4];function l4(e,t,n,o,l,a){const d=v("Counter");return i(),r("div",Hu,[s("div",qu,[s("img",{src:a.quiz.thumbnail,width:"90",height:"90",alt:"Quiz Title",class:"hidden lg:inline-block"},null,8,Vu),s("div",Eu,[(i(),r("svg",Du,Ru))])]),s("div",null,[s("h1",Nu,[m(" You Got "),u(d,{end:n.results.correctAnswers,restart:n.status==="completed",increment:1,speed:100,onFinished:t[0]||(t[0]=h=>l.showScore=!0)},null,8,["end","restart"]),m(" out of "+f(a.quiz.questions_count)+" right! ",1)]),s("h3",{class:g(["mb-10 text-2xl font-bold text-black",l.showScore?"opacity-1 fade-in delay":"opacity-0"])},' You have been graded "'+f(n.results.letterScore)+'" ',3)]),s("div",Zu,[s("button",{class:g(["btn mb-4 inline-block h-14 w-full border-grey-400 bg-grey-400 lg:w-64 lg:py-4",l.showScore?"btn-pulse wait-1s":""]),onClick:t[1]||(t[1]=h=>e.$emit("review"))}," Review Solutions ",2),Wu,s("button",{class:"btn mb-2 inline-block h-14 w-full border-grey-400 bg-grey-400 lg:w-64 lg:py-4",onClick:t[2]||(t[2]=h=>e.$emit("restart"))}," Restart Quiz ")]),s("div",null,[s("div",Yu,[Ku,s("p",Ju,[Xu,m(" You scored higher than "),s("strong",{class:"text-blue-400",textContent:f(n.results.comparedToOthers+"%")},null,8,e4),m(" of people who have taken this test! ")])]),s("div",null,[t4,s("a",{href:`https://twitter.com/intent/tweet?text=${a.shareMessage}`,target:"_blank",class:"inline-block"},i4,8,s4)])])])}const a4=k(Ou,[["render",l4]]),o4={components:{FlashDialog:ol,QuizHeader:O3,QuizFooter:Y3,QuizQuestion:pu,QuizCover:Uu,QuizResults:a4},provide(){return{quiz:this.quiz}},props:["quiz"],data(){return{status:"idle",questions:[],currentQuestion:1,showQuestion:!0,results:null,transition:"question-fade-next"}},computed:{question(){return this.questions[this.currentQuestion-1]},correctAnswers(){return this.questions.filter(e=>e.isCorrect).length}},watch:{currentQuestion(){typeof window<"u"&&U.set(window.location.pathname,this.questions)}},mounted(){this.setQuestions(),this.quiz.recorded_score&&this.quiz.answers&&(this.currentQuestion=this.questions.length,this.dispatch("completed")),window.addEventListener("keyup",e=>{(e.keyCode===37||e.keyCode===38)&&this.previous(),(e.keyCode===39||e.keyCode===40)&&this.next()})},methods:{setQuestions(){this.questions=U.get(location.pathname,[]),this.questions.length===0&&(this.questions=this.quiz.questions.map(e=>(e.solution={},e))),this.quiz.recorded_score&&this.quiz.answers&&(this.questions=this.questions.map(e=>(e.solution.providedAnswer=this.quiz.answers.find(t=>t.id==e.id).answer,e)))},start(){this.currentQuestion=1,this.showQuestion=!0},restart(){this.transition=!1,this.clearAllAnswers(),U.remove(location.pathname),this.start()},previous(){this.transition="question-fade-previous",this.showQuestion=!1,setTimeout(()=>{this.currentQuestion===1?this.dispatch("restart",!0):this.currentQuestion--,this.showQuestion=!0},500)},next(){this.transition="question-fade-next",this.question.solution.providedAnswer&&(this.currentQuestion===this.questions.length?(this.showQuestion=!1,setTimeout(()=>{this.dispatch("completed")},350)):(this.showQuestion=!1,setTimeout(()=>{this.currentQuestion++,this.showQuestion=!0},350)))},complete(){U.set(window.location.pathname,this.questions);let e=this.questions.map(t=>({id:t.id,answer:t.solution.providedAnswer}));Ve.post(location.pathname+"/complete",{answers:e}).then(t=>t.data).then(t=>{this.results=t.results,this.questions=this.questions.map(n=>(n.solution=t.solutions.find(o=>o.id==n.id),n))})},clearAllAnswers(){this.questions=this.questions.map(e=>(delete e.solution.providedAnswer,e))},dispatch(e,t={}){let n={idle:{start(){this.status="inProgress",this.start()},completed(){this.status="inProgress",this.dispatch("completed")}},inProgress:{answer(o){this.question.solution.providedAnswer=o.choice,o.continue&&this.next()},restart(o=!1){o||this.flashOverlay({title:"Restart?",text:"Proceeding will reset your progress.",buttons:["Cancel","Restart"]}).then(l=>{(o||l.confirmed)&&(this.status="idle",this.restart())})},completed(){this.status="completed",this.complete()}},inReview:{restart(){this.status="idle",this.restart()},completed(){this.status="completed"}},completed:{review(){this.status="inReview",this.start()},restart(){this.status="idle",this.restart()}}};n[this.status][e]&&n[this.status][e].call(this,t)}}};function r4(e,t,n,o,l,a){const d=v("QuizHeader"),h=v("QuizCover"),y=v("QuizQuestion"),C=v("QuizResults"),B=v("QuizFooter"),b=v("FlashDialog");return i(),r("div",null,[u(d,{status:l.status,"current-question":l.status==="inProgress"||l.status==="inReview"?l.currentQuestion:0,onRestart:t[0]||(t[0]=$=>a.dispatch("restart",!1))},null,8,["status","current-question"]),s("main",{class:"section m-auto flex w-full flex-1 items-start overflow-auto px-8 pt-0 md:items-center md:py-10 lg:justify-center lg:overflow-hidden",style:V([{"max-width":"880px"},{"max-height: 60%":l.status==="inProgress"||l.status==="inReview"}])},[j(u(h,{title:n.quiz.title,onBegin:t[1]||(t[1]=$=>a.dispatch("start"))},null,8,["title"]),[[q,l.status==="idle"]]),u(_e,{name:l.transition},{default:p(()=>[a.question?j((i(),x(y,{key:0,question:a.question,number:l.currentQuestion,status:l.status,onAnswered:t[2]||(t[2]=$=>a.dispatch("answer",$))},null,8,["question","number","status"])),[[q,l.showQuestion&&(l.status==="inProgress"||l.status==="inReview")]]):_("",!0)]),_:1},8,["name"]),l.status==="completed"&&l.results?(i(),x(C,{key:0,status:l.status,results:l.results,"correct-answers":a.correctAnswers,onRestart:t[3]||(t[3]=$=>a.dispatch("restart")),onReview:t[4]||(t[4]=$=>a.dispatch("review"))},null,8,["status","results","correct-answers"])):_("",!0)],4),l.status==="inProgress"||l.status==="inReview"?(i(),x(B,{key:0,status:l.status,question:a.question,"question-number":l.currentQuestion,onNext:a.next,onPrevious:a.previous},null,8,["status","question","question-number","onNext","onPrevious"])):_("",!0),u(b)])}const w8=k(o4,[["render",r4]]),c4={setup(){let e=Ce({unwatched:!1}),t;if(typeof window>"u")t=M("");else{let l=$e.parse(window.location.search);t=M(l.query||""),"completed"in l&&(e.unwatched=l.completed!=="1")}let n=mt(function(){let l={query:t.value};e.unwatched&&(l.completed=0),ee.get("/search",l,{preserveState:!0,replace:!0})},300);return J(e,n),J(t,n),I(()=>{document.querySelector("#filter-input").focus()}),{search:t,filters:e,clear:()=>{t.value="",n(),document.querySelector("#filter-input").focus()},refresh:n}}},d4={class:"flex space-x-4"},u4={class:"relative flex-1 rounded-full px-6",style:{background:"#f1f3f6"}},h4={class:"flex h-12 text-card-200 focus-within:text-blue-400"},f4={key:0,class:"relative rounded-full px-6",style:{background:"#f1f3f6"}},m4={class:"flex h-full items-center text-card-200"},p4=s("span",{class:"pl-2 text-xs"},"Unwatched",-1);function x4(e,t,n,o,l,a){const d=v("Icon");return i(),r("div",d4,[s("div",u4,[s("label",h4,[u(d,{name:"search",fill:"currentColor"}),s("form",{class:"flex-1 text-left",onSubmit:t[1]||(t[1]=O((...h)=>o.refresh&&o.refresh(...h),["prevent"]))},[j(s("input",{id:"filter-input","onUpdate:modelValue":t[0]||(t[0]=h=>o.search=h),type:"text",class:"ml-3 h-12 w-full bg-transparent text-black placeholder-grey-800",minlength:"3",maxlength:"100",required:""},null,512),[[Qe,o.search]])],32),o.search.length?(i(),r("button",{key:0,onClick:t[2]||(t[2]=(...h)=>o.clear&&o.clear(...h))},[u(d,{alt:"Close",name:"x",class:"fill-current text-card-200 hover:text-blue-400"})])):_("",!0)])]),e.signedIn?(i(),r("div",f4,[s("label",m4,[j(s("input",{"onUpdate:modelValue":t[3]||(t[3]=h=>o.filters.unwatched=h),type:"checkbox",name:"watched_filter"},null,512),[[Re,o.filters.unwatched]]),p4])])):_("",!0)])}const C8=k(c4,[["render",x4]]),_4={__name:"SeriesContinueWatchingButton",props:{series:Object},setup(e){let t=e,n=S(()=>t.series.progress.completed?"Restart Series":t.series.progress.started?"Continue Series":"Play Series");return(o,l)=>{const a=v("Btn");return i(),x(a,{state:"primary",play:c(n)!=="Restart Series",restart:c(n)==="Restart Series",href:e.series.links.continue,class:"w-full",prefetch:""},{default:p(()=>[m(f(c(n)),1)]),_:1},8,["play","restart","href"])}}},g4={class:"mix-blend-luminosity"},y4={class:"mb-auto"},v4={class:"relative z-10 grid grid-cols-12"},b4={class:"col-span-12 flex flex-col justify-between md:h-[425px] lg:col-span-9 2xl:col-span-7"},w4={class:"fade-in flex justify-between",style:{"animation-duration":"2s"}},C4={class:"hidden space-x-2 md:block"},k4={class:"hidden rounded-full border-2 border-card-300 px-3 py-1 text-xs font-semibold text-grey-600 lg:inline"},$4={class:"rounded-full border-2 border-card-300 px-3 py-1 text-xs font-semibold text-grey-600"},L4={class:"rounded-full border-2 border-card-300 px-3 py-1 text-xs font-semibold text-grey-600"},B4={class:"right-0 flex flex-1 items-start justify-between gap-x-2 md:absolute md:flex-none"},S4={class:"rounded-full border-2 border-card-300 px-3 py-1 text-xs font-semibold text-grey-600"},M4={class:"w-12 grayscale lg:h-[106] lg:w-[89px]"},A4=["src","alt"],z4={class:"my-auto"},F4={class:"fade-in mt-3 text-5xl leading-tighter md:mt-8 md:text-7xl"},T4=["innerHTML"],U4={class:"fade-in mx-auto mt-8 flex max-w-[420px] flex-col gap-4 md:mx-0 md:flex-row",style:{"animation-delay":"0.5s"}},j4={class:"md:flex-1"},P4={class:"md:flex-1"},I4={__name:"FeaturedCard",props:{series:Object,color:String},setup(e){return(t,n)=>{const o=v("InertiaLink");return i(),r(w,null,[u(_e,{"enter-from-class":"opacity-0","enter-active-class":"duration-1000 transition-all","leave-from-class":"transition-all opacity-100","leave-to-class":"opacity-0","leave-active-class":"duration-1000",appear:""},{default:p(()=>[s("div",g4,[s("div",{class:"featured-img absolute top-0 pointer-events-none overflow-hidden w-full h-full opacity-[5%]",style:V({backgroundImage:`url(${e.series.svgThumbnail})`})},null,4)])]),_:1}),s("div",y4,[s("div",v4,[s("div",b4,[s("div",w4,[s("div",C4,[u(o,{href:e.series.taxonomy.path,class:"hidden cursor-pointer rounded-full border-2 border-card-300 px-3 py-1 text-xs font-semibold text-grey-600 hover:underline lg:inline"},{default:p(()=>[m(f(e.series.taxonomy.name),1)]),_:1},8,["href"]),s("span",k4,f(e.series.difficultyLevel)+" Difficulty ",1),s("span",$4,f(e.series.runTime),1),s("span",L4,f(e.series.episodeCount)+" Episodes ",1)]),s("div",B4,[s("span",S4,[m(" Your Instructor — "),u(o,{href:"/browse/instructors/"+e.series.author.username,class:"hover:underline"},{default:p(()=>[m(f(e.series.author.profile.full_name),1)]),_:1},8,["href"])]),s("div",M4,[u(o,{href:"/browse/instructors/"+e.series.author.username,class:"block hover:underline"},{default:p(()=>[s("img",{src:`https://ik.imagekit.io/laracasts/instructors/${e.series.author.id}.jpeg?tr=w-178`,alt:"Photo of "+e.series.author.profile.full_name,class:"object-position-center relative h-full w-full rounded-lg object-cover mix-blend-luminosity transition-transform duration-300 hover:scale-105",width:"89"},null,8,A4)]),_:1},8,["href"])])])]),u(_e,{"enter-from-class":"transition-all duration-1000 translate-y-4 opacity-0","enter-to-class":"transition-all duration-1000","leave-from-class":"transition-all duration-1000","leave-to-class":"transition-all duration-1000 translate-y-4 opacity-0",appear:""},{default:p(()=>[s("div",z4,[s("h1",F4,[u(o,{href:e.series.path},{default:p(()=>[m(f(e.series.title),1)]),_:1},8,["href"])]),s("p",{class:"fade-in mt-6 line-clamp-4 leading-loose md:mt-8 md:text-lg",style:{"animation-delay":"0.3s"},innerHTML:e.series.strippedBody},null,8,T4),s("div",U4,[s("div",j4,[u(_4,{series:e.series},null,8,["series"])]),s("div",P4,[u(Je,{media:e.series,only:["collections","auth","seriesWatchList","flash"],class:"w-full"},null,8,["media"])])])])]),_:1})])])])],64)}}},G4={class:"relative z-10 mt-6 lg:mt-12"},O4=s("h3",{class:"inherits-color mb-4 text-balance font-bold text-white"},[s("span",{class:"mr-2 font-kanit font-bold text-blue-400"},"//"),s("span",{class:"text-grey-600"},"More Currently Featured")],-1),H4={class:"hide-scrollbar -mx-6 grid auto-cols-max grid-flow-col gap-6 overflow-auto px-6 md:-mx-[40px] md:px-[40px] widescreen:grid-cols-5"},k8={__name:"Featured",props:{series:Array},setup(e){Me(d=>({"4d326fc3":c(a)}));let t=e,n=M(0),o=S(()=>t.series[n.value]??!1);function l(d){"ontouchstart"in window||(n.value=d)}let a=S(()=>ze.colors()[o.value.taxonomy.name.toLowerCase()]??"frameworks");return I(()=>{t.series.forEach(d=>{const h=new Image;h.src=d.svgThumbnail})}),(d,h)=>(i(),x(K,{border:!1,class:"featured-panel flex flex-col justify-between overflow-hidden px-6 py-6 md:h-[836px] md:px-[40px] md:py-8",hoverable:!1},{default:p(()=>[j((i(),x(I4,{key:c(n),series:c(o),color:c(a)},null,8,["series","color"])),[[q,c(o)]]),s("div",G4,[O4,s("div",H4,[(i(!0),r(w,null,A(e.series,(y,C)=>(i(),x(ge,{series:y,"panel-attrs":{class:"featured-series-card"+(c(n)===C?" active":""),background:"bg-card-default",border:!1},size:"featured",active:c(n)===C,lazy:!1,onMouseover:B=>l(C)},null,8,["series","panel-attrs","active","onMouseover"]))),256))])])]),_:1}))}},q4={class:"relative z-10 ml-6 hidden space-x-3 md:flex md:items-center md:justify-center"},V4=["disabled"],E4=["value"],D4=["disabled"],Q4={__name:"HorizontalScrollbar",props:{for:{type:Object}},setup(e){let n=bt(e,"for"),o=M(5),l=M(),a=5;I(async()=>{await re(),d(),n.value.addEventListener("scroll",d,{passive:!0})});function d(){o.value=n.value.scrollLeft/(n.value.scrollWidth-n.value.clientWidth)*100}function h(){l.value=setInterval(()=>{if(n.value.scrollLeft<=0)return clearInterval(l.value);n.value.scrollLeft-=a},10)}function y(){l.value=setInterval(()=>{if(n.value.scrollLeft+n.value.clientWidth>=n.value.scrollWidth)return clearInterval(l.value);n.value.scrollLeft+=a},10)}function C(){clearInterval(l.value)}function B(b){n.value.scrollLeft=(b.offsetX-10)/b.target.clientWidth*n.value.scrollWidth}return(b,$)=>(i(),r("div",q4,[s("button",{class:"hover:bg-card-300 flex-center h-8 w-8 rounded-full bg-card-500 p-2 transition-colors duration-300 hover:scale-105 disabled:cursor-not-allowed",disabled:c(o)<=0,onMouseover:h,onMouseout:C},[u(F,{name:"previous-arrow"})],40,V4),s("progress",{id:"progress-bar",max:"100",value:c(o),class:"rounded-xl bg-card-default cursor-pointer",style:{height:"7px"},onClick:B},null,8,E4),s("button",{class:"hover:bg-card-300 flex-center h-8 w-8 rounded-full bg-card-500 p-2 transition-colors duration-300 hover:scale-105 disabled:cursor-not-allowed",disabled:c(o)>=100,onMouseover:y,onMouseout:C},[u(F,{name:"next-arrow"})],40,D4)]))}},$8=k(Q4,[["__scopeId","data-v-8ce5044e"]]),R4={components:{Btn:Q},inheritAttrs:!1,props:{series:Object},methods:{resetProgress(){this.flashOverlay({title:"Reset Your Progress?",text:"If you proceed, all of your progress in this series will be reset to zero.",buttons:["Cancel","Yes"],icon:"error"}).then(e=>{e.confirmed&&this.$inertia.delete(`/api/series/${this.series.slug}/completions`,{preserveScroll:!0,only:["series","flash"]})})}}};function N4(e,t,n,o,l,a){const d=v("Btn");return i(),r("form",{"data-js":"reset-series-progress-button",onSubmit:t[0]||(t[0]=O((...h)=>a.resetProgress&&a.resetProgress(...h),["prevent"]))},[u(d,te({is:"button",type:"submit",transparent:"",class:"px-4 py-2 text-2xs"},e.$attrs,{title:"Reset Your Progress?"}),{default:p(()=>[m(" Reset Progress? ")]),_:1},16)],32)}const L8=k(R4,[["render",N4]]),Z4={components:{Btn:Q},inheritAttrs:!1,props:{series:Object},methods:{markAsCompleted(){this.flashOverlay({title:"Complete Series?",text:"If you proceed, every episode in this series will be marked as complete.",buttons:["Cancel","Yes"],icon:"success"}).then(e=>{e.confirmed&&this.$inertia.post(`/api/series/${this.series.slug}/completions`,{preserveScroll:!0,only:["series","flash"]})})}}};function W4(e,t,n,o,l,a){const d=v("Btn");return i(),r("form",{"data-js":"series-complete-all-button",onSubmit:t[0]||(t[0]=O((...h)=>a.markAsCompleted&&a.markAsCompleted(...h),["prevent"]))},[u(d,te({is:"button",transparent:"",type:"submit"},e.$attrs,{class:"px-4 py-2 text-2xs",title:"Mark this series as completed?","aria-label":"Mark this series as completed?"}),{default:p(()=>[m(" Complete Series ")]),_:1},16)],32)}const B8=k(Z4,[["render",W4]]),Y4={class:"flex items-center","data-js":"subscription-plan-label"},K4={class:"mr-2"},J4=["src","alt"],X4={class:"flex-1 text-center"},S8={__name:"SubscriptionPlanLabel",setup(e){let t=Ye(),n=S(()=>{let o="btn btn-base is-small !py-0 border-none text-2xs flex p-0 pr-4 leading-none items-center ";return t.value.isAForumUser()?o+="bg-grey-800 text-white hover:text-white":t.value.plan.kind==="forever"?o+="bg-yellow-dark text-white hover:bg-yellow-darker hover:text-white":o+="btn-primary",o});return(o,l)=>{const a=v("InertiaLink");return i(),r("div",Y4,[u(a,{href:"/settings/subscription/portal",class:g(c(n))},{default:p(()=>[s("span",K4,[s("img",{src:`/images/icons/plans/${c(t).plan.icon}-badge.svg`,alt:c(t).plan.name,class:"block"},null,8,J4)]),s("span",X4,[m(f(c(t).planLabel())+" Plan ",1),c(t).canceled?(i(),r(w,{key:0},[m(" — Expires "+f(c(t).dateSegments.subscription_ends_at_for_humans),1)],64)):_("",!0)])]),_:1},8,["class"])])}}},e5={},t5={width:"48",height:"41",viewBox:"0 0 48 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s5=H('',2),n5=[s5];function i5(e,t){return i(),r("svg",t5,n5)}const M8=k(e5,[["render",i5]]),A8={__name:"Graph",props:{keys:Array,values:Array},setup(e){let t=De(()=>ne(()=>Promise.resolve().then(()=>h5),void 0));return(n,o)=>(i(),x(c(t),{labels:e.keys,series:e.values},null,8,["labels","series"]))}},l5={props:{refresh:{type:Boolean,default:!1}},setup(e,{emit:t}){I(()=>{let n=kt("1Z405N45FC","6c44626a6a8c21778291dc05232905e6");const o=$t({searchClient:n,indexName:"lessons_query_suggestions",getSearchParams(){return{hitsPerPage:10}},transformSource({source:a}){return{...a,onSelect(d){d.setQuery(d.item.query),d.refresh(),document.querySelector(".aa-Input").dispatchEvent(new Event("input"))},templates:{...a.templates,header(){return u("h5",{class:"mb-2 text-base font-semibold text-white"},[m("Suggested Searches")])},item({item:d,state:h}){return u("div",{className:"px-4 py-2 text-xs font-medium "+(h.query===d.query?"text-blue-400":"text-grey-600")},[d.query])}}}}});let l=Lt({container:"#autocomplete",panelContainer:"#aa-panel",placeholder:"Laravel From Scratch",debug:!1,autoFocus:!0,openOnFocus:!0,plugins:[o],onSubmit({state:a}){t("search",a.query)},getSources({setQuery:a,query:d}){return[{sourceId:"lessons",getItems(){return Bt({searchClient:n,queries:[{indexName:"lessons",query:d,params:{hitsPerPage:8,attributesToSnippet:["title:10"],snippetEllipsisText:"…"}}]})},getItemUrl({item:h}){return h.path},getItemInputValue({item:h}){return h.title},templates:{header(){return u("h5",{className:"mb-2 text-base font-semibold text-white"},[m("Recommended Results")])},noResults(){return"Sorry, we couldn't find anything matching your search query."},item({item:h,components:y}){return u("div",{className:"aa-ItemWrapper",onClick:()=>{a(h.title),t("search",h)}},[u("div",{className:"aa-ItemContent px-4 py-2"},[u("div",{className:"aa-ItemIcon flex w-[40px]"},[u("img",{src:h.thumbnail,alt:h.name,width:"40",height:"40",class:"inline-block"},null)]),u("div",{className:"aa-ItemContentBody aa-suggestion-body ml-2 flex-1"},[u("h4",{className:"clamp one-line text-sm font-medium text-white md:text-base"},[u(y.Snippet,{hit:h,attribute:"title"},null)]),u("p",{className:"-mt-px text-3xs font-medium leading-normal text-card-200"},[h.type==="episode"?`${h.series}: Episode ${h.position}`:`Updated ${qe(h.updated_at).format("MMMM D, YYYY")}`])])])])}}}]},renderer:{createElement:wt,Fragment:w},detachedMediaQuery:"none",render({children:a},d){Ct(a,d)}});J(()=>e.refresh,a=>{a&&(l.setQuery(""),l.refresh())})})}},a5=s("div",{id:"autocomplete"},null,-1),o5=s("div",{id:"aa-panel",class:"mt-1"},null,-1);function r5(e,t,n,o,l,a){return i(),r(w,null,[a5,o5],64)}const c5=k(l5,[["render",r5]]),d5=Object.freeze(Object.defineProperty({__proto__:null,default:c5},Symbol.toStringTag,{value:"Module"})),u5={__name:"Chartist",props:{labels:Array,series:Array,height:{type:Number,default:300},labelInterpolation:{type:Function,default:e=>e}},setup(e){let t=e,n=M(null);return I(async()=>{let o=(await ne(async()=>{const{default:l}=await import("./chartist-C4RTv1uP.js").then(a=>a.c);return{default:l}},__vite__mapDeps([3,2,1,4]))).default;await re(),new o.Line(n.value,{labels:t.labels,series:[t.series]},{chartPadding:{right:30},fullWidth:!0,height:t.height,axisX:{labelInterpolationFnc:t.labelInterpolation}})}),(o,l)=>(i(),r("div",{ref_key:"el",ref:n,class:"ct-chart ct-golden-section"},null,512))}},h5=Object.freeze(Object.defineProperty({__proto__:null,default:u5},Symbol.toStringTag,{value:"Module"}));export{b5 as $,Z as A,Ir as B,$5 as C,D5 as D,T5 as E,B5 as F,L5 as G,Y as H,_5 as I,z5 as J,Te as K,I5 as L,w5 as M,k5 as N,Li as O,Xe as P,el as Q,sl as R,on as S,ri as T,At as U,Q5 as V,mi as W,xn as X,C5 as Y,v5 as Z,Q as _,zt as a,ol as a0,g5 as a1,y5 as a2,Ga as a3,A5 as a4,S5 as a5,Ke as a6,M5 as a7,P5 as a8,N5 as a9,g8 as aA,y8 as aB,v8 as aC,b8 as aD,ao as aE,w8 as aF,C8 as aG,k8 as aH,$8 as aI,Yo as aJ,L8 as aK,B8 as aL,po as aM,_4 as aN,ze as aO,S8 as aP,M8 as aQ,A8 as aR,h5 as aS,Z5 as aa,et as ab,W5 as ac,K5 as ad,J5 as ae,e8 as af,t8 as ag,X5 as ah,n8 as ai,s8 as aj,i8 as ak,l8 as al,o8 as am,a8 as an,r8 as ao,c8 as ap,d8 as aq,x8 as ar,u8 as as,$0 as at,h8 as au,m8 as av,f8 as aw,p8 as ax,_8 as ay,Ud as az,k as b,ne as c,ke as d,F as e,K as f,F5 as g,Je as h,P as i,U5 as j,ye as k,Se as l,q5 as m,H5 as n,Ci as o,Ye as p,O5 as q,R5 as r,Ze as s,G5 as t,Ne as u,Mr as v,j5 as w,E5 as x,V5 as y,Y5 as z};