    <svg
        width="20"
        height="20"
        viewBox="0 0 20 20"
        class="location-icon"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M8.5 3a5.5 5.5 0 014.23 9.02l4.12 4.13a.5.5 0 01-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 118.5 3zm0 1a4.5 4.5 0 100 9 4.5 4.5 0 000-9z"
        />
    </svg>
`,_=(e,t)=>$.d`
    <li
        role="option"
        title="${e=>e}"
        aria-label="${e=>e}"
        @click="${(e,t)=>t.parent.selectSuggestLocation(e,t.index)}
        data-t="${(e,t)=>t.parent.suggestTelemetryTag}"
    >
        <fluent-button class="suggest-item" part="suggest-item" appearance="stealth">
            <div class="suggest-item-text">${e=>e}</div>
        </fluent-button>
    </li>
`,D=(e,t)=>$.d`
    <div class="auto-suggest">
        <fluent-text-field
            class="location-input"
            part="location-input"
            id="traffic_location_input"
            tabindex="0"
            title=${e=>e.searchPlaceHolderText}
            placeholder="${e=>e.searchPlaceHolderText}"
            @input=${e=>e.handleInputForSuggest()}
            @keydown="${(e,t)=>e.handleOnKeyDownSearchBox(t.event)}"
            ?disabled=${e=>"AutoDetect"===e.locationMode}
            type="search"
            appearance="filled"
            autofocus="autofocus"
            autoComplete="off"
            aria-autocomplete="both"
            aria-controls="traffic_location_search_list"
            aria-owns="traffic_location_search_list"
            ${(0,O.i)("inputControl")}
        >
            <span slot=${e=>e.isWidget?"end":"start"}>${F}</span>
        </fluent-text-field>
    </div>
`,P=C.compose({baseName:"inline-location-settings",template:(e,t)=>$.d`
    <div class="container">
        ${(0,A.g)((e=>"full"===e.layout||"tall"===e.layout),$.d`
                <div class="edit-location-region">
                    ${(0,A.g)((e=>e.isWidget),$.d`<div class="edit-header">
                            ${e=>e.editHeader}
                        </div>`)}
                    <div class="location">
                        <fluent-radio-group
                            value="${e=>e.locationMode}"
                            @change="${(e,t)=>e.chooseLocationMode(t.event)}"
                            aria-labelledby="setlocationmode"
                            name="set-location-mode"
                            orientation="vertical"
                        >
                            <fluent-radio
                                value="Specify"
                                id="specify-location-mode"
                                data-t="${e=>e.specifyLocationTelemetryTag}"
                                >${e=>e.specifyLocationText}</fluent-radio
                            >
                            <fluent-radio
                                value="AutoDetect"
                                data-t="${e=>e.detectLocationTelemetryTag}"
                                >${e=>e.detectLocationText}</fluent-radio
                            >
                        </fluent-radio-group>
                        ${D}
                    </div>
                </div>
                ${M.zq}
            `)}
        ${(0,A.g)((e=>"half"===e.layout),$.d`
                <div class="location">
                    <fluent-radio-group
                        class="location-options"
                        value="${e=>e.locationMode}"
                        @change="${(e,t)=>e.chooseLocationMode(t.event)}"
                        aria-labelledby="setlocationmode"
                        name="set-location-mode"
                        orientation="vertical"
                    >
                        <fluent-radio
                            value="AutoDetect"
                            data-t="${e=>e.detectLocationTelemetryTag}"
                            ><div class="user-option">
                                ${e=>e.detectLocationText}
                            </div></fluent-radio
                        >
                        <fluent-radio
                            value="Specify"
                            id="specify-location-mode"
                            data-t="${e=>e.specifyLocationTelemetryTag}"
                            ><div class="user-option">
                                ${e=>e.specifyLocationText}
                            </div></fluent-radio
                        >
                    </fluent-radio-group>
                    ${D}
                </div>
            `)}
        <div
            class="suggest-list-container"
            aria-live="polite"
            aria-expanded="true"
            id="traffic_location_search_list"
            aria-label="${e=>e.searchPlaceHolderText}"
        >
            ${(0,A.g)((e=>e.showSuggests&&e.suggestedLocations),$.d`
                    <ul
                        class="suggest-list"
                        part="suggest-list"
                        ${(0,O.i)("selectedSuggestion")}
                        @keydown="${(e,t)=>e.handleOnKeyDownAutoSuggestBox(t.event)}"
                    >
                        ${(0,A.g)((e=>e.showSuggests&&e.suggestedLocations&&e.suggestedLocations.length>0),$.d`${(0,L.rx)((e=>e.suggestedLocations),_,{positioning:!0})}`)}
                        ${(0,A.g)((e=>e.suggestedLocations&&0===e.suggestedLocations.length),$.d`<li
                                role="option"
                                title="${e=>e.searchNoResultText}"
                                class="suggest-item"
                                part="suggest-item"
                            >
                                ${e=>e.searchNoResultText}
                            </li>`)}
                    </ul>
                `)}
        </div>
        <div class="action-button">
            <fluent-button
                class="save-button"
                part="save-button"
                appearance="accent"
                @click="${e=>e.saveSetting()}"
                :disabled=${e=>!e.changeSignal}
                data-t="${e=>e.saveTelemetryTag}"
                >${e=>e.saveButtonText}</fluent-button
            >
            <fluent-button
                class="cancel-button"
                part="cancel-button"
                appearance="outline"
                @click="${e=>e.cancelSetting()}"
                data-t="${e=>e.cancelTelemetryTag}"
                >${e=>e.cancelButtonText}</fluent-button
            >
        </div>
    </div>
