: 4px 20px;
    border: 1px solid #FFFFFF;
    box-sizing: border-box;
    border-radius: 20px;
}
.carousel-item > .item-button:hover{
    border-color: #F2F2F2
}
.carousel-item > .item-button:active{
    border-color: #F7F7F7
}
`,_e=Oe.i`
.description-contianer{
    width: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 16px ;
}
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.title-container > .icon, .title-container > .icon svg{
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    margin-inline-end: 8px;
}
.title-container .title{
    font-style: normal;
    font-weight: 600;
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.title-container > .icon > img {
    width: inherit;
    height: inherit;
}
.button-title{
    background: rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-style: normal;
    font-weight: 400;
    line-height: var(--type-ramp-minus-1-line-height);
    text-align: center;
    color: #FFFFFF;
    font-size: var(--type-ramp-minus-1-font-size);
    width: 88px;
    flex-shrink: 0;
    margin-left: 12px
}
.button-title:hover{
    background: rgba(255, 255, 255, 0.53);
}
.button-title:active{
    background: rgba(255, 255, 255, 0.21);
}
`,Ue=Oe.i`
.mini-carousel-item{
    margin-inline-end: 8px;
    height: 56px;
    width: calc(var(--mini-scroll-width) * 1px);
    background-size: contain;
    border-radius: 6px;

    cursor: pointer;
    display: flex;
    align-items: center;
    font-style: normal;
    font-weight: 600;
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    color: #FFFFFF;
}
.mini-item-icon{
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    margin-inline-start: 8px;
    margin-inline-end: 8px;
}
.mini-item-icon img {
    width: inherit;
    height: inherit;
}
.mini-button-icon-title{
    width: inherit;
    display: flex;
    align-items: center;
    padding: 0px 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
`,Be=Oe.i`
.footer-container > .button-pagination{
    padding: 14px 0;
    padding-inline-start: 16px
}
.footer-container > .button-more{
    padding: 12px 0;
    padding-inline-end: 16px;
    align-items: center;
}
.footer-container > .button-pagination > .prev,.next{
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container > .button-pagination > .pager{
    min-width: 18px;
    margin: 0 6px;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: var(--type-ramp-minus-2-line-height);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-foreground-rest);
    cursor: default;
}

.button-pagination > .prev{
    transform: rotate(180deg);
}
.button-pagination svg{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    padding: 2px;
    background: rgba(0, 0, 0, 0.07);
}
.button-pagination svg:hover {
    background: rgba(247, 247, 247, 1);
}
.button-pagination svg:active  {
    background: rgba(251, 251, 251, 1)
}

.btn-link{
    height: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: var(--type-ramp-minus-1-line-height);
    text-align: right;
    color: rgba(0, 0, 0, 0.83);
    flex: none;
    order: 0;
    flex-grow: 0;
    margin-inline-end: 8px;
    cursor: pointer;
    text-decoration:underline;
}
.btn-link {
    text-decoration: none;
}
.btn-link:hover{
    text-decoration: underline;
}
.btn-icon{
    width: 24px;
    height: 24px;
    background: #036AC4;
    box-shadow: 0px 0px 0.8px rgba(0, 0, 0, 0.13), 0px 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 1000px;
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.btn-icon:hover{
    background: #0473CE;
}
.btn-icon:active{
    background: #0481E0;
}
.btn-icon svg{
    fill: #FFF;
    width: 8px;
    height: 9px;
    transform: rotate(90deg);
}
`,De=Oe.i`
    .previous-flipper {
        left: 0;
    }

    .next-flipper {
        right: 0;
    }
`,He=Oe.i`
    .button-pagination .prev{
        transform: rotate(0deg);
    }
    .button-pagination .next{
        transform: rotate(180deg);
    }
    .button-more .btn-icon{
        transform: rotate(180deg);
    }
    .context-menu{
        left: 0px;
    }
    .card-container > .carousel-container{
        right: 16px;
    }

    .previous-flipper {
        right: 0;
    }

    .next-flipper {
        left: 0;
    }
`,Re=Oe.i`
#casualgames-card-title::part(title)::after {
    display: none;
}

.card-title-icon {
    width: 14px;
    height: 14px;
}

.prong2-card-title-icon {
    text-decoration: none;
    color: unset;
}
.prong2-card-title-icon:hover{
    text-decoration: underline;
    cursor: pointer;
}

#casualgames-card-title {
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    position: relative;
}

#anchored-region {
    z-index: 699; // because more action menu are using 700.
}

.menu-popup-wrap {
    width: 276px;
    box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.14);
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    padding: unset;
}

.menu-popup-wrap-close {
    display: none;
}

.menu-popup-item {
    margin: 4px;
    height: 32px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px;
    cursor: pointer;
}
.menu-popup-item-icon {
    width: 20px;
    height: 20px;
    margin-inline-end: 6px;
}
.menu-popup-item:hover {
    background: #EFEFEF;
}
.menu-button {
    background: transparent;
    height: auto;
    min-width: unset;
    margin-top: 3px;
}

.menu-button:hover {
    background: rgba(255,255,255,0.7)
}

.menu-button::part(end),
.menu-button::part(start) {
    margin: unset;
    display: block;
}

.screen-reader {
    display: block;
    height: 0px;
    width: 0px;
    overflow: hidden;
    position: absolute;
}

.menu-button svg {
    height: 12px;
    width: 13px;
}

.menu-button-fold svg {
    transform: rotate(180deg);
}

.card-wrapper-v2 .title-container .title{
    font-size: 12px;
    line-height: 16px;
}

.card-wrapper-v2 .more-actions-button {
    height: 24px;
    width: 24px;
    min-height: 24px;
    min-width: 24px;
    background: rgba(255, 255, 255, 0.7);
}
.card-wrapper-v2.card-wrapper-prong2 .more-actions-button {
    background: none;
}

.card-wrapper-v2 .more-actions-button:hover {
    background: rgba(255, 255, 255, 0.5);
}
.card-wrapper-v2.card-wrapper-prong2 .more-actions-button:hover {
    background-color: var(--neutral-fill-stealth-hover);
    border-radius: 3px;
}

.card-wrapper-v2 .more-actions-button:active {
    background: rgba(255, 255, 255, 0.3);
}
.card-wrapper-v2.card-wrapper-prong2 .more-actions-button:active {
    background-color: var(--neutral-fill-stealth-hover);
    border-radius: 3px;
}

.game-container.v2 {
    height: 224px;
    margin: -8px 0px 0px 0px;
}

.v2 .game-card{
    background-size: cover;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.v2 .description-contianer { 
    width: 100%;
    padding: 16px 8px 8px 8px;
}
`,je=Oe.i`
.menu-button:hover,
.card-wrapper-v2 .more-actions-button {
    background: rgba(255, 255, 255, 0.0605);
}

.menu-popup-wrap {
    border-color: rgba(255,255,255,0.07);
}

.menu-popup-item:hover {
    background-color: rgba(255,255,255,0.07);
}
`,Ne=Oe.i`
.card-footer-1u {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    height: 24px;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    color: inherit;
    text-decoration: none;
    width: auto;
    padding: 0 12px;

    border-radius: 24px;
    background: rgba(255,255,255,0.7);
}

.card-footer-1u:hover {
    background: rgba(255,255,255,0.5);
}

.card-footer-1u:active {
    background: rgba(255,255,255,0.3);
}
`,ze=Oe.i`
.card-footer-1u {
    background: rgba(255, 255, 255, 0.0605);
}

.card-footer-1u:hover,
.card-wrapper-v2 .more-actions-button:hover {
    background: rgba(255, 255, 255, 0.09);
}

.card-footer-1u:active,
.card-wrapper-v2 .more-actions-button:active {
    background: rgba(255, 255, 255, 0.03);
},
`,We=(Oe.i`

`,Oe.i`
.card-wrapper-prong2 {
    position: relative;
}
.card-wrapper-prong2.card-wrapper-size1 {
    background: linear-gradient(124.33deg, rgba(165, 172, 255, 0) -20.01%, #A8D6FB 96.49%), #FFFFFF;
}
.card-wrapper-prong2.card-wrapper-size2 {
    background: linear-gradient(124.33deg, rgba(165, 172, 255, 0) -20.01%, #B1DCFF 96.49%), #FFFFFF;
}
.game-card-prong2-half {
    width: calc(${Ae} * 1px);
    height: 74px;
    left: 16px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}
.game-card-prong2-half-img {
    width: 96px;
    height: 74px;
}
.game-card-prong2-half-title-container{
    flex: 1;
    height: 74px;
    display: flex;
    align-items: center;
    padding: 0px 16px;
    background-color: darkslategrey;
}
.game-card-prong2-half-title{
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #FFFFFF;
}
.footer-container-halfu-prong2-wrapper {
    display: inline-block;
    transform: translateX(-50%);
    margin-left: 50%;
    margin-top: 10px;
}
.footer-container-halfu-prong2 {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-container-halfu-prong2 .pagination-item {
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.4458);
    margin: 2px 4px;
    border-radius: 50%;
    cursor: pointer;
}
.footer-container-halfu-prong2 .pagination-item.active {
    width: 6px;
    height: 6px;
    margin: 0px 3px;
}

.card-wrapper-prong2 .card-footer-1u-prong2 {
    color: #003E92;
    background: none!important;
}
.card-wrapper-prong2 .card-footer-1u-prong2:hover {
    text-decoration: underline;
}
`),qe=Oe.i`
.card-wrapper-prong2.card-wrapper-size1, .card-wrapper-prong2.card-wrapper-size2 {
    background: linear-gradient(125.77deg, rgba(6, 30, 83, 0) -33.71%, #061E53 74.86%), #1C1C1C;
}
.footer-container-halfu-prong2 .pagination-item {
    background: rgba(255, 255, 255, 0.5442);
}
.card-wrapper-prong2 .card-footer-1u-prong2 {
    color: #60CDFF;
}
`,Xe=Oe.i`
:host {
    display: block;
    height: 100%;
    width: 100%;
    font-size: var(--type-ramp-minus-1-font-size)
}

.card-wrapper {
    background: linear-gradient(103.32deg, #E7E9FF 0%, #C1E0F9 100%);
    border-radius: calc(var(--layer-corner-radius, 6) * 1px);
    height: 100%;
    width: 100%;
    position: relative;
    display: block;
    text-decoration: none;
}

.card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-header > .header-title{
    font-style: normal;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: 16px;
    margin-inline-start: 16px;
    color: var(--neutral-foreground-rest);
}
.card-header > .header-title a {
    text-decoration: none;
    color: var(--neutral-foreground-rest);
}

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

.card-header > .header-title a::after{
    content: '';
    position: absolute;
    inset: 0px;
    width: 100%;
    height: 100%;
}

.card-header > .header-actions {
    margin-top: 12px;
    margin-inline-end: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
}
.card-header > .header-actions >.more-actions {
    width: 24px;
    height: 24px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}
.card-header > .header-actions > .more-actions svg{
    fill: var(--neutral-foreground-rest);
}

.card-container{
    overflow: hidden;
    position: relative;
}

.card-container._1x_1y{
    margin-top: 6px;
}

.card-container._1x_2y{
    margin-top: 12px;
}
.card-container.v2{
    margin-top: -6px;
}

.card-wrapper-prong2 .card-container.v2{
    margin-top: 0;
}
.card-wrapper-prong2 .game-container.v2{
    margin-top: 0;
    height: 216px;
}

.card-container > .carousel-container{
    width: fit-content;
    display: flex;
    align-items: center;
    position: relative;
    left: 16px;
    transition: all .5s ease-out;
}
.card-container > .footer-container {
    position: relative;
}

.card-container > .footer-container,
.card-container > .footer-container > .button-pagination,
.card-container > .footer-container > .button-more 
{
    display: flex;
}

a.button-more{
    flex-grow: 1;
    justify-content: end;
    text-decoration: none;
    position: relative;
}

a.button-more .btn-link::after{
    content: "";
    position: absolute;
    inset: 0px;
    height: 100%;
    width: 100%;
}

${Me}
${_e}
${Ue}
${Be}
${Ne}
${Re}
${We}


.flippers {
    margin: 0;
    height: 32px;
    width: 16px;
    position: absolute;
    top: 21px;
    z-index: 1;
    display: none;
}

.show-flipper {
    display: inline-flex;
}

.next-flipper::before,
.previous-flipper::before {
    border-radius: 3px;
    border: calc(${f.Han} * 1px) solid transparent;
    background: ${f.jql};
    opacity: 1;
    transition: opacity 0.2s ease-in-out 0s;
}

.next-flipper::part(previous),
.next-flipper::part(next),
.previous-flipper::part(previous),
.previous-flipper::part(next) {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    opacity: 0.9;
    color: ${f.CHi}
}
`.withBehaviors((0,Le.Uu)(Oe.i`
        .card-wrapper{
            background: linear-gradient(103.32deg, #2D2770 0%, #201C42 100%);
        }

        .card-header > .header-actions{
            background: rgba(255, 255, 255, .05)
        }
        .footer-container svg>g>path{
            fill: rgba(255,255,255,0.09) !important
        }
        .btn-link{
            color: #fff
        }

        .button-pagination svg {
            background: #4c4c4c;
            fill: #fff;
        }
        .button-pagination svg:hover{
            background: #545454;
        }
        .button-pagination svg:active{
            background: #474747;
        }
        ${ze}
        ${je}
        ${qe}

        .next-flipper::part(previous),
        .next-flipper::part(next),
        .previous-flipper::part(previous),
        .previous-flipper::part(next) {
            color: ${f.CHi}
        }
    `),new Fe.O(De,He));var Je=r(26007),Ve=r(33832),Ze=r(76859),Ye=r(53909),Ke=r(6551),Qe=r(39181),et=r(13988),tt=r(18864),rt=r(58952),it=r(99150),nt=r(34550),at=r(1854),ot=r(33763),st=r(23401);ot.S;const dt=Qe.d`
    ${e=>pe.superSDSetting&&pe.superSDSetting.actionsMenuButtonElement?(0,Ke.J)(pe.superSDSetting.actionsMenuButtonElement,pe.superSDSetting.menuItems):""}
`,ct=Qe.d`
    ${(e,t)=>pe.superSDSetting?(0,Ke.D)((()=>{var e;return null===(e=pe.superSDSetting)||void 0===e?void 0:e.toggleActionMenu(!pe.superSDSetting.isActionMenuOpen,t.event)}),e.telemetryTags?e.telemetryTags.moreOptionsTelemetryTag:"",e.localizationContext?e.localizationContext.moreOptionBtnTitle:"","more-actions-button"):""}
`,lt=Qe.d`
    <div class="carousel-item ${e=>e.thumbnailId.replace("OUWL.","_")+"_2y"}" 
        style="${(e,t)=>t.parent.getBackground(e.thumbnailId)}"
        data-t="${e=>e.telemetryMetaTag}"
        data-customhandled="true"
        href=${e=>e.playUrl}
        @click="${(e,t)=>t.parent.jumpClickHandle(e.playUrl,e.id,t.event)}"
        >
        <div class="description-contianer">
            <div class="title-container">
                <div class="title">${e=>e.name}</div>
            </div>
            <div class="button-title">
                ${(e,t)=>{var r;return null===(r=t.parent.localizationContext)||void 0===r?void 0:r.playNow}}
            </div>
        </div>
    </div>
`,ut=Qe.d`
    <div class="mini-carousel-item ${e=>e.thumbnailId.replace("OUWL.","_")+"_1y"}" 
        style="${(e,t)=>t.parent.getBackground(e.thumbnailId)}"
        data-t="${e=>e.telemetryMetaTag}"
        data-customhandled="true"
        href=${e=>e.playUrl}
        aria-label=${e=>e.name}
        tabindex=${(e,t)=>t.index===t.parent.currentPage-1?0:-1}
        @click="${(e,t)=>t.parent.jumpClickHandle(e.playUrl,e.id,t.event)}"
        >
        <div class="mini-button-icon-title">
            <div class="mini-item-title" style="">${e=>e.name}</div>
        </div>
    </div>
`,ht=Qe.d`
    <a class="game-card-prong2-half"
        data-t="${e=>e.telemetryMetaTag}"
        href=${e=>e.playUrl}
        target="_blank"
        aria-label=${(e,t)=>{var r,i;return null===(i=null===(r=t.parent.localizationContext)||void 0===r?void 0:r.playTitle)||void 0===i?void 0:i.replace("{0}",e.name)}}
        tabindex=${(e,t)=>t.index===t.parent.currentPage-1?0:-1}
    >
        <div 
            class="game-card-prong2-half-img"
            style="${(e,t)=>`background-image: url(${(0,O.xx)(e.thumbnailId,t.parent.halfBackgroundImageInfo)})`}"
        ></div>
        <div 
            class="game-card-prong2-half-title-container ${(e,t)=>e.thumbnailId.replace("OUWL.","_")+"_layout"}"
            style=${(e,t)=>t.parent.getV2Background(e.thumbnailId,t.parent.halfBackgroundImageInfo)}
        >
            <div class="game-card-prong2-half-title">${e=>e.name}</div>
        </div>
    </a>
`,gt=Qe.d`
    <a
    role="gridcell"
    aria-label=${e=>e.name}
    tabindex=${(e,t)=>0===t.index?0:-1}
    class="game-card ${e=>e.id}"
    style="${(e,t)=>`background-image: url(${(0,O.xx)(e.thumbnailId,t.parent.backgroundImageInfo)})`}"
    data-t="${e=>e.telemetryMetaTag}"
    href=${e=>e.playUrl}
    target="_blank"
    >
    <div class="description-contianer ${(e,t)=>e.thumbnailId.replace("OUWL.","_")+"_layout"}" 
    style=${(e,t)=>t.parent.getV2Background(e.thumbnailId,t.parent.backgroundImageInfo)}
    >
        <div class="title-container">
            <div class="title">${e=>e.name}</div>
        </div>
    </div>
    </a>
`,pt=Qe.d`
<a target="${e=>e.openLinksInNewTab}"
href="${e=>e.exploreMoreUrl}" 
data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.headerClickTelemetryTags}}">
    ${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.cardTitle}}
</a>
`,mt=Qe.d`
<div>
    ${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.cardTitle}}
</div>
`,ft=Qe.d`
    <svg
        slot="previous"
        width="8"
        height="8"
        viewBox="0 0 8 8"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M0.5 4.5C0.5 4.25781 0.557292 4.02865 0.671875 3.8125C0.786458 3.59635 0.94401 3.41927 1.14453 3.28125L4.92969 0.679687C5.09896 0.559896 5.28906 0.5 5.5 0.5C5.66406 0.5 5.82031 0.539062 5.96875 0.617187C6.13281 0.703125 6.26172 0.824219 6.35547 0.980469C6.45182 1.13672 6.5 1.30729 6.5 1.49219L6.5 7.51172C6.5 7.69401 6.45182 7.86328 6.35547 8.01953C6.26172 8.17578 6.13281 8.29818 5.96875 8.38672C5.81771 8.46224 5.66276 8.5 5.50391 8.5C5.29036 8.5 5.09896 8.4401 4.92969 8.32031L1.14453 5.71875C0.94401 5.58073 0.786458 5.40365 0.671875 5.1875C0.557291 4.97135 0.5 4.74219 0.5 4.5Z"
        />
    </svg>
    <svg
        slot="next"
        width="8"
        height="8"
        viewBox="0 0 8 8"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M0.5 1.49219C0.5 1.30729 0.546875 1.13672 0.640625 0.980468C0.736979 0.824218 0.86849 0.703125 1.03516 0.617187C1.18099 0.539062 1.33594 0.5 1.5 0.5C1.71094 0.5 1.90104 0.559896 2.07031 0.679687L5.85547 3.28125C6.05078 3.41667 6.20052 3.59245 6.30469 3.80859C6.40885 4.02474 6.46094 4.25521 6.46094 4.5C6.46094 4.74219 6.40885 4.97135 6.30469 5.1875C6.20052 5.40625 6.05078 5.58333 5.85547 5.71875L2.07031 8.32031C1.90104 8.4401 1.71094 8.5 1.5 8.5C1.34115 8.5 1.1862 8.46224 1.03516 8.38672C0.868489 8.29818 0.736979 8.17578 0.640625 8.01953C0.546875 7.86328 0.5 7.69401 0.5 7.51172L0.5 1.49219Z"
        />
    </svg>
`,vt=Qe.d`
    <fluent-flipper
        part="previous-flipper"
        class="previous-flipper flippers ${e=>e.showPreviousFlipper?"show-flipper":""}"
        title="${e=>e.localizationContext.previousFlipperTitle}"
        direction="${e=>e.direction===Je.N.rtl?"next":"previous"}"
        @click="${(e,t)=>e.clickPagination(e.previousBtn)}"
    >
        ${ft}
    </fluent-flipper>
`,yt=Qe.d`
    <fluent-flipper
        part="next-flipper"
        class="next-flipper flippers ${e=>e.showNextFlipper?"show-flipper":""}"
        title="${e=>e.localizationContext.nextFlipperTitle}"
        direction="${e=>e.direction===Je.N.rtl?"previous":"next"}"
        @click="${(e,t)=>e.clickPagination(e.nextBtn)}"
    >
        ${ft}
    </fluent-flipper>
`,bt=Qe.d`
    <div class="card-wrapper">
        <div class="card-header">
            <div class="header-title" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.cardTitle}}">
                ${(0,et.g)((e=>I.jG.CurrentMarket===st.I.ENUS||e.hitNewLanding),pt)}
                ${(0,et.g)((e=>I.jG.CurrentMarket!==st.I.ENUS&&!e.hitNewLanding),mt)}
            </div>
            
            ${(0,et.g)((e=>pe.superSDSetting&&pe.superSDSetting.menuItems.length>0),Qe.d`
            <div class="header-actions">
                <span class="more-actions">${ct}</span>
            </div>
            `)}
            
        </div>
        <div class="card-container ${e=>e.getCardContainerClass()}">
            ${(0,et.g)((e=>e.cardSize===Ze.Nv._1x_2y),Qe.d`<div class="carousel-container" style="${e=>e.scrollLeftLength()}">
                ${(0,tt.rx)((e=>e.casualData),lt,{positioning:!0})}
            </div>`)}
            ${(0,et.g)((e=>e.cardSize===Ze.Nv._1x_1y),Qe.d`<div class="carousel-container" style="${e=>e.scrollLeftLength()}">
                ${(0,tt.rx)((e=>e.casualData),ut,{positioning:!0})}
            </div>`)}
            <div class="footer-container">
                <div class="button-pagination">
                    <div class="prev" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.previousBtnTitle}}" @click="${e=>e.clickPagination(e.previousBtn)}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.previousFlipper}}">
                        ${nt.Z}
                    </div>
                    <div class="pager">
                        ${e=>e.currentPage}/${e=>e.casualData.length}
                    </div>
                    <div class="next" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.nextBtnTitle}}" @click="${e=>e.clickPagination(e.nextBtn)}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.nextFlipper}}">
                        ${nt.Z}
                    </div>
                </div>
                <a class="button-more" href="${e=>e.exploreMoreUrl}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.exploreMoreClickTelemetryTags}}" target="_blank">
                    <div class="btn-link" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}">
                        ${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}
                    </div>
                    <div class="btn-icon">
                        ${it.Z}
                    </div>
                </a>
            </div>
        </div>
    </div>
