"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6358,7542,9362],{98083:function(e,t,i){i.d(t,{Z:function(){return d}}),i(67294);var n=i(97500),r=i(70440),o=i(53418),s=i(85893),a=function(){return(0,s.jsx)("svg",{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"m17 12v-9a1 1 0 0 0 -1-1h-13a1 1 0 0 0 -1 1v14l4-4h10a1 1 0 0 0 1-1m4-6h-2v9h-13v2a1 1 0 0 0 1 1h11l4 4v-15a1 1 0 0 0 -1-1z",fill:"#0277bd"})})},c=function(){return(0,s.jsx)("svg",{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"m6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57a1 1 0 0 1 1 1v3.5a1 1 0 0 1 -1 1 17 17 0 0 1 -17-17 1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z",fill:"#0277bd"})})},l=i(15410),d=function(e){var t=e.phone,i=e.heading,d=e.extraText;return(0,s.jsxs)(s.Fragment,{children:[i||d?(0,s.jsxs)(l.MZ,{children:[i&&(0,s.jsx)("h3",{children:i}),d&&(0,s.jsx)("p",{children:d})]}):null,(0,s.jsxs)(l.qk,{children:[(0,s.jsxs)(l.BE,{"aria-label":"Start a live chat",children:[(0,s.jsx)(a,{"aria-hidden":!0}),(0,s.jsx)(r.ButtonAsLink.Standard,{onClick:n.B,"data-at":"liveChatButton",children:"Start a live chat"})]}),(0,s.jsxs)(l.BE,{"aria-label":"Call our US phone number",children:[(0,s.jsx)(c,{"aria-hidden":!0}),t?(0,s.jsx)(o.l7,{"aria-label":"Contact Learner Support",href:"tel:".concat(t),"data-at":"cbtPhoneNumber",children:t}):(0,s.jsx)(l.v5,{children:(0,s.jsx)(o.l7,{"aria-label":"Contact Learner Support",href:"tel:+15412845522","data-at":"cbtPhoneNumber",children:"US: +1-541-284-5522"})})]})]})]})}},15410:function(e,t,i){i.d(t,{BE:function(){return c},MZ:function(){return s},pf:function(){return o},qR:function(){return r},qk:function(){return a},v5:function(){return l}});var n=i(19521),r=n.ZP.article.withConfig({displayName:"ContactFormContainer",componentId:"sc-ts6mof-0"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),o=n.ZP.p.withConfig({displayName:"FormDescription",componentId:"sc-ts6mof-1"})(["font-size:",";max-width:66.7rem;text-align:center;"],function(e){return e.theme.fonts.textStandard}),s=n.ZP.div.withConfig({displayName:"IconHeader",componentId:"sc-ts6mof-2"})(["margin:0 auto;text-align:center;h2,h3{margin-bottom:0;}p{margin:0;}"]),a=n.ZP.div.withConfig({displayName:"IconContainer",componentId:"sc-ts6mof-3"})(["display:flex;align-items:flex-start;justify-content:center;@media only screen and (max-width:","){flex-direction:column;}"],function(e){return e.theme.tablet}),c=n.ZP.div.withConfig({displayName:"IconElement",componentId:"sc-ts6mof-4"})(["display:flex;flex-direction:column;align-items:center;font-size:",";font-weight:",";margin:4rem 2rem;width:30rem;img{margin-bottom:1rem;}button{font-family:",";font-weight:",";font-size:",";}"],function(e){return e.theme.fonts.textLarge},function(e){return e.theme.fonts.boldWeight},function(e){return e.theme.fontFamily},function(e){return e.theme.fonts.boldWeight},function(e){return e.theme.fonts.textLarge}),l=n.ZP.div.withConfig({displayName:"PhoneNumberContainer",componentId:"sc-ts6mof-5"})(["display:flex;flex-direction:column;align-items:center;a{margin-bottom:0.3rem;}"])},97542:function(e,t,i){i.r(t),i.d(t,{SiteBanner:function(){return l},default:function(){return d}});var n=i(67294),r=i(23059),o=i(19521),s=o.ZP.div.withConfig({displayName:"StyledBanner",componentId:"sc-yrrfkr-0"})(["width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;line-height:3.5rem;text-align:center;background-color:#d9ebf5;color:",";position:relative;font-size:1.8rem;font-weight:600;padding:0.5rem 3rem;p{margin:0;display:flex;align-items:center;line-height:normal;}a{color:",";font-weight:400;text-decoration:underline;margin:0 1rem;font-size:1.6rem;display:flex;align-items:center;}@media (max-width:","){p{flex-direction:column;}}"],function(e){return e.theme.primary},function(e){return e.theme.primary},function(e){return e.theme.smphone}),a=o.ZP.div.withConfig({displayName:"CloseBanner",componentId:"sc-yrrfkr-1"})(["position:absolute;top:0.5rem;right:1rem;width:2rem;font-size:2rem;&:hover{cursor:pointer;}"]),c=i(85893),l=function(e){var t=e.children,i=new r.Z,o=(0,n.useState)(!0),l=o[0],d=o[1];(0,n.useEffect)(function(){d("1"===i.get("banner-dismissed"))},[]);var h=function(){i.set("banner-dismissed","1"),d(!0)};return l?null:(0,c.jsxs)(s,{children:[t,(0,c.jsx)(a,{onClick:function(){return h()},children:"\xd7"})]})},d=l},36358:function(e,t,i){i.r(t),i.d(t,{GenericBlock:function(){return ev},default:function(){return ej}});var n=i(67294),r=i(19521);r.ZP.section.withConfig({displayName:"SocialProofStyle",componentId:"sc-4rqs88-0"})(["text-align:center;margin:0 auto;background-color:",";padding:3rem 0;h2{font-size:1.8rem;font-weight:",";color:",";@media only screen and (max-width:","){max-width:70%;margin:0 auto;}}article{max-width:75rem;height:auto;margin:3rem auto;text-align:center;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center;svg{margin:2.5rem 2.5rem;flex:1 auto;min-width:11rem;}}@media only screen and (max-width:","){article{width:auto;}}@media only screen and (max-width:","){article svg{min-width:16.5rem;}}@media only screen and (max-width:","){margin:0 auto;h1{max-width:40rem;margin:0 auto;}}@media only screen and (max-width:","){article svg{flex:1 0 100%;min-width:20rem;}}"],function(e){return e.theme.offWhite},function(e){return e.theme.regular},function(e){return e.theme.greyOnGreyFont},function(e){return e.theme.phone560},function(e){return e.theme.desktop1200},function(e){return e.theme.phone590},function(e){return e.theme.phone560},function(e){return e.theme.smphone});var o=r.ZP.div.withConfig({displayName:"FeatureIcons",componentId:"sc-4rqs88-1"})(["width:",";height:",";background:url(",");background-position-x:",";background-position-y:",";background-size:cover;background-repeat:no-repeat;"],function(e){return e.width||"45px"},function(e){return e.height||"35px"},function(e){return e.imgSrc},function(e){return e.positionX},function(e){return e.positionY}),s=r.ZP.article.withConfig({displayName:"IndustriesStyles",componentId:"sc-4rqs88-2"})(["text-align:center;padding:7.2rem 0 4.4rem;div.container{max-width:80rem;margin:0px auto;padding:0px 2.4rem;}p{margin:0;font-size:1.8rem;}.inustries-icons{align-items:space-betwen;display:flex;flex-wrap:wrap;margin:0 0 4.6rem;}.inustries-icons-icon{align-items:center;display:flex;flex:0 1 25%;justify-content:center;margin-top:3rem;padding:0 1rem;svg{max-width:13.2rem;width:100%;}}@media (max-width:","){.inustries-icons{justify-content:space-between;.inustries-icons-icon{flex:0 1 44%;padding:3% 0;}}}"],function(e){return e.theme.phone}),a=i(6270),c=i(85893),l=function(e){var t=e.heading,i=e.configuration;return null!=i&&i.organizations&&Array.isArray(null==i?void 0:i.organizations)?(0,c.jsx)(s,{children:(0,c.jsxs)("div",{className:"container",children:[(0,c.jsx)("p",{children:t}),(0,c.jsxs)("div",{className:"inustries-icons",children:[(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{"aria-label":"Google logo",role:"img",height:"80px",width:"120px",imgSrc:a.le,positionX:"-2605px",positionY:"3px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"CenturyLink logo",height:"80px",width:"140px",imgSrc:a.le,positionX:"-2725px",positionY:"3px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Amazon logo",height:"80px",width:"120px",imgSrc:a.le,positionX:"-2870px",positionY:"10px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Comcast logo",height:"80px",width:"140px",imgSrc:a.le,positionX:"-2990px",positionY:"0px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Telus logo",height:"80px",width:"140px",imgSrc:a.le,positionX:"-3140px",positionY:"3px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Verizon logo",height:"80px",width:"140px",imgSrc:a.le,positionX:"-3290px",positionY:"3px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Facebook logo",height:"80px",width:"150px",imgSrc:a.le,positionX:"-3430px",positionY:"10px"})}),(0,c.jsx)("div",{className:"inustries-icons-icon",children:(0,c.jsx)(o,{role:"img","aria-label":"Salesforce logo",height:"80px",width:"140px",imgSrc:a.le,positionX:"-3580px",positionY:"0px"})})]})]})}):(console.log("Incorrect configuration for SimpleSocialProof component"),null)},d=i(53418);r.ZP.aside.withConfig({displayName:"GetStarted",componentId:"sc-71publ-0"})(["text-align:center;h2{margin-bottom:1.6rem;font-weight:",";@media screen and (max-width:","){font-size:2.6rem;}}p{margin-top:4rem;font-size:1.8rem;button{font-size:1.8rem;color:",";line-height:1.5;font-weight:",";text-decoration:underline;}}a{color:",";border-radius:3.2rem;padding:1.3rem 5rem;font-size:1.8rem;font-weight:",";margin:2.4rem auto;background-color:",";text-align:center;display:inline-block;transition:all 0.3s;&:hover{filter:brightness(115%);}&:active{filter:brightness(85%);}}"],function(e){return e.theme.bold},function(e){return e.theme.phone560},function(e){return e.theme.blue},function(e){return e.theme.light},function(e){return e.theme.primary},function(e){return e.theme.bold},function(e){return e.theme.gold});var h=r.ZP.section.withConfig({displayName:"CallToActionSection",componentId:"sc-71publ-1"})(["position:relative;padding:8rem 4rem;overflow:hidden;.hotspots{position:absolute;width:20rem;height:20rem;&.spots1{top:-12rem;left:10%;}&.spots2{right:5%;top:-15rem;}&.spots3{bottom:-15rem;left:-5rem;}&.spots4{width:45rem;height:45rem;right:-5rem;bottom:-35rem;}@media screen and (max-width:","){&.spots1{left:-2rem;top:-12rem;}&.spots2{top:unset;right:-4rem;bottom:-12rem;}&.spots3,&.spots4{display:none;}}@media screen and (max-width:","){&.spots1{top:-14rem;}&.spots2{bottom:-14rem;}}}a{margin-top:0;}"],function(e){return e.theme.desktop990},function(e){return e.theme.tablet}),m=function(e){var t=e.heading;return(0,c.jsxs)(h,{children:[(0,c.jsxs)("svg",{className:"hotspots spots1",width:"244px",height:"244px",viewBox:"0 0 244 244",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("defs",{children:(0,c.jsxs)("pattern",{id:"getStartedpattern1",x:"0",y:"0",width:".075",height:".075",children:[(0,c.jsx)("circle",{cx:"1",cy:"1",r:".8",fill:"#455060"}),(0,c.jsx)("circle",{cx:"10",cy:"10",r:".8",fill:"#455060"})]})}),(0,c.jsx)("g",{id:"CircleDots",children:(0,c.jsx)("circle",{fill:"url(#getStartedpattern1)",cx:"122",cy:"122",r:"122"})})]}),(0,c.jsx)("svg",{className:"hotspots spots2",width:"244px",height:"244px",viewBox:"0 0 244 244",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("use",{xlinkHref:"#CircleDots"})}),(0,c.jsx)("svg",{className:"hotspots spots3",width:"244px",height:"244px",viewBox:"0 0 244 244",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("use",{xlinkHref:"#CircleDots"})}),(0,c.jsx)("svg",{className:"hotspots spots4",width:"488px",height:"477px",viewBox:"0 0 488 477",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("use",{xlinkHref:"#CircleDots"})}),(0,c.jsx)(d.I8,{title:t,buttonText:"Sign up",showDescription:!1,children:(0,c.jsxs)(d.mr,{children:[(0,c.jsx)("strong",{children:"Not sure where to start?"}),(0,c.jsx)("br",{}),"Call 541-284-5522 or try our ",(0,c.jsx)(d.mn,{fontSize:"2.4rem"}),"."]})})]})},p=i(59499),x=i(4730),u=i(25675),g=i.n(u),f=i(97542),w=["children","url","linkText","showArrow"];function v(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function j(e){for(var t=1;tfunction(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return(o(t).getTime()-o(e).getTime())/864e5}(new Date(e))}},48105:function(e,t,i){i.d(t,{I:function(){return a}});var n,r,o=i(59499),s=((n={}).FACEBOOK_ICON="FACEBOOK_ICON",n.TWITTER_ICON="TWITTER_ICON",n.YOUTUBE_ICON="YOUTUBE_ICON",n.LINKED_IN_ICON="LINKED_IN_ICON",n.DASHBOARD_ICON="DASHBOARD_ICON",n.THREE_X_ICON="THREE_X_ICON",n.GEAR_ICON="GEAR_ICON",n.VIDEOS_ICON="VIDEOS_ICON",n.VIRTUAL_LABS_ICON="VIRTUAL_LABS_ICON",n.PRACTICE_EXAMS_ICON="PRACTICE_EXAMS_ICON",n.ACCOUNTABILITY_COACHING_ICON="ACCOUNTABILITY_COACHING_ICON",n.REPORTING_ICON="REPORTING_ICON",n.LEARNER_MANAGEMENT_ICON="LEARNER_MANAGEMENT_ICON",n.VENDOR_AWS="VENDOR_AWS",n.VENDOR_CHECKPOINT="VENDOR_CHECKPOINT",n.VENDOR_CISCO="VENDOR_CISCO",n.VENDOR_CITRIX="VENDOR_CITRIX",n.VENDOR_COMPTIA="VENDOR_COMPTIA",n.VENDOR_F5="VENDOR_F5",n.VENDOR_FORTINET="VENDOR_FORTINET",n.VENDOR_GOOGLE_WORKSPACE="VENDOR_GOOGLE_WORKSPACE",n.VENDOR_GOOGLE_CLOUD="VENDOR_GOOGLE_CLOUD",n.VENDOR_HASHICORP="VENDOR_HASHICORP",n.VENDOR_ISACA="VENDOR_ISACA",n.VENDOR_JUNIPER="VENDOR_JUNIPER",n.VENDOR_LINUX="VENDOR_LINUX",n.VENDOR_MICROSOFT="VENDOR_MICROSOFT",n.VENDOR_ORACLE="VENDOR_ORACLE",n.VENDOR_PALO_ALTO="VENDOR_PALO_ALTO",n.VENDOR_PMI="VENDOR_PMI",n.VENDOR_SALESFORCE="VENDOR_SALESFORCE",n.VENDOR_VMWARE="VENDOR_VMWARE",n.NEW_TO_IT="NEW_TO_IT",n.NETWORKING_IT_PATH="NETWORKING_IT_PATH",n.SYS_ADMIN_IT_PATH="SYS_ADMIN_IT_PATH",n.DEV_OPS_IT_PATH="DEV_OPS_IT_PATH",n.CYBER_SECURITY_IT_PATH="CYBER_SECURITY_IT_PATH",n.DATABASE_ADMIN_IT_PATH="DATABASE_ADMIN_IT_PATH",n.PRODUCTIVITY_IT_PATH="PRODUCTIVITY_IT_PATH",n.MANAGEMENT_IT_PATH="MANAGEMENT_IT_PATH",n.PROGRAMMING_IT_PATH="PROGRAMMING_IT_PATH",n.PM_IT_PATH="PM_IT_PATH",n),a=(r={},(0,o.Z)(r,s.FACEBOOK_ICON,{positionX:"-8471px"}),(0,o.Z)(r,s.TWITTER_ICON,{positionX:"-8698px"}),(0,o.Z)(r,s.YOUTUBE_ICON,{positionX:"-8698px"}),(0,o.Z)(r,s.LINKED_IN_ICON,{positionX:"-8698px"}),(0,o.Z)(r,s.DASHBOARD_ICON,{positionX:"-4911px",size:"5040px"}),(0,o.Z)(r,s.THREE_X_ICON,{positionX:"-4955px",size:"5040px"}),(0,o.Z)(r,s.GEAR_ICON,{positionX:"-5000px",size:"5040px"}),(0,o.Z)(r,s.VIDEOS_ICON,{positionX:"-875px",positionY:"55px"}),(0,o.Z)(r,s.VIRTUAL_LABS_ICON,{positionX:"-720px",positionY:"55px"}),(0,o.Z)(r,s.PRACTICE_EXAMS_ICON,{positionX:"-770px",positionY:"55px"}),(0,o.Z)(r,s.ACCOUNTABILITY_COACHING_ICON,{positionX:"-925px",positionY:"55px"}),(0,o.Z)(r,s.REPORTING_ICON,{positionX:"-1180px",positionY:"55px"}),(0,o.Z)(r,s.LEARNER_MANAGEMENT_ICON,{positionX:"-670px",positionY:"55px"}),(0,o.Z)(r,s.VENDOR_AWS,{positionX:"-2923px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_CHECKPOINT,{positionX:"-2995px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_CISCO,{positionX:"-3066px",positionY:"7px"}),(0,o.Z)(r,s.VENDOR_CITRIX,{positionX:"-3138px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_COMPTIA,{positionX:"-3210px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_F5,{positionX:"-3281px",positionY:"px"}),(0,o.Z)(r,s.VENDOR_FORTINET,{positionX:"-3353px",positionY:"0px"}),(0,o.Z)(r,s.VENDOR_GOOGLE_CLOUD,{positionX:"-3424px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_GOOGLE_WORKSPACE,{positionX:"-3424px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_HASHICORP,{positionX:"-4540px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_ISACA,{positionX:"-3495px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_JUNIPER,{positionX:"-3568px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_LINUX,{positionX:"-3638px",positionY:"7px"}),(0,o.Z)(r,s.VENDOR_MICROSOFT,{positionX:"-3710px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_ORACLE,{positionX:"-3782px",positionY:"8px"}),(0,o.Z)(r,s.VENDOR_PALO_ALTO,{positionX:"-3853px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_PMI,{positionX:"-3925px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_SALESFORCE,{positionX:"-3996px",positionY:"5px"}),(0,o.Z)(r,s.VENDOR_VMWARE,{positionX:"-4068px",positionY:"5px"}),(0,o.Z)(r,s.NEW_TO_IT,{positionX:"-1738px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.NETWORKING_IT_PATH,{positionX:"-1771px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.SYS_ADMIN_IT_PATH,{positionX:"-1806px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.DEV_OPS_IT_PATH,{positionX:"-1840px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.CYBER_SECURITY_IT_PATH,{positionX:"-1873px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.DATABASE_ADMIN_IT_PATH,{positionX:"-1906px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.PRODUCTIVITY_IT_PATH,{positionX:"-1940px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.MANAGEMENT_IT_PATH,{positionX:"-1974px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.PROGRAMMING_IT_PATH,{positionX:"-2009px",positionY:"5px",size:"6165px"}),(0,o.Z)(r,s.PM_IT_PATH,{positionX:"-2041px",positionY:"5px",size:"6165px"}),r)},23059:function(e,t,i){i.d(t,{Z:function(){return a}});var n,r={},o=function(){if(n)return r;n=1,Object.defineProperty(r,"__esModule",{value:!0}),r.parse=function(e,t){let i=new a,n=e.length;if(n<2)return i;let r=t?.decode||d,o=0;do{let t=e.indexOf("=",o);if(-1===t)break;let s=e.indexOf(";",o),a=-1===s?n:s;if(t>a){o=e.lastIndexOf(";",t-1)+1;continue}let d=c(e,o,t),h=l(e,t,d),m=e.slice(d,h);if(void 0===i[m]){let n=c(e,t+1,a),o=l(e,a,n),s=r(e.slice(n,o));i[m]=s}o=a+1}while(o{let e=function(){};return e.prototype=Object.create(null),e})();function c(e,t,i){do{let i=e.charCodeAt(t);if(32!==i&&9!==i)return t}while(++ti;){let i=e.charCodeAt(--t);if(32!==i&&9!==i)return t+1}return i}function d(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return r}();function s(e,t={}){let i=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(!t.doNotParse)try{return JSON.parse(i)}catch(e){}return e}class a{constructor(e,t={}){var i;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=o.parse(document.cookie),this._checkChanges(e)};let n="undefined"==typeof document?"":document.cookie;this.cookies="string"==typeof(i=e||n)?o.parse(i):"object"==typeof i&&null!==i?i:{},this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){let e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:s(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),s(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let i in this.cookies)t[i]=s(this.cookies[i],e);return t}set(e,t,i){i=i?Object.assign(Object.assign({},this.defaultSetOptions),i):this.defaultSetOptions;let n="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:n}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,n,i)),this._emitChange({name:e,value:t,options:i})}remove(e,t){let i=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,"",i)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}}}]);