`,styles:(e,t)=>k.i`
        ${(0,T.j)("flex")} :host {
            position: relative;
            width: auto;
            height: 100%;
            box-sizing: border-box;
            font-family: ${w.SVJ};
            flex-direction: column;
            outline: none;
        }

        .container {
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border-radius: ${w.rSr};
            height: 100%;
        }

        :host([layout="half"]) .container {
            padding: 4px 12px;
        }

        :host([layout="full"]) .container {
            padding: 16px 16px;
        }

        :host([layout="tall"]) .container {
            padding: 60px 15px;
        }

        .edit-header {
            font-size: ${w.cSu};
            line-height: ${w.RUt};
            display: flex;
            align-items: center;
            color: ${w.CHi};
            font-weight: 500;
        }

        :host([layout="full"]) .edit-header {
            margin-inline-start: 90px;
        }

        .location-label {
            font-size: ${w.cSu};
            line-height: ${w.RUt};
            margin-bottom: 10px;
        }

        :host([is-widget]) .location-icon {
            transform: scaleX(-1);
        }

        .location-icon {
            fill: ${w.CHi};
            margin: 6px;
        }

        .location-input {
            height: 30px;
            margin-bottom: 2px;
            flex: 1 0 0px;
            background: transparent;
            width: 250px;
            border: none;
        }

        .location-input::part(start) {
            margin-inline-start: 0px;
        }

        .location-input::part(end) {
            margin-inline-end: 0px;
        }

        .location-input::part(root) {
            background: none;
            border-color: ${w.wFS};
        }

        .location-input::part(control) {
            padding-inline-end: 0px;
            text-overflow: ellipsis;
        }

        .suggest-list-container {
            position: absolute;
        }

        :host([layout="half"]) .suggest-list {
            top: 97px;
            width: 274px;
        }

        :host([layout="full"]) .suggest-list,
        :host([layout="tall"]) .suggest-list {
            top: 110px;
        }

        :host([layout="full"]):host([is-widget]) .suggest-list {
            top: 180px;
        }

        .suggest-list {
            display: block;
            position: absolute;
            list-style: none;
            background: ${w.jql};
            border: calc(${w.Han} * 1px) solid ${w.akT};
            border-radius: ${w.UWU};
            margin: 0;
            padding: 0;
            z-index: 99;
            outline: none;
            width: 266px;
        }

        .suggest-item {
            text-overflow: ellipsis;
            word-wrap: break-word;
            font-size: ${w.sNp};
            line-height: ${w.vgC};
            position: relative;
            width: 100%;
        }

        .suggest-item::part(control) {
            justify-content: flex-start;
        }

        .suggest-item-text {
            overflow: hidden;
            width: 240px;
            text-overflow: ellipsis;
            text-align: left;
        }

        .save-button,
        .cancel-button {
            min-width: 131px;
            font-size: ${w.sNp};
            line-height: ${w.vgC};
            align-self: center;
            border-radius: 20px;
        }

        :host([layout="tall"]) .auto-suggest,
        :host([layout="full"]) .auto-suggest {
            width: 240px;
            position: relative;
        }

        .auto-detect {
            position: relative;
            top: 60px;
        }

        .user-option {
            overflow: hidden;
            text-overflow: ellipsis;
            width: 225px;
            white-space: nowrap;
            font-family: ${w.CHi};
            font-size: ${w.cSu};
            line-height: ${w.RUt};
        }

        fluent-radio {
            margin: 8px 0 0;
        }

        .traffic-icon {
            margin-right: 5px;
            position: relative;
            top: 3px;
        }

        .location-options {
            margin: 4px 0;
        }

        .action-button {
            width: 275px;
        }

        :host([layout="tall"]) .action-button {
            position: relative;
            bottom: -45px;
        }

        :host([layout="full"]):host([is-widget]) .edit-location-region {
            padding: 44px 0;
        }
    `.withBehaviors((0,S.vF)(k.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}),H="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAtCmK3.img?w=58&h=58&q=90&m=6&f=jpg&u=t";var I=i(53076),E=i(68364),B=i(26415),R=i(6371);const U={comics:"cg-mrs-d-entertainmentcomics",mostReacted:"cg-tr-d",mostRead:"cg-mr-d",mostCommented:"cg-tc-d",mostWatched:"cg-mrs-d-video",nextDoor:"localnewsfeed",userInterestTopic:"uit-list"};const j="ContentGroup",N="LocalNewsFeed",G="nextdoor";var Z=i(38156),z=i(60483);const W="header",V="footer",q=(e,t)=>{const{id:i,isLocalContent:o,title:n,type:r,url:a}=e,s=a?a.split("/"):void 0,l=s&&s.length>4?s[4]:void 0,d={id:i,isLocal:!!o,headline:n,vertical:l,category:l,type:(0,R.b)(r)};return t.addOrUpdateChild(Object.assign(Object.assign({},t.contract),{name:"destination",type:Z.c9.Headline,behavior:Z.wu.Navigate,content:d}))},J=e=>{let t="ContentGroupCard";switch(e){case U.mostReacted:t="MostReactions";break;case U.mostCommented:t="MostComments";break;case U.mostRead:t="MostRead";break;case U.mostWatched:t="MostWatched";break;case U.comics:t="TodaysComics";break;case U.userInterestTopic:t="FRETopicCard";break;case U.nextDoor:t="NextDoor"}return t};var K=i(53813),Y=i(47224),Q=i(16517),X=i(23401),ee=i(9375),te=i(86758),ie=i(80618),oe='<svg width="60" height="24" viewBox="0 0 60 24" fill="none"><mask id="path-1-inside-1_604_40176" fill="#fff"><path fill-rule="evenodd" clip-rule="evenodd" d="M23.33 17.95c.73.6 1.48 1.17 2.22 1.74 1.4 1.08 2.79 2.16 4.09 3.38.22.22.41.25.64.03l.48-.48c.23-.24.46-.49.73-.7l.56-.45c.26-.22.53-.45.81-.66l1.47-1.1a63.4 63.4 0 0 0 3.7-2.96c1.83-1.62 3.4-3.58 3.84-6.03A7.28 7.28 0 0 0 40.3 4.7a6.55 6.55 0 0 0-5.2-2.4 6.58 6.58 0 0 0-5.05 2.85c-.14-.14-.27-.3-.4-.47-.16-.2-.33-.4-.52-.58a9.2 9.2 0 0 0-1.25-.95 6.14 6.14 0 0 0-3.13-.89c-1.92.06-3.7.9-4.95 2.33-.07.26-.16.51-.25.76v.01c-.32.8-.7 1.56-1.14 2.28l-.04.06-.03.04c-.07.1-.13.2-.2.28l-.02.15c.36.07.72.15 1.09.25 1.1.3 2.13.71 2.91 1.33a3.56 3.56 0 0 1 1.3 3.94c.33.64.48 1.34.45 2.04a2.92 2.92 0 0 1-.58 1.67c.02.19.04.37.04.56Zm-1.7-1.47-.32-.3c-1.54-1.46-2.81-3.27-3.2-5.4l-.09-.75c.23.05.47.1.7.17 2.01.54 3 1.32 3 2.37a2.32 2.32 0 0 1-.18.9c-.12.3-.27.42-.42.42l.45.33a2.12 2.12 0 0 1 .45 1.44c0 .3-.15.61-.4.82Z"/></mask><g filter="url(#filter0_i_604_40176)"><path fill-rule="evenodd" clip-rule="evenodd" d="M23.33 17.95c.73.6 1.48 1.17 2.22 1.74 1.4 1.08 2.79 2.16 4.09 3.38.22.22.41.25.64.03l.48-.48c.23-.24.46-.49.73-.7l.56-.45c.26-.22.53-.45.81-.66l1.47-1.1a63.4 63.4 0 0 0 3.7-2.96c1.83-1.62 3.4-3.58 3.84-6.03A7.28 7.28 0 0 0 40.3 4.7a6.55 6.55 0 0 0-5.2-2.4 6.58 6.58 0 0 0-5.05 2.85c-.14-.14-.27-.3-.4-.47-.16-.2-.33-.4-.52-.58a9.2 9.2 0 0 0-1.25-.95 6.14 6.14 0 0 0-3.13-.89c-1.92.06-3.7.9-4.95 2.33-.07.26-.16.51-.25.76v.01c-.32.8-.7 1.56-1.14 2.28l-.04.06-.03.04c-.07.1-.13.2-.2.28l-.02.15c.36.07.72.15 1.09.25 1.1.3 2.13.71 2.91 1.33a3.56 3.56 0 0 1 1.3 3.94c.33.64.48 1.34.45 2.04a2.92 2.92 0 0 1-.58 1.67c.02.19.04.37.04.56Zm-1.7-1.47-.32-.3c-1.54-1.46-2.81-3.27-3.2-5.4l-.09-.75c.23.05.47.1.7.17 2.01.54 3 1.32 3 2.37a2.32 2.32 0 0 1-.18.9c-.12.3-.27.42-.42.42l.45.33a2.12 2.12 0 0 1 .45 1.44c0 .3-.15.61-.4.82Z" fill="url(#paint0_radial_604_40176)"/></g><path d="M23.33 17.95h-.75v.35l.28.22.47-.57Zm2.22 1.74.46-.59-.46.6Zm4.09 3.38.53-.53-.01-.01h-.01l-.51.54Zm.64.03-.5-.55h-.02v.02l.52.53Zm.48-.48.53.52-.53-.52Zm.73-.7.46.6-.46-.6Zm.56-.45.48.57-.48-.57Zm.81-.66.44.6h.02l-.46-.6Zm1.47-1.1.44.59-.45-.6Zm3.7-2.96.5.56-.5-.56Zm3.84-6.03-.73-.14.73.14ZM40.3 4.7l.58-.47-.02-.02-.56.5Zm-5.2-2.4-.04-.75.04.74Zm-5.05 2.85-.52.53.63.63.51-.74-.62-.42Zm-.4-.47-.58.47.58-.47Zm-.52-.58-.5.55.5-.55Zm-1.25-.95.4-.63-.01-.01-.39.64Zm-3.13-.89V1.5h-.02l.02.75ZM19.8 4.58l-.56-.49-.12.13-.04.17.72.2Zm-.25.76.7.26-.7-.26Zm0 0 .7.28-.7-.27Zm0 .01.69.28-.7-.28ZM18.4 7.63l.63.4-.63-.4Zm-.04.06.61.43.01-.02.02-.02-.64-.4Zm-.03.04-.6-.43.6.43Zm-.2.28-.61-.41-.09.12-.03.15.73.14Zm-.02.15-.74-.13-.12.72.71.14.15-.73Zm1.09.25-.2.72.2-.72Zm2.91 1.33.46-.58-.46.58Zm1.3 3.94-.72-.2-.08.29.14.26.66-.35Zm.45 2.04-.74-.04v.02l.74.02Zm-.58 1.67-.6-.44-.18.25.04.3.74-.1Zm-1.98-1.2-.52.53.52-.54Zm.32.3-.5.54.49.46.5-.45-.5-.56Zm-3.52-5.7-.73.12.73-.12Zm-.09-.76.16-.73-.97-.21.07 1 .74-.06Zm.7.17-.2.72.2-.72Zm2.92 2.99.72.2-.72-.2Zm-.1.28-.69-.28.7.28Zm-.42.42v-.75h-2.28l1.84 1.35.44-.6Zm.45.33.59-.46-.06-.08-.09-.06-.44.6Zm.46 1.33h-.75.75Zm0 .1-.75-.03v.04h.74Zm.83 2.87c.74.6 1.49 1.19 2.23 1.76l.92-1.18a105.5 105.5 0 0 1-2.21-1.73l-.94 1.15Zm2.23 1.76a56.09 56.09 0 0 1 4.04 3.33l1.02-1.09c-1.33-1.24-2.75-2.34-4.14-3.42l-.92 1.18Zm4.02 3.32c.16.15.42.36.8.4.4.02.7-.18.9-.37l-1.06-1.06.05-.03a.44.44 0 0 1 .38.01l-.01-.01-1.06 1.06Zm1.67.05c.19-.17.36-.35.51-.51l-1.07-1.03-.45.44 1.01 1.1Zm.51-.51c.24-.25.44-.46.66-.63l-.92-1.17c-.31.24-.58.53-.81.77l1.07 1.03Zm.66-.63.58-.47-.96-1.14-.54.44.92 1.17Zm.58-.47c.27-.23.52-.44.77-.62l-.87-1.2c-.31.21-.6.46-.86.68l.96 1.14Zm.8-.64 1.44-1.1-.9-1.2-1.46 1.12.91 1.18Zm1.44-1.1c1.26-.95 2.54-1.92 3.76-2.99l-.99-1.12a62.75 62.75 0 0 1-3.66 2.92l.9 1.19Zm3.76-3c1.88-1.66 3.58-3.76 4.07-6.44l-1.46-.27c-.4 2.2-1.83 4.03-3.6 5.6l1 1.12Zm4.07-6.43a8.03 8.03 0 0 0-1.72-6.65l-1.15.95a6.54 6.54 0 0 1 1.4 5.41l1.47.29ZM40.86 4.2a7.3 7.3 0 0 0-5.8-2.66l.07 1.49a5.8 5.8 0 0 1 4.61 2.16l1.12-.99Zm-5.8-2.66a7.33 7.33 0 0 0-5.62 3.18l1.23.84a5.84 5.84 0 0 1 4.48-2.53l-.1-1.5ZM30.57 4.6l-.35-.4-1.16.93c.13.16.28.35.46.53l1.05-1.06Zm-.35-.4c-.16-.2-.36-.45-.6-.67l-1 1.1c.14.13.27.29.44.5l1.16-.94Zm-.6-.67A9.94 9.94 0 0 0 28.3 2.5l-.8 1.26c.4.26.79.55 1.14.87l1-1.1ZM28.27 2.5a6.89 6.89 0 0 0-3.52-1V3c.95 0 1.9.27 2.75.78l.77-1.28Zm-3.54-1c-2.13.07-4.11 1.01-5.5 2.6l1.13.97A6.1 6.1 0 0 1 24.78 3l-.05-1.5ZM19.08 4.4c-.06.23-.14.46-.23.68l1.4.53c.1-.26.19-.54.27-.82l-1.44-.4Zm-.23.68v.01l1.4.53-1.4-.54Zm0 0v.01l1.39.55v-.01l-1.39-.55Zm0 .01c-.3.75-.65 1.47-1.08 2.16l1.27.79c.47-.77.87-1.57 1.2-2.4l-1.39-.55Zm-1.08 2.16-.03.05 1.27.79.03-.05-1.27-.79Zm0 .01-.04.05 1.21.87.04-.05-1.21-.87Zm-.04.05-.2.3 1.23.83.18-.26-1.2-.87Zm-.32.57a8 8 0 0 0-.03.16l1.47.26c0-.05.02-.09.03-.13l-1.47-.3Zm.56 1.02c.35.07.7.15 1.04.24l.4-1.44c-.39-.1-.77-.19-1.15-.26l-.29 1.46Zm1.04.24c1.07.29 1.98.67 2.65 1.2l.92-1.17a8.83 8.83 0 0 0-3.18-1.47L19 9.13Zm2.65 1.2c.7.55 1.17 1.3 1.17 2.24h1.49a4.3 4.3 0 0 0-1.74-3.41l-.92 1.17Zm1.17 2.24c0 .31-.05.62-.13.91l1.44.4c.11-.42.18-.86.18-1.31h-1.5Zm-.07 1.46c.27.51.4 1.09.37 1.66l1.49.06a4.72 4.72 0 0 0-.54-2.42l-1.32.7Zm.37 1.67c-.01.47-.18.9-.44 1.25l1.2.89c.42-.57.71-1.3.73-2.1l-1.5-.04Zm-.58 1.8.03.45h1.5c0-.22-.02-.44-.05-.66l-1.48.21Zm-1.76-.78.34.31 1-1.1-.31-.3-1.03 1.1Zm-3.41-5.8c.42 2.34 1.82 4.28 3.41 5.8l1.03-1.08c-1.47-1.4-2.63-3.07-2.97-4.99l-1.47.27Zm-.1-.84c.02.28.05.56.1.83l1.47-.25a6.95 6.95 0 0 1-.09-.69l-1.48.11Zm1.64-.6-.74-.18-.32 1.46c.22.04.45.1.67.16l.39-1.44Zm3.55 3.09c0-.8-.4-1.46-1.03-1.96a7.04 7.04 0 0 0-2.52-1.13l-.4 1.44c.97.26 1.61.56 2 .86.35.28.46.54.46.79h1.49Zm-.11.81c.07-.26.1-.54.1-.81h-1.48c0 .14-.02.28-.06.42l1.44.4Zm-.13.37c.05-.12.1-.24.13-.37l-1.44-.4-.07.21 1.38.56Zm-1.1.89c.62 0 .95-.51 1.1-.9l-1.38-.55c-.04.1-.05.1-.02.06a.38.38 0 0 1 .1-.07.46.46 0 0 1 .2-.04v1.5Zm.88-1.02-.45-.33-.88 1.2.45.33.88-1.2Zm.76 1.93c0-.64-.2-1.27-.61-1.8l-1.17.93c.2.25.3.55.29.86l1.5.01Zm0 .15v-.15h-1.49v.07l1.49.08Zm-.65 1.34c.38-.33.65-.83.65-1.38h-1.5a.4.4 0 0 1-.13.26l.98 1.12Z" fill="url(#paint1_linear_604_40176)" mask="url(#path-1-inside-1_604_40176)"/><path d="m1.62 13.98.3-1.02h4.5c.48-.75 1.05-1.56 1.65-2.4a19.94 19.94 0 0 1 2.55-3.15 99.58 99.58 0 0 0 2.55-2.04c1.35-1.2 2.1-2.1 2.25-2.73.06-.51.27-1.02.6-1.44.15-.18.36-.3.6-.3.4 0 .78.27 1.14.78.54.72.54 1.74.06 3-.27.69-.6 1.35-.99 1.98-.3.42-.57.84-.8 1.29a3.01 3.01 0 0 0-.3 1.77c1.01.06 2 .2 3 .48 2 .54 3 1.32 3 2.37 0 .3-.07.6-.19.9-.12.3-.27.42-.42.42l.45.33c.33.42.48.93.45 1.44 0 .33-.18.66-.45.87-.15.12-.3.2-.45.3l.24.45c.15.42.15.87.03 1.29-.09.33-.27.63-.54.84-.18.18-.42.3-.66.36v1.1c-.09.82-.39 1.33-.9 1.57-1.08.54-1.68.8-1.8.87-.84.24-2.04.3-3.6.18a39.9 39.9 0 0 1-7.2-1.35H2.2c-.18-.45-.33-.9-.42-1.38-.3-1.02-.45-2.1-.48-3.15.03-1.2.12-2.43.33-3.63Z" fill="url(#paint2_radial_604_40176)" stroke="url(#paint3_linear_604_40176)" stroke-width=".74"/><path d="M14.67 14.4c.39.1.63.66.66 1.74.03.93-.03 1.83-.24 2.73a8.67 8.67 0 0 0 0 2.16c.03.66-.12.96-.45.9-.48-.12-1-.57-1.5-1.4-.54-.88-.75-1.66-.6-2.38.18-.87.45-1.7.84-2.52.48-.87.9-1.29 1.29-1.23Z" fill="url(#paint4_linear_604_40176)"/><path d="M15.51 13.26c.24-.39.09.03-.45 1.32a3.4 3.4 0 0 1-2.73 2.25 6.08 6.08 0 0 1-2.97 0c1.77-.33 3.03-.99 3.81-1.98a5.19 5.19 0 0 0 1.26-2.97c.48 1.32.84 1.77 1.08 1.38Z" fill="url(#paint5_linear_604_40176)"/><path d="M16.5 13.35c.18.27.45.48.75.63-.75.57-1.02 1.26-.8 2.07.08.39.26.72.53 1.02-.8.6-1.14 1.26-.96 1.95.1.33.24.63.51.87-.45.42-.66 1.08-.66 2.01 0 .42.03.84.15 1.23a2.14 2.14 0 0 1-1.44-1.89l.06-1.32a2.26 2.26 0 0 1-.36-2.04l.45-.93c-.54-.39-.72-1.02-.54-1.86l.42-1.11c-.2-.66.12-1.23.96-1.68.42-.24.84-.42 1.3-.54-.6.54-.73 1.08-.37 1.59Z" fill="url(#paint6_linear_604_40176)"/><path d="M20.13 19.77h-5.4Z" fill="#000"/><path d="M20.13 19.77h-5.4" stroke="#A76E19" stroke-width=".61" stroke-linecap="round" style="mix-blend-mode:darken"/><path d="M21.06 16.83h-6.3Z" fill="#000"/><path d="M21.06 16.83h-6.3" stroke="#A76E19" stroke-width=".61" stroke-linecap="round" style="mix-blend-mode:darken"/><path d="M21.06 13.8h-6.3Z" fill="#000"/><path d="M21.06 13.8h-6.3" stroke="#A76E19" stroke-width=".61" stroke-linecap="round" style="mix-blend-mode:darken"/><g clip-path="url(#clip0_604_40176)"><path fill-rule="evenodd" clip-rule="evenodd" d="M56.15 3.85a10.97 10.97 0 0 1 3.4 8.15c.06 3.09-1.18 6.03-3.4 8.17A11.05 11.05 0 0 1 48 23.55a11.17 11.17 0 0 1-8.17-3.38 11.19 11.19 0 0 1-1.47-1.75l.66-.55v-.01c1.93-1.71 3.77-3.95 4.3-6.86.5-2.58-.2-5.2-1.87-7.25l-.02-.02-.01-.02a9.75 9.75 0 0 0-.69-.7C42.76 1.3 45.33.39 48 .44a10.97 10.97 0 0 1 8.15 3.41Z" fill="url(#paint7_linear_604_40176)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M56.15 3.85a10.97 10.97 0 0 1 3.4 8.15c.06 3.09-1.18 6.03-3.4 8.17A11.05 11.05 0 0 1 48 23.55a11.17 11.17 0 0 1-8.17-3.38 11.19 11.19 0 0 1-1.47-1.75l.66-.55v-.01c1.93-1.71 3.77-3.95 4.3-6.86.5-2.58-.2-5.2-1.87-7.25l-.02-.02-.01-.02a9.75 9.75 0 0 0-.69-.7C42.76 1.3 45.33.39 48 .44a10.97 10.97 0 0 1 8.15 3.41Z" fill="url(#paint8_radial_604_40176)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M56.46 3.54C54.26 1.24 51.18-.06 48 0c-2.8-.05-5.5.93-7.6 2.71l.65.61A10.57 10.57 0 0 1 48 .9H48c2.95-.05 5.8 1.14 7.82 3.27h.01l.01.02a10.53 10.53 0 0 1 3.27 7.81V12a10.6 10.6 0 0 1-3.27 7.85v.01h-.02a10.61 10.61 0 0 1-7.81 3.25H48c-2.95.05-5.8-1.14-7.86-3.25-.54-.53-1.02-1.1-1.44-1.72l-.68.57c.43.64.93 1.23 1.5 1.78a11.61 11.61 0 0 0 8.48 3.5 11.5 11.5 0 0 0 8.46-3.5c2.3-2.22 3.6-5.28 3.54-8.49a11.42 11.42 0 0 0-3.54-8.46Z" fill="url(#paint9_linear_604_40176)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M45.84 14.77c.34.13.5.51.37.85l-.22.55a9.44 9.44 0 0 0-.32 1.67c-.15 1.61.02 2.69.4 3.34.34.58.9.9 1.84.9.97 0 1.57-.3 1.93-.82.4-.56.62-1.5.54-2.92a10.2 10.2 0 0 0-.32-1.8c-.18-.52-.27-.88-.3-1a.65.65 0 1 1 1.27-.32c.03.1.1.44.27.93l.01.02v.02c.19.67.31 1.34.37 2.05v.02c.1 1.54-.12 2.83-.76 3.75-.68.96-1.73 1.39-3.01 1.39-1.3 0-2.35-.5-2.97-1.57-.59-1-.73-2.41-.57-4.12m1.47-2.94a.65.65 0 0 0-.85.36Zm-.85.36-.23.58Zm-.23.58-.01.03Zm-.01.03-.01.03Zm-.01.03c-.18.65-.3 1.3-.37 1.94Z" fill="#FEE154" fill-opacity=".7"/><path d="M48 13.87c-.58 0-1.16.18-1.6.52-.42.35-.8.78-1.03 1.3l-.26.58c-.4 1.1-.4 2.28 0 3.35.58 1.53 1.53 2.28 2.89 2.31 1.36-.03 2.3-.8 2.86-2.3a5.35 5.35 0 0 0-.18-3.9 3.77 3.77 0 0 0-1.1-1.34 2.56 2.56 0 0 0-1.58-.52Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M46.8 14.9c-.36.29-.66.64-.83 1.03l-.01.03-.02.03c-.1.19-.16.3-.2.44v.02l-.02.02a4.2 4.2 0 0 0 0 2.93c.26.67.59 1.13.95 1.42.36.29.79.45 1.33.46.55-.01.98-.17 1.32-.45.36-.28.67-.74.92-1.42a4.7 4.7 0 0 0-.15-3.4c-.21-.43-.52-.81-.9-1.09a1.96 1.96 0 0 0-1.2-.39c-.43 0-.84.13-1.19.36Zm-.76-1.07a3.45 3.45 0 0 1 3.94.04c.55.42.99.96 1.3 1.56v.03a6 6 0 0 1 .2 4.38c-.3.85-.74 1.54-1.34 2.01-.6.49-1.32.72-2.13.74h-.03a3.43 3.43 0 0 1-2.13-.75 4.6 4.6 0 0 1-1.35-1.98 5.51 5.51 0 0 1 .29-4.49c.28-.62.73-1.12 1.21-1.51l.02-.02.02-.01Z" fill="url(#paint10_linear_604_40176)"/><path d="M53.57 4.11a4.4 4.4 0 0 0-3.26-1.35 4.32 4.32 0 0 0-3.27 1.35 4.52 4.52 0 0 0-1.35 3.27 4.4 4.4 0 0 0 1.35 3.26A4.4 4.4 0 0 0 50.31 12c1.24.03 2.4-.46 3.26-1.36a4.32 4.32 0 0 0 1.36-3.26 4.32 4.32 0 0 0-1.36-3.27Z" fill="url(#paint11_linear_604_40176)"/><path fill-rule="evenodd" clip-rule="evenodd" d="m43.26 11.32.06-.32a8.72 8.72 0 0 0-1.29-6.45c.12-.15.25-.3.4-.44a4.32 4.32 0 0 1 3.26-1.35 4.4 4.4 0 0 1 3.26 1.35c.9.84 1.39 2.03 1.36 3.27a4.32 4.32 0 0 1-1.36 3.26A4.36 4.36 0 0 1 45.7 12c-.86.02-1.7-.22-2.43-.68Z" fill="url(#paint12_linear_604_40176)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M43.45 10.05a8.69 8.69 0 0 0-.8-4.38c.16-.27.35-.53.58-.75a3.27 3.27 0 0 1 2.46-1c.92 0 1.82.34 2.45 1a3.38 3.38 0 0 1 1.01 2.46c.03.92-.34 1.82-1 2.45a3.38 3.38 0 0 1-2.46 1.02 3.26 3.26 0 0 1-2.23-.8Z" fill="#fff"/><path d="M47.85 4.92a3.38 3.38 0 0 0-1 2.46c-.04.92.34 1.82 1 2.45a3.27 3.27 0 0 0 2.46 1.02c.92 0 1.82-.35 2.45-1.02a3.27 3.27 0 0 0 1.01-2.45c0-.92-.34-1.82-1-2.46a3.38 3.38 0 0 0-2.46-1 3.27 3.27 0 0 0-2.46 1Z" fill="#fff"/><path d="M44.65 6.37c-.26.26-.4.63-.4 1 0 .79.6 1.45 1.38 1.45h.06c.37 0 .75-.14 1.04-.4.29-.26.43-.64.4-1.04 0-.38-.14-.75-.4-1.01a1.37 1.37 0 0 0-1.04-.44c-.38 0-.75.15-1.04.44ZM49.27 6.37c-.26.26-.4.63-.4 1 0 .79.6 1.45 1.38 1.45h.06c.37 0 .75-.14 1.04-.4.29-.26.43-.64.4-1.04 0-.38-.14-.75-.4-1.01a1.37 1.37 0 0 0-1.04-.44c-.38 0-.75.15-1.04.44Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M44.88.76c.64-.1 1.3-.1 1.93 0a.56.56 0 1 1-.17 1.1 5.44 5.44 0 0 0-1.6 0 4.5 4.5 0 0 0-2.83 1.55.56.56 0 1 1-.85-.73A5.62 5.62 0 0 1 44.88.76ZM50.92 1.87a5.44 5.44 0 0 0-1.6 0 .56.56 0 1 1-.16-1.11c.63-.1 1.3-.1 1.92 0 1.38.19 2.63.86 3.53 1.92a.56.56 0 0 1-.86.73 4.5 4.5 0 0 0-2.83-1.54Z" fill="#976537"/></g><defs><linearGradient id="paint1_linear_604_40176" x1="30" y1="2.25" x2="30" y2="23.25" gradientUnits="userSpaceOnUse"><stop stop-color="#EE4C3E"/><stop offset="1" stop-color="#D02416"/></linearGradient><linearGradient id="paint3_linear_604_40176" x1="3" y1="13.29" x2="9.43" y2="19.29" gradientUnits="userSpaceOnUse"><stop stop-color="#FEC635"/><stop offset="1" stop-color="#B0640C"/></linearGradient><linearGradient id="paint4_linear_604_40176" x1="11.89" y1="18.46" x2="16.28" y2="18.39" gradientUnits="userSpaceOnUse"><stop stop-color="#B8895A" stop-opacity=".2"/><stop offset="1" stop-color="#B57E4A"/></linearGradient><linearGradient id="paint5_linear_604_40176" x1="8.45" y1="16.17" x2="12.56" y2="13.98" gradientUnits="userSpaceOnUse"><stop stop-color="#F0C194" stop-opacity=".4"/><stop offset="1" stop-color="#CBA37C" stop-opacity=".5"/></linearGradient><linearGradient id="paint6_linear_604_40176" x1="15.69" y1="12" x2="15.69" y2="23.13" gradientUnits="userSpaceOnUse"><stop stop-color="#FFD35F"/><stop offset=".33" stop-color="#FDCE4C"/><stop offset=".93" stop-color="#FFBD19"/></linearGradient><linearGradient id="paint7_linear_604_40176" x1="48" y1=".44" x2="48" y2="30.98" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF87"/><stop offset=".37" stop-color="#FEC635"/><stop offset="1" stop-color="#FFB400"/></linearGradient><linearGradient id="paint9_linear_604_40176" x1="48" y1=".44" x2="48" y2="23.56" gradientUnits="userSpaceOnUse"><stop stop-color="#FEC635"/><stop offset="1" stop-color="#B0640C"/></linearGradient><linearGradient id="paint10_linear_604_40176" x1="47.99" y1="23.68" x2="47.99" y2="13.73" gradientUnits="userSpaceOnUse"><stop stop-color="#8D503D"/><stop offset="1" stop-color="#32150C"/></linearGradient><linearGradient id="paint11_linear_604_40176" x1="50.31" y1="2.66" x2="50.31" y2="11.9" gradientUnits="userSpaceOnUse"><stop stop-color="#FFB400"/><stop offset="1" stop-color="#FDCD4D"/></linearGradient><linearGradient id="paint12_linear_604_40176" x1="45.69" y1="2.66" x2="45.69" y2="11.9" gradientUnits="userSpaceOnUse"><stop stop-color="#FFB400"/><stop offset="1" stop-color="#FDCD4D"/></linearGradient><radialGradient id="paint0_radial_604_40176" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0 21.4286 -24.4898 0 30 4.29)"><stop stop-color="#FF9991"/><stop offset="1" stop-color="#F03627"/></radialGradient><radialGradient id="paint2_radial_604_40176" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(124.05 6.8 6.35) scale(19.1375 17.5184)"><stop stop-color="#FFDF87"/><stop offset=".88" stop-color="#FEC635"/><stop offset="1" stop-color="#FFB400"/></radialGradient><radialGradient id="paint8_radial_604_40176" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0 16.4418 -16.4418 0 48 7.56)"><stop offset=".65" stop-color="#FEC635" stop-opacity=".06"/><stop offset=".92" stop-color="#DB7E11" stop-opacity=".79"/></radialGradient><clipPath id="clip0_604_40176"><path fill="#fff" transform="translate(38.02)" d="M0 0h21.98v24H0z"/></clipPath><filter id="filter0_i_604_40176" x="18.02" y=".56" width="23.98" height="22.69" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="-1.69"/><feGaussianBlur stdDeviation="1.69"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 0.816667 0 0 0 0 0.186899 0 0 0 0 0.136111 0 0 0 1 0"/><feBlend in2="shape" result="effect1_innerShadow_604_40176"/></filter></defs></svg>',ne=i(53909),re=i(11363),ae=i(27326);const se=(e,t,i,o)=>o&&i===U.nextDoor?e+" "+ce(t):e,le=(e,t)=>{if(e&&t&&t.topicAriaLabelFollowText)return t.topicAriaLabelFollowText.replace("{0}",e)},de=(e,t)=>{if(e&&t&&t.topicAriaLabelUnfollowText)return t.topicAriaLabelUnfollowText.replace("{0}",e)},ce=e=>{const t=e.indexOf("http");return t>=0?e.substring(0,t).trim()+"...":e},ue=(e,t,i)=>{if(e)return t===U.nextDoor?{id:e.id,name:i&&i.nextDoorUsernamePlaceholder,image:ve(e)}:{id:e.id,name:e.name,image:ve(e)}},he=e=>{const t=e.indexOf("?");let i;if(t>=0){i=e.substring(0,t);const o=(0,ee.ku)();return o?`${i}?ocid=${o}`:i}return e},pe=(e,t,i)=>{if(t===U.nextDoor)return;const{localizedStrings:o,minimumCommentsCountToDisplay:n,minimumReactionsCountToDisplay:r}=i,a=t===U.nextDoor?2:i.numberOfContentsPerPage,{cardContent:{destinationUrl:s},metadata:{commentSummary:l,reactionSummary:d}}=e;let c,u,h;(0,ee.ku)();if(t===U.mostCommented){const e=l.totalCount;if(!e||e<n)return;c=ge(e);const t=1===a;t&&(c=o?o.footerTextComments&&o.footerTextComments.replace("{0}",c):void 0),u=s?`${he(s)}#comments`:"javascript:void(0);",h=t?te.Z:ie.Z}else{if(t!==U.mostReacted)return;{const e=d.totalCount;if(!e||e<r)return;c=ge(e),h=oe}}return{socialMediaText:c,socialMediaLink:u,socialMediaIcon:h}},ge=e=>e>=1e3?`${(e/1e3).toPrecision(2)}k`:e.toString(),me=(e,t,i)=>{if(!e)return;const o=t||Q.jG.CurrentMarket,n=new Date(e);return(0,re.fh)(n,o,i,1)},fe=(e,t,i,o)=>{if(!e||!e.length||!e[0])return;let n,r,a;switch(i){case 0:r=64,a=64;break;case 1:r=268,a=146;break;default:r=76,a=76}const{url:s,caption:l}=e[0];if(s){n={src:(0,ne.mL)(s,{width:r,height:a,enableDpiScaling:!1}),alt:l||t}}return n},ve=e=>{let t;return e&&e.logoUrl&&(t={src:(0,ne.mL)(e.logoUrl,{width:16,height:16,enableDpiScaling:!1,quality:100}),alt:e.name?e.name:""}),t};var be=i(67154),ye=i(82739),xe=i(44645),Ce=i(29422),we=i(95557),Te=i(65135),Se=i(9610),ke=i(63535),$e=i(67267),Oe=i(87298),Ae=i(58155);var Le=i(39935),Me=i(33832),Fe=i(82423),_e=i(19388);class De extends Se.l{constructor(){super(...arguments),this.contents=[],this.currentPageIndex=0,this.isActionMenuOpen=!1,this.showSettings=!1,this.showEditLocationButton=!1,this.onEditLocationClose=e=>{this.showSettings=!1,e&&(this.locationTitle=Ce.getAutoSuggestionName(e),this.updateHeader(),e.latitude&&e.longitude&&this.fetchNextdoorData(e.latitude,e.longitude))},this.getCardFeedUrl=()=>{const e=Q.jG.CurrentMarket,t=e===X.I.ZHCN?"cn":"com",i=(0,ee.ku)(),o=i?`?ocid=${i}`:"";let n;switch(this.contentType){case U.mostRead:n=`https://www.msn.${t}/${e}/feed${o}`;break;case U.mostWatched:n=`https://www.msn.${t}/${e}/video${o}`;break;case U.comics:n=`https://www.msn.${t}/${e}/entertainment/comics${o}`}return n},this.followTopic=(e,t,i)=>(0,v.mG)(this,void 0,void 0,(function*(){var o,n;try{return void(i?yield null===(o=this.topicsDataConnector)||void 0===o?void 0:o.unfollowTopic(e,!1):(this.getReplacementCardsCallback&&this.getReplacementCardsCallback(null,[],!1,!0,e),yield null===(n=this.topicsDataConnector)||void 0===n?void 0:n.followTopic(e,t)))}catch(t){return(0,E.H)(B.QE_.FollowTopicError,"Error in UserInterestTopic card (ContentGroup) Follow/Unfollow action",`GroupContentType: ${this.contentType}, Action: ${i?"Unfollow":"Follow"}, TopicId: ${e}, Error: ${JSON.stringify(t)}`),!1}})),this.hideCard=()=>(0,v.mG)(this,void 0,void 0,(function*(){if(this.contentType&&this.hideActionTargetType){const t=(e=this.contentType)===U.nextDoor?G:e;try{return(yield(0,Le.I)().Disable(t,this.hideActionTargetType))&&(this.refreshFeedCallback?this.refreshFeedCallback():this.$emit("refreshSDCardSection")),void this.toggleActionMenu(!1,null)}catch(e){return(0,E.H)(B.QE_.HideCardError,`Error in ContentGroupCard Hide action for ${this.hideActionTargetType}`,`GroupContentType: ${this.contentType}, Error: ${JSON.stringify(e)}`),!1}}var e})),this.moreSettingAction=()=>{this.toggleActionMenu(!1,null),this.goToPersonalizeSettingsCallback&&this.goToPersonalizeSettingsCallback()},this.onOutsideClick=e=>{e.target instanceof De||this.actionsMenuButtonElement&&this.actionsMenuButtonElement.contains(e.path[0])||this.toggleActionMenu(!1,null)},this.onKeydown=e=>{e.keyCode===Me.Lp&&this.toggleActionMenu(!1,null)}}experienceConnected(){var e;const{id:t,feed:i,subCards:o,subItems:n}=this.contentGroupCardMetadata;if(this.setupTmplStampOnVisible(),this.contentType=function(e){const t=e&&e.toLowerCase();if(t&&Object.values(U).includes(t))return t}(t),!this.contentType)return void(0,E.H)(B.QE_.InvalidContentType,"Service context returned an invalid content type",`ContentType received: ${t}`);this.contentType===U.userInterestTopic&&(this.topicsDataConnector=(0,Fe.K0)(I.z.TopicData),this.topicsDataConnector||(0,E.H)(B.QE_.UndefinedTopicDataConnector,"Topic Data Connector is not defined.")),this.hideActionTargetType=this.contentType===U.nextDoor?N:j;const r=this.contentType===U.nextDoor;this.numberOfContentsPerPage=r?2:this.config.numberOfContentsPerPage;const a=r||o&&!n?o:n;if(t&&a){if(r&&this.config.enableInitialFetchNDData){const{latitude:e,longitude:t}=this.contentGroupCardMetadata;this.fetchNextdoorData(e,t)}else this.updateHeader(),this.processContent(a),this.initTelemetry();r&&i&&i.location&&(this.locationTitle=this.getUserLocationTitle(i.location),this.locationSubtitle=this.config.localizedStrings&&this.config.localizedStrings.nextDoorSubtitle,this.showEditLocationButton=null!==(e=this.config.showEditLocationButton)&&void 0!==e&&e,this.updateHeader())}else(0,E.H)(B.QE_.NoContent,"Missing data in Service context response",`GroupContentType: ${this.contentType}`)}initTelemetry(e){if(!this.telemetryContext&&this.contentType&&this.contents){const e=this.cardFooterAttribution?this.cardFooterAttribution.footerLink:void 0;this.telemetryContext=((e,t,i,o,n,r)=>{var a;const s=null===(a=null==o?void 0:o.contract)||void 0===a?void 0:a.ext,l=(i=o?o.addOrUpdateChild(Object.assign(Object.assign({},o.contract),{ext:s,name:J(t)})):new z.D({name:J(t),type:Z.c9.Module})).addOrUpdateChild(Object.assign(Object.assign({},i.contract),{name:"ContentCard",ext:s})),d=n?i.addOrUpdateChild({name:W,behavior:Z.wu.Navigate,content:{headline:W,type:Z.uH.Feed},destinationUrl:n,ext:s}):void 0,c=r?i.addOrUpdateChild({name:V,behavior:Z.wu.Navigate,content:{headline:V,type:Z.uH.Feed},destinationUrl:r,ext:s}):void 0,u=i.addOrUpdateChild({name:"PreviousSlideArrow",action:Z.Aw.Click,behavior:Z.wu.More,content:{headline:"previousSlideArrow"},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),h=i.addOrUpdateChild({name:"NextSlideArrow",action:Z.Aw.Click,behavior:Z.wu.More,content:{headline:"nextSlideArrow"},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),p=i.addOrUpdateChild({name:"ContentCardDetectLocation",action:Z.Aw.Click,behavior:Z.wu.Customize,content:{headline:"locationSettings",type:Z.uH.Settings},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),g=i.addOrUpdateChild({name:"ContentCardSpecityLocation",action:Z.Aw.Click,behavior:Z.wu.Customize,content:{headline:"locationSettings",type:Z.uH.Settings},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),m=i.addOrUpdateChild({name:"SaveLocation",action:Z.Aw.Click,behavior:Z.wu.Save,content:{headline:"locationSettings",type:Z.uH.Settings},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),f=i.addOrUpdateChild({name:"CancelLocation",action:Z.Aw.Click,behavior:Z.wu.Cancel,content:{headline:"locationSettings",type:Z.uH.Settings},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),v=i.addOrUpdateChild({name:"EditLocation",action:Z.Aw.Click,behavior:Z.wu.Customize,content:{headline:"locationSettings",type:Z.uH.Settings},type:Z.c9.ActionButton,ext:s}).getMetadataTag(),b=i.addOrUpdateChild({name:"LocationSettings",ext:s}).getMetadataTag(),y=i.addOrUpdateChild({ext:s,name:"CardActionEllipses",behavior:Z.wu.More,content:{type:Z.uH.StructuredData,headline:"Card action ellipses"}}).getMetadataTag(),x=i.addOrUpdateChild({ext:s,name:"MoreSettings",behavior:Z.wu.Navigate,content:{type:Z.uH.StructuredData,headline:"More settings"}}).getMetadataTag(),C=i.addOrUpdateChild({ext:s,name:"ContentGroupCard_menuHide",behavior:Z.wu.Hide,content:{type:Z.uH.StructuredData,headline:"Hide this card"}}).getMetadataTag(),w=e.map((e=>q(e,l)));return{componentRoot:i,cardActionEllipsesButton:y,contentCardTelemetryObject:l,headerTelemetryObject:d,footerTelemetryObject:c,previousSlideArrow:u,menuMoreSettings:x,menuHide:C,nextSlideArrow:h,contentItemsTelemetry:w,detectLocationRadioButton:p,specifyLocationRadioButton:g,saveLocationButton:m,cancelLocationButton:f,editLocationButton:v,locationSettings:b}})(this.contents,this.contentType,this.telemetryObject,this.parentTelemetryObject,this.cardFeedUrl,e)}e&&this.telemetryContext&&this.telemetryContext.contentCardTelemetryObject&&(this.telemetryContext.contentItemsTelemetry=this.contents.map((e=>q(e,this.telemetryContext.contentCardTelemetryObject)))),this.contents&&this.contents.map(((e,t)=>{var i;e.contentTelemetry=this.telemetryContext.contentItemsTelemetry[t],e.actionFollowTelemetry=(i=e.title,this.telemetryContext.componentRoot.addOrUpdateChild({name:i,behavior:Z.wu.Follow,content:{type:Z.uH.StructuredData,headline:"Follow this topic"}}).getMetadataTag()),e.actionUnfollowTelemetry=((e,t)=>t.addOrUpdateChild({name:e,behavior:Z.wu.Unfollow,content:{type:Z.uH.StructuredData,headline:"Unfollow this topic"}}).getMetadataTag())(e.title,this.telemetryContext.componentRoot)})),this.actionsMenuProps=this.generateActionsMenuProps()}shadowDomPopulated(){(0,_e.v9)(this.getExperienceType())}getUserLocationTitle(e){return"string"==typeof e?e:e&&e.city?e.city.length>20&&e.state?e.city:e.city+", "+e.state:void 0}getExperienceType(){return s.x.contentGroupCard}onArrowClick(e){if(!this.contents||this.contents.length<2)return;const t=this.contents.length,i=this.contentType===U.nextDoor;this.numberOfContentsPerPage=i?2:this.config.numberOfContentsPerPage;const o=e?this.currentPageIndex+this.numberOfContentsPerPage:this.currentPageIndex-this.numberOfContentsPerPage;if(o<0){const e=t%this.numberOfContentsPerPage,i=0===e?this.numberOfContentsPerPage:e;this.currentPageIndex=t-i}else this.currentPageIndex=o>=t?0:o}onEditLocationButtonClick(){this.showSettings=!0}fetchNextdoorData(e,t){var i;e&&t&&function(e,t,i){return(0,v.mG)(this,void 0,void 0,(function*(){const o=Number(t).toFixed(2),n=Number(i).toFixed(2);if(!o||!n)throw new Error(`Invalid latitude ${t} and longitude ${i}`);const r=(0,ke.fU)("msn/feed");r.search=Ae.c.keyValueArrayToQueryString([...Ae.c.getParams(r.search,!0),...$e.$.getOneServiceParamsWithoutAuth("","Peregrine",!1),{key:"$top",value:e.toString()},{key:"wrapodata",value:"false"},{key:"contentType",value:"article,video,slideshow,webcontent,content360,link"},{key:"responseSchema",value:"cardview"},{key:"query",value:"nextdoor"},{key:"queryType",value:"myfeed"},{key:"location",value:`${o}|${n}`}]);const a=yield $e.$.getBaseRequestData("GET"),s=yield(0,Oe.w)((()=>fetch(r.href,Object.assign(Object.assign({},a),{credentials:"include"}))),"ContentGroup.GetNextdoorFeedByLocation");if(!s.ok)throw new Error(`Status Code: ${s.status} Href: ${r.href}`);const l=yield s.json();if(Array.isArray(l&&l.subCards)&&l.subCards.length)return l;throw new Error(`Status Code: ${s.status} Invalid response Href: ${r.href}`)}))}(null!==(i=this.config.maxNumberOfContentsToShow)&&void 0!==i?i:10,e,t).then((e=>{this.processContent(e.subCards),this.initTelemetry(!0)})).catch((i=>{this.errorText=this.getCardErrorDisplayText(),this.initTelemetry(),(0,E.H)(B.QE_.FetchContentByLocationError,"Failed to fetch content by location",`GroupContentType: ${this.contentType}, Location: ${e},${t}, Error: ${i}`)}))}updateHeader(){this.cardHeadingText=this.getCardHeadingText(),this.cardHeadingIcon=this.getHeadlineIcon(),this.cardSubHeadingText=this.getCardSubHeadingText()}processContent(e){const t=e&&e.length;if(!t)return this.errorText=this.getCardErrorDisplayText(),void(0,E.H)(B.QE_.EmptySubcardData,"Service context returned empty subitems in metadata",`GroupContentType: ${this.contentType}`);t<3&&(0,E.H)(B.QE_.InsufficientContent,"One service did not return min number of cards",`GroupContentType: ${this.contentType} / Cards returned: ${t}`),this.errorText=void 0,this.currentPageIndex=0,this.cardFeedUrl=this.getCardFeedUrl(),this.cardFooterAttribution=this.getCardFooterAttribution();const i=e.slice(0,this.config.maxNumberOfContentsToShow).reduce(((e,t)=>{let i;return i=this.contentType===U.nextDoor?((e,t,i)=>{if(!t||!i||!e)return null;const{abstract:o,category:n,commentSummary:r,recoDocMetadata:a,type:s,id:l,images:d,isLocalContent:c,locale:u,provider:h,publishedDateTime:p,title:g,url:m}=e,{localizedStrings:f}=i,v=t===U.nextDoor?2:i.numberOfContentsPerPage;return{abstract:o,category:n,commentSummary:r,contentType:t,type:s,id:l,image:fe(d,g,v,t),isLocalContent:c,locale:u,provider:ue(h,t,f),publishedDateTime:me(p,u,f),recoDocMetadata:a,socialMediaAttribution:pe(e,t,i),title:se(g,o,t,g&&g.length<=i.maxTitleLengthToAppendAbstract),url:m?he(m):void 0}})(t,this.contentType,this.config):((e,t,i)=>{if(!e||!t||!i)return null;if(!e.cardContent||!e.metadata){const t=(0,ae.Xe)(e);e=Object.assign(Object.assign({},e),{cardContent:t.cardContent,metadata:t.metadata})}const{cardContent:o,metadata:n}=e,{abstract:r,type:a,id:s,images:l,isLocalContent:d,locale:c,provider:u,publishedDateTime:h,title:p,destinationUrl:g}=o,{category:m,commentSummary:f}=n,{enablePublishedDate:v,localizedStrings:b}=i,y=t===U.nextDoor?2:i.numberOfContentsPerPage;return{abstract:r,category:m,commentSummary:f,contentType:t,type:a,id:s,image:fe(l,p,y,t),isLocalContent:d,locale:c,provider:ue(u,t,b),publishedDateTime:v?me(h,c,b):void 0,socialMediaAttribution:pe(e,t,i),title:p&&se(p,r,t,p.length<=i.maxTitleLengthToAppendAbstract),topicAriaLabelFollow:t===U.userInterestTopic?le(p,b):void 0,topicAriaLabelUnfollow:t===U.userInterestTopic?de(p,b):void 0,url:g?he(g):void 0}})(t,this.contentType,this.config),i&&e.push(i),e}),[]);this.contents=i}getCardFooterAttribution(){let e,t,i=te.Z;const{localizedStrings:o}=this.config;if(o)switch(this.contentType){case U.mostWatched:e=o.footerTextMoreVideos,t=this.cardFeedUrl;break;case U.comics:e=o.footerTextMoreComics,t=this.cardFeedUrl;break;case U.nextDoor:i='<svg width="92" height="16" viewBox="0 0 92 16" fill="none"><path fill="url(#pattern0)" d="M0 0h91.33v16H0z"/><defs><pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_1707_27366" transform="scale(.0073 .04167)"/></pattern><image id="image0_1707_27366" width="137" height="24" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAAAYCAYAAADOHt4vAAAGB0lEQVRoBe1Z0XEbNxDdElJCSkgHSQnuIO7A7sDqQJ67+NvuQOnA6YD8OFCfUgdhB8y8JR64WCyOPA5pyQo1w8GRt3h4u/t2gTuJ3P4uFoHhUX7n50uS3y4GfAN6GxEYH+WPMcnOft6GZzcvLhaBm0guFsqXB8I2YKt9mOTfS7C6ieQSUXwlGNdK5rVwX0nY/l80rpXMa+H+tNm5f5JfflbyY5LPdrvB9SV8efMiGTfybkzyiZ8hyXsbOIhi3MiHMcnKB3hM8oAAWfu5a9gOk9yPk3wHFs4EuMZv94/yq5+bg1+4gWPv8TJzrGyBB/shyVeu6X1QPtl/77vl89ckf8LfIckTeWNNjc+Cp5sST/id5En57K+/Lokl4sVYgg859WJJX+Ajc61jzl+O9UOO0x3tdRyT3NnADUn+oYEmlY64Rzw7B8BzHUYDk4VRzXOYcJBrY0QgxiRbN2dlbXCdhV49gg5J/tZ7zj+H5ecU37nGMe6aoI189Licb0eISpPp/K7mHokl8LKwK+4Vxr4A76OcIL/O9k6LyHCyGlD+XiQAALhWICrdTD5yvYpIZcUvwXmwgR2CBIAzbbBmEPgtuUT+9fzwwQFGp4POJgj45MfRJ6LHAb/Dn6izAmshnyYnjUiC4vVxkNxmvNOrIPDepv0+yTcGhWPo1CRrTd4k34JOAdwiAuA0jiXZcdvRLc8LeSPvuH5ury1XPwfJMV0U83tb1FyCeY/rK86Cbsb5iJvFyDjNmcrYxz5O8t3iRLH0GD4OOn9M8uwNm+9IbN6/tHr3Fe63gp2tgCBBWyaXxLVa92IpTkKgvI+xt+3MbTN2Pq8je3Yc2nDsFM8WGLTRbtu2b/WDNp1OukWHxD31H+fCfeGUGOT4l2Lp8UGMK5wol4ZzTyTYnsEJePiQfxnhbKeiSbq07zKpdxbYyEfa+C4SLg4R7Nt6LTh3IO5sO+THMeRZ+Cw4YI5OuIgPkkEsO0aB5/2Qt/ONtl4oONiae+i69BNjyCeKJc9nwIq4giPXmR2zUnsd5XNvsncMj5m0dU7ttH1jDww+wfZWqoh4kYPVGqZiOMeOUTXa+/a6PHkcElP8sna4jjoUbRrOwZZM2wiHnTeIT5cPirGKizkjNXySPHP9k8eIqG2xHshXHEjAJkqIJ37keyMSVHKv49lq8Rz5PeLEe35suB0T4EFMWu3E88mdq9rcBWy32IEzsBo+nW6ktkHHZBf0IjklbvSlGhcRcoeya4okByt6X4NDZ7uPVl7FwnUm5WsTgzNF4kV9jGez7hkiyceHSmylI7VnqKYYSxDmLnpEozn+EZMiiaoCv0UYp/7m17I8UbGslh7ewk5Sn5HcE5ddYw7XV67dji0GriMcJtf6iuu5jrRwu3k5kajT7qQ955iqf6aFRtXhA4ezjg+8/R4loSdctGGLryLsiDx6DOe6/l8Bc2IOHrm3xGn4JHma4b5/k8stcJK1wWlepvHeotEGR69nkuerm50EC/p7irWRD54MXnmbvfuTv49gBAfJrT8PZd7dyoiEhpdcfj18j6oRSbTdSnnh3wxMhhmJmc9RVeuHL+wQsANOJDTbdcKzYpJVxQdntvjlWNmKg87WjRd9CMfG6TNFkp33bbv8zwYOGXHYQFYvkqK3lexKwdNVedEWOdd9J8T/pRhfI+wcm1WUDBs3u7bvJrSD74H4GYfmcT5IsNrO4pguAk4BxsuKBKSiFs8g9UZ7uIsqyJ7Ic6VWQkTgIVCbKF5DXL119Xcjktx5KuzZuUEnwbpaLPHLMgrCj81Lx4LjtvAjfBqcVykSOJeFckqwt1YgEEDQaaIKa94L9LYR5dO+KDskyYgEticJJcDDXPuXheJfiB3WPQjs2W5FFgPXwAkS3eJMsrZbEXGCued1EgDZzxxpJNXa4hxCQnZU51DFUUVNskaFw8bO8djqYOdRFC3d8sB1FCTiQ7j5MHgQ7yTryFdN8P5Rv3rZiPmwx8evzXX8GK4LgeQYePved3RYf5hFV8k8yhnEzw/i1LX1c3/4dyTQi+KHkzhzwTnxLYW8BBbieK1Y/gez8pqU7x2HuQAAAABJRU5ErkJggg=="/></defs></svg>';break;default:return}return{footerText:e,footerLink:t,footerIcon:i}}getCardHeadingText(){var e;const{localizedStrings:t}=this.config;if(!t)return;let i;switch(this.contentType){case U.mostReacted:i=t.topReactionsDailyText;break;case U.mostCommented:i=t.topCommentsDailyText;break;case U.mostRead:i=t.topReadDailyText;break;case U.mostWatched:i=t.topWatchedVideosDailyText;break;case U.comics:i=t.comicsCardDailyText;break;case U.userInterestTopic:i=t.userInterestTopicCardText;break;case U.nextDoor:i=null!==(e=this.locationTitle)&&void 0!==e?e:this.config&&this.config.localizedStrings&&this.config.localizedStrings.nextDoorDailyText}return i}getCardSubHeadingText(){const{localizedStrings:e}=this.config;if(!e)return;let t;switch(this.contentType){case U.userInterestTopic:t=e.userInterestTopicSubtitle;break;case U.nextDoor:t=e.nextDoorContentDescription}return t}getCardErrorDisplayText(){let e;if(this.contentType===U.nextDoor)e=this.strings.noPostsForLocation;return e}getTmplString(){let e="";switch(this.contentType){case U.mostReacted:e="mostreactedux";break;case U.mostCommented:e="mostcommentedux";break;case U.mostRead:e="mostreadux";break;case U.mostWatched:e="mostwatchedux";break;case U.comics:e="comicsux";break;case U.userInterestTopic:e="fretopiccardux";break;case U.nextDoor:e="nextdoorux"}return e}getHeadlineIcon(){let e;switch(this.contentType){case U.mostReacted:e=oe;break;case U.mostCommented:e=be.Z;break;case U.mostRead:e=this.config.numberOfContentsPerPage>0?ye.Z:void 0;break;case U.mostWatched:e=xe.Z;break;case U.userInterestTopic:e=we.Z;break;case U.nextDoor:e='<svg id="Layer_1" data-name="Layer 1" viewBox="0 0 130 130"><g id="CIRCLE_BADGE" data-name="CIRCLE BADGE"><circle cx="65" cy="65" r="61.45" transform="rotate(-84.82 65 65)" style="fill:#8ed500"/><path d="M68.19 38.44c-9.22 0-17.08 4.24-21.49 10.72-.37.54-1 1.7-1.83 1.7-4 0-4.29-4.94-4.42-9.38a1.25 1.25 0 0 0-1.23-1.19l-11.69-.06a1.24 1.24 0 0 0-1.24 1.26c.26 10.84 2.25 18.2 15.38 21.13a1.59 1.59 0 0 1 1.23 1.55v24.34a1.23 1.23 0 0 0 1.23 1.23h11.35a1.24 1.24 0 0 0 1.24-1.24V63.36c0-5.58 4-11.92 11.47-11.92 7.16 0 11.47 6.34 11.47 11.92V88.5a1.25 1.25 0 0 0 1.24 1.24h11.35a1.24 1.24 0 0 0 1.24-1.24v-27c0-12.92-11.02-23.06-25.3-23.06Z" style="fill:#fff"/></g></svg>'}return e}setupTmplStampOnVisible(){this.onVisibleObserver||"IntersectionObserver"in window&&(this.onVisibleObserver=new IntersectionObserver((e=>{this.onVisibleObserver&&!0===e[0].isIntersecting&&(Te.M0.addOrUpdateTmplProperty(this.getTmplString()),this.onVisibleObserver.unobserve(this))}),{threshold:[.5]}),this.onVisibleObserver.observe(this))}generateActionsMenuProps(){return{menuItems:this.getActionMenuItem()}}getActionMenuItem(){return[{id:"hide",glyph:K.Z,title:this.strings?this.strings.hideCardText:"",ariaLabel:this.strings?this.strings.sdCardMoreSettingAriaLabel:"",onClick:()=>(0,v.mG)(this,void 0,void 0,(function*(){this.hideCard()})),telemetryTag:this.telemetryContext&&this.telemetryContext.menuHide},{id:"more",glyph:Y.Z,title:this.strings?this.strings.moreSettingsText:"",onClick:()=>(0,v.mG)(this,void 0,void 0,(function*(){this.moreSettingAction()})),telemetryTag:this.telemetryContext&&this.telemetryContext.menuMoreSettings}]}toggleActionMenu(e,t){this.isActionMenuOpen=e,this.isActionMenuOpen?(this.actionsMenuButtonElement=t&&t.currentTarget,document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.actionsMenuButtonElement=void 0,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown))}}(0,v.gn)([y.LO],De.prototype,"actionsMenuProps",void 0),(0,v.gn)([y.LO],De.prototype,"contents",void 0),(0,v.gn)([y.LO],De.prototype,"contentType",void 0),(0,v.gn)([y.LO],De.prototype,"currentPageIndex",void 0),(0,v.gn)([y.LO],De.prototype,"cardHeadingIcon",void 0),(0,v.gn)([y.LO],De.prototype,"cardHeadingText",void 0),(0,v.gn)([y.LO],De.prototype,"cardSubHeadingText",void 0),(0,v.gn)([y.LO],De.prototype,"cardFeedUrl",void 0),(0,v.gn)([y.LO],De.prototype,"cardFooterAttribution",void 0),(0,v.gn)([y.LO],De.prototype,"isActionMenuOpen",void 0),(0,v.gn)([y.LO],De.prototype,"telemetryContext",void 0),(0,v.gn)([y.LO],De.prototype,"showSettings",void 0),(0,v.gn)([y.LO],De.prototype,"showEditLocationButton",void 0),(0,v.gn)([y.LO],De.prototype,"locationTitle",void 0),(0,v.gn)([y.LO],De.prototype,"locationSubtitle",void 0),(0,v.gn)([y.LO],De.prototype,"errorText",void 0),(0,v.gn)([y.LO],De.prototype,"numberOfContentsPerPage",void 0);var Pe=i(75430),He=i(53271),Ie=i(56912),Ee=i(33763),Be=i(64893);Ee.S;const Re=$.d`
