"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2063,7673,6779,4597],{75879:function(e,t){t.Z="/assets/_next/static/c2271f7aad83500835d667b64ccf7d96.png"},56779:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var r=n(67294),i=r.createContext({});i.displayName="ServerContextContext",n(64687);var o=n(85893),a=n(19521),l=a.ZP.section.withConfig({displayName:"ErrorMain",componentId:"sc-1cyirqj-0"})(["display:flex;flex-direction:column;justify-content:center;background-color:white;max-width:50rem;margin:0 auto;padding:1rem;padding-top:8rem;text-align:center;height:50vh;min-height:50rem;p{text-align:center;font-size:",";font-weight:400;color:",";&.error-code{margin-top:30px;}}a{text-decoration:none;padding-bottom:1px;color:",";&:hover{text-decoration:underline;}}"],function(e){return e.theme.standardFont},function(e){return e.theme.secondary},function(e){return e.theme.blue}),c=a.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;img{max-width:150px;}"]),s=a.ZP.h1.withConfig({displayName:"Title",componentId:"sc-1cyirqj-2"})(["color:#000;text-align:center;font-family:",";font-size:4.8rem;margin:1rem 0 2rem;line-height:5rem;"],function(e){return e.theme.fontFamilyCursive}),d={error404:{image:"/assetshttps://www.cbtnuggets.com/images/errors/404-error.svg",title:"Oh, dang it!",message:'That page was moved or doesn\'t exist anymore. Head to our homepage or chat with Learner Support for help.'},error500:{image:"/assetshttps://www.cbtnuggets.com/images/errors/500-error.svg",title:"Well, that's not good",message:'Something went wrong with one of our servers. Try reloading the page or come back again later. If you need help right away, contact Learner Support.'}},u=function(e,t){return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(c,{children:(0,o.jsx)("img",{src:e.image,alt:""})}),(0,o.jsx)(s,{children:e.title}),(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,o.jsx)("p",{children:(0,o.jsxs)("strong",{children:["Error Code: ",t]})})]})},m=function(e){var t=e.code,n=r.useContext(i);return t&&n&&n.response&&(n.response.statusCode=t),(0,o.jsx)(l,{children:t&&t>399&&t<500?u(d.error404,t):u(d.error500,t)})}},87984:function(e,t,n){n.d(t,{y:function(){return o}});var r=n(19521),i=(0,r.iv)(["opacity:0.5;background:",";"],function(e){return e.theme.transparentHover}),o=r.ZP.button.withConfig({displayName:"StyledAddToBookshelfButton",componentId:"sc-x1jszb-0"})(["background:transparent;border:0rem solid ",";height:4rem;width:4rem;cursor:pointer;display:flex;justify-content:center;align-items:center;",";&:hover{background:",";}"],function(e){return e.borderColor},function(e){return e.disabled?i:""},function(e){return e.theme.transparentHover})},24388:function(e,t,n){n.d(t,{U1:function(){return a},XC:function(){return i},sz:function(){return o}});var r=n(19521),i=r.ZP.iframe.withConfig({displayName:"IframeVideo",componentId:"sc-e8vm28-0"})([""]),o=r.ZP.div.withConfig({displayName:"EmbeddedVideoContainer",componentId:"sc-e8vm28-1"})(["position:relative;padding-bottom:56.25%;height:0;width:100%;@media only screen and (max-width:","){max-width:none;}embed,iframe{position:absolute;top:0;left:0;width:100%;height:100%;}&:hover{cursor:pointer;}"],function(e){return e.theme.desktop960}),a=r.ZP.div.withConfig({displayName:"VideoWrapper",componentId:"sc-e8vm28-2"})(["#coverImgWrapper{width:100%;position:relative;img{width:100%;}.play-icon{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;}}"])},11145:function(e,t,n){n.r(t);var r=n(67294),i=n(72679),o=n(12549),a=n(24388),l=n(85893);t.default=function(e){var t=e.videoUrl,n=void 0===t?"":t,c=e.title,s=void 0===c?"":c,d=e.bannerImage,u=e.bannerImage2x,m=d&&d.length>0,p=n&&n.length>0,g=u||d,f=(0,r.useState)(!m),h=f[0],y=f[1];return(0,l.jsx)(a.U1,{children:p&&(h?(0,l.jsx)(a.sz,{children:(0,l.jsx)(a.XC,{width:"100%",height:"100%",src:n,frameBorder:"0",autoplay:"0",title:s})}):d&&(0,l.jsx)(i.LazyLoadComponent,{children:(0,l.jsxs)("div",{role:"button",id:"coverImgWrapper",onClick:function(){return y(!0)},children:[(0,l.jsx)(o.Z,{srcSet:"".concat(d," 1x, ").concat(g," 2x"),src:d,alt:s}),(0,l.jsx)("div",{className:"play-icon",children:(0,l.jsx)("svg",{width:"47px",height:"47px",viewBox:"0 0 47 47",version:"1.1",children:(0,l.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,l.jsx)("g",{transform:"translate(-137.000000, -4430.000000)",fill:"#FFFFFF",fillRule:"nonzero",children:(0,l.jsx)("g",{transform:"translate(12.000000, 4160.000000)",children:(0,l.jsx)("g",{transform:"translate(125.000000, 270.000000)",children:(0,l.jsx)("path",{d:"M18.8,34.0750352 L32.9000117,23.5000235 L18.8,12.9250117 L18.8,34.0750352 Z M23.5,0 C10.5213084,0 0,10.5213084 0,23.5 C0,36.4786916 10.5213084,47 23.5,47 C36.4786916,47 47,36.4786916 47,23.5 C46.9952599,10.5232861 36.4767492,0.00475961061 23.5000352,0 L23.5,0 Z M23.5,42.300047 C15.8960982,42.300047 9.04092017,37.7195839 6.13102632,30.6944973 C3.22113248,23.6694107 4.82957689,15.5831816 10.2063441,10.2064077 C15.5831113,4.82963379 23.6693384,3.22117927 30.6944286,6.13106433 C37.7195188,9.04094939 42.3,15.8961217 42.3,23.5000235 C42.2862135,33.8772414 33.8772532,42.2862018 23.5000352,42.300047 L23.5,42.300047 Z"})})})})})})})]})}))})}},51102:function(e,t,n){n.d(t,{v:function(){return ew}});var r,i=n(67294),o=n(9008),a=n.n(o),l=n(11163),c=n(19521),s=n(5088),d=c.ZP.div.withConfig({displayName:"StyledBlogPost",componentId:"sc-1jmmhxq-0"})(["position:relative;display:flex;justify-content:center;flex-direction:column;::before{position:absolute;content:'';width:100%;height:730px;top:-175px;background-color:",";transform:skew(0deg,-10deg);@media (max-width:","){height:600px;}@media (max-width:","){height:625px;}}","{h2{font-size:26px;line-height:32px;white-space:break-spaces;}}"],function(e){return e.theme.colors.primaryLight},function(e){return e.theme.tablet},function(e){return e.theme.phone},s.N7),u=c.ZP.section.withConfig({displayName:"StyledBlogPostContainer",componentId:"sc-1jmmhxq-1"})(["z-index:1;width:100%;max-width:140rem;padding:0rem 2rem 4rem;margin:0 auto;display:grid;grid-gap:3rem;grid-template-columns:24rem 1fr;grid-template-rows:auto 1fr;@media (max-width:","){grid-template-columns:1fr;padding:0 2rem;}"],function(e){return e.theme.desktop990}),m=n(595),p=n(7564),g=c.ZP.article.withConfig({displayName:"StyledBlogPostBody",componentId:"sc-7p399d-0"})(["padding-top:2rem;> div:last-child{position:relative;}@media (max-width:","){padding-top:9rem;}"],function(e){return e.theme.desktop990}),f=c.ZP.span.withConfig({displayName:"StyledBlogPostCategory",componentId:"sc-7p399d-1"})(["font-size:",";color:",";font-weight:",";"],function(e){return e.theme.largeFont},function(e){return e.theme.colors.black},function(e){return e.theme.bold}),h=c.ZP.h1.withConfig({displayName:"StyledBlogPostTitle",componentId:"sc-7p399d-2"})(["max-width:712px;margin:1rem 0;@media (max-width:","){max-width:unset;}"],function(e){return e.theme.desktop990}),y=c.ZP.h2.withConfig({displayName:"StyledBlogPostSubTitle",componentId:"sc-7p399d-3"})(["max-width:712px;margin-top:0.5rem;margin-bottom:1rem;color:",";font-size:25px;font-weight:",";@media (max-width:","){max-width:unset;}"],function(e){return e.theme.greyBlue},function(e){return e.theme.regular},function(e){return e.theme.desktop990}),v=c.ZP.div.withConfig({displayName:"StyledBlogPostDate",componentId:"sc-7p399d-4"})(["color:",";"],function(e){return e.theme.greyBlue}),x=c.ZP.div.withConfig({displayName:"StyledBlogPostAuthor",componentId:"sc-1abqprk-0"})(["color:",";"],function(e){return e.theme.colors.secondaryCharcoal}),w=c.ZP.span.withConfig({displayName:"StyledBlogPostAuthorInner",componentId:"sc-1abqprk-1"})(["font-size:",";"],function(e){return e.theme.standardFont}),j=n(85893),b=function(e){var t,n,r,i,o=e.author,a=e.reviewer,l=(null==o||null===(t=o.fields)||void 0===t||null===(t=t.slug)||void 0===t?void 0:t.length)>1&&(null===(n=o.fields)||void 0===n?void 0:n.slug),c=(null==a||null===(r=a.fields)||void 0===r||null===(r=r.slug)||void 0===r?void 0:r.length)>1&&(null===(i=a.fields)||void 0===i?void 0:i.slug);return null!=o&&o.fields||null!=a&&a.fields?(0,j.jsxs)(x,{children:[(null==o?void 0:o.fields)&&(0,j.jsxs)(j.Fragment,{children:["by ",(0,j.jsx)(w,{as:l?"a":"span",href:null!=l?l:void 0,children:o.fields.name})]}),(null==o?void 0:o.fields)&&(null==a?void 0:a.fields)&&" | ",(null==a?void 0:a.fields)&&(0,j.jsxs)(j.Fragment,{children:["Reviewed by ",(0,j.jsx)(w,{as:c?"a":"span",href:null!=c?c:void 0,children:a.fields.name})]})]}):null},k=n(17674),C=n(25675),I=n.n(C),P=n(34451),O=c.ZP.div.withConfig({displayName:"StyledBlogPostHero",componentId:"sc-1rjm21c-0"})(["margin:2rem 0;max-width:712px;height:",";> span{position:unset !important;}> img{object-fit:contain;width:100% !important;position:relative !important;height:auto !important;}@media (max-width:","){max-width:unset;height:",";}"],function(e){return e.loading?"30vw":"unset"},function(e){return e.theme.desktop990},function(e){return e.loading?"40vw":"unset"}),S=c.ZP.section.withConfig({displayName:"StyledBlogPostHeroEmpty",componentId:"sc-1rjm21c-1"})(["background-color:",";max-height:420px;height:36vw;@media (max-width:","){max-height:unset;min-height:150px;height:48vw;}"],function(e){return e.theme.colors.primaryLight},function(e){return e.theme.desktop990}),N=n(11145),T=function(e){var t,n,r,o=e.articleImage,a=e.featuredVideo,l=e.title,c=(null==o||null===(t=o.fields)||void 0===t?void 0:t.title)&&!a,s=null!==(n=null==o?void 0:o.fields)&&void 0!==n?n:{},d=s.file,u=s.description,m=s.title,p=void 0===m?"":m,g=i.useState(c),f=(0,k.Z)(g,2),h=f[0],y=f[1];return(0,j.jsxs)(O,{loading:h?1:0,children:[a&&(0,j.jsx)(N.default,{videoUrl:a,title:l}),c&&(0,j.jsx)(I(),{alt:u||p,blurDataURL:"/assetshttps://www.cbtnuggets.com/images/contentful/blog-post-placeholder.png",layout:"fill",loader:P.XI,loading:"eager",placeholder:"blur",quality:100,src:null==d?void 0:d.url,title:p,onLoadingComplete:function(){return y(!1)}}),!((null==d||null===(r=d.url)||void 0===r?void 0:r.length)>0)&&(0,j.jsx)(S,{})]})},Z=n(59499),L=n(90116);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0;return e<=n?0:e>t||!e?t:e}function H(e){return e.filter(function(e){return null==e?void 0:e.fields})}var z=function(e,t,n,r){var i=(a=[],(null==n?void 0:n.length)>0&&(a=[].concat((0,L.Z)(a),(0,L.Z)(H(n)))),(null==r?void 0:r.length)>0&&(a=[].concat((0,L.Z)(a),(0,L.Z)(H(r)))),a=a.map(function(e){var t;return D(D({},e),{},{fields:D(D({},e.fields),{},{paragraphs:(null==e||null===(t=e.fields)||void 0===t?void 0:t.paragraphs)>0?e.fields.paragraphs:0})})}).sort(function(e,t){var n,r;return(null===(n=e.fields)||void 0===n?void 0:n.paragraphs)-(null===(r=t.fields)||void 0===r?void 0:r.paragraphs)})),o=(l={id:"",contentType:"",start:0,end:0,oneItem:void 0},Array(2*i.length+1).fill({}).map(function(t,n){return D(D({},l),{},{id:"entry-".concat(e,"-").concat(n)})}));if(o.length>1&&(null==t||null===(c=t.content)||void 0===c?void 0:c.length)>0)o=function(e,t,n){for(var r=(0,L.Z)(e),i=t.length-1,o=0;oo?t[o+1]:{},c=2*o+1,s=E(null==a||null===(u=a.fields)||void 0===u?void 0:u.paragraphs,n),d=E(null==l||null===(m=l.fields)||void 0===m?void 0:m.paragraphs,n);if(0===o){var u,m,p,g=E(null==a||null===(p=a.fields)||void 0===p?void 0:p.paragraphs,n);r[0].start=0,r[0].end=g}r[c].oneItem=a,r[c].contentType=a.sys.contentType.sys.id,r[c+1].start=s,r[c+1].end=d}return r}(o,i,t.content.length);else{var a,l,c,s,d,u=null!==(s=null==t||null===(d=t.content)||void 0===d?void 0:d.length)&&void 0!==s?s:0;o[0]={id:"",contentType:"",start:0,end:u,oneItem:void 0}}return o.map(function(e){if(void 0===e.oneItem&&e.end>e.start){var n,r;return r=(n=D({},t)).content.slice(e.start,e.end),D(D({},e),{},{contentType:"richText",oneItem:D(D({},n),{},{content:r})})}return e})},_=function(e,t,n){var r=e?(0,L.Z)(e):[];if(r.length<3)try{for(var i,o=0;o=3)return{v:r};(null==i||null===(e=i.sys)||void 0===e?void 0:e.id)===n||r.find(function(e){var t,n=e.sys;return(null==n?void 0:n.id)===(null==i||null===(t=i.sys)||void 0===t?void 0:t.id)})||r.push(i)}())return i.v}catch(e){}return r},F=n(28518),A=n(24388),M=n(43781),G=(0,c.iv)(["max-width:712px;> h2,> h3{margin-top:0;margin-bottom:1rem;}> p{line-height:3rem;margin-bottom:3rem;font-size:",";overflow-wrap:break-word;word-break:break-word;}> table{margin-bottom:3.5rem;table-layout:fixed;tbody{p{margin:0;}tr{td{padding:2rem;}th{padding:2rem;background-color:",";}}}}p + ul{margin-top:-1.5rem;}ul{white-space:pre-wrap;margin-bottom:2rem;li{font-size:",";p{margin-bottom:1rem;font-size:",";}}}> img{width:100%;height:auto;margin-bottom:2rem;}@media (max-width:","){max-width:632px;}@media (max-width:","){max-width:unset;}"],function(e){return e.theme.largeFont},function(e){return e.theme.colors.primaryLight},function(e){return e.theme.largeFont},function(e){return e.theme.largeFont},function(e){return e.theme.desktop1300},function(e){return e.theme.desktop990}),$=(0,c.iv)(["","{padding:0;tbody tr td{text-align:left;}tr > *{&:nth-child(2),&:nth-child(3){width:20%;}}}","{margin-bottom:3rem;}","{code{white-space:pre-wrap;overflow-wrap:anywhere;}}> div > div > iframe{max-width:100%;}"],F.DW,A.sz,M.a),U=c.ZP.section.withConfig({displayName:"StyledBlogPostContent",componentId:"sc-rm5h16-0"})([""," ",""],G,$),W=n(74129),R=n(47578),q=n(36803),X=n(97673),V=function(e){var t=e.type,n=e.richTextOrEntry;if(n)try{switch(t){case"richText":return(0,j.jsx)(j.Fragment,{children:(0,W.h)(n,R.dN)});case"relatedTraining":return(0,j.jsx)(q.default,{entry:n});case"blogPromotion":return(0,j.jsx)(X.default,{entry:n})}}catch(e){}return null},K=function(e){var t=z(e.mainId,e.content,e.relatedCourse,e.promotion);return(0,j.jsx)(U,{children:null==t?void 0:t.map(function(e){var t=e.id,n=e.contentType,r=e.oneItem;return(0,j.jsx)(V,{type:n,richTextOrEntry:r},t)})})},Q=c.ZP.section.withConfig({displayName:"StyledBlogPostForm",componentId:"sc-1b1jaah-0"})(["max-width:712px;hr{border:0;border-top:1px solid #dce2ed;}> *:not(hr){margin:2rem 0;}p.agreement-text{max-width:450px;}@media (max-width:","){max-width:632px;}@media (max-width:","){max-width:unset;> *:not(hr){max-width:650px;}}"],function(e){return e.theme.desktop1300},function(e){return e.theme.desktop990});c.ZP.div.withConfig({displayName:"StyledBlogPostFormKlaviyo",componentId:"sc-1b1jaah-1"})(["overflow:hidden;.klaviyo-close-form{display:none;}> div > div > div{animation-duration:1ms !important;form{padding:unset !important;width:unset !important;}}"]);var Y=n(67726),J=n(53418),ee=n(95755),et=n(48089),en=n(6693);function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ei=((r={}).CONTACT="sectionContact",r.DOWNLOADABLE_GUIDE="downloadableGuides",r),eo=function(e){var t=e.bottomForm,n=null!=t?t:{},r=n.fields,i=n.sys;return(null==i?void 0:i.contentType.sys.id)===ei.CONTACT||(null==i?void 0:i.contentType.sys.id)===ei.DOWNLOADABLE_GUIDE?(0,j.jsxs)(Q,{children:[(0,j.jsx)("hr",{}),function(){switch(i.contentType.sys.id){case ei.CONTACT:var e=null!=r?r:{},t=e.message,n=e.pageLocation,o=e.phone,a=e.title,l=e.salesforceFormName;return(0,j.jsx)(J.t,{formTitle:a,copy:t,pageLocation:n,phone:o,salesforceFormName:l});case ei.DOWNLOADABLE_GUIDE:if(null!=r&&r.formKlaviyoId){if(en.hv.includes(r.formKlaviyoId))return(0,j.jsx)(et.Z,{formKlaviyoId:r.formKlaviyoId});return(0,j.jsx)(ee.D.BlogEmbed,function(e){for(var t=1;t a{max-height:200px;}}@media (max-width:","){margin-left:unset;grid-column-start:unset;grid-column-end:unset;}@media (max-width:","){ul{grid-template-columns:1fr;article > a{height:unset;min-height:40vw;}}}"],function(e){return e.theme.desktop990},function(e){return e.theme.phone590}),ef=n(4917),eh=function(e){var t,n,r,o,a,c,s,d,u,m,p,g,f,h,y,v,x,w,b,k,C=e.recommended,I=e.blogPostId,O=(r=void 0===(n=(t={ignoreId:I,perPage:3}).ignoreId)?"":n,a=void 0===(o=t.perPage)?3:o,s=(c=(0,l.useRouter)()).query,d=c.asPath,u=s.slug,m=(0,P.Ai)(a),g=(p=(0,i.useState)(!1))[0],f=p[1],y=(h=(0,i.useState)(null))[0],v=h[1],w=(x=(0,i.useState)(m))[0],b=x[1],k=(0,es.Z)(eu().mark(function e(){var t,n,i;return eu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),v(null),e.prev=2,t=(0,ep.zL)(d).isPreview,e.next=6,(0,P.xS)(d,"",t);case 6:return i={categoryId:(n=e.sent).categoryId,subCategoryId:n.subCategoryId,ignoreId:r,pageNumber:1,perPage:a,preview:t},e.next=12,(0,em.S)(i);case 12:b(e.sent.posts),f(!1),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(2),v(e.t0),f(!1);case 22:case"end":return e.stop()}},e,null,[[2,18]])})),(0,i.useEffect)(function(){(function(){k.apply(this,arguments)})()},[u]),{loading:g,error:y,latestBlogs:w}),S=O.loading,N=_(C,O.latestBlogs,I);return!N||(null==N?void 0:N.length)<=0?null:(0,j.jsxs)(eg,{children:[(0,j.jsx)("h3",{children:"Recommended Articles"}),(0,j.jsx)("ul",{children:null==N?void 0:N.map(function(e,t){var n;return(0,j.jsx)("li",{children:(0,j.jsx)(ef.Z,{showImage:!1,onePost:e,loading:S})},"onePost-".concat(null===(n=e.sys)||void 0===n?void 0:n.id,"-").concat(t))})})]})},ey=n(36703),ev=function(e){var t,n,r=e.entry,i=null!==(t=null==r?void 0:r.fields)&&void 0!==t?t:{},o=i.recommended,a=i.bottomFeatureVideo;return(0,j.jsxs)(d,{children:[(0,j.jsxs)(u,{children:[(0,j.jsx)(m.Z,{}),(0,j.jsx)(ec,{entry:r}),(0,j.jsx)(eh,{recommended:void 0===o?[]:o,blogPostId:null==r||null===(n=r.sys)||void 0===n?void 0:n.id})]}),a&&(0,j.jsx)(ey.mE,{entry:a})]})},ex=n(46159),ew=function(e){var t,n=e.entry,r=e.noIndex,i=(0,l.useRouter)().query.slug;if(!n)return(0,j.jsx)(ex.Z,{});var o=n.fields,c=o.pageTitle,s=void 0===c?"":c,d=o.pageDescription,u=void 0===d?"":d,m=o.slug,p=void 0===m?"":m,g=o.articleImage,f=o.openGraphDescription,h=o.openGraphTitle,y=null==i||null===(t=i.slice(0,null==i?void 0:i.indexOf(p)))||void 0===t?void 0:t.join("/"),v="http://www.canuseducation.com/?cert=blog/".concat(y,"/").concat(p),x=null!=g&&g.fields?"https:".concat(g.fields.file.url,"?fm=jpg&w=1024"):"";return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(a(),{children:[(0,j.jsx)("title",{children:"".concat(s)},"title"),(0,j.jsx)("meta",{name:"description",content:u},"description"),(0,j.jsx)("link",{rel:"canonical",href:v},"canonical"),(0,j.jsx)("meta",{property:"og:title",content:h||s},"ogTitle"),(0,j.jsx)("meta",{property:"og:url",content:v},"ogUrl"),(0,j.jsx)("meta",{property:"og:image",content:x},"ogImage"),(0,j.jsx)("meta",{property:"og:description",content:f||u},"ogDescription"),(0,j.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,j.jsx)("meta",{name:"twitter:site",content:"@CBTNuggets"},"twitterSite"),(0,j.jsx)("meta",{name:"twitter:title",content:s},"twitterTitle"),(0,j.jsx)("meta",{name:"twitter:description",content:u},"twitterDescription"),(0,j.jsx)("meta",{name:"twitter:creator",content:"@CBTNuggets"},"twitterCreator"),(0,j.jsx)("meta",{name:"twitter:image",content:x},"twitterImage"),(0,j.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitterCard"),void 0!==r&&r&&(0,j.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots")]}),(0,j.jsx)(ev,{entry:n})]})}},26654:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(67294),i=n(5152),o=n.n(i),a=n(32767),l=n(9008),c=n.n(l),s=n(9714),d=n(85893),u=function(e){var t,n,i,o,a,l=e.entry,u=e.injectKlaviyoScript,m=e.noIndex,p=l.fields,g=p.canonicalUrl,f=p.openGraphTitle,h=p.openGraphImage,y=p.openGraphDescription,v=p.twitterTitle,x=p.twitterDescription,w=p.twitterImage,j=p.path,b=p.slug,k=p.title,C=p.pageDescription,I=p.pageTitle,P=p.noIndex,O=p.ogImageLocation,S=(0,r.useCallback)(function(){return h||O?h?"https:".concat(h.fields.file.url,"?fm=jpg&w=1024"):"https://www.cbtnuggets.com".concat(O):"http://www.canuseducation.com/?cert=assetshttps://www.cbtnuggets.com/images/OG_default.png"},[O,h]),N=(0,r.useCallback)(function(){var e;return g&&(null==g?void 0:g.trim())!==""?g:(null==l||null===(e=l.sys)||void 0===e||null===(e=e.contentType)||void 0===e||null===(e=e.sys)||void 0===e?void 0:e.id)==="topic"?"http://www.canuseducation.com/?cert=it-training/".concat(b):"".concat(null!=b?b:j)},[g,l,j,b]),T={slug:null!=b?b:j,ogImage:S(),pageUrl:N(),title:null!==(t=null!==(n=null!=f?f:I)&&void 0!==n?n:k)&&void 0!==t?t:"CBT Nuggets",description:null!=y?y:C,twitterTitle:null!==(i=null!==(o=null!=v?v:f)&&void 0!==o?o:I)&&void 0!==i?i:k,twitterImage:w?"https:".concat(w.fields.file.url,"?fm=jpg&w=1024"):S(),twitterDescription:null!==(a=null!=x?x:y)&&void 0!==a?a:C},Z=(0,r.useMemo)(function(){return["how-long-to-study","cert-guides","resource","configuration-guides","cert-class","events"].some(function(e){return T.slug.split("/").includes(e)})},[T.slug]),L=(0,r.useState)(!1),B=L[0],D=L[1];return(0,r.useEffect)(function(){D((0,s.gs)("marketing"));var e=function(e){D(!0===e.detail.marketing)};return window.addEventListener("cbt_consent_update",e),function(){window.removeEventListener("cbt_consent_update",e)}},[]),(0,d.jsxs)(c(),{children:[(0,d.jsx)("title",{children:T.title},"title"),(0,d.jsx)("meta",{name:"description",content:T.description},"description"),(0,d.jsx)("link",{rel:"canonical",href:T.pageUrl},"canonical"),(0,d.jsx)("meta",{property:"og:title",content:T.title},"ogTitle"),(0,d.jsx)("meta",{property:"og:url",content:T.pageUrl},"ogUrl"),(0,d.jsx)("meta",{property:"og:image",content:T.ogImage},"ogImage"),(0,d.jsx)("meta",{property:"og:description",content:T.description},"ogDescription"),(0,d.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,d.jsx)("meta",{name:"twitter:site",content:"@CBTNuggets"},"twitterSite"),(0,d.jsx)("meta",{name:"twitter:title",content:T.twitterTitle},"twitterTitle"),(0,d.jsx)("meta",{name:"twitter:description",content:T.twitterDescription},"twitterDescription"),(0,d.jsx)("meta",{name:"twitter:creator",content:"@CBTNuggets"},"twitterCreator"),(0,d.jsx)("meta",{name:"twitter:image",content:T.twitterImage},"twitterImage"),(0,d.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitterCard"),(void 0!==m&&m||void 0!==P&&P)&&(0,d.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots"),B&&(Z||void 0!==u&&u)&&(0,d.jsx)("script",{defer:!0,src:"https://static.klaviyo.com/onsitehttps://www.cbtnuggets.com/js/klaviyo.js?company_id=UzuaHr"})]})},m=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(7265),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(1953),n.e(6835),n.e(3418),n.e(3594),n.e(2746)]).then(n.bind(n,62746))},{loadableGenerated:{webpack:function(){return[62746]}}}),p=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(5043)]).then(n.bind(n,75043))},{loadableGenerated:{webpack:function(){return[75043]}}}),g=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(4859)]).then(n.bind(n,84859))},{loadableGenerated:{webpack:function(){return[84859]}}}),f=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(8292)]).then(n.bind(n,78292))},{loadableGenerated:{webpack:function(){return[78292]}}}),h=function(e){var t=e.entry,n=e.injectKlaviyoScript,i=e.noIndex,o=t.sys.contentType.sys.id,l=(0,r.useMemo)(function(){switch(o){case a.L.DirectoryPage:return(0,d.jsx)(m,{entry:t});case a.L.TopicPage:return(0,d.jsx)(g,{entry:t});case a.L.CourseCategoryPage:return(0,d.jsx)(f,{entry:t});case a.L.SectionBasedPage:default:return(0,d.jsx)(p,{entry:t})}},[o,t]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u,{entry:t,injectKlaviyoScript:void 0!==n&&n,noIndex:void 0!==i&&i}),l]})}},97673:function(e,t,n){n.r(t),n.d(t,{default:function(){return g}}),n(67294);var r=n(75879),i=n(19521),o=i.ZP.section.withConfig({displayName:"StyledBlogPromotion",componentId:"sc-v154jq-0"})(["> div{display:flex;}> hr{border:0;border-top:1px solid #dce2ed;margin:3rem 0;}@media (max-width:","){> div{justify-content:center;}}@media (max-width:","){> div{flex-direction:column;}}"],function(e){return e.theme.desktop990},function(e){return e.theme.phone590}),a=i.ZP.div.withConfig({displayName:"StyledBlogPromotionLeftSide",componentId:"sc-v154jq-1"})(["max-width:280px;max-height:280px;img{width:100%;height:auto;}@media (max-width:","){margin:auto;}"],function(e){return e.theme.phone590}),l=i.ZP.div.withConfig({displayName:"StyledBlogPromotionRightSide",componentId:"sc-v154jq-2"})(["margin-left:3.5rem;max-width:328px;height:100%;margin-top:auto;margin-bottom:auto;h3{margin-top:0;margin-bottom:0.5rem;}@media (max-width:","){margin:auto;margin-top:2rem;text-align:center;}"],function(e){return e.theme.phone590}),c=n(74129),s=n(47578),d=n(12549),u=n(45197),m=n(85893),p={file:{url:r.Z},description:"Default Image Promotion"},g=function(e){var t,n,r=e.entry,i=null!==(t=null==r?void 0:r.fields)&&void 0!==t?t:{},g=i.leftImage,f=i.content,h=i.ctaButton,y=null!==(n=null==g?void 0:g.fields)&&void 0!==n?n:p,v=y.file,x=y.description;return(0,m.jsxs)(o,{children:[(0,m.jsx)("hr",{}),(0,m.jsxs)("div",{children:[(0,m.jsx)(a,{children:(0,m.jsx)(d.Z,{src:v.url,alt:x,title:x})}),(0,m.jsxs)(l,{children:[(0,c.h)(f,s.dN),h&&(0,m.jsx)(u.default,{fields:h.fields,contentTypeId:"ctaButton"})]})]}),(0,m.jsx)("hr",{})]})}},28518:function(e,t,n){n.d(t,{DW:function(){return a},Ov:function(){return c},P0:function(){return m},PL:function(){return u},Si:function(){return p},V3:function(){return d},iX:function(){return g},lH:function(){return s},n$:function(){return l}});var r=n(19521),i=n(87984),o=n(53418),a=r.ZP.article.withConfig({displayName:"CatalogListSectionWrapper",componentId:"sc-jykicz-0"})(["position:relative;max-width:",";margin:0 auto;padding:4rem 3.5rem;overflow:hidden;@media only screen and (max-width:","){padding:4rem 0;}"],function(e){return e.theme.breakpoints.desktop930},function(e){return e.theme.breakpoints.desktop930}),l=r.ZP.div.withConfig({displayName:"CatalogListHeader",componentId:"sc-jykicz-1"})(["p{font-size:",";margin:0;margin-bottom:4.8rem;}"],function(e){return e.theme.fonts.textLarge}),c=r.ZP.ul.withConfig({displayName:"CatalogList",componentId:"sc-jykicz-2"})(["border-bottom:1px solid ",";display:flex;flex-direction:column;margin:0;padding:0;"],function(e){return e.theme.colors.greyBorder}),s=r.ZP.li.withConfig({displayName:"CatalogListItemStyle",componentId:"sc-jykicz-3"})(["border-top:1px solid ",";padding:2rem 0;list-style:none;margin:0;display:flex;flex-direction:column;align-items:flex-start;","{margin-right:1.4rem;}"],function(e){return e.theme.colors.greyBorder},i.y),d=(0,r.ZP)(o.l7).withConfig({displayName:"CatalogLink",componentId:"sc-jykicz-4"})(["font-size:2.2rem;font-weight:600;margin-bottom:1.4rem;"]),u=r.ZP.ul.withConfig({displayName:"CatalogStatContainer",componentId:"sc-jykicz-5"})(["display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;@media only screen and (max-width:","){flex-direction:column;align-items:flex-start;}"],function(e){return e.theme.breakpoints.smphone}),m=r.ZP.li.withConfig({displayName:"CatalogStat",componentId:"sc-jykicz-6"})(["color:",";white-space:nowrap;font-size:",";text-transform:inherit;padding-top:0;padding-right:2rem;padding-bottom:0.4rem;"],function(e){return e.theme.secondary},function(e){return e.theme.standardFont}),p=r.ZP.p.withConfig({displayName:"CatalogListCtaText",componentId:"sc-jykicz-7"})(["font-size:",";font-weight:600;margin-top:4.8rem;margin-bottom:3.2rem;"],function(e){return e.theme.largeFont}),g=r.ZP.span.withConfig({displayName:"TrainerNames",componentId:"sc-jykicz-8"})(["white-space:normal;"])},43781:function(e,t,n){n.d(t,{a:function(){return i}});var r=n(35576),i=(0,n(19521).ZP)(r.Z).withConfig({displayName:"StyledCodeSnippet",componentId:"sc-7pvnu5-0"})(["background-color:",";"," padding:2.25rem;margin:1rem auto;pre{white-space:pre-wrap;}"],function(e){var t=e.bgColor;return"".concat(t||"".concat(function(e){return e.theme.colors.greyLight}),";")},function(e){var t=e.codeColor;return t&&"color: ".concat(t,";")})},64597:function(e,t,n){n.r(t),n.d(t,{default:function(){return o}}),n(67294);var r=n(19521).ZP.section.withConfig({displayName:"StyledPageLayout",componentId:"sc-nf0hrl-0"})(["max-width:",";margin:0 auto;padding:2rem 2.4rem 2rem 2.4rem;"],function(e){return e.theme.siteContentReducedWidth}),i=n(85893),o=function(e){var t=e.children;return(0,i.jsx)(r,{children:t})}},41481:function(e,t,n){n.d(t,{s:function(){return d}});var r=n(72198),i=n(32393),o=n(23221),a=n(77243),l=n(63144),c=n.n(l),s=n(33811);function d(){var e=new r.u({uri:"https://api.cbtnuggets.com/catalog/v1/graphql",credentials:"same-origin",fetch:c()}),t=new i.h;if((0,s.Nq)()){var n=[e];return new o.f({link:(0,a.D)(n),cache:t,ssrMode:!0})}return new o.f({link:e,cache:t,ssrMode:!0})}},7564:function(e,t,n){n.d(t,{Y:function(){return o},y:function(){return i}});var r={year:"numeric",month:"long",day:"numeric"},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return new Date(e).toLocaleDateString(t,n)},o=function(e){return new Date(e)>new Date}},88395:function(e,t,n){n.d(t,{C:function(){return c}});var r=n(59499);n(67294);var i=n(53768),o=n(41481),a=n(85893);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var c=function(e){return function(t){return(0,a.jsx)(i.e,{client:(0,o.s)(),children:(0,a.jsx)(e,function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),s={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"“"},d=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,m=/mailto:/i,p=/\n{2,}$/,g=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,f=/^ *> ?/gm,h=/^ {2,}\n/,y=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,v=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,x=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,w=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,j=/^(?:\n *)*\n/,b=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,C=/^\[\^([^\]]+)]/,I=/\f/g,P=/^\s*?\[(x|\s)\]/,O=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,N=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,T=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,Z=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^)/,B=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,D=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,E=/^\{.*\}$/,H=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,z=/^<([^ >]+@[^ >]+)>/,_=/^<([^ >]+:\/[^ >]+)>/,F=/-([a-z])?/gi,A=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,M=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,G=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,$=/^\[([^\]]*)\] ?\[([^\]]*)\]/,U=/(\[|\])/g,W=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,R=/\t/g,q=/^ *\| */,X=/(^ *\||\| *$)/g,V=/ *$/,K=/^ *:-+: *$/,Q=/^ *:-+ *$/,Y=/^ *-+: *$/,J=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,ee=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,et=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,en=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,er=/^\\([^0-9A-Za-z\s])/,ei=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,eo=/^\n+/,ea=/^([ \t]*)/,el=/\\([^\\])/g,ec=/ *\n+$/,es=/(?:^|\n)( *)$/,ed="(?:\\d+\\.)",eu="(?:[*+-])";function em(e){return"( *)("+(1===e?ed:eu)+") +"}let ep=em(1),eg=em(2);function ef(e){return RegExp("^"+(1===e?ep:eg))}let eh=ef(1),ey=ef(2);function ev(e){return RegExp("^"+(1===e?ep:eg)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ed:eu)+" )[^\\n]*)*(\\n|$)","gm")}let ex=ev(1),ew=ev(2);function ej(e){let t=1===e?ed:eu;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}let eb=ej(1),ek=ej(2);function eC(e,t){let n=1===t,r=n?eb:ek,o=n?ex:ew,a=n?eh:ey;return{t(e,t,n){let i=es.exec(n);return i&&(t.o||!t._&&!t.u)?r.exec(e=i[1]+e):null},i:i.HIGH,l(e,t,r){let i=n?+e[2]:void 0,l=e[0].replace(p,"\n").match(o),c=!1;return{p:l.map(function(e,n){let i;let o=RegExp("^ {1,"+a.exec(e)[0].length+"}","gm"),s=e.replace(o,"").replace(a,""),d=n===l.length-1,u=-1!==s.indexOf("\n\n")||d&&c;c=u;let m=r._,p=r.o;r.o=!0,u?(r._=!1,i=s.replace(ec,"\n\n")):(r._=!0,i=s.replace(ec,""));let g=t(i,r);return r._=m,r.o=p,g}),m:n,g:i}},h:(t,n,r)=>e(t.m?"ol":"ul",{key:r.k,start:t.g},t.p.map(function(t,i){return e("li",{key:i},n(t,r))}))}}let eI=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,eP=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,eO=[g,v,x,O,N,S,L,A,ex,eb,ew,ek],eS=[...eO,/^[^\n]+(?: \n|\n{2,})/,T,D];function eN(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function eT(e){return Y.test(e)?"right":K.test(e)?"center":Q.test(e)?"left":null}function eZ(e,t,n){let r=n.$;n.$=!0;let i=t(e.trim(),n);n.$=r;let o=[[]];return i.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==i.length-1&&o.push([]):("text"!==e.type||null!=i[t+1]&&"tableSeparator"!==i[t+1].type||(e.v=e.v.replace(V,"")),o[o.length-1].push(e))}),o}function eL(e,t,n){n._=!0;let r=eZ(e[1],t,n),i=e[2].replace(X,"").split("|").map(eT),o=e[3].trim().split("\n").map(function(e){return eZ(e,t,n)});return n._=!1,{S:i,A:o,L:r,type:"table"}}function eB(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function eD(e){return function(t,n){return n._?e.exec(t):null}}function eE(e){return function(t,n){return n._||n.u?e.exec(t):null}}function eH(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function ez(e){return function(t){return e.exec(t)}}function e_(e,t,n){if(t._||t.u||n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!eO.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));let i=r.trimEnd();return""==i?null:[r,i]}function eF(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function eA(e){return e.replace(el,"$1")}function eM(e,t,n){let r=n._||!1,i=n.u||!1;n._=!0,n.u=!0;let o=e(t,n);return n._=r,n.u=i,o}function eG(e,t,n){return n._=!1,e(t,n)}let e$=(e,t,n)=>({v:eM(t,e[1],n)});function eU(){return{}}function eW(){return null}function eR(e,t,n){let r=e,i=t.split(".");for(;i.length&&void 0!==(r=r[i[0]]);)i.shift();return r||n}(r=i||(i={}))[r.MAX=0]="MAX",r[r.HIGH=1]="HIGH",r[r.MED=2]="MED",r[r.LOW=3]="LOW",r[r.MIN=4]="MIN",t.Z=e=>{let{children:t,options:n}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,l);return o.cloneElement(function(e,t={}){let n;t.overrides=t.overrides||{},t.slugify=t.slugify||eN,t.namedCodesToUnicode=t.namedCodesToUnicode?a({},s,t.namedCodesToUnicode):s;let r=t.createElement||o.createElement;function l(e,n,...i){let o=eR(t.overrides,`${e}.props`,{});return r(function(e,t){let n=eR(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:eR(t,`${e}.component`,e):e}(e,t.overrides),a({},n,o,{className:function(...e){return e.filter(Boolean).join(" ")}(null==n?void 0:n.className,o.className)||void 0}),...i)}function p(e){let n,r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===W.test(e));let i=el(Y(r?e:`${e.trimEnd().replace(eo,"")} `,{_:r}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;let a=t.wrapper||(r?"span":"div");if(i.length>1||t.forceWrapper)n=i;else{if(1===i.length)return"string"==typeof(n=i[0])?l("span",{key:"outer"},n):n;n=null}return o.createElement(a,{key:"outer"},n)}function X(e){let t=e.match(u);return t?t.reduce(function(e,t,n){let r=t.indexOf("=");if(-1!==r){var i,a;let l=(-1!==(i=t.slice(0,r)).indexOf("-")&&null===i.match(B)&&(i=i.replace(F,function(e,t){return t.toUpperCase()})),i).trim(),s=function(e){let t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(r+1).trim()),d=c[l]||l,u=e[d]=(a=s,"style"===l?a.split(/;\s?/).reduce(function(e,t){let n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===l?eF(a):(a.match(E)&&(a=a.slice(1,a.length-1)),"true"===a||"false"!==a&&a));"string"==typeof u&&(T.test(u)||D.test(u))&&(e[d]=o.cloneElement(p(u.trim()),{key:n}))}else"style"!==t&&(e[c[t]||t]=!0);return e},{}):null}let V=[],K={},Q={blockQuote:{t:eH(g),i:i.HIGH,l:(e,t,n)=>({v:t(e[0].replace(f,""),n)}),h:(e,t,n)=>l("blockquote",{key:n.k},t(e.v,n))},breakLine:{t:ez(h),i:i.HIGH,l:eU,h:(e,t,n)=>l("br",{key:n.k})},breakThematic:{t:eH(y),i:i.HIGH,l:eU,h:(e,t,n)=>l("hr",{key:n.k})},codeBlock:{t:eH(x),i:i.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,n)=>l("pre",{key:n.k},l("code",a({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:eH(v),i:i.MAX,l:e=>({O:X(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:eE(w),i:i.LOW,l:e=>({v:e[2]}),h:(e,t,n)=>l("code",{key:n.k},e.v)},footnote:{t:eH(k),i:i.MAX,l:e=>(V.push({I:e[2],j:e[1]}),{}),h:eW},footnoteReference:{t:eD(C),i:i.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,n)=>l("a",{key:n.k,href:eF(e.B)},l("sup",{key:n.k},e.v))},gfmTask:{t:eD(P),i:i.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,n)=>l("input",{checked:e.R,key:n.k,readOnly:!0,type:"checkbox"})},heading:{t:eH(t.enforceAtxHeadings?S:O),i:i.HIGH,l:(e,n,r)=>({v:eM(n,e[2],r),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,n)=>l(`h${e.C}`,{id:e.T,key:n.k},t(e.v,n))},headingSetext:{t:eH(N),i:i.MAX,l:(e,t,n)=>({v:eM(t,e[1],n),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:ez(L),i:i.HIGH,l:()=>({}),h:eW},image:{t:eE(eP),i:i.HIGH,l:e=>({D:e[1],B:eA(e[2]),F:e[3]}),h:(e,t,n)=>l("img",{key:n.k,alt:e.D||void 0,title:e.F||void 0,src:eF(e.B)})},link:{t:eD(eI),i:i.LOW,l:(e,t,n)=>({v:function(e,t,n){let r=n._||!1,i=n.u||!1;n._=!1,n.u=!0;let o=e(t,n);return n._=r,n.u=i,o}(t,e[1],n),B:eA(e[2]),F:e[3]}),h:(e,t,n)=>l("a",{key:n.k,href:eF(e.B),title:e.F},t(e.v,n))},linkAngleBraceStyleDetector:{t:eD(_),i:i.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:eD(H)(e,t),i:i.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:eD(z),i:i.MAX,l(e){let t=e[1],n=e[1];return m.test(n)||(n="mailto:"+n),{v:[{v:t.replace("mailto:",""),type:"text"}],B:n,type:"link"}}},orderedList:eC(l,1),unorderedList:eC(l,2),newlineCoalescer:{t:eH(j),i:i.LOW,l:eU,h:()=>"\n"},paragraph:{t:e_,i:i.LOW,l:e$,h:(e,t,n)=>l("p",{key:n.k},t(e.v,n))},ref:{t:eD(M),i:i.MAX,l:e=>(K[e[1]]={B:e[2],F:e[4]},{}),h:eW},refImage:{t:eE(G),i:i.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,n)=>l("img",{key:n.k,alt:e.D,src:eF(K[e.P].B),title:K[e.P].F})},refLink:{t:eD($),i:i.MAX,l:(e,t,n)=>({v:t(e[1],n),Z:t(e[0].replace(U,"\\$1"),n),P:e[2]}),h:(e,t,n)=>K[e.P]?l("a",{key:n.k,href:eF(K[e.P].B),title:K[e.P].F},t(e.v,n)):l("span",{key:n.k},t(e.Z,n))},table:{t:eH(A),i:i.HIGH,l:eL,h:(e,t,n)=>l("table",{key:n.k},l("thead",null,l("tr",null,e.L.map(function(r,i){return l("th",{key:i,style:eB(e,i)},t(r,n))}))),l("tbody",null,e.A.map(function(r,i){return l("tr",{key:i},r.map(function(r,i){return l("td",{key:i,style:eB(e,i)},t(r,n))}))})))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,q.exec(e)):null},i:i.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:ez(ei),i:i.MIN,l:e=>({v:e[0].replace(Z,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),h:e=>e.v},textBolded:{t:eE(J),i:i.MED,l:(e,t,n)=>({v:t(e[2],n)}),h:(e,t,n)=>l("strong",{key:n.k},t(e.v,n))},textEmphasized:{t:eE(ee),i:i.LOW,l:(e,t,n)=>({v:t(e[2],n)}),h:(e,t,n)=>l("em",{key:n.k},t(e.v,n))},textEscaped:{t:eE(er),i:i.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:eE(et),i:i.LOW,l:e$,h:(e,t,n)=>l("mark",{key:n.k},t(e.v,n))},textStrikethroughed:{t:eE(en),i:i.LOW,l:e$,h:(e,t,n)=>l("del",{key:n.k},t(e.v,n))}};!0!==t.disableParsingRawHTML&&(Q.htmlBlock={t:ez(T),i:i.HIGH,l(e,t,n){let[,r]=e[3].match(ea),i=RegExp(`^${r}`,"gm"),o=e[3].replace(i,""),a=eS.some(e=>e.test(o))?eG:eM,l=e[1].toLowerCase(),c=-1!==d.indexOf(l);n.N=n.N||"a"===l;let s=c?e[3]:a(t,o,n);return n.N=!1,{O:X(e[2]),v:s,G:c,H:c?l:e[1]}},h:(e,t,n)=>l(e.H,a({key:n.k},e.O),e.G?e.v:t(e.v,n))},Q.htmlSelfClosing={t:ez(D),i:i.HIGH,l:e=>({O:X(e[2]||""),H:e[1]}),h:(e,t,n)=>l(e.H,a({},e.O,{key:n.k}))});let Y=((n=Object.keys(Q)).sort(function(e,t){let n=Q[e].i,r=Q[t].i;return n!==r?n-r:e