forked from bombastictranz/bombastictranz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ms-rewards-wc.d308629ee514ab7ff87a.js.download
24 lines (23 loc) · 48.8 KB
/
ms-rewards-wc.d308629ee514ab7ff87a.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(self.webpackChunk_msnews_msnews_experiences=self.webpackChunk_msnews_msnews_experiences||[]).push([["ms-rewards-wc"],{21800:function(e,t,n){"use strict";n.r(t),n.d(t,{MsRewardsWC:function(){return V},MsRewardsWCSSRStyles:function(){return we},MsRewardsWCStyles:function(){return ve},MsRewardsWCTemplate:function(){return te},ToolingInfo:function(){return be}});var r=n(33940),i=n(70041),s=n(523),o=n(62907),a=n(57663),c=n(34934),l=n(5232),u=n(32808);var d;!function(e){e.EdgeChromium="EdgeNTP",e.Windows="WindowsStart"}(d||(d={}));const h="msRewardsCampaign";var g,p;!function(e){e.auto_flyout="auto_flyout"}(g||(g={})),function(e){e.Flyout="0",e.AutoFlyout="2"}(p||(p={}));const f="MSRewardsMedallion";var m=n(28951),y=n(22680);class w{constructor(){this._registeredCampaign=null;const e=this.getDefaultRegisteredCampaign();e&&(this._registeredCampaign={name:e})}static getInstance(){return this._instance||(this._instance=new this)}static deInit(){this._instance=void 0}getDefaultRegisteredCampaign(){const e=(0,y.zp)();if(e){const t=m.c.getQueryParameterByName("defaultRegisteredCampaign",e);if(t)return t}return null}register(e){return!(!e||!e.name)&&(this._registeredCampaign&&this._registeredCampaign.name?this._registeredCampaign.name.toLocaleLowerCase()===e.name.toLocaleLowerCase():(this._registeredCampaign=e,!0))}}var v=n(31699),b=n(99452),_=n(5302),C=n(42122),S=n(29363),k=n(43225),E=n(242),P=n(30857),x=n(78125),A=n(44132),T=n(81586),I=n(98604),F=n(26197),O=n(17395),M=n(84964),$=n(24589),R=n(21215),L=n(16495),N=n(95603),B=n(52185),D=n(81489);class U{constructor(e){this.userNurturingManager=e}static getInstance(){return B.Gq.get("__LocalCoachmarkStorageManager__",(()=>new U(L.H.getInstance())))}async getAllLocalCoachmarkCampaignsByKey(e){if(!await this.userNurturingManager.isApiAvailableToUse())return this.sendClientLogEvent(`User's preference for local campaign ${e} could not be fetched.`),this.buildKeyErrorResponse();const t=await this.userNurturingManager.getPreferenceSetting(e);return t&&t.value}async getLocalCoachmarkCampaignByKeyAndName(e,t){if(!await this.userNurturingManager.isApiAvailableToUse())return this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be fetched.`),this.buildErrorResponse();const n=await this.userNurturingManager.getPreferenceSetting(e),r=n&&n.value;return r&&r.find((e=>e&&e.name===t))}async setLocalCoachmarkCampaignByKeyAndName(e,t,n,r){if(!await this.userNurturingManager.isApiAvailableToUse())return void this.sendClientLogEvent(`User's preference for local campaign key ${e} and name ${t} could not be set.`);const i=await this.userNurturingManager.getPreferenceSetting(e),s=i&&i.value?i.value:[],o=s.find((e=>e&&e.name===t)),a=s.indexOf(o),c=o&&o.count||0,l={name:t,count:c+1,source:n,time:r||(new Date).getTime()};a>-1?s[a]=l:s.push(l),this.userNurturingManager.savePreferenceSetting(e,s)}async clearLocalCoachmarkCampaignByKeyAndName(e,t){if(!await this.userNurturingManager.isApiAvailableToUse())return void this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be cleared.`);const n=await this.userNurturingManager.getPreferenceSetting(e),r=n&&n.value,i=r&&r.filter((e=>e&&e.name!==t));i&&this.userNurturingManager.savePreferenceSetting(e,i)}async clearAllLocalCoachmarkCampaignsByKey(e){await this.userNurturingManager.isApiAvailableToUse()?this.userNurturingManager.deleteKeyValueFromPSL(e):this.sendClientLogEvent(`User's preference for local campaign ${e} could not be cleared.`)}sendClientLogEvent(e,t){const n={message:e,type:"information",pb:{...(0,_.mnt)(),customMessage:t}};A.M0.sendClientLogEvent(n)}buildKeyErrorResponse(){return[this.buildErrorResponse(!0)]}buildErrorResponse(){const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"getAllLocalCoachmarkCampaignsByKey":"clearLocalCoachmarkCampaignByKeyAndName";return{count:-1,name:N.rr.apiError,source:e,time:(new Date).getTime()}}}const K=(0,D.h)(U);var H=n(22745),z=n(82928),j=n(25513);class V extends M.l{constructor(){super(...arguments),this.showFullPageBlur=!1,this.needDarkThemeIcons=!1,this.pageType="ntp",this.partnerId=d.EdgeChromium,this.channelId=p.Flyout,this.flyoutOpen=!1,this.outsideClickHandler=this.handleOutsideClick.bind(this),this.onMessageHandler=this.onMessage.bind(this),this.flyoutHasOpened=!1,this.autoFlyoutChecked=!1,this.localStorageStamped=!1,this.rewardsDashboardLink=`https://account.microsoft.${a.jG.topDomain}/rewards`,this.rewardsOnboardingLink=`https://microsoft.${a.jG.topDomain}`,this.onFlyoutEvent=(e,t)=>{this.showFlyout&&e!==c.tk.msRewards&&t&&this.toggleFlyout()}}getExperienceType(){return i.x.msRewardsWC}showExperienceChanged(){this.showExperience?this.classList.remove("hidden"):this.classList.add("hidden")}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.onMessageHandler),(0,c.WW)(this.onFlyoutEvent)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.onMessageHandler),(0,c.St)(this.onFlyoutEvent)}onMessage(e){if(e&&e.data&&e.data.action)switch(e.data.action){case"resize":this.handleResize(e);break;case"flyoutInternalError":this.handleAutoFlyoutError();break;case"close":this.handleCloseAutoFlyout()}}handleResize(e){if(e.data.bodyHeight){C.k.log(`Height received from rewards flyout: ${e.data.bodyHeight}`);const t=this.shadowRoot.querySelector(".rewards-flyout");t&&t.style&&(t.style.height=e.data.bodyHeight+"px")}else A.M0.sendAppErrorEvent({..._.w5f,message:"Rewards flyout didn't return body height"});(0,S.o_)("RewardsFlyout",!0)}handleAutoFlyoutError(){this.channelId===p.AutoFlyout&&(A.M0.sendAppErrorEvent({..._.rQV,message:"Internal Error message received from rewards auto flyout"}),this.showFlyout&&this.toggleFlyout())}handleCloseAutoFlyout(){this.channelId===p.AutoFlyout&&this.showFlyout&&this.toggleFlyout()}toggleFlyout(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("windowsshellhp"===this.pageType&&this.config.enableNavigation){const{dashboardUrlOverride:e,onboardingUrlOverride:t}=this.config;e&&(this.rewardsDashboardLink=e),t&&(this.rewardsOnboardingLink=t);const n=this.isRewardsUser?this.rewardsDashboardLink:this.rewardsOnboardingLink,r=(0,$.$A)(n,{ocid:(0,l.ku)(),cvid:A.M0.getRequestId()},!0);window.open(r,"_blank")}else this.showFlyout=!this.showFlyout,this.showFlyout?(this.flyoutHasOpened||(this.flyoutHasOpened=!0),document.addEventListener("mouseup",this.outsideClickHandler),e?(this.autoFlyoutClass="auto-flyout",this.channelId=p.AutoFlyout):(this.autoFlyoutClass="",this.channelId=p.Flyout)):document.removeEventListener("mouseup",this.outsideClickHandler),(0,c.Gg)(c.tk.msRewards,this.showFlyout)}handleOutsideClick(e){if(e.target.instanceId===i.x.msRewardsWC)return;const t=e.composedPath();null!=t&&t.includes(this)||(this.showFlyout=!1,document.removeEventListener("mouseup",this.outsideClickHandler),(0,c.Gg)(c.tk.msRewards,!1))}experienceConnected(){var e,t;if(!(0,R.N)()){const e="off"!==(0,z.K0)(s.z.ChromiumPageSettings).getCurrentState().currentBackgroundImageType;this.isOnImage=e}this.pageType=null===a.jG||void 0===a.jG||null===(e=a.jG.TrackInfo)||void 0===e||null===(t=e.sitePage)||void 0===t?void 0:t.page_type,"windowshp"===this.pageType&&(this.isOnImage=!1,this.partnerId=d.Windows,this.flyoutClass="win-flyout"),"ntp"!==this.pageType&&(this.isOnImage=!1,this.partnerId=d.Windows,this.flyoutClass="win-flyout"),(0,u.N6)("backgroundImage",(e=>{const t="displayed"===e;v.S.queueUpdate((()=>{this.isOnImage=t}))})),this.showExperience=!this.config.hideOnInit,window.isSSREnabled?(0,j.F_)().then((()=>this.subscribeRewards())):this.subscribeRewards(),this.generateTelemetryTags()}subscribeRewards(){this.config.disableOnSovereignClouds?(0,a.Yq)().unsupportedEnterpriseCloud.then((e=>this.subscribeRewardsData(e))):this.subscribeRewardsData()}updateRewardsData(e,t){if(this.rewardPoints=e.rewardPoints,this.isRewardsUser=e.isRewardsUser,(0,O.rr)().then((e=>{var n;this.showExperience=!0;const r=e===o.Hy.SignedIn&&(0,O.xQ)()===o.Qm.AAD||(null===(n=(0,a.Yq)())||void 0===n?void 0:n.isAadAccountUser);this.config.disableOnSovereignClouds&&r&&t&&(this.showExperience=!1),this.showExperience&&A.M0.addOrUpdateTmplProperty(f,"0")}),this.logError),!this.autoFlyoutChecked&&e&&e.rewardsEligibility&&e.rewardsEligibility.autoOpen){if(this.autoFlyoutChecked=!0,!this.config.enableAutoFlyout)return;this.displayFlyout().catch(this.logError)}}generateTelemetryTags(){this.rewardsTelemetryObject=this.telemetryObject.addOrUpdateChild({name:"CheckRewardsBalance",type:T.c9.Module,behavior:T.wu.Customize,content:{headline:"Check Rewards Balance"}}),this.rewardsTelemetryTag=this.rewardsTelemetryObject.getMetadataTag();const e=this.telemetryObject.addOrUpdateChild({name:"MicrosoftRewards",type:T.c9.Module});this.containerTelemetryTag=e.getMetadataTag()}shadowDomPopulated(){if(!(0,R.N)())return;const e=this.shadowRoot.getElementById("msRewards");e&&(0,I.FY)(F._.rewardsIcon,e);const t=this.shadowRoot.getElementById("rewards-button");t&&(0,I.FY)(F._.rewardsButton,t),(0,k.c)((()=>{const e=(0,E.Ou)()[S.nz+this.getExperienceType()];this.markVisuallyReady(e,!e)})),this.showExperience&&A.M0.addOrUpdateTmplProperty(f,"1")}get isDarkMode(){return P.I.getValueFor(this).relativeLuminance<=x.h.DarkMode}get getBaseCDNUrl(){return a.jG.StaticsUrl}subscribeRewardsData(e){(0,H.Uo)(s.z.RewardsData,(t=>this.updateRewardsData(t,e)))}async displayFlyout(){if(this.flyoutHasOpened)return;await this.checkPSLForAutoFlyoutEligibility()&&this.checkCampaignManagerForAutoFlyout()&&(this.toggleFlyout(!0),A.M0.addOrUpdateTmplString("rewards_auto_flyout_displayed"),this.updatePSLForAutoFlyout().catch(this.logError))}async checkPSLForAutoFlyoutEligibility(){const e=await K.getLocalCoachmarkCampaignByKeyAndName(h,g.auto_flyout);if(!e)return!0;if((e.count??0)>2)return!1;if(!e.time)return!1;return!((new Date).getTime()<e.time+6048e5)}checkCampaignManagerForAutoFlyout(){const e={name:h},t=w.getInstance();return t&&t.register(e)}async updatePSLForAutoFlyout(){await K.setLocalCoachmarkCampaignByKeyAndName(h,g.auto_flyout,"ntp")}logError(e){C.k.logError(JSON.stringify(e))}}(0,r.gn)([b.LO],V.prototype,"showExperience",void 0),(0,r.gn)([b.LO],V.prototype,"rewardPoints",void 0),(0,r.gn)([b.LO],V.prototype,"isOnImage",void 0),(0,r.gn)([b.LO],V.prototype,"showFlyout",void 0),(0,r.gn)([b.LO],V.prototype,"rewardsTelemetryTag",void 0),(0,r.gn)([b.LO],V.prototype,"flyoutClass",void 0),(0,r.gn)([b.LO],V.prototype,"autoFlyoutClass",void 0),(0,r.gn)([b.LO],V.prototype,"isRewardsUser",void 0),(0,r.gn)([b.LO],V.prototype,"showFullPageBlur",void 0),(0,r.gn)([b.LO],V.prototype,"needDarkThemeIcons",void 0);var G=n(49218),W=n(93703),q=n(56334),Z=n.n(q),Y=n(72685);const Q=G.dy`<div class="rewards-flyout ${e=>e.flyoutClass} ${e=>e.autoFlyoutClass}" id="rewards-flyout" part="rewardsFlyout"><iframe frameBorder="no" scrolling="no" src="https://www.bing.com/rewardsapp/flyout?channel=${e=>e.channelId}&partnerId=${e=>e.partnerId}&pageType=${e=>e.pageType}&isDarkMode=${e=>e.isDarkMode?1:0}" title="Microsoft News"></iframe></div>`,X=G.dy`<div class="reward-points ${e=>e.isOnImage&&!e.showFullPageBlur?"reward-balance-withoutContrast":"reward-balance-contrast"} ${e=>e.config.pointsAfterIcon?"after-icon":""}">${e=>e.rewardPoints<e.config.thresholdToTruncateRewardPoints?e.rewardPoints:e.config.localizedStrings.truncatedRewardPoints}</div>`,J=G.dy`<fluent-button
class="rewards-button${e=>e.isOnImage&&!e.showFullPageBlur?" img":""}${e=>e.config.enableNavigation?" reward-button-contrast":""} ${e=>"hp"===e.pageType?"common":""}"
appearance="stealth"
data-t="${e=>e.rewardsTelemetryTag}"
@click=${(e,t)=>e.toggleFlyout()}
id="msRewards"
part="rewards-button"
title="${e=>e.strings.accessibility.title}"
aria-label="${e=>e.strings.accessibility.title}"><div class="${e=>e.config.enableNavigation?"contrast-container":""}">${(0,W.g)((e=>!e.config.disableRewardPoints&&e.rewardPoints),X)}<div class="reward-icon${e=>e.needDarkThemeIcons?" dark-theme":""}" id="rewards-button">${(0,W.g)((e=>e.config.enableNavigation),G.dy`<img src=${e=>e.isDarkMode?`${e.getBaseCDNUrl}latest/icons-wc/icons/RewardsWithContrastDark.svg`:`${e.getBaseCDNUrl}latest/icons-wc/icons/RewardsWithContrast.svg`} alt="${e=>e.strings.accessibility.msRewardsAriaLabel}" aria-hidden="true"/>`)} ${(0,W.g)((e=>!e.config.enableNavigation),G.dy`${G.dy.partial(Z())}`)}</div></div></fluent-button>${(0,W.g)((e=>e.showFlyout),Q)}
${(0,W.g)((()=>!(0,R.N)()),(e=>(0,Y.a)(`TTSR.${e.getExperienceType()}`)))}
`,ee=G.dy`<div class="reward-icon-placeholder ${e=>e.isOnImage&&!e.showFullPageBlur?" placeholder-img":""}" id="rewards-button">${G.dy.partial(Z())}</div>${(0,W.g)((()=>!(0,R.N)()),(e=>(0,Y.a)(`TTSR.${e.getExperienceType()}`)))}
`,te=G.dy`<template data-t="${e=>e.containerTelemetryTag}">${(0,W.g)((e=>e.showExperience&&!(0,R.N)()),ee)} ${(0,W.g)((e=>e.showExperience&&(0,R.N)()),J)}</template>`;var ne=n(33442),re=n(56121),ie=n(35680),se=n(38665),oe=n(42689),ae=n(71942),ce=n(22674),le=n(65517),ue=n(68178),de=n(80986),he=n(78923),ge=n(29717);const pe=`${de.K.Dialog}`,fe=he.i`
.rewards-flyout{right:0px}.reward-points{float:left;padding-right:7px}.reward-points.after-icon{float:right}`,me=he.i`
.rewards-flyout{left:0px}.reward-points{float:right;padding-left:7px}.reward-points.after-icon{float:left}`,ye=he.i` .reward-icon svg,.reward-icon svg path{fill:currentColor}`,we=he.i`
:host{position:relative}:host(.hidden){display:none}.rewards-button{background-color:transparent;min-width:40px;width:max-content;height:40px;margin-top:0px;border-radius:4px;transition-property:background,border,color;transition-duration:100ms;transition-timing-function:cubic-bezier(0.33,0,0.67,1)}.common.rewards-button{min-width:32px;height:32px;margin-top:1px;border-radius:2px}.reward-button-contrast{height:40px;padding:0 5px}.contrast-container{display:flex;align-items:center}.rewards-button:focus{border:none;outline:none}.rewards-button:hover{background:var(--subtle-background-hover,${ie.wF})}.reward-button-contrast:hover{background-color:${se.Qp}}.rewards-button.img:hover{background:rgba(255,255,255,6.05%)}fluent-button.rewards-button::part(control){padding:0 5px}.rewards-button span{position:relative}.reward-icon-placeholder svg,.rewards-button svg{height:24px;width:24px}.common.rewards-button svg{height:20px;width:20px}.reward-points{font-size:16px}.common .reward-points,.contrast-container .reward-points{font-size:14px}.reward-points.after-icon{font-size:16px;padding-inline-start:5px;padding-inline-end:0px}.reward-icon{display:flex;float:left}.img .reward-icon{fill:white}.reward-icon{fill:${oe.C}}.dark-theme svg{fill:black}.reward-icon-placeholder{height:40px;width:40px;display:flex;justify-content:center;align-items:center;position:relative;fill:${oe.C}}.placeholder-img{fill:white}`,ve=he.i`
${we} .rewards-flyout{box-shadow:0px 25.6px 57.6px rgb(0 0 0 / 13%),0px 0px 16.4px rgb(0 0 0 / 11%);position:absolute;width:320px;z-index:${pe}}.auto-flyout{width:240px}.win-flyout{position:absolute;top:initial}.reward-balance-contrast{color:${oe.C}}.reward-balance-withoutContrast{color:#FFFFFF}.rewards-flyout iframe{border-radius:4px;height:100%;width:100%}.title{height:48px;border-bottom:1px solid ${ae.dt}}.toast-root{position:fixed;top:100px;left:50%;transform:translate(-50%,0);width:fit-content;max-width:95%;z-index:700;--fill-color:${(()=>{const e=(0,ne.$B)((()=>le.m0))(re.ZP);return(0,ue.Y)()?le.P5:e})()};
--neutral-foreground-rest: ${(()=>{const e=(0,ne.$B)((()=>le.m0))(re.ZP);return(0,ue.Y)()?e:le.P5})()};
--accent-foreground-rest: ${(0,ue.Y)()?"#006CBE":"#63ADE5"};
--toast-message-max-width: 287px;
}
msn-toast::part(toast-root){
color: ${oe.C};
background: ${P.I}}.toast-close-button{background:transparent}`.withBehaviors(new ce.O(fe,me),(0,ge.vF)(ye)),be={experienceConfigSchema:undefined}},34934:function(e,t,n){"use strict";n.d(t,{Gg:function(){return a},St:function(){return l},WW:function(){return c},tk:function(){return r}});var r,i=n(52185),s=n(52058);!function(e){e.actionMenuOpen="actionMenuOpen",e.addTopSite="addTopSite",e.coachmark="coachmark",e.dailyDiscovery="dailyDiscovery",e.editTopSite="editTopSite",e.editWelcomeGreeting="editWelcomeGreeting",e.hamburgerMenu="hamburgerMenu",e.imageSearch="imageSearch",e.locationMarkerCard="locationMarkerCard",e.mobileAppUpsell="mobileAppUpsell",e.msRewards="msRewards",e.museumCard="museumCard",e.navOverflow="navOverflow",e.notificationBell="notificationBell",e.pivot="pivot",e.search="search",e.searchHistoryMoreOptions="searchHistoryMoreOptions",e.settings="settings",e.signInControl="signInControl",e.toast="toast",e.topSiteOverflowPanel="topSiteOverflowPanel",e.voiceSearchWC="voiceSearchWC",e.waffle="waffle",e.recommendedSitesSetting="recommendedSitesSetting",e.newsHeadlineBelowSearchboxMoreOptions="newsHeadlineBelowSearchboxMoreOptions",e.weatherOneLinerActionMenu="weatherOneLinerActionMenu"}(r||(r={}));class o{constructor(){this.flyoutOpen=!1,this.openFlyouts=new Set,this.registeredCallbacks=[]}static getInstance(){return i.Gq.get("__FlyoutCoordinationInstance__",(()=>new o))}reportFlyoutOpen(e,t){t?this.openFlyouts.add(e):this.openFlyouts.delete(e),this.flyoutOpen=this.openFlyouts.size>0;for(const n of this.registeredCallbacks)n(e,t)}registerFlyoutListener(e){this.registeredCallbacks.push(e)}unregisterFlyoutListener(e){(0,s.Z)(this.registeredCallbacks,(t=>e===t))}isFlyoutOpen(){return this.flyoutOpen}}function a(e,t){return o.getInstance().reportFlyoutOpen(e,t)}function c(e){return o.getInstance().registerFlyoutListener(e)}function l(e){return o.getInstance().unregisterFlyoutListener(e)}},8887:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(5302),i=n(44132),s=n(21215);class o{constructor(e,t,n,r){this.chromiumApiRetryCount=5,this.isNtpPrivateApiAvailable=e=>window&&window.chrome&&window.chrome.ntpSettingsPrivate&&"function"==typeof window.chrome.ntpSettingsPrivate[e],this.prefSettingKey=e,this.searchForKeyName=t,this.targetKeyName=n,this.defaultItem=r}async getPreferenceSetting(e,t){try{const n=await this.getPreferenceSettingValueArray(t),r=n.findIndex((t=>t[this.searchForKeyName]===e));return r>-1?n[r]:null}catch(t){const n=`Failed to find user preference key: ${e}`;return this.logAppError(r.Aps,n,t),null}}async savePreferenceSetting(e,t){try{const n=await this.getPreferenceSettingValueArray()||[],r=n.findIndex((t=>t[this.searchForKeyName]===e));if(r>-1){const e={...n[r],...t};n[r]=e}else{const r={...this.defaultItem,...t};r[this.searchForKeyName]=e,n.push(r)}return this.setAndSavePreferenceSetting(n)}catch(t){const n="Failed to store user preference setting";return this.logAppError(r.nS9,n,`Key:${e}.Error:${t}`),!1}}isApiAvailableToUse(){return new Promise((e=>{const t="Error in isApiAvailableToUse";try{this.isGoodToUseNtpSettingsPrivate("getAllPrefs")?void 0===this.isPrefSettingKeyAvailable?window.chrome.ntpSettingsPrivate.getAllPrefs((n=>{if(this.isPrefSettingKeyAvailable=n&&n.findIndex((e=>e.key===this.prefSettingKey))>-1,!this.isPrefSettingKeyAvailable){let e="";try{n&&n.forEach((t=>e+=`${t.key}+`))}catch(e){this.logAppError(r.Aps,"Error: Can not log keylist from preference setting",e)}this.logAppError(r.me0,t,`missing preference key: ${this.prefSettingKey}, available keys: ${e}`)}e(this.isPrefSettingKeyAvailable)})):e(this.isPrefSettingKeyAvailable):(this.logAppError(r.MFQ,t,"getAllPrefs not present"),e(!1))}catch(t){this.logAppError(r.MFQ,"Error: Unexpected throw in isApiAvailableToUse",t),e(!1)}}))}logAppError(e,t,n){null===i.M0||void 0===i.M0||i.M0.sendAppErrorEvent({...e,message:t,pb:{...e.pb,customMessage:n}})}async getPreferenceSettingValueArray(e){try{if(this.settingValuesArray&&!e)return this.settingValuesArray;{const e=await this.getPreferenceValueFromBrowser();return this.settingValuesArray=e||[],this.settingValuesArray}}catch(e){const t=`Failed to read ${this.prefSettingKey} preference setting`;return this.logAppError(r.k8J,t,e),[]}}setAndSavePreferenceSetting(e){if(!(0,s.N)())return!1;try{if(this.isGoodToUseNtpSettingsPrivate("setPref"))return this.settingValuesArray=e,window.chrome.ntpSettingsPrivate.setPref(this.prefSettingKey,this.settingValuesArray),!0;{const e="window.chrome.ntpSettingsPrivate.setPref does not exist.";return this.logAppError(r.T5b,e,`Key:${this.prefSettingKey}`),!1}}catch(e){return!1}}isGoodToUseNtpSettingsPrivate(e){let t=this.isNtpPrivateApiAvailable(e),n=0;for(;n<this.chromiumApiRetryCount&&!t;)n++,setTimeout((()=>{t=this.isNtpPrivateApiAvailable(e),t&&i.M0.sendAppErrorEvent({...r.$9$,message:`Chromium API retry succeed after ${n} retry`})}),50);if(!t){const t=`functionName: ${e},\n canUseDOM: ${(0,s.N)()},\n windows: ${window},\n document: ${window&&window.document},\n createElement: ${window&&window.document&&window.document.createElement},\n chrome: ${window&&window.chrome},\n ntpSettingsPrivate: ${window&&window.chrome&&window.chrome.ntpSettingsPrivate},\n ntpSettingsPrivate funtions: ${window&&window.chrome&&window.chrome.ntpSettingsPrivate&&Object.getOwnPropertyNames(window.chrome.ntpSettingsPrivate).toString()}\n `;i.M0.sendAppErrorEvent({...r.Fe_,message:"Failed to get funtion from window.chrome.ntpSettingsPrivate.",pb:{...r.Fe_.pb,customMessage:t}})}return t}getPreferenceValueFromBrowser(){return new Promise(((e,t)=>{if(this.isGoodToUseNtpSettingsPrivate("getPref"))window.chrome.ntpSettingsPrivate.getPref(this.prefSettingKey,(function(t){t&&t.value?e(t.value):e(null)}));else{const e="window.chrome.ntpSettingsPrivate.getPref does not exist.";this.logAppError(r.pCD,e,""),t(e)}}))}}},16495:function(e,t,n){"use strict";n.d(t,{H:function(){return g},U:function(){return p}});var r=n(52185),i=n(81489),s=n(5302),o=n(8887),a=n(42833),c=n(44132),l=n(21215),u=n(52965);function d(e,t){return(e||[]).find((e=>(null==e?void 0:e.key)===t))||null}function h(e,t){const{key:n,value:r,deleteKey:i=!1}=t;let s=e||[];if(i)s=s.filter((e=>e&&(null==e?void 0:e.key)!==n));else{const e=s.findIndex((e=>(null==e?void 0:e.key)===n));if(e>-1)s[e]={...s[e],value:r};else{const e={key:n,value:r};s.push(e)}}return s}class g extends o.N{constructor(){super("ntp.user_nurturing","key","value",{key:"default",value:"none"}),this._latestItems=[],this._initializeCachedItemsPromise=new a.o}static getInstance(){return r.Gq.get("__UserNurturingManager__",(()=>new g))}async savePreferenceSetting(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{return await this._initializeCachedItems(),this._updateCachedItems({key:e,value:t,deleteKey:n}),await this._updatePersistedItems({key:e,value:t,deleteKey:n})}catch(t){const n="Failed to store user nurturing preference";return this.logAppError(s.nS9,n,`Key:${e}.Error:${t}`),!1}}async getPreferenceSetting(e,t){try{if(await this._initializeCachedItems(),t){const t=await this._getPersistedItemByKey(e);return this._updateCachedItems({key:e,value:null==t?void 0:t.value,deleteKey:!1}),t}return this._getCachedItemByKey(e)}catch(t){const n=`Failed to find user preference key: ${e}`;return this.logAppError(s.Aps,n,t),null}}async getClonedPreferenceSetting(e,t){const n=await this.getPreferenceSetting(e,t);return(0,u.Z)(n)}async _initializeCachedItems(){var e,t,n,r,i,o;if(this._initializeCachedItemsPromise.wasSet())return this._initializeCachedItemsPromise.getResultAsync();const a=Date.now();null!==(e=window)&&void 0!==e&&null!==(t=e.chrome)&&void 0!==t&&null!==(n=t.ntpSettingsPrivate)&&void 0!==n&&n.getPref&&c.M0.addOrUpdateTmplProperty("psl_loading_time","-1");try{this._items=await this.getPreferenceValueFromBrowser()||[],this._latestItems=(0,u.Z)(this._items)}catch(e){const t="Failed to initialize cached items for UserNurturingManager";this.logAppError(s.Aps,t,e)}null!==(r=window)&&void 0!==r&&null!==(i=r.chrome)&&void 0!==i&&null!==(o=i.ntpSettingsPrivate)&&void 0!==o&&o.getPref&&c.M0.addOrUpdateTmplProperty("psl_loading_time",(Date.now()-a).toString()),this._initializeCachedItemsPromise.set(),this._listenToPreferenceChange()}_getCachedItemByKey(e){return d(this._items,e)}async _getPersistedItemByKey(e){return d(this._latestItems,e)}_updateCachedItems(e){this._items=h(this._items,e)}async _updatePersistedItems(e){const t=this._latestItems;return this.setAndSavePreferenceSetting(h(t,(0,u.Z)(e)))}deleteKeyValueFromPSL(e){this.savePreferenceSetting(e,null,!0)}_listenToPreferenceChange(){(0,l.N)()&&window.chrome&&window.chrome.ntpSettingsPrivate&&window.chrome.ntpSettingsPrivate.onPrefsChanged.addListener((e=>{const t=(e||[]).find((e=>(null==e?void 0:e.key)===this.prefSettingKey));t&&(this._latestItems=(0,u.Z)(t.value||[]))}))}}const p=(0,i.h)(g)},95603:function(e,t,n){"use strict";n.d(t,{Nn:function(){return u},Xm:function(){return r},_9:function(){return l},nc:function(){return a},rr:function(){return o},sj:function(){return s}});const r={campaigns:"campaigns",feedLayout:"feed_layout",renderSingleColumn:"render_single_column",wpo:"wpo",wpoLytTmpl:"wpo_lyt_tmpl",topSites:"top_sites",recommendedSites:"recommended_sites",viewport:"viewport",wpo_nx:"wpo_nx",layoutPromotion:"layoutPromotion",layoutHistory:"layoutHistory"};var i,s,o;!function(e){e.Ntp="ntp",e.Wpo="wpo"}(i||(i={})),function(e){e.MultiColumn="multi",e.SingleColumn="single"}(s||(s={})),function(e){e.apiError="api_error"}(o||(o={}));const a={tscollapsed:"tscollapsed",layout_mode:"layout_mode",left_rail:"left_rail",quick_links_options:"quick_links_options",single_column:"single_column",recommended_sites:"recommended_sites",daily_discovery_in_search_box:"daily_discovery_in_search_box",news_below_searchbox:"news_below_searchbox",ntp_tips:"ntp_tips",search_history:"search_history",current_location_enabled:"current_location_enabled",enable_sponsored_content:"enable_sponsored_content",enable_split_screen:"enable_split_screen",hide_search_box:"hide_search_box",seen_interest_fre_count:"seen_interest_fre_count",visited_following_feed:"visited_following_feed",dismiss_scroll_down_button:"dismiss_scroll_down_button",bing_intl_upsell:"bing_intl_upsell",breaking_news_dismissed:"breaking_news_dismissed"};var c;!function(e){e.User="user",e.Wpo="wpo"}(c||(c={}));const l={backgroundImageTypePolicy:"ntp.background_type_blocked_by_policy",currentBackgroundImageType:"ntp.background_image_type",hideDefaultTopSites:"ntp.hide_default_top_sites",customBackgroundImageInfo:"ntp.local_background_image",layout:"ntp.layout_mode",quickLinks:"ntp.show_top_sites",quickLinksDisplaySetting:"ntp.quick_links_options",imageOfTheDay:"ntp.show_image_of_day",feeds:"ntp.news_feed_display",greeting:"ntp.show_greeting",showSettings:"ntp.show_settings",verticalTabsCollapsed:"edge.vertical_tabs.collapsed",verticalTabsOpened:"edge.vertical_tabs.opened",singleColumnEnabled:"ntp.single_column.enabled",userNurturingUpdated:"ntp.user_nurturing",hasUserSeenNewFre:"new_device_fre.has_user_seen_new_fre",defaultBrowserSettingEnabled:"browser.default_browser_setting_enabled",showAppLauncher:"ntp.enable_app_launcher",userChoices:"ntp.record_user_choices",selectedFeedPivot:"ntp.selected_feed_pivot"},u="_split";var d,h;!function(e){e.NotInChinaCoachMarkButton="notInChinaCoachMarkButton",e.FeedbackLink="feedbackLink"}(d||(d={})),function(e){e[e.focused=0]="focused",e[e.inspirational=1]="inspirational",e[e.informational=2]="informational",e[e.custom=3]="custom"}(h||(h={}))},90061:function(e,t,n){"use strict";n.d(t,{ZH:function(){return l},bE:function(){return d},iA:function(){return a},l_:function(){return u}});var r=n(242),i=n(42833),s=n(21215);const o="defer-hydration",a=window.location.search.includes("ssrhydrateperf"),c=(new Map,e=>t=>{if(!t.hasAttribute(e))return Promise.resolve();const n=new i.o;return new MutationObserver(((r,i)=>{t.hasAttribute(e)||(n.set(),i.disconnect())})).observe(t,{attributeFilter:[e]}),n.getResultAsync()}),l=c(o),u=c("needs-hydration"),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(0,s.N)())return{start:()=>{},markEnd:()=>{}};const n=`${e}.start`;return{start:()=>{var e;return null===(e=performance)||void 0===e?void 0:e.mark(n)},markEnd:function(){var i,s;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const c=`${e}.${o}`;var l;(null===(i=performance)||void 0===i||i.mark(c),null===(s=performance)||void 0===s||s.measure(`${e}.${o}:duration`,n,c),a)&&((0,r.Ou)()[`${e}.${o}:duration`]=null===(l=performance)||void 0===l?void 0:l.getEntriesByName(`${e}.${o}:duration`)[0].duration)}}};new Set;var h;!function(e){e[e.Immediate=0]="Immediate",e[e.Never=1]="Never",e[e.IdleAfterTtvr=2]="IdleAfterTtvr",e[e.OnInteraction=3]="OnInteraction",e[e.OnHover=4]="OnHover",e[e.OnPageResize=5]="OnPageResize"}(h||(h={}))},84964:function(e,t,n){"use strict";n.d(t,{l:function(){return A}});var r=n(33940),i=n(29367),s=n(57663),o=n(22471),a=n(28904),c=n(42590),l=n(33117),u=n(89799),d=n(242),h=n(33779),g=n(5302),p=n(29363),f=n(43225),m=n(93441),y=n(25513),w=n(81586),v=n(90061);class b extends Event{constructor(e){super(b.type,{bubbles:!0,composed:!0}),this.complete=e}static isPendingTask(e){var t;return e.type===b.type&&"function"==typeof(null===(t=e.complete)||void 0===t?void 0:t.then)}}b.type="pending-task";var _=n(78058),C=n(21215),S=n(21937),k=n(42833);let E=[];new Set,new k.o;var P=n(72685);const x="props-token";class A extends a.H{constructor(){super(...arguments),this.ensureObservableBeforeConnect=!1,this.hydratable=!1,this.isSSRRendered=!1,this.needPendingTask=!1}connectedCallback(){this.initializeCore().then((()=>{var e;return this.ttvrEnd=null===(e=this.perfTimeline)||void 0===e?void 0:e.startMeasure("render").endMeasure}))}async initializeCore(){const e=this.getExperienceType(),t=this.perfTimeline=(0,l.Dd)(e,this.instanceId);if(this.initStart=t&&(()=>this.initEnd=t.startMeasure("init").endMeasure),this.fetch=(0,u.Ud)({perfTimeline:t}),(0,d.O8)("WCE.Count"),(0,C.N)())this.hydratable=this.hasAttribute("defer-hydration")||this.hasAttribute("needs-hydration"),this.isSSRRendered=this.hasAttribute("needs-hydration"),this.initializeAsync();else{const e=this.initializeOnServerSide();this.needPendingTask&&this.dispatchEvent(new b(e))}}async initializeOnServerSide(){var e;null===(e=this.initStart)||void 0===e||e.call(this),this.needPendingTask=!1;const t=this.getExperienceType();try{var n;const e=this.getConfigRef();if(!this.config){let t;if("string"!=typeof e)try{t=i.U.getConfigSync(e)}catch(e){}t||(this.needPendingTask=!0,t=await i.U.getConfig(e)),this.config=t.properties}if(this.strings=this.config.localizedStrings,!this.telemetryObject){const e=this.getTelemetryContract();this.telemetryObject=new _.D(e)}const t=this.experienceConnected();t&&(this.needPendingTask=!0,await t),super.connectedCallback(),this.shadowDomPopulated(),null===(n=this.initEnd)||void 0===n||n.call(this)}catch(e){var r,s;null===(r=this.initEnd)||void 0===r||r.call(this,{customSuffix:"error"}),(0,h.OO)(e,g.xuo,`Exception web component experience(${t}) initializeOnServerSide.`,`ssrLayout:${null===(s=window.ssrLayoutState)||void 0===s?void 0:s.selectedFeedDisplaySetting};edgeHeader:${JSON.stringify(window.edgeNTPHeader)}`)}}async initializeAsync(){var e;this.hydratable&&await(0,v.ZH)(this),null===(e=this.initStart)||void 0===e||e.call(this),this.reportStartTimeToMilestoneConnector(m.g.updateVisuallyReadyTiming);const t=this.getExperienceType();try{var n;const e=this.getConfigRef();if(!this.config){const t=await i.U.getConfig(e);this.config=t.properties}if(this.strings=this.config.localizedStrings,!this.telemetryObject){const e=this.getTelemetryContract();this.telemetryObject=new _.D(e)}const{stalenessInfo:r}=this.config;r&&r.isStaleCheckRequired&&(o={experienceType:t,thresholdMinutes:r.staleThreshold,criticalCallback:()=>this.prerenderRefreshCritical(),delayCallback:()=>this.prerenderRefresh()},E.push(o)),this.ensureObservableBeforeConnect&&this.$fastController.bindObservables();const s=this.experienceConnected();if(s){const e=this.hydratable&&v.iA?(0,v.bE)(`${this.getExperienceType()}:experienceConnected`):void 0;null==e||e.start(),await s,null==e||e.markEnd()}if(this.hydratable){const e=v.iA?(0,v.bE)(`${this.getExperienceType()}:beforeHydration`):void 0;null==e||e.start(),await this.beforeHydration(),null==e||e.markEnd()}super.connectedCallback(),this.shadowDomPopulated(),this.hydratable&&await this.afterHydration(),this.perfTimeline&&(0,l.d0)(this,this.perfTimeline,P.y),null===(n=this.initEnd)||void 0===n||n.call(this)}catch(e){var r,s;(0,h.OO)(e,g.xuo,`Exception web component experience initializeAsync. ExperienceType: ${t}`,`ssrLayout:${null===(r=window.ssrLayoutState)||void 0===r?void 0:r.selectedFeedDisplaySetting};edgeHeader:${JSON.stringify(window.edgeNTPHeader)}`),this.logCriticalException(),null===(s=this.initEnd)||void 0===s||s.call(this,{customSuffix:"error"})}var o}experienceConnected(){}beforeHydration(){}afterHydration(){}shadowDomPopulated(){}prerenderRefreshCritical(){return Promise.resolve(void 0)}prerenderRefresh(){}logCriticalException(){}getConfigRef(){return s.jG.IsGitConfigs?{instanceSrc:this.instanceSrc,experienceType:this.getExperienceType(),sharedNs:this.sharedNs}:this.instanceSrc}getTelemetryContract(){return{type:w.c9.Module,name:this.getExperienceType()}}getApproxTTVRValue(e){const t=(0,d.Ou)();if(this.isSSRRendered&&t[o.p.isSSRCompleted])return t[p.nz+(e||this.getExperienceType())]||t[p.nz+o.p.complete]}markVisuallyReady(e,t){var n,r;const i=this.getApproxTTVRValue();t??(t=void 0===i),e=i||e;const s=(0,p.o_)(this.getExperienceType(),!1,e,t);return this.reportEndTimeToMilestoneConnector(m.g.updateVisuallyReadyTiming,e),null===(n=this.ttvrEnd)||void 0===n||n.call(this,{endTime:e}),null===(r=this.visualReadinessCallback)||void 0===r||r.call(this),s}markVisuallyReadyRaf(e){(0,f.c)((()=>this.markVisuallyReady(e)))}reportStartTimeToMilestoneConnector(e){this.reportTimeToMilestoneConnector(e,performance.now())}reportEndTimeToMilestoneConnector(e,t){this.reportTimeToMilestoneConnector(e,void 0,t||performance.now())}reportTimeToMilestoneConnector(e,t,n){const r=(0,y.S0)();r&&e.getActionSender(r).send({experienceType:this.getExperienceType(),experienceInstance:this.instanceId,startTime:t,endTime:n})}attributeChangedCallback(e,t,n){if(super.attributeChangedCallback(e,t,n),e===x){const e=(0,S.Y)(n);Object.assign(this,e)}}}(0,r.gn)([(0,c.Lj)({attribute:"config-instance-src"})],A.prototype,"instanceSrc",void 0),(0,r.gn)([(0,c.Lj)({attribute:"config-shared-ns"})],A.prototype,"sharedNs",void 0),(0,r.gn)([(0,c.Lj)({attribute:"instance-id"})],A.prototype,"instanceId",void 0),(0,r.gn)([(0,c.Lj)({attribute:x})],A.prototype,"propsToken",void 0)},72685:function(e,t,n){"use strict";n.d(t,{a:function(){return o},y:function(){return s}});var r=n(31699),i=n(49218);function s(){return new Promise((e=>r.S.queueUpdate((()=>e()))))}function o(e){return i.dy`<script nonce="${()=>window.NONCE_ID}">${i.dy.partial(`window.markTTSR("${e}");`)}</script>`}},32808:function(e,t,n){"use strict";n.d(t,{N6:function(){return o}});var r=n(52185);const i=()=>r.Gq.get("__core_DisplayModeCoordination_displayModeMap__",(()=>({}))),s=()=>r.Gq.get("__core_DisplayModeCoordination_callbackMap__",(()=>({})));function o(e,t){const n=s(),r=i();let o=n[e];o||(o=[],n[e]=o),o.push(t);const a=r[e];a&&t(a)}},26197:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});const r={backgroundInnerHolder:"backgroundInnerHolder",backgroundOuterHolder:"backgroundOuterHolder",cardAction:"cardAction",complianceHyperlink:"complianceHyperlink",feedToggle:"feedToggle",financeGreeting:"financeGreeting",following:"following",myInterests:"myInterests",gaming:"gaming",gridViewFeed:"gridViewFeed",headerSpaceHolder:"headerSpaceHolder",locationGreeting:"locationGreeting",marketSelector:"marketSelector",myFeed:"myFeed",navBar:"navBar",notificationBell:"notificationBell",nurturingCoachMark:"nurturingCoachMark",office365:"office365",overlayArticleReader:"overlayArticleReader",personalizeButton:"personalizeButton",pillWC:"pillWC",recommendedSites:"recommendedSites",rewardsIcon:"rewardsIcon",rewardsButton:"rewardsButton",rightRailSectionKey:"rightRailSectionKey",scrollableContainer:"scrollableContainer",searchBox:"search-box-edgenext",searchBoxInput:"searchBoxInput",searchBoxVoiceButton:"searchBoxVoiceButton",searchHistory:"searchHistoryEdgeNext",settingsButton:"SettingsButton",settingsCloseButton:"settingsCloseButton",settingsInformationalButton:"settingsInformationalButton",shoppingNav:"shoppingNav",signInButton:"signInButton",singleColumnFeedRoot:"singleColumnFeedRoot",superCoachMark:"superCoachMark",topSites:"topSites",unifiedMobileFeed:"unifiedMobileFeed",weatherNav:"weatherNav",waffle:"waffle",watchNav:"watchNav",waterfallViewFeed:"waterfallViewFeed",welcomeGreeting:"welcomeGreeting",navigationPage:"navigationPage",videoPlayButton:"videoPlayButton",imageEditButton:"imageEditButton",headerGrid:"headerGrid",floatButtonGroupWC:"floatButtonGroupWC",weatherHeroExperience:"weatherHeroExperience"}},98604:function(e,t,n){"use strict";n.d(t,{FY:function(){return a},b_:function(){return c},h_:function(){return l}});var r=n(42833),i=n(52185);const s=()=>i.Gq.get("__global-element-map_elementMap__",(()=>new Map)),o=()=>i.Gq.get("__global-element-map_waitForElementMap__",(()=>new Map));function a(e,t){if(!t)return;s().set(e,t);const n=o().get(e);n&&n.set(t)}function c(e){return e?s().get(e):null}function l(e){if(!e)return Promise.reject(null);const t=c(e);if(c(e))return Promise.resolve(t);const n=o();if(n.has(e))return n.get(e).getResultAsync();const i=new r.o;return n.set(e,i),i.getResultAsync()}},24589:function(e,t,n){"use strict";var r;n.d(t,{SH:function(){return l},$A:function(){return a},Jn:function(){return c}}),function(e){e.DesktopL1="weatherdesktopl1",e.DesktopL2="weatherdesktopl2",e.PWA="weatherpwa",e.EdgeFeatured="edgefeatured",e.WINAPP="weather-app-win",e.XIAOMI="xiaomi",e.XIAOMI_ANDROID_GO="xmweather-gominus1",e.XIAOMI_BROWSER="xmweather-browser",e.SKYPE="onoskype",e.WINDOWS_HEADER_PREFIX="win",e.EDGE_ARTICLE_PREFIX="msnar"}(r||(r={}));new Set(["msedgdhphdr","msedgntphdr","msedgntp","msedgdhp","entnewsntp"]);var i=n(57663),s=n(5884);function o(e){let t;if(e instanceof URL)t=e.searchParams;else if(e instanceof URLSearchParams)t=e;else if("string"==typeof e)try{t=new URL(e).searchParams}catch(e){t=void 0}return function(e,t,n){if(e&&t){const r={value:e.get(t)||void 0};if(!r.value&&n&&n.length>0)for(let t=0;t<n.length&&(r.value=e.get(n[t])||void 0,!r.value);++t);if(!r.value){const n=t.toLowerCase();e.forEach((function(e,t){!r.value&&t.toLowerCase()===n&&e&&(r.value=e)}))}return r.value}return}(t,"ocid")}function a(e,t,n){if(!e)return null;let r;try{r=e instanceof URL?new URL(e.href):new URL(e)}catch(e){return null}if(r&&(n||r.host.includes("msn.com")||r.host.includes(".msn.cn")))for(const[e,n]of Object.entries(t))e&&n&&r.searchParams.set(e,n);return r.href}function c(e){if("edgeChromium"===i.jG.AppType)return!1;const t=o(e),n=null==t?void 0:t.toLowerCase();return s.Oj.has(n)}n(61303);function l(e,t,n){return a(e,{cvid:t,ocid:n})}},56334:function(e){e.exports='<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.25 2c.97 0 1.75.78 1.75 1.75v3.04c0 1.03-.57 1.97-1.48 2.44l-6.28 3.28a5 5 0 11-4.48 0L3.48 9.23A2.75 2.75 0 012 6.79V3.75C2 2.78 2.78 2 3.75 2h16.5zM12 13.48a3.5 3.5 0 100 7 3.5 3.5 0 000-7zm3.5-9.98h-7v6.66l3.38 1.77c.08.04.16.04.24 0l3.38-1.77V3.5zM7 3.5H3.75a.25.25 0 00-.25.25v3.04c0 .47.26.9.67 1.11L7 9.38V3.5zm13.25 0H17v5.88l2.83-1.48c.41-.22.67-.64.67-1.1V3.74a.25.25 0 00-.25-.25z"></path></svg>'},38665:function(e,t,n){"use strict";n.d(t,{sG:function(){return h},Qp:function(){return d},DF:function(){return l},jq:function(){return u}});var r=n(52704);var i=n(30857),s=n(20246),o=n(12600),a=n(56837);const{create:c}=r.L,l=c({name:"neutral-fill-stealth-recipe"},{evaluate:(e,t)=>function(e,t,n,r,i,s,o,a,c,l){const u=Math.max(n,r,i,s,o,a,c,l),d=e.closestIndexOf(t),h=d>=u?-1:1;return{rest:e.get(d+h*n),hover:e.get(d+h*r),active:e.get(d+h*i),focus:e.get(d+h*s)}}(e(a.y),t||e(i.I),e(o.qD),e(o.fq),e(o.gs),e(o.IU),e(s.MY),e(s.jW),e(s.hD),e(s.VQ))}),u=c("neutral-fill-stealth-rest",(e=>e(l).evaluate(e).rest)),d=c("neutral-fill-stealth-hover",(e=>e(l).evaluate(e).hover)),h=c("neutral-fill-stealth-active",(e=>e(l).evaluate(e).active));c("neutral-fill-stealth-focus",(e=>e(l).evaluate(e).focus))},35680:function(e,t,n){"use strict";n.d(t,{Gy:function(){return d},Xi:function(){return u},At:function(){return c},wF:function(){return l}});var r=n(52704);var i=n(30857),s=n(20246),o=n(56837);const{create:a}=r.L,c=a({name:"neutral-fill-recipe"},{evaluate:(e,t)=>function(e,t,n,r,i,s){const o=e.closestIndexOf(t),a=o>=Math.max(n,r,i,s)?-1:1;return{rest:e.get(o+a*n),hover:e.get(o+a*r),active:e.get(o+a*i),focus:e.get(o+a*s)}}(e(o.y),t||e(i.I),e(s.MY),e(s.jW),e(s.hD),e(s.VQ))}),l=a("neutral-fill-rest",(e=>e(c).evaluate(e).rest)),u=a("neutral-fill-hover",(e=>e(c).evaluate(e).hover)),d=a("neutral-fill-active",(e=>e(c).evaluate(e).active));a("neutral-fill-focus",(e=>e(c).evaluate(e).focus))},71942:function(e,t,n){"use strict";n.d(t,{eN:function(){return d},dt:function(){return u}});var r=n(52704),i=n(64087);var s=n(30857),o=n(14744),a=n(56837);const{create:c}=r.L,l=c({name:"neutral-stroke-divider-recipe"},{evaluate:(e,t)=>function(e,t,n){return e.get(e.closestIndexOf(t)+(0,i.a)(t)*n)}(e(a.y),t||e(s.I),e(o.h))}),u=c("neutral-stroke-divider-rest",(e=>e(l).evaluate(e))),d=u},22674:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(58968),i=n(66779);class s{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}connectedCallback(e){r.H.enqueue((()=>{this.attach(e.source)}))}disconnectedCallback(e){const t=this.cache.get(e.source);t&&i.o.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new o(this.ltr,this.rtl,e),n=i.o.getValueFor(e);i.o.subscribe(t),t.attach(n),this.cache.set(e,t)}}class o{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange(e,t){this.attach("default"===t.target?e.default:e.getValueFor(t.target))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}},52058:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(17593),i=n(5669),s=n(56423),o=Array.prototype.splice;var a=function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==c){var c=a;(0,s.Z)(a)?o.call(e,a,1):(0,i.Z)(e,a)}}return e};var c=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],o=e.length;for(t=(0,r.Z)(t,3);++i<o;){var c=e[i];t(c,i,e)&&(n.push(c),s.push(i))}return a(e,s),n}},61303:function(e,t,n){"use strict";n.d(t,{EQ:function(){return L},P:function(){return $}});const r=Symbol.for("@ts-pattern/matcher"),i=Symbol.for("@ts-pattern/isVariadic"),s="@ts-pattern/anonymous-select-key",o=e=>Boolean(e&&"object"==typeof e),a=e=>e&&!!e[r],c=(e,t,n)=>{if(a(e)){const i=e[r](),{matched:s,selections:o}=i.match(t);return s&&o&&Object.keys(o).forEach((e=>n(e,o[e]))),s}if(o(e)){if(!o(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],s=[],o=[];for(const t of e.keys()){const n=e[t];a(n)&&n[i]?o.push(n):o.length?s.push(n):r.push(n)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+s.length)return!1;const e=t.slice(0,r.length),i=0===s.length?[]:t.slice(-s.length),a=t.slice(r.length,0===s.length?1/0:-s.length);return r.every(((t,r)=>c(t,e[r],n)))&&s.every(((e,t)=>c(e,i[t],n)))&&(0===o.length||c(o[0],a,n))}return e.length===t.length&&e.every(((e,r)=>c(e,t[r],n)))}return Object.keys(e).every((i=>{const s=e[i];return(i in t||a(o=s)&&"optional"===o[r]().matcherType)&&c(s,t[i],n);var o}))}return Object.is(t,e)},l=e=>{var t,n,i;return o(e)?a(e)?null!=(t=null==(n=(i=e[r]()).getSelectionKeys)?void 0:n.call(i))?t:[]:Array.isArray(e)?u(e,l):u(Object.values(e),l):[]},u=(e,t)=>e.reduce(((e,n)=>e.concat(t(n))),[]);function d(e){return Object.assign(e,{optional:()=>g(e),and:t=>m(e,t),or:t=>y(e,t),select:t=>void 0===t?v(e):v(t,e)})}function h(e){return Object.assign((e=>Object.assign(e,{*[Symbol.iterator](){yield Object.assign(e,{[i]:!0})}}))(e),{optional:()=>h(g(e)),select:t=>h(void 0===t?v(e):v(t,e))})}function g(e){return d({[r]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return void 0===t?(l(e).forEach((e=>r(e,void 0))),{matched:!0,selections:n}):{matched:c(e,t,r),selections:n}},getSelectionKeys:()=>l(e),matcherType:"optional"})})}const p=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},f=(e,t)=>{for(const[n,r]of e.entries())if(!t(r,n))return!1;return!0};function m(...e){return d({[r]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return{matched:e.every((e=>c(e,t,r))),selections:n}},getSelectionKeys:()=>u(e,l),matcherType:"and"})})}function y(...e){return d({[r]:()=>({match:t=>{let n={};const r=(e,t)=>{n[e]=t};return u(e,l).forEach((e=>r(e,void 0))),{matched:e.some((e=>c(e,t,r))),selections:n}},getSelectionKeys:()=>u(e,l),matcherType:"or"})})}function w(e){return{[r]:()=>({match:t=>({matched:Boolean(e(t))})})}}function v(...e){const t="string"==typeof e[0]?e[0]:void 0,n=2===e.length?e[1]:"string"==typeof e[0]?void 0:e[0];return d({[r]:()=>({match:e=>{let r={[null!=t?t:s]:e};return{matched:void 0===n||c(n,e,((e,t)=>{r[e]=t})),selections:r}},getSelectionKeys:()=>[null!=t?t:s].concat(void 0===n?[]:l(n))})})}function b(e){return"number"==typeof e}function _(e){return"string"==typeof e}function C(e){return"bigint"==typeof e}const S=d(w((function(e){return!0}))),k=S,E=e=>Object.assign(d(e),{startsWith:t=>{return E(m(e,(n=t,w((e=>_(e)&&e.startsWith(n))))));var n},endsWith:t=>{return E(m(e,(n=t,w((e=>_(e)&&e.endsWith(n))))));var n},minLength:t=>E(m(e,(e=>w((t=>_(t)&&t.length>=e)))(t))),maxLength:t=>E(m(e,(e=>w((t=>_(t)&&t.length<=e)))(t))),includes:t=>{return E(m(e,(n=t,w((e=>_(e)&&e.includes(n))))));var n},regex:t=>{return E(m(e,(n=t,w((e=>_(e)&&Boolean(e.match(n)))))));var n}}),P=E(w(_)),x=e=>Object.assign(d(e),{between:(t,n)=>x(m(e,((e,t)=>w((n=>b(n)&&e<=n&&t>=n)))(t,n))),lt:t=>x(m(e,(e=>w((t=>b(t)&&t<e)))(t))),gt:t=>x(m(e,(e=>w((t=>b(t)&&t>e)))(t))),lte:t=>x(m(e,(e=>w((t=>b(t)&&t<=e)))(t))),gte:t=>x(m(e,(e=>w((t=>b(t)&&t>=e)))(t))),int:()=>x(m(e,w((e=>b(e)&&Number.isInteger(e))))),finite:()=>x(m(e,w((e=>b(e)&&Number.isFinite(e))))),positive:()=>x(m(e,w((e=>b(e)&&e>0)))),negative:()=>x(m(e,w((e=>b(e)&&e<0))))}),A=x(w(b)),T=e=>Object.assign(d(e),{between:(t,n)=>T(m(e,((e,t)=>w((n=>C(n)&&e<=n&&t>=n)))(t,n))),lt:t=>T(m(e,(e=>w((t=>C(t)&&t<e)))(t))),gt:t=>T(m(e,(e=>w((t=>C(t)&&t>e)))(t))),lte:t=>T(m(e,(e=>w((t=>C(t)&&t<=e)))(t))),gte:t=>T(m(e,(e=>w((t=>C(t)&&t>=e)))(t))),positive:()=>T(m(e,w((e=>C(e)&&e>0)))),negative:()=>T(m(e,w((e=>C(e)&&e<0))))}),I=T(w(C)),F=d(w((function(e){return"boolean"==typeof e}))),O=d(w((function(e){return"symbol"==typeof e}))),M=d(w((function(e){return null==e})));var $={__proto__:null,matcher:r,optional:g,array:function(...e){return h({[r]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(0===e.length)return{matched:!0};const n=e[0];let r={};if(0===t.length)return l(n).forEach((e=>{r[e]=[]})),{matched:!0,selections:r};const i=(e,t)=>{r[e]=(r[e]||[]).concat([t])};return{matched:t.every((e=>c(n,e,i))),selections:r}},getSelectionKeys:()=>0===e.length?[]:l(e[0])})})},set:function(...e){return d({[r]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(0===t.size)return{matched:!0,selections:n};if(0===e.length)return{matched:!0};const r=(e,t)=>{n[e]=(n[e]||[]).concat([t])},i=e[0];return{matched:p(t,(e=>c(i,e,r))),selections:n}},getSelectionKeys:()=>0===e.length?[]:l(e[0])})})},map:function(...e){return d({[r]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(0===t.size)return{matched:!0,selections:n};const r=(e,t)=>{n[e]=(n[e]||[]).concat([t])};if(0===e.length)return{matched:!0};var i;if(1===e.length)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null==(i=e[0])?void 0:i.toString()}`);const[s,o]=e;return{matched:f(t,((e,t)=>{const n=c(s,t,r),i=c(o,e,r);return n&&i})),selections:n}},getSelectionKeys:()=>0===e.length?[]:[...l(e[0]),...l(e[1])]})})},intersection:m,union:y,not:function(e){return d({[r]:()=>({match:t=>({matched:!c(e,t,(()=>{}))}),getSelectionKeys:()=>[],matcherType:"not"})})},when:w,select:v,any:S,_:k,string:P,number:A,bigint:I,boolean:F,symbol:O,nullish:M,instanceOf:function(e){return d(w(function(e){return t=>t instanceof e}(e)))},shape:function(e){return d(w(function(...e){if(1===e.length){const[t]=e;return e=>c(t,e,(()=>{}))}if(2===e.length){const[t,n]=e;return c(t,n,(()=>{}))}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}(e)))}};const R={matched:!1,value:void 0};function L(e){return new N(e,R)}class N{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...e){if(this.state.matched)return this;const t=e[e.length-1],n=[e[0]];let r;3===e.length&&"function"==typeof e[1]?r=e[1]:e.length>2&&n.push(...e.slice(1,e.length-1));let i=!1,o={};const a=(e,t)=>{i=!0,o[e]=t},l=!n.some((e=>c(e,this.input,a)))||r&&!Boolean(r(this.input))?R:{matched:!0,value:t(i?s in o?o[s]:o:this.input,this.input)};return new N(this.input,l)}when(e,t){if(this.state.matched)return this;const n=Boolean(e(this.input));return new N(this.input,n?{matched:!0,value:t(this.input,this.input)}:R)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let e;try{e=JSON.stringify(this.input)}catch(t){e=this.input}throw new Error(`Pattern matching error: no pattern matches value ${e}`)}run(){return this.exhaustive()}returnType(){return this}}}}]);