1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8090],{41729:(e,t,l)=>{l.d(t,{Ay:()=>f,qc:()=>j});var r=l(6029);l(55729);var a=l(28361),n=l(31235),i=l(89052),o=l(94738),s=l(78381),d=l(82479),c=l(28162),x=l(35399),b=l(26111),g=l(51369);let h={tip:{label:"Tip",box:"border-emerald-200/70 bg-emerald-50/50",heading:"text-emerald-800",bodyText:"text-emerald-900",iconColor:"text-emerald-500",icon:(0,r.jsx)(b.xm,{width:12,height:17,fill:"currentColor"})},note:{label:"Note",box:"border-sky-200/70 bg-sky-50/50",heading:"text-sky-800",bodyText:"text-sky-900",iconColor:"text-sky-500",icon:(0,r.jsx)(n.A,{className:"h-4 w-4"})},warning:{label:"Warning",box:"border-amber-200/70 bg-amber-50/60",heading:"text-amber-800",bodyText:"text-amber-900",iconColor:"text-amber-500",icon:(0,r.jsx)(i.A,{className:"h-4 w-4"})},insight:{label:"Insight",box:"border-violet-200/70 bg-violet-50/50",heading:"text-violet-800",bodyText:"text-violet-900",iconColor:"text-violet-500",icon:(0,r.jsx)(o.A,{className:"h-4 w-4"})},pattern:{label:"Pattern",box:"border-sky-200/70 bg-sky-50/50",heading:"text-sky-800",bodyText:"text-sky-900",iconColor:"text-sky-500",icon:(0,r.jsx)(s.A,{className:"h-4 w-4"}),bodyClass:"[&_ul]:my-0 [&_ul]:list-none [&_ul]:p-0 [&_li]:my-1.5 [&_li]:p-0"},"green-flag":{label:"Green flag",box:"border-emerald-200/70 bg-emerald-50/50",heading:"text-emerald-800",bodyText:"text-emerald-900",iconColor:"text-emerald-500",icon:(0,r.jsx)(d.A,{className:"h-4 w-4"})},"red-flag":{label:"Red flag",box:"border-rose-200/70 bg-rose-50/50",heading:"text-rose-800",bodyText:"text-rose-900",iconColor:"text-rose-500",icon:(0,r.jsx)(d.A,{className:"h-4 w-4"})},summary:{label:"Summary",box:"border-indigo-200/70 bg-indigo-50/50",heading:"text-indigo-800",bodyText:"text-indigo-900",iconColor:"text-indigo-500",icon:(0,r.jsx)(b.y3,{width:16,height:16})},example:{label:"Example",box:"border-gray-200 bg-gray-50/70",heading:"text-gray-800",bodyText:"text-gray-700",iconColor:"text-gray-500",icon:(0,r.jsx)(b.y3,{width:16,height:16})},"senior-candidates":{label:"Meet the senior bar",box:"border-indigo-200/70 bg-indigo-50/50",heading:"text-indigo-800",bodyText:"text-indigo-900",iconColor:"text-indigo-500",icon:(0,r.jsx)(c.A,{className:"h-4 w-4"})},hint:{label:"Hint",box:"border-emerald-200/70 bg-emerald-50/50",heading:"text-emerald-800",bodyText:"text-emerald-900",iconColor:"text-emerald-500",icon:(0,r.jsx)(b.xm,{width:12,height:17,fill:"currentColor"}),collapsible:!0,defaultOpen:!1},challenge:{label:"Challenge",box:"border-amber-200/70 bg-amber-50/60",heading:"text-amber-800",bodyText:"text-amber-900",iconColor:"text-amber-500",icon:(0,r.jsx)(i.A,{className:"h-4 w-4"})},"insider-insight":{label:"Insider Insight",box:"border-violet-200/70 bg-violet-50/50",heading:"text-violet-800",bodyText:"text-violet-900",iconColor:"text-violet-500",icon:(0,r.jsx)(o.A,{className:"h-4 w-4"})},disclaimer:{label:"Verified",box:"border-indigo-200/70 bg-indigo-50/50",heading:"text-indigo-800",bodyText:"text-indigo-900",iconColor:"text-indigo-500",icon:(0,r.jsx)(b.Nr,{className:"h-4 w-4"}),collapsible:!1,defaultBody:(0,r.jsxs)("p",{children:["Our guides are created from recent, real, first-hand insights shared by interviewers and candidates. If your experience differs,"," ",(0,r.jsx)(x.A,{href:"/questions/contribute",className:"",children:"tell us here"}),"."]})}},m={flag:"green-flag",green:"green-flag",red:"red-flag",map:"pattern",seniorcandidates:"senior-candidates",levelingtip:"senior-candidates",insiderinsight:"insider-insight"},u=e=>{let t=String(e).toLowerCase();return h[m[t]||t]||h.note},y={gray:"text-gray-700"},p=e=>{let{config:t,title:l,bodyColor:n,collapsible:i=!1,open:o=!0,children:s}=e,d=y[n]||t.bodyText||"text-gray-700",c=(0,r.jsxs)("div",{className:(0,g.cx)("flex items-center gap-2",t.iconColor),children:[t.icon,(0,r.jsx)("span",{className:(0,g.cx)("text-base font-semibold tracking-tight",t.heading),children:l})]}),x=(0,r.jsx)("div",{className:(0,g.cx)("\n text-[0.95em]\n leading-[1.65]\n [&_p]:my-1.5\n *:first:mt-0!\n *:last:mb-0!\n [&_li]:marker:text-current\n [&_strong]:text-current\n [&_a]:text-current\n [&_a]:underline\n [&_a]:decoration-current/40\n [&_a:hover]:decoration-current\n [&_p_code]:text-current\n [&_li_code]:text-current\n [&_p_code]:rounded-md\n [&_li_code]:rounded-md\n [&_p_code]:border\n [&_li_code]:border\n [&_p_code]:border-current/10\n [&_li_code]:border-current/10\n [&_p_code]:bg-white/60\n [&_li_code]:bg-white/60\n [&_p_code]:px-1\n [&_li_code]:px-1\n",d,t.bodyClass),children:s});return i?(0,r.jsx)(a.EN,{as:"aside",defaultOpen:o,className:(0,g.cx)("my-6 flex flex-col rounded-xl border",t.box),children:e=>{let{open:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.EN.Button,{className:"cursor-pointer rounded-xl text-left",children:(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between px-5 py-3",children:[c,(0,r.jsx)(b.te,{width:8,height:11,className:(0,g.cx)(l?"rotate-90":"-rotate-90","transform opacity-50 transition-transform",t.heading),fill:"currentColor"})]})}),(0,r.jsx)(a.EN.Panel,{className:"-mt-1 px-5 pb-4",unmount:!1,children:x})]})}}):(0,r.jsxs)("aside",{className:(0,g.cx)("my-6 rounded-xl border px-5 py-4",t.box),children:[(0,r.jsx)("div",{className:"mb-2",children:c}),x]})},v=e=>{let{type:t="note",title:l,bodyColor:a,collapsible:n,open:i,children:o}=e,s=u(t),d=void 0!==n?n:!!s.collapsible,c=void 0!==i?i:!1!==s.defaultOpen;return(0,r.jsx)(p,{config:s,title:l||s.label,bodyColor:a,collapsible:d,open:c,children:o||s.defaultBody})},j=e=>{let{type:t="Note",open:l,collapsible:a,children:n,...i}=e,o=u(t);return(0,r.jsx)(v,{type:t,collapsible:void 0!==a?a:!1!==o.collapsible,open:l,...i,children:n})},f=v},56923:(e,t,l)=>{l.d(t,{o:()=>i,t:()=>o});var r=l(6029);l(55729);var a=l(51369);let n=e=>{let{count:t,active:l}=e;return(0,r.jsx)("span",{className:(0,a.cx)("hidden border border-gray-300 ml-1.5 py-0.5 px-1 rounded-md text-xs font-medium md:inline-block",l?"bg-transparent text-indigo-600":"bg-gray-100 text-gray-600"),children:t})},i=e=>{let{active:t,onClick:l,count:i,children:o,disabled:s,id:d,controls:c,href:x}=e,b=(0,a.cx)("border-b-2 py-3 transition-colors",t?"border-indigo":"border-transparent"),g=(0,r.jsxs)("div",{className:(0,a.cx)(t?"bg-indigo-50 text-indigo-700":"bg-gray-50 text-gray-500 hover:text-gray-700 hover:bg-gray-100","whitespace-nowrap py-1.5 px-3 rounded-lg font-medium text-sm"),children:[o,"number"==typeof i&&(0,r.jsx)(n,{count:i,active:t})]});return x?(0,r.jsx)("a",{href:x,onClick:e=>{e.preventDefault(),l&&l()},id:d,role:"tab","aria-selected":t,"aria-controls":c,className:b,children:g}):(0,r.jsx)("button",{type:"button",onClick:l,disabled:s,id:d,role:"tab","aria-selected":t,"aria-controls":c,className:b,children:g})},o=e=>{let{tabs:t,active:l,onClick:n,className:o,label:s="Tabs",useAnchor:d,noBorder:c}=e;return(0,r.jsx)("div",{className:(0,a.cx)(!c&&"border-b border-gray-200",o),children:(0,r.jsx)("div",{className:"-mb-px -mx-4 px-4 flex space-x-3 overflow-x-auto scrollbar-hidden",role:"tablist","aria-label":s,children:t.map(e=>(0,r.jsx)(i,{onClick:()=>n(e.key),active:l===e.key,count:e.count,id:"tab-".concat(e.key),controls:"tabpanel-".concat(e.key),href:d?e.path:void 0,children:e.label},e.key))})})}},78167:(e,t,l)=>{l.d(t,{AC:()=>b,Cv:()=>m,H4:()=>x,NG:()=>g,bF:()=>h,r_:()=>u});var r=l(6029),a=l(55729),n=l(96373),i=l(44249),o=l(54422),s=l(60722);let d="last_used_language",c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return({sql:{label:"SQL",syntax:"sql"},postgres:{label:"PostgreSQL",syntax:"sql"},mysql:{label:"MySQL",syntax:"sql"},sqlite:{label:"SQLite",syntax:"sql"},js:{label:"JavaScript",syntax:"javascript"},javascript:{label:"JavaScript",syntax:"javascript"},csharp:{label:"C#",syntax:"csharp"},swift:{label:"Swift",syntax:"swift"},java:{label:"Java",syntax:"java"},cpp:{label:"C++",syntax:"cpp"},c:{label:"C",syntax:"c"},go:{label:"Go",syntax:"go"},ruby:{label:"Ruby",syntax:"ruby"},python:{label:"Python",syntax:"python"},pseudocode:{label:"Pseudocode",syntax:"plaintext"}})[e]||{label:"",syntax:"plaintext"}},x=e=>{let t=/language-(\w+)/.exec(e||""),l=c(null==t?void 0:t[1]);return{value:(null==t?void 0:t[1])||"",...l}},b=e=>{let{children:t,...l}=e,n=a.Children.map(t,e=>a.cloneElement(e,{inPre:!0}));return(0,r.jsx)("pre",{...l,children:n})},g=e=>{let{language:t,label:l,children:a,...s}=e;return(0,r.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 group my-5",children:[t?(0,r.jsxs)("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between text-sm font-medium text-gray-600",children:[(0,r.jsx)("span",{children:l}),(0,r.jsx)(o.A,{value:a,className:"invisible group-hover:visible"})]}):(0,r.jsx)("div",{className:"px-4 pt-1 flex relative text-sm font-medium text-gray-600",children:(0,r.jsx)(o.A,{value:a,className:"absolute top-2 right-2 invisible group-hover:visible"})}),(0,r.jsx)("div",{className:"px-4 py-2",children:(0,r.jsx)(n.A,{language:t||"plaintext",PreTag:"div",style:i.A,...s,children:a})})]})},h=e=>{let{className:t,inline:l,children:a,...n}=e,i=String(a).trim(),o=x(t);return(null!=l?!l:/language-/.test(t||"")||i.includes("\n"))?(0,r.jsx)(g,{language:o.syntax,label:o.label,...n,children:i}):(0,r.jsx)("code",{...n,children:i})},m=e=>{let{className:t,inPre:l,children:a,...n}=e,i=String(a).trim(),o=x(t);return l?(0,r.jsx)(g,{language:o.syntax,label:o.label,...n,children:i}):(0,r.jsx)("code",{...n,children:i})},u=e=>{var t,l;let{children:c}=e,[b,g]=(0,a.useState)(""),[h,m]=(0,a.useState)([]);(0,a.useEffect)(()=>{let e=a.Children.toArray(c).map(e=>(e=>{var t,l;let{children:r}=e.props,a=null==r||null==(t=r.props)?void 0:t.className,n=null==r||null==(l=r.props)?void 0:l.children,i=x(a),o=String(null!=n?n:"").trim();return{...i,content:o}})(e)),t=localStorage.getItem(d);t&&e.find(e=>{let{value:l}=e;return l===t})?g(t):g(e[0].value),m(e)},[c]);let u=h.find(e=>e.value===b);return(0,r.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 group my-5",children:[(0,r.jsx)("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between text-sm font-medium text-gray-600",children:(0,r.jsx)(s.A,{options:h,value:b,onChange:e=>{g(e),e&&localStorage.setItem(d,e)},showReset:!1,highlightActive:!1,native:!0})}),(0,r.jsx)("div",{className:"px-4 pt-1 flex relative text-sm font-medium text-gray-600",children:(0,r.jsx)(o.A,{value:null!=(t=null==u?void 0:u.content)?t:"",className:"absolute top-2 right-2 invisible group-hover:visible"})}),(0,r.jsx)("div",{className:"px-4 py-2",children:(0,r.jsx)(n.A,{language:null==u?void 0:u.syntax,PreTag:"div",style:i.A,children:null!=(l=null==u?void 0:u.content)?l:""})})]})}},81490:(e,t,l)=>{l.d(t,{A:()=>f,Ay:()=>T,D1:()=>w,H1:()=>y,H2:()=>p,LI:()=>A,N$:()=>j,TD:()=>k,TH:()=>C,XI:()=>N,vc:()=>_});var r=l(6029);l(55729);var a=l(43552),n=l.n(a),i=l(74725),o=l(9701),s=l(38637),d=l(57521),c=l(35399),x=l(78167),b=l(26111),g=l(41729),h=l(20707),m=l(51369);let u=e=>{let{children:t,className:l,as:a="h1"}=e,i=n()((0,m.Oe)(t));return(0,r.jsxs)(a,{id:i,className:(0,m.cx)("group",l),children:[t,(0,r.jsx)("a",{className:"ml-2 text-base opacity-0 text-gray-600 hover:opacity-100 group-hover:opacity-75 no-underline",href:"#".concat(i),onClick:e=>{e.preventDefault(),window.location=e.currentTarget.href},"aria-label":"Anchor link",children:(0,r.jsx)(b.qY,{className:"-mt-1"})})]})},y=e=>(0,r.jsx)(u,{as:"h1",...e}),p=e=>(0,r.jsx)(u,{as:"h2",...e}),v=e=>(0,r.jsx)(i.oz,{remarkPlugins:[o.A],rehypePlugins:e.allowRaw?[s.A]:void 0,components:{h1:y,h2:p,code:x.bF,Callout:g.Ay,CalloutBox:g.qc},unwrapDisallowed:!0,...e}),j=e=>(0,r.jsx)(v,{disallowedElements:["a","html","image","imageReference","link","linkReference","parsedHtml","pre","virtualHtml"],components:{h1:e=>{let{children:t}=e;return(0,r.jsx)("h2",{className:"my-2",children:t})},h2:e=>{let{children:t}=e;return(0,r.jsx)("h2",{className:"my-2",children:t})},code:x.bF},...e}),f=e=>{let{href:t,children:l}=e,{tracker:a}=(0,d.st)();return(0,r.jsx)(c.A,{href:t,onClick:()=>{a.lessonClickLink({children:l,href:t,absoluteURL:(0,m.nt)(t)})},forceAnchor:!0,children:l})},N=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)(h.X,{left:!0,right:!0,className:"mb-8",children:(0,r.jsx)("table",{className:(0,m.cx)("not-prose markdown-table",l),...a,children:t})})},w=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)("thead",{className:(0,m.cx)("markdown-thead",l),...a,children:t})},_=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)("tbody",{className:(0,m.cx)("markdown-tbody",l),...a,children:t})},C=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)("th",{className:(0,m.cx)("markdown-th",l),...a,children:t})},k=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)("td",{className:(0,m.cx)("markdown-td",l),...a,children:t})},A=e=>{let{children:t,className:l,...a}=e;return(0,r.jsx)("li",{className:(0,m.cx)(l),...a,children:t})},T=v}}]); 2//# sourceMappingURL=8090-6dab7c89222b6c5d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.