tion",w="seeAll",C="previousSlideArrow",S="nextSlideArrow",$="card",P="categoryCard",I="viewMore";var T=o(39181),k=o(13988);const L=T.d`
    <img
        slot="image"
        src="${e=>{var t;return null===(t=e.provider)||void 0===t?void 0:t.logo}}"
        alt="${(e,t)=>{var o;return null===(o=e.provider)||void 0===o?void 0:o.name}}"
        style="border-radius: 4px"
    />
    <div>
        ${(0,k.g)((e=>e.provider.name),T.d`<span style="unicode-bidi:embed">${e=>e.provider.name}</span>`)}
        ${(0,k.g)((e=>e.provider.name&&e.publishedDateTime),T.d` · `)}
        ${(0,k.g)((e=>e.publishedDateTime),T.d`${e=>e.publishedDateTime}`)}
    </div>
`,O=T.d`
    ${(0,k.g)((e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.clickUrl}),T.d`
        <a class="carousel-title" target="_blank" href="${e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.clickUrl}}" data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.newsSegmentCarouselTitle}}">
            ${e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.text}}
            <span class="title-end-icon">
                <svg width="16" height="16" fill="grey" viewBox="0 0 683 546" xmlns="http://www.w3.org/2000/svg">
                    <path d="M132.677 449.677L326.03 256.323L132.677 62.97L159.323 36.3233L379.323 256.323L159.323 476.323L132.677 449.677Z"/>
                </svg>
            </span>
        </a>
    `)}
    ${(0,k.g)((e=>{var t,o,n;return!(null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.clickUrl)}),T.d`
        <span class="carousel-title">
            ${e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.text}}
        </span>
    `)}
`,F=T.d`
    <span class="about-slug-glyph" title="${e=>{var t,o,n;return function(e){if(!e)return"";const t=38;let o=0;return e.split(" ").map((e=>(o+=e.length+1,o>t?(o=0,e+"\n"):e))).join(" ")}(null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title)||void 0===n?void 0:n.text)}}">
        <svg
            width="16"
            height="16"
            viewBox="0 0 16 16"
            xmlns="http://www.w3.org/2000/svg"
        >
            <path
                d="M8.49206 6.91012C8.44972 6.67687 8.24557 6.49999 8.00011 6.49999C7.72397 6.49999 7.50011 6.72385 7.50011 6.99999V11.5021L7.50817 11.592C7.55051 11.8253 7.75465 12.0021 8.00011 12.0021C8.27626 12.0021 8.50011 11.7783 8.50011 11.5021V6.99999L8.49206 6.91012ZM8.79883 4.74999C8.79883 4.33578 8.46304 3.99999 8.04883 3.99999C7.63461 3.99999 7.29883 4.33578 7.29883 4.74999C7.29883 5.16421 7.63461 5.49999 8.04883 5.49999C8.46304 5.49999 8.79883 5.16421 8.79883 4.74999ZM16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8ZM1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8Z"
            />
        </svg>
    </span>
`,M=T.d`
    <fluent-anchor class="action" appearance="lightweight" slot="action" target="_blank" href="${e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.seeAll)||void 0===n?void 0:n.clickUrl}}" data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.newsSegmentCarouselSeeAll}}">
        ${e=>{var t,o,n;return null===(n=null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.seeAll)||void 0===n?void 0:n.text}}
    </fluent-anchor>
`;const D={width:220,height:178},N=T.d`
    <fluent-card class="carousel-card">
        <msft-content-card
            href="${e=>e.clickUrl}"
            target="_blank"
            data-t="${e=>{var t;return null===(t=e.telemetry)||void 0===t?void 0:t.cardTelemetry}}"
            :anchorTelemetryTag=${e=>{var t;return null===(t=e.telemetry)||void 0===t?void 0:t.destinationTelemetry}}
        >
            ${()=>((e,t="media")=>T.d`
    ${(0,k.g)((e=>{var t;return null===(t=e.imageInfo)||void 0===t?void 0:t.sourceImageUrl}),T.d`
        <img
            slot="${t}"
            height="${e.height}"
            width="${e.width}"
            src="${e=>{var t;return null===(t=e.imageInfo)||void 0===t?void 0:t.sourceImageUrl}}"
            alt="${e=>{var t;return null===(t=e.imageInfo)||void 0===t?void 0:t.altText}}"
            style="border-radius: 0"
        />
    `)}
    ${(0,k.g)((e=>{var t;return!(null===(t=e.imageInfo)||void 0===t?void 0:t.sourceImageUrl)&&!e.abstract}),T.d`
        <div
            slot="${t}"
            style="height: ${e.height}px; width: ${e.width}px"
        >
        </div>
    `)}
`)(D)}
            ${(0,k.g)((e=>{var t;return!(null===(t=e.imageInfo)||void 0===t?void 0:t.sourceImageUrl)&&e.abstract}),T.d`
                <p slot="abstract" class="carousel-card-abstract">
                    ${e=>e.abstract}
                </p>
            `)}
            <span class="content-card-title">${e=>e.title}</span>
            <msft-attribution slot="attribution">
                ${(0,k.g)((e=>e.provider),L)}
            </msft-attribution>
        </msft-content-card>
    </fluent-card>
