-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEDG3.JS
75 lines (44 loc) · 33.2 KB
/
EDG3.JS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="es-mx" dir="ltr" >
<head data-info="f:msnallexpusers,infra-ceto1-t,muidflt59cf,prg-hp-staginc,prg-hub-stagingc,platagyhz3cf,article5cf,prg-1sw-sacfamli2iglbt,preprg-1sw-esprt-cfgenre,prg-1sw-curnic,prg-1sw-idxtsd,prg-1sw-infra-ctrl,prg-1sw-river-pc-c,prg-p2-swprev8,prg-1sw-wxrt30m,prg-p2-swprevcap8,prg-adspeek,prg-traffic-staginc,btrecrow2,1s-winauthservice,prg-cg-imgperf,prg-1sw-c-newgrd,prg-pr2-trgctrlpm,prg-1sw-mkin-rlch-t,btie-tuneminbid-t,btie-aspectu2a-sj-c,prg-ias,routentpring3t,routewinring3t,1s-fcrypt,prg-wtch-blv3t3,prg-spr-vecatfus,artglyrank5cf,prg-1sw-pvff,prg-1sw-nocooldown,prg-1sw-pridup,prg-1sw-pvfuz,prg-winhp-tlesmxc,prg-winhp-tlptbr-c,prg-pr2-sdfuz0112-c,prg-1sw-vfpp2,prg-ctr-nouu,prg-1sw-wrapi,prg-upsaip-w1-t,prg-upsaip-r-t,prg-wx-anmpr,prg-wtch-ctrlbar-c,prg-wx-sbn-vm,1s-rpssecautht,prg-1sw-p1wtrclm,prg-pr2-efetchc,prg-1sw-theicon,prg-1sw-dlicon,prg-1sw-v523,prg-cg-monoline,prg-minusfdhead,prg-sastorage-t,mktautostextads,preflighttest,prg-hd-core10,prg-hd-core,prg-hd-top10,traffic-ntp-ssdinmap,prg-1s-trf-spc2-cta,prg-1s-trf-super-c2,prg-cm-rev,prg-ssd-arsm-v2,prg-ssd-cam-v2,prg-ssd-gas,prg-ssd-inc-v2,prg-ssd-sum,prg-supervidhov2,prg-1s-tpsndtdc14-t,prg-1s-tpsndtdc14,prg-1s-tpuet-c,prg-wpo-gldyn,prg-fetchinconfigc,prg-tg-ntpsdv2-t,prg-1s-tgf2sd-ui,prg-nogreetrotac,prg-ind-c,prg-wpo-adbouncerc,prg-relativerevc,prg-wpo-weat-c,prg-realestate-t1,1s-xaprentp,prg-real-estate,prg-wpo-rentp,prg-wpo-ctrimvec,prg-wpo-crsl-allfz-c,prg-wpo-crsl-all-fz,prg-akntpcrscall,prg-1sw-invidpvtrk,prg-1sw-ilrpvt,prg-1sw-savc,prg-1sw-adsc,prg-sh-prng1abdcrt,prg-sh-prng1orgabdcrt,prg-1sw-pr2pfneg,prg-1sw-pr2river20,prg-pr2-prefneg,prg-pr2-spotifyhurow2r2,prg-cache1day,1s-compicsync,ads-xandradfull,1s-defaultscn,prg-1sw-pde0,1s-defaultscnw,prg-1sw-hce,prg-1sw-tbrcounter,sa-rewards-dci-t,prg-1sw-cstatus,prg-ads-ct-intl,ads-stableidlookup,prg-webvitals-edgw,prg-1sw-wpofeedv2,prg-pr2-wpofeedv2,prg-1sw-symmap,prg-webvitals-wthrd,prg-ads-fb-xdr,prg-1sw-aqwd,prg-wx-dhgrd,1s-contview-obst,prg-c-imrsve-fscrn,prg-1sw-bnrkfuzc,prg-1sw-wxncrp2,prg-1sw-wxncrp1c,prg-views-segoeo,prg-deeplinkfix-c,prg-1sw-sfrp,prg-offapp,prg-1sw-trimvec,prg-sh-ads,prg-useonesepath,prg-sh-shstrp,prg-wtchdedupe,prg-oldwtchcrsl,prg-rv-discnt-e1,prg-wtchrrctrl,prg-1sw-wxncdsc,1s-disable-slctn-c,prg-navpadc,prg-wpo-coneuserid,prg-1sw-simpleperf,prg-adtimeout5,prg-cf-control,prg-1sw-uspollen,prg-wpotrmt-ship,prg-wpomerge-lyt,prg-wpomergetrmt,prg-wpomerge-tsclps,prg-wpomerge-tsr,prg-1sw-p1idxod,prg-wx-l1v3,prg-autos-ranbs,prg-atmk-ranint,prg-atmk-ribs,prg-xandr-no-cap,prg-hpnbdau,prg-1s-cfnrtt,prg-1s-cfnrt;" data-client-settings="{"aid":"B207F8EAE600420D8539D78B0C9C91B3", "fd_muid":"18C2E1FCD8096E181CB3F335D9286F89", "static_page":"false", "queryparams":"?locale=es-419&title=Nueva%20pesta%C3%B1a&dsp=0&sp=internet-start.net", "apptype":"edgeChromium", "pagetype":"ntp", "configRootUrl":"https://assets.msn.com/config/v1/", "feedBaseDomain":"", "deviceFormFactor":"desktop", "pageGenTime":"2023-03-09T01:21:46Z", "pcsInfo":{"v":"20230303.8_master", "env":"prod"}, "locale":{"language":"es", "market":"mx", "content":{"language":"es", "market":"mx"}, "display":{"language":"es", "market":"mx"}}, "featureFlags":{ "wpoEnabled": "true" }, "market":{ "requestInput":{ "language":"es","region":"419", "geo_country":"MX"}, "detection":{ "type":"implicitExisting","geo_country":"mx"}}, "servicesEndpoints":{"staticConfig": {"domain": "https://assets.msn.com", "path": "/config/v3/", "v": ""},"crs": {"domain": "", "path": "/resolver/api/resolve/", "v": "v3"},"feedService": {"domain": "https://assets.msn.com", "path": "", "v": ""},"enterpriseFeedService": {"domain": "https://ent-api.msn.com/", "path": "", "v": ""}}, "bundleInfo":{"v":"20230308.372", "alias":"latest"}, "os":"windows", "browser":{"browserType":"edgeChromium", "version":"110", "ismobile":"false"}, "domain":"ntp.msn.com", "detection":{"ip":"189.253.105.37"}, "geo_country":"MX", "geo_countryname":"Mexico", "geo_subdivision":"Guanajuato", "geo_zip":"37233", "geo_city":"Leon", "geo_lat":"21.125", "geo_long":"-101.6235", "requestMuid":"18C2E1FCD8096E181CB3F335D9286F89"}" data-diagnostics="{"mc":{"spt":"es-419%7c%7cmx%7ces-mx%7ces-mx%7ces%7c%7cRefA%3dB7F73467E00640FFA4BBF8ED659020C0.RefC%3d2023-03-03T04%3a29%3a19Z"}}">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="origin-trial" content="Asd4Imdcefws56wU/n2sbr21tHksHllCx4INItb2S1ciwzE+FhSm+3UiKGHRSxtq5y3R8KFlrsE0qrCwXNw/SooAAABseyJvcmlnaW4iOiJodHRwczovL21zbi5jb206NDQzIiwiaXNTdWJkb21haW4iOnRydWUsImZlYXR1cmUiOiJNc1VzZXJBZ2VudExhdW5jaE5hdlR5cGUiLCJleHBpcnkiOjE2ODgxNjk2MDB9">
<title></title>
<script type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=">
try {
window._pageTimings = window._pageTimings || {};
window._pageTimings["TTJSStart"] = Math.round(performance.now());
} catch (e) {
console.error("Error in adding TTJSStart marker");
}
</script>
<script nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4="> window.NONCE_ID="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=";</script>
<script nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=">
function getCookieConsentRequired(){return false;}
window._ssrServiceEntryUrl="/bundles/v1/edgeChromium/latest/SSR-service-entry.36b977244e982ce4d376.js";
</script>
<div id="ssr" data-ssr-entry="/bundles/v1/edgeChromium/latest/SSR-service-entry.36b977244e982ce4d376.js" hidden></div>
<script type="text/javascript" id="inlinehead-inline-script" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=">
window["_webWorkerBundle"] = "/bundles/v1/edgeChromium/latest/web-worker.0766d37793793ac47f55.js";
window["_authCookieName"] = "aace";
!function(){"use strict";var e={},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){{const e=n.e,t={};n.e=function(o){return e(o).catch((function(e){const i=t.hasOwnProperty(o)?t[o]:2;if(i<1)throw e;return new Promise((function(e){setTimeout((function(){t[o]=i-1,e(n.e(o))}),100)}))}))}}}();var o;function i(e){try{if(e)return JSON.parse(e)}catch(e){}return null}function s(e){try{return decodeURIComponent(e)}catch(e){}}function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}!function(e){e.Android="android",e.Ios="ios",e.Linux="linux",e.Macos="macos",e.Windows="windows",e.Xbox="xbox"}(o||(o={}));const a="data-client-settings",c="Authorization",u="UserAuthToken";var d,l;!function(e){e.Presentation="presentation"}(d||(d={})),function(e){e.Unknown="Unknown",e.Portrait="Portrait",e.Landscape="Landscape"}(l||(l={}));var h,g;!function(e){e[e.Undefined=0]="Undefined",e[e.Basic=1]="Basic",e[e.Advanced=2]="Advanced",e[e.Premium=3]="Premium"}(h||(h={})),function(e){e.Init="init",e.Config="config",e.Targeted="targeted",e.Sticky="sticky",e.NoSticky="no_sticky",e.Admin="admin",e.Forced="forced",e.Manual="manual"}(g||(g={}));const p=new Set(["winp0dash","winp1taskbar","winp1taskbarent","winp1taskbardirect","winp1taskbardirectent","winp1taskbarent","winp2juntaskbar","winp2juntaskbarent","winp2","winp2ent","winp2fp","winp2fpent","winp2fptaskbar","winp2fptaskbarent","winp2fptaskbarhover","winp2fptaskbarhoverent","winp2widget","winp2widgetent"]),f=new Set(["msedgdhp","msedgdhphdr","msedgntphdr","msedgntp","msedgdhp","entnewsntp"]);function m(){var e;return r()?i(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName("peregrine-widget-settings")[0])||void 0===e?void 0:e.getAttribute(a))):null}var w,b,v;let y;function k(e,t){if(!e)return null;if(t)return function(e){const t=document.cookie.match(`\\b${e}=([^;]*)`);return t?s(t[1]):null}(e);if(!y){const e="undefined"!=typeof document&&document.cookie.split("; ");y={};const t=e&&e.length;for(let n=0;n<t;n++){const t=e[n].indexOf("=");y[e[n].slice(0,t).toLocaleLowerCase()]=s(e[n].slice(t+1))}}const n=e.toLocaleLowerCase();return y[n]||null}function S(e){const t=k(e);return t&&encodeURIComponent(t)||null}function A(e){let t,n=!1;const o=function(){return n||(n=!0,t=e()),t};return o.cache={clear:()=>{n=!1,t=void 0}},o}!function(e){e[e.Unknown=0]="Unknown",e[e.NotSignedIn=1]="NotSignedIn",e[e.SignedIn=2]="SignedIn"}(w||(w={})),function(e){e.MSA="MSA",e.AAD="AAD",e.UNSUPPORTED_SOVEREIGNTY="UNSUPPORTED_SOVEREIGNTY"}(b||(b={})),function(e){e[e.NonAadAccount=0]="NonAadAccount",e[e.AadAccount=1]="AadAccount",e[e.Unknown=2]="Unknown"}(v||(v={}));const I="currentaccount",O=A((()=>{const e=k(I,!0),t=e&&i(e),{login_hint:n}=t||{};return n&&t})),q=A((()=>!!k(I)));let E=new class{constructor(){r()?(this.isDebugEnabled=(function(e,t){const n=t.replace(/[[\]]/g,"\\$&"),o=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(e);if(!o)return null;const i=o[2];return decodeURIComponent(i.replace(/\+/g," "))||""}(window.location.href,"debug")||"").toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!n.g.TEST_ENV&&(window.webpackRequire=n)):this.isDebugEnabled=!1}getLoggingService(){return null}isDebug(){return this.isDebugEnabled}setDebug(e){this.isDebugEnabled=e}setTags(e){}log(e,t){this.isDebug()&&console.info(e)}logError(e){console.error(e)}logCallback(e){this.isDebug()&&console.info(e())}logObjects(...e){this.isDebug()&&console.log(...e)}logSingleObject(e,t){this.isDebug()&&console.log(e)}};let x,C=new class extends class{constructor(e){this.storage=e}get supported(){return!!this.storage}getItem(e){if(this.supported)return this.storage.getItem(e)}getObject(e,t){const n=this.getItem(e);if(null!=n){const e=i(n);if(null!=e)return e}return t}key(e){if(this.supported&&e>=0)return this.storage.key(e)}keys(){return this.supported?Object.keys(this.storage):[]}setObject(e,t){void 0!==t?this.setItem(e,JSON.stringify(t)):this.removeItem(e)}removeObject(e){const t=this.removeItem(e);if(null!=t)return i(t)}setItem(e,t,n=!0){if(this.supported)try{if(!t)throw"Attempted to store null/undefined value: "+t;this.storage.setItem(e,t)}catch(e){if(!n)throw e;E.logError(e)}else if(!n)throw new Error("WebStorage not supported")}get length(){if(this.supported)return this.storage.length}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}clear(){this.supported&&this.storage.clear()}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n<this.storage.length;n++){const o=this.key(n);o&&o.includes(e)&&t.push(o)}for(let e=0;e<t.length;e++)this.removeItem(t[e])}}{constructor(){let e=null;if(r())try{e=localStorage}catch(e){}super(e)}};function _(e){return!x&&r()&&(x=T(document.head.dataset.info||"")),x&&x.has(e)}function T(e){const t=(e||"").replace(/(^f:|;.*$)/g,"").split(",");return new Set(t)}const N="1s-tokens",P=12096e5;var R;let M,U;function L(){return M=F(),M&&M.accessToken?M:void 0}function D(){if(M=F(),!M)return"notAvailable";const e=M.expiresOn,t=new Date(e),n="expired";if(!t.getTime())return n;const o=new Date,i="valid";if(t>o)return i;if(_("prg-noext"))return n;{const e=O();if(e&&e.account_type===b.MSA){if(new Date(t.getTime()+P)>o)return i}}return n}function F(){return M=M||void 0===M&&C.getObject(N)||null,M}!function(e){e.NotAvailable="notAvailable",e.Expired="expired",e.Valid="valid"}(R||(R={}));class W{constructor(e,t){if(this.url=new URL(e.href),this.innerHeight=e.innerHeight,this.devicePixelRatio=e.devicePixelRatio,this.canUseCssGrid=e.canUseCssGrid,this.requestId=e.requestId,this.cookie=e.cookie,this.referer=e.referer,this.userAgent=e.userAgent,this.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{},this.isPssrMode=t,t){const e=H("OSATE",this.cookie),t=!!e&&"1"===e,n=H("OSAT",this.cookie);if(t&&n||!e&&!n)return this.msalAuthReady=!0,void(n&&(this.oneServiceHeaders.Authorization=`Bearer ${n}`));this.msalAuthReady=!1,this.pssrRejectedReason=e&&!t?"interactiveLogin":e&&!n?"missOSAT":"missOSATE"}}static getInstance(){return n.g.TEST_ENV&&!W._instance&&j({href:"http://localhost:8080/",innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:"0",cookie:"",userAgent:"",referer:"",oneServiceHeaders:""}),W._instance||j({href:"http://localhost:8080/",innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:"0",cookie:"",userAgent:"",referer:"",oneServiceHeaders:""}),W._instance}static resetInstance(e,t=!1){return W._instance=new W(e,t),W._instance}}function H(e,t){if(t&&e){const n=new RegExp("\\b"+e+"\\s*=\\s*([^;]*)","i").exec(t);return n&&n.length>1?n[1]:null}return null}W._instance=null;const j=W.resetInstance,J=()=>W.getInstance();function B(){try{return localStorage}catch(e){return null}}const G="uxlogin",$="uxlogout",V="uxedit",X="useRedirect",z=A((()=>{const e=B();return e&&"1"===e.getItem(G)||r()&&location.search&&location.search.includes("uxlogin=1")}));const K=A((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem($)}));const Y=A((()=>{const e=B();return e&&"1"===e.getItem(V)}));const Q=A((()=>{const e=B(),t=!_("prg-noredirect")&&e&&"1"===e.getItem(X)&&function(){const e=document.head.dataset.clientSettings||"",{browser:t}=i(e)||{},{browserType:n=""}=t||{};return!!/safari/i.test(n)}();return t}));var Z;!function(e){e.Adult="adult",e.Enterprise="enterprise",e.Kids="kids"}(Z||(Z={}));const ee=m()||{},te={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channel:1},ne={edgeChromium:1},oe=A((()=>ee&&ee.apptype)),ie=()=>{const e=window.sapphireWebViewBridge,t=window.webkit,n=e&&e.send,o=t&&t.messageHandlers&&t.messageHandlers.send&&t.messageHandlers.send.postMessage;return n||o};function se(){return ie()||function(){var e;const t=null===(e=window.skypeWebviewBridge)||void 0===e?void 0:e.isSkype,n=new URL(location.href).searchParams.get("ocid")||"";return t||n.indexOf("OnOSkype")>-1||n.indexOf("skype")>-1}()||function(){const e=new URL(location.href),t=e.searchParams.get("chpltfm")||"",n=e.searchParams.get("ocid")||"";return t.indexOf("metaos")>-1||n.indexOf("metaos")>-1}()||function(){const e=new URL(location.href),t=e.searchParams.get("chpltfm")||"",n=e.searchParams.get("ocid")||"";return t.indexOf("officeMobile")>-1||n.indexOf("OnOOffice")>-1}()||function(){const e=new URL(location.href),t=e.searchParams.get("chpltfm")||"",n=e.searchParams.get("ocid")||"";return t.indexOf("outlookMobile")>-1||n.indexOf("OnOOutlook")>-1}()||function(){const e=new URL(location.href).searchParams.get("ocid")||"";return ie()||e.indexOf("OnOSapphire")>-1}()}const re=A((()=>ce()&&(O()||!k("ace")))),ae=A((()=>r()&&!se()&&!(oe()in te)&&!he())),ce=A((()=>ae()&&!(oe()in ne)));A((()=>ae()&&(!(oe()in ne)||!q()))),A((()=>ae()&&!me()));function ue(){return me()}function de(e){return le(e)&&(_("prg-ntp-uat")||_("prg-ntp-uat-nf"))}function le(e){return!("edgeChromium"!=oe()||e!=Z.Adult&&e!=Z.Kids||!k("at")&&!k("lt"))}A((()=>{const e=(r()?window.location.host:J().url.host).toLowerCase().endsWith(".cn");return ae()&&(!e||e&&!_("prg-no-auth-zhcn"))}));const he=A((()=>_("prg-1s-edgeid")&&function(){const{browser:e}=ee,{browserType:t=""}=e||{};return!!/edgeChromium/i.test(t)}()&&(we(f)||we(p))));function ge(){const e=U;if(e)return E.log("dual-auth: tryGet1SAuthToken returned live tokens"),e;const t=L();if(t)return E.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${D()}`),t;E.log("dual-auth: tryGet1SAuthToken returned empty tokens")}function pe(e){const t={};if(e){const n=oe();"windowsShell"===n||"windowsShellV2"===n?t[u]=e:t[c]=`Bearer ${e}`}return t}function fe(e){const t={};return e&&(t[u]=e),t}function me(){return ce()&&z()||re()&&(re()&&!z()&&O()&&("expired"==D()||Y())||K()||Q())}function we(e){const t=new URLSearchParams(r()?window.location.search:J().url.search).get("ocid")||ee&&ee.ocid;return e&&e.has(t&&t.toLowerCase())}var be;!function(e){e.GLOBAL="GLOBAL",e.GCC_MODERATE="GCC_MODERATE"}(be||(be={}));const ve=A((()=>i(k("AL_STATE",!0))));let ye,ke;var Se,Ae,Ie;let Oe,qe,Ee,xe;ke=Se||(r()?window:{}),Ie=()=>{let e;return{promise:new Promise((t=>e=t)),resolver:e}},ye=ke[Ae="authHeaderPromiseParts"]||(ke[Ae]=Ie());function Ce(){if(!qe){const e=document.head.getAttribute("data-client-settings");e&&(qe=JSON.parse(e))}return qe}var _e;!function(e){e[e.Alert=0]="Alert",e[e.NoAlert=1]="NoAlert",e[e.HighImpact=2]="HighImpact",e[e.Critical=3]="Critical"}(_e||(_e={}));const Te=new class{constructor(e=20){this.maxLength=20,this.list=[],this.maxLength=e}push(e){this.list.push(e),this.list.length>this.maxLength&&this.list.shift()}get data(){return this.list}};function Ne(e,t,n,o=_e.Alert){try{const i=Ce(),s=function(){if(Ee)return Ee;const e=document.head.getAttribute("data-info");return Ce(),Ee=((/f:\s*([^;]+)/i.exec(e)||{})[1]||"").toLowerCase(),Ee}(),r=function(e){if(e){const{pcsInfo:t,pageGenTime:n}=e,o=new Date(n).getTime(),i=!t||"prod"===t.env;xe=i?"browser.events.data.msn.com":"events-sandbox.data.msn.com";return{cors:"true","content-type":"application/x-json-stream","client-id":"NO_AUTH","client-version":"1DS-Web-JS-2.2.2",apikey:i?"0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279":"f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028","upload-time":o,w:"0",anoncknm:"app_anon"}}return null}(i);let a="";r&&r.apikey&&""!==r.apikey&&(a=function(e){if(e){const t=e.indexOf("-");if(t>0)return e.substring(0,t)}return""}(r.apikey));const c=function(e,t,n,o,i,s,r=_e.Alert){if(n){i=i||{};const{apptype:a,audienceMode:c,pagetype:u,pageGenTime:d,bundleInfo:l,deviceFormFactor:h="",fd_muid:g}=n;i.pageGenTime=d,i.build=l&&l.v,i.appType=a;const p=function(e,t,n){const o=n&&"phone"===n.toLowerCase();return{bingHomepage:"binghomepage",mmx:"emmx",edge:"spartan",edgeChromium:t&&"enterprise"===t?"entnews":"anaheim",hybrid:"spartan",hub:o?"prime_mobile":"prime",microsoftNews:"msnews",office:"entnews",views:o?"prime_mobile":"prime",windowsShell:"windowsshell"}[e]}(a,c,h),f=p||a,m=document.getElementsByTagName("html")[0].getAttribute("lang");let w="",b="muid";try{window&&window.getCookieConsentRequired&&"function"==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(w=k("muid"))}catch(e){console.log("error fetching muid.")}w||(w=n.aid,b="aid");const v={name:"MS.News.Web.AppError",time:d,ver:"4.0",iKey:`o:${o}`,data:{baseData:{},baseType:"MS.News.Web.Base",page:{name:"default",product:f,type:Pe(u),content:{category:"standaloneError"}},browser:{clientId:w,clientIdType:b},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:g},locale:{mkt:m},extSchema:{id:e,severity:r,pb:i,message:t}}};return v?JSON.stringify(v):null}return null}(t,e,i,a,n,s,o);if(r&&c){console.error(c),Te.push(c);const e="https://"+xe+"/OneCollector/1.0"+function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}(r);navigator.sendBeacon(e,c)}else console.log("missing parameters in data-client-settings. "+e)}catch(t){console.log("error logging the app error. "+e)}}function Pe(e){let t=e;switch(e){case"windowsshellhp":t="dhp";break;case"video":t="watch"}return t}function Re(e,t){try{Ne("Navigating to local ntp on JS Exception.",e,t)}finally{const t=Ce();location.replace(`chrome-search://local-ntp/local-ntp.html?ntperror=${e}&rid=${t&&t.aid}`)}}function Me(e){const t="Error when loading bundle: "+e;try{Ne(t,20202,{})}finally{Re(19003,{customMessage:t,href:location.href})}}function Ue(e,t,n,o,i){const s=i&&i.stack,r={source:t,customMessage:e,line:n,column:o,stack:s,href:location.href};if(("Uncaught EvalError: Possible side-effect in debug-evaluate"!==e||"EvalError: Possible side-effect in debug-evaluate"!==s)&&"ResizeObserver loop limit exceeded"!==e)try{Ne("JS Exception.",20203,r)}finally{if(i&&"SyntaxError"===i.name){const e=["vendors","common","microsoft","experience","web-worker"];for(const n of e)if(t.includes(n)){Re(19002,r);break}}}}function Le(e){Ne("JS Exception",20203,{customMessage:e&&e.reason&&e.reason.message,stack:e&&e.reason&&e.reason.stack})}(window&&window._pageTimings||(window._pageTimings={})).TTJSStart=Math.round(performance.now());const De=m();(function(e){if(!r()||!e)return!1;const t="os-sku";let n=!1;const s=window;if(s&&s.external&&s.external.getHostEnvironmentValue){const r=i(s.external.getHostEnvironmentValue(t));r&&"192"===r["os-sku"]&&(e.os=o.Xbox,n=!0)}if(location){let t=new URL(location.href).searchParams.get("overrideos");if(t){t=t.toLowerCase();const i=Object.values(o).find((e=>e.toLowerCase()===t));i&&(e.os=i,n=!0)}}return n})(De)&&function(e){if(!r()||!e)return;const t=function(e){try{return JSON.stringify(e)}catch(e){return null}}(e);t&&document.head.setAttribute(a,t)}(De),(new class{constructor(){this.childCookieName="child",this.domInfo=document.head.dataset.info,this.command="command"}init(e=null){this.clientSettings=e||m(),this.authCookieName=Oe||window._authCookieName||"",this.bundle=window._webWorkerBundle||"";const t=this.buildWebWorkerUrl(),n=window.webWorker=new Worker(t,{name:"web-worker"}),o=window.webWorkerMessages=[];n.onmessage=e=>{o.push(e.data)};const i=window.webWorkerErrors=[];n.onerror=e=>{i.push(e)};const s=window._crsConfigs||void 0;if(s&&(s.configs||s.Response)&&n.postMessage({id:"CrsConfigs",type:this.command,payload:s}),window.chrome){const e=this.getAudienceMode(this.clientSettings),t=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;if(t&&"function"==typeof t.getPref&&(t.getPref("ntp.news_feed_display",(e=>{e&&e.value&&n.postMessage({id:"FeedDisplaySetting",type:this.command,payload:e.value})})),t.getPref("ntp.layout_mode",(e=>{e&&e.value&&n.postMessage({id:"LayoutModeSetting",type:this.command,payload:e.value})})),t.getPref("ntp.user_nurturing",(e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),n.postMessage({id:"RenderSingleColumn",type:this.command,payload:t})})),t.getPref("new_device_fre.has_user_seen_new_fre",(e=>{e&&n.postMessage({id:"NewUserFre",type:this.command,payload:e.value})}))),t&&"function"==typeof t.getConfigData&&t.getConfigData((e=>{const t=(null==e?void 0:e.enabledFeatures)||[];t.includes("msReducedNtpAdsForNewDevice_stage1")&&n.postMessage({id:"EdgeNoAds",type:this.command,payload:!0}),t.includes("msReducedNtpAdsForNewDevice_stage2")&&n.postMessage({id:"EdgeReduceAds",type:this.command,payload:!0})})),e===Z.Enterprise&&this.clientSettings.browser&&"edgeChromium"===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getEnterpriseAccessToken().then((e=>{e&&n.postMessage({id:"AuthTokenEnterprise",type:this.command,payload:pe(e)})})),e!==Z.Adult&&e!==Z.Enterprise||this.sendPageConfiguration(),de(e)){const e=k("lt")||k("at");n.postMessage({id:"AuthHeaders",type:this.command,payload:fe(e)})}}ue()&&ye.promise.then((e=>n.postMessage({id:"AuthHeaders",type:this.command,payload:e||{}})))}buildWebWorkerUrl(e=null){return(this.bundle||"")+"#"+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsAuth(e||this.clientSettings)+this.qsFromUrl()+this.qsFromServiceWorker()+this.qsSelectedPivot()+this.qsXboxXToken()}qs(e,t,n){return e?t+"="+(n||e)+"&":""}qsFromDocument(){var e;return this.qs(document.getElementsByTagName("html")[0].getAttribute("lang"),"lang")+this.qs(encodeURIComponent(window.location.href),"adsReferer")+this.qs(null===(e=r()?window.devicePixelRatio:J().devicePixelRatio)||void 0===e?void 0:e.toString(),"devicePixelRatio")}qsFromServiceWorker(){if(!navigator.serviceWorker||!navigator.serviceWorker.controller)return"";const e=navigator.serviceWorker.controller;if("activated"!==e.state||!e.scriptURL)return"";if(e.scriptURL){const t=new URL(e.scriptURL).searchParams.toString();return t?"&"+t+"&":""}return""}qsFromCookies(){return this.qs(S(this.authCookieName),"aace")+this.qs(S("muid"),"muid")+this.qs(S(this.childCookieName),"child")+this.qs(S("cbypass"),"cbypass")+this.qs(this.cookieBannerConsentRequired().toString(),"ccRequired")+this.qs(S("ecasession"),"ecasession")+this.qs(S("TOptOut"),"browserOptOut")}qsFromDataAttributeHelper(e,t){return e&&e.featureFlags&&e.featureFlags.wpoEnabled&&t&&!t.includes("remwpofltww")&&(t=this.appendWpoFlightsToInfo(e,t)),this.qs(e.pcsInfo&&e.pcsInfo.env||e.env,"env")+this.qs(e.aid,"aid")+this.qs(e.apptype,"apptype")+this.qs(e.pagetype,"pagetype")+this.qs(e.audienceMode,"audienceMode")+this.qs(e.configIndexDocId,"configIndexDocId")+this.qs(e.deviceFormFactor,"deviceFormFactor")+this.qs(e.domain,"domain")+this.qs(e.configRootUrl,"configRootUrl")+this.qs(this.getHighestCbid(e.cbid,e.apptype),"cbid")+this.qs(e.ocid,"ocid")+this.qs(e.os,"os")+this.qs(JSON.stringify(e.locale),"locale")+this.qs(e.geo_lat,"lat")+this.qs(e.geo_long,"long")+this.qs(JSON.stringify(e.featureFlags),"featureFlags")+this.qs(JSON.stringify(e.browser),"browser")+this.qs(JSON.stringify(e.servicesEndpoints),"servicesEndpoints")+this.qs(e.bundleInfo&&e.bundleInfo.v||"","buildVersion")+this.qs(t,"dataInfo")}qsSelectedPivot(){const e="selectedPivot";let t;try{const n=B();n&&(t=n.getItem(e))}catch(e){console.log("Error getting pivot id from local storage. "+e)}return this.qs(t,e)}qsXboxXToken(){const e="xboxXTokenId";let t;try{const n=B();n&&(t=n.getItem(e))}catch(e){console.log("Error getting xbox XToken from local storage. "+e)}return this.qs(t,e)}appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.length){const e=";",o=t.split(e);for(let e=0;e<o.length;e++){const t=o[e];if(t&&t.startsWith("f:")){o[e]=t+","+n.join();break}}return o.join(e)}return t}getWpoFlightsFromLocalStorage(e){const t=B(),n=e.locale,o=`wpo_data_ ${e.audienceMode}_${n.language}_${n.market}_${e.pagetype}_${e.apptype}`;try{const e=t.getItem(o);if(e){return JSON.parse(e).treatments.map((e=>e.id))}}catch(e){console.warn(`Error getting wpo flights from ls for ${o} Error:${e}`)}return null}getHighestCbid(e,t){try{const n=B(),o=parseInt(e),i=parseInt(JSON.parse(n.getItem(`cbid_${t||""}`)));let s;if(o&&!isNaN(o)&&i&&!isNaN(i)&&(s=o>i?o:i),s=s||o||i,s)return window._cbid=s.toString()}catch(e){console.log("Error getting highest CBID"+e)}}getAudienceMode(e){B();const t=k(this.authCookieName),n=k(this.childCookieName),{child:o}=t&&JSON.parse(t)||{};return t&&(1===o||n)?"kids":e.audienceMode||Z.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=k&&k("pglt-edgeChromium-"+e);if(t)return void window.webWorker.postMessage({id:"PageConfiguration",type:this.command,payload:t})}window.webWorker.postMessage({id:"PageConfiguration",type:this.command,payload:!1})}qsFromDataAttribute(e){let t,n;const o=B();if(o){const i=JSON.parse(o.getItem("shd_"+e.pagetype)||null);i&&i.clientSettings&&i.info&&(t=Object.assign(Object.assign({},i.clientSettings),{bundleInfo:e.bundleInfo}),n=i.info)}return(!t||!n||e.pageGenTime>=t.pageGenTime)&&(t=e,n=this.domInfo),t.audienceMode=this.getAudienceMode(t),this.qsFromDataAttributeHelper(t,n)}qsFromUrl(){const e=location.search;return e&&e.length?e.substring(1,e.length):""}getEnterpriseAccessToken(){return new Promise((e=>{window.chrome&&window.chrome.authPrivate?window.chrome.authPrivate.getPrimaryAccountInfo((t=>{t&&"GCC_MODERATE"!==t.region_scope||e("");const n={account_id:t.account_id,account_type:t.account_type,client_id:"d7b530a4-7680-4c23-a8bf-c52c121d2e87",scope_or_resource:"https://enterprisenews.microsoft.com"};window.chrome.authPrivate.acquireAccessTokenSilently(n,(t=>{t.is_success?e(t.access_token):e("")}))})):e("")}))}qsMisc(){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),"mainTimeOrigin")}qsAuth(e){let t=this.qs(re()&&"1","disableWWAuth");if(!de(e&&e.audienceMode)&&!ue()){const e=ce()&&ge()||{};t+=this.qs(encodeURIComponent(JSON.stringify(pe(e.accessToken))),"authHeaders")}return t+=this.qs(function(e="anon"){const t=ve();return!(!t||_("prg-1s-no-acclnk")||!(["anon","al_anon"].includes(e)&&t.AL_ANON||["app_anon","al_app_anon"].includes(e)&&t.AL_APP_ANON))}()&&"1","isAccountLinked"),t}getSingleColRequest(e){const t="render_single_column",n="feed_layout";let o,i;for(const s of e){const{key:e,value:r}=s;e===t?o=r:e===n&&(i=r)}return"boolean"==typeof o?o:!!i&&(i&&"single"===i.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById("consent-banner-container")&&null===k("MSCC"),t=null!=document.getElementById("onetrust-sdk")&&null===k("eupubconsent-v2");return e||t}}).init(De),window.onErrorHandler=Me,void 0!==window.onunhandledrejection&&(window.onunhandledrejection=Le),window.onerror=Ue,function(e=["vendors","common","microsoft"],t="Error when loading bundle(s): ",n=5e5,o,i){("visible"===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState&&e()}))}))).then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const s=n.length,r=e.length+1;if(s<r){if(s===r-1)e=["experience"];else{n.slice(0,r).forEach((t=>{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}Ne(t+e.toString(),20202,{}),i&&i(o,{customMessage:e.toString()})}}}),n)}))}(["vendors","common","microsoft"],"Error when loading bundle(s): ",5e5,19003,((e,t)=>{Re(e,t)}))}();
</script>
<script src='/bundles/v1/edgeChromium/latest/SSR-extension.05ff751a9ded09ee537a.js' type="text/javascript" onerror="onErrorHandler(this.src)" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=" crossorigin="anonymous"></script>
<link rel="dns-prefetch" href="//api.msn.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//assets.msn.com" crossorigin="anonymous"><link rel="dns-prefetch" href="//assets.msn.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//c.bing.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//c.msn.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//img-s-msn-com.akamaized.net" crossorigin="use-credentials"><link rel="dns-prefetch" href="//sb.scorecardresearch.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//th.bing.com" crossorigin="use-credentials"><link rel="dns-prefetch" href="//www.bing.com" crossorigin="use-credentials"><link rel="preconnect" href="//api.msn.com" crossorigin="use-credentials"><link rel="preconnect" href="//assets.msn.com" crossorigin="anonymous"><link rel="preconnect" href="//assets.msn.com" crossorigin="use-credentials"><link rel="preconnect" href="//c.bing.com" crossorigin="use-credentials"><link rel="preconnect" href="//c.msn.com" crossorigin="use-credentials"><link rel="preconnect" href="//img-s-msn-com.akamaized.net" crossorigin="use-credentials"><link rel="preconnect" href="//sb.scorecardresearch.com" crossorigin="use-credentials"><link rel="preconnect" href="//th.bing.com" crossorigin="use-credentials"><link rel="preconnect" href="//www.bing.com" crossorigin="use-credentials"><link rel="icon" href="https://assets.msn.com/statics/icons/favicon_newtabpage.png" type="image/png" crossorigin="anonymous" sizes="32x32">
<script type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=">
if(matchMedia("(prefers-color-scheme:dark)").matches){const s=document.createElement("style");document.head.appendChild(s);s.type="text/css";s.appendChild(document.createTextNode("body{background:#242424}"));}
</script>
<script type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=">
const _clientSettings = JSON.parse(document.head.dataset.clientSettings);
</script>
</head>
<body>
<div id="root" data-config-indexdocid="">
</div>
<script src='https://assets.msn.com/bundles/v1/edgeChromium/latest/vendors.c46cb1d704b35bdd581a.js' type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=" crossorigin="anonymous"></script>
<script src='https://assets.msn.com/bundles/v1/edgeChromium/latest/microsoft.26c713620f0360b68bc2.js' type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=" crossorigin="anonymous"></script>
<script src='https://assets.msn.com/bundles/v1/edgeChromium/latest/common.00ce78eb2acc6c72a003.js' type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=" crossorigin="anonymous"></script>
<script src='https://assets.msn.com/bundles/v1/edgeChromium/latest/experience.d9e2f282aa8fc20f0300.js' type="text/javascript" nonce="cBSP5rRzv11pGGZ6hxvT9HynzCzYv61zfBsS0ubP8i4=" crossorigin="anonymous"></script>
</body>
</html>