:host([view-mode="card"]) .card {
        background: rgba(255, 255, 255, 0.07);
    }

    .match-card-container:hover,
    .match-card-container:active,
    .match-card-container:focus-visible {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.08);
        border-radius: calc(${oe.UWU} * 1px);
    }
`,pe=se.i`
        ${(0,ce.j)("block")} :host {
            font-family: ${oe.SVJ};
        }

        :host([view-mode="card"]) .card {
            width: 268px;
            height: 104px;
            padding: 10px 12px;
        }

        .match-card-container {
            text-decoration: none;
            display: block;
        }

        :host(:not([view-mode="card"])) .match-card-container {
            display: block;
            padding: 6px;
            margin: -6px;
            border-radius: 6px;
        }

        .match-container {
            display: grid;
            row-gap: calc(${oe._5n} * 2px);
            position: relative;
        }

        .match-header-container {
            display: grid;
        }

        .match-header {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 8px;
            align-items: center;
            place-self: center;
        }

        ::slotted([slot="game-image"]) {
            border-radius: calc(${oe.UWU} * 4px);
            width: ${p.width.toString()}px;
            height: ${p.height.toString()}px;
        }

        .match-header-title {
            font-size: ${oe.sNp};
            line-height: ${oe.vgC};
            font-weight: 600;
            color: ${oe.Q5n};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .match {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
            align-items: center;
        }

        :host([view-mode="card"]) .match-participant-name {
            font-size: ${oe.sNp};
            line-height: ${oe.vgC};
        }

        .match-participant-name {
            font-size: ${oe.cSu};
            line-height: ${oe.RUt};
            font-weight: 600;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            color: ${oe.CHi};
            margin-top: 4px;
        }

        ::slotted([slot="participant-one-image"]),
        ::slotted([slot="participant-two-image"]) {
            vertical-align: top;
            border-radius: calc(${oe.UWU} * 1px);
            width: ${m.width.toString()}px;
            height: ${m.height.toString()}px;
        }

        :host([view-mode="card"]) ::slotted([slot="participant-one-image"]),
        :host([view-mode="card"]) ::slotted([slot="participant-two-image"]) {
            width: ${g.width.toString()}px;
            height: ${g.height.toString()}px;
        }

        .participant-one {
            text-align: start;
        }

        .participant-two {
            text-align: end;
        }

        ::slotted([slot="match-score"]) {
            font-size: ${oe.ipv};
            line-height: ${oe.yGZ};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            color: ${oe.CHi};
            place-self: center;
        }

        ::slotted([slot="match-time"]) {
            font-size: ${oe.mWK};
            line-height: ${oe.I7_};
            font-weight: 600;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            color: ${oe.CHi};
            place-self: center;
        }

        :host([view-mode="card"]) ::slotted([slot="match-state"]) {
            margin-top: 6px;
        }

        ::slotted([slot="match-state"]) {
            margin-top: 8px;
            place-self: center;
        }

        ::slotted([slot="match-date"]) {
            font-size: var(--type-ramp-minus-1-font-size);
            line-height: var(--type-ramp-minus-1-line-height);
            margin-top: 4px;
            place-self: center;
            color: ${oe.Q5n};
        }

        .match-details {
            place-self: center;
            display: grid;
        }
    `.withBehaviors((0,de.zw)(ue),(0,de.Uu)(he),(0,de.vF)(se.i`
                :host {
                    forced-color-adjust: auto;
                }
                :a([href]) {
                    color: ${le.H.LinkText};
                }
            `)),ge=Q.d`
    <div         
    class="match-container"
    part="match-container">
        <div class="match-header-container" part="match-header-container">
            <div class="match-header" part="match-header">
                <slot name="game-image"> </slot>
                <div class="match-header-title" part="match-header-title">
                    ${e=>e.tournamentTitle}
                </div>
            </div>
        </div>

        <div class="match" part="match">
            <div class="participant-one" part="participant-one">
                <div
                    class="match-participant-img-container"
                    part="match-participant-img-container"
                >
                    <slot name="participant-one-image"> </slot>
                </div>

                <div
                    class="match-participant-name"
                    part="match-participant-name"
                >
                    ${e=>e.participantOneName}
                </div>
            </div>

            <div class="match-details" part="match-details">
                <slot name="match-time"></slot>
                <slot name="match-date"></slot>
                <slot name="match-score"></slot>
                <slot name="match-state"></slot>
            </div>

            <div class="participant-two" part="participant-two">
                <div
                    class="match-participant-img-container"
                    part="match-participant-img-container"
                >
                    <slot name="participant-two-image"> </slot>
                </div>

                <div
                    class="match-participant-name"
                    part="match-participant-name"
                >
                    ${e=>e.participantTwoName}
                </div>
            </div>
        </div>
    </div>
`,me=Q.d`
    <a
        class="match-card-container"
        part="match-card-container"
        href=${e=>e.href}
        target=${e=>e.target}
        data-t="${e=>e.telemetryTag}"
        aria-label=${e=>e.ariaLabel}
    >
        ${e=>"card"===e.viewMode?Q.d`
            <fluent-card class="card" part="card"> 
                ${ge}
            </fluent-card>
        `:Q.d`${ge}`}
    </a>
`;let fe=class extends ne{};fe=(0,o.gn)([(0,ie.M)({name:"match-row",template:me,styles:pe,shadowOptions:{delegatesFocus:!0}})],fe);class ve extends ie.H{constructor(){super(...arguments),this.target="_blank"}}(0,o.gn)([F.LO],ve.prototype,"streamUrl",void 0),(0,o.gn)([F.LO],ve.prototype,"streamThumbnailUrl",void 0),(0,o.gn)([F.LO],ve.prototype,"streamAltText",void 0),(0,o.gn)([F.LO],ve.prototype,"telemetryTag",void 0),(0,o.gn)([G.Lj],ve.prototype,"target",void 0),(0,o.gn)([(0,G.Lj)({attribute:"view-mode"})],ve.prototype,"viewMode",void 0);const ye=se.i`
    .card {
        background: #FFF;
    }
`,be=se.i`
    .card {
        background: #3F4E66;
    }
`,xe=se.i`
:host {
    font: font-family: ${oe.SVJ};
    border-radius: 6px;
}

/* IMAGE REGION */

.image-container {
    display: grid;
    row-gap: calc(${oe._5n} * 2px);
    position: relative;
    width: 100%;
    height: 136px;
    position: relative;
    z-index: 1;
}

.image-region {
    width: 100%;
    height: 136px;
    position: relative;
}

.image,
.image-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px;
}

.image-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    padding: 16px 12px 12px 16px;
    box-sizing: border-box;
    margin-bottom: 24px;
    color: #FFF;
}

.tile-region {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1;
}

.tile-wrapper {
    display: flex;
    grid-gap: 4px;
}

