November 27, 2024

The $500 Meta Quest 3 is coming this fall — and the Quest 2 just got cheaper

Quest 3 #Quest3

-1}module.exports=listCacheHas; }, {“2977”:2977}]; window.modules[“2930”] = [function(require,module,exports){var assocIndexOf=require(2977);function listCacheSet(s,e){var t=this.__data__,a=assocIndexOf(t,s);return a<0?(++this.size,t.push([s,e])):t[a][1]=e,this}module.exports=listCacheSet; }, {"2977":2977}]; window.modules["2931"] = [function(require,module,exports){var assocIndexOf=require(2977),arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var r=this.__data__,a=assocIndexOf(r,e);return!(a<0)&&(a==r.length-1?r.pop():splice.call(r,a,1),–this.size,!0)}module.exports=listCacheDelete; }, {"2977":2977}]; window.modules["2933"] = [function(require,module,exports){var getNative=require(2916),root=require(2915),Map=getNative(root,"Map");module.exports=Map; }, {"2915":2915,"2916":2916}]; window.modules["2934"] = [function(require,module,exports){var mapCacheClear=require(2939),mapCacheDelete=require(2938),mapCacheGet=require(2936),mapCacheHas=require(2935),mapCacheSet=require(2937);function MapCache(e){var a=-1,p=null==e?0:e.length;for(this.clear();++a

-1&&e%1==0&&e0&&r(u)?e>1?baseFlatten(u,e-1,r,t,l):arrayPush(l,u):t||(l[l.length]=u)}return l}module.exports=baseFlatten; }, {“2966″:2966,”3006”:3006}]; window.modules[“3006”] = [function(require,module,exports){var Symbol=require(2951),isArguments=require(2960),isArray=require(446),spreadableSymbol=Symbol?Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}module.exports=isFlattenable; }, {“446″:446,”2951″:2951,”2960”:2960}]; window.modules[“3007”] = [function(require,module,exports){var createBaseFor=require(3008),baseFor=createBaseFor();module.exports=baseFor; }, {“3008”:3008}]; window.modules[“3008”] = [function(require,module,exports){function createBaseFor(e){return function(r,t,a){for(var n=-1,o=Object(r),c=a(r),u=c.length;u–;){var f=c[e?u:++n];if(!1===t(o[f],f,o))break}return r}}module.exports=createBaseFor; }, {}]; window.modules[“3009”] = [function(require,module,exports){var castPath=require(3010),toKey=require(3011);function baseGet(e,t){for(var a=0,r=(t=castPath(t,e)).length;null!=e&&an))return!1;var f=u.get(e),o=u.get(r);if(f&&o)return f==r&&o==e;var _=-1,s=!0,R=a&COMPARE_UNORDERED_FLAG?new SetCache:void 0;for(u.set(e,r),u.set(r,e);++_-1&&e%1==0&&en?n:a)a?0:a-r>>>0,r>>>=0;for(var o=Array(n);++l=a?e:baseSlice(e,c,i)}module.exports=castSlice; }, {“3076”:3076}]; window.modules[“3091”] = [function(require,module,exports){var Uint8Array=require(2952);function cloneArrayBuffer(r){var e=new r.constructor(r.byteLength);return new Uint8Array(e).set(new Uint8Array(r)),e}module.exports=cloneArrayBuffer; }, {“2952”:2952}]; window.modules[“3092”] = [function(require,module,exports){var cloneArrayBuffer=require(3091);function cloneDataView(e,r){var f=r?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(f,e.byteOffset,e.byteLength)}module.exports=cloneDataView; }, {“3091”:3091}]; window.modules[“3093”] = [function(require,module,exports){var reFlags=/w*$/;function cloneRegExp(e){var r=new e.constructor(e.source,reFlags.exec(e));return r.lastIndex=e.lastIndex,r}module.exports=cloneRegExp; }, {}]; window.modules[“3094”] = [function(require,module,exports){var Symbol=require(2951),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol(o){return symbolValueOf?Object(symbolValueOf.call(o)):{}}module.exports=cloneSymbol; }, {“2951”:2951}]; window.modules[“3096”] = [function(require,module,exports){var arrayFilter=require(2958),stubArray=require(3129),objectProto=Object.prototype,propertyIsEnumerable=objectProto.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(r){return null==r?[]:(r=Object(r),arrayFilter(nativeGetSymbols(r),function(e){return propertyIsEnumerable.call(r,e)}))}:stubArray;module.exports=getSymbols; }, {“2958″:2958,”3129”:3129}]; window.modules[“3097”] = [function(require,module,exports){var arrayPush=require(2966),getPrototype=require(3127),getSymbols=require(3096),stubArray=require(3129),nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(r){for(var e=[];r;)arrayPush(e,getSymbols(r)),r=getPrototype(r);return e}:stubArray;module.exports=getSymbolsIn; }, {“2966″:2966,”3096″:3096,”3127″:3127,”3129”:3129}]; window.modules[“3098”] = [function(require,module,exports){var root=require(2915),coreJsData=root[“__core-js_shared__”];module.exports=coreJsData; }, {“2915”:2915}]; window.modules[“3100”] = [function(require,module,exports){var baseRest=require(3071),isIterateeCall=require(3101);function createAssigner(e){return baseRest(function(t,r){var a=-1,i=r.length,s=i>1?r[i-1]:void 0,n=i>2?r[2]:void 0;for(s=e.length>3&&”function”==typeof s?(i–,s):void 0,n&&isIterateeCall(r[0],r[1],n)&&(s=i<3?void 0:s,i=1),t=Object(t);++a-1?a[n?r[s]:s]:void 0}}module.exports=createFind; }, {"2982":2982,"3038":3038,"3048":3048}]; window.modules["3110"] = [function(require,module,exports){var flatten=require(3120),overRest=require(3073),setToString=require(3072);function flatRest(e){return setToString(overRest(e,void 0,flatten),e+"")}module.exports=flatRest; }, {"3072":3072,"3073":3073,"3120":3120}]; window.modules["3115"] = [function(require,module,exports){var toNumber=require(3147),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308;function toFinite(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}module.exports=shortOut; }, {}]; window.modules[“3140″] = [function(require,module,exports){var rsAstralRange=”\ud800-\udfff”,rsComboMarksRange=”\u0300-\u036f”,reComboHalfMarksRange=”\ufe20-\ufe2f”,rsComboSymbolsRange=”\u20d0-\u20ff”,rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange=”\ufe0e\ufe0f”,rsAstral=”[“+rsAstralRange+”]”,rsCombo=”[“+rsComboRange+”]”,rsFitz=”\ud83c[\udffb-\udfff]”,rsModifier=”(?:”+rsCombo+”|”+rsFitz+”)”,rsNonAstral=”[^”+rsAstralRange+”]”,rsRegional=”(?:\ud83c[\udde6-\uddff]){2}”,rsSurrPair=”[\ud800-\udbff][\udc00-\udfff]”,rsZWJ=”\u200d”,reOptMod=rsModifier+”?”,rsOptVar=”[“+rsVarRange+”]?”,rsOptJoin=”(?:”+rsZWJ+”(?:”+[rsNonAstral,rsRegional,rsSurrPair].join(“|”)+”)”+rsOptVar+reOptMod+”)*”,rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol=”(?:”+[rsNonAstral+rsCombo+”?”,rsCombo,rsRegional,rsSurrPair,rsAstral].join(“|”)+”)”,reUnicode=RegExp(rsFitz+”(?=”+rsFitz+”)|”+rsSymbol+rsSeq,”g”);function unicodeToArray(r){return r.match(reUnicode)||[]}module.exports=unicodeToArray; }, {}]; window.modules[“3141″] = [function(require,module,exports){var rsAstralRange=”\ud800-\udfff”,rsComboMarksRange=”\u0300-\u036f”,reComboHalfMarksRange=”\ufe20-\ufe2f”,rsComboSymbolsRange=”\u20d0-\u20ff”,rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange=”\u2700-\u27bf”,rsLowerRange=”a-z\xdf-\xf6\xf8-\xff”,rsMathOpRange=”\xac\xb1\xd7\xf7″,rsNonCharRange=”\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf”,rsPunctuationRange=”\u2000-\u206f”,rsSpaceRange=” \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000″,rsUpperRange=”A-Z\xc0-\xd6\xd8-\xde”,rsVarRange=”\ufe0e\ufe0f”,rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos=”[‘’]”,rsBreak=”[“+rsBreakRange+”]”,rsCombo=”[“+rsComboRange+”]”,rsDigits=”\d+”,rsDingbat=”[“+rsDingbatRange+”]”,rsLower=”[“+rsLowerRange+”]”,rsMisc=”[^”+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+”]”,rsFitz=”\ud83c[\udffb-\udfff]”,rsModifier=”(?:”+rsCombo+”|”+rsFitz+”)”,rsNonAstral=”[^”+rsAstralRange+”]”,rsRegional=”(?:\ud83c[\udde6-\uddff]){2}”,rsSurrPair=”[\ud800-\udbff][\udc00-\udfff]”,rsUpper=”[“+rsUpperRange+”]”,rsZWJ=”\u200d”,rsMiscLower=”(?:”+rsLower+”|”+rsMisc+”)”,rsMiscUpper=”(?:”+rsUpper+”|”+rsMisc+”)”,rsOptContrLower=”(?:”+rsApos+”(?:d|ll|m|re|s|t|ve))?”,rsOptContrUpper=”(?:”+rsApos+”(?:D|LL|M|RE|S|T|VE))?”,reOptMod=rsModifier+”?”,rsOptVar=”[“+rsVarRange+”]?”,rsOptJoin=”(?:”+rsZWJ+”(?:”+[rsNonAstral,rsRegional,rsSurrPair].join(“|”)+”)”+rsOptVar+reOptMod+”)*”,rsOrdLower=”\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])”,rsOrdUpper=”\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])”,rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji=”(?:”+[rsDingbat,rsRegional,rsSurrPair].join(“|”)+”)”+rsSeq,reUnicodeWord=RegExp([rsUpper+”?”+rsLower+”+”+rsOptContrLower+”(?=”+[rsBreak,rsUpper,”$”].join(“|”)+”)”,rsMiscUpper+”+”+rsOptContrUpper+”(?=”+[rsBreak,rsUpper+rsMiscLower,”$”].join(“|”)+”)”,rsUpper+”?”+rsMiscLower+”+”+rsOptContrLower,rsUpper+”+”+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join(“|”),”g”);function unicodeWords(r){return r.match(reUnicodeWord)||[]}module.exports=unicodeWords; }, {}]; window.modules[“3144”] = [function(require,module,exports){var toString=require(3087),upperFirst=require(3145);function capitalize(r){return upperFirst(toString(r).toLowerCase())}module.exports=capitalize; }, {“3087″:3087,”3145”:3145}]; window.modules[“3145”] = [function(require,module,exports){var createCaseFirst=require(3102),upperFirst=createCaseFirst(“toUpperCase”);module.exports=upperFirst; }, {“3102”:3102}]; window.modules[“3147”] = [function(require,module,exports){var baseTrim=require(3079),isObject=require(445),isSymbol=require(3003),NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if(“number”==typeof e)return e;if(isSymbol(e))return NAN;if(isObject(e)){var r=”function”==typeof e.valueOf?e.valueOf():e;e=isObject(r)?r+””:r}if(“string”!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}module.exports=toNumber; }, {“445″:445,”3003″:3003,”3079”:3079}]; window.modules[“3148”] = [function(require,module,exports){var root=require(2915),now=function(){return root.Date.now()};module.exports=now; }, {“2915”:2915}]; window.modules[“3150”] = [function(require,module,exports){var baseRest=require(3071),eq=require(2975),isIterateeCall=require(3101),keysIn=require(2984),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,defaults=baseRest(function(e,r){e=Object(e);var t=-1,o=r.length,a=o>2?r[2]:void 0;for(a&&isIterateeCall(r[0],r[1],a)&&(o=1);++t-1?u:0,r.charCodeAt(b+1)){case 100:case 102:if(o>=c)break;if(null==e[o])break;u=c)break;if(null==e[o])break;u=c)break;if(void 0===e[o])break;u“,u=b+2,b++;break}s+=a(e[o]),u=b+2,b++;break;case 115:if(o>=c)break;u]*>/i,t=function(e,t){var f,v,d,m,x;void 0===e&&(e=””),void 0===t&&(t=”1″);var h=0;if(“0″===(t=”number”==typeof t?t.toString():t.replace(/s/g,””)))return e;if(“1″===t)f=1,v=1,d=1,m=1;else if(“2″===t)f=1,v=1,d=2,m=1;else if(“3″===t)f=1,v=1,d=3,m=1;else if(“-1″===t)x=1;else for(var b=0;b[‘”]$/.test(e)&&(n=1,e+=” “);for(var p=o(e),c=””,g=0,l=””,s=0;s?@[\]^_`{|}~]”;return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp(“^'(?=”+r+”\B)”),”’”)).replace(new RegExp(‘^”(?=’+r+”\B)”),”””)).replace(/”‘(?=w)/,”“‘”)).replace(/'”(?=w)/,”‘“”)).replace(/'(?=dd)/,”’”)).replace(new RegExp(“(\s| |–|&[mn]dash;|–|—|ȁ[34])'(?=\w)”,”g”),”$1‘”)).replace(new RegExp(“([^\ \t\r\n\[\{\(\-])'”,”g”),”$1’”)).replace(new RegExp(“([\ \t\r\n\[\{\(\-]?)'(?=\s|s\b)”,”g”),”$1’”)).replace(/’/g,”‘”)).replace(new RegExp(‘(\s| |–|&[mn]dash;|–|—|ȁ[34])”(?=\w)’,”g”),”$1“”)).replace(new RegExp(‘([^\ \t\r\n\[\{\(\-])”‘,”g”),”$1””)).replace(new RegExp(‘([\ \t\r\n\[\{\(\-]?)”(?=\s)’,”g”),”$1””)).replace(/”/g,”“”)},n=function(e){return e=(e=e.replace(/“/g,”“”)).replace(/”/g,”””)},p=function(e){return e=(e=e.replace(/`/g,”‘”)).replace(/’/g,”’”)},c=function(e){return e=e.replace(/–/g,”—”)},g=function(e){return e=(e=e.replace(/—/g,”—”)).replace(/–/g,”–”)},l=function(e){return e=(e=e.replace(/—/g,”–”)).replace(/–/g,”—”)},s=function(e){return e=(e=e.replace(/…/g,”…”)).replace(/. . ./g,”…”)},i=function(e){return e=(e=(e=(e=(e=(e=(e=e.replace(/–/g,”-“)).replace(/—/g,”–“)).replace(/‘/g,”‘”)).replace(/’/g,”‘”)).replace(/“/g,'”‘)).replace(/”/g,'”‘)).replace(/…/g,”…”)},u=function(e){return e=(e=(e=(e=(e=(e=e.replace(/\\/g,””)).replace(/\”/g,”””)).replace(/\’/g,”‘”)).replace(/\./g,”.”)).replace(/\-/g,”-“)).replace(/\`/g,”`”)},o=function(e){for(var r=0,t=e.length,a=[],n=/||]*>/g,p=null;p=n.exec(e);){if(r”:”akbar-men”,”∑”:”majmou”,”¤”:”omla”},az:{},ca:{“∆”:”delta”,”∞”:”infinit”,”♥”:”amor”,”&”:”i”,”|”:”o”,””:”mes que”,”∑”:”suma dels”,”¤”:”moneda”},cs:{“∆”:”delta”,”∞”:”nekonecno”,”♥”:”laska”,”&”:”a”,”|”:”nebo”,””:”vetsi nez”,”∑”:”soucet”,”¤”:”mena”},de:{“∆”:”delta”,”∞”:”unendlich”,”♥”:”Liebe”,”&”:”und”,”|”:”oder”,””:”groesser als”,”∑”:”Summe von”,”¤”:”Waehrung”},dv:{“∆”:”delta”,”∞”:”kolunulaa”,”♥”:”loabi”,”&”:”aai”,”|”:”noonee”,””:”ah vure bodu”,”∑”:”jumula”,”¤”:”faisaa”},en:{“∆”:”delta”,”∞”:”infinity”,”♥”:”love”,”&”:”and”,”|”:”or”,””:”greater than”,”∑”:”sum”,”¤”:”currency”},es:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amor”,”&”:”y”,”|”:”u”,””:”mas que”,”∑”:”suma de los”,”¤”:”moneda”},fa:{“∆”:”delta”,”∞”:”bi-nahayat”,”♥”:”eshgh”,”&”:”va”,”|”:”ya”,””:”bishtar-az”,”∑”:”majmooe”,”¤”:”vahed”},fi:{“∆”:”delta”,”∞”:”aarettomyys”,”♥”:”rakkaus”,”&”:”ja”,”|”:”tai”,””:”suurempi kuin”,”∑”:”summa”,”¤”:”valuutta”},fr:{“∆”:”delta”,”∞”:”infiniment”,”♥”:”Amour”,”&”:”et”,”|”:”ou”,””:”superieure a”,”∑”:”somme des”,”¤”:”monnaie”},ge:{“∆”:”delta”,”∞”:”usasruloba”,”♥”:”siqvaruli”,”&”:”da”,”|”:”an”,””:”meti”,”∑”:”jami”,”¤”:”valuta”},gr:{},hu:{“∆”:”delta”,”∞”:”vegtelen”,”♥”:”szerelem”,”&”:”es”,”|”:”vagy”,””:”nagyobb mint”,”∑”:”szumma”,”¤”:”penznem”},it:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amore”,”&”:”e”,”|”:”o”,””:”maggiore di”,”∑”:”somma”,”¤”:”moneta”},lt:{“∆”:”delta”,”∞”:”begalybe”,”♥”:”meile”,”&”:”ir”,”|”:”ar”,””:”daugiau nei”,”∑”:”suma”,”¤”:”valiuta”},lv:{“∆”:”delta”,”∞”:”bezgaliba”,”♥”:”milestiba”,”&”:”un”,”|”:”vai”,””:”lielaks neka”,”∑”:”summa”,”¤”:”valuta”},my:{“∆”:”kwahkhyaet”,”∞”:”asaonasme”,”♥”:”akhyait”,”&”:”nhin”,”|”:”tho”,””:”kyithaw”,”∑”:”paungld”,”¤”:”ngwekye”},mk:{},nl:{“∆”:”delta”,”∞”:”oneindig”,”♥”:”liefde”,”&”:”en”,”|”:”of”,””:”groter dan”,”∑”:”som”,”¤”:”valuta”},pl:{“∆”:”delta”,”∞”:”nieskonczonosc”,”♥”:”milosc”,”&”:”i”,”|”:”lub”,””:”wieksze niz”,”∑”:”suma”,”¤”:”waluta”},pt:{“∆”:”delta”,”∞”:”infinito”,”♥”:”amor”,”&”:”e”,”|”:”ou”,””:”maior que”,”∑”:”soma”,”¤”:”moeda”},ro:{“∆”:”delta”,”∞”:”infinit”,”♥”:”dragoste”,”&”:”si”,”|”:”sau”,””:”mai mare ca”,”∑”:”suma”,”¤”:”valuta”},ru:{“∆”:”delta”,”∞”:”beskonechno”,”♥”:”lubov”,”&”:”i”,”|”:”ili”,””:”bolshe”,”∑”:”summa”,”¤”:”valjuta”},sk:{“∆”:”delta”,”∞”:”nekonecno”,”♥”:”laska”,”&”:”a”,”|”:”alebo”,””:”viac ako”,”∑”:”sucet”,”¤”:”mena”},sr:{},tr:{“∆”:”delta”,”∞”:”sonsuzluk”,”♥”:”ask”,”&”:”ve”,”|”:”veya”,””:”buyuktur”,”∑”:”toplam”,”¤”:”para birimi”},uk:{“∆”:”delta”,”∞”:”bezkinechnist”,”♥”:”lubov”,”&”:”i”,”|”:”abo”,””:”bilshe”,”∑”:”suma”,”¤”:”valjuta”},vn:{“∆”:”delta”,”∞”:”vo cuc”,”♥”:”yeu”,”&”:”va”,”|”:”hoac”,””:”lon hon”,”∑”:”tong”,”¤”:”tien te”}},u=[“;”,”?”,”:”,”@”,”&”,”=”,”+”,”$”,”,”,”/”].join(“”),s=[“;”,”?”,”:”,”@”,”&”,”=”,”+”,”$”,”,”].join(“”),l=[“.”,”!”,”~”,”*”,”‘”,”(“,”)”].join(“”),r=function(a,r){var m,d,g,k,y,f,p,z,b,A,v,E,O,j,S=”-“,w=””,U=””,C=!0,N={},R=””;if(“string”!=typeof a)return””;if(“string”==typeof r&&(S=r),p=o.en,z=i.en,”object”==typeof r)for(v in m=r.maintainCase||!1,N=r.custom&&”object”==typeof r.custom?r.custom:N,g=+r.truncate>1&&r.truncate||!1,k=r.uric||!1,y=r.uricNoSlash||!1,f=r.mark||!1,C=!1!==r.symbols&&!1!==r.lang,S=r.separator||S,k&&(R+=u),y&&(R+=s),f&&(R+=l),p=r.lang&&o[r.lang]&&C?o[r.lang]:C?o.en:{},z=r.lang&&i[r.lang]?i[r.lang]:!1===r.lang||!0===r.lang?{}:i.en,r.titleCase&&”number”==typeof r.titleCase.length&&Array.prototype.toString.call(r.titleCase)?(r.titleCase.forEach(function(a){N[a+””]=a+””}),d=!0):d=!!r.titleCase,r.custom&&”number”==typeof r.custom.length&&Array.prototype.toString.call(r.custom)&&r.custom.forEach(function(a){N[a+””]=a+””}),Object.keys(N).forEach(function(e){var n;n=e.length>1?new RegExp(“\b”+h(e)+”\b”,”gi”):new RegExp(h(e),”gi”),a=a.replace(n,N[e])}),N)R+=v;for(R=h(R+=S),O=!1,j=!1,A=0,E=(a=a.replace(/(^s+|s+$)/g,””)).length;A=0?(U+=v,v=””):!0===j?(v=t[U]+e[v],U=””):v=O&&e[v].match(/[A-Za-z0-9]/)?” “+e[v]:e[v],O=!1,j=!1):v in t?(U+=v,v=””,A===E-1&&(v=t[U]),j=!0):!p[v]||k&&-1!==u.indexOf(v)||y&&-1!==s.indexOf(v)?(!0===j?(v=t[U]+v,U=””,j=!1):O&&(/[A-Za-z0-9]/.test(v)||w.substr(-1).match(/A-Za-z0-9]/))&&(v=” “+v),O=!1):(v=O||w.substr(-1).match(/[A-Za-z0-9]/)?S+p[v]:p[v],v+=void 0!==a[A+1]&&a[A+1].match(/[A-Za-z0-9]/)?S:””,O=!0),w+=v.replace(new RegExp(“[^\w\s”+R+”_-]”,”g”),S);return d&&(w=w.replace(/(w)(S*)/g,function(a,e,n){var t=e.toUpperCase()+(null!==n?n:””);return Object.keys(N).indexOf(t.toLowerCase())g&&(b=w.charAt(g)===S,w=w.slice(0,g),b||(w=w.slice(0,w.lastIndexOf(S)))),m||d||(w=w.toLowerCase()),w},m=function(a){return function(e){return r(e,a)}},h=function(a){return a.replace(/[-\^$*+?.()|[]{}/]/g,”\$&”)},c=function(a,e){for(var n in e)if(e[n]===a)return!0};if(“undefined”!=typeof module&&module.exports)module.exports=r,module.exports.createSlug=m;else if(“undefined”!=typeof define&&define.amd)define([],function(){return r});else try{if(a.getSlug||a.createSlug)throw”speakingurl: globals exists /(getSlug|createSlug)/”;a.getSlug=r,a.createSlug=m}catch(a){}}(this); }, {}]; window.modules[“3260”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(9),_typeof2=_interopRequireDefault(require(27)),_classCallCheck2=_interopRequireDefault(require(10)),_createClass2=_interopRequireDefault(require(13)),AdDataType={DISPLAY:”display_ad”,VIDEO:”video”},AdFuelDataAllowlist=[“adUnitPath”,”parentRegistry”,”response”,”rktr_ad_id”,”rktr_slot_id”],AdData=function(){function e(){(0,_classCallCheck2.default)(this,e),this.adList={},this.registerAdActions={},this.getAdDetailsActions={};for(var t=0,i=Object.values(this.TYPE);t2&&void 0!==arguments[2]&&arguments[2],n=r||this.el;return Array.from(n.querySelectorAll(e)).reduce(function(e,r){return _objectSpread((0,_defineProperty2.default)({},t(unpackDataset(r.dataset)),r),e)},{})}},{key:”startSSE”,value:function(e,t){this.sseUri=t||this.el.dataset.uri,this.sseName=e,this.connectSSE()}},{key:”connectSSE”,value:function(){console.log(“”.concat(this.sseName,” SSE Connecting…”)),this.sseClient=new EventSource(this.sseUri),this.registerSSEListeners()}},{key:”registerSSEListeners”,value:function(){var e=this;this.sseClient.addEventListener(“publish”,function(){var t=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function t(r){return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.onSSEPublish(r);case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log(“”.concat(e.sseName,” onSSEPublish ERROR”),t.t0);case 8:case”end”:return t.stop()}},t,null,[[0,5]])}));return function(e){return t.apply(this,arguments)}}()),this.sseClient.addEventListener(“error”,function(t){e.onSSEError(t)}),this.sseClient.addEventListener(“open”,function(t){e.onSSEOpen(t)})}},{key:”onSSEOpen”,value:function(){console.log(“”.concat(this.sseName,” SSE Open”))}},{key:”onSSEReconnecting”,value:function(){var e=this;setTimeout(function(){console.log(“”.concat(e.sseName,” SSE Reconnecting…”)),e.connectSSE()},1e3)}},{key:”onSSEPublish”,value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log(“”.concat(this.sseName,” SSE Publish”));case 1:case”end”:return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:”onSSEError”,value:function(e){console.log(“”.concat(this.sseName,” An error occurred while attempting to connect.”),e),this.sseClient.close(),this.onSSEReconnecting()}},{key:”sseFetchUpdates”,value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var t;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.location.pathname+window.location.search,e.abrupt(“return”,fetch(t).then(function(e){return e.text()}).then(function(e){return e}).catch(function(e){return console.log(e)}));case 2:case”end”:return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}]),e}(),addEventListener=function(e,t,r,n){return e.addEventListener(t,function(e){var t=e.currentTarget;r.call(n,unpackDataset(t.dataset),t,e)})},unpackDataset=function(e){return Object.keys(e).reduce(function(t,r){return r.startsWith(SERIALIZED_DATA_PREFIX)?_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},r.slice(PREFIX_LENGTH),function(){try{return JSON.parse(e[r])}catch(e){}}())):_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},r,e[r]))},{})};module.exports=ClientModel; }, {“9″:9,”10″:10,”13″:13,”21″:21,”22″:22,”23″:23,”3264”:3264}]; window.modules[“3264”] = [function(require,module,exports){“use strict”;var CACHE_SIZE=1,ANY_ACTION=”_any”,EMPTY=Symbol(“empty”),dispatcher=function(){var n={},t={};function i(i,o){if(!i)throw new Error(“Invalid action format”);n[i]=n[i]||{},n[i][o]=n[i][o]||[],t[i]=t[i]||{},t[i][o]=t[i][o]||new Array(CACHE_SIZE)}return{dispatch:function(o){var r=o.ns,c=o.action,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EMPTY;i(r,c),n[r][c].concat(n[r][ANY_ACTION]||[]).forEach(function(n){setTimeout(function(){n(e,{ns:r,action:c})})}),t[r][c].shift(),t[r][c].push(e)},subscribe:function(o,r){var c=o.ns,e=o.action,a=void 0===e?ANY_ACTION:e,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i(c,a),n[c][a].push(r),u&&t[c][a].filter(function(n){return void 0!==n}).forEach(function(n){setTimeout(function(){r(n)})})},reset:function(){t={},n={}}}}();dispatcher.CACHE_SIZE=CACHE_SIZE,module.exports=dispatcher; }, {}]; window.modules[“3270”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(9),_defineProperty2=_interopRequireDefault(require(21));function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r|(]*>|]*>|]+>)+/i,full=new RegExp(htmlTags.map(t=>`]*>`).join(“|”),”i”);module.exports=(t=>basic.test(t)||full.test(t)); }, {“3456”:3456}]; window.modules[“3323”] = [function(require,module,exports){“use strict”;exports.byteLength=byteLength,exports.toByteArray=toByteArray,exports.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr=”undefined”!=typeof Uint8Array?Uint8Array:Array,code=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/”,i=0,len=code.length;i0)throw new Error(“Invalid string. Length must be a multiple of 4”);var e=o.indexOf(“=”);return-1===e&&(e=r),[e,e===r?0:4-e%4]}function byteLength(o){var r=getLens(o),e=r[0],t=r[1];return 3*(e+t)/4-t}function _byteLength(o,r,e){return 3*(r+e)/4-e}function toByteArray(o){var r,e,t=getLens(o),n=t[0],u=t[1],p=new Arr(_byteLength(o,n,u)),a=0,h=u>0?n-4:n;for(e=0;e>16&255,p[a++]=r>>8&255,p[a++]=255&r;return 2===u&&(r=revLookup[o.charCodeAt(e)]<>4,p[a++]=255&r),1===u&&(r=revLookup[o.charCodeAt(e)]<<10|revLookup[o.charCodeAt(e+1)]<>2,p[a++]=r>>8&255,p[a++]=255&r),p}function tripletToBase64(o){return lookup[o>>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[63&o]}function encodeChunk(o,r,e){for(var t,n=[],u=r;up?p:u+16383));return 1===t?(r=o[e-1],n.push(lookup[r>>2]+lookup[r<<4&63]+"==")):2===t&&(r=(o[e-2]<>10]+lookup[r>>4&63]+lookup[r<<2&63]+"=")),n.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63; }, {}]; window.modules["3385"] = [function(require,module,exports){exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(11,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(11,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l}; }, {}]; window.modules["3455"] = [function(require,module,exports){module.exports=[ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ] }, {}]; window.modules["3456"] = [function(require,module,exports){"use strict";module.exports=require(3455); }, {"3455":3455}]; window.modules["header.client"] = [function(require,module,exports){"use strict";var moreDropdownLink,hoverStartTime,_interopRequireDefault=require(9),_slicedToArray2=_interopRequireDefault(require(26)),_toConsumableArray2=_interopRequireDefault(require(20)),HEADER_ICON_IDS=["headerMenuIcon","headerSearchIcon","headerCloseIcon"],MORE_DROPDOWN_LINK_ID="moreDropdown",_require=require(126),calculateNavLeftMaxWidth=_require.calculateNavLeftMaxWidth,_require2=require(127),calculatePageStickyThreshold=_require2.calculatePageStickyThreshold,_get=require(1),initializeMenu=function(e){var o=e.classList;HEADER_ICON_IDS.map(function(e){return document.getElementById(e)}).filter(function(e){return e}).forEach(function(e){e.addEventListener("click",function(){o.toggle("header–active");var e=window.document.body;if(o.contains("header–active"))e.style.top="-".concat(window.scrollY,"px"),e.classList.toggle("menu-opened");else{e.classList.toggle("menu-opened");var r=e.style.top;e.style.top="",window.scrollTo(0,-1*parseInt(r||"0"))}})})},initializeAccordion=function(e){e.querySelectorAll(".header__nav-item-accordion").forEach(function(e){e.addEventListener("click",function(){var o;e.classList.toggle("header__nav-item-accordion–open"),null===(o=e.querySelector(".header__nav-item-dropdown"))||void 0===o||o.classList.toggle("header__nav-item-dropdown–open")})})},initializeEditionizers=function(e){var o=e.querySelectorAll(".header__editionizer"),r=e.querySelectorAll(".header__editionizer-button");(0,_toConsumableArray2.default)(r).forEach(function(e){return e.addEventListener("click",function(){e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),(0,_toConsumableArray2.default)(o).forEach(function(e){return e.classList.toggle("header__editionizer–active")})})})},formatNavBar=function(e){if(!(e.getBoundingClientRect().width .header__nav-item-dropdown”),d=e.querySelector(“.header__left .header__nav-container”);d.querySelectorAll(“.header__nav-item”).forEach(o),a.querySelectorAll(“.header__nav-item-dropdown-item”).forEach(r),r(i);for(var l=calculateNavLeftMaxWidth(e),c=t(),u=!1,s=1;c>l;)u=!0,n(s),c=t(),s++;u&&(o(i),(c=t())>l&&(n(s),c=t(),s++));var m=d.querySelector(“.promotion-link”)?0:1;a.querySelectorAll(“.header__nav-item-dropdown-item:nth-child(n+”.concat(d.childElementCount-s+m,”)”)).forEach(o),e.querySelector(“.header__nav”).style.visibility=”visible”}},moreDropdownLinkZJSAttrs={},onMoreDropdownMouseEnter=function(){hoverStartTime=Date.now()},onMoreDropdownMouseLeave=function(){hoverStartTime&&(window.zion_analytics.track(new window.ZION_SDK.GenericHover({traits:{canonical_url:_get(window,”CNN.contentModel.canonicalUrl”,null),component_id:moreDropdownLinkZJSAttrs.zjsComponent_id,cms_id:moreDropdownLinkZJSAttrs.zjsContainer_id,component_text:moreDropdownLinkZJSAttrs.zjsComponent_text,component_type:moreDropdownLinkZJSAttrs.zjsComponent_type,hover_time:Date.now()-hoverStartTime}})),hoverStartTime=0)},updateMoreDropdownHoverEvent=function(e){e?(moreDropdownLink.addEventListener(“mouseenter”,onMoreDropdownMouseEnter,!0),moreDropdownLink.addEventListener(“mouseleave”,onMoreDropdownMouseLeave,!0)):(moreDropdownLink.removeEventListener(“mouseenter”,onMoreDropdownMouseEnter,!0),moreDropdownLink.removeEventListener(“mouseleave”,onMoreDropdownMouseLeave,!0))},mediaQueryHoverNone=window.matchMedia(“(any-hover: none)”),convertDatasetToAttributeName=function(e){return”data-“.concat(e.split(/(?=[A-Z])/).join(“-“).toLowerCase())},updateMoreDropdownZJS=function(){var e=mediaQueryHoverNone.matches;if(updateMoreDropdownHoverEvent(!e),e)for(var o=0,r=Object.entries(moreDropdownLinkZJSAttrs);oe?o.classList.add(“show”):o.classList.remove(“show”)}o.addEventListener(“click”,function(){window.scrollTo({top:0,behavior:”smooth”})}),window.addEventListener(“scroll”,n),window.addEventListener(“load”,n)}; }, {}]; window.modules[“bizdev-outbrain.client”] = [function(require,module,exports){“use strict”;var _require=require(24),positionElement=_require.positionElement,_require2=require(16),mediumMaxWidthListener=_require2.mediumMaxWidthListener,isVisibleViewport=_require2.isVisibleViewport,ucStates=[“iab”,”data-store”,”ads-contextual”,”ads-person-prof”,”ads-person”,”content-person-prof”,”content-person”,”measure-ads”,”measure-content”,”measure-market”,”product-develop”,”vendor”],outBrainLoaded=!1;module.exports=function(e){var i=e.dataset,t=i.visibleViewport,r=i.placement,n=e.innerHTML;outBrainLoaded&&!r&&mediumMaxWidthListener(function(i){e.innerHTML=isVisibleViewport(t,i)?n:””}),r&&positionElement(e,{onRefreshPosition:function(){return window.OBR.extern.reloadWidget()}}),outBrainLoaded||(outBrainLoaded=!0,window.WM.UserConsent.addScript({src:”//widgets.outbrain.com/outbrain.js”,async:!0},ucStates),mediumMaxWidthListener(function(){window.OBR&&window.OBR.extern&&window.OBR.extern.reloadWidget()},{last:!0}))}; }, {“16″:16,”24”:24}]; window.modules[“newsletter.client”] = [function(require,module,exports){“use strict”;var _require=require(8),validateInput=_require.validateInput;module.exports=function(e){var t=e.querySelector(“.newsletter__form”),n=e.querySelector(“.newsletter__status”),r=t.querySelector(“.newsletter__email-input”),i=t.getAttribute(“data-subsection”),s=e.querySelector(“.newsletter__container”),u=e.querySelector(“.newsletter__success”);function a(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(s.classList.add(“hide”),u.classList.remove(“hide”)):(s.classList.remove(“hide”),u.classList.add(“hide”))}var o=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=validateInput(e,{type:”email”,required:!0,customMsg:”Enter a valid email address”});if(n){if(!t&&!e.length)return n;if(e.length)return n}return!1},c=function(){var e=r.value;o(e)||(n.innerHTML=””)},l=function(e){n.innerHTML=e,n.classList.add(“newsletter__status-invalid”)};t.addEventListener(“focusout”,function(e){e.preventDefault(),c()}),r.addEventListener(“input”,function(e){e.preventDefault(),c()}),t.addEventListener(“focusin”,function(e){e.preventDefault();var t=o(r.value);t&&l(t)}),t.addEventListener(“submit”,function(e){e.preventDefault(),function(){var e=r.value,t=o(e,!1);if(e.length&&!t){var s={user_id:e.toLowerCase(),email:e,underscored:!0,underscored_source:”underscored”.concat(i?”_”.concat(i):””),underscored_subscribe:new Date};bt(“updateUser”,s,{onFailure:function(){n.innerHTML=”Something went wrong sign in, try again later”},onSuccess:function(){a(!0),r.value=””,setTimeout(function(){a(!1)},7e3)}})}else l(t)}()})}; }, {“8”:8}]; window.modules[“article.client”] = [function(require,module,exports){“use strict”;var _window$CNN,_require=require(36),addScrollDepthAnalytics=_require.addScrollDepthAnalytics,_require2=require(37),trackUserViewedContent=_require2.trackUserViewedContent;function addAnalytics(e){addScrollDepthAnalytics(e,{“scroll-25″:.25,”scroll-50″:.5,”scroll-75″:.75,”scroll-100″:1},{event_type:”article_scroll”,author:window.CNN.contentModel.author,cms_id:window.CNN.contentModel.cmsId,headline:window.CNN.contentModel.headline,source_id:window.CNN.contentModel.sourceId,subsection:window.CNN.contentModel.subsection,view_name:window.CNN.contentModel.canonicalUrl})}trackUserViewedContent(null===(_window$CNN=window.CNN)||void 0===_window$CNN?void 0:_window$CNN.contentModel),module.exports=function(e){addAnalytics(e)}; }, {“36″:36,”37”:37}]; window.modules[“image.client”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(9),_createClass2=_interopRequireDefault(require(13)),_classCallCheck2=_interopRequireDefault(require(10)),_inherits2=_interopRequireDefault(require(12)),_possibleConstructorReturn2=_interopRequireDefault(require(11)),_getPrototypeOf2=_interopRequireDefault(require(14));function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,i=(0,_getPrototypeOf2.default)(e);if(t){var l=(0,_getPrototypeOf2.default)(this).constructor;r=Reflect.construct(i,arguments,l)}else r=i.apply(this,arguments);return(0,_possibleConstructorReturn2.default)(this,r)}}function _isNativeReflectConstruct(){if(“undefined”==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(“function”==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _require=require(15),ClientModel=_require.ClientModel,initializeOnExec=_require.initializeOnExec,elementResizeObserver=require(55),Image=function(e){(0,_inherits2.default)(r,e);var t=_createSuper(r);function r(e){var i;return(0,_classCallCheck2.default)(this,r),i=t.call(this,e),elementResizeObserver.observe(e),i}return(0,_createClass2.default)(r)}(ClientModel);module.exports=initializeOnExec(Image); }, {“9″:9,”10″:10,”11″:11,”12″:12,”13″:13,”14″:14,”15″:15,”55”:55}]; window.modules[“paragraph.client”] = [function(require,module,exports){“use strict”;var _require=require(135),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)}; }, {“135”:135}]; window.modules[“ad-slot.client”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(9),_slicedToArray2=_interopRequireDefault(require(26)),_toConsumableArray2=_interopRequireDefault(require(20)),_defineProperty2=_interopRequireDefault(require(21));function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t0?t.length:””,o=e.closest(“[data-“.concat(DATA_ATTRIBUTE_PREFIX,”-collection]”))||document.body,r=o===document.body?”body”:o.dataset[“”.concat(DATA_ATTRIBUTE_PREFIX,”Collection”)],i=””;r===ZONE_COMPONENT_NAME&&(i=t.indexOf(o));var a=Array.from(o.querySelectorAll(‘[data-uri*=”/_components/”]’)),c=a.length;return{collection_type:r,collection_type_index:i,collection_type_length:n,collection_item_index:a.indexOf(e),collection_item_length:c}}function getWordCount(e){return e.innerText?e.innerText.match(/w+/g).length:0}function getAggregateComponentElement(e){return e.closest(“[data-“.concat(DATA_ATTRIBUTE_PREFIX,’-aggregate-events=”true”]’))}function trackZionEvent(e){window.zion_analytics&&window.zion_analytics.track(e)}function initializeOnOffEvents(){if(EnvVars.get(“ENABLE_ZION_ANALYTICS_ON_OFF_EVENTS”)){var e=function(e){window.ZION_SDK&&e.forEach(function(e){var t=e.target,n=e.isIntersecting,o=t.dataset[“”.concat(DATA_ATTRIBUTE_PREFIX,”Observe”)];if(o===COMPONENT_ON_EVENT&&n||o===COMPONENT_OFF_EVENT&&!n){var r=n?window.ZION_SDK.ComponentOnScreen:window.ZION_SDK.ComponentOffScreen,i=t.dataset.uri,a=function(){return setTimeout(function(){return trackZionEvent(new r({component_type:getComponentName(i),component_id:getComponentInstance(i),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(t)),getOptionalOnOffProperties(t)),{},{word_count:getWordCount(t)})}))},1500)};window.requestIdleCallback?window.requestIdleCallback(a,{timeout:500}):a(),t.dataset[“”.concat(DATA_ATTRIBUTE_PREFIX,”Observe”)]=n?COMPONENT_OFF_EVENT:COMPONENT_ON_EVENT}})},t=Object.keys(OBSERVED_COMPONENT_THRESHOLDS).reduce(function(t,n){return _objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},n,new IntersectionObserver(e,{threshold:OBSERVED_COMPONENT_THRESHOLDS[n]})))},{});ZION_ON_OFF_OBSERVED_COMPONENTS.forEach(function(e){document.querySelectorAll(‘[data-uri*=”/_components/’.concat(e,’/”]’)).forEach(function(n){n.dataset[“”.concat(DATA_ATTRIBUTE_PREFIX,”Observe”)]=COMPONENT_ON_EVENT,t[e]?t[e].observe(n):t.default.observe(n)})})}}function initializeClickEvents(){EnvVars.get(“ENABLE_ZION_ANALYTICS_CLICK_EVENTS”)&&document.body.addEventListener(“click”,function(e){var t=””,n=””,o=””,r=e.target,i=r.closest(“a[href]”),a=r.closest(“[data-uri]”),c=getAggregateComponentElement(r);i&&i.href&&(o=i.href);var _=_objectSpread(_objectSpread({},getCustomProperties(r=c||a)),c?getCustomProperties(a):{}),E=e.target!==r?getCustomProperties(e.target):{};if(r){if(n=r.dataset.uri,”gallery”===(t=getComponentName(n))){var s,l=e.target.classList[0];l.includes(“next”)?s=_.carousel_item_index===_.carousel_item_length?1:_.carousel_item_index+1:l.includes(“prev”)&&(s=1===_.carousel_item_index?_.carousel_item_length:_.carousel_item_index-1),_.carousel_item_index=s}ZION_CLICK_OBSERVED_COMPONENTS.includes(t)&&trackZionEvent(new window.ZION_SDK.GenericClick({component_id:getComponentInstance(n),component_type:getComponentName(n),traits:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},getCommonEventProperties()),getCollectionProperties(r)),_objectSpread(_objectSpread({},E),_)),{},{word_count:getWordCount(r),destination_url:o})}))}})}function initializeAnalyticsEvents(){(Array.isArray(ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS)?ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS.includes(window.CNN.contentModel.templateType):ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS===window.CNN.contentModel.templateType)&&(initializeOnOffEvents(),initializeClickEvents())}window.ZION_SDK?initializeAnalyticsEvents():window.addEventListener(“zion.loaded”,initializeAnalyticsEvents); }, {“2″:2,”5″:5,”9″:9,”21″:21,”119″:119,”3168”:3168}]; window.modules[“campaign-promo-events.legacy”] = [function(require,module,exports){“use strict”;var _interopRequireDefault=require(9),_regenerator=_interopRequireDefault(require(23)),_asyncToGenerator2=_interopRequireDefault(require(22)),_require=require(119),authClient=_require.authClient,NewsletterClient=require(200),campaignPromos=document.createElement(“campaignPromos”),newsletterClient=new NewsletterClient(authClient),trackCampaignPromoEvent=function(e,n){var t=n.campaign_id,r=n.campaign_type,a=n.campaign_name,i=n.campaign_objective;window.zion_analytics.track(new e({component_id:”promo_body”,component_type:””.concat(r,”_promo”),traits:{campaign_id:t,campaign_type:r,campaign_name:a,campaign_objective:i}}))};campaignPromos.addEventListener(“close”,function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOffScreen,n)}),campaignPromos.addEventListener(“impression”,function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentOnScreen,n)}),campaignPromos.addEventListener(“submission”,function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.GenericSubmit,n)}),campaignPromos.addEventListener(“activation”,function(e){var n=e.detail;trackCampaignPromoEvent(window.ZION_SDK.ComponentLoaded,n)}),campaignPromos.getSubscribedNewsletters=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,newsletterClient.retrieveSubscriptions({useCache:!0});case 2:return n=e.sent,e.abrupt(“return”,n.filter(function(e){return e.subscribed}).map(function(e){return e.newsletterName}));case 4:case”end”:return e.stop()}},e)})),window.CNN.campaignPromos=campaignPromos,window.dispatchEvent(new CustomEvent(“CNN.campaignPromos.loaded”)); }, {“9″:9,”22″:22,”23″:23,”119″:119,”200”:200}]; window.modules[“chartbeat-setup.legacy”] = [function(require,module,exports){“use strict”;var registerChartbeatVideoStrategy=require(342).default,_get=require(1);!function(){function e(){window.WM.UserConsent.addScript({src:”//static.chartbeat.com/js/chartbeat_video.js”,async:!0},[“data-store”,”content-person”,”measure-content”])}var t=(window.CNN||{}).contentModel||{},n=(window.CNN||{}).omniture||{};registerChartbeatVideoStrategy();var o,i,a,r=window._sf_async_config=window._sf_async_config||{};r.uid=37612,r.domain=(a=”cnn.com”,-1!=window.location.hostname.indexOf(“edition”)&&(a=”edition.”.concat(a)),”prod”!=(null===(o=window.CNN)||void 0===o?void 0:null===(i=o.contentModel)||void 0===i?void 0:i.environment)&&(a=”dev.”.concat(a)),a),r.sections=t.vertical,r.authors=n.cap_author,r.title=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:””;return”homepage”===_get(window,”CNN.contentModel.section”,””)?e.replace(” Desktop”,””).replace(” Mobile”,””):e}(n.headline),r.flickerControl=!1,r.articleBlockSelector=”div.card,div.container__item”,r.autoDetect=!1,r.path=function(){var e,t,n=window.location.hostname,o=null===(e=(t=document.querySelector(“[rel=canonical]”)).getAttribute)||void 0===e?void 0:e.call(t,”href”);try{return n+new URL(o).pathname}catch(e){return n+document.location.pathname}}(),window.WM.UserConsent?e():window.addEventListener(“user-consent.loaded”,e)}(); }, {“1″:1,”342”:342}]; window.modules[“scroll-metrics.legacy”] = [function(require,module,exports){“use strict”;var throttle=require(25),_require=require(109),trackMetrics=_require.trackMetrics,METRICS=[{value:25,type:”article-twentyfive”,data:{interaction:”content: 25% article viewed”}},{value:50,type:”article-fifty”,data:{interaction:”content: 50% article viewed”}},{value:75,type:”article-seventyfive”,data:{interaction:”content: 75% article viewed”}},{value:100,type:”article-complete”,data:{interaction:”article complete”}}],TRACK_PERCENTAGES=METRICS.map(function(t){return t.value});function manageMetrics(){var t=[].concat(METRICS),e=function(e){return t.find(function(t){return t.value===e})};return{get:e,track:function(n){var r=e(n),i=r.type,c=r.data;trackMetrics({type:i,data:c}),function(e){t=t.filter(function(t){return t.value!==e})}(n)}}}function getWindowHeight(){return window.innerHeight||(document.documentElement||document.body).clientHeight}function getScrollTop(){return document.documentElement.scrollTop||document.body.scrollTop}function trackPercentageSeen(t){var e=t.offsetTop,n=t.offsetHeight,r=(e+n-(getScrollTop()+getWindowHeight()))/n;return 100-Math.floor(100*r)}window.addEventListener(“load”,function(){var t=document.querySelector(“.layout__main”),e=manageMetrics(),n=e.get,r=e.track;t&&(getWindowHeight()>t.getBoundingClientRect().bottom?TRACK_PERCENTAGES.forEach(r):window.addEventListener(“scroll”,throttle(function(){var e=trackPercentageSeen(t);TRACK_PERCENTAGES.forEach(function(t){if(e>=t){if(!n(t))return;r(t)}})},250)))}); }, {“25″:25,”109”:109}]; window.modules[“zeta.legacy”] = [function(require,module,exports){“use strict”;var clientHashKey=window.zeta.client_hash_key,partnerHashKey=window.zeta.partner_hash_key,tagShortName=window.zeta.tag_short_name,siteId=window.zeta.site_id,resourceId=window.CNN.contentModel.sourceId,resourceType=window.CNN.contentModel.pageType,section=window.CNN.contentModel.section,cacheBuster=Date.now(),src=”https://live.rezync.com/sync?”+”c=”.concat(clientHashKey)+”&p=”.concat(partnerHashKey)+”&k=”.concat(tagShortName)+”&zmpID=”.concat(siteId)+”&custom1=”.concat(resourceId)+”&custom2=”.concat(resourceType)+”&custom3=”.concat(section)+”&cache_buster=”.concat(cacheBuster),async=!0,ucStates=[“vendor”,”data-store”,”ads-contextual”,”ads-person-prof”,”ads-person”,”content-person-prof”,”content-person”,”measure-ads”,”measure-content”,”measure-market”,”product-develop”];function init(){window.WM.UserConsent.addScript({src:src,async:async},ucStates)}window.WM.UserConsent?init():window.addEventListener(“user-consent.loaded”,init); }, {}]; require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==”function”&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(“Cannot find module ‘”+o+”‘”);throw f.code=”MODULE_NOT_FOUND”,f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==”function”&&require;for(var o=0;o typeof key === ‘string’ && key.match(/.legacy$/)) .forEach((key) => window.require(key)); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error(`Error initializing controller for “${name}” on “${elementTag}”`, e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules) .filter((key) => typeof key === ‘string’ && key.match(/.client$/)) .forEach((key) => { let controllerFn = window.require(key); if (typeof controllerFn === ‘function’) { const name = key.replace(‘.client’, ”), instancesSelector = `[data-uri*=”_components/${name}/”]`, defaultSelector = `[data-uri$=”_components${name}”]`, instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); for (let el of instances) { tryToMount(controllerFn, el, name); } for (let el of defaults) { tryToMount(controllerFn, el, name); } } }); } // Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies, // services, or components that could require it // note: the `production` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js window.process = window.process || {}; window.process.env = window.process.env || {}; if (!window.process.env.NODE_ENV) { window.process.env.NODE_ENV = ‘production’; } // note: legacy controllers that require legacy services (e.g. dollar-slice) must // wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first mountLegacyServices(); mountComponentModules(); // ]]

Leave a Reply