`;var A=o(19628),j=o(53909),E=o(11363),H=o(82891);function q(e,t,o,n){var i;const r=e.overrideTopicName||(null==n?void 0:n.name);let a,s=t.carouselStaticTitle,l=t.carouselStaticDescription;r&&(s=A.Ld.Format(t.carouselTitle,r),l=A.Ld.Format(t.carouselDescription,r));const d=(null==n?void 0:n.canonicalName)||(null==n?void 0:n.name);if(!a&&d){const t=d.replace("/","::").trim().toLocaleLowerCase(),o=(0,H.h_)(e.topicLink);a=o+encodeURIComponent(t)}else a=(0,H.h_)(e.fallbackTopicLink);const c=[];null===(i=null==o?void 0:o.cardMetadata)||void 0===i||i.forEach(((o,n)=>{n===e.categoryCardPosition&&c.push(R(t.carouselCategoryCardTitle,a)),c.push(function(e,t,o){var n,i,r,a,s,l,d,c;const u=(null===(n=null==e?void 0:e.images[0])||void 0===n?void 0:n.url)&&(0,j.mL)(null===(i=null==e?void 0:e.images[0])||void 0===i?void 0:i.url,{width:D.width,height:D.height,focalRegion:null===(r=null==e?void 0:e.images[0])||void 0===r?void 0:r.focalRegion,enableDpiScaling:!1}),p=(null===(a=null==e?void 0:e.provider)||void 0===a?void 0:a.logoUrl)&&(0,j.mL)(null===(s=null==e?void 0:e.provider)||void 0===s?void 0:s.logoUrl,{width:16,height:16,enableDpiScaling:!1}),h=function(e,t,o,n,i){const r=new y.D({name:$,content:{id:n,category:t,vertical:e,headline:o}}),a=new y.D({name:$,behavior:v.wu.Navigate,destinationUrl:i,content:{id:n,category:t,vertical:e,headline:o}});return{cardTelemetry:r.getMetadataTag(),destinationTelemetry:a.getMetadataTag()}}("news",t||(null===(l=null==e?void 0:e.category)||void 0===l?void 0:l.product),null==e?void 0:e.title,null==e?void 0:e.id,null==e?void 0:e.destinationUrl);return{id:null==e?void 0:e.id,cardType:"ContentCard",title:null==e?void 0:e.title,abstract:null==e?void 0:e.abstract,clickUrl:null==e?void 0:e.destinationUrl,provider:{name:null===(d=null==e?void 0:e.provider)||void 0===d?void 0:d.name,logo:p},publishedDateTime:(0,E.fh)(new Date(null==e?void 0:e.publishedDateTime),null==e?void 0:e.locale,o.localizedStrings,null,null,!0),imageInfo:{altText:null===(c=null==e?void 0:e.images[0])||void 0===c?void 0:c.caption,sourceImageUrl:u},telemetry:h}}(null==o?void 0:o.cardContent,r,e))})),-1===e.categoryCardPosition&&c.push(R(t.carouselCategoryCardTitle,a));return{header:{seeAll:{text:t.carouselSeeAllText,id:"see all",clickUrl:a},enableAboutSlug:e.enableAboutSlug,title:{text:s,id:"topic",clickUrl:a},desc:l},cardData:c}}function R(e,t){return{id:"ns_cat_card",cardType:"CategoryCard",title:e,clickUrl:t,telemetry:function(e,t,o){const n=new y.D({name:P,content:{category:t,vertical:e}}),i=new y.D({name:I,behavior:v.wu.Navigate,destinationUrl:o,content:{category:t,vertical:e}});return{cardTelemetry:n.getMetadataTag(),destinationTelemetry:i.getMetadataTag()}}("news",e,t)}}var U=o(82423),z=o(63725),V=o(65135),Q=o(26415);class _ extends g.l{constructor(){super(...arguments),this.initCarousel=()=>(0,h.mG)(this,void 0,void 0,(function*(){var e;const t=yield this.resolveFeedId(),o=yield this.getCardData(t);if(!o)return;const n=this.config.overrideTopicName||(null===(e=this.firstFollowedTopics)||void 0===e?void 0:e.name);this.telemetryContext=function(e,t){const o=new y.D({name:b,content:{id:b,category:t,vertical:e}}),n=new y.D({name:x,content:{id:x,category:t,vertical:e}}),i=new y.D({name:w,content:{id:w,category:t,vertical:e}}),r=new y.D({name:C,behavior:v.wu.More,content:{id:C,category:t,vertical:e}}),a=new y.D({name:S,behavior:v.wu.More,content:{id:S,category:t,vertical:e}});return{newsSegmentCarousel:o.getMetadataTag(),newsSegmentCarouselTitle:n.getMetadataTag(),newsSegmentCarouselSeeAll:i.getMetadataTag(),newsSegmentCarouselPreviousSlide:r.getMetadataTag(),newsSegmentCarouselNextSlide:a.getMetadataTag()}}("news",n),this.carouselData=q(this.config,this.strings,o,this.firstFollowedTopics)})),this.resolveFeedId=()=>(0,h.mG)(this,void 0,void 0,(function*(){var e;return this.config.overrideFeedId?this.config.overrideFeedId:this.config.overrideFeedQuery?void 0:(yield this.getFirstFollowedTopic(),(null===(e=this.firstFollowedTopics)||void 0===e?void 0:e.id)||this.config.fallbackFeedId)})),this.getFirstFollowedTopic=()=>(0,h.mG)(this,void 0,void 0,(function*(){var e,t;const o=yield null===(e=this.topicsDataConnector)||void 0===e?void 0:e.getOneServiceFollowedTopics(),n=o&&Object.keys(o);if((null==n?void 0:n.length)&&n.length>=1){const e=null===(t=n.filter((e=>!o[e].isInferred)))||void 0===t?void 0:t[0];this.firstFollowedTopics=e&&o[e]}})),this.getCardData=e=>(0,h.mG)(this,void 0,void 0,(function*(){const t={start:0,count:this.numberOfCardsToFetch,timeoutMs:3e3,disableFlatViewResponse:!0};e?t.feedId=e:t.query=this.config.overrideFeedQuery;const o=new z.d({initialRequest:t}),n=yield o.fetch();if(this.validateResponse(n))return n})),this.validateResponse=e=>!!(e&&e.cardMetadata.length>=this.numberOfCardsToFetch)||(V.M0.sendAppErrorEvent(Object.assign(Object.assign({},Q.V9n.NewsSegmentCarouselInvalidFeedResponse),{message:"Empty or invalid response from OneService feed endpoint",pb:Object.assign({},Q.V9n.NewsSegmentCarouselInvalidFeedResponse.pb)})),!1)}experienceConnected(){this.topicsDataConnector=(0,U.K0)(m.z.TopicData),this.numberOfCardsToFetch=this.config.numberOfCards||8,this.initCarousel()}getExperienceType(){return u.x.newsSegmentCarousel}}(0,h.gn)([f.LO],_.prototype,"carouselData",void 0),(0,h.gn)([f.LO],_.prototype,"telemetryContext",void 0);var W=o(18864);const G=T.d`
<svg width="61" height="60" viewBox="0 0 61 60" fill="none" xmlns="http://www.w3.org/2000/svg">
    <rect x="0.5" width="60" height="60" rx="30" fill="#1C8BE0"/>
    <rect x="0.5" width="60" height="60" rx="30" fill="url(#paint0_linear)"/>
    <rect x="0.5" width="60" height="60" rx="30" fill="url(#paint1_linear)"/>
    <path d="M38.75 40H21.25C19.517 40 18.1008 38.6435 18.0051 36.9344L18 36.75V22.25C18 21.0591 18.9252 20.0844 20.096 20.0052L20.25 20H35.75C36.9409 20 37.9156 20.9252 37.9948 22.096L38 22.25V23H39.75C40.9409 23 41.9156 23.9252 41.9948 25.096L42 25.25V36.75C42 38.483 40.6435 39.8992 38.9344 39.9949L38.75 40H21.25H38.75ZM21.25 38.5H38.75C39.6682 38.5 40.4212 37.7929 40.4942 36.8935L40.5 36.75V25.25C40.5 24.8703 40.2178 24.5565 39.8518 24.5068L39.75 24.5H38V35.25C38 35.6297 37.7178 35.9435 37.3518 35.9932L37.25 36C36.8703 36 36.5565 35.7178 36.5068 35.3518L36.5 35.25V22.25C36.5 21.8703 36.2178 21.5565 35.8518 21.5068L35.75 21.5H20.25C19.8703 21.5 19.5565 21.7822 19.5068 22.1482L19.5 22.25V36.75C19.5 37.6682 20.2071 38.4212 21.1065 38.4942L21.25 38.5H38.75H21.25ZM26.2465 29.0035C26.9369 29.0035 27.4965 29.5631 27.4965 30.2535V33.75C27.4965 34.4404 26.9369 35 26.2465 35H22.75C22.0596 35 21.5 34.4404 21.5 33.75V30.2535C21.5 29.5631 22.0596 29.0035 22.75 29.0035H26.2465ZM30.25 33.5H33.7462C34.1604 33.5 34.4962 33.8358 34.4962 34.25C34.4962 34.6297 34.214 34.9435 33.848 34.9932L33.7462 35H30.25C29.8358 35 29.5 34.6642 29.5 34.25C29.5 33.8703 29.7822 33.5565 30.1482 33.5068L30.25 33.5H33.7462H30.25ZM25.9965 30.5035H23V33.5H25.9965V30.5035ZM30.25 29.0035H33.7462C34.1604 29.0035 34.4962 29.3393 34.4962 29.7535C34.4962 30.1332 34.214 30.447 33.848 30.4966L33.7462 30.5035H30.25C29.8358 30.5035 29.5 30.1677 29.5 29.7535C29.5 29.3738 29.7822 29.06 30.1482 29.0103L30.25 29.0035H33.7462H30.25ZM22.2464 24.4967H33.7462C34.1604 24.4967 34.4962 24.8324 34.4962 25.2467C34.4962 25.6264 34.214 25.9401 33.848 25.9898L33.7462 25.9967H22.2464C21.8322 25.9967 21.4964 25.6609 21.4964 25.2467C21.4964 24.867 21.7785 24.5532 22.1446 24.5035L22.2464 24.4967H33.7462H22.2464Z" fill="white"/>
    <defs>
        <linearGradient id="paint0_linear" x1="5.375" y1="-12.3077" x2="66.4833" y2="-3.61886" gradientUnits="userSpaceOnUse">
            <stop stop-color="#F3D4F8" stop-opacity="0.28"/>
            <stop offset="0.473958" stop-color="#C465E5" stop-opacity="0.05"/>
            <stop offset="1" stop-color="#F1B7C8" stop-opacity="0.56"/>
        </linearGradient>
        <linearGradient id="paint1_linear" x1="5.375" y1="-12.3077" x2="66.4833" y2="-3.61886" gradientUnits="userSpaceOnUse">
            <stop stop-color="#F3D4F8" stop-opacity="0.28"/>
            <stop offset="0.473958" stop-color="#C465E5" stop-opacity="0.05"/>
            <stop offset="1" stop-color="#F1B7C8" stop-opacity="0.56"/>
        </linearGradient>
    </defs>
</svg>
`,Y=T.d`
    <fluent-card class="category-fluent-card">
        <msft-content-card
            class="category-content-card"
            href=${e=>e.clickUrl}
            target="_blank"
            data-t="${e=>{var t;return null===(t=e.telemetry)||void 0===t?void 0:t.cardTelemetry}}"
            :anchorTelemetryTag=${e=>{var t;return null===(t=e.telemetry)||void 0===t?void 0:t.destinationTelemetry}}
        >
            <div class="category-content-wrapper">
                <span class="category-card-icon">${G}</span>
                <span class="category-card-title">${e=>e.