Uncategorized

MSN


MSN this.maxLength&&this.list.shift()}get data(){return this.list}};function d(t,n,r){let d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.Alert,u=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0;try{const m=function(){if(!e){const t=document.head.getAttribute(“data-client-settings”);t&&(e=JSON.parse(t))}return e}(),f=o(),h=function(e){if(e){const{pcsInfo:t,pageGenTime:n}=e,o=new Date(n).getTime(),r=!t||[“prod”,”prod-ssr”,”prod-ssrntp”].includes(t.env);i=r?”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:r?”0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279″:”f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028″,”upload-time”:o,w:”0″,anoncknm:”app_anon”}}return null}(m);let w=””;h&&h.apikey&&””!==h.apikey&&(w=function(e){if(e){const t=e.indexOf(“-“);if(t>0)return e.substring(0,t)}return””}(h.apikey));const g=function(e,t,n,i,o,r){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:c.Alert;if(n){o=o||{};const{apptype:c,audienceMode:u,pagetype:p,pageGenTime:m,bundleInfo:f,deviceFormFactor:h=””,fd_muid:w,os:g}=n;o.pageGenTime=m,o.build=f&&f.v,o.appType=c;const b=function(e,t,n){const i=n&&”phone”===n.toLowerCase(),o=t&&”enterprise”===t;return{bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:o?”entnews”:”anaheim”,hybrid:”spartan”,hub:i?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:i?”prime_mobile”:”prime”,windowsShell:”windowsshell”}[e]}(c,u,h),v=b||c,y=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let _,k=””,x=”muid”;try{if(“edgeChromium”===c&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);_=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===u?_=”entnewsntp”:”xbox”===g&&(_=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(k=s(“muid”))}catch{}k||(k=n.aid,x=”aid”);const S={name:”MS.News.Web.AppError”,time:m,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:v,type:l(p),content:{category:”standaloneError”},ocid:_},browser:{clientId:k,clientIdType:x},flight:{id:r},request:{activityId:n.aid,requestId:n.aid,afdMuid:w},locale:{mkt:y},extSchema:{id:e,severity:a,pb:o,message:t}}};var d;if(k&&”muid”===x)S.ext={…null==S?void 0:S.ext,user:{…null==S||null===(d=S.ext)||void 0===d?void 0:d.user,localId:`t:${k}`}};return S.data.flight.tmpl=””,”object”==typeof window&&(window.isSSREnabled&&(S.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(S.data.flight.tmpl+=”;ssr-completed:1″)),S?JSON.stringify(S):null}return null}(n,t,m,w,r,f,d);if(p&&!function(e){if(null==e)return!1;return e.startsWith(“2”)||e.startsWith(“3″)}(null==m?void 0:m.aid))return console.error(g),void console.error(`This App error Id: ${n} will not be sent due to app error sampling!`);if(h&&g){console.error(g),a.push(g);const e=”https://”+i+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(h);if(u&&!performance.getEntriesByType(“visibility-state”).some((e=>”visible”===e.name))){const t=()=>{“visible”===document.visibilityState&&navigator.sendBeacon(e,g)};document.addEventListener(“visibilitychange”,t,{once:!0})}else navigator.sendBeacon(e,g)}}catch{}}function l(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}const u=”visibilitychange”;function p(){return”visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(u,(()=>{“visible”===document.visibilityState&&e()}))}))}function m(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&p().then((()=>{t.logLoadingError(e)}))}function f(e){d(“Error when loading bundle: “+e,20202,{})}function h(e,t,n,i,o){d(“JS Exception”,20203,{source:t,customMessage:e,line:n,column:i,stack:o&&o.stack})}function w(e){d(“JS Exception”,20203,{customMessage:e&&e.reason&&e.reason.message,stack:e&&e.reason&&e.reason.stack})}window.onerror=h,void 0!==window.onunhandledrejection&&(window.onunhandledrejection=w),window.onErrorHandler=f,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[“vendors”,”common”,”microsoft”],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”Error when loading bundle(s): “,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e5,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;p().then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const r=n.length,s=e.length+1;if(r{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}m(20202),d(t+e.toString(),20202,{}),o&&(m(i),o(i,{customMessage:e.toString()}))}}}),n)}))}()}(); ]]> onErrorHandler(s.src);s.nonce=””;s.crossOrigin=”anonymous”;document.body.appendChild(s);} ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button