[mt.LO],ri.prototype,"headerLinkTelemetryTag",void 0),(0,R.gn)([mt.LO],ri.prototype,"seeAllLinkTelemetryTag",void 0);var si=i(32804),li=i(22674),di=i(95263);const ci=Gt.i`
`,ui=Gt.i`
`,pi=Gt.i`
.wrapper{position:relative;border-radius:var(--full-width-mit-border-radius,12px);padding:var(--full-width-mit-padding,20px 0 16px 16px);height:var(--full-width-mit-height,auto);background:var(--full-width-mit-wrapper-background,transparent)}.multi-tabs-stripe-background{background:var(--multi-tabs-stripe-background,#FFFFFF);height:var(--multi-tabs-stripe-height,418px);display:var(--multi-tabs-stripe-background-display,none);width:var(--multi-tabs-stripe-background-width,100vw);position:absolute;margin-left:max(-50vw,var(--multi-tabs-stripe-background-margin-left,-50vw));left:50%;border-radius:var(--multi-tabs-stripe-background-border-radius,0);max-width:100vw;margin-top:var(--multi-tabs-stripe-background-margin-top,0px);mix-blend-mode:normal;backdrop-filter:var(--multi-tabs-stripe-background-backdrop-filter,none)}.header-menu-section{margin:0 0 0 15px;display:flex;gap:10px;align-items:center}.see-all-link-container{display:flex;align-items:center;flex:0 0 content}.see-all-link{text-decoration:none;font-size:${si.cSu};
    line-height: ${si.RUt};
    color: ${si.CHi}}.multi-tabs-content{position:relative;display:var(--multi-tabs-content-display);flex-wrap:var(--multi-tabs-content-flex-wrap);justify-content:var(--multi-tabs-content-justify-content)}fluent-horizontal-scroll{max-width:var(--scroll-nav-max-width,100%);width:var(--scroll-nav-width,auto);--scroll-item-spacing:0px;margin:var(--scroll-nav-margin,0px);align-self:var(--scroll-nav-align-self)}fluent-horizontal-scroll button.tab{background:var(--scroll-nav-background,unset);border:var(--scroll-nav-border,1px solid #EEEEEE);border-radius:var(--scroll-nav-border-radius,100px);padding:var(--scroll-nav-padding,8px 16px);font-size:var(--scroll-nav-font-size,${si.cSu});
    line-height: var(--scroll-nav-line-height, ${si.RUt});
    color: var(--scroll-nav-color, ${si.CHi});white-space:nowrap;cursor:pointer}fluent-horizontal-scroll::part(scroll-area){display:var(--scroll-nav-display,block);justify-content:var(--scroll-nav-justify-content)}fluent-horizontal-scroll::part(content-container){gap:var(--scroll-nav-gap,10px)}fluent-horizontal-scroll button.active{background:var(--scroll-nav-active-background,#EFEFEF);border:var(--scroll-nav-active-border,1px solid #000000);padding:var(--scroll-nav-active-padding,8px 16px);border-bottom:var(--scroll-nav-active-border-bottom,unset);font-weight:var(--scroll-nav-active-font-weight,unset)}fluent-horizontal-scroll::part(scroll-action-next),fluent-horizontal-scroll::part(scroll-action-previous){opacity:1}:host:not([rect-scroll-nav-flippers]) .next,:host:not([rect-scroll-nav-flippers]) .previous,.next::before,.previous::before{opacity:1}:host([rect-scroll-nav-flippers]) .previous,:host([rect-scroll-nav-flippers]) .next{height:38px;width:16px}:host([rect-scroll-nav-flippers]) .previous::part(previous),:host([rect-scroll-nav-flippers]) .next::part(next){display:flex;justify-content:center;align-items:center}:host([rect-scroll-nav-flippers]) .next::before,:host([rect-scroll-nav-flippers]) .previous::before{border-radius:3px;border:none}.heading{display:var(--multi-tabs-carousel-heading-display,flex);align-items:center;column-gap:var(--multi-tabs-carousel-heading-column-gap,initial);flex-wrap:var(--multi-tabs-carousel-heading-wrap,nowrap);position:var(--multi-tabs-heading-position,unset);top:var(--multi-tabs-heading-top,unset);vertical-align:var(--multi-tabs-heading-vertical-align,unset);margin-inline-end:var(--multi-tabs-heading-margin-inline-end,0px)}.heading h2{margin:0px;font-weight:unset;font-size:unset}.info-glyph-container{background:transparent;margin:0px;display:inline-grid}.carousel-top-wrapper{display:flex;justify-content:space-between;align-items:center;margin-top:var(--carousel-top-wrapper-marin-top,10px);padding:10px 0px 0px 0px}.carousel-top-wrapper span{color:#000000}.carousel-top-right-wrapper{display:flex;align-items:center}.carousel-top-right-wrapper > span{margin-inline-end:10px;font-size:${si.cSu};
    line-height: ${si.RUt};
    color: var(--neutral-foreground-hint);
}
 .query-link{
    display: flex;
    padding: 8px 16px;
    line-height: ${si.RUt}
    font-size: ${si.cSu};border-radius:calc(15px + 0.5 * var(--type-ramp-plus-1-line-height));background:var(--neutral-fill-focus);color:var(--accent-foreground-focus);white-space:nowrap;text-decoration:none;align-items:center;border:1px solid var(--neutral-stroke-active);gap:16px}.query-link path{fill:var(--neutral-foreground-rest)}.query-link span{color:var(--accent-foreground-focus)}.query-link:hover{text-decoration:underline;font-weight:600;background:var(--neutral-fill-input-alt-hover);border:1px solid var(--neutral-fill-strong-hover)}.info-dialog{display:none;visibility:hidden;--action-dialog-z-index:5000;--action-dialog-width:500px;--fill-color:${di.A4}}.heading-text{font-size:var(--stripe-heading-font-size,var(--type-ramp-plus-2-font-size));font-weight:600;color:var(--shopping-stripe-heading-color,${si.CHi});text-decoration:none;vertical-align:var(--shopping-heading-vertical-align)}.carousel-wrapper{position:relative;margin-top:20px}.content{width:100%;margin-top:var(--full-width-mit-content-margin-top,24px);min-height:var(--full-width-mit-content-min-height,386px)}.content > div{width:var(--full-width-mit-content-width,100%);position:absolute;opacity:0;transition:opacity var(--fade-out-in-time,1s)}.fade{opacity:1 !important;z-index:1}.hidden-content{visibility:hidden}${(0,N.eH)(N.K$.c1)}{.wrapper{height:var(--full-width-mit-height-c1,auto)}.content{min-height:var(--full-width-mit-content-min-height-c1,650px)}.content > div{width:var(--full-width-mit-tabs-width-c1,auto);padding-right:16px}.heading{order:0}.header-menu-section{order:0}fluent-horizontal-scroll{order:1;padding:var(--scroll-nav-padding-c1);width:var(--scroll-nav-width-c1,auto)}.content{order:1}}`.withBehaviors(new li.O(ci,ui),(0,Nt.Uu)(Gt.i` .multi-tabs-stripe-background{background:var(--mit-background-dark,var(--multi-tabs-stripe-background))}.heading-text{color:var(--shopping-stripe-heading-color-dark,${si.CHi})}fluent-horizontal-scroll button.active{color:black}`)),hi=kt.d`
    <svg
        width="16"
        height="16"
        viewBox="0 0 16 16"
        fill: currentcolor
        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>
`,gi=kt.d`
    <svg slot="previous" width="7" height="9" viewBox="0 0 7 9" xmlns="http://www.w3.org/2000/svg">
        <path d="M0.5 4.5C0.5 4.25781 0.557292 4.02865 0.671875 3.8125C0.786458 3.59635 0.94401 3.41927 1.14453 3.28125L4.92969 0.679687C5.09896 0.559896 5.28906 0.5 5.5 0.5C5.66406 0.5 5.82031 0.539062 5.96875 0.617187C6.13281 0.703125 6.26172 0.824219 6.35547 0.980469C6.45182 1.13672 6.5 1.30729 6.5 1.49219L6.5 7.51172C6.5 7.69401 6.45182 7.86328 6.35547 8.01953C6.26172 8.17578 6.13281 8.29818 5.96875 8.38672C5.81771 8.46224 5.66276 8.5 5.50391 8.5C5.29036 8.5 5.09896 8.4401 4.92969 8.32031L1.14453 5.71875C0.94401 5.58073 0.786458 5.40365 0.671875 5.1875C0.557291 4.97135 0.5 4.74219 0.5 4.5Z"></path>
    </svg>
`,vi=kt.d`
    <svg slot="next" width="7" height="9" viewBox="0 0 7 9" xmlns="http://www.w3.org/2000/svg">
        <path d="M0.5 1.49219C0.5 1.30729 0.546875 1.13672 0.640625 0.980468C0.736979 0.824218 0.86849 0.703125 1.03516 0.617187C1.18099 0.539062 1.33594 0.5 1.5 0.5C1.71094 0.5 1.90104 0.559896 2.07031 0.679687L5.85547 3.28125C6.05078 3.41667 6.20052 3.59245 6.30469 3.80859C6.40885 4.02474 6.46094 4.25521 6.46094 4.5C6.46094 4.74219 6.40885 4.97135 6.30469 5.1875C6.20052 5.40625 6.05078 5.58333 5.85547 5.71875L2.07031 8.32031C1.90104 8.4401 1.71094 8.5 1.5 8.5C1.34115 8.5 1.1862 8.46224 1.03516 8.38672C0.868489 8.29818 0.736979 8.17578 0.640625 8.01953C0.546875 7.86328 0.5 7.69401 0.5 7.51172L0.5 1.49219Z"></path>
    </svg>
`,fi=kt.d`<fluent-horizontal-scroll class="carousel-container" speed="3600" next-telemetry="${e=>{var t,i,o;return null===(o=null===(i=null===(t=null==e?void 0:e.telemetryContext)||void 0===t?void 0:t.shoppingFullWidthMitCarouselContext)||void 0===i?void 0:i.shoppingNavLeftChevron)||void 0===o?void 0:o.getMetadataTag()}}" previous-telemetry="${e=>{var t,i,o;return null===(o=null===(i=null===(t=null==e?void 0:e.telemetryContext)||void 0===t?void 0:t.shoppingFullWidthMitCarouselContext)||void 0===i?void 0:i.shoppingNavLeftChevron)||void 0===o?void 0:o.getMetadataTag()}}" ${(0,Ot.i)("horizontalScroll")}><fluent-flipper slot="previous-flipper" direction="previous" @click="${e=>{var t;return null===(t=e.horizontalScroll)||void 0===t?void 0:t.scrollToPrevious()}}" data-t="${e=>{var t,i,o;return(null==e?void 0:e.tabsNavLeftChevronTelemetryTag)||(null===(o=null===(i=null===(t=null==e?void 0:e.telemetryContext)||void 0===t?void 0:t.shoppingFullWidthMitCarouselContext)||void 0===i?void 0:i.shoppingNavLeftChevron)||void 0===o?void 0:o.getMetadataTag())}}">${(0,wt.g)((e=>e.rectScrollNavFlippers),gi)}</fluent-flipper><fluent-flipper slot="next-flipper" direction="next" @click="${e=>{var t;return null===(t=e.horizontalScroll)||void 0===t?void 0:t.scrollToNext()}}" data-t="${e=>{var t,i,o;return(null==e?void 0:e.tabsNavRightChevronTelemetryTag)||(null===(o=null===(i=null===(t=null==e?void 0:e.telemetryContext)||void 0===t?void 0:t.shoppingFullWidthMitCarouselContext)||void 0===i?void 0:i.shoppingNavLeftChevron)||void 0===o?void 0:o.getMetadataTag())}}">${(0,wt.g)((e=>e.rectScrollNavFlippers),vi)}</fluent-flipper>${(0,wt.g)((e=>e.topics&&e.topics.length>0),kt.d` ${(0,It.rx)((e=>e.topics||[]),kt.d`<button class="tab ${(e,t)=>t.index==t.parent.selectedIndex?"active":""}" data-target="tab${(e,t)=>t.index}" title="${(e,t)=>e.title}" @click=${(e,t)=>t.parent.clickCallback(t.index,t.event)} data-t="${e=>null==e?void 0:e.telemetryTag}">${(e,t)=>e.title}</button>`,{positioning:!0})} `)}</fluent-horizontal-scroll>`,mi=kt.d`<div class="content">${(0,It.rx)((e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.categoryItems}),kt.d` ${(0,wt.g)((e=>e.shoppingEntities),kt.d`<div id="tab${(e,t)=>t.index}" class="${(e,t)=>t.index==t.parent.selectedIndex?"fade":"hidden-content"}"><msn-shopping-carousel-vnext carouselType="${(e,t)=>$i(t.parent.config,e).carouselType}" style="${(e,t)=>`grid-area:${t.parent.grid_area}; ${$i(t.parent.config,e).styles||$i(t.parent.config,e).multiTabCarouselStyles||""};${null==e?void 0:e.background}`}" scroll-item-spacing=${(e,t)=>$i(t.parent.config,e).scrollItemSpacing} scroll-speed=${(e,t)=>$i(t.parent.config,e).scrollSpeed} hide-heading-chevron=${(e,t)=>$i(t.parent.config,e).hideHeadingChevron} show-flipper-on-hover=${(e,t)=>$i(t.parent.config,e).showFlipperOnHover} enable-new-badge=${(e,t)=>$i(t.parent.config,e).enableNewBadge} cardType="${(e,t)=>$i(t.parent.config,e).cardType}" variant="${(e,t)=>$i(t.parent.config,e).variant}" hoverEffects="${(e,t)=>$i(t.parent.config,e).hoverEffects}" use-loading-placeholder=${!0} use-button-style-see-all=${(e,t)=>$i(t.parent.config,e).useButtonStyleSeeAll} enable-about-slug=${(e,t)=>$i(t.parent.config,e).enableAboutSlug} :dynamicImageObjectFitOption="${(e,t)=>$i(t.parent.config,e).dynamicImageObjectFitOption}" :flyoutTextCardConfig="${(e,t)=>$i(t.parent.config,e).flyoutTextCardConfig}" :displayAttributes="${(e,t)=>$i(t.parent.config,e).displayAttributes}" :displayAttributesOverride="${(e,t)=>$i(t.parent.config,e).displayAttributesOverride}" masonry-mode=${(e,t)=>$i(t.parent.config,e).masonryMode} :masonryConfig=${(e,t)=>$i(t.parent.config,e).masonryConfig} special-event-v2="${(e,t)=>$i(t.parent.config,e).useSpecialEventV2}" target="${(e,t)=>$i(t.parent.config,e).target||"_blank"}" image-height-override-1x-2y="${(e,t)=>$i(t.parent.config,e).imageHeightOverride1X2Y}" image-height-override-1x-1y="${(e,t)=>$i(t.parent.config,e).imageHeightOverride1X1Y}" show-secondary-image="${(e,t)=>$i(t.parent.config,e).showSecondaryImage}" heading-icon-name="${(e,t)=>{var i;return null===(i=$i(t.parent.config,e).headerSettings)||void 0===i?void 0:i.headingIconName}}" disable-hide-carousel-when-not-full="${(e,t)=>!!$i(t.parent.config,e).disableHideCarouselWhenNotFull}" numEntitiesToRenderBeforeTTVROverride="${(e,t)=>$i(t.parent.config,e).numEntitiesToRenderBeforeTTVR}" :useAutoNumEntitiesToRenderBeforeTTVR="${(e,t)=>$i(t.parent.config,e).useAutoNumEntitiesToRenderBeforeTTVR}" :shoppingEntitiesData="${(e,t)=>e}" ?enableDecorationsAnimation=${(e,t)=>t.parent.enableDecorationsAnimation} :hideHeader = ${(e,t)=>$i(t.parent.config,e).hideHeader} :useDynamicLayout=${(e,t)=>$i(t.parent.config,e).useDynamicLayout} :dynamicConfig=${(e,t)=>$i(t.parent.config,e).dynamicConfig} :specialEventEntity="${(e,t)=>e.specialEventEntity}" :specialEventCardConfigs="${(e,t)=>$i(t.parent.config,e).specialEventCardConfigs}" :leftChevronTelemetryTag="${(e,t)=>{var i,o,n;return t.parent.leftChevronTelemetryTag||(null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarouselLeftChevron)||void 0===n?void 0:n.getMetadataTag())}}" :rightChevronTelemetryTag="${(e,t)=>{var i,o,n;return t.parent.rightChevronTelemetryTag||(null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarouselRightChevron)||void 0===n?void 0:n.getMetadataTag())}}" :specialEventInfoTelemetryTag="${(e,t)=>{var i,o,n;return $i(t.parent.config,e).useSpecialEventV2&&(null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarouselSpecialEventInfo)||void 0===n?void 0:n.getMetadataTag())}}" :specialEventInfoImgTelemetryTag="${(e,t)=>{var i,o,n;return $i(t.parent.config,e).useSpecialEventV2&&(null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarouselSpecialEventInfoImg)||void 0===n?void 0:n.getMetadataTag())}}" :headerTitleText="${(e,t)=>{var i,o;return null===(o=null===(i=$i(t.parent.config,e).headerSettings)||void 0===i?void 0:i.title)||void 0===o?void 0:o.text}}" :seeAllLinkTelemetryTag="${(e,t)=>{var i,o,n;return null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarouselHeaderSeeAllLink)||void 0===n?void 0:n.getMetadataTag()}}" data-t="${(e,t)=>{var i,o,n;return t.parent.shoppingCarouselTelemetryTag||(null===(n=null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.shoppingFullWidthMitCarouselContext)||void 0===o?void 0:o.shoppingCarousel)||void 0===n?void 0:n.getMetadataTag())}}"></msn-shopping-carousel-vnext></div>`)}
`,{positioning:!0})}</div>`,yi=kt.d`<div><span>${e=>{var t;return null===(t=e.aboutSlugTextParts)||void 0===t?void 0:t[0]}}</span><a target="_blank" class="about-slug-link" href="https://account.microsoft.com/privacy">${e=>{var t;return null===(t=e.aboutSlugTextParts)||void 0===t?void 0:t[2]}}</a><span>${e=>{var t;return null===(t=e.aboutSlugTextParts)||void 0===t?void 0:t[1]}}</span></div>`,bi=kt.d`<msft-action-dialog class="info-dialog" ${(0,Ot.i)("aboutSlugDialogRef")} @dismiss="${e=>e.hideAboutSlugInfo()}" @action-dialog-dismiss="${e=>e.hideAboutSlugInfo()}" :localizedStrings="${e=>e.actionDialogLocalizedStrings}">${yi}</msft-action-dialog>`,Ci=kt.d` ${(0,wt.g)((e=>e.enableFullWidthMITAboutSlug),kt.d`<fluent-button slot="info-glyph-container" class="info-glyph-container" @click=${(e,t)=>e.showAboutSlugInfo(t.event)} style="color: var(--neutral-foreground-rest);" title=${e=>{var t;return null===(t=e.strings)||void 0===t?void 0:t.infoButtonAriaLabel}} aria-label=${e=>{var t;return null===(t=e.strings)||void 0===t?void 0:t.infoButtonAriaLabel}}>${hi}</fluent-button>`)}
`,Si=kt.d`<div class="heading">${(0,wt.g)((e=>e.data.title),kt.d`<slot name="header-icon"></slot><h2><a part="shopping-heading-link" class="heading-text ${e=>{var t,i;return(null===(i=null===(t=e.data)||void 0===t?void 0:t.title)||void 0===i?void 0:i.clickUrl)?"heading-link ":""}}" target="_blank" title="${e=>{var t,i;return null===(i=null===(t=e.data)||void 0===t?void 0:t.title)||void 0===i?void 0:i.text}}" href="${e=>{var t,i;return null===(i=null===(t=e.data)||void 0===t?void 0:t.title)||void 0===i?void 0:i.clickUrl}}" data-t="${e=>{var t,i,o;return e.headerLinkTelemetryTag||(null===(o=null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingFullWidthMitCarouselContext)||void 0===i?void 0:i.carouselTitle)||void 0===o?void 0:o.getMetadataTag())}}">${e=>{var t,i;return null===(i=null===(t=e.data)||void 0===t?void 0:t.title)||void 0===i?void 0:i.text}}</a></h2>`)} ${e=>e.enableFullWidthMITAboutSlug?Ci:""}</div>`,xi=kt.d`<div class="see-all-link-container"><a class="see-all-link" target="_blank" data-t="${e=>e.seeAllLinkTelemetryTag}" href="${e=>{var t;return null===(t=e.seeAll)||void 0===t?void 0:t.clickUrl}}">${e=>{var t;return null===(t=e.seeAll)||void 0===t?void 0:t.text}}<a></div>`,Ti=kt.d` ${(0,wt.g)((e=>e.showHeaderMenu),kt.d`<div class="header-menu-section">${(0,wt.g)((e=>{var t,i;return(null===(t=e.seeAll)||void 0===t?void 0:t.clickUrl)&&(null===(i=e.seeAll)||void 0===i?void 0:i.text)}),xi)}<div part="context-menu-options"><slot name="context-menu-options"></slot></div></div>`)}
`,$i=(e,t)=>{const i=null==t?void 0:t.id,o=e.topicConfigOverride&&e.topicConfigOverride[i];return(0,Ge.Z)({},e.shoppingCarouselConfig,o)},ki=kt.d`
${(0,wt.g)((e=>{var t,i;return(null===(i=null===(t=e.data)||void 0===t?void 0:t.categoryItems)||void 0===i?void 0:i.length)>0}),kt.d` ${(0,wt.g)((e=>e.enableFullWidthMITAboutSlug),bi)}<div class="wrapper" @mouseover=${e=>e.mouseoverCallback()} @mouseleave=${e=>e.mouseleaveCallback()}><div part="shopping-multi-tabs-stripe-background" class="multi-tabs-stripe-background"></div><div class="multi-tabs-content">${Si} ${fi} ${Ti} ${mi}</div></div>`)}
`;let Oi=class extends ri{};Oi=(0,R.gn)([(0,Ht.M)({name:"msn-shopping-full-width-mit",template:ki,styles:pi})],Oi),(0,l.z)().withShadowRootMode("open").withElementDisambiguation((()=>h.h.ignoreDuplicate)).register((0,ti.$M)(),(0,ii.q$)(),(0,oi.H5)({expandCollapseGlyph:"...your expand/collapse glyph...",checkboxIndicator:"...your checkbox indicator...",radioIndicator:"...your radio indicator..."}),(0,ni.xI)()),Lt.a;const wi=kt.d`<shopping-report-dialog id="shoppingReportDialog" product-id=${e=>e.reportIssueOfferId} :strings=${e=>e.reportIssueDialogPopupStrings} :sendIssueCallback=${e=>e.sendIssueClickedCallback} :closeCardCallback=${e=>()=>{Z(e,!1)}} :sendTelemetryObject=${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueSend}} :cancelTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueCancel)||void 0===i?void 0:i.getMetadataTag()}} :closeTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueClose)||void 0===i?void 0:i.getMetadataTag()}} :privacyStatementTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssuePrivacyStatemnt)||void 0===i?void 0:i.getMetadataTag()}} style="position: absolute; z-index: ${Et.K.Dialog.toString()};" />`,Ii=kt.d` ${e=>e.config.childExperienceReferences&&(0,ei.O)(e.config.childExperienceReferences.sdCardMaskWC,{properties:{cardType:"Shop",isHalfCard:e.cardSize===Pt.Nv._1x_1y,feedbackTexts:[e.strings.feedbackOption1,e.strings.feedbackOption2,e.strings.feedbackOption3]}})}
`;xt.eg,xt.ax,Mt.B;const Ei=kt.d` ${e=>{var t,i;return(0,$t.J)(null===(t=e.superSDSetting)||void 0===t?void 0:t.actionsMenuButtonElement,null===(i=e.superSDSetting)||void 0===i?void 0:i.menuItems)}}
`,Ai=kt.d` ${(e,t)=>(0,$t.D)((()=>{var i;return null===(i=e.superSDSetting)||void 0===i?void 0:i.toggleActionMenu(!e.superSDSetting.isActionMenuOpen,t.event)}),e.telemetryContext&&e.telemetryContext.menuMore&&e.telemetryContext.menuMore.getMetadataTag()||"",e.moreOptionsTooltip||"",e.moreOptionButtonNoBackplate?"no-backplate":"","context-menu-options")}
`,Di=kt.d`<msft-action-dialog class="about-slug-dialog" ${(0,Ot.i)("aboutSlugRef")} @dismiss="${e=>e.hideSlugInfo(e.aboutSlugRef)}" @action-dialog-dismiss="${e=>e.hideSlugInfo(e.aboutSlugRef)}"><div><span>${e=>e.strings.aboutSlugTextDetails}</span><div class="about-slug-dialog-link-container"><a target="_blank" class="about-slug-link" href="https://support.microsoft.com/en-us/microsoft-edge/microsoft-edge-browsing-activity-for-personalized-advertising-and-experiences-37aa831e-6372-238e-f33f-7cd3f0e53679">${e=>e.strings.aboutSlugLearnMore}</a>${(0,wt.g)((e=>e.getEdgeSettingsUrl()),kt.d`<span>|</span><a class="about-slug-link" @click="${e=>e.openEdgePrivacySettings()}">${e=>e.strings.aboutSlugManage}</a>`)}</div></div></msft-action-dialog>`,Pi=kt.d`<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="about-slug-glyph ${e=>e.seeMoreActive?"svg-dark-seeall":""}"><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>`,Mi=kt.d`<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.74999 0.745577C6.74999 0.00176549 5.79209 -0.278328 5.37034 0.33814C1.5 5.99535 6.99999 6.25001 6.99999 9.00001C6.99999 10.1134 6.09018 11.0143 4.97343 10.9998C3.87437 10.9856 3 10.0694 3 8.97019V6.29801C3 5.61979 2.17278 5.29098 1.70525 5.78226C0.86878 6.6612 0 8.16663 0 10C0 13.3084 2.69159 16 5.99999 16C9.3084 16 12 13.3084 12 10C12 4.67845 6.74999 3.96867 6.74999 0.745577Z"/></svg>`,Li=kt.d`<div class="shopping-single-deal-card-decoration"><div class="shopping-single-deal-card-decoration-icon-container">${Mi}</div>${(0,wt.g)((e=>e.strings.dealOfTheDayDecorationText),kt.d`<div class="shopping-single-deal-card-decoration-text">${e=>e.strings.dealOfTheDayDecorationText}</div>`)}</div>`,Hi=kt.d` ${(0,wt.g)((e=>e.enableAboutSlug),kt.d`<fluent-button slot="about-slug-glyph-container" class="about-slug-glyph-container ${e=>e.translucentFeedModeActive?" translucent":""}" @click=${e=>e.showSlugInfo(e.aboutSlugRef)} data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarouselAboutSlug)||void 0===i?void 0:i.getMetadataTag()}}">${Pi}</fluent-button>`)}
`,zi=e=>e.target&&"auto"!==e.target?e.target:e.openLinksInNewTab?"_blank":"_self",Ui=kt.d`<msn-shopping-carousel-vnext id="${e=>e.id}" class="${e=>e.noFeedBackgroundEnabled?"feed-no-background":""} ${e=>e.containedBackground?"contained-background":""}" carouselType=${e=>e.carouselType} cardType="${e=>e.cardType}" cardSize="${e=>e.cardSize}" variant="${e=>e.variant}" hoverEffects="${e=>e.hoverEffects}" image-height-override="${e=>e.imageHeightOverride}" enableDecorationsAnimation="${e=>e.enableDecorationsAnimation}" enableClusters="${e=>e.enableClusters}" show-secondary-image=${e=>e.showSecondaryImage} scroll-speed=${e=>e.scrollSpeed} lazy-load-secondary-image=${e=>e.lazyLoadSecondaryImage} videoIconType="${e=>e.videoIconType}" fillDeadarea=${e=>e.fillDeadarea} seeAllStyle=${e=>e.seeAllStyle} :shopNowText="${e=>e.strings.shopNowText}" :masonryConfig="${e=>e.masonryConfig}" :flyoutTextCardConfig="${e=>e.flyoutTextCardConfig}" :cardDeckConfig="${e=>e.cardDeckConfig}" hide-heading-chevron=${e=>e.hideHeadingChevron} scroll-item-spacing=${e=>e.scrollItemSpacing} show-flipper-on-hover=${e=>e.showFlipperOnHover} :displayAttributes="${e=>e.displayAttributes}" style="${e=>e.carouselStyles?e.carouselStyles:""}" target="${e=>zi(e)}" special-event="${e=>e.useSpecialEvent}" heading-icon-name="${e=>e.enableHeaderIcon?e.headerIconName:null}" :numEntitiesToRenderBeforeTTVR="${e=>e.numEntitiesToRenderBeforeTTVR}" :ttvrFired="${e=>e.ttvrFired}" :shoppingEntitiesData="${e=>e.shoppingEntitiesData}" :personalizationEntity="${e=>e.getPersonalizationEntity()}" :specialEventEntity="${e=>e.specialEventEntity}" :specialEventCardConfigs="${e=>e.specialEventCardConfigs}" :clusterCardsConfig="${e=>e.clusterCardsConfig}" :carouselCardAtNthPositionConfig="${e=>e.carouselCardAtNthPositionConfig}" :carouselCardFilter="${e=>e.carouselCardAtNthPositionConfig&&e.careouselCardFilter}" :relatedProductsDisplayMode="${e=>e.relatedProductsDisplayMode}" :useSimpleRelatedProducts="${e=>e.useSimpleRelatedProducts}" :zhcnLocalizedStrings=${e=>e.zhcnLocalizedStrings} :telemetrySuffix="${e=>e.config.telemetrySuffix}" hide-merchant-logo-in-title=${e=>e.hideMerchantLogoInTitle} :leftChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselLeftChevron&&e.telemetryContext.carouselLeftChevron.getMetadataTag()}" :rightChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselRightChevron&&e.telemetryContext.carouselRightChevron.getMetadataTag()}" :seeAllLinkTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink.getMetadataTag()}" :seeAllSlideTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselSeeAllSlide&&e.telemetryContext.carouselSeeAllSlide.getMetadataTag()}" :sliderSeeAllLinkTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselSeeAllLink&&e.telemetryContext.carouselSeeAllLink.getMetadataTag()}" :titleTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderTitle&&e.telemetryContext.shoppingCarouselHeaderTitle.getMetadataTag()}" :specialEventInfoTelemetryTag="${e=>{var t;return(null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarouselSpecialEventInfo)&&e.telemetryContext.shoppingCarouselSpecialEventInfo.getMetadataTag()}}" :specialEventInfoImgTelemetryTag="${e=>{var t;return(null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarouselSpecialEventInfoImg)&&e.telemetryContext.shoppingCarouselSpecialEventInfoImg.getMetadataTag()}}" :carouselCardTelemetryTag="${e=>{var t;return(null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarouselSpecialEventInfoImg)&&e.carouselCardAtNthPositionConfig&&e.telemetryContext.shoppingCarouselCard.getMetadataTag()}}" :carouselCardLeftChevronTelemetryTag="${e=>{var t;return(null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselCardLeftChevron)&&e.carouselCardAtNthPositionConfig&&e.telemetryContext.carouselCardLeftChevron.getMetadataTag()}}" :carouselCardRightChevronTelemetryTag="${e=>{var t;return(null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselCardRightChevron)&&e.carouselCardAtNthPositionConfig&&e.telemetryContext.carouselCardRightChevron.getMetadataTag()}}" :isTranslucentFeed=${e=>e.translucentFeedModeActive} data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarousel)||void 0===i?void 0:i.getMetadataTag()}}">${Hi}</msn-shopping-carousel-vnext>`,ji=kt.d`<a class="shopping-nav-header ${e=>e.navListVisible?"shopping-nav-header-focused":""}" slot="nav-header-container" ${(0,Ot.i)("shoppingNavHeader")} @mouseenter="${(e,t)=>e.handleNavMouseEvents(t.event)}" @mouseleave="${(e,t)=>e.handleNavMouseEvents(t.event)}" @click="${(e,t)=>e.handleNavMouseEvents(t.event)}" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselNavHeaderButton)||void 0===i?void 0:i.getMetadataTag()}}"><div class="shopping-nav-header-container">${At.Z}<span class="shopping-nav-header-new">${'<svg width="10" height="10" viewBox="0 0 10 10" fill="none"><path d="M2 .75v4.5a.75.75 0 0 1-1.5.1V.75A.75.75 0 0 1 2 .65v4.6-4.5Zm5.78 1.47c.27.27.3.68.07.98l-.07.08-3.5 3.5a.75.75 0 0 1-1.13-.98l.07-.08 3.5-3.5c.3-.3.77-.3 1.06 0ZM10 8.75c0 .38-.28.7-.65.74l-.1.01h-4.5a.75.75 0 0 1-.1-1.5h4.6c.41 0 .75.34.75.75Z" fill="#00A656"/></svg>'}</span></diV></a>`,Fi=kt.d`<div class="shopping-header-icon" slot="header-icon">${Tt.Nu}</div>`,Ri=kt.d`<ul class="shopping-nav-list" @mouseenter="${(e,t)=>e.handleNavMouseEvents(t.event)}" @mouseleave="${(e,t)=>e.handleNavMouseEvents(t.event)}">${(0,It.rx)((e=>e.navHeaderOptions||[]),kt.d`<li class="shopping-nav-item"><a @click="${(e,t)=>t.parent.handleSelectCategory(t.event,e.categoryID||"",e.text||"",t.index)}" data-t="${(e,t)=>{var i,o;return null===(o=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.getNavHeaderItem(e.text,t.parent.navHeaderLoadInPlace))||void 0===o?void 0:o.getMetadataTag()}}"><span>${e=>e.text}</span>${(0,wt.g)((e=>e.selected),kt.d`<div class="shopping-nav-tick">${Qt.Z}</div>`)}</a></li>`,{positioning:!0})}</ul>`,Bi=kt.d`<fluent-button ${(0,Ot.i)("actionMenuButtonElement")} class="context-menu-options ${e=>e.moreOptionButtonNoBackplate?"no-backplate":""} ${e=>e.seeMoreActive?"svg-dark-seeall":""}" slot="context-menu-options" appearance="neutral" @click=${(e,t)=>e.toggleSDCardActionMenu&&e.toggleSDCardActionMenu(t.event)} @focus=${(e,t)=>e.showActionMenuTooltip()} @mouseover=${(e,t)=>e.showActionMenuTooltip()} @focusout=${(e,t)=>e.hideActionMenuTooltip()} @mouseleave=${(e,t)=>e.hideActionMenuTooltip()} aria-label="${e=>e.moreOptionsTooltip}" aria-expanded="${e=>!!e.isActionMenuOpen}" role="button" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.menuMore)||void 0===i?void 0:i.getMetadataTag()}}">${Dt.Z}</fluent-button>`,Ni=kt.d`<fluent-card style="${e=>e.shoppingCarouselCardStyles}"><msn-shopping-carousel id="${e=>e.id}" cardType="${e=>e.cardType}" cardSize="${e=>e.cardSize}" flightId="${e=>e.flightId}" :singleLiveShow="${e=>e.config.singleLiveShow}" ?autoScroll="${e=>e.autoScroll}" headerTitleUrl="${e=>e.headerTitleUrl}" variant="${e=>e.variant}" hoverEffects="${e=>e.hoverEffects}" useSDCardLayout=${e=>e.useSDCardLayout} use-horizontal-card-slider-v2=${e=>e.useHorizontalCardSliderV2} :flyoutTextCardConfig="${e=>e.flyoutTextCardConfig}" use-nrt-seen-telemetry="${e=>e.useNRTSeenTelemetry}" :enableHeaderIcon="${e=>e.enableHeaderIcon}" seen-duration="${e=>e.useNRTSeenTelemetry?e.meaningfulViewportDuration:null}" seen-intersection-ratio="${e=>e.useNRTSeenTelemetry?e.intersectionRatio:null}" :displayAttributes="${e=>e.displayAttributes}" ?enable-hover-effect=${e=>e.enableHoverEffect} style="${e=>e.carouselStyles?e.carouselStyles:""}" target="${e=>zi(e)}" :shoppingEntitiesData="${e=>e.shoppingEntitiesData}" :personalizationEntity="${e=>e.getPersonalizationEntity()}" :leftChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselLeftChevron&&e.telemetryContext.carouselLeftChevron.getMetadataTag()}" :rightChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselRightChevron&&e.telemetryContext.carouselRightChevron.getMetadataTag()}" :seeAllLinkTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink.getMetadataTag()}" :seeAllSlideTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselSeeAllSlide&&e.telemetryContext.carouselSeeAllSlide.getMetadataTag()}" :titleTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderTitle&&e.telemetryContext.shoppingCarouselHeaderTitle.getMetadataTag()}" class="${e=>e.noFeedBackgroundEnabled?"feed-no-background":""}" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarousel)||void 0===i?void 0:i.getMetadataTag()}}" prev-label="${e=>e.strings.horizontalSliderPrev}" next-label="${e=>e.strings.horizontalSliderNext}" :zhcnLocalizedStrings="${e=>e.zhcnLocalizedStrings}">${(0,wt.g)((e=>e.enableContextMenu&&e.toggleSDCardActionMenu&&!e.superSDSetting),kt.d`<fluent-button class="${e=>e.moreOptionButtonNoBackplate?"no-backplate":""}" slot="context-menu-options" appearance="neutral" @click=${(e,t)=>e.toggleSDCardActionMenu&&e.toggleSDCardActionMenu(t.event)} title="${e=>e.moreOptionsTooltip}" aria-label="${e=>e.moreOptionsTooltip}" role="button" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.menuMore)||void 0===i?void 0:i.getMetadataTag()}}">${Dt.Z}</fluent-button>`)} ${(0,wt.g)((e=>!!e.superSDSetting),Ai)} ${Hi}</msn-shopping-carousel>${(0,wt.g)((e=>{var t;return e.isGA&&(null===(t=e.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)}),Ii)}</fluent-card>${(0,wt.g)((e=>{var t;return null===(t=e.superSDSetting)||void 0===t?void 0:t.isActionMenuOpen}),Ei)}
`,Gi=kt.d`<fluent-card style="${e=>e.shoppingCarouselCardStyles}"><msn-shopping-carousel-card class="${e=>e.seeMoreActive?"click-thourhg-dark-seeall":""}" id="${e=>e.id}" style="${e=>e.carouselStyles?e.carouselStyles:""}" cardType="${e=>e.cardType}" cardSize="${e=>e.cardSize}" flightId="${e=>e.flightId}" variant="${e=>e.variant}" hoverEffects="${e=>e.hoverEffects}" image-height-override="${e=>e.imageHeightOverride}" useSDCardLayout=${e=>e.useSDCardLayout} use-horizontal-card-slider-v2=${e=>e.useHorizontalCardSliderV2} show-secondary-image=${e=>e.showSecondaryImage} lazy-load-secondary-image=${e=>e.lazyLoadSecondaryImage} :flyoutTextCardConfig="${e=>e.flyoutTextCardConfig}" use-nrt-seen-telemetry="${e=>e.useNRTSeenTelemetry}" seen-duration=${e=>e.useNRTSeenTelemetry?e.meaningfulViewportDuration:null} seen-intersection-ratio=${e=>e.useNRTSeenTelemetry?e.intersectionRatio:null} show-flipper-on-hover=${e=>e.showFlipperOnHover} auto-scroll=${e=>e.autoScroll} auto-scroll-interval-ms=${e=>e.autoScrollInterval} auto-scroll-delay-ms=${e=>e.autoScrollDelay} skip-see-all=${e=>e.skipSeeAll} ?vertical-sequence-indicator=${e=>e.verticalSequenceIndicator} :shopNowText="${e=>e.strings.shopNowText}" :startShoppingText="${e=>e.strings.seeMoreProducts}" :startShoppingUrl="${e=>e.headerTitleUrl}" :displayAttributes="${e=>e.displayAttributes}" ?enable-hover-effect=${e=>e.enableHoverEffect} target="${e=>zi(e)}" :numEntitiesToRenderBeforeTTVR="${e=>e.numEntitiesToRenderBeforeTTVR}" :ttvrFired="${e=>e.ttvrFired}" :shoppingEntitiesData="${e=>e.shoppingEntitiesData}" :specialEventCardConfigs="${e=>e.specialEventCardConfigs}" enableContextMenu=${e=>e.enableContextMenu} :toggleSDCardActionMenu=${e=>e.toggleSDCardActionMenu} moreOptionsTooltip="${e=>e.moreOptionsTooltip}" contextMenuButtonNoBackplate=${e=>e.moreOptionButtonNoBackplate} :zhcnLocalizedStrings=${e=>e.zhcnLocalizedStrings} hide-merchant-logo-in-title=${e=>e.hideMerchantLogoInTitle} :headerTelemetryTag=${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderTitle&&e.telemetryContext.shoppingCarouselHeaderTitle.getMetadataTag()} :contextMenuTelemetryTag=${e=>e.telemetryContext&&e.telemetryContext.menuMore&&e.telemetryContext.menuMore.getMetadataTag()} :leftChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselLeftChevron&&e.telemetryContext.carouselLeftChevron.getMetadataTag()}" :rightChevronTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselRightChevron&&e.telemetryContext.carouselRightChevron.getMetadataTag()}" :seeAllLinkTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink&&e.telemetryContext.shoppingCarouselHeaderSeeAllLink.getMetadataTag()}" :seeAllSlideTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselSeeAllSlide&&e.telemetryContext.carouselSeeAllSlide.getMetadataTag()}" :startShoppingTelemetryTag="${e=>e.telemetryContext&&e.telemetryContext.carouselStartShopping&&e.telemetryContext.carouselStartShopping.getMetadataTag()}" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarousel)||void 0===i?void 0:i.getMetadataTag()}}" prev-label="${e=>e.strings.horizontalSliderPrev}" next-label="${e=>e.strings.horizontalSliderNext}" :setSeeMoreActive=${e=>t=>e.setSeeMoreActive(t)}>${(0,wt.g)((e=>e.enableContextMenu&&e.toggleSDCardActionMenu&&!e.superSDSetting),Bi)} ${(0,wt.g)((e=>!!e.superSDSetting),Ai)} ${(0,wt.g)((e=>e.enableNavHeader),ji)} ${(0,wt.g)((e=>e.enableHeaderIcon),Fi)} ${Hi}</msn-shopping-carousel-card>${(0,wt.g)((e=>e.navListVisible),Ri)}</fluent-card>${(0,wt.g)((e=>{var t;return null===(t=e.superSDSetting)||void 0===t?void 0:t.isActionMenuOpen}),Ei)} ${(0,wt.g)((e=>{var t;return e.isGA&&(null===(t=e.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)}),Ii)}
`,Ji=kt.d`<div class="context-menu-tooltip ${e=>e.isActionMenuTooltipVisible?"visible":""}">${e=>e.moreOptionsTooltip}</div>`,Wi=kt.d` ${(0,wt.g)((e=>e.enableAboutSlug&&e.strings.aboutSlugTextDetails),Di)} ${(0,wt.g)((e=>!e.showSingleDeal),Ji)} ${(0,wt.g)((e=>e.shoppingEntitiesData&&(e.shoppingEntitiesData.shoppingEntities||e.shoppingEntitiesData.topics)),(e=>{return(t=e).showSingleDeal?qi:(null===(i=t.shoppingEntitiesData)||void 0===i?void 0:i.topics)?Vi:t.useCarouselCard&&t.cardType!==x.xQ.Live?Gi:t.carouselTemplate===o.Default?Ni:t.carouselTemplate===o.Venus||t.variant===x.$e.Stripe||t.variant===x.$e.FlyoutText||t.variant===x.$e.CarouselFullBleed?Ui:Ni;var t,i}))}<div class="carousel-end" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselEnd)||void 0===i?void 0:i.getMetadataTag()}}"></div>`,Vi=kt.d` ${(0,wt.g)((e=>{var t;return(null===(t=e.shoppingEntitiesData)||void 0===t?void 0:t.topics)&&e.config.shoppingCarouselUISettings}),kt.d`<fluent-card style="${e=>e.shoppingCarouselCardStyles}"><msn-shopping-full-width-mit style="${e=>e.multiTabCarouselStyles}" :config="${e=>{return{shoppingCarouselConfig:t=e.config.shoppingCarouselUISettings,topicConfigOverride:null==t?void 0:t.multiTabTopicCarouselUIConfigOverride};var t}}" :data="${e=>{return(t=e.shoppingEntitiesData)?Object.assign(Object.assign({},t),{categoryItems:t.topics}):null;var t}}" :telemetryContext="${e=>e.telemetryContext}" :strings="${e=>e.strings}" autoScroll="${e=>e.autoScroll}" scrollInterval="${e=>e.autoScrollInterval}" :seeAll=${e=>{var t;return null===(t=e.shoppingEntitiesData)||void 0===t?void 0:t.seeAll}} rect-scroll-nav-flippers="${e=>!0}" :showHeaderMenu="${e=>!0}" enableDecorationsAnimation="${e=>e.enableDecorationsAnimation}" :shoppingCarouselTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarousel.getMetadataTag()}}" :leftChevronTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselLeftChevron.getMetadataTag()}}" :rightChevronTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselRightChevron.getMetadataTag()}}" :tabsNavLeftChevronTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingMultiCarouselTabsLeftChevron.getMetadataTag()}}" :tabsNavRightChevronTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingMultiCarouselTabsRightChevron.getMetadataTag()}}" :headerLinkTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingCarouselHeaderTitle.getMetadataTag()}}" :seeAllLinkTelemetryTag="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.carouselSeeAllLink.getMetadataTag()}}" data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingMultiTabCarousel.getMetadataTag()}}">${Fi} ${(0,wt.g)((e=>e.enableContextMenu&&e.toggleSDCardActionMenu&&!e.superSDSetting),Bi)}</msn-shopping-full-width-mit>${(0,wt.g)((e=>{var t;return e.isGA&&(null===(t=e.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)}),Ii)}</fluent-card>${(0,wt.g)((e=>{var t;return null===(t=e.superSDSetting)||void 0===t?void 0:t.isActionMenuOpen}),Ei)} `)}
`,qi=kt.d`<fluent-card class="shopping-single-card-container" style="${e=>e.carouselStyles?e.carouselStyles:""}"><msn-shopping-card cardType="${e=>e.cardType}" cardSize="${e=>e.cardSize}" variant="${e=>e.variant}" show-secondary-image="${e=>e.showSecondaryImage}" lazy-load-secondary-image=${e=>e.lazyLoadSecondaryImage} hoverEffects="${e=>e.hoverEffects}" :flyoutTextCardConfig="${e=>e.flyoutTextCardConfig}" use-nrt-seen-telemetry="${e=>e.useNRTSeenTelemetry}" seen-duration="${e=>e.useNRTSeenTelemetry?e.meaningfulViewportDuration:null}" seen-intersection-ratio="${e=>e.useNRTSeenTelemetry?e.intersectionRatio:null}" :displayAttributes="${e=>(e.displayAttributes,e.displayAttributes)}" :shoppingEntity="${e=>e.singleDealEntity}" target="${e=>e.target}" hide-merchant-logo-in-title=${e=>e.hideMerchantLogoInTitle} :autoImageObjectFitConfig=${e=>e.autoImageObjectFitConfig} data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.shoppingSingleDealCard)||void 0===i?void 0:i.getMetadataTag()}}"></msn-shopping-card>${Li} ${(0,wt.g)((e=>e.enableContextMenu),kt.d`<div class="single-deal-context-menu-container">${(0,wt.g)((e=>e.toggleSDCardActionMenu&&!e.superSDSetting),kt.d`<fluent-button ${(0,Ot.i)("actionMenuButtonElement")} class="context-menu-options ${e=>e.moreOptionButtonNoBackplate?"no-backplate":""} ${e=>e.seeMoreActive?"svg-dark-seeall":""}" appearance="neutral" @click=${(e,t)=>e.toggleSDCardActionMenu&&e.toggleSDCardActionMenu(t.event)} title="${e=>e.moreOptionsTooltip}" aria-label="${e=>e.moreOptionsTooltip}" aria-expanded="${e=>!!e.isActionMenuOpen}" role="button" data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.menuMore)||void 0===i?void 0:i.getMetadataTag()}}">${Dt.Z}</fluent-button>`)} ${(0,wt.g)((e=>!!e.superSDSetting),Ai)}</div>`)}</fluent-card>`,Zi=kt.d` ${(0,wt.g)((e=>!e.suppress),Wi)} ${(0,wt.g)((e=>e.showReportIssueDialogPopup),wi)}
`,_i=Gt.i`
:host{--shopping-stripe-background:${si.IfY};
}
`,Yi=Gt.i`
msn-shopping-full-width-mit::part(header-wrapper){padding:0 18px;box-sizing:border-box;width:100%}`,Xi=Gt.i`
:host{position:relative}:host fluent-card{content-visibility:auto}.about-slug-dialog{display:none;visibility:hidden;--action-dialog-z-index:5000;--action-dialog-width:500px;--fill-color:${di.A4}}.about-slug-dialog-link-container{display:flex;align-items:center;margin-top:10px}.about-slug-dialog-link-container span{margin:0 5px;color:var(--neutral-foreground-hint)}.about-slug-link{cursor:pointer;text-decoration:none;color:${si.goi}}.about-slug-link:hover{text-decoration:underline;outline:none}.about-slug-glyph-container{background:transparent;margin:0px;display:inline-grid;color:${si.Q5n}}.about-slug-glyph{fill:currentcolor}fluent-button.no-backplate{background:var(--context-menu-options-background,transparent);--filled-path:${"'M6.75 10C6.75 10.9665 5.9665 11.75 5 11.75C4.0335 11.75 3.25 10.9665 3.25 10C3.25 9.0335 4.0335 8.25 5 8.25C5.9665 8.25 6.75 9.0335 6.75 10ZM11.75 10C11.75 10.9665 10.9665 11.75 10 11.75C9.0335 11.75 8.25 10.9665 8.25 10C8.25 9.0335 9.0335 8.25 10 8.25C10.9665 8.25 11.75 9.0335 11.75 10ZM15 11.75C15.9665 11.75 16.75 10.9665 16.75 10C16.75 9.0335 15.9665 8.25 15 8.25C14.0335 8.25 13.25 9.0335 13.25 10C13.25 10.9665 14.0335 11.75 15 11.75Z'"};
    color: var(--context-menu-icon-color, ${si.CHi})}fluent-button.no-backplate:hover > svg > path{transition:all 0.5s;d:path(var(--filled-path))}.context-menu-tooltip{display:none;visibility:hidden;position:absolute;background:${si.RJY};
    overflow: hidden;
    right: 0;
    z-index: 500;
    transform: translate(-40%, 20%);
    top: 0;
    font-size: 13px;
    border: 1px solid ${si.CHi};padding:3px 4px;cursor:default}.context-menu-tooltip.visible,.context-menu-tooltip:hover{visibility:visible;display:block}.context-menu-options{background:var(--context-menu-options-background,unset)}.single-deal-context-menu-container{position:absolute;bottom:8px;right:10px;z-index:1}msn-shopping-carousel.feed-no-background::part(click-through-link),msn-shopping-carousel.feed-no-background fluent-button.about-slug-glyph-container svg,msn-shopping-carousel-vnext.feed-no-background::part(shopping-header-seeall),msn-shopping-carousel-vnext.feed-no-background::part(shopping-heading-link),msn-shopping-carousel-vnext.feed-no-background fluent-button.about-slug-glyph-container svg{color:#fff;text-shadow:0px 0px 3px rgb(0 0 0 / 80%)}msn-shopping-carousel-vnext fluent-button.about-slug-glyph-container svg{height:12px;width:12px;fill:var(--shopping-about-slug-color,var(--neutral-foreground-rest))}msn-shopping-carousel-vnext fluent-button.about-slug-glyph-container.translucent svg{fill:#FFFFFF}msn-shopping-carousel fluent-button.about-slug-glyph-container svg,msn-shopping-carousel-card fluent-button.about-slug-glyph-container svg{height:12px;width:12px;fill:var(--shopping-about-slug-color,rgb(38,38,38))}.shopping-nav-header{cursor:pointer;z-index:100}.shopping-nav-header-focused{background:#EEEEEE}.shopping-nav-header svg{vertical-align:middle;padding:2px 6px}.shopping-nav-header-container{position:relative}.shopping-nav-header-new{position:absolute;left:13px;bottom:10px}.shopping-nav-list{position:absolute;list-style:none;text-decoration:none;padding:5px;margin-left:40px;margin-top:14px;background:#FFFFFF;top:23px;width:235px;z-index:50;overflow-y:scroll;max-height:240px;border-radius:6px;border:1px solid rgba(0,0,0,.15)}.shopping-nav-list::-webkit-scrollbar{width:10px}.shopping-nav-list::-webkit-scrollbar-thumb{border-radius:20px;height:82px;-webkit-box-shadow:inset 0 0 5px #eee;background:#D6D6D6}shopping-nav-list:hover + .shopping-nav-header{background:green}.shopping-nav-item{height:30px;border-radius:3px;font-size:14px;line-height:16px}.shopping-nav-tick{float:right;margin-right:5px}.shopping-nav-tick > svg{fill:rgb(0,120,212)}.shopping-nav-item:hover{background:#F2F2F2}.shopping-nav-list a{display:block;text-decoration:none;vertical-align:sub;padding-left:5px;height:100%;padding-top:7px;color:var(--neutral-foreground-rest);cursor:pointer}msft-stripe{display:block;padding:22px 0 24px 0;--scroll-item-spacing:12px;--scroll-fade-next:transparent}.heading{color:${si.CHi}}.stripe-shopping-card{width:var(--item-width,220px);height:320px;margin-top:2px}.stripe-shopping-card-first{margin-inline-start:2px}.stripe-shopping-card-last{margin-inline-end:2px}.carousel-end{position:absolute;top:var(--carousel-end-top,90%)}msn-shopping-carousel-vnext::part(shopping-stripe-background){background:var(--shopping-stripe-background,#FFF);height:var(--shopping-stripe-height,418px);width:100vw;position:absolute;margin-left:-50vw;left:50%}msn-shopping-carousel-vnext[special-event]::part(shopping-stripe-background){background:transparent;height:auto}msn-shopping-carousel-vnext.contained-background::part(shopping-stripe-background){width:100%;margin:0;left:0;border-radius:6px}msn-shopping-carousel-vnext.feed-no-background::part(shopping-stripe-background){--shopping-stripe-background:transparent}msn-shopping-carousel-vnext.contained-background::part(shopping-header-seeall){color:var(--shopping-see-all-color,var(--accent-foreground-rest))}.shopping-header-icon{width:var(--shopping-header-icon-width,auto);height:var(--shopping-header-icon-height,auto)}.shopping-header-icon svg{width:var(--shopping-header-icon-width,23px);height:var(--shopping-header-icon-height,23px)}.shopping-header-icon path{fill:var(--shopping-header-icon-fill,${si.Avx})}.shopping-single-deal-card-decoration{display:flex;align-items:center;position:absolute;left:12px;top:11px;border-radius:6px;padding:2px 7px;color:#fff;background:rgba(68,68,68,0.8);backdrop-filter:blur(2px)}.shopping-single-deal-card-decoration-icon-container{width:20px;height:20px;margin-inline-end:4px;display:flex;align-items:center;justify-content:center;color:#ff3400}.shopping-single-deal-card-decoration-icon-container svg{width:100% height:100%;fill:currentColor}.shopping-single-deal-card-decoration-text{font-size:${si.sNp};
    line-height: ${si.vgC};
    font-weight: 600;
}