`,xt=Qe.d`
    <a
        class="card-wrapper card-wrapper-v2 ${e=>e.cardSize==Ze.Nv._1x_1y?"card-wrapper-size1":"card-wrapper-size2"} ${e=>e.isFromProng2?"card-wrapper-prong2":""}"
        data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.parentTelemetryTag}}"
        href="${e=>e.exploreMoreUrl}"
        target="_blank"
    >
        <cs-sd-card-header id="casualgames-card-title" show-menu-button="true">
            <img class="card-title-icon" src=${e=>{var t,r;return me(null!==(r=ve(null===(t=e.currentGenre)||void 0===t?void 0:t.genre,e.darkMode))&&void 0!==r?r:"")}} slot="icon"/>
            ${(0,et.g)((e=>!e.isFromProng2),Qe.d`
                <span>${e=>{var t,r,i;return null===(r=null===(t=e.localizationContext)||void 0===t?void 0:t.v2CardTitle)||void 0===r?void 0:r.replace("{0}",ye(null===(i=e.currentGenre)||void 0===i?void 0:i.genre,e.localizationContext))}}</span>
            `)}
            ${(0,et.g)((e=>e.isFromProng2),Qe.d`
            <a
                data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.headerClickTelemetryTags}}"
                href="${e=>e.exploreMoreUrl}"
                class="prong2-card-title-icon"
                target="_blank"
            >
                ${e=>{var t,r;return null===(r=null===(t=e.localizationContext)||void 0===t?void 0:t.v2CardTitle)||void 0===r?void 0:r.replace("{0}","")}}
            </a>
            `)}


            ${(0,et.g)((e=>!e.isFromProng2),Qe.d`
                <fluent-button
                ${(0,rt.i)("menuButton")}
                data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.genreMenuButton}}"
                slot="menu-button"
                id="menu-button"
                title="Genre Menu"
                aria-haspopup="true"
                aria-controls="menu-popup-wrap"
                aria-expanded="${e=>e.headerMenuFold?"false":"true"}"
                @click="${e=>e.handleClickMenu()}"
                @keypress="${e=>e.handleClickMenu()}"
                class="menu-button${e=>e.headerMenuFold?"":" menu-button-fold"}"
                >
                    <span class="screen-reader" slot="start">${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.v2HeadMenuButton}}</span>
                    ${at.Z}
                </fluent-button>

                <fluent-anchored-region 
                    id="anchored-region"
                    vertical-positioning-mode="dynamic" 
                    horizontal-positioning-mode="dynamic"
                    horizontal-inset="" 
                    vertical-default-position="bottom" 
                    horizontal-default-position="end" 
                    viewport="" 
                    horizontal-scaling="content" 
                    vertical-scaling="content" 
                    auto-update-mode="anchor"   
                    :anchorElement=${e=>e.menuButton}>
                        <fluent-menu data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.genreMenu}}" ${(0,rt.i)("menuWrapper")} class="menu-popup-wrap${e=>e.headerMenuFold?" menu-popup-wrap-close":""}" role="menu">
                            ${(0,tt.rx)((e=>{var t;return null===(t=e.backendResult)||void 0===t?void 0:t.genres}),Qe.d`
                                    <fluent-menu-item 
                                        data-t="${e=>e.telemetryMetaTag}" 
                                        class="menu-popup-item" 
                                        tabindex=-1 role="menuitem" 
                                        @click=${(e,t)=>{t.parent.handleChangeGenre(null==e?void 0:e.genre),t.parent.handleClickMenu()}} 
                                        @keydown=${(e,t)=>{var r,i;return(null===(r=t.event)||void 0===r?void 0:r.key)!==Ve.kL&&(null===(i=t.event)||void 0===i?void 0:i.key)!==Ve.BI||(t.parent.handleChangeGenre(null==e?void 0:e.genre),t.parent.handleClickMenu()),!0}}
                                        >
                                            <img slot="start" class="menu-popup-item-icon" src=${(e,t)=>me(ve(null==e?void 0:e.genre,t.parent.darkMode))} />
                                            ${(e,t)=>ye(null==e?void 0:e.genre,t.parent.localizationContext)}
                                    </fluent-menu-item>
                            `)}
                        </fluent-menu>
                </fluent-anchored-region>
            `)}

            ${ct}

        </cs-sd-card-header>
        ${(0,et.g)((e=>e.cardSize===Ze.Nv._1x_2y),Qe.d`
            <div class="game-container v2">
                <card-layout 
                    ${(0,rt.i)("cardLayout")}
                    aria-labeled-by="card-title" 
                    role="grid" 
                    class="layout${e=>String(e.layoutNum)}${e=>e.isFromProng2?"prong2":""}"
                    @keydown=${(e,t)=>e.wrapperKeydown(t.event)}
                >
                    ${(0,tt.rx)((e=>e.casualData.slice(0,e.layoutNum)),gt,{positioning:!0})}
                </card-layout>
            </div>
            
            <cs-sd-card-footer>
                <a
                    class="card-footer-1u ${e=>e.isFromProng2?"card-footer-1u-prong2":""}"
                    title=${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}
                    href="${e=>e.exploreMoreUrl}" 
                    data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.exploreMoreClickTelemetryTags}}" 
                    target="_blank">
                        ${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}
                </a>
            </cs-sd-card-footer>
        `)}
        ${(0,et.g)((e=>e.cardSize===Ze.Nv._1x_1y),Qe.d`
            <div
                class="card-container v2" 
                @mouseover=${(e,t)=>e.handleMouseOver(t.event)}
                @mouseout=${(e,t)=>e.handleMouseOut(t.event)}
            >
                ${(0,et.g)((e=>!e.isFromProng2),Qe.d`
                    <card-layout
                        ${(0,rt.i)("cardLayout")}
                        aria-labeled-by="card-title" 
                        role="grid" 
                        class="carousel-container" style="${e=>e.scrollLeftLength()}"
                        @keydown=${(e,t)=>e.wrapperKeydown1y(t.event)}
                    >
                        ${(0,tt.rx)((e=>e.casualData),ut,{positioning:!0})}
                    </card-layout>
                    <div class="footer-container">
                        <div class="button-pagination">
                            <div class="prev" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.previousBtnTitle}}" @click="${e=>e.clickPagination(e.previousBtn)}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.previousFlipper}}">
                                ${nt.Z}
                            </div>
                            <div class="pager">
                                ${e=>e.currentPage}/${e=>e.casualData.length}
                            </div>
                            <div class="next" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.nextBtnTitle}}" @click="${e=>e.clickPagination(e.nextBtn)}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.nextFlipper}}">
                                ${nt.Z}
                            </div>
                        </div>
                        <a class="button-more" href="${e=>e.exploreMoreUrl}" data-t="${e=>{var t;return null===(t=e.telemetryTags)||void 0===t?void 0:t.exploreMoreClickTelemetryTags}}" target="_blank">
                            <div class="btn-link" title="${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}">
                                ${e=>{var t;return null===(t=e.localizationContext)||void 0===t?void 0:t.exploreMoreGames}}
                            </div>
                            <div class="btn-icon">
                                ${it.Z}
                            </div>
                        </a>
                    </div>
                `)}
                ${(0,et.g)((e=>e.isFromProng2),Qe.d`
                    <card-layout
                        ${(0,rt.i)("cardLayout")}
                        aria-labeled-by="card-title" 
                        role="grid" 
                        class="carousel-container" style="${e=>e.scrollLeftLength()}"
                        @keydown=${(e,t)=>e.wrapperKeydown1y(t.event)}
                    >
                        ${(0,tt.rx)((e=>e.casualData.slice(0,16)),ht,{positioning:!0})}
                    </card-layout>
                    <div class="footer-container-halfu-prong2-wrapper" @click="${()=>!1}">
                        <div class="footer-container-halfu-prong2" @keydown=${(e,t)=>e.wrapperKeydown1y(t.event)}>
                            ${(0,tt.rx)(((e,t)=>e.casualData.slice(0,16)),Qe.d`
                                <div
                                    data-t="${(e,t)=>{var r;return null===(r=t.parent.telemetryTags)||void 0===r?void 0:r.paginationDot}}"
                                    tabindex=${(e,t)=>t.index===t.parent.currentPage-1?0:-1}
                                    @keypress=${(e,t)=>t.parent.jumpToPagination(t.index+1)}
                                    @click=${(e,t)=>t.parent.jumpToPagination(t.index+1)}
                                >
                                    <div class="pagination-item ${(e,t)=>t.parent.currentPage-1==t.index?"active":""}"></div>
                                </div>`,{positioning:!0})}
                        </div>
                    </div>
                    ${vt}
                    ${yt}
                `)}
            </div>
        `)}
    </a>
