`)}
${(0,r.g)((e=>e.cardSize===l.Nv._1x_2y&&!e.imageData),i.d`
`)}
${(0,r.g)((e=>e.cardSize!==l.Nv._1x_2y&&e.imageData),i.d`
${N("anim-content",n)}
`)}
`,M=(e,t,n)=>i.d`
${(0,r.g)((e=>e.cardSize===l.Nv._1x_2y),i.d`
e.destinationUrl}
:localizedStrings=${e=>e.localizedStrings}
>
e.videoProps}
:backgroundImg=${e=>e.imageData}
region="river"
immersive=${n}
width=${t.width}
height=${t.height},
:visualReadinessCallback=${e=>e.visualReadinessCallback}
>
`)}
`,F=e=>i.d`
s.Fg.includes(e.region)}
ad-slug-ga=${e=>e.adSlugGA||e.region===s.yp.rightRail}
tel-metadata=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
has-elite-badge=${e=>{var t;return!!(null===(t=e.assets)||void 0===t?void 0:t.eliteBadge)}}
ad-label-text-opacity=${e=>{var t;return null!==(t=e.adLabelTextOpacity)&&void 0!==t?t:.7}}
:localizedStrings=${e=>e.localizedStrings}
is-msn-hp-ad-slug=${e=>e.isMsnHPAdSlug}
>
`,D=(e,t,n)=>i.d`
${(0,r.g)((e=>e.providerData),i.d`
${_(n)}
${F(t)}
`)}
`,L=e=>i.d`
${(0,r.g)((e=>e.adChoiceIconUrl),i.d`
`)}
`,$=e=>i.d`
e.toggleProng2AmplifyActionMenu(t.event)}"
data-t="${e=>{var t,n;return null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.moreOptionsClick)||void 0===n?void 0:n.getMetadataTag()}}"
role="button"
>
${(0,a.c)(b.Z)}
`,R=e=>i.d`
e.usePreviewCardTemplate?"has-preview-card-template-icon":""} end-actions">
${(0,T.Zg)()}
${L("ad-choice-icon")}
${(0,r.g)((e=>e.isAdFeedbackV1Enabled&&!!e.feedbackUrl),i.d`
${u.X5}
`)}
`,j=i.d`
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
?image-priority=${e=>e.imagePriority}
class="two-lines-heading ${e=>K(e)}"
data-t="${e=>{var t,n;return e.id&&(null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===n?void 0:n.getMetadataTag())}}"
:anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
${(0,A.lq)()}
>
${P()}
${e=>e.videoProps?M("media",g.B._300x156,!1):E("media",g.B._300x156)}
${e=>D(e.isProviderInHeader?"attribution":"start-actions",e.destinationUrl,!0)}
${R("end-actions")}
`,z=i.d`
e.adBackgroundColor}
class=""
>
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
?image-priority=${e=>e.imagePriority}
class="${e=>X(e)}"
data-t="${e=>{var t,n;return e.id?null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===n?void 0:n.getMetadataTag():""}}"
:anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
${(0,A.lq)()}
>
${O}
${P()}
${e=>e.videoProps?M("image",g.B._300x169,!0):E("image",g.B._300x225)}
${e=>e.invertSlugPosition?D("start-action",e.destinationUrl):D("attribution",e.destinationUrl)}
${R("end-action")}
`,B=i.d`
Object.assign(Object.assign({},e),{getArticleCardClassnames:X,createNativeAdFaviconWithProviderName:O,renderTitle:P,renderVideo:M,renderImage:E,renderStartSection:D,renderEndSection:R})}
>
`,H=i.d`
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
?image-priority=${e=>e.imagePriority}
class="${e=>X(e)}"
data-t="${e=>{var t,n;return e.id?null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===n?void 0:n.getMetadataTag():""}}"
:anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
${(0,A.lq)()}
>
${P()}
${E("image",g.B._300x225)}
${e=>D("attribution",e.destinationUrl)}
${(0,r.g)((e=>e.gradientType),i.d`
`)}
${R("end-action")}
`,W=i.d`
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
style="--heading-max-lines: 3;"
class="msft-content-native-ad-preview ${e=>K(e)}"
style="--heading-max-lines: ${e=>e.hasAnyInlineDecoration?2:3}"
data-t="${e=>{var t,n;return e.id?null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===n?void 0:n.getMetadataTag():""}}"
:anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
${(0,A.lq)()}
>
${P()}
${E("media",g.B._104x84)}
${(0,h.o)("call-to-action")}
${e=>D("attribution",e.destinationUrl)}
${R("end-actions")}
`,U=i.d`
Object.assign(Object.assign({},e),{renderImageTag:N})}
>
`,G=i.d`
Object.assign(Object.assign({},e),{renderStartSection:D,renderEndSection:R,renderTitle:P,renderImage:E,renderImageTag:N,nativeAdBeacons:A.lq,getContentCardClassnames:K,seeMoreButtonTemplate:u.X5,ContentCardImageSizes:g.B,FeedLayoutCardSize:l.Nv})}>
`,V=i.d`
e.adBackgroundColor}
>
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
?image-priority=${e=>e.imagePriority}
class="amplify-ad ${e=>X(e)}"
data-t="${e=>{var t,n;return e.id?null===(n=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===n?void 0:n.getMetadataTag():""}}"
:anchorTelemetryTag="${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}"
${(0,A.lq)(!0,!0,!1,!0)}
>
${q="prong2-attribution",i.d`
${(0,r.g)((e=>e.useProng2AmplifyCardTemplate),i.d`
${e=>e.prong2AmplifyBusinessName}
${$("amplify-action-button")}
`)}
`}
e.useProng2AmplifyCardTemplate?"prong2-amplify-title":""} style="font-size:18px;">${e=>e.title}
${E("image",g.B._300x225)}
e.localizedStrings&&e.localizedStrings.nativeAdLearnMoreText} role="button" class=${e=>e.useProng2AmplifyCardTemplate?"prong2-amplify-cta":"join-now"}>
${e=>e.localizedStrings&&e.localizedStrings.nativeAdLearnMoreText}
${e=>e.useProng2AmplifyCardTemplate?"":e.localizedStrings&&e.localizedStrings.nativeAdPromotedByText}
${L("ad-choice")}
`;var q;const J=i.d`
{var t;return null===(t=e.nativeAdWC)||void 0===t?void 0:t.configRef}}
:localizedStrings=${e=>e.localizedStrings}
:adData=${e=>e}
>
`,Z=i.d`
${e=>Q(e)}
`,Q=e=>{const t=(n=e,(0,k.Z)(n,"template.templateType",y.SI.Default)===y.SI.Default);var n;const i=e.useHomepageCardTemplate,r=e.usePreviewCardTemplate,a=e.useArticleCardTemplate,o=e.nativeAdWC&&!e.disableAdsUXExperiment;return o||((0,p.f3)(),(0,f.h)(),(0,m.w)(),(0,C.e)()),e.imageData||e.videoProps||e.visualReadinessCallback&&e.visualReadinessCallback(),(e=>e&&e.useAmplifyCardTemplate&&e.id&&e.id.indexOf("amplifyad")>=0)(e)||(e=>e&&e.useProng2AmplifyCardTemplate)(e)?V:e.videoProps?z:o?J:(0,v.pi)(e)&&!e.disableAdsUXExperiment?G:t||(0,v.E8)(e)||e.disableAdsUXExperiment?"partners-stripe"==(s=e.region)||"promotion-stripe"==s||"recommended-stripe"==s||"shopping-stripe"==s?U:i?H:r?W:a?e.isAdNonDRWCTemplate?B:z:j:((0,c.OO)(void 0,d.Psw,"renderNativeAdCardTemplate failed to find a template for display and fell back to nativeAdArticleCardTemplate",JSON.stringify(e)),z);var s},X=e=>{let t=(0,I.$H)(e.enableSafeAds,"native-ad");return e.gradientType&&(t+=" gradient",e.gradientType===x.Long&&(t+=" long-gradient")),e.videoProps&&(t+=" nativeAdVideo-river"),e.zoomRatio&&(t+=" zoom-ratio"),e.useWhiteGradient&&(t+=" white-gradient"),t},K=e=>{const t=[];return(e.isProviderInHeader||e.isProviderInFooter)&&t.push("wideIconMargin"),e.videoProps&&t.push("nativeAdVideo-river"),e.isThreeLineHeading&&t.push("three-lines-heading"),t.join(" ")}},26691:function(e,t,n){n.d(t,{g:function(){return a}});var i=n(23224),r=n(81563);const a=n(49218).d`
${e=>(0,r.O)(e.shoppingvideoCarouselConfigInstance,{includeTelemetryTag:!1,properties:{getContentIndicator:i.A$,cardMetadata:e.cardMetadata,carouselType:e.carouselType,parentTelemetry:e.parentTelemetryObject,gridArea:e.grid_area,cardSize:e.cardSize,configOptions:e.configOptions,displaySettings:e.displaySettings,secIndex:e.secIndex,newsXfeedNavigationHandlerCallback:e.newsXfeedNavigationHandlerCallback,refreshFeedCallback:e.refreshFeedCallback}})}
`},73800:function(e,t,n){n.d(t,{h:function(){return b}});var i,r,a=n(74045),o=n(84551),s=n(76859),c=n(75351),d=n(38156),l=n(52420),u=n(82891),g=n(9375),p=n(16517),h=n(72088),f=n(44772),m=n(52965);!function(e){e.Header="header",e.Vertical="homepage",e.HeaderLinkHL="TopStories",e.TopStoriesCard="TopStoriesCard",e.CardVersion="single",e.FlipperNext="FlipperNext",e.FlipperPrevious="FlipperPrevious",e.SubCard="topstories"}(i||(i={})),function(e){e.Header="trendingnow_header",e.Vertical="homepage",e.HeaderLinkHL="TrendingNow",e.TrendingNowCard="TrendingNow",e.CardVersion="single",e.FlipperNext="FlipperNext",e.FlipperPrevious="FlipperPrevious",e.SubCard="trendingnow"}(r||(r={}));var v=n(53909);function b(e){const{cardMetadata:t,parentTelemetryObject:n,cardSlot:b,localizedStrings:S,openLinksInNewTab:w,cardActionClickHandler:x,cardActionBitMask:T,initCardAction:A,enableRichSocialReaction:k,visualReadinessCallback:I,configOptions:O,refreshFeedCallback:_,layoutTemplateName:P,rowCount:N,rowHeightPx:E,colWidthPx:M,gutterPx:F,isAnaheimDesign:D,colOverride:L,additionalHeaders:$}=e,{topStoriesHeadingText:R,workHeadlinesHeadingText:j,workHeadlinesTooltipText:z}=S,B={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:H,layouts:W,cardDomOrder:U,telemetryRowCol:G}=b,V=((e,t)=>{if(!e)return;let n,a;t===f.PL.TopicFeedTrendingNow||t===f.PL.TopicFeed?(n=e.addOrUpdateChild({name:r.TrendingNowCard,type:d.c9.ContentGroup}),a=r):(n=e.addOrUpdateChild({name:i.TopStoriesCard,type:d.c9.ContentGroup}),a=i);const o=n.addOrUpdateChild({name:a.CardVersion,type:d.c9.ContentGroup}),s=o.addOrUpdateChild({name:a.SubCard}),c=n.addOrUpdateChild({name:a.Header,action:d.Aw.Click,behavior:d.wu.Navigate,type:d.c9.ContentGroup,content:{id:a.Header,type:d.uH.Feed,vertical:a.Vertical,headline:a.HeaderLinkHL}}),l=n.addOrUpdateChild({name:a.FlipperPrevious,action:d.Aw.Click,behavior:d.wu.Show,content:{id:a.FlipperPrevious},type:d.c9.ContentGroup}),u=n.addOrUpdateChild({name:a.FlipperNext,action:d.Aw.Click,behavior:d.wu.Show,content:{id:a.FlipperNext},type:d.c9.ContentGroup}),{zone:g}=e.contract||{};return g&&(n.contract.zone=g,c.contract.zone=g),{componentRoot:e,topStoriesCard:n,cardVersion:o,subCard:s,headingClick:c,flipperNextClick:u,flipperPreviousClick:l}})(n,t.type),q=O&&O.topStoryCardConfig;let J;if(q&&q.topStoriesLandingPageLink){const e=(0,u.h_)(q.topStoriesLandingPageLink);J=(0,g.w_)(e)}const Z=O&&(O.childExperienceReferencesWC&&O.childExperienceReferencesWC.socialBarWC||O.childExperienceReferences&&O.childExperienceReferences.socialBarWC),Q=t.type===f.PL.WorkHeadlines,X=Q?[a.Us.Report]:null,K=function(e,t,n,i,r,a,o,s,d,l,u,g,m){if(!e)return[];const b=d&&d.shouldOpenArticlesInOverlay,y=d&&d.childExperienceReferencesWC&&d.childExperienceReferencesWC.overlayWC;return e.map((e=>{const{locale:C,provider:S,publishedDateTime:w,title:x,url:T,destinationUrl:A,id:k,abstract:I,type:O}=e,_=T||A;let P;if(a){const t=(0,c.nj)(a,e,null,null,O===f.PL.WebContent);t&&(P={contentCard:t.contentCard,contentCardTelemetryObject:t.contentCard&&t.contentCard,button:t.seeMore&&t.seeMore.getMetadataTag(),destination:t.destination,buttonTelemetryObject:t.seeMore,seeMore:t.seeMore})}const N=(0,h.PZ)(e,n),{cardActionsTooltips:E,crawledContentLabel:M}=t,F=O===f.PL.WebContent;let D,L;if(d&&(d.useThumbnailTopStories||d.useRightRailTopStories||d.useTopStoriesRibbonCarousel)){let t;t=(null==d?void 0:d.useImgGenerator)?d.stockImageData&&{url:(0,v.zz)(d.stockImageData.id,{width:0,height:0,enableDpiScaling:!1}),width:d.stockImageData.width,height:d.stockImageData.height}:d.stockImageData;const n=e.images&&e.images[0]||t,i=n&&n.colorSamples,r=e&&e.colorSamples;D=function(e,t){if(!e)return;const{attribution:n,title:i=t,url:r}=e;if(!r)return null;const a=[];i&&a.push(i);n&&a.push(n);let o;a.length&&(o=a.join(" - "));return{source:r,altText:o}}(n,e.title),L=(0,h.vp)(i,r,!0)}let $=(0,h.e_)(_);return"winWidgets"!==p.jG.AppType&&"windowsNewsPlus"!==p.jG.AppType||($=(0,c.Z1)($)),{id:k,abstract:I,articleCardBackgroundColor:L,grid_area:null,card_template_type:null,cardActionStatus:!F&&N,cardActionClickHandler:i,cardActionsTooltips:E,crawledContentLabel:M,isWebContent:F,destinationUrl:$,enableRichSocialReaction:!F&&o,isProviderIconClickable:d&&d.isProviderIconClickable,locale:C,imageData:D,title:x,providerData:(0,h.i2)(S,F),publishedDateTime:d&&d.enableArticleTimestamps&&`${(0,h.nA)(d.enableNewTimestampFormatForJAJP,new Date(w),C,t)}`,toggleCardActionMenu:(e,t)=>(0,h.AO)(e,t,i,r,!0,!0,l,null==d?void 0:d.openPersonalizeWithoutRouter),telemetryContext:P,openLinksInNewTab:s,openArticleInNewTab:d&&d.openArticleInNewTab,ariaLabel:(0,h.Jl)(x,S,t),actionsArrayOverride:u,socialBarWCConfigInfo:g,metadata:e,enableFilledIconOnHover:d&&d.enableFilledIconOnHover,shouldOpenInOverlay:b,handleContentCardClickOverride:e=>(0,h._g)(b,$,e),overlayConfigInfo:y,additionalHeaders:m,disableCardTitleTooltip:d&&d.disableCardTitleTooltip,disableTitleOnArticleCardOnly:d&&d.disableTitleOnArticleCardOnly}}))}(t.subCards,S,T,x,A,V&&V.topStoriesCard,!Q&&k,w,O,_,X,Z,$),Y=Q?j:R,ee={id:"topStories",grid_area:H,card_template_type:"top-stories-card",listCardData:K,openLinksInNewTab:w,topStoriesHeadingText:O&&!0===O.disableTopStoriesCardHeading?"":Y,tooltip:Q?z:null,telemetryContext:V,cardLayout:y(O,K.length),cardBackground:C(O),headingLink:J,isAnaheimDesign:D,disableTopStoriesInlineAction:null==O?void 0:O.disableTopStoriesInlineAction,isDynamicFeed:O&&O.isDynamicFeed,useGradientBackground:q&&q.useGradientBackground,disableCardTitleTooltip:O&&O.disableCardTitleTooltip,disableTitleOnArticleCardOnly:O&&O.disableTitleOnArticleCardOnly,enableFeeds2TopStoriesCarousel:O&&O.enableFeeds2TopStoriesCarousel,showTopStoriesFlippersOnHoverOnly:O&&O.showTopStoriesFlippersOnHoverOnly,isSpotlightUX:t.metadata&&t.metadata.showTopStoriesBreakingNewsTag&&t.metadata.isSpotlightUX,spotlightBreakingNewsTagString:S&&S.topStoriesBreakingNewsTagString};return B.cards.push(ee),Object.keys(W).forEach((e=>{const t=U&&U[e],n=W[e],i=(0,o.s)(n,P,H,G&&G[e],N&&N[e],E&&E[e],M,F,t,L),r=(0,m.Z)(K);r.forEach((e=>{e.telemetryContext&&e.telemetryContext.contentCard&&e.telemetryContext.destination&&(e.telemetryContext.destination=e.telemetryContext.contentCard.addOrUpdateChild(Object.assign(Object.assign({},e.telemetryContext.destination.contract),{type:d.c9.Headline,ext:i})))}));const a={id:"topStories",card_dom_order:t,cardSize:n,listCardData:r};n===s.Nv._1x_2y&&(a.cardLayout=O&&O.useThumbnailTopStories?l.jX.CompactThumbnail:l.jX.Compact),O&&O.useRightRailTopStories&&(a.cardLayout=n===s.Nv._1x_3y?l.jX.TallRightRail:l.jX.RightRail),B[e].push(a)})),I&&I(),B}function y(e,t){return e&&e.useRightRailTopStories?l.jX.RightRail:e&&e.useTopStoriesRibbonCarousel?l.jX.RibbonCarousel:e&&e.useThumbnailTopStories?t>3?l.jX.Thumbnail:l.jX.CompactThumbnail:e&&e.useStackedTopStories?l.jX.Stacked:t>3?l.jX.Normal:l.jX.Compact}function C(e){return e&&e.useSectionHeaderTopStories?l.QH.InheritSection:e&&e.useGradientTopStories?l.QH.Gradient:l.QH.Normal}},52420:function(e,t,n){n.d(t,{AO:function(){return u},QH:function(){return r},jX:function(){return i}});var i,r,a=n(33940),o=n(64341),s=n(76859),c=n(28904),d=n(42590),l=n(99452);class u extends c.H{constructor(){super(...arguments),this.cardActionMenuHandler=(e,t)=>{e.toggleCardActionMenu&&e.toggleCardActionMenu(e,t)},this.supportedCardSizeTopStoriesCarousel=["_1x_1y","_2x_1y","_3x_1y","_4x_1y"]}layoutChanged(e,t){this.isImageLayout=!1,this.isAttributionLayout=!1,t!==i.RibbonCarousel||this.supportedCardSizeTopStoriesCarousel.find((e=>e===this.cardSize))||(this.cardSize===s.Nv._1x_2y?this.layout=i.Compact:this.layout=i.Normal),t!==i.Thumbnail&&t!==i.CompactThumbnail&&t!==i.RibbonCarousel&&t!==i.TallRightRail&&t!==i.RightRail||(this.isImageLayout=!0),t!==i.Normal&&t!==i.Thumbnail&&t!==i.CompactThumbnail&&t!==i.RibbonCarousel||(this.isAttributionLayout=!0)}backgroundChanged(e,t){e!==t&&(e&&this.$fastController.removeStyles(this.getBackgroundStyles(e)),this.$fastController.addStyles(this.getBackgroundStyles(t)))}getBackgroundStyles(e){switch(e){case r.InheritSection:return o.K7;case r.Gradient:return o.$s;default:return o.zv}}getDynamicGradientColor(){if(!this.useGradientBackground)return"";this.$fastController.addStyles(o._2);const e=(new Date).getHours();let t;return t=e>=6&&e<12?"dynamic-gradient-morning":e>=12&&e<17?"dynamic-gradient-day":e>=17&&e<22?"dynamic-gradient-sunset":"dynamic-gradient-night",t}connectedCallback(){super.connectedCallback()}disconnectedCallback(){}scrollToPrevious(){if(this.enableFeeds2Carousel){const e=this.getCurrentScrollIndex(),t=e-2>0?e-2:0;this.horizontalScroll.scrollToPosition(this.scrollStops[t],this.horizontalScroll.scrollContainer.scrollLeft)}else this.horizontalScroll.scrollToPrevious()}scrollToNext(){if(this.enableFeeds2Carousel){const{scrollItems:e,scrollContainer:{scrollLeft:t}}=this.horizontalScroll,n=this.getCurrentScrollIndex(),i=n+2
Math.abs(e)>=Math.abs(t)))}saveScrollStops(){const{scrollItems:e}=this.horizontalScroll;this.scrollStops=e.map(((e,t)=>280*t)),this.scrollStops.push(280*(e.length-1)+272)}}(0,a.gn)([(0,d.Lj)({attribute:"is-anaheim-design",mode:"boolean"})],u.prototype,"isAnaheimDesign",void 0),(0,a.gn)([(0,d.Lj)({attribute:"is-anaheim-infopane",mode:"boolean"})],u.prototype,"isAnaheimInfopane",void 0),(0,a.gn)([(0,d.Lj)({attribute:"disable-inline-action",mode:"boolean"})],u.prototype,"disableTopStoriesInlineAction",void 0),(0,a.gn)([(0,d.Lj)({attribute:"card-heading"})],u.prototype,"cardHeading",void 0),(0,a.gn)([(0,d.Lj)({attribute:"card-heading-link"})],u.prototype,"cardHeadingLink",void 0),(0,a.gn)([(0,d.Lj)({attribute:"card-tooltip"})],u.prototype,"tooltip",void 0),(0,a.gn)([(0,d.Lj)({attribute:"feeds-2-carousel",mode:"boolean"})],u.prototype,"enableFeeds2Carousel",void 0),(0,a.gn)([(0,d.Lj)({attribute:"prong2-dynamic-feed",mode:"boolean"})],u.prototype,"isDynamicFeed",void 0),(0,a.gn)([(0,d.Lj)({attribute:"prong2-dynamic-gradient-background",mode:"boolean"})],u.prototype,"useGradientBackground",void 0),(0,a.gn)([d.Lj],u.prototype,"target",void 0),(0,a.gn)([l.LO],u.prototype,"cardData",void 0),(0,a.gn)([l.LO],u.prototype,"headingTelemetryTag",void 0),(0,a.gn)([l.LO],u.prototype,"flipperNextTelemetryTag",void 0),(0,a.gn)([l.LO],u.prototype,"fliperPreviousTelemetryTag",void 0),(0,a.gn)([l.LO],u.prototype,"cardVersionTelemetryTag",void 0),(0,a.gn)([l.LO],u.prototype,"subCardTelemetryTag",void 0),(0,a.gn)([l.LO],u.prototype,"isSpotlightUX",void 0),(0,a.gn)([l.LO],u.prototype,"spotlightBreakingNewsTagString",void 0),(0,a.gn)([(0,d.Lj)({attribute:"card-size"})],u.prototype,"cardSize",void 0),(0,a.gn)([d.Lj],u.prototype,"layout",void 0),(0,a.gn)([d.Lj],u.prototype,"background",void 0),function(e){e.Compact="compact",e.CompactThumbnail="compactthumb",e.TallRightRail="tallrightrail",e.RightRail="rightrail",e.Normal="normal",e.Stacked="stacked",e.Thumbnail="thumb",e.RibbonCarousel="ribbonCarousel"}(i||(i={})),function(e){e.Normal="normal",e.Gradient="gradient",e.InheritSection="inheritSection"}(r||(r={}))},64341:function(e,t,n){n.d(t,{$s:function(){return v},Dg:function(){return f},K7:function(){return b},_2:function(){return y},zv:function(){return m}});var i=n(32804),r=n(22674),a=n(29717),o=n(78923),s=n(67739),c=n(46943),d=n(92059);const l=o.i`
:host {
--background-gradient-angle: 44.24deg;
--inline-actions-gradient-angle: 270deg;
--inline-actions-dynamic-gradient-angle: 90deg;
--feeds-2-light-background-gradient-angle: 93.96deg;
--feeds-2-dark-background-gradient-angle: 138.52deg;
}
:host msft-article .inline-actions {
right: 0;
}
:host([layout="thumb"]) msft-article .inline-actions,
:host([layout="compactthumb"]) msft-article .inline-actions {
right: 88px;
}
:host([layout="thumb"][card-size="_2x_2y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_2x_2y"]) msft-article .inline-actions {
right: 72px;
}
:host([layout="thumb"][card-size="_1x_2y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_1x_2y"]) msft-article .inline-actions,
:host([layout="thumb"][card-size="_1x_3y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_1x_3y"]) msft-article .inline-actions {
right: 65px;
}
:host .icon-tooltip {
left: 15px;
}
`,u=o.i`
:host {
--background-gradient-angle: -44.24deg;
--inline-actions-gradient-angle: -270deg;
--feeds-2-light-background-gradient-angle: -93.96deg;
--feeds-2-dark-background-gradient-angle: -138.52deg;
}
:host msft-article .inline-actions {
left: 0;
}
:host([layout="thumb"]) msft-article .inline-actions,
:host([layout="compactthumb"]) msft-article .inline-actions {
left: 88px;
}
:host([layout="thumb"][card-size="_2x_2y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_2x_2y"]) msft-article .inline-actions {
left: 72px;
}
:host([layout="thumb"][card-size="_1x_2y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_1x_2y"]) msft-article .inline-actions,
:host([layout="thumb"][card-size="_1x_3y"]) msft-article .inline-actions,
:host([layout="compactthumb"][card-size="_1x_3y"]) msft-article .inline-actions {
left: 65px;
}
:host msft-article .inline-actions .actions-button {
margin: 4px 0 4px 8px;
}
:host .icon-tooltip {
right: 15px;
}
`,g=o.i`
:host([layout="ribbonCarousel"]) {
border-radius: 0;
}
:host([layout="ribbonCarousel"][background="gradient"]) {
background: linear-gradient(var(--ribbon-carousel-gradient-background));
}
:host([layout="ribbonCarousel"][background="inheritSection"]) fluent-horizontal-scroll {
display: block;
margin: 0 16px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) fluent-horizontal-scroll {
margin-inline: 16px;
}
:host([layout="ribbonCarousel"][card-size="_1x_1y"]) .inner-content {
width: 300px;
}
:host([layout="ribbonCarousel"][card-size="_2x_1y"]) .inner-content {
width: 612px;
}
:host([layout="ribbonCarousel"][card-size="_3x_1y"]) .inner-content {
width: 924px;
}
:host([layout="ribbonCarousel"][card-size="_4x_1y"]) .inner-content {
width: 1236px;
}
:host([layout="ribbonCarousel"]) .inner-content {
overflow: visible;
}
:host([layout="ribbonCarousel"][background="inheritSection"]) .inner-content {
width: 100%;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .inner-content {
padding-bottom: 16px;
}
:host([layout="ribbonCarousel"]) .heading-container {
padding-top: 10px;
padding-bottom: 2px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading-container {
padding-bottom: 0;
padding-top: 0;
}
:host([layout="ribbonCarousel"][card-size="_1x_2y"]) .heading-container {
padding-top: 12px;
}
:host([layout="ribbonCarousel"]) .heading {
font-size: var(--type-ramp-plus-1-font-size);
font-weight: 600;
line-height: var(--type-ramp-plus-1-line-height);
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading {
font-size: var(--type-ramp-minus-1-font-size, 12px);
line-height: var(--type-ramp-minus-1-line-heigh, 16px);
display: inline-flex;
padding: 16px 16px;
font-weight: 400;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading-container {
align-items: baseline;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading svg {
margin-inline-end: 8px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading::after {
content: "";
position: absolute;
top: 0px;
right: 0px;
left: 0px;
height: 160px;
width: 612px;
z-index: 1;
}
:host([layout="ribbonCarousel"]) fluent-horizontal-scroll {
max-width: -webkit-fill-available;
max-width: -moz-available;
--scroll-item-spacing: 0;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) fluent-horizontal-scroll {
z-index: 2;
}
:host([layout="ribbonCarousel"]) msft-article {
height: 102px;
min-width: 300px;
white-space: initial;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article {
height: 96px;
width: 272px;
min-width: 272px;
background: var(--article-backplate);
border-radius: 8px;
margin-inline-end: 8px;
}
:host([layout="ribbonCarousel"]) msft-article,
:host([layout="ribbonCarousel"][background="inheritSection"]) msft-article {
margin-inline-end: 12px;
}
:host([layout="ribbonCarousel"]) msft-article:last-child,
:host([layout="ribbonCarousel"][background="inheritSection"]) msft-article:last-child {
margin-inline-end: 0;
}
:host([layout="ribbonCarousel"]) msft-article .image {
height: 60px;
margin-top: 4px;
width: 60px;
}
:host([layout="ribbonCarousel"]) msft-article .image {
height: 80px;
margin-top: 0px;
width: 68px;
}
:host([layout="ribbonCarousel"]) msft-article::part(heading) {
-webkit-line-clamp: var(--heading-max-lines, 3);
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(heading) {
--msft-article-heading-font-size: 14px;
--msft-article-heading-line-height: 20px;
margin-top: 20px;
width: 180px;
}
:host([layout="ribbonCarousel"]) msft-article::part(article) {
height: 88px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(article) {
height: 80px;
padding: 8px;
}
:host([layout="ribbonCarousel"]) msft-article::part(attribution) {
position: absolute;
bottom: 4px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(attribution),
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(actions) {
top: 8px;
}
:host([layout="ribbonCarousel"]) msft-article .inline-actions {
bottom: 0;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article .inline-actions {
top: -8px;
inset-inline-end: 72px;
}
:host([layout="ribbonCarousel"][background="gradient"]) msft-article.social-reaction-enabled .inline-actions {
background: linear-gradient(var(--inline-actions-ribbon-carousel-gradient-background));
}
:host([layout="ribbonCarousel"][background="gradient"]) social-bar-wc::part(reaction-menu-container) {
background: var(--background-ribbonCarousel-social-bar);
}
:host([layout="ribbonCarousel"][background="gradient"][feeds-2-carousel="true"]) social-bar-wc::part(reaction-menu-container) {
top: 0px;
animation: none;
}
:host .card-content {
display: flex;
overflow-x: hidden;
}
:host .card-content msft-article.carousel {
display: block;
}
:host([layout="ribbonCarousel"][background="inheritSection"]) ::part(viewport) {
overflow-y: hidden;
}
:host([layout="ribbonCarousel"]) .next,
:host([layout="ribbonCarousel"]) .previous {
width: 32px;
height: 32px;
border-color: transparent;
border-radius: 999px;
box-shadow: 0px 3.2px 7.2px rgb(0 0 0 / 13%), 0px 0px 3.8px rgb(0 0 0 / 11%);
background: var(--neutral-fill-stealth-rest);
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous {
height: 38px;
width: 16px;
fill: var(--neutral-foreground-hint);
backdrop-filter: blur(60px);
border-radius: 3px;
box-shadow: none;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"][show-flippers-on-hover-only="false"]) .next,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"][show-flippers-on-hover-only="false"]) .previous {
opacity: 1;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next:hover,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous:hover {
fill: var(--neutral-foreground-rest);
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next {
margin-inline-start: 16px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous {
margin-inline-end: 16px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next::before,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous::before {
border-radius: 3px;
background: var(--feeds-2-flipper-background);
}
:host([layout="ribbonCarousel"][background="inheritSection"]) .previous {
margin-inline-start: 10px;
}
:host([layout="ribbonCarousel"][background="inheritSection"]) .next {
margin-inline-end: 10px;
}
:host([layout="ribbonCarousel"][background="gradient"]):not([feeds-2-carousel="true"]) .previous {
margin-inline-start: 36px;
}
:host([layout="ribbonCarousel"][background="gradient"]):not([feeds-2-carousel="true"]) .next {
margin-inline-end: 36px;
}
:host([layout="ribbonCarousel"]) .next::before,
:host([layout="ribbonCarousel"]) .previous::before {
border-color: transparent;
}
`,p=o.i`
:host([layout*="rightrail"]) .heading {
font-size: var(--type-ramp-minus-1-font-size);
line-height: var(--type-ramp-minus-1-line-height);
color: var(--neutral-foreground-hint);
}
:host([layout="rightrail"]) msft-article .image {
height: 62px;
width: 62px;
}
:host([layout="tallrightrail"]) msft-article .image {
height: 76px;
width: 76px;
}
:host([layout="tallrightrail"]) msft-article::part(heading) {
-webkit-line-clamp: var(--heading-max-lines, 3);
}
:host([layout*="rightrail"]) .heading-container {
text-transform: uppercase;
}
:host([layout*="rightrail"]) .heading {
padding-left: 16px;
padding-right: 16px;
}
:host([layout="tallrightrail"]) msft-article {
height: 92px;
}
:host([layout*="rightrail"]) msft-article::part(article) {
padding: 8px 16px;
}
:host([layout*="rightrail"]) social-bar-wc::part(button-bg):hover,
:host([layout*="rightrail"]) social-bar-wc::part(button-bg):hover {
background-color: initial;
}
:host([layout="tallrightrail"]) msft-article.social-reaction-enabled .inline-actions {
min-width: 76px;
}
:host([layout="rightrail"]) msft-article.social-reaction-enabled .inline-actions {
min-width: 62px;
}
`,h=o.i`
:host([background="gradient"]) {
--neutral-fill-stealth-hover: var(--gradient-hover);
background: linear-gradient(var(--gradient-background));
background-color: var(--background-color-dark-mode);
}
:host([background="gradient"][layout="ribbonCarousel"][feeds-2-carousel="true"]) {
background: linear-gradient(var(--feeds-2-gradient-background));
}
:host([layout="normal"][background="gradient"][card-size="_3x_2y"]) msft-article {
--neutral-fill-stealth-hover: transparent;
--inline-actions-gradient-background: transparent;
--inline-actions-alt-gradient-background: transparent;
}
:host([layout="normal"][background="gradient"]) msft-article::part(actions) {
background: transparent;
}
:host([layout="thumb"][background="gradient"]) msft-article:hover .inline-actions,
:host([layout="thumb"][background="gradient"]) msft-article:focus-within .inline-actions,
:host([layout="thumb"][background="gradient"]) msft-article:hover .inline-actions social-bar-wc::part(social-bar),
:host([layout="thumb"][background="gradient"]) msft-article:focus-within .inline-actions social-bar-wc::part(social-bar) {
background: none;
}
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-1));
}
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-2));
}
:host([background="gradient"][card-size="_1x_3y"]) msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions,
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-3));
}
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-4));
}
:host([background="gradient"][card-size="_1x_3y"]) msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions,
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-5));
}
:host([background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-6));
}
:host([layout="compact"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: linear-gradient(var(--inline-actions-compact-gradient-background-1));
}
:host([layout="compact"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: linear-gradient(var(--inline-actions-compact-gradient-background-2));
}
:host([layout="compact"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: linear-gradient(var(--inline-actions-compact-gradient-background-3));
}
:host([layout="compactthumb"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-1));
}
:host([layout="compactthumb"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-3));
}
:host([layout="compactthumb"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: linear-gradient(var(--inline-actions-thumb-gradient-background-5));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-1));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-2));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-3));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-4));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-5));
}
:host([layout="stacked"][background="gradient"]) msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: linear-gradient(var(--inline-actions-stacked-gradient-background-6));
}
:host([layout="ribbonCarousel"][background="gradient"][feeds-2-carousel="true"]) msft-article.social-reaction-enabled .inline-actions {
background: linear-gradient(var(--inline-actions-feeds-2-gradient-background));
}
:host([background="gradient"]):host msft-article .inline-actions .actions-button:${s.b} {
background: transparent;
}
:host([background="gradient"]) msft-article .inline-actions .divider {
border-left: 1px solid rgba(0, 0, 0, 0.09);
margin-top: 2px;
}
:host([background="gradient"]) msft-article:hover,
:host([background="gradient"]) msft-article:focus-within,
:host([background="gradient"]) social-bar-wc::part(button-bg):hover,
:host([background="gradient"]) msft-article .inline-actions .actions-button:hover {
background: var(--gradient-hover);
}
:host([background="gradient"]) social-bar-wc::part(reaction-menu-container) {
background: var(--background-social-bar);
}
:host([background="gradient"]) msft-article.filled-icon-hover social-bar-wc::part(button-bg):hover,
:host([background="gradient"]) msft-article.filled-icon-hover social-bar-wc::part(comments-count-button):hover,
:host([background="gradient"]) msft-article.filled-icon-hover .inline-actions .actions-button:hover {
background: transparent;
}
`,f=o.i`
:host {
--msft-article-heading-line-height: 22px;
display: flex;
height: 100%;
border-radius: calc(var(--layer-corner-radius) * 1px);
}
:host .inner-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0 auto;
overflow: var(--overflow, hidden);
}
:host msft-article .image {
border-radius: 4px;
margin-inline-start: 6px;
overflow: hidden;
}
:host msft-article .image {
height: 72px;
width: 72px;
}
:host([card-size="_2x_2y"]) msft-article .image {
height: 59px;
width: 59px;
}
:host([card-size="_1x_2y"]) msft-article .image,
:host([card-size="_1x_3y"]) msft-article .image {
height: 52px;
width: 52px;
}
:host([layout="normal"]),
:host([layout="thumb"]),
:host([layout*="rightrail"]) {
padding-left: 3px;
padding-right: 3px;
}
:host([layout="normal"][class="infopane-anaheim-design"]),
:host([layout="thumb"][class="infopane-anaheim-design"]),
:host([layout*="rightrail"][class="infopane-anaheim-design"]) {
padding-left: 2px;
padding-right: 2px;
}
:host([card-size="_3x_2y"]) {
padding-left: 9px;
padding-right: 9px;
}
:host([card-size="_3x_2y"]) msft-article {
width: 444px;
}
:host([layout="compact"]),
:host([layout="compactthumb"]),
:host([layout*="rightrail"]) {
--msft-article-heading-font-size: 14px;
--msft-article-heading-line-height: 20px;
}
:host([layout="compact"]) msft-article {
height: 80px;
}
:host([layout="ribbonCarousel"]) msft-article,
:host([layout*="rightrail"]) msft-article {
padding-bottom: 0px;
}
:host([layout="normal"]) msft-article,
:host([layout="thumb"]) msft-article {
padding-bottom: 0px;
margin-bottom: 6px;
}
:host msft-article::part(heading) {
-webkit-line-clamp: var(--heading-max-lines, 2);
}
:host msft-article::part(heading)::after {
height: 100%;
width: 100%;
}
:host msft-article.crawled-content::part(heading) {
-webkit-line-clamp: var(--heading-max-lines, 1);
}
:host .heading-container {
width: 100%;
position: relative;
display: flex;
align-items: center;
}
:host .heading-container.anaheim-infopane {
padding-top: 12px;
padding-bottom: 6px;
}
:host .anaheim-infopane-bottom-padding {
height: 8px;
width: 100%;
}
:host([card-size="_3x_2y"]) .heading-container {
padding-left: 3px;
padding-right: 3px;
}
:host .heading {
font-size: var(--type-ramp-base-font-size);
line-height: var(--type-ramp-base-line-height);
font-weight: 600;
color: ${i.CHi};
margin: 0;
padding: 16px 12px 10px;
width: 100%;
}
:host([layout="normal"]) .heading,
:host([layout="thumb"]) .heading {
padding-left: 9px;
padding-right: 9px;
}
:host .heading-link {
text-decoration: none;
}
:host .heading-icon-container {
cursor: pointer;
display: inline-block;
fill: ${i.CHi};
padding: 0 8px;
height: 18px;
}
:host .heading-icon-container:hover .icon-tooltip,
:host .heading-icon-container:focus .icon-tooltip {
visibility: visible;
opacity: 1;
}
:host .icon-tooltip {
background-color: ${i.sG3};
border-radius: 4px;
color: ${i.CHi};
font-size: var(--type-ramp-base-font-size);
line-height: var(--type-ramp-base-line-height);
opacity: 0;
padding: 8px;
position: absolute;
text-transform: initial;
top: 40px;
transition: opacity 0.3s;
visibility: hidden;
width: 200px;
z-index: 1;
}
:host([layout="compact"]) .heading {
text-transform: uppercase;
color: ${i.Q5n};
font-size: var(--type-ramp-minus-1-font-size);
line-height: var(--type-ramp-minus-1-line-height);
}
:host([layout="compact"]) .heading-icon-container {
fill: ${i.Q5n};
}
:host msft-article {
border-radius: 0;
height: 80px;
padding-bottom: 6px;
width: 300px;
z-index: 0;
}
:host([layout="stacked"]) msft-article::part(text) {
display: inline-flex;
}
:host([layout="stacked"]) msft-article::part(abstract) {
margin-inline-start: 0px;
width: 90px;
}
:host([layout="stacked"][card-size="_2x_2y"]) msft-article.stacked-fromweb::part(heading) {
max-width: 470px;
}
:host([layout="stacked"][card-size="_3x_2y"]) msft-article.stacked-fromweb::part(heading) {
max-width: 770px;
}
:host([layout="stacked"]) msft-article {
height: 36px;
margin: 0 9px;
padding: 0;
width: 100%;
}
:host([layout="stacked"]) msft-article:nth-of-type(6) {
margin-bottom: 6px;
padding: 0;
}
:host([layout="stacked"]) msft-article::part(heading) {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 300px;
margin-inline-start: 4.5px;
}
:host([layout="stacked"][card-size="_2x_2y"]) msft-article::part(heading) {
width: 542px;
}
:host([layout="stacked"][card-size="_3x_2y"]) msft-article::part(heading) {
width: 832px;
}
:host msft-article::part(article) {
border-radius: 0;
grid-gap: 0;
grid-template-columns: 1fr auto;
padding: 8px 12px;
overflow: visible;
}
:host([layout="normal"]) msft-article::part(article),
:host([layout="thumb"]) msft-article::part(article) {
height: 64px;
}
:host([layout="thumb"][card-size="_3x_2y"]) msft-article::part(article) {
padding: 4px 12px;
}
:host([layout="normal"]) msft-article::part(text),
:host([layout="thumb"]) msft-article::part(text) {
max-height: calc(var(--msft-article-heading-line-height, 24px) * 2);
overflow: hidden;
}
:host([layout="normal"]) msft-article::part(attribution),
:host([layout="stacked"]) msft-article::part(attribution),
:host([layout="compactthumb"]) msft-article::part(attribution),
:host([layout="thumb"]) msft-article::part(attribution) {
display: inline-block;
margin-inline-end: 4px;
vertical-align: top;
width: 16px;
}
:host([layout="normal"]) msft-article::part(heading),
:host([layout="compactthumb"]) msft-article::part(heading),
:host([layout="thumb"]) msft-article::part(heading),
:host([layout*="rightrail"]) msft-article::part(heading) {
width: calc(100% - 31px);
display: -webkit-inline-box;
}
:host([layout*="rightrail"]) msft-article::part(heading) {
width: calc(100% - 26px);
}
:host msft-article::part(abstract) {
margin-inline-start: 24px;
-webkit-line-clamp: var(--abstract-max-lines, 1);
margin-top: -2px;
color: var(--msft-card-font-color);
}
:host([layout="compact"][card-size="_1x_2y"]) msft-article::part(abstract) {
margin-inline-start: 0;
}
:host msft-article.crawled-content::part(abstract) {
color: ${i.Q5n};
font-size: 12px;
line-height: 16px;
margin-top: 4px;
}
:host([layout="thumb"]) msft-article.crawled-content::part(abstract),
:host([layout*="rightrail"]) msft-article.crawled-content::part(abstract) {
margin-top: 0;
}
:host([layout="normal"]) msft-article::part(actions),
:host([layout="thumb"]) msft-article::part(actions),
:host([layout="ribbonCarousel"]) msft-article::part(actions) {
position: absolute;
bottom: 0;
padding-bottom: 4px;
padding-top: 1px;
width: calc(100% - 20px);
background: var(--fill-color);
}
:host([layout="normal"]) msft-article:hover::part(actions),
:host([layout="normal"]) msft-article:focus-within::part(actions),
:host([layout="thumb"]) msft-article::part(actions),
:host([layout="thumb"]) msft-article:hover::part(actions),
:host([layout="thumb"]) msft-article:focus-within::part(actions),
:host([layout="ribbonCarousel"]) msft-article::part(actions),
:host([layout="ribbonCarousel"]) msft-article:hover::part(actions),
:host([layout="ribbonCarousel"]) msft-article:focus-within::part(actions) {
background: transparent;
}
:host([layout="thumb"][card-size="_3x_2y"]) msft-article::part(actions) {
bottom: 10px;
}
:host msft-article msft-attribution {
display: grid;
grid-template-columns: 16px auto auto;
grid-gap: 8px;
margin-bottom: 4px;
position: relative;
}
:host([layout="normal"]) msft-article msft-attribution,
:host([layout="thumb"]) msft-article msft-attribution {
height: 20px;
padding-top: 4px;
}
:host([layout="thumb"]) msft-article msft-attribution {
grid-template-columns: 16px auto 65px;
}
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article msft-attribution {
max-width: 180px;
}
:host msft-article .inline-actions {
align-items: center;
background: ${i.QpD};
display: grid;
gap: 4px;
grid-template-columns: auto auto auto;
height: 28px;
justify-content: end;
margin: 4px 0;
opacity: 0;
padding: 0;
padding-inline-start: 40px;
position: absolute;
width: auto;
z-index: 10;
}
:host([layout="thumb"]) msft-article .inline-actions,
:host([layout="compactthumb"]) msft-article .inline-actions {
height: 23px;
margin: 0;
}
:host([layout="compact"]) msft-article .inline-actions,
:host([layout="stacked"]) msft-article .inline-actions,
:host([layout*="rightrail"]) msft-article .inline-actions {
top: 0;
}
:host([layout="normal"]) msft-article .inline-actions {
bottom: 0;
margin-bottom: 5px;
height: 24px;
}
:host([layout="compact"]) msft-article .inline-actions,
:host([layout*="rightrail"]) msft-article .inline-actions {
margin-inline-end: 4px;
}
:host([layout="stacked"]) msft-article .inline-actions {
background: var(--neutral-fill-stealth-hover);
margin-inline-end: 12px;
}
:host msft-article:hover,
:host msft-article:focus-within {
background: ${i.QpD};
border-radius: 4px;
}
:host msft-article:hover .inline-actions,
:host msft-article:focus-within .inline-actions {
opacity: 1;
}
:host msft-article .inline-actions .actions-button {
background: transparent;
border: none;
border-radius: 4px;
color: currentColor;
cursor: pointer;
fill: currentColor;
height: 24px;
justify-content: center;
min-width: 24px;
padding: 0;
width: 24px;
}
:host msft-article .inline-actions .actions-button svg {
width: 16px;
height: 16px;
}
:host msft-article .inline-actions .actions-button:hover,
:host msft-article .inline-actions .actions-button:${s.b} {
background: ${i.XiB};
}
:host msft-article .inline-actions .divider {
height: 11px;
margin: -3px 0 0;
border-left: 1px solid ${i.XiB};
}
:host([layout="compact"]) msft-article .inline-actions .divider {
margin-top: -2px;
}
:host social-bar-wc::part(social-bar) {
align-self: start;
opacity: 1;
background: none;
height: 24px;
}
:host([layout="normal"]) social-bar-wc::part(react-button-container),
:host([layout="normal"]) social-bar-wc::part(active-button-container) {
height: 24px;
padding: 0;
border-radius: 16px;
}
:host([layout="normal"]) social-bar-wc::part(button-bg) {
padding-top: 4px;
height: 24px;
}
:host msft-article.filled-icon-hover .inline-actions .actions-button:hover > svg > path:nth-child(1) {
transition: all 0.5s;
d: path("${c.Cp}");
}
:host msft-article.filled-icon-hover .inline-actions .actions-button svg {
width: 20px;
height: 20px;
}
.attribution-provider-clickable {
z-index: 4;
display: flex;
margin: 0 -23px;
}
.attribution-icon-clickable {
color: unset;
text-decoration: none;
}
.attribution-provider-name {
unicode-bidi: embed;
}
.attribution-provider-name:hover {
text-decoration: underline;
}
.attribution-provider-name .attribution-provider-logo-available:hover {
text-decoration: underline;
}
.attribution-provider-logo-available {
margin-inline-start: 10px;
}
.attribution-published-time {
margin: 0 3px;
}
.attribution-provider-not-clickable {
margin: 0 5px;
}
.ts-breaking-news-tag {
background-color: var(--accent-fill-rest);
border-radius: 3px;
padding: 0 5px;
}
${g}
${p}
`.withBehaviors(new r.O(l,u),(0,a.vF)(o.i`
:host msft-article .inline-actions {
background: currentColor !important;
padding-inline-start: 12px !important;
}
.attribution-provider-logo {
forced-color-adjust: none;
background: #FFFFFF;
}
`),(0,a.zw)(o.i`
:host(.infopane-anaheim-design) {
--neutral-foreground-rest: #2B2B2B;
--fill-color: #FFFFFF;
--neutral-fill-hover: #E5E5E5;
--neutral-fill-stealth-hover: #F2F2F2;
background: #FFFFFF;
}
`)),m=o.i`
:host msft-article.social-reaction-enabled .inline-actions {
background: linear-gradient(270deg, rgb(var(--neutral-fill-stealth-hover-rgb)) 0.01%, rgb(var(--neutral-fill-stealth-hover-rgb)) 76.82%, rgba(var(--neutral-fill-stealth-hover-rgb), 0.8) 88.69%, rgba(var(--neutral-fill-stealth-hover-rgb), 0) 100%);
}
`.withBehaviors((0,a.zw)(o.i`
:host {
--neutral-fill-stealth-hover-rgb: 242, 242, 242;
}
`),(0,a.Uu)(o.i`
:host {
background: #3b3b3b;
--fill-color: #3b3b3b;
--neutral-foreground-hint: #a7a7a7;
--neutral-foreground-rest: #ffffff;
--neutral-fill-stealth-hover: #474747;
}
:host msft-article:hover, :host msft-article:focus-within {
background: #474747;
}
:host {
--neutral-fill-stealth-hover-rgb: 71, 71, 71;
}
`)),v=o.i`
${h}
`.withBehaviors((0,a.vF)(o.i`
:host {
forced-color-adjust: auto;
}
@media (-ms-high-contrast:active) {
:host([background="gradient"]) social-bar-wc::part(button-bg):hover,
:host([background="gradient"]) social-bar-wc::part(button-bg):focus-within,
:host([background="gradient"]) msft-article.filled-icon-hover social-bar-wc::part(button-bg):hover,
:host([background="gradient"]) msft-article.filled-icon-hover social-bar-wc::part(button-bg):focus-within {
color: buttonface;
background-color: highlight;
}
}`),new d.Y(o.i`
:host {
--article-backplate: rgba(255, 255, 255, 0.7);
--background-color-dark-mode: unset;
--background-social-bar: #FFFFFF;
--background-ribbonCarousel-social-bar: #FFFFFF;
--gradient-background: var(--background-gradient-angle), #C2CEE8 0%, rgba(241, 246, 255, 0.6) 100%;
--ribbon-carousel-gradient-background: var(--background-gradient-angle), rgba(194, 206, 232, 0.4) 0%, rgba(241, 246, 255, 0.24) 100%;
--feeds-2-gradient-background: var(--feeds-2-light-background-gradient-angle), rgba(59, 199, 225, 0.16) 0%, rgba(53, 138, 220, 0.2) 98.88%;
--feeds-2-flipper-background: #f1f6fb;
--gradient-hover: rgba(0, 0, 0, 0.05);
--stacked-gradient-hover: 242, 242, 242;
--inline-actions-gradient-background: var(--inline-actions-gradient-angle), #D9D8F2 77.54%, rgba(208, 214, 242, 0.8) 90.62%, rgba(208, 214, 242, 0) 100%;
--inline-actions-alt-gradient-background: var(--inline-actions-gradient-angle), #E6E2EF 0.01%, #E3DEEE 76.82%, rgba(227, 222, 238, 0.8) 88.69%, rgba(227, 222, 238, 0) 100%;
--inline-actions-thumb-gradient-background-1: var(--inline-actions-gradient-angle), #d3dae8 0.01%, #ccd4e5 76.82%, rgba(202, 211, 228, 0.8) 88.69%, rgba(201, 210, 228, 0) 100%;
--inline-actions-thumb-gradient-background-2: var(--inline-actions-gradient-angle), #e4e8ef 0.01%, #dde2ec 76.82%, rgba(219, 225, 235, 0.8) 88.69%, rgba(218, 224, 235, 0) 100%;
--inline-actions-thumb-gradient-background-3: var(--inline-actions-gradient-angle), #ced6e6 0.01%, #c7d0e3 76.82%, rgba(198, 207, 226, 0.8) 88.69%, rgba(196, 206, 225, 0) 100%;
--inline-actions-thumb-gradient-background-4: var(--inline-actions-gradient-angle), #dfe4ed 0.01%, #d8deea 76.82%, rgba(214, 220, 233, 0.8) 88.69%, rgba(214, 219, 233, 0) 100%;
--inline-actions-thumb-gradient-background-5: var(--inline-actions-gradient-angle), #cad3e4 0.01%, #c3cce1 76.82%, rgba(194, 203, 224, 0.8) 88.69%, rgba(193, 202, 224, 0) 100%;
--inline-actions-thumb-gradient-background-6: var(--inline-actions-gradient-angle), #d9dfea 0.01%, #d3d9e8 76.82%, rgba(210, 216, 232, 0.8) 88.69%, rgba(208, 215, 230, 0) 100%;
--inline-actions-compact-gradient-background-1: var(--inline-actions-gradient-angle), #e6e9f0 0.01%, #dadfeb 76.82%, rgba(215, 222, 233, 0.8) 88.69%, rgba(214, 220, 233, 0) 100%;
--inline-actions-compact-gradient-background-2: var(--inline-actions-gradient-angle), #dee3ed 0.01%, #d3dae8 76.82%, rgba(209, 216, 231, 0.8) 88.69%, rgba(208, 215, 231, 0) 100%;
--inline-actions-compact-gradient-background-3: var(--inline-actions-gradient-angle), #d7ddea 0.01%, #cbd3e4 76.82%, rgba(202, 210, 228, 0.8) 88.69%, rgba(199, 208, 227, 0) 100%;
--inline-actions-stacked-gradient-background-1: var(--inline-actions-gradient-angle), #e6e9f0 0.01%, #e3e7ee 76.82%, rgba(224, 229, 237, 0.8) 88.69%, rgba(220, 225, 235, 0) 100%;
--inline-actions-stacked-gradient-background-2: var(--inline-actions-gradient-angle), #e5e9f0 0.01%, #e2e6ee 76.82%, rgba(222, 227, 236, 0.8) 88.69%, rgba(219, 224, 235, 0) 100%;
--inline-actions-stacked-gradient-background-3: var(--inline-actions-gradient-angle), #e2e6ee 0.01%, #dfe4ed 76.82%, rgba(220, 225, 235, 0.8) 88.69%, rgba(215, 222, 233, 0) 100%;
--inline-actions-stacked-gradient-background-4: var(--inline-actions-gradient-angle), #dfe4ed 0.01%, #dce1eb 76.82%, rgba(216, 222, 233, 0.8) 88.69%, rgba(214, 220, 233, 0) 100%;
--inline-actions-stacked-gradient-background-5: var(--inline-actions-gradient-angle), #dee3ed 0.01%, #dae0eb 76.82%, rgba(215, 221, 233, 0.8) 88.69%, rgba(213, 219, 233, 0) 100%;
--inline-actions-stacked-gradient-background-6: var(--inline-actions-gradient-angle), #dbe0eb 0.01%, #d7dde9 76.82%, rgba(213, 219, 233, 0.8) 88.69%, rgba(209, 216, 231, 0) 100%;
--inline-actions-ribbon-carousel-gradient-background: var(--inline-actions-gradient-angle), #E5E8ED 0.01%, #E4E7ED 76.82%, rgba(227, 231, 237, 0.8) 88.69%, rgba(227, 230, 237, 0) 100%;
--inline-actions-feeds-2-gradient-background: var(--inline-actions-gradient-angle), #f5fbfd 0.01%, #f5fcfe 76.82%, rgba(245, 252, 254, 0.8) 88.69%, rgba(245, 252, 254, 0) 100%;
}
:host msft-article msft-attribution {
--neutral-foreground-hint: #5f5f5f;
}`,o.i`
:host {
--article-backplate: rgba(255, 255, 255, 0.0512);
--background-color-dark-mode: #424242;
--background-social-bar: #2B3C59;
--background-ribbonCarousel-social-bar: #2B3C59;
--gradient-background: var(--background-gradient-angle), #2B3C59 0%, rgba(43, 60, 89, 0.6) 100%;
--ribbon-carousel-gradient-background: var(--background-gradient-angle), #2B3C59 0%, rgba(43, 60, 89, 0.6) 100%;
--feeds-2-gradient-background: var(--feeds-2-dark-background-gradient-angle), #0F384D 0.44%, #0F2E4D 85.15%;
--feeds-2-flipper-background: #173549;
--gradient-hover: rgba(255, 255, 255, 0.07);
--stacked-gradient-hover: 72, 72, 72;
--inline-actions-gradient-background: var(--inline-actions-gradient-angle), #716583 0.01%, #665879 76.82%, rgba(100, 86, 119, 0.8) 88.69%, rgba(98, 84, 118, 0) 100%;
--inline-actions-alt-gradient-background: var(--inline-actions-gradient-angle), #716583 0.01%, #665879 76.82%, rgba(100, 86, 119, 0.8) 88.69%, rgba(98, 84, 118, 0) 100%;
--inline-actions-thumb-gradient-background-1: var(--inline-actions-gradient-angle), #3e4b60 0.01%, #3d4b62 76.82%, rgba(61, 75, 99, 0.8) 88.69%, rgba(61, 75, 99, 0) 100%;
--inline-actions-thumb-gradient-background-2: var(--inline-actions-gradient-angle), #404c5d 0.01%, #404c5f 76.82%, rgba(63, 75, 95, 0.8) 88.69%, rgba(64, 76, 96, 0) 100%;
--inline-actions-thumb-gradient-background-3: var(--inline-actions-gradient-angle), #3e4b62 0.01%, #3c4b63 76.82%, rgba(60, 74, 99, 0.8) 88.69%, rgba(60, 75, 100 ,0) 100%;
--inline-actions-thumb-gradient-background-4: var(--inline-actions-gradient-angle), #404c5f 0.01%, #3f4b60 76.82%, rgba(63, 76, 96, 0.8) 88.69%, rgba(63, 75, 97, 0) 100%;
--inline-actions-thumb-gradient-background-5: var(--inline-actions-gradient-angle), #3d4c63 0.01%, #3b4a64 76.82%, rgba(60, 75, 101, 0.8) 88.69%, rgba(59, 75, 101, 0) 100%;
--inline-actions-thumb-gradient-background-6: var(--inline-actions-gradient-angle), #404c5f 0.01%, #3e4b61 76.82%, rgba(62, 75, 97, 0.8) 88.69%, rgba(62, 76, 98, 0) 100%;
--inline-actions-compact-gradient-background-1: var(--inline-actions-gradient-angle), #414c5c 0.01%, #404b5e 76.82%, rgba(64, 76, 95, 0.8) 88.69%, rgba(63, 75, 95, 0) 100%;
--inline-actions-compact-gradient-background-2: var(--inline-actions-gradient-angle), #404c5e 0.01%, #3f4b60 76.82%, rgba(63, 75, 96, 0.8) 88.69%, rgba(62, 75, 96, 0) 100%;
--inline-actions-compact-gradient-background-3: var(--inline-actions-gradient-angle), #404c60 0.01%, #3d4a61 76.82%, rgba(61, 74, 97, 0.8) 88.69%, rgba(60, 74, 97, 0) 100%;
--inline-actions-stacked-gradient-background-1: var(--inline-actions-gradient-angle), #424c5c 0.01%, #414c5d 76.82%, rgba(64, 76, 93, 0.8) 88.69%, rgba(64, 75, 94, 0) 100%;
--inline-actions-stacked-gradient-background-2: var(--inline-actions-gradient-angle), #424d5d 0.01%, #414d5e 76.82%, rgba(64, 76, 94, 0.8) 88.69%, rgba(64, 76, 94, 0) 100%;
--inline-actions-stacked-gradient-background-3: var(--inline-actions-gradient-angle), #404b5c 0.01%, #404b5d 76.82%, rgba(64, 76, 94, 0.8) 88.69%, rgba(63, 75, 94, 0) 100%;
--inline-actions-stacked-gradient-background-4: var(--inline-actions-gradient-angle), #404b5d 0.01%, #404b5e 76.82%, rgba(64, 76, 95, 0.8) 88.69%, rgba(64, 76, 96, 0) 100%;
--inline-actions-stacked-gradient-background-5: var(--inline-actions-gradient-angle), #404c5e 0.01%, #404c5f 76.82%, rgba(64, 75, 95, 0.8) 88.69%, rgba(63, 75, 96, 0) 100%;
--inline-actions-stacked-gradient-background-6: var(--inline-actions-gradient-angle), #404c5e 0.01%, #3f4b5f 76.82%, rgba(63, 75, 95, 0.8) 88.69%, rgba(62, 74, 95, 0) 100%;
--inline-actions-ribbon-carousel-gradient-background: var(--inline-actions-gradient-angle), #3E4C61 0.01%, #3E4C62 76.82%, rgba(62, 76, 98, 0.8) 88.69%, rgba(62, 76, 98, 0) 100%;
--inline-actions-feeds-2-gradient-background: var(--inline-actions-gradient-angle), #1b3d55 0.01%, #1b3f56 76.82%, rgba(27, 64, 86, 0.8) 88.69%, rgba(27, 64, 86, 0) 100%;
}
:host msft-article msft-attribution {
--neutral-foreground-hint: #b9b9b9;
}`)),b=o.i`
:host([background="inheritSection"]){
background: inherit;
}
:host([background="inheritSection"]) msft-article .inline-actions,
:host([background="inheritSection"]) msft-article .inline-actions .actions-button:hover,
:host([background="inheritSection"]) msft-article .inline-actions .actions-button:focus-visible {
background-color: rgba(255, 255, 255, 0.8);
}
:host([background="inheritSection"]) msft-article,
:host([background="inheritSection"]) msft-article:hover,
:host([background="inheritSection"]) msft-article:focus-within {
background-color: rgba(255, 255, 255, 0.9);
border-radius: 4px;
}
:host([background="inheritSection"]) msft-article.filled-icon-hover social-bar-wc::part(button-bg):hover,
:host([background="inheritSection"]) msft-article.filled-icon-hover social-bar-wc::part(comments-count-button):hover {
background: transparent;
}
`.withBehaviors((0,a.zw)(o.i`
:host {
--neutral-fill-stealth-hover-rgb: 242, 242, 242;
}
`),(0,a.Uu)(o.i`
:host([background="inheritSection"]) msft-article .inline-actions,
:host([background="inheritSection"]) msft-article .inline-actions .actions-button:hover,
:host([background="inheritSection"]) msft-article .inline-actions .actions-button:focus-visible {
background-color: rgba(0, 0, 0, 0.3);
}
:host([background="inheritSection"]) msft-article,
:host([background="inheritSection"]) msft-article:hover,
:host([background="inheritSection"]) msft-article:focus-within {
background-color: rgba(0, 0, 0, 0.4);
}
`)),y=o.i`
:host .inner-content.dynamic-gradient-morning, :host([background="gradient"]) .inner-content.dynamic-gradient-morning social-bar-wc::part(reaction-menu-container) {
background: var(--background-color-dynamic-gradient-morning);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-compact-background-gradient-morning-1);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-compact-background-gradient-morning-2);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-compact-background-gradient-morning-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-background-gradient-morning-1);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-background-gradient-morning-2);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-background-gradient-morning-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: var(--inline-actions-background-gradient-morning-4);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: var(--inline-actions-background-gradient-morning-5);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-morning msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: var(--inline-actions-background-gradient-morning-6);
}
:host .inner-content.dynamic-gradient-day, :host([background="gradient"]) .inner-content.dynamic-gradient-day social-bar-wc::part(reaction-menu-container) {
background: var(--background-color-dynamic-gradient-day);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-compact-background-gradient-day-1);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-compact-background-gradient-day-2);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-compact-background-gradient-day-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-background-gradient-day-1);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-background-gradient-day-2);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-background-gradient-day-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: var(--inline-actions-background-gradient-day-4);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: var(--inline-actions-background-gradient-day-5);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-day msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: var(--inline-actions-background-gradient-day-6);
}
:host .inner-content.dynamic-gradient-sunset, :host([background="gradient"]) .inner-content.dynamic-gradient-sunset social-bar-wc::part(reaction-menu-container) {
background: var(--background-color-dynamic-gradient-sunset);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-compact-background-gradient-sunset-1);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-compact-background-gradient-sunset-2);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-compact-background-gradient-sunset-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-1);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-2);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-4);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-5);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-sunset msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: var(--inline-actions-background-gradient-sunset-6);
}
:host .inner-content.dynamic-gradient-night, :host([background="gradient"]) .inner-content.dynamic-gradient-night social-bar-wc::part(reaction-menu-container) {
background: var(--background-color-dynamic-gradient-night);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-compact-background-gradient-night-1);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-compact-background-gradient-night-2);
}
:host([layout="compactthumb"][background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-compact-background-gradient-night-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(1) .inline-actions {
background: var(--inline-actions-background-gradient-night-1);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(2) .inline-actions {
background: var(--inline-actions-background-gradient-night-2);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(3) .inline-actions {
background: var(--inline-actions-background-gradient-night-3);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(4) .inline-actions {
background: var(--inline-actions-background-gradient-night-4);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(5) .inline-actions {
background: var(--inline-actions-background-gradient-night-5);
}
:host([background="gradient"]) .inner-content.dynamic-gradient-night msft-article.social-reaction-enabled:nth-of-type(6) .inline-actions {
background: var(--inline-actions-background-gradient-night-6);
}
`.withBehaviors(new d.Y(o.i`
:host {
--background-color-dynamic-gradient-morning: linear-gradient(140.53deg, #FFFEDC 9.32%, #FFF4D7 58.45%);
--background-color-dynamic-gradient-day: linear-gradient(140.53deg, #F5F7E1 9.32%, #CDF0FF 58.45%);
--background-color-dynamic-gradient-sunset: linear-gradient(140.56deg, #F0E1F7 5.42%, #FFE9E1 51.68%);
--background-color-dynamic-gradient-night: linear-gradient(140.53deg, #F0E1F7 9.32%, #CDDFFF 58.45%);
--inline-actions-background-gradient-morning-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 238, 207, 0) 0%, rgba(237, 233, 203, 0) 0.01%, #F2EECF 7.81%, #F2ECCE 66.67%, #F2ECCE 100%);
--inline-actions-background-gradient-morning-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 238, 207, 0) 0%, rgba(242, 233, 205, 0) 0.01%, #F2E9CD 7.81%, #F2E8CC 66.67%, #F2E8CC 100%);
--inline-actions-background-gradient-morning-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 235, 206, 0) 0.01%, #F2EBCE 7.81%, #F2E9CD 66.67%, #F2E8CC 100%);
--inline-actions-background-gradient-morning-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 238, 207, 0) 0%, rgba(242, 233, 205, 0) 0.01%, #F2E9CD 7.81%, #F2E8CC 66.67%, #F2E8CC 100%);
--inline-actions-background-gradient-morning-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 232, 204, 0) 0.01%, #F2E8CC 7.81%, #F2E9CD 66.67%, #F2E8CC 100%);
--inline-actions-background-gradient-morning-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 232, 204, 0) 0.01%, #F2E8CC 7.81%, #F2E9CD 66.67%, #F2E8CC 100%);
--inline-actions-compact-background-gradient-morning-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(237, 233, 203, 0) 0.01%, #EDE9CB 7.81%, #EDE6CA 66.67%, #EDE4C9 100%);
--inline-actions-compact-background-gradient-morning-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(237, 229, 201, 0) 0%, #EDE5C9 7.81%, #EDE4C8 66.67%, #EDE3C8 100%);
--inline-actions-compact-background-gradient-morning-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(237, 227, 200, 0) 0%, #EDE3C8 7.81%, #EDE3C8 66.67%, #EDE3C8 100%);
--inline-actions-background-gradient-day-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(219, 233, 224, 0) 0%, #DBE9E0 7.81%, #D4E8E6 66.67%, #D3E7E7 100%);
--inline-actions-background-gradient-day-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(204, 230, 237, 0) 0%, #CCE6ED 7.81%, #C4E5F2 66.67%, #C4E5F2 100%);
--inline-actions-background-gradient-day-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(207, 231, 234, 0) 0%, #CFE7EA 7.81%, #C7E5EF 66.67%, #C5E5F2 100%);
--inline-actions-background-gradient-day-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(196, 229, 242, 0) 0%, #C4E5F2 7.81%, #C4E5F2 66.67%, #C4E5F2 100%);
--inline-actions-background-gradient-day-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(207, 231, 234, 0) 0%, rgba(196, 229, 242, 0) 0.01%, #C4E5F2 7.81%, #C4E5F2 66.67%, #C5E5F2 100%);
--inline-actions-background-gradient-day-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(196, 229, 242, 0) 0%, #C4E5F2 7.81%, #C4E5F2 66.67%, #C4E5F2 100%);
--inline-actions-compact-background-gradient-day-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, #D3E3DE 7.81%, #CCE2E5 66.67%, #C1E0EC 100%);
--inline-actions-compact-background-gradient-day-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(198, 225, 233, 0) 0%, #C6E1E9 7.81%, #C1E0EC 66.67%, #C0E0ED 100%);
--inline-actions-compact-background-gradient-day-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(192, 224, 237, 0) 0%, #C0E0ED 7.81%, #C0E0ED 66.67%, #C0E0ED 100%);
--inline-actions-background-gradient-sunset-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(237, 218, 223, 0) 0%, #EDDADF 7.81%, #EEDBDC 66.67%, #EFDBDB 100%);
--inline-actions-background-gradient-sunset-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 222, 214, 0) 0%, #F2DED6 7.81%, #F2DED6 66.67%, #F2DED6 100%);
--inline-actions-background-gradient-sunset-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(239, 220, 218, 0) 0%, #EFDCDA 7.81%, #F1DDD8 66.67%, #F2DED6 100%);
--inline-actions-background-gradient-sunset-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 222, 214, 0) 0%, #F2DED6 7.81%, #F2DED6 66.67%, #F2DED6 100%);
--inline-actions-background-gradient-sunset-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 222, 214, 0) 0%, #F2DED6 7.81%, #F2DED6 66.67%, #F2DED6 100%);
--inline-actions-background-gradient-sunset-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(242, 222, 214, 0) 0%, #F2DED6 7.81%, #F2DED6 66.67%, #F2DED6 100%);
--inline-actions-compact-background-gradient-sunset-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(233, 214, 218, 0) 0%, #E9D6DA 7.81%, #EAD8D6 66.67%, #EDDAD1 100%);
--inline-actions-compact-background-gradient-sunset-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(236, 216, 213, 0) 0%, #ECD8D5 7.81%, #EDDAD1 66.67%, #EDDAD1 100%);
--inline-actions-compact-background-gradient-sunset-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(237, 218, 209, 0) 0%, #EDDAD1 7.81%, #EDDAD1 66.67%, #EDDAD1 100%);
--inline-actions-background-gradient-night-1:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(218, 214, 238, 0) 0%, #DAD6EE 7.81%, #D1D5EF 66.67%, #CFD5F0 100%);
--inline-actions-background-gradient-night-2:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(199, 213, 242, 0) 0%, #C7D5F2 7.81%, #C6D5F2 66.67%, #C4D4F2 100%);
--inline-actions-background-gradient-night-3:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(207, 213, 240, 0) 0%, #CFD5F0 7.81%, #C7D5F2 66.67%, #C5D5F2 100%);
--inline-actions-background-gradient-night-4:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(196, 212, 242, 0) 0%, #C4D4F2 7.81%, #C4D4F2 66.67%, #C4D4F2 100%);
--inline-actions-background-gradient-night-5:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(207, 213, 240, 0) 0%, rgba(196, 212, 242, 0) 0.01%, #C4D4F2 7.81%, #C4D4F2 66.67%, #C4D4F2 100%);
--inline-actions-background-gradient-night-6:linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(196, 212, 242, 0) 0%, #C4D4F2 7.81%, #C4D4F2 66.67%, #C4D4F2 100%);
--inline-actions-compact-background-gradient-night-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(208, 209, 233, 0) 0%, #D0D1E9 7.81%, #CAD0EB 66.67%, #C1D0ED 100%);
--inline-actions-compact-background-gradient-night-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(200, 208, 236, 0) 0%, #C8D0EC 7.81%, #C0CFED 66.67%, #C0CFED 100%);
--inline-actions-compact-background-gradient-night-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(192, 207, 237, 0) 0%, #C0CFED 7.81%, #C0CFED 66.67%, #C0CFED 100%);
}`,o.i`
:host {
--background-color-dynamic-gradient-morning: linear-gradient(140.02deg, #464706 -2.33%, #3F2807 84.75%);
--background-color-dynamic-gradient-day: linear-gradient(138.52deg, #464706 0.44%, #203A49 83.53%);
--background-color-dynamic-gradient-sunset: linear-gradient(139.03deg, #371F42 5.05%, #4A2517 63.37%);
--background-color-dynamic-gradient-night: linear-gradient(138.52deg, #512C2C -1.32%, #252C4E 85.77%);
--inline-actions-background-gradient-morning-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(81, 74, 24, 0) 0%, #514A18 7.81%, #504718 66.67%, #504618 100%);
--inline-actions-background-gradient-morning-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(79, 66, 24, 0) 0%, #4F4218 7.81%, #4F4118 66.67%, #4E3F18 100%);
--inline-actions-background-gradient-morning-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(79, 69, 24, 0) 0%, #4F4518 7.81%, #4F4318 66.67%, #4F4118 100%);
--inline-actions-background-gradient-morning-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(78, 62, 24, 0) 0%, #4E3E18 7.81%, #4D3B18 66.67%, #4D3A19 100%);
--inline-actions-background-gradient-morning-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(78, 63, 24, 0) 0%, #4E3F18 7.81%, #4E3E18 66.67%, #4D3D18 100%);
--inline-actions-background-gradient-morning-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(76, 56, 25, 0) 0%, #4C3819 7.81%, #4C3819 66.67%, #4C3819 100%);
--inline-actions-compact-background-gradient-morning-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(81, 74, 24, 0) 0.01%, #514A18 7.81%, #504618 66.67%, #4F4118 100%);
--inline-actions-compact-background-gradient-morning-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(79, 69, 24, 0) 0.01%, #4F4518 7.81%, #4E4018 66.67%, #4E3E18 100%);
--inline-actions-compact-background-gradient-morning-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(78, 63, 24, 0) 0.01%, #4E3F18 7.81%, #4D3D18 66.67%, #4D3919 100%);
--inline-actions-background-gradient-day-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(73, 81, 43, 0) 0.01%, #49512B 7.81%, #455031 66.67%, #424F36 100%);
--inline-actions-background-gradient-day-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(62, 77, 63, 0) 0.01%, #3E4D3F 7.81%, #3A4C45 66.67%, #394C47 100%);
--inline-actions-background-gradient-day-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(63, 77, 60, 0) 0.01%, #424E37 7.81%, #3E4D3D 66.67%, #3D4C41 100%);
--inline-actions-background-gradient-day-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(55, 76, 74, 0) 0.01%, #374C4A 7.81%, #354B4D 66.67%, #324A52 100%);
--inline-actions-background-gradient-day-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(58, 76, 70, 0) 0.01%, #3A4C46 7.81%, #384C48 66.67%, #354B4D 100%);
--inline-actions-background-gradient-day-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(49, 73, 86, 0) 0.01%, #314956 7.81%, #314957 66.67%, #314957 100%);
--inline-actions-compact-background-gradient-day-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(70, 80, 48, 0) 0.01%, #465030 7.81%, #414E38 66.67%, #3D4C40 100%);
--inline-actions-compact-background-gradient-day-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(63, 78, 59, 0) 0.01%, #3F4E3B 7.81%, #3C4C42 66.67%, #364B4C 100%);
--inline-actions-compact-background-gradient-day-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(58, 76, 70, 0) 0.01%, #3A4C46 7.81%, #344A50 66.67%, #314955 100%);
--inline-actions-background-gradient-sunset-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(77, 49, 62, 0) 0.01%, #4D313E 7.81%, #4F3239 66.67%, #503237 100%);
--inline-actions-background-gradient-sunset-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(83, 51, 49, 0) 0.01%, #533331 7.81%, #55332E 66.67%, #583428 100%);
--inline-actions-background-gradient-sunset-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(82, 51, 51, 0) 0.01%, #523234 7.81%, #523234 66.67%, #55332E 100%);
--inline-actions-background-gradient-sunset-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(88, 52, 39, 0) 0.01%, #583427 7.81%, #583427 66.67%, #583428 100%);
--inline-actions-background-gradient-sunset-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(85, 51, 45, 0) 0.01%, #55332D 7.81%, #583427 66.67%, #583427 100%);
--inline-actions-background-gradient-sunset-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(88, 52, 39, 0) 0.01%, #583427 7.81%, #583427 66.67%, #583427 100%);
--inline-actions-compact-background-gradient-sunset-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(77, 49, 62, 0) 0.01%, #4D313E 7.81%, #513235 66.67%, #55342D 100%);
--inline-actions-compact-background-gradient-sunset-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(82, 51, 51, 0) 0.01%, #523333 7.81%, #56342B 66.67%, #583428 100%);
--inline-actions-compact-background-gradient-sunset-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(87, 52, 42, 0) 0.01%, #57342A 7.81%, #583428 66.67%, #583428 100%);
--inline-actions-background-gradient-night-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(80, 59, 69, 0) 0.01%, #503B45 7.81%, #4C3B49 66.67%, #4A3B4B 100%);
--inline-actions-background-gradient-night-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(70, 59, 77, 0) 0.01%, #463B4D 7.81%, #403B51 66.67%, #403B51 100%);
--inline-actions-background-gradient-night-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(73, 59, 75, 0) 0.01%, #493B4B 7.81%, #453B4D 66.67%, #433B4F 100%);
--inline-actions-background-gradient-night-4: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(63, 59, 83, 0) 0.01%, #3F3B53 7.81%, #3C3B55 66.67%, #383B58 100%);
--inline-actions-background-gradient-night-5: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(67, 59, 79, 0) 0.01%, #433B4F 7.81%, #3E3B54 66.67%, #3D3B54 100%);
--inline-actions-background-gradient-night-6: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(54, 59, 89, 0) 0.01%, #363B59 7.81%, #353B5A 66.67%, #353B5A 100%);
--inline-actions-compact-background-gradient-night-1: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(77, 59, 72, 0) 0.01%, #4D3B48 7.81%, #483B4C 66.67%, #433B4F 100%);
--inline-actions-compact-background-gradient-night-2: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(73, 59, 76, 0) 0.01%, #493B4C 7.81%, #433B4F 66.67%, #3F3B52 100%);
--inline-actions-compact-background-gradient-night-3: linear-gradient(var(--inline-actions-dynamic-gradient-angle), rgba(211, 227, 222, 0) 0%, rgba(67, 59, 79, 0) 0.01%, #433B4F 7.81%, #3B3B57 66.67%, #363B59 100%);
}`))},37348:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(64723),r=n(2171);function a(e){const{cardMetadata:t,cardSlot:n,configOptions:a,parentTelemetryObject:o}=e;if(a&&a.useSharedTelemetry)return(0,i.ap)(e,"trending-now-card");const s={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:c}=n,d={id:"trendingNowCard",card_template_type:"trending-now-card",grid_area:c,parentTelemetryObject:o,trendingNowCardConfigInfo:a&&a,trendingNowCardMetadata:t};return s.cards.push(d),(0,r.i)("trendingNowCard",e,s)}},17425:function(e,t,n){n.d(t,{P:function(){return P}});var i=n(49218),r=n(33940),a=n(28904);const o=n(78923).i`
msft-article-card.mobile, msft-article-card.mobile * {
-webkit-tap-highlight-color: transparent;
outline: none;
-ms-touch-action: manipulation;
touch-action: manipulation;
}
.card-button {
border-radius: 100%;
}
msft-article.vertical-gradient::part(text) {
margin-bottom: -8px;
}
@media (-ms-high-contrast:active) {
.card-button {
background: none;
}
msn-social-bar::part(button-bg),
msn-social-bar::part(reactions-count-button),
msn-social-bar::part(comments-count-button) {
color: buttontext;
background-color: buttonface;
}
msn-social-bar::part(button-bg):hover,
msn-social-bar::part(button-bg):focus-visible,
msn-social-bar::part(reactions-count-button):hover,
msn-social-bar::part(reactions-count-button):focus-visible,
msn-social-bar::part(comments-count-button):hover,
msn-social-bar::part(comments-count-button):focus-visible {
color: buttonface;
background-color: highlight;
}
}
msft-article span.title_1x_2y,
msft-article span.title_2x_2y {
font-size: 20px;
}
msft-article.no-image::part(heading) {
font-size: var(--msft-article-heading-font-size, 20px);
line-height: var(--msft-article-heading-line-height, 28px);
}
msft-article-card[size="_1x_2y"] msft-article.no-image msft-attribution {
margin-bottom: 18px;
}
msft-article.long-gradient::part(gradient) {
top: -55px;
}
msft-article-card[size="_1x_2y"] .video-card-embed {
position: relative;
}
msft-article-card[size="_2x_2y"] .video-card-embed {
position: relative;
}
msft-article-card[size="_1x_2y"] msft-article.videocard .video-card-embed .hover-mask {
display: none;
width: 100%;
height: 79px;
background: var(--fill-color);
position: absolute;
bottom: 0px;
z-index: 10
}
msft-article-card[size="_1x_2y"] msft-article.videocard.videocard-hover .video-card-embed .hover-mask {
display: block;
}
msft-article-card msft-article.hide-non-image::part(text),
msft-article-card msft-article.hide-non-image::part(hide-story-wrapper){
display: none
}
msft-article-card[size="_2x_2y"].contentCard msft-article.vertical-gradient::part(heading) {
line-height: var(--heading-line-height, 28px);
}
msft-article-card[size="_2x_2y"].contentCard msft-article.vertical-gradient:not(.no-image)::part(heading) {
margin-bottom: 40px;
}
msft-article-card[size="_2x_2y"].contentCard msft-article.vertical-gradient:not(.no-image)::part(gradient) {
background: linear-gradient( 180deg, transparent 0%, var(--gradient-mid-color) 62.5%, var(--gradient-color) 100% );
width: 100%;
}
msft-article-card[size="_2x_2y"].contentCard msft-article.vertical-gradient:not(.no-image)::part(text) {
height: auto;
width: 100%;
}
msft-article-card[size="_2x_2y"].contentCard msft-article.vertical-gradient:not(.no-image)::part(attribution) {
display: flex;
align-self: end;
}
msft-article-card[size="_2x_2y"].contentCard msft-attribution {
margin-bottom: 8px;
}
msft-article div.infopane-like-end-actions {
display: flex;
}
.video-play-button-container {
border-radius: 50%;
display: block;
height: 40px;
left: 50%;
opacity: 1;
padding: 0;
position: absolute;
top: 124px;
transform: translate(-50%, -50%);
transition: all 0.4s ease 0s;
width: 40px;
}
.video-play-button {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
}
.video-experience-placeholder {
background: 0px 0px rgba(0, 0, 0, 0.6);
display: block;
left: 0;
position: relative;
top: 0;
z-index: 1;
}
msft-article-card[size="_2x_2y"].no-gradient .video-experience-placeholder {
height: 304px;
}
.video-experience-placeholder.hidden {
z-index: 0;
opacity: 0;
}
.video-experience-container {
position: absolute;
right: 0px;
top: 0px;
z-index: 0;
}
msft-article-card:hover.hover-contrast msft-article{
filter: contrast(115%);
}
msft-article-card:hover.hover-contrast msft-article::part(image){
opacity: 1;
}
msft-article-card.mobile msft-article::part(image) {
width: 100%;
opacity: 1;
}
msft-article-card.mobile msft-article::part(text) {
margin-bottom: -6px;
padding-top: 0;
}
msft-article-card.mobile .infopane-like-end-actions {
border-radius: 50%;
border: none;
background-color: transparent;
fill: var(--neutral-foreground-rest);
margin-top: 0px;
margin-inline: 4px -5px;
}
msft-article-card.mobile .infopane-like-start-actions {
height: 32px;
margin-inline-start: -8px;
}
msft-article-card.mobile msft-article::part(heading) {
fill: currentcolor;
display: -webkit-box;
outline: 0px;
overflow: hidden;
text-decoration: none;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
font-weight: 600;
height: 72px;
margin-bottom: 10px;
}
msft-article-card.mobile msft-article .heading-title-content{
font-size: 18px !important;
line-height: 24px !important;
}
msft-article-card.mobile msft-article .video-experience-placeholder {
height: 170px;
overflow: hidden;
}
msft-article-card.mobile msft-article msft-attribution {
margin-bottom: 8px;
}
`;var s=n(37429),c=n(23224),d=n(76859),l=n(93703),u=n(89150),g=n(58958),p=n(74045),h=n(81563);const f=(e,t)=>{if(globalThis.videoCards||(globalThis.videoCards={}),globalThis.videoCards[e.id])return globalThis.videoCards[e.id];{const n=`${e.cardSize} vertical_gradient`,i=(0,h.O)(e.videoCardConfigInfo,{memoize:!1,properties:{id:e.id,context:{cardData:e,customStyleClass:n,eventsCallback:t.parent.eventsCallback,previewEndCallback:t.parent.previewEndCallback}}});return globalThis.videoCards[e.id]=i,i}},m=e=>{var t,n;let i;return i=e.disableColorSampling?(0,g.Y)()?"#333":"#FFF":e.enableFeedSuperCardsSingleColor?(0,g.S)(e)?"#292929":"#FFFFFF":null===(n=null===(t=e.articleCardBackgroundColor)||void 0===t?void 0:t.find((t=>t.isDarkMode===((0,g.Y)()||(0,g.S)(e)))))||void 0===n?void 0:n.hexColor,i},v=i.d`
{e.imageData&&e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(s.u.ALL,s.w.image),t.parent.setPlaceholderRendered()}}"
/>
`,b=e=>{if(e.useMobile){const{imageHeight:t}=e.displaySettings;return document.body.style.setProperty("--displaySettingsImageHeight",`${t}px`),t}return e.imageData.imageHeight},y=i.d`
${v}
${(0,l.g)(((e,t)=>t.parent.placeholderRendered),f)}
`,C=i.d`
${(e,t)=>f(e,t)}
`,S=i.d`
e.useMobile?"mobile":""}"
data-badge-type="${e=>e.badge&&e.badge.type}"
style="${e=>(e=>e.useMobile?`--card-height:${e.displaySettings.cardHeight}px;--card-width:${e.displaySettings.cardWidth}px`:"")(e)}"
>
e.destinationUrl}
target="_blank"
title=${e=>e.disableCardTitleTooltip?"":e.title}
style="--heading-max-lines: 2;"
class="vertical-gradient ${(e,t)=>t.parent.useVideoTemplate?"videocard":""} ${(e,t)=>t.parent.isHoverVideo?"videocard-hover":""} ${(e,t)=>t.parent.useVideoTemplate&&!t.parent.isHoverVideo?"hide-non-image":""}"
data-t="${e=>e.telemetryContext&&e.telemetryContext.contentCard&&e.telemetryContext.contentCard.getMetadataTag()}"
:anchorTelemetryTag=${e=>e.telemetryContext&&e.telemetryContext.destination&&e.telemetryContext.destination.getMetadataTag()}
@mouseover="${(e,t)=>t.parent.mouseenterHandler&&t.parent.mouseenterHandler(t.event)}"
@mouseleave="${(e,t)=>t.parent.mouseleaveHandler&&t.parent.mouseleaveHandler(t.event)}"
@click="${(e,t)=>t.parent.clickHandler(e,t)}"
>
${(0,l.g)((e=>e.providerData),i.d`
${(0,c.Ze)()}
${(0,l.g)((e=>e.providerData&&e.providerData.name&&!e.isProviderIconClickable),i.d`${e=>e.providerData.name} `)}
${(0,l.g)((e=>e.providerData&&e.providerData.name&&e.publishedDateTime),i.d` · `)}
${(0,l.g)((e=>e.publishedDateTime),i.d`${e=>e.publishedDateTime} `)}
${(0,l.g)((e=>e.isWebContent&&e.crawledContentLabel),i.d` · `)}
${(0,l.g)((e=>e.isWebContent&&e.crawledContentLabel),i.d`${e=>e.crawledContentLabel}`)}
`)}
${(0,l.g)(((e,t)=>!t.parent.isPreviewable(e.metadata)),i.d`
${v}
`)}
${(0,l.g)(((e,t)=>t.parent.isPreviewable(e.metadata)),y)}
${(0,l.g)((e=>e.feedFontSize),i.d`
${(0,l.g)((e=>(e.cardSize===d.Nv._1x_2y||e.cardSize===d.Nv._1x_1y)&&e.imageData),i.d`
${e=>e.title}
`)}
${(0,l.g)((e=>e.cardSize===d.Nv._2x_2y),i.d`
${e=>e.title}
`)}
${(0,l.g)((e=>(e.cardSize===d.Nv._1x_2y||e.cardSize===d.Nv._1x_1y)&&!e.imageData),i.d`${e=>e.title} `)}
`)}
${(0,l.g)((e=>!e.feedFontSize),i.d`
${(0,l.g)((e=>!e.useLargeFontSize),i.d`${e=>e.title}`)}
${(0,l.g)((e=>e.useLargeFontSize),i.d`${e=>e.title} `)}
`)}
${(0,l.g)((e=>e.badge&&e.cardSize!==d.Nv._1x_1y),(e=>(0,c.Fo)(e.badge,!0,!1)))}
${(0,l.g)((e=>e.providerData&&e.enableInfopaneLike2cCard&&e.cardSize===d.Nv._2x_2y),c.Xr)}
${(0,l.g)((e=>(!e.enableInfopaneLike2cCard||e.cardSize!==d.Nv._2x_2y)&&(!e.isAnaheimDesign||e.enableRichSocialReaction)),i.d`
${(0,l.g)((e=>e.enableRichSocialReaction&&!e.isLauncher),(e=>(0,c.jr)({theme:e.useMobile&&!e.isMsnMobile&&"superappDefaultNewFeed",hideComments:e.useMobile&&!e.isMsnMobile})))}
${(0,l.g)((e=>e.cardActionStatus&p.O7.enabled&&!e.enableRichSocialReaction),i.d`
${c.tD}
${(0,l.g)((e=>!(e.cardActionStatus&p.O7.showMore)),c.EU)}
`)}
`)}
${(0,l.g)((e=>e.enableRichSocialReaction&&e.enableInfopaneLike2cCard&&e.cardSize===d.Nv._2x_2y),(0,c.jr)({}))}
${(0,l.g)((e=>e.cardActionStatus&p.O7.enabled),i.d`
${(0,l.g)((e=>e.enableRichSocialReaction),i.d`
${(0,l.g)((e=>!e.optedOutOfReactions&&e.cardActionStatus&p.O7.showMore),c.tD)}
${(0,l.g)((e=>!e.optedOutOfReactions&&e.cardActionStatus&p.O7.showFewer),c.EU)}
${(0,l.g)((e=>e.enableSaveButton&&(!(e.cardActionStatus&p.O7.showMore)&&!(e.cardActionStatus&p.O7.showFewer)||e.optedOutOfReactions||e.cardActionStatus&p.O7.saved)),c.Q6)}
`)}
${(0,l.g)((e=>!e.enableRichSocialReaction&&e.enableSaveButton),c.Q6)}
${(0,l.g)((e=>!1!==e.enableWCCardAction&&!e.isMsnMobile),c.X5)}
`)}
${(0,l.g)((e=>!e.disableHideOnHover&&e.cardActionStatus&p.O7.enabled),c.Yj)}
`,w=i.d`${(e,t)=>t.parent.selectTemplate()}`,x=i.d`
${(0,u.rx)((e=>[e.cardData]),w)}
`;var T=n(42590),A=n(99452),k=n(44772),I=n(84754);class O extends a.H{constructor(){super(...arguments),this.placeholderRendered=!1,this.shouldRenderVideo=!0,this.playerPlaying=!1,this.playingCallbackRegistered=!1,this.mouseenterHandler=e=>{this.showCardInfoWhenHover&&this.useVideoTemplate&&(this.isHoverVideo=!0)},this.mouseleaveHandler=e=>{this.showCardInfoWhenHover&&(this.isHoverVideo=!1)},this.previewEndCallback=e=>{this.useVideoTemplate=!e},this.setPlaceholderRendered=()=>{this.shouldRenderVideo&&(this.placeholderRendered=!0)},this.eventsCallback=(e,t)=>{this.playerPlaying||this.playingCallbackRegistered||"play"!==t||(this.playingCallbackRegistered=!0,e.one("playing",(()=>{this.playerPlaying=!0})))}}connectedCallback(){super.connectedCallback(),(0,I.I9)()&&(this.shouldRenderVideo=!1)}selectTemplate(){return void 0===this.previewVideo?C:S}isPreviewable(e){return!!this.previewVideo&&(e&&e.videoFiles&&0!==e.videoFiles.length)}clickHandler(e,t){return!(e.useMobile&&!e.isMsnMobile)||(e.mobileCardClickCallback(t.event,k.PL.Video,e,"video card"),!1)}}(0,r.gn)([(0,T.Lj)({attribute:"preview-video",mode:"boolean"})],O.prototype,"previewVideo",void 0),(0,r.gn)([A.LO],O.prototype,"cardData",void 0),(0,r.gn)([A.LO],O.prototype,"isHoverVideo",void 0),(0,r.gn)([A.LO],O.prototype,"useVideoTemplate",void 0),(0,r.gn)([A.LO],O.prototype,"placeholderRendered",void 0),(0,r.gn)([A.LO],O.prototype,"playerPlaying",void 0),(0,r.gn)([A.LO],O.prototype,"showCardInfoWhenHover",void 0);let _=class extends O{};_=(0,r.gn)([(0,a.M)({name:"msn-video-card",template:x,styles:o})],_);const P=i.d`
e}
:showCardInfoWhenHover=${e=>e.showCardInfoWhenHover}
preview-video=${e=>e.useVideoPreviewTemplate}
>
`},81555:function(e,t,n){n.d(t,{_:function(){return i}});const i={addTopSiteButton:"addTopSiteButton",backgroundInnerHolder:"backgroundInnerHolder",backgroundOuterHolder:"backgroundOuterHolder",cardAction:"cardAction",complianceHyperlink:"complianceHyperlink",feedToggle:"feedToggle",following:"following",myInterests:"myInterests",gaming:"gaming",shopping:"shopping",gridViewFeed:"gridViewFeed",headerSpaceHolder:"headerSpaceHolder",locationGreeting:"locationGreeting",marketSelector:"marketSelector",linearViewFeed:"linearViewFeed",myFeed:"myFeed",navBar:"navBar",notificationBell:"notificationBell",office365:"office365",overlayArticleReader:"overlayArticleReader",personalizeButton:"personalizeButton",pillWC:"pillWC",recommendedSites:"recommendedSites",rewardsIcon:"rewardsIcon",rewardsButton:"rewardsButton",rightRailSectionKey:"rightRailSectionKey",scrollableContainer:"scrollableContainer",searchBox:"search-box-edgenext",searchBoxInput:"searchBoxInput",searchBoxVoiceButton:"searchBoxVoiceButton",searchHistory:"searchHistoryEdgeNext",seeAllLinksButton:"seeAllLinksButton",settingsButton:"SettingsButton",settingsCloseButton:"settingsCloseButton",settingsInformationalButton:"settingsInformationalButton",singleColumnFeedRoot:"singleColumnFeedRoot",superCoachMark:"superCoachMark",topSitePlaceHolder:"topSitePlaceHolder",topSites:"topSites",topSitesFirstLink:"quicklinksFirstLink",waffle:"waffle"}},9533:function(e,t,n){n.d(t,{FY:function(){return o},b_:function(){return s},h_:function(){return c}});var i=n(59294);const r=new Map,a=new Map;function o(e,t){if(!t)return;r.set(e,t);const n=a.get(e);n&&n.set(t)}function s(e){return e?r.get(e):null}function c(e){if(!e)return Promise.reject(null);const t=s(e);if(s(e))return Promise.resolve(t);if(a.has(e))return a.get(e).getResultAsync();const n=new i.o;return a.set(e,n),n.getResultAsync()}},12884:function(e,t,n){n.d(t,{$w:function(){return h},Dp:function(){return d},FK:function(){return g},G8:function(){return p},SV:function(){return f},Td:function(){return s},Wo:function(){return u},ZI:function(){return m},b0:function(){return y},bs:function(){return v},ij:function(){return a},l4:function(){return o},x_:function(){return b},zp:function(){return l},zw:function(){return c}});var i=n(33379),r=n(2140);function a(){return(0,i.N)()?window.navigator.userAgent:(0,r.s)().userAgent}function o(){return(0,i.N)()?window.location.href:(0,r.s)().url.href}function s(){return(0,i.N)()?window.location.hostname:(0,r.s)().url.hostname}function c(){return(0,i.N)()?window.location.host:(0,r.s)().url.host}function d(){return(0,i.N)()?window.location.origin:(0,r.s)().url.origin}function l(){return(0,i.N)()?window.location.search:(0,r.s)().url.search}function u(){return(0,i.N)()?window.location.pathname:(0,r.s)().url.pathname}function g(){return(0,i.N)()?window.location.hash:(0,r.s)().url.hash}function p(){return(0,i.N)()?window.document.cookie:(0,r.s)().cookie}function h(e){if(!(0,i.N)())throw new Error("getDocumentElementById is unsupported server side. This call should be wrapped in canUseDOM().");return window.document.getElementById(e)}function f(e){if(!(0,i.N)())throw new Error("getDocumentElementsByTagName is unsupported server side. This call should be wrapped in canUseDOM().");return window.document.getElementsByTagName(e)}function m(e){if(!(0,i.N)())throw new Error("getDocumentElementsByClassName is unsupported server side. This call should be wrapped in canUseDOM().");return window.document.getElementsByClassName(e)}function v(){return(0,i.N)()?window.indexedDB:null}function b(){return(0,i.N)()?window.devicePixelRatio:(0,r.s)().devicePixelRatio}function y(e,t,n=!0,r="anonymous",a){if(!(0,i.N)())throw new Error("createScriptTag is unsupported server side. This call should be wrapped in canUseDOM().");const o=document.createElement("script");return t&&(o.id=t),a&&o.setAttribute("class",a),o.type="text/javascript",e&&(o.src=e,o.async=n,o.crossOrigin=r),window&&window.NONCE_ID&&(o.nonce=window.NONCE_ID),o}},33379:function(e,t,n){function i(){return!("undefined"==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}n.d(t,{N:function(){return i}})},70587:function(e,t,n){n.d(t,{Cw:function(){return s},cs:function(){return o},j4:function(){return c},mx:function(){return a}});var i=n(68692),r=n(80329);const a="rd",o="OSATE",s="OSAT",c={ver:"0.1.0",spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>(0,r.wk)(window.innerWidth,i.A)},locationHash:{clientValue:()=>window.location.hash},locationHref:{clientValue:()=>window.location.href},locationHost:{clientValue:()=>window.location.host},locationHostName:{clientValue:()=>window.location.hostname},locationOrigin:{clientValue:()=>window.location.origin},locationPathName:{clientValue:()=>window.location.pathname},locationProtocol:{clientValue:()=>window.location.protocol},locationSearch:{clientValue:()=>window.location.search},screenTop:{clientValue:()=>window.screenTop},screenY:{clientValue:()=>window.screenY},canUseCssGrid:{clientValue:()=>window.CSS&&window.CSS.supports&&CSS.supports("display","grid")||!1},devicePixelRatio:{clientValue:()=>window.devicePixelRatio},language:{clientValue:()=>document.documentElement.lang},direction:{clientValue:()=>document.documentElement.dir}}}},68692:function(e,t,n){n.d(t,{A:function(){return i}});const i=[0,656,980,1304]},2140:function(e,t,n){n.d(t,{s:function(){return s}});var i=n(70587);class r{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=a(i.cs,this.cookie),t=!!e&&"1"===e,n=a(i.Cw,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&&!r._instance&&o({href:"http://localhost:8080/",innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:"0",cookie:"",userAgent:"",referer:"",oneServiceHeaders:""}),r._instance||o({href:"http://localhost:8080/",innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:"0",cookie:"",userAgent:"",referer:"",oneServiceHeaders:""}),r._instance}static resetInstance(e,t=!1){return r._instance=new r(e,t),r._instance}}function a(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}r._instance=null;const o=r.resetInstance,s=()=>r.getInstance()},59049:function(e,t,n){n.d(t,{v:function(){return i}});class i extends Map{constructor(e){super(),this.identifier=e,this.subscriptions=new Map}set(e,t){super.set(e,t);const n=this.subscriptions.get(e)||[];return n.length?(n.forEach(((e,n)=>{try{e&&e(t)}catch(e){}})),this):this}subscribe(e,t,n=!0){const i=this.subscribeInternal(e,t);return n&&this.has(e)&&this.tryExecuteSubscriptionCallback(e,i.index,this.get(e)),{unsubscribe:i.unsubscribe}}subscribeInternal(e,t){const n=this.subscriptions.get(e)||[];this.subscriptions.set(e,[...n,t]);const i=n.length;return{unsubscribe:()=>{const t=this.subscriptions.get(e)||[];t[i]&&(t[i]=null),this.subscriptions.set(e,t)},index:i}}tryExecuteSubscriptionCallback(e,t,n){const i=this.subscriptions.get(e);if(!i||!i.length)return;const r=i[t];"function"==typeof r&&r(n)}}},89589:function(e,t,n){n.d(t,{b:function(){return T}});var i=n(33379),r=n(33940),a=n(54804),o=n(58155),s=n(68364),c=n(26415),d=n(33954),l=n(4596),u=n(29422);class g{constructor(e,t,n=null){this.fetchImpl=e,this.config=t,this.xhrFetch=n,this.cfg=t||g.defaultConfig,this.cfg.appId=this.cfg.appId||g.defaultConfig.appId,this.cfg.num=this.cfg.num||g.defaultConfig.num}geocodeSuggestion(e){return Promise.resolve(null)}getAutoSuggestResponse(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const n=[{key:"appid",value:this.cfg.appId},{key:"mr",value:""+this.cfg.num},{key:"q",value:e},{key:"setmkt",value:!this.cfg.redirectZhCnJaJpMarket||"ja-jp"!==a.Al.Locale&&"zh-cn"!==a.Al.Locale?a.Al.Locale:"en-us"},{key:"setlang",value:a.Al.Locale},{key:"ul",value:a.Al.ClientSettings?`${a.Al.ClientSettings.geo_lat},${a.Al.ClientSettings.geo_long},100`:""}];let i=[];if(!e||!e.trim||!e.trim().length)return i;const r=new URL(g.bingAutosuggestApi,g.bingAutoSuggestServiceHost);return r.search=o.c.keyValueArrayToQueryString(n),i=yield this.fetchImpl(r.href,{jsonpCallback:"cb"}).then((e=>e.json())).then((e=>this.getLocationFromResponse(e))).catch((e=>(t&&(0,s.H)(c.hTy,"Autosuggest request failed for client v1",JSON.stringify({urlWithoutQuery:this.getLoggableUrlString(r)})),d.k.log("failed: "+e),null))),i}))}getLocationFromResponse(e){const t=[];if(e&&e["@graph"]){const n=e["@graph"];for(let e=0;e("admindivision1"!==e.entityType.toLowerCase()||"jp"===e.countryCode.toLowerCase())&&e.coordinates&&e.coordinates.lat&&e.coordinates.lon)).map((e=>({isoCode:e.countryCode,locality:e.locality,region:e.state||e.adminDistrict,country:e.countryRegion,latitude:e.coordinates.lat.toString(),longitude:e.coordinates.lon.toString(),displayName:e.displayName}))),i=[];return n.forEach((e=>{0==i.map((t=>this.isSameLocation(t,e))).filter((e=>e)).values.length&&i.push(e)})),i}populateSearchMoreResponse(){}}g.bingAutoSuggestServiceHost="https://platform.bing.com",g.bingAutosuggestApi="geo/AutoSuggest/v1",g.defaultConfig={num:4,appId:"C98EA5B0842DBB9405BBF071E1DA76512D21FE36"},g.msnLocationSearchApi="/v0/weather/locations/search",g.msnApiServiceHost="https://api.msn.com";var p=n(16517),h=n(63535),f=n(5696);class m{constructor(e,t,n,i,r,a,o,s){this.fetchImpl=e,this.host=t,this.api=n,this.appId=i,this.excludeSubTypes=r,this.flightId=a,this.useOneService=o,this.includeSubTypes=s,this.filterSuggestion=e=>-1===this.excludeSubTypes.indexOf(e.subType)&&(!this.includeSubTypes||!e.subType||-1!==this.includeSubTypes.indexOf(e.subType)),this._parseLocationFromAS=!0}addExtraASParams(e,t){return e}_getDefaultSuggestions(){return[]}getSuggestions(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){if(e.disableThisRequest)return null;if((!e.searchText||""===e.searchText.trim())&&(e.disableFavorites||!this._useFavoriteSuggestions))return{suggestions:[]};const n=this._constructASRequestUrl(e);return this.fetchImpl(n.href).then((e=>e.json())).then((t=>{const n=this.useOneService?this._parseOneServiceSuggestions(t):this._parseSuggestionsV6(t),i=e.searchText&&""!==e.searchText.trim()?[]:this._getDefaultSuggestions();return n.suggestions=this._combineSuggestions(n.suggestions,i),this._updateSuggestionsRank(n.suggestions),n})).catch((n=>{if(t){const t=this._constructASRequestUrl(Object.assign(Object.assign({},e),{searchText:""}));(0,s.H)(c.hTy,"Autosuggest request failed for client v6",JSON.stringify({urlWithoutQuery:t&&t.href,error:n}))}return null}))}))}getHistorySuggestions(e){return[]}_constructASRequestUrl(e){let t,n;return this.useOneService?(t=this.getOneServiceQueryParams(e),n=(0,h.PH)(this.api,(0,h.qQ)())):(t=this.getBingQueryParams(e),n=new URL(this.api,this.host)),n.search=o.c.keyValueArrayToQueryString(t),n}getBingQueryParams(e){return[{key:"appid",value:this.appId},{key:"count",value:""+e.maxResults},{key:"q",value:e.searchText},{key:"localcircularview",value:e.userLocation&&`${e.userLocation},100`},{key:"setmkt",value:a.Al.Locale},{key:"setlang",value:a.Al.Locale},{key:"types",value:e.suggestionTypes||""},{key:"abbrtext",value:e.abbrSuggestions?"1":""},{key:"structuredaddress",value:"true"},{key:"strucaddrread",value:"1"},{key:"setflight",value:this.flightId}]}getOneServiceQueryParams(e){return[{key:"apikey",value:p.jG.OneServiceApiKey},{key:"type",value:e.suggestionTypes||""},{key:"$top",value:""+e.maxResults},{key:"q",value:e.searchText},{key:"location",value:e.userLocation&&`${e.userLocation}`},{key:p.jG.OneServiceContentMarketQspKey,value:a.Al.Locale},{key:"setflight",value:this.flightId},{key:"qscope",value:"locations"},{key:"activityId",value:p.jG.ActivityId},{key:"ocid",value:f.$.getOneServiceOCID(p.jG.TrackInfo,"feeds")}]}_combineSuggestions(e,t){let n=[];if(t&&t.length){n=t;let i=!1;for(let r=0;r-1&&(s&&n.formatedAddress.indexOf(s)>-1||c&&n.title&&n.title.indexOf(c)>-1)){i=!0;break}}i?i=!1:n.push(e[r])}}else n=e;return n}_updateSuggestionsRank(e){for(let t=0;t-1){t=e[n];break}}return t}_processFavoriteItemId(e,t){const n=e.bingId;!n||0!==n.indexOf("local_ypid:")&&0!==n.indexOf("sid")&&0!==n.indexOf("local_vdpid")||(t.entityId=n),t.bingId=n}}m.autosuggestCallerId="autosug";class v{constructor(e,t){this.key=e,this.fetchImpl=t,this.geocode=(e,t,n,i,s)=>(0,r.mG)(this,void 0,void 0,(function*(){const r={success:!1,statusCode:null,authenticationResultCode:null,statusDescription:null,name:e,results:null};if(!location)return null;const c=n&&n<=v._maxNumberOfResults?n:v._defaultResultCount,d=[{key:"key",value:this.key},{key:"maxResults",value:""+c},{key:"q",value:encodeURIComponent(e)},{key:"inclnb",value:i?"1":"0"},{key:"incl",value:s?"ciso2":""},{key:"userMapView",value:v._getBoundsString(t)},{key:"culture",value:a.Al.Locale}],l=new URL(v.geoApi,v.geoHost);return l.search=o.c.keyValueArrayToQueryString(d),this.fetchImpl(l.href).then((e=>e.json())).then((e=>{if(e&&e.authenticationResultCode===v._validAuthenticationCode&&e.statusCode===v._validStatusCode&&e.statusDescription===v._validStatusDescription&&e.resourceSets&&0!==e.resourceSets.length){let t;r.success=!0,r.statusCode=v._validStatusCode,r.authenticationResultCode=v._validAuthenticationCode,r.statusDescription=v._validStatusDescription;for(let n=0,i=e.resourceSets.length;n0&&e.errorDetails[0],r.traceId=e.traceId):(r.statusCode=400,r.authenticationResultCode="Unknown",r.statusDescription="Unknown");return r})).catch((e=>(r.authenticationResultCode="Unknown",r.statusCode=404,r.statusDescription="Http Error",r)))}))}static _getBoundsString(e){return e?e.south+","+e.west+","+e.north+","+e.east:""}}v._validAuthenticationCode="ValidCredentials",v._validStatusCode=200,v._validStatusDescription="OK",v._defaultResultCount=5,v._maxNumberOfResults=20,v.geoHost="https://dev.virtualearth.net",v.geoApi="/REST/v1/Locations";class b{constructor(e){this.suggestion=e,this._formatSuggestion(this.suggestion),this.setSimpleSearchText(),this._setDisplayName()}_setDisplayName(){const e=this._formattingRule&&this._formattingRule["b:groupSeparator"]||", ";this.suggestionTextLine2?this.suggestion.displayName=this.suggestionTextLine1+e+this.suggestionTextLine2:this.suggestion.displayName=this.suggestionTextLine1}setSimpleSearchText(){const e=this._formattingRule&&this._formattingRule["b:groupSeparator"]||", ";if("Favorite"===this.suggestion.type){const t=this.suggestion,n=t.name,i=t.address&&t.address.streetAddress;this._searchText=n!==i&&i?n+e+i:n}else this.suggestionTextLine2?this._searchText=this.suggestionTextLine2+e+this.suggestionTextLine1:this._searchText=this.suggestionTextLine1;this.suggestion&&(this.suggestion.searchText=this._searchText)}_removeCountry(e){let t=", ";this._formattingRule&&(t=this._formattingRule["b:groupSeparator"]||this._formattingRule.groupSeparator||", ");const n=this.suggestion.address||this.suggestion.root,i=n&&n.addressCountry;if(i&&e&&e.slice(e.length-i.length)===i){const n=e.slice(0,e.length-i.length);return n.slice(n.length-t.length)===t?n.slice(0,n.length-t.length):n}return e}_formatSuggestion(e){const t=this.suggestion.formattingRule,n=e;if("Favorite"===e.type)return n.alternateName?this.suggestionTextLine1=n.alternateName:this.suggestionTextLine1=n.name,this.suggestionTextLine2=n.address&&n.address.streetAddress,this.suggestion.formatedAddress=n.address&&n.address.streetAddress,void(this.suggestion.title=n.name);n.name&&(this.suggestionTextLine1=n.name,e.title=n.name),n.query&&(this.suggestionTextLine1=n.query),t?(this._formattingRule=t,this.suggestion.address?this._applyFormattingRule(this.suggestion.address):this._applyFormattingRule(e.root)):(this.suggestionTextLine1=e.title,this.suggestionTextLine2=e.formatedAddress),this.suggestion.formatedLine1=this.suggestionTextLine1,this.suggestion.formatedLine2=this.suggestionTextLine2,this.suggestion.formatedLine2WithoutCountry=this._removeCountry(this.suggestionTextLine2)}_applyFormattingRule(e){let t=0;const n=this._formattingRule["b:fieldGroups"]||this._formattingRule.fieldGroups;if(!this.suggestionTextLine1)for(;t{var t,n;const i=e.suggestion.address||e.suggestion.root,r=null===(t=e.suggestion.location)||void 0===t?void 0:t.latitude,o=null===(n=e.suggestion.location)||void 0===n?void 0:n.longitude,s={language:a.Al.Locale,addressLine:e.suggestion.name||(null==i?void 0:i.streetAddress)||(null==i?void 0:i.postalCode),locality:null==i?void 0:i.addressLocality,region:(0,l.abbreviateUSState)(null==i?void 0:i.addressRegion,a.Al.Locale,null==i?void 0:i.countryIso),subRegion:null==i?void 0:i.addressSubregion,country:i&&(i.addressCountry||""),latitude:r&&Number(r).toString(),longitude:o&&Number(o).toString(),typeV6:e.suggestion.type,subType:e.suggestion.subType,searchText:e.suggestion.searchText,formattedAddress:e.suggestion.formatedAddress,readLink:e.suggestion.readLink,locationType:u.getHyperlocalType(e.suggestion.type,e.suggestion.subType),isoCode:i&&(i.countryIso||""),entityId:e.suggestion.entityId,geoId:e.suggestion.geoId};return!s.locality&&s.addressLine&&(s.locality=s.addressLine,s.addressLine=void 0),s.firstLine=u.getAutoSuggestLocationFirstLine(s),s.secondLine=u.getAutoSuggestLocationSecondLine(s),s},this.cfg=Object.assign(Object.assign({},C.defaultConfig),t||{}),"CN"==(null==n?void 0:n.isoCode)&&(this.cfg.endpoint="https://cn.bing.com"),this._extraResult=this.cfg.latinPercentageLimit>0?5:0,this._geocoder=new v(this.cfg.geocoderKey,e),this._autoSuggestModel=new m(e,this.cfg.endpoint,C[this.cfg.useOneServiceProxy?"oneServiceAutosuggestApi":"bingAutosuggestApi"],this.cfg.appId,this.cfg.excludeSubTypes,this.cfg.flightId,this.cfg.useOneServiceProxy,this.cfg.includeSubTypes)}getLocationSearchResponse(e){return Promise.resolve(null)}getAutoSuggestResponse(e,t){var n,i,o;return(0,r.mG)(this,void 0,void 0,(function*(){if(e){const r="zh-cn"===(null===(n=null===a.Al||void 0===a.Al?void 0:a.Al.Locale)||void 0===n?void 0:n.toLowerCase())&&"zh"!==(null===(o=null===(i=null===a.Al||void 0===a.Al?void 0:a.Al.ClientSettings)||void 0===i?void 0:i.geo_country)||void 0===o?void 0:o.toLowerCase())?"40,116":this.userLocation&&`${this.userLocation.latitude},${this.userLocation.longitude}`,s={searchText:e,maxResults:this.cfg.num+this._extraResult,userLocation:r,suggestionTypes:this.cfg.suggestionTypes,abbrSuggestions:!0,localMapView:null},c=yield this._autoSuggestModel.getSuggestions(s,t);return this._parseSuggestions(c)}}))}_latinPercentage(e){const t=e.locality+e.country+e.region+e.subRegion;if(!t)return 0;return t.match(C.latinParttern).join("").length/t.length}_parseSuggestions(e){const t=[],n=null==e?void 0:e.suggestions;if(n&&n.length>0)for(let e=0;e0&&(i=i.filter((e=>this._latinPercentage(e)>this.cfg.latinPercentageLimit)).slice(0,this.cfg.num)),i=i.filter((e=>u.isValidLocationToSuggest(e))),i}_getSuggestionResult(e){return new b(e)}_getLatLongFromReadLink(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e.readLink)return null;const t=new URL(e.readLink);return t.searchParams.append("appid",this.cfg.appId),this.fetchImpl(t.href).then((e=>e.json())).then((t=>{var n,i;const r=t.geo||(null===(i=null===(n=t.value)||void 0===n?void 0:n[0])||void 0===i?void 0:i.geo);if(r&&r.latitude&&r.longitude)return Object.assign(Object.assign({},e),{latitude:r.latitude.toString(),longitude:r.longitude.toString()})})).catch((e=>null))}))}geocodeSuggestion(e){return(0,r.mG)(this,void 0,void 0,(function*(){try{const t=yield this._doGeoCodeSuggestion(e);if(null!==t)return Object.assign(Object.assign({},e),{longitude:t.longitude,latitude:t.latitude});y.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.H4x),{message:"failed to fetch location latitude and longitude in auto suggestion v6",pb:Object.assign(Object.assign({},c.H4x.pb),{customMessage:e.searchText})}))}catch(e){(0,s.OO)(e,c.H4x,"error in library [location-service],Geocoder exception for autosuggestion v6")}return null}))}_doGeoCodeSuggestion(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=e;if(t.longitude&&t.latitude)return t;const n=yield this._getLatLongFromReadLink(e);if(n)return n;const i=this._getSuggestionAddress(t);return this._geocoder.geocode(i,null,1).then((e=>{if(e.success&&e.results&&e.results.length>0){const n=e.results[0];n.bbox;if(n.point){const e=n.point.coordinates;return t.latitude=e[0].toString(),t.longitude=e[1].toString(),t}}return null}))}))}_getSuggestionAddress(e){return e&&"LocalBusiness"===e.typeV6&&e.formattedAddress?e.formattedAddress:e&&e.searchText}}C.bingAutosuggestApi="/api/v6/Places/AutoSuggest",C.oneServiceAutosuggestApi="msn/suggestions",C.defaultConfig={num:5,appId:"D41D8CD98F00B204E9800998ECF8427E1FBE79C2",geocoderKey:"AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im ",suggestionTypes:"Place,Address,Business",endpoint:"https://www.bing.com",excludeSubTypes:["CountryRegion","AdminDivision1"],flightId:""},C.latinParttern=/[\u00C0-\u00ff\w\s\d.,/#!$%^&*;:{}=\-_`~()]+/gu;var S=n(17318),w=n(26740),x=n.n(w);function T(e){if(e&&e.useV6){const t=(0,i.N)()?window.fetch.bind(window):S.br;return new C(t,e,u.headLocation())}return new g(x(),e)}},9601:function(e,t,n){n.d(t,{ye:function(){return r}});const i=[];function r(e){for(const t of i)t(e)}},93637:function(e,t,n){n.d(t,{L:function(){return h},S:function(){return p}});var i=n(33940),r=n(791),a=n(68364),o=n(26415),s=n(54804),c=n(16517),d=n(46336),l=n(4596),u=n(29422),g=n(9601);var p;!function(e){e[e.AutoDetectLoc=1]="AutoDetectLoc",e[e.SpecifyLoc=2]="SpecifyLoc"}(p||(p={}));class h{constructor(){this.instance=r.N}getUserDefaultLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){let t,n;try{const n=yield this.instance.getUserDefaultLocation(e);if(null==n)throw"Location response returned null or undefined";t=yield n.json()}catch(n){(0,a.OO)(n,o.WiH,`User's default location fetch request failed. Autodetect forced: ${!0===e}`),t=null}return t&&t.length&&t[0]&&(n={latitude:`${t[0].latitude}`,longitude:`${t[0].longitude}`,isDetected:e,locality:t[0].city,region:l.abbreviateUSState(t[0].state,s.Al.Locale,t[0].countryCode),country:t[0].country,isoCode:t[0].countryCode,language:c.jG.CurrentMarket,accuracy:t[0].accuracy},n.displayName=u.getDisplayName(n)),n}))}getGeoLocation(){const e=u.headLocation();return u.isValid(e)?e:((0,a.H)(o.Hx8,"Failed to get valid user geo location from PCS head data"),null)}updateUserSettings(e,t,n={},r){return(0,i.mG)(this,void 0,void 0,(function*(){let i=!1;try{i=yield this.instance.updateWeatherSettings(e,t,n,r)}catch(e){(0,a.OO)(e,o.DyR,"error in library [location-service],Weather or location user settings update failed"),i=!1}return i}))}setHomeLocation(e,t={},n){return(0,i.mG)(this,void 0,void 0,(function*(){let i=!1;try{i=yield this.instance.updatePdpHomeLocation(h.buildMetaData(e),e.definitionName||`${e.latitude},${e.longitude}`,t,n)}catch(e){(0,a.OO)(e,o.G1Z,"error in library [location-service],Home Location Update Failed"),i=!1}return i&&(0,g.ye)(e),i}))}setSpecifyLocationMode(){return(0,i.mG)(this,void 0,void 0,(function*(){let e=!1;try{e=yield this.instance.updateWeatherSettings(null,`${p.SpecifyLoc}`)}catch(t){(0,a.OO)(t,o.DyR,"error in library [location-service],Weather user settings update failed"),e=!1}return e}))}addFavoriteLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=`${e.latitude},${e.longitude}`;return yield this.instance.addToFavoriteLocation(h.buildMetaData(e),t)}))}removeFavoriteLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=e.definitionName||`${e.latitude},${e.longitude}`,n=yield this.instance.removeFavoriteLocation(t);return n&&(e.definitionName=null),n}))}removeLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=e.definitionName||`${e.latitude},${e.longitude}`,n=yield this.instance.removeLocation(t);return n&&(e.definitionName=null),n}))}static buildMetaData(e){const t=e.language||s.Al.Locale||"";return JSON.parse(JSON.stringify({geoCoordinates:{latitude:parseFloat(e.latitude),longitude:parseFloat(e.longitude)},addressLine:e.addressLine,subRegion:e.subRegion,readLink:e.readLink,city:e.locality,state:e.region,countryRegion:e.country,postalCode:e.postalCode,isoCode:e.isoCode,locationType:"number"==typeof e.locationType?e.locationType||1:(0,d.hh)(""+e.locationType,1),locationTypeId:[e.locality,e.region,e.country].filter((e=>!!e)).join(","),language:t||void 0,properties:{locationType:e.typeV6,entitySubTypeHints:e.subType}}))}}},97671:function(e,t,n){n.d(t,{QA:function(){return r},WM:function(){return o},_n:function(){return i},rd:function(){return a}});const i=new(n(59049).v)("LocationState");var r,a;function o(e,t,n,r=[]){r.some((e=>!1===e))||i.set(a.Location,{source:n,location:e,locationMode:t})}!function(e){e[e.LocationEditor=1]="LocationEditor",e[e.WelcomeGreeting=2]="WelcomeGreeting",e[e.Feed=3]="Feed"}(r||(r={})),function(e){e[e.Location=1]="Location"}(a||(a={}))},4734:function(e,t,n){n.d(t,{Qz:function(){return S},bn:function(){return w},v:function(){return x},FQ:function(){return m},gy:function(){return h},S0:function(){return g},F_:function(){return f}});var i,r=n(33940);!function(e){e[e.StandardEventBasedDeferral=0]="StandardEventBasedDeferral",e[e.CustomEventBasedDeferral=1]="CustomEventBasedDeferral"}(i||(i={}));var a=n(68917),o=n(53301),s=n(83757),c=n(53076),d=n(93450),l=n(49016);const u=(e,t)=>e.filter((e=>t in e));function g(){return d._.getInstance().rootReducer.connector(c.z.MilestoneData)}function p(e){const t=g();if(!t)return;const n=t.getCurrentState().perExperienceMilestones,i=n&&n.get(e);let r;return i&&(r=i.perInstanceMilestones.get(s.t)),r}function h(e){const t=p(e);if(!t||function(e){let t;switch(e.loadAfter.eventType){case a.Gg.aboveTheFoldVisuallyReady:t=v();break;case a.Gg.belowTheFoldTransitionStart:t=b();break;case a.Gg.hydrationComplete:t=C();break;default:t=(0,l.c)(e.loadAfter.experienceType,e.loadAfter.eventType)}return t}(t))return null;if(t.shouldLoad&&t.loadAfter){return{deferralType:y(t.loadAfter),shouldResolve:t.shouldLoad}}return null}function f(){return g()?v()?Promise.resolve():new Promise((e=>{o.g.updateAboveTheFoldVisuallyReady.registerObserver((t=>{e()}))})):Promise.resolve()}function m(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=g();if(!t)return;const n=t.getCurrentState().plugins;if(!n||0===n.length)return;const i=u(n,e);for(const t of i)void 0!==t[e]&&(yield t[e].call(t))}))}function v(){const e=g();if(!e)return!1;const{aboveTheFoldVisuallyReady:t}=e.getCurrentState();return Boolean(t&&t.endTime!==s.n)}function b(){const e=g();return!!e&&e.getCurrentState().belowTheFoldTransitionStart}function y(e){return e.eventType in a.ic?i.CustomEventBasedDeferral:i.StandardEventBasedDeferral}function C(){const e=g();return!!e&&e.getCurrentState().hydrationComplete}function S(e,t,n,i){return{deferralInfo:e,experienceType:t,experienceGroup:n,experienceInstance:i}}function w(e,t,n,i){return{experienceType:e,currentState:t,experienceGroup:n,experienceInstance:i}}function x(e,t,n,i,r){return{experienceType:e,experienceGroup:t,experienceInstance:n,startTime:i,endTime:r}}},53301:function(e,t,n){n.d(t,{g:function(){return a}});var i=n(55067);class r{constructor(){this.updateHydrationComplete=new i.C("updateHydrationRenderComplete"),this.updateRiverHydrationComplete=new i.C("updateRiverHydrationRenderComplete"),this.updateAboveTheFoldVisuallyReady=new i.C("updateAboveTheFoldVisuallyReady"),this.updateBelowTheFoldTransitionStart=new i.C("updateBelowTheFoldTransitionStart"),this.updateExperienceLoadDeferralState=new i.C("updateExperienceLoadDeferralState"),this.updateExperienceCurrentState=new i.C("updateExperienceCurrentState"),this.updateExperiencePublicState=new i.C("updateExperiencePublicState"),this.updateExperienceRenderDeferralState=new i.C("updateExperienceRenderDeferralState"),this.updateInitTiming=new i.C("UpdateInitTiming"),this.updatePageComplete=new i.C("updatePageCompleteTiming"),this.updateRenderTiming=new i.C("UpdateRenderTiming"),this.updateVisuallyReadyTiming=new i.C("UpdateVisuallyReadyTiming"),this.updateStartLoadingTiming=new i.C("UpdateStartLoadingTiming"),this.updateDomCompleteTiming=new i.C("UpdateDomCompleteTiming"),this.updateMilestonePlugins=new i.C("updateMilestonePlugin")}resetInstance(){this.updateHydrationComplete.unregisterObservers(),this.updateRiverHydrationComplete.unregisterObservers(),this.updateAboveTheFoldVisuallyReady.unregisterObservers(),this.updateBelowTheFoldTransitionStart.unregisterObservers(),this.updateExperienceLoadDeferralState.unregisterObservers(),this.updateExperienceCurrentState.unregisterObservers(),this.updateExperiencePublicState.unregisterObservers(),this.updateExperienceRenderDeferralState.unregisterObservers(),this.updateInitTiming.unregisterObservers(),this.updatePageComplete.unregisterObservers(),this.updateRenderTiming.unregisterObservers(),this.updateVisuallyReadyTiming.unregisterObservers(),this.updateDomCompleteTiming.unregisterObservers(),this.updateMilestonePlugins.unregisterObservers(),a=new r}}let a=new r},98358:function(e,t,n){n.d(t,{m:function(){return h}});var i=n(53301),r=n(68917),a=n(4734),o=n(78690),s=n(49016),c=n(2820);function d(e,t){e.registerObserver((e=>{((e.params||[])[0]||[]).forEach((({deferralInfo:e,experienceType:n})=>{e&&n&&function(e,t,n){if(!e||!t||!(t.eventType in r.Gg)||!t.experienceType&&!t.experienceGroup)return;const{eventType:i,experienceType:a}=t,d=a||t.experienceGroup,l=s.v.get(d);if(l&&l.referencedDependentsDeferralMap){if(l.currentState0&&t.set(e,n):l.referencedDependentsDeferralMap.set(i,new Map([[e,n]]))}}else s.v.set(d,{currentState:o.D.notStarted,referencedDependentsDeferralMap:new Map([[i,new Map([[e,n]])]])}),a&&(0,c.w)(a,!0)}(n,e,t)}))}))}function l(){d(i.g.updateExperienceLoadDeferralState,o.D.loadDeferred),d(i.g.updateExperienceRenderDeferralState,o.D.renderDeferred),i.g.updateExperienceCurrentState.registerObserver((e=>{const t=[];if(((e.params||[])[0]||[]).forEach((({experienceType:e,currentState:n})=>{if(!e||!n)return;const i=s.v.get(e);if(!i)return;i.currentState=n;const c=r.ez.get(n),d=c&&i.referencedDependentsDeferralMap.get(c);d&&d.forEach(((e,n)=>{if(!n)return;const i=e===o.D.loadDeferred?o.D.resolvedForLoad:o.D.resolvedForRender;t.push((0,a.bn)(n,i))}))})),t.length){const e=(0,a.S0)();e&&i.g.updateExperienceCurrentState.getActionSender(e).send(t)}}))}var u=n(70493);let g=new Map;(0,u.U)((()=>{g=new Map}));var p=n(63439);class h extends p.e{constructor(e,t,n,r,s,c,d){super(e,t,n,r,s,c,d),this.startObservers(),i.g.updateInitTiming.registerObserver((e=>this.updateExperienceTiming(e.params[0],o.D.initialized))),i.g.updateRenderTiming.registerObserver((e=>this.updateExperienceTiming(e.params[0],o.D.rendered))),i.g.updateVisuallyReadyTiming.registerObserver((e=>this.updateExperienceTiming(e.params[0],o.D.visuallyReady))),i.g.updateStartLoadingTiming.registerObserver((e=>this.updateExperienceTiming(e.params[0],o.D.startLoading))),i.g.updateDomCompleteTiming.registerObserver((e=>this.updateExperienceTiming(e.params[0],o.D.domComplete))),i.g.updateExperienceLoadDeferralState.registerObserver((e=>{const t=((e.params||[])[0]||[]).map((({experienceType:e,experienceGroup:t,experienceInstance:n})=>(0,a.bn)(e,o.D.loadDeferred,t,n)));t.length&&i.g.updateExperienceCurrentState.getActionSender(this).send(t)})),i.g.updateExperienceRenderDeferralState.registerObserver((e=>{const t=((e.params||[])[0]||[]).map((({experienceType:e,experienceGroup:t,experienceInstance:n})=>(0,a.bn)(e,o.D.renderDeferred,t,n)));t.length&&i.g.updateExperienceCurrentState.getActionSender(this).send(t)}))}startObservers(){l(),i.g.updateExperienceCurrentState.registerObserver((e=>{((e.params||[])[0]||[]).forEach((e=>{e.currentState===o.D.domComplete&&g.forEach(((t,n)=>{let i=!0;const{DomCompleteDependencies:r,DomCompleteCallback:a}=t;for(const t of r.values()){const{dependencyId:{experienceType:n,experienceGroup:r,experienceNamespace:a}}=t;if(n&&n!==e.experienceType||r&&r!==e.experienceGroup||a&&a!==e.experienceInstance||(t.milestoneReached=!0),!t.milestoneReached){i=!1;break}}i&&(t.dependenciesMet=!0,a&&(g.delete(n),a()))}))}))}))}updateExperienceTiming(e,t){e&&e.endTime&&i.g.updateExperienceCurrentState.getActionSender(this).send([(0,a.bn)(e.experienceType,t,e.experienceGroup,e.experienceInstance)])}}},83757:function(e,t,n){n.d(t,{n:function(){return r},t:function(){return i}});const i="default",r=-1},75367:function(e,t,n){n.d(t,{c:function(){return y}});var i,r=n(30856),a=n(53301);!function(e){e[e.domComplete=0]="domComplete",e[e.error=1]="error",e[e.initialized=2]="initialized",e[e.rendered=3]="rendered",e[e.visuallyReady=5]="visuallyReady",e[e.startLoading=6]="startLoading"}(i||(i={}));var o=n(78690),s=n(33954);function c(){return p(a.g.updateAboveTheFoldVisuallyReady,(()=>!0))}function d(){return p(a.g.updateBelowTheFoldTransitionStart,(()=>!0))}function l(e){return g(e,o.D.resolvedForLoad)}function u(e){return g(e,o.D.resolvedForRender)}function g(e,t){return p(a.g.updateExperienceCurrentState,(n=>((n.params||[])[0]||[]).some((n=>n.currentState===t&&n.experienceType===e))))}function p(e,t){return new Promise(((n,i)=>{try{e.registerObserver((e=>{t(e)&&n(!0)}))}catch(e){s.k.logError(e),i(!1)}}))}function h(){return new Promise(((e,t)=>{try{a.g.updateHydrationComplete.registerObserver((()=>{e(!0)}))}catch(e){s.k.logError(e),t(!1)}}))}var f=n(83757),m=n(68917);class v{static updateExperienceCurrentState(e,t,n,i,r){const a=this.getOrCreateExperienceInstanceMilestone(e,t,i,r);a&&(a.currentState=n)}static updateMilestoneTiming(e,t,n,r,a,s,c){const d=this.getOrCreateExperienceInstanceMilestone(e,t,s,c);let l;if(d)switch(n){case i.initialized:l=d.initializationTime;break;case i.rendered:l=d.renderTime;break;case i.visuallyReady:l=d.visuallyReadyTime;break;case i.domComplete:l=d.domCompleteTime;break;case i.startLoading:return void(l=d.startLoadingTime);case i.error:return void(d.currentState=o.D.error);default:throw new Error("Invalid Argument: Unrecognized eventType")}if(!l)throw new Error(`Invalid experience time object while processing timing update for ${n}`);r&&(l.startTime=r),a&&(l.endTime=a)}static updateHydrationComplete(e,t){if(!e)throw new Error(v.invalidMilestoneModelMessage);e.hydrationComplete=t}static updateBelowTheFoldTransitionStart(e,t){if(!e)throw new Error(v.invalidMilestoneModelMessage);e.belowTheFoldTransitionStart=t}static updateMilestonePlugin(e,t){if(!e)throw new Error(v.invalidMilestoneModelMessage);e.plugins&&0!==e.plugins.length?e.plugins=e.plugins.concat(t):e.plugins=t}static updateAboveTheFoldVisuallyReady(e,t){if(!e)throw new Error(v.invalidMilestoneModelMessage);if(!e.aboveTheFoldVisuallyReady)throw new Error("AboveTheFold start not set");e.aboveTheFoldVisuallyReady.startTime=performance.timing.navigationStart,e.aboveTheFoldVisuallyReady.endTime=t}static updatePageComplete(e,t){if(!e)throw new Error(v.invalidMilestoneModelMessage);if(!e.aboveTheFoldVisuallyReady)throw new Error("AboveTheFold start not set");e.pageCompleteTiming.startTime=performance.timing.navigationStart,e.pageCompleteTiming.endTime=t}static deferExperienceLoad(e,t,n,i,r){const a=this.getOrCreateExperienceInstanceMilestone(e,t,i,r);a.loadAfter={experienceType:n.experienceType,experienceGroup:n.experienceGroup,eventType:n.eventType},v.updateLoadDeferralHandler(a,t)}static deferExperienceRender(e,t,n,i,r){const a=this.getOrCreateExperienceInstanceMilestone(e,t,i,r);a.renderAfter={experienceType:n.experienceType,experienceGroup:n.experienceGroup,eventType:n.eventType},v.updateRenderDeferralHandler(a,t)}static getOrCreateExperienceMilestone(e,t,n){if(!t)throw new Error("Invalid Argument: experienceType");e||(e={aboveTheFoldVisuallyReady:void 0,pageCompleteTiming:void 0,perExperienceMilestones:void 0}),e.perExperienceMilestones||(e.perExperienceMilestones=new Map);let i=e.perExperienceMilestones.get(t);return i||(i={experienceType:t,experienceGroup:n,perInstanceMilestones:new Map},e.perExperienceMilestones.set(t,i)),i}static getOrCreateExperienceInstanceMilestone(e,t,n,i){const r=this.getOrCreateExperienceMilestone(e,t,n),a=i||f.t;let s=r.perInstanceMilestones.get(a);return s||(s={currentState:o.D.notStarted,initializationTime:{endTime:f.n,startTime:f.n},loadAfter:{experienceType:void 0,eventType:void 0},renderAfter:{experienceType:void 0,eventType:void 0},renderTime:{endTime:f.n,startTime:f.n},visuallyReadyTime:{endTime:f.n,startTime:f.n},startLoadingTime:{endTime:f.n,startTime:f.n},domCompleteTime:{endTime:f.n,startTime:f.n}},r.perInstanceMilestones.set(a,s)),s}static updateLoadDeferralHandler(e,t){switch(e.loadAfter.eventType){case m.Gg.aboveTheFoldVisuallyReady:e.shouldLoad=c;break;case m.Gg.belowTheFoldTransitionStart:e.shouldLoad=d;break;case m.Gg.hydrationComplete:e.shouldLoad=h;break;default:return void(e.shouldLoad=l.bind(this,t))}}static updateRenderDeferralHandler(e,t){switch(e.renderAfter.eventType){case m.Gg.aboveTheFoldVisuallyReady:e.shouldRender=c;break;case m.Gg.belowTheFoldTransitionStart:e.shouldRender=d;break;case m.Gg.hydrationComplete:e.shouldRender=h;break;default:return void(e.shouldRender=u.bind(this,t))}}}v.invalidMilestoneModelMessage="Invalid Argument: milestoneModel";var b=n(85663);class y{reduce(e,t){let n;if(n=e?Object.assign({},e):{aboveTheFoldVisuallyReady:{endTime:f.n,startTime:f.n},pageCompleteTiming:{endTime:f.n,startTime:f.n},perExperienceMilestones:new Map},!t)return n;let i=!1;return i=i||this.handlePageLevelActions(i,t,n),i=i||this.handleExperienceLevelActions(i,t,n),n||e}handleExperienceLevelActions(e,t,n){return e=(e=(e=(e=(e=(e=(e=(e=(e=e||r.G.handleAction(t,a.g.updateInitTiming,(e=>this.updateTiming(i.initialized,n,e))))||r.G.handleAction(t,a.g.updateRenderTiming,(e=>this.updateTiming(i.rendered,n,e))))||r.G.handleAction(t,a.g.updateVisuallyReadyTiming,(e=>this.updateTiming(i.visuallyReady,n,e))))||r.G.handleAction(t,a.g.updateStartLoadingTiming,(e=>this.updateTiming(i.startLoading,n,e))))||r.G.handleAction(t,a.g.updateDomCompleteTiming,(e=>this.updateTiming(i.domComplete,n,e))))||r.G.handleAction(t,a.g.updateExperienceLoadDeferralState,(e=>e.forEach((({deferralInfo:e,experienceType:t,experienceGroup:i,experienceInstance:r})=>{e&&t&&v.deferExperienceLoad(n,t,e,i,r)})))))||r.G.handleAction(t,a.g.updateExperienceRenderDeferralState,(e=>e.forEach((({deferralInfo:e,experienceType:t,experienceGroup:i,experienceInstance:r})=>{e&&t&&v.deferExperienceRender(n,t,e,i,r)})))))||r.G.handleAction(t,a.g.updateExperienceCurrentState,(e=>e.forEach((({experienceType:e,currentState:t,experienceGroup:i,experienceInstance:r})=>{t&&e&&v.updateExperienceCurrentState(n,e,t,i,r)})))))||r.G.handleAction(t,a.g.updateExperiencePublicState,(e=>{}))}handlePageLevelActions(e,t,n){return e=(e=(e=(e=(e=e||r.G.handleAction(t,a.g.updatePageComplete,(e=>v.updatePageComplete(n,e))))||r.G.handleAction(t,a.g.updateAboveTheFoldVisuallyReady,(e=>v.updateAboveTheFoldVisuallyReady(n,e))))||r.G.handleAction(t,a.g.updateBelowTheFoldTransitionStart,(e=>{(0,b.isNullOrUndefined)(e)||v.updateBelowTheFoldTransitionStart(n,e)})))||r.G.handleAction(t,a.g.updateHydrationComplete,(()=>{v.updateHydrationComplete(n,!0)})))||r.G.handleAction(t,a.g.updateMilestonePlugins,(e=>{e.length>0&&v.updateMilestonePlugin(n,e)}))}updateTiming(e,t,n){const{startTime:i,endTime:r,experienceType:a,experienceGroup:o,experienceInstance:s}=n;v.updateMilestoneTiming(t,a,e,i,r,o,s)}}},49016:function(e,t,n){n.d(t,{c:function(){return a},v:function(){return r}});var i=n(70493);let r=new Map;function a(e,t){const n=r.get(e);return!n||n.currentState>=t}(0,i.U)((()=>{r=new Map}))},2820:function(e,t,n){n.d(t,{w:function(){return a}});var i=n(70493);let r={};function a(e,t){return null!=t?r[e]=t:r[e]}(0,i.U)((()=>{r={}}))},68917:function(e,t,n){n.d(t,{Gg:function(){return r},ez:function(){return o},ic:function(){return i}});var i,r,a=n(78690);!function(e){e[e.belowTheFoldTransitionStart=0]="belowTheFoldTransitionStart"}(i||(i={})),function(e){e[e.startLoading=14]="startLoading",e[e.loaded=4]="loaded",e[e.rendered=8]="rendered",e[e.domComplete=10]="domComplete",e[e.visuallyReady=11]="visuallyReady",e[e.aboveTheFoldVisuallyReady=12]="aboveTheFoldVisuallyReady",e[e.belowTheFoldTransitionStart=0]="belowTheFoldTransitionStart",e[e.hydrationComplete=1]="hydrationComplete"}(r||(r={}));const o=new Map([[a.D.loaded,r.loaded],[a.D.rendered,r.rendered],[a.D.domComplete,r.domComplete],[a.D.visuallyReady,r.visuallyReady]])},78690:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e[e.notStarted=1]="notStarted",e[e.loadDeferred=2]="loadDeferred",e[e.resolvedForLoad=3]="resolvedForLoad",e[e.loaded=4]="loaded",e[e.initialized=5]="initialized",e[e.renderDeferred=6]="renderDeferred",e[e.resolvedForRender=7]="resolvedForRender",e[e.rendered=8]="rendered",e[e.domComplete=10]="domComplete",e[e.visuallyReady=11]="visuallyReady",e[e.error=12]="error",e[e.startLoading=14]="startLoading"}(i||(i={}))},63725:function(e,t,n){n.d(t,{d:function(){return A}});var i=n(33940),r=n(26415),a=n(33954);var o=n(2040),s=n(47903),c=n(16517),d=n(17318),l=n(94788),u=n(54804),g=n(62938),p=n(5696),h=n(63535),f=n(87298),m=n(65135),v=n(51125),b=n(4875),y=n(46596);class C{constructor(){this.cachedMetadata={}}get(e){const t=S(e);if(t)return this.cachedMetadata[t]}set(e,t){const n=S(e);n&&(this.cachedMetadata[n]=t)}}function S(e){if(e)return JSON.stringify(e)}var w=n(33799),x=n(33379),T=n(12611);class A{constructor(e){this.config=e,this.responseCache=new C,this.requestPathWithoutFeedId="MSN/Feed/me",this.requestPathWithFeedId="MSN/Feed",this.requestPathForFeedLayout="MSN/FeedLayout",this.requestPathForArticleFRE="news/Feed",this.requestPathForNewsFeed="news/Feed"}fetch(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){let n=this.config.initialRequest;if(e&&(e.feedId||!n.feedId||e.nextPageUrl||(e.feedId=n.feedId),n=Object.assign(Object.assign({},n),e)),!n)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.pIg),{message:"default OneService fetch configuration was invalid"}));const l=(null==e?void 0:e.forceEnterpriseCompliance)||(0,b.VQ)(),u=yield p.$.getOneServiceFeedCallHeaders(l);if(l&&!(null==u?void 0:u[o.Yu.authorization])&&!(null==e?void 0:e.forceNoAuthorization))return;const C={credentials:"include",headers:u,method:"GET"},S=n.useNextPageUrl&&n.nextPageUrl,A=n.feedLayoutRequestType;let k;k=!S&&A?this.requestPathForFeedLayout:"feed"===n.query&&n.feedId?this.requestPathForNewsFeed:n.feedId||n.entityId?this.requestPathWithFeedId:"frefeedback"===n.query||"frefeedbackneg"===n.query||"UserFre"===n.query?this.requestPathForArticleFRE:this.requestPathWithoutFeedId;const I=this.responseCache.get(n);if(this.isRequestCacheable(k)&&I)return I;const O=(0,h.fU)(k,null==e?void 0:e.overwriteBaseApiURL),_=(0,v.Ee)();if(S)this.requestQueryParams=new s.h(new URL(S).search),_>0&&this.requestQueryParams.set(v.i$,_.toString()),!c.jG.SendFeedCallActivityIdInHeader&&c.jG.ActivityId&&("winWidgets"===c.jG.AppType&&this.requestQueryParams.get("activityId")||this.requestQueryParams.set("activityId",c.jG.ActivityId));else{const{ocid:e,flightData:t,overwriteFlightData:i,muidFallback:r}=n,a=(yield(0,y.XJ)())===w.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(c.jG.UserId,e,!1,t,i):p.$.getOneServiceParamsWithoutAuth(c.jG.UserId||r&&`m-${c.jG.ActivityId}`,e,!1,t,i,l);this.requestQueryParams=new s.h;for(let e=0;e0&&this.requestQueryParams.set(v.i$,_.toString()),(n.useDelta||n.sessionId)&&(!1!==n.useDelta&&this.requestQueryParams.set("delta","true"),n.sessionId&&this.requestQueryParams.set("session",n.sessionId)),n.channel&&this.requestQueryParams.set("channel",n.channel)}let P,N,E,M;"UserFre"===n.query&&this.requestQueryParams.set("entityIds",n.userFreCandidatesSetId),c.jG.SendFeedCallActivityIdInHeader&&this.requestQueryParams.delete("activityId"),O.search=this.requestQueryParams.toString();try{const e=(0,x.N)()?1e4:800,t=yield(0,f.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){return this.config.useFetchPromise?yield(0,f.O)(decodeURIComponent(O.href),C,e):yield(0,d.Sm)(decodeURIComponent(O.href),e,C)}))),"OneServiceCardProvider.fetch");if(!t||!t.ok&&404!==t.status){E=t?t.status:null,M=t?t.statusText:null;const e=401===E?r.THd:r.p3y;return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t?"OneService returned error response":"OneService response was null",pb:Object.assign(Object.assign({},e.pb),{fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href,statusCode:E,statusText:M}})}))}if(204===t.status||404===t.status)P={feedItems:[]},E=t.status,M=t.statusText,m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.n82),{message:204===t.status?"Empty non first-page response":"Empty first-page response",pb:Object.assign(Object.assign({},r.n82.pb),{fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href,statusCode:E,statusText:M}})}));else{if(n.rawView)return t.json();P=yield t.json()}if(t.headers){t.headers.get("X-Statics-Fallback")&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.ovB),{pb:Object.assign(Object.assign({},r.ovB.pb),{customMessage:`Request URL: ${decodeURIComponent(O.href)}`}),message:"Fell back to static content on the feeds call"}));const e=t.headers.get("ddd-tmpl");m.M0.addOrUpdateTmplString(e),N=t.headers.get("ddd-session-id");const n=t.headers.get(o.rD.traceId);this.addOrUpdateIdxId(n);const i=t.headers.get(o.rD.debugId);(0,v.Dz)(i,!1)}}catch(e){return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.u45),{message:"Error while fetching OneService response",pb:Object.assign(Object.assign({},r.u45.pb),{customMessage:`Error: ${e}`,fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href}})}))}if(!P)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.XFR),{message:"Didn't get valid JSON from response.",pb:Object.assign(Object.assign({},r.XFR.pb),{fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href}})}));const F=(this.requestQueryParams.get("t")||"").toLowerCase(),D="tabriver"===F||"tabs"===F,L=this.requestQueryParams.get("responseSchema"),{nextPageUrl:$,feedItems:R}=L===g.c.CardView?(0,T.ni)(P,D):P;if(!R)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.yWd),{message:"Didn't get valid feed items list from response.",pb:Object.assign(Object.assign({},r.yWd.pb),{fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href,responseJson:JSON.stringify(P)}})}));if(!R.length&&!n.start)if(n.isSearchRequest)this.trackEmptyResponseForInterestSearch(n.feedId,n.query,O.href);else if(n.feedId){const{emptyResponseFeedIds:e}=this.config.initialRequest;t||n.feedId.startsWith("Q_")||e&&e.length&&-1!==e.indexOf(n.feedId)||this.trackEmptyResponseForXFeed(n.feedId,O.href)}else n.query?this.trackEmptyResponseForQueryFeed(n.query,O.href):this.trackAppErrorHelper(r.BlE,"OneService returned an empty feed for a myfeed request.",O.href,null,null,"",E,M);if(D)if("tabriver"===F){const e=R.find((e=>"tabbedInfopane"===e.type));e&&e.subItems&&e.subItems.length||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.$Ej),{pb:Object.assign(Object.assign({},r.$Ej.pb),{feedData:JSON.stringify(P),fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href,responseJson:JSON.stringify(P)}}),message:"TabRiver request returned empty content for tabbed infopane card."}))}else if("tabs"===F){let e=!1;e=!R.length||-1!==R.findIndex((e=>"tabbedInfopane"!==e.type||!e.subItems||!e.subItems.length)),e&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.a3w),{pb:Object.assign(Object.assign({},r.a3w.pb),{fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:O.href,responseJson:JSON.stringify(P)}}),message:"Tabs request returned empty content for one or more tabbed infopane cards."}))}let j;if(R.length>=0?j=Object.assign(Object.assign({},n),{nextPageUrl:$,start:(n.start||0)+n.count}):a.k.log(`River has reached end of content stream. requested: ${n.count}, received: ${R.length}`),n.postRequestGrouping){const{start:e,count:t,type:i}=n.postRequestGrouping,r={type:i,subItems:R.splice(e,t)};R.splice(e,0,r)}const z={cardMetadata:R,nextPageRequest:j,sessionId:N,feedContext:P.feed};return this.responseCache.set(n,z),z}))}fetchFromWebWorker(e,t=1e3,n){return(0,x.N)()?(0,l.ot)({id:e},t).then((e=>{const t=e.payload;if(!e.fetched||!t||!t.feedData)return null;t.responseSchema===g.c.CardView&&(t.feedData=(0,T.ni)(t.feedData,t.isTabbedInfopaneResponse));const{nextPageUrl:i,feedItems:r=[]}=t.feedData;let a,o=this.config.initialRequest;if(n&&(o=Object.assign(Object.assign({},o),n)),i&&r.length&&(a=Object.assign(Object.assign({},o),{start:(o.start||0)+o.count,nextPageUrl:i})),o.postRequestGrouping){const{start:e,count:t,type:n}=o.postRequestGrouping,i={type:n,subItems:r.splice(e,t)};r.splice(e,0,i)}const s=t.traceId;this.addOrUpdateIdxId(s);const c=t.debugId;return(0,v.Dz)(c,!1),{cardMetadata:r,nextPageRequest:a,sessionId:t.sessionId}})):Promise.resolve(null)}clearCache(){this.responseCache=new C}getRequestTimeout(e){const{timeoutMs:t,isSearchRequest:n,query:i,customFeedTimeoutMs:r}=e;return n&&i&&r?r:t}tryAddQueryInterestParams(e){if(!e.useVerticalAsInterest&&!e.useCategoryAsInterest)return!1;const t=(e.useVerticalAsInterest?u.Al.ClientSettings.verticalKey:u.Al.ClientSettings.categoryKey)||"",n=e.verticalCategoryKeyToInterestMapping[t.toLowerCase()],i=n||"news";return this.requestQueryParams.set("query",encodeURIComponent(i)).set("source",e.contentSource),n||e.useCategoryAsInterest&&!t||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.US9),{message:"Failed to get content",pb:Object.assign(Object.assign({},r.US9.pb),{customMessage:`Failed to get content for VerticalKey:${c.jG.HostPage.verticalKey} | CategoryKey:${c.jG.HostPage.categoryKey}. Loading fallback views river with ${i} content.`})})),!0}trackAppErrorHelper(e,t,n,i,r,a,o,s){let d="";i&&(d+=`Feed id: ${i}. `),r&&(d+=`Feed query: ${r}. `),m.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t,pb:Object.assign(Object.assign({},e.pb),{customMessage:d,fetchNetworkResponse:{activityId:c.jG.ActivityId,requestUrl:n,responseJson:a,statusCode:o,statusText:s}})}))}trackEmptyResponseForQueryFeed(e,t){this.trackAppErrorHelper(r.huq,"OneService returned an empty feed for a query-powered feed. See property bag for the query.",t,null,e)}trackEmptyResponseForXFeed(e,t){this.trackAppErrorHelper(r.MD5,"OneService returned an empty feed for an x-feed page.",t,e,null)}trackEmptyResponseForInterestSearch(e,t,n){e?this.trackAppErrorHelper(r.L90,"OneService returned an empty feed for a user searched xfeed.",n,e,null):this.trackAppErrorHelper(r.V3_,"OneService returned an empty feed for a user query.",n,null,t)}addOrUpdateIdxId(e){e&&m.M0.addOrUpdateIdxId(e,!1)}isRequestCacheable(e){return!this.config.cacheDisabledRequestPaths||!this.config.cacheDisabledRequestPaths.includes(e)}}A.providerName="OneService"},62938:function(e,t,n){var i,r;n.d(t,{c:function(){return i}}),function(e){e.CardView="cardview",e.FlatView="flatview"}(i||(i={})),function(e){e.t3="T3",e.t6="T6"}(r||(r={}))},12611:function(e,t,n){n.d(t,{cx:function(){return c},ni:function(){return o}});var i=n(44772),r=n(26415),a=n(65135);function o(e,t=!1,n=!1){if(!e)return e;if(Array.isArray(e)){if(!e.length)return e;e=e[0]}if(!e||!e.subCards||!Array.isArray(e.subCards))return e;const i=e.subCards.map((e=>s(e,t,n)));return!e.subCards.length||i&&i.length&&e.subCards.length===i.length||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.eto),{message:"Mapper returned invalid data",pb:Object.assign(Object.assign({},r.eto.pb),{customMessage:`Count mismatch - expected count [${e.subCards.length}] - actual count [${i.length}]`})})),{feedItems:i,nextPageUrl:e.nextPageUrl}}function s(e,t=!1,n=!1){if(!e)return{};if(e.type===i.PL.AiCharacterCard||e.type===i.PL.BingHealthFitnessCard||e.type===i.PL.BoostAd||e.type===i.PL.CashbackAds||e.type===i.PL.Elections||e.type===i.PL.EsportsCasualGames||e.type===i.PL.EsportsHighlight||e.type===i.PL.EsportsLiveStream||e.type===i.PL.EventSDCardAmplifyAds||e.type===i.PL.EventSDCardShopping||e.type===i.PL.EventSDCardWorldCup||e.type===i.PL.EventSDCardWorldCup2||e.type===i.PL.GroupedContent||e.type===i.PL.HealthTipCard||e.type===i.PL.LinkedInCard||e.type===i.PL.LocalGuide||e.type===i.PL.LocalNews||e.type===i.PL.LocalNewsFeed||e.type===i.PL.MyBriefRiverCard||e.type===i.PL.RecommendedSearchesCard||e.type===i.PL.SageGroupedFeed||e.type===i.PL.ShoppingFeedCard||e.type===i.PL.ShoppingMerchantCategoryDeals||e.type===i.PL.ShoppingProngCardResponse||e.type===i.PL.SportsMatch||e.type===i.PL.SportsOlympics||e.type===i.PL.StockQuote||e.type===i.PL.StockQuote_spotlight||e.type===i.PL.TopStories||e.type===i.PL.TrafficDelays||e.type===i.PL.TravelDestinationCard||e.type===i.PL.Upsell||e.type===i.PL.UserInterestTopic||e.type===i.PL.VideoShoppingCard||e.type===i.PL.WeatherSummary||e.type===i.PL.WeatherSummary_spotlight||e.type===i.PL.WorkHeadlines||e.type===i.PL.WindowsShellTrendingTopics||e.type===i.PL.ColdStartArticleFreCard||e.type===i.PL.MoneyInfo||e.type===i.PL.MoneyMoreForYouCard)return e;if(e.type===i.PL.TopicFeed)return function(e){e.feed&&"linkedinnews"===e.feed.canonicalName?e.type=i.PL.LinkedInCard:(e.feed&&(e.feed.canonicalName===i.PL.TopicFeedWeekends||e.feed.canonicalName===i.PL.TopicFeedMomentInTime1)||e.feed.canonicalName===i.PL.TopicFeedShopping||e.feed.canonicalName===i.PL.TopicFeedWeather)&&(e.type=i.PL.TopicFeedMomentInTime1);return e}(e);const r=(e.wpoMetadata&&e.wpoMetadata.contentType)===i.PL.NewsGroups;if(n&&e.type===i.PL.Infopane&&!r)return e;if(e.subCards)return t?{subItems:e.subCards.map((e=>s(e))),type:e.type||"tabbedInfopane"}:function(e){const{type:t,title:n,wpoMetadata:i,subType:r}=e,a=e.subCards.map((e=>s(e))),o={metadata:{title:n},subItems:a,subType:r,type:t};i&&(o.wpoMetadata=i);return o}(e);if(e.type===i.PL.ExternalLink)return function(e){const{type:t,category:n,images:i,id:r,url:a,abstract:o="",title:s="",provider:c={},feed:d={},cardId:p,position:h,rotPos:f}=e,m=g(i)||{},v=u(a),{uiHint:b,actionText:y}=e.uiMetadata||{};let C=l(c.logoUrl);!C&&c.logo&&c.logo.url&&(C=l(c.logo.url));return{id:r,cardId:p,position:h,rotPos:f,type:t,metadata:{abstractLength:o.length,title:s,titleLength:s.length,category:n||v[4],subCategory:"other",primaryImage:{height:m.height,width:m.width,url:m.url},locale:v[3],url:a,abstract:o,uiHint:b,actionText:y,feed:{id:d.id},kicker:[{feedName:d.feedName}]},cardContent:{id:r,type:t,title:s,abstract:o,category:{product:n,label:void 0},provider:{id:c.id,name:c.name,logo:{id:C},logoUrl:c.logoUrl||c.logo&&c.logo.url,subscribable:!1},images:[{id:l(m.url),height:m.height,width:m.width,caption:m.title,focalRegion:m.focalRegion,attribution:m.attribution,url:m.url,colorSamples:m.colorSamples}],kicker:s,destinationUrl:a}}}(e);if(e.type===i.PL.WebContent&&!n)return function(e){const{id:t,cardId:n,type:i,images:r,url:a,category:o,locale:s,reactionSummary:c,commentSummary:d,tag:h,abstract:f="",feed:m={},title:v="",provider:b={},actions:y=[],isBreaking:C=0,externalVideoFiles:S={},publishedDateTime:w,colorSamples:x,dataUrl:T,sourceId:A,financeMetadata:k,isLocalContent:I,position:O,rotPos:_,videoMetadata:P={}}=e,N=g(r)||{},E=u(a);return{id:t,cardId:n,position:O,rotPos:_,type:i,metadata:{abstract:f,abstractLength:f.length,titleLength:v.length,category:o||E[4],subCategory:E[5],publishedDateTime:w,externalVideoFiles:S,locale:s,feed:{id:m.id},kicker:[m],actions:y.map((e=>p[e]||e)),reactionSummary:c,commentSummary:d,primaryImage:{height:N.height,width:N.width,url:N.url},url:a,title:v,provider:{name:b.name,logo:{url:b.logoUrl}},viewCount:P.viewCount},cardContent:{id:t,type:i,title:v,abstract:f,isBreaking:C,tags:[h||{}],provider:{id:b.id,name:b.name,logoUrl:b.logoUrl,image:{alt:b.name,src:b.logoUrl}},category:{product:o,label:void 0},locale:s,images:[{id:l(N.url),height:N.height,width:N.width,caption:N.title,focalRegion:N.focalRegion,attribution:N.attribution,url:N.url,colorSamples:N.colorSamples}],colorSamples:x,videoFiles:S,publishedDateTime:w,kicker:v,sourceHref:T,destinationUrl:a,sourceId:A,financeMetadata:k,isLocalContent:I}}}(e);const{type:a,isBreaking:o,locale:d,category:h,images:f,topics:m=[],dataUrl:v,publishedDateTime:b,id:y,url:C,abstract:S="",title:w="",provider:x={},feed:T={},actions:A=[],externalVideoFiles:k,reactionSummary:I,commentSummary:O,engagementSummary:_,sourceId:P,financeMetadata:N,topComments:E,colorSamples:M,isLocalContent:F,isLocalNews:D,badges:L,relatedCards:$,cardId:R,position:j,rotPos:z,videoMetadata:B,traceIdIndex:H,spotlightStamp:W}=e,U=g(f)||{},G=k||[],V=m.find((e=>e.feedId===T.id&&e.locale===d)),q=u(C);let J=l(x.logoUrl);return!J&&x.logo&&x.logo.url&&(J=l(x.logo.url)),{id:y,cardId:R,cardContent:{abstract:S,badges:L,colorSamples:M,category:{product:h,label:void 0},destinationUrl:C,financeMetadata:N,id:y,isLocalContent:F,isLocalNews:D,isBreaking:o||0,images:[{id:l(U.url),height:U.height,width:U.width,caption:U.title,focalRegion:U.focalRegion,attribution:U.attribution,source:U.source,url:U.url,colorSamples:U.colorSamples}],kicker:w,locale:d,provider:{id:x.id,name:x.name,logo:{id:J},logoUrl:x.logoUrl||x.logo&&x.logo.url,profileId:x.profileId,subscribable:!1},publishedDateTime:b,sourceHref:v,sourceId:P,type:c(a),title:w,topics:m,tags:[V||{}],uriTitle:q[6],videoFiles:G},metadata:{abstractLength:S.length,titleLength:w.length,category:h||q[4],subCategory:q[5],primaryImage:{height:U.height,width:U.width},locale:d,feed:{id:T.id},kicker:[T],actions:A.map((e=>p[e]||e)),reactionSummary:I,commentSummary:O,engagementSummary:_,topComments:E,relatedCards:$,videoMetadata:B},position:j,rotPos:z,spotlightStamp:W,type:a,traceIdIndex:H}}function c(e){switch(e){case"article":return"ArticlePreview";case"video":return"VideoPreview";case"slideshow":return"SlideshowPreview";case"webcontent":return"WebContentPreview";default:return""}}const d=new RegExp(/bing.(com|net)\/th/);function l(e){if(!e)return"";if(d.test(e))return;const t=e.split("/");return g(t)&&t[t.length-1].replace(".img","")}function u(e){return e?e.split("/"):[]}function g(e=[],t=0){return e[t]}const p={liked:"like",unliked:"unlike",saved:"save"}},51125:function(e,t,n){n.d(t,{Dz:function(){return v},Ee:function(){return h},N:function(){return m},T1:function(){return g},i$:function(){return d},j9:function(){return p},s6:function(){return f}});var i=n(33940),r=n(42420),a=n(16517),o=n(94788),s=n(9344);const c=10/1440,d="cbypass";let l="",u=parseInt((0,s.ej)(d))||0;function g(){return(0,i.mG)(this,void 0,void 0,(function*(){u=Date.now(),(0,s.sq)(d,u.toString(),c,a.jG.HostPage.topDomain,"/"),yield r.U.purgeCacheAsync(r.R.river),(0,o.mS)({id:"updatemyfeed",payload:u})}))}function p(){return(0,i.mG)(this,void 0,void 0,(function*(){u=Date.now(),(0,s.sq)(d,u.toString(),c,a.jG.HostPage.topDomain,"/"),yield r.U.purgeCacheAsync(r.R.river)}))}function h(){return u}function f(e){u>0&&e.searchParams.set(d,u.toString())}function m(){return l}function v(e,t){if(!e)return;if(t)return void(l=e);l=l?`${l},${e}`:e}},82037:function(e,t,n){n.d(t,{fK:function(){return g},rg:function(){return h},tW:function(){return p}});var i=n(33940),r=n(68364),a=n(26415),o=n(54804),s=n(17318);const c="//assets.msn",d="prg-1s-bkupdmnt",l="prg-1s-bkupdmnt1",u="prg-1s-bkupdmnt3";function g(){const e=o.Al.CurrentFlightSet;return!(!e||!(e.has(d)||e.has(l)||e.has("prg-1s-bkupdmnt2")||e.has(u)))}function p(){const e=o.Al.CurrentFlightSet;return!(!e||!e.has(d)&&!e.has(l))}function h(e,t={},n,d=!1){return(0,i.mG)(this,void 0,void 0,(function*(){let i;try{if(i=yield(0,s.Sm)(e,n,t),i&&i.ok)return i}catch(t){(0,r.OO)(t,a.mmU.OneServiceAkamaiRequestFailed,a.mmU.OneServiceAkamaiRequestFailed.message,`Failed URL: ${e}`)}return i&&i.headers&&i.headers.get("OneWebServiceLatency")||d?i:(e=o.Al.CurrentFlightSet&&o.Al.CurrentFlightSet.has(u)?e.replace(c,"//api.msn").replace("/service/","/"):e.replace(c,"//assets2.msn"),(0,s.Sm)(e,n,t))}))}},5696:function(e,t,n){n.d(t,{$:function(){return S}});var i,r=n(33940),a=n(16517),o=n(54804),s=n(90846),c=n(53578),d=n(65337),l=n(2040),u=n(88352),g=n(47903),p=n(76323),h=n(4875),f=n(40339),m=n(20811),v=n(46596),b=n(33379),y=n(2140);!function(e){e.InteractionRequired="userInteractionRequired",e.AuthProviderNotSupported="authProviderNotSupported",e.MaySucceedOnRetry="fetchRetryableError",e.OtherError="authFetchError"}(i||(i={}));let C={getAuthData:e=>(0,r.mG)(void 0,void 0,void 0,(function*(){return{resource:e,error:{message:"Auth manager is not initialized",status:i.OtherError}}}))};var S,w=n(9344),x=n(79022),T=n(87711);!function(e){e.authenticationTicketType="10",e.signedInCookieNameHeader="signedInCookieName",e.userLocationHeader="user-location";const t="prg-1sw-t1saufu";function n(e=null,t,n=!0,i=null,r=!1,s=(0,h.VQ)()){const c=(0,a.Yq)(),d=[{key:"apikey",value:c.OneServiceApiKey},{key:"activityId",value:c.ActivityId},{key:"ocid",value:n?S(c.TrackInfo,t):t},{key:c.OneServiceContentMarketQspKey,value:c.CurrentMarket}];if(e&&d.push({key:"user",value:e}),s&&d.push({key:h.rZ,value:h.AN}),o.Al.IsBlendedEnterprise&&d.push({key:"audienceMode",value:"enterprise"}),c.ShouldUseFdheadQsp){let e=(0,o.nP)().CurrentFlights;if(i){e=e?`${e},${i}`:i;const t="prg-bngimg-t";-1===e.indexOf(t)&&(e+=","+t),!0===r&&(e=i)}d.push({key:"fdhead",value:e})}return d}function i(e=(0,h.VQ)(),t,n,i){var o,u;return(0,r.mG)(this,void 0,void 0,(function*(){const r={};let g;const p=(0,a.Yq)()||{};if(p.WidgetAttributes&&(g=yield I()),!g)if(e&&!(yield p.isGccModUser)){const e={id:c.d3,friendlyName:c.Ak},t=yield null===(o=C)||void 0===o?void 0:o.getAuthData(e);g=null==t?void 0:t.authToken}else if("gaming"===n&&i){const e=(0,d.$o)().getObject("xboxXTokenId");e&&e.notAfter&&new Date(e.notAfter)>new Date&&(r[l.Yu.xboxToken]=JSON.stringify(e))}else if(!(null==t?void 0:t.skipDualAuthHeader)&&(0,s.G5)()){const e=(0,s.hk)()?yield(0,f.IY)():(0,s.aS)();g=null==e?void 0:e.accessToken}else if(A())g=(0,m.ft)();else if((0,s.iA)(null===(u=p.CurrentRequestTargetScope)||void 0===u?void 0:u.audienceMode)){const e=(0,w.ej)(l.OJ)||(0,w.ej)(l.d_);Object.assign(r,(0,s.o1)(e))}if(Object.assign(r,(0,s.me)(g)),!(0,b.N)()){const{oneServiceHeaders:e,cookie:t,referer:n}=(0,y.s)();e&&Object.assign(r,e),t&&(r.Cookie=t),n&&(r.Referer=n)}return r}))}function S(e,t){return u.b.isNonNullObject(e)&&u.b.isNonNullObject(e.sitePage)&&(0,x.Z)(e.sitePage.page_product)&&(0,x.Z)(e.sitePage.page_type)?e.sitePage.page_product+"-"+e.sitePage.page_type+(t?"-"+t:""):t}e.serviceRequestOnComplete=function(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){try{const n=yield e();return t(),n}catch(e){throw t(),e}}))},e.getOneServiceParamsWithoutAuth=n,e.getOneServiceNonDynamicParamsWithoutAuth=function(e,t=!0){const n=(0,a.Yq)(),i=[{key:"apikey",value:n.OneServiceApiKey},{key:"ocid",value:t?S(n.TrackInfo,e):e},{key:n.OneServiceContentMarketQspKey,value:n.CurrentMarket}];return(0,h.VQ)()&&i.push({key:h.rZ,value:h.AN}),i},e.getOneServiceParamsWithAuth=function(e=null,t,i=!0,r=null,o=!1){const c=(0,a.Yq)(),d=[...n(e,t,i,r,o)];if(!((0,s.G5)()||k()||(0,s.TR)()||c.WidgetAttributes)){const e=c.AuthCookieName;e&&d.push({key:"scn",value:e.toUpperCase()})}return d},e.getOneServiceHeaders=i,e.getOneServiceFeedCallHeaders=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function*(){const r=yield i(e,null,t,n),o=(0,a.Yq)(),s=o.ActivityId;return o.SendFeedCallActivityIdInHeader&&s&&(r[l.Yu.activityId]=s),r}))},e.getLocationParams=function(e,t){const n=(0,a.Yq)(),i=e||n.Latitude,r=t||n.Longitude;return i&&r?{key:"location",value:`${i}|${r}`}:null},e.getOneServiceOCID=S,e.getBaseRequestData=function(t,n){return(0,r.mG)(this,void 0,void 0,(function*(){return{headers:yield e.getOneServiceHeaders((0,h.VQ)(),n),method:t}}))},e.getCommonParams=function(e,t=!1){return(0,o.nP)().UserIsSignedIn?this.getOneServiceParamsWithAuth((0,a.Yq)().UserId,e,t):this.getOneServiceParamsWithoutAuth((0,a.Yq)().UserId,e,t)},e.getCommonParams2=function(e,t=!0,n=!1){return(0,v.hC)()?this.getOneServiceParamsWithAuth((0,a.Yq)().UserId,e,t,n):this.getOneServiceParamsWithoutAuth((0,a.Yq)().UserId,e,t,n)},e.urlContainsOcidParam=function(e){if(!e)return!1;const t=e.split("?");if(t.length<2)return!1;const n=t[1].split("#")[0];return!!new g.h(n).get("ocid")},e.removeOcidFromUrl=function(e){if(!e)return e;const t=e.split("?");if(t.length<2)return e;const n=t[1].split("#")[0],i=new g.h(n);if(i.get("ocid")){i.delete("ocid");let t=e.replace(n,i.toString());return"?"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t}return e},e.removeOcidFromRiverCardProviderResponse=function(t){t&&t.cardMetadata&&t.cardMetadata.length&&t.cardMetadata.forEach((t=>{t.cardContent&&t.cardContent.destinationUrl?t.cardContent.destinationUrl=e.removeOcidFromUrl(t.cardContent.destinationUrl):t.subItems&&t.subItems.length&&t.subItems.forEach((t=>{t.cardContent&&t.cardContent.destinationUrl&&(t.cardContent.destinationUrl=e.removeOcidFromUrl(t.cardContent.destinationUrl))})),t.metadata&&t.metadata.relatedCards&&t.metadata.relatedCards.forEach((t=>{t.url=e.removeOcidFromUrl(t.url)}))}))},e.removeOcidFromWindowsOneServiceResponse=function(t){t&&t.cards&&t.cards.forEach((t=>{t.subCards.forEach((t=>{t.url?t.url=e.removeOcidFromUrl(t.url):t.subCards&&t.subCards.forEach((t=>{t.url&&(t.url=e.removeOcidFromUrl(t.url))}))}))}))};const A=(0,p.p)((()=>{const e=(0,o.nP)().CurrentFlights;return"windowsShell"===(0,a.Yq)().AppType&&(e.includes(t)||e.includes("prg-1sw-t2saufu"))})),k=(0,p.p)((()=>"windowsShell"===(0,a.Yq)().AppType&&(0,o.nP)().CurrentFlights.includes(t))),I=(0,p.p)((()=>(0,r.mG)(this,void 0,void 0,(function*(){let e;const t=(0,b.N)()&&window.__pw_options,n=t&&t.auth&&t.auth.serviceToken;if("object"==typeof n&&n.then){const t=3e3;e=yield Promise.race([n,(0,T.Kb)(t).then((()=>null))])}return e&&e.tokenValue}))));e._reset=function(){I.cache.clear(),A.cache.clear(),k.cache.clear()}}(S||(S={}))},87298:function(e,t,n){n.d(t,{O:function(){return y},w:function(){return C}});var i=n(33940),r=n(26415),a=n(9947),o=n(65135),s=n(33379);class c{constructor(e,t,n,i,r,o,d){if(!e)throw new Error("loggingService is required for ExponentialBackoffRetry.");const l=new a.K(e);this.logInvalidParams(l,t,n,i,r,d),this.loggingService=e,this.maxRetries=t||c.defaultMaxRetries,this.baseRetryDelayInMs=n||c.defaultBaseRetryDelayInMs,this.maxRetryDelayInMs=i||c.maxAllowedRetryDelayInMs,this.factor=r||c.defaultFactor,this.minOffsetInMs=o||c.defaultMinOffsetInMs,this.maxOffsetInMs=d||c.defaultMaxOffsetInMs,(0,s.N)()&&this.loggingService.infoCallback((()=>"ExponentialBackoffRetry has been configured."),null,{maxRetries:t,minTimeout:n,maxTimeout:i,factor:r})}executeRequest(e,t,n,r,a){return(0,i.mG)(this,void 0,void 0,(function*(){return new Promise(((o,s)=>(0,i.mG)(this,void 0,void 0,(function*(){yield this.tryRequest(e,o,s,0,t,n,r,a)}))))}))}logInvalidParams(e,t,n,i,r,a){t&&(t<1||t>c.maxAllowedRetries)&&e.fatal(`maxRetries should be at least 1 and less than ${c.maxAllowedRetries}.`),n&&nc.maxAllowedRetryDelayInMs)&&e.fatal(`maxRetryDelay has to be a positive value less than ${c.maxAllowedRetryDelayInMs}.`),r&&r<=0&&e.fatal("factor has to be a positive value.")}tryRequest(e,t,n,a,c,d,l,u){return(0,i.mG)(this,void 0,void 0,(function*(){const i=()=>(0,s.N)()&&a`Retrying the request in ${h} milliseconds.`),d,{error:s,currentRetry:a+1,requestInfo:c}),o.M0&&o.M0.sendAppErrorEvent){const e=("string"==typeof s?s:s.message)||"";o.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.mmU.ServiceRequestRetryAttempted),{pb:Object.assign(Object.assign({},r.mmU.ServiceRequestRetryAttempted.pb),{retryAttemptsMade:a,serviceFailed:d&&d.Message,maxRetries:this.maxRetries,customMessage:`${this.getActivityName(d)}. Error details: '${e}'. Retrying the request in ${h} milliseconds`})}),!1)}setTimeout((()=>this.tryRequest(e,t,n,a+1,c,d,l)),h)}else this.loggingService.errorCallback((()=>i()?`ExponentialBackoffRetry has exceeded maximum retries ${this.maxRetries}`:"Request has failed."),d,{error:s,currentRetry:a,requestInfo:c}),n(s)}}))}timeoutServiceRequest(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return new Promise(((n,r)=>(0,i.mG)(this,void 0,void 0,(function*(){const i=setTimeout((()=>r(new Error(`Service Request Timed out after ${e} milliseconds!`))),e);try{const e=yield t;n(e),clearTimeout(i)}catch(e){r(e),clearTimeout(i)}}))))}))}getActivityName(e){return`Activity name: '${e&&e.Message||"None"}'`}}c.defaultBaseRetryDelayInMs=100,c.defaultFactor=2,c.defaultMaxOffsetInMs=25,c.defaultMaxRetries=5,c.defaultMinOffsetInMs=1,c.maxAllowedRetries=10,c.maxAllowedRetryDelayInMs=2e3;var d=n(17318),l=n(82037),u=n(13010),g=n(1970),p=n(42147),h=n(84147),f=n(5696),m=n(33954);let v,b;function y(e,t={},n,i=!1){return(0,l.fK)()?(0,l.rg)(e,t,n,i):(0,d.Sm)(e,n,t)}function C(e,t,n,r){return(0,i.mG)(this,void 0,void 0,(function*(){const i=S().activityLoggingService.createActivity(t);return r=r||(0,l.tW)(),yield f.$.serviceRequestOnComplete((()=>function(){if(b)return b;return b=new c(S().loggingService,3),b}().executeRequest(e,null,i,n,r)),(()=>S().activityLoggingService.endActivity(i)))}))}function S(){if(v)return v;const e=u.u.getInstance("ExperienceActivityLogger");return(0,s.N)()&&m.k.isDebug()&&e.addAppender(new g.N(h.i.Activity)),v=new p.N(m.k.getLoggingService(),e),v}},63535:function(e,t,n){n.d(t,{PH:function(){return u},Ph:function(){return c},fU:function(){return g},qQ:function(){return d}});var i=n(16517),r=n(54804),a=n(33954);let o,s;const c=new URL("","https://api.msn.com/");function d(){const e=(0,i.Yq)();var t;return o||(t=e.ServiceUrlBase,o=new URL("",t),p(o)),o}function l(){const e=(0,i.Yq)();var t;return s||(t=e.FeedServiceUrlBase,s=new URL("",t),p(s)),s}function u(e,t=d()){return new URL(e+(null==t?void 0:t.search),t)}function g(e,t=l()){return new URL(e+(null==t?void 0:t.search),t)}function p(e){let t=!1;"dev"!==e.searchParams.get("env.service")&&(0,r.nP)().UserIsSignedIn&&(t=!0),a.k.log("u-si: "+(0,i.Yq)().UserId),a.k.log("a-si: "+t),a.k.log("ss-si: "+(0,r.nP)().UserIsSignedIn)}},73:function(e,t,n){n.d(t,{U4:function(){return s},Y5:function(){return a},Z6:function(){return r},dd:function(){return o},v3:function(){return i}});const i="epdu",r="fpr",a="TTPR",o="TTVR",s="TTPV"},83448:function(e,t,n){n.d(t,{Bj:function(){return u},TR:function(){return g},lr:function(){return d},wY:function(){return l}});var i=n(54804),r=n(59294);let a=!1;const o=new r.o,s=(new r.o,new r.o,new r.o),c=new r.o;function d(){return i.Al.IsPrerender?o.getResultAsync():Promise.resolve()}function l(){s.set()}function u(){c.set()}function g(){return i.Al.IsPrerender&&!a}},30113:function(e,t,n){var i;n.d(t,{m:function(){return i}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(i||(i={}))},11708:function(e,t,n){var i;n.d(t,{f:function(){return i}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.SavingsCard="savingsCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.VideoShoppingCard="videoshoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.PrismCarouselCard="prismCarouselCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RewardsDailySetCard="rewardsDailySetCardEnabled",e.RecommendedSearchesCard="recommendedSearchCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.TrendingSearchCard="trendingSearchCardEnabled",e.RealEstateCard="realEstateCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(i||(i={}))},83152:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(i||(i={}))},791:function(e,t,n){n.d(t,{N:function(){return S},O:function(){return C}});var i=n(33940),r=n(33954),a=n(26415),o=n(68364),s=n(33799),c=n(16517),d=n(54804),l=n(94788),u=n(5696),g=n(63535),p=n(87298),h=n(83152),f=n(11708),m=n(30113),v=n(65135),b=n(33379),y=n(46596);class C{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield u.$.getOneServiceHeaders(),credentials:"include"},n=(0,g.PH)(this.locationsServiceEndPoint);let r;[...u.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{r=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return r}return r}))}addToFavoriteLocation(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const n="Location",r="Follow",a={method:"POST",body:JSON.stringify({actionType:r,targetType:n,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield u.$.getOneServiceHeaders(),credentials:"include"},o=(0,g.PH)(this.pdpServiceEndpoint);let d;((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{d=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,n={},r){return(0,i.mG)(this,void 0,void 0,(function*(){const a=h.L.Location,o="Follow",d=yield this.getRequestInit({method:"POST"},n);d.body=JSON.stringify({actionType:o,targetType:a,definitionName:t,degree:"DefaultLocation",metaData:e});const l=(0,g.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth(null!=r?r:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)})),yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(l.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(a),!0}))}updateTrafficMyRoutes(e,t,n,a,o,s){return(0,i.mG)(this,void 0,void 0,(function*(){const c=n.replace(/[^a-zA-Z0-9\-.,_]/g,""),d=h.L.Traffic,l="Follow",g={method:"POST",body:JSON.stringify({actionType:l,targetType:d,targetId:c,degree:e,definitionName:t,metadata:a,createdDateTime:s}),headers:yield u.$.getOneServiceHeaders(),credentials:"include"},f=yield this.getTrafficPdpUrl(null,null,o);try{yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,g);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${d}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(d)}catch(e){return r.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){const r={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(e,t,n);try{yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var n;return(0,i.mG)(this,void 0,void 0,(function*(){const r={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(n=yield e.json())||void 0===n?void 0:n.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){const i=(0,g.PH)(this.pdpServiceEndpoint),r=(yield(0,y.XJ)())===s.Hy.SignedIn,a=(0,c.Yq)().UserId,o=r?u.$.getOneServiceParamsWithAuth(a,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(a,this.ocid,!this.ocidOverride);if(e||t){const n=`targetType eq '${h.L.Traffic}'`,r=e?`degree eq '${e}'`:"",a=t?`definitionName eq '${t}'`:"";i.searchParams.set("$filter",`actionType eq 'Follow' and (${n})${r?` and (${r})`:""}${a?` and (${a})`:""}`)}return[...o,...n||[]].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)})),i}))}addToWatchList(e,t=0,n={},r={}){var a;return(0,i.mG)(this,void 0,void 0,(function*(){const o=h.L.Finance,l="Follow",f={method:"POST",body:JSON.stringify({actionType:l,targetType:o,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},r)}),headers:yield this.getOneserviceHeaders(n),credentials:"include"},m=(0,g.PH)(this.pdpServiceEndpoint),v="zh-cn"!==(0,c.Yq)().CurrentMarket,b=(yield(0,y.XJ)())===s.Hy.SignedIn,C=(null===(a=(0,d.nP)().CurrentFlights)||void 0===a?void 0:a.split(",").filter((e=>e.includes("1s"))).join(","))||"";let S;(b&&v?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,C,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,C,!0)).forEach((e=>{e.value&&m.searchParams.set(e.key,e.value)}));try{S=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,f);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(o)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},n={}){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const a=h.L.Finance,o="Follow",l={method:"POST",body:JSON.stringify(e.map((e=>({actionType:o,targetType:a,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},n)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},f=(0,g.PH)(this.pdpServiceEndpoint),m="zh-cn"!==(0,c.Yq)().CurrentMarket,v=(yield(0,y.XJ)())===s.Hy.SignedIn,b=(null===(r=(0,d.nP)().CurrentFlights)||void 0===r?void 0:r.split(",").filter((e=>e.includes("1s"))).join(","))||"";let C;(v&&m?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,b,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,b,!0)).forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)}));try{C=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,l);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(a)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}sortWatchList(e,t={}){var n,r;return(0,i.mG)(this,void 0,void 0,(function*(){const a=h.L.Finance,o="Follow",l=(null===(n=(0,d.nP)().CurrentFlights)||void 0===n?void 0:n.split(",").filter((e=>e.includes("1s"))).join(","))||"",f=[{key:"fdhead",value:l}],m=yield S.readPdpWithTargetType(h.L.Finance,!0,200,t,!1,f),v=m&&(null===(r=m.value)||void 0===r?void 0:r.filter((e=>e.actionType===o&&e.targetId)));if(!v||v.length{let n=e.findIndex((e=>e===t.targetId));n<0&&(n=C,C++),b[t.targetId]=JSON.stringify({actionType:o,targetId:t.targetId,targetType:a,rank:n,metadata:t.metadata})}));const w={method:"PUT",body:JSON.stringify(b),headers:yield this.getOneserviceHeaders(t),credentials:"include"},x=(0,g.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0)).forEach((e=>{e.value&&x.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(x.href,w);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,n,a={},o){return(0,i.mG)(this,void 0,void 0,(function*(){const t=h.L.Weather,i={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:n}}}}),headers:yield this.getOneserviceHeaders(a),credentials:"include"},d=(0,g.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth(null!=o?o:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(null!=o?o:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(d.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return r.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,n={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let i="";i=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const a=yield this.getRequestInit({method:"POST"},n);a.body=i;const o=(0,g.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth(null!=r?r:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));const d=yield this.fetchImpl(o.href,a);if(d.status>=400){const e=`OneService returned error response. Status: ${d.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){var t;return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const n={financeInterests:e},i=JSON.stringify(n),r=yield this.getRequestInit({method:"POST"});r.body=i;const a=(0,g.PH)(this.userUpdateEndpoint),o="zh-cn"!==(0,c.Yq)().CurrentMarket,l=(yield(0,y.XJ)())===s.Hy.SignedIn,p=(null===(t=(0,d.nP)().CurrentFlights)||void 0===t?void 0:t.split(",").filter((e=>e.includes("1s"))).join(","))||"";(l&&o?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,p,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,p,!0)).forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));const h=yield this.fetchImpl(a.href,r);if(h.status>=400){const e=`OneService returned error response. Status: ${h.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const i=[];let a;for(a in e)null!=e[a]&&i.push('"'+a+'": '+JSON.stringify(e[a]));const o='{"userSettings":{'+i.join(", ")+"}}",d=yield this.getRequestInit({method:"POST"},t);d.body=o;const l=(0,g.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth(null!=n?n:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(l.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather setting call`;throw new Error(t)}}catch(e){return r.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={},n){return(0,i.mG)(this,void 0,void 0,(function*(){const a=yield this.getRequestInit({method:"GET"},t),o=(0,g.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth(n||(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth(n||(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{const e=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,a);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(r.k.logError(t.message),e)throw Error(t.message);return null}}))}updatePdpLayoutPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:e}})},n=(0,g.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(n.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update layout preference setting call`;throw new Error(t)}}catch(e){return r.k.logError(e.message),!1}return!0}))}updateSegmentCardsEnableStatus(e,t=null){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const n=[];if(t){let e;for(e in t)null!=t[e]&&n.push('"'+e+'": '+JSON.stringify(t[e]))}const i=e.map((e=>e.cardType!=f.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),r=n.length>0?'{"segmentCardSettings":"{'+i+'}","userSettings":{'+n.join(", ")+"}}":'{"segmentCardSettings":"{'+i+'}"}';return this.updateUserPreference(r)}))}updateProductivityCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const n={communitySettings:t};return this.updateUserPreference(JSON.stringify(n))}))}updateWidgetSettings(e,t={},n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const i=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:h.L.Widget,metadata:{prongsv2:{region:e.region,size:m.m[e.size],position:e.position,widgetDefinitionId:e.widgetDefinitionId}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:n})}))}muteWidget(e,t={},n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const i=e.map((e=>({actionType:"Mute",targetId:e,targetType:h.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:n})}))}disableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const n={actionType:"Disabled",definitionName:e,targetType:h.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(n),appError:t})}))}enableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(h.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,i.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:n,endpoint:r,method:a,payload:o,appError:d}=e;if(!r||!a)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),d),!1;const l=(0,g.PH)(r);let h;((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)})),n&&n.forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)}));try{JSON.parse(o),h=o}catch(e){h=JSON.stringify(o)}const f={method:a,body:h,headers:yield this.getOneserviceHeaders(t),credentials:"include"},m="GET"==a;try{return yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(l.href,f);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${o}`;throw new Error(t)}return!m||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,d),!1}}))}getUserActions(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],n=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return n&&n.value}))}setUserAction(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:n?this.pdpServiceEndpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const n=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:n,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const n=(0,g.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const i=yield this.fetchImpl(n.href,t);if(i.status>=400){const t=`OneService returned error response while updating user preference. Status: ${i.status}, payload: ${e}`;throw new Error(t)}}catch(e){return!1}return!0}))}setPdpTargetTypesForBulkLoad(e){e&&e.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=e)}readPdpWithTargetType(e,t=!1,n,r={},o=!0,s=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(o){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,n,r,s)));const i=this.bulkGraphActionResultCache.get(e);if(i)return{value:i}}else v.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const i=(yield this.fetchPdpWithTargetTypes([e],t,n,r,s)).get(e);if(i)return{value:i}}))}deleteFromPdp(e,t,n,r={},a,o="Follow",d,l=[]){return(0,i.mG)(this,void 0,void 0,(function*(){const h={method:"DELETE",headers:yield this.getOneserviceHeaders(r),credentials:"include"},f=(0,g.PH)(this.pdpServiceEndpoint),m=(yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride),b=`targetType eq '${e}'`,C=n.map((e=>`${t} eq '${e}'`)).join(" or ");let S=`actionType eq '${o}' and (${C}) and (${b})`;a&&(S+=` and (degree eq '${a}')`),f.searchParams.set("$filter",S),[...m,...l].forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(f.href,h);if(t.status>=400){const n=`OneService returned error response. Status: ${t.status} for actionType: ${o}, targetType: ${e}`;throw new Error(n)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return d&&v.M0.sendAppErrorEvent(Object.assign(Object.assign({},d),{pb:Object.assign(Object.assign({},d.pb),{actionType:o,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,n,r={},a=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const o=e.map((e=>`targetType eq '${e}'`)).join(" or "),d=[{key:"$top",value:`${n=n||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${o})`}],l=yield this.getRequestInit({method:"GET"},r);!0===t&&(l.cache="no-store");const h=(0,g.PH)(this.pdpServiceEndpoint);[...d,...(yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride),...a].forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));const f=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(h.href,l);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!f.ok)throw Error(`code=${f.status}, ${f.statusText}`);const m=new Map,v=yield f.json();if(!v)return m;if(v.value)for(const e of v.value){let t=m.get(e.targetType);t||m.set(e.targetType,t=[]),t.push(e)}for(const t of e)m.get(t)||m.set(t,[]);return m}))}updateMarketPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},n=(0,g.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(n.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return r.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,i.mG)(this,void 0,void 0,(function*(){let t=null;if(l.yb){const n=this.maptoWebWorkerId(e);if(n&&n.trim()){const n=yield(0,l.ot)({id:this.maptoWebWorkerId(e)});n.fetched&&(t=n.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case h.L.Location:return"weatherpdp";case h.L.League:return"sportsleaguepdp";case h.L.Player:return"sportsplayerpdp";case h.L.Team:return"sportsteampdp";case h.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const n=yield u.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},n),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield u.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){var e;return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"GET"}),n=(0,g.PH)(this.userUpdateEndpoint),l=(yield(0,y.XJ)())===s.Hy.SignedIn,h=(null===(e=(0,d.nP)().CurrentFlights)||void 0===e?void 0:e.split(",").filter((e=>e.includes("1s"))).join(","))||"";[...l?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,h,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,h,!0)].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const e=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,t);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;(0,o.OO)(null,a.G9t,"Error get followed list")}return e}))),"getFollowedLists");return e.ok||(0,o.OO)(null,a.G9t,"Error get followed list"),yield e.json()}catch(e){return r.k.logError(e.message),null}}))}addToFollowedLists(e){var t;return(0,i.mG)(this,void 0,void 0,(function*(){const n=h.L.Finance,r={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield u.$.getOneServiceHeaders(),credentials:"include"},a=(0,g.PH)(this.userUpdateEndpoint),o=(yield(0,y.XJ)())===s.Hy.SignedIn,l=(null===(t=(0,d.nP)().CurrentFlights)||void 0===t?void 0:t.split(",").filter((e=>e.includes("1s"))).join(","))||"";let f;(o?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0)).forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));try{f=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${n}`;throw new Error(t)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){var t;return(0,i.mG)(this,void 0,void 0,(function*(){const n=h.L.Finance,r={method:"DELETE",body:null,headers:yield u.$.getOneServiceHeaders(),credentials:"include"},a=(0,g.PH)(this.userUpdateEndpoint),o=(yield(0,y.XJ)())===s.Hy.SignedIn,l=(null===(t=(0,d.nP)().CurrentFlights)||void 0===t?void 0:t.split(",").filter((e=>e.includes("1s"))).join(","))||"";let f;[...o?u.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0):u.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride,l,!0),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));try{f=yield(0,p.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: UnFollowList, targetType: ${n}`;throw new Error(t)}return e.json()}))),"deleteFromFollowedLists")}catch(e){return!1}return!0}))}logError(e,t){t?v.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message})})):r.k.logError(e.message)}}const S=new class extends C{constructor(){super((0,b.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===c.jG.AppType||"newsAndInterests"===c.jG.AppType||"winWidgets"===c.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===c.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===c.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===c.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===c.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}},28781:function(e,t,n){n.d(t,{X:function(){return r}});var i=n(55067);class r{}r.pageVisibilityChange=new i.C("PageVisibilityChange"),r.timeForPageReveal=new i.C("TimeForPageReveal"),r.forcePageReload=new i.C("ForcePageReload"),r.updateCurrentPageRefreshState=new i.C("UpdateCurrentPageRefreshState"),r.updateDidRenderStartInBackgroundRenderFlag=new i.C("UpdateDidRenderStartInBackgroundRenderFlag")},56698:function(e,t,n){n.d(t,{Eu:function(){return g},bY:function(){return u},fv:function(){return p}});var i=n(53076),r=n(6719),a=n(93450),o=n(28781),s=n(94546),c=n(26415),d=n(65135),l=n(54804);function u(e){const t=a._.getInstance().rootReducer.connector(i.z.Preload);t&&o.X.forcePageReload.getActionSender(t).send(e||s.T.SettingsChange)}function g(e){const t=a._.getInstance().rootReducer.connector(i.z.Preload);t&&o.X.timeForPageReveal.getActionSender(t).send(e)}function p(e){if(!l.Al.IsPreload)return;if("windowsShell"===l.Al.ClientSettings.apptype)return e.Win10PerfDCREnabled=1,e[r.Qf]=e[r.dd],e[r.dd]=5,void(e[r.C7]=1);const t=function(){const e=a._.getInstance().rootReducer.connector(i.z.Preload);if(!e)return!1;return e.getCurrentState().didRenderStartInBackground}();t&&("edgeChromium"===l.Al.ClientSettings.apptype?(e[r.C7]=1,e[r.eO]=1):e[r.eO]=1);const n=e[r.Lh],o=e[r.dd],s=e[r.pM],u=e[r.pc];let g=!1;if((isNaN(o)||null===o)&&(d.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.OHc.TtvrMissing),{message:"TTVR missing during preload."})),g=!0),(isNaN(n)||null===n)&&(d.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.OHc.TfprMissing),{message:"TFPR missing during preload."})),g=!0),g)return;const p=e[r.Lh]=e[r.dd]=Math.min(n,o);t&&(e[r.Qf]=o),isNaN(s)||null===s?d.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.OHc.TtvrSearchBoxMissing),{message:"TTVR.SearchBox missing during preload."})):e[r.pM]=Math.min(p,s),isNaN(u)||null===u?d.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.OHc.TtfSearchBoxMissing),{message:"TTF.SearchBox missing during preload."})):e[r.pc]=Math.min(p,u)}},6719:function(e,t,n){n.d(t,{C7:function(){return l},H$:function(){return i},Lh:function(){return s},Qf:function(){return c},dd:function(){return a},eO:function(){return d},jh:function(){return u},pM:function(){return o},pc:function(){return r}});const i="TTPR2",r="TTF.SearchBox",a="TTVR",o="TTVR.SearchBox",s="TFPR",c="TTVR.BackgroundExecution",d="backgroundpreload",l="prerender",u="TTAF"},94546:function(e,t,n){var i;n.d(t,{T:function(){return i}}),function(e){e[e.StalePage=1]="StalePage",e[e.SettingsChange=2]="SettingsChange",e[e.MuidChange=3]="MuidChange",e[e.GizmoSettingChange=4]="GizmoSettingChange",e[e.TopSites=5]="TopSites",e[e.PivotSwitch=6]="PivotSwitch",e[e.SignInStateChange=7]="SignInStateChange",e[e.MutePublisher=8]="MutePublisher",e[e.UnMutePublisher=9]="UnMutePublisher",e[e.Dislike=10]="Dislike",e[e.Like=11]="Like",e[e.Save=12]="Save",e[e.Hide=13]="Hide",e[e.KidsMode=14]="KidsMode",e[e.MarketChange=15]="MarketChange",e[e.InterestsSdCardSettingChange=16]="InterestsSdCardSettingChange",e[e.InterestsChange=17]="InterestsChange",e[e.WeatherChange=18]="WeatherChange",e[e.MoneyCardChange=19]="MoneyCardChange",e[e.Disabled=20]="Disabled"}(i||(i={}))},70785:function(e,t,n){n.d(t,{o:function(){return c}});var i=n(53076),r=n(93450),a=n(28781),o=n(54804);const s={didPreload:!1,timeTakenForRevealInMs:0,pageRevealed:!0};function c(){const e=r._.getInstance().rootReducer.connector(i.z.Preload);if(!e||!o.Al.IsPreload)return Promise.resolve(s);const t=e.getCurrentState();if(t&&t.pageRevealedData){const e=t.pageRevealedData;return Promise.resolve(e)}return new Promise((e=>{a.X.pageVisibilityChange.registerObserver((t=>{const n=t.params[0];e(n)}))}))}},44772:function(e,t,n){n.d(t,{PL:function(){return i},ne:function(){return a}});var i,r=n(38156);function a(e){switch(e){case"ArticlePreview":return r.uH.Article;case"SlideshowPreview":return r.uH.Gallery;case"VideoPreview":return r.uH.Video;case"WebContentPreview":return r.uH.WebContent;case"WebContentExternal":return r.uH.ExternalLink;default:return null}}!function(e){e.VideoShoppingCard="VideoShoppingSDCard",e.SuperListCard="super-list-card",e.RealEstateCard="real-estate-card",e.PrismCarouselCard="PrismFeedCarousel",e.TrendingSearchCard="TrendingSearchCard",e.CommuteCard="CommuteMetadata",e.DigestCard="digest-card",e.Article="article",e.Slideshow="slideshow",e.Video="video",e.Spotlight="content360",e.Infopane="infopane",e.TabbedInfopane="tabbedInfopane",e.HalfPane="HalfPane",e.HeadToHead="HeadToHead",e.Mosaic="Mosaic",e.Triptych="Triptych",e.TabbedFeedCard="GroupedXfeedUpsell",e.TabbedInfopaneTab="tabbedInfopaneTab",e.WebContent="webcontent",e.ExternalLink="link",e.ChannelCarousel="followCarousel",e.InterestManagementCard="InterestManager",e.DenseList="DenseList",e.BackFillContent="BackfillContent",e.MyBriefRiverCard="toppicks",e.NativeAd="nativead",e.CmsAd="cmsad",e.AmplifyAd="amplifyad",e.BoostAd="BoostAd",e.EventSDCardAmplifyAds="EventSDCardAmplifyAds",e.ShoppingCard="ShoppingCard",e.EdgeShoppingCard="EdgeShoppingCard",e.ShoppingCarousel="ShoppingCarousel",e.ShoppingRiver="ShoppingRiver",e.EventSDCardShopping="EventSDCardShopping",e.ComicsCarousel="ComicsCarousel",e.EditorsPickCarousel="EditorsPickCarousel",e.SelectCarousel="SelectCarousel",e.DailyFixGamesCarousel="DailyFixGamesCarousel",e.NewsSegmentCarousel="NewsSegmentCarousel",e.SubscriptionCarousel="SubscriptionCarousel",e.GroceryCouponSdCard="GroceryCouponSdCard",e.BeaconProviderUpsell="BeaconProviderUpsell",e.MoneyTopicStripe="MoneyTopicStripe",e.LinkedInCard="linkedInNewsCard",e.SectionHeader="GreetingsUpsell",e.TopStories="topStories",e.NewsGroups="newsGroups",e.NewsAnswerModule="NewsAnswerModule",e.WorkHeadlines="workNews",e.Trending="trendingnow",e.TrendingTopics="TrendingTopicsUpsellAnaheim",e.LocalNews="XfeedUpsell",e.LocalNewsFeed="LocalNewsFeed",e.SageGroupedFeed="SageGroupedFeed",e.TrendingInTenMinutes="trendingInTenMinutes",e.Horoscope="Horoscope",e.Elections="EventSDCardElection",e.RecommendedSearchCarousel="RecommendedSearchCarousel",e.RecommendedSearchesCard="RecommendedSearch",e.OnThisDay="OnThisDay",e.Lottery="Lottery",e.PartnerUpsell="PartnerUpsell",e.Qna="qnacard",e.quizcard="quizcard",e.Recipes="recipecard",e.Inspiration="PrismFeedCard",e.Rewards="rewardscard",e.TravelDestinationCard="TravelDestinationCard",e.TravelDestinationCarouselCard="TravelDestinationCarouselCard",e.TravelInspirationCard="TravelInspirationCard",e.BingHealthCovid19StatsCard="Covid19Stats",e.BingHealthFitnessCard="healthcard",e.HealthTipCard="healthtipcard",e.PollsCard="pollscard",e.PlaceholderCard="placeholder",e.CashbackAds="CashbackAds",e.BingVideo="BingVideo",e.BingVideoCarousel="BingVideoCarousel",e.CasualGamesCarousel="CasualGamesCarousel",e.EsportsCasualGames="esportsCasualGames",e.EsportsHighlight="esportsHighlight",e.EsportsLiveStream="esportsLiveStream",e.EsportsMatch="esportsMatch",e.EsportsTournament="esportsTournament",e.EventSDCardWorldCup="EventSDCardWorldCup",e.EventSDCardWorldCup2="EventSDCardWorldCup2",e.ShoppingFeedCard="ShoppingFeedCard",e.WeatherSummary="WeatherSummary",e.WeatherSummary_spotlight="WeatherSummary_spotlight",e.StockQuote="StockQuote",e.StockQuote_spotlight="StockQuote_spotlight",e.MoneyInfo="MoneyInfo",e.MoneyPreWL="MoneyPreWL",e.MoneyCrypto="CryptoCard",e.MoneyMarketBrief="MarketBrief",e.MoneyMoreForYouCard="MoneyMoreForYouCard",e.SportsMatch="SportsMatch",e.SportsOlympics="SportsOlympics",e.TrafficDelays="TrafficDelays",e.ShoppingProngCardResponse="ShoppingProngCardResponse",e.ShoppingMerchantCategoryDeals="ShoppingMerchantCategoryDeals",e.ShoppingVideoCarousel="ShoppingVideoCarousel",e.Group="group",e.Upsell="FreUpsell",e.Dense="densetab",e.LocalGuide="localdaycard",e.Marketplace="MarketPlace",e.MarketplaceEvent="EventSDCardMarketplace",e.GamingClip="GamingClip",e.GamingClipsCarousel="GamingClipsCarousel",e.GamingHighlightClipsCarousel="GamingHighlightClipsCarousel",e.GamingCompete="GamingCompete",e.GamingHighlight="GamingHighlight",e.GamingHighlightsCarousel="GamingHighlightsCarousel",e.GamingLiveStream="GamingLiveStream",e.GamingLiveStreamCarousel="GamingLiveStreamCarousel",e.GamingMatch="GamingMatch",e.GamingPersonalize="GamingPersonalize",e.GamingRecentlyPlayed="GamingRecentlyPlayed",e.GamingRecommendedGames="GamingRecommendedGames",e.GamingReddit="GamingReddit",e.GamingRewards="GamingRewardsCard",e.GamingTournament="GamingTournament",e.GamingUpcomingGames="GamingUpcomingGames",e.GamingVideoCarousel="GamingVideoCarousel",e.GamingVod="GamingVod",e.GamingVideo="GamingVideo",e.AiCharacterCard="AicharacterCard",e.MicrosoftFeedCard="MicrosoftFeedCard",e.IndustryNewsCard="IndustryNewsCard",e.RecommendedCardFeed="RecommendedCardFeed",e.RecommendedInterests="RecommendedInterests",e.WindowsShellRecommendedInterests="WindowsShellRecommendedInterests",e.CompanyNewsCard="CompanyNewsCard",e.AutosEntityList="AutosEntityList",e.AutosCarousel="AutosCarousel",e.ContainerizedHalfu="containerizedHalfu",e.TopicFeed="TopicFeed",e.TopicFeedWeekends="eventcontentcardweekend",e.TopicFeedMomentInTime1="eventcontentcardmit1",e.TopicFeedTrendingNow="trending now",e.TopicFeedTopStories="topstories",e.TopicFeedShopping="eventcontentcardshopping",e.TopicFeedWeather="eventdynamiccontentcardweather",e.Calendar="Calendar",e.Entertainment="Entertainment",e.Family="Family",e.M365="M365",e.Photos="Photos",e.ThirdPartyWidget="3pwidget",e.Tips="Tips",e.ToDo="ToDo",e.XboxGamePass="xboxgamepass",e.GroupedContent="GroupedContentFeed",e.UserInterestTopic="UserInterestTopic",e.SuggestedInterest="SuggestedInterest",e.NewsFlipper="NewsFlipper",e.ColdStartArticleFreCard="ArticleFre",e.WindowsShellTrendingTopics="TrendingTopicsUpsell",e.WindowsShellNotificationBanner="genericbadge",e.RewardsDailySet="RewardsDailySet",e.BoostAdsBanner="BoostAdsBanner",e.BoostAdsCoachmark="BoostAdsCoachmark",e.GoBig="goBig"}(i||(i={}));i.NativeAd,i.CmsAd,i.AmplifyAd,i.EventSDCardAmplifyAds,i.BoostAd,i.BoostAdsBanner,i.BoostAdsCoachmark},42420:function(e,t,n){n.d(t,{R:function(){return o},U:function(){return a}});var i=n(33940);let r=!1;const a={purgeCacheAsync:function(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(this.isServiceWorkerActive()){const t=(yield caches.keys()).filter((t=>t.includes(e)));yield Promise.all(t.map((e=>caches.delete(e))))}}))},purgeEntryInCache:function(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){if(this.isServiceWorkerActive()){const i=yield caches.open(e),r=(yield i.keys()).filter((e=>e.url.startsWith(t)&&e.method===n));yield Promise.all(r.map((e=>i.delete(e))))}}))},isServiceWorkerActive:function(){const{navigator:e}=window,t=e&&e.serviceWorker&&e.serviceWorker.controller;return t&&"activated"===t.state},getIsServiceWorkerEnabled:function(){return r},setIsServiceWorkerEnabled:function(e){r=e}};var o;!function(e){e.base="base",e.followedTopics="followedTopics",e.publishersProfile="publishersProfile",e.river="river",e.subscribedPublishers="subscribedPublishers",e.financeGraphAction="financeGraphAction"}(o||(o={}))},61810:function(e,t,n){n.d(t,{b:function(){return i}});const i=(e=2)=>{let t="/";const n=window.location.pathname.split("/");if(n.length>e&&n[e]){t+=n[1];for(let i=2;i<=e;i++)t+="/"+n[i]}return t}},8218:function(e,t,n){n.d(t,{Z:function(){return b}});var i=n(33940),r=n(68364),a=n(26415),o=n(970),s=n(54804),c=n(12108),d=n(4734);function l(e,t,n=!1,i,l){e?"serviceWorker"in navigator?(e=function(e,t){const n=t.indexOf("?")>-1?"&":"?",i=n+function(e){const t=(0,o.L)().getAll("item"),n=t?t.find((e=>e&&0===e.indexOf("spalink:"))):void 0;let i=function(e){const t=(0,o.L)().get("bundles");let n;if(t&&(n=u("bundles",t),n))return n;if(n=u("bundles",e.bundlesOverride),n)return n;const i=s.Al.ClientSettings&&s.Al.ClientSettings.queryparams,r=new URLSearchParams(i);return u("bundles",r.get("bundles"))}(e);n&&(i=u("item",n));return i}(e)+function(e){const t=(0,o.L)().get("raceEnabled");return e.cacheAndNetworkRaceEnabled||t?u("raceEnabled","true"):""}(e)+((null===(r=null===s.Al||void 0===s.Al?void 0:s.Al.ClientSettings)||void 0===r?void 0:r.audienceMode)===c.F.Enterprise?u("enableOfficeRoutes","true"):"")+function(e){return isNaN(e.riverAgeMinutes)?"":u("riverAgeMinutes",e.riverAgeMinutes.toString())}(e)+function(e){const t=(0,o.L)().get("enableNetworkFirst");return e.enableNetworkFirst||t?u("enableNetworkFirst","true"):""}(e)+function(e){return isNaN(e.navAgeMinutes)?"":u("navAgeMinutes",e.navAgeMinutes.toString())}(e)+function(e){const t=(0,o.L)().get("enableNavPreload");return e.enableNavPreload||t?u("enableNavPreload","true"):""}(e);var r;i!==n&&(t=function(e,t){if(!e||!e.endsWith(t))return e;return e.slice(0,-1)}(t+=i,"&"));return t}(i,e),n?p(e,t,l):(0,d.F_)().then((()=>{p(e,t,l)}))):(0,r.H)(a.a6r,"Service Worker is not in navigator."):(0,r.H)(a.a6r,"No scriptUrl provided")}function u(e,t){return t?e+"="+t+"&":""}function g(e="/"){return(0,i.mG)(this,void 0,void 0,(function*(){try{const t=yield navigator.serviceWorker.getRegistration(e);t&&(yield t.unregister())?console.log("Call to unregister ServiceWorker: succeeded"):console.error("Call to unregister ServiceWorker: failed")}catch(e){console.error("Failed to unregister ServiceWorker: "+e)}}))}function p(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){try{yield navigator.serviceWorker.register(e,{scope:t}),n&&n()}catch(e){(0,r.OO)(e,a.a6r,"ServiceWorker registration failed.")}}))}var h=n(69973),f=n(58155),m=n(12884),v=n(42420);function b(e,t,n,i,r){if(!t||"true"!==t.enabled)return;const a=s.Al.ClientSettings.deviceFormFactor;if("false"===t.mobileEnabled&&(a===h.p.Phone||a===h.p.Tablet))return;if(!function(e){const t=s.Al.ClientSettings.browser;if(!t&&"false"===e.mobileEnabled)return!1;const n=e.unsupportedBrowsers;if(!n||!n.length)return!0;if(n.findIndex((e=>e.toLowerCase()===t.browserType.toLowerCase()))>-1)return!1;return!0}(t))return;if(!function(){const e="storageTest";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){console.log(e)}return!1}())return;const o=t.isLowEndDevice&&t.disableOnLowEndDevices;if("true"===t.registrationEnabled&&!o){const a=function(){const e=(0,m.zp)(),t=f.c.getQueryParameterByName("swimmediateregistration",e);if(t)return"true"===t.toLocaleLowerCase();return!1}();i=i||a,v.U.setIsServiceWorkerEnabled(!0),l(e,n,i,t,r)}("true"===t.unregistrationEnabled||o)&&(!function(e="/",t=!1){if(!e||!("serviceWorker"in navigator))return null;t||"complete"===document.readyState?g(e):window.addEventListener("load",(()=>{g(e)}))}(n),v.U.setIsServiceWorkerEnabled(!1))}},47680:function(e,t,n){n.d(t,{j:function(){return r}});var i=n(55067);class r{}r.disableSmartList=new i.C("disableSmartList"),r.registerSmartList=new i.C("registerSmartList"),r.persistSmartList=new i.C("persistSmartList"),r.updateSmartListBadgeProps=new i.C("updateSmartListBadgeProps"),r.updateSmartListState=new i.C("updateSmartListState"),r.userSignInSignature=new i.C("userSignInSignature"),r.userSignOutSignature=new i.C("userSignOutSignature")},84336:function(e,t,n){n.d(t,{D:function(){return s}});var i=n(61275),r=n(63439),a=n(83227),o=n(47680);class s extends r.e{initSmartList(e,t){if(!e)return;const n=this.getSmartList(e);n&&n.initCallback&&n.currentState===i.X.notStarted&&(e===a.x.edgeShopping?t&&(n.initCallback(t),o.j.updateSmartListState.getActionSender(this).send(e,i.X.initialized)):(n.initCallback(),o.j.updateSmartListState.getActionSender(this).send(e,i.X.initialized)))}moveFocusToSmartList(e,t){const n=this.getSmartList(e);return!!(n&&n.focusCallback&&n.renderCallback&&n.currentState===i.X.rendered)&&(n.focusCallback(t),!0)}renderSmartList(e,t){if(!e||!t)return;const n=this.getSmartList(e);n&&n.renderCallback&&(n.renderCallback(t),o.j.updateSmartListState.getActionSender(this).send(e,i.X.rendered))}unmountSmartList(e,t){if(!e||!t)return;const n=this.getSmartList(e);n&&n.unmountCallback&&n.currentState===i.X.rendered&&(n.unmountCallback(t),o.j.updateSmartListState.getActionSender(this).send(e,i.X.unmounted))}updateSignInStatus(e,t){const n=this.getSmartList(e);return!(!n||!n.updateSignInStatusCallback)&&(n.updateSignInStatusCallback(t),!0)}getSmartList(e){if(!e)return;const t=this.getCurrentState().smartLists;return t&&0!==t.size?t.get(e):void 0}}},99064:function(e,t,n){n.d(t,{V:function(){return o}});var i=n(30856),r=n(61275),a=n(47680);class o{reduce(e,t){if(!e)return{smartLists:new Map};if(!t)return e;let n=!1;const o=Object.assign({},e);return n=n||i.G.handleAction(t,a.j.disableSmartList,(e=>{if(e){const t=o.smartLists.get(e);t&&(t.currentState=r.X.notStarted)}})),n=n||i.G.handleAction(t,a.j.registerSmartList,(e=>{e&&(o.smartLists.has(e.experienceType)||o.smartLists.set(e.experienceType,{badgeProps:void 0,currentState:r.X.notStarted,focusCallback:e.focusShouldMove,initCallback:e.initShouldFire.bind(e),isUserSignedIn:!1,renderCallback:e.renderShouldFire,shouldPersist:void 0,unmountCallback:e.unmountShouldFire,updateSignInStatusCallback:e.updateSignInStatus}))})),n=n||i.G.handleAction(t,a.j.persistSmartList,(e=>{if(e){const t=o.smartLists.get(e);t&&(t.shouldPersist=!0)}})),n=n||i.G.handleAction(t,a.j.updateSmartListState,((e,t)=>{if(e){const n=o.smartLists.get(e);n&&(n.currentState=t)}})),n=n||i.G.handleAction(t,a.j.updateSmartListBadgeProps,((e,t)=>{if(e){const n=o.smartLists.get(e);n&&t&&(n.badgeProps=t)}})),n=n||i.G.handleAction(t,a.j.userSignInSignature,(e=>{if(e){const t=o.smartLists.get(e);t&&(t.isUserSignedIn=!0)}})),n=n||i.G.handleAction(t,a.j.userSignOutSignature,(e=>{if(e){const t=o.smartLists.get(e);t&&(t.badgeProps=null,t.isUserSignedIn=!1)}})),n?o:e}}},61275:function(e,t,n){var i;n.d(t,{X:function(){return i}}),function(e){e[e.notStarted=0]="notStarted",e[e.initialized=1]="initialized",e[e.rendered=2]="rendered",e[e.unmounted=3]="unmounted"}(i||(i={}))},75559:function(e,t,n){n.d(t,{NS:function(){return r},ob:function(){return s},qP:function(){return i},tM:function(){return a},tW:function(){return o}});const i="data-t";var r;!function(e){e.Auto="auto",e.AutoScroll="autoScroll",e.Load="load",e.OutOfFocus="outoffocus",e.Partial="partial",e.Resize="resize",e.Scroll="scroll",e.Swipe="swipe",e.Tap="tap",e.View="view"}(r||(r={}));const a="TelemetryPageViewNotificationEvent",o="AppErrorNotificationEvent",s="IDXId"},38156:function(e,t,n){n.d(t,{Aw:function(){return a},c9:function(){return i},hP:function(){return s},uH:function(){return r},wu:function(){return o}});const i={Undefined:0,Header:1,Footer:2,TopNavBar:3,NavBar:4,DropDown:5,Section:6,Carousel:7,Module:8,SearchBox:9,InputBox:10,ActionButton:11,Interaction:12,Headline:13,Entity:15,Topic:29,Provider:30,NewStories:46,AutoSuggest:47,Tile:49,TrendingNews:50,AllCoverage:51,Report:52,MsccCookieComplianceBanner:54,CookieWallCookieComplianceBanner:57,FRE:60,VideoPlayer:61,ContentCard:62,SubmitForm:63,TrafficCard:64,WeatherCard:65,TravelDestinationCard:66,FitnessWorkoutVideo:67,BingHealthFitnessCard:68,FamilyCard:69,FitnessCard:70,HealthQnACard:71,HealthTipCard:72,HealthFitnessCarousel:73,CovidCard:74,Audio:75,ShoppingAd:76,ContentGroup:77,AicreationCard:78},r={Undefined:0,StructuredData:1,AppStore:2,CmsPromotions:3,MicrosoftWebStore:4,XboxStore:5,OfficeStore:6,PartnerLinks:7,SponsoredContent:8,ExternalLink:10,SearchPromo:11,Feed:12,Article:13,Gallery:14,Video:15,Audio:16,Settings:17,DisplayAd:18,OfficeDocument:19,App:20,SearchResult:21,VideoAd:22,Map:23,Comment:24,Profile:25,Coachmark:26,TrendingSearch:27,AutoSuggestSearch:28,SearchHistory:29,TextSearch:30,TopSites:31,SearchLink:32,ImageSearch:33,VoiceSearch:34,Toast:35,Greeting:36,Image:37,Banner:38,Waffle:39,Notification:40,QnaTopic:41,QnaContent:42,Publisher:43,Topic:44,LayoutToggle:45,WebContent:46,FinanceTicker:47,CashbackOffer:48,AiCharacter:49,FoodItem:50,FitnessChallenge:51,Overlay:52,Inspiration:53,DailyDiscovery:54},a={Click:"click",Hover:"mouseenter",MouseLeave:"mouseleave",Submit:"submit",View:"view",RightClick:"rightclick",Wheel:"wheel",KeyPress:"keypress",HorizontalSwipe:"hswipe",MiddleClick:"middleclick",VerticalSwipe:"vswipe",Launch:"launch"},o={Undefined:0,Navigate:1,ContextMenu:2,Pin:3,Unpin:4,Rearrange:5,Remove:6,Add:7,Open:8,View:9,Follow:10,Unfollow:11,More:12,Close:13,Share:14,Like:15,Dislike:16,Unlike:17,Undislike:18,Mute:19,Unmute:20,Cancel:21,Launch:22,Install:23,Manage:24,Show:25,MuteCancel:26,Save:27,Hide:28,Unhide:29,Customize:30,Suspend:31,Clear:32,SignIn:33,SignOut:34,UndoSave:35,TurnOn:36,TurnOff:37,Forward:38,Response:39,Report:40,ZoomIn:41,ZoomOut:42,Comment:43,Sort:44,Love:45,Surprised:46,Thinking:47,Sad:48,Angry:49,TextSearch:50,ImageSearch:51,UndoRemove:52,Rename:53,SearchLink:54,VoiceSearch:55,Complete:56,Play:57,Pause:58,Seek:59,Volume:60,ClosedCaptions:61,Fullscreen:62,Restore:63,Replay:64,Copy:65,Reactlike:66,UnReactlike:67,UnLove:68,UnSurprised:69,UnThinking:70,UnSad:71,UnAngry:72,ReportAd:73,Refresh:74,Paginate:75,Click:76,Hover:77,SelectProduct:78,Signup:79,CompleteOrder:80,Model3DInteraction:81,PushNotificationReceive:82,PushNotificationShow:83,PushNotificationClick:84,PushNotificationHmsClick:85,Expand:86,Collapse:87,NoSearchQuerySubmit:88,Feedback:89},s={Empty:0,SearchBox:1,TopSites:2,Suggested:4,ContentFeed:8,WinFRE:16,BingImage:32,ContentBelowTheFold:64,CustomModeOption:128,GreetingEnabled:256,HeadingsOnly:512,StripeLayout:1024,Peek:2048}},65135:function(e,t,n){let i;n.d(t,{A_:function(){return r},M0:function(){return a},uZ:function(){return o}});const r=new Promise((e=>{i=e}));let a=null;function o(e){a=e,i()}},75816:function(e,t,n){var i;n.d(t,{G:function(){return i}}),function(e){e[e.All=0]="All",e[e.Otf=1]="Otf",e[e.OneDS=2]="OneDS",e[e.CTag=3]="CTag",e[e.Comscore=4]="Comscore",e[e.Debug=5]="Debug",e[e.SuperApp=6]="SuperApp"}(i||(i={}))},37457:function(e,t,n){n.d(t,{$:function(){return x}});var i=n(82357),r=n(93048),a=n(21011),o=n(75816),s=n(98429);s.kP&&(window.telemetryEventsClear=()=>{window.telemetryEvents=[]},window.telemetryEventsFlush=()=>{const e=Object.assign({},window.telemetryEvents);return window.telemetryEventsClear(),e});const c=function(e){s.kP&&(window.telemetryEvents=window.telemetryEvents||[],window.telemetryEvents.push(e))},d=[{type:o.G.OneDS,transporterConfig:{key:"f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028",endpoint:"https://events-sandbox.data.msn.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}},{type:o.G.Debug,mapper:new a.k,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new i.P,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new r.O,transporterConfig:{callback:c}}],l=[{type:o.G.OneDS,transporterConfig:{key:"f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028",endpoint:"https://events-sandbox.data.msn.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}},{type:o.G.Debug,mapper:new a.k,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new i.P,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new r.O,transporterConfig:{callback:c}}],u=[{type:o.G.OneDS,transporterConfig:{key:"f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028",endpoint:"https://events-sandbox.data.microsoftstart.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}},{type:o.G.Debug,mapper:new a.k,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new i.P,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new r.O,transporterConfig:{callback:c}}],g=[{type:o.G.OneDS,transporterConfig:{key:"f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028",endpoint:"https://events-sandbox.data.microsoftstart.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}},{type:o.G.Debug,mapper:new a.k,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new i.P,transporterConfig:{callback:c}},{type:o.G.Debug,mapper:new r.O,transporterConfig:{callback:c}}],p=[{type:o.G.OneDS,transporterConfig:{key:"0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279",endpoint:"https://browser.events.data.msn.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],h=[{type:o.G.OneDS,transporterConfig:{key:"0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279",endpoint:"https://browser.events.data.msn.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],f=[{type:o.G.OneDS,transporterConfig:{key:"c498711f02654edca8a715ca6e1cb4d4-dc31da17-845c-4cca-84e5-547d05dad708-6945",endpoint:"https://browser.events.data.msn.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],m=[{type:o.G.OneDS,transporterConfig:{key:"c498711f02654edca8a715ca6e1cb4d4-dc31da17-845c-4cca-84e5-547d05dad708-6945",endpoint:"https://browser.events.data.msn.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.msn.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],v=[{type:o.G.OneDS,transporterConfig:{key:"0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279",endpoint:"https://browser.events.data.microsoftstart.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],b=[{type:o.G.OneDS,transporterConfig:{key:"0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279",endpoint:"https://browser.events.data.microsoftstart.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],y=[{type:o.G.OneDS,transporterConfig:{key:"c498711f02654edca8a715ca6e1cb4d4-dc31da17-845c-4cca-84e5-547d05dad708-6945",endpoint:"https://browser.events.data.microsoftstart.com/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.com/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],C=[{type:o.G.OneDS,transporterConfig:{key:"c498711f02654edca8a715ca6e1cb4d4-dc31da17-845c-4cca-84e5-547d05dad708-6945",endpoint:"https://browser.events.data.microsoftstart.cn/OneCollector/1.0"}},{type:o.G.CTag,transporterConfig:{endpoint:"https://c.microsoftstart.cn/c.gif"}},{type:o.G.Comscore,transporterConfig:{endpoint:"https://sb.scorecardresearch.com/b"}}],S=[{type:o.G.SuperApp,transporterConfig:{enableConsoleLog:!0}}],w={};function x(e,t,n,i){const r=e&&e.includes("microsoftstart.com")?"MicrosoftStart":"";let a;return a="prod"===t?i?"enterprise":"prod":"int",w[`${a}${n?"CN":""}${r}`]}w.enterprise=f,w.enterpriseCN=m,w.enterpriseMicrosoftStart=y,w.enterpriseCNMicrosoftStart=C,w.int=d,w.intCN=l,w.intMicrosoftStart=u,w.intCNMicrosoftStart=g,w.prod=p,w.prodCN=h,w.prodMicrosoftStart=v,w.prodCNMicrosoftStart=b,w.superApp=S},82357:function(e,t,n){n.d(t,{P:function(){return r}});var i=n(98429);class r{createPageViewPayload(e){if(!e)return;const t=e&&e.page,n=t&&t.content,r=e&&e.user,a={rnd:(0,i.Xn)(),udc:!0};return t&&(a["pg.n"]=t.name,a["pg.t"]=t.type,a["pg.c"]=t.config,a["pg.p"]=t.product,a.rf=t.referral,a.tp=t.url,a.cvs=t.canvas,t.consentChanged&&(a.ctsa=t.consentChanged)),n&&(a.di=n.domainId,a["st.dpt"]=n.category,a["st.sdpt"]=n.subcategory,a.subcvs=n.vertical),e&&(a.lng=e.locale&&e.locale.mkt,e.request&&(a.rid=e.request.requestId,a.activityId=e.request.activityId),e.browser&&(a["d.imd"]=e.browser.isMobile,a.scr=e.browser.screenSize,a.anoncknm=e.browser.anoncknm)),r&&(a.issso=r.isSso,a.aadState=r.aadState),a}}},93048:function(e,t,n){n.d(t,{O:function(){return r}});var i=n(98429);class r{createPageViewPayload(e){if(!e)return;let t=e&&e.page&&e.page.url;try{const n=new URL(t),i=e&&e.page&&e.page.config;(8&i||2048&i)&&(n.searchParams.set("content","1"),t=n.href),e.locale&&e.locale.mkt&&(n.searchParams.set("mkt",e.locale.mkt),t=n.href)}catch(e){}return{rn:(0,i.Xn)(),c1:2,c2:3000001,cs_ucfr:1,c7:t,c8:e&&e.page&&e.page.content&&e.page.content.title,c9:e&&e.page&&e.page.referral}}}},21011:function(e,t,n){n.d(t,{k:function(){return l}});var i=n(75559),r=n(38156),a=n(65004),o=n(65969),s=n(98429),c=n(24410),d=n(13578);class l{createPageViewPayload(e){if(e){return this.createEvent(o.id.PageView,Object.assign({},e),a.zU.RealTime)}}createContentViewPayload(e,t,n){if(!t)return;const r=[];e.forEach((e=>{r.push(this.mapTelemetryObject(e))}));let c;(0,s.d5)()&&(c={content:{docHeight:(0,s.d5)()}});const l=Object.assign(Object.assign(Object.assign({},t),c),{compressedObject:r,contentViewType:n.contentViewType});if(n.contentViewType===i.NS.Scroll&&(l.isMeaningfulScroll=n.isMeaningfulScroll),!(0,d.Z)(r)){return this.createEvent(o.id.ContentView,l,a.zU.RealTime)}}createActionPayload(e,t,n,i){if((0,d.Z)(e)||!t)return;let s;n===r.Aw.RightClick?s="rightclick":t&&t.browser&&!0===t.browser.isMobile?s="tap":n===r.Aw.Click&&(s="click");const l=e.content&&e.content.type,u=e.type||(0,c.Y)(l,i);0!==u&&(e.type=u),delete e.action,delete e.behavior,delete e.overrideId,delete e.overrideDestinationUrl,delete e.overrideEmailIdScrubbing;return this.createEvent(o.id.UserAction,Object.assign(Object.assign({actionType:n,behavior:i,object:e},t),{gesture:s}),a.zU.RealTime)}createEventPayload(e,t,n){if(!n)return;return this.createEvent(o.id[e],Object.assign(Object.assign({},n),t),a.zU.RealTime)}createCustomEventPayload(e,t,n){if(!n&&"AppError"!==e||(0,d.Z)(t))return;return this.createEvent(o.id[e],Object.assign(Object.assign({},n),{extSchema:t}),a.zU.RealTime)}mapTelemetryObject(e){r.c9.ContentCard;let t;const n=e&&e.content&&e.content.type;(n||e.behavior)&&(t=(0,c.Y)(n,e.behavior));const i={n:e&&e.name,y:e&&e.type||t,l:e&&e.content&&e.content.id,h:e&&e.content&&e.content.headlineIdx,v:e&&e.content&&e.content.vertical,tp:e&&e.content&&e.content.topic,c:e&&e.content&&e.content.category,s:e&&e.content&&e.content.source,f:e&&e.feed&&e.feed.id,ct:e&&e.content&&e.content.type,i:e&&e.placement&&e.placement.id,p:e&&e.placement&&e.placement.parentId,o:e&&e.placement&&e.placement.ordinal,aud:e&&e.content&&e.content.audienceMode,isLocal:e&&e.content&&e.content.isLocal,subscriptionType:e&&e.content&&e.content.subscriptionType,providerType:e&&e.content&&e.content.providerType,zone:e&&e.zone};return e.ext&&(i.ext=e.ext),i}createEvent(e,t,n){return{name:e,data:t,baseType:o.id.Base,latency:n,sync:s.kP?2:0}}}},98146:function(e,t,n){n.d(t,{v:function(){return o}});var i=n(90351),r=n(25514);const a={n:"name",t:"type",a:"action",b:"behavior",customHandled:"customHandled",d:"overrideDestinationUrl",oe:"overrideEmailIdScrubbing",z:"zone","c.hi":"content.headlineIdx","c.auth":"content.author","c.i":"content.id","c.l":"content.isLocal","c.s":"content.source","c.p":"content.parentId","c.t":"content.type","c.tp":"content.topic","c.v":"content.vertical","c.c":"content.category","c.sc":"content.subcategory","c.pn":"content.partnerName","c.pi":"content.partnerId","c.b":"content.brand","c.bi":"content.brandId","c.st":"content.subscriptionType","c.pl.i":"content.placement.id","c.pl.p":"content.placement.parentId","c.pl.o":"content.placement.ordinal","c.pl.l":"content.placement.lineage","c.pl.lo":"content.placement.lineageOrdinal","c.aud":"content.audienceMode","c.pv":"content.providerType","f.i":"feed.id","f.n":"feed.name","f.t":"feed.type",ext:"ext","m.c":"metrics.isContentCI"};class o{static compress(e){const t={},n=Object.keys(a);for(let r=0;r",n=!1){if(e.parentDOM&&e.parentDOM!==d.root){let{lineage:i,lineageOrdinal:r}=this.getLineage(e.parentDOM,t,n);i+=t+e.contract.name;return{lineage:i,lineageOrdinal:(r?r+t:"")+e.ordinal}}if(e.parentDOM&&e.parentDOM===d.root&&n){const t={lineage:e.contract.name};return t.lineageOrdinal=""+e.ordinal,t}return{lineage:e.contract.name}}static getInheritedProperties(e){const t=r.M0&&r.M0.config&&r.M0.config.inheritByTraversingDOM&&r.M0.config.inheritPropertyList;if(t&&e)return r.M0.config.memoizeInheritedProperties?this.getInheritedPropertiesWithMemoize(e,t):this.getInheritedPropertiesWithoutMemoize(e,t)}static getInheritedPropertiesWithoutMemoize(e,t){const n={};for(;e&&e!==d.root;){for(const i of t){const t=e.contract[i];void 0!==t&&(void 0===n[i]?n[i]=t:this.isObject(n[i])&&(n[i]=Object.assign(Object.assign({},t),n[i])))}e=e.parentDOM}return n}static getInheritedPropertiesWithMemoize(e,t){if(e.memoizedProperties)return e.memoizedProperties;const n={};for(const i of t){n[i]=e.contract[i];let t=e.parentDOM;for(;t&&t!==d.root;){const e=t.memoizedProperties?t.memoizedProperties[i]:t.contract[i];if(void 0!==e&&(void 0===n[i]?n[i]=e:this.isObject(n[i])&&(n[i]=Object.assign(Object.assign({},e),n[i]))),t.memoizedProperties)break;t=t.parentDOM}}return e.memoizedProperties=n,n}static getRoot(){return d.root}static getTelemetryObject(e){const t=this.get(e);if(t&&t.contract)return new s.D(t.contract)}static parseContract(e){try{const t=e&&e.getAttribute&&e.getAttribute(i.qP);return this.parseAttribute(t)}catch(e){console.log("json parse error")}}static parseAttribute(e){try{const t=e&&JSON.parse(e);return this.parseMetadata(t)}catch(e){}}static parseMetadata(e){try{return e&&o.v.decompress(e)}catch(e){}}static set(e,t){t.element=e,this.elementMap.set(e,t)}static updateLayout(){if(!this.needUpdate)return;this.needUpdate=!1,this.root.ordinalCount=0;const e=(0,a.Ux)(document.documentElement);for(let t=0;t2&&"hasAttribute"in t[0]&&!t[0].hasAttribute(i.qP)&&"[object ShadowRoot]"===Object.prototype.toString.call(t[1])&&"hasAttribute"in t[2]&&t[2].hasAttribute(i.qP))return t[2];if(t.length>0)return t[0]}}validTarget(e){if(!e)return!1;const t=d.u.get(e);let n;return n=t?t.contract:d.u.parseContract(e),"BUTTON"===e.nodeName||e.hasAttribute("href")||e.getAttribute&&"button"===e.getAttribute("role")||n&&n.type===a.c9.DropDown||n&&n.type===a.c9.ActionButton||n&&n.behavior&&e.tagName.includes("-")||e.form}}class u{static start(){this.startTime=Date.now(),this.isPause=!1,this.started=!0}static pause(){this.started&&(this.isPause=!0,this.dwellTimeElapse+=Date.now()-this.startTime)}static getDwellTime(){if(this.isPause){return this.dwellTimeElapse}if(0!==this.startTime){return this.dwellTimeElapse+(Date.now()-this.startTime)}return 0}static setDwellTime(e,t){this.startTime=e,this.dwellTimeElapse=t}static reset(){this.dwellTimeElapse=0,this.startTime=0,this.isPause=!1,this.started=!1}}u.started=!1,u.startTime=0,u.dwellTimeElapse=0,u.isPause=!1;class g{constructor(){this.filterNodeList=["script"]}observe(e,t){e!==window&&(this.init(t),this.mutationObserver.observe(e,{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-t"]}))}unobserve(e){}init(e){if(!this.mutationObserver){this.mutationObserver=new MutationObserver(this.mutationCallback.bind(this)),this.processAddedSubtreeAndDispatchEvent(document.documentElement);const t=HTMLElement.prototype.attachShadow,n=this;if(t)try{HTMLElement.prototype.attachShadow=function(e){const i=t.call(this,e);return this.shadowRoot&&n.observe(this.shadowRoot),i}}catch(t){e.push({message:"attachShadow exception in LayoutEventManager.ts",error:t})}}}mutationCallback(e){setTimeout((()=>{this.processMutationRecord(e)}),10)}processMutationRecord(e){for(let t=0;t0?this.processMutatedNodes(Array.from(i)):"attributes"===n.type&&this.processMutatedNodes([n.target])}}processMutatedNodes(e){e&&e.forEach((e=>{(0,o.Zq)(e)?this.processAddedSubtreeAndDispatchEvent(e):e.nodeType!==Node.ELEMENT_NODE||this.filterNodeList.includes(e.tagName&&e.tagName.toLowerCase())||this.processAddedSubtreeAndDispatchEvent(e)}))}processAddedSubtreeAndDispatchEvent(e){(0,o.jT)(e)&&(0,o.t0)("telemetrynodeadded",e);const t=this.processSubtree(e);for(let e=0;e0?JSON.stringify(this.joinIdProps):void 0,t=Object.keys(this.customProps).length>0?JSON.stringify(this.customProps):void 0;this.customString=t;try{const e=window;void 0!==e&&e.navigator&&void 0!==typeof e.navigator.globalPrivacyControl&&(this.globalPrivacyControl=e.navigator.globalPrivacyControl)}catch(e){}const n={page:Object.assign(Object.assign({},this.contract.page),{url:(0,o.Mm)((0,o.XW)(this.contract.page.url,this.contract.page.ocid),this.qspToScrubbed),referral:(0,o.Mm)(this.contract.page.referral||o.kP&&document.referrer,this.qspToScrubbed),content:this.contract.page.content?Object.assign({},this.contract.page.content):void 0,dwellTime:u.getDwellTime(),viewType:this.contract.page.viewType||this.viewTypeCallback&&this.viewTypeCallback()}),browser:Object.assign(Object.assign({},this.contract.browser),{width:(0,o.wi)(),height:(0,o.P6)(),screenSize:o.kP?[screen.width,screen.height].join("x"):"0x0",clientId:(0,o.i2)(this.activityIdInternal),scrollOffset:"function"==typeof this.overrideScrollOffset&&this.overrideScrollOffset()||(0,o.qC)(),anoncknm:this.anonCookieName,cookieEnabled:o.kP&&navigator.cookieEnabled,globalPrivacyControl:this.globalPrivacyControl,hiddenOnce:this.browserHiddenOnce,muid:(0,o.FL)()||void 0,cookies:(0,o.tV)(this.cookiesToCollect)||void 0}),flight:Object.assign(Object.assign({},this.contract.flight),{tmpl:this.tmplString}),integration:Object.assign(Object.assign({},this.contract.integration),{joinIds:e}),request:{activityId:this.activityIdInternal,requestId:this.requestIdInternal,afdMuid:this.afdMuidInternal},timestamp:+Date.now(),eventIndex:this.eventIndexInternal,sdk:{name:"peregrine",ver:"1.0.13",schemaVer:"1.0.13"},user:this.contract.user,locale:this.contract.locale,feed:this.contract.feed,gallery:this.contract.gallery,custom:this.customString,build:this.buildNumber},i=(0,o.F$)();i&&(n.browser.isWin11=i);const r=(0,o.uV)();return r&&(n.browser.isXBox=r),n}static mergeContract(e,t){if(!e||!t)return e||t;const n=Object.keys(t),i=Object.assign({},e);for(let e=0;e{e[n]?t.push(n+":"+e[n]):t.push(n)})),t.length>0?t.join(";"):void 0}}var f=n(63165),m=n(3232),v=n(14590);class b{constructor(e){this.config=e}get disable(){return this.config.disable}set disable(e){this.config.disable=e}}var y=n(39860),C=n(65135);class S{constructor(){this.getSpanId=(e=!1)=>{if(S.traceCtrxObj&&!e)return S.traceCtrxObj.getSpanId();const t=(0,y.DO)().substring(0,16);return C.A_.then((()=>{S.setSpanIdFunc(t)}),(()=>{})),t},this.getTraceId=(e=!1)=>{if(S.traceCtrxObj&&!e)return S.traceCtrxObj.getTraceId();const t=(0,y.DO)();return C.A_.then((()=>{S.setTraceIdFunc(t)}),(()=>{})),t}}setTraceObj(e){S.traceCtrxObj=e&&e.getTraceCtx()}}S.getTraceInstance=()=>(S.traceInstance||(S.traceInstance=new S),S.traceInstance),S.setSpanIdFunc=e=>{const t=e||(0,y.DO)().substring(0,16);try{S.traceCtrxObj.setSpanId(t)}catch(e){}},S.setTraceIdFunc=e=>{const t=e||(0,y.DO)();try{S.traceCtrxObj.setTraceId(t)}catch(e){}};var w=n(13578);class x extends b{constructor(e){super(e),this.transporterReady=!1,setTimeout((()=>{this.collectorChannelPlugin=new m.Z,this.appInsightsCore=new f.Z;const t=new v.Z,n={populateBrowserInfo:!1,populateOperatingSystemInfo:!1,enableApplicationInsightsTrace:!1,enableDistributedTracing:!0,enableApplicationInsightsUser:!1,sessionRenewalMs:18e5,sessionExpirationMs:18e5,userConsentCookieName:"OptanonAlertBoxClosed"},i={instrumentationKey:e.key,channels:[[this.collectorChannelPlugin]],extensionConfig:[t]},r=[];if(o.kP||(i.extensionConfig[this.collectorChannelPlugin.identifier]={httpXHROverride:{sendPOST:(e,t,n)=>{delete e.headers["cache-control"],delete e.headers["content-type"],e.data.length>64e3?fetch(e.urlString,{method:"POST",credentials:"include",body:e.data,headers:e.headers}).then((e=>{t(e.status)})).catch((e=>{t(0,{})})):(fetch(e.urlString,{method:"POST",credentials:"include",body:e.data,headers:e.headers,keepalive:!0}).then((e=>{})).catch((e=>{})),t(200,{}))}}}),e.addNoResponse){const e={addNoResponse:!1};i.extensionConfig[this.collectorChannelPlugin.identifier]=e}if(o.kP&&(i.extensionConfig[t.identifier]=n,r.push(t)),e&&e.anonCookieName&&(i.anonCookieName=e.anonCookieName),e.endpoint&&(i.endpointUrl=e.endpoint),this.appInsightsCore.initialize(i,r),e&&e.enableTraceGenerator)try{S.getTraceInstance().setTraceObj(this.appInsightsCore)}catch(e){}this.transporterReady=!0}),100)}transport(e,t=!0,n=0){!e||(0,w.Z)(e)||this.config.disable||(this.transporterReady&&this.appInsightsCore&&this.appInsightsCore.isInitialized&&this.appInsightsCore.isInitialized()&&this.collectorChannelPlugin&&this.collectorChannelPlugin.isInitialized&&this.collectorChannelPlugin.isInitialized()?this.appInsightsCore.track(e):n<50&&setTimeout((()=>this.transport(e,t,n+1)),200))}}class T extends b{constructor(e){super(e)}transport(e){if(!e||!this.config.endpoint||this.config.disable)return;const t=this.generateUrl(this.config.endpoint+"?",e);this.generatePixelBeacon(t)}generatePixelBeacon(e){(new Image).src=e.replace(/&/gi,"&")}generateUrl(e,t){const n=[];let i=e;return Object.keys(t).forEach((e=>{let i=t[e];"object"==typeof i&&i&&(i=JSON.stringify(i)),n.push(this.encodeURIComponent(e)+"="+this.encodeURIComponent(i))})),i=e+n.join("&").replace(/%20/g,"+"),i}encodeURIComponent(e){return null!=e&&encodeURIComponent(e)||""}}let A=null,k={};class I extends b{constructor(e){super(e),A=e&&e.callbackData?e.callbackData.callback:null,k=e&&e.callbackData?e.callbackData.data:null}transport(e){if(!e||this.config.disable)return;let t;try{t=this.flattenObj(e),t.isCoreView=!0,t.platform="app",k&&(t["browser.muid"]=k)}catch(e){return void window.console.error("Error occured while flatterning telemetry payload :",e)}e.name&&A({type:e.eventType,name:e.name,app_id:"0067acd6d05f4168b92f510d33b9ed74",data:{oneds:t}})}flattenObj(e){const t={},n=(e,i)=>{Object.keys(e).forEach((r=>{let a="";a=""===i?`${r}`:`${i}.${r}`,"object"==typeof e[r]&&e[r]?n(e[r],a):t[this.formatKey(a)]=e[r]}))};return n(e,""),t}formatKey(e){if(!e)return e;if("eventType"===e)return"type";if(e.startsWith("data.")){const t=e.substring(5,e.length);return t.endsWith(".destinationUrl")?t.replace(".destinationUrl",".destinationUri"):t}return e}}var O=n(82357);class _ extends b{constructor(e){super(e)}transport(e){e&&!this.config.disable&&this.config.callback(e)}}var P=n(93048),N=n(21011),E=n(65004),M=n(24410);class F extends N.k{createEvent(e,t,n,i=0){return{name:this.getSuperAppOneDSEventName(e),eventType:this.getSuperAppOneDSEventType(e),data:t,baseType:c.id.Base,latency:n,sync:i}}createContentViewPayload(e,t,n){if(!t)return;const r=[];e.forEach((e=>{r.push(this.mapTelemetryObject(e))}));let a;(0,o.d5)()&&(a={content:{docHeight:(0,o.d5)()}});let s=null;try{s=JSON.stringify(r)}catch(e){s=r}const d=Object.assign(Object.assign(Object.assign({},t),a),{object:s,contentViewType:n.contentViewType});if(n.contentViewType===i.NS.Scroll&&(d.isMeaningfulScroll=n.isMeaningfulScroll),!(0,w.Z)(r)){return this.createEvent(c.id.ContentView,d,E.zU.RealTime)}}mapTelemetryObject(e){let t;const n=e&&e.content&&e.content.type;(n||e.behavior)&&(t=(0,M.Y)(n,e.behavior));const i=Object.assign({},e);return delete i.action,delete i.behavior,delete i.overrideId,i}getSuperAppOneDSEventType(e){switch(e){case c.id.PageView:return"Microsoft.Windows.MsnApps.PageView";case c.id.UserAction:return"Microsoft.Windows.MsnApps.PageAction";case c.id.AppError:return"Microsoft.Windows.MsnApps.Failure";case c.id.AppPerfTrace:return"Microsoft.Windows.MsnApps.ClientPerf";case c.id.ContentView:return"Microsoft.Windows.MsnApps.ContentView";case c.id.LoadTime:case c.id.Unload:return"Microsoft.Windows.MsnApps.AppLifeCycle";case c.id.VideoPlay:return"Microsoft.Windows.MsnApps.VideoPlay";default:return null}}getSuperAppOneDSEventName(e){switch(e){case c.id.PageView:return"PAGE_VIEW_HP_WEBVIEW";case c.id.UserAction:return"PAGE_ACTION_HP_WEBVIEW_CLICK";case c.id.AppError:return"HP_WEBVIEW_APP_ERROR";case c.id.AdFeedback:return"PAGE_ACTION_HP_WEBVIEW_AD_FEEDBACK";case c.id.AdImpression:return"HP_WEBVIEW_AD_IMPRESSION";case c.id.AppPerfTrace:return"HP_WEBVIEW_APP_PERF_TRACE";case c.id.Base:return"PAGE_VIEW_HP_WEBVIEW_BASE";case c.id.ContentView:return"CONTENT_VIEW_HP_WEBVIEW";case c.id.Feedback:return"PAGE_ACTION_HP_WEBVIEW_FEEDBACK";case c.id.LoadTime:return"HP_WEBVIEW_LOAD_TIME";case c.id.ServerLog:return"HP_WEBVIEW_SERVER_LOG";case c.id.Unload:return"HP_WEBVIEW_UNLOAD";case c.id.VideoAdPlay:return"CONTENT_VIEW_HP_WEBVIEW_VIDEO_AD";case c.id.VideoPlay:return"CONTENT_VIEW_HP_WEBVIEW_VIDEO";default:return e}}}class D{constructor(){this.trackingSystems=[]}add(e){this.trackingSystems.push(e)}sendPageViewEvent(e,t=r.G.All){this.trackingSystems.forEach((n=>{if((t===r.G.All||t===n.type)&&n.mapper.createPageViewPayload){const t=n.mapper.createPageViewPayload(e);n.transporter.transport(t)}}))}sendContentViewEvent(e,t,n={contentViewType:i.NS.Partial}){this.trackingSystems.forEach((i=>{if(i.mapper.createContentViewPayload){const r=i.mapper.createContentViewPayload(e,t,n);i.transporter.transport(r)}}))}sendActionEvent(e,t,n,i){this.trackingSystems.forEach((r=>{if(r.mapper.createActionPayload){const a=r.mapper.createActionPayload(e,t,n,i);r.transporter.transport(a)}}))}sendEventPayload(e,t,n){this.trackingSystems.forEach((i=>{if(i.mapper.createCustomEventPayload){const r=i.mapper.createEventPayload(e,t,n);i.transporter.transport(r)}}))}sendCustomEvent(e,t,n){this.trackingSystems.forEach((i=>{if(i.mapper.createCustomEventPayload){const r=i.mapper.createCustomEventPayload(e,t,n);i.transporter.transport(r)}}))}disable(e=r.G.All){this.trackingSystems.forEach((t=>{e!==r.G.All&&e!==t.type||(t.transporter.disable=!0)}))}enable(e=r.G.All){this.trackingSystems.forEach((t=>{e!==r.G.All&&e!==t.type||(t.transporter.disable=!1)}))}}class L{constructor(e,t){this.scrollChanged=!0,this.sizeChanged=!0,this.newScrollLeft=null,this.newScrollTop=null,this.firstScrolledMargin=10,this.forceScrollFiring=!1,this.viewportEventIntervalDelayMs=200,this.viewportLeft=0,this.viewportTop=0,this.viewportWidth=0,this.viewportHeight=0,this.userInteracted=!1,this.eventTimerId=0,this.eventTimeoutMS=1e3,this.syntheticTelemetryScrollCallback=(e,t)=>{e&&(this.userInteracted=!0,this.updateMechanism=i.NS.Scroll,this.scrollChanged=!0,this.triggerCallback(),t(),this.forceScrollFiring=!0)},this.contentViewCallback=e,this.viewportOffset=0,this.overrideScrollOffset=t}initListerner(){const e=this.throttle(this.update.bind(this),this.viewportEventIntervalDelayMs);e(),this.attachEvent("resize",(()=>{this.userInteracted=!0,this.updateMechanism=i.NS.Resize,this.sizeChanged=!0,this.triggerCallback(),e()})),this.attachEvent("scroll",(t=>{t&&!t.preventDefaultScroll&&(this.userInteracted=!0,this.updateMechanism=i.NS.Scroll,this.scrollChanged=!0,this.triggerCallback(),e())})),o.kP&&window.addEventListener("telemetryscroll",(t=>{this.syntheticTelemetryScrollCallback(t,e)}))}resetViewportOffset(){this.viewportOffset=this.overrideScrollOffset?this.overrideScrollOffset():(0,o.qC)()}triggerCallback(){this.dispatchEvent("telemetryviewportupdated",this.updateMechanism)}dispatchEvent(e,t){const n=new CustomEvent(e,{detail:{mech:t}});dispatchEvent(n)}throttle(e,t=1e3){let n=0,i=!1;return()=>{if(i)return;const r=(new Date).getTime(),a=r-n;a>t?(n=r,e()):(i=!0,setTimeout((()=>{i=!1,e()}),t-a))}}update(){let e=this.sizeChanged,t=this.scrollChanged;const n=this.viewportWidth,i=this.viewportHeight,r=this.viewportLeft,a=this.viewportTop;this.updateCurrentViewportValues(),e=e&&(i!==this.viewportHeight||n!==this.viewportWidth),t=t&&(r!==this.viewportLeft||a!==this.viewportTop),(this.forceScrollFiring||e||t)&&(this.scheduleViewportEvent(),this.forceScrollFiring=!1)}updateCurrentViewportValues(){this.scrollChanged&&(this.viewportLeft=this.newScrollLeft||this.getScrollLeft(),this.viewportTop=this.newScrollTop||this.getScrollTop(),this.newScrollLeft=this.newScrollTop=null,!this.firstScroll&&this.viewportTop>this.firstScrolledMargin&&(this.firstScroll=!0)),this.sizeChanged&&(this.viewportWidth=window.innerWidth||document.documentElement.clientWidth,this.viewportHeight=window.innerHeight||document.documentElement.clientHeight),this.scrollChanged=this.sizeChanged=!1}scheduleViewportEvent(){if(this.userInteracted&&(this.eventLastScheduleTime=+new Date,!this.eventTimerId)){const e=()=>{this.eventTimerId=this.userInteracted=!1;const t=Date.now()-this.eventLastScheduleTime;t>this.eventTimeoutMS?this.contentViewCallback(this.updateMechanism,this.isMeaningfulScroll()):this.eventTimerId=setTimeout(e,this.eventTimeoutMS-t)};this.eventTimerId=setTimeout(e,this.eventTimeoutMS)}}isMeaningfulScroll(){if(this.updateMechanism!==i.NS.Scroll)return!1;const e=this.overrideScrollOffset?this.overrideScrollOffset():(0,o.qC)(),t=(0,o.P6)();return(e>this.viewportOffset&&e-this.viewportOffset>t/2||et/2)&&(this.viewportOffset=e,!0)}getScrollTop(){if("undefined"!=typeof pageYOffset)return pageYOffset;{const e=document.body;let t=document.documentElement;return t=t.clientHeight?t:e,t.scrollTop}}getScrollLeft(){if(void 0!==window.pageXOffset)return window.pageXOffset;{const e=document.body;let t=document.documentElement;return t=t.clientWidth?t:e,t.scrollLeft}}attachEvent(e,t){window.addEventListener(e,t,!1)}}o.kP&&function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}();class ${constructor(e){this.internalErrors=[],this.eventQueue=[],this.contentUpdateQueue=new Set,this.partialContentUpdateQueue=new Set,this.contentViewTriggerSource=i.NS.Load,this.contentViewTimeout=1e3,this.contentViewTimer=null,this.contentViewDelay=200,this.scheduledContentViewType=null,this.contentViewTimePassed=0,this.contentViewLastExecution=0,this.contentUpdateDebugQueue=new Set,this.intersectionObserverOptions={root:null,rootMargin:"0px",threshold:0},this.traceIdIndex=-1;try{this.config=e,this.config.autoCaptureContentView=void 0===e.autoCaptureContentView||e.autoCaptureContentView,this.config.beacons=e.beacons||{},this.config.beacons.PageOutOfFocus=this.config.beacons.PageOutOfFocus||{},this.config.beacons.PageOutOfFocus.disable=void 0===this.config.beacons.PageOutOfFocus.disable||this.config.beacons.PageOutOfFocus.disable,o.kP&&(this.layoutEventManager=new g,this.layoutEventManager.observe(document.documentElement,this.internalErrors),this.clickEventManager=new l,this.clickEventManager.observe(window,this.config.disableContextMenu),window.addEventListener("beforeunload",this.unloadEventCallback.bind(this)),window.addEventListener("telemetrynodeadded",(e=>{e&&e.detail&&e.detail.element&&this.viewportIntersectionObserver&&(d.u.addElement(e.detail.element),this.viewportIntersectionObserver.observe(e.detail.element))})),window.addEventListener("telemetrynodremoved",(e=>{e&&e.detail&&e.detail.element&&this.viewportIntersectionObserver&&this.viewportIntersectionObserver.unobserve(e.detail.element)})),window.addEventListener("telemetryclick",this.clickEventHandler.bind(this)),window.addEventListener("focus",this.onFocusCallback.bind(this)),window.addEventListener("blur",this.onBlurCallback.bind(this))),this.trackingSystemList=new D,e.trackingSystems.forEach((t=>{t.transporterConfig.anonCookieName=e.anonCookieName,t.transporterConfig.addNoResponse=e.addNoResponse,t.transporterConfig.enableTraceGenerator=e.enableTraceGenerator,this.trackingSystemList.add(class{static getTrackingSystem(e,t){switch(e.type){case r.G.OneDS:return{transporter:new x(e.transporterConfig),mapper:new N.k,type:e.type};case r.G.CTag:return{transporter:new T(e.transporterConfig),mapper:new O.P,type:e.type};case r.G.Comscore:return{transporter:new T(e.transporterConfig),mapper:new P.O,type:e.type};case r.G.Debug:return{transporter:new _(e.transporterConfig),mapper:e.mapper,type:e.type};case r.G.SuperApp:return{transporter:new I(e.transporterConfig),mapper:new F,type:e.type};default:return{transporter:new x(e.transporterConfig),mapper:new N.k,type:e.type}}}}.getTrackingSystem(t))}))}catch(e){this.internalErrors.push({message:"Error in Telemetry Lib constructor.",error:e})}}setContentViewTimeout(e){this.contentViewTimeout=e}resetContentViewTimeout(){this.contentViewTimeout=c.S8}renderTelemetryAttribute(e,t,n){return new p.D(e).render(t)}observeSingleElement(e){}observeElementTree(e){}initPage(e,t,i,r){this.pageMetadata=new h(e,t,this.config.anonCookieName,i,this.config.overrideScrollOffset,this.config.viewTypeCallback,r),o.kP&&("IntersectionObserver"in n.g&&(this.viewportIntersectionObserver=new IntersectionObserver(this.contentVisiblityCallback.bind(this),this.intersectionObserverOptions)),this.viewportEventManager=new L(((e,t)=>{this.config.autoCaptureContentView&&this.autoSendContentViewEvent({contentViewType:e,isMeaningfulScroll:t})}),this.config.overrideScrollOffset),window.addEventListener("telemetryviewportupdated",(e=>{e&&e.detail&&e.detail.mech&&(this.contentViewTriggerSource=e.detail.mech)})),this.viewportEventManager.initListerner())}sendPageView(e=null,t=!1,n=null,a=r.G.All,d=!1){this.queueEvent("PageView",(()=>{if(this.config.beacons&&this.config.beacons.PageView&&this.config.beacons.PageView.disable||!this.pageMetadata)return;this.config.resetAppErrorCounterOnPageView&&s.clear();const l="sign-in-refreshed-page";e=e||{},o.kP&&o.y7&&o.y7.getItem(l)?(o.y7.removeItem(l),(e.page=e.page||{}).isAutoRefresh=!0):this.noExplictAutoRefreshFlagProvided(e)&&((e.page=e.page||{}).isAutoRefresh=!1),this.contentLoaded=!1,this.config.disableAutoCalculateDwellTime||u.reset(),this.pageMetadata.update(e),n?this.pageMetadata.updateActivityId(n):t||this.updateRequestId(),this.pageMetadata.updateContract(),this.viewportEventManager.resetViewportOffset(),this.trackingSystemList.sendPageViewEvent(this.pageMetadata.combinedContract,a),!d||a!==r.G.All&&a!==r.G.Comscore||fetch(c.EE),t||(this.contentViewTriggerSource=i.NS.Load,setTimeout((()=>{this.autoSendContentViewEvent({contentViewType:i.NS.Load})}),1e3)),this.dispatchEvent(i.tM,{requestId:this.pageMetadata.requestId})}))}getRequestId(){return this.pageMetadata.requestId}updateRequestId(e,t){this.pageMetadata.updateRequestId(e,t)}disableTrackingSystem(e=r.G.All){this.trackingSystemList.disable(e)}enableTrackingSystem(e=r.G.All){this.trackingSystemList.enable(e)}disableBeacon(e){this.config.beacons[e]||(this.config.beacons[e]={}),this.config.beacons[e].disable=!0}enableBeacon(e){this.config.beacons[e]||(this.config.beacons[e]={}),this.config.beacons[e].disable=!1}disableAutoUnloadCallback(){this.ignoreAutoUnloadCallback=!0}enableAutoUnloadCallback(){this.ignoreAutoUnloadCallback=!1}updatePageConfiguration(...e){let t;e.forEach((e=>{t|=e})),this.pageMetadata.updatePageConfiguration(t)}updatePageMetadata(e,t=!1){e&&this.pageMetadata.update(e,t)}addOrUpdateCustomProperty(e,t){this.pageMetadata.addOrUpdateCustomProperty(e,t)}removeCustomProperty(e){this.pageMetadata.removeCustomProperty(e)}addOrUpdateJoinIdProperty(e,t){this.pageMetadata.addOrUpdateJoinIdProperty(e,t)}addOrUpdateTmplProperty(e,t){this.pageMetadata.addOrUpdateTmplProperty(e,t)}removeTmplProperty(e){this.pageMetadata.removeTmplProperty(e)}addOrUpdateTmplString(e){if(!e)return;const t=e.split(";");for(let e=0;e{if(!(this.config.beacons&&this.config.beacons.UserAction&&this.config.beacons.UserAction.disable)&&this.pageMetadata&&e){d.u.updateLayout();const s=this.clickEventManager.getTelemetryClickTarget(e);let c;s&&(e=s),c=e.getAttribute&&e.getAttribute(i.qP),e.parentElement&&!c&&(c=(e=e.parentElement).getAttribute&&e.getAttribute(i.qP));let l=d.u.get(e);if(!l){const e=d.u.parseAttribute(c);e&&(l=new d.u(e))}if(this.pageMetadata&&l){const i=e.getAttribute("action")||e.form&&e.form.getAttribute("action"),s=t||l.contract.action,c=void 0===n?l.contract.behavior:n,d=l.contract.overrideDestinationUrl||(0,o.jv)(r)&&r||e.getAttribute("href")||i;if(d&&!d.startsWith("mailto:")?!0===l.contract.overrideEmailIdScrubbing||(0,o.uj)(d)?l.contract.destinationUrl=d:(l.contract.destinationUrl="",this.sendAppErrorEvent({id:54301,severity:0,message:"Email found in the destination url",pb:l.combinedContract})):l.contract.destinationUrl="",s===a.Aw.RightClick&&c===a.wu.ContextMenu&&!(l&&l.contract&&l.contract.destinationUrl))return;this.trackingSystemList.sendActionEvent(l.combinedContract,this.pageMetadata.combinedContract,null==s?a.Aw.Click:s,null==c?a.wu.Navigate:c),l.contract&&l.contract.triggerPageView&&c===a.wu.Navigate&&this.sendPageView(null,!1)}}}))}scheduleContentViewEvent(e=i.NS.Partial,t){if(!o.kP)return;const n=(new Date).getTime();this.contentViewTimePassed=n-this.contentViewLastExecution,this.contentViewTimePassed<=this.contentViewDelay&&e!==i.NS.Partial||(this.contentViewLastExecution=n,this.contentViewTimer&&this.scheduledContentViewType===e&&window.clearTimeout(this.contentViewTimer),this.contentViewTimer=window.setTimeout((()=>this.autoSendContentViewEvent({contentViewType:e})),t||this.contentViewTimeout),this.scheduledContentViewType=e)}sendContentViewEvent(e,t=i.NS.Partial,n=!0){this.queueEvent("ContentView",(()=>{if(this.config.beacons&&this.config.beacons.ContentView&&this.config.beacons.ContentView.disable||!this.pageMetadata)return;d.u.updateLayout();const i=(0,o.Ux)(e),r=[];if(i&&i.length>0){for(let e=0;e25||3!==e.severity&&t>10}(e)?this.config.beacons&&this.config.beacons.AppError&&this.config.beacons.AppError.disable||!this.pageMetadata||this.queueEvent("AppError",(()=>{if(this.trackingSystemList.sendCustomEvent("AppError",e,this.pageMetadata.combinedContract),t){const t=new Date+": "+ +new Date+" "+JSON.stringify(e);console.error(t)}this.dispatchEvent(i.tW,{error:e})})):console.error(`App errors throttled for Id: ${e.id}`)}sendLoadTimeEvent(e){this.sendEvent("LoadTime",e)}sendFeedbackEvent(e){this.sendEvent("Feedback",e)}sendAdImpressionEvent(e){this.sendEvent("AdImpression",e)}sendAdFeedbackEvent(e){this.sendEvent("AdFeedback",e)}sendVideoPlayEvent(e,t,n=!1){if(this.config.beacons&&this.config.beacons.VideoPlay&&this.config.beacons.VideoPlay.disable)return;const i=n?"VideoAdPlay":"VideoPlay";if(e)this.trackingSystemList.sendEventPayload(i,{object:e},this.pageMetadata.combinedContract);else if(t){d.u.updateLayout();const e=d.u.get(t);this.pageMetadata&&e&&this.trackingSystemList.sendEventPayload(i,{object:e.combinedContract},this.pageMetadata.combinedContract)}}sendVideoAdPlayEvent(e,t){this.sendVideoPlayEvent(e,t,!0)}sendAudioPlayEvent(e,t){if(!(this.config.beacons&&this.config.beacons.AudioPlay&&this.config.beacons.AudioPlay.disable))if(e)this.trackingSystemList.sendEventPayload("AudioPlay",{object:e},this.pageMetadata.combinedContract);else if(t){d.u.updateLayout();const e=d.u.get(t);this.pageMetadata&&e&&this.trackingSystemList.sendEventPayload("AudioPlay",{object:e.combinedContract},this.pageMetadata.combinedContract)}}sendServerLogEvent(e){this.sendEvent("ServerLog",e)}sendAppPerfTraceEvent(e){this.sendEvent("AppPerfTrace",e)}sendAuthEvent(e){this.sendEvent("Auth",e)}sendClientLogEvent(e){this.config.enableSendClientLogEvent&&this.sendEvent("ClientLog",e)}sendPageOutOfFocusEvent(e){this.queueEvent("PageOutOfFocus",(()=>{this.config.beacons&&this.config.beacons.PageOutOfFocus&&this.config.beacons.PageOutOfFocus.disable||!this.pageMetadata||this.trackingSystemList.sendEventPayload("PageOutOfFocus",null,this.pageMetadata.combinedContract)}))}sendUnloadEvent(){this.queueEvent("Unload",(()=>{this.config.beacons&&this.config.beacons.Unload&&this.config.beacons.Unload.disable||!this.pageMetadata||this.trackingSystemList.sendEventPayload("Unload",null,this.pageMetadata.combinedContract)}))}sendTraceInfoEvent(e){this.queueEvent("TraceInfo",(()=>{this.config.beacons&&this.config.beacons.TraceInfo&&this.config.beacons.TraceInfo.disable||!this.pageMetadata||this.sendEvent("TraceInfo",e)}))}getPageMetadata(){return this.pageMetadata}flush(e=!0,t,n){const i=e=>!(t&&t!==e.eventType||n&&n===e.eventType);for(const e of this.eventQueue)"function"==typeof e.callback&&i(e)&&e.callback();this.eventQueue=this.eventQueue.filter((e=>!i(e))),this.config.useEventQueue=!e}empty(){this.eventQueue=[]}enableEventQueue(){this.config.useEventQueue=!0}disableEventQueue(){this.config.useEventQueue=!1}startDwellTime(){u.start()}pauseDwellTime(){u.pause()}resetDwellTime(){u.reset()}setDwellTime(e,t){u.setDwellTime(e,t)}clickEventHandler(e){if(e&&e.detail&&e.detail.element&&this.pageMetadata){const t=e.detail.element;(0,o.Vr)(t,this.pageMetadata.contract.page.ocid),(0,o.Zf)(t,this.pageMetadata.contract.page.partnerTrackingCode),(0,o.uK)(t,this.pageMetadata.requestId),this.sendActionEvent(t,e.detail.action,e.detail.behavior),t.attributes&&t.attributes.href&&t.attributes.href.value&&t.attributes.href.value.startsWith&&"function"==typeof t.attributes.href.value.startsWith&&t.attributes.href.value.startsWith("mailto:")&&(this.ignoreUnload=!0)}}unloadEventCallback(){this.ignoreAutoUnloadCallback||this.config.beacons&&this.config.beacons.Unload&&this.config.beacons.Unload.disable||(this.pageMetadata&&!this.ignoreUnload&&this.sendUnloadEvent(),this.ignoreUnload=!1)}autoSendContentViewEvent(e){this.queueEvent("ContentView",(()=>{if(this.pageMetadata){let t;if(d.u.updateLayout(),e.contentViewType!==i.NS.Partial&&this.contentUpdateQueue&&this.contentUpdateQueue.size>0?t=this.contentUpdateQueue:this.partialContentUpdateQueue&&this.partialContentUpdateQueue.size>0&&(t=this.partialContentUpdateQueue),t){const n=[...t].map((t=>{const n=d.u.get(t);if(n&&(e.contentViewType!==i.NS.Partial||!n.isCaptured))return n.isCaptured=!0,n.combinedContract})).filter((e=>e));this.trackingSystemList.sendContentViewEvent(n,this.pageMetadata.combinedContract,e),this.partialContentUpdateQueue.clear(),this.contentViewTriggerSource=null}this.contentLoaded||(this.contentLoaded=!0,this.pageMetadata.addOrUpdateTmplProperty("dwellTimeContentLoaded","true"),this.startAutoDwellTime())}}))}contentVisiblityCallback(e){for(let t=0;t{this.config.beacons&&this.config.beacons[e]&&this.config.beacons[e].disable||!this.pageMetadata||this.trackingSystemList.sendCustomEvent(e,t,this.pageMetadata.combinedContract)}))}queueEvent(e,t){this.config.useEventQueue?this.eventQueue.push({eventType:e,callback:t}):t()}noExplictAutoRefreshFlagProvided(e){return!e||!e.page||!0!==e.page.isAutoRefresh&&!1!==e.page.isAutoRefresh}dispatchEvent(e,t){o.kP&&setTimeout((()=>dispatchEvent(new CustomEvent(e,{detail:t}))),0)}startAutoDwellTime(){document.hasFocus()&&!this.config.disableAutoCalculateDwellTime&&(u.start(),this.pageMetadata.addOrUpdateTmplProperty("dwellTimeStart","true"))}onFocusCallback(){this.contentLoaded&&!this.config.disableAutoCalculateDwellTime&&(u.start(),this.pageMetadata.addOrUpdateTmplProperty("dwellTimeFocusStart","true"))}onBlurCallback(){this.sendPageOutOfFocusEvent({}),this.config.disableAutoCalculateDwellTime||(u.pause(),this.pageMetadata.addOrUpdateTmplProperty("dwellTimePause","true"))}}},60483:function(e,t,n){n.d(t,{D:function(){return a}});var i=n(75559),r=n(98146);class a{constructor(e,t,n){this.contract=e}static render(e){const t=r.v.compress(e);return{[i.qP]:JSON.stringify(t)}}addChild(e){return new a(e,this)}addOrUpdateChild(e,t){return t?(t.contract=e,t):new a(e,this)}updateContract(e){this.contract=e}render(e){return a.render(this.contract)}getMetadataTag(){return JSON.stringify(this.getMetadata())}getMetadata(){return r.v.compress(this.contract)}}},65969:function(e,t,n){n.d(t,{EE:function(){return i},S8:function(){return a},id:function(){return r}});const i="https://www.msn.com/PV.xml",r={UserAction:"MS.News.Web.PageAction",PageView:"MS.News.Web.PageView",ContentView:"MS.News.Web.ContentView",AppError:"MS.News.Web.AppError",LoadTime:"MS.News.Web.LoadTime",Unload:"MS.News.Web.Unload",Base:"MS.News.Web.Base",Feedback:"MS.News.Web.Feedback",AdImpression:"MS.News.Web.AdImpression",AdFeedback:"MS.News.Web.AdFeedback",VideoPlay:"MS.News.Web.VideoPlay",VideoAdPlay:"MS.News.Web.VideoAdPlay",AudioPlay:"MS.News.Web.AudioPlay",ServerLog:"MS.News.Web.ServerLog",AppPerfTrace:"MS.News.Web.AppPerfTrace",Auth:"MS.News.Web.Auth",ClientLog:"MS.News.Web.ClientLog",PageOutOfFocus:"MS.News.Web.PageOutOfFocus",TraceInfo:"MS.News.Web.TraceInfo"},a=1e3},98429:function(e,t,n){n.d(t,{F$:function(){return $},FL:function(){return v},Mm:function(){return z},P6:function(){return h},Ux:function(){return N},Vr:function(){return S},XW:function(){return C},Xn:function(){return g},Zf:function(){return w},Zq:function(){return M},d5:function(){return m},i2:function(){return b},jT:function(){return F},jv:function(){return D},kP:function(){return y},pE:function(){return _},pW:function(){return u},qC:function(){return f},t0:function(){return L},tH:function(){return A},tV:function(){return j},uK:function(){return x},uV:function(){return R},uj:function(){return B},wi:function(){return p},y7:function(){return s}});let i,r,a,o,s,c,d=(new Date).getTime();try{s="sessionStorage"in window&&window.sessionStorage}catch(e){}try{navigator&&navigator.userAgentData&&"Windows"===navigator.userAgentData.platform&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["platformVersion"])&&navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then((e=>{c=e.platformVersion}))}catch(e){}function l(e){const t=(d+16*Math.random())%16|0;return d=Math.floor(d/16),("x"===e?t:7&t|8).toString(16)}function u(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,l)}function g(){return+new Date}function p(){return y&&(window.outerWidth||document.documentElement.clientWidth)}function h(){return y&&(window.outerHeight||document.documentElement.clientHeight)}function f(){return y&&(window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop)||0}function m(){return y&&Math.max(document.body.scrollHeight||0,document.documentElement.scrollHeight||0,document.body.offsetHeight||0,document.documentElement.offsetHeight||0,document.body.clientHeight||0,document.documentElement.clientHeight||0)}function v(){if(!y)return"";const e=new RegExp("\\bMUID\\s*=\\s*([^;]*)","i").exec(document.cookie);return e&&e.length>1?e[1]:""}function b(e){return i||""===i||(i=v()||e||""),i}const y=!("undefined"==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv);function C(e,t){return function(e,t){if(t&&e){const n=t.toLowerCase();if(-1==n.indexOf("?ocid=")&&-1==n.indexOf("&ocid=")){const n=-1==t.indexOf("?")?"?":"&";t=`${t}${n}ocid=${encodeURIComponent(e)}`}}return t}(t,e)}function S(e,t){T(e,"ocid",t)}function w(e,t){let n=t;try{const e=new URL(location.href);n=e.searchParams.get("pc")||e.searchParams.get("PC")||e.searchParams.get("pC")||e.searchParams.get("Pc")||n}catch(e){}T(e,"pc",n||t)}function x(e,t){T(e,"cvid",t,!0)}function T(e,t,n,i=!1){if(!e||!t)return;let r=e;if("a"!==r.nodeName&&r.closest("a")&&(r=r.closest("a")),!r)return;const{href:a}=r;if(a)try{const e=new URL(a);e.searchParams.get(t)&&!i||!n||!e.host.includes("msn.com")&&!e.host.includes("msn.cn")||(e.searchParams.set(t,n),r.href=e.href)}catch(e){}}function A(e,t=""){if(!e)return;const n=e.getAttribute("data-hl")||"";if(!t&&!n){const n=e.querySelector("h4")||e.querySelector("h3"),i=function(e,t,n=2){if(!t)return;let i=t,r=0;for(;i&&i!==e;i=i.parentElement,r++)if(r>n)return;return r}(e,n);n&&i&&i<=2&&(t=I(n))}const i=e instanceof HTMLAnchorElement?e.querySelector(".title"):"";!t&&i&&(t=I(i));const r=e instanceof HTMLAnchorElement?e.getAttribute("title"):"";!t&&r&&(t=r);const a=e instanceof HTMLAnchorElement?e.getAttribute("aria-lable"):"";return!t&&a&&(t=a),"string"!=typeof t&&(t=n||e.getAttribute("data-piitxt")||("FORM"==e.nodeName?"[form submit]":e.getAttribute("title")||O(e,"title","img")||I(e)||e.getAttribute("alt")||O(e,"alt")||"")),null!=t.trim&&(t=t.trim()),t}const k=/(^\s+)|(\s+$)/gm;function I(e){return(e&&(e.textContent||e.innerText)||"").replace(k,"")}function O(e,t,n=""){const i=e.children||[];let r,a=0;for(t=t||"alt";a=11&&(e=!0),!e&&window&&window.external&&window.external.getHostEnvironmentValue("os-build")){const t=JSON.parse(window.external.getHostEnvironmentValue("os-build"))["os-build"].split(".");(t[0]>10||10===t[0]&&t[1]>0||t[2]>=22e3)&&(e=!0)}}catch(e){}return a=!0===e||null,a}function R(){let e=!1;const t="os-sku";if(y)try{if(window&&window.external&&window.external.getHostEnvironmentValue(t)){const n=JSON.parse(window.external.getHostEnvironmentValue(t));e=n&&"192"===n[t]}}catch(e){}return o=!0===e||null,o}function j(e){if(!r&&""!==r&&y)try{if(!e||0===e.length)return;const t=document.cookie;if(t){let n="";e.forEach((e=>{const i=new RegExp("\\b"+e+"\\s*=\\s*([^;]*)","i").exec(t),r=i&&i.length>1?i[1]:"";""!==r&&(n+=e+"="+r+";")})),r=n}}catch(e){}return r}function z(e,t){if(!e||""===e)return"";let n=!1,i=null;if(y)try{if(i=new URL(e),!t||0===t.length)return;t.forEach((e=>{i.searchParams.has(e)&&(n=!0),i.searchParams.delete(e)}))}catch(t){return e}return n?i.toString():e}function B(e){if(!e||""===e)return"";let t=null,n=!1;if(y)try{t=new URL(e);const i=new RegExp(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);t.searchParams.forEach((function(e,t){e.match(i)&&(n=!0)}))}catch(e){}return n?"":e}},24410:function(e,t,n){n.d(t,{Y:function(){return r}});var i=n(38156);function r(e,t){const n=function(e){switch(e){case i.uH.AppStore:return 17;case i.uH.StructuredData:return 16;case i.uH.CmsPromotions:return 19;case i.uH.MicrosoftWebStore:return 20;case i.uH.XboxStore:return 21;case i.uH.OfficeStore:return 22;case i.uH.PartnerLinks:return 24;case i.uH.SponsoredContent:return 25;default:return 0}}(e)||function(e){switch(e){case i.wu.Navigate:return 14;case i.wu.Follow:return 26;case i.wu.Unfollow:return 27;case i.wu.More:return 28;case i.wu.Close:return 36;case i.wu.Share:return 37;case i.wu.Like:return 38;case i.wu.Dislike:return 39;case i.wu.Unlike:return 40;case i.wu.Undislike:return 41;case i.wu.Mute:return 42;case i.wu.Unmute:return 43;case i.wu.Cancel:return 44;case i.wu.Manage:return 45;default:return 0}}(t);if(0!==n)return n;if(e===i.uH.App){if(t===i.wu.Install)return 23;if(t===i.wu.Launch)return 18}return 0}},80368:function(e,t,n){function i(e){let t;if(e instanceof URL)t=e.searchParams;else if(e instanceof URLSearchParams)t=e;else if("string"==typeof e)try{t=new URL(e).searchParams}catch(e){t=void 0}return r(t,"ocid")}function r(e,t,n){if(e&&t){const i={value:e.get(t)||void 0};if(!i.value&&n&&n.length>0)for(let t=0;t{n.searchParams.delete(e)})),n.href}function o(e){const t=new RegExp("^.*/([Aa][Rr]||[Ss]{2}||[Vv][Ii]||[Vv][Pp])-(?[a-zA-Z0-9]{6,8})(([?].*)||#.*)?$");return null!==e.match(t)}n.d(t,{ku:function(){return i},Ol:function(){return r},jI:function(){return o},Pv:function(){return c},jC:function(){return a}});const s=new Set(["msedgdhphdr","msedgntphdr","msedgntp","msedgdhp","entnewsntp"]);function c(e){return!!function(e){if("string"==typeof e)try{e=new URL(e)}catch(t){e=null}const t={};if(e){let n="";e.searchParams.forEach((function(e,t){!n&&"ocid"===t.toLowerCase()&&e&&(n=e.toLowerCase())})),n&&(("win"===n.substr(0,3)||s.has(n))&&(t.isWindows=!0),"weather-app-win"===n&&(t.isWinApp=!0))}return t}(e).isWindows}n(76148)},83721:function(e,t,n){n.d(t,{m:function(){return i}});const i="#0078D4"},29422:function(e,t,n){n.r(t),n.d(t,{AUTOSUGGEST_SUBTYPE:function(){return l},AUTOSUGGEST_TYPE:function(){return d},addLocation:function(){return D},contains:function(){return q},dedup:function(){return J},distance:function(){return y},extractLanguageTag:function(){return R},formatLocation:function(){return F},getAutoSuggestLocationFirstLine:function(){return E},getAutoSuggestLocationSecondLine:function(){return M},getAutoSuggestionName:function(){return _},getDisplayName:function(){return V},getHyperlocalType:function(){return p},headLocation:function(){return j},hyperlocalLabeled:function(){return g},isAbnormalLatLon:function(){return A},isCurrentLocaleName:function(){return $},isHyperlocal:function(){return u},isLocationChanged:function(){return Z},isLocationNeedReDetected:function(){return Q},isSameLocationLocality:function(){return m},isSameLocationName:function(){return f},isSameLocationPoint:function(){return h},isValid:function(){return x},isValidLatLon:function(){return T},isValidLocationNameStructure:function(){return P},isValidLocationToSuggest:function(){return k},normalizeLatLong:function(){return O},parseDetailShortInfo:function(){return S},removeLocation:function(){return L},reset:function(){return w},resolveNameFromLocalityRegionCountry:function(){return U},shouldIgnoreSubRegion:function(){return b},showReverseName:function(){return G},toDebugString:function(){return I},toDetailShortInfo:function(){return C},toLatLong:function(){return z},toLatLongTruncated:function(){return B},transformToClientLocation:function(){return W},truncateFloatTo3Decimal:function(){return v},truncateLatLon:function(){return H}});var i=n(16517),r=n(54804),a=n(4596),o=n(38573);new Set(["CN","JP","TW"]);const s=new Set(["河北省","山西省","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","海南省","四川省","贵州省","云南省","陕西省","甘肃省","青海省","台湾省","内蒙古自治区","广西壮族自治区","西藏自治区","宁夏回族自治区","新疆维吾尔自治区"]);var c;!function(e){e[e.HYPERLOCAL=101]="HYPERLOCAL",e[e.NONHYPERLOCAL=102]="NONHYPERLOCAL",e[e.UNKNOWN=103]="UNKNOWN"}(c||(c={}));const d={PLACE:"Place",LOCAL_BUSINESS:"LocalBusiness",ADDRESS:"PostalAddress"},l={ADDRESS:"Address",ROAD:"Road"};function u(e){return e.locationType===c.HYPERLOCAL||e.locationType===c.UNKNOWN}function g(e){return!!(null==e?void 0:e.locationType)&&(e.locationType===c.HYPERLOCAL||e.locationType===c.NONHYPERLOCAL||e.locationType===c.UNKNOWN)}function p(e,t){switch(e){case d.PLACE:return c.NONHYPERLOCAL;case d.LOCAL_BUSINESS:return c.HYPERLOCAL;case d.ADDRESS:return t===l.ADDRESS?c.HYPERLOCAL:t===l.ROAD?c.NONHYPERLOCAL:c.UNKNOWN;default:return c.UNKNOWN}}function h(e,t,n=!1){if(e&&t){let i=""+(e[0]||e.latitude),r=""+(t[0]||t.latitude),a=""+(e[1]||e.longitude),o=""+(t[1]||t.longitude);return n&&(i=v(i).toString(),a=v(a).toString(),r=v(r).toString(),o=v(o).toString()),i===r&&a==o}return!1}function f(e,t){return!(!e||!t)&&V(e)===V(t)}function m(e,t){return!(!e||!t)&&e.locality===t.locality}function v(e){const t="number"==typeof e?e:parseFloat(e);return Math.trunc(1e3*t)/1e3}function b(e){return(0,o.vt)(e)}function y(e,t){function n(e){const t=Math.sin(e/2);return t*t}function i(e){return e*Math.PI/180}t=t||{};const r=[i(+(e=e||{}).latitude),i(+e.longitude)],a=[i(+t.latitude),i(+t.longitude)],o=n(Math.abs(r[0]-a[0]))+Math.cos(r[0])*Math.cos(a[0])*n(Math.abs(r[1]-a[1]));return 12742*Math.asin(Math.sqrt(o))}function C(e,t=!1){return(0,o.gl)(e,t)}function S(e,t=!1){return(0,o.$i)(e,t)}function w(e){const t=e||{};Object.keys(t).forEach((e=>{t[e]=null}))}function x(e){return(0,o.JY)(e)}function T(e){return(0,o.JY)(e)}function A(e){return(void 0!==e.latitude||void 0!==e.longitude)&&(!T(e)||""+e.latitude=="-1"&&""+e.longitude=="-1")}function k(e){var t;if("zh-cn"===(null===(t=null==e?void 0:e.language)||void 0===t?void 0:t.toLowerCase())){if(!(null==e?void 0:e.country))return!1;if(null==e?void 0:e.addressLine){if(!(null==e?void 0:e.locality)&&!(null==e?void 0:e.subRegion)&&!(null==e?void 0:e.region)&&s.has(e.addressLine))return!1}else if(!(null==e?void 0:e.subRegion)&&!(null==e?void 0:e.region)&&s.has(null==e?void 0:e.locality))return!1}return!(!e||!e.addressLine&&!e.locality)}function I(e){if(e)return e.el?`el=[${e.el}]`:`lat=${e.latitude},long=${e.longitude}`}function O(e,t){return(0,o.br)(e,t)}function _(e){if(e){if(e.autoSuggestionName)return e.autoSuggestionName;return U(e,{enforceSmallLocaleFirst:!0})}}function P(e){const t=i.jG.AppType;return["windowsShell","windows","newsAndInterests","windowsNewsPlus","winWidgets"].indexOf(t)>=0?!(!e||!(e.addressLine||e.locality||e.region)):"zh-cn"===e.language||"CN"===e.isoCode?!(!e||!(e.addressLine||e.locality||e.subRegion||e.addressLine)):!(!e||!e.locality&&!e.addressLine)}function N(e,t){var n;const r=null===(n=null===i.jG||void 0===i.jG?void 0:i.jG.LocaleContentMarket)||void 0===n?void 0:n.market,a=(e.isoCode||"").toUpperCase(),o=a&&r&&r.substr(-a.length).toUpperCase()===a,s=[e.addressLine,e.locality,!b(e.isoCode)&&e.subRegion,!(null==t?void 0:t.skipRegionAndCountry)&&e.region,!(null==t?void 0:t.skipRegionAndCountry)&&!o&&e.country].filter((e=>!!e));return s.filter(((e,t)=>e!==s[t+1]))}function E(e){return N(e)[0]}function M(e){return N(e).slice(1).join(", ")}function F(e,t){const n=N(e,t);return G(e.language)&&n.reverse(),n.join(", ")}function D(e,t){if(!t)return e;e=e||[];const n=[Object.assign({},t),...e],i={},r=[];for(let e=0;e15&&V(t)&&V(t)!=V(e))}},4596:function(e,t,n){n.r(t),n.d(t,{abbreviateUSState:function(){return r},toCamelCase:function(){return a}});const i={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY","American Samoa":"AS","District of Columbia":"DC",Guam:"GU","Marshall Islands":"MH","Northern Mariana Island":"MP","Puerto Rico":"PR","Virgin Islands":"VI"};function r(e,t,n){return"US"!==n&&"us"!==n||"en-us"!==t?e:i[e]||e}function a(e,t){return e&&JSON.parse(JSON.stringify(e,(function(e,n){if(n&&"object"==typeof n&&!Array.isArray(n)){const e={};for(const i in n)if(Object.hasOwnProperty.call(n,i)){e[t&&t[i]||i&&i.charAt(0).toLowerCase()+i.substring(1)]=n[i]}return e}return n})))}},38573:function(e,t,n){n.d(t,{$i:function(){return C},DF:function(){return u},EC:function(){return g},Gf:function(){return s},JY:function(){return v},XA:function(){return S},aQ:function(){return d},br:function(){return y},gl:function(){return h},mH:function(){return c},vt:function(){return m},zl:function(){return l}});var i=n(16517),r=n(65135),a=n(26415),o=n(4596);function s(e,t){if(e)return e.displayName&&!(null==t?void 0:t.skipOldName)?e.displayName:l(e,t)}function c(e,t){const n=e&&e.displayName,i=u(e,{enforceOnlySmallLocal:!0}),o=i.length>0?i[0]:n;return o||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.s$v),{message:`ShortlocationNameArr: ${i}.\n CurrentLocation: ${JSON.stringify(e)}. \n Error: Short location name in ${t} is empty.`})),o}function d(e){return e.definitionName||`${e.latitude},${e.longitude}`}function l(e,t){return u(e,t).join(", ")}function u(e,t){var n;"united states"===(null===(n=null==e?void 0:e.country)||void 0===n?void 0:n.toLowerCase())&&(e.isoCode="US");const r=!t||!t.skipLocale,a=!(null==t?void 0:t.skipAddressLine),s=i.jG&&i.jG.LocaleContentMarket&&i.jG.LocaleContentMarket.market,c=(e.isoCode||"").toUpperCase(),d=c&&s&&s.substr(-c.length).toUpperCase()===c,l=m(e.isoCode)?null:e.subRegion,u=(0,o.abbreviateUSState)(e.region,e.language,e.isoCode),p=[a&&e.addressLine,r?e.locality:"",l,u,(null==t?void 0:t.skipCountry)?"":e.country].filter((e=>!!e));let h=0;for(;p[h+1];)p[h+1]===p[h]?p.splice(h+1,1):h++;const f="CN"==(null==s?void 0:s.toUpperCase())?1:2;if(e.country&&d&&p.length>f&&p.splice(-1,1),t&&t.enforceOnlySmallLocal&&p.length>0){return[/,/.test(p[0])?p[0].split(",")[0]:p[0]]}return t&&t.enforceSmallLocaleFirst||g(e.language)&&p.reverse(),p}function g(e){return e&&p.has(e.toUpperCase())}const p=new Set(["ZH-CN","KO-KR","JA-JP"]);function h(e,t=!1){const n={a:e.addressLine,l:e.locality,r:e.region,r2:e.subRegion,c:e.country,i:e.isoCode,t:e.locationType,g:e.language,x:t?e.longitude:void 0,y:t?e.latitude:void 0,n:i.jG.isMiniProgram?e.displayName:void 0},r=JSON.stringify(n,((e,t)=>null!=t&&""!==t?t:void 0));return"{}"!==r?r:void 0}const f=new Set(["CN","JP","TW"]);function m(e){return!f.has((e||"").toUpperCase())}function v(e){const t=parseFloat(null==e?void 0:e.latitude),n=parseFloat(null==e?void 0:e.longitude);return b(t,-85,85)&&b(n,-180,180)&&(0!==t||0!==n)}function b(e,t,n){return!isNaN(e)&&e>=t&&e<=n}function y(e,t){return{latitude:""+parseFloat(e),longitude:""+parseFloat(t)}}function C(e,t=!1){if(e)try{const n=JSON.parse(e),r={};return r.addressLine=n.a,r.locality=n.l,r.region=n.r,r.subRegion=n.r2,r.country=n.c,r.isoCode=n.i,r.locationType=n.t,r.language=n.g,t&&(r.latitude=n.y,r.longitude=n.x),i.jG.isMiniProgram&&(r.displayName=n.n),r}catch(e){return}}function S(e,t){return w(null==e?void 0:e.longitude,null==t?void 0:t.longitude)&&w(null==e?void 0:e.latitude,null==t?void 0:t.latitude)}function w(e,t){return!(!e||!t)&&x(e)===x(t)}function x(e){const t=parseFloat(e),n=Math.pow(10,6);return Math.round(t*n)/n}},80983:function(e,t,n){let i;function r(e){i=e}function a(){return i}n.d(t,{P:function(){return a},s:function(){return r}})},68848:function(e,t,n){function i(e,t=!1){if(e){if(t&&e.display)return e.display;if(e.content)return e.content}return e}function r(e){return e.language&&e.market&&(e.language+"-"+(e.script?e.script+"-":"")+e.market).toLowerCase()||""}n.d(t,{H:function(){return i},p:function(){return r}})},53909:function(e,t,n){n.d(t,{D3:function(){return o},mL:function(){return g},q3:function(){return c},zz:function(){return l}});var i=n(12697),r=n(80983);let a;var o,s;!function(e){e.JPG="jpg",e.PNG="png"}(o||(o={})),function(e){e[e.None=0]="None",e[e.Letterbox=1]="Letterbox",e[e.Scale=2]="Scale",e[e.Stretch=3]="Stretch",e[e.Crop=4]="Crop",e[e.FocalCrop=5]="FocalCrop",e[e.FacialCrop=6]="FacialCrop"}(s||(s={}));const c="www.bing.com/th",d=new RegExp(/bing\.(com|net)\/th/);function l(e,t){return g(((0,r.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+e,t)}const u=Math.ceil(4*Math.random())||4;function g(e,t){if(e&&d.test(e))return function(e,t){try{return p(new URL(e),t).href}catch(n){const i=p(new URL(`https://${e}`),t);return`//${i.host}${i.pathname}${i.search}`}}(e,t);const{focalRegion:n,backgroundColor:r}=t;let{width:s=0,height:c=0,format:l=o.JPG}=t,u="";if(n){const e=f(n.x1,n.x2),t=f(n.y1,n.y2);null!=e&&null!=t&&(u+=`&x=${e}&y=${t}`)}r&&(u+=`&b=${r}`);const g=null==t.mode?6:t.mode;if(6===g&&(u+="&u=t"),t.enableDpiScaling){if(!t.devicePixelRatio)throw new Error("A valid devicePixelRatio value must be provided when DPI scaling is enabled");const e=function(e){if(h()&&a)return a;if(e<1)return null;let t=e;(0,i.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);h()&&(a=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),c=Math.round(c*e))}return`${e}?w=${s}&h=${c}&q=${t.quality||60}&m=${g}&f=${l}${u}`}function p(e,t){(0,r.P)()&&(e.hostname=`ts${u}.cn.mm.bing.net`);const{width:n=0,height:i=0}=t,a=t.quality||90,o=t.crop||1;return e.searchParams.set("w",`${n}`),e.searchParams.set("h",`${i}`),e.searchParams.set("qlt",`${a}`),e.searchParams.set("c",`${o}`),e.searchParams.set("rs","1"),t.enableDpiScaling&&(e.searchParams.set("dpr",`${t.devicePixelRatio}`),e.searchParams.set("p","0")),e}function h(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function f(e,t){if(null!=e&&null!=t)return Math.floor((e+t)/2)}},19112:function(e,t,n){function i(){return{experienceType:"AppConfig",instanceSrc:"default"}}n.d(t,{j:function(){return i}})},98878:function(e,t,n){n.d(t,{o:function(){return s}});var i=n(33940);class r{constructor(){this.cacheMap=new Map}has(e){return(0,i.mG)(this,void 0,void 0,(function*(){return!!this.cacheMap[e]}))}get(e){return(0,i.mG)(this,void 0,void 0,(function*(){return this.cacheMap[e]}))}set(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){return this.cacheMap[e]=t,!0}))}del(e){return(0,i.mG)(this,void 0,void 0,(function*(){delete this.cacheMap[e]}))}itemCount(){return(0,i.mG)(this,void 0,void 0,(function*(){return Object.keys(this.cacheMap).length}))}reset(){return(0,i.mG)(this,void 0,void 0,(function*(){this.cacheMap=new Map}))}}var a=n(33379);let o;const s=(0,a.N)()?null:{initialize:function(e){o=e},reset:function(){return(0,i.mG)(this,void 0,void 0,(function*(){yield o.reset()}))},set:function(e,t,n){return(0,i.mG)(this,void 0,void 0,(function*(){yield o.set(e,t,n)}))},get:function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield o.get(e)}))},has:function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield o.has(e)}))},del:function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield o.del(e)}))},itemCount:function(){return(0,i.mG)(this,void 0,void 0,(function*(){return yield o.itemCount()}))}};n.g.TEST_ENV&&!(0,a.N)()&&s.initialize(new r)},612:function(e,t,n){n.d(t,{t:function(){return r}});var i=n(55067);class r{}r.marketUpdated=new i.C("marketUpdated"),r.updatePrimaryAccountInfo=new i.C("updatePrimaryAccountInfo")},12315:function(e,t,n){n.d(t,{f:function(){return m}});var i=n(16517),r=n(54804),a=n(63439),o=n(612),s=n(33379),c=n(9344),d=n(87538);const l="https://www.msn.com",u="account_type",g="account_id",p="email",h="first_name",f="last_name";class m extends a.e{constructor(e,t,n,r,a,l,u){super(e,t,n,r,a,l,u),this.cookieExpireInDays=182,this.marketCookieName="ntps",this._authPrivateApi=(0,s.N)()&&window&&window.chrome&&window.chrome.authPrivate,o.t.marketUpdated.getActionSender(this).send(this.getInitialMarket()),o.t.marketUpdated.registerObserver((e=>{const t=e.params[0];t&&((0,c.sq)(this.marketCookieName,void 0,-1),(0,c.sq)(this.marketCookieName,void 0,-1,void 0,"/edge"),(0,c.sq)(this.marketCookieName,JSON.stringify({m:t}),this.cookieExpireInDays,i.jG.HostPage.topDomain,"/"),(0,d.Z)(this.getRefreshOptions(t)))}))}getInitialMarket(){const e=(0,c.ej)(this.marketCookieName);return e?e.m||e:r.Al.Locale}getRefreshOptions(e){const t=`/${i.jG.CurrentMarket}/`,n=new URL(location.href);if(this.config&&this.config.stayInVertical?n.pathname=`/${e}/${r.Al.ClientSettings.verticalKey}`:n.pathname=n.pathname.replace(t,`/${e}/`),!this.config||!this.config.shouldRefreshToWindowsHomePage)return{newUrl:n.href};return{newUrl:new URLSearchParams(location.search).get("ocid")?`${l}/${e}/feed/${location.search}`:`${l}/${e}/feed`}}getPrimaryAccountInfoAsync(e=!0){return new Promise((t=>{const n=this.getCurrentState();e&&n.primaryAccountInfo?t(n.primaryAccountInfo):this._authPrivateApi?this._authPrivateApi.getPrimaryAccountInfo((e=>{const n={accountId:e[g],accountType:e[u],firstName:e[h],lastName:e[f],email:e[p]};t(n)})):t({})}))}}},24316:function(e,t,n){n.d(t,{I:function(){return o}});var i=n(30856),r=n(612),a=n(54804);class o{reduce(e,t){if(!e)return{market:a.Al.Locale,primaryAccountInfo:null};if(!t)return e;let n=e,o=i.G.handleAction(t,r.t.marketUpdated,(t=>{t&&(n=Object.assign(Object.assign({},e),{market:t}))}));return o=o||i.G.handleAction(t,r.t.updatePrimaryAccountInfo,(t=>{t&&(n=Object.assign(Object.assign({},e),{primaryAccountInfo:t}))})),o?n:e}}},40810:function(e,t,n){n.d(t,{a:function(){return i},H:function(){return s}});var i,r=n(26415),a=n(65135);class o extends Map{constructor(e){super(),this.identifier=e,this.subscriptions=new Map}set(e,t){super.set(e,t);const n=this.subscriptions.get(e);return n&&n.size?(n.forEach((n=>{try{n&&n(t)}catch(t){a.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.fG_),{message:"Failed to execute subscription callback",pb:Object.assign(Object.assign({},r.fG_.pb),{customMessage:`Error executing subscription callback for key [${e}]`,instanceId:this.identifier,errorMessage:t&&t.message})}))}})),this):this}subscribe(e,t){if(!t||"function"!=typeof t)return;let n=this.subscriptions.get(e);n||(this.subscriptions.set(e,new Set),n=this.subscriptions.get(e)),n.add(t),this.has(e)&&t(this.get(e))}unsubscribe(e,t){const n=this.subscriptions.get(e);n&&n.delete(t)}}!function(e){e[e.IsSignedIn=1]="IsSignedIn",e[e.CookieConsentStatus=2]="CookieConsentStatus",e[e.OnetrustActiveCookieGroups=3]="OnetrustActiveCookieGroups",e[e.IsDarkMode=4]="IsDarkMode",e[e.ColumnArrangement=5]="ColumnArrangement",e[e.CurrentRoute=6]="CurrentRoute",e[e.TopicData=7]="TopicData",e[e.IsDocumentVisible=8]="IsDocumentVisible",e[e.IsSingleColumn=9]="IsSingleColumn"}(i||(i={}));const s=new class extends o{subscribe(e,t){this.has(e)||(e===i.IsDarkMode&&this.initBrowserThemeListener(),e===i.IsDocumentVisible&&this.initBrowserVisibilityListener()),super.subscribe(e,t)}initBrowserThemeListener(){const e=matchMedia("(prefers-color-scheme:dark)");this.set(i.IsDarkMode,e.matches),e.onchange=e=>{this.set(i.IsDarkMode,e.matches)}}initBrowserVisibilityListener(){this.set(i.IsDocumentVisible,"visible"===document.visibilityState),document.addEventListener("visibilitychange",(()=>{this.set(i.IsDocumentVisible,"visible"===document.visibilityState)}))}}("AppState")},77387:function(e,t,n){var i;function r(){return a}n.d(t,{A:function(){return i},j:function(){return r}}),function(e){e.RemovePersonalizeBtn="prg-1sw-remper",e.ForceSingleColumn="prg-1sw-frsincol",e.Clarity="prg-1sw-clarity",e.Tenorite="prg-tenorite",e.RefreshRR="prg-winrefreshrr",e.AmplifyRiver="prg-wpo-ampwhpriv",e.AmplifyRR="prg-wpo-ampwhprr",e.FontDisplay="prg-hp-display",e.FontMinus2="prg-hp-minus2",e.FontDisplaym2="prg-hp-displaym2",e.ColdStartP1="prg-1sw-cldp1",e.ColdStartP4="prg-1sw-cldp4",e.ColdStartS1="prg-1sw-clds1",e.ColdStartS4="prg-1sw-clds4",e.ColdStartC="prg-1sw-cld",e.GrayMode="prg-hp-gray",e.SectionHeaderTopStories="prg-tsec-ts",e.SectionHeaderGreetingTopStories="prg-tsec-tsg",e.SectionHeaderTrendingNow="prg-tsec-trend",e.SectionHeaderGreetingTrendingNow="prg-tsec-trendg",e.ForceSuperLinear="prg-1sw-frsplin",e.DeferralReverseFlight="prg-hp-no-defer"}(i||(i={}));const a={[i.SectionHeaderTrendingNow]:{markets:["en-us"]},[i.SectionHeaderGreetingTrendingNow]:{markets:["en-us"]},[i.ColdStartP1]:{markets:["en-us","en-in","en-ca","en-au"]},[i.ColdStartP4]:{markets:["en-us","en-in","en-ca","en-au"]},[i.ColdStartS1]:{markets:["en-us","en-in","en-ca","en-au"]},[i.ColdStartS4]:{markets:["en-us","en-in","en-ca","en-au"]},[i.ColdStartC]:{markets:["en-us","en-in","en-ca","en-au"]}}},27281:function(e,t,n){n.d(t,{n4:function(){return l}});var i=n(77387),r=n(16517),a=n(65135),o=n(5114);let s,c=!1;const d=["windirect","winp0dash","winp1taskbar","winp2juntaskbar","winp2"];i.A.SectionHeaderGreetingTopStories,i.A.SectionHeaderTopStories;function l(e){return!(!function(){if("windows"===o.T.appType)return!0;const e=(function(){let e;try{location.search&&(e=new URLSearchParams(location.search.toLowerCase()).get("ocid")),e||(e=o.T.ocid),!e&&a.M0&&(e=a.M0.getPageMetadata().contract.page.ocid)}catch(e){}return e}()||"").toLowerCase();return d.includes(e)||e.startsWith("win")}()||!e)&&(c||function(){const e=(document.head.dataset.info||"").split(";").find((e=>e.startsWith("f:")))||"";s=e.replace("f:","").toLowerCase().split(",").filter((e=>0===e.indexOf("prg-"))),c=!0}(),-1!==s.indexOf(e.toLowerCase())&&function(e){const{markets:t=[]}=(0,i.j)()[e]||{};if(!t.length)return!0;return-1!==t.indexOf(r.jG.CurrentMarket)}(e))}},5114:function(e,t,n){n.d(t,{T:function(){return i}});const i=Object.freeze(function(){const e=JSON.parse(document.head.dataset.clientSettings||"{}"),t={activityId:e.aid||"",appType:e.apptype,categoryKey:e.categoryKey,pageType:e.pagetype,verticalKey:e.verticalKey||e.vk,ocid:e.ocid};try{if(e.locale)t.market=`${e.locale.language}-${e.locale.market}`;else{const e=location.pathname.split("/");e&&e[1]&&(t.market=e[1].toLowerCase())}}catch(e){}return t}())},16339:function(e,t,n){n.d(t,{Iq:function(){return c},MD:function(){return o},gL:function(){return s}});var i=n(59049),r=n(14675);const a=new i.v("WidgetLoadTracker");function o(e){a.has(e)||("hidden"!==document.visibilityState?(0,r.c)((()=>a.set(e,!0))):a.set(e,!0))}const s=new i.v("WidgetAppState");var c;!function(e){e[e.IsDarkMode=1]="IsDarkMode",e[e.IsDashboardVisible=2]="IsDashboardVisible",e[e.ActionMenuStrings=3]="ActionMenuStrings",e[e.IsDynamicFeed=4]="IsDynamicFeed",e[e.SessionId=5]="SessionId",e[e.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",e[e.FeedRegionWidgets=7]="FeedRegionWidgets",e[e.DefaultPreviewType=8]="DefaultPreviewType",e[e.IsReauthRequired=9]="IsReauthRequired",e[e.IsWindowShown=10]="IsWindowShown",e[e.FeedRefreshPromise=11]="FeedRefreshPromise"}(c||(c={}))},75970:function(e,t,n){function i(e,t){var n;const{audienceMode:i="",locale:r={},pageType:a=""}=t||{},o=null!==(n=r.content)&&void 0!==n?n:r,{language:s,market:c}=o;return`wpo_data_ ${i}_${s}_${c}_${a}_${e}`}function r(e){return e&&e.treatments&&e.treatments.length?e.treatments.filter((e=>e&&e.id&&!e.properties)).map((e=>e.id)):null}n.d(t,{U:function(){return r},_:function(){return i}})},17579:function(e,t,n){n.d(t,{o:function(){return u}});var i=n(49218),r=n(93703),a=n(90351),o=n(19628),s=n(53357);const c=i.d`
`,d=i.d`
${(0,r.g)((e=>e.localizedStrings&&e.localizedStrings.nativeAdShopNowText),i.d`
${c}
${e=>e.localizedStrings.nativeAdShopNowText}
`)}
`;var l;s.W,function(e){e.installmentPrice="1",e.price="1",e.priceStrikeThrough="1",e.priceOff="1",e.localInventory="1",e.priceDrop="2",e.freeShipping="2",e.productRating="2",e.topViewed="2",e.sold="2",e.specialOffer="2",e.curbsidePickup="2",e.eliteBadge="3",e.condition="3"}(l||(l={}));const u=(e,t=!1,n=!1,s=50,c=!1,u=!1,g=0,p=null)=>i.d`
${(0,r.g)((e=>e.hasAnyInlineDecoration||u),i.d`
${(0,r.g)((e=>e.hasAnyInlineDecoration),i.d`
p}
>
${(0,r.g)((e=>(0,a.Z)(e,"assets.price")&&!(0,a.Z)(e,"assets.salePrice")),i.d`
e.assets.price}
part="inline-item"
priority=${l.price}
is-info-pane=${t}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.price")&&(0,a.Z)(e,"assets.salePrice")),i.d`
e.assets.salePrice}
part="inline-item"
priority=${l.price}
is-info-pane=${t}
>
e.assets.price}
part="inline-item"
priority=${l.priceStrikeThrough}
is-info-pane=${t}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.installmentPrice")),i.d`
e.assets.price}
data=${e=>e.assets.installmentPrice}
price-format-now=${e=>(0,a.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatNow")}
price-format-plan=${e=>(0,a.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatPlan")}
part="inline-item"
priority=${l.installmentPrice}
is-info-pane=${t}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.rating")),i.d`
e.assets.rating}
review-data=${e=>e.assets.review}
part="inline-item"
priority=${l.productRating}
is-info-pane=${t}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.freeShipping")),i.d`
(0,a.Z)(e.localizedStrings,"nativeAdFreeShippingText")}
part="inline-item"
priority=${l.freeShipping}
is-info-pane=${t}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.priceDrop")),i.d`
e.assets.priceDrop}
price-drop-format-short=${e=>(0,a.Z)(e.localizedStrings,"nativeAdPriceDropShortText")}
price-drop-format-long=${e=>(0,a.Z)(e.localizedStrings,"nativeAdPriceDropLongText")}
part="inline-item"
priority=${l.priceDrop}
is-info-pane=${t}
is-expanded=${c}
>
`)}
${(0,r.g)((e=>!(0,a.Z)(e,"assets.priceDrop")&&(0,a.Z)(e,"assets.viewed")),i.d`
e.assets.viewed}
top-viewed-format-short=${e=>(0,a.Z)(e.localizedStrings,"nativeAdTopViewedShortText")}
top-viewed-format-long=${e=>(0,a.Z)(e.localizedStrings,"nativeAdTopViewedLongText")}
part="inline-item"
priority=${l.topViewed}
is-info-pane=${t}
is-expanded=${c}
>
`)}
${(0,r.g)((e=>(0,a.Z)(e,"assets.curbsidePickup")&&u),i.d`
`)}
${(0,r.g)((e=>e.assets.discount&&u),i.d`
`)}
`)}
${(0,r.g)((e=>u&&t),i.d`
${d}
`)}
`)}
`},15059:function(e,t,n){n.d(t,{I7:function(){return s}});var i=n(792),r=n(22460),a=n(1418),o=n(29666);r.o,a.DecorationFreeShippingButton;const s=e=>c(e)||(0,i.zB)(e)===o.SI.FreeShippingPlainTextNonDR,c=e=>(0,i.zB)(e)===o.SI.FreeShippingInlineNonDR||(0,i.zB)(e)===o.SI.FreeShippingTopLeftNonDR||(0,i.zB)(e)===o.SI.FreeShippingTopRightNonDR||(0,i.zB)(e)===o.SI.ComboFreeShippingNonDR},2864:function(e,t,n){n.d(t,{BR:function(){return c},HG:function(){return d}});var i=n(49218),r=n(792),a=n(15027),o=n(29666),s=n(90351);a.C;const c=e=>(0,r.zB)(e)===o.SI.ComboSoldNonDR||(0,r.zB)(e)===o.SI.ComboReturnPolicyNonDR||(0,r.zB)(e)===o.SI.ComboConditionNonDR,d=()=>i.d`
(e=>{const t=(0,r.zB)(e);return t===o.SI.ComboSoldNonDR&&(0,s.Z)(e,"assets.sold")?e.assets.sold:t===o.SI.ComboReturnPolicyNonDR&&(0,s.Z)(e,"assets.returnPolicy")?e.assets.returnPolicy:t===o.SI.ComboConditionNonDR&&(0,s.Z)(e,"assets.condition")?e.assets.condition:void 0})(e)}
>
`},42950:function(e,t,n){n.d(t,{LX:function(){return u},ae:function(){return p},jv:function(){return l},nT:function(){return g}});var i=n(49218),r=n(93703),a=n(792),o=n(64789),s=n(45560),c=n(29666),d=n(90351);o.A;const l=e=>(0,a.zB)(e)===c.SI.RatingHighlightRedNonDR,u=e=>g(e)||[c.SI.RatingDefaultYellowNonDRStatic,c.SI.ComboRatingNonDR].includes((0,a.zB)(e)),g=e=>(0,a.zB)(e)===c.SI.RatingHighlightRedNonDR||(0,a.zB)(e)===c.SI.RatingHighlightYellowNonDR||(0,a.zB)(e)===c.SI.RatingHighlightYellowNonDRStatic,p=()=>i.d`
${(0,r.g)((e=>g(e)&&(0,d.Z)(e,"assets.rating")),i.d`
e.id}
rating=${e=>e.assets&&e.assets.rating}
starType=${e=>(e=>(0,a.zB)(e)===c.SI.RatingHighlightRedNonDR?s.fx.RED:s.fx.YELLOW)(e)}
:isStaticMode=${e=>(e=>(0,a.zB)(e)===c.SI.RatingHighlightYellowNonDRStatic)(e)}
>
`)}
${(0,r.g)((e=>!g(e)&&(0,d.Z)(e,"assets.rating")),i.d`
e.assets.rating}
is-show-review=${!1}
>
`)}
`},62319:function(e,t,n){e.exports=n.p+"PESeasonalPattern1.6ba396e52344a0be2b2e.png"},64262:function(e,t,n){e.exports=n.p+"PESeasonalPattern1_dark.922ceb6e18451da6522b.png"},17525:function(e,t,n){e.exports=n.p+"PESeasonalPattern2.9146cc15aa991049119a.png"},65503:function(e,t,n){e.exports=n.p+"PESeasonalPattern2_dark.c76d17a51dd712783dfd.png"},11593:function(e,t,n){n.d(t,{l:function(){return i}});const i=n(36e3).DI.createInterface()},53692:function(e,t,n){n.d(t,{j:function(){return s}});var i=n(33940),r=n(99452),a=n(26415),o=n(92773);class s{constructor(e,t){this.props=e,this.cb=t}connectedCallback(e){const{source:t}=e;this.props.forEach((e=>{r.y$.getNotifier(t).subscribe(this,e)})),this.handleChange(t)}disconnectedCallback(e){const{source:t}=e;this.props.forEach((e=>{r.y$.getNotifier(t).unsubscribe(this,e)})),t.$fastController.removeStyles(this.styles)}handleChange(e){this.styles=this.cb(e),e.$fastController.addStyles(this.styles)}}(0,i.gn)([(0,o.Et)(a.a4J,"CssInjectionBehavior.Bind")],s.prototype,"connectedCallback",null),(0,i.gn)([(0,o.Et)(a.a4J,"CssInjectionBehavior.Unbind")],s.prototype,"disconnectedCallback",null),(0,i.gn)([(0,o.Et)(a.a4J,"CssInjectionBehaviorHandleChange")],s.prototype,"handleChange",null)},41503:function(e,t,n){n.d(t,{g:function(){return s}});var i=n(33940),r=n(99452),a=n(26415),o=n(92773);class s{constructor(e){this.propertyName=e}connectedCallback(e){r.y$.getNotifier(e.source).subscribe(this,this.propertyName)}disconnectedCallback(e){this.styles&&e.source.$fastController.removeStyles(this.styles)}handleChange(e,t){this.styles&&e.$fastController.removeStyles(this.styles),this.styles=e[t],e.$fastController.addStyles(this.styles)}}(0,i.gn)([(0,o.Et)(a.a4J,"PropertyBehavior.Bind")],s.prototype,"connectedCallback",null),(0,i.gn)([(0,o.Et)(a.a4J,"PropertyBehavior.Unbind")],s.prototype,"disconnectedCallback",null),(0,i.gn)([(0,o.Et)(a.a4J,"PropertyBehavior.HandleChange")],s.prototype,"handleChange",null)},48072:function(e,t,n){n.d(t,{i:function(){return a}});var i=n(99452),r=n(90351);class a{constructor(e,t,n){this.propertyPath=e,this.value=t,this.styles=n}connectedCallback(e){const{source:t}=e;i.y$.getNotifier(t).subscribe(this,this.propertyPath),this.handleChange(t,this.propertyPath)}disconnectedCallback(e){const{source:t}=e;i.y$.getNotifier(t).unsubscribe(this,this.propertyPath),t.$fastController.removeStyles(this.styles)}handleChange(e,t){(0,r.Z)(e,t)===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}}}]);