${Yi}

`.withBehaviors((0,Nt.Uu)(_i),(0,Nt.Uu)(Gt.i` msn-shopping-carousel-vnext::part(shopping-stripe-background){background:var(--shopping-stripe-background-dark,transparent)}.shopping-nav-list{background:#4A4A4A}.shopping-nav-item:hover{background:#828282}.context-menu-tooltip{background:var(--neutral-fill-hover);border-color:#fff}.svg-dark-seeall{fill:var(--neutral-foreground-rest) !important}msn-shopping-carousel-card.click-thourhg-dark-seeall::part(click-through-link){color:var(--neutral-foreground-rest)}fluent-button.no-backplate{background:var(--context-menu-options-dark-background,var(--context-menu-options-background,transparent));color:var(--context-menu-icon-dark-color,var(--context-menu-icon-color,${si.CHi}));
                }
            `)),Ki={experienceConfigSchema:F};(0,l.z)().withShadowRootMode("closed").withElementDisambiguation((()=>h.h.ignoreDuplicate)).register((0,d.hb)(),(0,c.ay)(),(0,u.QT)(),(0,p.EK)()),h.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>h.h.ignoreDuplicate)).withPrefix("msft").register((0,r.ZX)(),(0,s.tH)())},44421:function(e,t,i){"use strict";i.d(t,{G:function(){return r},Q:function(){return a}});var o=i(84289),n=i(99502);const a=(e,t,i,a,r,s,l,d)=>{const c=(0,o.NU)(e,t,l,d);s&&Object.assign(c,{[n.a.propertyNames]:{enum:s}});const u=Object.assign(Object.assign({},r),{[n.a.title]:a});return Object.assign(c,{[n.a.additionalProperties]:u})},r=(e,t,i,o,n,r,s,l,d)=>({[e]:Object.assign({},a(t,i,o,n,r,s,l,d))})},30113:function(e,t,i){"use strict";var o;i.d(t,{m:function(){return o}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(o||(o={}))},11708:function(e,t,i){"use strict";var o;i.d(t,{f:function(){return o}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(o||(o={}))},83152:function(e,t,i){"use strict";var o;i.d(t,{L:function(){return o}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(o||(o={}))},791:function(e,t,i){"use strict";i.d(t,{N:function(){return b}});var o=i(33940),n=i(33954),a=i(26415),r=i(68364),s=i(33799),l=i(16517),d=i(94788),c=i(67267),u=i(63535),p=i(87298),h=i(83152),g=i(11708),v=i(30113),f=i(65135),m=i(33379),y=i(51671);const b=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield c.$.getOneServiceHeaders(),credentials:"include"},i=(0,u.PH)(this.locationsServiceEndPoint);let n;[...c.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{n=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return n}return n}))}addToFavoriteLocation(e,t){return(0,o.mG)(this,void 0,void 0,(function*(){const i="Location",n="Follow",a={method:"POST",body:JSON.stringify({actionType:n,targetType:i,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},r=(0,u.PH)(this.pdpServiceEndpoint);let d;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{d=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(r.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,o.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,o.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,i={},n){return(0,o.mG)(this,void 0,void 0,(function*(){const a=h.L.Location,r="Follow",d=yield this.getRequestInit({method:"POST"},i);d.body=JSON.stringify({actionType:r,targetType:a,definitionName:t,degree:"DefaultLocation",metaData:e});const g=(0,u.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(a),!0}))}updateTrafficMyRoutes(e,t,i,a,r,s){return(0,o.mG)(this,void 0,void 0,(function*(){const l=i.replace(/[^a-zA-Z0-9\-.,_]/g,""),d=h.L.Traffic,u="Follow",g={method:"POST",body:JSON.stringify({actionType:u,targetType:d,targetId:l,degree:e,definitionName:t,metadata:a,createdDateTime:s}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},v=yield this.getTrafficPdpUrl(null,null,r);try{yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(v.href,g);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${d}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(d)}catch(e){return n.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,i){return(0,o.mG)(this,void 0,void 0,(function*(){const n={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(e,t,i);try{yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var i;return(0,o.mG)(this,void 0,void 0,(function*(){const n={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(i=yield e.json())||void 0===i?void 0:i.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,i){return(0,o.mG)(this,void 0,void 0,(function*(){const o=(0,u.PH)(this.pdpServiceEndpoint),n=(yield(0,y.XJ)())===s.Hy.SignedIn,a=(0,l.Yq)().UserId,r=n?c.$.getOneServiceParamsWithAuth(a,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(a,this.ocid,!this.ocidOverride);if(e||t){const i=`targetType eq '${h.L.Traffic}'`,n=e?`degree eq '${e}'`:"",a=t?`definitionName eq '${t}'`:"";o.searchParams.set("$filter",`actionType eq 'Follow' and (${i})${n?` and (${n})`:""}${a?` and (${a})`:""}`)}return[...r,...i||[]].forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)})),o}))}addToWatchList(e,t=0,i={},n={}){return(0,o.mG)(this,void 0,void 0,(function*(){const a=h.L.Finance,r="Follow",d={method:"POST",body:JSON.stringify({actionType:r,targetType:a,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},n)}),headers:yield this.getOneserviceHeaders(i),credentials:"include"},g=(0,u.PH)(this.pdpServiceEndpoint),v="zh-cn"!==(0,l.Yq)().CurrentMarket;let f;((yield(0,y.XJ)())===s.Hy.SignedIn&&v?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));try{f=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(a)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},i={}){return(0,o.mG)(this,void 0,void 0,(function*(){const n=h.L.Finance,a="Follow",r={method:"POST",body:JSON.stringify(e.map((e=>({actionType:a,targetType:n,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},i)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint),g="zh-cn"!==(0,l.Yq)().CurrentMarket;let v;((yield(0,y.XJ)())===s.Hy.SignedIn&&g?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{v=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(d.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(n)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?i:3&i|8).toString(16)}))}sortWatchList(e,t={}){var i;return(0,o.mG)(this,void 0,void 0,(function*(){const n=h.L.Finance,a="Follow",r=yield b.readPdpWithTargetType(h.L.Finance,!0,200,t),d=r&&(null===(i=r.value)||void 0===i?void 0:i.filter((e=>e.actionType===a&&e.targetId)));if(!d||d.length<e.length)return!1;const g={};let v=e.length;d.forEach((t=>{let i=e.findIndex((e=>e===t.targetId));i<0&&(i=v,v++),g[t.targetId]=JSON.stringify({actionType:a,targetId:t.targetId,targetType:n,rank:i,metadata:t.metadata})}));const f={method:"PUT",body:JSON.stringify(g),headers:yield this.getOneserviceHeaders(t),credentials:"include"},m=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&m.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,f);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,i,a={},r){return(0,o.mG)(this,void 0,void 0,(function*(){const t=h.L.Weather,o={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:i}}}}),headers:yield this.getOneserviceHeaders(a),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(d.href,o);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,i={},n){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let o="";o=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const a=yield this.getRequestInit({method:"POST"},i);a.body=o;const r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));const d=yield this.fetchImpl(r.href,a);if(d.status>=400){const e=`OneService returned error response. Status: ${d.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},i=JSON.stringify(t),o=yield this.getRequestInit({method:"POST"});o.body=i;const n=(0,u.PH)(this.userUpdateEndpoint),a="zh-cn"!==(0,l.Yq)().CurrentMarket;((yield(0,y.XJ)())===s.Hy.SignedIn&&a?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const r=yield this.fetchImpl(n.href,o);if(r.status>=400){const e=`OneService returned error response. Status: ${r.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},i){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const o=[];let a;for(a in e)null!=e[a]&&o.push('"'+a+'": '+JSON.stringify(e[a]));const r='{"userSettings":{'+o.join(", ")+"}}",d=yield this.getRequestInit({method:"POST"},t);d.body=r;const p=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(p.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather setting call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={},i){return(0,o.mG)(this,void 0,void 0,(function*(){const a=yield this.getRequestInit({method:"GET"},t),r=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(i||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(i||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(r.href,a);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(n.k.logError(t.message),e)throw Error(t.message);return null}}))}updatePdpLayoutPreference(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:e}})},i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update layout preference setting call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}updateSegmentCardsEnableStatus(e,t=null){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const i=[];if(t){let e;for(e in t)null!=t[e]&&i.push('"'+e+'": '+JSON.stringify(t[e]))}const o=e.map((e=>e.cardType!=g.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),n=i.length>0?'{"segmentCardSettings":"{'+o+'}","userSettings":{'+i.join(", ")+"}}":'{"segmentCardSettings":"{'+o+'}"}';return this.updateUserPreference(n)}))}updateProductivityCardsEnableStatus(e){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const i={communitySettings:t};return this.updateUserPreference(JSON.stringify(i))}))}updateWidgetSettings(e,t={},i){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const o=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:h.L.Widget,metadata:{prongsv2:{region:e.region,size:v.m[e.size],position:e.position}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(o),appError:i})}))}muteWidget(e,t={},i){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const o=e.map((e=>({actionType:"Mute",targetId:e,targetType:h.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(o),appError:i})}))}disableSpotlightCard(e,t){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const i={actionType:"Disabled",definitionName:e,targetType:h.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:t})}))}enableSpotlightCard(e,t){return(0,o.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(h.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,o.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:i,endpoint:n,method:a,payload:r,appError:d}=e;if(!n||!a)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),d),!1;const h=(0,u.PH)(n);let g;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)})),i&&i.forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));try{JSON.parse(r),g=r}catch(e){g=JSON.stringify(r)}const v={method:a,body:g,headers:yield this.getOneserviceHeaders(t),credentials:"include"},f="GET"==a;try{return yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(h.href,v);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${r}`;throw new Error(t)}return!f||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,d),!1}}))}getUserActions(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],i=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return i&&i.value}))}setUserAction(e,t){return(0,o.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,o.mG)(this,void 0,void 0,(function*(){const i=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:i,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const o=yield this.fetchImpl(i.href,t);if(o.status>=400){const t=`OneService returned error response while updating user preference. Status: ${o.status}, payload: ${e}`;throw new Error(t)}}catch(e){return!1}return!0}))}setPdpTargetTypesForBulkLoad(e){e&&e.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=e)}readPdpWithTargetType(e,t=!1,i,n={},r=!0,s=[]){return(0,o.mG)(this,void 0,void 0,(function*(){if(r){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,i,n,s)));const o=this.bulkGraphActionResultCache.get(e);if(o)return{value:o}}else f.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const o=(yield this.fetchPdpWithTargetTypes([e],t,i,n,s)).get(e);if(o)return{value:o}}))}deleteFromPdp(e,t,i,n={},a,r="Follow",d,h=[]){return(0,o.mG)(this,void 0,void 0,(function*(){const g={method:"DELETE",headers:yield this.getOneserviceHeaders(n),credentials:"include"},v=(0,u.PH)(this.pdpServiceEndpoint),m=(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),b=`targetType eq '${e}'`,C=i.map((e=>`${t} eq '${e}'`)).join(" or ");let S=`actionType eq '${r}' and (${C}) and (${b})`;a&&(S+=` and (degree eq '${a}')`),v.searchParams.set("$filter",S),[...m,...h].forEach((e=>{e.value&&v.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(v.href,g);if(t.status>=400){const i=`OneService returned error response. Status: ${t.status} for actionType: ${r}, targetType: ${e}`;throw new Error(i)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return d&&f.M0.sendAppErrorEvent(Object.assign(Object.assign({},d),{pb:Object.assign(Object.assign({},d.pb),{actionType:r,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,i,n={},a=[]){return(0,o.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const r=e.map((e=>`targetType eq '${e}'`)).join(" or "),d=[{key:"$top",value:`${i=i||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${r})`}],h=yield this.getRequestInit({method:"GET"},n);!0===t&&(h.cache="no-store");const g=(0,u.PH)(this.pdpServiceEndpoint);[...d,...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...a].forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));const v=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,h);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!v.ok)throw Error(`code=${v.status}, ${v.statusText}`);const f=new Map,m=yield v.json();if(!m)return f;if(m.value)for(const e of m.value){let t=f.get(e.targetType);t||f.set(e.targetType,t=[]),t.push(e)}for(const t of e)f.get(t)||f.set(t,[]);return f}))}updateMarketPreference(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(i.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return n.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,o.mG)(this,void 0,void 0,(function*(){let t=null;if(d.yb){const i=this.maptoWebWorkerId(e);if(i&&i.trim()){const i=yield(0,d.ot)({id:this.maptoWebWorkerId(e)});i.fetched&&(t=i.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case h.L.Location:return"weatherpdp";case h.L.League:return"sportsleaguepdp";case h.L.Player:return"sportsplayerpdp";case h.L.Team:return"sportsteampdp";case h.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,o.mG)(this,void 0,void 0,(function*(){const i=yield c.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},i),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,o.mG)(this,void 0,void 0,(function*(){const t=yield c.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){return(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"GET"}),t=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&t.searchParams.set(e.key,e.value)}));try{const i=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const i=yield this.fetchImpl(t.href,e);if(!i.ok){if(i.status>=400&&i.status<500&&408!=i.status)return i;(0,r.OO)(null,a.G9t,"Error get followed list")}return i}))),"getFollowedLists");return i.ok||(0,r.OO)(null,a.G9t,"Error get followed list"),yield i.json()}catch(e){return n.k.logError(e.message),null}}))}addToFollowedLists(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t=h.L.Finance,i={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{a=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,i);if(e.status>=400){const i=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${t}`;throw new Error(i)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){return(0,o.mG)(this,void 0,void 0,(function*(){const t=h.L.Finance,i={method:"DELETE",body:null,headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;[...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{a=yield(0,p.w)((()=>(0,o.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,i);if(e.status>=400){const i=`OneService returned error response. Status: ${e.status} for actionType: UnFollowList, targetType: ${t}`;throw new Error(i)}return e.json()}))),"deleteFromFollowedLists")}catch(e){return!1}return!0}))}logError(e,t){t?f.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message})})):n.k.logError(e.message)}}{constructor(){super((0,m.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===l.jG.AppType||"newsAndInterests"===l.jG.AppType||"winWidgets"===l.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===l.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===l.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===l.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===l.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}},71492:function(e,t,i){"use strict";i.d(t,{BZ:function(){return d},EX:function(){return o},Hu:function(){return c},IN:function(){return r},MM:function(){return l}});var o,n=i(12884),a=i(16517);function r(e){return new URLSearchParams((0,n.zp)()).get(e)}function s(e){const t=["modal-offer-ids","modal-image-ids","pid","title","clksrc","modal-ec-ids"];for(let i=0;i<t.length;i++){const o=t[i];e.delete(o)}}function l(e,t=!1){const i=new URLSearchParams(location.search);t&&s(i),e&&e.forEach(((e,t)=>{i.set(t,e)}));const o=new URLSearchParams;return i.getAll("item").forEach((e=>o.append("item",e))),i.delete("item"),`${i}${o.getAll("item").length>0?"&"+decodeURIComponent(o.toString()):""}`}function d(){return`https://${a.jG.NavTargetHostName}`}!function(e){e.ClickSourceQueryParam="clksrc",e.ModalCarouselOfferIdsQueryParam="modal-offer-ids",e.ModalCarouselImageIdsQueryParam="modal-image-ids",e.ModalCarouselECIdsQueryParam="modal-ec-ids",e.gameFirstPositionQueryParam="game-first-position",e.itemQueryParam="item"}(o||(o={}));class c{static getSchemeAndDomain(){return window.location.origin.indexOf("localhost")>-1?window.location.origin:d()}}},27422:function(e,t,i){"use strict";i.d(t,{M:function(){return h}});var o=i(33940),n=i(44833),a=i(53813),r=i(44979),s=i(47224),l=i(26415),d=i(65135),c=i(68651),u=i(87697),p=i(791);class h{constructor(e,t,i,n,a,r,s){this.menuItems=[],this.isActionMenuOpen=!1,this.actionsMenuButtonElement=null,this.onOutsideClick=e=>{var t;const i=e.composedPath()&&e.composedPath()[0];e.target instanceof this.currentSDClass||(null===(t=this.actionsMenuButtonElement)||void 0===t?void 0:t.contains(i))||this.toggleActionMenu(!1,null)},this.onKeydown=e=>{"Escape"===e.code&&this.toggleActionMenu(!1,null)},this.moreSettingAction=()=>(0,o.mG)(this,void 0,void 0,(function*(){this.toggleActionMenu(!1,null),this.goToPersonalizeSettingsCallback&&this.goToPersonalizeSettingsCallback()})),this.hideSettingAction=()=>(0,o.mG)(this,void 0,void 0,(function*(){if(!this.segmentSdCardType)return!1;try{const e=yield p.N.updateSegmentCardsEnableStatus([{cardType:this.segmentSdCardType,enabled:!1}]);return e&&this.refreshSDCardSection&&this.refreshSDCardSection(),this.toggleActionMenu(!1,null),e}catch(e){return d.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.M2Y.SuperSDHideCardError),{message:`Fail to hide ${this.segmentSdCardType} Card .`,pb:Object.assign(Object.assign({},l.M2Y.SuperSDHideCardError.pb),{customMessage:`Failed with exception : ${e}`})})),!1}})),this.currentSDClass=e,this.isDynamicFeed=t,this.sdCardDynamicFeedConfig=n,this.settingMenuConfig=a,this.goToPersonalizeSettingsCallback=r,this.refreshSDCardSection=s,this.menuItems=this.getBaseActionMenuItems(),this.segmentSdCardType=i}updateMenuItems(e,t){this.menuItems=t?this.menuItems.concat(e):e.concat(this.menuItems)}toggleActionMenu(e,t){this.isDynamicFeed&&this.sdCardDynamicFeedConfig?this.toggleCardActionsForDynamicFeed(t):(this.isActionMenuOpen=e,e?(this.actionsMenuButtonElement=t&&t.currentTarget,this.setAriaExpanded(e),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.setAriaExpanded(e),this.actionsMenuButtonElement=null,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown)))}setAriaExpanded(e){this.actionsMenuButtonElement&&(this.actionsMenuButtonElement.ariaExpanded=String(e))}toggleCardActionsForDynamicFeed(e){const t=this.sdCardDynamicFeedConfig;if(e&&t){const i={menuItems:(0,c.aS)(t.supportedSdCardActionMenuItems,t.poweredName,void 0,t.feedLayoutCardType,t.cardSize,t.settingsHandler),referrerButton:e.currentTarget,requestContext:new r.fH};t.sdCardActionClickHandler(i,t.feedLayoutCardType)}}getBaseActionMenuItems(){var e,t;if(!this.settingMenuConfig)return[];const i=[];if(null===(e=this.settingMenuConfig.interestSetting)||void 0===e?void 0:e.onClick){const e=this.settingMenuConfig.interestSetting;i.push({glyph:a.Z,title:e.title,id:"dislike",onClick:e.onClick,telemetryTag:e.telemetryTag})}if(null===(t=this.settingMenuConfig.dataProviderSetting)||void 0===t?void 0:t.onClick){const e=this.settingMenuConfig.dataProviderSetting;i.push({glyph:n.Z,title:e.title,id:"dataProvider",onClick:e.onClick,telemetryTag:e.telemetryTag})}if(this.settingMenuConfig.hideSetting){const e=this.settingMenuConfig.hideSetting;i.push({glyph:a.Z,title:e.title,id:"hide",onClick:e.onClick?e.onClick:()=>this.hideSettingAction(),telemetryTag:e.telemetryTag})}if(this.settingMenuConfig.moreSetting){const e=this.settingMenuConfig.moreSetting;i.push({glyph:s.Z,ariaLabel:e.ariaLabel,title:e.title,id:"more",onClick:e.onClick?e.onClick:()=>this.moreSettingAction(),telemetryTag:e.telemetryTag})}return i}}(0,o.gn)([u.LO],h.prototype,"menuItems",void 0),(0,o.gn)([u.LO],h.prototype,"isActionMenuOpen",void 0)},6551:function(e,t,i){"use strict";i.d(t,{D:function(){return r},J:function(){return s}});var o=i(53271),n=i(33763),a=i(39181);n.S;const r=(e,t,i,n,r="more-actions",s=!1)=>a.d`
        <fluent-button
            slot="${r}"
            appearance="neutral"
            class=${null!=n?n:""}
            @click=${e}
            data-t=${e=>t}
            title="${i}"
            aria-label="${i}"
            aria-expanded="${s}"
            role="button"
        >
            ${o.Z}
        </fluent-button>
    `,s=(e,t,i,o="end")=>a.d`
        <msn-actions-menu 
            :referrerButton=${t=>e}
            :menuItems=${e=>t}
            :useFastAnchoredRegion=${e=>!0!==i}
            defaultHorizontalPosition=${o}
        />
    `},16339:function(e,t,i){"use strict";i.d(t,{Iq:function(){return l},MD:function(){return r},gL:function(){return s}});var o=i(59049),n=i(14675);const a=new o.v("WidgetLoadTracker");function r(e){a.has(e)||("hidden"!==document.visibilityState?(0,n.c)((()=>a.set(e,!0))):a.set(e,!0))}const s=new o.v("WidgetAppState");var l;!function(e){e[e.IsDarkMode=1]="IsDarkMode",e[e.IsDashboardVisible=2]="IsDashboardVisible",e[e.ActionMenuStrings=3]="ActionMenuStrings",e[e.IsDynamicFeed=4]="IsDynamicFeed",e[e.SessionId=5]="SessionId",e[e.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",e[e.FeedRegionWidgets=7]="FeedRegionWidgets",e[e.DefaultPreviewType=8]="DefaultPreviewType",e[e.IsReauthRequired=9]="IsReauthRequired"}(l||(l={}))},68651:function(e,t,i){"use strict";i.d(t,{B$:function(){return v},f3:function(){return y},US:function(){return m},aS:function(){return g},gK:function(){return b}});var o=i(38156),n=i(16339),a='<svg width="4" height="4" viewBox="0 0 4 4"><rect width="4" height="4" rx="2" fill-opacity=".9"/></svg>',r=i(19456),s=i(53813),l=i(94522),d=i(60483),c=i(64434);let u,p,h;function g(e,t,i,d,c,g){const m=[];let y=0,b=!1;if(!e||!e.length)return;const C=n.gL.get(n.Iq.ActionMenuStrings),S=e.includes(v.Unpin);return h=S?"pinned":"feed",u=i||{},p=d,e.forEach((e=>{switch(e){case v.Small:y++,u.height=146,m.push({id:"small",glyph:c===e?a:void 0,title:C.small||"Small",ariaLabel:C.small||"Small",telemetryTag:f(`size_${v.Small}`,C.small,o.wu.Customize)});break;case v.Medium:y++,u.height=304,m.push({id:"medium",glyph:c===e?a:void 0,title:C.medium||"Medium",ariaLabel:C.medium||"Medium",telemetryTag:f(`size_${v.Medium}`,C.medium,o.wu.Customize)});break;case v.Large:y++,u.height=462,m.push({id:"large",glyph:c===e?a:void 0,title:C.large||"Large",ariaLabel:C.large||"Large",telemetryTag:f(`size_${v.Large}`,C.large,o.wu.Customize)});break;case v.Pin:m.push({id:"pinCard",glyph:l.Z,title:C.pinCard||"Pin widget",ariaLabel:C.pinCard||"Pin widget",telemetryTag:f("pinwidget",C.pinCard,o.wu.Pin)});break;case v.Customize:b=!0,y>1&&m.push({isDivider:!0}),m.push({id:"customize",glyph:r.Z,title:C.customize||"Customize widget",ariaLabel:C.customize||"Customize widget",onClick:()=>g("onShowSettingsEnd"),telemetryTag:f("editwidget",C.customize,o.wu.Customize)});break;case v.Unpin:!b&&y>1&&m.push({isDivider:!0}),m.push({id:"unpinCard",glyph:'<svg width="16" height="20" viewBox="0 0 17 16" fill="none"><path d="M16 15.5c0 .14-.04.25-.14.35-.1.1-.22.15-.35.15a.49.49 0 0 1-.36-.15l-5.03-5.02-1.14 3.81a.5.5 0 0 1-.18.26.46.46 0 0 1-.3.1.48.48 0 0 1-.35-.15L5 11.7.7 16H0v-.71L4.3 11 1.15 7.85A.49.49 0 0 1 1 7.5c0-.1.03-.2.09-.27a.55.55 0 0 1 .22-.18L4.9 5.6.15.85A.48.48 0 0 1 0 .5C0 .36.05.24.15.15A.5.5 0 0 1 .5 0c.13 0 .25.05.35.15l15 15c.1.1.15.21.15.35ZM7.24 5.1l-.75-.75 1.47-3.24A1.48 1.48 0 0 1 9.89.34c.18.08.34.18.48.32L15.3 5.6c.14.14.24.3.32.5a1.49 1.49 0 0 1-.8 1.95L11.52 9.4l-.76-.77 3.66-1.53a.5.5 0 0 0 .3-.46.48.48 0 0 0-.14-.35L9.66 1.38a.46.46 0 0 0-.16-.1.45.45 0 0 0-.19-.05c-.1 0-.19.03-.27.08a.5.5 0 0 0-.18.21L7.23 5.1ZM2.39 7.68l5.87 5.87 1.06-3.53-3.66-3.65L2.4 7.68Z"/></svg>',title:C.unpinCard||"Unpin widget",ariaLabel:C.unpinCard||"Unpin widget",telemetryTag:f("unpinwidget",C.unpinCard,o.wu.Unpin)});break;case v.PoweredBy:m.push({isDivider:!0}),m.push({id:"poweredBy",isText:!0,title:t||"Powered by Microsoft",ariaLabel:t||"Powered by Microsoft"});break;case v.RemoveWidget:m.push({id:v.RemoveWidget,glyph:s.Z,title:C.hideWidget,ariaLabel:C.hideWidget,telemetryTag:f("removewidget",C.hideWidget,o.wu.Hide)})}})),m}var v;function f(e,t,i){return new d.D({name:`${p}>customization_${e}`,type:o.c9.ActionButton,action:o.Aw.Click,behavior:i,zone:h,content:{headline:t,type:o.uH.StructuredData,vertical:p,category:p},destinationUrl:location.href,ext:u}).getMetadataTag()}function m(e){switch(e){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function y(e,t,i){e&&i&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:i,size:"medium"}})),e.style.zIndex=c.K.Above.toString(),e.style.height="304px")}function b(e,t,i,o){e&&i&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:i,size:"small"}})),!1,e.style.zIndex="",e.style.height="")}!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Customize="customize",e.Pin="pin",e.Unpin="unpin",e.PoweredBy="poweredBy",e.RemoveWidget="removeWidget"}(v||(v={}))},90282:function(e,t,i){"use strict";i.d(t,{q:function(){return y}});var o=i(33940),n=i(89346),a=i(44541),r=i(65620);class s extends a.V{constructor(){super(...arguments),this.headinglevel=2,this.dismiss=()=>{this.$emit("action-dialog-dismiss")}}}(0,o.gn)([(0,r.Lj)({attribute:"headline"})],s.prototype,"headline",void 0);var l=i(32804),d=i(53046),c=i(67020);const u=d.i`
    ${(0,c.j)("flex")} :host {
        --dialog-height: var(--action-dialog-height, auto);
        --dialog-width: var(--action-dialog-width, auto);
        --button-border-radius: 20px;
        --button-min-width: 160px;
        --control-corner-radius: 2px;
        --dialog-padding: 24px;
        --space-above-title: 20px;
        --space-between-buttons: 8px;
        z-index: var(--action-dialog-z-index, 0);
    }

    .body {
        margin: 0 var(--dialog-padding) var(--dialog-padding) var(--dialog-padding);
    }

    .content {
        display: flex;
        flex-direction: column;
    }

    .controls {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: var(--space-between-buttons);
        justify-content: center;
    }

    .heading {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1;
        position: relative;
        width: 100%;
    }

    .heading span {
        font-size: ${l.mWK};
        font-weight: 600;
        line-height: ${l.ipv};
        margin-inline-start: var(--dialog-padding);
        margin-top: var(--space-above-title);
    }
`;var p=i(39181),h=i(13988),g=i(58952);const v=p.d`
    <div class="positioning-region" part="positioning-region">
        ${(0,h.g)((e=>e.modal),p.d`
                <div
                    class="overlay"
                    part="overlay"
                    role="presentation"
                    tabindex="-1"
                    @click="${e=>e.dismiss()}"
                ></div>
            `)}
        <div
            role="dialog"
            class="control"
            part="control"
            aria-modal="${e=>e.modal}"
            aria-describedby="${e=>e.ariaDescribedby}"
            aria-labelledby="${e=>e.ariaLabelledby}"
            aria-label="${e=>e.ariaLabel}"
            ${(0,g.i)("dialog")}
        >
            <div class="heading" part="heading">
                <span role="heading" aria-level=${e=>e.headinglevel}>${e=>e.headline}</span>
                <slot name="close-button" aria-hidden="true"></slot>
            </div>
            <div class="body" part="body">
                <div class="content" part="content">
                    <slot></slot>
                </div>
                <div class="controls" part="controls">
                    <slot name="action-button"></slot>
                    <slot name="cancel-button"></slot>
                </div>
            </div>
        </div>
    </div>
`;var f=i(62734);const m=d.i`
  :host([hidden]) {
    display: none;
  }

  :host {
    --elevation: 14;
    --dialog-height: 480px;
    --dialog-width: 640px;
    display: block;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    touch-action: none;
  }

  .positioning-region {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
  }

  .control {
    ${f.XC}
    margin-top: auto;
    margin-bottom: auto;
    border-radius: calc(${l.rSr} * 1px);
    width: var(--dialog-width);
    height: var(--dialog-height);
    background: ${l.IfY};
    z-index: 1;
    border: calc(${l.Han} * 1px) solid transparent;
  }
`;let y=class extends s{};y=(0,o.gn)([(0,n.M)({name:"msn-action-dialog",template:v,styles:[m,u],shadowOptions:{delegatesFocus:!0}})],y)},26785:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.85 2.15a.5.5 0 10-.7.7l3.5 3.5a8.1 8.1 0 00-3.37 5.05.5.5 0 10.98.2 7.09 7.09 0 013.1-4.53l1.6 1.59a3.5 3.5 0 104.88 4.89l4.3 4.3a.5.5 0 00.71-.7l-15-15zm9.27 10.68a2.5 2.5 0 11-3.45-3.45l3.45 3.45zm-2-4.83l3.38 3.38A3.5 3.5 0 0010.12 8zM10 6c-.57 0-1.13.07-1.67.21l-.8-.8A7.65 7.65 0 0110 5c3.7 0 6.94 2.67 7.72 6.4a.5.5 0 01-.98.2A6.97 6.97 0 0010 6z"></path></svg>'},55096:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.91 7.38A8.5 8.5 0 013.69 4.3a.5.5 0 01.54-.13l1.92.68a1 1 0 001.32-.76l.36-2a.5.5 0 01.4-.4 8.53 8.53 0 013.55 0c.2.04.35.2.38.4l.37 2a1 1 0 001.32.76l1.92-.68a.5.5 0 01.54.13 8.5 8.5 0 011.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 000 1.52l1.56 1.32a.5.5 0 01.15.54 8.5 8.5 0 01-1.78 3.08.5.5 0 01-.54.13l-1.92-.68a1 1 0 00-1.32.76l-.37 2a.5.5 0 01-.38.4 8.53 8.53 0 01-3.56 0 .5.5 0 01-.39-.4l-.36-2a1 1 0 00-1.32-.76l-1.92.68a.5.5 0 01-.54-.13 8.5 8.5 0 01-1.78-3.08.5.5 0 01.15-.54l1.56-1.32a1 1 0 000-1.52L2.06 7.92a.5.5 0 01-.15-.54zm1.06 0l1.3 1.1a2 2 0 010 3.04l-1.3 1.1c.3.79.71 1.51 1.25 2.16l1.6-.58a2 2 0 012.63 1.53l.3 1.67a7.56 7.56 0 002.5 0l.3-1.67a2 2 0 012.64-1.53l1.6.58a7.5 7.5 0 001.24-2.16l-1.3-1.1a2 2 0 010-3.04l1.3-1.1a7.5 7.5 0 00-1.25-2.16l-1.6.58a2 2 0 01-2.63-1.53l-.3-1.67a7.55 7.55 0 00-2.5 0l-.3 1.67A2 2 0 015.81 5.8l-1.6-.58a7.5 7.5 0 00-1.24 2.16zM7.5 10a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0zm1 0a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0z"></path></svg>'},8417:function(e,t,i){"use strict";i.d(t,{Ph:function(){return x},$M:function(){return T},XO:function(){return $}});var o=i(33940),n=i(65620),a=i(20005),r=i(12968),s=i(87697),l=i(11673),d=i(36153),c=i(65898),u=i(51208),p=i(86076),h=i(17453),g=i(82500);class v extends h.k{}class f extends((0,g.Um)(v)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}var m=i(51565);class y extends f{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=(0,l.EL)("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void r.SO.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return s.y$.track(this,"value"),this._value}set value(e){var t,i,o,n,a,r,l;const d=`${this._value}`;if(null===(t=this._options)||void 0===t?void 0:t.length){const t=this._options.findIndex((t=>t.value===e)),s=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,d=null!==(a=null===(n=this._options[t])||void 0===n?void 0:n.value)&&void 0!==a?a:null;-1!==t&&s===d||(e="",this.selectedIndex=t),e=null!==(l=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==l?l:e}d!==e&&(this._value=e,super.valueChanged(d,e),s.y$.notify(this,"value"),this.updateDisplayValue())}updateValue(e){var t,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==i?i:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?m.S.above:m.S.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===m.S.above?~~e.top:~~t}get displayValue(){var e,t;return s.y$.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;const i=e.relatedTarget;this.isSameNode(i)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),"value"===t&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach((e=>{s.y$.getNotifier(e).unsubscribe(this,"value")})),super.slottedOptionsChanged(e,t),this.options.forEach((e=>{s.y$.getNotifier(e).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t),null===(i=this.options)||void 0===i||i.forEach(((e,t)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(t);o&&(o.selected=e.selected)}))}setDefaultSelectedOption(){var e;const t=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(c.R.slottedOptionFilter),i=null==t?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)})))}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case d.BI:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case d.tU:case d.Kh:e.preventDefault();break;case d.kL:e.preventDefault(),this.open=!this.open;break;case d.CX:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case d.oM:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===d.iF||t===d.SB)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&s.y$.notify(this,"displayValue")}}(0,a.gn)([(0,n.Lj)({attribute:"open",mode:"boolean"})],y.prototype,"open",void 0),(0,a.gn)([s.lk],y.prototype,"collapsible",null),(0,a.gn)([s.LO],y.prototype,"control",void 0),(0,a.gn)([(0,n.Lj)({attribute:"position"})],y.prototype,"positionAttribute",void 0),(0,a.gn)([s.LO],y.prototype,"position",void 0),(0,a.gn)([s.LO],y.prototype,"maxHeight",void 0);class b{}(0,a.gn)([s.LO],b.prototype,"ariaControls",void 0),(0,p.e)(b,c.x),(0,p.e)(y,u.hW,b);var C=i(9530),S=i(27663);class x extends y{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,o.gn)([(0,n.Lj)({mode:"fromView"}),(0,o.w6)("design:type",String)],x.prototype,"appearance",void 0);const T=x.compose({baseName:"select",baseClass:y,template:C.U,styles:S.X,indicator:'\n    <svg\n        class="select-indicator"\n        part="select-indicator"\n        viewBox="0 0 12 7"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n        />\n    </svg>\n  '}),$=S.X},27663:function(e,t,i){"use strict";i.d(t,{A:function(){return h},X:function(){return g}});var o=i(53046),n=i(56201),a=i(67020),r=i(37139),s=i(40082),l=i(87839),d=i(2658),c=i(62734),u=i(82636),p=i(32804);const h=(e,t)=>o.i`
    :host([appearance="filled"]) {
        background: ${p.wFS};
        border-color: transparent;
    }

    :host([appearance="filled"]:hover:not([disabled])) {
        background: ${p.XiB};
        border-color: transparent;
    }

    :host([appearance="filled"]:${n.b}) {
        border-color: ${p.yGg};
    }
`,g=(e,t)=>o.i`
        ${(0,a.j)("inline-flex")} :host {
            --elevation: 14;
            background: ${p._Bj};
            border-radius: calc(${p.UWU} * 1px);
            border: calc(${p.Han} * 1px) solid ${p.akT};
            box-sizing: border-box;
            color: ${p.CHi};
            font-family: ${p.SVJ};
            height: calc(${d.i} * 1px);
            position: relative;
            user-select: none;
            min-width: 250px;
            vertical-align: top;
        }

        .listbox {
            ${c.XC}
            background: ${p.s55};
            border-radius: calc(${p.UWU} * 1px);
            box-sizing: border-box;
            display: inline-flex;
            flex-direction: column;
            left: 0;
            max-height: calc(var(--max-height) - (${d.i} * 1px));
            padding: calc(${p._5n} * 1px) 0;
            overflow-y: auto;
            position: absolute;
            width: 100%;
            z-index: 1;
            margin: 1px 0;
        }

        .listbox[hidden] {
            display: none;
        }

        .control {
            align-items: center;
            box-sizing: border-box;
            cursor: pointer;
            display: flex;
            font-size: ${p.cSu};
            font-family: inherit;
            min-height: 100%;
            line-height: ${p.RUt};
            padding: 0 calc(${p._5n} * 2.25px);
            width: 100%;
        }

        :host(:not([disabled]):hover) {
            background: ${p.Tm7};
            border-color: ${p.QPc};
        }

        :host(:focus) {
            outline: none;
        }

        :host(:${n.b}) {
            border-color: ${p.yGg};
            outline: none;
            box-shadow: 0 0 0 1px inset ${p.yGg};
        }

        :host([open]:${n.b}) {
            border-color: ${p.akT};
            outline: none;
            box-shadow: none;
        }

        :host(:${n.b}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
            box-shadow: 0 0 0 calc(${p.vxp} * 1px) inset ${p.a2F};
            border-color: ${p.yGg};
            background: ${p.D8M};
            color: ${p.$uW};
        }

        :host([disabled]) {
            cursor: ${r.H};
            opacity: ${p.VFZ};
        }

        :host([disabled]) .control {
            cursor: ${r.H};
            user-select: none;
        }

        :host([disabled]:hover) {
            background: ${p.jql};
            color: ${p.CHi};
            fill: currentcolor;
        }

        :host(:not([disabled])) .control:active {
            background: ${p.Ium};
            border-color: ${p.c1L};
            border-radius: calc(${p.UWU} * 1px);
        }

        :host([open][position="above"]) .listbox {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        :host([open][position="below"]) .listbox {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        :host([open][position="above"]) .listbox {
            border-bottom: 0;
            bottom: calc(${d.i} * 1px);
        }

        :host([open][position="below"]) .listbox {
            border-top: 0;
            top: calc(${d.i} * 1px);
        }

        .selected-value {
            font-family: inherit;
            flex: 1 1 auto;
            text-align: start;
        }

        .indicator {
            flex: 0 0 auto;
            margin-inline-start: 1em;
        }

        ::slotted([name="listbox"]) {
            display: none;
            width: 100%;
        }

        :host([open]) ::slotted([name="listbox"]) {
            display: flex;
            position: absolute;
            ${c.XC}
        }

        .end {
            margin-inline-start: auto;
        }

        .start,
        .end,
        .indicator,
        .select-indicator,
        ::slotted(svg) {
            ${""}
            fill: currentcolor;
            height: 1em;
            min-height: calc(${p._5n} * 4px);
            min-width: calc(${p._5n} * 4px);
            width: 1em;
        }

        ::slotted([role="option"]) {
            flex: 0 0 auto;
        }
    `.withBehaviors((0,u.H)("filled",h(e,t)),(0,s.vF)(o.i`
                :host([disabled]) {
                    border-color: ${l.H.GrayText};
                    background-color: ${l.H.ButtonFace};
                    color: ${l.H.GrayText};
                    opacity: 1;
                    forced-color-adjust: none;
                }

                :host([disabled]:hover) {
                    background: ${l.H.ButtonFace};
                }

                :host([disabled]) .control {
                    color: ${l.H.GrayText};
                    border-color: ${l.H.GrayText};
                }

                :host(:not([disabled]):hover) {
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                }

                :host(:${n.b}) {
                    forced-color-adjust: none;
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                    box-shadow: 0 0 0 1px inset ${l.H.Highlight};
                    color: ${l.H.ButtonText};
                    fill: currentcolor;
                }

                :host([open]) .listbox {
                    background: ${l.H.ButtonFace};
                    border: 1px solid ${l.H.ButtonText};
                }

                :host(:${n.b}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
                    background: ${l.H.Highlight};
                    border-color: ${l.H.ButtonText};
                    box-shadow: 0 0 0 calc(${p.vxp} * 1px) inset
                        ${l.H.HighlightText};
                    color: ${l.H.HighlightText};
                    fill: currentcolor;
                }

                ::slotted([role="option"]:not([aria-selected="true"]):not([disabled]):hover) {
                    forced-color-adjust: none;
                    color: ${l.H.ButtonText};
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                    box-shadow: none;
                }
            `))},67491:function(e,t,i){"use strict";i.d(t,{v2:function(){return u},wt:function(){return p}});var o=i(20005),n=i(87697),a=i(65620),r=i(67846),s=i(48839),l=i(7775),d=i(51208),c=i(86076);function u(e){return(0,r.Re)(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}class p extends s.I{constructor(e,t,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}get text(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}set value(e){const t=`${null!=e?e:""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),n.y$.notify(this,"value")}get value(){var e;return n.y$.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text}get form(){return this.proxy?this.proxy.form:null}}(0,o.gn)([n.LO],p.prototype,"checked",void 0),(0,o.gn)([n.LO],p.prototype,"content",void 0),(0,o.gn)([n.LO],p.prototype,"defaultSelected",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean"})],p.prototype,"disabled",void 0),(0,o.gn)([(0,a.Lj)({attribute:"selected",mode:"boolean"})],p.prototype,"selectedAttribute",void 0),(0,o.gn)([n.LO],p.prototype,"selected",void 0),(0,o.gn)([(0,a.Lj)({attribute:"value",mode:"fromView"})],p.prototype,"initialValue",void 0);class h{}(0,o.gn)([n.LO],h.prototype,"ariaChecked",void 0),(0,o.gn)([n.LO],h.prototype,"ariaPosInSet",void 0),(0,o.gn)([n.LO],h.prototype,"ariaSelected",void 0),(0,o.gn)([n.LO],h.prototype,"ariaSetSize",void 0),(0,c.e)(h,l.v),(0,c.e)(p,d.hW,h)},17453:function(e,t,i){"use strict";i.d(t,{k:function(){return c}});var o=i(20005),n=i(12968),a=i(87697),r=i(65620),s=i(78945),l=i(36153),d=i(65898);class c extends d.R{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[t])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((e,t)=>{e.checked=(0,s.Z2)(t,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=(0,s.Z2)(t,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=(0,s.Z2)(t,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((e,t)=>{e.checked=(0,s.Z2)(t,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);const i=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;const{key:t,shiftKey:i}=e;switch(this.shouldSkipFocus=!1,t){case l.tU:return void this.checkFirstOption(i);case l.iF:return void this.checkNextOption(i);case l.SB:return void this.checkPreviousOption(i);case l.Kh:return void this.checkLastOption(i);case l.oM:return this.focusAndScrollOptionIntoView(),!0;case l.CX:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case l.BI:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null,null===(i=this.options)||void 0===i||i.forEach((e=>{e.checked=!t&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((e=>e.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(e,t){var i;const o=Math.max(0,parseInt(null!==(i=null==t?void 0:t.toFixed())&&void 0!==i?i:"",10));o!==t&&n.SO.queueUpdate((()=>{this.size=o}))}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled)),t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t)),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(this.multiple){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(e,t)}uncheckAllOptions(e=!1){this.options.forEach((e=>e.checked=!this.multiple&&void 0)),e||(this.rangeStartIndex=-1)}}(0,o.gn)([a.LO],c.prototype,"activeIndex",void 0),(0,o.gn)([(0,r.Lj)({mode:"boolean"})],c.prototype,"multiple",void 0),(0,o.gn)([(0,r.Lj)({converter:r.Id})],c.prototype,"size",void 0)},65898:function(e,t,i){"use strict";i.d(t,{x:function(){return h},R:function(){return p}});var o=i(20005),n=i(87697),a=i(65620);var r=i(36153),s=i(11673),l=i(48839),d=i(67491),c=i(7775),u=i(86076);class p extends l.I{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return n.y$.track(this,"options"),this._options}set options(e){this._options=e,n.y$.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e<t?1:0,o=e+i;let n=null;switch(i){case-1:n=this.options.reduceRight(((e,t,i)=>!e&&!t.disabled&&i<o?t:e),n);break;case 1:n=this.options.reduce(((e,t,i)=>!e&&!t.disabled&&i>o?t:e),n)}return this.options.indexOf(n)}handleChange(e,t){if("selected"===t)p.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions()}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),p.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case r.tU:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case r.iF:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case r.SB:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case r.Kh:e.preventDefault(),this.selectLastOption();break;case r.oM:return this.focusAndScrollOptionIntoView(),!0;case r.kL:case r.CX:return!0;case r.BI:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof e){const i=this.getSelectableIndex(e,t),o=i>-1?i:e;return this.selectedIndex=o,void(t===o&&this.selectedIndexChanged(t,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var i;const o=t.filter(p.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((e=>{const t=n.y$.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=o.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let i=e.length;for(;i--;)if(t(e[i],i,e))return i;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){var e,t,i;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>((0,d.v2)(t)&&e.push(t),e)),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{e.id||(e.id=(0,s.EL)("option-")),e.ariaPosInSet=`${t+1}`,e.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}p.slottedOptionFilter=e=>(0,d.v2)(e)&&!e.hidden,p.TYPE_AHEAD_TIMEOUT_MS=1e3,(0,o.gn)([(0,a.Lj)({mode:"boolean"})],p.prototype,"disabled",void 0),(0,o.gn)([n.LO],p.prototype,"selectedIndex",void 0),(0,o.gn)([n.LO],p.prototype,"selectedOptions",void 0),(0,o.gn)([n.LO],p.prototype,"slottedOptions",void 0),(0,o.gn)([n.LO],p.prototype,"typeaheadBuffer",void 0);class h{}(0,o.gn)([n.LO],h.prototype,"ariaActiveDescendant",void 0),(0,o.gn)([n.LO],h.prototype,"ariaDisabled",void 0),(0,o.gn)([n.LO],h.prototype,"ariaExpanded",void 0),(0,o.gn)([n.LO],h.prototype,"ariaMultiSelectable",void 0),(0,u.e)(h,c.v),(0,u.e)(p,h)},51565:function(e,t,i){"use strict";i.d(t,{S:function(){return o}});const o={above:"above",below:"below"}},9530:function(e,t,i){"use strict";i.d(t,{U:function(){return d}});var o=i(39181),n=i(13988),a=i(58952),r=i(90960),s=i(65898),l=i(51208);const d=(e,t)=>o.d`
    <template
        class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
        aria-activedescendant="${e=>e.ariaActiveDescendant}"
        aria-controls="${e=>e.ariaControls}"
        aria-disabled="${e=>e.ariaDisabled}"
        aria-expanded="${e=>e.ariaExpanded}"
        aria-haspopup="${e=>e.collapsible?"listbox":null}"
        aria-multiselectable="${e=>e.ariaMultiSelectable}"
        ?open="${e=>e.open}"
        role="combobox"
        tabindex="${e=>e.disabled?null:"0"}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
        @focusin="${(e,t)=>e.focusinHandler(t.event)}"
        @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
        @keydown="${(e,t)=>e.keydownHandler(t.event)}"
        @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"
    >
        ${(0,n.g)((e=>e.collapsible),o.d`
                <div
                    class="control"
                    part="control"
                    ?disabled="${e=>e.disabled}"
                    ${(0,a.i)("control")}
                >
                    ${(0,l.m9)(e,t)}
                    <slot name="button-container">
                        <div class="selected-value" part="selected-value">
                            <slot name="selected-value">${e=>e.displayValue}</slot>
                        </div>
                        <div aria-hidden="true" class="indicator" part="indicator">
                            <slot name="indicator">
                                ${t.indicator||""}
                            </slot>
                        </div>
                    </slot>
                    ${(0,l.LC)(e,t)}
                </div>
            `)}
        <div
            class="listbox"
            id="${e=>e.listboxId}"
            part="listbox"
            role="listbox"
            ?disabled="${e=>e.disabled}"
            ?hidden="${e=>!!e.collapsible&&!e.open}"
            ${(0,a.i)("listbox")}
        >
            <slot
                ${(0,r.Q)({filter:s.R.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
            ></slot>
        </div>
    </template>
`}}]);A
Eo