-1}module.exports=listCacheHas;
}, {"3173":3173}];
window.modules["3122"] = [function(require,module,exports){var assocIndexOf=require(3173);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;
}, {"3173":3173}];
window.modules["3123"] = [function(require,module,exports){var assocIndexOf=require(3173),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;
}, {"3173":3173}];
window.modules["3125"] = [function(require,module,exports){var getNative=require(3108),root=require(3107),Map=getNative(root,"Map");module.exports=Map;
}, {"3107":3107,"3108":3108}];
window.modules["3126"] = [function(require,module,exports){var mapCacheClear=require(3131),mapCacheDelete=require(3130),mapCacheGet=require(3127),mapCacheHas=require(3128),mapCacheSet=require(3129);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;
}, {"3161":3161,"3204":3204}];
window.modules["3204"] = [function(require,module,exports){var Symbol=require(3143),isArguments=require(3155),isArray=require(548),spreadableSymbol=Symbol?Symbol.isConcatSpreadable:void 0;function isFlattenable(e){return isArray(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}module.exports=isFlattenable;
}, {"548":548,"3143":3143,"3155":3155}];
window.modules["3205"] = [function(require,module,exports){var createBaseFor=require(3206),baseFor=createBaseFor();module.exports=baseFor;
}, {"3206":3206}];
window.modules["3206"] = [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["3207"] = [function(require,module,exports){var castPath=require(3208),toKey=require(3209);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&&e<=MAX_SAFE_INTEGER}module.exports=isLength;
}, {}];
window.modules["3234"] = [function(require,module,exports){var baseMatches=require(3235),baseMatchesProperty=require(3236),identity=require(126),isArray=require(548),property=require(3237);function baseIteratee(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}module.exports=baseIteratee;
}, {"126":126,"548":548,"3235":3235,"3236":3236,"3237":3237}];
window.modules["3235"] = [function(require,module,exports){var baseIsMatch=require(3226),getMatchData=require(3246),matchesStrictComparable=require(3245);function baseMatches(a){var t=getMatchData(a);return 1==t.length&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(e){return e===a||baseIsMatch(e,a,t)}}module.exports=baseMatches;
}, {"3226":3226,"3245":3245,"3246":3246}];
window.modules["3236"] = [function(require,module,exports){var baseIsEqual=require(3220),get=require(1),hasIn=require(3247),isKey=require(3248),isStrictComparable=require(3249),matchesStrictComparable=require(3245),toKey=require(3209),COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,r){return isKey(e)&&isStrictComparable(r)?matchesStrictComparable(toKey(e),r):function(a){var t=get(a,e);return void 0===t&&t===r?hasIn(a,e):baseIsEqual(r,t,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}module.exports=baseMatchesProperty;
}, {"1":1,"3209":3209,"3220":3220,"3245":3245,"3247":3247,"3248":3248,"3249":3249}];
window.modules["3237"] = [function(require,module,exports){var baseProperty=require(3262),basePropertyDeep=require(3263),isKey=require(3248),toKey=require(3209);function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}module.exports=property;
}, {"3209":3209,"3248":3248,"3262":3262,"3263":3263}];
window.modules["3238"] = [function(require,module,exports){var isPrototype=require(3239),nativeKeys=require(3240),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var r=[];for(var t in Object(e))hasOwnProperty.call(e,t)&&"constructor"!=t&&r.push(t);return r}module.exports=baseKeys;
}, {"3239":3239,"3240":3240}];
window.modules["3239"] = [function(require,module,exports){var objectProto=Object.prototype;function isPrototype(o){var t=o&&o.constructor;return o===("function"==typeof t&&t.prototype||objectProto)}module.exports=isPrototype;
}, {}];
window.modules["3240"] = [function(require,module,exports){var overArg=require(3330),nativeKeys=overArg(Object.keys,Object);module.exports=nativeKeys;
}, {"3330":3330}];
window.modules["3241"] = [function(require,module,exports){var isObject=require(547),isPrototype=require(3239),nativeKeysIn=require(3242),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var r=isPrototype(e),t=[];for(var o in e)("constructor"!=o||!r&&hasOwnProperty.call(e,o))&&t.push(o);return t}module.exports=baseKeysIn;
}, {"547":547,"3239":3239,"3242":3242}];
window.modules["3242"] = [function(require,module,exports){function nativeKeysIn(n){var e=[];if(null!=n)for(var r in Object(n))e.push(r);return e}module.exports=nativeKeysIn;
}, {}];
window.modules["3244"] = [function(require,module,exports){var isFunction=require(3228),isLength=require(3233);function isArrayLike(i){return null!=i&&isLength(i.length)&&!isFunction(i)}module.exports=isArrayLike;
}, {"3228":3228,"3233":3233}];
window.modules["3245"] = [function(require,module,exports){function matchesStrictComparable(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}module.exports=matchesStrictComparable;
}, {}];
window.modules["3246"] = [function(require,module,exports){var isStrictComparable=require(3249),keys=require(3178);function getMatchData(r){for(var e=keys(r),t=e.length;t--;){var a=e[t],i=r[a];e[t]=[a,i,isStrictComparable(i)]}return e}module.exports=getMatchData;
}, {"3178":3178,"3249":3249}];
window.modules["3247"] = [function(require,module,exports){var baseHasIn=require(3215),hasPath=require(3332);function hasIn(a,s){return null!=a&&hasPath(a,s,baseHasIn)}module.exports=hasIn;
}, {"3215":3215,"3332":3332}];
window.modules["3248"] = [function(require,module,exports){var isArray=require(548),isSymbol=require(3201),reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(r,e){if(isArray(r))return!1;var s=typeof r;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=r&&!isSymbol(r))||(reIsPlainProp.test(r)||!reIsDeepProp.test(r)||null!=e&&r in Object(e))}module.exports=isKey;
}, {"548":548,"3201":3201}];
window.modules["3249"] = [function(require,module,exports){var isObject=require(547);function isStrictComparable(e){return e==e&&!isObject(e)}module.exports=isStrictComparable;
}, {"547":547}];
window.modules["3250"] = [function(require,module,exports){var Stack=require(3137),assignMergeValue=require(3169),baseFor=require(3205),baseMergeDeep=require(3252),isObject=require(547),keysIn=require(3180),safeGet=require(3251);function baseMerge(e,r,s,a,i){e!==r&&baseFor(r,function(u,b){if(i||(i=new Stack),isObject(u))baseMergeDeep(e,r,b,s,baseMerge,a,i);else{var g=a?a(safeGet(e,b),u,b+"",e,r,i):void 0;void 0===g&&(g=u),assignMergeValue(e,b,g)}},keysIn)}module.exports=baseMerge;
}, {"547":547,"3137":3137,"3169":3169,"3180":3180,"3205":3205,"3251":3251,"3252":3252}];
window.modules["3251"] = [function(require,module,exports){function safeGet(t,o){if(("constructor"!==o||"function"!=typeof t[o])&&"__proto__"!=o)return t[o]}module.exports=safeGet;
}, {}];
window.modules["3252"] = [function(require,module,exports){var assignMergeValue=require(3169),cloneBuffer=require(3186),cloneTypedArray=require(3254),copyArray=require(3164),initCloneObject=require(3189),isArguments=require(3155),isArray=require(548),isArrayLikeObject=require(3253),isBuffer=require(3156),isFunction=require(3228),isObject=require(547),isPlainObject=require(132),isTypedArray=require(3158),safeGet=require(3251),toPlainObject=require(3255);function baseMergeDeep(e,r,i,s,a,t,n){var u=safeGet(e,i),c=safeGet(r,i),y=n.get(c);if(y)assignMergeValue(e,i,y);else{var o=t?t(u,c,i+"",e,r,n):void 0,l=void 0===o;if(l){var A=isArray(c),f=!A&&isBuffer(c),b=!A&&!f&&isTypedArray(c);o=c,A||f||b?isArray(u)?o=u:isArrayLikeObject(u)?o=copyArray(u):f?(l=!1,o=cloneBuffer(c,!0)):b?(l=!1,o=cloneTypedArray(c,!0)):o=[]:isPlainObject(c)||isArguments(c)?(o=u,isArguments(u)?o=toPlainObject(u):isObject(u)&&!isFunction(u)||(o=initCloneObject(c))):l=!1}l&&(n.set(c,o),a(o,c,s,t,n),n.delete(c)),assignMergeValue(e,i,o)}}module.exports=baseMergeDeep;
}, {"132":132,"547":547,"548":548,"3155":3155,"3156":3156,"3158":3158,"3164":3164,"3169":3169,"3186":3186,"3189":3189,"3228":3228,"3251":3251,"3253":3253,"3254":3254,"3255":3255}];
window.modules["3253"] = [function(require,module,exports){var isArrayLike=require(3244),isObjectLike=require(3219);function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}module.exports=isArrayLikeObject;
}, {"3219":3219,"3244":3244}];
window.modules["3254"] = [function(require,module,exports){var cloneArrayBuffer=require(3293);function cloneTypedArray(r,e){var f=e?cloneArrayBuffer(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}module.exports=cloneTypedArray;
}, {"3293":3293}];
window.modules["3255"] = [function(require,module,exports){var copyObject=require(3177),keysIn=require(3180);function toPlainObject(e){return copyObject(e,keysIn(e))}module.exports=toPlainObject;
}, {"3177":3177,"3180":3180}];
window.modules["3261"] = [function(require,module,exports){var assignValue=require(3172),castPath=require(3208),isIndex=require(3157),isObject=require(547),toKey=require(3209);function baseSet(e,r,t,i){if(!isObject(e))return e;for(var s=-1,a=(r=castPath(r,e)).length,o=a-1,u=e;null!=u&&++sn?0:n+r),(a=a>n?n:a)<0&&(a+=n),n=r>a?0:a-r>>>0,r>>>=0;for(var o=Array(n);++l=a?e:baseSlice(e,c,i)}module.exports=castSlice;
}, {"3277":3277}];
window.modules["3293"] = [function(require,module,exports){var Uint8Array=require(3144);function cloneArrayBuffer(r){var e=new r.constructor(r.byteLength);return new Uint8Array(e).set(new Uint8Array(r)),e}module.exports=cloneArrayBuffer;
}, {"3144":3144}];
window.modules["3294"] = [function(require,module,exports){var cloneArrayBuffer=require(3293);function cloneDataView(e,r){var f=r?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(f,e.byteOffset,e.byteLength)}module.exports=cloneDataView;
}, {"3293":3293}];
window.modules["3295"] = [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["3296"] = [function(require,module,exports){var Symbol=require(3143),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol(o){return symbolValueOf?Object(symbolValueOf.call(o)):{}}module.exports=cloneSymbol;
}, {"3143":3143}];
window.modules["3298"] = [function(require,module,exports){var arrayFilter=require(3150),stubArray=require(3331),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;
}, {"3150":3150,"3331":3331}];
window.modules["3299"] = [function(require,module,exports){var arrayPush=require(3161),getPrototype=require(3329),getSymbols=require(3298),stubArray=require(3331),nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(r){for(var e=[];r;)arrayPush(e,getSymbols(r)),r=getPrototype(r);return e}:stubArray;module.exports=getSymbolsIn;
}, {"3161":3161,"3298":3298,"3329":3329,"3331":3331}];
window.modules["3300"] = [function(require,module,exports){var root=require(3107),coreJsData=root["__core-js_shared__"];module.exports=coreJsData;
}, {"3107":3107}];
window.modules["3302"] = [function(require,module,exports){var baseRest=require(3270),isIterateeCall=require(3303);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;
}, {"3178":3178,"3234":3234,"3244":3244}];
window.modules["3312"] = [function(require,module,exports){var flatten=require(3322),overRest=require(3271),setToString=require(3272);function flatRest(e){return setToString(overRest(e,void 0,flatten),e+"")}module.exports=flatRest;
}, {"3271":3271,"3272":3272,"3322":3322}];
window.modules["3317"] = [function(require,module,exports){var toNumber=require(3348),INFINITY=1/0,MAX_INTEGER=1.7976931348623157e308;function toFinite(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}module.exports=toFinite;
}, {"3348":3348}];
window.modules["3318"] = [function(require,module,exports){var isPlainObject=require(132);function customOmitClone(i){return isPlainObject(i)?void 0:i}module.exports=customOmitClone;
}, {"132":132}];
window.modules["3319"] = [function(require,module,exports){var basePropertyOf=require(3264),deburredLetters={"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss","Ä":"A","Ä":"A","Ä":"A","Ä":"a","Ä":"a","Ä
":"a","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"D","Ä":"D","Ä":"d","Ä":"d","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"G","Ä":"G","Ä ":"G","Ä¢":"G","Ä":"g","Ä":"g","Ä¡":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä¥":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Ä®":"I","Ä°":"I","Ä©":"i","Ä«":"i","Ä":"i","į":"i","ı":"i","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Ä¿":"L","Å":"L","ĺ":"l","ļ":"l","ľ":"l","Å":"l","Å":"l","Å":"N","Å
":"N","Å":"N","Å":"N","Å":"n","Å":"n","Å":"n","Å":"n","Å":"O","Å":"O","Å":"O","Å":"o","Å":"o","Å":"o","Å":"R","Å":"R","Å":"R","Å":"r","Å":"r","Å":"r","Å":"S","Å":"S","Å":"S","Å ":"S","Å":"s","Å":"s","Å":"s","Å¡":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å¥":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Å®":"U","Å°":"U","Ų":"U","Å©":"u","Å«":"u","Å":"u","ů":"u","ű":"u","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","Å»":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Å":"Oe","Å":"oe","Å":"'n","Å¿":"s"},deburrLetter=basePropertyOf(deburredLetters);module.exports=deburrLetter;
}, {"3264":3264}];
window.modules["3320"] = [function(require,module,exports){function mapToArray(r){var a=-1,o=Array(r.size);return r.forEach(function(r,n){o[++a]=[n,r]}),o}module.exports=mapToArray;
}, {}];
window.modules["3322"] = [function(require,module,exports){var baseFlatten=require(3203);function flatten(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}module.exports=flatten;
}, {"3203":3203}];
window.modules["3323"] = [function(require,module,exports){(function (global){(function (){
var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;module.exports=freeGlobal;
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})}, {}];
window.modules["3326"] = [function(require,module,exports){var isKeyable=require(3327);function getMapData(a,e){var t=a.__data__;return isKeyable(e)?t["string"==typeof e?"string":"hash"]:t.map}module.exports=getMapData;
}, {"3327":3327}];
window.modules["3327"] = [function(require,module,exports){function isKeyable(e){var o=typeof e;return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}module.exports=isKeyable;
}, {}];
window.modules["3328"] = [function(require,module,exports){function getValue(e,u){return null==e?void 0:e[u]}module.exports=getValue;
}, {}];
window.modules["3329"] = [function(require,module,exports){var overArg=require(3330),getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype;
}, {"3330":3330}];
window.modules["3330"] = [function(require,module,exports){function overArg(r,e){return function(n){return r(e(n))}}module.exports=overArg;
}, {}];
window.modules["3331"] = [function(require,module,exports){function stubArray(){return[]}module.exports=stubArray;
}, {}];
window.modules["3332"] = [function(require,module,exports){var castPath=require(3208),isArguments=require(3155),isArray=require(548),isIndex=require(3157),isLength=require(3233),toKey=require(3209);function hasPath(e,r,t){for(var s=-1,i=(r=castPath(r,e)).length,a=!1;++s0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}module.exports=shortOut;
}, {}];
window.modules["3340"] = [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["3342"] = [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["3346"] = [function(require,module,exports){var createCaseFirst=require(3304),upperFirst=createCaseFirst("toUpperCase");module.exports=upperFirst;
}, {"3304":3304}];
window.modules["3347"] = [function(require,module,exports){function compact(o){for(var r=-1,t=null==o?0:o.length,c=0,n=[];++r2?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(/'(?=\d\d)/,"’")).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","<":"menys que",">":"mes que","â":"suma dels","¤":"moneda"},cs:{"â":"delta","â":"nekonecno","â¥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","â":"soucet","¤":"mena"},de:{"â":"delta","â":"unendlich","â¥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","â":"Summe von","¤":"Waehrung"},dv:{"â":"delta","â":"kolunulaa","â¥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","â":"jumula","¤":"faisaa"},en:{"â":"delta","â":"infinity","â¥":"love","&":"and","|":"or","<":"less than",">":"greater than","â":"sum","¤":"currency"},es:{"â":"delta","â":"infinito","â¥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","â":"suma de los","¤":"moneda"},fa:{"â":"delta","â":"bi-nahayat","â¥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","â":"majmooe","¤":"vahed"},fi:{"â":"delta","â":"aarettomyys","â¥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","â":"summa","¤":"valuutta"},fr:{"â":"delta","â":"infiniment","â¥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","â":"somme des","¤":"monnaie"},ge:{"â":"delta","â":"usasruloba","â¥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","â":"jami","¤":"valuta"},gr:{},hu:{"â":"delta","â":"vegtelen","â¥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","â":"szumma","¤":"penznem"},it:{"â":"delta","â":"infinito","â¥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","â":"somma","¤":"moneta"},lt:{"â":"delta","â":"begalybe","â¥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","â":"suma","¤":"valiuta"},lv:{"â":"delta","â":"bezgaliba","â¥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","â":"summa","¤":"valuta"},my:{"â":"kwahkhyaet","â":"asaonasme","â¥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","â":"paungld","¤":"ngwekye"},mk:{},nl:{"â":"delta","â":"oneindig","â¥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","â":"som","¤":"valuta"},pl:{"â":"delta","â":"nieskonczonosc","â¥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","â":"suma","¤":"waluta"},pt:{"â":"delta","â":"infinito","â¥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","â":"soma","¤":"moeda"},ro:{"â":"delta","â":"infinit","â¥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","â":"suma","¤":"valuta"},ru:{"â":"delta","â":"beskonechno","â¥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","â":"summa","¤":"valjuta"},sk:{"â":"delta","â":"nekonecno","â¥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","â":"sucet","¤":"mena"},sr:{},tr:{"â":"delta","â":"sonsuzluk","â¥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","â":"toplam","¤":"para birimi"},uk:{"â":"delta","â":"bezkinechnist","â¥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","â":"suma","¤":"valjuta"},vn:{"â":"delta","â":"vo cuc","â¥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"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())<0?t:t.toLowerCase()})),w=w.replace(/\s+/g,S).replace(new RegExp("\\"+S+"+","g"),S).replace(new RegExp("(^\\"+S+"+|\\"+S+"+$)","g"),""),g&&w.length>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["3392"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default="00000000-0000-0000-0000-000000000000";exports.default=_default;
}, {}];
window.modules["3393"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _rng=_interopRequireDefault(require(3403)),_stringify=_interopRequireDefault(require(3395));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,r,t){const u=(e=e||{}).random||(e.rng||_rng.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,r){t=t||0;for(let e=0;e<16;++e)r[t+e]=u[e];return r}return(0,_stringify.default)(u)}var _default=v4;exports.default=_default;
}, {"3395":3395,"3403":3403}];
window.modules["3394"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _validate=_interopRequireDefault(require(3399));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,_validate.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var _default=version;exports.default=_default;
}, {"3399":3399}];
window.modules["3395"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _validate=_interopRequireDefault(require(3399));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).substr(1));function stringify(e,t=0){const o=(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase();if(!(0,_validate.default)(o))throw TypeError("Stringified UUID is invalid");return o}var _default=stringify;exports.default=_default;
}, {"3399":3399}];
window.modules["3396"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _validate=_interopRequireDefault(require(3399));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,_validate.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}var _default=parse;exports.default=_default;
}, {"3399":3399}];
window.modules["3397"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _rng=_interopRequireDefault(require(3403)),_stringify=_interopRequireDefault(require(3395));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let _nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(e,s,t){let l=s&&t||0;const n=s||new Array(16);let o=(e=e||{}).node||_nodeId,r=void 0!==e.clockseq?e.clockseq:_clockseq;if(null==o||null==r){const s=e.random||(e.rng||_rng.default)();null==o&&(o=_nodeId=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=_clockseq=16383&(s[6]<<8|s[7]))}let c=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:_lastNSecs+1;const i=c-_lastMSecs+(u-_lastNSecs)/1e4;if(i<0&&void 0===e.clockseq&&(r=r+1&16383),(i<0||c>_lastMSecs)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=c,_lastNSecs=u,_clockseq=r;const _=(1e4*(268435455&(c+=122192928e5))+u)%4294967296;n[l++]=_>>>24&255,n[l++]=_>>>16&255,n[l++]=_>>>8&255,n[l++]=255&_;const a=c/4294967296*1e4&268435455;n[l++]=a>>>8&255,n[l++]=255&a,n[l++]=a>>>24&15|16,n[l++]=a>>>16&255,n[l++]=r>>>8|128,n[l++]=255&r;for(let e=0;e<6;++e)n[l+e]=o[e];return s||(0,_stringify.default)(n)}var _default=v1;exports.default=_default;
}, {"3395":3395,"3403":3403}];
window.modules["3398"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _v=_interopRequireDefault(require(3405)),_sha=_interopRequireDefault(require(3404));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const v5=(0,_v.default)("v5",80,_sha.default);var _default=v5;exports.default=_default;
}, {"3404":3404,"3405":3405}];
window.modules["3399"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _regex=_interopRequireDefault(require(3402));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return"string"==typeof e&&_regex.default.test(e)}var _default=validate;exports.default=_default;
}, {"3402":3402}];
window.modules["3400"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _v=_interopRequireDefault(require(3405)),_md=_interopRequireDefault(require(3401));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const v3=(0,_v.default)("v3",48,_md.default);var _default=v3;exports.default=_default;
}, {"3401":3401,"3405":3405}];
window.modules["3401"] = [function(require,module,exports){"use strict";function md5(d){if("string"==typeof d){const t=unescape(encodeURIComponent(d));d=new Uint8Array(t.length);for(let m=0;m>5]>>>e%32&255,f=parseInt("0123456789abcdef".charAt(m>>>4&15)+"0123456789abcdef".charAt(15&m),16);t.push(f)}return t}function getOutputLength(d){return 14+(d+64>>>9<<4)+1}function wordsToMd5(d,t){d[t>>5]|=128<>5]|=(255&d[e/8])<>16)+(t>>16)+(m>>16)<<16|65535&m}function bitRotateLeft(d,t){return d<>>32-t}function md5cmn(d,t,m,e,f,n){return safeAdd(bitRotateLeft(safeAdd(safeAdd(t,d),safeAdd(e,n)),f),m)}function md5ff(d,t,m,e,f,n,i){return md5cmn(t&m|~t&e,d,t,f,n,i)}function md5gg(d,t,m,e,f,n,i){return md5cmn(t&e|m&~e,d,t,f,n,i)}function md5hh(d,t,m,e,f,n,i){return md5cmn(t^m^e,d,t,f,n,i)}function md5ii(d,t,m,e,f,n,i){return md5cmn(m^(t|~e),d,t,f,n,i)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=md5;exports.default=_default;
}, {}];
window.modules["3402"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;exports.default=_default;
}, {}];
window.modules["3403"] = [function(require,module,exports){"use strict";let getRandomValues;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=rng;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}
}, {}];
window.modules["3404"] = [function(require,module,exports){"use strict";function f(e,t,r,o){switch(e){case 0:return t&r^~t&o;case 1:return t^r^o;case 2:return t&r^t&o^r&o;case 3:return t^r^o}}function ROTL(e,t){return e<>>32-t}function sha1(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;u=c,c=l,l=ROTL(a,30)>>>0,a=n,n=s}r[0]=r[0]+n>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+u>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=sha1;exports.default=_default;
}, {}];
window.modules["3405"] = [function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=_default,exports.URL=exports.DNS=void 0;var _stringify=_interopRequireDefault(require(3395)),_parse=_interopRequireDefault(require(3396));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r=400)){e.next=10;break}return e.next=3,t.json();case 3:if(e.t0=e.sent.message,e.t0){e.next=6;break}e.t0=t.statusText;case 6:throw r=e.t0,(n=new Error(r)).response=t,n;case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function datetimeExpired(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;return Date.now()-new Date(e).getTime()>1e3*t}var DamClient=function(){function e(t){(0,_classCallCheck2.default)(this,e);var r=t.damAccessKey,n=t.damApiHost,a=t.damServingHost,i=t.damApiVersion,u=void 0===i?"v1":i,s=t.damDefaultPath,o=t.damDocument,c=void 0===o?"images":o,l=t.DAM_TYPE,p=t.userAgent;this.MEDIA_STATUS={ACTIVE:"active",DELETED:"deleted",INACTIVE:"inactive",LOCKED:"locked"},this._damAccessKey=r,this._damApiHost=n,this._damServingHost=a,this._damDefaultPath=s,this._damApiUrl="".concat(n,"/api/").concat(u),this._damApiVersion=u,this._damDocumentType=c,this._damServingHostDocumentPath="/api/".concat(u,"/").concat(c,"/"),this.DAM_TYPE=l,this.DEFAULT_IMAGE_LICENSE_ID="license_befa2735-b26a-4793-a26f-53f6f3737b25",this.DEFAULT_LOOP_LICENSE_ID="license_befa2735-b26a-4793-a26f-53f6f3737b25",this._userAgent=p}return(0,_createClass2.default)(e,[{key:"_digestIsExpired",get:function(){return datetimeExpired(this._tokenExpiration)}},{key:"getId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e.startsWith("http")?urlParse(e).pathname:e).replace("".concat(this._damServingHostDocumentPath),"")}},{key:"getNamespace",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window)||void 0===e?void 0:null===(t=e.kiln)||void 0===t?void 0:t.locals,a=(null==n?void 0:null===(r=n.site)||void 0===r?void 0:r.site)||"cnn";return SITE_TO_DAM_NAMESPACE[a]}},{key:"authenticate",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var t,r=this;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isFetchingCredentials){e.next=2;break}return e.abrupt("return",this.isFetchingCredentials);case 2:return t=Date.now(),e.abrupt("return",this.isFetchingCredentials=getAuthorization(this._damAccessKey,t).then(function(e){r._authorization=e,r._tokenExpiration=t}).finally(function(){return r.isFetchingCredentials=null}));case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getHeaders",value:function(){var e=(0,_asyncToGenerator2.default)(function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1?arguments[1]:void 0;return _regenerator.default.mark(function n(){var a;return _regenerator.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e._authorization&&!e._digestIsExpired){n.next=3;break}return n.next=3,e.authenticate();case 3:return a={Authorization:e._authorization,"X-Api-Key":e._damAccessKey,"X-Date-Time":e._tokenExpiration,"X-User-Name":getUserName(),"User-Agent":e._userAgent},t&&(a["Content-Type"]="application/json"),r&&(a["X-Dam-Namespace"]=r),n.abrupt("return",a);case 7:case"end":return n.stop()}},n)})()});return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,_asyncToGenerator2.default)(function(e,t,r){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=a.json,u=void 0===i||i,s=a.namespace;return _regenerator.default.mark(function a(){var i,o,c;return _regenerator.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,n.getHeaders(u,s);case 2:return i=a.sent,o={method:e,headers:i},r&&(o.body=u?JSON.stringify(r):r),a.next=7,fetch("".concat(n._damApiUrl).concat(t),o);case 7:return c=a.sent,a.next=10,_checkStatus(c);case 10:return a.abrupt("return",c.json());case 11:case"end":return a.stop()}},a)})()});return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_getR",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="",r&&(n="?".concat(new URLSearchParams(r))),e.next=4,this.request("GET","".concat(t).concat(n));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"_delete",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request("DELETE",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"_put",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r,n){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request("PUT",t,r,{namespace:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_post",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r,n){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request("POST",t,r,{namespace:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_sendMultipart",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r,n,a){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request(t,r,createFormData(n),{json:!1,namespace:a});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t,r,n,a){return e.apply(this,arguments)}}()},{key:"buildUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ratio,n=void 0===r?"original":r,a=t.ratioSize,i=void 0===a?{}:a,u=t.rawQuery,s=t.servingHost,o=void 0===s?this._damServingHost:s,c=t.damDocumentType,l=void 0===c?this._damDocumentType:c,p=t.extraCropCommands;return _buildUrl(e,{ratio:n,ratioSize:i,rawQuery:u,servingHost:o,damDocumentType:l,extraCropCommands:p})}},{key:"buildUrlFromUri",value:function(e,t){return _buildUrlFromUri(e,_objectSpread(_objectSpread({},t),{},{servingHost:this._damServingHost}))}},{key:"upload",value:function(e,t,r){var n=_objectSpread({path:this._damDefaultPath,name:e.name},t);return this._sendMultipart("POST","/".concat(this._damDocumentType),{file:e,meta:JSON.stringify(n)},r)}},{key:"putImage",value:function(e,t,r){return this._sendMultipart("PUT","/".concat(this._damDocumentType,"/").concat(e),{file:t,meta:JSON.stringify(r)})}},{key:"search",value:function(e,t){return e.match=e.match||{},e.match.type||(e.match.type=DOCUMENT_TYPE_MAP[this._damDocumentType]),this._post("/search",e,t)}},{key:"getMetadata",value:function(e,t){return this._getR("/".concat(this._damDocumentType,"/meta/").concat(e),t)}},{key:"getMetadataWithAssociations",value:function(e){return this.getMetadata(e,{includeAssociations:!0})}},{key:"putMetadata",value:function(e,t){return this._put("/".concat(this._damDocumentType,"/meta/").concat(e),t)}},{key:"patchMetadata",value:function(e,t){return this.request("PATCH","/".concat(this._damDocumentType,"/meta/").concat(e),t)}},{key:"purgeCDNCache",value:function(e){return this._post("/".concat(this._damDocumentType,"/purge/").concat(e),{})}},{key:"getLicenseDefaults",value:function(e,t,r){return this._post("/licenses/".concat(this._damDocumentType,"/").concat(e,"/defaults"),{license:t,uri:r})}},{key:"getReferences",value:function(e){return this._getR("/".concat(this._damDocumentType,"/").concat(e,"/references"))}},{key:"postReference",value:function(e,t,r){return this._post("/".concat(this._damDocumentType,"/").concat(e,"/references"),{sourceId:t,systemId:r})}},{key:"deleteReference",value:function(e,t){return this._delete("/".concat(this._damDocumentType,"/").concat(e,"/references/").concat(t))}},{key:"putCrop",value:function(e,t){return this._put("/".concat(this._damDocumentType,"/").concat(e,"/crops"),t)}},{key:"getLicense",value:function(e,t){return this._getR("/licenses/".concat(e,"/").concat(t))}},{key:"getLicenses",value:function(e){return this._getR("/licenses/".concat(e))}},{key:"validateByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._post("/validation-check",_objectSpread({ids:e},t))}},{key:"searchReferences",value:function(e){return this._post("/search/references",e)}},{key:"searchAssociations",value:function(e){return this._post("/search/associations",e)}},{key:"getAssociations",value:function(e){return this._getR("/".concat(this._damDocumentType,"/").concat(e,"/associations"))}},{key:"postAssociation",value:function(e,t,r){return this._post("/".concat(this._damDocumentType,"/").concat(e,"/associations"),{to_media_id:t,name:r})}},{key:"getAssociationByName",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.searchAssociations({match:{from_media_id:t,name:r}});case 2:return n=e.sent,e.abrupt("return",n.rows[0]);case 4:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"deleteAssociation",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAssociationByName(t,r);case 2:return n=e.sent,e.abrupt("return",n&&this._delete("/".concat(this._damDocumentType,"/").concat(t,"/associations/").concat(n.id)));case 4:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"getOverrides",value:function(e){return this._getR("/".concat(this._damDocumentType,"/").concat(e,"/overrides"))}},{key:"postOverride",value:function(e,t,r){return this._post("/".concat(this._damDocumentType,"/").concat(e,"/overrides"),{to_media_id:t,media_discriminator:r})}},{key:"deleteOverride",value:function(e,t){return this._delete("/".concat(this._damDocumentType,"/").concat(e,"/overrides/").concat(t))}},{key:"getFlag",value:function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var r,n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.flags){e.next=6;break}return e.next=3,this._getR("/health-check");case 3:r=e.sent,n=r.feature_flags,this.flags=n;case 6:return e.abrupt("return",!!this.flags[t]);case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"get",value:function(e){return this._getR("/".concat(this._damDocumentType,"/").concat(e))}},{key:"put",value:function(e,t){return this._put("/".concat(this._damDocumentType,"/").concat(e),t)}},{key:"post",value:function(e,t,r){return this._post("/".concat(this._damDocumentType),t,r)}},{key:"delete",value:function(e){return this._delete("/".concat(this._damDocumentType,"/").concat(e))}}]),e}();module.exports=DamClient,module.exports.buildUrl=_buildUrl,module.exports.DAM_TYPE="stellar";
}, {"10":10,"11":11,"12":12,"18":18,"24":24,"25":25,"71":71,"3100":3100,"3466":3466,"3492":3492}];
window.modules["3459"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_typeof2=_interopRequireDefault(require(19)),_asyncToGenerator2=_interopRequireDefault(require(24)),_defineProperty2=_interopRequireDefault(require(18)),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12));function ownKeys(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 _objectSpread(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],r=n||this.el;return Array.from(r.querySelectorAll(e)).reduce(function(e,n){return _objectSpread((0,_defineProperty2.default)({},t(unpackDataset(n.dataset)),n),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(n){return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.onSSEPublish(n);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(t){var n,r,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(new Date).getTime(),r=window.location.pathname+window.location.search,t=t||0,o=r.includes("?")?"&":"?",r="".concat(r).concat(o,"cb=").concat(n,"&rt=").concat(t),e.abrupt("return",fetch(r).then(function(e){return e.text()}).then(function(e){return e}).catch(function(e){return console.log(e)}));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"exposeComponent",value:function(e,t){window.CNN&&(window.CNN.components||(window.CNN.components={}),window.CNN.components[e]||(window.CNN.components[e]=[]),window.CNN.components[e].every(function(e){return e.component!==t})&&window.CNN.components[e].push({component:t,proxy:new Proxy(t,{get:function(n,r){return"__target__"===r?t:"log"!==r&&"configureLogger"!==r&&"function"==typeof n[r]?new Proxy(n[r],{apply:function(t,o,c){var a=void 0;try{var i="AsyncFunction"===t.constructor.name;n.log&&n.log("trace","calling ".concat(i?"asynchronous ":"").concat(e,".").concat(r)),a=Reflect.apply(t,o,c),n.log&&(void 0===a||a instanceof Promise||i?n.log("trace","right after calling to ".concat(e,".").concat(r," (which might be asynchronous)")):n.log("trace","result of calling ".concat(e,".").concat(r," of type ").concat((0,_typeof2.default)(a)),{result:a}))}catch(e){throw n.log&&n.log("error"),e}return a}}):Reflect.get(n,r)}})}))}}]),e}(),addEventListener=function(e,t,n,r){return e.addEventListener(t,function(e){var t=e.currentTarget;n.call(r,unpackDataset(t.dataset),t,e)})},unpackDataset=function(e){return Object.keys(e).reduce(function(t,n){return n.startsWith(SERIALIZED_DATA_PREFIX)?_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},n.slice(PREFIX_LENGTH),function(){try{return JSON.parse(e[n])}catch(e){}}())):_objectSpread(_objectSpread({},t),{},(0,_defineProperty2.default)({},n,e[n]))},{})};module.exports=ClientModel;
}, {"10":10,"11":11,"12":12,"18":18,"19":19,"24":24,"25":25,"3460":3460}];
window.modules["3460"] = [function(require,module,exports){"use strict";var CACHE_SIZE=1,ANY_ACTION="_any",EMPTY=Symbol("empty"),dispatcher=function(){var n={},t={};function o(o,i){if(!o)throw new Error("Invalid action format");n[o]=n[o]||{},n[o][i]=n[o][i]||[],t[o]=t[o]||{},t[o][i]=t[o][i]||new Array(CACHE_SIZE)}return{dispatch:function(i){var c=i.ns,r=i.action,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EMPTY,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";a&&(r=Symbol.for(r.description.concat(a))),o(c,r),n[c][r].concat(n[c][ANY_ACTION]||[]).forEach(function(n){setTimeout(function(){n(e,{ns:c,action:r})})}),t[c][r].shift(),t[c][r].push(e)},subscribe:function(i,c){var r=i.ns,e=i.action,a=void 0===e?ANY_ACTION:e,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";u&&(a=Symbol.for(a.description.concat(u))),o(r,a),n[r][a].push(c),s&&t[r][a].filter(function(n){return void 0!==n}).forEach(function(n){setTimeout(function(){c(n)})})},reset:function(){t={},n={}}}}();dispatcher.CACHE_SIZE=CACHE_SIZE,module.exports=dispatcher;
}, {}];
window.modules["3462"] = [function(require,module,exports){"use strict";function calculateReadTime(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return"";var c=Number(e);return isNaN(c)?"":"".concat(Math.ceil(c/225)).concat(a)}module.exports={calculateReadTime:calculateReadTime};
}, {}];
window.modules["3463"] = [function(require,module,exports){"use strict";module.exports=function(e){return e instanceof Array?(0===e.length?"":1===e.length?"".concat(e[0]):e.join(",").replace(",$","")).replace(/(["'])/g,"\\$&"):"string"==typeof e?e.replace(/(["'])/g,"\\$&"):e};
}, {}];
window.modules["3464"] = [function(require,module,exports){"use strict";function arrayIncludes(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;return n.includes(a)}function generateLabelHtml(n,a,c,l){return'\n \n
\n
\n \n •\n ').concat(a,"\n \n ").concat(l?'').concat(l||a,""):"","\n \n ")}module.exports={arrayIncludes:arrayIncludes,generateLabelHtml:generateLabelHtml};
}, {}];
window.modules["3465"] = [function(require,module,exports){"use strict";function setCardImageRatios(i,e){if(i.imageRatioOverride){var t=i.imageRatioOverride.find(function(i){return i.position===e});if(t)return t.ratios}return i.imageRatios}module.exports={setCardImageRatios:setCardImageRatios};
}, {}];
window.modules["3466"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_asyncToGenerator2=_interopRequireDefault(require(24));require(3100);var _get=require(1),getUserName=function(){return _get(window,"kiln.locals.user.username","Unknown")};module.exports={getAuthorization:function(e,r){return(0,_asyncToGenerator2.default)(_regenerator.default.mark(function t(){var a,n;return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/_clay/_dam_auth",{method:"GET",cache:"no-cache",headers:{"X-Api-Key":e,"X-Date-Time":r,"X-User-Name":getUserName()}});case 2:return a=t.sent,t.next=5,a.text();case 5:return n=t.sent,t.abrupt("return","hmac ".concat(n));case 7:case"end":return t.stop()}},t)}))()},getUserName:getUserName,createFormData:function(e){var r=new FormData;return Object.entries(e).forEach(function(e){var t=(0,_slicedToArray2.default)(e,2),a=t[0],n=t[1];r.append(a,n)}),r}};
}, {"1":1,"10":10,"24":24,"25":25,"36":36,"3100":3100}];
window.modules["3469"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_defineProperty2=_interopRequireDefault(require(18));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;r2&&void 0!==arguments[2]&&arguments[2],o=t.template(RegWallTemplate)(e);return r?o:ClientTemplate.createElementFromHTML(o)},triggerRegWall=function(e,t,r){var o,n,l,c=t.regPromoPath,a=t.loginPromoPath,i=t.sourceBase,u=t.isSubwall,p=(0,_objectWithoutProperties2.default)(t,_excluded);e.classList.add("user-account-reg-wall--activated"),null===(o=window.google)||void 0===o||null===(n=o.accounts)||void 0===n||null===(l=n.id)||void 0===l||l.cancel();var s=encodeURIComponent(new URL(window.location).href),g=u?"/subscription?source=".concat(i,"&redirect=").concat(s):"/account/register/".concat(c,"?source=").concat(i,"&redirect=").concat(s),m="/account/log-in/".concat(a,"?source=").concat(i,"&redirect=").concat(s),b=ClientTemplate.createHandlebarsEnvironment({helpers:{},partials:{button:ButtonTemplate}}),d=createRegWallComponent(_objectSpread({ctaLink:g,cta2Link:m,source:i,isSubwall:u},p),b);document.querySelector("body").appendChild(d),UserAccountRegWallClient(d,r)};module.exports={triggerRegWall:triggerRegWall,createRegWallComponent:createRegWallComponent};
}, {"10":10,"18":18,"61":61,"82":82,"163":163,"383":383,"user-account-reg-wall.client":"user-account-reg-wall.client"}];
window.modules["3478"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),addDays=require(2801),isValid=require(2830),isAfter=require(2930),isEqual=require(2931),MeterController=function(){function e(t){var a=t.expiryDaysCount,r=t.expiryTime,i=t.meterMax,s=t.meterKey,l=t.overMaxReset;(0,_classCallCheck2.default)(this,e),this.key=s,this.wallStatsKey="wallStats",this.resetDateKey="resetDate",this.lastViewedDateKey="lastViewed",this.wallFiredCountKey="wallCount",this.expiryDaysCount=a,this.expiryTime=r,this.meterMax=i,this.overMaxReset=l,this.data=this.getFromStorage()}return(0,_createClass2.default)(e,[{key:"count",value:function(){return this.data&&this.wallStatsKey in this.data?Object.keys(this.data[this.wallStatsKey]).length:0}},{key:"getFromStorage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t=window.localStorage.getItem(this.key);return null!==t?JSON.parse(t):e}catch(t){return console.error(t),e}}},{key:"updateStorage",value:function(){var e=new Date;this.data[this.lastViewedDateKey]=e.toISOString(),window.localStorage.setItem(this.key,JSON.stringify(this.data))}},{key:"getInstancePosition",value:function(e){return this.data[this.wallStatsKey][e]}},{key:"searchData",value:function(e){return e in this.data[this.wallStatsKey]}},{key:"updateData",value:function(e){this.checkResetStorage();var t=this.data;this.data[this.wallFiredCountKey]||(t[this.wallFiredCountKey]=0);var a=this.data[this.wallStatsKey];(!a||Object.keys(a).length0&&void 0!==arguments[0]?arguments[0]:{},r=t.displayScrollDepthPercentage,n=void 0===r?15:r,i=t.contentSelector,u=document.documentElement.scrollHeight-document.documentElement.clientHeight,o=throttle(function(){var t=Math.round(u*(n/100));window.scrollY>=t&&e()},250),a=document.querySelector(i);a?new IntersectionObserver(function(t,r){t.forEach(function(t){t.isIntersecting&&(e(),r.disconnect())})},{threshold:.01}).observe(a):window.addEventListener("scroll",o)}};module.exports={isSubscriber:isSubscriber,defaultManageWallVisibility:defaultManageWallVisibility};
}, {"10":10,"24":24,"25":25,"28":28,"44":44}];
window.modules["3492"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_objectWithoutProperties2=_interopRequireDefault(require(163)),_excluded=["apiVersion","mediaType","servingHost"],_compact=require(3347),_get=require(1);function addCropAndSizeOptions(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.crop,i=void 0===r?{}:r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.extraCropCommands,u=void 0===c?[]:c,d=[],p=[],s=a.h,l=a.w,h=i.x,m=i.y,v=i.height,_=i.width,g=e.includes("?c="),b=e.includes("?q=")&&!g;b||g||(v&&d.push("h_".concat(v)),_&&d.push("w_".concat(_)),void 0!==h&&d.push("x_".concat(h)),void 0!==m&&d.push("y_".concat(m)),(h||m)&&d.push("c_crop")),s&&p.push("h_".concat(s)),l&&p.push("w_".concat(l)),b||d.length||!p.length||p.push("c_fill");var q=n||_compact([d.join(","),p.join(","),u.join(",")]).join("/")||"",x="?q=";return g?x="&q=":b&&(x="/"),_compact([e,q]).join(x)}function buildUrl(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.ratio,i=void 0===r?"original":r,t=o.ratioSize,a=void 0===t?{}:t,n=o.rawQuery,c=o.servingHost,u=o.damDocumentType,d=o.extraCropCommands,p=_get(e,["data","crops",i],_get(e,["crops",i],{})),s=p.uri||e.uri;return addCropAndSizeOptions(s&&"".concat(c,"/api/v1/").concat(u).concat(s)||e.url||"",{crop:p,ratioSize:a,rawQuery:n,extraCropCommands:d})}function buildUrlFromUri(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.apiVersion,i=void 0===r?"v1":r,t=o.mediaType,a=void 0===t?"images":t,n=o.servingHost,c=(0,_objectWithoutProperties2.default)(o,_excluded);return addCropAndSizeOptions("".concat(n,"/api/").concat(i,"/").concat(a).concat(e),c)}module.exports.buildUrl=buildUrl,module.exports.buildUrlFromUri=buildUrlFromUri;
}, {"1":1,"10":10,"163":163,"3347":3347}];
window.modules["3493"] = [function(require,module,exports){"use strict";const htmlTags=require(3657),basic=/\s?|(]*>|]*>|]+>)+/i,full=new RegExp(htmlTags.map(t=>`<${t}\\b[^>]*>`).join("|"),"i");module.exports=(t=>basic.test(t)||full.test(t));
}, {"3657":3657}];
window.modules["3499"] = [function(require,module,exports){"use strict";var isFinite=require(3359),isString=require(333),isBoolean=require(3357);function propertyValue(r,e,i){var o,t;if(null==r||null===(o=r.trim)||void 0===o||null===(t=o.call(r))||void 0===t||!t.length)throw new Error("Invalid propertyId provided: (".concat(r,", ").concat(e,")"));if(!isValidPropertyValueArgs(r,e))throw new Error("Invalid propertyValue provided: (".concat(r,", ").concat(e,")"));return{"@type":"PropertyValue",propertyID:r,name:i||r,value:e}}function isValidPropertyValueArgs(r,e){return!!(isFinite(e)||isString(e)||isBoolean(e))}module.exports={isValidPropertyValueArgs:isValidPropertyValueArgs,propertyValue:propertyValue};
}, {"333":333,"3357":3357,"3359":3359}];
window.modules["3524"] = [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)]<<2|revLookup[o.charCodeAt(e+1)]>>4,p[a++]=255&r),1===u&&(r=revLookup[o.charCodeAt(e)]<<10|revLookup[o.charCodeAt(e+1)]<<4|revLookup[o.charCodeAt(e+2)]>>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]<<8)+o[e-1],n.push(lookup[r>>10]+lookup[r>>4&63]+lookup[r<<2&63]+"=")),n.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;
}, {}];
window.modules["3586"] = [function(require,module,exports){exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-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=(1<>1,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&&(p--,f*=2),(o+=p+N>=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["3656"] = [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["3657"] = [function(require,module,exports){"use strict";module.exports=require(3656);
}, {"3656":3656}];
window.modules["content-recs.client"] = [function(require,module,exports){(function (__filename){(function (){
"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(109),getRelatedContent=_require.getRelatedContent,getPersonalizedContent=_require.getPersonalizedContent,getPopularContent=_require.getPopularContent,EnvVars=require(5),createContainer=require(110),_require2=require(108),lineClamp=_require2.lineClamp,_require3=require(107),trackMetrics=_require3.trackMetrics,_require4=require(97),setAdobeAnalyticsGenericDataCookie=_require4.setAdobeAnalyticsGenericDataCookie,log=require(35).setup({file:__filename}),_require5=require(29),getCookie=_require5.getCookie,_require6=require(2),getComponentInstance=_require6.getComponentInstance,_require7=require(37),addComponentLoadedAnalytics=_require7.addComponentLoadedAnalytics,addZJSClickAttributes=_require7.addZJSClickAttributes,contentRecsInstance="up-next-v1";function getLocationOnPage(e){var t={inline:function(){return document.querySelector(".layout__main")},"article end":function(){return document.querySelector(".layout__end")},"right rail":function(){return document.querySelector(".layout__rail")}};return Object.keys(t).find(function(n){var r;return null===(r=t[n]())||void 0===r?void 0:r.contains(e)})||""}function setupTrackingMetrics(e,t){var n=e.dataset,r=n.recsModel,i=n.title,o=n.uri,a=getLocationOnPage(e),c=new IntersectionObserver(function(e){e.forEach(function(e){var n=e.isIntersecting,l=e.intersectionRatio,u=e.target;n&&l>=.5&&l<1&&(fireTrackingMetrics({recsModel:r,title:i,numberOfItems:t,componentStellarId:o,locationOnPage:a}),c.unobserve(u))})},{threshold:.5});c.observe(e),Array.from(e.querySelectorAll("a[href]")).forEach(function(e,n){var c,l=null===(c=e.querySelector(".container__headline-text"))||void 0===c?void 0:c.innerHTML;setAdobeAnalyticsGenericDataCookie(e,["content rec",i,r,a,t,n+1,l,o])})}function fireTrackingMetrics(e){var t=e.recsModel,n=e.title,r=e.numberOfItems,i=e.componentStellarId,o=e.locationOnPage;try{trackMetrics({type:"user-interaction",data:{interaction:"module load",componentName:n,componentStellarId:i,componentAttributes:{type:"content rec",apiType:t,locationOnPage:o,numberOfItems:r,title:n}}})}catch(e){log("error",e.message,{stack:e.stack})}}function shouldRun(e){return getComponentInstance(e)!==contentRecsInstance||"active"===getCookie("_endrecirc_testing")}function displayCards(e,t,n,r,i){createContainer(e,t,"content-recs",n,r);var o=t.querySelectorAll('[data-uri*="/card/"]');if(o.length>0&&(setupTrackingMetrics(t,i),o.forEach(function(n){n.querySelectorAll("a").forEach(function(n){var i,o,a,c;addZJSClickAttributes(n,{page_stellar_id:null===(i=window)||void 0===i?void 0:null===(o=i.CNN)||void 0===o?void 0:null===(a=o.contentModel)||void 0===a?void 0:a.pageStellarId,component_type:"content rec",component_id:t.dataset.uri,component_text:r,location:getLocationOnPage(t),stellar_id:null===(c=e.find(function(e){return e.url===n.href}))||void 0===c?void 0:c.stellarId})})})),"container_list-headlines-ranked"===n){var a=document.createElement("div");a.classList.add("".concat(n,"__field-links--col-1"));var c=document.createElement("div");c.classList.add("".concat(n,"__field-links--col-2"));var l=i%2==0;o.forEach(function(e,t){l&&t<=i/2-1||!l&&t<=Math.floor(i/2)?a.append(e):c.append(e)}),t.querySelector(".container__field-links").append(a,c)}"container_list-headlines-with-read-times"!==n&&o.forEach(function(e){var t=e.querySelector('[data-editable="headline"]');lineClamp(t,5," ...")})}function launchContentRecs(e){return _launchContentRecs.apply(this,arguments)}function _launchContentRecs(){return(_launchContentRecs=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var n,r,i,o,a,c,l,u,s,d,p,v,_,f,m,g,C,q,y,h,b,k,R,A,I,w,S,M,T;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.dataset,r=n.recsModel,i=n.title,o=n.numberOfItems,a=void 0===o?1:o,c=n.contentTypes,l=void 0===c?"article":c,u=n.sections,s=void 0===u?"":u,d=n.layout,p=void 0===d?"container_list-headlines-with-images":d,v=l.split(","),_=(0,_slicedToArray2.default)(v,1),f=_[0],m=""===s?[]:s.split(","),C=(g={related:function(e,t){return getRelatedContent(e,t)},personalized:function(e,t){return getPersonalizedContent(e,t)},popularity:function(e,t,n){return getPopularContent(e,t,n)}})[r]||g.related,e.prev=5,e.next=8,C(a,f,m);case 8:S=e.sent,M=S.recommendations,T=S.tenantId,displayCards(M,t,p,i,a),addComponentLoadedAnalytics({componentType:"content rec",componentId:t.dataset.uri,traits:{page_stellar_id:null===(q=window)||void 0===q?void 0:null===(y=q.CNN)||void 0===y?void 0:null===(h=y.contentModel)||void 0===h?void 0:h.pageStellarId,canonical_url:null===(b=window)||void 0===b?void 0:null===(k=b.CNN)||void 0===k?void 0:null===(R=k.contentModel)||void 0===R?void 0:R.canonicalUrl,cms_id:null===(A=window)||void 0===A?void 0:null===(I=A.CNN)||void 0===I?void 0:null===(w=I.contentModel)||void 0===w?void 0:w.cmsId,recommendation_ids:M.map(function(e){return e.stellarId}),tenant_id:T,component_text:i,item_count:a,location:getLocationOnPage(t),layout:p}}),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),log("error",e.t0.message,{stack:e.t0.stack});case 18:case"end":return e.stop()}},e,null,[[5,15]])}))).apply(this,arguments)}module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(EnvVars.get("ENABLE_CONTENT_RECS")){e.next=2;break}return e.abrupt("return");case 2:if(window.CNN.launchContentRecs||(window.CNN.launchContentRecs=launchContentRecs),!shouldRun(null===(n=t.dataset)||void 0===n?void 0:n.uri)){e.next=6;break}return e.next=6,launchContentRecs(t);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();
}).call(this)}).call(this,"/components/content-recs/client.js")}, {"2":2,"5":5,"10":10,"24":24,"25":25,"29":29,"35":35,"36":36,"37":37,"97":97,"107":107,"108":108,"109":109,"110":110}];
window.modules["container.client"] = [function(require,module,exports){"use strict";var _require=require(97),setAdobeAnalyticsCookie=_require.setAdobeAnalyticsCookie,showDomNode=function(e){e.classList.remove("hide")},hideDomNode=function(e){e.classList.add("hide")};module.exports=function(e){["container_headline-carousel","container_ribbon","container_shelf-carousel","container_event-tray"].forEach(function(t){var o=e.querySelector(".".concat(t,"__field-links")),n=e.querySelector(".".concat(t,"__cards-wrapper")),r=document.createElement("div"),i=document.createElement("div");r.classList.add("".concat(t,"__carousel-button-prev"),"hide","carousel-button-prev"),i.classList.add("".concat(t,"__carousel-button-next"),"carousel-button-next");var a=function(e){var n,i,a=o.scrollLeft,c=o.offsetWidth,s=r.offsetWidth,l=c-s,d=o.children[0].offsetWidth,u=parseInt(window.getComputedStyle(o).gap,10)||0;"left"===e?n="container_event-tray"===t?(i=Math.floor(a/(d+u)))*(d+u)-s:((i=Math.floor(a/d))-Math.floor(l/d)+1)*d-s:(i=Math.floor((a+l)/d),n="container_event-tray"===t?a+(d+u-(a+c-i*(d+u)))+3:i*d-s);o.scrollTo({left:n,behavior:"smooth"})};!function(){if(e.classList.contains(t)){if("container_ribbon"===t){var c=e.querySelectorAll(".card");c.forEach(function(e,o){var n=e.querySelector("a[href]"),r={zone_position_number:1,zone_total_number:1,container_position_number:1,container_name:t,container_total_number:1,card_name:n.innerText,card_position_number:o+1,card_total_number:c.length};setAdobeAnalyticsCookie(n,r)})}n.insertBefore(r,n.firstChild),n.appendChild(i),o.addEventListener("scroll",function(){var e,t,n;e=Math.round(o.scrollLeft),t=o.scrollWidth,n=o.clientWidth,0===e?hideDomNode(r):(showDomNode(r),t-n<=e?hideDomNode(i):showDomNode(i))}),r.addEventListener("click",function(){a("left")}),i.addEventListener("click",function(){a("right")}),o.scrollWidth===o.clientWidth?i.classList.add("hide"):"container_ribbon"===t&&(o.style.justifyContent="normal")}}()})};
}, {"97":97}];
window.modules["card.client"] = [function(require,module,exports){"use strict";var elementResizeObserver=require(68),seconds=1e3,minutes=60*seconds,hours=60*minutes,recentLimit=1*minutes,fairlyRecentLimit=1*hours,hoursAgoLimit=4*hours;module.exports=function(e){var t=e.querySelector(".container__item-media-wrapper");t&&elementResizeObserver.observe(t);var i=e.querySelector(".card__timestamp"),r=e.querySelector(".container__text");if(i&&i.dataset.publishedTime){var s=Date.now()-Date.parse(i.dataset.publishedTime),a=function(e){r.classList.add("card__headline-with-timestamp"),e.includes("h")||i.classList.add("card__timestamp-recent"),i.textContent=e};switch(!0){case s=recentLimit&&s=fairlyRecentLimit&&s',n.convoEl=n.convoWrapper.querySelector(".".concat(n.baseClass,"__placeholder")),e.parentNode.insertBefore(n.convoWrapper,e)}),(0,_defineProperty2.default)(this,"insertAd",function(){var e=document.createElement("div");e.classList.add("".concat(n.baseClass,"__ad")),e.setAttribute("data-openweb-ad",""),e.setAttribute("data-row",1),e.setAttribute("data-column",1);var t=document.querySelector(".layout-with-rail__rail");if(n.isMobileView||!t){var r=n.convoWrapper.querySelector(".".concat(n.baseClass,"__placeholder"));n.convoWrapper.insertBefore(e,r)}else t.appendChild(e)}),(0,_defineProperty2.default)(this,"init",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.SSOEnabled){e.next=3;break}return e.next=3,n.setupSSO();case 3:return document.addEventListener("spot-im-conversation-viewed",function(){var e;n.trackAnalytics({interaction:"module load",componentName:"commenting module",componentStellarId:(null===(e=n.el.dataset)||void 0===e?void 0:e.uri)||""})}),document.addEventListener("spot-im-show-more-comments-clicked",function(){n.trackAnalytics({interaction:"commenting:load more comments"})}),document.addEventListener("spot-im-current-user-sent-message-succeed",function(e){var t=e.detail.message_type;n.trackAnalytics({interaction:"commenting:message success:".concat("comment"===t?"post":"reply")})}),document.addEventListener("spot-im-user-up-vote-click",function(){n.trackAnalytics({interaction:"commenting:upvote comment"})}),document.addEventListener("spot-im-user-down-vote-click",function(){n.trackAnalytics({interaction:"commenting:downvote comment"})}),document.addEventListener("ow-open-custom-user-profile",function(){window.location.assign("/account/settings")}),n.openwebCommentCounter=new OpenwebCommentCounter({ssoEnabled:n.SSOEnabled,convoEl:n.convoEl,convoAboveOBR:n.convoAboveOBR,convoWrapper:n.convoWrapper,ctaTracking:n.trackAnalytics,isMobileView:n.isMobileView}),e.next=12,n.openwebCommentCounter.init();case 12:n.adEnabled&&subscribe(actions.ADS.SET_AD_VARIANT,function(e){e.adVariant===AD_VARIANTS.DEFAULT&&n.insertAd()});case 13:case"end":return e.stop()}},e)}))),(0,_defineProperty2.default)(this,"setupSSO",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var t,r,o,a;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.el.dataset,r=t.registerRedirect,o=t.loginRedirect,document.addEventListener("spot-im-signup-start",function(){window.location.assign("".concat(o||"/account/log-in/commenting","?redirect=").concat(window.location.pathname))}),document.addEventListener("spot-im-login-start",function(){window.location.assign("".concat(r||"/account/register/commenting","?redirect=").concat(window.location.pathname))}),document.addEventListener("spot-im-api-ready",function(){n.spotIM=window.SPOTIM}),!authClient.tokenWithAuthn()){e.next=15;break}if(document.addEventListener("spot-im-renew-sso",n.startOWSSO,!1),null===(a=window.SPOTIM)||void 0===a||!a.startSSO){e.next=11;break}return e.next=9,n.startOWSSO();case 9:e.next=12;break;case 11:document.addEventListener("spot-im-api-ready",n.startOWSSO,!1);case 12:document.addEventListener("spot-im-user-logout",function(){authClient.tokenWithAuthn()&&(dispatch(ACCOUNT_NAV.LOGOUT_SUCCESS),trackMetrics({type:"user-account",data:{action:"logout_success",component:"openweb-convo",method:"spotImEventListener_user-logged-out"}}))}),e.next=16;break;case 15:n.logoutOW();case 16:subscribe(ACCOUNT_NAV.LOGOUT_SUCCESS,function(){n.logoutOW()});case 17:case"end":return e.stop()}},e)}))),(0,_defineProperty2.default)(this,"startOWSSO",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var t,r;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,r){var n,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,authClient.openwebSSO({codeA:t},authClient.getToken());case 3:n=e.sent,o=n.data,r(o.codeB),e.next=13;break;case 8:return e.prev=8,e.t0=e.catch(0),log("error","Error starting OpenWeb SSO",e.t0),r(null,e.t0),e.abrupt("return");case 13:case"end":return e.stop()}},e,null,[[0,8]])}));return function(t,r){return e.apply(this,arguments)}}(),e.prev=1,e.next=4,null===(r=n.spotIM)||void 0===r?void 0:r.startSSO({callback:t,userId:authClient.getStoredUID()});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),log("error","Error starting OpenWeb SSO",e.t0);case 9:case"end":return e.stop()}},e,null,[[1,6]])}))),(0,_defineProperty2.default)(this,"logoutOW",function(){n.spotIM&&n.spotIM.logout?n.spotIM.logout():document.addEventListener("spot-im-api-ready",function(){n.spotIM.logout()},!1)}),(0,_defineProperty2.default)(this,"trackAnalytics",function(e){try{trackMetrics({type:"user-interaction",data:e})}catch(e){log("error","Could not track metrics",e)}}),this.el=t,this.baseClass="openweb-convo",this.SSOEnabled=EnvVars.get("ENABLE_OPENWEB_SSO"),this.adEnabled=EnvVars.get("ENABLE_OPENWEB_AD"),this.spotIM=window.SPOTIM,this.convoEl=t.querySelector(".".concat(this.baseClass,"__placeholder")),this.convoWrapper=t.querySelector(".".concat(this.baseClass,"__placeholder-wrapper")),this.convoPlacements={ABOVE_OBR:"above-obr",INLINE:"inline"},mediumMaxWidthListener(function(e){n.isMobileView=e});var o=EnvVars.get("OPENWEB_LAUNCHER_SRC"),a=EnvVars.get("OPENWEB_SSO_LAUNCHER_SRC"),i=null===(r=window.CNN)||void 0===r?void 0:r.contentModel,s=this.el.dataset,c=s.displayMessageCount,u=s.sortBy,l=s.openwebPlacement;this.convoAboveOBR=l===this.convoPlacements.ABOVE_OBR,this.convoAboveOBR&&this.insertConvoModule(),addScriptTag({src:this.SSOEnabled?a:o,async:!0,id:"openweb-launcher-script",data:{"spotim-module":"spotim-launcher","post-url":(null==i?void 0:i.canonicalUrl)||window.location.href,"article-tags":(null==i?void 0:i.pageTags)||"","post-id":(null==i?void 0:i.pageStellarId)||"","spotim-autorun":"false","display-message-count":c,"sort-by":u,"custom-section":null==i?void 0:i.section}},!0)});module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var r,n,o,a;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","measure-ads","product-develop"],o="true"===t.dataset.showModule||(null===(r=window.optimizelyTest)||void 0===r?void 0:r.showCommentModule),!(checkGeoCountry("US")&&window.WM.UserConsent.inUserConsentState(n)&&o)){e.next=6;break}return a=new OpenwebConvo(t),e.next=6,a.init();case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();
}).call(this)}).call(this,"/components/openweb-convo/client.js")}, {"5":5,"9":9,"10":10,"11":11,"12":12,"16":16,"17":17,"18":18,"24":24,"25":25,"29":29,"35":35,"44":44,"107":107,"252":252}];
window.modules["headline.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),rest=require(30);module.exports=function(e){var r=e.getAttribute("data-request-headline-data"),t=function(r,t){for(var a in e.classList.add("".concat(e.classList[0],"--updating")),r)if(t){var n=r[a],i=t[n.responseField],o=e.querySelector(n.selector);o&&(o.innerText=i)}};if(r)var a=JSON.parse(r),n=a.endpoint,i=a.elementsToUpdate,o=setInterval((0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){var r;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rest.get(n);case 3:(r=e.sent).length&&(t(i,r[0]),clearInterval(o)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching profile data for headline: ".concat(e.t0));case 10:case"end":return e.stop()}},e,null,[[0,7]])})),5e3)};
}, {"10":10,"24":24,"25":25,"30":30}];
window.modules["article.client"] = [function(require,module,exports){"use strict";var _require=require(37),addScrollDepthAnalytics=_require.addScrollDepthAnalytics,EnvVars=require(5),_require2=require(39),initActivation=_require2.initActivation,_require3=require(38),isPaywallEnabled=_require3.isPaywallEnabled,paywallTypes=_require3.paywallTypes;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})}module.exports=function(e){var l=isPaywallEnabled(paywallTypes.METERED)&&"true"!==e.dataset.paywallDisabled,i=isPaywallEnabled(paywallTypes.EXCLUSIVE)&&"true"==e.dataset.subscriptionOnly;(EnvVars.get("REGWALL_FEATURE_ENABLED")&&"true"!==e.dataset.regwallDisabled||i||l)&&initActivation(e,l,i),document.addEventListener("init-wall-activation",function(l){var i,a,n,t,r=null===(i=null===(a=l.detail)||void 0===a?void 0:a.paywallEnabled)||void 0===i||i,o=null===(n=null===(t=l.detail)||void 0===t?void 0:t.isSubOnlyWall)||void 0===n||n;initActivation(e,r,o,!0)}),addAnalytics(e)};
}, {"5":5,"37":37,"38":38,"39":39}];
window.modules["user-account-reg-wall.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_defineProperty2=_interopRequireDefault(require(18)),_require=require(44),authClient=_require.authClient,_require2=require(37),zionEventHandler=_require2.zionEventHandler,_require3=require(107),trackMetrics=_require3.trackMetrics,_require4=require(241),suppressToasts=_require4.suppressToasts,_require5=require(46),defaultManageWallVisibility=_require5.defaultManageWallVisibility,_require6=require(17),smallMaxWidthListener=_require6.smallMaxWidthListener,UserAccountRegWall=(0,_createClass2.default)(function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return function(){return defaultManageWallVisibility(e)()}};(0,_classCallCheck2.default)(this,e),(0,_defineProperty2.default)(this,"init",function(){var e,t;n.userIsLoggedIn=authClient.tokenWithAuthn();var i=n.el.dataset,l=i.source,o=i.componentId,r=i.componentName,a=i.dismissible,s=i.componentStellarId,c=i.interactionBase,u=i.wallCount,d=i.wallMax;n.componentId=o,n.source=l,n.wallCount=null!=u?u:1,n.wallMax=null!=d?d:1,n.signUpBtn=n.el.querySelector("#regwall-cta-btn"),n.signInLink=n.el.querySelector("#regwall-cta-link"),n.tooltip=n.el.querySelector(".".concat(n.class,"__info")),n.componentName=r,n.componentStellarId=s,n.interactionBase=c,n.dismissible=a,n.wallCountAnalyticsValue=n.wallCount?":".concat(n.wallCount):"";var p=document.querySelector(n.class);p&&p.remove(),n.el.querySelector(".".concat(n.class,"__content")).addEventListener("click",function(e){var t=e.target,i=t===n.signInLink;if(i||t===n.signUpBtn){var l=i?"sign in":"sign up";trackMetrics({type:"user-interaction",data:{interaction:"".concat(n.interactionBase,":").concat(l).concat(n.wallCountAnalyticsValue)}})}},!0),null===(e=n.tooltip)||void 0===e||e.addEventListener("mouseover",function(){trackMetrics({type:"user-interaction",data:{interaction:"".concat(n.interactionBase,":what-is-this").concat(n.wallCountAnalyticsValue)}})}),a&&n.el.querySelectorAll(".".concat(n.class,"__dismiss, .").concat(n.class,"__overlay")).forEach(function(e){return e.addEventListener("click",function(){n.handleClose()})}),null===(t=n.manageWallVisibility)||void 0===t||t.call(n,n.showWall)()}),(0,_defineProperty2.default)(this,"triggerZionTracking",function(){zionEventHandler({component_id:n.componentId,component_type:"banner",traits:{source:n.source}},"ComponentOnScreen")}),(0,_defineProperty2.default)(this,"restrictView",function(){n.updateInitialOverflow(),document.documentElement.style.overflow="hidden",smallMaxWidthListener(function(e){e&&!n.dismissible&&(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.height="100vh")}),n.istyle=document.createElement("style"),n.istyle.type="text/css",n.istyle.id="cnnrwhideiframe",n.istyle.appendChild(document.createTextNode(".obp-rec { display: none !important; }")),document.head.appendChild(n.istyle)}),(0,_defineProperty2.default)(this,"showWall",function(){n.open||(suppressToasts(),n.handleOpen(),n.restrictView(),n.triggerZionTracking(),trackMetrics({type:"user-interaction",data:{interaction:"module load",componentStellarId:n.componentStellarId,componentViewCount:n.wallCount,componentName:n.componentName,componentType:n.componentType}}))}),(0,_defineProperty2.default)(this,"handleOpen",function(){n.el.classList.remove(n.hideClass),n.open=!0}),(0,_defineProperty2.default)(this,"handleClose",function(){var e;trackMetrics({type:"user-interaction",data:{interaction:"".concat(n.componentType,":").concat(n.componentName,":dismiss").concat(n.wallCountAnalyticsValue)}}),n.el.classList.add(n.hideClass),n.open=!1,null===(e=document.getElementById(n.istyle.id))||void 0===e||e.remove(),document.documentElement.style.overflowX=n.initialOverflowX,document.documentElement.style.overflowY=n.initialOverflowY,smallMaxWidthListener(function(e){e&&!n.dismissible&&(document.body.style.overflow="unset",document.body.style.position="unset",document.body.style.height="unset")})}),(0,_defineProperty2.default)(this,"updateInitialOverflow",function(){n.initialOverflowX=document.documentElement.style.overflowX,n.initialOverflowY=document.documentElement.style.overflowY}),this.el=t,this.manageWallVisibility=i,this.class="user-account-reg-wall",this.componentType="regwall",this.hideClass="".concat(this.class,"--hide"),this.open=!1});module.exports=function(e,t){var n=new UserAccountRegWall(e,t);return n.init(),n};
}, {"10":10,"11":11,"12":12,"17":17,"18":18,"37":37,"44":44,"46":46,"107":107,"241":241}];
window.modules["bizdev-medianet.client"] = [function(require,module,exports){"use strict";var _require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"],addScript=!0;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(n){if(n.adVariant===AD_VARIANTS.DEFAULT){var t=e.dataset.size;addScript&&(addScript=!1,window.WM.UserConsent.addScript({src:"//contextual.media.net/dmedianet.js?cid=8CUIG2452",async:!0,onload:function(){window.dispatchEvent(new CustomEvent("medianet.loaded"))}},ucStates));!function e(){window._mNHandle&&window._mNHandle.queue&&window._mNDetails&&window._mNDetails.loadTag?window._mNHandle.queue.push(function(){return window._mNDetails.loadTag("medianet",t,"medianet")}):window.addEventListener("medianet.loaded",e,{once:!0})}()}})};
}, {"9":9,"16":16}];
window.modules["bizdev-yieldmo.client"] = [function(require,module,exports){"use strict";var _require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,_require3=require(17),mediumMaxWidthListener=_require3.mediumMaxWidthListener,isVisibleViewport=_require3.isVisibleViewport,ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","content-person-prof","content-person","measure-ads","measure-content","measure-market","product-develop"],addScript=!0;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(i){if(i.adVariant===AD_VARIANTS.DEFAULT){var r=e.dataset.id,t=e.dataset.visibleViewport;addScript&&(addScript=!1,window.WM.UserConsent.addScript({src:"//static.yieldmo.com/ym.m2.js",async:!0,onload:function(){return window.dispatchEvent(new CustomEvent("yieldmo.loaded"))}},ucStates));!function i(){if(void 0!==window._ym&&e){var s=window._ym;s.chkPls(),mediumMaxWidthListener(function(i){isVisibleViewport(t,i)?(e.id=r,s.requestPageView([r])):(e.id="",e.innerHTML="")})}else window.addEventListener("yieldmo.loaded",i,{once:!0})}()}})};
}, {"9":9,"16":16,"17":17}];
window.modules["ad-feedback.client"] = [function(require,module,exports){"use strict";var _require=require(7),AdFeedback=_require.AdFeedback,_require2=require(6),ENABLE_AD_FEEDBACK_DISPLAY_ADS=_require2.ENABLE_AD_FEEDBACK_DISPLAY_ADS,ENABLE_AD_FEEDBACK_VIDEO_ADS=_require2.ENABLE_AD_FEEDBACK_VIDEO_ADS,_require3=require(6),shouldHideAdFeedbackLink=_require3.shouldHideAdFeedbackLink;if((ENABLE_AD_FEEDBACK_DISPLAY_ADS||ENABLE_AD_FEEDBACK_VIDEO_ADS)&&!shouldHideAdFeedbackLink){var adFeedback=new AdFeedback;adFeedback.initialize()}
}, {"6":6,"7":7}];
window.modules["ad-slot-header.client"] = [function(require,module,exports){"use strict";var throttle=require(28),_require=require(17),mediumMaxWidthListener=_require.mediumMaxWidthListener,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,_require3=require(9),AD_VARIANTS=_require3.AD_VARIANTS;module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(t){if(t.adVariant===AD_VARIANTS.DEFAULT){var r,i=e.querySelector(".ad-slot"),n=e.querySelector(".adSlotHeaderContainer");if(!i)return;var a=function(){"mobile"===r&&(e.style.height="".concat(i.clientHeight,"px"),n.style.height="".concat(i.clientHeight,"px"))};document.addEventListener("GPTRenderComplete",function(e){var t=e.detail;t&&t.divId===(r&&i&&i.dataset["".concat(r,"SlotId")])&&a()}),function(){var e=document.createElement("iframe");e.className="resizeListenerIframe",e.src="about:blank",e.tabIndex=-1,e.frameBorder=0,e.setAttribute("aria-hidden",!0),i.appendChild(e);try{e.contentDocument.defaultView.addEventListener("resize",throttle(a,100))}catch(e){a()}}(),mediumMaxWidthListener(function(e){r=e?"mobile":"desktop",a()})}})};
}, {"9":9,"16":16,"17":17,"28":28}];
window.modules["alerts.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(19)),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_get=require(1),rest=require(30),STORAGE_KEY="CLOSED_ALERTS",_require=require(16),dispatch=_require.dispatch,_require2=require(31),STICKY_HEADER=_require2.STICKY_HEADER,Alerts=function(){function e(t){var r=this;(0,_classCallCheck2.default)(this,e),_get(window,"kiln.locals",!0)&&(this.banner=t,this.check(),setInterval(function(){return r.check()},3e4))}return(0,_createClass2.default)(e,[{key:"check",value:function(){var e=this,t=this.storageGet();rest.get("/public/api/alerts").then(function(r){r.alerts.filter(function(e){return!t.includes(e.hash)}).forEach(function(t){e.add(t)}),e.banner.childNodes.length?e.showBanner():e.hideBanner(),dispatch(STICKY_HEADER.RECALCULATE)})}},{key:"alertExists",value:function(e){return!!this.banner.querySelector("#".concat(this.instance(e)))}},{key:"instance",value:function(e){return e.uri.split("/").pop().split("@").shift()}},{key:"add",value:function(e){this.alertExists(e)?e.hash!==this.banner.firstChild.getAttribute("data-alert-hash")&&this.banner.replaceChild(this.create(e),this.banner.firstChild):this.banner.appendChild(this.create(e))}},{key:"create",value:function(e){var t=this,r=function(e,t,r){var i=document.createElement("div");return i.className=e,"string"==typeof t&&(i.innerHTML=t),"object"===(0,_typeof2.default)(t)&&i.appendChild(t),r&&(i.id=r),i},i=r("alerts__close","",this.instance(e)),n=r("alerts__container",i);e.title&&n.appendChild(r("alerts__title",e.title)),n.appendChild(r("alerts__content",e.content));var a=r("alerts__item",n);return a.setAttribute("data-alert-hash",e.hash),i.addEventListener("click",function(r){var i=r.target;return t.close(i.id,e.hash)}),a}},{key:"showBanner",value:function(){this.banner.classList.add("alerts--visible")}},{key:"hideBanner",value:function(){this.banner.classList.remove("alerts--visible")}},{key:"close",value:function(e,t){for(var r=this.banner.querySelector("#".concat(e));"alerts__item"!==r.className;)r=r.parentNode;r.parentNode.removeChild(r),this.storageSet(t),dispatch(STICKY_HEADER.RECALCULATE)}},{key:"storageGet",value:function(){var e=window.sessionStorage.getItem(STORAGE_KEY);return e?e.split(",").filter(function(e){return null!=e&&""!=e}):[]}},{key:"storageSet",value:function(e){var t=this.storageGet().join(",");window.sessionStorage.setItem(STORAGE_KEY,t.concat(",",encodeURIComponent(e)))}}]),e}();module.exports=function(e){return new Alerts(e)};
}, {"1":1,"10":10,"11":11,"12":12,"16":16,"19":19,"30":30,"31":31}];
window.modules["ad-slot-client-injector.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_typeof2=_interopRequireDefault(require(19)),_toConsumableArray2=_interopRequireDefault(require(23)),_defineProperty2=_interopRequireDefault(require(18));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;tu}).map(function(e){return e>u?e+1:e}),a++)};e.forEach(function(t,l){0===l&&(u(t,0),o=t);var s=e.find(function(e){return e>=o+r});s&&a=l&&bt+f.buffer-1;m&&y&&p.push(b)}s=p}}),q=s,O&&(S(s,r),o&&document.addEventListener("live-story.updated",function(){_(h)})),document.dispatchEvent(new CustomEvent("QuantumPlacementComplete",{detail:{openSlots:q}})))},_=function(e){var t=(null==p?void 0:p.adSlotIdPattern)||"";if("object"===(0,_typeof2.default)(e)&&!Array.isArray(e)&&t){var r=document.querySelectorAll('[data-ad-id^="'.concat(t,'"]'))||[];r.length&&r.forEach(function(e){var t,r;null===(t=window.AdFuel)||void 0===t||t.destroySlots([null===(r=e.dataset)||void 0===r?void 0:r.adId]),e.remove()}),g(e),O&&w().setupIntersectObserver()}};if(b(function(e){m=e?"mobile":"desktop"}),window.CNN.ads&&(window.CNN.ads.quantum={updateAdSlotPositions:_,toggleShowAdsOnDesktop:function(){y=!y,O=!0,w().init()},getOpenSlots:function(){return q}}),"mobile"!==m||"true"!==e.dataset.enabled)return!1;O=!0,w().init()};module.exports=function(e){subscribe(actions.ADS.SET_AD_VARIANT,function(t){t.adVariant===AD_VARIANTS.DEFAULT&&client(e)})};
}, {"9":9,"10":10,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23}];
window.modules["follow-topics-bar.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_defineProperty2=_interopRequireDefault(require(18)),_require=require(44),authClient=_require.authClient,FollowClient=require(142),Toast=require(143),_require2=require(144),getStickyHeaderRect=_require2.getStickyHeaderRect,_require3=require(107),trackMetrics=_require3.trackMetrics,_require4=require(149),handleFollowTopicTracking=_require4.handleFollowTopicTracking,shouldShowFollowModule=_require4.shouldShowFollowModule,_require5=require(16),actions=_require5.actions,subscribe=_require5.subscribe,ACCOUNT_NAV=actions.ACCOUNT_NAV,FollowTopicsBar=(0,_createClass2.default)(function e(t){var r=this;(0,_classCallCheck2.default)(this,e),(0,_defineProperty2.default)(this,"initListeners",function(){subscribe(ACCOUNT_NAV.LOGOUT_SUCCESS,function(){r.el.classList.add(r.hideClass)})}),(0,_defineProperty2.default)(this,"init",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{r.topicsData=JSON.parse(r.el.getAttribute("data-topics"))||[]}catch(e){r.topicsData=[]}return e.next=3,r.followClient.initFollows();case 3:r.follows=e.sent,r.addFollowListeners(),r.unauthRedirect=r.el.dataset.unauthRedirect||"/account/log-in",r.setupTopicsList(r.topicsList,r.followChipVariation),r.handleScroll(),r.scrollWrapper.addEventListener("scroll",r.handleScroll),r.toast=new Toast(r.el),r.initAnalytics();case 11:case"end":return e.stop()}},e)}))),(0,_defineProperty2.default)(this,"handleScroll",function(){r.scrollWrapper.scrollWidth-r.scrollWrapper.offsetWidth-r.scrollWrapper.scrollLeft>30?r.fade.classList.remove("".concat(r.class,"__fade--hide")):r.fade.classList.add("".concat(r.class,"__fade--hide"))}),(0,_defineProperty2.default)(this,"setupTopicsList",function(e,t){e.forEach(function(e,i){var a=e.dataset.id;r.topics.includes(a)||r.topics.push(a),r.followClient.findFollow(a)&&document.dispatchEvent(new CustomEvent("preselect-chip",{detail:{id:a,targetVariation:t}})),i+1===r.topicsList.length&&r.el.classList.remove(r.hideClass)})}),(0,_defineProperty2.default)(this,"addFollowListeners",function(){document.addEventListener("chip-click",function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var i,a,o,l,n;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.detail,a=i.id,o=i.label,l=i.eventType,n=i.targetVariation,!r.topics.includes(a)||n!==r.followChipVariation){e.next=4;break}return e.next=4,r.handleFollow({id:a,label:o},l);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())}),(0,_defineProperty2.default)(this,"handleFollow",function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,i){var a,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.userLoggedIn){e.next=8;break}return a="select"===i?r.followClient.addFollow:r.followClient.removeFollow,e.next=4,a(t);case 4:e.sent?(document.dispatchEvent(new CustomEvent("chip-click-success",{detail:{id:t.id,eventType:i,targetVariation:r.followChipVariation}})),handleFollowTopicTracking({eventType:i,id:t.id,label:t.label,type:"article byline"})):(document.dispatchEvent(new CustomEvent("chip-click-error",{detail:{id:t.id}})),r.showToast()),e.next=12;break;case 8:return o=r.el.dataset.unauthRedirect,e.next=11,r.followClient.queueUnauthFollows([t]);case 11:window.location.assign("".concat(o,"?").concat(r.chipUnauthRedirectQueryParams));case 12:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()),(0,_defineProperty2.default)(this,"showToast",function(){var e=getStickyHeaderRect("bottom");document.querySelector(".toast-container").style.top="".concat(e+10,"px"),r.toast.show({text:"Error",subtext:"Due to a technical issue, the topic cannot be followed. Please try again later."})}),(0,_defineProperty2.default)(this,"initAnalytics",function(){r.topicsData.length&&trackMetrics({type:"user-interaction",data:{interaction:"module load",componentName:"Follow topic module",componentStellarId:r.el.getAttribute("data-uri"),followTopicNames:r.topicsData.map(function(e){return e.label})}})}),this.el=t,this.class="follow-topics-bar",this.followChipVariation="follow-topics-chip",this.hideClass="".concat(this.class,"--hide"),this.scrollWrapper=this.el.querySelector(".".concat(this.class,"__scroll-wrapper")),this.fade=this.el.querySelector(".".concat(this.class,"__fade")),this.followClient=new FollowClient(authClient),this.topicsList=this.el.querySelectorAll(".chip"),this.topics=[],this.userLoggedIn=authClient.tokenWithAuthn(),this.chipUnauthRedirectQueryParams="source=acq_web_experiments_follow_card-social-bar-topic",this.initListeners()});module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var r;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=new FollowTopicsBar(t),!shouldShowFollowModule(r.userLoggedIn)){e.next=4;break}return e.next=4,r.init();case 4:return e.abrupt("return",r);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();
}, {"10":10,"11":11,"12":12,"16":16,"18":18,"24":24,"25":25,"44":44,"107":107,"142":142,"143":143,"144":144,"149":149}];
window.modules["paragraph.client"] = [function(require,module,exports){"use strict";var _require=require(166),initProductClickEventListener=_require.initProductClickEventListener;module.exports=function(e){initProductClickEventListener(e)};
}, {"166":166}];
window.modules["social-share.client"] = [function(require,module,exports){"use strict";var _require=require(107),trackMetrics=_require.trackMetrics;module.exports=function(e){var t=e.classList.contains("social-share_compact"),c=e.querySelector("[data-type=open]"),a=e.querySelector("[data-type=close]"),r=e.querySelector("[data-type=facebook]"),n=e.querySelector("[data-type=x]"),i=e.querySelector("[data-type=email]"),o=e.querySelector("[data-type=share-links]"),s=e.querySelector("[data-type=copy]"),l=e.querySelector("[data-type=message]"),d=function(){t&&a.click()};s.addEventListener("click",function(){var e=document.createElement("input");e.value=s.dataset.url,s.parentNode.appendChild(e),e.select(),document.execCommand("copy"),s.parentNode.removeChild(e),l.classList.add("show"),u("link","copy"),setTimeout(function(){l.classList.remove("show"),d()},1e3)}),[r,n].forEach(function(e){e.addEventListener("click",function(){window.open(e.dataset.url,"_blank","width=600,height=600,scrollbars=no,resizable=no,noopener,noreferrer"),u(e.dataset.type,"share"),d()})}),i.addEventListener("click",function(){u("email","share"),d()}),c.addEventListener("click",function(){return[c,a,o].forEach(function(e){return e.classList.add("active")})}),a.addEventListener("click",function(){return[c,a,o].forEach(function(e){return e.classList.remove("active")})});var u=function(e,t){try{trackMetrics({type:"social-click",data:{clickObj:{component:"sharing",socialType:e,action:t}}})}catch(e){return}}};
}, {"107":107}];
window.modules["chip.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_createClass2=_interopRequireDefault(require(12)),_classCallCheck2=_interopRequireDefault(require(11)),_defineProperty2=_interopRequireDefault(require(18));function ownKeys(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function _objectSpread(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return _regenerator.default.mark(function t(){var n,o;return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=6;break}return t.next=3,isSubscriber();case 3:n=t.sent,e.style.display=n?"none":"block",r&&(o=e.closest(".header"),formatNavBar(o));case 6:case"end":return t.stop()}},t)})()});return function(r){return e.apply(this,arguments)}}(),initializeSubscribeButton=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,n,o;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.querySelector(".header__subscribe-button"),n=checkGeoCountry("US"),o=getCookie(EnvVars.get("APP_VIEW_COOKIE")),!t||o||!n){e.next=11;break}return r.querySelector(".header__inner").classList.add("header__inner--subscription"),e.next=8,updateSubscribeView(t);case 8:t.addEventListener("click",function(e){var t="".concat(window.location.protocol,"//").concat(window.location.hostname,"/subscription");window.zion_analytics.track(new window.ZION_SDK.GenericLinkClick({href:t,type:e.target.tagName,customAttributes:{Component_id:r.dataset.uri,Component_text:e.target.innerText.trim(),Component_type:"button",Container_type:"navigation"}})),fireTrackingMetrics({interaction:"nav:subscribe"});var n=new URL(t);n.searchParams.append("source","sub_web_nav"),n.searchParams.append("redirect",window.location.href),window.location.href=n.href}),document.addEventListener("login",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)}))),document.addEventListener("logout",(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,updateSubscribeView(t,!0);case 2:case"end":return e.stop()}},e)})));case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}(),initializeAccordion=function(e){e.querySelectorAll(".header__nav-item-accordion").forEach(function(e){e.addEventListener("click",function(){var r;e.classList.toggle("header__nav-item-accordion--open"),null===(r=e.querySelector(".header__nav-item-dropdown"))||void 0===r||r.classList.toggle("header__nav-item-dropdown--open")})})},initializeEditionizers=function(e){var r=e.querySelectorAll(".header__editionizer"),t=e.querySelectorAll(".header__editionizer-button");(0,_toConsumableArray2.default)(t).forEach(function(e){return e.addEventListener("click",function(){e.setAttribute("aria-expanded","true"===e.getAttribute("aria-expanded")?"false":"true"),(0,_toConsumableArray2.default)(r).forEach(function(e){return e.classList.toggle("header__editionizer--active")})})})},formatNavBar=function(e){var r=e.querySelector(".header__right");if(e.getBoundingClientRect().width<960)r&&(r.style.visibility="visible");else if(!window.location.pathname.startsWith("/webview")){var t=function(e){return e.style.display="block"},n=function(e){return e.style.display="none"},o=function(){return e.querySelector(".header__left").getBoundingClientRect().width},i=function(e){d.querySelectorAll(".header__nav-item:nth-child(n+".concat(d.childElementCount-e,")")).forEach(n)},a=e.querySelector(".header__nav");a&&(a.style.visibility="hidden");var c=e.querySelector(".header__nav-more"),u=e.querySelector(".header__nav-more > .header__nav-item-dropdown"),d=e.querySelector(".header__left .header__nav-container");if(d){d.querySelectorAll(".header__nav-item").forEach(t),u.querySelectorAll(".header__nav-item-dropdown-item").forEach(n),n(c);for(var s=calculateNavLeftMaxWidth(e),l=o(),v=!1,_=1;l>s;)v=!0,i(_),l=o(),_++;v&&(t(c),(l=o())>s&&(i(_),l=o(),_++));var m=d.querySelector(".promotion-link")?0:1;u.querySelectorAll(".header__nav-item-dropdown-item:nth-child(n+".concat(d.childElementCount-_+m,")")).forEach(t),a&&(a.style.visibility="visible"),r&&(r.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 r=0,t=Object.entries(moreDropdownLinkZJSAttrs);r=u||c===t?(o.classList.remove("hide"),i.classList.remove("header__subnav-mount--scrolled")):(o.classList.add("hide"),i.classList.add("header__subnav-mount--scrolled"))})})}module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r.addEventListener("click",setNavigationAdobeAnalytics),initializeMenu(r),e.next=4,initializeSubscribeButton(r);case 4:initializeEditionizers(r),initializeAccordion(r),initializeMoreDropdown(),calculatePageStickyThreshold(),formatNavBar(r),initializeNavBorderStyleUpdate(r),window.addEventListener("resize",function(){formatNavBar(r)});case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();
}, {"1":1,"5":5,"10":10,"23":23,"24":24,"25":25,"29":29,"36":36,"97":97,"107":107,"144":144,"160":160}];
window.modules["subnav.client"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_slicedToArray2=_interopRequireDefault(require(36)),_asyncToGenerator2=_interopRequireDefault(require(24));module.exports=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){var t,a,n,i,o,u,l,s,c;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t={},a={zjsNavigationLocation:"header,footer"},n=0,i=Object.entries(a);n0?t.length:"",r=e.closest("[data-".concat(DATA_ATTRIBUTE_PREFIX,"-collection]"))||document.body,o=r===document.body?"body":r.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Collection")],i="";o===ZONE_COMPONENT_NAME&&(i=t.indexOf(r));var a=Array.from(r.querySelectorAll('[data-uri*="/_components/"]')),c=a.length;return{collection_type:o,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,r=t.dataset["".concat(DATA_ATTRIBUTE_PREFIX,"Observe")];if(r===COMPONENT_ON_EVENT&&n||r===COMPONENT_OFF_EVENT&&!n){var o=n?window.ZION_SDK.ComponentOnScreen:window.ZION_SDK.ComponentOffScreen,i=t.dataset.uri,a=function(){return setTimeout(function(){return trackZionEvent(new o({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="",r="",o=e.target,i=o.closest("a[href]"),a=o.closest("[data-uri]"),c=getAggregateComponentElement(o);i&&i.href&&(r=i.href);var _=_objectSpread(_objectSpread({},getCustomProperties(o=c||a)),c?getCustomProperties(a):{}),s=e.target!==o?getCustomProperties(e.target):{};if(o){if(n=o.dataset.uri,"gallery"===(t=getComponentName(n))){var l,E=e.target.classList[0];E.includes("next")?l=_.carousel_item_index===_.carousel_item_length?1:_.carousel_item_index+1:E.includes("prev")&&(l=1===_.carousel_item_index?_.carousel_item_length:_.carousel_item_index-1),_.carousel_item_index=l}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(o)),_objectSpread(_objectSpread({},s),_)),{},{word_count:getWordCount(o),destination_url:r})}))}})}function initializeAnalyticsEvents(){isPageVariant(ZION_BEHAVIOURAL_ENABLED_PAGE_VARIANTS)&&(initializeOnOffEvents(),initializeClickEvents())}window.ZION_SDK?initializeAnalyticsEvents():window.addEventListener("zion.loaded",initializeAnalyticsEvents);
}, {"2":2,"5":5,"10":10,"18":18,"44":44,"89":89,"240":240}];
window.modules["article-scroll-metrics.legacy"] = [function(require,module,exports){"use strict";var _require=require(107),trackMetrics=_require.trackMetrics,METRICS=[{value:1,type:"article-start",data:{interaction:"article start"}},{value:25,type:"article-twentyfive",data:{interaction:"article 25"}},{value:50,type:"article-fifty",data:{interaction:"article 50"}},{value:75,type:"article-seventyfive",data:{interaction:"article 75"}},{value:100,type:"article-complete",data:{interaction:"article complete"}}],TRACK_PERCENTAGES=METRICS.map(function(e){return e.value}),_values=[].concat(METRICS);function manageMetrics(e){TRACK_PERCENTAGES.forEach(function(t){if(e>=t){if(i=t,!_values.find(function(e){return e.value===i}))return;var a=METRICS.find(function(e){return e.value===t}),r=a.type,n=a.data;trackMetrics({type:r,data:n}),_values=_values.filter(function(e){return e.value!==t})}var i})}function trackPercentageSeen(e){var t=e.querySelectorAll("p.paragraph"),a=t.length,r=Math.round(.25*a),n=Math.round(.5*a),i=Math.round(.75*a),c=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var c=e.target.para_index;c===a||1===a?(manageMetrics(100),t.disconnect()):c===i?manageMetrics(75):c===n?manageMetrics(50):c===r?manageMetrics(25):1===c&&manageMetrics(1),t.unobserve(e.target)}})});t.forEach(function(e,t){e.para_index=t+1,c.observe(e)})}window.addEventListener("load",function(){var e=document.querySelector(".article__content");e&&trackPercentageSeen(e)});
}, {"107":107}];
window.modules["bizdev-wunderkind.legacy"] = [function(require,module,exports){"use strict";var _require=require(9),AD_VARIANTS=_require.AD_VARIANTS,_require2=require(16),subscribe=_require2.subscribe,actions=_require2.actions,EnvVars=require(5),_require3=require(29),isEditionPage=_require3.isEditionPage,isEspanolPage=_require3.isEspanolPage,_require4=require(427),isEligibleForFocusMode=_require4.isEligibleForFocusMode,ucStates=["iab","data-share","data-sell","data-store","ads-contextual","ads-person-prof","ads-person","measure-ads","measure-market","product-develop"],initWunderkind=function(){var e=isEspanolPage()?EnvVars.get("ENABLE_WUNDERKIND_ES"):EnvVars.get("ENABLE_WUNDERKIND"),i=!!isEspanolPage()&&EnvVars.get("WUNDERKIND_SRC_ES")||(isEditionPage()?EnvVars.get("WUNDERKIND_SRC_EDITION"):EnvVars.get("WUNDERKIND_SRC"));e&&window.WM.UserConsent.addScript({src:i,id:"wunderkind_script",async:!0},ucStates)},waitForAdVariant=function(){subscribe(actions.ADS.SET_AD_VARIANT,function(e){e.adVariant===AD_VARIANTS.DEFAULT&&initWunderkind()})};isEligibleForFocusMode()?waitForAdVariant():initWunderkind();
}, {"5":5,"9":9,"16":16,"29":29,"427":427}];
window.modules["campaign-promo-events.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(44),authClient=_require.authClient,NewsletterClient=require(249),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"));
}, {"10":10,"24":24,"25":25,"44":44,"249":249}];
window.modules["chartbeat-setup.legacy"] = [function(require,module,exports){"use strict";var _interopRequireDefault=require(10),_classCallCheck2=_interopRequireDefault(require(11)),_createClass2=_interopRequireDefault(require(12)),_defineProperty2=_interopRequireDefault(require(18)),_require=require(45),isSection=_require.isSection,SECTIONS=_require.SECTIONS,isStrategyRegistered=!1,CnnChartbeatVideoStrategy=function(){function e(t){var i=this;(0,_classCallCheck2.default)(this,e),(0,_defineProperty2.default)(this,"_cbPlayer",null),(0,_defineProperty2.default)(this,"_currentAdPosition",null),(0,_defineProperty2.default)(this,"_ready",!1),(0,_defineProperty2.default)(this,"_strategyName","CNN"),(0,_defineProperty2.default)(this,"_videoPlayed",!1),(0,_defineProperty2.default)(this,"_videoStartTime",null),(0,_defineProperty2.default)(this,"_viewStartTime",this._now()),(0,_defineProperty2.default)(this,"_onPlaybackReady",function(){i._ready=!0}),(0,_defineProperty2.default)(this,"_onVideoPlaying",function(){i._videoPlayed||(i._videoStartTime=i._now(),i._videoPlayed=!0)}),this._cbPlayer=t,this._subscribeEvents()}return(0,_createClass2.default)(e,[{key:"_now",value:function(){return(new Date).getTime()}},{key:"_subscribeEvents",value:function(){this._cbPlayer.readyState>2&&this._onPlaybackReady(),this._cbPlayer.currentTime>0&&!this._cbPlayer.paused&&!this._cbPlayer.ended&&this._onVideoPlaying(),this._cbPlayer.canplay.add(this._onPlaybackReady),this._cbPlayer.playing.add(this._onVideoPlaying)}},{key:"getAdPosition",value:function(){return this._cbPlayer.getAdPosition()}},{key:"getAutoplayType",value:function(){return this._cbPlayer.getAutoplayType()}},{key:"getBitrate",value:function(){return this._cbPlayer.getBitrate()}},{key:"getContentType",value:function(){return this._cbPlayer.getContentType()}},{key:"getCurrentPlayTime",value:function(){return this._cbPlayer.getCurrentPlayTime()}},{key:"getPlayerType",value:function(){return this._cbPlayer.getPlayerType()}},{key:"getSections",value:function(){return this._cbPlayer.getSections()}},{key:"getState",value:function(){return this._cbPlayer.getState()}},{key:"getStrategyName",value:function(){return this._strategyName}},{key:"getThumbnailPath",value:function(){return this._cbPlayer.getThumbnailPath()}},{key:"getTitle",value:function(){return this._cbPlayer.getTitle()}},{key:"getTotalDuration",value:function(){return this._cbPlayer.getTotalDuration()}},{key:"getVideoPath",value:function(){return this._cbPlayer.getVideoPath()}},{key:"getViewAdPlayTime",value:function(){return this.timeElapsed(this._viewStartTime)}},{key:"getViewPlayTime",value:function(){if(this._videoPlayed)return this.timeElapsed(this._viewStartTime)}},{key:"getViewStartTime",value:function(){return this.timeElapsed(this._viewStartTime)||0}},{key:"isReady",value:function(){return this._ready}},{key:"timeElapsed",value:function(e){return void 0===e?0:this._now()-e}}]),e}();function registerChartbeatVideoStrategy(){!0!==isStrategyRegistered&&(window._cbv_strategies=window._cbv_strategies||[],window._cbv_strategies.push(CnnChartbeatVideoStrategy),isStrategyRegistered=!0)}(0,_defineProperty2.default)(CnnChartbeatVideoStrategy,"verify",function(e){return"function"==typeof e.fromFave}),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||{},i=(window.CNN||{}).omniture||{};registerChartbeatVideoStrategy();var n,r,a,o,l=window._sf_async_config=window._sf_async_config||{};l.uid=37612,l.domain=(o="cnn.com","es"===(null===(n=window.CNN.contentModel)||void 0===n?void 0:n.brandSite)&&(o="cnnespanol.".concat(o)),-1!=window.location.hostname.indexOf("edition")&&(o="edition.".concat(o)),"prod"!=(null===(r=window.CNN)||void 0===r?void 0:null===(a=r.contentModel)||void 0===a?void 0:a.environment)&&(o="dev.".concat(o)),o),l.sections=t.vertical,l.authors=i.cap_author,l.title=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return isSection(SECTIONS.HOMEPAGE)?e.replace(" Desktop","").replace(" Mobile",""):e}(i.headline),l.flickerControl=!1,l.articleBlockSelector="div.card,div.container__item,p.paragraph>a",l.autoDetect=!1,l.path=function(){var e,t,i=window.location.hostname,n=null===(e=(t=document.querySelector("[rel=canonical]")).getAttribute)||void 0===e?void 0:e.call(t,"href");try{return i+new URL(n).pathname}catch(e){return i+document.location.pathname}}(),window.WM.UserConsent?e():window.addEventListener("user-consent.loaded",e)}(),module.exports={CnnChartbeatVideoStrategy:CnnChartbeatVideoStrategy};
}, {"10":10,"11":11,"12":12,"18":18,"45":45}];
window.modules["focus-mode-gpt-service.legacy"] = [function(require,module,exports){"use strict";var focusModeEventTimeout,_interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),EnvVars=require(5),_require=require(427),FOCUS_MODE_EVENT=_require.FOCUS_MODE_EVENT,FOCUS_MODE_CONFIGS=_require.FOCUS_MODE_CONFIGS,isEligibleForFocusMode=_require.isEligibleForFocusMode,_require2=require(29),getCookie=_require2.getCookie,FOCUS_MODE_TIMEOUT=EnvVars.get("FOCUS_MODE_TIMEOUT"),PRISM_SCRIPT_SRC=EnvVars.get("PRISM_SRC"),GPT_SCRIPT_SRC=EnvVars.get("FOCUS_MODE_GPT_SCRIPT_SRC"),ENABLE_FOCUS_MODE=EnvVars.get("ENABLE_FOCUS_MODE"),FOCUS_MODE_UC_STATES=["data-store","ads-contextual","ads-person-prof","ads-person","vendor"],GPT_SCRIPT_ID="GPTScript",FOCUS_MODE_CLASS="focus-mode-sponsored",FOCUS_MODE_STYLES="\nhtml[data-layout-uri*='layout-with-rail'] .".concat(FOCUS_MODE_CLASS,' .ad-slot:not(.adSlotLoaded)[data-uri*="/_components/ad-slot/"]:not([data-desktop-slot-id="ad_focus_btf_01"]),\nhtml[data-layout-uri*=\'layout-with-rail\'] .').concat(FOCUS_MODE_CLASS," .ad-qtm,\nhtml[data-layout-uri*='layout-with-rail'] .").concat(FOCUS_MODE_CLASS," [data-uri*=\"/_components/bizdev\"],\nhtml[data-layout-uri*='layout-with-rail'] .").concat(FOCUS_MODE_CLASS," .teads-inread,\nhtml .").concat(FOCUS_MODE_CLASS," .ad-slot-rail {\n display: none;\n}\nhtml .").concat(FOCUS_MODE_CLASS," .ad-slot-dynamic[data-uri*='cnn-focus-mode-inline-ad'] {\n display: flex;\n}\n"),SECTION=window.CNN.contentModel.section,isEdition=window.CNN.contentModel.edition,RECIRC_DATA={pageElement:{wrapperClassName:"layout__end",elementClassName:"content-recs"},upNext:{recsmodel:"related",title:"Up next",numberOfItems:5,contentTypes:"article",layout:"container_list-headlines-with-read-times"},mostRead:{recsmodel:"popularity",title:"Most read",numberOfItems:10,contentTypes:"article",layout:"container_list-headlines-ranked"}},sendCustomEventOnce=function(e){void 0===window.CNN.ads.isFocusMode&&(document.dispatchEvent(new CustomEvent(FOCUS_MODE_EVENT,{detail:{isFocusMode:e}})),window.CNN.ads.isFocusMode=e)},injectGpt=function(){window.googletag=window.googletag||{cmd:[]},document.querySelector("#".concat(GPT_SCRIPT_ID))?console.warn("Focus Mode: GPT script already exists"):window.WM.UserConsent.addScript({src:GPT_SCRIPT_SRC,async:!0,id:GPT_SCRIPT_ID},FOCUS_MODE_UC_STATES)},insertFocusModeStyles=function(){var e=document.createElement("style");e.textContent=FOCUS_MODE_STYLES,document.head.appendChild(e)},getLimitedAdsParam=function(){var e,t=null===(e=getUrlParam("adsqa"))||void 0===e?void 0:e.split("=");return Boolean(t&&"status"===t[0]&&"limited_ads"===t[1])},getCDPID=function(){return new Promise(function(e){var t=getCookie("CDPID");if(t){var n=JSON.parse(t).cdpId;e(n)}else window.addEventListener("message",function(t){var n,o=null===(n=document.getElementById("prism_toolkit"))||void 0===n?void 0:n.contentWindow;t.source==o&&e(t.data)}),window.WM.UserConsent.addScript({src:PRISM_SCRIPT_SRC},FOCUS_MODE_UC_STATES)})},defineAdSlot=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t){var n,o,a,r,i,s,d,c,u,l,_,S,g,C,p,m,E,O,f,T;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.networkId,o=t.adDimensions,a=t.elementId,r=t.targeting,i=SECTION?"".concat(n,"/").concat(SECTION):n,s=window.CNN.cep_topics||{},d=s.cep_brsf,c=void 0===d?[]:d,u=s.cep_iabt,l=void 0===u?[]:u,_=s.cep_sent,S=void 0===_?[]:_,g=s.cep_tags,C=void 0===g?[]:g,p=s.short_source_id,m=void 0===p?"":p,E=s.source_id,O=void 0===E?"":E,getLimitedAdsParam()&&(r.status=["limited_ads"]),(f=document.createElement("div")).id=a,f.classList.add("focus-mode-top-ad"),document.querySelector(".ad-slot-header__container").appendChild(f),e.next=10,getCDPID();case 10:T=e.sent,googletag.cmd.push(function(){r.status?googletag.defineSlot(i,o,a).setTargeting("pos",r.pos).setTargeting("status",r.status).addService(googletag.pubads()):googletag.defineSlot(i,o,a).setTargeting("pos",r.pos).addService(googletag.pubads()),googletag.pubads().setTargeting("cep_brsf",c).setTargeting("cep_iabt",l).setTargeting("cep_sent",S).setTargeting("cep_tags",C).setTargeting("short_source_id",m).setTargeting("source_id",O).setPublisherProvidedId(T).collapseEmptyDivs(),googletag.enableServices()});case 12:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),handleSlotRenderEnded=function(e,t,n){if(e.slot.getSlotElementId()===t){var o=e.slot.getTargeting("pos"),a=e.isEmpty,r=o.includes(n[0])&&!a;r&&(insertFocusModeStyles(),document.body.classList.add(FOCUS_MODE_CLASS),clearTimeout(focusModeEventTimeout),sendCustomEventOnce(r),isEdition||(insertRecircModule("mostRead"),insertRecircModule("upNext")))}},checkSponsoredSession=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(t,n){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){window.googletag&&googletag.apiReady?e():googletag.cmd.push(e)});case 2:googletag.cmd.push(function(){googletag.display(t)}),googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){handleSlotRenderEnded(e,t,n)})});case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),getUrlParam=function(e){return new URLSearchParams(window.location.search).get(e)},insertRecircModule=function(e){if(RECIRC_DATA[e]){var t=document.querySelector(".".concat(RECIRC_DATA.pageElement.wrapperClassName)),n=document.createElement("div"),o="recirc-module-".concat(e.replace(/[\s-]+/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase());Object.keys(RECIRC_DATA[e]).forEach(function(t){n.dataset[t]=RECIRC_DATA[e][t]}),n.classList.add(o,RECIRC_DATA.pageElement.elementClassName),t.prepend(n),window.CNN.launchContentRecs(document.querySelector(".".concat(o)))}},isOptedOut=function(){var e=getUrlParam("focus_mode");return!isEligibleForFocusMode()||"false"===e||null===e&&!getLimitedAdsParam()&&!1===ENABLE_FOCUS_MODE},handleOptInRedirect=function(){var e=getUrlParam("focus_mode"),t=getUrlParam("adsqa");"true"!==e||t||(window.location.search+="".concat(window.location.search?"&":"","adsqa=status%3Dlimited_ads"))},initGptService=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:if(!isOptedOut()){e.next=4;break}sendCustomEventOnce(!1),e.next=10;break;case 4:return handleOptInRedirect(),focusModeEventTimeout=setTimeout(function(){var e=getLimitedAdsParam();sendCustomEventOnce(e)},FOCUS_MODE_TIMEOUT),injectGpt(),e.next=9,defineAdSlot(FOCUS_MODE_CONFIGS.gptSlot);case 9:checkSponsoredSession(FOCUS_MODE_CONFIGS.gptSlot.elementId,FOCUS_MODE_CONFIGS.gptSlot.targeting.pos);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();initGptService(),module.exports={FOCUS_MODE_CLASS:FOCUS_MODE_CLASS,GPT_SCRIPT_ID:GPT_SCRIPT_ID};
}, {"5":5,"10":10,"24":24,"25":25,"29":29,"427":427}];
window.modules["relevance-user.legacy"] = [function(require,module,exports){"use strict";var _require=require(420),trackUserViewedContent=_require.trackUserViewedContent;trackUserViewedContent(window.CNN.contentModel);
}, {"420":420}];
window.modules["shared-arkose-newsletters.legacy"] = [function(require,module,exports){"use strict";var nlArkoseEnforcement,daexData,_interopRequireDefault=require(10),_regenerator=_interopRequireDefault(require(25)),_asyncToGenerator2=_interopRequireDefault(require(24)),_require=require(250),createArkoseScript=_require.createArkoseScript,getDaexData=_require.getDaexData,enforcementOnError=_require.enforcementOnError,MAX_RETRY_COUNT=_require.MAX_RETRY_COUNT,retryCount=0,setupCbName="setupArkoseDualNewsletters",nlLoadedEvent="cnn-nl-arkose-loaded",setArkoseConfig=function(e){var r=e.arkoseOnReady,n=e.arkoseOnCompleted,t=e.arkoseOnError,a=e.setBy;nlArkoseEnforcement.setConfig({data:daexData&&{blob:daexData}||{},onReady:function(){r&&r({enforcement:nlArkoseEnforcement})},onCompleted:n,onError: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:return retryCount++,e.next=3,enforcementOnError({enforcementInstance:nlArkoseEnforcement,callbackFnName:setupCbName,retryTimes:retryCount});case 3:retryCount===MAX_RETRY_COUNT&&t&&t();case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),window.arkoseEnforcementCNN.lastSetBy=a,nlArkoseEnforcement.reset()},resetArkoseConfig=function(){var e=(0,_asyncToGenerator2.default)(_regenerator.default.mark(function e(r){return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(daexData){e.next=4;break}return e.next=3,getDaexData("NEWSLETTERS");case 3:daexData=e.sent;case 4:nlArkoseEnforcement?setArkoseConfig(r):(createArkoseScript({srcEnvVar:"ARKOSE_NEWSLETTERS_SRC",callbackFnName:setupCbName,id:"arkose-newsletters-script"}),document.addEventListener(nlLoadedEvent,function(){setArkoseConfig(r)}));case 5:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}();window.arkoseEnforcementCNN={},window[setupCbName]=function(e){nlArkoseEnforcement=e,document.dispatchEvent(new CustomEvent(nlLoadedEvent))},window.arkoseEnforcementCNN.enforcementSetup=resetArkoseConfig;
}, {"10":10,"24":24,"25":25,"250":250}];
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=["data-share","data-sell","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();
// ]]