[]
MSN 0)return e.substring(0,t)}return””}(p.apikey));const g=function(e,t,n,o,i,s,r=l.Alert){var a;if(n){i=i||{};const{apptype:c,audienceMode:p,pagetype:u,pageGenTime:l,bundleInfo:h,deviceFormFactor:g=””,fd_muid:f,os:w}=n;i.pageGenTime=l,i.build=h&&h.v,i.appType=c;const b=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]}(c,p,g),y=b||c,v=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let S,k=””,A=”muid”;try{if(“edgeChromium”===c&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);S=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===p?S=”entnewsntp”:”xbox”===w&&(S=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(k=d(“muid”))}catch(e){}k||(k=n.aid,A=”aid”);const C={name:”MS.News.Web.AppError”,time:l,ver:”4.0″,iKey:`o:${o}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:y,type:m(u),content:{category:”standaloneError”},ocid:S},browser:{clientId:k,clientIdType:A},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:f},locale:{mkt:v},extSchema:{id:e,severity:r,pb:i,message:t}}};return k&&”muid”===A&&(C.ext=Object.assign(Object.assign({},null==C?void 0:C.ext),{user:Object.assign(Object.assign({},null===(a=null==C?void 0:C.ext)||void 0===a?void 0:a.user),{localId:`t:${k}`})})),C.data.flight.tmpl=””,i.isSSRScope&&(C.data.flight.tmpl+=”ssrscope:1″),”object”==typeof window&&(window.isSSREnabled&&(C.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(C.data.flight.tmpl+=”;ssr-completed:1″)),C?JSON.stringify(C):null}return null}(t,e,s,u,n,c,i);if(p&&g){console.error(g),h.push(g);const e=”https://”+r+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(p);navigator.sendBeacon(e,g)}}catch(e){}}function m(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}function f(){return”visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(“visibilitychange”,(()=>{“visible”===document.visibilityState&&e()}))}))}function w(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&f().then((()=>{t.logLoadingError(e)}))}function b(e){try{if(e)return JSON.parse(e)}catch(e){}return null}function y(){return!(“undefined”==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}const v=”Authorization”;var S,k;!function(e){e.Presentation=”presentation”}(S||(S={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(k||(k={}));var A,C;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(A||(A={})),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”}(C||(C={}));new Set([“winp0dash”,”winp1taskbar”,”winp1taskbarent”,”winp1taskbardirect”,”winp1taskbardirectent”,”winp1taskbarent”,”winp2juntaskbar”,”winp2juntaskbarent”,”winp2″,”winp2ent”,”winp2fp”,”winp2fpent”,”winp2fptaskbar”,”winp2fptaskbarent”,”winp2fptaskbarhover”,”winp2fptaskbarhoverent”,”winp2widget”,”winp2widgetent”]);const x=new Set([“finance-app-win”,”weather-app-win”,”winpstoreapp”]);new Set([“msedgdhp”,”msedgdhphdr”,”msedgntphdr”,”msedgntp”,”msedgdhp”,”entnewsntp”]);var O;!function(e){e.outlookMobile=”OnOOutlookMobile”,e.officeMobile=”OnOOfficeMobile”,e.sapphire=”OnOStartApp”,e.skype=”OnOSkype”}(O||(O={}));const I=new Set([“hpmsn”]);new Set([“emmx”,”vivo”]);function _(){var e;return y()?b(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}var E,P;!function(e){e.Article=”article”,e.ArticleFullScreen=”articlefullscreen”,e.CasualGames=”casualgames”,e.CasualGamesPlay=”casualgamesplay”,e.ChannelSource=”channel::source”,e.ChannelTopic=”channel::topic”,e.CmsExperience=”shopping::cms”,e.CmsBaseExperience=”shopping::cmsbase”,e.DHP=”dhp”,e.EdgeWelcome=”edgewelcome”,e.ForumDealsPage=”shopping::buydirect::superdeals”,e.Gallery=”gallery”,e.GalleryFullScreen=”galleryfullscreen”,e.Homepage=”hp”,e.Launcher=”launcher”,e.Lenovo=”lenovo”,e.MMX=”mmx”,e.NewsAndInterests=”newsandinterestshp”,e.Newsbar=”newsbar”,e.NewsbarUpsell=”newsbarupsell”,e.NewsCoronavirus=”news::coronavirus”,e.NewsVLP=”news”,e.NTP=”ntp”,e.Sidebar=”sidebar”,e.Story=”story”,e.Shopping=”shopping”,e.ShoppingDealsCategory=”shopping::deals-category”,e.ShoppingProductDetails=”shopping::product”,e.ShoppingExpressCheckout=”shopping::express-checkout”,e.ShoppingForumCheckout=”shopping::buydirect::checkout”,e.ShoppingForumProductPage=”shopping::buydirect::product”,e.ShoppingForumcheckoutWidget=”shopping::buydirect::checkout::widget”,e.ShoppingForumProductDetails=”shopping::buydirect::product1″,e.ShoppingForumCancelOrder=”shopping::buydirect::cancel-order”,e.ShoppingForumReturnDetails=”shopping::buydirect::return-details”,e.ShoppingForumReturnOrder=”shopping::buydirect::return-orders”,e.ShoppingForumRefundDetails=”shopping::buydirect::refund-details”,e.ShoppingForumRefundOrder=”shopping::buydirect::refund-orders”,e.ShoppingLiveDetails=”shoppinglivedetails”,e.ShoppingLiveInmobiDetails=”shoppingliveinmobidetails”,e.ShoppingLiveEmbed=”shopping::live::embed”,e.ShoppingLiveFeed=”shopping::live”,e.ShoppingLiveBase=”shopping::live”,e.ShoppingMomentInTime=”shopping::mit”,e.ShoppingExplore=”shopping::explore”,e.ShoppingExploreHalloween=”shopping::explore::halloween”,e.ShoppingCouponsPage=”shopping::coupons”,e.ShoppingDealsHomePage=”shopping::deals::coupons”,e.ShoppingStoreCouponsPage=”shopping::store-coupons”,e.ShoppingStyles=”shopping::styles”,e.ShoppingStylesHomePage=”shopping::style-ideas”,e.ShoppingLanding=”shopping::buydirect”,e.ShoppingSearchResult=”shopping::buydirect::search”,e.ShoppingCart=”shopping::buydirect::cart”,e.ShoppingOrders=”shopping::buydirect::orders”,e.ShoppingForumOrderConfirmation=”shopping::buydirect::order-confirmation”,e.ShoppingForumOrderDetails=”shopping::buydirect::order-details”,e.ShoppingForumHome=”shopping::buydirect::home”,e.Source=”source”,e.Sports=”sports”,e.Topic=”topic”,e.Travel=”travel”,e.TravelPlaces=”travel::places”,e.TravelCollections=”travel::collections”,e.Video=”video”,e.VideoInf=”videoinf”,e.WebContent=”webcontent”,e.Widget=”widget”,e.Windows=”windowshp”,e.WindowsShellHP=”windowsshellhp”,e.ShoppingAllStoresPage=”shopping::stores::popular”,e.ShoppingLiveProductDetailsPage=”shopping::live::product”,e.ShoppingForumSellerPage=”shopping::buydirect::stores”,e.ShoppingForumFavorites=”shopping::buydirect::favorites”,e.ShoppingBlackjackPage=”shopping::deals”,e.ShoppingBlackjackDealPage=”shopping::deals::product”,e.ShoppingSearch=”shopping::search”,e.ShoppingBingProductDetails=”shopping::product-details”,e.ShoppingInspiration=”shopping::inspire”,e.ShoppingBuyingGuide=”shopping::buying-guide”,e.ShoppingAssistant=”shopping::ai”,e.ShoppingShopDeals=”shopping::shopdeals”,e.ShoppingArticlePage=”shopping::shop-article”,e.ShoppingGuidesPage=”shopping::shop-guides”,e.ShoppingDebugPage=”shopping::debug”}(E||(E={})),function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(P||(P={}));const q=”feed/personalize/settings”;var N,T,M;function D(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”}(N||(N={})),function(e){e.MSA=”MSA”,e.AAD=”AAD”,e.UNSUPPORTED_SOVEREIGNTY=”UNSUPPORTED_SOVEREIGNTY”}(T||(T={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(M||(M={}));const L=”currentaccount”,R=D((()=>{const e=d(L,!0),t=e&&b(e),{login_hint:n}=t||{};return n&&t})),F=D((()=>!!d(L)));let W=new class{constructor(){y()?(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 U=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=b(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 b(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;W.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;nH.has(e)});const B=”__PageExperimentInstance__”;function G(e){j.set(B,e)}function $(e){var t,n;if(!j.has(B)&&y()){G(J(document.head.dataset.info||(null===(n=null===(t=window.document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.info)||””))}const o=j.get(B);return o&&o.has(e)}function J(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const V=”1s-tokens”,z=12096e5;var X;let K,Y;function Z(){return K=ee(),K&&K.accessToken?K:void 0}function Q(){if(K=ee(),!K)return”notAvailable”;const e=K.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=R();if(e&&e.account_type===T.MSA){if(new Date(t.getTime()+z)>o)return i}}return n}function ee(){return K=K||void 0===K&&U.getObject(V)||null,K}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}(X||(X={}));const te=”__RequestDataInstance__”;class ne{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.clientData=e.clientData,this.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{},this.isPssrMode=t,t){const e=oe(“OSATE”,this.cookie),t=!!e&&”1″===e,n=oe(“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(){const e=j.get(te);return e||(n.g.TEST_ENV?ie({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}):ie({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}))}static resetInstance(e,t=!1){const n=new ne(e,t);return j.set(te,n),n}}function oe(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}const ie=ne.resetInstance,se=()=>ne.getInstance();function re(){try{return localStorage}catch(e){return null}}const ae=”uxlogin”,ce=”uxlogout”,de=”uxedit”,pe=”useRedirect”,ue=”uxswitch”,le=D((()=>{const e=re();return e&&”1″===e.getItem(ae)||y()&&location.search&&location.search.includes(“uxlogin=1”)}));const he=D((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(ce)}));const ge=D((()=>{const e=re();return e&&”1″===e.getItem(de)}));const me=D((()=>{const e=re(),t=!$(“prg-noredirect”)&&e&&”1″===e.getItem(pe)&&function(){const e=document.head.dataset.clientSettings||””,{browser:t}=b(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}();return t}));const fe=D((()=>{const e=re();return e&&”1″===e.getItem(ue)}));var we;!function(e){e.outlookMobile=”OnOOutlookMobile”,e.officeMobile=”OnOOfficeMobile”,e.sapphire=”OnOStartApp”,e.skype=”OnOSkype”,e.winWeatherApp=”weather-app-win”,e.xiaomiApp=”xmweather-“,e.winMoneyApp=”finance-app-win”}(we||(we={}));const be=[“ios”,”android”,”ipados”];let ye=Pe(“ocid”).toLowerCase(),ve=Pe(“chpltfm”),[Se,ke]=ve.toLowerCase().split(“-“);function Ae(){if(!y())return!1;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 Ce(){const e=ve&&”outlook”===Se&&be.includes(ke),t=ye===we.outlookMobile.toLowerCase();return e||t}function xe(){const e=ve&&[“office”,”union”].includes(Se)&&be.includes(ke),t=ye===we.officeMobile.toLowerCase();return e||t}function Oe(){const e=ye===we.skype.toLowerCase()||”skype”===Se;return y()&&(null===(t=window.skypeWebviewBridge)||void 0===t?void 0:t.isSkype)||e;var t}function Ie(){return Ae()||ye===we.sapphire.toLowerCase()||ye===”superappdhp”.toLowerCase()}function _e(){return”3rdp”===Se||ye.startsWith(we.xiaomiApp)}const Ee=D((()=>Ae()||Oe()||xe()||Ce()||Ie()||ye===we.winWeatherApp.toLowerCase()||ye===we.winMoneyApp.toLowerCase()||function(){const e=Pe(“edge”);return(“emmx”===Se||”1″===e)&&Ie()}()||_e()));function Pe(e){try{return new URL(location.href).searchParams.get(e)||””}catch(e){return””}}const qe=_()||{},Ne={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channel:1},Te={edgeChromium:1},Me={winWidgets:1},De={shopping:1},Le={edge:1,edgeChromium:1,channel:1,cgHomePage:1,distribution:1,mmx:1,newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,superApp:1},Re=D((()=>qe&&qe.apptype)),Fe=(D((()=>y()&&Re()in Me)),D((()=>y()&&!Ee()&&!(Re()in Ne)&&!He()&&!je()))),We=D((()=>Fe()&&!(Re()in Te)));D((()=>Fe()&&(!(Re()in Te)||!F()))),D((()=>Fe()&&!Je()&&!Ve()));function Ue(){return Ve()||Je()}const He=D((()=>{const e=”edgeChromium”!==Re()&&!(Re()in De)&&ze()&&function(){const e=new URLSearchParams(y()?window.location.search:se().url.search).get(“ocid”)||(null==qe?void 0:qe.ocid),t=null==e?void 0:e.toLowerCase();return!I.has(t)&&”homePage”!==Re()&&!x.has(t)}()&&!(“windows”==Re()&&(qe&&qe.pagetype)==E.Windows&&(y()?window.location.href:se().url.href).includes(`${q}`));return e})),je=()=>y()&&document&&document.body&&document.body.getElementsByClassName(“peregrine-widgets”).length>0,Be=D((()=>$(“prg-1s-workid”)));D((()=>Re()in Le||He()));function Ge(){const e=Y;if(e)return W.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=Z();if(t)return W.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${Q()}`),t;W.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function $e(e){const t={};return e&&(t[v]=`Bearer ${e}`),t}function Je(){return We()&&le()||We()&&!le()&&R()&&(“expired”==Q()||ge())||he()||me()}function Ve(){return We()&&!R()&&fe()}const ze=D((()=>{const{browser:e}=qe,{browserType:t=””}=e||{};return!!/edgeChromium/i.test(t)}));const Xe=”__core_auth_authHeaderPromiseParts__”,Ke=()=>j.get(Xe);var Ye;!function(){let e;const t={promise:new Promise((t=>e=t)),resolver:e};j.set(Xe,t)}(),function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(Ye||(Ye={}));let Ze;function Qe(){return Ze}function et(e){const t=e||Qe()||”al_app_anon”,n=tt();return!!(n&&([“anon”,”al_anon”].includes(t)&&n.AL_ANON||[“app_anon”,”al_app_anon”].includes(t)&&n.AL_APP_ANON))}const tt=D((()=>b(d(“AL_STATE”,!0))));const nt=()=>{const e=d(“elt”,!0),t=e&&b(e),{access_token:n,account_type:o,login_hint:i}=t||{};return(n||o||i)&&t};var ot;!function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(ot||(ot={}));function it(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((o=o.apply(e,t||[])).next())}))}Object.create;Object.create;function st(e){return new Promise((t=>setTimeout(t,e)))}const rt=document.head.attributes[“data-info”].value;let at;if(rt){const e=rt.split(“;”).find((e=>e.startsWith(“f:”)));e&&(at=e.substring(2),at.indexOf(“1sw-pcsreturnhp”)>-1&&g(“PCS returned. Executing inline JS.”,8e4,{customMessage:location.href},l.NoAlert))}(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.command=”command”}init(e=null){this.clientSettings=e||_(),this.authCookieName=Qe()||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=[];if(n.onerror=e=>{i.push(e)},window.chrome){const e=this.getAudienceMode(this.clientSettings),t=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;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===ot.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:$e(e)})})):n.postMessage({id:”AuthTokenEnterprise”,type:this.command,payload:{}}),e!==ot.Adult&&e!==ot.Enterprise||this.sendPageConfiguration()}Ue()&&Ke().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=y()?window.devicePixelRatio:se().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(u(this.authCookieName),”aace”,”1″)+this.qs(u(“muid”),”muid”)+this.qs(u(this.childCookieName),”child”)+this.qs(u(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(u(“ecasession”),”ecasession”)+this.qs(u(“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=re();n&&(t=n.getItem(e))}catch(e){console.warn(“Error getting pivot id from local storage. “+e)}return this.qs(t,e)}qsXboxXToken(){const e=”xboxXTokenId”;let t;try{const n=re();n&&(t=n.getItem(e))}catch(e){console.warn(“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;ee.id))}}catch(e){console.warn(`Error getting wpo flights from ls for ${o} Error:${e}`)}return null}getHighestCbid(e,t){try{const n=re(),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.warn(“Error getting highest CBID”+e)}}getAudienceMode(e){re();const t=d(this.authCookieName),n=d(this.childCookieName),{child:o}=t&&JSON.parse(t)||{};return t&&(1===o||n)?”kids”:e.audienceMode||ot.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=d&&d(“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=re();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(We()&&”1″,”disableWWAuth”);if(!Ue()){const e=We()&&Ge()||{};t+=this.qs(encodeURIComponent(JSON.stringify($e(e.accessToken))),”authHeaders”)}return t+=this.qs(et()&&”1″,”isAccountLinked”),t+=this.qs(this.shouldFetchAppAnonCookie()&&”1″,”fetchAppAnonCookie”),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===d(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===d(“eupubconsent-v2”);return e||t}shouldFetchAppAnonCookie(){if(!ze())return!0;const e=(()=>{const e=nt();if(e){if(“MSA”===e.account_type)return T.MSA;if(“AAD”===e.account_type)return T.AAD}})();return e===T.MSA||p(“lt”)?!p(“aace”):e===T.AAD?et()&&!Be():void 0}}).init(),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n=5e5,o,i){f().then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const s=n.length,r=e.length+1;if(s{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}w(20202),g(t+e.toString(),20202,{}),i&&(w(o),i(o,{customMessage:e.toString()}))}}}),n)}))}();const ct=’n n msn_logon n n n n n n ‘,dt=300;function pt(){return document.body.querySelector(“entry-point”)||document.body.querySelector(“entry-point-hp-mobile”)}function ut(e){var t,n;return((null===(n=null===(t=document.head)||void 0===t?void 0:t.getAttribute(“data-info”))||void 0===n?void 0:n.split(“;”).find((e=>e.startsWith(“f:”))))||””).includes(e)}!function(){if(!((null==at?void 0:at.indexOf(“prg-hp-nsl”))>=0)){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:”open”})}connectedCallback(){const e=document.createElement(“style”);e.innerHTML=’n :host {n font-family: Segoe UI, Segoe UI Midlevel, Segoe WP, Arial, sans-serif !important;n display: flex;n height: 100vh;n width: 100vw;n position: fixed;n background: #e0e0e0;n top: 0;n left: 0;n justify-content: center;n color: #000;n z-index: 99999;n }n .container {n display: flex;n margin-top: 200px;n flex-direction: column;n user-select: none;n -moz-user-select: none;n -webkit-user-select: none;n -ms-user-select: none;n align-items: center;n }n .logo {n margin: 0 0 15px;n font-size: 38px;n letter-spacing: 2px;n word-spacing: -5px;n opacity: 1;n }n .logo svg {n color: #000;n display: inline-block;n height: 35px;n position: relative;n top: 3px;n }n .loading-bar {n display: block;n height: 2px;n width: 100px;n background: #fff;n overflow: hidden;n border-radius: 2px;n }n .loading-bar:before {n content: “”;n display: block;n height: 2px;n width: 40px;n background: #000;n left: -20px;n position: relative;n animation: loading-bar 1.5s infinite;n }n @keyframes loading-bar {n 0 {n left: -20px;n }n 50% {n left: 80px;n }n 100% {n left: -20px;n }n }n ‘;const t=`n
n ${ct} msnn n n `,n=document.createElement(“div”);n.className=”container”,n.innerHTML=t,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(n)}}customElements.get(“msn-hp-loading-indicator”)||customElements.define(“msn-hp-loading-indicator”,t),setTimeout((()=>{pt()||function(){const t=document.body;if(t)e();else{const n=new MutationObserver((function(){t&&(n.disconnect(),e())}));n.observe(document.documentElement,{childList:!0})}}()}),dt)}function e(){const e=document.createElement(“msn-hp-loading-indicator”);e.id=”loader”,document.body.appendChild(e);const t=new MutationObserver((function(){pt()&&(t.disconnect(),document.body.querySelector(“msn-hp-loading-indicator”).remove())}));t.observe(document.body,{childList:!0})}}(),(ut(“prg-sdkpreload”)||ut(“prg-renderoptimize”))&&function(){it(this,void 0,void 0,(function*(){window.apntag=window.apntag||{anq:[]},window.apntag.anq=window.apntag.anq||[],yield function(e){return it(this,void 0,void 0,(function*(){if(!y())return;const{src:t,id:n,async:o=!0,container:i=document.head,retryNumber:s=0,retryDelayMs:r=0}=e;try{yield function(e,t=3,n=100){return it(this,void 0,void 0,(function*(){if(t<=1)return e();let o,i=1;do{try{o=yield e()}catch(e){if(i===t)throw e&&e.message&&(e.message=`${e.message} after ${i} attempts`),e;yield st(n)}}while(!o&&++ifunction(e,t,n,o=!0){return new Promise(((i,s)=>{const r=function(e,t,n=!0,o=”anonymous”,i,s){if(!y())throw new Error(“createScriptTag is unsupported server side. This call should be wrapped in canUseDOM().”);const r=document.createElement(“script”);return t&&(r.id=t),i&&r.setAttribute(“class”,i),s&&(r.onload=s),r.type=”text/javascript”,e&&(r.src=e,r.async=n,r.crossOrigin=o),window&&window.NONCE_ID&&(r.nonce=window.NONCE_ID),r}(e,t,o,void 0,void 0,(()=>i(!0)));r.crossOrigin=void 0,r.onerror=s,n.prepend(r)}))}(t,n,i,o)),s,r)}catch(e){g(“Failed to download Static JS”,11103,{scriptId:n,scriptSrc:t},l.Alert)}}))}({id:”display-sdk”,src:”https://acdn.adnxs.com/ast/ast.js”,container:document.head,retryDelayMs:200,retryNumber:5})}))}()}(); ]]>
{t=o,s=e}),window._idbConfigOpenPromise=(()=>{try{const d=o.open(“wwConfigs”,1);return new Promise((o,c)=>{d.onerror=(()=>{c(new Error(“Config IDB preload open failure: “+d.error))}),d.onsuccess=(()=>{r[n+”open-End”]=performance.now();const c=d.result;o(c),r[n+”getAllObjects-Start”]=performance.now();const a=c.transaction(e,”readonly”).objectStore(e).openCursor();a.onsuccess=function(){const o=this.result;o?(i[o.key]=o.value,o.continue()):(r[n+”getAllObjects-End”]=performance.now(),t())},a.onerror=(()=>{s(new Error(“Config IDB preload read failure”))})}),d.onupgradeneeded=(()=>{d.result.createObjectStore(e)})})}catch(o){return Promise.reject(new Error(“Config IDB preload open failure: “+o))}})()}preloadConfigIDB(); ]]> onErrorHandler(s.src);s.nonce=””;s.crossOrigin=”anonymous”;document.body.appendChild(s);} ]]>