(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,268863,e=>{var t=e.i(843476),r=e.i(522016),n=e.i(618566),i=e.i(271645),o=e.i(311063),l=e.i(117213);e.s(["TrackedLink",0,function({href:e,location:a,className:u,children:s,ariaLabel:c,ariaDescribedBy:f,external:d=!1,inPage:m=!1,dataTestId:p,details:b}){let g=(0,n.usePathname)(),h=(0,i.useRef)(null);(0,l.f)(h,f);let _=()=>b?(0,o.p)(a,g,b):(0,o.p)(a,g);return m?(0,t.jsx)("a",{ref:h,href:e,className:u,"aria-label":c,"aria-describedby":f,"data-testid":p,onClick:_,children:s}):d?(0,t.jsx)("a",{ref:h,href:e,target:"_blank",rel:"noopener noreferrer",className:u,"aria-label":c,"aria-describedby":f,"data-testid":p,onClick:_,children:s}):(0,t.jsx)(r.default,{ref:h,href:e,className:u,"aria-label":c,"aria-describedby":f,"data-testid":p,onClick:_,children:s})}])},117213,e=>{var t=e.i(271645);let r=/^(SECTION|ARTICLE|ASIDE|HEADER|MAIN)$/;function n(e){return Number(e.tagName.slice(1))||9}e.s(["f",0,function(e,i){(0,t.useEffect)(()=>{if(i)return;let t=e.current;if(!t||t.hasAttribute("aria-describedby"))return;let o=function(e){let t=e.parentElement;for(;t&&t!==document.body;){let i=t.getAttribute("aria-labelledby");if(i){let t=i.split(/\s+/)[0],r=t?document.getElementById(t):null;if(r&&!r.contains(e))return t}if(r.test(t.tagName)||"region"===t.getAttribute("role")){let r=function(e,t){let r=Array.from(e.querySelectorAll("h1, h2, h3, h4")).filter(e=>!e.contains(t)&&!t.contains(e)&&(e.textContent??"").trim().length>0&&"true"!==e.getAttribute("aria-hidden"));return 0===r.length?null:(r.sort((e,t)=>n(e)-n(t)),r[0])}(t,e);if(r)return function(e){if(e.id)return e.id;let t="ctx-"+(e.textContent??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48),r=t||"ctx-heading",n=2;for(;document.getElementById(r)&&document.getElementById(r)!==e;)r=`${t}-${n++}`;return e.id=r,r}(r)}t=t.parentElement}}(t);if(o)return t.setAttribute("aria-describedby",o),()=>{t.getAttribute("aria-describedby")===o&&t.removeAttribute("aria-describedby")}},[e,i])}])},503765,647475,e=>{let t=/\bChrome\/(\d+)\./,r=/\b(?:CriOS|EdgiOS|FxiOS|Electron)\//,n=/^Mozilla\/5\.0 \(Windows NT /,i=/^Mozilla\/5\.0 \(Macintosh;/;function o(e){return n.test(e)?"windows":i.test(e)?"mac":null}let l=new Map([["Windows","windows"],["macOS","mac"],["Linux","linux"],["Chrome OS","chromeos"],["Chromium OS","chromeos"],["Android","android"],["iOS","ios"],["Fuchsia","fuchsia"]]),a=new Set(["Mac OS X","MacIntel","MacPPC","Win32","Win64","WinCE","Linux x86_64","Linux i686","Linux armv7l","Linux armv8l","Linux aarch64","iPhone","iPad","iPod","X11"]);function u(e){return"string"!=typeof e?"":e.trim().replace(/^"|"$/g,"").trim()}function s(e,t){if("string"!=typeof t||"string"!=typeof e)return null;if(a.has(u(t)))return"client-hints-word";let r=o(e);if(!r)return null;let n=l.get(u(t))??null;return n?n===r?null:"client-hints-mismatch":null}let c=[" ","(",":","-",".","/",")",";","=","?","_"],f=["8","99","24"],d=/Not.A.Brand/,m=/"((?:[^"\\]|\\.)*)"\s*;\s*v\s*=\s*"((?:[^"\\]|\\.)*)"/g,p=/\bChrome\/(\d+)\./;function b(e){let{brand:t,version:r}=e;if(11!==t.length||!t.startsWith("Not")||"A"!==t[4]||!t.endsWith("Brand"))return!1;let n=c.indexOf(t[3]),i=c.indexOf(t[5]);return!(n<0)&&!(i<0)&&(n+1)%c.length===i&&f.includes(r)}function g(e){if("string"==typeof e){if("string"!=typeof e||""===e)return[];let t=[];for(let r of e.matchAll(m))t.push({brand:r[1].replace(/\\(.)/g,"$1"),version:r[2].replace(/\\(.)/g,"$1")});return t}if(!Array.isArray(e))return[];let t=[];for(let r of e){if(!r||"object"!=typeof r)continue;let{brand:e,version:n}=r;"string"==typeof e&&"string"==typeof n&&t.push({brand:e,version:n})}return t}function h(e,t){if("string"!=typeof e||!o(e))return null;let r=Number(p.exec(e)?.[1]);if(!Number.isFinite(r)||r<134)return null;let n=g(t).filter(e=>{var t;return t=e.brand,d.test(t)});return 0===n.length||n.every(b)?null:"client-hints-grease"}let _="Chromium",y=/^(\d+)(?:\.|$)/;function v(e,t){if("string"!=typeof e||!o(e))return null;let r=Number(p.exec(e)?.[1]);if(!Number.isFinite(r)||r<90)return null;let n=g(t),i=n.filter(e=>e.brand===_).map(e=>{var t;let r;return t=e.version,(r=y.exec(t))?Number(r[1]):null});return 0===i.length||n.some(e=>{var t;return e.brand!==_&&(t=e.brand,!d.test(t))})||i.some(e=>null===e||e===r)?null:"client-hints-brand-major"}e.s(["r",0,g,"g",0,v,"G",0,s,"l",0,h],647475);let w=/\bChrome\/(\d+)\.(\d+)\.(\d+)\.(\d+)\b/,A=/^Mozilla\/5\.0 \((?:Windows NT|Macintosh;|X11;)/,S=/\bElectron\/|\bwv\b|\bMobile\b|\bAndroid\b|\bnwjs\/|\bQtWebEngine\/|Valve Steam|\bSpotify\/|coc_coc_browser\//,N=/\bWindows NT (?:5\.\d|6\.[0-3])\b/,k=/HeadlessChrome|Chrome-Lighthouse|\bLighthouse\/|PingdomPageSpeed|\bpingbot\b|Datadog\/Synthetics/i;e.s(["f",0,function(e){if(!e)return!1;if(!0===e.webdriver)return!0;let n="string"==typeof e.userAgent?e.userAgent:"";return""!==n&&(!!k.test(n)||null!==function(e){let t=w.exec(e);if(!t)return null;let r=Number(t[1]),n=Number(t[3]);return Number.isFinite(r)&&Number.isFinite(n)?N.test(e)&&r>109?"chrome-on-retired-windows":r>=101&&n>0&&A.test(e)&&!S.test(e)?"pinned-chromium":null:null}(n)||null!==s(n,e.userAgentData?.platform)||null!==h(n,e.userAgentData?.brands)||null!==v(n,e.userAgentData?.brands)||null!==function(e,n){return null===function(e){if("string"!=typeof e||""===e||r.test(e))return null;let n=t.exec(e);if(!n)return null;let i=Number(n[1]);return!Number.isFinite(i)||i<90?null:i}(e)?null:""!==("string"!=typeof n?"":n.trim().replace(/^"|"$/g,"").trim())?null:"client-hints-absent"}(n,e.userAgentData?.platform))}],503765)},586168,e=>{let t={},r=null;e.s(["S",0,function(){return void 0===t.course_id?{}:{course_id:t.course_id}},"h",0,function(){return{...t}},"o",0,function(e){(void 0===e||e===r)&&(t={},r=null)},"i",0,function(e){return t=Object.fromEntries(Object.entries(e).filter(([,e])=>"string"==typeof e&&""!==e)),r=Symbol("catalog-tracking-context")}])},405240,686525,15942,e=>{var t,r=e.i(247167),n=((t=n||{}).UTM_FIRST="utm_first",t.UTM_LAST="utm_last",t.FIRST_PAGE_VIEW="first_page",t.REFERRER_FIRST="referrer",t.ANON_ID="__evt_anon_id",t.SESSION_ID="__evt_session_id",t.KLAVIYO_PROFILE_ID="__kl_profile_id",t),i=["utm_source","utm_medium","utm_campaign","utm_id","utm_term","utm_content","utm_adgroup","gad_campaignid","gclid","wbraid","gbraid","fbclid","msclkid"],o="/api/events",l=null;function a(e){l={sourceApp:e.sourceApp,url:e.url??"",key:e.key??"",enabled:e.enabled??!1,timeoutMs:e.timeoutMs??5e3,trackEndpoint:e.trackEndpoint??o}}function u(e){if(!e||"string"!=typeof e)return null;try{let t=decodeURIComponent(e),r=JSON.parse(t);return"object"==typeof r&&null!==r?r:null}catch{return null}}function s(e){if(!e)return{};let t={};for(let r of i){let n=e[r];null!=n&&""!==String(n).trim()&&(t[r]=String(n))}return t}var c=/iPad|Android(?!.*Mobile)|Tablet/i,f=/Mobi|iPhone|Android/i;function d(e){try{let t=e();if("number"!=typeof t||!Number.isFinite(t)||t<0)return;return Math.min(65535,Math.round(t))}catch{return}}var m=null;function p(e,t={}){let{trackEndpoint:n}=l||{sourceApp:"",url:"",key:"",enabled:!1,timeoutMs:5e3,trackEndpoint:o},i={event_name:e,event_type:t.event_type??"track",page_title:"u">typeof document?document.title:void 0};t.properties&&Object.keys(t.properties).length>0&&(i.properties=t.properties);let a=function(){let e,t;if("u"window.innerWidth);void 0!==n&&(r.viewport_width=n);let i=d(()=>window.innerHeight);void 0!==i&&(r.viewport_height=i);let o=d(()=>window.screen.width);void 0!==o&&(r.screen_width=o);let l=d(()=>window.screen.height);void 0!==l&&(r.screen_height=l);try{let e=window.devicePixelRatio;"number"==typeof e&&Number.isFinite(e)&&e>0&&(r.device_pixel_ratio=Math.round(100*e)/100)}catch{}try{"string"==typeof navigator.userAgent&&(r.user_agent=e=navigator.userAgent.slice(0,512))}catch{}try{let e=navigator.userAgentData;e&&"object"==typeof e?(r.ua_platform="string"==typeof e.platform?e.platform.slice(0,128):null,"boolean"==typeof e.mobile?(t=e.mobile,r.ua_mobile=+!!e.mobile):r.ua_mobile=null):(r.ua_platform=null,r.ua_mobile=null)}catch{r.ua_platform=null,r.ua_mobile=null}try{r.is_automated=+(!0===navigator.webdriver)}catch{r.is_automated=0}return r.device_type=function(e,t){if(!0===e)return"mobile";if(t){if(c.test(t))return"tablet";if(f.test(t))return"mobile"}return"desktop"}(t,e),m=r,r}();a&&(i.device=a),fetch(n,{method:"POST",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},body:JSON.stringify(i),keepalive:!0}).catch(e=>{r.default})}var b=null;function g(){if("u"{let[r,...n]=t.split("="),i=r?.trim();i&&(e[i]=decodeURIComponent(n.join("=").trim()))}),e}e.s(["I",0,n,"u",0,a,"M",0,g,"Y",0,function(e,t){let r=`${e}${t}`,n=Date.now();return!!b&&b.key===r&&n-b.timestamp<250||(b={key:r,timestamp:n},!1)},"y",0,function(){var e;let t,r,n,i,o,l,a;return t=u((e=g()).utm_first),r=u(e.utm_last),n=e.first_page,i=e.referrer,o={...s(t),...n&&n.trim()?{landing_page:n.trim()}:{},...i&&i.trim()?{referrer:i.trim()}:{}},l=s(r),a={...o,...l,...void 0!==o.landing_page?{landing_page:o.landing_page}:{},...void 0!==o.referrer?{referrer:o.referrer}:{}},{first:o,last:l,merged:a}},"L",0,function(){var e=g().cbt_cookie_consent;if(!e)return{analytics:!1,marketing:!1,personalization:!1,functional:!1};try{let t=JSON.parse(decodeURIComponent(e));return{analytics:!0===t.analytics,marketing:!0===t.marketing,personalization:!0===t.personalization||!0===t.functional,functional:!0===t.functional,consent_timestamp:t.updatedAt?new Date(t.updatedAt).toISOString():t.timestamp?new Date(t.timestamp).toISOString():void 0}}catch{return{analytics:!1,marketing:!1,personalization:!1,functional:!1}}},"H",0,p],686525);var h=e.i(503765),_=e.i(647475);let y="synthetic_browser",v="cbtnuggets-public-2026";e.s(["Z",0,1e4,"Q",0,v],15942),a({sourceApp:v,trackEndpoint:"/api/events"}),e.s(["f",0,function(e,t={}){let r=void 0===globalThis.navigator?null:globalThis.navigator;p(e,{...t,properties:{...function(e){try{if(!e)return{[y]:!1};let t=e.userAgentData,r=!!t&&"object"==typeof t,n={userAgent:e.userAgent,webdriver:e.webdriver,userAgentData:r?{platform:t.platform,brands:t.brands}:t},i={[y]:(0,h.f)(n)};return r&&(i.ua_brands_js=function(e){if(!Array.isArray(e))return null;let t=(0,_.r)(e).map(({brand:e,version:t})=>`"${e}";v="${t}"`).join(", ");return t.length>160?t.slice(0,160):t}(n.userAgentData?.brands)??""),i}catch{return{[y]:"error"}}}(r),...t.properties}})}],405240)},311063,e=>{var t=e.i(586168);function r(){return"u">typeof window}function n(){return(r()?window.vam:"production")||"production"}function i(){return"production"===n()}function o(e,t,o){var l,a;if(!r()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(i())console.warn(e);else throw Error(e);return}if(!t){null==(l=window.va)||l.call(window,"event",{name:e,options:o});return}try{let r=function(e,t){if(!e)return;let r=e,n=[];for(let[i,o]of Object.entries(e))"object"==typeof o&&null!==o&&(t.strip?r=function(e,{[e]:t,...r}){return r}(i,r):n.push(i));if(n.length>0&&!t.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(t,{strip:i()});null==(a=window.va)||a.call(window,"event",{name:e,data:r,options:o})}catch(e){e instanceof Error&&"development"===n()&&console.error(e)}}var l=e.i(405240);e.s(["p",0,function(e,r,n){if("/admin"===r||r.startsWith("/admin/"))return;let i={location:e,page:r,...(0,t.h)(),...n??{}};o("cta_click",i),(0,l.f)("cta_click",{properties:i})},"H",0,function(e,t,r){let n=`cbt_form_focus:${e}:${t}`;try{if(sessionStorage.getItem(n))return;sessionStorage.setItem(n,"1")}catch{}o("form_field_focus",{form_id:e,field:t,page:r}),(0,l.f)("form_field_focus",{properties:{form_id:e,field:t,page:r}})},"L",0,function(e,t){o("form_submit",{form_id:e,page:t})},"G",0,function(e,t,r){(0,l.f)("form_submit_duplicate_attempt",{properties:{form_type:e,page:t,elapsed_ms:Math.max(0,Math.round(r))}})},"C",0,function(e){let t={cta_text:e.ctaText,subscription_name:e.subscriptionName,page_path:e.page};void 0!==e.subscriptionPrice&&(t.subscription_price=e.subscriptionPrice),void 0!==e.seats&&(t.seats=e.seats),void 0!==e.intent&&(t.intent=e.intent),void 0!==e.billingPeriod&&(t.billing_period=e.billingPeriod),o("subscription_cta_click",{location:e.subscriptionName,page:e.page}),(0,l.f)("subscription_cta_click",{properties:t})}],311063)}])})();