MSN

[]
MSN 0)return e.substring(0,t)}return””}(d.apikey));const g=function(e,t,n,i,o,s,r=p.Alert){var a;if(n){o=o||{};const{apptype:c,audienceMode:d,pagetype:l,pageGenTime:p,bundleInfo:h,deviceFormFactor:g=””,fd_muid:m,os:w}=n;o.pageGenTime=p,o.build=h&&h.v,o.appType=c;const b=function(e,t,n){const i=n&&”phone”===n.toLowerCase();return{bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:t&&”enterprise”===t?”entnews”:”anaheim”,hybrid:”spartan”,hub:i?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:i?”prime_mobile”:”prime”,windowsShell:”windowsshell”}[e]}(c,d,g),v=b||c,y=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let k,S=””,A=”muid”;try{if(“edgeChromium”===c&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);k=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===d?k=”entnewsntp”:”xbox”===w&&(k=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(S=u(“muid”))}catch(e){}S||(S=n.aid,A=”aid”);const x={name:”MS.News.Web.AppError”,time:p,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:v,type:f(l),content:{category:”standaloneError”},ocid:k},browser:{clientId:S,clientIdType:A},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:m},locale:{mkt:y},extSchema:{id:e,severity:r,pb:o,message:t}}};return S&&”muid”===A&&(x.ext=Object.assign(Object.assign({},null==x?void 0:x.ext),{user:Object.assign(Object.assign({},null===(a=null==x?void 0:x.ext)||void 0===a?void 0:a.user),{localId:`t:${S}`})})),o.isSSRScope&&(x.data.flight.tmpl=”ssrscope:1″,”object”==typeof window&&window.isSSREnabled&&(x.data.flight.tmpl+=”;ssr-enabled:1″)),x?JSON.stringify(x):null}return null}(t,e,s,l,n,c,o);if(d&&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(“&”)}(d);navigator.sendBeacon(e,g)}}catch(e){}}function f(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}function m(){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&&m().then((()=>{t.logLoadingError(e)}))}function b(){return!(“undefined”==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}const v=”Authorization”;var y,k;!function(e){e.Presentation=”presentation”}(y||(y={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(k||(k={}));var S,A;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(S||(S={})),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”}(A||(A={}));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 b()?c(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}var q,C,E;function N(e){let t,n=!1;const i=function(){return n||(n=!0,t=e()),t};return i.cache={clear:()=>{n=!1,t=void 0}},i}!function(e){e[e.Unknown=0]=”Unknown”,e[e.NotSignedIn=1]=”NotSignedIn”,e[e.SignedIn=2]=”SignedIn”}(q||(q={})),function(e){e.MSA=”MSA”,e.AAD=”AAD”,e.UNSUPPORTED_SOVEREIGNTY=”UNSUPPORTED_SOVEREIGNTY”}(C||(C={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(E||(E={}));const T=”currentaccount”,M=N((()=>{const e=u(T,!0),t=e&&c(e),{login_hint:n}=t||{};return n&&t})),P=N((()=>!!u(T)));let R=new class{constructor(){b()?(this.isDebugEnabled=(function(e,t){const n=t.replace(/[[]]/g,”\$&”),i=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!i)return null;const o=i[2];return decodeURIComponent(o.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 L=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=c(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 c(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;R.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;nD.has(e)});const W=”__PageExperimentInstance__”;function F(e){U.set(W,e)}function j(e){var t,n;if(!U.has(W)&&b()){F(H(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 i=U.get(W);return i&&i.has(e)}function H(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const B=”1s-tokens”,$=12096e5;var G;let J,V;function z(){return J=K(),J&&J.accessToken?J:void 0}function X(){if(J=K(),!J)return”notAvailable”;const e=J.expiresOn,t=new Date(e),n=”expired”;if(!t.getTime())return n;const i=new Date,o=”valid”;if(t>i)return o;if(j(“prg-noext”))return n;{const e=M();if(e&&e.account_type===C.MSA){if(new Date(t.getTime()+$)>i)return o}}return n}function K(){return J=J||void 0===J&&L.getObject(B)||null,J}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}(G||(G={}));const Y=”__RequestDataInstance__”;class Z{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=Q(“OSATE”,this.cookie),t=!!e&&”1″===e,n=Q(“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=U.get(Y);return e||(n.g.TEST_ENV?ee({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}):ee({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}))}static resetInstance(e,t=!1){const n=new Z(e,t);return U.set(Y,n),n}}function Q(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 ee=Z.resetInstance,te=()=>Z.getInstance();function ne(){try{return localStorage}catch(e){return null}}const ie=”uxlogin”,oe=”uxlogout”,se=”uxedit”,re=”useRedirect”,ae=”uxswitch”,ce=N((()=>{const e=ne();return e&&”1″===e.getItem(ie)||b()&&location.search&&location.search.includes(“uxlogin=1”)}));const de=N((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(oe)}));const ue=N((()=>{const e=ne();return e&&”1″===e.getItem(se)}));const le=N((()=>{const e=ne(),t=!j(“prg-noredirect”)&&e&&”1″===e.getItem(re)&&function(){const e=document.head.dataset.clientSettings||””,{browser:t}=c(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}();return t}));const pe=N((()=>{const e=ne();return e&&”1″===e.getItem(ae)}));var he;!function(e){e.outlookMobile=”OnOOutlookMobile”,e.officeMobile=”OnOOfficeMobile”,e.sapphire=”OnOStartApp”,e.skype=”OnOSkype”,e.winWeatherApp=”weather-app-win”,e.winMoneyApp=”finance-app-win”}(he||(he={}));const ge=[“ios”,”android”,”ipados”];let fe=Ie(“ocid”),me=Ie(“chpltfm”),[we,be]=me.toLowerCase().split(“-“);function ve(){if(!b())return!1;const e=window.sapphireWebViewBridge,t=window.webkit,n=e&&e.send,i=t&&t.messageHandlers&&t.messageHandlers.send&&t.messageHandlers.send.postMessage;return!(!n&&!i)}function ye(){const e=me&&”outlook”===we&&ge.includes(be),t=fe===he.outlookMobile;return e||t}function ke(){const e=me&&[“office”,”union”].includes(we)&&ge.includes(be),t=fe===he.officeMobile;return e||t}function Se(){const e=fe===he.skype||”skype”===we;return b()&&(null===(t=window.skypeWebviewBridge)||void 0===t?void 0:t.isSkype)||e;var t}function Ae(){return ve()||fe===he.sapphire||”superappdhp”===fe}function xe(){return”3rdp”===we}const Oe=N((()=>ve()||Se()||ke()||ye()||Ae()||fe===he.winWeatherApp||fe===he.winMoneyApp||function(){const e=Ie(“edge”);return(“emmx”===we||”1″===e)&&Ae()}()||xe()));function Ie(e){try{return new URL(location.href).searchParams.get(e)||””}catch(e){return””}}const _e=_()||{},qe={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channel:1},Ce={edgeChromium:1},Ee={winWidgets:1},Ne={shopping:1},Te=N((()=>_e&&_e.apptype)),Me=(N((()=>b()&&Te()in Ee)),N((()=>b()&&!Oe()&&!(Te()in qe)&&!Le()&&!De()))),Pe=N((()=>Me()&&!(Te()in Ce)));N((()=>Me()&&(!(Te()in Ce)||!P()))),N((()=>Me()&&!Fe()&&!je()));function Re(){return je()||Fe()}const Le=N((()=>{const e=”edgeChromium”!==Te()&&!(Te()in Ne)&&function(){const{browser:e}=_e,{browserType:t=””}=e||{};return!!/edgeChromium/i.test(t)}()&&function(){const e=new URLSearchParams(b()?window.location.search:te().url.search).get(“ocid”)||(null==_e?void 0:_e.ocid),t=null==e?void 0:e.toLowerCase();return!I.has(t)&&”homePage”!==Te()&&!x.has(t)}();return e})),De=()=>b()&&document&&document.body&&document.body.getElementsByClassName(“peregrine-widgets”).length>0;N((()=>j(“prg-1s-workid”)));function Ue(){const e=V;if(e)return R.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=z();if(t)return R.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${X()}`),t;R.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function We(e){const t={};return e&&(t[v]=`Bearer ${e}`),t}function Fe(){return Pe()&&ce()||Pe()&&!ce()&&M()&&(“expired”==X()||ue())||de()||le()}function je(){return Pe()&&!M()&&pe()}const He=”__core_auth_authHeaderPromiseParts__”,Be=()=>U.get(He);var $e;!function(){let e;const t={promise:new Promise((t=>e=t)),resolver:e};U.set(He,t)}(),function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}($e||($e={}));let Ge;function Je(){return Ge}const Ve=N((()=>c(u(“AL_STATE”,!0))));var ze;!function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(ze||(ze={}));function Xe(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))}Object.create;Object.create;function Ke(e){return new Promise((t=>setTimeout(t,e)))}const Ye=document.head.attributes[“data-info”].value;let Ze;if(Ye){const e=Ye.split(“;”).find((e=>e.startsWith(“f:”)));e&&(Ze=e.substring(2),Ze.indexOf(“1sw-pcsreturnhp”)>-1&&g(“PCS returned. Executing inline JS.”,8e4,{customMessage:location.href},p.NoAlert))}(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.command=”command”}init(e=null){this.clientSettings=e||_(),this.authCookieName=Je()||window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl(),n=window.webWorker=new Worker(t,{name:”web-worker”}),i=window.webWorkerMessages=[];n.onmessage=e=>{i.push(e.data)};const o=window.webWorkerErrors=[];if(n.onerror=e=>{o.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===ze.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:We(e)})})):n.postMessage({id:”AuthTokenEnterprise”,type:this.command,payload:{}}),e!==ze.Adult&&e!==ze.Enterprise||this.sendPageConfiguration()}Re()&&Be().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=b()?window.devicePixelRatio:te().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(l(this.authCookieName),”aace”)+this.qs(l(“muid”),”muid”)+this.qs(l(this.childCookieName),”child”)+this.qs(l(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(l(“ecasession”),”ecasession”)+this.qs(l(“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=ne();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=ne();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=”;”,i=t.split(e);for(let e=0;ee.id))}}catch(e){console.warn(`Error getting wpo flights from ls for ${i} Error:${e}`)}return null}getHighestCbid(e,t){try{const n=ne(),i=parseInt(e),o=parseInt(JSON.parse(n.getItem(`cbid_${t||””}`)));let s;if(i&&!isNaN(i)&&o&&!isNaN(o)&&(s=i>o?i:o),s=s||i||o,s)return window._cbid=s.toString()}catch(e){console.warn(“Error getting highest CBID”+e)}}getAudienceMode(e){ne();const t=u(this.authCookieName),n=u(this.childCookieName),{child:i}=t&&JSON.parse(t)||{};return t&&(1===i||n)?”kids”:e.audienceMode||ze.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=u&&u(“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 i=ne();if(i){const o=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);o&&o.clientSettings&&o.info&&(t=Object.assign(Object.assign({},o.clientSettings),{bundleInfo:e.bundleInfo}),n=o.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(Pe()&&”1″,”disableWWAuth”);if(!Re()){const e=Pe()&&Ue()||{};t+=this.qs(encodeURIComponent(JSON.stringify(We(e.accessToken))),”authHeaders”)}return t+=this.qs(function(e){const t=e||Je()||”al_app_anon”,n=Ve();return!(!n||!([“anon”,”al_anon”].includes(t)&&n.AL_ANON||[“app_anon”,”al_app_anon”].includes(t)&&n.AL_APP_ANON))}()&&”1″,”isAccountLinked”),t}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let i,o;for(const s of e){const{key:e,value:r}=s;e===t?i=r:e===n&&(o=r)}return”boolean”==typeof i?i:!!o&&(o&&”single”===o.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===u(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===u(“eupubconsent-v2”);return e||t}}).init(),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n=5e5,i,o){m().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,{}),o&&(w(i),o(i,{customMessage:e.toString()}))}}}),n)}))}();const Qe=’n n msn_logon n n n n n n ‘,et=300;function tt(){return document.body.querySelector(“entry-point”)||document.body.querySelector(“entry-point-hp-mobile”)}function nt(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==Ze?void 0:Ze.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 ${Qe} 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((()=>{tt()||function(){const t=document.body;if(t)e();else{const n=new MutationObserver((function(){t&&(n.disconnect(),e())}));n.observe(document.documentElement,{childList:!0})}}()}),et)}function e(){const e=document.createElement(“msn-hp-loading-indicator”);e.id=”loader”,document.body.appendChild(e);const t=new MutationObserver((function(){tt()&&(t.disconnect(),document.body.querySelector(“msn-hp-loading-indicator”).remove())}));t.observe(document.body,{childList:!0})}}(),(nt(“prg-sdkpreload”)||nt(“prg-renderoptimize”))&&function(){Xe(this,void 0,void 0,(function*(){window.apntag=window.apntag||{anq:[]},window.apntag.anq=window.apntag.anq||[],yield function(e){return Xe(this,void 0,void 0,(function*(){if(!b())return;const{src:t,id:n,async:i=!0,container:o=document.head,retryNumber:s=0,retryDelayMs:r=0}=e;try{yield function(e,t=3,n=100){return Xe(this,void 0,void 0,(function*(){if(t<=1)return e();let i,o=1;do{try{i=yield e()}catch(e){if(o===t)throw e&&e.message&&(e.message=`${e.message} after ${o} attempts`),e;yield Ke(n)}}while(!i&&++ofunction(e,t,n,i=!0){return new Promise(((o,s)=>{const r=function(e,t,n=!0,i=”anonymous”,o,s){if(!b())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),o&&r.setAttribute(“class”,o),s&&(r.onload=s),r.type=”text/javascript”,e&&(r.src=e,r.async=n,r.crossOrigin=i),window&&window.NONCE_ID&&(r.nonce=window.NONCE_ID),r}(e,t,i,void 0,void 0,(()=>o(!0)));r.crossOrigin=void 0,r.onerror=s,n.prepend(r)}))}(t,n,o,i)),s,r)}catch(e){g(“Failed to download Static JS”,11103,{scriptId:n,scriptSrc:t},p.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);} ]]>

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다