<msn-actions-menu :referrerButton=${e=>e.actionsMenuButtonElement} :menuItems=${e=>e.actionsMenuProps.menuItems}>
</msn-actions-menu>
`,Ue=(e,t)=>{const i=e?t.strings.ariaLabelNextArrow:t.strings.ariaLabelPreviousArrow,o=t.telemetryContext&&e?t.telemetryContext.nextSlideArrow:t.telemetryContext.previousSlideArrow,n=(0,Be.cN)(Q.jG.CurrentMarket),r=e&&!n||!e&&n;return $.d`
        <fluent-button 
            appearance="neutral"
            class="arrow-circle ${r?"x-flip":""}"
            aria-label=${i}
            role="button"
            title=${i}
            @click="${()=>t.onArrowClick(e)}"
            tabIndex="0"
            data-t=${o||""}
        >
            ${Pe.Z}
        </fluent-button>
    `},je=$.d`
    <fluent-button
        class="location-edit-button"
        slot="weather-pen-btn"
        appearance="neutral"
        @click=${e=>e.onEditLocationButtonClick()}
        title=${e=>e.strings.editHeading}
        role="button"
        aria-label=${e=>e.strings.editHeading}
        role="button"
        data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.editLocationButton}}"
    >
        ${'<svg width="16" height="16" viewBox="0 0 16 16"><path d="M13.66 2.34a2 2 0 0 1 0 2.83l-7.39 7.39a2.5 2.5 0 0 1-1.16.66l-2.3.57a.5.5 0 0 1-.6-.6l.57-2.3c.11-.44.34-.84.66-1.16l7.39-7.39a2 2 0 0 1 2.83 0Zm-3.54 2.12-5.97 5.98c-.2.19-.33.43-.4.7l-.37 1.48 1.49-.37c.26-.07.5-.2.7-.4l5.97-5.97-1.42-1.42Zm1.42-1.4-.71.7 1.41 1.41.71-.7a1 1 0 0 0-1.41-1.42Z"/></svg>'}
    </fluent-button>
`,Ne=$.d`
<div class="header-container">
    ${(0,A.g)((e=>e.cardFeedUrl),$.d`
        <a 
            class="header link ${e=>e.numberOfContentsPerPage>1?"multiple":"single"}"
            href=${e=>e.cardFeedUrl}
            target="_blank"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.headerTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${(0,A.g)((e=>e.cardHeadingIcon),$.d`
                <span class="header-icon ${e=>e.contentType===U.mostWatched?"watched":""}">
                    ${e=>$.d`${e.cardHeadingIcon}`}
                </span>
            `)}
            <span class="header-title" title=${e=>e.cardHeadingText}>${e=>e.cardHeadingText}</span>
            <span class="title-chevron">${Ie.Z}</span>
        </a>
    `)}
    ${(0,A.g)((e=>!e.cardFeedUrl),$.d`
        <div class="header ${e=>e.numberOfContentsPerPage>1?"multiple":"single"} ${e=>e.contentType===U.nextDoor?"nextdoor":""}">
            ${(0,A.g)((e=>e.cardHeadingIcon),$.d`
                <span class="header-icon ${e=>e.contentType===U.mostReacted?"reacted":""}">
                    ${e=>$.d`${e.cardHeadingIcon}`}
                </span>
            `)}
            <span class="header-title">${e=>e.cardHeadingText}</span>
            ${(0,A.g)((e=>e.showEditLocationButton),je)}
        </div>
    `)}
    ${(0,A.g)((e=>!e.config.disableCardAction),$.d`
        <div class="more-actions">
            <fluent-button
                    class= "toggle-button"
                    slot="more-actions"
                    @click=${(e,t)=>e.toggleActionMenu&&e.toggleActionMenu(!e.isActionMenuOpen,t.event)}
                    data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.cardActionEllipsesButton}}"
                    title="${e=>e.strings.moreSettingsText}"
                    aria-label="${e=>e.strings.moreSettingsText}"
                    role="button"
                >
                    ${He.Z}
            </fluent-button>
        </div>
    `)}
</div>
`,Ge=$.d`
${(0,A.g)((e=>e.cardSubHeadingText&&e.contents.length>1&&!e.errorText),$.d`
    <div class="header-subtitle ${e=>e.contentType===U.userInterestTopic?"topic":""}">${e=>e.cardSubHeadingText}</div>
`)}`,Ze=$.d`
    ${(0,A.g)((e=>e.cardFooterAttribution),$.d`
        <div>
            ${(0,A.g)((e=>e.cardFooterAttribution.footerLink),$.d`
                <a 
                    class="footer-link"
                    href=${e=>e.cardFooterAttribution.footerLink}
                    target="_blank"
                    data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.footerTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
                >
                    ${e=>e.cardFooterAttribution.footerText}
                    <span class="footer-icon">${e=>$.d`${e.cardFooterAttribution.footerIcon}`}</span>
                </a>
            `)}
            ${(0,A.g)((e=>!e.cardFooterAttribution.footerLink),$.d`
                ${e=>e.cardFooterAttribution.footerText}
                <span class="footer-icon ${e=>e.contentType===U.nextDoor?"nextdoor":"fill-white"}">
                    ${e=>$.d`${e.cardFooterAttribution.footerIcon}`}
                </span>
            `)}
        </div>
    `)}
    ${(0,A.g)((e=>e.contentType===U.mostCommented&&e.contents[e.currentPageIndex].socialMediaAttribution&&1===e.config.numberOfContentsPerPage),$.d`
        <div>
            <a
                class="footer-link"
                title=${e=>e.config.localizedStrings.ariaLabelShowMoreButton}
                aria-label=${e=>e.config.localizedStrings.ariaLabelShowMoreButton}
                href=${e=>e.contents[e.currentPageIndex].socialMediaAttribution.socialMediaLink}
                target="_blank"
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.footerTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            >
                ${e=>e.contents[e.currentPageIndex].socialMediaAttribution.socialMediaText}
                <span class="footer-icon" aria-label=${e=>e.config.localizedStrings.ariaLabelShowMoreButton}>${e=>$.d`${e.contents[e.currentPageIndex].socialMediaAttribution.socialMediaIcon}`}</span>
            </a>
        </div>
    `)}
`,ze=$.d`
    <div class="footer">
        <div class="footer-pagination">
            ${(0,A.g)((e=>e.contents.length>1&&!e.errorText),$.d`
                ${e=>Ue(!1,e)}
                <span class="indicators">${e=>e.currentPageIndex/e.numberOfContentsPerPage+1}/${e=>Math.ceil(e.contents.length/e.numberOfContentsPerPage)} </span>
                ${e=>Ue(!0,e)}
            `)}
        </div>
        ${Ze}
    </div>
`,We=$.d`
    ${(0,A.g)((e=>2===e.numberOfContentsPerPage),$.d`
        <div data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.contentCardTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}">
            ${(0,L.rx)((e=>e.contents.slice(e.currentPageIndex,e.currentPageIndex+2)),$.d`
                <double-content 
                    class="double-content ${e=>e.isNextDoorContent?"nextdoor":""}"
                    :model=${e=>e}
                    :commentCountEnabled=${(e,t)=>t.parent.config.commentCountEnabled}
                />
            `)}
        </div>
    `)}
    <!-- numberOfContentsPerPage == 0 means it is a vertical scrollable ux -->
    ${(0,A.g)((e=>0===e.numberOfContentsPerPage),$.d`
        <div
            class="scrollable-content ${e=>e.contentType===U.userInterestTopic?"topic":""}"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.contentCardTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${(0,L.rx)(((e,t)=>e.contents),$.d`
                <scroll-content 
                    class="scroll-content"
                    :model=${e=>e}
                    :showNumberedList=${(e,t)=>t.parent.config.enableNumberedList}
                    :disableCardTitleTooltip=${(e,t)=>t.parent.config.disableCardTitleTooltip&&!t.parent.config.disableTitleOnArticleCardOnly}
                    :enableTitleForTruncate=${(e,t)=>t.parent.config.enableTitleForTruncate}
                    :index=${(e,t)=>t.index}
                    :followTopic=${(e,t)=>t.parent.followTopic.bind(e)}
                />
            `,{positioning:!0})}
        </div>
    `)}
    ${(0,A.g)((e=>1===e.numberOfContentsPerPage),$.d`
        <single-content
            class="single-content"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.contentCardTelemetryObject)||void 0===i?void 0:i.getMetadataTag()}}"
            :model=${e=>e.contents[e.currentPageIndex]}
        />
    `)}
    ${(0,A.g)((e=>3===e.numberOfContentsPerPage),$.d`
    `)}
`,Ve=$.d`
<div class="error-message">${e=>e.errorText}</div>
`,qe=($.d`
    <div class="location-container">
        <div class="location">
            <div class="location-title">${e=>e.locationTitle}</div>
            ${(0,A.g)((e=>e.showEditLocationButton),je)}
        </div>
        <span class="subtitle">${e=>e.locationSubtitle}</span>
    </div>
`,$.d`
<div class="container-settings">
    <content-group-location-settings 
        :telemetryContext=${e=>e.telemetryContext}
        :autoSuggestConfig=${e=>e.config.autoSuggest}
        :onClose=${e=>e.onEditLocationClose}
        :strings=${e=>e.strings}>
    </content-group-location-settings>
</div>
`),Je=$.d`
    <div
        id="ContentGroupCard"
        class="card ${e=>e.contentType===U.nextDoor?"nextdoor":""} ${e=>e.contentType===U.userInterestTopic?"topic":""}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.componentRoot)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        ${(0,A.g)((e=>e.showSettings),qe)}
        <div class="container" style="display:${e=>e.showSettings?"none":"block"}">
            ${Ne}
            ${Ge}
            ${(0,A.g)((e=>e.contents&&!e.errorText),We)}
            ${(0,A.g)((e=>e.errorText),Ve)}
            ${(0,A.g)((e=>e.numberOfContentsPerPage&&e.numberOfContentsPerPage>0),ze)}
        </div>
        ${(0,A.g)((e=>e.isActionMenuOpen),Re)}
    </div>
`;var Ke=i(22674);const Ye=k.i`
    .footer-icon {
        margin-left: 8px;
        float: left;
    }
    .header-icon {
        padding-right: 8px;
        display: flex;
    }
    .header.multiple > .header-icon.reacted {
        padding-right: 0;
    }
`,Qe=k.i`
    .footer-icon {
        margin-right: 8px;
        float: right;
    }
    .header-icon {
        padding-left: 8px;
        display: flex;
    }
    .header.multiple > .header-icon.reacted {
        padding-left: 0;
    }
