=P.d`
<msn-actions-menu :referrerButton=${e=>e.actionsMenuButtonElement} :menuItems=${e=>e.actionsMenuProps.menuItems}>
</msn-actions-menu>
`,G=P.d`<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_b_5099_112902)">
    <path d="M1 21C1 9.95431 9.95431 1 21 1C32.0457 1 41 9.95431 41 21C41 32.0457 32.0457 41 21 41C9.95431 41 1 32.0457 1 21Z" fill="url(#paint0_linear_5099_112902)" />
    <g filter="url(#filter1_dd_5099_112902)">
        <path d="M28.2221 19.6846C29.2586 20.2544 29.2586 21.7437 28.2221 22.3135L18.2226 27.8105C17.2229 28.36 16 27.6367 16 26.496L16 15.5021C16 14.3614 17.2229 13.6381 18.2226 14.1877L28.2221 19.6846Z" fill="white" />
    </g>
    <path d="M21 40C10.5066 40 2 31.4934 2 21H0C0 32.598 9.40202 42 21 42V40ZM40 21C40 31.4934 31.4934 40 21 40V42C32.598 42 42 32.598 42 21H40ZM21 2C31.4934 2 40 10.5066 40 21H42C42 9.40202 32.598 0 21 0V2ZM21 0C9.40202 0 0 9.40202 0 21H2C2 10.5066 10.5066 2 21 2V0Z" fill="url(#paint1_linear_5099_112902)" />
</g>
<defs>
    <filter id="filter0_b_5099_112902" x="-10" y="-10" width="62" height="62" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
        <feFlood flood-opacity="0" result="BackgroundImageFix" />
        <feGaussianBlur in="BackgroundImage" stdDeviation="5" />
        <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_5099_112902" />
        <feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_5099_112902" result="shape" />
    </filter>
    <filter id="filter1_dd_5099_112902" x="7.4" y="8.1" width="27.2" height="28.1" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
        <feFlood flood-opacity="0" result="BackgroundImageFix" />
        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" />
        <feOffset />
        <feGaussianBlur stdDeviation="1.45" />
        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0" />
        <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5099_112902" />
        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" />
        <feOffset dy="1.6" />
        <feGaussianBlur stdDeviation="1.8" />
        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0" />
        <feBlend mode="normal" in2="effect1_dropShadow_5099_112902" result="effect2_dropShadow_5099_112902" />
        <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_5099_112902" result="shape" />
    </filter>
    <linearGradient id="paint0_linear_5099_112902" x1="1" y1="1" x2="41" y2="41" gradientUnits="userSpaceOnUse">
        <stop stop-opacity="0.6" />
        <stop offset="1" stop-opacity="0.8" />
    </linearGradient>
    <linearGradient id="paint1_linear_5099_112902" x1="21" y1="1" x2="21" y2="41" gradientUnits="userSpaceOnUse">
        <stop stop-color="white" stop-opacity="0.4" />
        <stop offset="1" stop-color="white" stop-opacity="0.2" />
    </linearGradient>
</defs>
</svg>`,q=P.d`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="12" fill="#0078D4"/>
<path d="M7.5 12C7.5 11.7239 7.72386 11.5 8 11.5L14.7929 11.5L12.1464 8.85355C11.9512 8.65829 11.9512 8.34171 12.1464 8.14645C12.3417 7.95118 12.6583 7.95118 12.8536 8.14645L16.3536 11.6464C16.5488 11.8417 16.5488 12.1583 16.3536 12.3536L12.8536 15.8536C12.6583 16.0488 12.3417 16.0488 12.1464 15.8536C11.9512 15.6583 11.9512 15.3417 12.1464 15.1464L14.7929 12.5L8 12.5C7.72386 12.5 7.5 12.2761 7.5 12Z" fill="white"/>
</svg>
`,R=P.d`
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
        <path d="M6 0C9.31371 0 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0ZM6 1C3.23858 1 1 3.23858 1 6C1 8.76142 3.23858 11 6 11C8.76142 11 11 8.76142 11 6C11 3.23858 8.76142 1 6 1ZM5.50153 3C5.74699 3 5.95114 3.17688 5.99347 3.41012L6.00153 3.5V6H7.5C7.77614 6 8 6.22386 8 6.5C8 6.74546 7.82312 6.94961 7.58988 6.99194L7.5 7H5.50153C5.25607 7 5.05192 6.82312 5.00958 6.58988L5.00153 6.5V3.5C5.00153 3.22386 5.22538 3 5.50153 3Z" fill="white" />
    </svg>`,N=P.d`
<div class="video-partner-duration">
    <div class="video-duration  dark-gradient ">
        ${R}
        ${e=>e.videoDurationStr}
    </div>
</div> `,W=P.d`
    ${(0,E.rx)(((e,t)=>e.workoutCards),P.d`
    <div class="video-card" aria-hidden="${(e,t)=>t.index+1!==t.parent.currentCard}" >
        <a class="video-card-action" href=${e=>e.workoutLandingPageURL}
        ${(0,U.X)(((e,t)=>t.parent.fitnessVideoCardTelemetryTag))} @click="${(e,t)=>t.parent.handleVideoCardClick(t.event,e.title,e.workoutLandingPageURL,e.debugString)}"  data-is-focuable="${(e,t)=>t.index+1===t.parent.currentCard}" tabindex="${(e,t)=>t.index+1===t.parent.currentCard?0:-1}">
            <div class="video-card-content">
                <div slot="image" class="workout-image">
                    <img class="video-thumbnail-image" src=${(e,t)=>t.parent.getImageURL(e.thumbnail.thumbnailURLBing)} alt=${e=>e.title} />
                </div>
                <div class="video-play-icon-center">
                    ${G}
                </div>
                ${e=>e.videoDurationStr?N:null}
                <div class="video-card-data">
                    <div class="video-title text-clamp  dark-gradient ">
                        ${e=>e.title}
                    </div>
                </div>
            </div>
        </a>
    </div>
    `,{positioning:!0})}
`,B=P.d`
<div class="health-fitness-carousel">
<div class="card-container" ${(0,V.i)("fitnessCardRef")} ${(0,U.X)((e=>e.healthFitnessCardTelemetryTag))}  style="background:${e=>e.getGradientRGBColor()}">
    <div class="card-header  dark-gradient">
        <a class="card-header-link" ${(0,U.X)((e=>e.fitnessHeaderTelemetryTag))} href="${e=>e.getFitnessHubUrl()}" target="_blank" >
            <div class="card-header-text">${e=>e.strings.category}</div>
        </a>
        <div class="more-actions dark-gradient">
            <fluent-button
                    class= "toggle-button"
                    @click=${(e,t)=>e.toggleActionMenu&&e.toggleActionMenu(!e.isActionMenuOpen,t.event)}
                    ${(0,U.X)((e=>e.ellipsisTelemetryTag))}
                    title="${e=>e.strings.moreSettingsText}"
                    aria-label="${e=>e.strings.moreSettingsText}"
                >
                    ${L.Z}
            </fluent-button>
        </div>
    </div>
    <div class="carousal-container" id="carousalContainer" aria-live="polite" aria-atomic="true" ${(0,V.i)("carousalRef")}>
        ${(0,$.g)((e=>e.workoutCards.length>0),W)}
    </div>
    <div class="card-footer">
        <div class="card-pagination  dark-gradient ">
            <button slot="previous" aria-label="previous" ${(0,U.X)((e=>e.previousButtonClickTelemetryTag))} class="flipper-svg dark-gradient  ${e=>1!==e.currentCard?"active":"disable"}" @click="${e=>1!==e.currentCard?e.previousCard():null}">
                <svg width="10px" height="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048">
                    <path d="M1390 2023l-999-999 999-999 121 121-878 878 878 878-121 121z" />
                </svg>
            </button>
            <span class="paginationDivider">${e=>e.currentCard}/${e=>e.totalCards}</span>
            <button slot="next" aria-label="next"  ${(0,U.X)((e=>e.nextButtonClickTelemetryTag))} class="flipper-svg dark-gradient  ${e=>e.currentCard!==e.totalCards?"active":""}" @click="${e=>e.nextCard()}">
                <svg width="10px" height="20px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048">
                    <path d="M658 2023l-121-121 878-878-878-878L658 25l999 999-999 999z" />
                </svg>
            </button>
        </div>
        <div class="explore-more">
            <a class="explore-more-button  dark-gradient " ${(0,U.X)((e=>e.footerClickTelemetryTag))} href="${e=>e.getFitnessHubUrl()}" target="blank">
                <span> ${e=>e.strings.discoverMoreOnHealth} </span>
                ${q}
            </a>
        </div>
    </div>
</div>
</div>
${(0,$.g)((e=>e.isActionMenuOpen),H)}
`;var _,j=r(8994),Y=r(88367);!function(e){e.ltr="ltr",e.rtl="rtl"}(_||(_={}));var z=r(92764),J=r(63997),Z=r(57653),X=r(52502),Q=r(81562);function K(e,t){const r=e.relativeLuminance>t.relativeLuminance?e:t,i=e.relativeLuminance>t.relativeLuminance?t:e;return(r.relativeLuminance+.05)/(i.relativeLuminance+.05)}const ee=Object.freeze({create:(e,t,r)=>new te(e,t,r),from:e=>new te(e.r,e.g,e.b)});class te extends Z.h{constructor(e,t,r){super(e,t,r,1),this.toColorString=this.toStringHexRGB,this.contrast=K.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=(0,Q.hM)(this)}static fromObject(e){return new te(e.r,e.g,e.b)}}function re(e,t,r=0,i=e.length-1){if(i===r)return e[r];const a=Math.floor((i-r)/2)+r;return t(e[a])?re(e,t,r,a):re(e,t,a+1,i)}const ie=(-.1+Math.sqrt(.21))/2;function ae(e){return function(e){return e.relativeLuminance<=ie}(e)?-1:1}const ne=Object.freeze({create:function(e,t,r){return"number"==typeof e?ne.from(ee.create(e,t,r)):ne.from(e)},from:function(e){return function(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in t)if(typeof t[r]!=typeof e[r])return!1;return!0}(e)?oe.from(e):oe.from(ee.create(e.r,e.g,e.b))}});class oe{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,r,i){void 0===r&&(r=this.closestIndexOf(e));let a=this.swatches;const n=this.lastIndex;let o=r;void 0===i&&(i=ae(e));return-1===i&&(a=this.reversedSwatches,o=n-o),re(a,(r=>K(e,r)>=t),o,n)}get(e){return this.swatches[e]||this.swatches[(0,z.uZ)(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const r=this.swatches.reduce(((t,r)=>Math.abs(r.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?r:t));return t=this.swatches.indexOf(r),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new oe(e,Object.freeze(new J.b({baseColor:Z.h.fromObject(e)}).palette.map((e=>{const t=(0,X.in)(e.toStringHexRGB());return ee.create(t.r,t.g,t.b)}))))}}const se=ee.create(1,1,1),le=ee.create(0,0,0),ue=ee.from((0,X.in)("#808080")),ce=ee.from((0,X.in)("#DA1A5F"));function de(e){return ee.create(e,e,e)}var he;function ge(e,t,r,i,a,n){return Math.max(e.closestIndexOf(de(t))+r,i,a,n)}!function(e){e[e.LightMode=1]="LightMode",e[e.DarkMode=.23]="DarkMode"}(he||(he={}));const{create:fe}=Y.L;function ve(e){return Y.L.create({name:e,cssCustomPropertyName:null})}fe("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),fe("base-height-multiplier").withDefault(10),fe("base-horizontal-spacing-multiplier").withDefault(3);const pe=fe("base-layer-luminance").withDefault(he.DarkMode),ye=(fe("control-corner-radius").withDefault(4),fe("density").withDefault(0),fe("design-unit").withDefault(4),fe("direction").withDefault(_.ltr),fe("disabled-opacity").withDefault(.3),fe("stroke-width").withDefault(1),fe("focus-stroke-width").withDefault(2),fe("type-ramp-base-font-size").withDefault("14px"),fe("type-ramp-base-line-height").withDefault("20px"),fe("type-ramp-minus-1-font-size").withDefault("12px")),me=(fe("type-ramp-minus-1-line-height").withDefault("16px"),fe("type-ramp-minus-2-font-size").withDefault("10px"),fe("type-ramp-minus-2-line-height").withDefault("16px"),fe("type-ramp-plus-1-font-size").withDefault("16px"),fe("type-ramp-plus-1-line-height").withDefault("24px"),fe("type-ramp-plus-2-font-size").withDefault("20px"),fe("type-ramp-plus-2-line-height").withDefault("28px"),fe("type-ramp-plus-3-font-size").withDefault("28px"),fe("type-ramp-plus-3-line-height").withDefault("36px"),fe("type-ramp-plus-4-font-size").withDefault("34px"),fe("type-ramp-plus-4-line-height").withDefault("44px"),fe("type-ramp-plus-5-font-size").withDefault("46px"),fe("type-ramp-plus-5-line-height").withDefault("56px"),fe("type-ramp-plus-6-font-size").withDefault("60px"),fe("type-ramp-plus-6-line-height").withDefault("72px"),ve("accent-fill-rest-delta").withDefault(0),ve("accent-fill-hover-delta").withDefault(4)),we=ve("accent-fill-active-delta").withDefault(-5),Ce=ve("accent-fill-focus-delta").withDefault(0),Te=ve("accent-foreground-rest-delta").withDefault(0),xe=ve("accent-foreground-hover-delta").withDefault(6),Oe=ve("accent-foreground-active-delta").withDefault(-4),Se=ve("accent-foreground-focus-delta").withDefault(0),be=ve("neutral-fill-rest-delta").withDefault(7),ke=ve("neutral-fill-hover-delta").withDefault(10),Fe=ve("neutral-fill-active-delta").withDefault(5),Ie=ve("neutral-fill-focus-delta").withDefault(0),De=ve("neutral-fill-input-rest-delta").withDefault(0),Ae=ve("neutral-fill-input-hover-delta").withDefault(0),Pe=ve("neutral-fill-input-active-delta").withDefault(0),Ee=ve("neutral-fill-input-focus-delta").withDefault(0),Ve=ve("neutral-fill-stealth-rest-delta").withDefault(0),$e=ve("neutral-fill-stealth-hover-delta").withDefault(5),Le=ve("neutral-fill-stealth-active-delta").withDefault(3),Me=ve("neutral-fill-stealth-focus-delta").withDefault(0),Ue=ve("neutral-fill-strong-rest-delta").withDefault(0),He=ve("neutral-fill-strong-hover-delta").withDefault(8),Ge=ve("neutral-fill-strong-active-delta").withDefault(-5),qe=ve("neutral-fill-strong-focus-delta").withDefault(0),Re=ve("neutral-fill-layer-rest-delta").withDefault(3),Ne=ve("neutral-stroke-rest-delta").withDefault(25),We=ve("neutral-stroke-hover-delta").withDefault(40),Be=ve("neutral-stroke-active-delta").withDefault(16),_e=ve("neutral-stroke-focus-delta").withDefault(25),je=ve("neutral-stroke-divider-rest-delta").withDefault(8),Ye=fe("neutral-color").withDefault(ue),ze=ve("neutral-palette").withDefault((e=>ne.from(Ye.getValueFor(e)))),Je=fe("accent-color").withDefault(ce),Ze=ve("accent-palette").withDefault((e=>ne.from(Je.getValueFor(e)))),Xe=ve("neutral-layer-card-container-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=pe.getValueFor(e),i=Re.getValueFor(e),t.get(t.closestIndexOf(de(r))+i);var t,r,i}}),Qe=(fe("neutral-layer-card-container").withDefault((e=>Xe.getValueFor(e).evaluate(e))),ve("neutral-layer-floating-recipe").withDefault({evaluate:e=>function(e,t,r){const i=e.closestIndexOf(de(t))-r;return e.get(i-r)}(ze.getValueFor(e),pe.getValueFor(e),Re.getValueFor(e))})),Ke=(fe("neutral-layer-floating").withDefault((e=>Qe.getValueFor(e).evaluate(e))),ve("neutral-layer-1-recipe").withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(de(t)))}(ze.getValueFor(e),pe.getValueFor(e))})),et=fe("neutral-layer-1").withDefault((e=>Ke.getValueFor(e).evaluate(e))),tt=ve("neutral-layer-2-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=pe.getValueFor(e),i=Re.getValueFor(e),a=be.getValueFor(e),n=ke.getValueFor(e),o=Fe.getValueFor(e),t.get(ge(t,r,i,a,n,o));var t,r,i,a,n,o}}),rt=(fe("neutral-layer-2").withDefault((e=>tt.getValueFor(e).evaluate(e))),ve("neutral-layer-3-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=pe.getValueFor(e),i=Re.getValueFor(e),a=be.getValueFor(e),n=ke.getValueFor(e),o=Fe.getValueFor(e),t.get(ge(t,r,i,a,n,o)+i);var t,r,i,a,n,o}})),it=(fe("neutral-layer-3").withDefault((e=>rt.getValueFor(e).evaluate(e))),ve("neutral-layer-4-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=pe.getValueFor(e),i=Re.getValueFor(e),a=be.getValueFor(e),n=ke.getValueFor(e),o=Fe.getValueFor(e),t.get(ge(t,r,i,a,n,o)+2*i);var t,r,i,a,n,o}})),at=(fe("neutral-layer-4").withDefault((e=>it.getValueFor(e).evaluate(e))),fe("fill-color").withDefault((e=>et.getValueFor(e))));var nt;!function(e){e[e.normal=4.5]="normal",e[e.large=7]="large"}(nt||(nt={}));const ot=fe({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,i,a,n,o,s,l){const u=e.source,c=t.closestIndexOf(r)>=Math.max(o,s,l)?-1:1,d=e.closestIndexOf(u),h=d+-1*c*i,g=h+c*a,f=h+c*n;return{rest:e.get(h),hover:e.get(d),active:e.get(g),focus:e.get(f)}}(Ze.getValueFor(e),ze.getValueFor(e),t||at.getValueFor(e),me.getValueFor(e),we.getValueFor(e),Ce.getValueFor(e),be.getValueFor(e),ke.getValueFor(e),Fe.getValueFor(e))}),st=fe("accent-fill-rest").withDefault((e=>ot.getValueFor(e).evaluate(e).rest)),lt=fe("accent-fill-hover").withDefault((e=>ot.getValueFor(e).evaluate(e).hover)),ut=fe("accent-fill-active").withDefault((e=>ot.getValueFor(e).evaluate(e).active)),ct=fe("accent-fill-focus").withDefault((e=>ot.getValueFor(e).evaluate(e).focus)),dt=e=>(t,r)=>function(e,t){return e.contrast(se)>=t?se:le}(r||st.getValueFor(t),e),ht=ve("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>dt(nt.normal)(e,t)}),gt=(fe("foreground-on-accent-rest").withDefault((e=>ht.getValueFor(e).evaluate(e,st.getValueFor(e)))),fe("foreground-on-accent-hover").withDefault((e=>ht.getValueFor(e).evaluate(e,lt.getValueFor(e)))),fe("foreground-on-accent-active").withDefault((e=>ht.getValueFor(e).evaluate(e,ut.getValueFor(e)))),fe("foreground-on-accent-focus").withDefault((e=>ht.getValueFor(e).evaluate(e,ct.getValueFor(e)))),ve("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>dt(nt.large)(e,t)})),ft=(fe("foreground-on-accent-rest-large").withDefault((e=>gt.getValueFor(e).evaluate(e,st.getValueFor(e)))),fe("foreground-on-accent-hover-large").withDefault((e=>gt.getValueFor(e).evaluate(e,lt.getValueFor(e)))),fe("foreground-on-accent-active-large").withDefault((e=>gt.getValueFor(e).evaluate(e,ut.getValueFor(e)))),fe("foreground-on-accent-focus-large").withDefault((e=>gt.getValueFor(e).evaluate(e,ct.getValueFor(e)))),e=>(t,r)=>function(e,t,r,i,a,n,o){const s=e.source,l=e.closestIndexOf(s),u=ae(t),c=l+(1===u?Math.min(i,a):Math.max(u*i,u*a)),d=e.colorContrast(t,r,c,u),h=e.closestIndexOf(d),g=h+u*Math.abs(i-a);let f,v;return(1===u?i<a:u*i>u*a)?(f=h,v=g):(f=g,v=h),{rest:e.get(f),hover:e.get(v),active:e.get(f+u*n),focus:e.get(f+u*o)}}(Ze.getValueFor(t),r||at.getValueFor(t),e,Te.getValueFor(t),xe.getValueFor(t),Oe.getValueFor(t),Se.getValueFor(t))),vt=fe({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ft(nt.normal)(e,t)}),pt=(fe("accent-foreground-rest").withDefault((e=>vt.getValueFor(e).evaluate(e).rest)),fe("accent-foreground-hover").withDefault((e=>vt.getValueFor(e).evaluate(e).hover)),fe("accent-foreground-active").withDefault((e=>vt.getValueFor(e).evaluate(e).active)),fe("accent-foreground-focus").withDefault((e=>vt.getValueFor(e).evaluate(e).focus)),fe({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,i,a,n){const o=e.closestIndexOf(t),s=o>=Math.max(r,i,a,n)?-1:1;return{rest:e.get(o+s*r),hover:e.get(o+s*i),active:e.get(o+s*a),focus:e.get(o+s*n)}}(ze.getValueFor(e),t||at.getValueFor(e),be.getValueFor(e),ke.getValueFor(e),Fe.getValueFor(e),Ie.getValueFor(e))})),yt=(fe("neutral-fill-rest").withDefault((e=>pt.getValueFor(e).evaluate(e).rest)),fe("neutral-fill-hover").withDefault((e=>pt.getValueFor(e).evaluate(e).hover)),fe("neutral-fill-active").withDefault((e=>pt.getValueFor(e).evaluate(e).active)),fe("neutral-fill-focus").withDefault((e=>pt.getValueFor(e).evaluate(e).focus)),fe({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,i,a,n){const o=ae(t),s=e.closestIndexOf(t);return{rest:e.get(s-o*r),hover:e.get(s-o*i),active:e.get(s-o*a),focus:e.get(s-o*n)}}(ze.getValueFor(e),t||at.getValueFor(e),De.getValueFor(e),Ae.getValueFor(e),Pe.getValueFor(e),Ee.getValueFor(e))})),mt=(fe("neutral-fill-input-rest").withDefault((e=>yt.getValueFor(e).evaluate(e).rest)),fe("neutral-fill-input-hover").withDefault((e=>yt.getValueFor(e).evaluate(e).hover)),fe("neutral-fill-input-active").withDefault((e=>yt.getValueFor(e).evaluate(e).active)),fe("neutral-fill-input-focus").withDefault((e=>yt.getValueFor(e).evaluate(e).focus)),fe({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,i,a,n,o,s,l,u){const c=Math.max(r,i,a,n,o,s,l,u),d=e.closestIndexOf(t),h=d>=c?-1:1;return{rest:e.get(d+h*r),hover:e.get(d+h*i),active:e.get(d+h*a),focus:e.get(d+h*n)}}(ze.getValueFor(e),t||at.getValueFor(e),Ve.getValueFor(e),$e.getValueFor(e),Le.getValueFor(e),Me.getValueFor(e),be.getValueFor(e),ke.getValueFor(e),Fe.getValueFor(e),Ie.getValueFor(e))})),wt=(fe("neutral-fill-stealth-rest").withDefault((e=>mt.getValueFor(e).evaluate(e).rest)),fe("neutral-fill-stealth-hover").withDefault((e=>mt.getValueFor(e).evaluate(e).hover)),fe("neutral-fill-stealth-active").withDefault((e=>mt.getValueFor(e).evaluate(e).active)),fe("neutral-fill-stealth-focus").withDefault((e=>mt.getValueFor(e).evaluate(e).focus)),fe({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,r,i,a,n){const o=ae(t),s=e.closestIndexOf(e.colorContrast(t,4.5)),l=s+o*Math.abs(r-i);let u,c;return(1===o?r<i:o*r>o*i)?(u=s,c=l):(u=l,c=s),{rest:e.get(u),hover:e.get(c),active:e.get(u+o*a),focus:e.get(u+o*n)}}(ze.getValueFor(e),t||at.getValueFor(e),Ue.getValueFor(e),He.getValueFor(e),Ge.getValueFor(e),qe.getValueFor(e))})),Ct=(fe("neutral-fill-strong-rest").withDefault((e=>wt.getValueFor(e).evaluate(e).rest)),fe("neutral-fill-strong-hover").withDefault((e=>wt.getValueFor(e).evaluate(e).hover)),fe("neutral-fill-strong-active").withDefault((e=>wt.getValueFor(e).evaluate(e).active)),fe("neutral-fill-strong-focus").withDefault((e=>wt.getValueFor(e).evaluate(e).focus)),ve("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>function(e,t,r){const i=e.closestIndexOf(t);return e.get(i-(i<r?-1*r:r))}(ze.getValueFor(e),t||at.getValueFor(e),Re.getValueFor(e))})),Tt=(fe("neutral-fill-layer-rest").withDefault((e=>Ct.getValueFor(e).evaluate(e))),ve("focus-stroke-outer-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=at.getValueFor(e),t.colorContrast(r,3.5);var t,r}})),xt=fe("focus-stroke-outer").withDefault((e=>Tt.getValueFor(e).evaluate(e))),Ot=ve("focus-stroke-inner-recipe").withDefault({evaluate:e=>{return t=Ze.getValueFor(e),r=at.getValueFor(e),i=xt.getValueFor(e),t.colorContrast(i,3.5,t.closestIndexOf(t.source),-1*ae(r));var t,r,i}}),St=(fe("focus-stroke-inner").withDefault((e=>Ot.getValueFor(e).evaluate(e))),ve("neutral-foreground-hint-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=at.getValueFor(e),t.colorContrast(r,4.5);var t,r}})),bt=(fe("neutral-foreground-hint").withDefault((e=>St.getValueFor(e).evaluate(e))),ve("neutral-foreground-recipe").withDefault({evaluate:e=>{return t=ze.getValueFor(e),r=at.getValueFor(e),t.colorContrast(r,14);var t,r}})),kt=(fe("neutral-foreground-rest").withDefault((e=>bt.getValueFor(e).evaluate(e))),fe({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,r,i,a,n){const o=e.closestIndexOf(t),s=ae(t),l=o+s*r,u=l+s*(i-r),c=l+s*(a-r),d=l+s*(n-r);return{rest:e.get(l),hover:e.get(u),active:e.get(c),focus:e.get(d)}}(ze.getValueFor(e),at.getValueFor(e),Ne.getValueFor(e),We.getValueFor(e),Be.getValueFor(e),_e.getValueFor(e))})),Ft=(fe("neutral-stroke-rest").withDefault((e=>kt.getValueFor(e).evaluate(e).rest)),fe("neutral-stroke-hover").withDefault((e=>kt.getValueFor(e).evaluate(e).hover)),fe("neutral-stroke-active").withDefault((e=>kt.getValueFor(e).evaluate(e).active)),fe("neutral-stroke-focus").withDefault((e=>kt.getValueFor(e).evaluate(e).focus)),ve("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>function(e,t,r){return e.get(e.closestIndexOf(t)+ae(t)*r)}(ze.getValueFor(e),t||at.getValueFor(e),je.getValueFor(e))}));fe("neutral-stroke-divider-rest").withDefault((e=>Ft.getValueFor(e).evaluate(e)));const It=r(76298).i`
:host {
    border-radius: 6px;
    --elevation: 4;
    font-family: var(--body-font);
    font-size: 12px;
    line-height: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

.health-fitness-carousel {
    background: #fff;
    height: 304px;
    width: 300px;
    border-radius: 8px;
}

.card-container {
    position: relative;
    width: 300px;
    height: 304px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow: hidden;
    outline: none;
    background-color: var(--background-color);
    color: #fff;
    border-radius: 6px;
    -webkit-font-smoothing: antialiased;
}

.toggle-button {
    border-radius: 50%;
    height: 24px;
    min-width: 24px;
    width: 24px;
    background: rgba(255,255,255,0.09);
}

.toggle-button:hover {
    background: rgba(255,255,255,0.2);
}

.toggle-button svg path {
    fill: #fff
}

.more-actions {
    width: 24px;
    height: 24px;
    z-index: 2;
    cursor:pointer;
    position: absolute;
    right: 16px;
    top: 12px;
}

.card-header {
    margin: 16px 16px 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.card-header-text {
    font-size: ${ye};
    line-height: ${j.vgC};
    text-transform: uppercase;
    font-weight: 600;
}

.card-header-text:hover {
    text-decoration: underline;
}

.carousal-container {
    display: flex;
    transition: transform 0.25s ease-in-out;
    flex: 1;
}

.video-card {
    width: 268px;
    position: relative;
    margin-inline-start: 16px;
    cursor: pointer;
}

.video-card:hover .video-play-icon-center svg, 
.video-card:focus-visible .video-play-icon-center svg ,
.video-card:focus-within .video-play-icon-center svg {
    transform: scale(1.15);
}

.video-card-action {
    display: block;
}

.video-card-action:hover .video-title {
    text-decoration: none;
}

.workout-image {
    overflow: hidden;
    cursor: pointer;
    width: 268px;
    height: 151px;
    border-radius: 4px;
}

.video-thumbnail-image {
    width: 268px;
    height: 151px;
    border-radius: 4px;
}

.video-play-icon-center {
    position: absolute;
    left: calc(50% - 20px);
    top: calc(50% - 40px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    pointer-events: none;
}

.video-play-icon-center svg {
    transition: 0.5s all ease-in-out;
}

.video-card-data {
    padding-top: 12px;
}

.video-partner-duration {
    position: absolute;
    top: 125px;
    left: 6px;
    transition: 0.3s all ease-in-out;
}

.video-duration {
    font-size: ${ye};
    line-height: ${j.vgC};
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px 2px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-duration svg {
    margin-inline-end: 4px;
}

.video-duration {
    background: rgba(0, 0, 0, 0.54);
}

.video-title {
    font-size: ${j.PwC};
    line-height: 22px;
    font-weight: 600;
}

.text-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
}

.card-footer {
    padding: 17px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-pagination {
    display: inline-flex;
    align-items: center;
}

.flipper-svg {
    display: inline-flex;
    cursor: pointer;
    border-radius: 50%;
    inset: 0px;
    border: 1px solid transparent;
    transition: all 0.1s ease-in-out 0s;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.09);
}

.flipper-svg.disable {
    cursor: default;
    opacity: 0.8;
}

.flipper-svg.disable:hover {
    background: rgba(255, 255, 255, 0.09);
}

.flipper-svg:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flipper-svg svg {
    fill:  #fff;
}

.paginationDivider {
    margin: 0 8px;
}

.explore-more-button {
    border: none;
    font-size: ${ye};
    line-height: ${j.vgC};
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.explore-more-button:hover {
    text-decoration: underline;
}

.explore-more-button svg {
    margin-inline-start: 8px;
}
`,Dt={experienceConfigSchema:s}},4875:function(e,t,r){r.d(t,{AN:function(){return f},F4:function(){return m},VQ:function(){return y},bk:function(){return w},dC:function(){return g}});var i=r(33940),a=r(53578),n=r(66213),o=r(29803),s=r(38601),l=r(75270),u=r(53076),c=r(93450),d=r(33379);let h=!1;const g="stn",f="aad";var v,p;function y(){const e=c._.getInstance().rootReducer.connector(u.z.SharedState);return!!e&&e.getCurrentState().useEnterpriseCompliance}!function(e){e[e.kNoError=0]="kNoError",e[e.kTokenFetchUserInteractionRequired=13]="kTokenFetchUserInteractionRequired",e[e.kTokenFetchProviderError=15]="kTokenFetchProviderError",e[e.kInteractionRequired=24]="kInteractionRequired",e[e.kUnsupportedSovereignty=60]="kUnsupportedSovereignty",e[e.kSovereigntyDetectionFailed=61]="kSovereigntyDetectionFailed"}(v||(v={})),function(e){e[e.UnsupportedSovereignty=0]="UnsupportedSovereignty",e[e.CnDomain=1]="CnDomain",e[e.AuthApiUnavailable=2]="AuthApiUnavailable"}(p||(p={}));function m(e,t,r,n=!1){return(0,i.mG)(this,void 0,void 0,(function*(){const e={id:t,friendlyName:r},i=(0,l.Kf)();return(e=>{var t,r;if(!e)return null;if(e.authToken)return{token:e.authToken,status:a.pm.success,isSuccess:!0,isValid:!0};let i,n="",l=a.pm.otherError,u=!1,c=null===(t=e.error)||void 0===t?void 0:t.internalError;switch(null===(r=e.error)||void 0===r?void 0:r.status){case o.H.InteractionRequired:l=a.pm.mfaRequired;break;case s.$.CnDomain:return c={internal_error_code:p.CnDomain},{status:l,errorInfo:c};case s.$.UnsupportedSovereignty:return c={internal_error_code:p.UnsupportedSovereignty},{status:l,errorInfo:c};case s.$.AccountInfoUnavailable:return c={internal_error_code:p.AuthApiUnavailable},{status:l,errorInfo:c};case o.H.MaySucceedOnRetry:"Invalid Auth Token returned"==e.error.message&&(n="",l=a.pm.success,u=!0,i=!1)}return{token:n,status:l,isSuccess:u,isValid:i,errorInfo:c}})(yield i.getAuthData(e,n))}))}function w(){return(0,i.mG)(this,void 0,void 0,(function*(){return(0,n.Yq)().AccountInfoPromise.then((e=>e&&e.tenant_id?e.oid?`Oid:${e.oid}@${e.tenant_id}`:`TID:${e.tenant_id}`:""))}))}(0,d.N)()&&(h?Promise.resolve():new Promise((e=>{const t=()=>{h=!0,window.removeEventListener("TelemetryPageViewNotificationEvent",t),e()};window.addEventListener("TelemetryPageViewNotificationEvent",t)})))},19809:function(e,t,r){r.d(t,{$:function(){return i}});var i,a=r(33940),n=r(66213),o=r(54804),s=r(90846),l=r(53578),u=r(2040),c=r(88352),d=r(47903),h=r(4875),g=r(79095),f=r(51671),v=r(33379),p=r(2140),y=r(75270),m=r(79022);!function(e){function t(e=null,t,r=!0,a=null,s=!1,l=(0,h.VQ)()){const u=(0,n.Yq)(),c=[{key:"apikey",value:u.OneServiceApiKey},{key:"activityId",value:u.ActivityId},{key:"ocid",value:r?i(u.TrackInfo,t):t},{key:"market",value:u.CurrentMarket}];e&&c.push({key:"user",value:e});let d=(0,o.nP)().CurrentFlights;if(a){d=d?`${d},${a}`:a;const e="prg-bngimg-t";-1===d.indexOf(e)&&(d+=","+e),!0===s&&(d=a)}return d&&c.push({key:"fdhead",value:d}),l&&c.push({key:h.dC,value:h.AN}),o.Al.IsBlendedEnterprise&&c.push({key:"audienceMode",value:"enterprise"}),c}function r(e=(0,h.VQ)()){var t;return(0,a.mG)(this,void 0,void 0,(function*(){const r={};let i,a;if(e&&!(yield(0,n.Yq)().isGccModUser)){const e={id:l.d3,friendlyName:l.Ak},r=yield null===(t=(0,y.Kf)())||void 0===t?void 0:t.getAuthData(e);i=null==r?void 0:r.authToken}else if((0,s.G5)()){const e=(0,s.hk)()?yield(0,g.IY)():(0,s.aS)();i=null==e?void 0:e.accessToken,a=null==e?void 0:e.idToken}if(Object.assign(r,(0,s.me)(i,a)),!(0,v.N)()){const{oneServiceHeaders:e,cookie:t,referer:i}=(0,p.s)();e&&Object.assign(r,e),t&&(r.Cookie=t),i&&(r.Referer=i)}return r}))}function i(e,t){return c.b.isNonNullObject(e)&&c.b.isNonNullObject(e.sitePage)&&(0,m.Z)(e.sitePage.page_product)&&(0,m.Z)(e.sitePage.page_type)?e.sitePage.page_product+"-"+e.sitePage.page_type+(t?"-"+t:""):t}e.authenticationTicketType="10",e.signedInCookieNameHeader="signedInCookieName",e.userLocationHeader="user-location",e.serviceRequestOnComplete=function(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){try{const r=yield e();return t(),r}catch(e){throw t(),e}}))},e.getOneServiceParamsWithoutAuth=t,e.getOneServiceNonDynamicParamsWithoutAuth=function(e,t=!0){const r=(0,n.Yq)(),a=[{key:"apikey",value:r.OneServiceApiKey},{key:"ocid",value:t?i(r.TrackInfo,e):e},{key:"market",value:r.CurrentMarket}];return(0,h.VQ)()&&a.push({key:h.dC,value:h.AN}),a},e.getOneServiceParamsWithAuth=function(e=null,r,i=!0,a=null,o=!1){const l=(0,n.Yq)(),u=[...t(e,r,i,a,o)];if(!(0,s.G5)()){const e=l.AuthCookieName;e&&u.push({key:"scn",value:e.toUpperCase()})}return u},e.getOneServiceHeaders=r,e.getOneServiceFeedCallHeaders=function(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t=yield r(e),i=(0,n.Yq)(),a=i.ActivityId;return i.SendFeedCallActivityIdInHeader&&a&&(t[u.Yu.activityId]=a),t}))},e.getLocationParams=function(e,t){const r=(0,n.Yq)(),i=e||r.Latitude,a=t||r.Longitude;return i&&a?{key:"location",value:`${i}|${a}`}:null},e.getOneServiceOCID=i,e.getBaseRequestData=function(t){return(0,a.mG)(this,void 0,void 0,(function*(){return{headers:yield e.getOneServiceHeaders(),method:t}}))},e.getCommonParams=function(e,t=!1){return(0,o.nP)().UserIsSignedIn?this.getOneServiceParamsWithAuth((0,n.Yq)().UserId,e,t):this.getOneServiceParamsWithoutAuth((0,n.Yq)().UserId,e,t)},e.getCommonParams2=function(e,t=!0,r=!1){return(0,f.hC)()?this.getOneServiceParamsWithAuth((0,n.Yq)().UserId,e,t,r):this.getOneServiceParamsWithoutAuth((0,n.Yq)().UserId,e,t,r)},e.urlContainsOcidParam=function(e){if(!e)return!1;const t=e.split("?");if(t.length<2)return!1;const r=t[1].split("#")[0];return!!new d.h(r).get("ocid")},e.removeOcidFromUrl=function(e){if(!e)return e;const t=e.split("?");if(t.length<2)return e;const r=t[1].split("#")[0],i=new d.h(r);if(i.get("ocid")){i.delete("ocid");let t=e.replace(r,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))}))}))}))}}(i||(i={}))},52901:function(e,t,r){r.d(t,{h:function(){return $},w:function(){return L}});var i=r(33940),a=r(68364),n=r(4141),o=r(53723),s=r(84147),l=r(12205);class u extends o.i{constructor(e,t,r,i){super(e,r,l.h.BeginActivity,n.i.newGuid(),new Date,t),this.LogLevel=s.i.Activity,this.Ended=!1,this.correlationVector=i}}var c=r(10350),d=r(71930);class h extends o.i{constructor(e,t,r,i,a,o,u,c){super(e,c,l.h.BeginNetworkActivity,n.i.newGuid(),new Date,u),this.serviceName=t,this.LogLevel=s.i.Activity,this.Ended=!1,this.requestUri=r,this.requestHttpMethod=i,this.currentOperationName=a,this.correlationVector=o}}var g=r(52965);class f extends c.b{constructor(e,t){super(e),this.correlationVectorProvider=t}static getInstance(e,t){var r=e||"Default",i=f.InstancesMap[r];if(i)return i;var a=new d.Y(r,s.i.Activity);return i=new f(a,t),f.InstancesMap[r]=i,i}isActivityEnabled(){return this.logger.isEnabledFor(s.i.Activity)}createActivity(e,t,r){if(this.isActivityEnabled()){let i,a;t&&(i=t.ActivityId,a=this.getVectorForNewActivity(t,!1));let n=new u(e,i,r,a);return this.logger.log(s.i.Activity,n),n}return t||null}createActivityCallback(e,t,r){return this.isActivityEnabled()?this.createActivity(e(),t,r):t||null}endActivity(e){if(this.isActivityEnabled()&&e&&!e.Ended){e.Ended=!0;const t=new Date,r=(0,g.Z)(e);r.LogType=l.h.EndActivity,r.LogDateTime=t;const i=r.LogDateTime.getTime()-e.LogDateTime.getTime();r.Message=r.Message+" ElapsedTime (Milliseconds):"+i.toString(),r.elapsedTimeInMs=i,this.logger.log(s.i.Activity,r)}}createNetworkActivity(e,t,r,i,a,n,o,s){if(this.isActivityEnabled()){n||o||console.warn("'correlationVector' or 'parentActivity' is required to create network activity");let l=n||this.getVectorForNewActivity(o,!0),u=o?o.ActivityId:"";return new h(e,t,r,i,a,l,u,s)}return null}endSuccessfulNetworkActivity(e,t,r){this.endNetworkActivity(e,!0,t,r)}endFailedNetworkActivity(e,t,r,i){this.endNetworkActivity(e,!1,t,r,i)}endNetworkActivity(e,t,r,i,a){if(e&&!e.Ended){e.Ended=!0;let n=new Date,o=(0,g.Z)(e);o.LogType=l.h.EndNetworkActivity,o.LogDateTime=n,o.elapsedTimeInMs=o.LogDateTime.getTime()-e.LogDateTime.getTime(),o.successful=t,o.responseSize=r,o.responseStatusCode=i,o.errorMessage=a,this.logger.log(s.i.Activity,o)}}getVectorForNewActivity(e,t){return e&&this.correlationVectorProvider?(e.latestChildCorrelationVector?e.latestChildCorrelationVector=this.correlationVectorProvider.incrementExternalVector(e.latestChildCorrelationVector):(e.latestChildCorrelationVector=this.correlationVectorProvider.extendExternalVector(e.correlationVector),t&&(e.latestChildCorrelationVector=this.correlationVectorProvider.incrementExternalVector(e.latestChildCorrelationVector))),e.latestChildCorrelationVector):""}}f.InstancesMap={};var v=r(1970),p=r(26415);class y{constructor(e){if(this.loggingService=e,!e)throw"loggingService is required for LoggedExceptionManager."}error(e){throw this.loggingService.error(e),e}fatal(e){throw this.loggingService.fatal(e),e}}var m=r(65135),w=r(33379);class C{constructor(e,t,r,i,a,n,o){if(!e)throw new Error("loggingService is required for ExponentialBackoffRetry.");const s=new y(e);this.logInvalidParams(s,t,r,i,a,o),this.loggingService=e,this.maxRetries=t||C.defaultMaxRetries,this.baseRetryDelayInMs=r||C.defaultBaseRetryDelayInMs,this.maxRetryDelayInMs=i||C.maxAllowedRetryDelayInMs,this.factor=a||C.defaultFactor,this.minOffsetInMs=n||C.defaultMinOffsetInMs,this.maxOffsetInMs=o||C.defaultMaxOffsetInMs,(0,w.N)()&&this.loggingService.infoCallback((()=>"ExponentialBackoffRetry has been configured."),null,{maxRetries:t,minTimeout:r,maxTimeout:i,factor:a})}executeRequest(e,t,r,a){return(0,i.mG)(this,void 0,void 0,(function*(){return new Promise(((n,o)=>(0,i.mG)(this,void 0,void 0,(function*(){yield this.tryRequest(e,n,o,0,t,r,a)}))))}))}logInvalidParams(e,t,r,i,a,n){t&&(t<1||t>C.maxAllowedRetries)&&e.fatal(`maxRetries should be at least 1 and less than ${C.maxAllowedRetries}.`),r&&r<C.defaultBaseRetryDelayInMs&&e.fatal("baseRetryDelay has to be a positive value greater than or equal to 100."),r&&n&&r<=n&&e.fatal("baseRetryDelay must not be smaller than the maximum delay offset."),i&&(i<=0||i>C.maxAllowedRetryDelayInMs)&&e.fatal(`maxRetryDelay has to be a positive value less than ${C.maxAllowedRetryDelayInMs}.`),a&&a<=0&&e.fatal("factor has to be a positive value.")}tryRequest(e,t,r,a,n,o,s){return(0,i.mG)(this,void 0,void 0,(function*(){try{const r=s||1e4,i=yield this.timeoutServiceRequest(r,e());t(i)}catch(i){if((0,w.N)()&&a<this.maxRetries){const l=3,u=parseFloat((Math.random()*(this.minOffsetInMs-this.maxOffsetInMs)+this.maxOffsetInMs).toFixed(l)),c=.5,d=Math.random()<c?-1:1,h=Math.min(this.baseRetryDelayInMs*Math.pow(this.factor,a),this.maxRetryDelayInMs)+u*d;if(this.loggingService.warnCallback((()=>`Retrying the request in ${h} milliseconds.`),o,{error:i,currentRetry:a+1,requestInfo:n}),m.M&&m.M.sendAppErrorEvent){const e=("string"==typeof i?i:i.message)||"";m.M.sendAppErrorEvent(Object.assign(Object.assign({},p.mmU.ServiceRequestRetryAttempted),{pb:Object.assign(Object.assign({},p.mmU.ServiceRequestRetryAttempted.pb),{retryAttemptsMade:a,customMessage:`${this.getActivityName(o)}. Error details: '${e}'. Retrying the request in ${h} milliseconds`})}),!1)}setTimeout((()=>this.tryRequest(e,t,r,a+1,n,o,s)),h)}else this.loggingService.errorCallback((()=>(0,w.N)()&&a<this.maxRetries?`ExponentialBackoffRetry has exceeded maximum retries ${this.maxRetries}`:"Request has failed."),o,{error:i,currentRetry:a,requestInfo:n}),r(i)}}))}timeoutServiceRequest(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return new Promise(((r,a)=>(0,i.mG)(this,void 0,void 0,(function*(){const i=setTimeout((()=>a(new Error(`Service Request Timed out after ${e} milliseconds!`))),e);try{const e=yield t;r(e),clearTimeout(i)}catch(e){a(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 T,x=r(26482),O=r(13578);class S extends o.i{constructor(e,t,r,i,a){super(e,r,l.h.Instrumentation,i,a),this._counterName=e,this.CounterValue=t}get CounterName(){return this._counterName}incrementValue(){if("number"!=typeof this.CounterValue)throw"ERROR: Counter value is never initialized, cannot perform increment action.";this.CounterValue++}}class b extends c.b{constructor(e){super(e)}static getInstance(e){const t=e||"Default";let r=b.InstancesMap[t];if(r)return r;let i=new d.Y(t,s.i.Trace);return r=new b(i),b.InstancesMap[t]=r,r}static getDimensionedLogItems(e,t){let r=[],i=new S(e.CounterName,e.CounterValue,(0,g.Z)(e.Data),e.ActivityId,e.LogDateTime);if(i.LogLevel=s.i.Trace,r.push(i),t&&!(0,O.Z)(t))for(let i of Object.keys(t))for(let a of t[i]){let t=i.indexOf(":")>-1?`${e.CounterName}(${i.replace(":","-")}: ${a})`:`${e.CounterName}(${i}: ${a})`,n=new S(t,e.CounterValue,(0,g.Z)(e.Data),e.ActivityId,e.LogDateTime);n.LogLevel=s.i.Trace,r.push(n)}return r}logPerfCounter(e,t,r,i){const a=new S(e,t,i);this.logPerfCounterItem(a,r)}logPerfCounterItem(e,t){const r=b.getDimensionedLogItems(e,t);for(let e of r)this.logger.log(s.i.Trace,e)}}b.InstancesMap={};class k extends o.i{constructor(e,t,r,i,a,n,o,l){super(e,o),this.pageName=e,this.LogLevel=s.i.Activity,this._userActivityType=t,this.correlationVector=r,this.trackingData=i,this.pageTitle=a,this.pageUri=n,this.eventData=l}get userActivityType(){return this._userActivityType}}!function(e){e[e.None=0]="None",e[e.PageAction=1]="PageAction",e[e.PageView=2]="PageView"}(T||(T={}));class F extends c.b{constructor(e){super(e)}static getInstance(e){var t=e||"Default",r=F.InstancesMap[t];if(r)return r;var i=new d.Y(t,s.i.Activity);return r=new F(i),F.InstancesMap[t]=r,r}isActivityTrackingEnabled(){return this.logger.isEnabledFor(s.i.Activity)}logPageView(e,t,r,i,a,n){this.isActivityTrackingEnabled()&&this.logger.log(s.i.Activity,this.getUserActivityLogItem(e,t,r,a,n,i))}logPageActionEvent(e,t,r,i,a,n,o){if(this.isActivityTrackingEnabled()){if(!e)throw"''eventData' required for logging page action event.";e.elementTitle&&e.eventType&&e.elementTitle.trim()&&e.eventType.trim()&&this.logger.log(s.i.Activity,this.getUserActivityLogItem(t,r,i,n,o,a,e))}}getUserActivityLogItem(e,t,r,i,a,n,o){if(!e)throw"''pageName' is required for logging user activity.";return o?new k(e,T.PageAction,t,r,i,a,n,o):new k(e,T.PageView,t,r,i,a,n)}}F.InstancesMap={};class I{constructor(e,t,r,i){this.loggingServiceInstance=e||x.e.getInstance(),this.activityServiceInstance=t||f.getInstance(),this.userActivityServiceInstance=r||F.getInstance(),this.perfCounterServiceInstance=i||b.getInstance()}get loggingService(){return this.loggingServiceInstance}get activityLoggingService(){return this.activityServiceInstance}get userActivityTrackingService(){return this.userActivityServiceInstance}get perfCounterLoggingService(){return this.perfCounterServiceInstance}getLoggingServiceByName(e){return this.checkLoggerName(e),x.e.getInstance(e)}getActivityLoggingServiceByName(e){return this.checkLoggerName(e),f.getInstance(e)}getUserActivityTrackingServiceByName(e){return this.checkLoggerName(e),F.getInstance(e)}getPerfCounterLoggingServiceByName(e){return this.checkLoggerName(e),b.getInstance(e)}addActivityLoggingService(e){this.checkServiceInstance(e),f.getInstance(e.getLoggerName())}checkLoggerName(e){if(!e)throw"'loggerName' is required."}checkServiceInstance(e){if(!e)throw"'serviceInstance' is required."}}var D=r(19809),A=r(33954);let P,E;const V="assets.msn.com/service/";function $(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){let i,n;try{if(i=yield fetch(e,t),i&&i.ok)return i}catch(t){(0,a.OO)(t,r,"Exception calling 1S primary Url: "+e)}return i&&i.headers&&i.headers.get("OneWebServiceLatency")?i:e.indexOf(V)>0?(n=e.replace(V,"api.msn.com/"),yield fetch(n,t)):i}))}function L(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){const i=M().activityLoggingService.createActivity(t);return yield D.$.serviceRequestOnComplete((()=>function(){if(E)return E;return E=new C(M().loggingService,3),E}().executeRequest(e,null,i,r)),(()=>M().activityLoggingService.endActivity(i)))}))}function M(){if(P)return P;const e=f.getInstance("ExperienceActivityLogger");return(0,w.N)()&&A.k.isDebug()&&e.addAppender(new v.N(s.i.Activity)),P=new I(A.k.getLoggingService(),e),P}},63535:function(e,t,r){r.d(t,{PH:function(){return c},fU:function(){return d},qQ:function(){return l}});var i=r(66213),a=r(54804),n=r(33954);let o,s;function l(){const e=(0,i.Yq)();var t;return o||(t=e.ServiceUrlBase,o=new URL("",t),h(o)),o}function u(){const e=(0,i.Yq)();var t;return s||(t=e.FeedServiceUrlBase,s=new URL("",t),h(s)),s}function c(e,t=l()){return new URL(e+(null==t?void 0:t.search),t)}function d(e,t=u()){return new URL(e+(null==t?void 0:t.search),t)}function h(e){let t=!1;"dev"!==e.searchParams.get("env.service")&&(0,a.nP)().UserIsSignedIn&&(t=!0),n.k.log("u-si: "+(0,i.Yq)().UserId),n.k.log("a-si: "+t),n.k.log("ss-si: "+(0,a.nP)().UserIsSignedIn)}},30113:function(e,t,r){var i;r.d(t,{m:function(){return i}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(i||(i={}))},11708:function(e,t,r){var i;r.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.ShoppingCard="shoppingCardEnabled",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.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled"}(i||(i={}))},83152:function(e,t,r){var i;r.d(t,{L:function(){return i}}),function(e){e.Location="Location",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget"}(i||(i={}))},791:function(e,t,r){r.d(t,{N:function(){return w}});var i=r(33940),a=r(33799),n=r(33954),o=r(26415),s=r(68364),l=r(66213),u=r(94788),c=r(19809),d=r(63535),h=r(52901),g=r(83152),f=r(11708),v=r(30113),p=r(65135),y=r(33379),m=r(51671);const w=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield c.$.getOneServiceHeaders(),credentials:"include"},r=(0,d.PH)(this.locationsServiceEndPoint);let a;[...c.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{a=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(r.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 a}return a}))}addToFavoriteLocation(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r="Location",n="Follow",o={method:"POST",body:JSON.stringify({actionType:n,targetType:r,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},s=(0,d.PH)(this.pdpServiceEndpoint);let u;((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&s.searchParams.set(e.key,e.value)}));try{u=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(s.href,o);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(g.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,r={},n){return(0,i.mG)(this,void 0,void 0,(function*(){const o=g.L.Location,s="Follow",u=yield this.getRequestInit({method:"POST"},r);u.body=JSON.stringify({actionType:s,targetType:o,definitionName:t,degree:"DefaultLocation",metaData:e});const f=(0,d.PH)(this.pdpServiceEndpoint);return((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)})),yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,u);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(o),!0}))}updateTrafficMyRoutes(e,t,r,a,o){return(0,i.mG)(this,void 0,void 0,(function*(){const s=r.replace(/[^a-zA-Z0-9\-.,_]/g,""),l=g.L.Traffic,u="Follow",d={method:"POST",body:JSON.stringify({actionType:u,targetType:l,targetId:s,degree:e,definitionName:t,metadata:a}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},f=yield this.getTrafficPdpUrl(null,null,o);try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${l}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(l)}catch(e){return n.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){const a={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,t,r);try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${g.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(g.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const a={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${g.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(r=yield e.json())||void 0===r?void 0:r.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){const i=(0,d.PH)(this.pdpServiceEndpoint),n=(yield(0,m.XJ)())===a.Hy.SignedIn,o=(0,l.Yq)().UserId,s=n?c.$.getOneServiceParamsWithAuth(o,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(o,this.ocid,!this.ocidOverride);if(e||t){const r=`targetType eq '${g.L.Traffic}'`,a=e?`degree eq '${e}'`:"",n=t?`definitionName eq '${t}'`:"";i.searchParams.set("$filter",`actionType eq 'Follow' and (${r})${a?` and (${a})`:""}${n?` and (${n})`:""}`)}return[...s,...r||[]].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)})),i}))}addToWatchList(e,t=0,r={}){return(0,i.mG)(this,void 0,void 0,(function*(){const n=g.L.Finance,o="Follow",s={method:"POST",body:JSON.stringify({actionType:o,targetType:n,targetId:e,metadata:{securityType:t,tickerId:this.generateUUID()}}),headers:yield this.getOneserviceHeaders(r),credentials:"include"},u=(0,d.PH)(this.pdpServiceEndpoint),f="zh-cn"!==(0,l.Yq)().CurrentMarket;let v;((yield(0,m.XJ)())===a.Hy.SignedIn&&f?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&u.searchParams.set(e.key,e.value)}));try{v=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(u.href,s);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(n)}catch(e){return!1}return!0}))}addListToWatchList(e,t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=g.L.Finance,n="Follow",o={method:"POST",body:JSON.stringify(e.map((e=>({actionType:n,targetType:r,targetId:e.key,metadata:{securityType:e.value,tickerId:this.generateUUID()}})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},s=(0,d.PH)(this.pdpServiceEndpoint),u="zh-cn"!==(0,l.Yq)().CurrentMarket;let f;((yield(0,m.XJ)())===a.Hy.SignedIn&&u?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&s.searchParams.set(e.key,e.value)}));try{f=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(s.href,o);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${r}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(r)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}sortWatchList(e,t={}){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const n=g.L.Finance,o="Follow",s=yield w.readPdpWithTargetType(g.L.Finance,!0,200,t),u=s&&(null===(r=s.value)||void 0===r?void 0:r.filter((e=>e.actionType===o&&e.targetId)));if(!u||u.length<e.length)return!1;const f={};let v=e.length;u.forEach((t=>{let r=e.findIndex((e=>e===t.targetId));r<0&&(r=v,v++),f[t.targetId]=JSON.stringify({actionType:o,targetId:t.targetId,targetType:n,rank:r,metadata:t.metadata})}));const p={method:"PUT",body:JSON.stringify(f),headers:yield this.getOneserviceHeaders(t),credentials:"include"},y=(0,d.PH)(this.pdpServiceEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&y.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(y.href,p);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(g.L.Finance)}catch(e){return!1}return!0}))}updateWeatherSettings(e,t,r={},n){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 o=yield this.getRequestInit({method:"POST"},r);o.body=i;const s=(0,d.PH)(this.userUpdateEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&s.searchParams.set(e.key,e.value)}));const u=yield this.fetchImpl(s.href,o);if(u.status>=400){const e=`OneService returned error response. Status: ${u.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},r=JSON.stringify(t),i=yield this.getRequestInit({method:"POST"});i.body=r;const n=(0,d.PH)(this.userUpdateEndpoint),o="zh-cn"!==(0,l.Yq)().CurrentMarket;((yield(0,m.XJ)())===a.Hy.SignedIn&&o?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const s=yield this.fetchImpl(n.href,i);if(s.status>=400){const e=`OneService returned error response. Status: ${s.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const i=[];let o;for(o in e)null!=e[o]&&i.push('"'+o+'": '+JSON.stringify(e[o]));const s='{"userSettings":{'+i.join(", ")+"}}",u=yield this.getRequestInit({method:"POST"},t);u.body=s;const h=(0,d.PH)(this.userUpdateEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(h.href,u);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 n.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=yield this.getRequestInit({method:"GET"},t),o=(0,d.PH)(this.userUpdateEndpoint);[...(yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{const e=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,r);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(n.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}})},r=(0,d.PH)(this.userUpdateEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.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 n.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 r=[];if(t){let e;for(e in t)null!=t[e]&&r.push('"'+e+'": '+JSON.stringify(t[e]))}const i=e.map((e=>e.cardType!=f.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),a=r.length>0?'{"segmentCardSettings":"{'+i+'}","userSettings":{'+r.join(", ")+"}}":'{"segmentCardSettings":"{'+i+'}"}';return this.updateUserPreference(a)}))}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)}))}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 r={communitySettings:t};return this.updateUserPreference(JSON.stringify(r))}))}updateWidgetSettings(e,t={}){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const r=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:g.L.Widget,metadata:{prongsv2:{region:e.region,size:v.m[e.size],position:e.position}}})));return this.sendActions(JSON.stringify(r),t)}))}muteWidget(e,t={}){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const r=e.map((e=>({actionType:"Mute",targetId:e,targetType:g.L.Widget})));return this.sendActions(JSON.stringify(r),t)}))}sendActions(e,t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=(0,d.PH)(this.pdpServiceEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));const o={method:"POST",body:e,headers:yield this.getOneserviceHeaders(t),credentials:"include"};try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(r.href,o);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for payload: ${e}`;throw new Error(r)}return t.json()}))),"sendActions")}catch(e){return n.k.logError(e.message),!1}return!0}))}updateUserPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const r=(0,d.PH)(this.userUpdateEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const i=yield this.fetchImpl(r.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,r,a={},n=!0,s=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(n){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,r,a,s)));const i=this.bulkGraphActionResultCache.get(e);if(i)return{value:i}}else p.M.sendAppErrorEvent(Object.assign(Object.assign({},o.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,r,a,s)).get(e);if(i)return{value:i}}))}deleteFromPdp(e,t,r,n={},o,s="Follow"){return(0,i.mG)(this,void 0,void 0,(function*(){const u={method:"DELETE",headers:yield this.getOneserviceHeaders(n),credentials:"include"},g=(0,d.PH)(this.pdpServiceEndpoint),f=(yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),v=`targetType eq '${e}'`,p=r.map((e=>`${t} eq '${e}'`)).join(" or ");let y=`actionType eq '${s}' and (${p}) and (${v})`;o&&(y+=` and (degree eq '${o}')`),g.searchParams.set("$filter",y),f.forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(g.href,u);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: ${s}, targetType: ${e}`;throw new Error(r)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,r,n={},o=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const s=e.map((e=>`targetType eq '${e}'`)).join(" or "),u=[{key:"$top",value:`${r=r||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${s})`}],g=yield this.getRequestInit({method:"GET"},n);!0===t&&(g.cache="no-store");const f=(0,d.PH)(this.pdpServiceEndpoint);[...u,...(yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...o].forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)}));const v=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,g);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!v.ok)throw Error(`code=${v.status}, ${v.statusText}`);const p=new Map,y=yield v.json();if(!y)return p;if(y.value)for(const e of y.value){let t=p.get(e.targetType);t||p.set(e.targetType,t=[]),t.push(e)}for(const t of e)p.get(t)||p.set(t,[]);return p}))}updateMarketPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},r=(0,d.PH)(this.userUpdateEndpoint);((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return n.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,i.mG)(this,void 0,void 0,(function*(){let t=null;if(u.yb){const r=this.maptoWebWorkerId(e);if(r&&r.trim()){const r=yield(0,u.ot)({id:this.maptoWebWorkerId(e)});r.fetched&&(t=r.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case g.L.Location:return"weatherpdp";case g.L.League:return"sportsleaguepdp";case g.L.Player:return"sportsplayerpdp";case g.L.Team:return"sportsteampdp";case g.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=yield c.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},r),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield c.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"GET"}),t=(0,d.PH)(this.userUpdateEndpoint);[...(yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&t.searchParams.set(e.key,e.value)}));try{const r=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const r=yield this.fetchImpl(t.href,e);if(!r.ok){if(r.status>=400&&r.status<500&&408!=r.status)return r;(0,s.OO)(null,o.G9t,"Error get followed list")}return r}))),"getFollowedLists");return r.ok||(0,s.OO)(null,o.G9t,"Error get followed list"),yield r.json()}catch(e){return n.k.logError(e.message),null}}))}addToFollowedLists(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=g.L.Finance,r={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,d.PH)(this.userUpdateEndpoint);let o;((yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{o=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,r);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${t}`;throw new Error(r)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=g.L.Finance,r={method:"DELETE",body:null,headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,d.PH)(this.userUpdateEndpoint);let o;[...(yield(0,m.XJ)())===a.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{o=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,r);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: UnFollowList, targetType: ${t}`;throw new Error(r)}return e.json()}))),"deleteFromFollowedLists")}catch(e){return!1}return!0}))}}{constructor(){super((0,y.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===l.jG.AppType||"newsAndInterests"===l.jG.AppType||"winWidgets"===l.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===l.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===l.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===l.jG.AppType&&(this.ocid="travel-verthp-feeds",this.ocidOverride=!0)}}},12697:function(e,t,r){var i=r(84708);t.Z=function(e){return"number"==typeof e&&e==(0,i.Z)(e)}}}]);A
Eo