.play-icon-container {
    width: 38px;
    height: 38px;
    position: absolute;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.play-icon {
    position: absolute;
    width: 14px;
    height: 14px;
    left: calc(50% - 6px);
    top: calc(50% - 8px);
    box-sizing: border-box;
    border-width: 8px 0px 9px 16px;
    border-color: transparent transparent transparent rgb(255, 255, 255);
    border-style: solid;
}

.gradient-top,
.gradient-1u-bottom {
    position: absolute;
    width: 100%;
    left: 0;
}

.gradient-top {
    top: 0;
    height: 80px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.image-container:hover .gradient-top,
.image-container:active .gradient-top,
.image-container:focus-visible .gradient-top {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.gradient-1u-bottom {
    top: 56px;
    height: 80px;
    border-radius: 6px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    
}

.image-container:hover .gradient-1u-bottom,
.image-container:active .gradient-1u-bottom,
.image-container:focus-visible .gradient-1u-bottom {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Slot Styles */

:host([view-mode="card"]) ::slotted([slot="stream-state"]) {
    margin-top: 6px;
}

::slotted([slot="stream-state"]) {
    margin-top: 8px;
    place-self: center;
}

`.withBehaviors((0,de.Uu)(be),(0,de.zw)(ye)),we=Q.d`
    <div class="tile-region">
        <div class="tile-wrapper">
            <slot name="stream-state"></slot>
        </div>
    </div>
`,Ce=Q.d`
    <div class="image-region">
        <img class="image" src="${e=>e.streamThumbnailUrl}" alt="${e=>e.streamAltText}" />
        <div class="play-icon-container">
            <div class="play-icon"></div>
        </div>
    </div>
    ${we}
`,Te=Q.d`
    <div class="gradient-top"></div>
    <div class="gradient-1u-bottom"></div>
`,Se=Q.d`
    <a
        class="image-container"
        href=${e=>e.streamUrl}
        target=${e=>e.target}
        data-t="${e=>e.telemetryTag}"
        aria-label=${e=>e.ariaLabel}
    >
        
        ${Ce}
        ${Te}
    </a>
`;let $e=class extends ve{};$e=(0,o.gn)([(0,ie.M)({name:"match-stream",template:Se,styles:xe,shadowOptions:{delegatesFocus:!0}})],$e);const ke=Q.d`
    <div class="header-icon-container" part="header-icon-container" slot="title-icon">
        ${ae.Z}
    </div>
`,Oe=Q.d`
    ${(0,ee.g)((e=>e.toggleSDCardActionMenu),Q.d`
        <fluent-button
            id="more-actions"
            class="more-actions"
            part="more-actions"
            title="${e=>e.strings.actionButtonText}"
            aria-label="${e=>e.strings.actionButtonText}"
            role="button"
            @click="${(e,t)=>e.toggleSDCardActionMenu(t.event)}"
            @keypress="${(e,t)=>e.toggleSDCardActionMenu(t.event)}"
            data-t="${e=>(0,c.q4)(e.actionButtonTelemetryContract)}"
            slot="more-actions"
            appearance="neutral"
            >
            ${re.Z}
        </fluent-button>
    `)}
`,Ie=Q.d`
    <match-row
        class="match-row ${(e,t)=>t.parent.hasStream?"match-row-stream":""}"
        part="match-row"
        tournament-title="${e=>e.tournamentTitle}"
        participant-one-name="${e=>e.participantOneName}"
        participant-two-name="${e=>e.participantTwoName}"
        view-mode=${(e,t)=>t.parent.cardLayout!==s.X.EsportsCardLayout._1x_2y||t.parent.hasStream?"default":"card"}
        href="${e=>e.matchUrl}"
        :telemetryTag=${e=>e.matchTelemetryTag}
    >
        <img
            slot="game-image"
            src="${e=>e.gameImage}"
            alt="${e=>e.gameImageAltText}"
            role="presentation"
        />
        <img
            slot="participant-one-image"
            src="${e=>e.participantOneImage}"
            alt="${e=>e.participantOneImageAltText}"
            role="presentation"
        />
        <img
            slot="participant-two-image"
            src="${e=>e.participantTwoImage}"
            alt="${e=>e.participantTwoImageAltText}"
            role="presentation"
        />

        ${(0,ee.g)(((e,t)=>e.matchState===t.parent.liveState),Q.d`
            <span slot="match-score">
                ${e=>e.participantOneScore} - ${e=>e.participantTwoScore}
            </span>

            <fluent-badge slot="match-state" fill="primary" color="white">
                ${(e,t)=>t.parent.strings.liveStateText}
            </fluent-badge>
        `)}

        ${(0,ee.g)((e=>"Unresolved"===e.matchState),Q.d`
            <span slot="match-time">
                ${e=>e.matchTime}
            </span>
            <span slot="match-date">
                ${e=>e.matchDate}
            </span>  
        `)}

        ${(0,ee.g)((e=>"Resolved"===e.matchState),Q.d`
            <div slot ="match-score" class="match-score-container" part="match-score-container"> 
                <span class=${e=>"1"===e.matchResult&&"winner"}>
                    ${e=>e.participantOneScore}
                </span>

                <span> - </span>

                <span class=${e=>"2"===e.matchResult&&"winner"}>
                    ${e=>e.participantTwoScore}
                </span>  
            </div>
            
            <fluent-badge slot="match-state" fill="transparent" color="neutral">
                ${(e,t)=>t.parent.strings.resolvedStateText}
            </fluent-badge>
        `)}
    </match-row>
`,Ee=Q.d`
    <match-stream
        class="match-stream"
        part="match-stream"
        :streamUrl="${e=>e.streamUrl}"
        :streamThumbnailUrl="${e=>e.streamThumbnailUrl}"
        :streamAltText="${e=>e.streamAltText}"
        resolved-state-text="${(e,t)=>t.parent.strings.resolvedStateText}"
        view-mode=${(e,t)=>t.parent.cardLayout!==s.X.EsportsCardLayout._1x_2y||t.parent.hasStream?"default":"card"}
        :telemetryTag=${e=>e.streamTelemetryTag}
        target=${(e,t)=>t.parent.openLinksInNewTab?"_blank":"_self"}
    >
        ${(0,ee.g)(((e,t)=>e.matchState===t.parent.liveState),Q.d`
            <fluent-badge slot="stream-state" fill="primary" color="white">
                ${(e,t)=>t.parent.strings.liveStateText}
            </fluent-badge>
        `)}
    </match-stream>
`,Pe=Q.d`
    <msft-structured-data-card
        target=${e=>e.openLinksInNewTab?"_blank":"_self"}
        :data=${e=>e.templateDataModel&&e.templateDataModel.cardData}
        data-t="${e=>(0,c.q4)(e.matchCardTelemetryContract)}"
        :headerTelemetryTag=${e=>(0,c.q4)(e.headerTelemetryContract)}
        :seeMoreTelemetryTag=${e=>(0,c.q4)(e.seeMoreTelemetryContract)}
    >
        ${Oe}
        <slot name="pin" slot="pin"></slot>
        ${ke}
        ${(0,ee.g)((e=>{var t;return e.cardLayout===s.X.EsportsCardLayout._1x_1y&&(null===(t=e.templateDataModel)||void 0===t?void 0:t.matchesData)&&e.templateDataModel.matchesData.length>0}),Q.d`
            <a 
                class="clickable" 
                href="${e=>{var t,r,a;return(null===(t=e.templateDataModel)||void 0===t?void 0:t.matchesData)&&(null===(a=null===(r=e.templateDataModel)||void 0===r?void 0:r.matchesData)||void 0===a?void 0:a.length)>0&&e.templateDataModel.matchesData[0].matchUrl}}"
                data-t="${e=>{var t,r,a;return(null===(t=e.templateDataModel)||void 0===t?void 0:t.matchesData)&&(null===(a=null===(r=e.templateDataModel)||void 0===r?void 0:r.matchesData)||void 0===a?void 0:a.length)>0?e.templateDataModel.matchesData[0].matchTelemetryTag:void 0}}"
                tabindex="-1"
                target=${e=>e.openLinksInNewTab?"_blank":"_self"}>
            </a>
        `)}

        <div class="match-container" part="matchucontainer">
            ${(0,ee.g)((e=>e.hasStream&&e.cardLayout===s.X.EsportsCardLayout._1x_2y),Q.d`
                ${(0,te.rx)((e=>{var t;return null!==(t=e.templateDataModel&&e.templateDataModel.matchesData)&&void 0!==t?t:[]}),Q.d`
                    ${Ie}
                    ${Ee}
                `)}    
                    
            `)}
            ${(0,ee.g)((e=>!e.hasStream||e.cardLayout===s.X.EsportsCardLayout._1x_1y),Q.d`
                ${(0,te.rx)((e=>{var t;return null!==(t=e.templateDataModel&&e.templateDataModel.matchesData)&&void 0!==t?t:[]}),Ie)}
            `)}
        </div>

        <slot name="footer-start" slot="footer-start"></slot>
        <slot name="footer-end" slot="footer-end"></slot>
    </msft-structured-data-card>
`,Le=se.i`
    msft-structured-data-card {
        background: linear-gradient(44.24deg, #C2CEE8 0%, rgba(241, 246, 255, 0.6) 100%);
    }

    msft-structured-data-card::part(sd-action) {
        background: RGBA(0, 0, 0, 0.07);
    }

    msft-structured-data-card::part(sd-action):hover,
    msft-structured-data-card::part(sd-action):active,
    msft-structured-data-card::part(sd-action):focus-visible {
        background: RGBA(0, 0, 0, 0.05);
    }

    .clickable:hover + .match-container .match-row,
    .clickable:active + .match-container .match-row {
        background: RGBA(255, 255, 255, 0.6);
    }

    .more-actions {
        background-color: RGBA(0, 0, 0, 0.05);
    }
`,Ae=se.i`
    msft-structured-data-card {
        background: linear-gradient(44.24deg, #2B3C59 0%, rgba(43, 60, 89, 0.6) 100%);
    }

    msft-structured-data-card::part(sd-action) {
        background: RGBA(255, 255, 255, 0.09);
    }

    msft-structured-data-card::part(sd-action):hover,
    msft-structured-data-card::part(sd-action):active,
    msft-structured-data-card::part(sd-action):focus-visible {
        background: RGBA(255, 255, 255, 0.07);
    }

    .clickable:hover + .match-container .match-row,
    .clickable:active + .match-container .match-row {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.08);
    }

    .more-actions {
        background-color: RGBA(255, 255, 255, 0.09);
    }
`,_e=se.i`
        :host {
            font-family: ${oe.SVJ};
            --content-padding: 12px 0;
            --match-container-padding: 16px;
            --badge-fill-primary: rgba(196, 43, 28, 1);
            --badge-fill-secondary: #00ff00;
            --badge-fill-transparent: transparent;
            --badge-color-black: #000000;
            --badge-color-neutral: ${oe.Q5n};
            --badge-color-white: #ffffff;
        }

        msft-structured-data-card::part(title-link)::after {
            position: absolute;
            content: "";
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        msft-structured-data-card::part(title) {
            grid-template-columns: 1fr auto;
        }

        msft-structured-data-card::part(title-content) {
            font-weight: 600;
        }

        msft-structured-data-card::part(title-link) {
            color: ${oe.CHi};
            text-decoration: none;
            cursor: default;
        }

        .clickable {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            z-index: 1;
        }

        .header-icon-container > svg > path {
            fill: ${oe.Q5n};
        }

        .more-actions {
            width: 24px; 
            height: 24px; 
            min-width: 24px; 
            border-width: 0; 
            border-radius: 16px; 
            cursor: pointer; 
            z-index: 2;
        }

        .match-container {
            padding: 0 var(--match-container-padding); 
        }

        :host([card-layout="_1x_1y"]) .match-container {
            margin-top: 10px;
        }

        :host([card-layout="_1x_2y"]) .match-container {
            margin-top: 8px;
        }

        .match-row {
            border-radius: 6px;
            padding: 6px;
            margin: -6px -6px -2px;
        }

        .match-row:last-child {
            margin-bottom: -6px;
        }

        .match-row-stream {
            margin-bottom: -6px;
        }

        .match-stream {
            border-radius: 6px;
            padding: 6px;
        }

        msft-structured-data-card::part(sd-action) {
            margin-top: 8px;
            height: 24px;
        }

        fluent-badge::part(control) {
            padding: 0 4px 2px 4px;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            border: 0;
        }

        :host([card-layout="_1x_1y"]) fluent-badge::part(control) {
            padding: 2px 8px;
        }

        fluent-badge[fill="transparent"]::part(control) {
            font-weight: 400;
            padding: 0;
        }

        .winner {
            font-weight: 600;
        }
    `.withBehaviors((0,de.zw)(Le),(0,de.Uu)(Ae),(0,de.vF)(se.i`
                :host {
                    forced-color-adjust: auto;
                }
                :host([href]) {
                    color: ${le.H.LinkText};
                }
            `)),Ue={experienceConfigSchema:n}},79703:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});var a,i=r(19628);!function(e){e[e.Default=0]="Default",e[e.Medium=1]="Medium",e[e.MonthDate=2]="MonthDate",e[e.Weekday=3]="Weekday",e[e.Time=4]="Time"}(a||(a={}));class n{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(a.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(a.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(e,t){e&&t&&this.dateFormatOptionsMap.set(e,t)}localizedDateString(e,t){return this.formatDate(e,a.Default,t)}localizedDateStringMedium(e,t){return this.formatDate(e,a.Medium,t)}localizedMonthDate(e,t){return this.formatDate(e,a.MonthDate,t)}localizedWeekday(e,t){return this.formatDate(e,a.Weekday,t)}formatTimeFromDate(e,t){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?e.toLocaleTimeString(t,this.dateFormatOptionsMap.get(a.Time)):e.toTimeString()}format(e,...t){return e?i.Ld.Format(e,...t):""}localizedNumberString(e,t){return this.supportsLocaleSpecifiers?e.toLocaleString(t):e.toString()}formatDate(e,t,r){let i=null;if(this.supportsLocaleSpecifiers)if(t===a.Default)i=e.toLocaleDateString(r);else if(this.dateFormatOptionsMap){const a=this.dateFormatOptionsMap.get(t);i=e.toLocaleDateString(r,a)}return null===i&&(i=e.toDateString()),null!==i?i.replace(/\u200E/g,"").replace(/\u200F/g,""):i}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1})()}}},19280:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var a,i=r(33940),n=r(33799),o=r(68364),s=r(26415),c=r(16517),d=r(65337),l=r(67267),u=r(63535),h=r(87298),p=r(17157),g=r(59207),m=r(66861),f=r(11708),v=r(65135),y=r(99478),b=r(791),x=r(51671);!function(e){function t(e,t,r,a,c){return(0,i.mG)(this,void 0,void 0,(function*(){if((0,y.TF)(e))return null;const d=e,p={displayName:t,idType:"Satori",dataType:c},g={method:"POST",body:JSON.stringify({actionType:r,targetId:d,targetType:a,metadata:p}),headers:yield l.$.getOneServiceHeaders()},f=yield(0,x.rr)();f===n.Hy.SignedIn&&(g.credentials="include");const v=(0,u.PH)(m.X.interestServiceEndpoint);let b;(yield w(f,m.X.interestServiceOcid)).forEach((e=>e.value&&v.searchParams.set(e.key,e.value)));try{return b=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield fetch(v.href,g);if(e.status>=400){const t=`postActionRequest OneService returned error response. Status: ${e.status} for actionType: ${r}, targetId: ${d}, targetType: ${a}`;return(0,o.OO)(new Error,s.IIT,t),null}return e.json()}))),`postCardAction${r}`),yield b}catch(e){(0,o.OO)(e,s.IIT,"Error while posting action for card interest action",`Url: ${v.href}`)}return b}))}function r({apiUrl:e,ocid:t=null,addPageInfoToOcid:r=!1,appendCommonParams:a=!0,appendMarket:o=!1,method:d="GET",body:u=null,additionalHeaders:h=null,withRetries:m=!0,logErrorAsWarning:f=!1}){return(0,i.mG)(this,void 0,void 0,(function*(){let y,b;try{y=new URL(e)}catch(t){return void v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.I8d),{message:"Error while request esports data with URL exception.",pb:Object.assign(Object.assign({},s.I8d.pb),{fetchNetworkResponse:{activityId:(0,c.Yq)().ActivityId,requestUrl:e},customMessage:`Error while request esports data with URL exception: ${t&&t.message} URL: ${e}`})}))}if(a){b=yield l.$.getBaseRequestData(d),u&&(b.body=JSON.stringify(u));const e=yield(0,x.rr)();e===n.Hy.SignedIn&&(b.credentials="include"),function(e){(0,i.mG)(this,void 0,void 0,(function*(){const t="undefined"!=typeof window&&(0,p.wq)()&&(0,g._4)(),r=t?t.market||"en-us":(0,c.Yq)().CurrentMarket||"en-us",a=t?t.latitude:(0,c.Yq)().Latitude,i=t?t.longitude:(0,c.Yq)().Longitude;e.set("market",r),a&&i&&(e.set("lat",a),e.set("long",i))}))}(y.searchParams);(yield w(e,t,r)).forEach((e=>e.value&&y.searchParams.set(e.key,e.value)))}if(o){const e="undefined"!=typeof window&&(0,p.wq)()&&(0,g._4)(),t=e?e.market:(0,c.Yq)().CurrentMarket;y.searchParams.set("market",t)}return h&&h.length&&h.forEach((e=>{e.value&&y.searchParams.set(e.key,e.value)})),C(y.href,b,"fetchEsportsData",m,f)}))}function a(e,t,r,a=!1){return(0,i.mG)(this,void 0,void 0,(function*(){const i=yield fetch(decodeURIComponent(e),t);if(i&&i.ok)return i;{const n={statusCode:i.status,statusText:i.statusText,activityId:(0,c.Yq)().ActivityId,requestUrl:e,requestHeaders:JSON.stringify(t&&t.headers)},o=`Error while calling ${r}`,d=`${o}: URL: ${e}, responseMessage: ${JSON.stringify(i)}`;a?v.M0.sendClientLogEvent({message:o,type:"information",pb:Object.assign(Object.assign({},(0,s.mnt)()),{fetchNetworkResponse:n,customMessage:d})}):v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.bKC),{message:o,pb:Object.assign(Object.assign({},s.bKC.pb),{fetchNetworkResponse:n,customMessage:d})}))}}))}function w(e,t=null,r=!0){return(0,i.mG)(this,void 0,void 0,(function*(){return e===n.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,t,r):l.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,t,r)}))}function C(e,t,r,n=!0,o=!1){return(0,i.mG)(this,void 0,void 0,(function*(){let i;try{return i=n?yield(0,h.w)((()=>a(e,t,r,o)),r):yield a(e,t,r,o),yield i.json()}catch(a){const i={activityId:(0,c.Yq)().ActivityId,requestUrl:e,requestHeaders:JSON.stringify(t&&t.headers)},n=`Error while requesting ${r}`,d=`${n}}: ${a&&a.message} URL: ${e} headers: ${(null==t?void 0:t.headers)&&JSON.stringify(null==t?void 0:t.headers)}`;o?v.M0.sendClientLogEvent({message:n,type:"information",pb:Object.assign(Object.assign({},(0,s.mnt)()),{fetchNetworkResponse:i,customMessage:d})}):v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.I8d),{message:n,pb:Object.assign(Object.assign({},s.I8d.pb),{fetchNetworkResponse:i,customMessage:d})}))}}))}function T(){return(0,i.mG)(this,void 0,void 0,(function*(){const e="xboxXTokenId";let t=(0,d.$o)().getObject(e);const r=new Date;if(r.setHours(r.getHours()+1),!t||!t.xid||!t.notAfter||new Date(t.notAfter)<=r){const a=yield function(){return(0,i.mG)(this,void 0,void 0,(function*(){const e={"x-xbl-contract-version":"1","content-type":"application/json"};return yield function(){return(0,i.mG)(this,void 0,void 0,(function*(){if((yield(0,x.rr)())===n.Hy.SignedIn&&c.jG&&c.jG.ResolvedAccountInfo&&(!c.jG.ResolvedAccountInfo||c.jG.ResolvedAccountInfo.account_type===n.Qm.MSA))return new Promise(((e,t)=>{if(!window.chrome||!window.chrome.authPrivate||!window.chrome.authPrivate.acquireAccessTokenSilently)return e(null);const r={account_id:c.jG.ResolvedAccountInfo.account_id,account_type:window.chrome.authPrivate.AccountType.MSA,client_id:"f3222e55-ab35-49de-81f3-88a3be08cf77",scope_or_resource:"service::xboxlive.signin::DELEGATION",use_msa_v2_api:!0};window.chrome.authPrivate.acquireAccessTokenSilently(r,(r=>{r&&r.is_success&&r.is_token_valid?e(r.access_token):(v.M0.sendClientLogEvent({message:"Failed to fetch access_token from privateAuth API",type:"information",pb:Object.assign({},(0,s.mnt)())}),t(null))}))}));v.M0.sendClientLogEvent({message:"Unable to get xbox authentication token as account type is not MSA",type:"information",pb:Object.assign({},(0,s.mnt)())})}))}().then((t=>{if(!t)return null;const r={method:"POST",body:JSON.stringify({RelyingParty:"http://auth.xboxlive.com",TokenType:"JWT",Properties:{AuthMethod:"RPS",SiteName:"user.auth.xboxlive.com",RpsTicket:`d=[${t}]`}}),headers:e};return C(m.X.getXboxUserTokenUrl,r,"getXboxUserToken",!1,!0)})).then((t=>{if(!t||!t.Token)return null;const r={method:"POST",body:JSON.stringify({Properties:{SandboxId:"RETAIL",UserTokens:[`${t.Token}`]},RelyingParty:"http://xboxlive.com",TokenType:"JWT"}),headers:e};return C(m.X.getXboxXTokenUrl,r,"getXboxXToken",!1,!0)}))}))}();if(a&&a.IssueInstant&&a.NotAfter&&a.Token&&a.DisplayClaims&&a.DisplayClaims.xui&&a.DisplayClaims.xui.length&&a.DisplayClaims.xui[0].xid&&a.DisplayClaims.xui[0].uhs)t={issueInstant:a.IssueInstant,notAfter:a.NotAfter,token:a.Token,xid:a.DisplayClaims.xui[0].xid,uhs:a.DisplayClaims.xui[0].uhs};else{v.M0.sendClientLogEvent({message:"Unable to get Xbox XToken",type:"information",pb:Object.assign({},(0,s.mnt)())});const e=new Date;e.setFullYear(r.getFullYear()+1),t={issueInstant:null,notAfter:e,token:"NoToken",xid:null,uhs:null}}(0,d.$o)().setObject(e,t)}}))}function S(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=(0,d.$o)().getObject(m.X.localStorageXboxXTokenId);return e&&e.token&&e.xid&&e.uhs&&e.notAfter&&new Date(e.notAfter)>new Date?yield $().then((t=>(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return null;const r={};r.authorization=`XBL3.0 x=${e.uhs};${e.token}`,r["x-xbl-contract-version"]="2",r["x-xbl-client-name"]="Gaming",r["x-xbl-client-type"]="Service",r["xbl-scenario-type"]="EdgeGNTP",r["Accept-Language"]=(0,c.Yq)().CurrentMarket.substring(0,2),r["content-type"]="application/json";const a={method:"GET",headers:r},i=m.X.xboxTitleHubUrlTemplate.replace("{xuidValue}",e.xid),n=yield C(i,a,"fetchXboxTitleHubData",!1,!0);if(!n||!n.titles||!n.titles.length)return null;const o=n.titles.filter((e=>e.type&&"game"===e.type.toLowerCase()&&e.titleRecord&&e.titleRecord.lastTimePlayed)).sort((function(e,t){return new Date(t.titleRecord.lastTimePlayed).getTime()-new Date(e.titleRecord.lastTimePlayed).getTime()}));if(!o||!o.length)return null;const s=o[0];if(s&&s.images&&s.images.length){const e=s.images.find((e=>e.type&&"poster"===e.type.toLowerCase()));e&&e.url&&(s.displayImage=e.url)}const d=new Array;return d.push(o[0]),o.slice(1).filter((e=>e.isStreamable)).forEach((e=>{d.push(e)})),d.slice(0,6)})))):null}))}function $(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield r({apiUrl:m.X.pdpUserSettingsUrl,ocid:m.X.anaheimNtpFeedsOcid,addPageInfoToOcid:!1,appendCommonParams:!0,appendMarket:!1,method:"GET",body:null,additionalHeaders:null,withRetries:!1,logErrorAsWarning:!0});if(!(e&&e.value&&e.value.length&&e.value[0]&&e.value[0].userSettings&&e.value[0].userSettings.gamingCards))return!1;let t;try{t=JSON.parse(e.value[0].userSettings.gamingCards)}catch(e){v.M0.sendClientLogEvent({message:"Error in getXboxUserConsent(). Unable to parse user settings",type:"information",pb:Object.assign({},(0,s.mnt)())})}return t&&t.isConnectToXboxEnabled}))}e.hideEsportsCard=function(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=f.f.EsportsCard;try{return yield b.N.updateSegmentCardsEnableStatus([{cardType:e,enabled:!1}]),!0}catch(t){return(0,o.OO)(t,s.IIT,`'${e.toString()}' card settings save failed while hiding esports card.`),!1}}))},e.updateGamingCardEnableStatus=function(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r=[{cardType:e,enabled:t}];try{return yield b.N.updateGamingCardsEnableStatus(r),!0}catch(t){return(0,o.OO)(t,s.aKV,`User ${e} settings update failed`),!1}}))},e.notInterestedCard=function(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e||(0,y.TF)(e.videoGame.id))return!1;try{return yield t(e.videoGame.id,e.videoGame.name,m.X.dislikeAction,e.videoGame.type,e.dataType),!0}catch(t){return(0,o.OO)(t,s.IIT,`Esports card settings save failed while dislike esports live stream card videogame Id: ${e.videoGame.id}`),!1}}))},e.esportsFetch=function(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if((0,y.TF)(e))return null;try{const r=yield fetch(e,t);return r&&r.ok?r.json():void v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.bKC),{message:"Error while calling esports fetch.",pb:Object.assign(Object.assign({},s.bKC.pb),{fetchNetworkResponse:{statusCode:r.status,statusText:r.statusText,activityId:(0,c.Yq)().ActivityId,requestUrl:e,requestHeaders:JSON.stringify(t&&t.headers)},customMessage:`Error while calling esports fetch, URL: ${e}, responseMessage: ${JSON.stringify(r)}`})}))}catch(t){(0,o.OO)(t,s.bKC,"Error while calling esports fetch",`Url: ${e}`)}}))},e.postActionRequest=t,e.isEsportsUserGamer=function(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield r({apiUrl:m.X.checkIfUserGamerUrl,ocid:m.X.anaheimNtpFeedsOcid,addPageInfoToOcid:!1,appendCommonParams:!0,appendMarket:!1,method:"GET",body:null,additionalHeaders:null,withRetries:!1,logErrorAsWarning:!0}),t=e&&e.value&&e.value.length&&e.value.filter((e=>e.metadata&&e.metadata.score&&"Follow"===e.actionType&&Number(e.metadata.score)>=.2));let a="";const i=t&&t.some((e=>e.metadata.satoriId&&m.X.userGamerGames.includes(e.metadata.satoriId))),n=t&&t.some((e=>e.targetId&&"Y_xboxSpecialInterest"===e.targetId)),o=t&&t.some((e=>e.targetId&&"Y_windowsSpecialInterest"===e.targetId));return i&&(a=m.X.GamerUserType.Gamer),n&&(a&&(a+=";"),a+=m.X.GamerUserType.XboxGamer),o&&(a&&(a+=";"),a+=m.X.GamerUserType.PCGamer),a}))},e.postRewards=function(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield r({apiUrl:m.X.PostRewardsEventApiUrl,ocid:m.X.anaheimNtpFeedsOcid,addPageInfoToOcid:!1,appendCommonParams:!0,appendMarket:!1,method:"POST",body:{offerid:e},additionalHeaders:null,withRetries:!1,logErrorAsWarning:!0});return t&&t.value}))},e.fetchEsportsData=r,e.sendRequestWithRetries=C,e.setXboxXToken=T,e.setXboxTitleHubData=function(){return(0,i.mG)(this,void 0,void 0,(function*(){yield T();const e=(0,d.$o)().getObject(m.X.localStorageXboxTitleHubDataId);if(e&&e.timestamp){const t=((new Date).getTime()-new Date(e.timestamp).getTime())/1e3/60;if(Math.round(t)<30)return}yield S().then((e=>{if(!e)return null;const t={timestamp:new Date,games:e};(0,d.$o)().setObject(m.X.localStorageXboxTitleHubDataId,t)}))}))},e.fetchXboxTitleHubData=S,e.getXboxUserConsent=$}(a||(a={}))},66861:function(e,t,r){"use strict";r.d(t,{X:function(){return a}});var a,i=r(83227),n=r(53909);!function(e){let t,r,a,o;e.startggStreamBaseUrl="https://www.start.gg/game",e.hubBaseUrl="https://www.msn.com/{0}/esports",e.edgeForGamersOcid="e4gntp",e.interestServiceEndpoint="graph/actions",e.interestServiceOcid="Peregrine",e.gamingShorelineOcid="gaming-shoreline",e.anaheimNtpFeedsOcid="anaheim-ntp-feeds",e.dislikeAction="Dislike",e.bingImagePartnerId="uxf",e.thFallbackImage="hubstream_fallback.jpg",e.streamImagePlaceholderThId="OUWL.streamer_placeholder",e.actionMenuItemKeyNotInterested="notInterested",e.actionMenuItemKeyHideCard="hideCard",e.actionMenuItemKeyMoreSettings="moreSettings",e.esportsAppKey="LszQbGWEXeh76bQTAnx4q79cOFDP2WLYWpLDIpKfpJ",e.gamePlayEventCollectionUrl=`https://api.msn.com/sports/RecordGamePlayEvent?apikey=${e.esportsAppKey}&ocid=${e.gamingShorelineOcid}`,e.checkIfUserGamerUrl="https://api.msn.com/news/users/me/actions?actionType=Follow&domain=Sports&interestType=All",e.pdpUserSettingsUrl="https://api.msn.com/Msn/User",e.PostRewardsEventApiUrl="https://api.msn.com/sports/GamingPostRewardsEvent",e.getXboxUserTokenUrl="https://user.auth.xboxlive.com/user/authenticate",e.getXboxXTokenUrl="https://xsts.auth.xboxlive.com/xsts/authorize",e.xboxTitleHubUrlTemplate="https://titlehub.xboxlive.com/users/xuid({xuidValue})/titles/TitleRecord/decoration/image,productid,titlerecord",e.localStorageXboxXTokenId="xboxXTokenId",e.localStorageXboxTitleHubDataId="xboxTitleHubDataId",function(e){e._1x_1y="_1x_1y",e._1x_2y="_1x_2y",e._2x_2y="_2x_2y",e._1x_3y="_1x_3y",e._1x_4y="_1x_4y",e._3x_2y="_3x_2y",e._4x_2y="_4x_2y",e._5x_2y="_5x_2y"}(t=e.EsportsCardLayout||(e.EsportsCardLayout={})),function(e){e.ALL="All",e.APEXLEGEND="2781507b-9bd4-4c47-416f-d433779a2d6a",e.BRAWLHALLA="b1f5c13d-8516-a262-f45c-0fe77103db58",e.COD="ea104807-e8bd-68bf-a85b-c01c90fd5e18",e.COD_MODERN_WARFARE="873504a6-feb4-e8af-fe27-e46326e4b8be",e.CSGO="8f345aa7-ff29-2efd-48fd-8230fd8795aa",e.DOTA2="51b8bf37-fede-45d5-3943-fef79b0fa628",e.FIFA="4e3a60d9-f3ec-ad0f-82ab-472cd8d340a2",e.FORTNITE="13cbc36a-9316-174d-9f11-61ed80751dc8",e.FREEFIRE="4e01bfde-542a-46b7-8c3e-658af348176a",e.GEARS="d98409bb-18ff-541b-1ceb-1d1632e5442a",e.LOL="dcd754dc-9f53-0f8b-3bfc-9c401f16138b",e.MINECRAFT="a9646932-a188-6101-5549-da706613afa0",e.NBA="a3cac10a-d3a0-ac0e-0c04-e23c12a6b4b3",e.NFL="d15fca59-bf56-d81f-d64a-6f44c3bc6a03",e.OVERWATCH="c7762702-92e8-4ab9-87d5-4aac3f34a16c",e.PUBG="a002f1d4-ea2f-ea92-db95-ddeb4e8206f9",e.RAINBOWSIX="8d2a217f-dbef-13a0-708b-53618a35ab1c",e.ROBLOX="3312f0b2-0877-a9cf-aa03-547a861a96f3",e.ROCKETLEAGUE="b872778f-614c-a7ea-e82a-6c42c6c6ccb9",e.SMASH="8b505cf6-ee61-5e74-143b-6db3fc488f26",e.TEKKEN7="ff53a039-d7ac-8c35-39ab-0748e4c8825f",e.VALORANT="72d5fb42-ec96-44e0-ae93-2e1cfb2c1836",e.HALO="9fb23673-5160-bfc9-6234-f986b96819b2",e.WOW="a5c80c6b-1c83-2986-81b7-ca9d8465e940"}(r=e.Game||(e.Game={})),e.userGamerGames=[r.LOL,r.DOTA2,r.FORTNITE,r.VALORANT,r.APEXLEGEND,r.CSGO,r.COD_MODERN_WARFARE,r.ROCKETLEAGUE,r.OVERWATCH,r.WOW],e.csgo={id:r.CSGO,abbreviation:"csgo",thId:"OUWL.esportshub_gamelogo_CSGO"},e.cod={id:r.COD,abbreviation:"cod",thId:"OUWL.esportshub_gamelogo_callofduty"},e.dota2={id:r.DOTA2,abbreviation:"dota2",thId:"OUWL.esportshub_gamelogo_dota2"},e.fortnite={id:r.FORTNITE,abbreviation:"fortnite",thId:"OUWL.esportshub_gamelogo_Fortnite"},e.lol={id:r.LOL,abbreviation:"lol",thId:"OUWL.esportshub_gamelogo_leagueoflegends"},e.overwatch={id:r.OVERWATCH,abbreviation:"overwatch",thId:"OUWL.esportshub_gamelogo_overwatch"},e.pubg={id:r.PUBG,abbreviation:"pubg",thId:"OUWL.esportshub_gamelogo_pubg"},e.rainbowSix={id:r.RAINBOWSIX,abbreviation:"rainbowsix",thId:"OUWL.esportshub_gamelogo_rainboxsix"},e.rocketLeague={id:r.ROCKETLEAGUE,abbreviation:"rocketleague",thId:"OUWL.esportshub_gamelogo_rocketleague"},e.valorant={id:r.VALORANT,abbreviation:"valorant",thId:"OUWL.esportshub_gamelogo_valorant"},e.fifa={id:r.FIFA,abbreviation:"fifa",thId:"OUWL.esportshub_gamelogo_fifa"},e.gears={id:r.GEARS,abbreviation:"gears",thId:"OUWL.esportshub_gamelogo_gears5"},e.smashBros={id:r.SMASH,abbreviation:"smash",thId:"OUWL.esportshub_gamelogo_smashbros"},e.apexLegends={id:r.APEXLEGEND,abbreviation:"apexlegend",thId:"OUWL.esportshub_gamelogo_apex"},e.brawlhalla={id:r.BRAWLHALLA,abbreviation:"brawlhalla",thId:"OUWL.esportshub_gamelogo_brawlhalla"},e.minecraft={id:r.MINECRAFT,abbreviation:"minecraft",thId:"OUWL.esportshub_gamelogo_minecraft"},e.nba={id:r.NBA,abbreviation:"nba",thId:"OUWL.esportshub_gamelogo_nba"},e.roblox={id:r.ROBLOX,abbreviation:"roblox",thId:"OUWL.esportshub_gamelogo_roblox"},e.tekken7={id:r.TEKKEN7,abbreviation:"tekken7",thId:"OUWL.esportshub_gamelogo_tekken"},e.freeFire={id:r.FREEFIRE,abbreviation:"freefire",thId:"OUWL.esportshub_gamelogo_freefirte"},e.nfl={id:r.NFL,abbreviation:"nfl",thId:"OUWL.esportshub_gamelogo_madden"},e.halo={id:r.HALO,abbreviation:"halo",thId:"OUWL.esportshub_gamelogo_haloinfinite"},e.GameMap=new Map([[e.csgo.id,e.csgo],[e.lol.id,e.lol],[e.valorant.id,e.valorant],[e.fortnite.id,e.fortnite],[e.rocketLeague.id,e.rocketLeague],[e.csgo.id,e.csgo],[e.dota2.id,e.dota2],[e.overwatch.id,e.overwatch],[e.pubg.id,e.pubg],[e.cod.id,e.cod],[e.rainbowSix.id,e.rainbowSix],[e.fifa.id,e.fifa],[e.gears.id,e.gears],[e.smashBros.id,e.smashBros],[e.apexLegends.id,e.apexLegends],[e.freeFire.id,e.freeFire],[e.minecraft.id,e.minecraft],[e.roblox.id,e.roblox],[e.tekken7.id,e.tekken7],[e.nfl.id,e.nfl],[e.nba.id,e.nba],[e.brawlhalla.id,e.brawlhalla],[e.halo.id,e.halo]]),e.esportsTelemetryConstants={vertical:"esports",esportsCard:"esports_{cardtype}_card",header:"esports_{cardtype}_header",stream:"esports_{cardtype}_stream",game:"esports_{cardtype}_game",customization:"esports_{cardtype}_customization",moreSettings:"esports_{cardtype}_customization_moresettings",hideCard:"esports_{cardtype}customization_hidecard",notInterested:"esports_{cardtype}_customization_notinterested"},e.gamingTelemetryVertical="gaming",e.gamingTelemetryProviderType="publisher",e.gamingTelemetryAudienceMode="consumer",e.GamingExperienceTelemetryMap=new Map([[i.x.gamingCompeteCard,"GamingCompeteCard"],[i.x.gamingMediaCarousel,"GamingMediaCarousel"],[i.x.gamingPersonalizationCard,"GamingPersonalizeCTACard"],[i.x.gamingRecentlyPlayedCard,"GamingRecentlyPlayedCard"],[i.x.gamingRecommendedCard,"GamingRecommendedCard"],[i.x.gamingRedditCard,"GamingRedditCard"],[i.x.gamingRewardsCard,"GamingRewardsCard"],[i.x.gamingStreamCard,"GamingLiveStreamsCard"],[i.x.gamingTournamentCard,"GamingProTournamentsCard"],[i.x.gamingUpcomingCard,"GamingUpcomingGamesCard"],[i.x.gamingVideoCard,"GamingYoutubeCard"],[i.x.gamingMatchCard,"GamingProMatchesCard"],[i.x.casualGamesCard,"GamingCasualGamesCard"],[i.x.esportsCasualGamesCard,"GamingCasualGamesCard"]]),function(e){e.TitleLink="TitleLink",e.SubredditLink="SubredditLink",e.SingleEventLink="SingleEventLink",e.XboxPlayLink="XboxPlayLink",e.AchievementGuideLink="AchievementGuideLink",e.GameGuideLink="GameGuideLink",e.XCloudGameLink="XCloudGameLink",e.DiscoverLink="DiscoverLink",e.ConnectToXboxButton="ConnectToXboxButton",e.JoinButton="JoinButton",e.TermsButton="TermsButton",e.PrivacyButton="PrivacyButton",e.TournamentContentCard="TournamentContentCard",e.MatchContentCard="MatchContentCard",e.ContentCard="ContentCard",e.GameCarouselCard="GameCarouselCard",e.SeeMore="SeeMore",e.SeeAll="SeeAll",e.UpNextTab="UpNextTab",e.MyEventsTab="MyEventsTab",e.EventCard="EventCarouselCard",e.GamingCarousel="GamingCarousel",e.SequenceIndicator="SequenceIndicator",e.NextFlipper="NextFlipper",e.PreviousFlipper="PreviousFlipper",e.PaginationDot="PaginationDot",e.NewReleasesTab="NewReleasesTab",e.ComingSoonTab="ComingSoonTab",e.GamePassTab="GamePassTab",e.CarouselCard="CarouselCard",e.PersonalizeNowButton="PersonalizeNowButton",e.Header="Header",e.ActionButton="ActionButton",e.MoreSettings="MoreSettingsAction",e.MoreOptions="MoreOptionsAction",e.HideCard="HideCardAction",e.NotInterested="NotInterestedAction",e.HeadCard="HeadCard",e.genreMenuButton="genreMenuButton",e.genreMenuItem="genreMenuItem",e.genreCard="genreCard",e.CarouselHeaderLink="CarouselHeaderLink",e.CarouselHeaderIconLink="CarouselHeaderIconLink"}(a=e.GamingTelemetryComponent||(e.GamingTelemetryComponent={})),e.cardImageInfo={width:300,height:146,enableDpiScaling:!1,format:n.D3.PNG},e.cardImage1uInfo={width:300,height:304,enableDpiScaling:!1,format:n.D3.PNG},e.cardImage16_9Info={width:300,height:157,enableDpiScaling:!1,format:n.D3.PNG},e.timeIconThid="OUWL.gaming_time",e.timeIconSettings={width:12,height:12,enableDpiScaling:!1},e.viewsIconThid="OUWL.gaming_views",e.viewsIconSettings={width:12,height:8,enableDpiScaling:!1},e.youtubeIconThid="OUWL.gaming_youtube",e.twitchIconPurpleThid="OUWL.gaming_twitch_purple",e.twitchIconWhiteThid="OUWL.gaming_twitch_white",e.facebookgamingIconBlueThid="OUWL.gaming_facebookgaming_blue",e.facebookgamingIconWhiteThid="OUWL.gaming_facebookgaming_white",e.providerIconSettings={width:16,height:16,enableDpiScaling:!0},e.gameIconSettings={width:20,height:20,enableDpiScaling:!0},e.streamerIcon={width:32,height:32,enableDpiScaling:!0,format:n.D3.PNG},e.streamerIconLarge={width:60,height:60,enableDpiScaling:!0,format:n.D3.PNG},function(e){e.Gamer="IsGamer",e.XboxGamer="IsXboxGamer",e.PCGamer="IsPCGamer"}(o=e.GamerUserType||(e.GamerUserType={}))}(a||(a={}))},4936:function(e,t,r){"use strict";r.d(t,{At:function(){return m},I$:function(){return l},J_:function(){return g},Lj:function(){return f},tY:function(){return c},xx:function(){return p},zI:function(){return h}});var a=r(53909),i=r(16517),n=r(66861),o=r(76859),s=r(49088);const c=new Map([[o.Nv._1x_1y,n.X.EsportsCardLayout._1x_1y],[o.Nv._1x_2y,n.X.EsportsCardLayout._1x_2y],[o.Nv._2x_2y,n.X.EsportsCardLayout._2x_2y],[o.Nv._1x_3y,n.X.EsportsCardLayout._1x_3y],[o.Nv._1x_4y,n.X.EsportsCardLayout._1x_4y],[o.Nv._3x_2y,n.X.EsportsCardLayout._3x_2y],[o.Nv._4x_2y,n.X.EsportsCardLayout._4x_2y],[o.Nv._5x_2y,n.X.EsportsCardLayout._5x_2y]]);var d;!function(e){e.VideoGame="VideoGame",e.Streamer="Streamer",e.Stream="Stream"}(d||(d={}));function l(e){if(!e||0==e.length)return null;return e[Math.floor(Math.random()*e.length)]}const u=Math.ceil(4*Math.random())||4;function h(){return`ts${u}.cn.mm.bing.net/th`}function p(e,t,r=!1){if((0,s.T)(e))return r?(0,a.zz)(n.X.streamImagePlaceholderThId,t):null;let o=a.q3;return i.jG.IsChinaCompliance&&(o=h()),(0,a.mL)(`${o}?id=${e}&pid=${n.X.bingImagePartnerId}&rf=${n.X.thFallbackImage}`,t)}function g(e){let t=0;for(let r=0;r<e.length;r++)if("0"!==e.charAt(r)&&":"!==e.charAt(r)||r>=e.length-4){t=r;break}return e.substring(t)}function m(e){if(null==e||isNaN(e)||e<=0)return"";return g(new Date(1e3*e).toISOString().slice(11,19))}function f(e,t){if(!e.includes("?"))return"";const r=e.split("?")[1].split("&");for(let e=0;e<r.length;e++){const a=r[e];if(!a.includes("="))continue;const i=a.split("="),n=i[0],o=i[1];if(n==t)return o}return""}},58239:function(e,t,r){"use strict";r.d(t,{BR:function(){return l},cZ:function(){return s},q4:function(){return c},t6:function(){return d}});var a=r(38156),i=r(39860),n=r(60483),o=r(66861);const s=(e,t)=>{if(!t||!t.name)throw new Error("Invalid telemetry contract. Contract must include 'name' property.");return Object.assign(Object.assign(Object.assign({},h),t),{content:Object.assign(Object.assign({},h.content),t.content)})};function c(e){if(!e)return;return new n.D(e).getMetadataTag()}const d=(e,t,r)=>Object.assign(Object.assign({},u(e,r)),{ext:t}),l=(e,t)=>Object.assign(Object.assign({},e),{content:Object.assign(Object.assign({},e.content),t)}),u=(e,t)=>l(e,{id:null!=t?t:(0,i.GW)()}),h={content:{vertical:o.X.gamingTelemetryVertical,type:a.uH.StructuredData},type:a.c9.ActionButton}},49088:function(e,t,r){"use strict";function a(e){return!e||!function(e){if(!e)return e;if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}(e)}r.d(t,{T:function(){return a}})},76859:function(e,t,r){"use strict";r.d(t,{C7:function(){return o},Nv:function(){return a},OO:function(){return s},X9:function(){return c},sn:function(){return n}});var a,i=r(9791);!function(e){e._1x_1y="_1x_1y",e._1x_2y="_1x_2y",e._1x_3y="_1x_3y",e._1x_4y="_1x_4y",e._1x_5y="_1x_5y",e._2x_1y="_2x_1y",e._2x_2y="_2x_2y",e._2x_3y="_2x_3y",e._2x_4y="_2x_4y",e._2x_6y="_2x_6y",e._3x_1y="_3x_1y",e._3x_2y="_3x_2y",e._4x_1y="_4x_1y",e._4x_2y="_4x_2y",e._5x_1y="_5x_1y",e._5x_2y="_5x_2y"}(a||(a={}));const n=146,o=300,s=12,c=(0,i.Z)((e=>Array(e).fill(n)))},68384:function(e,t,r){"use strict";var a;r.d(t,{S:function(){return a}}),function(e){e.ClipCard="ClipCard",e.ConnectToXbox="ConnectToXbox",e.CasualGamesCard="CasualGamesCard",e.CompeteCard="CompeteCard",e.HighlightsCard="HighlightsCard",e.PersonalizationCard="PersonalizationCard",e.LivestreamCard="LivestreamCard",e.ProMatchesCard="ProMatchesCard",e.ProTournamentsCard="ProTournamentsCard",e.RecentlyPlayedCard="RecentlyPlayedCard",e.RecommendedCard="RecommendedCard",e.RecoVideoCard="RecoVideoCard",e.RedditCard="RedditCard",e.RewardsCard="RewardsCard",e.UpcomingGamesCard="UpcomingGamesCard",e.VideoCard="VideoCard"}(a||(a={}))},30113:function(e,t,r){"use strict";var a;r.d(t,{m:function(){return a}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(a||(a={}))},11708:function(e,t,r){"use strict";var a;r.d(t,{f:function(){return a}}),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.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.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(a||(a={}))},83152:function(e,t,r){"use strict";var a;r.d(t,{L:function(){return a}}),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"}(a||(a={}))},791:function(e,t,r){"use strict";r.d(t,{N:function(){return b}});var a=r(33940),i=r(33954),n=r(26415),o=r(68364),s=r(33799),c=r(16517),d=r(94788),l=r(67267),u=r(63535),h=r(87298),p=r(83152),g=r(11708),m=r(30113),f=r(65135),v=r(33379),y=r(51671);const b=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.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield l.$.getOneServiceHeaders(),credentials:"include"},r=(0,u.PH)(this.locationsServiceEndPoint);let i;[...l.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{i=yield(0,h.w)((()=>(0,a.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 i}return i}))}addToFavoriteLocation(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){const r="Location",i="Follow",n={method:"POST",body:JSON.stringify({actionType:i,targetType:r,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},o=(0,u.PH)(this.pdpServiceEndpoint);let d;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{d=yield(0,h.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,n);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,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,r={},i){return(0,a.mG)(this,void 0,void 0,(function*(){const n=p.L.Location,o="Follow",d=yield this.getRequestInit({method:"POST"},r);d.body=JSON.stringify({actionType:o,targetType:n,definitionName:t,degree:"DefaultLocation",metaData:e});const g=(0,u.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=i?i:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=i?i:(0,c.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),yield(0,h.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(n),!0}))}updateTrafficMyRoutes(e,t,r,n,o,s){return(0,a.mG)(this,void 0,void 0,(function*(){const c=r.replace(/[^a-zA-Z0-9\-.,_]/g,""),d=p.L.Traffic,u="Follow",g={method:"POST",body:JSON.stringify({actionType:u,targetType:d,targetId:c,degree:e,definitionName:t,metadata:n,createdDateTime:s}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},m=yield this.getTrafficPdpUrl(null,null,o);try{yield(0,h.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.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 i.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,r){return(0,a.mG)(this,void 0,void 0,(function*(){const i={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,t,r);try{yield(0,h.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(p.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var r;return(0,a.mG)(this,void 0,void 0,(function*(){const i={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},n=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,h.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.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,a.mG)(this,void 0,void 0,(function*(){const a=(0,u.PH)(this.pdpServiceEndpoint),i=(yield(0,y.XJ)())===s.Hy.SignedIn,n=(0,c.Yq)().UserId,o=i?l.$.getOneServiceParamsWithAuth(n,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(n,this.ocid,!this.ocidOverride);if(e||t){const r=`targetType eq '${p.L.Traffic}'`,i=e?`degree eq '${e}'`:"",n=t?`definitionName eq '${t}'`:"";a.searchParams.set("$filter",`actionType eq 'Follow' and (${r})${i?` and (${i})`:""}${n?` and (${n})`:""}`)}return[...o,...r||[]].forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)})),a}))}addToWatchList(e