`,Xe=k.i`
:host {
    --elevated-corner-radius: 6;
}
.card {
    color: ${w.CHi};
    background: radial-gradient(100% 100% at 100% 100%, #EFE1EC 0%, #ECE6F0 44.33%, #E5F0FC 100%);
    border-radius: calc(var(--elevated-corner-radius) * 1px);
    height: 304px;
    max-height: 304px;
    width: 300px;
}
.card.nextdoor {
    background: radial-gradient(182.77% 177.99% at 100% 100%, #EFFBD7 0%, rgba(237, 245, 240, 0.21) 100%);
}
.card.topic {
    background: linear-gradient(140.53deg, #F0E1F7 9.32%, #CDDFFF 58.45%);
}
.container {
    height: 100%;
    overflow: hidden;
    padding: 0 10px;
    position: relative;
}
.container-settings {
    height: 100%;
    background: #FFFFFF80;
}
.double-content {
    display: grid;
    height: 76px;
    margin: 0 0 20px;
    padding: 0 6px;
}
.double-content.nextdoor {
    height: 60px;
    margin-bottom: 36px;
}
.error-message {
    margin-top: 24px;
    font-size: 14px;
    text-align: center;
    white-space: pre-wrap;
}
.footer {
    bottom: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 6px;
    position: absolute;
    width: 268px; /** Card width minus margins */
}
.footer-icon {
    height: 20px;
    width: 20px;
}
.footer-icon.nextdoor {
    width: 92px;
}
.footer-icon > svg > rect {
    fill: ${w.Avx};
}
.footer-icon > svg > rect:hover {
    fill: ${w.OCG};
}
.footer-icon.fill-white > svg > path {
    fill: #FFFFFF;
}
.footer-link {
    align-items: center;
    color: ${w.CHi};
    display: flex;
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    outline: none;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}
.footer-link:focus {
    text-decoration: underline;
}
.footer-pagination {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
}
.header {
    align-items: center;
    display: flex;
    height: 16px;
    margin: 16px 0 22px;
    text-decoration: none;
    text-transform: uppercase;
}
.header.single {
    margin: 16px 0 9px;
}
.header > .header-icon > svg {
    height: 19px;
    width: 20px;
}
.header > .header-icon.watched > svg {
    height: 16px;
}
.header.multiple > .header-icon.reacted > svg {
    display: none;
}
.header.multiple.nextdoor {
    margin-bottom: 10px;
}
.header.single > .header-icon.reacted > svg {
    height: 16px;
    width: 40px;
}
.header.link {
    cursor: pointer;
}
.header-chevron {
    fill: ${w.CHi};
}
.header-title {
    color: ${w.CHi};
    font-weight: 600;
    font-size: 12px;
    height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: 1;
}
.header.multiple.nextdoor > .header-title {
    color: ${w.CHi};
}
.header.link > .header-title:hover {
    text-decoration: underline;
}
.header-subtitle {
    font-size: 12px;
    margin: 0 6px 16px;
    font-weight: 400;
}
.header-subtitle.topic {
    color: ${w.Q5n};
    margin: 4px 6px 8px;
}
.location-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    display: relative;
    margin: 0 auto 14px;
}
.location {
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height:22px;
    position: relative;
    width: fit-content;
    max-width: 220px;
    margin: 0 auto;
    padding: 0;
}
.location-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}
.location-edit-button {
    height: 22px;
    width: 22px;
    min-width: 20px;
    margin: 0 2px;
    background: none;
    color: ${w.CHi};
}
.location-edit-button:hover {
    background: #00000020;
}
.location-edit-button:active {
    background: #00000030;
}
.more-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    z-index: 2;
}
.option-button {
    border-radius: 50%;
    display: none;
    height: 24px;
    max-width: 24px;
}
.scrollable-content {
    overflow-y: scroll;
    height: 250px;
    width: 280px;
    margin-right: 6px;
}
.scrollable-content.topic {
    height: 230px;
}
.scrollable-content .double-content {
    margin-bottom: 6px;
}
.scrollable-content::-webkit-scrollbar {
    width: 4px;
}
.scrollable-content::-webkit-scrollbar-thumb {
    border-radius: 20px;
    height: 160px;
    -webkit-box-shadow: inset 0 0 5px #eee;
    background: ${w.Q5n};
}
.single-content {
    padding: 0 6px;
}
.single-content-section {
    margin: 0 12px;
}
.single-content-image {
    margin: 0 12px;
}
.single-content-attributes {
    margin: 0 12px;
}
.single-content-title {
    margin: 0 12px;
}
.subtitle {
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    line-height: 16px;
}
.title-chevron path {
    fill: ${w.CHi};
}
.title-chevron {
    vertical-align: middle;
    background-color: transparent;
}
.toggle-button {
    border-radius: 16px;
    height: 24px;
    min-width: 24px;
    width: 24px;
}
.indicators {
    color: ${w.CHi};
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin: 0 8px;
}
.arrow-circle {
    background: rgba(0, 0, 0, .07);
    border-radius: 50%;
    fill: ${w.Q5n};
    height: 24px;
    min-width: 24px;
    width: 24px;
}
.arrow-circle:hover {
    background: rgba(255, 255, 255, .5);
}
.arrow-circle.x-flip {
    transform: scaleX(-1);
}`.withBehaviors((0,S.Uu)(k.i`
            .card {
                background: linear-gradient(44.24deg, #33214D 0%, rgba(51, 33, 77, 0.6) 100%);
                color: #FFF;
            }
            .card.nextdoor {
                background: linear-gradient(302.3deg, #425913 15.52%, #2A3318 100%);
            }
            .card.topic {
                background: linear-gradient(138.52deg, #512C2C -1.32%, #252C4E 85.77%);
            }
            .arrow-circle {
                background: rgba(255, 255, 255, 0.09);
                color: rgba(255, 255, 255, 0.54);
            }
            .footer-link {
                color: #FFF;
            }
            .header-title {
                color: #FFF;
            }
            .header.multiple.nextdoor > .header-title {
                color: #FFF;
            }
            .header-subtitle.topic {
                color: ${w.CHi};
            }
            .header-chevron {
                fill: #FFF
            }
            .indicators {
                color: #FFF;
            }
            .subtitle {
                color: rgba(255, 255, 255, 0.54);
            }
            .container-settings {
                background: #00000080;
            }
            .location-edit-button {
                color: #FFF;
            }
            .location-edit-button:hover {
                background: #FFFFFF20;
            }
            .location-edit-button:active {
                background: #FFFFFF30;
            }
        `),new Ke.O(Ye,Qe));var et=i(89346);class tt extends et.H{constructor(){super(...arguments),this.isTopicSelected=!1,this.followTopic=(e,t,i)=>{}}handleContentImageError(e,t){e.currentTarget.style.display="none",(0,E.H)(B.QE_.ContentImageError,"Failed to load content image",`Scrollable card. img url: ${t}`)}handleTopicImageError(e,t){e.currentTarget.src=H,(0,E.H)(B.QE_.ContentImageError,"Failed to load image for topic icon",`Scrollable topic card. img url: ${t}`)}setTitleAttributeOnHover(e,t,i,o){if(i&&o&&e.target){const i=e.target,o=i.getElementsByClassName("scroll-content-title")[0];o&&o.scrollHeight>o.offsetHeight+2?i.setAttribute("title",t):i.setAttribute("title","")}}handleFollowTopicClick(e){this.followTopic&&(this.followTopic(this.model.id,this.model.title,this.isTopicSelected),Te.M0.sendActionEvent(e.target,Z.Aw.Click,this.isTopicSelected?Z.wu.Unfollow:Z.wu.Follow),this.isTopicSelected=!this.isTopicSelected)}}(0,v.gn)([y.LO],tt.prototype,"model",void 0),(0,v.gn)([y.LO],tt.prototype,"showNumberedList",void 0),(0,v.gn)([y.LO],tt.prototype,"index",void 0),(0,v.gn)([y.LO],tt.prototype,"disableCardTitleTooltip",void 0),(0,v.gn)([y.LO],tt.prototype,"enableTitleForTruncate",void 0),(0,v.gn)([y.LO],tt.prototype,"isTopicSelected",void 0),(0,v.gn)([b.Lj],tt.prototype,"followTopic",void 0);var it='<svg width="15" height="15" viewBox="0 0 15 15"><path d="M13.54 15h-2.15L3.68 3.04a5 5 0 0 1-.49-.94h-.06c.06.32.09 1.01.09 2.06V15H1.46V0h2.28l7.5 11.77c.31.49.52.82.6 1h.05c-.07-.43-.1-1.17-.1-2.2V0h1.75v15Z"/></svg>';const ot=[{start:"#0D7CBF",end:"#462C9B"},{start:"#F68932",end:"#F8C521"},{start:"#CC2674",end:"#EA3F32"},{start:"#6FDE4A",end:"#2CCE8C"},{start:"#0AB8B2",end:"#129DC6"}],nt=e=>{if("string"==typeof e){const t=e.length,i=ot[t%5];return`linear-gradient(135deg, ${i.start}, ${i.end})`}{const e=ot[Math.floor(Math.random()*ot.length)];return`linear-gradient(135deg, ${e.start}, ${e.end})`}},rt=$.d`
    ${(0,A.g)((e=>e.model.provider),$.d`
        <div class="scroll-content-attribution">
            <span class="provider-name">
                ${e=>e.model.publishedDateTime?`${e.model.provider.name} ∙ ${e.model.publishedDateTime}`:e.model.provider.name}
            </span>
        </div>
    `)}
`,at=$.d`
<div class="scroll-content-nd-att-container">
    <div class="scroll-content-nd-att-usr-img" style="background: ${e=>nt(e.model.title)};">${it}</div>
    <span class="scroll-content-nd-att-usr-name">${e=>e.model.publishedDateTime?`${e.model.provider.name} ∙ ${e.model.publishedDateTime}`:e.model.provider.name}</span>
</div>
`,st=$.d`
    ${(0,A.g)((e=>e.model.socialMediaAttribution),$.d`
        <span class="social-media">
            <span class="social-media-icon ${e=>e.model.contentType}"
            >
                ${e=>$.d`${e.model.socialMediaAttribution.socialMediaIcon}`}
            </span>
            ${e=>e.model.socialMediaAttribution.socialMediaText}
        </span>
    `)}
`,lt=$.d`
    ${(0,A.g)((e=>e.model),$.d`
        <a 
            class="scroll-content-section"
            href=${e=>e.model.url}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.model.title}
            @mouseenter="${(e,t)=>e.setTitleAttributeOnHover&&e.setTitleAttributeOnHover(t.event,e.model.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
            data-t="${e=>{var t;return null===(t=e.model.contentTelemetry)||void 0===t?void 0:t.getMetadataTag()}}"
        >
            ${(0,A.g)((e=>e.showNumberedList),$.d`
                <span class="news-index">${e=>e.index+1}.</span>
            `)}
            <div class="scroll-content-attribution-section">
                <span class="scroll-content-title ${e=>e.model.contentType===U.nextDoor?"nextdoor":""}">
                    ${e=>e.model.title}
                </span>
                ${(0,A.g)((e=>e.model.contentType!==U.nextDoor),rt)}
                ${st}
                ${(0,A.g)((e=>e.model.contentType===U.nextDoor),at)}
            </div>
            ${(0,A.g)((e=>e.model.image),$.d`
                <div class="scroll-content-image">
                    <img
                        class="image"
                        @error=${(e,t)=>e.handleContentImageError(t.event,e.model.image.src)}
                        src=${e=>e.model.image.src}
                        alt=${e=>e.model.image.alt}
                    />
                </div>
            `)}
        </a>
    `)}
`,dt=$.d`
    ${(0,A.g)((e=>e.model),$.d`
    <div 
        class="scroll-content-section topic"
        title=${e=>e.isTopicSelected?e.model.topicAriaLabelUnfollow:e.model.topicAriaLabelFollow}
        aria-label=${e=>e.isTopicSelected?e.model.topicAriaLabelUnfollow:e.model.topicAriaLabelFollow}
        @click=${(e,t)=>e.handleFollowTopicClick(t.event)}
        data-t="${e=>e.isTopicSelected?e.model.actionUnfollowTelemetry:e.model.actionFollowTelemetry}"
    >
        <div class="content-items">
            <div class="scroll-content-image topic">
                ${e=>e.model.image&&e.model.image.src?$.d`
                    <img
                        class="image"
                        @error=${(e,t)=>e.handleTopicImageError(t.event,e.model.image.src)}
                        src=${e=>e.model.image.src}
                        alt=${e=>e.model.image.alt}
                    />`:$.d`<img class="image" src=${H} @error=${(e,t)=>e.handleContentImageError(t.event,H)} />`}
            </div>
            <div class="scroll-content-attribution-section">
                <span class="scroll-content-title topic">
                    ${e=>e.model.title}
                </span>
            </div>
        </div>
        <span class="follow-button">${e=>e.isTopicSelected?$.d`${'<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><rect width="20" height="20" rx="10" fill="#0078D4"/><path d="M13.77 7.2c.3.29.31.76.03 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.7 1.7 3.72-3.93a.75.75 0 0 1 1.07-.04Z" fill="#fff"/></svg>'}`:$.d`${'<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><rect width="20" height="20" rx="10" fill="#fff"/><path d="M10.5 5.75a.75.75 0 0 0-1.5 0V9H5.75a.75.75 0 0 0 0 1.5H9v3.25a.75.75 0 0 0 1.5 0V10.5h3.25a.75.75 0 0 0 0-1.5H10.5V5.75Z" fill="#212121"/><rect x=".5" y=".5" width="19" height="19" rx="9.5" stroke="#000" stroke-opacity=".25"/></svg>'}`}</span>
    </a>
    `)}
`,ct=$.d`
    ${e=>e.model&&e.model.contentType==U.userInterestTopic?dt:lt}
`,ut=k.i`
    .scroll-content-attribution-section {
        margin-right: 8px;
        min-width: 0;
    }
    .provider-logo {
        margin-right: 8px;
    }
    .social-media-icon {
        margin-right: 5px;
    }
`,ht=k.i`
    .scroll-content-attribution-section {
        margin-left: 8px;
        min-width: 0;
    }
    .provider-logo {
        margin-left: 8px;
    }
    .social-media-icon {
        margin-left: 5px;
    }
`,pt=k.i`
    .attribution-separator {
        margin: 0 3px;
    }
    .news-index {
        color: ${w.Q5n};
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
        margin-right: 8px;
        width: 24px;
    }
    .content-items {
        align-items: center;
        display: flex;
        flex-direction: horizontal;
        margin-left: 3px;
    }
    .follow-button {
        display: inline-flex;
        margin-right: 8px;
    }
    .scroll-content-section {
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        height: 64px;
        min-width: 0;
        padding: 8px 6px;
    }
    .scroll-content-section.topic {
        align-items: center;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
        background-color: #FFF;
        border-radius: 20px;
        height: 34px;
        margin: 0 4px 8px;
        padding: 1px;
    }
    .scroll-content-section.topic > .content-items {
        margin: 0 2px;
    }
    .scroll-content-section:hover {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }
    .scroll-content-section.topic:hover {
        background: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        border: 1px solid #C6C6C6;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
        border-radius: 20px;
        height: 32px;
        padding: 1px 0;
    }
    .scroll-content-image {
        height: 64px;
    }
    .scroll-content-image.topic {
        height: 32px;
    }
    .scroll-content-image:hover {
        opacity: 0.7;
    }
    .scroll-content-image .image {
        border-radius: 6px;
        height: 64px;
        width: 64px;
    }
    .scroll-content-image.topic .image {
        border-radius: 16px;
        height: 32px;
        width: 32px;
        margin-right: 8px;
    }
    .scroll-content-attribution {
        color: ${w.Q5n};
        display: flex;
        font-size: 12px;
        max-width: 272px;
    }
    .scroll-content-title {
        color: ${w.CHi};
        font-size: 14px;
        font-weight: 600;
        overflow: hidden;
        display: -webkit-box;
        line-height: 20px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    a:hover > div.scroll-content-attribution-section > span.scroll-content-title {
        -webkit-line-clamp: 3;
    }
    a:hover > div.scroll-content-attribution-section > div.scroll-content-attribution {
        display: none;
    }
    .scroll-content-title.nextdoor {
        -webkit-line-clamp: 3;
    }
    .scroll-content-title:hover {
        text-decoration: underline;
    }
    .scroll-content-title.topic:hover {
        text-decoration: none;
    }
    .scroll-content-nd-att-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 4px;
    }
    .scroll-content-nd-att-usr-img {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        flex-grow: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
    }
    .scroll-content-nd-att-usr-img > svg {
        width:32px;
        height: 8px;
        fill: #FFF;
    }
    .scroll-content-nd-att-usr-name {
        margin-left: 4px;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: #3B3A39;
    }
    .provider-logo {
        border-radius: 4px;
    }
    .social-media {
        align-items: center;
        color: #000;
        display: flex;
        font-size: 12px;
        line-height: 16px;
        margin-top: 6px;
        font-weight: normal;
        outline: none;
        text-decoration: none;
    }
    .social-media-icon > svg {
        height: 14px;
        width: 14px;
    }
    .social-media-icon.cg_tc_d > svg {
        height: 14px;
        margin-bottom: -3px;
        width: 14px;
    }
    .social-media-icon.cg_tr_d > svg {
        height: 14px;
        width: 30px;
    }
    .social-media-icon > svg > rect {
        fill: ${w.Avx};
    }
    .social-media-icon > svg > rect:hover {
        fill: ${w.OCG};
    }
`.withBehaviors((0,S.Uu)(k.i`
            .scroll-content-section.topic {
                background: rgba(255, 255, 255, 0.15);
            }
            .scroll-content-section.topic:hover {
                background: rgba(255, 255, 255, 0.3);
                border: 1px solid #D6D6D6;
            }
            .scroll-content-section:hover {
                background: rgba(255, 255, 255, 0.07);
            }
            .scroll-content-title {
                color: #FFF;
            }
            .scroll-content-nd-att-usr-name {
                color: #D2D0CE;
            }
            .social-media {
                color: #FFF;
            }
        `),new Ke.O(ut,ht));let gt=class extends tt{};gt=(0,v.gn)([(0,et.M)({name:"scroll-content",template:ct,styles:pt})],gt);class mt extends et.H{handleContentImageError(e,t){e.currentTarget.style.display="none",(0,E.H)(B.QE_.ContentImageError,"Failed to load content image",`Single content card. img url: ${t}`)}handleProviderImageError(e,t){e.currentTarget.style.display="none",(0,E.H)(B.QE_.ProviderImageError,"Failed to load provider image",`Single content card. img url: ${t}`)}}(0,v.gn)([y.LO],mt.prototype,"model",void 0);const ft=$.d`
${(0,A.g)((e=>e.model&&e.model.provider),$.d`
    <div class="single-content-attribution">
        <img
            class="provider-logo"
            @error=${(e,t)=>e.handleProviderImageError(t.event,e.model.provider.image&&e.model.provider.image.src)}
            src=${e=>e.model.provider.image&&e.model.provider.image.src}
            alt=${e=>e.model.provider.image&&e.model.provider.image.alt}
        />
        <span>
            ${e=>e.model.provider.name}
        </span>
        ${(0,A.g)((e=>e.model.publishedDateTime),$.d`
            <span class="attribution-separator">
                ${"&middot"}
            </span>
            <span class="attributionPublishedDateTime" alt-text=${e=>e.model.publishedDateTime}>
                    ${e=>e.model.publishedDateTime}
            </span>
        `)}
    </div>
`)}
`,vt=$.d`
${(0,A.g)((e=>e.model),$.d`
    <a class="single-content-section" href="${e=>e.model.url}" target="_blank" data-t="${e=>{var t;return null===(t=e.model.contentTelemetry)||void 0===t?void 0:t.getMetadataTag()}}">
        ${(0,A.g)((e=>e.model.image),$.d`
            <div class="single-content-image">
                <img
                    class="image"
                    @error=${(e,t)=>e.handleContentImageError(t.event,e.model.image&&e.model.image.src)}
                    src=${e=>e.model.image&&e.model.image.src}
                    alt=${e=>e.model.image&&e.model.image.alt}
                />
            </div>
        `)}
        ${(0,A.g)((e=>e.model.provider),$.d`${ft}`)}
        <span class="single-content-title">
            ${e=>e.model.title}
        </span>
    </a>
`)}
`,bt=k.i`
    .provider-logo {
        margin-right: 8px;
    }
`,yt=k.i`
    .provider-logo {
        margin-left: 8px;
    }
`,xt=k.i`
    :host {
        display: grid;
        margin: 0;
    }
    .attribution-separator {
        margin: 0 3px;
    }
    .provider-logo {
        border-radius: 4px;
    }
    .single-content-section {
        text-decoration: none;
    }
    .single-content-image:hover {
        opacity: 0.7;
    }
    .single-content-image .image {
        border-radius: 4px;
        height: 146px;
        width: 268px;
    }
    .single-content-attribution {
        color: ${w.Q5n};
        display: flex;
        font-size: 12px;
        max-width: 272px;
        padding-bottom: 4px;
        padding-top: 9px;
    }
    .single-content-title {
        color: ${w.CHi};
        font-weight: 600;
        overflow: hidden;
        display: -webkit-box;
        line-height: 20px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .single-content-title:hover {
        text-decoration: underline;
    }
`.withBehaviors((0,S.Uu)(k.i`
            .single-content-attribution {
                color: #FFF;
            }
            .single-content-title {
                color: #FFF;
            }
        `),new Ke.O(bt,yt));let Ct=class extends mt{};Ct=(0,v.gn)([(0,et.M)({name:"single-content",template:vt,styles:xt})],Ct);class wt extends et.H{handleContentImageError(e,t){e.currentTarget.style.display="none",(0,E.H)(B.QE_.ContentImageError,"Failed to load content image",`Double content card. img url: ${t}`)}handleProviderImageError(e,t){e.currentTarget.style.display="none",(0,E.H)(B.QE_.ProviderImageError,"Failed to load provider image",`Double content card. img url: ${t}`)}}(0,v.gn)([y.LO],wt.prototype,"model",void 0),(0,v.gn)([y.LO],wt.prototype,"commentCountEnabled",void 0);var Tt=i(79844);const St=$.d`
    ${(0,A.g)((e=>e.model.provider),$.d`
        <div class="double-content-attribution">
            <img
                class="provider-logo"
                @error=${(e,t)=>e.handleProviderImageError(t.event,e.model.provider.image&&e.model.provider.image.src)}
                src=${e=>e.model.provider.image&&e.model.provider.image.src}
                alt=${e=>e.model.provider.image&&e.model.provider.image.alt}
            />
            <span class="provider-name">
                ${e=>e.model.publishedDateTime?`${e.model.provider.name} ∙ ${e.model.publishedDateTime}`:e.model.provider.name}
            </span>
        </div>
    `)}
`,kt=$.d`
<div class="double-content-nd-att-container">
    <div class="double-content-nd-att-usr-img" style="background: ${e=>nt(e.model.title)};">${it}</div>
    <span class="double-content-nd-att-usr-name">${e=>e.model.publishedDateTime?`${e.model.provider.name} ∙ ${e.model.publishedDateTime}`:e.model.provider.name}</span>
</div>
`,$t=$.d`
    ${(0,A.g)((e=>e.model.socialMediaAttribution),$.d`
        <span class="social-media">
            <span class="social-media-icon ${e=>e.model.contentType}"
            >
                ${e=>$.d`${e.model.socialMediaAttribution.socialMediaIcon}`}
            </span>
            ${e=>e.model.socialMediaAttribution.socialMediaText}
        </span>
    `)}
`,Ot=$.d`
    <span class="comment-count-button">
        ${ie.Z}
    </span>
`,At=$.d`                    
    <span class="comment-count">${e=>e.model.recoDocMetadata.comment_Count}</span>
`,Lt=$.d` 
    <span class="neighborhood-name-button">      
        ${Tt.Z}   
    </span>        
`,Mt=$.d` 
    <span class="neighborhood-name">${e=>e.model.recoDocMetadata.neighborhoodName}</span>
`,Ft=$.d`
    <span class="separator">·&nbsp</span>
`,_t=$.d`
    <div class="nextdoor-metadata-section">
        ${Lt}  
        ${Mt} 
        ${(0,A.g)((e=>parseInt(e.model.recoDocMetadata.comment_Count)>0),$.d`
            ${Ft}
            ${Ot}
            ${At}  
        `)}                                            
    </div> 
`,Dt=$.d`
    ${(0,A.g)((e=>e.model),$.d`
        <a 
            class="double-content-section"
            href=${e=>e.model.url}
            target="_blank"
            title=${e=>e.model.title}
            data-t="${e=>{var t,i;return null===(i=null===(t=e.model)||void 0===t?void 0:t.contentTelemetry)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            <div class="double-content-attribution-section">
                ${(0,A.g)((e=>e.model.contentType!==U.nextDoor),St)}
                <span class="double-content-title ${e=>e.model.contentType===U.nextDoor?"nextdoor":""}">
                    ${e=>e.model.title}
                </span>  
                ${(0,A.g)((e=>e.model.contentType===U.nextDoor),$.d`
                    ${(0,A.g)((e=>e.model.recoDocMetadata&&e.commentCountEnabled),_t)}
                    ${(0,A.g)((e=>!(e.model.recoDocMetadata&&e.commentCountEnabled)),kt)}
                `)} 
                ${$t}
            </div>
            ${(0,A.g)((e=>e.model.image),$.d`
                <div class="double-content-image">
                    <img
                        class="image"
                        @error=${(e,t)=>e.handleContentImageError(t.event,e.model.image&&e.model.image.src)}
                        src=${e=>e.model.image&&e.model.image.src}
                        alt=${e=>e.model.image&&e.model.image.alt}
                    />
                </div>
            `)}
        </a>
    `)}
`,Pt=k.i`
    .double-content-attribution-section {
        margin-right: 8px;
        min-width: 0;
    }
    .provider-logo {
        margin-right: 8px;
    }
    .social-media-icon {
        margin-right: 5px;
    }
`,Ht=k.i`
    .double-content-attribution-section {
        margin-left: 8px;
        min-width: 0;
    }
    .provider-logo {
        margin-left: 8px;
    }
    .social-media-icon {
        margin-left: 5px;
    }
`,It="#6F7681",Et="#E3E1DF",Bt=k.i`
    .attribution-separator {
        margin: 0 3px;
    }
    .comment-count-button {        
        color: ${It};
        min-width: 12px;
        background: none;
        margin-top: 1.5px;
        transform: scale(0.88);
    }
    .comment-count {
        color: ${It};  
        align-items: center;
        display: flex;
        font-size: 12px;
        line-height: 16px;
        margin-top: 1.5px;
        margin-left: 2px;
        font-weight: normal;
        outline: none;
        text-decoration: none; 
    }
    .double-content-section {
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        min-width: 0;
    }
    .double-content-image:hover {
        opacity: 0.7;
    }
    .double-content-image .image {
        border-radius: 4px;
        height: 76px;
        width: 76px;
    }
    .double-content-attribution {
        color: ${w.Q5n};
        display: flex;
        font-size: 12px;
        max-width: 272px;
        padding-bottom: 2px;
    }
    .double-content-title {
        color: ${w.CHi};
        font-size: 14px;
        font-weight: 600;
        overflow: hidden;
        display: -webkit-box;
        line-height: 20px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .double-content-title.nextdoor {
        -webkit-line-clamp: 3;
    }
    .double-content-title:hover {
        text-decoration: underline;
    }
    .double-content-nd-att-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 4px;
    }
    .double-content-nd-att-usr-img {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        flex-grow: 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
    }
    .double-content-nd-att-usr-img > svg {
        width:32px;
        height: 8px;
        fill: #FFF;
    }
    .double-content-nd-att-usr-name {
        margin-left: 4px;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: #3B3A39;
    }
    .neighborhood-name-button{
        fill: ${It};
        background: none;
        margin-top: 2px;     
        transform: scale(0.9);   
    }
    
    .neighborhood-name{
        color: ${It};  
        align-items: center;
        display: flex;
        font-size: 12px;
        line-height: 16px;
        margin-top: 1px;
        margin-left: 2px;
        font-weight: normal;
        outline: none;
        text-decoration: none; 
    }

    .nextdoor-metadata-section{
        display: flex;
        justify-content: left;
        text-decoration: none;
        min-width: 0;
    }
    .provider-logo {
        border-radius: 4px;
    }
    
    .separator {
        color: ${It};  
        align-items: center;
        display: flex;
        font-size: 12px;
        line-height: 16px;
        margin-left: 2px;
        font-weight: normal;
        outline: none;
        text-decoration: none; 
    }
    .social-media {
        align-items: center;
        color: #000;
        display: flex;
        font-size: 12px;
        line-height: 16px;
        margin-top: 6px;
        font-weight: normal;
        outline: none;
        text-decoration: none;
    }
    .social-media-icon > svg {
        height: 14px;
        width: 14px;
    }
    .social-media-icon.cg_tc_d > svg {
        height: 14px;
        margin-bottom: -3px;
        width: 14px;
    }
    .social-media-icon.cg_tr_d > svg {
        height: 14px;
        width: 30px;
    }
    .social-media-icon > svg > rect {
        fill: ${w.Avx};
    }
    .social-media-icon > svg > rect:hover {
        fill: ${w.OCG};
    }
`.withBehaviors((0,S.Uu)(k.i`
            .double-content-attribution {
                color: #FFF;
            }
            .double-content-title {
                color: #FFF;
            }
            .double-content-nd-att-usr-name {
                color: #D2D0CE;
            }
            .social-media {
                color: #FFF;
            }
            .comment-reactions{
                color: #FFF;
            }
            .comment-count-button{
                color: ${Et};
            }
            .comment-count{
                color: ${Et};
            }
            .neighborhood-name{
                color: ${Et};
            }
            .neighborhood-name-button{
                fill: ${Et};
                color: ${Et};
            }
            .separator {
                color: ${Et};
            }
        `),new Ke.O(Pt,Ht));let Rt=class extends wt{};Rt=(0,v.gn)([(0,et.M)({name:"double-content",template:Dt,styles:Bt})],Rt);const Ut=k.i`
fluent-inline-location-settings::part(suggest-list) {
    top: 148px;
}
.save-button .cancel-button {
    flex: 1;
    margin: 0 5px;
}
`,jt=$.d`
<fluent-inline-location-settings
    header="${e=>e.strings&&e.strings.editHeading}"
    layout=${e=>e.sizeClass}
    detect-location-label="${e=>e.strings&&e.strings.locationDetect}"
    specify-location-label="${e=>e.strings&&e.strings.locationSpecify}"
    search-placeholder-text="${e=>e.strings&&e.strings.locationSearchPlaceholder}"
    save-button-label="${e=>e.strings&&e.strings.saveText}"
    cancel-button-label="${e=>e.strings&&e.strings.cancelText}"
    location-mode="${e=>e.locationMode}"
    is-widget=${e=>e.isWidget}
    :changeSignal=${e=>e.changeSignal}
    :suggestedLocations=${e=>e.suggestedLocations}
    :selectedLocation=${e=>e.selectedLocation}
    @save=${e=>e.saveLocationSettings()}
    @cancel=${e=>e.cancelLocationSettings()}
    @mode-change=${(e,t)=>e.selectLocationMode(t.event)}
    @search=${(e,t)=>e.triggerLocationSuggest(t.event)}
    @select=${(e,t)=>e.selectLocation(t.event)}
    :detectLocationTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.detectLocationRadioButton}"
    :specifyLocationTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.specifyLocationRadioButton}"
    :saveTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.saveLocationButton}"
    :cancelTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.cancelLocationButton}"
    data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.locationSettings}}"
