(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,768877,e=>{let t=(0,e.i(456420).f)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["f",0,t],768877)},26495,e=>{let t=(0,e.i(456420).f)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["f",0,t])},716327,e=>{var t=e.i(26495);e.s(["f",()=>t.f])},632781,e=>{let t=(0,e.i(456420).f)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["f",0,t],632781)},593583,e=>{let t=(0,e.i(456420).f)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["f",0,t],593583)},566595,e=>{let t=(0,e.i(456420).f)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["f",0,t],566595)},814387,e=>{let t=(0,e.i(456420).f)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["f",0,t])},263676,e=>{var t=e.i(814387);e.s(["X",()=>t.f])},90317,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var i={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return d},getOrCreateGlobalAsyncLocalStorage:function(){return u}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let a=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return o?new o:new s}function u(e){let t=Symbol.for(`@next/${e}@16.4.2`),n=globalThis;return n[t]??=l()}function c(e){return o?o.bind(e):s.bind(e)}function d(){return o?o.snapshot():function(e,...t){return e(...t)}}},242344,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return i}});let i=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},563599,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return i.workAsyncStorageInstance}});let i=e.r(242344)},770703,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let i=e.r(555682)._(e.r(869093));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,i.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},309885,(e,t,n)=>{function i(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return i}})},667585,(e,t,n)=>{e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return s}});let i=e.r(271645),r=e.r(174080);e.r(132061);let a=e.r(349354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function s({children:e}){return(0,i.use)((0,r.browser)(a)),e}},869093,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let i=e.r(843476),r=e.r(271645),a=e.r(667585),s=e.r(652157);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,r.lazy)(()=>t.loader().then(o)),u=t.loading;function c(e){let o=u?(0,i.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?r.Suspense:r.Fragment,d=t.ssr?(0,i.jsxs)(i.Fragment,{children:["u"{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return l}});let i=e.r(843476),r=e.r(174080),a=e.r(563599),s=e.r(309885),o=e.r(543369);function l({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let i=t.reactLoadableManifest;for(let t of e){if(!i[t])continue;let e=i[t].files;n.push(...e)}}if(0===n.length)return null;let u=(0,o.getAssetTokenQuery)();return(0,i.jsx)(i.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,i.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},349354,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var i={createReactBrowserBailoutReason:function(){return s},getReactBrowserBailoutReason:function(){return o},isNextBrowserBailoutError:function(){return l}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let a=Symbol.for("next.browser-bailout-reason");function s(e){return{$$typeof:a,reason:e}}function o(e){let t=e?.cause;return t?.$$typeof===a?t.reason:void 0}function l(e){return void 0!==o(e)}},420499,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(770703),r=e.i(461317);let a=(0,i.default)(()=>e.A(473555).then(e=>e.Analytics),{loadableGenerated:{modules:[836270]},ssr:!1}),s=(0,i.default)(()=>e.A(903775),{loadableGenerated:{modules:[474008]},ssr:!1});e.s(["DeferredAnalytics",0,function(){let[e,i]=(0,n.useState)(!1);return((0,n.useEffect)(()=>(0,r.f)(()=>i(!0),{timeout:500}),[]),e)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a,{}),(0,t.jsx)(s,{})]}):null}])},698462,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(618566),r=e.i(541872),a=e.i(586168),s=e.i(405240),o=e.i(686525),l=e.i(15942),u=e.i(963997),c=e.i(744449),d=e.i(570590);function m(){let e=(0,c.M)();return null===e?{}:{[u.o]:e}}function f(e){return(e.textContent?.replace(/\s+/g," ").trim()||e.getAttribute("aria-label")?.trim()||"").slice(0,120)}function p(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),u=(0,n.useRef)(!0),c=t.toString();return(0,n.useEffect)(()=>{if(u.current){u.current=!1;return}if((0,o.Y)(e,c))return;let t={...m(),...(0,a.S)()};(0,s.f)("page_view",{event_type:"page",...Object.keys(t).length>0?{properties:t}:{}})},[e,c]),(0,n.useEffect)(()=>(function(e,t=()=>performance.now()){let n=!1,i=!1,a=0,o="visible"===document.visibilityState?t():null,u=null,c=()=>{null!==u&&clearTimeout(u),u=null},d=()=>l.Z-a-(null===o?0:t()-o),f=()=>{n||!i||d()>0||(n=!0,c(),(0,s.f)("page_engaged",{properties:{engaged_ms:l.Z,page:e,...m()}}))},p=()=>{c(),n||null===o||(u=setTimeout(f,Math.max(0,d())))},g=()=>{"visible"===document.visibilityState?(null===o&&(o=t()),p()):(null!==o&&(a+=t()-o),o=null,c())};document.addEventListener("visibilitychange",g);let b=(0,r.Z)(()=>{i=!0,f(),p()});return p(),()=>{c(),b(),document.removeEventListener("visibilitychange",g)}})(e),[e,c]),(0,n.useEffect)(()=>{let e=e=>{let t,n=e.target?.closest?.("a[href]");if(n instanceof HTMLAnchorElement){try{t=new URL(n.href,window.location.href)}catch{return}if("learn.adept.at"===t.hostname)return void(0,s.f)("signup_start",{properties:{target_url:t.toString(),source_page:window.location.pathname,cta_text:f(n)}});if(t.origin===window.location.origin&&(t.pathname===d.Q||t.pathname.startsWith(`${d.Q}/`))){let e=window.location.pathname;if(e===d.Q||e.startsWith(`${d.Q}/`))return;(0,s.f)("demo_cta_click",{properties:{target_url:t.pathname+t.search+t.hash,source_page:window.location.pathname,cta_text:f(n)}})}}};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]),null}e.s(["PageViewTracker",0,function(){return(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(p,{})})}])},76003,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(716327),r=e.i(632781),a=e.i(770703),s=e.i(618566),o=e.i(540874),l=e.i(790235);let u=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function c(e){return"string"==typeof e&&e?/^https?:\/\//.test(e)?e:u.test(e)?`https://static.adept.at/content/profile/avatar/${e.toLowerCase()}/72.jpg`:null:null}var d=e.i(60300),m=e.i(778035),f=e.i(653290),p=e.i(392489);let g="/api/marketing/header-panel";async function b(e=fetch,t={}){try{let n=new URLSearchParams;t.freshPreferences&&n.set("refresh","preferences"),t.preview&&"self"!==t.preview&&n.set(p.j,t.preview);let i=n.toString(),r=i?`${g}?${i}`:g,a=await e(r,{credentials:"same-origin",cache:"no-store"});if(!a.ok)return null;let s=await a.json();if(!s||"object"!=typeof s||"string"!=typeof s.status)return null;return s}catch{return null}}let h=(0,a.default)(()=>e.A(388789).then(e=>e.AvatarPanel),{loadableGenerated:{modules:[427354]},ssr:!1,loading:()=>(0,t.jsx)(y,{})});function y(){return(0,t.jsx)("div",{className:"flex items-center","aria-hidden":!0,children:(0,t.jsxs)("button",{type:"button",tabIndex:-1,className:"hp-trigger adept-prepaint-pill",children:[(0,t.jsx)("span",{className:"adept-hint-avatar inline-flex size-7 items-center justify-center rounded-full bg-cbt-50 bg-cover bg-center ring-1 ring-cbt-100"}),(0,t.jsx)("span",{className:"adept-hint-name hp-trigger-name"}),(0,t.jsx)(i.f,{"aria-hidden":!0,className:"hp-trigger-chevron"})]})})}function w(){let e=(0,o.r)(),i=n.useCallback(t=>{t.metaKey||t.ctrlKey||t.shiftKey||1===t.button||e&&(t.preventDefault(),e.login())},[e]);return(0,t.jsx)("a",{href:d.F,onClick:i,onPointerEnter:l.s,onFocus:l.s,onTouchStart:l.s,className:"hidden rounded-md text-sm font-medium text-cbt-500 transition-colors hover:text-cbt-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2 lg:inline-flex",children:"Sign In"})}e.s(["HeaderAuthControls",0,function({host:e="marketing"}={}){let i=(0,o.r)(),a=(0,s.usePathname)(),u="admin"===e,{hintChecked:d,hint:p,phase:g,refreshPreferences:v,preview:x,setPreviewPersona:k}=function(e){let[t,i]=n.useState(!1),[r,a]=n.useState(null),[s,l]=n.useState({kind:"idle"}),[u,d]=n.useState(0),p=n.useRef(!1),g=n.useRef(null),h=n.useRef(!0),y=n.useCallback(()=>{p.current=!0,d(e=>e+1)},[]);n.useEffect(()=>{let e;a((e=(0,o.B)())?{displayName:(0,f.E)(e.name),avatarUrl:c(e.picture)}:null),i(!0)},[]),n.useEffect(()=>(h.current=!0,()=>{h.current=!1}),[]);let w=t&&(null!==r||e);n.useEffect(()=>{let t=g.current;if(!e&&t&&(t.sdkAuthenticated=!1),!w||t&&t.generation===u&&(t.sdkAuthenticated||!e))return;let n={ordinal:(t?.ordinal??0)+1,generation:u,sdkAuthenticated:e};g.current=n,l(e=>"ready"===e.kind?e:{kind:"loading"});let i=p.current;p.current=!1,b(fetch,{freshPreferences:i}).then(e=>{h.current&&g.current?.ordinal===n.ordinal&&(l(t=>e?{kind:"ready",model:e}:"ready"===t.kind?t:{kind:"unavailable"}),e&&(0,m.g)("verified"===e.status&&e.viewer.internal))})},[w,u,e]);let[v,x]=n.useState(null),k=n.useRef(0);return{hintChecked:t,hint:r,phase:s,refreshPreferences:y,preview:v,setPreviewPersona:n.useCallback(e=>{if(k.current+=1,!e||"self"===e)return void x(null);let t=k.current;x({personaId:e,kind:"loading"}),b(fetch,{preview:e}).then(n=>{k.current===t&&x(n?{personaId:e,kind:"ready",model:n}:{personaId:e,kind:"unavailable"})})},[])}}(i?.status==="authenticated"||u),S=n.useCallback(()=>{let e=a&&a.startsWith("/")?a:"/",t=u?"/admin/login":e;if(!(0,l.m)()){u&&window.location.assign(t);return}(0,l.c)().then(e=>e?.logout({postLogoutRedirectUri:`${window.location.origin}${t}`})).catch(e=>{console.error("[adept-auth] sign-out could not load the SDK:",e instanceof Error?e.message:String(e)),window.location.assign(t)})},[a,u]);if(i?.authenticating)return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-md text-sm font-medium text-cbt-500",role:"status","aria-live":"polite",children:[(0,t.jsx)(r.f,{"aria-hidden":!0,className:"size-4 animate-spin"}),"Signing in…"]});if("ready"===g.kind)return"anonymous"===g.model.status?u?null:(0,t.jsx)(w,{}):(0,t.jsx)(h,{model:g.model,state:"ready",onSignOut:S,onPreferencesSaved:v,preview:x,onPreviewPersona:k});let j=i?.status==="authenticated"?i.profile:null;if(p||j){var _,T;let e=(_=p,T=j,{status:"hinted",viewer:{status:"hinted",displayName:_?.displayName??("string"==typeof T?.name?T.name:null),avatarUrl:_?.avatarUrl??c(T?.picture),email:null,internal:!1},sections:{learner:[],staff:[],employeeRow:[],footer:[],footerLinks:[],orgStrip:null,learnerBands:"shown"},editorHref:null,editor:null,unresolved:[],preview:null}),n="unavailable"===g.kind?"unavailable":"loading";return(0,t.jsx)(h,{model:e,state:n,onSignOut:S})}return u?"unavailable"===g.kind?null:(0,t.jsx)(y,{}):d?(0,t.jsx)(w,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"adept-slot-anon",children:(0,t.jsx)(w,{})}),(0,t.jsx)("div",{className:"adept-slot-authed",children:(0,t.jsx)(y,{})})]})}],76003)},880317,e=>{e.s(["d",0,"mobile-nav-sheet","E",0,"mobile-nav-title"])},151395,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(110204),r=e.i(592970),a=e.i(19477),s=e.i(311063);function o(e){let[t,i]=(0,n.useState)(""),[o,l]=(0,n.useState)(""),[u,c]=(0,n.useState)({status:"idle"}),{captureEmail:d}=(0,r.f)(),m=async n=>{if(n.preventDefault(),"submitting"!==u.status&&"done"!==u.status){c({status:"submitting"});try{let n=await fetch("/api/marketing/newsletter",{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify({email:t,company:o||void 0,..."footer_newsletter"!==e?{source:e}:{}})});if(n.ok){c({status:"done"}),(0,a.Z)("newsletter_signup",{email:t});return}let i=await n.json().catch(()=>null);c({status:"error",message:i?.error??"We couldn't sign you up right now. Please try again shortly."})}catch{c({status:"error",message:"We couldn't sign you up right now. Please try again shortly."})}}};return{email:t,honeypot:o,setHoneypot:l,state:u,onSubmit:m,onEmailFocus:()=>(0,s.H)(e,"email",window.location.pathname),onEmailChange:e=>{i(e),d(e),c(e=>"error"===e.status?{status:"idle"}:e)}}}e.s(["NewsletterBandForm",0,function(){let{email:e,honeypot:n,setHoneypot:r,state:a,onSubmit:s,onEmailFocus:l,onEmailChange:u}=o("blog_cta_newsletter");return"done"===a.status?(0,t.jsxs)("div",{role:"status",className:"mt-4 text-sm",children:[(0,t.jsx)("p",{className:"font-semibold",children:"You're subscribed."}),(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:"Watch for training insights and new-course updates in your inbox."})]}):(0,t.jsxs)("form",{onSubmit:s,className:"mt-4","aria-label":"Email newsletter signup",children:[(0,t.jsx)("div",{className:"sr-only","aria-hidden":"true",children:(0,t.jsxs)("label",{children:["Company",(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:n,onChange:e=>r(e.target.value)})]})}),(0,t.jsxs)("label",{htmlFor:"blog-cta-newsletter-email",className:"mb-1 block text-sm font-medium text-foreground",children:["Work email",(0,t.jsx)(i.RequiredMark,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,t.jsx)("input",{id:"blog-cta-newsletter-email",type:"email",required:!0,"aria-required":"true",placeholder:"you@company.com",autoComplete:"email",value:e,onFocus:l,onChange:e=>u(e.target.value),className:"h-11 min-w-0 flex-1 rounded-full border border-cbt-300 bg-white px-4 text-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-cbt-500 focus-visible:ring-2 focus-visible:ring-cbt-400/30"}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===a.status,className:"btn-gradient inline-flex h-11 shrink-0 items-center justify-center rounded-full px-6 text-sm font-semibold text-white disabled:opacity-60",children:"submitting"===a.status?"Subscribing…":"Subscribe"})]}),"error"===a.status&&(0,t.jsx)("p",{role:"alert",className:"mt-2 text-sm text-red-600",children:a.message})]})},"NewsletterSignup",0,function(){let{email:e,honeypot:n,setHoneypot:r,state:a,onSubmit:s,onEmailFocus:l,onEmailChange:u}=o("footer_newsletter");return"done"===a.status?(0,t.jsxs)("div",{role:"status",className:"border-b border-white/10 py-8 text-sm text-cbt-200",children:[(0,t.jsx)("p",{className:"font-semibold text-white",children:"You're subscribed."}),(0,t.jsx)("p",{className:"mt-1",children:"Watch for training insights and new-course updates in your inbox."})]}):(0,t.jsxs)("form",{onSubmit:s,className:"flex flex-col gap-4 border-b border-white/10 py-8 lg:flex-row lg:items-end lg:justify-between","aria-label":"Email newsletter signup",children:[(0,t.jsxs)("div",{className:"max-w-md",children:[(0,t.jsx)("h2",{className:"font-display text-base font-bold text-white",children:"Training insights for IT teams"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-cbt-300",children:"Get course releases, certification changes, and team-training strategies delivered to your inbox."})]}),(0,t.jsx)("div",{className:"sr-only","aria-hidden":"true",children:(0,t.jsxs)("label",{children:["Company",(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:n,onChange:e=>r(e.target.value)})]})}),(0,t.jsxs)("div",{className:"flex w-full max-w-md flex-col gap-2",children:[(0,t.jsxs)("label",{htmlFor:"footer-newsletter-email",className:"text-sm font-medium text-cbt-200",children:["Work email",(0,t.jsx)(i.RequiredMark,{className:"text-danger-200"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{id:"footer-newsletter-email",type:"email",required:!0,"aria-required":"true",placeholder:"you@company.com",autoComplete:"email",value:e,onFocus:l,onChange:e=>u(e.target.value),className:"h-11 min-w-0 flex-1 rounded-full border border-white/20 bg-white/5 px-4 text-sm text-white placeholder:text-cbt-400 outline-none transition-colors focus-visible:border-cbt-400 focus-visible:ring-2 focus-visible:ring-cbt-400/30"}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===a.status,className:"btn-gradient inline-flex h-11 shrink-0 items-center rounded-full px-6 text-sm font-semibold text-white disabled:opacity-60",children:"submitting"===a.status?"Subscribing…":"Subscribe"})]}),"error"===a.status&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-red-300",children:a.message})]})]})}])},590046,e=>{e.s(["f",0,"site-search-dialog"])},212065,e=>{var t=e.i(843476),n=e.i(271645),i=e.i(998082),r=e.i(618566),a=e.i(566595),s=e.i(311063),o=e.i(590046);let l=(0,n.lazy)(()=>e.A(830690).then(e=>({default:e.SearchDialogPanel})));function u(){e.A(830690).catch(()=>void 0)}let c={general:"Search",preview:"Preview any course",training:"Search training"};function d(e,t){return n=>{e?.(n),t(n)}}e.s(["f",0,function({variant:e="general",trigger:m,bindCommandK:f=!1,trackOpenLocation:p}={}){var g;let b=(0,r.usePathname)(),h=(0,i.A)(),{requested:y,open:w,bodyOpen:v,openMethod:x,onReady:k,reset:S}=h,[j,_]=(0,n.useState)(null),T=(0,n.useCallback)(()=>j,[j]);function N(e){h.request(e)&&p&&(0,s.p)(p,b)}let{toggle:C}=h;(0,n.useEffect)(()=>{if(f)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),C("keyboard"))}},[f,C]);let A=m&&(0,n.isValidElement)(m)?m.props:{},E={ref:(g=A.ref,e=>{"function"==typeof g?g(e):g&&"object"==typeof g&&(g.current=e),_(e)}),onClick:e=>{A.onClick?.(e),e.defaultPrevented||N((0,i.X)(e))},onPointerEnter:d(A.onPointerEnter,u),onFocus:d(A.onFocus,u),onTouchStart:d(A.onTouchStart,u),"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":w?o.f:void 0},L=m&&(0,n.isValidElement)(m)?(0,n.cloneElement)(m,E):(0,t.jsx)("button",{type:"button",...E,ref:_,className:"flex min-h-11 min-w-11 items-center justify-center rounded-lg text-cbt-500 transition-colors hover:bg-cbt-50 hover:text-cbt-700 aria-expanded:bg-cbt-50 aria-expanded:text-cbt-700 focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:outline-none lg:size-9 lg:min-h-0 lg:min-w-0","aria-label":c[e],children:(0,t.jsx)(a.f,{className:"size-5"})});return(0,t.jsxs)(t.Fragment,{children:[L,y?(0,t.jsx)(i.T,{name:"search-dialog",onError:S,children:(0,t.jsx)(l,{variant:e,open:v,openMethod:x,onOpenChange:function(e){e?N(""):h.close()},onReady:k,finalFocus:T})}):null]})}])},110204,e=>{var t=e.i(843476),n=e.i(975157);e.s(["Label",0,function({className:e,...i}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,n.f)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...i})},"RequiredMark",0,function({className:e,label:i="*"}){return(0,t.jsx)("span",{"aria-hidden":"true","data-slot":"required-mark",className:(0,n.f)("ml-0.5 text-danger-600",e),children:i})}])},998082,e=>{var t=e.i(843476),n=e.i(271645);let i=/Loading chunk|ChunkLoadError|Failed to fetch dynamically imported module|Importing a module script failed|error loading dynamically imported module/i;class r extends n.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){let t,n=(t=e instanceof Error?`${e.name} ${e.message}`:String(e),i.test(t));console.error(`[lazy-island] ${this.props.name} failed to load${n?" (chunk — deploy skew or offline)":""}:`,e instanceof Error?e.message:String(e)),this.props.onError?.(),n&&function(e){let t=`cbt_lazy_island_reloaded:${e}`;try{if(window.sessionStorage.getItem(t))return!1;window.sessionStorage.setItem(t,"1")}catch{return!1}window.location.reload()}(this.props.name)}render(){return this.state.failed?null:(0,t.jsx)(n.Suspense,{fallback:null,children:this.props.children})}}e.s(["T",0,r,"X",0,function(e){let t=e.nativeEvent;return"string"==typeof t.pointerType?t.pointerType:""},"A",0,function(){let[e,t]=(0,n.useState)(!1),[i,r]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!1),[o,l]=(0,n.useState)(""),u=(0,n.useCallback)((e="")=>!i&&(l(e),t(!0),r(!0),!0),[i]),c=(0,n.useCallback)(()=>r(!1),[]),d=(0,n.useCallback)(e=>{e?u():r(!1)},[u]),m=(0,n.useCallback)((e="")=>i?a?(r(!1),"closed"):"ignored":(u(e),"opened"),[i,a,u]);return{requested:e,open:i,bodyOpen:i&&a,openMethod:o,request:u,close:c,onOpenChange:d,toggle:m,onReady:(0,n.useCallback)(()=>s(!0),[]),reset:(0,n.useCallback)(()=>{r(!1),t(!1),s(!1)},[])}},"B",0,function(e){(0,n.useEffect)(()=>{e?.()},[e])}])},100207,e=>{let t={name:"CBT Nuggets",legalName:"CBT Nuggets, LLC",phone:"+1 (541) 284-5522",phoneHref:"tel:+15412845522",email:"support@cbtnuggets.com",salesEmail:"teams@cbtnuggets.com",legalEmail:"legalteam@cbtnuggets.com",address:{street:"497 Oakway Rd. Suite 410",city:"Eugene",state:"OR",zip:"97401",country:"US",formatted:"497 Oakway Rd. Suite 410, Eugene, OR 97401"},social:{twitter:"https://twitter.com/CBTNuggets",linkedin:"https://www.linkedin.com/company/cbt-nuggets",youtube:"https://www.youtube.com/user/cbtnuggets",facebook:"https://www.facebook.com/CBTNuggets"},domain:"https://www.cbtnuggets.com",founded:1999,yearsExperience:"27+"};t.email,encodeURIComponent("Employment at CBT Nuggets"),e.s(["o",0,t,"X",0,"Trust Center (sign-in required)","T",0,"https://learn.adept.at/cbtnuggets/cbt-nuggets-trust-center-bozaod"])},867332,e=>{var t=e.i(570590),n=e.i(100207);if(2020-n.o.founded<20)throw Error("adept-platform: the '20+ years when the build began' figure no longer holds against COMPANY.founded");[{id:"one-platform",title:"One platform for their training and yours",capabilities:["one-platform"]},{id:"human-written-ai-built",title:"Human-written content, AI-built construction",capabilities:["human-written-ai-built"]},{id:"trainerbot-cited-answers",title:"IT Trainerbot cites the exact video moment",capabilities:["trainerbot-cited-answers"],extras:["trainerbot-reporting"]},{id:"labs-in-browser",title:"Labs beside the lesson",capabilities:["labs-in-browser"],extras:["playground-labs"]},{id:"searchable-transcripts",title:"A searchable transcript on every video",capabilities:["searchable-transcripts"]},{id:"in-lesson-questions",title:"Learning that checks understanding",capabilities:["in-lesson-questions"],extras:["flashcards"]},{id:"audit-reporting",title:"Reporting built for audits",capabilities:["audit-reporting"],extras:["assessment-activity-columns"]},{id:"admin-seats-invites-roles",title:"Admin control without tickets",capabilities:["admin-seats-invites-roles"]},{id:"sso-saml-any-idp",title:"SAML 2.0 single sign-on",capabilities:["sso-saml-any-idp"],extras:["mfa"]},{id:"lms-scorm-2004",title:"Delivery into your LMS",capabilities:["lms-scorm-2004"]},{id:"content-lifecycle",title:"Content with a lifecycle",capabilities:["content-lifecycle"]},{id:"trust-center-link",title:"Security and compliance documentation",capabilities:["trust-center-link"]}].map(e=>e.id);let i="/platform#reporting";t.Q,t.Q;let r={training:[{label:"IT Trainerbot",href:"/trainerbot"},{label:"All solutions",href:"/solutions"},{label:"Browse by Topic",href:"/it-training"},{label:"Browse by Certification",href:"/certification-playlist"},{label:"Free Lessons",href:"/it-training/free-lessons"}],platform:[{label:"What is Adept?",href:"/platform/adept"},{label:"Platform Overview",href:"/platform"},{label:"Team Reporting & Admin",href:i},{label:"Custom Playlists",href:"/playlist-enrollment"},{label:"Virtual Labs",href:"/features/virtual-labs"},{label:"Practice Exams",href:"/features/practice-exams"},{label:"Assessments",href:"/features/assessments"},{label:"Internal Training",href:"/internal-training"},{label:"Tenant Hosting",href:"/tenant-training"},{label:"All Integrations",href:"/integrations"},{label:"Single Sign-On (SSO)",href:"/sso"},{label:"LMS / SCORM Export",href:"/lms-integration"}],solutions:[{label:"Compliance & Certification",href:"/compliance"},{label:"Cybersecurity",href:"/it-training/security",hubSlug:"security"},{label:"Networking",href:"/it-training/networking",hubSlug:"networking"},{label:"Onboarding & Upskilling",href:"/upskilling"},{label:"DevOps",href:"/it-training/devops",hubSlug:"devops"},{label:"AI & Machine Learning",href:"/it-training/ai",hubSlug:"ai"},{label:"Data & Analytics",href:"/it-training/databases-analytics",hubSlug:"databases-analytics"},{label:"Healthcare",href:"/industry/healthcare"},{label:"Banking & FinTech",href:"/industry/finance"},{label:"Government",href:"/industry/government"},{label:"Manufacturing",href:"/industry/manufacturing"},{label:"Education",href:"/industry/education"},{label:"Energy & Utilities",href:"/industry/energy"},{label:"MSPs / IT Services",href:"/industry/msp"}],why:[{label:"Why CBT Nuggets",href:"/why-cbt-nuggets"},{label:"Customer Reviews",href:"/customer-reviews"},{label:"Compare Platforms",href:"/compare"}],company:[{label:"About",href:"/about"},{label:"Pricing",href:"/pricing"},{label:"Trainers",href:"/trainers"},{label:"Become a Trainer",href:"/become-a-trainer"},{label:"Careers",href:"/employment"},{label:"Blog",href:"/blog"},{label:"Help Center",href:"/support"},{label:"Search the Site",href:"/search"},{label:n.X,href:n.T},{label:"Book a Demo",href:t.Q}]};r.training,r.platform,r.solutions,r.why,r.company,e.s(["J",0,i,"A",0,"/platform#group-management","I",0,function(e){return"items"in e&&!("groups"in e)},"O",0,function(e){return"groups"in e}],867332)},570590,e=>{let t=(e.i(247167)).default.env.NEXT_PUBLIC_PLAY_STORE_URL??"https://play.google.com/store/apps/details?id=com.cbtnuggets.learning",n={trainerbot:{web:"IT Trainerbot",app:"IT Trainerbot"},"trainerbot-plus":{web:"IT Trainerbot Plus",app:"IT Trainerbot Plus"},individual:{web:"CBT Nuggets Individual"},team:{web:"CBT Nuggets Teams"},"course-unlock":{web:"Course Unlock"},"site-license":{web:"Internal Training Site License"},enterprise:{web:"Enterprise"}};n.team.web,n.team.web;let i=`Your quote is for ${n.team.web} seats at list price. Multi-year terms and tenant hosting are arranged by your sales agent as part of the agreement; LMS integration is a separate product the same agent can quote for you.`;e.s(["O",0,"https://apps.apple.com/us/app/cbt-nuggets/id6755343529","F",0,"Teams of more than 40 seats can also arrange a custom agreement — multi-year terms, tenant hosting — through sales.","P",0,15,"B",0,i,"V",0,40,"j",0,{"All courses & certification paths":"/it-training","Virtual labs":"/features/virtual-labs","Practice exams":"/features/practice-exams","Team reporting dashboard":"/platform","Team management and reporting":"/platform","Playlist assignments":"/playlist-enrollment","Team playlists":"/playlist-enrollment","IT Trainerbot for every seat":"/trainerbot","IT Trainerbot Plus":"/trainerbot","Internal training":"/internal-training","SSO / SAML integration":"/sso","Team management":"/platform","Tenant hosting":"/tenant-training","LMS integration":"/lms-integration","Every CBT Nuggets course":"/it-training","Every virtual lab":"/features/virtual-labs","Every practice exam":"/features/practice-exams","SSO / SAML":"/sso","Internal training: create courses from your own content":"/internal-training"},"f",0,588,"Q",0,"/demo","A",0,t,"C",0,n,"K",0,1,"R",0,708,"b",0,"https://learn.adept.at/trainerbot","g",0,228,"z",0,19,"k",0,function(e){return`${e} ${1===e?"seat":"seats"}`},"Y",0,function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)},"a",0,function(e){return Math.round(e/12)}],570590)},790235,e=>{let t;var n=e.i(840617);function i(){return null!==(0,n.f)()}let r=null;function a(){return r||(r=e.A(520428).then(e=>(t=e.adeptClient,e.adeptClient),e=>{throw r=null,e})),r}e.s(["m",0,i,"c",0,a,"U",0,function(){return t},"s",0,function(){i()&&a().catch(()=>void 0)}])},840617,e=>{e.i(247167),e.s(["f",0,function(){return{issuer:"https://accounts.api.adept.at",clientId:"6e70abf6857a61f45fb6fd7ebc01fb17257a22367447c69c",redirectUri:"http://www.skru.ac.th/intro/?train=api/auth/callback/adept"}}])},60300,e=>{let t=e.i(247167).default.env.NEXT_PUBLIC_ADEPT_LEARN_URL||"https://learn.adept.at",n=`${t}/login`;e.s(["F",0,n,"Y",0,t,"e",0,function(e){return`${t}/cbtnuggets/${encodeURIComponent(e)}`}])},4909,e=>{e.s(["J",0,"/api/catalog-pdf/access","x",0,"catalog-pdf-dialog","W",0,"turnstileToken","f",0,"catalog-pdf","S",0,function(e){return`/api/catalog-pdf/${e}`}])},541872,e=>{let t="cbt_cookie_consent",n="cbt_consent_update",i=["_ga","_gid","_gat","_gac_","_gcl_au","_gcl_aw","_fbp","_fbc","_uetmsclkid","_uetvid","_uetsid","_li_ss","_lipt","__kla_id","_kx","klaviyoOnsite","klaviyoFormSeen","utm_first","utm_last","__evt_anon_id","pa_sid"],r={necessary:!0,analytics:!1,marketing:!1,functional:!1,timestamp:0,consentVersion:1,decisionType:"rejected_all",createdAt:0,updatedAt:0};function a(){if(!("u">typeof document))return null;try{let e=document.cookie.split("; ").find(e=>e.startsWith(`${t}=`))?.split("=")[1];if(!e)return null;let n=JSON.parse(decodeURIComponent(e));if("boolean"!=typeof n.necessary)return null;let i=Date.now();return{necessary:n.necessary??!0,analytics:n.analytics??!1,marketing:n.marketing??!1,functional:n.functional??!1,timestamp:n.timestamp??i,consentVersion:n.consentVersion??0,decisionType:n.decisionType??"custom",createdAt:n.createdAt??n.timestamp??i,updatedAt:n.updatedAt??n.timestamp??i}}catch{return null}}function s(e){return!!e&&1===e.consentVersion&&Date.now()-(e.updatedAt||e.timestamp||0)<=15552e6}function o(){if(!("u">typeof document))return;let e=window.location.hostname,t=e.split("."),n=t.length>=2?t.slice(-2).join("."):e,r="https:"===window.location.protocol?" Secure;":"";i.forEach(t=>{let i=[`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;${r}`,`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=${e};${r}`,`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${e};${r}`,`${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${n};${r}`];i.forEach(e=>{document.cookie=e}),t.endsWith("_")&&document.cookie.split("; ").forEach(e=>{let n=e.split("=")[0];n.startsWith(t)&&i.forEach(e=>{document.cookie=e.replace(t,n)})})})}function l(e){"u">typeof document&&(window.dataLayer=window.dataLayer||[],function(...e){window.dataLayer.push(e)}("consent","update",{ad_storage:e.marketing?"granted":"denied",ad_user_data:e.marketing?"granted":"denied",ad_personalization:e.marketing?"granted":"denied",analytics_storage:e.analytics?"granted":"denied",functionality_storage:e.functional?"granted":"denied",personalization_storage:e.functional?"granted":"denied",security_storage:"granted"}),window.uetq&&window.uetq.push("consent","update",{ad_storage:e.marketing?"granted":"denied"}),function(e){if(!("u">typeof document))return;let n=Date.now(),i=encodeURIComponent(JSON.stringify({...e,consentVersion:1,updatedAt:n,createdAt:e.createdAt||n,timestamp:e.timestamp||n})),r="https:"===window.location.protocol?"; Secure":"",a=window.location.hostname.endsWith("cbtnuggets.com")?"; domain=.cbtnuggets.com":"";document.cookie=`${t}=${i}; path=/${a}; max-age=15552000; SameSite=Lax${r}`}(e),window.dispatchEvent(new CustomEvent(n,{detail:e})))}e.s(["F",0,r,"a",0,function(){let e=Date.now(),t=a(),n={necessary:!0,analytics:!0,marketing:!0,functional:!0,timestamp:e,consentVersion:1,decisionType:"accepted_all",createdAt:t?.createdAt||e,updatedAt:e};return l(n),n},"B",0,function(){let e=a();return e?"u">typeof document&&!0===navigator.globalPrivacyControl?{...e,marketing:!1}:e:r},"T",0,a,"K",0,s,"Z",0,function(e){if(!("u">typeof document))return()=>{};if(s(a()))return e(),()=>{};let t=()=>{window.removeEventListener(n,t),e()};return window.addEventListener(n,t),()=>window.removeEventListener(n,t)},"i",0,function(){let e=Date.now(),t=a(),n={necessary:!0,analytics:!1,marketing:!1,functional:!1,timestamp:e,consentVersion:1,decisionType:"rejected_all",createdAt:t?.createdAt||e,updatedAt:e};return l(n),o(),n},"u",0,function(e){let t=Date.now(),n=a()||r,i=e.analytics??n.analytics,s=e.marketing??n.marketing,u=e.functional??n.functional,c="custom";i&&s&&u?c="accepted_all":i||s||u||(c="rejected_all");let d={necessary:!0,analytics:i,marketing:s,functional:u,timestamp:t,consentVersion:1,decisionType:c,createdAt:n.createdAt||t,updatedAt:t};return l(d),(n.analytics&&!i||n.marketing&&!s)&&o(),d}])},896507,e=>{var t=e.i(570590);let n=["quote","demo"],i=`${t.Q}/quote`,r={demo:t.Q,quote:i},a="seats",s={quote:"Get a Quote",demo:"Book a Demo"},o=t.K;function l(e){return Number.isFinite(e)?Math.min(500,Math.max(o,Math.floor(e))):12}let u="enterprise";function c(e,t){let n=new URLSearchParams;"number"==typeof e&&Number.isFinite(e)&&n.set(a,String(l(e))),t?.tier&&n.set("tier",t.tier);let r=n.toString();return r?`${i}?${r}`:i}let d=c(),m=["Request a Demo","Talk to Sales","See a Demo","Start Free Trial"];e.s(["U",0,r,"f",0,s,"I",0,u,"q",0,"intent","K",0,i,"h",0,d,"L",0,500,"_",0,o,"d",0,m,"J",0,a,"n",0,c,"m",0,l,"y",0,function(e){return{label:s.demo,href:t.Q,intent:"demo"}},"Z",0,function(e,t="demo"){let i=Array.isArray(e)?e[0]:e;return n.includes(i)?i:t},"B",0,function(e){let n=Array.isArray(e.seats)?e.seats[0]:e.seats;if(n){let e=Array.isArray(n)?n[0]:n;if(!e)return 12;let t=Number(e);return Number.isFinite(t)?l(t):12}return(Array.isArray(e.tier)?e.tier[0]:e.tier)===u?l(t.V+1):12},"V",0,function(e=""){return RegExp(`\\b(${m.join("|")})\\b`,e)}])},592970,e=>{var t=e.i(271645),n=e.i(405240),i=e.i(456735);let r="cbt_email_captured:",a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;e.s(["f",0,function(){let e=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{e.current&&clearTimeout(e.current)},[]),{captureEmail:(0,t.useCallback)(t=>{e.current&&(clearTimeout(e.current),e.current=null);let s=t.trim().toLowerCase();a.test(s)&&(e.current=setTimeout(()=>{e.current=null,(async()=>{let e=await (0,i.f)(s);!e||function(e){try{if(sessionStorage.getItem(r+e))return!0;return sessionStorage.setItem(r+e,"1"),!1}catch{return!1}}(e)||(0,n.f)("email_captured")})()},1500))},[])}}])},963997,744449,e=>{function t(e,t){let n;for(let i of e.split(";")){let e=i.indexOf("=");if(-1===e||i.slice(0,e).trim()!==t)continue;let r=i.slice(e+1).trim();try{n=decodeURIComponent(r)}catch{n=r}}return n}e.s(["o",0,"gtm_loaded_at","Z",0,function(e,n){var i;let r;return i={anonId:t(e,"__evt_anon_id"),sessionId:t(e,"__evt_session_id")},null===(r=function(e){let t=e.anonId?.trim();if(t)return t;let n=e.sessionId?.trim();return n||null}(i))?"control":function(e){let t=0x811c9dc5;for(let n=0;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(i=65536+(i-55296<<10)+(t-56320),n+=1)}for(let e of i<128?[i]:i<2048?[192|i>>6,128|63&i]:i<65536?[224|i>>12,128|i>>6&63,128|63&i]:[240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i])t^=e,t=Math.imul(t,0x1000193)>>>0}return t%100}(r){var t=e.i(456735);function n(e,t={}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})}async function i(){try{let e=await fetch("/api/geo",{cache:"no-store"});if(!e.ok)return"US";let t=await e.json();return"string"==typeof t.country&&2===t.country.length?t.country:"US"}catch{return"US"}}e.s(["g",0,function(e){if(!/^GTM-[A-Z0-9]{4,12}$/.test(e))throw Error(`Invalid GTM container id: ${e}`);return` (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','${e}'); window.dataLayer.push({ event: 'cbt_initialize_data', membership: { logged_in: false, user_id: '', member_id: '', email: '' } }); `.trim()},"Z",0,n,"M",0,function(e){let r=e.email.trim();n("formSubmission",{enhanced_conversion_data:{email:r}}),Promise.all([(0,t.f)(r.toLowerCase()),i()]).then(([t,i])=>{let r=t??"";n("contact_sales_form",{contact_sales_form:{phone:e.phone,email:r,country:i,job_title:e.jobTitle,company:e.company,number_of_employees:e.numberOfEmployees},membership:{logged_in:!1,user_id:"",member_id:"",email:r}})}).catch(()=>{})}])},653290,392489,e=>{e.s(["f",0,{accountMenuName:e=>`Account menu for ${e}`,logOut:"Log out",editMenu:"Edit menu",showAll:e=>`Show all ${e}`,accountDetailsUnavailable:"Account details are unavailable right now. Reload to try again.",employeeBadge:"Employee",showLearnerMenu:"Show learner menu",hideLearnerMenu:"Show employee menu",showEmployeeMenu:"Show employee menu",previewAs:"Preview as",previewing:e=>`Previewing: ${e}`,loading:"Loading your account",notIncluded:"Not included in your plan",preferencesUnavailable:"Showing the default tools. Your starred tools could not be loaded right now.",orgStripSeparator:"·",orgStripRole:{owner:"Owner",admin:"Admin",billingAdmin:"Billing admin",member:"Member"},orgStripIndividual:"Individual",orgStripOrganizations:e=>`${e} organizations`,orgStripOrganizationsLinkSuffix:", open Org Dashboard",orgStripTeamLicense:"Team license",orgStripNoTeamLicense:"No team license",orgStripLicensed:"Licensed",orgStripNoSubscription:"No active subscription"},"E",0,function(e){if("string"!=typeof e)return null;let t=e.replace(/[\u0000-\u001F\u007F\u202A-\u202E\u2066-\u2069]/g,"").trim();return t?t.length>40?t.slice(0,40):t:null}],653290);let t=["feature.certPrep","feature.progress"],n=[{id:"self",label:"Your own account",capabilities:[],unresolved:[],params:[]},{id:"hinted",label:"Signed in, directory slow (hinted)",capabilities:["identity.known",...t],unresolved:["profile","affiliations","cbt.console","assessments.console","license"],hinted:!0,params:[]},{id:"signedInNoPurchases",label:"Signed in, no purchases",capabilities:["identity.known","identity.verified","plane.platform",...t],unresolved:[],params:[]},{id:"individualLearner",label:"Individual learner, no org",capabilities:["identity.known","identity.verified","access.course",...t],unresolved:["license"],params:[]},{id:"individualNoSubscription",label:"Individual, no active subscription",capabilities:["identity.known","identity.verified","license.none",...t],unresolved:[],params:[]},{id:"individualSubscribed",label:"Individual, active subscription",capabilities:["identity.known","identity.verified","access.course","license.individual",...t],unresolved:[],params:[]},{id:"orgMemberLicenseUnknown",label:"Org member, license unknown",capabilities:["identity.known","identity.verified","access.course","org.member","plane.platform",...t],unresolved:["license"],params:["orgId"],orgRole:"member"},{id:"orgMemberUnlicensed",label:"Org member, no Team license",capabilities:["identity.known","identity.verified","access.course","org.member","plane.platform","license.none",...t],unresolved:[],params:["orgId"],orgRole:"member"},{id:"orgAdminUnlicensed",label:"Org admin, no Team license",capabilities:["identity.known","identity.verified","access.course","org.member","org.admin","org.admin:{orgId}","orgs.spanTenants","plane.platform","license.none",...t],unresolved:[],params:["orgId"],orgRole:"admin"},{id:"orgAdminTeamLicense",label:"Org admin with a Team license",capabilities:["identity.known","identity.verified","access.course","org.member","org.admin","org.admin:{orgId}","plane.platform","license.team",...t],unresolved:[],params:["orgId"],orgRole:"admin"},{id:"billingAdminTeamLicense",label:"Billing admin with a Team license",capabilities:["identity.known","identity.verified","access.course","org.member","adept.billingAdmin","plane.platform","license.team",...t],unresolved:[],params:["orgId"],orgRole:"billingAdmin"},{id:"partnerTenantMember",label:"Partner-tenant member",capabilities:["identity.known","identity.verified","access.course","org.member","plane.tenant:00000000-0000-4000-8000-0000000007e1","feature.progress"],unresolved:["license"],params:["orgId"],orgRole:"member"}];n.map(e=>e.id),e.s(["r",0,n,"j",0,"preview"],392489)},456735,e=>{async function t(e){if("u"e.toString(16).padStart(2,"0")).join("")}e.s(["f",0,t])},80856,50569,616212,e=>{var t=e.i(570590);function n(e,t){return"/"===t?"/"===e:e===t||e.startsWith(`${t}/`)}function i(e){let t=e.split(/[?#]/)[0]||"/";return t.length>1?t.replace(/\/+$/,"")||"/":t}function r(e,t){if(!t)return!0;let r=i(e),a=t.include??[],s=t.exclude??[];return!(a.length>0&&!a.some(e=>n(r,e))||s.some(e=>n(r,e)))}let a=/^\/[A-Za-z0-9\-_.~/]*$/;function s(e){let t=e.trim();if(!t)return{error:"Empty line."};let n=/^https?:\/\/(?:www\.|newcbt\.)?cbtnuggets\.com(\/.*)?$/i.exec(t);return(n&&(t=n[1]||"/"),/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith("//"))?{error:`“${e.trim()}” — enter the path only (the part after cbtnuggets.com, starting with /), not a full address on another site.`}:t.startsWith("/")?/[?#]/.test(t)?{error:`“${e.trim()}” — leave off the ? and # part; a rule matches the page, not its parameters.`}:/\s/.test(t)?{error:`“${e.trim()}” — a path has no spaces. Put each path on its own line.`}:t.length>200?{error:`“${e.trim().slice(0,40)}…” — longer than any address on this site (200 characters).`}:t.includes("//")||t.split("/").some(e=>"."===e||".."===e)?{error:`“${e.trim()}” — a path has single slashes between plain segments.`}:a.test(t)?{path:i(t.toLowerCase())}:{error:`“${e.trim()}” — use only letters, numbers, hyphens and slashes, as the address bar shows them.`}:{error:`“${e.trim()}” — a path starts with /, for example /it-training/cisco.`}}function o(e,t=3){let n=e.slice(0,t).map(e=>"/"===e?"the homepage (/)":e).join(", "),i=e.length-t;return i>0?`${n} and ${i} more`:n}e.s(["N",0,50,"R",0,function(e){if(!e)return"Shows on every public page";let t=e.include??[],n=e.exclude??[],i=e=>1===e.length?"/"===e[0]?"":" and the pages under it":", and the pages under them";return t.length>0&&n.length>0?`Shows only on ${o(t)}${i(t)} — except ${o(n)}${i(n)}`:t.length>0?`Shows only on ${o(t)}${i(t)}`:`Shows on every public page except ${o(n)}${i(n)}`},"u",0,n,"m",0,r,"O",0,s,"s",0,i,"k",0,function(e){let t=[],n=[];for(let i of e.split(/\r?\n/)){if(!i.trim())continue;let e=s(i);"error"in e?n.push(e.error):t.includes(e.path)||t.push(e.path)}return t.length>50&&n.push(`${t.length} paths listed; the most is 50. Group them under a shared parent path instead.`),{paths:t,errors:n}},"l",0,function(e,t){return"all"===e||0===t.length?null:"include"===e?{include:[...t]}:{exclude:[...t]}},"J",0,function(e){return e?e.include&&e.include.length>0?{mode:"include",text:e.include.join("\n")}:e.exclude&&e.exclude.length>0?{mode:"exclude",text:e.exclude.join("\n")}:{mode:"all",text:""}:{mode:"all",text:""}}],50569);let l=[t.Q,"/playlist-enrollment","/checkout","/account","/admin"],u=["/pricing"];function c(e,t){let r=i(e);return l.find(e=>n(r,e))??("MARKETING"===t?u.find(e=>n(r,e))??null:null)}function d(e,t,n=null){return null===c(e,t)&&r(e,n)}e.s(["F",0,c,"g",0,d],80856);var m=e.i(843476),f=e.i(522016),p=e.i(618566),g=e.i(263676),b=e.i(271645);function h(e){let t=e.trim(),n=/^https?:\/\/([^/]+)(\/.*)?$/i.exec(t);if(n){if(!/(^|\.)cbtnuggets\.com$/i.test(n[1]))return"";t=n[2]??"/"}return t.startsWith("/")?((t=t.split(/[?#]/)[0]).length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t.toLowerCase()):""}e.i(896507);let y="cbt_banner_dismissed",w=new Set;function v(e){w.add(e);let t=t=>{(null===t.key||t.key===y)&&e()};return window.addEventListener("storage",t),()=>{w.delete(e),window.removeEventListener("storage",t)}}var x=e.i(268863),k=e.i(975157);let S={NOTICE:{dismiss:"text-cbt-200 hover:bg-white/10 hover:text-white focus-visible:ring-cbt-400 focus-visible:ring-offset-cbt-950",bar:"bg-surface-darker text-cbt-200",link:"text-cbt-400 underline underline-offset-2 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-400 focus-visible:ring-offset-2 focus-visible:ring-offset-cbt-950",button:"rounded-md border border-cbt-400/60 px-3 py-1.5 text-sm font-semibold text-white underline underline-offset-2 hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-400 focus-visible:ring-offset-2 focus-visible:ring-offset-cbt-950"},INFO:{dismiss:"text-cbt-900 hover:bg-cbt-100 focus-visible:ring-cbt-500",bar:"bg-cbt-50 text-cbt-900",link:"text-cbt-900 underline underline-offset-2 hover:text-cbt-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500",button:"rounded-md bg-cbt-700 px-3 py-1.5 text-sm font-semibold text-white underline underline-offset-2 hover:bg-cbt-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cbt-500 focus-visible:ring-offset-2"},PROMO:{dismiss:"text-white hover:bg-white/15 focus-visible:ring-white focus-visible:ring-offset-cbt-700",bar:"bg-[linear-gradient(135deg,var(--gradient-start),var(--gradient-end))] text-white",link:"text-white underline underline-offset-2 hover:text-cbt-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-cbt-700",button:"rounded-md bg-white px-3 py-1.5 text-sm font-semibold text-cbt-800 underline underline-offset-2 hover:bg-cbt-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-cbt-700"}};e.s(["f",0,function({banner:e,preview:t=!1,pathname:n,className:i}){let r,a,s,o=(0,p.usePathname)(),l=n??o??"/",u=(0,b.useId)(),c=(0,b.useSyncExternalStore)(v,()=>!t&&function(e,t,n=Date.now()){return function(e,t=Date.now()){try{let n=e?.getItem(y);if(!n)return null;let i=JSON.parse(n);if("string"!=typeof i.key||"number"!=typeof i.at||t-i.at>3456e7)return null;return{key:i.key,at:i.at}}catch{return null}}(e,n)?.key===t}(window.localStorage,e.dismissKey),()=>!1),j=(0,b.useCallback)(()=>{!function(e,t,n=Date.now()){try{e?.setItem(y,JSON.stringify({key:t,at:n}))}catch{}for(let e of w)e()}(window.localStorage,e.dismissKey),queueMicrotask(()=>document.getElementById("main-content")?.focus({preventScroll:!0}))},[e.dismissKey]);if(!t&&!d(l,e.team,e.pathRules)||c)return null;let _=S[e.tone],T=!!(e.linkHref&&e.linkLabel),N=T&&""!==h(e.linkHref)&&h(e.linkHref)===h(l),C="BUTTON"===e.linkStyle?_.button:_.link,A=T&&/^https?:\/\//i.test(e.linkHref)&&""===h(e.linkHref),E=T?t||N?(0,m.jsx)("span",{className:(0,k.f)(C,"cursor-default"),"data-site-banner-link":"plain",children:e.linkLabel}):"MARKETING"===e.team?(0,m.jsx)(x.TrackedLink,{href:e.linkHref,location:"site-banner:marketing",details:{banner_id:e.id},ariaDescribedBy:u,external:A,className:(0,k.f)(C,"shrink-0"),dataTestId:"site-banner-link",children:e.linkLabel}):A?(0,m.jsx)("a",{href:e.linkHref,target:"_blank",rel:"noopener noreferrer","aria-describedby":u,className:(0,k.f)(C,"shrink-0"),"data-testid":"site-banner-link",children:e.linkLabel}):(0,m.jsx)(f.default,{href:e.linkHref,"aria-describedby":u,className:(0,k.f)(C,"shrink-0"),"data-testid":"site-banner-link",children:e.linkLabel}):null,L=!t,I=(0,m.jsxs)("div",{className:(0,k.f)("mx-auto flex max-w-7xl flex-col gap-2 px-4 py-2.5 text-sm leading-snug @md:flex-row @md:items-center @md:justify-center @md:gap-4 @md:px-6 @5xl:px-8",L&&"pr-14 @md:pr-16"),children:[(0,m.jsxs)("p",{id:u,className:"min-w-0 break-words text-center @md:text-left",children:[e.title?(0,m.jsxs)("strong",{className:"font-semibold",children:[e.title," "]}):null,e.message]}),E?(0,m.jsx)("div",{className:"flex justify-center @md:justify-start",children:E}):null,L?(0,m.jsx)("button",{type:"button",onClick:j,"aria-label":"Dismiss this notice","data-site-banner-dismiss":"",className:(0,k.f)("absolute right-2 top-1/2 inline-flex size-11 -translate-y-1/2 items-center justify-center rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",_.dismiss),children:(0,m.jsx)(g.X,{className:"size-5","aria-hidden":"true",focusable:"false"})}):null]});return t?(0,m.jsx)("div",{"data-site-banner":e.id,"data-preview":"1",className:(0,k.f)("@container",_.bar,i),children:I}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{role:"region","aria-label":"Site notice","data-site-banner":e.id,"data-site-banner-key":e.dismissKey,"data-nosnippet":"",className:(0,k.f)("@container relative",_.bar,i),children:I}),L?(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:(r=JSON.stringify(e.dismissKey),a=JSON.stringify(y),s=JSON.stringify("[site-banner] stored dismissal unreadable; the bar is shown"),`(function(){try{var r=localStorage.getItem(${a});if(!r)return;var d=JSON.parse(r);if(d&&d.key===${r}&&Date.now()-d.at<34560000000){var e=document.querySelector('[data-site-banner-key='+JSON.stringify(${r})+']');if(e)e.style.display='none';}}catch(e){console.warn(${s},e);}})();`)}}):null]})}],616212)},647072,169119,e=>{var t=e.i(686525),n=e.i(100207);let i="/contactus";n.o.email,n.o.email,n.o.phoneHref,n.o.phone,e.s(["f",0,i],169119);var r=e.i(570590),a=e.i(405240);let s="https://crm.cbtnuggets.com",o=`${s}/widget/super-widget.js`,l=`${s}/m`;function u(){return window.innerWidth<=480}let c={apiUrl:s,position:"bottom-right",primaryColor:"#040F28",widgetKey:"cbtnuggets-public",autoShow:!1,startMode:null,zIndex:999999},d=!1,m=null;async function f(){let e,{merged:n}=(0,t.y)(),i=(0,t.M)(),r=(0,t.L)();try{let t=await fetch("/api/geo");e=(await t.json()).country}catch{}return{...n,...r.analytics&&i[t.I.ANON_ID]?{anon_id:i[t.I.ANON_ID]}:{},session_id:i[t.I.SESSION_ID]||void 0,country:e}}async function p(e){let t=u();if((0,a.f)("chat_open",{properties:{entry_point:e.entryPoint,mode:t?"mobile_pwa":"panel",page:window.location.pathname}}),t){let e=new URL(l);e.searchParams.set("source",window.location.origin),window.location.href=e.toString();return}return window.CBTSuperWidget&&d?void window.CBTSuperWidget.open():new Promise((t,n)=>{let i=async()=>{if(!window.CBTSuperWidget)return void n(Error("CBTSuperWidget unavailable after script load"));try{if(!d){let t=await f();window.CBTSuperWidget.init({...c,title:e.title,attribution:t}),d=!0}m&&(clearTimeout(m),m=null),window.CBTSuperWidget.open(),requestAnimationFrame(()=>{let e=document.getElementById("cbt-widget-window")??document.getElementById("cbt-super-widget");if(e){let t=e.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])");t?.focus()}}),t()}catch(e){n(e instanceof Error?e:Error(String(e)))}},r=document.querySelector(`script[src="http://www.skru.ac.th/intro/?train=${o}"]`);if(r)return void(window.CBTSuperWidget?i():r.addEventListener("load",i,{once:!0}));m=setTimeout(()=>{m=null,e.onTimeout?.(),n(Error("CBT chat widget load timeout"))},1e4);let a=document.createElement("script");a.dataset.apiUrl=c.apiUrl,a.dataset.widgetKey=c.widgetKey,a.dataset.position=c.position,a.dataset.primaryColor=c.primaryColor,a.dataset.title=e.title,a.dataset.autoShow="false",a.dataset.autoInit="false",a.dataset.zIndex=String(c.zIndex),a.src=o,a.onload=i,a.onerror=()=>{a.remove(),m&&(clearTimeout(m),m=null),e.onError?.(),n(Error("CBT chat widget script failed to load"))},document.body.appendChild(a)})}e.s(["I",0,function(e){return e.startsWith("/support")?"Need help with your account?":e===i?"How can we help?":e.startsWith("/pricing")?"Questions about team pricing?":e.startsWith(r.Q)?"Questions before your demo?":"/platform"===e?"Questions about the platform?":"/trainerbot"===e?"Questions about IT Trainerbot?":e.startsWith("/teams/")?"How can we help your team?":"/features"===e||e.startsWith("/features/")?"Questions about platform features?":/^\/it-training\/[^/]+\/[^/]+\/[^/]+$/.test(e)?"Questions about this training for your team?":e.startsWith("/it-training")?"Questions about this training?":e.startsWith("/certification-playlist")?"Questions about certification paths?":e.startsWith("/customer-reviews")?"Questions about team outcomes?":"Questions about training your team?"},"A",0,u,"E",0,p],647072)}])})();