`,wt=Qe.d`
    ${(0,et.g)((e=>e.v2),xt)}
    ${(0,et.g)((e=>!e.v2),bt)}

    ${(0,et.g)((e=>{var t;return null===(t=pe.superSDSetting)||void 0===t?void 0:t.isActionMenuOpen}),dt)}
`;let Ct=class extends xe.H{constructor(){super(),this.wrapperWidth=300,this.scrollItemWidth=252,this.miniScrollItemWidth=186,this.itemHeight=208,this.miniItemHeight=56,this.miniItemIconWidth=36,this.miniItemIconHeight=36,this.currentPage=1,this.previousBtn="Previous",this.nextBtn="Next",this.isActionMenuOpen=!1,this.casualData=[],this.layoutNum=4,this.hitNewLanding=!1,this.actionMenuItems=[],this.exploreMoreUrl="",this.addedStyles=new Map,this.v2=!1,this.isFromProng2=!1,this.openLinksInNewTab="_blank",this.showPreviousFlipper=!1,this.showNextFlipper=!1,this.backgroundImageInfo={width:this.scrollItemWidth,height:this.itemHeight,enableDpiScaling:!1,format:Ye.D3.PNG},this.halfBackgroundImageInfo={width:96,height:74,enableDpiScaling:!1,format:Ye.D3.PNG},this.halfUBackgroundImageInfo={width:this.miniScrollItemWidth,height:this.miniItemHeight,enableDpiScaling:!1,format:Ye.D3.PNG},this.iconImageInfo={width:this.miniItemIconWidth,height:this.miniItemIconHeight,enableDpiScaling:!1,format:Ye.D3.PNG},this.headerMenuFold=!0,this.darkMode=!1,this.itemsPerPage=2,this.wcTabIndex=0,this.currentFocusItemIndex=0,this.GenreMenu_onOutsideClick=e=>{var t;const r=e.composedPath()&&e.composedPath()[0];(null===(t=this.menuButton)||void 0===t?void 0:t.contains(r))||(this.headerMenuFold=!0)},Ee.setValueFor(this,this.scrollItemWidth),Ge.setValueFor(this,this.miniScrollItemWidth),Ae.setValueFor(this,240)}handleMouseOver(e){e&&(e.stopPropagation(),this.showFlippers(!0))}handleMouseOut(e){e&&(e.stopPropagation(),this.showPreviousFlipper=!1,this.showNextFlipper=!1)}showFlippers(e){if(!this.casualData||this.casualData.length<=1)return;const t=this.showPreviousFlipper||this.showNextFlipper;this.showPreviousFlipper=(e||t)&&this.currentPage>1,this.showNextFlipper=(e||t)&&this.currentPage<this.casualData.length}clickPagination(e){return this.currentPage>0&&this.currentPage<this.casualData.length&&e===this.nextBtn?this.currentPage+=1:this.currentPage>1&&this.currentPage<this.casualData.length+1&&e===this.previousBtn?this.currentPage-=1:(e===this.nextBtn&&(this.currentPage+=1,this.currentPage>this.casualData.length&&(this.currentPage=1)),void(e===this.previousBtn&&(this.currentPage-=1,this.currentPage<1&&(this.currentPage=this.casualData.length))))}jumpToPagination(e){this.currentPage=e}currentPageChanged(){this.showFlippers(!1)}casualDataChanged(){this.casualData.length>4?this.layoutNum=6:this.layoutNum=4}scrollLeftLength(){const e=this.currentPage-1;let t,r=0;return t=document.dir===Je.N.ltr?"left":document.dir===Je.N.rtl?"right":"left",e<1?`${t}: 16px`:(this.cardSize!=Ze.Nv._1x_1y?(r=this.scrollItemWidth-(this.wrapperWidth-this.scrollItemWidth-24)/2+(this.scrollItemWidth+12)*(e-1),this.currentPage===this.casualData.length&&(r=r-(this.wrapperWidth-this.scrollItemWidth-24)+32)):r=this.v2&&this.isFromProng2?(Ae.getValueFor(this)+4)*e-16:(this.miniScrollItemWidth-8)*e+16*(e-1),`${t}: -${r}px`)}getBackground(e){return this.cardSize===Ze.Nv._1x_1y?(this.getBackgroundImg(e,this.halfUBackgroundImageInfo),`background-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.5) 100%), url(${(0,O.xx)(e,this.halfUBackgroundImageInfo)})`):this.cardSize===Ze.Nv._1x_2y?(this.getBackgroundImg(e,this.backgroundImageInfo),`background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 41.35%, #000000 83.65%), url(${(0,O.xx)(e,this.backgroundImageInfo)})`):void 0}getIconUrl(e){return(0,O.xx)(e,this.iconImageInfo)}jumpClickHandle(e,t,r){$e.M0.sendActionEvent(r.currentTarget,c.Aw.Click),window.open(e,this.openLinksInNewTab)}getCardContainerClass(){return this.cardSize.toString()}handleClickMenu(){this.headerMenuFold=!this.headerMenuFold}handleChangeGenre(e){this.currentPage=1,this.genreChangeCallBack(e)}getBackgroundImg(e,t){return(0,d.mG)(this,void 0,void 0,(function*(){const r=(0,O.xx)(e,t),i=yield fe(r);if(this.v2&&this.cardSize==Ze.Nv._1x_2y){const t=`background: linear-gradient(180deg, rgba(${i}, 0) 0%, rgba(${i}, 0.2) 14.84%, rgba(${i}, 0.8) 34.64%, rgba(${i}, 1) 79.47%)`,r=e.replace("OUWL.","_")+"_layout";this.addStyles(r,t)}else if(this.v2&&this.isFromProng2&&this.cardSize==Ze.Nv._1x_1y){const t=`background: rgba(${i}, 1)`,r=e.replace("OUWL.","_")+"_layout";this.addStyles(r,t)}else if(this.cardSize!=Ze.Nv._1x_1y)if(this.cardSize!=Ze.Nv._1x_2y);else{const t=`background-image: linear-gradient(180deg, rgba(${i}, 0) 41.35%, rgba(${i}, 1) 83.65%), url(${r}) !important`,n=e.replace("OUWL.","_")+"_2y";this.addStyles(n,t)}else{const t=e.replace("OUWL.","_")+"_1y",n=`background-image: linear-gradient(180deg, rgba(${i}, 1) 0%, rgba(${i}, 0.5) 100%), url(${r}) !important`;this.addStyles(t,n)}}))}getV2Background(e,t){this.getBackgroundImg(e,t)}addStyles(e,t){if(this.addedStyles.get(e))return;const r=Oe.i`
            .${e} {
                ${t}
            }
        `;this.addedStyles.set(e,r),this.$fastController.addStyles(r)}headerMenuFoldChanged(){if(!this.headerMenuFold)return document.addEventListener("click",this.GenreMenu_onOutsideClick),void window.setTimeout((()=>{var e;null===(e=this.menuWrapper)||void 0===e||e.focus()}),0);this.headerMenuFold&&document.removeEventListener("click",this.GenreMenu_onOutsideClick)}wrapperKeydown(e){const t=this.cardLayout?this.cardLayout.games.length:0;if(e instanceof KeyboardEvent)switch(e.key){case Ve.BE:return this.setGridItemFocus(this.currentFocusItemIndex,this.currentFocusItemIndex<=0?t-1:this.currentFocusItemIndex-1),!1;case Ve.mr:return this.setGridItemFocus(this.currentFocusItemIndex,this.currentFocusItemIndex>=t-1?0:this.currentFocusItemIndex+1),!1;case Ve.SB:return this.setGridItemFocus(this.currentFocusItemIndex,(t+(this.currentFocusItemIndex-this.itemsPerPage))%t),!1;case Ve.iF:return this.setGridItemFocus(this.currentFocusItemIndex,(this.currentFocusItemIndex+this.itemsPerPage)%t),!1;case Ve.tU:return this.setGridItemFocus(this.currentFocusItemIndex,0),!1;case Ve.Kh:return this.setGridItemFocus(this.currentFocusItemIndex,t-1),!1}return!0}setGridItemFocus(e,t){var r,i;const n=null===(r=this.cardLayout)||void 0===r?void 0:r.games[t];this.currentFocusItemIndex=t,null==n||n.focus({preventScroll:!0});const a=null===(i=this.cardLayout)||void 0===i?void 0:i.games[e];a&&(a.tabIndex=-1),n&&(n.tabIndex=0)}wrapperKeydown1y(e){if(e instanceof KeyboardEvent)switch(e.key){case Ve.BE:return this.clickPagination(this.previousBtn),this.setGridItemFocus(this.currentPage,this.currentPage-1),!1;case Ve.mr:return this.clickPagination(this.nextBtn),this.setGridItemFocus(this.currentPage-2,this.currentPage-1),!1}return!0}};(0,d.gn)([(0,be.Lj)({attribute:"wrapper-width"})],Ct.prototype,"wrapperWidth",void 0),(0,d.gn)([(0,be.Lj)({attribute:"scroll-item-width"})],Ct.prototype,"scrollItemWidth",void 0),(0,d.gn)([(0,be.Lj)({attribute:"mini-scroll-item-width"})],Ct.prototype,"miniScrollItemWidth",void 0),(0,d.gn)([(0,be.Lj)({attribute:"item-height"})],Ct.prototype,"itemHeight",void 0),(0,d.gn)([(0,be.Lj)({attribute:"mini-item-height"})],Ct.prototype,"miniItemHeight",void 0),(0,d.gn)([be.Lj],Ct.prototype,"miniItemIconWidth",void 0),(0,d.gn)([be.Lj],Ct.prototype,"miniItemIconHeight",void 0),(0,d.gn)([be.Lj],Ct.prototype,"cardSize",void 0),(0,d.gn)([$.LO],Ct.prototype,"currentPage",void 0),(0,d.gn)([be.Lj],Ct.prototype,"previousBtn",void 0),(0,d.gn)([be.Lj],Ct.prototype,"nextBtn",void 0),(0,d.gn)([be.Lj],Ct.prototype,"contextMenu",void 0),(0,d.gn)([(0,be.Lj)({mode:"boolean"})],Ct.prototype,"isActionMenuOpen",void 0),(0,d.gn)([$.LO],Ct.prototype,"casualData",void 0),(0,d.gn)([$.LO],Ct.prototype,"layoutNum",void 0),(0,d.gn)([$.LO],Ct.prototype,"hitNewLanding",void 0),(0,d.gn)([$.LO],Ct.prototype,"telemetryObject",void 0),(0,d.gn)([$.LO],Ct.prototype,"actionMenuItems",void 0),(0,d.gn)([$.LO],Ct.prototype,"exploreMoreUrl",void 0),(0,d.gn)([$.LO],Ct.prototype,"actionsMenuButtonElement",void 0),(0,d.gn)([$.LO],Ct.prototype,"localizationContext",void 0),(0,d.gn)([$.LO],Ct.prototype,"direction",void 0),(0,d.gn)([$.LO],Ct.prototype,"showPreviousFlipper",void 0),(0,d.gn)([$.LO],Ct.prototype,"showNextFlipper",void 0),(0,d.gn)([$.LO],Ct.prototype,"headerMenuFold",void 0),(0,d.gn)([$.LO],Ct.prototype,"currentGenre",void 0),(0,d.gn)([$.LO],Ct.prototype,"darkMode",void 0),Ct=(0,d.gn)([(0,xe.M)({name:"card-wrapper",template:wt,styles:Xe})],Ct);var Tt=r(9375),St=r(68384),kt=r(11708),It=r(9610);I.jG.CurrentMarket&&I.jG.CurrentMarket;const Ot=`https://www.msn.com/${I.jG.CurrentMarket?I.jG.CurrentMarket:"en-us"}/play`,$t="casualgames",Pt=Oe.i`
    :host {
        display: block;
        height: 100%;
        width: 100%;
    }
`,Lt=Qe.d`
    <card-wrapper
        cardSize="${e=>e.feedLayoutCardSize}"
        :currentGenre="${e=>e.casualCardCurrentGenre}"
        :casualData="${e=>e.casualCardData}"
        :exploreMoreUrl="${e=>e.exploreMoreButtonClickThroughUrl}"
        :hitNewLanding="${e=>e.hitNewLanding}"
        :actionMenuItems=${e=>e.actionMenuItems}
        :isActionMenuOpen=${e=>e.isActionMenuOpen}
        :telemetryTags=${e=>e.telemetryTags}
        :backendResult=${e=>e.backendResult}
        :genreChangeCallBack=${e=>e.genreChangeCallBack.bind(e)}
        :darkMode=${e=>e.darkMode}
        :v2=${e=>e.v2}
        :isFromProng2=${e=>e.isFromProng2}
        :parent=${e=>e}
        :localizationContext=${e=>e.strings}
        :direction=${e=>e.direction}
    ></card-wrapper>
`;var Ft=r(46631),Et=r(10326),Gt=r(90960);const At=Qe.d`
    <template>
        <slot ${(0,Gt.Q)("slotElements")}></slot>
    </template>