/>
`;var Nt=i(53678),Gt=i(803);let Zt=class extends et.H{constructor(){super(...arguments),this.sizeClass="full",this.locationMode="Specify",this.changeSignal=0,this.isWidget=!1,this.selectedLocation=0}connectedCallback(){super.connectedCallback(),this.weatherAutoSuggestClient=(0,Nt.getAutoSuggestClient)(this.autoSuggestConfig),this.weatherPdpClient=new Gt.v,this.changeSignal=0}saveLocationSettings(){var e,t,i;return(0,v.mG)(this,void 0,void 0,(function*(){let o;const n=[];n.push(null===(e=this.weatherPdpClient)||void 0===e?void 0:e.updateUserSettings("","AutoDetect"===this.locationMode?"1":"2",void 0,void 0)),"Specify"===this.locationMode&&(o=this.lastFetchedLocations&&this.lastFetchedLocations[this.selectedLocation],o&&n.push(null===(t=this.weatherPdpClient)||void 0===t?void 0:t.setHomeLocation(o,void 0,void 0))),yield Promise.all(n),null===(i=this.onClose)||void 0===i||i.call(this,o)}))}cancelLocationSettings(){var e;null===(e=this.onClose)||void 0===e||e.call(this)}triggerLocationSuggest(e){var t,i;return(0,v.mG)(this,void 0,void 0,(function*(){let o,n;const r=e.detail.trim();if(r){n=yield null===(t=this.weatherAutoSuggestClient)||void 0===t?void 0:t.getAutoSuggestResponse(r);const e=this.sizeClass;"full"===e[1]&&n&&n.length>3?n=n.slice(0,3):"half"===e[1]&&n&&n.length>1&&(n=n.slice(0,1)),o=null!=n&&n.length>0?n.map((e=>e.displayName||Ce.getAutoSuggestionName(e))):[null===(i=this.strings)||void 0===i?void 0:i.noLocationFound],this.suggestedLocations=o,this.locationMode="Specify",this.lastFetchedLocations=n}else this.changeSignal=0}))}selectLocationMode(e){const t=e.detail;let i=0;"AutoDetect"===t?i=2:this.selectedLocation&&(i=4),e.currentTarget.locationMode=t,e.currentTarget.changeSignal=i,this.locationMode=t,this.changeSignal=i}selectLocation(e){if(!this.lastFetchedLocations||0===this.lastFetchedLocations.length)return void e.preventDefault();e.currentTarget.changeSignal=4;const t=e.detail;this.locationMode="Specify",this.selectedLocation=t,this.suggestedLocations=void 0,this.changeSignal=4}};(0,v.gn)([y.LO],Zt.prototype,"telemetryContext",void 0),(0,v.gn)([y.LO],Zt.prototype,"sizeClass",void 0),(0,v.gn)([y.LO],Zt.prototype,"locationMode",void 0),(0,v.gn)([y.LO],Zt.prototype,"changeSignal",void 0),(0,v.gn)([y.LO],Zt.prototype,"isWidget",void 0),(0,v.gn)([y.LO],Zt.prototype,"suggestedLocations",void 0),(0,v.gn)([y.LO],Zt.prototype,"selectedLocation",void 0),(0,v.gn)([y.LO],Zt.prototype,"lastFetchedLocations",void 0),(0,v.gn)([y.LO],Zt.prototype,"onClose",void 0),(0,v.gn)([y.LO],Zt.prototype,"strings",void 0),(0,v.gn)([y.LO],Zt.prototype,"autoSuggestConfig",void 0),Zt=(0,v.gn)([(0,et.M)({name:"content-group-location-settings",template:jt,styles:Ut})],Zt);const zt={experienceConfigSchema:l};(0,d.z)().withShadowRootMode("closed").withElementDisambiguation((()=>f.h.ignoreDuplicate)).register((0,c.hb)(),(0,u.i0)(),(0,h.EK)(),(0,p.oM)(),(0,g.d$)(),(0,m.k)()),(0,d.z)().withShadowRootMode("open").withElementDisambiguation((()=>f.h.ignoreDuplicate)).register(P())},74045:function(e,t,i){var o,n;i.d(t,{KE:function(){return a},O7:function(){return o},Qp:function(){return s},Us:function(){return n},XQ:function(){return r}}),function(e){e[e.none=0]="none",e[e.enabled=1]="enabled",e[e.saved=2]="saved",e[e.hide=4]="hide",e[e.showMore=8]="showMore",e[e.showFewer=16]="showFewer",e[e.mute=32]="mute",e[e.hidden=64]="hidden",e[e.report=128]="report",e[e.adFeedbackSubmitted=256]="adFeedbackSubmitted",e[e.hideTopic=512]="hideTopic",e[e.dismiss=1024]="dismiss",e[e.adPrivacy=2048]="adPrivacy"}(o||(o={})),function(e){e.Hide="Hide",e.Like="Like",e.Disabled="Disabled",e.Dislike="Dislike",e.Mute="Mute",e.Save="Save",e.Share="Share",e.ShowMore="ShowMore",e.ShowFewer="ShowFewer",e.Divider="Divider",e.Report="Report",e.ManageInterests="ManageInterests",e.ReportAd="ReportAd",e.AdPrivacy="AdPrivacy",e.HideTopic="HideTopic"}(n||(n={}));const r=e=>{const t=[],i={AdultImage:"AdultImage",RacyImage:"RacyImage",TextProfanity:"TextProfanity",SubstanceAbuse:"SubstanceAbuse",Violence:"Violence",Misinformation:"Misinformation",Other:"Other"};return e&&Object.keys(e).forEach((o=>{e[o]&&t.push(i[o])})),t},a="/service/feedback/api/reportanissue",s="https://assets.msn.cn/service/feedback/api/reportanissue"},39935:function(e,t,i){i.d(t,{I:function(){return M}});var o,n=i(33940),r=i(83097),a=i(33799),s=i(74045),l=i(26415),d=i(68364),c=i(16517),u=i(54804),h=i(38156),p=i(65135),g=i(63535),m=i(67267),f=i(87298),v=i(56698),b=i(94546),y=i(66925),x=i(85334);!function(e){e[e.feedbackDefault=2224]="feedbackDefault",e[e.windowsFeed=2475]="windowsFeed"}(o||(o={}));class C{constructor(){this.manifestType="Sas",this.appId=o.feedbackDefault,this.source="Client",this.type="Idea"}}var w=i(33379),T=i(98429),S=i(90351),k=i(9344),$=i(51671),O=i(51125);class A extends class{constructor(e,t){this.fetchImpl=e,this.additionalHeaders=t,this.isWindowsDashboard="newsAndInterests"===c.jG.AppType||"windowsNewsPlus"===c.jG.AppType||"winWidgets"===c.jG.AppType,this.isWindowsNewsbar="windowsNewsbar"===c.jG.AppType,this.isStartGG="gaming"===c.jG.AppType,this.providersServiceEndpointURL=(0,g.PH)("./Msn/Providers"),this.cardActionsServiceEndpointURL=(0,g.PH)("./Graph/Actions"),this.userFeedbackEventhubUrl="/labs/api/feedbackSignal",this.ocid="feeds",this.isWindowsDashboard?this.ocid="winp2":this.isWindowsNewsbar?this.ocid="winp0dash":u.Al.IsBlendedEnterprise?this.ocid="entnewsntp":this.isStartGG&&(this.ocid="startgg-feeds")}ShowFewer(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Dislike,null)}))}UnshowFewer(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Dislike)}))}ShowMore(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Like,null,t)}))}UnshowMore(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Like)}))}Save(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Save)}))}Unsave(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Save)}))}Hide(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Dislike,null,t)}))}Unhide(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Dislike)}))}Mute(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Mute,"SourceProvider")}))}Unmute(e){return(0,n.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Mute)}))}Disable(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Disabled,t)}))}Report(e,t,i,o,r,a,l,d,f){return(0,n.mG)(this,void 0,void 0,(function*(){const n=u.Al.ClientSettings?u.Al.ClientSettings.aid:"",v=c.jG&&c.jG.HostPage.topDomain,b=r===h.uH.WebContent?"web":"msn",y=(0,s.XQ)(f),x=(0,T.pW)();let C="";const w={serviceType:"oneservice",oneServiceTraceId:"",oneServiceActivityId:n};"windows"===c.jG.AppType&&(C=p.M0.getPageMetadata().JoinIdProps.IDXId,w.oneServiceTraceId="",w.oneServiceActivityId=n),p.M0.sendTraceInfoEvent(w);const S=JSON.stringify({article:{id:e},canvas:{name:c.jG.AppType,version:navigator.userAgent,pageType:u.Al.ClientSettings.pagetype},data:{activityId:n,feedbackTags:t,feedbackText:i},appEnvironment:c.jG,clientSettings:u.Al.ClientSettings,extSchema:w}),k=JSON.stringify({activityId:x,market:c.jG&&c.jG.CurrentMarket||"",contentId:e,source:b,headlineImage:l&&l.src,headlineText:o,abstract:a,offensive:y,url:d}),$=(0,g.qQ)().origin+this.userFeedbackEventhubUrl,O="msn.cn"===v?s.Qp:(0,g.qQ)().origin+s.KE,A=Object.assign(Object.assign({},yield m.$.getOneServiceHeaders()),this.additionalHeaders),L=Object.assign(Object.assign({},A),{"Content-Type":"application/json"});this.reportFeedbackService(S,$,A),0!=y.length&&this.reportFeedbackService(k,O,L)}))}reportFeedbackService(e,t,i){return(0,n.mG)(this,void 0,void 0,(function*(){const o={method:"POST",headers:i,body:e,credentials:"include"};let n;try{if(n=yield fetch(t,o),n.status>=400)throw new Error(n.statusText)}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionPostActionError),{message:"Error while posting action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionPostActionError.pb),{customMessage:`url: ${t}, error: ${e}`})}))}return n}))}reportNonCMS(e,t,i,o){return(0,n.mG)(this,void 0,void 0,(function*(){this.ReportOCV(e,t,i,o)}))}ReportOCV(e,t,i,o){return(0,n.mG)(this,void 0,void 0,(function*(){let n=!1;const r="https://petrol.office.microsoft.com/v1/feedback",a=this.createOcvFeedbackData(e,t,i,o),s={method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)};try{const e=yield this.fetchImpl(r,s);if(e.ok)n=!0;else{const t=`Error code: ${e.status} Error message: ${e.statusText} Request params: ${s} Service url: ${r}`;(0,d.H)(l.Ceo.CardActionBadRequestReportingToOcv,"Request is not valid, it has no content, or the manifest is not formatted correctly",t)}}catch(e){const t=`Error code: ${e?e.code:"undefined"} Error message: ${e?e.message:"undefined"} Request params: ${s} Service url: ${r}`;(0,d.OO)(e,l.Ceo.CardActionExceptionReportingToOcv,"Exception reporting feedback to OCV",t)}}))}createOcvFeedbackData(e,t,i,o){var n,r,a,s;const l=new C,d=null===u.Al||void 0===u.Al?void 0:u.Al.ClientSettings,h=null===c.jG||void 0===c.jG?void 0:c.jG.HostPage,g=(null==d?void 0:d.aid)||"";let m="";const f=(null===(r=null===(n=null===c.jG||void 0===c.jG?void 0:c.jG.CurrentRequestTargetScope)||void 0===n?void 0:n.pageExperiments)||void 0===r?void 0:r.join(","))||"",v=null===(a=null===c.jG||void 0===c.jG?void 0:c.jG.CurrentRequestTargetScope)||void 0===a?void 0:a.browser;return m=p.M0.getPageMetadata().JoinIdProps.IDXId,l.submitTime=(new Date).toISOString(),l.clientFeedbackId=(0,T.pW)(),l.comment=i,l.rating=4,l.application={appData:JSON.stringify({ScreenResolution:window&&window.screen?[screen.width,screen.height].join("x"):"",DDDActivityId:m,articleId:e,vertical:h&&h.verticalKey||"Prod"})},l.telemetry={audience:(null===c.jG||void 0===c.jG?void 0:c.jG.CurrentMarket)||"",audienceGroup:"Production",channel:(null==h?void 0:h.categoryKey)||"",deviceType:(null==d?void 0:d.deviceFormFactor)||"",errorClassification:JSON.stringify({NotRelevant:t.NotRelevant,ImageQuality:t.BlurryImage,MisleadingTitle:t.Misleading,OutdatedArticle:t.Outdated,DuplicateArticle:t.Duplicate,OffensiveContent:t.Offensive,Vertical:o}),featureArea:(null==d?void 0:d.pagetype)||"",flights:f,isUserSubscriber:(0,$.hC)(),platform:null===(s=c.jG.CurrentRequestTargetScope)||void 0===s?void 0:s.os,processSessionId:g,sourceContext:c.jG.AppType},l.web={browser:(null==v?void 0:v.browserType)||"",browserVersion:(null==v?void 0:v.version)||"",sourcePageName:(null==h?void 0:h.subcategoryKey)||"",sourcePageURI:""},l}ReportAd(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){const i=e.concat(`&f=${t}`);let o=new Image(1,1);o.src=i,o=null}))}GetProviderIcon(e){return(0,n.mG)(this,void 0,void 0,(function*(){const t=yield this.GetPublisherDetails(e);return(0,S.Z)(t,"value[0].logos[0].imageLink.href",void 0)}))}PostCardActionEvent(e,t,i,o=(()=>null),r,a,l=!0,d,c=5e3,u=!1,h,p){return(0,n.mG)(this,void 0,void 0,(function*(){let n;switch(t){case s.Us.ShowMore:e&s.O7.showMore?(l&&y.h.renderToast({id:x.p.ShowMore+`-${i}`,toastType:x.p.ShowMore,expirationInMs:c,onClick:()=>{r?r(i,e^s.O7.showMore,t,!0):this.PostCardActionEvent(e^s.O7.showMore,t,i,o)},referrerButton:d}),n=yield this.ShowMore(i,p)):(y.h.expireToast(x.p.ShowMore+`-${i}`),n=yield this.UnshowMore(i)),o(i,e);break;case s.Us.ShowFewer:e&s.O7.showFewer?(l&&y.h.renderToast({id:x.p.ShowFewer+`-${i}`,toastType:x.p.ShowFewer,expirationInMs:c,onClick:()=>{r?r(i,e^s.O7.showFewer,t,!0):this.PostCardActionEvent(e^s.O7.showFewer,t,i,o)},referrerButton:d}),n=yield this.ShowFewer(i)):(y.h.expireToast(x.p.ShowFewer+`-${i}`),n=yield this.UnshowFewer(i)),o(i,e);break;case s.Us.Save:e&s.O7.saved?(l&&!u&&y.h.renderToast({id:x.p.Save+`-${i}`,toastType:x.p.Save,expirationInMs:c,referrerButton:d}),n=yield this.Save(i),l&&u&&n&&y.h.renderToast({id:x.p.Save+`-${i}`,toastType:x.p.Save,expirationInMs:c,onClick:()=>this.PostCardActionEvent(e^s.O7.saved,t,i,o),referrerButton:d})):(y.h.expireToast(x.p.Save+`-${i}`),n=yield this.Unsave(i),l&&u&&n&&y.h.renderToast({id:x.p.Unsave+`-${i}`,toastType:x.p.Unsave,onClick:()=>this.PostCardActionEvent(e^s.O7.saved,t,i,o),expirationInMs:c,referrerButton:d})),o(i,e);break;case s.Us.Hide:n=e&s.O7.hide?yield this.Hide(i,p):yield this.Unhide(i),o(i,e);break;case s.Us.HideTopic:n=e&s.O7.hideTopic?yield this.PostCardActionRequest(a,s.Us.Mute,"TagBase"):yield this.DeleteCardActionRequest(a,s.Us.Mute);break;case s.Us.Mute:e&s.O7.mute?(n=yield this.Mute(a),o(i,e,s.Us.Mute,void 0,void 0,a)):n=yield this.Unmute(a);break;case s.Us.ReportAd:o(i,e);break;default:return}if(u&&!n){const{saveStoryErrorText:o,personalizationErrorText:n}=h||{},r=t===s.Us.Save&&e&s.O7.saved?o:n;y.h.renderToast({id:`${x.p.ConnectionError}-${t}-${i}`,toastType:x.p.ConnectionError,inputText:r,expirationInMs:c,referrerButton:d})}}))}GetPublisherDetails(e){return(0,n.mG)(this,void 0,void 0,(function*(){const t=this.providersServiceEndpointURL,i={method:"GET",headers:Object.assign(Object.assign({},yield m.$.getOneServiceHeaders()),this.additionalHeaders)};[{key:"ids",value:e},...yield this.getOneServiceCommonParam()].forEach((e=>e.value&&t.searchParams.set(e.key,e.value)));try{const o=yield(0,f.w)((()=>(0,n.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(t.href,i)}))),"getProviderDetails");if(!o.ok){const t=`OneService returned error response. Status: ${o.status} for providerId: ${e}`;throw new Error(t)}return o.json()}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionGetActionError),{message:"Error while calling getPublisherDetails action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError.pb),{customMessage:`url: ${t.href}, error: ${e}`})}))}}))}DeleteCardActionRequest(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){const i=this.cardActionsServiceEndpointURL,o={method:"DELETE",credentials:"include",headers:Object.assign(Object.assign({},yield m.$.getOneServiceHeaders()),this.additionalHeaders)};[{key:"$filter",value:`actionType eq '${t}' and targetId eq '${e}'`},...yield this.getOneServiceCommonParam()].forEach((e=>e.value&&i.searchParams.set(e.key,e.value)));try{const r=yield(0,f.w)((()=>(0,n.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(i.href,o)}))),`deleteCardAction${t}`);if(r.status>=400){const i=`OneService returned error response. Status: ${r.status} for actionType: ${t} and targetId: ${e}`;throw new Error(i)}return(0,v.bY)(this.getPreloadReloadReason(t)),(0,O.j9)(),r}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError),{message:"Error while calling delete action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError.pb),{customMessage:`url: ${i.href}, error: ${e}`})}))}}))}PostCardActionRequest(e,t,i,o){return(0,n.mG)(this,void 0,void 0,(function*(){const r=this.cardActionsServiceEndpointURL,a={method:"POST",body:JSON.stringify({actionType:t,targetId:e,targetType:i,metadata:o}),headers:Object.assign(Object.assign({},yield m.$.getOneServiceHeaders()),this.additionalHeaders),credentials:"include"};(yield this.getOneServiceCommonParam()).forEach((e=>e.value&&r.searchParams.set(e.key,e.value)));try{const o=yield(0,f.w)((()=>(0,n.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(r.href,a)}))),`getCardAction${t}`);if(o.status>=400){const n=`OneService returned error response. Status: ${o.status} for actionType: ${t}, targetId: ${e} and targetType: ${i}`;throw new Error(n)}return(0,v.bY)(this.getPreloadReloadReason(t)),(0,O.j9)(),o.json()}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionPostActionError),{message:"Error while posting action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionPostActionError.pb),{customMessage:`url: ${r.href}, error: ${e}`})}))}}))}getOneServiceCommonParam(){return(0,n.mG)(this,void 0,void 0,(function*(){return this.isWindowsDashboard||this.isWindowsNewsbar||this.isStartGG?m.$.getOneServiceParamsWithoutAuth(c.jG.UserId,this.ocid,!1):(yield this.isUserSignedIn())?m.$.getOneServiceParamsWithAuth(c.jG.UserId,this.ocid,!u.Al.IsBlendedEnterprise):"edgeChromium"===c.jG.AppType&&(0,k.ej)("lt")&&(0,k.ej)(r.IR.AppAnonCookieExists)?(p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.MCu.LtCookieFoundUserNotAuthenticated),{message:"CardActionServiceClient: lt cookie present. "+r.IR.AppAnonCookieExists+" cookie present.",pb:Object.assign({},l.MCu.LtCookieFoundUserNotAuthenticated.pb)})),m.$.getOneServiceParamsWithAuth(c.jG.UserId,this.ocid,!u.Al.IsBlendedEnterprise)):m.$.getOneServiceParamsWithoutAuth(c.jG.UserId,this.ocid,!u.Al.IsBlendedEnterprise)}))}isUserSignedIn(){return(0,n.mG)(this,void 0,void 0,(function*(){if(u.Al.UserIsSignedIn)return!0;return(yield(0,$.XJ)())===a.Hy.SignedIn}))}getPreloadReloadReason(e){switch(e){case s.Us.Mute:return b.T.MutePublisher;case s.Us.Save:return b.T.Save;case s.Us.Like:return b.T.Like;case s.Us.Dislike:return b.T.Dislike;case s.Us.Disabled:return b.T.Disabled;default:return b.T.SettingsChange}}}{constructor(e,t){let i;i=e||((0,w.N)()?window.fetch.bind(window):fetch),super(i,t)}}let L;const M=(e,t)=>L||(L=new A(e,t),L)},4680:function(e,t,i){i.d(t,{ph:function(){return c}});var o,n=i(16517),r=i(58155),a=i(54804),s=i(65135),l=i(26415);!function(e){e[e.linksPointToPartner=2]="linksPointToPartner"}(o||(o={}));i(89526);const d={ArticlePreview:"ar",SlideshowPreview:"ss",VideoPreview:"vi"};function c(e,t,i,c){if(e.renderingRestriction===o.linksPointToPartner){if(e.sourceHref)return e.sourceHref;s.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.BO7.MissingPartnerLink),{message:"Content with rendering restriction 'link to partner' is missing source HREF",pb:Object.assign(Object.assign({},l.BO7.MissingPartnerLink.pb),{customMessage:`Content Id: ${e.id}`})}))}if(e.destinationUrl)return e.destinationUrl;const u=(0,n.Yq)().NavTargetHostName,h=d[e.type]||"xx";i=r.c.encodeURIComponentForPrime(i||""),c=r.c.encodeURIComponentForPrime(c||"");const p=encodeURIComponent(e.uriTitle||"");let g="";return a.Al&&a.Al.ClientSettings&&a.Al.ClientSettings.forwardablequeryparams&&(g=`?${a.Al.ClientSettings.forwardablequeryparams}`),`https://${u}/${t}/${i}/${c}/${p}/${h}-${e.id}${g}`}},79703:function(e,t,i){i.d(t,{$:function(){return r}});var o,n=i(19628);!function(e){e[e.Default=0]="Default",e[e.Medium=1]="Medium",e[e.MonthDate=2]="MonthDate",e[e.Weekday=3]="Weekday",e[e.Time=4]="Time"}(o||(o={}));class r{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(o.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(o.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(o.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(o.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(e,t){e&&t&&this.dateFormatOptionsMap.set(e,t)}localizedDateString(e,t){return this.formatDate(e,o.Default,t)}localizedDateStringMedium(e,t){return this.formatDate(e,o.Medium,t)}localizedMonthDate(e,t){return this.formatDate(e,o.MonthDate,t)}localizedWeekday(e,t){return this.formatDate(e,o.Weekday,t)}formatTimeFromDate(e,t){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?e.toLocaleTimeString(t,this.dateFormatOptionsMap.get(o.Time)):e.toTimeString()}format(e,...t){return e?n.Ld.Format(e,...t):""}localizedNumberString(e,t){return this.supportsLocaleSpecifiers?e.toLocaleString(t):e.toString()}formatDate(e,t,i){let n=null;if(this.supportsLocaleSpecifiers)if(t===o.Default)n=e.toLocaleDateString(i);else if(this.dateFormatOptionsMap){const o=this.dateFormatOptionsMap.get(t);n=e.toLocaleDateString(i,o)}return null===n&&(n=e.toDateString()),null!==n?n.replace(/\u200E/g,"").replace(/\u200F/g,""):n}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1})()}}},11363:function(e,t,i){i.d(t,{fh:function(){return c},Xk:function(){return u}});var o=i(79703),n=i(94516),r=i(21858);class a{constructor(e,t,i){this.timeLocStrings=e,this.locale=t,this.locUtility=i}transform(e,t,i){const o=3600,a=86400;if(!e)return"";if(!this.locUtility.supportsLocaleSpecifiers)return t;const s=(0,r.Go)(e);switch((0,r.Yw)(e)){case n.i.None:return"";case n.i.JustNow:return this.timeLocStrings.JustNow;case n.i.LessThanOneHour:return this.timespanString(s,s<120?this.timeLocStrings.NumberMinuteAgo:this.timeLocStrings.NumberMinutesAgo,60);case n.i.Today:return this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,o);case n.i.Yesterday:if(0===i){const t=this.timeLocStrings.TimeYesterday;return this.locUtility.format(t,this.locUtility.formatTimeFromDate(e,this.locale))}return s<a?this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,o):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,a);case n.i.ThisWeek:return 0===i?this.locUtility.format(this.timeLocStrings.TimeDayOfWeek,this.locUtility.localizedWeekday(e,this.locale),this.locUtility.formatTimeFromDate(e,this.locale)):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,a);case n.i.ThisYear:return this.locUtility.localizedMonthDate(e,this.locale);default:return this.locUtility.localizedDateStringMedium(e,this.locale)}}timespanString(e,t,i){const o=Math.floor(e/i);return this.locUtility.format(t,this.locUtility.localizedNumberString(o,this.locale))}}const s={JustNow:"Just Now",NumberMinuteAgo:"{0} minute ago",NumberMinutesAgo:"{0} minutes ago",NumberHourAgo:"{0} hour ago",NumberHoursAgo:"{0} hours ago",NumberDayAgo:"{0} day ago",NumberDaysAgo:"{0} days ago",NumberWeekAgo:"{0} week",NumberWeeksAgo:"{0} weeks",NumberMonthAgo:"{0} month",NumberMonthsAgo:"{0} months",NumberYearAgo:"{0} year",NumberYearsAgo:"{0} years",TimeYesterday:"Yesterday at {0}",TimeDayOfWeek:"{0} at {1}"},l={Minute:{one:"{0} دقيقة",two:"دقيقتان",threeToTen:"{0} دقائق",elevenPlus:"{0} دقيقة"},Hour:{one:"{0} ساعة",two:"ساعتان",threeToTen:"{0} ساعات",elevenPlus:"{0} ساعة"},Day:{one:"{0} يوم",two:"يومان",threeToTen:"{0} أيام",elevenPlus:"{0} يوما"},Week:{one:"{0} أسبوع",two:"{0} أسبوع",threeToTen:"{0} أسابيع",elevenPlus:"{0} أسبوعا"},Month:{one:"{0} شهر",two:"{0} شهر",threeToTen:"{0} أشهر",elevenPlus:"{0} شهرا"},Year:{one:"{0} عام",two:"{0} عام",threeToTen:"{0} أعوام",elevenPlus:"{0} عاما"}},d={Week:{one:"{0} שבוע",two:"{0} שבועיים",three:"{0} שבועות"},Month:{one:"{0} חודש",two:"{0} חודשיים",three:"{0} חודשים"},Year:{one:"{0} שנה",two:"{0} שנתיים",three:"{0} שנים"}};function c(e,t,i,n,r,c){const u=t&&t.toLowerCase();if(!(e instanceof Date)||isNaN(e.valueOf()))return"";if(c&&i)return function(e,t,i,o){if(!(e instanceof Date)||isNaN(e.valueOf()))return"";const n=h.MsPerMinute,r=h.MsPerHour,a=h.MsPerDay,s=h.MsPerWeek,c=h.MsPerMonth,u=h.MsPerYear,p=t.getTime()-e.getTime();if(p<n)return i.JustNow||"";let g=u,m="Year";p<r?(g=n,m="Minute"):p<a?(g=r,m="Hour"):p<s?(g=a,m="Day"):p<c?(g=s,m="Week"):p<u&&(g=c,m="Month");const f=/^[Aa][Rr]-/.test(o),v=/^[Hh][Ee]-/.test(o),b=Math.floor(p/g);let y=null;y=f?function(e,t){if(e<2)return l[t].one;if(e<3)return l[t].two;if(e<11)return l[t].threeToTen;return l[t].elevenPlus}(b,m):v?function(e,t,i){if("Minute"==i||"Hour"==i||"Day"==i)return e[`Number${i}${t>1?"s":""}Ago`];if(t<2)return d[i].one;if(t<3)return d[i].two;return d[i].three}(i,b,m):i[`Number${m}${b>1?"s":""}Ago`];return y?y.replace("{0}",b):""}(e,new Date,i,u);if(!i&&"zh-cn"===u)return"";i||(i=s);const p=(r=r||new o.$).localizedDateString(e,u);n||(n=0);return new a(i,u,r).transform(e,p,n)}function u(e){return e.toLocaleString("ja-JP",{hour12:!1,hour:"2-digit",minute:"2-digit",day:"2-digit",month:"2-digit",timeZone:"Asia/Tokyo"}).replace("午後","").replace("午前","")}const h={MsPerMinute:6e4,MsPerHour:36e5,MsPerDay:864e5,MsPerWeek:6048e5,MsPerMonth:2592e6,MsPerYear:31104e6}},64893:function(e,t,i){i.d(t,{$n:function(){return o},bT:function(){return n},cN:function(){return r}});const o=[{id:"ar-ae",value:"ar-ae",displayString:"الإمارات العربية المتحدة (العربية)",direction:"rtl"},{id:"ar-eg",value:"ar-eg",displayString:"مصر (العربية)",direction:"rtl"},{id:"ar-sa",value:"ar-sa",displayString:"المملكة العربية السعودية (العربية)",direction:"rtl"},{id:"bn-in",value:"bn-in",displayString:"India (বাংলা)",direction:"ltr"},{id:"cs-cz",value:"cs-cz",displayString:"Česká republika (čeština)",direction:"ltr"},{id:"da-dk",value:"da-dk",displayString:"Danmark (Dansk)",direction:"ltr"},{id:"de-at",value:"de-at",displayString:"Österreich (Deutsch)",direction:"ltr"},{id:"de-ch",value:"de-ch",displayString:"Schweiz (Deutsch)",direction:"ltr"},{id:"de-de",value:"de-de",displayString:"Deutschland (Deutsch)",direction:"ltr"},{id:"el-gr",value:"el-gr",displayString:"Ελλάδα (ελληνικά)",direction:"ltr"},{id:"en-ae",value:"en-ae",displayString:"United Arab Emirates (English)",direction:"ltr"},{id:"en-au",value:"en-au",displayString:"Australia (English)",direction:"ltr"},{id:"en-ca",value:"en-ca",displayString:"Canada (English)",direction:"ltr"},{id:"en-gb",value:"en-gb",displayString:"United Kingdom (English)",direction:"ltr"},{id:"en-ie",value:"en-ie",displayString:"Ireland (English)",direction:"ltr"},{id:"en-in",value:"en-in",displayString:"India (English)",direction:"ltr"},{id:"en-my",value:"en-my",displayString:"Malaysia (English)",direction:"ltr"},{id:"en-nz",value:"en-nz",displayString:"New Zealand (English)",direction:"ltr"},{id:"en-ph",value:"en-ph",displayString:"Philippines (English)",direction:"ltr"},{id:"en-sg",value:"en-sg",displayString:"Singapore (English)",direction:"ltr"},{id:"en-us",value:"en-us",displayString:"United States (English)",direction:"ltr"},{id:"en-xl",value:"en-xl",displayString:"International Edition (English)",direction:"ltr"},{id:"en-za",value:"en-za",displayString:"South Africa (English)",direction:"ltr"},{id:"es-ar",value:"es-ar",displayString:"Argentina (español)",direction:"ltr"},{id:"es-cl",value:"es-cl",displayString:"Chile (español)",direction:"ltr"},{id:"es-co",value:"es-co",displayString:"Colombia (español)",direction:"ltr"},{id:"es-es",value:"es-es",displayString:"España (español)",direction:"ltr"},{id:"es-mx",value:"es-mx",displayString:"México (español)",direction:"ltr"},{id:"es-pe",value:"es-pe",displayString:"Perú (español)",direction:"ltr"},{id:"es-us",value:"es-us",displayString:"United States (español)",direction:"ltr"},{id:"es-ve",value:"es-ve",displayString:"Venezuela (español)",direction:"ltr"},{id:"es-xl",value:"es-xl",displayString:"América Latina (español)",direction:"ltr"},{id:"fi-fi",value:"fi-fi",displayString:"Suomi (suomi)",direction:"ltr"},{id:"fr-be",value:"fr-be",displayString:"Belgique (français)",direction:"ltr"},{id:"fr-ca",value:"fr-ca",displayString:"Canada (français)",direction:"ltr"},{id:"fr-ch",value:"fr-ch",displayString:"Suisse (français)",direction:"ltr"},{id:"fr-fr",value:"fr-fr",displayString:"France (français)",direction:"ltr"},{id:"fr-xl",value:"fr-xl",displayString:"Afrique francophone (français)",direction:"ltr"},{id:"he-il",value:"he-il",displayString:"ישראל (עברית)",direction:"rtl"},{id:"hi-in",value:"hi-in",displayString:"India (हिंदी)",direction:"ltr"},{id:"hu-hu",value:"hu-hu",displayString:"Magyarország (magyar)",direction:"ltr"},{id:"id-id",value:"id-id",displayString:"Indonesia (Bahasa Indonesia)",direction:"ltr"},{id:"it-it",value:"it-it",displayString:"Italia (italiano)",direction:"ltr"},{id:"ja-jp",value:"ja-jp",displayString:"日本 (日本語)",direction:"ltr"},{id:"ko-kr",value:"ko-kr",displayString:"한국 (한국어)",direction:"ltr"},{id:"mr-in",value:"mr-in",displayString:"India (मराठी)",direction:"ltr"},{id:"nb-no",value:"nb-no",displayString:"Norge (norsk, bokmål)",direction:"ltr"},{id:"nl-be",value:"nl-be",displayString:"België (Nederlands)",direction:"ltr"},{id:"nl-nl",value:"nl-nl",displayString:"Nederland (Nederlands)",direction:"ltr"},{id:"pl-pl",value:"pl-pl",displayString:"Polska (polski)",direction:"ltr"},{id:"pt-br",value:"pt-br",displayString:"Brasil (português)",direction:"ltr"},{id:"pt-pt",value:"pt-pt",displayString:"Portugal (Português)",direction:"ltr"},{id:"ru-xl",value:"ru-xl",displayString:"Международное издание (Pусский)",direction:"ltr"},{id:"ru-ru",value:"ru-ru",displayString:"Россия (Pусский)",direction:"ltr"},{id:"sv-se",value:"sv-se",displayString:"Sverige (svenska)",direction:"ltr"},{id:"te-in",value:"te-in",displayString:"India (తెలుగు)",direction:"ltr"},{id:"th-th",value:"th-th",displayString:"ไทย (ไทย)",direction:"ltr"},{id:"tr-tr",value:"tr-tr",displayString:"Türkiye (Türkçe)",direction:"ltr"},{id:"vi-vn",value:"vi-vn",displayString:"Việt Nam (Tiếng Việt)",direction:"ltr"},{id:"zh-cn",value:"zh-cn",displayString:"中华人民共和国 (简体中文)",direction:"ltr"},{id:"zh-hk",value:"zh-hk",displayString:"香港特别行政區 (繁體中文)",direction:"ltr"},{id:"zh-tw",value:"zh-tw",displayString:"台灣 (繁體中文)",direction:"ltr"}];function n(e,t){return e.displayString<t.displayString?-1:e.displayString>t.displayString?1:0}function r(e){if(""!==document.dir)return"rtl"===document.dir;const t=o.find((t=>t.id===e));return t&&"rtl"===t.direction}},84551:function(e,t,i){function o(e,t,i,o,n,r,a,s,l,d,c,u){const h=o&&o.length?o[0]-1:0,p=e&&parseInt(e.substr(4,1)),g=r&&r.slice(h,h+p),m=e&&parseInt(e.substr(1,1)),f=o&&o.length?(o[0]+1)/2:1;return{width:m&&a&&m*a+(m-1)*s,height:g&&g.reduce(((e,t)=>e+t))+(p-1)*s,slot:l||i&&i.substr(4)&&parseInt(i.substr(4)),template:t,row:n||0===n?n+f:void 0,col:d>0?d:o&&o[1],badgeType:c,traceIdIndex:u}}i.d(t,{s:function(){return o}})},51873:function(e,t,i){i.d(t,{$Y:function(){return n},Q8:function(){return s},jz:function(){return l},pj:function(){return a}});var o=i(16517);var n,r;function a(e){return e?[{isDarkMode:!0,hexColor:r.imgDark},{isDarkMode:!1,hexColor:r.imgLight}]:[{isDarkMode:!0,hexColor:r.noImgDark},{isDarkMode:!1,hexColor:r.noImgLight}]}function s(e){return e.enableAnimatedShowMoreBtn?"animated":e.enableFilledIconOnHover?"fillediconhover":e.noBackPlateOnRest?"nobackplate":"default"}function l(e){return`https://www.msn.com/${o.jG.CurrentMarket}/community/channel/${e}`}!function(e){e.default="default",e.condensed="condensed",e.infoPane="infoPane",e.infoPane1x3y="infoPane1x3y",e.infoPaneSplitVertical="infoPaneSplitVertical",e.infoPaneSplitHorizontal="infoPaneSplitHorizontal"}(n||(n={})),function(e){e.imgLight="#F5F5F5",e.imgDark="#2E2E2E",e.noImgLight="#DEDEDE",e.noImgDark="#222"}(r||(r={}))},25295:function(e,t,i){i.d(t,{B:function(){return o}});const o={_60x60:{width:60,height:60},_82x82:{width:82,height:82},_104x84:{width:104,height:84},_141x250:{width:141,height:250},_180x88:{width:180,height:88},_203x114:{width:203,height:114},_216x114:{width:216,height:114},_220x124:{width:220,height:124},_220x178:{width:220,height:178},_238x120:{width:238,height:120},_240x129:{width:240,height:129},_240x253:{width:240,height:253},_242x144:{width:242,height:144},_242x176:{width:242,height:176},_300x156:{width:300,height:156},_300x169:{width:300,height:169},_300x174:{width:300,height:174},_300x200:{width:300,height:200},_300x225:{width:300,height:225},_300x282:{width:300,height:282},_300x304:{width:300,height:304},_300x326:{width:300,height:326},_300x462:{width:300,height:462},_306x197:{width:306,height:197},_385x225:{width:385,height:225},_406x304:{width:406,height:304},_486x304:{width:486,height:304},_468x304:{width:468,height:304},_604x296:{width:604,height:296},_612x304:{width:612,height:304},_612x326:{width:612,height:326},_612x462:{width:612,height:462},_628x372:{width:628,height:372}}},75351:function(e,t,i){i.d(t,{MW:function(){return s},Z1:function(){return c},nj:function(){return l}});var o=i(38156),n=i(65135),r=i(12611),a=i(44772);const s={contentCardName:"ContentCard",destination:"destination",flexCard:"FlexCard",hideName:"Hide",relatedStories:"RelatedStories",showRelatedStories:"ShowRelatedStories",saveName:"Save",seeMoreName:"Card Action Ellipsis",showFewerName:"Fewer stories like this",showMoreName:"More stories like this",undoShowFewer:"Undo fewer stories like this",undoShowMore:"Undo more stories like this",undoSaveName:"UndoSave",webCardName:"WebCard",webContentName:"WebContent",clickableProviderIcon:"Provider Icon"},l=(e,t,i,n,r,a=s,l)=>{if(!e)return;const c=d(t,i);let u,h;r?(u=e.addOrUpdateChild({name:a.webCardName,content:c}),h=u.addOrUpdateChild({name:a.webContentName,type:o.c9.Headline,behavior:o.wu.Navigate,content:c,ext:n})):(u=e.addOrUpdateChild({name:a.contentCardName,type:o.c9.ContentCard,content:c}),h=u.addOrUpdateChild({name:a.destination,type:o.c9.Headline,behavior:o.wu.Navigate,content:c,ext:n}));const p=u.addOrUpdateChild({name:a.seeMoreName,type:o.c9.ActionButton,behavior:o.wu.More,content:c}),g=u.addOrUpdateChild({name:a.saveName,type:o.c9.ActionButton,behavior:o.wu.Save,content:c}),m=u.addOrUpdateChild({name:a.hideName,type:o.c9.ActionButton,behavior:o.wu.Hide,content:c}),f=u.addOrUpdateChild({name:a.showMoreName,type:o.c9.ActionButton,behavior:o.wu.Like,content:c}),v=u.addOrUpdateChild({name:a.showFewerName,type:o.c9.ActionButton,behavior:o.wu.Dislike,content:c}),b=u.addOrUpdateChild({name:a.undoShowMore,type:o.c9.ActionButton,behavior:o.wu.Unlike,content:c}),y=u.addOrUpdateChild({name:a.undoShowFewer,type:o.c9.ActionButton,behavior:o.wu.Undislike,content:c}),x=e.addOrUpdateChild({name:s.relatedStories,type:o.c9.ContentCard,content:c}),C=e.addOrUpdateChild({name:s.showRelatedStories,type:o.c9.ActionButton,behavior:o.wu.Show,content:c}),w=e.addOrUpdateChild({name:s.flexCard,type:o.c9.ContentCard,content:c}),T=e.addOrUpdateChild({name:a.clickableProviderIcon,type:o.c9.ActionButton,behavior:o.wu.Navigate,content:c}),{zone:S}=e.contract||{};S&&(u.contract.zone=S,h.contract.zone=S);let k={componentRoot:e,contentCard:u,destination:h,seeMore:p,save:g,showMore:f,showFewer:v,undoShowMore:b,undoShowFewer:y,hide:m,relatedStories:x,showRelatedStories:C,clickableProviderIcon:T};return l&&(k=Object.assign(Object.assign({},k),{flexcard:w})),k},d=(e,t)=>{const i=e||{},o=t||{},n=i.provider&&i.provider.name,s=o&&o.subCategory||i&&i.category&&i.category.label||i&&i.category,l=i.title,d=i.id,c=o&&o.category||i&&i.category&&i.category.product||i&&i.category,u=(0,r.cx)(i.type),h=(0,a.ne)(u||i.type);return{brand:n,category:s,headline:l,id:d,isLocal:i.isLocalContent||o.isLocalContent,type:h,vertical:c}};function c(e){if(!e)return;const t=new URL(e),i=n.M0.getRequestId();return i&&t.searchParams.set("cvid",i),t.toString()}},76859:function(e,t,i){i.d(t,{C7:function(){return a},Nv:function(){return o},OO:function(){return s},X9:function(){return l},sn:function(){return r}});var o,n=i(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"}(o||(o={}));const r=146,a=300,s=12,l=(0,n.Z)((e=>Array(e).fill(r)))},27326:function(e,t,i){i.d(t,{AO:function(){return E},Ae:function(){return F},CI:function(){return L},Jl:function(){return N},LP:function(){return q},PZ:function(){return B},Tb:function(){return U},UN:function(){return _},Xe:function(){return H},Xq:function(){return J},_g:function(){return M},d0:function(){return W},e_:function(){return j},i2:function(){return P},nA:function(){return V},ny:function(){return D},sA:function(){return G},so:function(){return R},vp:function(){return Z}});var o=i(74045),n=i(64893),r=i(59115),a=i(11684),s=i(75351),l=i(76859),d=i(84551),c=i(25295),u=i(51873),h=i(73543),p=i(5020),g=i(53909),m=i(11363),f=i(44772),v=i(65135),b=i(38156),y=i(91483),x=i(50640),C=i(4253),w=i(12710),T=i(16517),S=i(52965),k=i(99478),$=i(58958),O=i(80368),A=i(4680);function L(e){var t,i;const{additionalHeaders:n,cardActionBitMask:r,cardActionClickHandler:a,cardMetadata:u,cardSlot:g,colWidthPx:m,configOptions:y={},enableRichSocialReaction:x,getReplacementCardsInlineCallback:C,gutterPx:k,initCardAction:$,isAnaheimDesign:O,isBlurred:L,isHubDesign:_,isNarrowTitleFooterGap:I,isProviderInFooter:R,isPublisherPage:K,hideCardCallback:ee,layoutGap:ie,layoutTemplateName:ne,localizedStrings:ae,mouseenterHandler:se,mouseleaveHandler:le,openLinksInNewTab:de,parentTelemetryObject:ce,refreshFeedCallback:ue,rowCount:he,rowHeightPx:pe,sdCardActionClickHandler:ge,stockImageData:me,userSubscriptionData:fe,visualReadinessCallback:ve,displaySettings:be}=e,ye=H(u),xe={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{cardContent:Ce,metadata:we,type:Te}=ye,{grid_area:Se,layouts:ke,cardDomOrder:$e,telemetryRowCol:Oe}=g,{abstract:Ae,colorSamples:Le,id:Me,destinationUrl:Fe,locale:_e,title:De,publishedDateTime:Pe,provider:He,badges:Ie,defaultAnchorTarget:Ee,videoFiles:Be}=Ce,Re=F(ye),Ue=B(u,r),je=function(e,t){if(!e)return;if(!t)return e.cardActionsTooltips;const{cardActionsTooltips:i,showMoreV2:o,showFewerV2:n,undoShowMoreV2:r}=e,a=i&&(t.enableSaveButton||!o);return Object.assign(Object.assign({},i),{showMore:a?i.showMore:o,showFewer:a?i.showFewer:n,undoShowMore:a?i.undoShowMore:r})}(ae,y),Ne=Te===f.PL.WebContent,{alignFooters:Ge,availableActions:Ze,childExperienceReferences:ze={},childExperienceReferencesWC:We={},disableCardTitleTooltip:Ve,disableHideOnHover:qe,disableSeeMoreButton:Je,enableAnimatedShowMoreBtn:Ke,enableArticleCardHoverContrast:Ye,enableArticleTimestamps:Qe,enabledBadgeTypes:Xe,enableEverGreenWebContent:et=!1,enableFeedSuperCards:tt,enableFilledIconOnHover:it,enableFlexCard:ot,enableHideStoryFeedback:nt,enableImageHoverZoom:rt,enableInfopaneLike2cCard:at,enableLinearFeed2cVerticalGradientCard:st,enableNeutralFilledShowMoreIcon:lt,enableNewTimestampFormatForJAJP:dt,enableSaveButton:ct,enableSuperVideoCard:ut,enableTitleClickableOnly:ht,enableTitleForTruncate:pt,enableVerticalGradientCard:gt,enableVideo2uVerticalGradient:mt=!1,enableWCCardAction:ft,enableWCSaveButton:vt,enableWebContentSocialReactions:bt,feedFontSize:yt,fixedCardHeight:xt,flexCardExpandedByDefault:Ct,fontFamilyOnCardContent:wt,gradientType:Tt,headingLineHeight:St,hideNewsAbstract:kt,isDynamicFeed:$t,isImage32:Ot,isImage43:At,isMsnHpExternalLinkCard:Lt,isProviderIconClickable:Mt,largeFeedFontSize:Ft,miniMediaIndicatorsIcons:_t,noBackPlateOnRest:Dt,noImageFeedFontSize:Pt,openArticleInNewTab:Ht,openPersonalizeWithoutRouter:It,preconsumptionCardConfig:Et,previewModeEnableLayouts:Bt,shouldOpenArticlesInOverlay:Rt,showCardInfoWhenHover:Ut=!1,showColorfulHalfUContentCard:jt,showRelatedStoriesOnHover:Nt=!1,telemetryConstants:Gt={},twoColumnFeedFontSize:Zt,twoColumnHeadingLineHeight:zt,useArticleCardTemplate:Wt,useGamingMediaTemplateInRiver:Vt,useHighQualityImage:qt,useHomepageTelemetry:Jt=!1,useInfopaneSlideTemplate:Kt=!1,useLargeFontSize:Yt,useMobile:Qt,usePerspectiveCardTemplate:Xt=!1,usePreviewCardTemplate:ei=!1,useSmallFontSize:ti,useTitleFontSize:ii,useVideoPreviewTemplate:oi=!1,zoomRatio:ni,isMsnMobile:ri,disableColorSampling:ai,enableAbstractFor2x1yCardWithImage:si,enableFeedSuperCardsSolidColor:li,disableSaveButton:di,useArrowIcons:ci,useLightShadow:ui,doubleWideArticleCardTitleSize:hi}=y,pi=(0,s.nj)(ce,Ce,we||ye,void 0,Ne,Object.assign(Object.assign({},s.MW),Gt),ot),gi=We.socialBarWC||ze.socialBarWC,mi=We.overlayWC,fi=We.videoCardWC||ze.videoCard,vi=We.gamingStreamCard,bi=We.preconsumptionArticleCardWC,yi=We.articleTopComment,xi=We.articleRelatedStories;U(Ue,pi);const Ci=0!=(Ue&o.O7.hide)||nt&&(0!=(Ue&o.O7.showFewer)||0!=(Ue&o.O7.hidden));let wi;Wt&&(wi=Z(null==Re?void 0:Re.colorSamples,Le,null==Re?void 0:Re.url));const Ti=Te===f.PL.Video,Si=Ti&&oi,ki=we?!we.reactionSummary:u&&!u.reactionSummary,$i=!Bt||Bt.includes(l.Nv._1x_2y),Oi=!Bt||Bt.includes(l.Nv._2x_2y),Ai=Ne&&u&&u.subType===f.PL.GamingVideo,Li=J(ae,Ie,Xe);let Mi=Fe;"winWidgets"!==T.jG.AppType&&"windowsNewsPlus"!==T.jG.AppType||(Mi=(0,s.Z1)(Mi));let Fi,_i,Di=!1,Pi=!1,Hi="";we&&we.relatedCards&&we.relatedCards.length>=3&&(Pi=!0,Fi=function(e,t,i,o,n,r,a,l,d={},c,u,h){if(!e)return[];return e.map((e=>{const{locale:p,provider:g,publishedDateTime:m,title:v,url:b,id:y,abstract:x,type:C,category:w,relatedContentSource:T}=e;if(!v||!g)return{id:y,relatedContentSource:T,grid_area:null,card_template_type:null};let S;if(r){const t=(0,s.nj)(r,e,null);t&&(S={contentCard:t.contentCard,contentCardTelemetryObject:t.contentCard,button:t.seeMore&&t.seeMore.getMetadataTag(),destination:t.destination,buttonTelemetryObject:t.seeMore,seeMore:t.seeMore})}const k=B(e,i),{cardActionsTooltips:$,crawledContentLabel:O}=t,L=C===f.PL.WebContent,M=b||(0,A.ph)(e,p,w.product,w.label),{enableArticleTimestamps:F,enableNewTimestampFormatForJAJP:_,openPersonalizeWithoutRouter:D,openArticleInNewTab:H,isProviderIconClickable:I,useArrowIcons:R,fontFamilyOnCardContent:U,enableFilledIconOnHover:G,disableCardTitleTooltip:Z,enableTitleForTruncate:z,disableColorSampling:W,enableAbstractFor2x1yCardWithImage:q,enableFeedSuperCardsSolidColor:J}=d;return{id:y,abstract:x,grid_area:null,card_template_type:null,cardActionStatus:!L&&k,cardActionClickHandler:o,cardActionsTooltips:$,crawledContentLabel:O,isWebContent:L,destinationUrl:j(M),enableRichSocialReaction:!L&&a,isProviderIconClickable:I,useArrowIcons:R,locale:p,title:v,providerData:P(g,L,d.publisherSVGLogosHeight),publishedDateTime:F&&`${V(_,new Date(m),p,t)}`,toggleCardActionMenu:(e,t)=>E(e,t,o,n,!0,!0,c,D),telemetryContext:S,openLinksInNewTab:l,openArticleInNewTab:H,ariaLabel:N(v,g,t),actionsArrayOverride:u,socialBarWCConfigInfo:h,metadata:e,fontFamilyOnCardContent:U,enableFilledIconOnHover:G,relatedContentSource:T,disableCardTitleTooltip:Z,enableTitleForTruncate:z,disableColorSampling:W,enableAbstractFor2x1yCardWithImage:q,enableFeedSuperCardsSolidColor:J}}))}(we.relatedCards,ae,r,a,$,pi&&pi.relatedStories,x,de,y,ue,void 0,gi),Di=Xt,Hi=Fi[0].relatedContentSource),oe()&&!te().includes("pspux:")&&v.M0.addOrUpdateTmplProperty("pspux","0"),we&&we.topComments&&we.topComments.length>0&&(_i=null===(t=we.topComments[0])||void 0===t?void 0:t.id);let Ii=Qe&&`${V(dt,new Date(Pe),_e,ae)}`;Ii=Ne&&et&&function(e){try{const t=new Date(e),i=(new Date).getTime()-t.getTime();return Math.ceil(i/864e5)>3}catch(e){return!0}}(Pe)?null:Ii;const Ei=document.getElementsByTagName("html")[0].dir,Bi=Ci?(0,h.to)(e,Ue,Me,ce):{id:Me,grid_area:Se,telemetryContext:pi,defaultAnchorTarget:Ee,card_template_type:re(y,Ne,Ai),abstract:Ae,cardActionStatus:(!Ne||ft||vt)&&Ue,cardActionClickHandler:a,cardActionsTooltips:je,colorSamples:z(Le,null==Re?void 0:Re.url),externalVideoFiles:Ti?Be:void 0,destinationUrl:Mi,dir:Ei,title:De,contentType:Te,hideCardCallback:ee,sdCardActionClickHandler:ge,imagePriority:!1,isWebContent:Ne,contentTypeLabel:null===(i=G(ae,Te))||void 0===i?void 0:i.toLocaleUpperCase(),contentIndicator:Re||Ti?W(Te,O&&_t):void 0,metadata:we||u,openLinksInNewTab:de,openArticleInNewTab:Ht,crawledContentLabel:null==ae?void 0:ae.crawledContentLabel,setDisplacementHandler:Y,removeDisplacementHandler:X,providerData:P(He,Ne,y.publisherSVGLogosHeight),handleContentCardClickOverride:e=>M(Rt,Mi,e),toggleCardActionMenu:(e,t)=>E(e,t,a,$,null,!nt,ue,It,ki),disableSeeMoreButton:Je,enableAnimatedShowMoreBtn:Ke,enableRichSocialReaction:(!Ne||bt||ft||vt)&&x,isProviderIconClickable:Mt,optedOutOfReactions:ki,isAnaheimDesign:!!O,isHubDesign:!!_,userSubscriptionData:fe,isPublisherPage:K,usePreviewCardTemplate:ei,useVideoPreviewTemplate:oi,enableVideo2uVerticalGradient:mt,showCardInfoWhenHover:Ut,useInfopaneSlideTemplate:Kt,useHomepageTelemetry:Jt,locale:_e,articleCardBackgroundColor:wi,shouldOpenInOverlay:Rt,disableHideOnHover:qe,publishedDateTime:Ii,useSmallFontSize:ti,useLargeFontSize:Yt,feedFontSize:yt,noImageFeedFontSize:Pt,largeFeedFontSize:Ft,twoColumnFeedFontSize:Zt,twoColumnHeadingLineHeight:zt,enableVerticalGradientCard:gt,gradientType:Tt,gradientDeg:O||At?q():void 0,ariaLabel:N(De,He,ae,Te),isProviderInFooter:R,isNarrowTitleFooterGap:I,mouseenterHandler:se,mouseleaveHandler:le,layoutGap:ie,socialBarWCConfigInfo:gi,overlayConfigInfo:mi,preconsumptionArticleCardConfigInfo:bi,fixedCardHeight:xt,preconsumptionCardConfig:Et,enableImageHoverZoom:rt,enableTitleClickableOnly:ht,noBackPlateOnRest:Dt,alignFooters:Ge,showColorfulHalfUContentCard:jt,isImage32:Ot,isImage43:At,headingLineHeight:St,useTitleFontSize:ii,fontFamilyOnCardContent:wt,zoomRatio:ni,enableFilledIconOnHover:it,enableNeutralFilledShowMoreIcon:lt,enableInfopaneLike2cCard:at,enableLinearFeed2cVerticalGradientCard:st,enableArticleCardHoverContrast:Ye,isDynamicFeed:$t,hideNewsAbstract:kt,flexCardExpandedByDefault:Ct,disableCardTitleTooltip:Ve,enableTitleForTruncate:pt,videoCardConfigInfo:fi,gamingStreamCardConfigInfo:vi,enableSaveButton:!1!==ct||Ne&&vt,showMoreAnimationTitle:ae&&ae.showMoreAnimationTitle,isBlurred:L,useArrowIcons:ci,relatedStoriesHeadingLabel:ae&&("cf"===Hi?ae.relatedStoriesCfHeading:ae.relatedStoriesHeading),showRelatedStoriesOnHover:Nt,enabledBadgeTypes:Xe,subCardDataMappers:Di||ot?{mapAriaLabel:(e,t)=>N(e,t,ae),mapCardActionStatus:e=>B(e,r),mapPublishedDateTime:e=>Qe&&`${V(dt,e,_e,ae)}`}:void 0,badge:Li,articleTopCommentConfigInfo:yi,articleTopCommentId:_i,articleRelatedStoriesConfigInfo:xi,relatedCardData:Fi&&Fi,enableWCSaveButton:!Ne||vt,enableWCCardAction:ri?ft:!Ne||ft,additionalHeaders:n,actionsArrayOverride:Ne&&Ze||void 0,setDisplacementAndTitleOnHover:Q,visualReadinessCallback:ve,displaySettings:be,actionMenuLocalizedStrings:ae&&ae.actionMenuLocalizedStrings,useMobile:Qt,refreshFeedCallback:ue,disableColorSampling:ai,enableAbstractFor2x1yCardWithImage:si,enableFeedSuperCardsSolidColor:li,disableSaveButton:!Ne&&di,useLightShadow:ui,doubleWideArticleCardTitleSize:hi,getReplacementCardsInlineCallback:C};xe.cards.push(Bi);let Ri=!1;const Ui=u.traceIdIndex;return Object.keys(ke).forEach((e=>{const t=ke[e],i=$e&&$e[e],o=(0,d.s)(t,ne,Se,Oe&&Oe[e],he&&he[e],pe&&pe[e],m,k,i,void 0,Li&&Li.type,Ui);if(Ci){const n=(0,p.df)(Bi&&Bi.telemetryContext,o);return void xe[e].push({cardSize:t,id:Me,grid_area:Se,card_dom_order:i,telemetryContext:n})}const n=Object.assign({},pi);let r;n&&n.contentCard&&n.destination&&(n.destination=n.contentCard.addOrUpdateChild(Object.assign(Object.assign({},n.destination.contract),{type:b.c9.Headline,ext:o}))),Fi&&n&&n.relatedStories&&(r=Fi.map((e=>Object.assign(Object.assign({},e),{telemetryContext:Object.assign(Object.assign({},n),{relatedStories:Object.assign(Object.assign({},n.relatedStories),{ext:o})})})))),Jt&&(n.contentCard=null,n.destination.contract.name="HeadlineItemViewModel");const a={cardSize:t,id:Me,grid_area:Se,card_dom_order:i,isProviderInFooter:R,isNarrowTitleFooterGap:I,telemetryContext:n};if(t===l.Nv._1x_1y&&(Kt?(Re&&(a.imageData=D(ye,c.B._300x225,ve,O,qt)),a.abstract=void 0,a.card_template_type="infopane-slide-card"):ei?(Re&&(a.imageData=D(ye,c.B._104x84,ve,O,qt)),a.abstract=void 0,a.card_template_type="content-card-preview-1x"):(Re&&(a.imageData=D(ye,c.B._82x82,ve,O,qt,L)),Ti&&(a.contentIndicator=w.Z),a.abstract=Ne&&!y.hideHalfUAbstract?Ae:void 0,a.ariaLabel=Ne&&!y.hideHalfUAbstract&&N(De,He,ae))),t===l.Nv._1x_2y)if(Kt)Re&&(a.imageData=D(ye,c.B._300x225,ve,O,qt)),a.abstract=void 0,a.card_template_type="infopane-slide-card";else if(Re)if(Si&&$i){a.abstract=void 0,a.articleCardBackgroundColor=Z(null==Re?void 0:Re.colorSamples,Le,!1),a.card_template_type="video-card";let e=c.B._300x225;tt&&be?e={width:be.cardWidth,height:225}:tt&&ut&&!be&&(e=c.B._300x156),a.imageData=D(ye,e,ve,O)}else if(Wt){let e=c.B._300x225;Ot?e=c.B._300x200:tt&&!be?e=c.B._300x156:tt&&be&&(e={width:be.cardWidth,height:Math.round(be.cardWidth/1.33)}),Re.width>=e.width&&Re.height>=e.height?(a.abstract=void 0,a.imageData=D(ye,e,ve,O,qt,L)):a.articleCardBackgroundColor=Z(null==Re?void 0:Re.colorSamples,Le,!1),Nt&&(Pi&&oe()&&te().includes("pspux:0")&&v.M0.addOrUpdateTmplProperty("pspux","1"),Di&&(a.relatedCardData=r,a.card_template_type="perspective-card"))}else if(ei){const e=c.B._306x197;a.imageData=D(ye,e,ve,O),a.abstract=void 0,a.card_template_type="content-card",a.imagePriority=!0}else{a.card_template_type="content-card";let e=c.B._300x156;Ot&&(e=c.B._300x200),Re.width>=e.width&&Re.height>=e.height?(a.abstract=void 0,a.imagePriority=!0,a.imageData=D(ye,e,ve,O,qt)):a.imageData=null}if(t===l.Nv._1x_3y&&ei){if(Re){let e=c.B._300x174;Ot&&(e=c.B._306x197),a.imageData=D(ye,e,ve,O,qt),Lt?a.isMsnHpExternalLinkCard=Lt:a.abstract=void 0,a.imagePriority=!0}else a.isProviderInFooter=!1;a.card_template_type="content-card"}if(t===l.Nv._2x_2y){let e=c.B._82x82,t=re(y,Ne,Ai),i=ye;Re&&(Si&&Oi?(e=c.B._612x304,Bt&&Bt.includes(l.Nv._2x_2y)&&(e=c.B._468x304),a.articleCardBackgroundColor=Z(null==Re?void 0:Re.colorSamples,Le,!1),t="video-card",a.abstract=void 0):Wt?st?(e=c.B._612x304,a.abstract=void 0):O&&(gt||At)?gt?Re.width>=c.B._612x304.width&&Re.height>=c.B._612x304.height&&(e=c.B._612x304,a.abstract=void 0):At&&(e=c.B._406x304):At?e=c.B._406x304:Re.width>=c.B._468x304.width&&Re.height>=c.B._468x304.height&&(e=c.B._468x304):Re.width>=c.B._612x304.width&&Re.height>=c.B._612x304.height&&(e=c.B._612x304,t="infopane-slide-card",a.abstract=void 0));const o=!(Re&&Re.url)||e===c.B._82x82;o&&!Wt&&me&&(e=c.B._612x304,t="infopane-slide-card",i=(0,S.Z)(ye),i.cardContent.images=[me],a.abstract=void 0),o&&Wt&&(i=(0,S.Z)(ye),i.cardContent.images=void 0,a.articleCardBackgroundColor=Z(null==Re?void 0:Re.colorSamples,Le,!1)),Pi&&oe()&&te().includes("pspux:0")&&v.M0.addOrUpdateTmplProperty("pspux","1"),Di&&(a.relatedCardData=r,t="perspective-card"),(_i||(null==Fi?void 0:Fi.length)>0)&&(Ri||(v.M0.addOrUpdateTmplProperty("LinearFeedFlexCardViewed","1"),Ri=!0),ot&&(t="flex-article-card")),a.card_template_type=t,a.imageData=D(i,e,ve,O,qt,L),a.imagePriority=!1}if(t===l.Nv._2x_1y){if(Re){const e=c.B._216x114;a.imageData=D(ye,e,ve,O,qt),si||(a.abstract=void 0)}ai?(a.articleCardBackgroundColor=void 0,a.colorSamples=void 0):a.articleCardBackgroundColor=Z(null==Re?void 0:Re.colorSamples,Le,null==Re?void 0:Re.url)}Ai&&Vt&&(a.card_template_type="gaming-stream-card"),xe[e].push(a)})),xe}function M(e,t,i){const o=e&&(0,O.jI)(t);if(window.dispatchEvent(new CustomEvent("article-link-invoked",{bubbles:!1,cancelable:!0,composed:!o,detail:{destinationUrl:t,shouldOpenOverlay:o}})),!o)return!0;i.preventDefault()}function F(e){return e&&e.cardContent&&e.cardContent.images&&e.cardContent.images.length&&e.cardContent.images[0].url?e.cardContent.images[0]:null}function _(e){return e&&e.images&&e.images.length&&e.images[0].url?e.images[0]:null}function D(e,t,i,o,n,r){const a=F(e);if(!a)return null;const{attribution:s,title:l=e.cardContent.title,url:d,focalRegion:c}=a||{};if(!d)return null;const u=[];let h;l&&u.push(l),s&&u.push(s),u.length&&(h=u.join(" - "));const p=(0,g.mL)(d,{width:t.width,height:t.height,focalRegion:c,enableDpiScaling:o,quality:o&&ne()?60:90,devicePixelRatio});let m;return r&&(m=(0,g.mL)(d,{width:t.width,height:t.height,focalRegion:c,enableDpiScaling:!1,quality:1})),{imageWidth:t.width.toString(),imageHeight:t.height.toString(),source:p,blurredSource:m,altText:h,visualReadinessCallback:i}}function P(e,t,i){if(!e)return{logoImage:"",name:void 0};let o="";const n={width:16,height:16,enableDpiScaling:!1,quality:100,format:g.D3.PNG};!t&&e.logo&&e.logo.id?o=(0,g.zz)(e.logo.id,n):(e.logoUrl||e.logo&&e.logo.url)&&(o=(0,g.mL)(e.logoUrl||e.logo.url,n));const r={logoImage:o,id:e.id,name:e.name,profileId:e.profileId};return i&&(r.immersiveCardSvgLogo=K(i,e.darkThemeSVGLogo),r.svgLogo=(0,$.Y)()?r.immersiveCardSvgLogo:K(i,e.lightThemeSVGLogo)),r}function H(e){if(e&&e.cardContent){const t=e.cardContent.destinationUrl;return t&&(e.cardContent.destinationUrl=j(t)),e}const t=e;let i;i=t.type===f.PL.Slideshow?"SlideshowPreview":t.type===f.PL.Video?"VideoPreview":t.type===f.PL.WebContent?"WebContentPreview":"ArticlePreview",t.cardContent={id:t.id,destinationUrl:j(t.url),type:i,title:t.title,abstract:t.abstract,provider:t.provider,locale:t.locale,images:t.images,publishedDateTime:t.publishedDateTime,colorSamples:t.colorSamples,badges:t.badges,topics:t.topics,videoFiles:t.externalVideoFiles||{},isLocalContent:t.isLocalContent};const o=t.type;return t.metadata||o===f.PL.AmplifyAd||o===f.PL.NativeAd||o===f.PL.CmsAd||(t.metadata=function(e){var t,i,o,n,r,a,s,l;if(e&&e.metadata)return e.metadata;const d=e,c=null===(i=null===(t=d.cardContent)||void 0===t?void 0:t.destinationUrl)||void 0===i?void 0:i.split("/");return{abstract:d.abstract,abstractLength:null===(o=d.abstract)||void 0===o?void 0:o.length,titleLength:null===(n=d.title)||void 0===n?void 0:n.length,category:d.category||(null==c?void 0:c.length)>=5&&c[4],subCategory:(null==c?void 0:c.length)>=6&&c[5],primaryImage:{height:d.images&&(null===(r=d.images[0])||void 0===r?void 0:r.height),width:d.images&&(null===(a=d.images[0])||void 0===a?void 0:a.width)},locale:d.locale,feed:{id:null===(s=d.feed)||void 0===s?void 0:s.id},kicker:[d.feed],actions:null===(l=d.actions)||void 0===l?void 0:l.map((e=>I[e]||e)),reactionSummary:d.reactionSummary,commentSummary:d.commentSummary,topComments:d.topComments,relatedCards:d.relatedCards,topics:d.topics}}(t)),t}const I={liked:"like",unliked:"unlike",saved:"save"};function E(e,t,i,o,n=!1,r=!1,a,s,l){let d=t,c=e;t.detail&&t.detail.event&&t.detail.data&&(d=t.detail.event,c=this.getListCardMetadata(t.detail.data),n=!0);const{cardSize:u,id:h,title:p,destinationUrl:g,imageData:m,providerData:f,cardActionStatus:v,telemetryContext:{seeMore:b},actionsArrayOverride:y,metadata:x}=c;o({cardSize:u,enabled:!0,buttonElement:d.currentTarget,article:{id:h,headlineTitle:p,href:g,image:{alt:m&&m.altText,src:m&&m.source},provider:{id:f.id,name:f.name,image:{alt:f.name,src:f.logoImage}},abstract:x.abstract},parentTelemetryObject:b,onStatusChange:i,cardStatus:v,updateFeedOnHide:n,showToast:r,refreshFeedCallback:a,openPersonalizeWithoutRouter:s,actionsArrayOverride:y,isReactionsOptedOut:l})}function B(e,t){if(e&&e.placement&&(e.placement.region&&["rightRail","rightrail"].includes(e.placement.region)||e.placement.isAdFeedbackEnabled)&&(t|=o.O7.enabled),!(t&&t&o.O7.enabled))return o.O7.none;const{actions:i=[]}=e.metadata||e;let n=o.O7.enabled;return i.forEach((e=>{"save"===e&&(e="saved"),"liked"!==e&&"like"!==e||(e="showMore");const i=o.O7[e];i&t&&(n|=i)})),n}function R(e){const t=[];return Object.keys(o.O7).forEach((i=>{o.O7[i]&e&&t.push(i)})),t}function U(e,t){t&&t.contentCard&&0!=(e&o.O7.enabled)&&0!=(e&o.O7.saved)&&t.contentCard.addOrUpdateChild({name:s.MW.undoSaveName,type:b.c9.ActionButton,behavior:b.wu.UndoSave,content:t.save.contract.content},t.save)}function j(e){if(!e)return;const t=new URLSearchParams(window.location.search).getAll("item");if(!t||!t.length)return e;const i=new URL(e);return t.forEach((e=>{const t=i.search?"&":"?";-1===i.search.indexOf(e)&&(i.search+=`${t}item=${e}`)})),i.toString()}function N(e,t,i,o){if(!e||!(null==t?void 0:t.name)||!(null==i?void 0:i.contentProviderAttributionLabel)||o&&!(null==i?void 0:i.contentTypeFormattingAriaLabel))return null;const n=G(i,o);return n?(0,k.WU)(null==i?void 0:i.contentTypeFormattingAriaLabel,n,e,t.name):(0,k.WU)(i.contentProviderAttributionLabel,e,t.name)}function G(e,t){return t===f.PL.Slideshow?null==e?void 0:e.galleryAriaLabel:t===f.PL.Video?null==e?void 0:e.videoAriaLabel:t===f.PL.WebContent?null==e?void 0:e.crawledContentLabel:void 0}function Z(e,t,i){var o,n,r,a;return(null===(o=null==e?void 0:e.find((e=>e.isDarkMode)))||void 0===o?void 0:o.hexColor)&&(null===(n=null==e?void 0:e.find((e=>!e.isDarkMode)))||void 0===n?void 0:n.hexColor)?e:(null===(r=null==t?void 0:t.find((e=>e.isDarkMode)))||void 0===r?void 0:r.hexColor)&&(null===(a=null==t?void 0:t.find((e=>!e.isDarkMode)))||void 0===a?void 0:a.hexColor)?t:(0,u.pj)(i)}function z(e,t){var i,o;return(null===(i=null==e?void 0:e.find((e=>e.isDarkMode)))||void 0===i?void 0:i.hexColor)&&(null===(o=null==e?void 0:e.find((e=>!e.isDarkMode)))||void 0===o?void 0:o.hexColor)?e:(0,u.pj)(t)}function W(e,t){return e===f.PL.Slideshow?t?x.Z:y.Z:e===f.PL.Video?t?w.Z:C.Z:void 0}function V(e,t,i,o){return e?(0,m.Xk)(t):(0,m.fh)(t,i,o,null,null,!0)}function q(){return(0,n.cN)(T.jG.CurrentMarket)?90:270}function J(e,t,i){if(!e||!t||!i)return;const o=(0,r.wc)(t,i);if(o)switch(o.type){case a.gZ.LOCAL:o.value?o.localizedLabel=o.value:o.localizedLabel=e[o.type+"BadgeLabel"];break;case a.gZ.VIEWS:case a.gZ.TRENDING:case a.gZ.HOT:case a.gZ.OPINION:case a.gZ.EXPLICITLIKE:case a.gZ.FOLLOWEDTREATMENT:case a.gZ.FOLLOWEDTREATMENTTOPIC:case a.gZ.FOLLOWEDTREATMENTPUBLISHER:default:o.localizedLabel=e[o.type+"BadgeLabel"]}return o}function K(e,t){if(!t)return t;const i=t.width&&t.height?e*t.width/t.height:void 0;return{url:t.url,height:e,width:i}}function Y(e,t){if(ee(e.event.target,"MSFT-ATTRIBUTION"))for(const i of ee(e.event.target,"MSFT-ATTRIBUTION").children)if("attribution_container"===i.id){const e=null==i?void 0:i.clientWidth,o=null==i?void 0:i.children[0].clientWidth,n=null==i?void 0:i.children[0],r=e-o<0?e-o:0;"ltr"===t?n.style.left=r+"px":n.style.right=r+"px"}}function Q(e,t,i,o,n){if(Y(e,t),o&&n&&e.event&&e.event.target){const t=e.event.target,o=t.shadowRoot.querySelector(".heading");o&&o.scrollHeight>o.offsetHeight+2?t.setAttribute("title",i):t.setAttribute("title","")}}function X(e,t){if(ee(e.event.target,"MSFT-ATTRIBUTION"))for(const i of ee(e.event.target,"MSFT-ATTRIBUTION").children)if("attribution_container"===i.id){const e=i.children[0];"ltr"===t?e.style.left="0px":e.style.right="0px"}}function ee(e,t){if(!e.children||0===e.children.length)return null;let i=null;const o=function(e,t){if(e.children&&0!==e.children.length)for(const n of e.children)n.nodeName===t&&(i=n),o(n,t)};return o(e,t),i}function te(){const e=v.M0.getPageMetadata();return e&&e.combinedContract&&e.combinedContract.flight&&e.combinedContract.flight.tmpl||""}function ie(e){const t=T.jG.CurrentRequestTargetScope&&T.jG.CurrentRequestTargetScope.pageExperiments;return t&&t.includes(e)}function oe(){return ie("prg-persp2u")||ie("prg-persp2u-c")||ie("prg-persph")||ie("prg-persph-c")}function ne(){const e=window&&window.navigator;if(!e)return!1;const t=e.deviceMemory,i=e.hardwareConcurrency;return t<=2&&i<=2}function re(e,t,i){return e.useGamingMediaTemplateInRiver&&i?"gaming-stream-card":e.enableFeedSuperCards&&t?"web-content-card":e.useArticleCardTemplate?"article-card":"content-card"}},73543:function(e,t,i){i.d(t,{to:function(){return u}});var o,n=i(74045),r=i(88828),a=i(14989),s=i(65135),l=i(76859),d=i(99478),c=i(5020);function u(e,t,i,o,u,p){const{hasRightRail:g,cardMetadata:m,cardSlot:f,localizedStrings:v,initCardAction:b,cardActionClickHandler:y,cardActionDismissCallback:x,refreshFeedCallback:C,goToPersonalizeCallback:w,configOptions:T}=e,{grid_area:S,layouts:k}=f,{enableHideStoryFeedback:$,enableInstantHide:O,enableHideTopics:A,enableDismissCallback:L,useHideConfirmationNewStoryText:M}=T,{undoHideButtonText:F,refreshFeedButtonText:_,reportButtonText:D,dislikeButtonText:P,hideFeedbackCancelText:H,hideFeedbackMuteText:I,hideFeedbackTitle:E,hideConfirmationUpdatingFeedText:B,hideConfirmationDoneText:R}=v,U=m.subItems?(m.subItems||[]).filter((e=>e.id===i))[0]:m,j=(0,c.aU)(o,U,t,O),N=i||m.id,G=(0,r.Bn)().currentColumnArrangement;let Z=l.Nv._1x_2y;if(g&&G){let e=a.K$.c4;switch(G){case a.K$.c5:e=a.K$.c4;break;case a.K$.c4:e=a.K$.c3;break;case a.K$.c3:e=a.K$.c2;break;case a.K$.c2:e=a.K$.c1;break;default:e=a.K$.c4}Z=k[e.toUpperCase()]}else k&&G?Z=k[G.toUpperCase()]:Object.values(k)&&Object.values(k).length&&(Z=Object.values(k)[0]);const z=U&&U.cardContent&&U.cardContent.topics,W=z&&z.length&&z.reduce(((e,t)=>t.weight>e.weight?t:e))||null,V=A&&W&&v.hideOptionCardNotInterestedInNamedTopic?(0,d.WU)(v.hideOptionCardNotInterestedInNamedTopic,W.label):null;W&&s.M0.addOrUpdateTmplString("hidetopic");const q=U&&U.cardContent&&U.cardContent.provider,J=q&&q.id,K=v.mutePublisherButtonText?(0,d.WU)(v.mutePublisherButtonText,null==q?void 0:q.name):null,Y=!$||"infopane"===m.type&&Z===l.Nv._2x_3y,Q=function(e){let t={status:e,action:null,sendRequest:!0};e&n.O7.hidden?(e&n.O7.mute?(t.status=e^n.O7.mute,t.action=n.Us.Mute):e&n.O7.report?(t.status=e^n.O7.report,t.action=n.Us.Report):e&n.O7.showFewer&&e&n.O7.hide?(t.status=e^n.O7.showFewer,t.action=n.Us.ShowFewer):e&n.O7.hideTopic?(t.status=e^n.O7.hideTopic,t.action=n.Us.HideTopic):e&n.O7.dismiss&&(t.status=e^n.O7.dismiss,t.sendRequest=!1),t.status=t.status^n.O7.hidden):t=e&n.O7.hide?{status:e^n.O7.hide,action:n.Us.Hide,sendRequest:!0}:{status:e^n.O7.showFewer,action:n.Us.ShowFewer,sendRequest:!0};return t}(t),X=h(t,v,q,$,!0,Y,O,A,W,M),ee=h(t,v,q,$,!1,Y,O,A,W);return{id:N,grid_area:S,cardSize:Z,cardActionStatus:t,cardActionClickHandler:y,cardActionDismissCallback:L&&x,card_template_type:"hide-story-card",dislikeButtonText:P,enableHideStoryFeedback:$,enableInstantHide:O,enableHideTopics:A,showAdFeedback:u,hideStoryTitleData:X,hideStorySubtitle:A&&E,mutePublisherButtonText:K,openReportDialog:e=>function(e,t,i,o){const{id:n,title:r,url:a,images:s,metadata:l}=e,d={enabled:!0,article:{id:n,headlineTitle:r,href:a,image:{alt:s&&s.length&&s[0].title,src:s&&s.length&&s[0].url},abstract:l.abstract},onStatusChange:i,parentTelemetryObject:o,dialogToOpen:"report"};t(d)}(e,b,y,j.reportButton),personalizeButtonCallback:(e,t)=>{t&&s.M0.sendActionEvent(t.target),w(e)},personalizeButtonTextData:ee,providerId:J,refreshFeedButtonText:_,refreshFeedCallback:C,reportButtonText:D,undoHideButtonCallback:()=>{const e=t&n.O7.hideTopic?W&&W.feedId:J;return y(N,Q.status,Q.action,Q.sendRequest,void 0,e)},undoHideButtonText:F,hideConfirmationDoneText:R,hideConfirmationUpdatingFeedText:B,hideFeedbackMuteText:I,hideFeedbackCancelText:H,telemetryContext:j,adFeedbackProps:p,notInterestedInNamedTopicText:V,associatedTopic:W,currentCardData:U}}function h(e,t,i,r,a,s,l,c,u,h){const{hideConfirmationMuteText:p,hideStoryMuteConfirmationTitle:g,hideConfirmationFewerStoriesText:m,hideStoryDislikeConfirmationTitle:f,hideFeedbackTitle:v,hideStoryFeedbackTitle:b,hideConfirmationManageInterestsText:y,manageTopicsText:x,hideOptionCardTitleText:C}=t;if(r&&e&n.O7.hidden){const r=l?y:x;if(e&n.O7.mute){const e=i&&i.name,n=l?p:g;return a?{text:(0,d.WU)(n,e),dataTag:o.muteConfirmationText}:{text:t.viewMutedPublishersText,dataTag:o.viewMutedPublishersText}}if(e&n.O7.report)return a?{text:t.hideStoryReportConfirmationTitle,dataTag:o.reportConfirmationText}:{text:r,dataTag:o.manageTopicsText};if(e&n.O7.showFewer){const e=l?m:f;return a?{text:e,dataTag:o.dislikeConfirmationText}:{text:r,dataTag:o.manageTopicsText}}if(e&n.O7.dismiss)return a?h?{text:t.hideConfirmationNewStoryText||m,dataTag:o.newStoryConfirmationText}:{text:t.hideConfirmationDismissText||t.hideConfirmationNewStoryText||m,dataTag:o.dismissConfirmationText}:{text:r,dataTag:o.manageTopicsText};if(c&&e&n.O7.hideTopic){const e=u?(0,d.WU)(t.hideConfirmationCardSingleTopic,u.label):t.hideConfirmationCardMultiTopic;return a?{text:e,dataTag:o.hideTopicConfirmationText}:{text:r,dataTag:o.manageTopicsText}}}else if(s)return a?{text:t.hideStoryTitle}:{text:t.personalizeButtonText};return{text:c&&C?C:b||v,dataTag:o.feedbackTitleText}}!function(e){e.dislikeConfirmationText="dislikeConfirmationText",e.feedbackTitleText="feedbackTitleText",e.manageTopicsText="manageTopicsText",e.muteConfirmationText="muteConfirmationText",e.reportConfirmationText="reportConfirmationText",e.viewMutedPublishersText="viewMutedPublishersText",e.hideTopicConfirmationText="hideTopicConfirmationText",e.dismissConfirmationText="dismissConfirmationText",e.newStoryConfirmationText="newStoryConfirmationText"}(o||(o={}))},5020:function(e,t,i){i.d(t,{aU:function(){return s},df:function(){return l}});var o,n=i(38156),r=i(74045),a=i(60483);!function(e){e.hideStoryCard="HideStoryCard",e.confirmButtonName="Personalize",e.confirmButtonHeadline="Personalize my feed",e.undoHideButtonName="undoHide",e.undoHideButtonHeadline="Undo",e.cancelButtonName="Cancel",e.undoButtonName="Undo",e.dislikeButtonName="showFewer",e.mutePublisherButtonName="mute",e.publisherHideModule="PublisherHideModule",e.refreshFeedButtonName="feedRefresh",e.refreshFeedButtonHeadLine="Feed refresh",e.reportButtonName="ReportArticle",e.reportButtonHeadline="Report an issue",e.reportHideModule="ReportHideModule",e.storyHideModule="StoryHideModule",e.hideNamedTopicButton="HideNamedTopic"}(o||(o={}));const s=(e,t,i,a)=>{if(!e)return;const{cardContent:s={},metadata:{category:l,type:d}}=t,{provider:c={}}=s,{metadata:u={}}=s||{},h={brand:s.provider&&s.provider.name,category:u&&u.subCategory||s&&s.category&&s.category.product,headline:s.title,id:s.id,vertical:u.category||l,type:d};const p=function(t){let i;return i=t&r.O7.hidden?t&r.O7.mute?o.publisherHideModule:t&r.O7.report?o.reportHideModule:o.storyHideModule:o.hideStoryCard,e.addOrUpdateChild({name:i,content:Object.assign({},h)})}(i),g=p.addOrUpdateChild({name:o.dislikeButtonName,behavior:n.wu.Dislike,type:n.c9.ActionButton,content:Object.assign(Object.assign({},h),{headline:s.title,id:s.id})}),m=p.addOrUpdateChild({name:o.confirmButtonName,behavior:n.wu.Navigate,type:n.c9.ActionButton,content:Object.assign({},h)}),f=p.addOrUpdateChild({name:a?o.cancelButtonName:o.undoHideButtonName,behavior:n.wu.Unhide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},h),{headline:o.undoHideButtonHeadline})}),v=p.addOrUpdateChild({name:o.mutePublisherButtonName,behavior:n.wu.Mute,type:n.c9.ActionButton,content:Object.assign(Object.assign({},h),{headline:c.name,id:c.id})}),b=p.addOrUpdateChild({name:o.refreshFeedButtonName,behavior:n.wu.Navigate,type:n.c9.ActionButton,content:Object.assign({},h)}),y=p.addOrUpdateChild({name:o.reportButtonName,behavior:n.wu.Report,type:n.c9.ActionButton,content:{headline:o.reportButtonHeadline,id:s.id}}),x=p.addOrUpdateChild({name:o.undoButtonName,behavior:n.wu.Unhide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},h),{headline:o.undoButtonName})}),C=p.addOrUpdateChild({name:o.hideNamedTopicButton,behavior:n.wu.Hide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},h),{headline:o.hideNamedTopicButton})});return{componentRoot:e,hideNamedTopicButton:C,hideStoryCard:p,dislikeButton:g,confirmButton:m,cancelButton:f,mutePublisherButton:v,refreshFeedButton:b,reportButton:y,confirmationUndoButton:x}},l=(e,t)=>{if(!e)return;const i=Object.assign({},e);return e&&e.hideStoryCard&&e.hideStoryCard.contract&&(i.hideStoryCard=new a.D(Object.assign(Object.assign({},e.hideStoryCard.contract),{ext:t}))),i}},11684:function(e,t,i){i.d(t,{AU:function(){return o},K1:function(){return n},MB:function(){return r},gZ:function(){return s},y1:function(){return a}});const o={FeedDwellTime:"feeddwt",numHotBadgeShown:"hbShn",numHoverContentCardShown:"hcShn",numHoveredCard1Sec:"hc1s",numHoveredCard2Sec:"hc2s",numHoveredCard3Sec:"hc3s",numHoveredCard4Sec:"hc4s",numHoveredCard5MoreSec:"hc5smore",numNativeAdsShown:"naShn",numNonHoverContentCardShown:"nonHcShn",numTrendingBadgeShown:"tbShn",numPopularBadgeShown:"pbShn",numOpinionBadgeShown:"obShn"},n="data-mouseoverStartTime",r="data-badge-type",a="ocidctx";var s;!function(e){e.TRENDING="trending",e.HOT="hot",e.VIEWS="views",e.OPINION="opinion",e.LOCAL="local",e.EXPLICITLIKE="explicitLike",e.FOLLOWEDTREATMENT="followed",e.FOLLOWEDTREATMENTTOPIC="followedTopic",e.FOLLOWEDTREATMENTPUBLISHER="followedPublisher"}(s||(s={}))},59115:function(e,t,i){i.d(t,{Ew:function(){return s},JA:function(){return n},Jq:function(){return c},eu:function(){return l},kv:function(){return a},wB:function(){return r},wc:function(){return u},yr:function(){return d}});var o=i(11684);const n=(e,t,i)=>{if(!e||!t)return;const o=e,{href:n}=o;if(n)try{const e=new URL(n);!e.searchParams.get(t)&&i&&(e.host.includes("msn.com")||e.host.includes("msn.cn"))&&(e.searchParams.set(t,i),o.href=e.href)}catch(e){}},r=e=>{if(!e.composedPath||"function"!=typeof e.composedPath)return e.target;{const t=e.composedPath();if(t.length>0)return t[0]}},a=()=>window.performance&&"function"==typeof window.performance.now?window.performance.now():(new Date).getTime(),s=e=>(null==e?void 0:e.toLowerCase())===o.gZ.HOT.toLowerCase(),l=e=>(null==e?void 0:e.toLowerCase())===o.gZ.TRENDING.toLowerCase(),d=e=>(null==e?void 0:e.toLowerCase())===o.gZ.VIEWS.toLowerCase(),c=e=>(null==e?void 0:e.toLowerCase())===o.gZ.OPINION.toLowerCase();function u(e,t){return t?e.filter((e=>t.includes(e.type)))[0]:null}},6371:function(e,t,i){i.d(t,{b:function(){return n}});var o=i(44772);function n(e){switch(e){case o.PL.Article:return 13;case o.PL.Slideshow:return 14;case o.PL.Video:return 15;default:return null}}},66925:function(e,t,i){i.d(t,{h:function(){return a}});var o=i(65135),n=i(68364),r=i(26415);class a{static renderToast(e){this.renderToastCallback?this.renderToastCallback(e):o.M0.sendAppErrorEvent((0,n.Tr)(r.PMq,"Undefined toast render callback function"))}static setRenderToastCallback(e){this.renderToastCallback=e,this.readyResolveFn()}static expireToast(e){this.expireToastCallback?this.expireToastCallback(e):o.M0.sendAppErrorEvent((0,n.Tr)(r.hxo,"Undefined toast expire callback function"))}static setExpireToastCallback(e){this.expireToastCallback=e}static setCurrentToast(e,t){this.currentToastId!==e&&(this.currentToastId=e,this.renderToastCallback=t,this.currentToastIdChangeCallbacks.forEach((t=>t(e))),this.renderToast())}static addCurrentToastIdChangeCallback(e){e&&this.currentToastIdChangeCallbacks.push(e)}}a.ready=new Promise((e=>a.readyResolveFn=e)),a.currentToastIdChangeCallbacks=[]},85334:function(e,t,i){var o;i.d(t,{p:function(){return o}}),function(e){e.Save="Save",e.Unsave="Unsave",e.Mute="Mute",e.Follow="Follow",e.Unfollow="Unfollow",e.InterestFailure="InterestFailure",e.ShowMore="ShowMore",e.ShowFewer="ShowFewer",e.Hide="Hide",e.DisableNotification="DisableNotification",e.EnableNotification="EnableNotification",e.RecommendedInterestsFailure="RecommendedInterestsFailure",e.Refresh="Refresh",e.Pin="Pin",e.Unpin="Unpin",e.HideTopic="HideTopic",e.UnhideTopic="UnhideTopic",e.HideSource="HideSource",e.UnhideSource="UnhideSource",e.WindowsInformation="WindowsInformation",e.Error="Error",e.Default="Default",e.ConnectionError="ConnectionError",e.Fre="Fre",e.TuneYourFeed="TuneYourFeed"}(o||(o={}))},53909:function(e,t,i){i.d(t,{D3:function(){return a},KL:function(){return c},mL:function(){return p},pG:function(){return l},q3:function(){return d},vc:function(){return s},zz:function(){return u}});var o=i(12697),n=i(80983);let r;var a,s;!function(e){e.JPG="jpg",e.PNG="png"}(a||(a={})),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 l=90,d="www.bing.com/th",c=new RegExp(/bing\.(com|net)\/th/);function u(e,t){return p(((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 p(e,t){if(e&&c.test(e))return function(e,t){try{return g(new URL(e),t).href}catch(i){const o=g(new URL(`https://${e}`),t);return`//${o.host}${o.pathname}${o.search}`}}(e,t);const{focalRegion:i,backgroundColor:n}=t;let{width:s=0,height:l=0,format:d=a.JPG}=t,u="";if(i){const e=f(i.x1,i.x2),t=f(i.y1,i.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()&&r)return r;if(e<1)return null;let t=e;(0,o.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);m()&&(r=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),l=Math.round(l*e))}return`${e}?w=${s}&h=${l}&q=${t.quality||60}&m=${h}&f=${d}${u}`}function g(e,t){(0,n.P)()&&(e.hostname=`ts${h}.cn.mm.bing.net`);const{width:i=0,height:o=0}=t,r=t.quality||l,a=t.crop||1;return e.searchParams.set("w",`${i}`),e.searchParams.set("h",`${o}`),e.searchParams.set("qlt",`${r}`),e.searchParams.set("c",`${a}`),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)}},99478:function(e,t,i){function o(e,...t){return e.replace(/{(\d+)}/g,(function(e,i){if(i>=t.length)return e;const o=t[i];return"number"==typeof o||o?o:""}))}function n(e){return!e||!e.trim()}i.d(t,{TF:function(){return n},WU:function(){return o}})},99813:function(e){var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var a,s,l=n(e),d=1;d<arguments.length;d++){for(var c in a=Object(arguments[d]))i.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var u=0;u<s.length;u++)o.call(a,s[u])&&(l[s[u]]=a[s[u]])}}return l}},13218:function(e,t,i){var o=i(99813),n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,f="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function x(e,t,i){this.props=e,this.context=t,this.refs=y,this.updater=i||b}function C(){}function w(e,t,i){this.props=e,this.context=t,this.refs=y,this.updater=i||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=x.prototype;var T=w.prototype=new C;T.constructor=w,o(T,x.prototype),T.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,i){var o,n={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!$.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(1===l)n.children=i;else if(1<l){for(var d=Array(l),c=0;c<l;c++)d[c]=arguments[c+2];n.children=d}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===n[o]&&(n[o]=l[o]);return{$$typeof:r,type:e,key:a,ref:s,props:n,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var L=/\/+/g,M=[];function F(e,t,i,o){if(M.length){var n=M.pop();return n.result=e,n.keyPrefix=t,n.func=i,n.context=o,n.count=0,n}return{result:e,keyPrefix:t,func:i,context:o,count:0}}function _(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function D(e,t,i,o){var n=typeof e;"undefined"!==n&&"boolean"!==n||(e=null);var s=!1;if(null===e)s=!0;else switch(n){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case r:case a:s=!0}}if(s)return i(o,e,""===t?"."+H(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var d=t+H(n=e[l],l);s+=D(n,d,i,o)}else if(null===e||"object"!=typeof e?d=null:d="function"==typeof(d=f&&e[f]||e["@@iterator"])?d:null,"function"==typeof d)for(e=d.call(e),l=0;!(n=e.next()).done;)s+=D(n=n.value,d=t+H(n,l++),i,o);else if("object"===n)throw i=""+e,Error(v(31,"[object Object]"===i?"object with keys {"+Object.keys(e).join(", ")+"}":i,""));return s}function P(e,t,i){return null==e?0:D(e,"",t,i)}function H(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function E(e,t,i){var o=e.result,n=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,o,i,(function(e){return e})):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,n+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(L,"$&/")+"/")+i)),o.push(e))}function B(e,t,i,o,n){var r="";null!=i&&(r=(""+i).replace(L,"$&/")+"/"),P(e,E,t=F(t,r,o,n)),_(t)}var R={current:null};function U(){var e=R.current;if(null===e)throw Error(v(321));return e}var j={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,i){if(null==e)return e;var o=[];return B(e,o,null,t,i),o},forEach:function(e,t,i){if(null==e)return e;P(e,I,t=F(null,null,t,i)),_(t)},count:function(e){return P(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!A(e))throw Error(v(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=d,t.PureComponent=w,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,i){if(null==e)throw Error(v(267,e));var n=o({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(c in t)k.call(t,c)&&!$.hasOwnProperty(c)&&(n[c]=void 0===t[c]&&void 0!==d?d[c]:t[c])}var c=arguments.length-2;if(1===c)n.children=i;else if(1<c){d=Array(c);for(var u=0;u<c;u++)d[u]=arguments[u+2];n.children=d}return{$$typeof:r,type:e.type,key:a,ref:s,props:n,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,i){return U().useImperativeHandle(e,t,i)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,i){return U().useReducer(e,t,i)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},89526:function(e,t,i){e.exports=i(13218)},1393:function(e,t,i){i.d(t,{EK:function(){return p}});var o=i(91281),n=i(30569),r=i(53046),a=i(67020),s=i(37139),l=i(56201),d=i(40082),c=i(87839),u=i(2658),h=i(32804);const p=o.U.compose({baseName:"flipper",template:n._,styles:(e,t)=>r.i`
        ${(0,a.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(:${l.b}) {
            outline: none;
        }

        :host(:${l.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,d.vF)(r.i`
                :host {
                    background: ${c.H.Canvas};
                }
                :host .next,
                :host .previous {
                    color: ${c.H.ButtonText};
                    fill: currentcolor;
                }
                :host::before {
                    background: ${c.H.Canvas};
                    border-color: ${c.H.ButtonText};
                }
                :host(:hover)::before {
                    forced-color-adjust: none;
                    background: ${c.H.Highlight};
                    border-color: ${c.H.ButtonText};
                    opacity: 1;
                }
                :host(:hover) .next,
                :host(:hover) .previous {
                    forced-color-adjust: none;
                    color: ${c.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: ${c.H.Canvas};
                    border-color: ${c.H.GrayText};
                    color: ${c.H.GrayText};
                    fill: ${c.H.GrayText};
                }
                :host(:${l.b})::before {
                    forced-color-adjust: none;
                    border-color: ${c.H.Highlight};
                    box-shadow: 0 0 0 2px ${c.H.Field},
                        0 0 0 4px ${c.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  '})},60712:function(e,t,i){i.d(t,{oM:function(){return b}});var o=i(20005),n=i(65620),r=i(87697),a=i(15983),s=i(36153),l=i(65825),d=i(11433),c=i(48839);class u extends c.I{constructor(){super(...arguments),this.orientation=a.i.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((e=>{e!==i&&e.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,o=null!==i?t.indexOf(i):0,n=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===n&&o===n||n===t.length-1&&n===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===s.mr,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===s.BE,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key))this.moveRightOffGroup();else for(i===t.length&&(i=0);i<t.length&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;i>=0&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}},this.keydownHandler=e=>{const t=e.key;if(t in s.uf&&this.isInsideFoundationToolbar)return!0;switch(t){case s.kL:this.checkFocusedRadio();break;case s.mr:case s.iF:this.direction===l.N.ltr?this.moveRight(e):this.moveLeft(e);break;case s.BE:case s.SB:this.direction===l.N.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(0,d.M)(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;if(t>1){e[t-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}(0,o.gn)([(0,n.Lj)({attribute:"readonly",mode:"boolean"})],u.prototype,"readOnly",void 0),(0,o.gn)([(0,n.Lj)({attribute:"disabled",mode:"boolean"})],u.prototype,"disabled",void 0),(0,o.gn)([n.Lj],u.prototype,"name",void 0),(0,o.gn)([n.Lj],u.prototype,"value",void 0),(0,o.gn)([n.Lj],u.prototype,"orientation",void 0),(0,o.gn)([r.LO],u.prototype,"childItems",void 0),(0,o.gn)([r.LO],u.prototype,"slottedRadioButtons",void 0);var h=i(39181),p=i(90960),g=i(74009);var m=i(53046),f=i(67020),v=i(32804);const b=u.compose({baseName:"radio-group",template:(e,t)=>h.d`
    <template
        role="radiogroup"
        aria-disabled="${e=>e.disabled}"
        aria-readonly="${e=>e.readOnly}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
        @keydown="${(e,t)=>e.keydownHandler(t.event)}"
        @focusout="${(e,t)=>e.focusOutHandler(t.event)}"
    >
        <slot name="label"></slot>
        <div
            class="positioning-region ${e=>e.orientation===a.i.horizontal?"horizontal":"vertical"}"
            part="positioning-region"
        >
            <slot
                ${(0,p.Q)({property:"slottedRadioButtons",filter:(0,g.R)("[role=radio]")})}
            ></slot>
        </div>
    </template>
`,styles:(e,t)=>m.i`
    ${(0,f.j)("flex")} :host {
        align-items: flex-start;
        margin: calc(${v._5n} * 1px) 0;
        flex-direction: column;
    }

    .positioning-region {
        display: flex;
        flex-wrap: wrap;
    }

    :host([orientation="vertical"]) .positioning-region {
        flex-direction: column;
    }

    :host([orientation="horizontal"]) .positioning-region {
        flex-direction: row;
    }
`})},65033:function(e,t,i){i.d(t,{d$:function(){return w}});var o=i(20005),n=i(65620),r=i(87697),a=i(36153),s=i(82500),l=i(48839);class d extends l.I{}class c extends((0,s.V2)(d)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class u extends c{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(e.key!==a.BI)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}(0,o.gn)([(0,n.Lj)({attribute:"readonly",mode:"boolean"})],u.prototype,"readOnly",void 0),(0,o.gn)([r.LO],u.prototype,"name",void 0),(0,o.gn)([r.LO],u.prototype,"defaultSlottedNodes",void 0);var h=i(39181),p=i(90960);var g=i(53046),m=i(67020),f=i(56201),v=i(37139),b=i(40082),y=i(87839),x=i(2658),C=i(32804);const w=u.compose({baseName:"radio",template:(e,t)=>h.d`
    <template
        role="radio"
        class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
        aria-checked="${e=>e.checked}"
        aria-required="${e=>e.required}"
        aria-disabled="${e=>e.disabled}"
        aria-readonly="${e=>e.readOnly}"
        @keypress="${(e,t)=>e.keypressHandler(t.event)}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
    >
        <div part="control" class="control">
            <slot name="checked-indicator">
                ${t.checkedIndicator||""}
            </slot>
        </div>
        <label
            part="label"
            class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,p.Q)("defaultSlottedNodes")}></slot>
        </label>
    </template>
`,styles:(e,t)=>g.i`
        ${(0,m.j)("inline-flex")} :host {
            --input-size: calc((${x.i} / 2) + ${C._5n});
            align-items: center;
            outline: none;
            margin: calc(${C._5n} * 1px) 0;
            ${""} user-select: none;
            position: relative;
            flex-direction: row;
            transition: all 0.2s ease-in-out;
        }

        .control {
            position: relative;
            width: calc(var(--input-size) * 1px);
            height: calc(var(--input-size) * 1px);
            box-sizing: border-box;
            border-radius: 50%;
            border: calc(${C.Han} * 1px) solid ${C.rU8};
            background: ${C._Bj};
            outline: none;
            cursor: pointer;
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            font-family: ${C.SVJ};
            color: ${C.CHi};
            ${""} padding-inline-start: calc(${C._5n} * 2px + 2px);
            margin-inline-end: calc(${C._5n} * 2px + 2px);
            cursor: pointer;
            font-size: ${C.cSu};
            line-height: ${C.RUt};
        }

        .control,
        .checked-indicator {
            flex-shrink: 0;
        }

        .checked-indicator {
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border-radius: 50%;
            display: inline-block;
            background: ${C.CHi};
            fill: ${C.CHi};
            opacity: 0;
            pointer-events: none;
        }

        :host(:enabled) .control:hover {
            background: ${C.Tm7};
            border-color: ${C.gKw};
        }

        :host(:enabled) .control:active {
            background: ${C.Ium};
            border-color: ${C.ekh};
        }

        :host(:${f.b}) .control {
            box-shadow: 0 0 0 2px ${C.IfY}, 0 0 0 4px ${C.yGg};
            border-color: ${C.yGg};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .control,
        :host(.disabled) .control {
            cursor: ${v.H};
        }

        :host(.checked) .checked-indicator {
            opacity: 1;
        }

        :host(.disabled) {
            opacity: ${C.VFZ};
        }
    `.withBehaviors((0,b.vF)(g.i`
                .control {
                    forced-color-adjust: none;
                    border-color: ${y.H.FieldText};
                    background: ${y.H.Field};
                }
                :host(:enabled) .control:hover,
                .control:active {
                    border-color: ${y.H.Highlight};
                    background: ${y.H.Field};
                }
                :host(:${f.b}) .control {
                    border-color: ${y.H.Highlight};
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked:${f.b}:enabled) .control {
                    border-color: ${y.H.Highlight};
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked:enabled) .control:hover,
                .control:active {
                    border-color: ${y.H.Highlight};
                    background: ${y.H.Highlight};
                }
                :host(.checked) .checked-indicator {
                    background: ${y.H.Highlight};
                    fill: ${y.H.Highlight};
                }
                :host(.checked) .control:hover .checked-indicator {
                    background: ${y.H.HighlightText};
                    fill: ${y.H.HighlightText};
                }
                :host(.disabled) {
                    forced-color-adjust: none;
                    opacity: 1;
                }
                :host(.disabled) .label {
                    color: ${y.H.GrayText};
                }
                :host(.disabled) .control,
                :host(.checked.disabled) .control:hover,
                .control:active {
                    background: ${y.H.Field};
                    border-color: ${y.H.GrayText};
                }
                :host(.disabled) .checked-indicator,
                :host(.checked.disabled) .control:hover .checked-indicator {
                    fill: ${y.H.GrayText};
                    background: ${y.H.GrayText};
                }
            `)),checkedIndicator:'\n    <div part="checked-indicator" class="checked-indicator"></div>\n  '})},91281:function(e,t,i){i.d(t,{U:function(){return s}});var o=i(20005),n=i(65620),r=i(48839),a=i(16882);class s extends r.I{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=a.L.next}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;"Enter"!==t&&"Space"!==t||this.$emit("click",e),"Escape"===t&&this.blur()}}}(0,o.gn)([(0,n.Lj)({mode:"boolean"})],s.prototype,"disabled",void 0),(0,o.gn)([(0,n.Lj)({attribute:"aria-hidden",converter:n.bw})],s.prototype,"hiddenFromAT",void 0),(0,o.gn)([n.Lj],s.prototype,"direction",void 0)},16882:function(e,t,i){i.d(t,{L:function(){return o}});const o={next:"next",previous:"previous"}},30569:function(e,t,i){i.d(t,{_:function(){return a}});var o=i(39181),n=i(13988),r=i(16882);const a=(e,t)=>o.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===r.L.next),o.d`
                <span part="next" class="next">
                    <slot name="next">
                        ${t.next||""}
                    </slot>
                </span>
            `)}
        ${(0,n.g)((e=>e.direction===r.L.previous),o.d`
                <span part="previous" class="previous">
                    <slot name="previous">
                        ${t.previous||""}
                    </slot>
                </span>
            `)}
    </template>
`},12697:function(e,t,i){var o=i(84708);t.Z=function(e){return"number"==typeof e&&e==(0,o.Z)(e)}}}]);A
Eo