`,Mt=Oe.i`

    :host {
        box-sizing: border-box;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    :host(.layout4) {
        grid-template-rows: 1fr 1fr;
        gap: 16px;
        padding: 8px 16px 12px 16px;
    }

    :host(.layout6) {
        grid-template-rows: 1fr 1fr 1fr;
        gap: 8px;
        padding: 0px 16px 4px 16px;
    }

    :host(.layout6prong2) {
        grid-template-rows: 1fr 1fr 1fr;
        gap: 4px;
        padding: 0px 16px 4px 16px;
    }
`;let _t=class extends xe.H{constructor(){super(...arguments),this.slotElements=[],this.games=[]}slotElementsChanged(){this.games=this.slotElements.filter((e=>e instanceof HTMLElement))}};var Ut;(0,d.gn)([$.LO],_t.prototype,"slotElements",void 0),(0,d.gn)([$.LO],_t.prototype,"games",void 0),_t=(0,d.gn)([(0,xe.M)({name:"card-layout",template:At,styles:Mt})],_t);let Bt=Ut=class extends It.l{constructor(){super(),this.casualCardData=[],this.actionMenuItems=[],this.isActionMenuOpen=!1,this.telemetryTags=new he,this.v2=!1,this.isFromProng2=!1,this.backendResult={recommended:[],genres:[],gamesByGenre:[]},this.darkMode=!1,this.toggleLightMode=e=>{f.q2d.setValueFor(document.body,e.matches?v.h.DarkMode:v.h.LightMode),this.darkMode=e.matches},this.listenForMediaChanges=()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");this.toggleLightMode(e),e.addEventListener("change",(e=>{this.toggleLightMode(e.currentTarget)}))},this.goToPersonalizeCallbackSelfImplement=(e,t)=>{const r=new URL(`${this.getHomePageUrl()}/personalize${e?`#${e}`:""}`),i=(0,Tt.ku)();i&&r.searchParams.set("ocid",i),window.open(r.href,"_blank")},this.hideCardAction=()=>(0,d.mG)(this,void 0,void 0,(function*(){var e;const t=yield u.d.updateGamingCardEnableStatus(St.S.CasualGamesCard,!1);return t?(this.refreshFeed&&this.refreshFeed(),void(null===(e=null==pe?void 0:pe.superSDSetting)||void 0===e||e.toggleActionMenu(!1,null))):t})),(0,y.z)().withShadowRootMode("closed").withElementDisambiguation((()=>l.h.ignoreDuplicate)).register((0,b.QT)(),(0,x.hb)(),(0,w.tT)(),(0,C.q$)(),(0,T.H5)(),(0,S.EK)()),(0,Ie.D)().withShadowRootMode("closed").withElementDisambiguation((()=>l.h.ignoreDuplicate)).register((0,Ft.QZ)(),(0,Et.RM)()),l.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>l.h.ignoreDuplicate))}getExperienceType(){return o.x.casualGamesCard}get hitNewLanding(){var e;return!!(null===(e=this.config)||void 0===e?void 0:e.newLandingPage)}get exploreMoreButtonClickThroughUrl(){return Ot}getHomePageUrl(){return`https://${I.jG.NavTargetHostName}/${I.jG.CurrentMarket}/feed`}experienceConnected(){try{if(ge.instance=this.config,super.experienceConnected(),this.config.mockData){let e;e=this.v2?JSON.parse(this.config.mockData.dataV2):this.config.mockData.data,e=JSON.parse(JSON.stringify(e)),Array.isArray(e)?this.casualCardData=e:(this.backendResult=e,"Suggested"!==this.backendResult.genres[0].genre&&this.backendResult.genres.unshift({genre:"Suggested",iconId:"",telemetryMetaTag:""}),this.casualCardData=this.backendResult.recommended,this.casualCardCurrentGenre=this.backendResult.genres[0])}else this.extractData();this.postProcessData(),this.listenForMediaChanges(),this.updateCardSize(),this.direction||(this.direction=f.o7V.getValueFor(this)),this.generateTelemetryTags(),pe.superSDSetting=this.initSuperSDSetting(),this.markVisuallyReadyRaf()}catch(e){(0,p.OO)(e,m.jA_,"some error occured when card initialize.")}}extractData(){var e,t;if(this.mapperArgs){try{const r=JSON.parse(this.mapperArgs.cardMetadata.data);this.v2=null!==(e=this.config.usingV2UX)&&void 0!==e&&e,this.isFromProng2=null!==(t=this.config.isFromProng2)&&void 0!==t&&t,this.v2?(this.backendResult=r,"Suggested"!==this.backendResult.genres[0].genre&&this.backendResult.genres.unshift({genre:"Suggested",iconId:"",telemetryMetaTag:""}),this.casualCardData=this.backendResult.recommended,this.casualCardCurrentGenre=this.backendResult.genres[0]):this.casualCardData=r}catch(e){(0,p.OO)(e,m.neE,`Wrong json format or null response found. cardMetadata=${this.mapperArgs.cardMetadata} data=${this.mapperArgs.cardMetadata.data}`)}this.goToPersonalizeCallback=this.mapperArgs.goToPersonalizeSettingsCallback||this.goToPersonalizeCallbackSelfImplement,this.refreshFeed=this.mapperArgs.refreshSDCardSection,this.openLinksInNewTab=this.mapperArgs.openLinksInNewTab}}postProcessData(){try{if(this.config){const e=this.isFromProng2?"prong2":"ntp";this.casualCardData.forEach((t=>{t.playUrl=ke(t.playUrl,e,"cardGameItem");const r=new URL(t.playUrl),i=(0,Tt.ku)();!r.searchParams.has("ocid")&&i&&r.searchParams.append("ocid",i),t.playUrl=r.toString()}))}else(0,p.OO)(new Error("configuration is null or undefined."),m.jA_,"configuration is null or undefined.")}catch(e){(0,p.OO)(e,m.jA_,"critical error when post process card data.")}}updateCardSize(){this.config.mockData&&("05u"===this.slot?this.feedLayoutCardSize=Ze.Nv._1x_1y:"1u"===this.slot&&(this.feedLayoutCardSize=Ze.Nv._1x_2y)),this.feedLayoutCardSize||(this.feedLayoutCardSize=Ze.Nv._1x_1y)}directionChanged(){f.o7V.setValueFor(this,this.direction===Je.N.ltr?Je.N.ltr:Je.N.rtl)}initSuperSDSetting(){var e;const t={hideSetting:{title:null===(e=this.strings)||void 0===e?void 0:e.casualGamesMenuItemHideCard,telemetryTag:this.telemetryTags.hideCardTelemetryTags}};return this.config.isFromProng2&&t.hideSetting&&(t.hideSetting.onClick=this.hideCardAction),new k.M(Ut,!1,kt.f.CasualGamesCard,void 0,t,this.goToPersonalizeCallback,this.refreshFeed)}generateTelemetryTags(){var e,t;if(!this.telemetryObject)return;const r=(null===(e=this.telemetryObject)||void 0===e?void 0:e.contract).ext,i=h.X.GamingExperienceTelemetryMap.get(this.getExperienceType()),n=this.telemetryObject.addOrUpdateChild((0,g.cZ)(null,(0,g.t6)({name:i,behavior:c.wu.Navigate,content:{vertical:$t}},r)));this.telemetryTags.parentTelemetryTag=n.getMetadataTag();const a=null===(t=n.contract.content)||void 0===t?void 0:t.id;this.telemetryTags.moreSettingsTelemetryTag=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.MoreSettings,behavior:c.wu.Navigate,overrideDestinationUrl:`${window.location.origin||""}/personalize`},{type:c.uH.StructuredData,vertical:$t}),r,a))).getMetadataTag(),this.telemetryTags.moreOptionsTelemetryTag=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.MoreOptions,behavior:c.wu.More},{type:c.uH.StructuredData,vertical:$t}),r,a))).getMetadataTag(),this.telemetryTags.hideCardTelemetryTags=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.HideCard,behavior:c.wu.Hide},{type:c.uH.StructuredData,vertical:$t}),r,a))).getMetadataTag(),this.telemetryTags.headerClickTelemetryTags=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.Header,behavior:c.wu.Navigate,overrideDestinationUrl:Ot},{type:c.uH.StructuredData,vertical:$t}),r,a))).getMetadataTag(),this.telemetryTags.exploreMoreClickTelemetryTags=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.SeeMore,behavior:c.wu.Navigate,overrideDestinationUrl:Ot},{type:c.uH.StructuredData,vertical:$t}),r,a))).getMetadataTag(),this.telemetryTags.nextFlipper=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)({name:h.X.GamingTelemetryComponent.NextFlipper,behavior:c.wu.Paginate,content:{vertical:$t}},r,a))).getMetadataTag(),this.telemetryTags.previousFlipper=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)({name:h.X.GamingTelemetryComponent.PreviousFlipper,behavior:c.wu.Paginate,content:{vertical:$t}},r,a))).getMetadataTag(),this.telemetryTags.paginationDot=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)({name:h.X.GamingTelemetryComponent.PaginationDot,behavior:c.wu.Paginate,content:{vertical:$t}},r,a))).getMetadataTag(),this.telemetryTags.genreMenuButton=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)({name:"GenreMenuButton",behavior:c.wu.ContextMenu,content:{vertical:$t}},r,a))).getMetadataTag(),this.telemetryTags.genreMenu=n.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)({name:"GenreMenu",content:{vertical:$t}},r,a))).getMetadataTag(),this.v2?this.genreateTelemetryTagsForDataV2(n,r,this.instanceId,i,this.backendResult):this.genreateTelemetryTagsForData(n,r,this.instanceId,i,this.casualCardData)}genreateTelemetryTagsForData(e,t,r,i,n){n.forEach(((r,n)=>{r.telemetryMetaTag=e.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.CarouselCard,behavior:c.wu.Navigate,overrideDestinationUrl:r.playUrl},{headlineIdx:n,category:r.id,headline:r.name.toLowerCase()}),t,r.id))).getMetadataTag()}))}genreateTelemetryTagsForDataV2(e,t,r,i,n){n.recommended.forEach(((r,n)=>{r.telemetryMetaTag=e.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.CarouselCard,behavior:c.wu.Navigate,overrideDestinationUrl:r.playUrl},{headlineIdx:n,category:r.id,headline:r.name.toLowerCase(),vertical:$t}),t,r.id))).getMetadataTag()})),n.gamesByGenre.forEach((r=>{r.games.forEach(((r,n)=>{r.telemetryMetaTag=e.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:h.X.GamingTelemetryComponent.CarouselCard,behavior:c.wu.Navigate,overrideDestinationUrl:r.playUrl},{headlineIdx:n,category:r.id,headline:r.name.toLowerCase(),vertical:$t}),t,r.id))).getMetadataTag()}))})),n.genres.forEach((n=>{n.telemetryMetaTag=e.addOrUpdateChild((0,g.cZ)(i,(0,g.t6)((0,g.BR)({name:"GenreMenuItem",behavior:c.wu.Click},{category:n.genre.toLowerCase(),headline:n.genre.toLowerCase(),vertical:$t}),t,r))).getMetadataTag()}))}genreChangeCallBack(e){var t;this.backendResult.genres.forEach((t=>{(null==t?void 0:t.genre)==e&&(this.casualCardCurrentGenre=t)})),"Suggested"==e?this.casualCardData=(null===(t=this.backendResult)||void 0===t?void 0:t.recommended.slice())||[]:this.backendResult.gamesByGenre.forEach((t=>{var r;(null===(r=null==t?void 0:t.genreInfo)||void 0===r?void 0:r.genre)==e&&(this.casualCardData=(null==t?void 0:t.games.slice())||[])})),this.postProcessData()}};(0,d.gn)([be.Lj],Bt.prototype,"direction",void 0),(0,d.gn)([$.LO],Bt.prototype,"casualCardData",void 0),(0,d.gn)([$.LO],Bt.prototype,"isActionMenuOpen",void 0),(0,d.gn)([(0,be.Lj)({mode:"boolean"})],Bt.prototype,"v2",void 0),(0,d.gn)([(0,be.Lj)({mode:"boolean"})],Bt.prototype,"isFromProng2",void 0),(0,d.gn)([$.LO],Bt.prototype,"casualCardCurrentGenre",void 0),(0,d.gn)([$.LO],Bt.prototype,"darkMode",void 0),Bt=Ut=(0,d.gn)([(0,xe.M)({name:"casual-games-card",template:Lt,styles:Pt})],Bt);const Dt={experienceConfigSchema:s}},19280:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var i,n=r(33940),a=r(33799),o=r(68364),s=r(26415),d=r(16517),c=r(65337),l=r(67267),u=r(63535),h=r(87298),g=r(17157),p=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,i,d){return(0,n.mG)(this,void 0,void 0,(function*(){if((0,y.TF)(e))return null;const c=e,g={displayName:t,idType:"Satori",dataType:d},p={method:"POST",body:JSON.stringify({actionType:r,targetId:c,targetType:i,metadata:g}),headers:yield l.$.getOneServiceHeaders()},f=yield(0,x.rr)();f===a.Hy.SignedIn&&(p.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,n.mG)(this,void 0,void 0,(function*(){const e=yield fetch(v.href,p);if(e.status>=400){const t=`postActionRequest OneService returned error response. Status: ${e.status} for actionType: ${r}, targetId: ${c}, targetType: ${i}`;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:i=!0,appendMarket:o=!1,method:c="GET",body:u=null,additionalHeaders:h=null,withRetries:m=!0,logErrorAsWarning:f=!1}){return(0,n.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,d.Yq)().ActivityId,requestUrl:e},customMessage:`Error while request esports data with URL exception: ${t&&t.message} URL: ${e}`})}))}if(i){b=yield l.$.getBaseRequestData(c),u&&(b.body=JSON.stringify(u));const e=yield(0,x.rr)();e===a.Hy.SignedIn&&(b.credentials="include"),function(e){(0,n.mG)(this,void 0,void 0,(function*(){const t="undefined"!=typeof window&&(0,g.wq)()&&(0,p._4)(),r=t?t.market||"en-us":(0,d.Yq)().CurrentMarket||"en-us",i=t?t.latitude:(0,d.Yq)().Latitude,n=t?t.longitude:(0,d.Yq)().Longitude;e.set("market",r),i&&n&&(e.set("lat",i),e.set("long",n))}))}(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,g.wq)()&&(0,p._4)(),t=e?e.market:(0,d.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 i(e,t,r,i=!1){return(0,n.mG)(this,void 0,void 0,(function*(){const n=yield fetch(decodeURIComponent(e),t);if(n&&n.ok)return n;{const a={statusCode:n.status,statusText:n.statusText,activityId:(0,d.Yq)().ActivityId,requestUrl:e,requestHeaders:JSON.stringify(t&&t.headers)},o=`Error while calling ${r}`,c=`${o}: URL: ${e}, responseMessage: ${JSON.stringify(n)}`;i?v.M0.sendClientLogEvent({message:o,type:"information",pb:Object.assign(Object.assign({},(0,s.mnt)()),{fetchNetworkResponse:a,customMessage:c})}):v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.bKC),{message:o,pb:Object.assign(Object.assign({},s.bKC.pb),{fetchNetworkResponse:a,customMessage:c})}))}}))}function w(e,t=null,r=!0){return(0,n.mG)(this,void 0,void 0,(function*(){return e===a.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,t,r):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,t,r)}))}function C(e,t,r,a=!0,o=!1){return(0,n.mG)(this,void 0,void 0,(function*(){let n;try{return n=a?yield(0,h.w)((()=>i(e,t,r,o)),r):yield i(e,t,r,o),yield n.json()}catch(i){const n={activityId:(0,d.Yq)().ActivityId,requestUrl:e,requestHeaders:JSON.stringify(t&&t.headers)},a=`Error while requesting ${r}`,c=`${a}}: ${i&&i.message} URL: ${e} headers: ${(null==t?void 0:t.headers)&&JSON.stringify(null==t?void 0:t.headers)}`;o?v.M0.sendClientLogEvent({message:a,type:"information",pb:Object.assign(Object.assign({},(0,s.mnt)()),{fetchNetworkResponse:n,customMessage:c})}):v.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.I8d),{message:a,pb:Object.assign(Object.assign({},s.I8d.pb),{fetchNetworkResponse:n,customMessage:c})}))}}))}function T(){return(0,n.mG)(this,void 0,void 0,(function*(){const e="xboxXTokenId";let t=(0,c.$o)().getObject(e);const r=new Date;if(r.setHours(r.getHours()+1),!t||!t.xid||!t.notAfter||new Date(t.notAfter)<=r){const i=yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e={"x-xbl-contract-version":"1","content-type":"application/json"};return yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){if((yield(0,x.rr)())===a.Hy.SignedIn&&d.jG&&d.jG.ResolvedAccountInfo&&(!d.jG.ResolvedAccountInfo||d.jG.ResolvedAccountInfo.account_type===a.Qm.MSA))return new Promise(((e,t)=>{if(!window.chrome||!window.chrome.authPrivate||!window.chrome.authPrivate.acquireAccessTokenSilently)return e(null);const r={account_id:d.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(i&&i.IssueInstant&&i.NotAfter&&i.Token&&i.DisplayClaims&&i.DisplayClaims.xui&&i.DisplayClaims.xui.length&&i.DisplayClaims.xui[0].xid&&i.DisplayClaims.xui[0].uhs)t={issueInstant:i.IssueInstant,notAfter:i.NotAfter,token:i.Token,xid:i.DisplayClaims.xui[0].xid,uhs:i.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,c.$o)().setObject(e,t)}}))}function S(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=(0,c.$o)().getObject(m.X.localStorageXboxXTokenId);return e&&e.token&&e.xid&&e.uhs&&e.notAfter&&new Date(e.notAfter)>new Date?yield k().then((t=>(0,n.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,d.Yq)().CurrentMarket.substring(0,2),r["content-type"]="application/json";const i={method:"GET",headers:r},n=m.X.xboxTitleHubUrlTemplate.replace("{xuidValue}",e.xid),a=yield C(n,i,"fetchXboxTitleHubData",!1,!0);if(!a||!a.titles||!a.titles.length)return null;const o=a.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 c=new Array;return c.push(o[0]),o.slice(1).filter((e=>e.isStreamable)).forEach((e=>{c.push(e)})),c.slice(0,6)})))):null}))}function k(){return(0,n.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,n.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,n.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,n.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,n.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,d.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,n.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 i="";const n=t&&t.some((e=>e.metadata.satoriId&&m.X.userGamerGames.includes(e.metadata.satoriId))),a=t&&t.some((e=>e.targetId&&"Y_xboxSpecialInterest"===e.targetId)),o=t&&t.some((e=>e.targetId&&"Y_windowsSpecialInterest"===e.targetId));return n&&(i=m.X.GamerUserType.Gamer),a&&(i&&(i+=";"),i+=m.X.GamerUserType.XboxGamer),o&&(i&&(i+=";"),i+=m.X.GamerUserType.PCGamer),i}))},e.postRewards=function(e){return(0,n.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,n.mG)(this,void 0,void 0,(function*(){yield T();const e=(0,c.$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,c.$o)().setObject(m.X.localStorageXboxTitleHubDataId,t)}))}))},e.fetchXboxTitleHubData=S,e.getXboxUserConsent=k}(i||(i={}))},66861:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var i,n=r(83227),a=r(53909);!function(e){let t,r,i,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([[n.x.gamingCompeteCard,"GamingCompeteCard"],[n.x.gamingMediaCarousel,"GamingMediaCarousel"],[n.x.gamingPersonalizationCard,"GamingPersonalizeCTACard"],[n.x.gamingRecentlyPlayedCard,"GamingRecentlyPlayedCard"],[n.x.gamingRecommendedCard,"GamingRecommendedCard"],[n.x.gamingRedditCard,"GamingRedditCard"],[n.x.gamingRewardsCard,"GamingRewardsCard"],[n.x.gamingStreamCard,"GamingLiveStreamsCard"],[n.x.gamingTournamentCard,"GamingProTournamentsCard"],[n.x.gamingUpcomingCard,"GamingUpcomingGamesCard"],[n.x.gamingVideoCard,"GamingYoutubeCard"],[n.x.gamingMatchCard,"GamingProMatchesCard"],[n.x.casualGamesCard,"GamingCasualGamesCard"],[n.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"}(i=e.GamingTelemetryComponent||(e.GamingTelemetryComponent={})),e.cardImageInfo={width:300,height:146,enableDpiScaling:!1,format:a.D3.PNG},e.cardImage1uInfo={width:300,height:304,enableDpiScaling:!1,format:a.D3.PNG},e.cardImage16_9Info={width:300,height:157,enableDpiScaling:!1,format:a.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:a.D3.PNG},e.streamerIconLarge={width:60,height:60,enableDpiScaling:!0,format:a.D3.PNG},function(e){e.Gamer="IsGamer",e.XboxGamer="IsXboxGamer",e.PCGamer="IsPCGamer"}(o=e.GamerUserType||(e.GamerUserType={}))}(i||(i={}))},4936:function(e,t,r){"use strict";r.d(t,{At:function(){return m},I$:function(){return l},J_:function(){return p},Lj:function(){return f},tY:function(){return d},xx:function(){return g},zI:function(){return h}});var i=r(53909),n=r(16517),a=r(66861),o=r(76859),s=r(49088);const d=new Map([[o.Nv._1x_1y,a.X.EsportsCardLayout._1x_1y],[o.Nv._1x_2y,a.X.EsportsCardLayout._1x_2y],[o.Nv._2x_2y,a.X.EsportsCardLayout._2x_2y],[o.Nv._1x_3y,a.X.EsportsCardLayout._1x_3y],[o.Nv._1x_4y,a.X.EsportsCardLayout._1x_4y],[o.Nv._3x_2y,a.X.EsportsCardLayout._3x_2y],[o.Nv._4x_2y,a.X.EsportsCardLayout._4x_2y],[o.Nv._5x_2y,a.X.EsportsCardLayout._5x_2y]]);var c;!function(e){e.VideoGame="VideoGame",e.Streamer="Streamer",e.Stream="Stream"}(c||(c={}));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 g(e,t,r=!1){if((0,s.T)(e))return r?(0,i.zz)(a.X.streamImagePlaceholderThId,t):null;let o=i.q3;return n.jG.IsChinaCompliance&&(o=h()),(0,i.mL)(`${o}?id=${e}&pid=${a.X.bingImagePartnerId}&rf=${a.X.thFallbackImage}`,t)}function p(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 p(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 i=r[e];if(!i.includes("="))continue;const n=i.split("="),a=n[0],o=n[1];if(a==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 d},t6:function(){return c}});var i=r(38156),n=r(39860),a=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 d(e){if(!e)return;return new a.D(e).getMetadataTag()}const c=(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,n.GW)()}),h={content:{vertical:o.X.gamingTelemetryVertical,type:i.uH.StructuredData},type:i.c9.ActionButton}},49088:function(e,t,r){"use strict";function i(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 i}})},76859:function(e,t,r){"use strict";r.d(t,{C7:function(){return o},Nv:function(){return i},OO:function(){return s},X9:function(){return d},sn:function(){return a}});var i,n=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"}(i||(i={}));const a=146,o=300,s=12,d=(0,n.Z)((e=>Array(e).fill(a)))},68384:function(e,t,r){"use strict";var i;r.d(t,{S:function(){return i}}),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"}(i||(i={}))},30113:function(e,t,r){"use strict";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){"use strict";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.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"}(i||(i={}))},83152:function(e,t,r){"use strict";var i;r.d(t,{L:function(){return i}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(i||(i={}))},791:function(e,t,r){"use strict";r.d(t,{N:function(){return b}});var i=r(33940),n=r(33954),a=r(26415),o=r(68364),s=r(33799),d=r(16517),c=r(94788),l=r(67267),u=r(63535),h=r(87298),g=r(83152),p=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,i.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield l.$.getOneServiceHeaders(),credentials:"include"},r=(0,u.PH)(this.locationsServiceEndPoint);let n;[...l.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{n=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 n}return n}))}addToFavoriteLocation(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r="Location",n="Follow",a={method:"POST",body:JSON.stringify({actionType:n,targetType:r,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},o=(0,u.PH)(this.pdpServiceEndpoint);let c;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{c=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,i.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(g.L.Location,"definitionName",[e])}))}removeLocation(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 a=g.L.Location,o="Follow",c=yield this.getRequestInit({method:"POST"},r);c.body=JSON.stringify({actionType:o,targetType:a,definitionName:t,degree:"DefaultLocation",metaData:e});const p=(0,u.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)})),yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.href,c);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(a),!0}))}updateTrafficMyRoutes(e,t,r,a,o,s){return(0,i.mG)(this,void 0,void 0,(function*(){const d=r.replace(/[^a-zA-Z0-9\-.,_]/g,""),c=g.L.Traffic,u="Follow",p={method:"POST",body:JSON.stringify({actionType:u,targetType:c,targetId:d,degree:e,definitionName:t,metadata:a,createdDateTime:s}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},m=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(m.href,p);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${c}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(c)}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 n={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=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(a.href,n);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 n={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=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(a.href,n);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,u.PH)(this.pdpServiceEndpoint),n=(yield(0,y.XJ)())===s.Hy.SignedIn,a=(0,d.Yq)().UserId,o=n?l.$.getOneServiceParamsWithAuth(a,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(a,this.ocid,!this.ocidOverride);if(e||t){const r=`targetType eq '${g.L.Traffic}'`,n=e?`degree eq '${e}'`:"",a=t?`definitionName eq '${t}'`:"";i.searchParams.set("$filter",`actionType eq 'Follow' and (${r})${n?` and (${n})`:""}${a?` and (${a})`:""}`)}return[...o,...r||[]].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)})),i}))}addToWatchList(e,t=0,r={},n={}){return(0,i.mG)(this,void 0,void 0,(function*(){const a=g.L.Finance,o="Follow",c={method:"POST",body:JSON.stringify({actionType:o,targetType:a,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},n)}),headers:yield this.getOneserviceHeaders(r),credentials:"include"},p=(0,u.PH)(this.pdpServiceEndpoint),m="zh-cn"!==(0,d.Yq)().CurrentMarket;let f;((yield(0,y.XJ)())===s.Hy.SignedIn&&m?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.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(p.href,c);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(a)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},r={}){return(0,i.mG)(this,void 0,void 0,(function*(){const n=g.L.Finance,a="Follow",o={method:"POST",body:JSON.stringify(e.map((e=>({actionType:a,targetType:n,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},r)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},c=(0,u.PH)(this.pdpServiceEndpoint),p="zh-cn"!==(0,d.Yq)().CurrentMarket;let m;((yield(0,y.XJ)())===s.Hy.SignedIn&&p?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&c.searchParams.set(e.key,e.value)}));try{m=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(c.href,o);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}))}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,a="Follow",o=yield b.readPdpWithTargetType(g.L.Finance,!0,200,t),c=o&&(null===(r=o.value)||void 0===r?void 0:r.filter((e=>e.actionType===a&&e.targetId)));if(!c||c.length<e.length)return!1;const p={};let m=e.length;c.forEach((t=>{let r=e.findIndex((e=>e===t.targetId));r<0&&(r=m,m++),p[t.targetId]=JSON.stringify({actionType:a,targetId:t.targetId,targetType:n,rank:r,metadata:t.metadata})}));const f={method:"PUT",body:JSON.stringify(p),headers:yield this.getOneserviceHeaders(t),credentials:"include"},v=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&v.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(v.href,f);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}))}updateWeatherInterests(e,t,r,a={},o){return(0,i.mG)(this,void 0,void 0,(function*(){const t=g.L.Weather,i={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:r}}}}),headers:yield this.getOneserviceHeaders(a),credentials:"include"},c=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=o?o:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=o?o:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&c.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(c.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!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 a=yield this.getRequestInit({method:"POST"},r);a.body=i;const o=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));const c=yield this.fetchImpl(o.href,a);if(c.status>=400){const e=`OneService returned error response. Status: ${c.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,u.PH)(this.userUpdateEndpoint),a="zh-cn"!==(0,d.Yq)().CurrentMarket;((yield(0,y.XJ)())===s.Hy.SignedIn&&a?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const o=yield this.fetchImpl(n.href,i);if(o.status>=400){const e=`OneService returned error response. Status: ${o.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 a;for(a in e)null!=e[a]&&i.push('"'+a+'": '+JSON.stringify(e[a]));const o='{"userSettings":{'+i.join(", ")+"}}",c=yield this.getRequestInit({method:"POST"},t);c.body=o;const h=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=r?r:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,d.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,c);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={},r){return(0,i.mG)(this,void 0,void 0,(function*(){const a=yield this.getRequestInit({method:"GET"},t),o=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(r||(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(r||(0,d.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,a);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(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,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.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!=p.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),n=r.length>0?'{"segmentCardSettings":"{'+i+'}","userSettings":{'+r.join(", ")+"}}":'{"segmentCardSettings":"{'+i+'}"}';return this.updateUserPreference(n)}))}updateProductivityCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const r={communitySettings:t};return this.updateUserPreference(JSON.stringify(r))}))}updateWidgetSettings(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const i=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:g.L.Widget,metadata:{prongsv2:{region:e.region,size:m.m[e.size],position:e.position}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}muteWidget(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const i=e.map((e=>({actionType:"Mute",targetId:e,targetType:g.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}disableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const r={actionType:"Disabled",definitionName:e,targetType:g.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:t})}))}enableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(g.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,i.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:r,endpoint:n,method:a,payload:o,appError:c}=e;if(!n||!a)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),c),!1;const g=(0,u.PH)(n);let p;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),r&&r.forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));try{JSON.parse(o),p=o}catch(e){p=JSON.stringify(o)}const m={method:a,body:p,headers:yield this.getOneserviceHeaders(t),credentials:"include"},f="GET"==a;try{return yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,m);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${o}`;throw new Error(t)}return!f||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,c),!1}}))}getUserActions(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],r=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return r&&r.value}))}setUserAction(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:r,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.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,n={},o=!0,s=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(o){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,r,n,s)));const i=this.bulkGraphActionResultCache.get(e);if(i)return{value:i}}else f.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const i=(yield this.fetchPdpWithTargetTypes([e],t,r,n,s)).get(e);if(i)return{value:i}}))}deleteFromPdp(e,t,r,n={},a,o="Follow",c,g=[]){return(0,i.mG)(this,void 0,void 0,(function*(){const p={method:"DELETE",headers:yield this.getOneserviceHeaders(n),credentials:"include"},m=(0,u.PH)(this.pdpServiceEndpoint),v=(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),b=`targetType eq '${e}'`,x=r.map((e=>`${t} eq '${e}'`)).join(" or ");let w=`actionType eq '${o}' and (${x}) and (${b})`;a&&(w+=` and (degree eq '${a}')`),m.searchParams.set("$filter",w),[...v,...g].forEach((e=>{e.value&&m.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(m.href,p);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: ${o}, targetType: ${e}`;throw new Error(r)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return c&&f.M0.sendAppErrorEvent(Object.assign(Object.assign({},c),{pb:Object.assign(Object.assign({},c.pb),{actionType:o,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,r,n={},a=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const o=e.map((e=>`targetType eq '${e}'`)).join(" or "),c=[{key:"$top",value:`${r=r||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${o})`}],g=yield this.getRequestInit({method:"GET"},n);!0===t&&(g.cache="no-store");const p=(0,u.PH)(this.pdpServiceEndpoint);[...c,...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),...a].forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));const m=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.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(!m.ok)throw Error(`code=${m.status}, ${m.statusText}`);const f=new Map,v=yield m.json();if(!v)return f;if(v.value)for(const e of v.value){let t=f.get(e.targetType);t||f.set(e.targetType,t=[]),t.push(e)}for(const t of e)f.get(t)||f.set(t,[]);return f}))}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,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.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(c.yb){const r=this.maptoWebWorkerId(e);if(r&&r.trim()){const r=yield(0,c.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 l.$.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 l.$.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,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.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,o.OO)(null,a.G9t,"Error get followed list")}return r}))),"getFollowedLists");return r.ok||(0,o.OO)(null,a.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 l.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.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(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 l.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&n.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(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}))}logError(e,t){t?f.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message})})):n.k.logError(e.message)}}{constructor(){super((0,v.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===d.jG.AppType||"newsAndInterests"===d.jG.AppType||"winWidgets"===d.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===d.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===d.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===d.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===d.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}},96345:function(e,t,r){"use strict";r.d(t,{$x:function(){return a},Ef:function(){return d},Ei:function(){return h},FM:function(){return s},SP:function(){return g},_k:function(){return u},_u:function(){return o},c6:function(){return m},dP:function(){return v},gR:function(){return l},o9:function(){return c},pQ:function(){return f},v_:function(){return p}});var i=r(17157);function n(e,t){(0,i.dw)("navigate",e,t)}function a(e){return new Promise(((t,r)=>{n(e,(e=>{t(e)}))}))}function o(e,t){n(e,t)}function s(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("getHttp",e,t)}(e,(e=>{t(e)}))}))}function d(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("postHttp",e,t)}(e,(e=>{t(e)}))}))}function c(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("deleteHttp",e,t)}(e,(e=>{t(e)}))}))}function l(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("logEvent",e,t)}(e,(e=>{t(e)}))}))}function u(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("logError",e,t)}(e,(e=>{t(e)}))}))}function h(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("getDeviceInfo",e,t)}(e,(e=>{t(e)}))}))}function g(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("getLocationInfo",e,t)}(e,(e=>{t(e)}))}))}function p(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("getNetworkInfo",e,t)}(e,(e=>{t(e)}))}))}function m(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("getUserInfo",e,t)}(e,(e=>{t(e)}))}))}function f(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("requestSnackBar",e,t)}(e,(e=>{t(e)}))}))}function v(e){return new Promise(((t,r)=>{!function(e,t){(0,i.dw)("requestCustom",e,t)}(e,(e=>{t(e)}))}))}},17157:function(e,t,r){"use strict";r.d(t,{dw:function(){return s},wq:function(){return n}});r(83648);const i={};function n(){var e,t,r,i;const n=null===(e=window.sapphireWebViewBridge)||void 0===e?void 0:e.send,a=null===(i=null===(r=null===(t=window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===r?void 0:r.send)||void 0===i?void 0:i.postMessage;return n||a}let a;function o(e,t){var r,i,n,o,s,d,c;console.log(e,t);const l="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),u={scenario:e,data:{data:t},id:l};a&&!u.data.data.appId&&(u.data.data.appId=a);const h=JSON.stringify(u);return(null===(n=null===(i=null===(r=window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===i?void 0:i.send)||void 0===n?void 0:n.postMessage)&&(null===(d=null===(s=null===(o=window.webkit)||void 0===o?void 0:o.messageHandlers)||void 0===s?void 0:s.send)||void 0===d||d.postMessage(h)),(null===(c=window.sapphireWebViewBridge)||void 0===c?void 0:c.send)&&window.sapphireWebViewBridge.send(h),l}function s(e,t,r){const n=o(e,t);r&&function(e,t){i[e]?i[e].push(t):i[e]=[t]}(n,r)}},59207:function(e,t,r){"use strict";r.d(t,{hP:function(){return y},_4:function(){return v}});var i,n=r(33940);!function(e){e.Android="Android",e.iOS="iOS"}(i||(i={}));var a=r(96345),o=r(54433),s=r(9344),d=r(58155);let c,l,u,h,g,p,m;const f={};function v(){return h}function y(e){return(0,n.mG)(this,void 0,void 0,(function*(){if(c.isSignedIn&&"AAD"===c.accountType){const e=yield(0,a.c6)({refresh:!0,accountType:"AAD"});try{const t=JSON.parse(e);if(t.accessToken&&t.accessToken.length>0)return`Bearer ${t.accessToken}`}catch(e){x(e,"SapphireUserConfig.getAccessToken: Failed to parse AAD access token")}}if(c.isSignedIn&&"MSA"===c.accountType){const t=yield(0,a.c6)({refresh:!0,accountType:"MSA",type:"AccessToken",scope:e});try{const e=JSON.parse(t);if(e.succeed)return e.accessToken}catch(e){x(e,"SapphireUserConfig.getAccessToken: Failed to parse MSA access token")}}return null}))}function b(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,a.Ei)({});try{return JSON.parse(e)}catch(e){x(e,"SapphireUserConfig.getDeviceInformation: Failed to parse response")}}))}function x(e,t){(0,a._k)({type:"Failure",name:"HP_WEBVIEW_APP_ERROR",error:t,data:{error:e,customMessage:t}})}function w(e){if(!e)return"en-us";const t=e.toLowerCase();return"en-id"===t?"en-xl":t}function C(e){"ru-ru"===e.market&&e.detectedCountry&&"RU"!==e.detectedCountry&&(e.market="en-xl");const t=e.market.split("-");t&&2==t.length&&(e.language=t[0],e.countryCode=t[1])}function T(e,t){f[t]||(f[t]=function(e){const t={},r=function(e,t=!1){if(!e)return null;return function(e,t=!1){const r=[];e&&e.startsWith("?")&&(e=e.substring(1));if(e){const i=(e=e.split("#")[0]).split("&");for(let e=0;e<i.length;e++){const n=i[e].split("=");let a=n[0],s=n[1];t&&(a=S(a),s&&(s=S(s)));const d={key:a,value:s},c=(0,o.Z)(r,(e=>e.key===d.key));-1===c?r.push(d):r[c]=d}}return r}((e||"").split("?")[1],t)}(e,!0);r&&r.length&&r.forEach((e=>t[e.key]=e.value));return t}(t));const r=f[t][e];return void 0!==r?r:null}function S(e){return e=e.replace(/\+/g," "),e=decodeURIComponent(e)}function k(){return x(new Error("SapphireUserConfig.uuidv4: Recieved empty activityId"),"Empty activityId"),"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}!function(e){p=e}((function(e){return(0,n.mG)(this,void 0,void 0,(function*(){h={},window.performance.mark("HP-initUserConfigForOthers-DeviceInformation-Start"),l=yield b(),window.performance.mark("HP-initUserConfigForOthers-DeviceInformation-End"),window.performance.measure("HP-initUserConfigForOthers-DeviceInformation","HP-initUserConfigForOthers-DeviceInformation-Start","HP-initUserConfigForOthers-DeviceInformation-End"),l&&(h.muid=`m-${l.sapphireId}`,h.sapphireId=l.sapphireId,h.anid=l.ANID,h.adid=l.ADID,h.market=w(l.market),h.features=l.expFeatures,h.activityId=l.expActivityId?l.expActivityId:k(),h.isDarkMode=l.isDarkMode,h.platform=l.platform,h.bridgeVersionInt=l.bridgeVersionInt,h.fontSize=l.fontSize,h.isChinaBuild=l.isChinaBuild,h.clientVersion=l.clientVersion,h.packageName=l.packageName,h.installSource=l.installSource,h.detectedCountry=l.detectedCountry?l.detectedCountry:"",h.isEdge=void 0!==l.isEdge&&l.isEdge,h.isEos=void 0!==l.isEos&&l.isEos,h.screenWidth=l.screenWidth,h.screenWidthPx=l.screenWidthPx,h.screenHeight=l.screenHeight,h.screenHeightPx=l.screenHeightPx,h.isBingApp=l.isBingApp,h.isNewsApp=l.isNewsApp,h.adjustCampaign=l.adjustCampaign,h.isFirstSession=l.isFirstSession,C(h)),window.performance.mark("HP-initUserConfigForOthers-UserInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,a.c6)({});try{c=JSON.parse(e)}catch(e){x(e,"SapphireUserConfig.getUserInformationInternal: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-UserInformation-End"),window.performance.measure("HP-initUserConfigForOthers-UserInformation","HP-initUserConfigForOthers-UserInformation-Start","HP-initUserConfigForOthers-UserInformation-End"),c&&(h.accountType=c.accountType,h.isSignedIn=c.isSignedIn),window.performance.mark("HP-initUserConfigForOthers-LocationInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,a.SP)({fallbackRevIP:!1});try{u=JSON.parse(e)}catch(e){x(e,"SapphireUserConfig.getLocationInformationInternal: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-LocationInformation-End"),window.performance.measure("HP-initUserConfigForOthers-LocationInformation","HP-initUserConfigForOthers-LocationInformation-Start","HP-initUserConfigForOthers-LocationInformation-End"),u&&(h.latitude=u.lat,h.longitude=u.lng,h.clientLocationProvider=u.provider,h.clientLocationAccuracy=u.accuracy,h.clientLocationTimeStamp=u.time),window.performance.mark("HP-initUserConfigForOthers-NetworkInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,a.v_)({});try{g=JSON.parse(e)}catch(e){x(e,"SapphireUserConfig.getNetworkInformation: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-NetworkInformation-End"),window.performance.measure("HP-initUserConfigForOthers-NetworkInformation","HP-initUserConfigForOthers-NetworkInformation-Start","HP-initUserConfigForOthers-NetworkInformation-End"),g&&(h.networkInfoType=g.type);const t=new URLSearchParams(window.location.search);h.isPageRefresh=!(!t||!t.get("isPageRefresh"))&&"1"===t.get("isPageRefresh"),e&&(e.muid&&(h.muid=e.muid),h.activityId=e.activityId,h.features=e.expFeatures)}))})),function(e){m=e}((function(){return(0,n.mG)(this,void 0,void 0,(function*(){h={};const e=window.location.href;let t;t=null!==d.c.getQueryParameterByName("edge",e)?(0,s.jG)():T("muid",e),h.sapphireId=null!==t?t:"",h.muid=null!==t?`m-${t}`:"";const r=T("adid",e);h.adid=null!==r?r:"";const n=T("market",e);h.market=w(n),C(h);const o=T("features",e);h.features=null!==o?o:"";const l=T("activityId",e);h.activityId=l||k();const g=T("platform",e);h.platform=null!==g?i[g]:"",h.bridgeVersionInt=1;const p=T("bridgeVersionInt",e);p&&(h.bridgeVersionInt=parseInt(p,10));const m=T("isDarkMode",e);h.isDarkMode="true"===m;const f=T("isSignedIn",e);h.isSignedIn="true"===f;const v=T("accountType",e);h.accountType=null!==v?v:"";const y=T("isPageRefresh",e);h.isPageRefresh=null!==y&&"1"===y;const S=T("isChinaBuild",e);h.isChinaBuild="true"===S;const I=T("kids",e);h.isKidsMode=null!==I&&"1"===I;const O=T("fontSize",e);h.fontSize=parseInt(O,10);const $=T("latitude",e);h.latitude=null!==$?$:"";const P=T("longitude",e);h.longitude=null!==P?P:"";const L=T("anid",e);h.anid=null!==L?L:"",c={isSignedIn:h.isSignedIn,accountType:h.accountType},u={lat:$,lng:P};const F=T("clientVersion",e);if(null!==F){h.clientVersion=null!==F?F:"";const t=T("packageName",e);h.packageName=null!==t?t:""}else window.performance.mark("HP-initUserConfigForSuperAppAndroid-DeviceInformation-Start"),b().then((e=>{console.log("getDeviceInfomation Bridge call complete"),window.performance.mark("HP-initUserConfigForSuperAppAndroid-DeviceInformation-End"),window.performance.measure("HP-initUserConfigForSuperAppAndroid-DeviceInformation","HP-initUserConfigForSuperAppAndroid-DeviceInformation-Start","HP-initUserConfigForSuperAppAndroid-DeviceInformation-End"),h.clientVersion=e.clientVersion,h.packageName=e.packageName}));window.performance.mark("HP-initUserConfigForSuperAppAndroid-LocationInformation-Start");const E=T("provider",e);if(null!==E){h.clientLocationProvider=null!==E?E:"";const t=T("accuracy",e);h.clientLocationAccuracy=null!==t?t:"";const r=T("time",e);h.clientLocationTimeStamp=null!==r?r:""}else(0,a.SP)({fallbackRevIP:!1}).then((e=>{console.log("getLocationInfo Bridge call complete"),window.performance.mark("HP-initUserConfigForSuperAppAndroid-LocationInformation-End"),window.performance.measure("HP-initUserConfigForSuperAppAndroid-LocationInformation","HP-initUserConfigForSuperAppAndroid-LocationInformation-Start","HP-initUserConfigForSuperAppAndroid-LocationInformation-End");try{u=JSON.parse(e),console.log("locInfo:",u),u&&(h.latitude=u.lat,h.longitude=u.lng,h.clientLocationProvider=u.provider,h.clientLocationAccuracy=u.accuracy,u.time&&(h.clientLocationTimeStamp=new Date(u.time).toISOString()))}catch(e){x(e,"SapphireUserConfig.initUserConfigForSuperAppAndroid: Failed to parse location response")}}));b().then((e=>{console.log("deviceInfo:",e),h.installSource=e.installSource,h.detectedCountry=e.detectedCountry?e.detectedCountry:"",h.screenWidth=e.screenWidth,h.screenWidthPx=e.screenWidthPx,h.screenHeight=e.screenHeight,h.screenHeightPx=e.screenHeightPx,h.isBingApp=e.isBingApp,h.isNewsApp=e.isNewsApp,h.adjustCampaign=e.adjustCampaign,h.isFirstSession=e.isFirstSession,C(h)}))}))}))},27422:function(e,t,r){"use strict";r.d(t,{M:function(){return g}});var i=r(33940),n=r(44833),a=r(53813),o=r(44979),s=r(47224),d=r(26415),c=r(65135),l=r(68651),u=r(87697),h=r(791);class g{constructor(e,t,r,n,a,o,s){this.menuItems=[],this.isActionMenuOpen=!1,this.actionsMenuButtonElement=null,this.onOutsideClick=e=>{var t;const r=e.composedPath()&&e.composedPath()[0];e.target instanceof this.currentSDClass||(null===(t=this.actionsMenuButtonElement)||void 0===t?void 0:t.contains(r))||this.toggleActionMenu(!1,null)},this.onKeydown=e=>{"Escape"===e.code&&this.toggleActionMenu(!1,null)},this.moreSettingAction=()=>(0,i.mG)(this,void 0,void 0,(function*(){this.toggleActionMenu(!1,null),this.goToPersonalizeSettingsCallback&&this.goToPersonalizeSettingsCallback()})),this.hideSettingAction=()=>(0,i.mG)(this,void 0,void 0,(function*(){if(!this.segmentSdCardType)return!1;try{const e=yield h.N.updateSegmentCardsEnableStatus([{cardType:this.segmentSdCardType,enabled:!1}]);return e&&this.refreshSDCardSection&&this.refreshSDCardSection(),this.toggleActionMenu(!1,null),e}catch(e){return c.M0.sendAppErrorEvent(Object.assign(Object.assign({},d.M2Y.SuperSDHideCardError),{message:`Fail to hide ${this.segmentSdCardType} Card .`,pb:Object.assign(Object.assign({},d.M2Y.SuperSDHideCardError.pb),{customMessage:`Failed with exception : ${e}`})})),!1}})),this.currentSDClass=e,this.isDynamicFeed=t,this.sdCardDynamicFeedConfig=n,this.settingMenuConfig=a,this.goToPersonalizeSettingsCallback=o,this.refreshSDCardSection=s,this.menuItems=this.getBaseActionMenuItems(),this.segmentSdCardType=r}updateMenuItems(e,t){this.menuItems=t?this.menuItems.concat(e):e.concat(this.menuItems)}toggleActionMenu(e,t){this.isDynamicFeed&&this.sdCardDynamicFeedConfig?this.toggleCardActionsForDynamicFeed(t):(this.isActionMenuOpen=e,e?(this.actionsMenuButtonElement=t&&t.currentTarget,this.setAriaExpanded(e),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.setAriaExpanded(e),this.actionsMenuButtonElement=null,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown)))}setAriaExpanded(e){this.actionsMenuButtonElement&&(this.actionsMenuButtonElement.ariaExpanded=String(e))}toggleCardActionsForDynamicFeed(e){const t=this.sdCardDynamicFeedConfig;if(e&&t){const r={menuItems:(0,l.aS)(t.supportedSdCardActionMenuItems,t.poweredName,void 0,t.feedLayoutCardType,t.cardSize,t.settingsHandler),referrerButton:e.currentTarget,requestContext:new o.fH};t.sdCardActionClickHandler(r,t.feedLayoutCardType)}}getBaseActionMenuItems(){var e,t;if(!this.settingMenuConfig)return[];const r=[];if(null===(e=this.settingMenuConfig.interestSetting)||void 0===e?void 0:e.onClick){const e=this.settingMenuConfig.interestSetting;r.push({glyph:a.Z,title:e.title,id:"dislike",onClick:e.onClick,telemetryTag:e.telemetryTag})}if(null===(t=this.settingMenuConfig.dataProviderSetting)||void 0===t?void 0:t.onClick){const e=this.settingMenuConfig.dataProviderSetting;r.push({glyph:n.Z,title:e.title,id:"dataProvider",onClick:e.onClick,telemetryTag:e.telemetryTag})}if(this.settingMenuConfig.hideSetting){const e=this.settingMenuConfig.hideSetting;r.push({glyph:a.Z,title:e.title,id:"hide",onClick:e.onClick?e.onClick:()=>this.hideSettingAction(),telemetryTag:e.telemetryTag})}if(this.settingMenuConfig.moreSetting){const e=this.settingMenuConfig.moreSetting;r.push({glyph:s.Z,ariaLabel:e.ariaLabel,title:e.title,id:"more",onClick:e.onClick?e.onClick:()=>this.moreSettingAction(),telemetryTag:e.telemetryTag})}return r}}(0,i.gn)([u.LO],g.prototype,"menuItems",void 0),(0,i.gn)([u.LO],g.prototype,"isActionMenuOpen",void 0)},6551:function(e,t,r){"use strict";r.d(t,{D:function(){return o},J:function(){return s}});var i=r(53271),n=r(33763),a=r(39181);n.S;const o=(e,t,r,n,o="more-actions",s=!1)=>a.d`
        <fluent-button
            slot="${o}"
            appearance="neutral"
            class=${null!=n?n:""}
            @click=${e}
            data-t=${e=>t}
            title="${r}"
            aria-label="${r}"
            aria-expanded="${s}"
            role="button"
        >
            ${i.Z}
        </fluent-button>
    `,s=(e,t,r,i="end")=>a.d`
        <msn-actions-menu 
            :referrerButton=${t=>e}
            :menuItems=${e=>t}
            :useFastAnchoredRegion=${e=>!0!==r}
            defaultHorizontalPosition=${i}
        />
    `},53909:function(e,t,r){"use strict";r.d(t,{D3:function(){return o},KL:function(){return l},mL:function(){return g},pG:function(){return d},q3:function(){return c},vc:function(){return s},zz:function(){return u}});var i=r(12697),n=r(80983);let a;var o,s;!function(e){e.JPG="jpg",e.PNG="png"}(o||(o={})),function(e){e[e.None=0]="None",e[e.Letterbox=1]="Letterbox",e[e.Scale=2]="Scale",e[e.Stretch=3]="Stretch",e[e.Crop=4]="Crop",e[e.FocalCrop=5]="FocalCrop",e[e.FacialCrop=6]="FacialCrop"}(s||(s={}));const d=90,c="www.bing.com/th",l=new RegExp(/bing\.(com|net)\/th/);function u(e,t){return g(((0,n.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+e,t)}const h=Math.ceil(4*Math.random())||4;function g(e,t){if(e&&l.test(e))return function(e,t){try{return p(new URL(e),t).href}catch(r){const i=p(new URL(`https://${e}`),t);return`//${i.host}${i.pathname}${i.search}`}}(e,t);const{focalRegion:r,backgroundColor:n}=t;let{width:s=0,height:d=0,format:c=o.JPG}=t,u="";if(r){const e=f(r.x1,r.x2),t=f(r.y1,r.y2);null!=e&&null!=t&&(u+=`&x=${e}&y=${t}`)}n&&(u+=`&b=${n}`);const h=null==t.mode?6:t.mode;if(6===h&&(u+="&u=t"),t.enableDpiScaling){if(!t.devicePixelRatio)throw new Error("A valid devicePixelRatio value must be provided when DPI scaling is enabled");const e=function(e){if(m()&&a)return a;if(e<1)return null;let t=e;(0,i.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);m()&&(a=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),d=Math.round(d*e))}return`${e}?w=${s}&h=${d}&q=${t.quality||60}&m=${h}&f=${c}${u}`}function p(e,t){(0,n.P)()&&(e.hostname=`ts${h}.cn.mm.bing.net`);const{width:r=0,height:i=0}=t,a=t.quality||d,o=t.crop||1;return e.searchParams.set("w",`${r}`),e.searchParams.set("h",`${i}`),e.searchParams.set("qlt",`${a}`),e.searchParams.set("c",`${o}`),e.searchParams.set("rs","1"),t.enableDpiScaling&&(e.searchParams.set("dpr",`${t.devicePixelRatio}`),e.searchParams.set("p","0")),e}function m(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function f(e,t){if(null!=e&&null!=t)return Math.floor((e+t)/2)}},16339:function(e,t,r){"use strict";r.d(t,{Iq:function(){return d},MD:function(){return o},gL:function(){return s}});var i=r(59049),n=r(14675);const a=new i.v("WidgetLoadTracker");function o(e){a.has(e)||("hidden"!==document.visibilityState?(0,n.c)((()=>a.set(e,!0))):a.set(e,!0))}const s=new i.v("WidgetAppState");var d;!function(e){e[e.IsDarkMode=1]="IsDarkMode",e[e.IsDashboardVisible=2]="IsDashboardVisible",e[e.ActionMenuStrings=3]="ActionMenuStrings",e[e.IsDynamicFeed=4]="IsDynamicFeed",e[e.SessionId=5]="SessionId",e[e.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",e[e.FeedRegionWidgets=7]="FeedRegionWidgets",e[e.DefaultPreviewType=8]="DefaultPreviewType",e[e.IsReauthRequired=9]="IsReauthRequired"}(d||(d={}))},68651:function(e,t,r){"use strict";r.d(t,{B$:function(){return m},f3:function(){return y},US:function(){return v},aS:function(){return p},gK:function(){return b}});var i=r(38156),n=r(16339),a='<svg width="4" height="4" viewBox="0 0 4 4"><rect width="4" height="4" rx="2" fill-opacity=".9"/></svg>',o=r(19456),s=r(53813),d=r(94522),c=r(60483),l=r(64434);let u,h,g;function p(e,t,r,c,l,p){const v=[];let y=0,b=!1;if(!e||!e.length)return;const x=n.gL.get(n.Iq.ActionMenuStrings),w=e.includes(m.Unpin);return g=w?"pinned":"feed",u=r||{},h=c,e.forEach((e=>{switch(e){case m.Small:y++,u.height=146,v.push({id:"small",glyph:l===e?a:void 0,title:x.small||"Small",ariaLabel:x.small||"Small",telemetryTag:f(`size_${m.Small}`,x.small,i.wu.Customize)});break;case m.Medium:y++,u.height=304,v.push({id:"medium",glyph:l===e?a:void 0,title:x.medium||"Medium",ariaLabel:x.medium||"Medium",telemetryTag:f(`size_${m.Medium}`,x.medium,i.wu.Customize)});break;case m.Large:y++,u.height=462,v.push({id:"large",glyph:l===e?a:void 0,title:x.large||"Large",ariaLabel:x.large||"Large",telemetryTag:f(`size_${m.Large}`,x.large,i.wu.Customize)});break;case m.Pin:v.push({id:"pinCard",glyph:d.Z,title:x.pinCard||"Pin widget",ariaLabel:x.pinCard||"Pin widget",telemetryTag:f("pinwidget",x.pinCard,i.wu.Pin)});break;case m.Customize:b=!0,y>1&&v.push({isDivider:!0}),v.push({id:"customize",glyph:o.Z,title:x.customize||"Customize widget",ariaLabel:x.customize||"Customize widget",onClick:()=>p("onShowSettingsEnd"),telemetryTag:f("editwidget",x.customize,i.wu.Customize)});break;case m.Unpin:!b&&y>1&&v.push({isDivider:!0}),v.push({id:"unpinCard",glyph:'<svg width="16" height="20" viewBox="0 0 17 16" fill="none"><path d="M16 15.5c0 .14-.04.25-.14.35-.1.1-.22.15-.35.15a.49.49 0 0 1-.36-.15l-5.03-5.02-1.14 3.81a.5.5 0 0 1-.18.26.46.46 0 0 1-.3.1.48.48 0 0 1-.35-.15L5 11.7.7 16H0v-.71L4.3 11 1.15 7.85A.49.49 0 0 1 1 7.5c0-.1.03-.2.09-.27a.55.55 0 0 1 .22-.18L4.9 5.6.15.85A.48.48 0 0 1 0 .5C0 .36.05.24.15.15A.5.5 0 0 1 .5 0c.13 0 .25.05.35.15l15 15c.1.1.15.21.15.35ZM7.24 5.1l-.75-.75 1.47-3.24A1.48 1.48 0 0 1 9.89.34c.18.08.34.18.48.32L15.3 5.6c.14.14.24.3.32.5a1.49 1.49 0 0 1-.8 1.95L11.52 9.4l-.76-.77 3.66-1.53a.5.5 0 0 0 .3-.46.48.48 0 0 0-.14-.35L9.66 1.38a.46.46 0 0 0-.16-.1.45.45 0 0 0-.19-.05c-.1 0-.19.03-.27.08a.5.5 0 0 0-.18.21L7.23 5.1ZM2.39 7.68l5.87 5.87 1.06-3.53-3.66-3.65L2.4 7.68Z"/></svg>',title:x.unpinCard||"Unpin widget",ariaLabel:x.unpinCard||"Unpin widget",telemetryTag:f("unpinwidget",x.unpinCard,i.wu.Unpin)});break;case m.PoweredBy:v.push({isDivider:!0}),v.push({id:"poweredBy",isText:!0,title:t||"Powered by Microsoft",ariaLabel:t||"Powered by Microsoft"});break;case m.RemoveWidget:v.push({id:m.RemoveWidget,glyph:s.Z,title:x.hideWidget,ariaLabel:x.hideWidget,telemetryTag:f("removewidget",x.hideWidget,i.wu.Hide)})}})),v}var m;function f(e,t,r){return new c.D({name:`${h}>customization_${e}`,type:i.c9.ActionButton,action:i.Aw.Click,behavior:r,zone:g,content:{headline:t,type:i.uH.StructuredData,vertical:h,category:h},destinationUrl:location.href,ext:u}).getMetadataTag()}function v(e){switch(e){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function y(e,t,r){e&&r&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:r,size:"medium"}})),e.style.zIndex=l.K.Above.toString(),e.style.height="304px")}function b(e,t,r,i){e&&r&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:r,size:"small"}})),!1,e.style.zIndex="",e.style.height="")}!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Customize="customize",e.Pin="pin",e.Unpin="unpin",e.PoweredBy="poweredBy",e.RemoveWidget="removeWidget"}(m||(m={}))},99478:function(e,t,r){"use strict";function i(e,...t){return e.replace(/{(\d+)}/g,(function(e,r){if(r>=t.length)return e;const i=t[r];return"number"==typeof i||i?i:""}))}function n(e){return!e||!e.trim()}r.d(t,{TF:function(){return n},WU:function(){return i}})},83648:function(e,t,r){var i,n;n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:this,e.exports=function(r){"use strict";var n,a=(r=r||{}).Base64,o="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},r=0,i=e.length;r<i;r++)t[e.charAt(r)]=r;return t}(s),c=String.fromCharCode,l=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(e){return e.replace(u,l)},g=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[s.charAt(r>>>18),s.charAt(r>>>12&63),t>=2?"=":s.charAt(r>>>6&63),t>=1?"=":s.charAt(63&r)].join("")},p=r.btoa&&"function"==typeof r.btoa?function(e){return r.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,g)},m=function(e){return p(h(String(e)))},f=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?f(m(e)):m(e)},y=function(e){return v(e,!0)};r.Uint8Array&&(n=function(e,t){for(var r="",i=0,n=e.length;i<n;i+=3){var a=e[i],o=e[i+1],d=e[i+2],c=a<<16|o<<8|d;r+=s.charAt(c>>>18)+s.charAt(c>>>12&63)+(void 0!==o?s.charAt(c>>>6&63):"=")+(void 0!==d?s.charAt(63&c):"=")}return t?f(r):r});var b,x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},C=function(e){return e.replace(x,w)},T=function(e){var t=e.length,r=t%4,i=(t>0?d[e.charAt(0)]<<18:0)|(t>1?d[e.charAt(1)]<<12:0)|(t>2?d[e.charAt(2)]<<6:0)|(t>3?d[e.charAt(3)]:0),n=[c(i>>>16),c(i>>>8&255),c(255&i)];return n.length-=[0,0,2,1][r],n.join("")},S=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,T)},k=function(e){return S(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},I=function(e){return C(S(e))},O=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},$=function(e){return I(O(e))};r.Uint8Array&&(b=function(e){return Uint8Array.from(k(O(e)),(function(e){return e.charCodeAt(0)}))});var P=function(){var e=r.Base64;return r.Base64=a,e};if(r.Base64={VERSION:o,atob:k,btoa:p,fromBase64:$,toBase64:v,utob:h,encode:v,encodeURI:y,btou:C,decode:$,noConflict:P,fromUint8Array:n,toUint8Array:b},"function"==typeof Object.defineProperty){var L=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L((function(){return $(this)}))),Object.defineProperty(String.prototype,"toBase64",L((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",L((function(){return v(this,!0)})))}}return r.Meteor&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:void 0===(i=function(){return r.Base64}.apply(t,[]))||(e.exports=i),{Base64:r.Base64}}(n)},38247:function(e,t,r){"use strict";r.d(t,{QT:function(){return u}});var i=r(33940),n=r(28090),a=r(65620),o=r(45169),s=r(53046),d=r(45597),c=r(82636);class l extends n.e{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===e.length&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,i.gn)([a.Lj,(0,i.w6)("design:type",String)],l.prototype,"appearance",void 0);const u=l.compose({baseName:"anchor",baseClass:n.e,template:o.g,styles:(e,t)=>s.i`
        ${(0,d.vN)(e,t)}
    `.withBehaviors((0,c.H)("accent",d.jQ),(0,c.H)("hypertext",d.Xu),(0,c.H)("lightweight",d.vt),(0,c.H)("outline",d.O8),(0,c.H)("stealth",d.cg)),shadowOptions:{delegatesFocus:!0}})},1393:function(e,t,r){"use strict";r.d(t,{EK:function(){return g}});var i=r(91281),n=r(30569),a=r(53046),o=r(67020),s=r(37139),d=r(56201),c=r(40082),l=r(87839),u=r(2658),h=r(32804);const g=i.U.compose({baseName:"flipper",template:n._,styles:(e,t)=>a.i`
        ${(0,o.j)("inline-flex")} :host {
            width: calc(${u.i} * 1px);
            height: calc(${u.i} * 1px);
            justify-content: center;
            align-items: center;
            margin: 0;
            position: relative;
            fill: currentcolor;
            color: ${h.CHi};
            background: transparent;
            border: none;
            outline: none;
            padding: 0;
        }

        :host::before {
            content: "";
            opacity: 0.8;
            background: ${h.jql};
            border: calc(${h.Han} * 1px) solid ${h.akT};
            border-radius: 50%;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            transition: all 0.1s ease-in-out;
        }

        .next,
        .previous {
            position: relative;
            ${""} width: 16px;
            height: 16px;
        }

        :host(.disabled) {
            opacity: ${h.VFZ};
            cursor: ${s.H};
        }

        :host(:hover) {
            cursor: pointer;
        }

        :host(:hover)::before {
            background: ${h.QpD};
            border-color: ${h.QPc};
        }

        :host(:${d.b}) {
            outline: none;
        }

        :host(:${d.b})::before {
            box-shadow: 0 0 0 1px ${h.yGg} inset;
            border-color: ${h.yGg};
        }

        :host(:active)::before {
            background: ${h.sG3};
            border-color: ${h.c1L};
        }

        :host::-moz-focus-inner {
            border: 0;
        }
    `.withBehaviors((0,c.vF)(a.i`
                :host {
                    background: ${l.H.Canvas};
                }
                :host .next,
                :host .previous {
                    color: ${l.H.ButtonText};
                    fill: currentcolor;
                }
                :host::before {
                    background: ${l.H.Canvas};
                    border-color: ${l.H.ButtonText};
                }
                :host(:hover)::before {
                    forced-color-adjust: none;
                    background: ${l.H.Highlight};
                    border-color: ${l.H.ButtonText};
                    opacity: 1;
                }
                :host(:hover) .next,
                :host(:hover) .previous {
                    forced-color-adjust: none;
                    color: ${l.H.HighlightText};
                    fill: currentcolor;
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled)::before,
                :host(.disabled:hover)::before,
                :host(.disabled) .next,
                :host(.disabled) .previous,
                :host(.disabled:hover) .next,
                :host(.disabled:hover) .previous {
                    forced-color-adjust: none;
                    background: ${l.H.Canvas};
                    border-color: ${l.H.GrayText};
                    color: ${l.H.GrayText};
                    fill: ${l.H.GrayText};
                }
                :host(:${d.b})::before {
                    forced-color-adjust: none;
                    border-color: ${l.H.Highlight};
                    box-shadow: 0 0 0 2px ${l.H.Field},
                        0 0 0 4px ${l.H.FieldText};
                }
            `)),next:'\n    <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n        <path\n            d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n        />\n    </svg>\n  ',previous:'\n    <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n        <path\n            d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n        />\n    </svg>\n  '})},77615:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});var i=r(57905);function n(e){return i.K.getOrCreate(e).withPrefix("cs")}},46631:function(e,t,r){"use strict";r.d(t,{QZ:function(){return h}});var i=r(48839);class n extends i.I{}var a=r(39181);var o=r(32804),s=r(2658),d=r(53046),c=r(67020),l=r(40082),u=r(87839);const h=n.compose({baseName:"sd-card-footer",template:(e,t)=>a.d`
    <slot name="pagination">
        ${t.pagination instanceof Function?t.pagination(e,t):t.pagination??""}
    </slot>
    <slot></slot>
`,styles:(e,t)=>d.i`
        ${(0,c.j)("flex")} :host {
            padding: 0 16px;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            font-family: ${o.SVJ};
            font-size: ${o.sNp};
            line-height: ${o.vgC};
            color: ${o.CHi};
            height: calc(${s.i} * 1px);
        }

        ::slotted(fluent-anchor),
        ::slotted(fluent-button) {
            font-size: ${o.sNp};
            line-height: ${o.vgC};
            height: calc((${s.i} - 8) * 1px);
            min-height: calc((${s.i} - 8) * 1px);
            --control-corner-radius: 14;
        }

        /* Ensure neutral buttons have a stroke per the design */
        ::slotted(fluent-button[appearance="neutral"]),
        ::slotted(fluent-anchor[appearance="neutral"]) {
            border: 1px solid ${o.akT};
        }

        ::slotted(fluent-button[appearance="neutral"]:hover),
        ::slotted(fluent-anchor[appearance="neutral"]:hover) {
            border-color: ${o.QPc};
        }

        ::slotted(fluent-button[appearance="neutral"]:active),
        ::slotted(fluent-anchor[appearance="neutral"]:active) {
            border-color: ${o.c1L};
        }

        ::slotted(fluent-anchor),
        ::slotted(fluent-button),
        ::slotted([slot="pagination"]) {
            z-index: ${o.kcg};
        }

        ::slotted([slot="pagination"]) {
            margin-inline-end: auto;
        }
    `.withBehaviors((0,l.vF)(d.i`
                :host {
                    color: ${u.H.ButtonText};
                    fill: currentcolor;
                }
            `))})},10326:function(e,t,r){"use strict";r.d(t,{RM:function(){return u}});var i=r(81707),n=r(39181);var a=r(32804),o=r(2658),s=r(53046),d=r(67020),c=r(40082),l=r(87839);const u=i.m.compose({baseName:"sd-card-header",template:(e,t)=>n.d`
    <slot name="icon">
        ${t.icon instanceof Function?t.icon(e,t):t.icon??""}
    </slot>
    <a
        id="title"
        class="title"
        part="title"
        href="${e=>e.href?e.href:void 0}"
        target="${e=>e.target?e.target:void 0}"
        data-t="${e=>e.anchorTelemetryTag}"
        @click=${(e,t)=>e.handleSDCardLinkClick(t.event)}
    >
        <slot></slot>
    </a>
    <slot name="menu-button">
        ${t.menuButton instanceof Function?t.menuButton(e,t):t.menuButton??""}
    </slot>
    <div part="more-actions" class="more-actions">
        <slot name="more-actions">
            ${t.moreActions instanceof Function?t.moreActions(e,t):t.moreActions??""}
        </slot>
    </div>
`,styles:(e,t)=>s.i`
        ${(0,d.j)("grid")} :host {
            align-items: center;
            box-sizing: border-box;
            font-family: ${a.SVJ};
            font-size: ${a.sNp};
            line-height: ${a.vgC};
            color: ${a.CHi};
            height: calc((${o.i} + 16) * 1px);
            padding: 0 var(--sd-card-header-padding-inline, 16px);
            grid-template-columns: auto auto 1fr auto;
        }

        ::slotted([slot="icon"]) {
            margin-inline-end: 8px;
        }

        .title {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: ${a.CHi};
            outline: 0;
            fill: currentcolor;
            text-decoration: none;
        }

        .title:after {
            bottom: 0;
            content: "";
            height: 100%;
            left: 0;
            position: absolute;
            right: 0;
            width: 100%;
            z-index: ${a.lr};
        }

        ::slotted([slot="menu-button"]) {
            height: calc((${o.i} - 8) * 1px);
            min-height: calc((${o.i} - 8) * 1px);
            min-width: var(--sd-card-header-menu-button-width, 20px);
            width: var(--sd-card-header-menu-button-width, 20px);
            opacity: 0;
            display: none;
            margin-inline-start: 4px;
            ${""}
            --control-corner-radius: 4;
            background-color: transparent;
        }

        :host([show-menu-button]) ::slotted([slot="menu-button"]) {
            opacity: 1;
            display: flex;
        }

        .more-actions {
            margin-inline-start: auto;
            display: grid;
            grid-gap: 4px;
            grid-auto-flow: column;
            padding-inline-start: 12px;
        }

        ::slotted([slot="menu-button"]),
        ::slotted([slot="more-actions"]) {
            z-index: ${a.kcg};
        }

        ::slotted([slot="more-actions"]) {
            font-size: ${a.sNp};
            line-height: ${a.vgC};
            height: calc((${o.i} - 4) * 1px);
            min-height: calc((${o.i} - 4) * 1px);
            min-width: calc((${o.i} - 4) * 1px);
            --control-corner-radius: 999;
            background: transparent;
        }

        ::slotted([slot="more-actions"]:hover),
        ::slotted([slot="menu-button"]:hover) {
            background-color: ${a.QpD};
        }

        ::slotted([slot="more-actions"]:active),
        ::slotted([slot="menu-button"]:active) {
            background-color: ${a.sG3};
        }
    `.withBehaviors((0,c.vF)(s.i`
                :host {
                    color: ${l.H.ButtonText};
                    fill: currentcolor;
                }
            `))})},81707:function(e,t,r){"use strict";r.d(t,{m:function(){return s}});var i=r(33940),n=r(48839),a=r(65620),o=r(87697);class s extends n.I{constructor(){super(...arguments),this.showMenuButton=!1,this.target="_blank"}handleSDCardLinkClick(e){return this.$emit("link-invoked",e),!0}}(0,i.gn)([(0,a.Lj)({attribute:"show-menu-button",mode:"boolean"}),(0,i.w6)("design:type",Boolean)],s.prototype,"showMenuButton",void 0),(0,i.gn)([a.Lj,(0,i.w6)("design:type",Object)],s.prototype,"href",void 0),(0,i.gn)([a.Lj,(0,i.w6)("design:type",String)],s.prototype,"target",void 0),(0,i.gn)([o.LO,(0,i.w6)("design:type",String)],s.prototype,"anchorTelemetryTag",void 0)},28090:function(e,t,r){"use strict";r.d(t,{e:function(){return l},m:function(){return u}});var i=r(20005),n=r(65620),a=r(87697),o=r(48839),s=r(7775),d=r(51208),c=r(86076);class l extends o.I{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,i.gn)([n.Lj],l.prototype,"download",void 0),(0,i.gn)([n.Lj],l.prototype,"href",void 0),(0,i.gn)([n.Lj],l.prototype,"hreflang",void 0),(0,i.gn)([n.Lj],l.prototype,"ping",void 0),(0,i.gn)([n.Lj],l.prototype,"referrerpolicy",void 0),(0,i.gn)([n.Lj],l.prototype,"rel",void 0),(0,i.gn)([n.Lj],l.prototype,"target",void 0),(0,i.gn)([n.Lj],l.prototype,"type",void 0),(0,i.gn)([a.LO],l.prototype,"defaultSlottedContent",void 0);class u{}(0,i.gn)([(0,n.Lj)({attribute:"aria-expanded"})],u.prototype,"ariaExpanded",void 0),(0,c.e)(u,s.v),(0,c.e)(l,d.hW,u)},45169:function(e,t,r){"use strict";r.d(t,{g:function(){return s}});var i=r(39181),n=r(58952),a=r(90960),o=r(51208);const s=(e,t)=>i.d`
    <a
        class="control"
        part="control"
        download="${e=>e.download}"
        href="${e=>e.href}"
        hreflang="${e=>e.hreflang}"
        ping="${e=>e.ping}"
        referrerpolicy="${e=>e.referrerpolicy}"
        rel="${e=>e.rel}"
        target="${e=>e.target}"
        type="${e=>e.type}"
        aria-atomic="${e=>e.ariaAtomic}"
        aria-busy="${e=>e.ariaBusy}"
        aria-controls="${e=>e.ariaControls}"
        aria-current="${e=>e.ariaCurrent}"
        aria-describedby="${e=>e.ariaDescribedby}"
        aria-details="${e=>e.ariaDetails}"
        aria-disabled="${e=>e.ariaDisabled}"
        aria-errormessage="${e=>e.ariaErrormessage}"
        aria-expanded="${e=>e.ariaExpanded}"
        aria-flowto="${e=>e.ariaFlowto}"
        aria-haspopup="${e=>e.ariaHaspopup}"
        aria-hidden="${e=>e.ariaHidden}"
        aria-invalid="${e=>e.ariaInvalid}"
        aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
        aria-label="${e=>e.ariaLabel}"
        aria-labelledby="${e=>e.ariaLabelledby}"
        aria-live="${e=>e.ariaLive}"
        aria-owns="${e=>e.ariaOwns}"
        aria-relevant="${e=>e.ariaRelevant}"
        aria-roledescription="${e=>e.ariaRoledescription}"
        ${(0,n.i)("control")}
    >
        ${(0,o.m9)(e,t)}
        <span class="content" part="content">
            <slot ${(0,a.Q)("defaultSlottedContent")}></slot>
        </span>
        ${(0,o.LC)(e,t)}
    </a>
`},91281:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var i=r(20005),n=r(65620),a=r(48839),o=r(16882);class s extends a.I{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=o.L.next}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;"Enter"!==t&&"Space"!==t||this.$emit("click",e),"Escape"===t&&this.blur()}}}(0,i.gn)([(0,n.Lj)({mode:"boolean"})],s.prototype,"disabled",void 0),(0,i.gn)([(0,n.Lj)({attribute:"aria-hidden",converter:n.bw})],s.prototype,"hiddenFromAT",void 0),(0,i.gn)([n.Lj],s.prototype,"direction",void 0)},16882:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});const i={next:"next",previous:"previous"}},30569:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var i=r(39181),n=r(13988),a=r(16882);const o=(e,t)=>i.d`
    <template
        role="button"
        aria-disabled="${e=>!!e.disabled||void 0}"
        tabindex="${e=>e.hiddenFromAT?-1:0}"
        class="${e=>e.direction} ${e=>e.disabled?"disabled":""}"
        @keyup="${(e,t)=>e.keyupHandler(t.event)}"
    >
        ${(0,n.g)((e=>e.direction===a.L.next),i.d`
                <span part="next" class="next">
                    <slot name="next">
                        ${t.next||""}
                    </slot>
                </span>
            `)}
        ${(0,n.g)((e=>e.direction===a.L.previous),i.d`
                <span part="previous" class="previous">
                    <slot name="previous">
                        ${t.previous||""}
                    </slot>
                </span>
            `)}
    </template>
`},12697:function(e,t,r){"use strict";var i=r(84708);t.Z=function(e){return"number"==typeof e&&e==(0,i.Z)(e)}}}]);A
Eo