1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8219],{19:(e,t,r)=>{"use strict";r.d(t,{UC:()=>m,VY:()=>c,ZL:()=>s,bL:()=>l,bm:()=>f,hE:()=>d,hJ:()=>u,l9:()=>p});var a=r(95155),n=r(43146),o=r(12115),i=r(55507);let l=n.bL;l.displayName="DialogRoot";let s=n.ZL;s.displayName="DialogPortal";let d=n.hE;d.displayName="DialogTitle";let c=n.VY;c.displayName="DialogDescription";let u=n.hJ;u.displayName="DialogOverlay";let p=o.forwardRef(({className:e,children:t,asChild:r,...o},l)=>(0,a.jsx)(n.l9,{asChild:r,className:(0,i.cn)(e),ref:l,...o,children:t}));p.displayName="DialogTrigger";let m=o.forwardRef(({className:e,children:t,...r},o)=>(0,a.jsx)(n.UC,{className:(0,i.cn)("",e),ref:o,...r,children:t}));m.displayName="DialogContent";let f=o.forwardRef(({className:e,children:t,...r},o)=>(0,a.jsx)(n.bm,{className:(0,i.cn)("",e),ref:o,...r,children:t}));f.displayName="DialogClose"},2457:(e,t,r)=>{"use strict";r.d(t,{Pz:()=>a,RZ:()=>o,og:()=>n});let a={author:{apiFollow:"/api/followAuthor",apiGetFollowed:"/api/getFollowedAuthors",dataCy:"follow-author-button",defaultLabel:"Follow",followErrorMsg:"Unable to follow author. Please try again.",idKey:"authorId",myFortuneListNoun:"following authors",nameKey:"authorName",pendingIdKey:"pendingFollowAuthorId",popoverDescription:"Sign in or sign up to get stories from this writer as soon as they're published.",popoverTitle:"Follow This Author",responseKey:"followedAuthors",slugKey:"authorSlug",unfollowErrorMsg:"Unable to unfollow author. Please try again."},topic:{apiFollow:"/api/followSection",apiGetFollowed:"/api/getFollowedSections",dataCy:"follow-section-button",defaultLabel:"Follow",followErrorMsg:"Unable to follow topic. Please try again.",idKey:"sectionId",myFortuneListNoun:"followed topics",nameKey:"sectionName",pendingIdKey:"pendingFollowSectionId",popoverDescription:"Sign in or sign up to stay ahead with new stories and updates.",popoverTitle:"Track This Topic",responseKey:"followedSections",slugKey:"sectionSlug",unfollowErrorMsg:"Unable to unfollow topic. Please try again."}},n="w-[276px] max-w-[calc(100vw-32px)] z-body-popover !fixed !mt-0",o="w-[276px] max-w-[calc(100vw-32px)] z-body-popover !fixed !left-1/2 !-translate-x-1/2 !right-auto !mt-0"},2526:(e,t,r)=>{"use strict";r.d(t,{PaywallProvider:()=>p,k:()=>m});var a=r(95155),n=r(12115),o=r(46657),i=r(15296),l=r(14794),s=r(1066),d=r(55507);let c={paywall30:"pending",paywallState:{paywallCheck:"pending"},setPaywall30:()=>{},setPaywallState:()=>{},setShowPaywallax:()=>{},showPaywallax:!1},u=(0,n.createContext)(c),p=({children:e})=>{let{pianoPageConfig:t}=(0,o.J)(),[r,p]=(0,n.useState)(c.paywall30),[m,f]=(0,n.useState)(c.showPaywallax),h=(0,n.useRef)(!1),g=(0,n.useMemo)(()=>t?function({paywallContent:e,paywall30:t}){return e&&"no-paywall"!==t?"paywalled"===t?"paywalled":t:"no-paywall"}({paywall30:r,paywallContent:(0,d.eL)(t)}):"pending",[t,r]),w=(0,n.useMemo)(()=>({paywallCheck:g}),[g]);(0,n.useEffect)(()=>{if(t?.pianoTags?.includes(s.DG.Bypass)&&"paywalled"===g){let e=document.getElementsByClassName("paywall-selector")[0];e?.remove()}},[g,t]),(0,n.useEffect)(()=>{window.__fortuneAmplitudePaywallState=g,"paywalled"!==g||h.current||(h.current=!0,(0,l.v)(i.A.PAYWALL_ENCOUNTERED,{page_section:t?.contentSection??null,page_tags:t?.pianoTags??null,page_type:t?.pageType??null})),"paywalled"!==g&&(h.current=!1)},[g,t]);let y=(0,n.useMemo)(()=>({paywall30:r,paywallState:w,setPaywall30:p,setPaywallState:c.setPaywallState,setShowPaywallax:f,showPaywallax:m}),[w,r,m]);return(0,a.jsx)(u.Provider,{value:y,children:e})},m=()=>{let e=(0,n.useContext)(u);if(!e)throw Error("usePaywall must be used within a PaywallProvider");return e}},5591:(e,t,r)=>{"use strict";r.d(t,{TrinityOverlayButton:()=>u});var a=r(95155),n=r(12115),o=r(90270),i=r(5018),l=r(46657),s=r(55507);let d=({className:e})=>(0,a.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focu
1sable:"false",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,a.jsx)("polygon",{fill:"currentColor",points:"10 8 16 12 10 16 10 8"})]}),c=({className:e})=>(0,a.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeWidth:"2"}),(0,a.jsx)("line",{x1:"10",x2:"10",y1:"9",y2:"15"}),(0,a.jsx)("line",{x1:"14",x2:"14",y1:"9",y2:"15"})]}),u=({url:e,ownAudio:t,noTrinityAds:r,hideAudioPlayer:u=!1,className:p})=>{let{personalizedAds:m}=(0,l.J)(),f=(0,i.Ub)(i.Rp.Mobile,void 0,{getInitialValueInEffect:!1}),[h,g]=(0,n.useState)("not-started");if((0,n.useEffect)(()=>{let e=e=>{if("https://trinitymedia.ai"!==e.origin)return;let t=e.data;if(t?.type!=="TRINITY_TTS")return;let r=function(e){if("string"!=typeof e)return null;let t=window.TRINITY_PLAYER?.message;return t?e===t.playClicked||e===t.resumed||e===t.contentStarted||e===t.onAdStarted?"playing":e===t.pauseClicked?"paused":e===t.onComplete?"not-started":null:null}(t.value?.action);null!==r&&g(r)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),!f||u||!0!==m)return null;let w="playing"===h;return(0,a.jsxs)("div",{className:(0,s.cn)("relative size-10 shrink-0 self-center",p),children:[(0,a.jsx)(o.TrinityPlayer,{className:"absolute inset-0 size-10 overflow-hidden rounded-full [&>div]:absolute [&>div]:inset-0 [&_iframe]:absolute [&_iframe]:top-0 [&_iframe]:left-0",hideAudioPlayer:u,noTrinityAds:r,ownAudio:t,url:e}),(0,a.jsx)("div",{"aria-hidden":"true",className:(0,s.cn)("absolute inset-0 flex items-center justify-center rounded-full bg-pure pointer-events-none","not-started"!==h&&"text-accent"),"data-trinity-overlay-state":h,children:w?(0,a.jsx)(c,{className:"size-6"}):(0,a.jsx)(d,{className:"size-6"})})]})}},6240:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var a=r(12115),n=r(41994),o=r(2501);let i=new WeakSet,l=(e,t,r)=>{let a=(e=>{for(let t of[e?.ad?.netCpm,e?.ad?.bidCpm,e?.cpm]){let e="number"==typeof t?t:Number(t);if(null!=t&&Number.isFinite(e))return e}return 0})(r);(async()=>{try{let r=await (0,n.pP)(e,window?.arcSpanPageConfig);if(!r)return;r.trackEvent(t,{value:a})}catch{}})()},s=(e=!0)=>{let{optimizely:t}=(0,o.G)();(0,a.useEffect)(()=>{if(!(e&&t))return;let r=()=>{for(let e of window.voltax?.getAllPlayersOnPage()??[])i.has(e)||(i.add(e),e.on("adImpression",e=>l(t,"stn_ad_impression",e)),e.on("adViewableImpression",e=>l(t,"stn_ad_viewable_impression",e)))};return window.voltax&&r(),window.addEventListener("voltaxPlayerLoaded",r),()=>{window.removeEventListener("voltaxPlayerLoaded",r)}},[e,t])}},6480:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Image:()=>p});var a=r(95155),n=r(5772),o=r(19578),i=r(97643),l=r(55507),s=r(16e3);function d(e){return(e.split("?")[0]?.toLowerCase()??"").endsWith(".gif")}let c=({src:e,width:t,quality:r})=>(0,i.l)(e)&&!d(e)?(0,i.u)(e,t):`${e.split("?")[0]}?format=webp&w=${t}&quality=${r||75}`;function u(e){try{let t=e.currentTarget;t.src!==s.QF&&(t.src=s.QF,t.srcset="")}catch(e){}}let p=({alt:e,className:t,disableLoadTransition:r=!1,fetchPriority:p,fill:m=!1,fullWidth:f=!0,height:h=200,loading:g="lazy",priority:w=!1,sizes:y,src:b,unoptimized:x=!1,width:v=300,...C})=>{let A=(x||"string"==typeof b&&(0,i.l)(b)&&!d(b)?b:b?.toString().includes("format=webp")||!b?b:`${b}${b.toString().includes("?")?"&":"?"}format=webp`)||s.QF;return(0,a.jsx)(n.default,{alt:e,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=",className:(0,l.cn)(r?void 0:"transition-opacity duration-300",t),"data-cy":C["data-cy"]||o.F.ArticleImage,fetchPriority:p??(w?"high":void 0),loader:c,loading:w?"eager":g,onError:u,placeholder:"blur",priority:w,sizes:y??(f?"(max-width: 320px) 50vw, (max-width: 768px) 85vw, (max-width: 1024px) 50vw, (max-width: 1200px) 40vw, 33vw":""),src:A,unoptimized:x,...m&&{fill:m},...!m&&{height:h},...!m&&{width:v},...C})}},14093:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Breadcrumbs:()=>c});var a=r(95155),n=r(8666),o=r(52425),i=r(19578),l=r(55507);let s={contentPlacementCD:"top breadcrumb navigation",eventAction:"click breadcrumb link",eventCategory:"navigation"},d=({label:e,href:t,className:r,isEnabled:i=!0,index:d})=>(0,a.jsx)("nav",{"aria-label":`breadcrumb ${e}`,className:(0,l.cn)("flex items-center typography-default md:typography-sm font-medium capitalize min-w-0 flex-1",r),children:t&&i?(0,a.jsxs)("span",{className:"group flex items-center gap-sm","data-isfirst":0===d?"true":"false",children:[(0,a.jsx)(n.Icon,{className:"md:group-data-[isfirst=true]:hidden hidden md:flex icon-helper",icon:"ButtonRight",mode:"custom",size:"custom"}),(0,a.jsxs)(o.Link,{"aria-label":`breadcrumb link ${e}`,className:"whitespace-pre flex items-center gap-sm hover:text-primary-hover transition-colors duration-200",href:t,trackingData:{data:{...s,eventLabel:e}},children:[(0,a.jsx)(n.Icon,{className:"md:hidden icon-helper",icon:"ButtonLeft",mode:"custom",size:"custom"}),e]})]}):(0,a.jsxs)("span",{className:"text-secondary flex items-center gap-sm min-w-0",children:[(0,a.jsx)(n.Icon,{className:"hidden md:flex icon-helper",icon:"ButtonRight",mode:"custom",size:"custom"}),(0,a.jsx)("span",{className:"truncate flex-1",children:e})]})}),c=({items:e})=>0===e.length?null:(0,a.jsx)("nav",{"aria-label":"breadcrumbs",className:(0,l.cn)("min-w-0"),"data-cy":i.F.Breadcrumbs,children:(0,a.jsx)("span",{className:"flex items-center justify-start gap-sm",children:e.map(({label:t,href:r},n)=>(0,a.jsx)("span",{className:(0,l.cn)("hidden md:flex items-center gap-sm",n===e.length-1&&"min-w-0 flex-1",(e.length>1&&n===e.length-2||1===e.length)&&"flex"),children:(0,a.jsx)(d,{href:r,index:n,isEnabled:n!==e.length-1,label:t})},t))})})},15278:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>d,UC:()=>u,ZL:()=>s,bL:()=>l,bm:()=>p,l9:()=>c});var a=r(95155),n=r(40093),o=r(12115),i=r(55507);let l=n.Root;l.displayName="PopoverRoot";let s=n.Portal;s.displayName="PopoverPortal",n.Arrow.displayName="PopoverArrow";let d=n.Anchor;d.displayName="PopoverAnchor";let c=o.forwardRef(({className:e,children:t,asChild:r,...o},l)=>(0,a.jsx)(n.Trigger,{asChild:r,className:(0,i.cn)(e),ref:l,...o,children:t}));c.displayName="PopoverTrigger";let u=o.forwardRef(({className:e,children:t,...r},o)=>(0,a.jsx)(n.Content,{className:(0,i.cn)("",e),ref:o,...r,children:t}));u.displayName="PopoverContent";let p=o.forwardRef(({className:e,children:t,...r},o)=>(0,a.jsx)(n.Close,{className:(0,i.cn)("",e),ref:o,...r,children:t}));p.displayName="PopoverClose"},19578:(e,t,r)=>{"use strict";r.d(t,{F:()=>i,X:()=>o});var a,n,o=((a={}).ImpressionElement="impression-element",a),i=((n={}).Header="header",n.TopicNavigation="topicNavigation",n.AccountDropdown="myAccountDropdown",n.MyAccountLink="myAccountLink",n.DrawerMenu="drawer-menu",n.MenuMobile="menu-mobile",n.MyProfileLink="my-account-my-profile-navlink",n.Footer="footer-navigation",n.FooterSection="footer-navigation-link-wrapper",n.FooterSectionTitle="footer-navigation-section-title",n.FooterLink="footer-navigation-link",n.MenuItem="itemLink",n.SubmenuItem="subMenuLevel",n.BurgerButton="burger-button",n.CloseButton="closeButton",n.ArrowButton="arrow-button",n.LogoutButton="logoutBtnDesktop",n.UserIconButton="userIconButton",n.SignOutButton="logoutBtnDesktop",n.SearchButton="search-button",n.SubscribeButton="subscribeBtnDesktop",n.SigninButtonDesktop="signinBtnDesktop",n.SigninButtonMobile="signinBtnMobile",n.Logo="logo",n.FortuneLogo="fortune-logo",n.FeatureHeaderF500Svg="feature-header-f500-svg",n.FeaturedImage="featured-image",n.PrimaryImage="primary_image",n.ImageCaption="caption",n.ImageCredit="credit",n.Image="image",n.ImageWrapper="image-wrapper",n.FacebookIcon="facebook-icon",n.TwitterIcon="x-icon",n.LinkedinIcon="linkedin-icon",n.InstagramIcon="instagram-icon",n.EmailIcon="email-icon",n.ShareIcon="share-icon",n.NativeShareIcon="native-share-icon",n.AuthorItem="author-item",n.AuthorByText="author-by-text",n.AuthorName="author-name",n.AuthorByline="authorByLine",n.ReviewedByText="reviewed-by-text",n.PublishDate="feature-byline-publish-date",n.ReadTime="read-time",n.SocialProofBadge="social-proof-badge",n.AuthorRole="author-role",n.AuthorsBioCards="authors-bio-cards",n.AuthorsBioSectionTitle="authors-bio-section-title",n.AuthorBio="author-bio",n.AuthorLink="author-link",n.AuthorSeeFullBio="author-see-full-bio",n.AuthorShortIntro="author-short-intro",n.AuthorImage="author-image",n.AuthorFollowButton="author-follow-button",n.Breadcrumbs="bread-crumbs",n.MobileBreadcrumbs="tablet-and-mobile-breadcrumbs",n.DesktopBreadcrumbs="desktop-breadcrumbs",n.ArticleHero="article-container-eyebrow",n.ArticleWrapper="article-wrapper",n.ArticleContent="article-content",n.ArticleAuthorAndDate="article-author-and-date",n.ArticleTitle="article-title",n.ArticleAuthors="article-authors",n.ArticleEyebrow="article-eyebrow",n.ArticleSectionEyebrow="article-section-eyebrow",n.ArticleTagEyebrow="article-tag-eyebrow",n.SubscriptionPlea="subscriptionPlea",n.BrandedArticleContent="branded-article-content",n.ArticleGeoTag="article-geo-tag",n.ArticleRightRail="article-right-rail",n.RightRailNavigation="rightRailNavigation",n.EducationArticleRail="education-article-rail",n.ArticleCardWrapper="article-card-wrapper",n.ArticleCardImage="article-card-image",n.ArticleImageLink="article-image-link",n.CardWrapper="card-wrapper",n.ArticleCardTitle="article-card-title",n.ArticleCardByline="article-card-by-line",n.BylineAuthor="by-line-author",n.ArticleCardDate="article-card-date",n.ArticleCardExcerpt="article-card-excerpt",n.ArticleImage="article-image",n.PostList="post-list",n.TimeAgo="time-ago-wrapper",n.TopArticles="top-articles",n.TopArticlesTitle="top-articles-title",n.TopArticlesArticleList="top-articles-article-list",n.EducationArticleInstreamAd="edu_article_instream_ad",n.EducationCard="edu-card",n.EducationCardBanner="edu-card-banner",n.EducationCardContainer="edu-card-container",n.EducationCardContent="edu-card-content",n.EducationCardTitle="edu-card-title",n.EducationCardTitleHeading="edu-card-title-heading",n.EducationCardTitleSubheading="edu-card-title-subheading",n.EducationCardContentDescription="edu-card-content-description",n.EducationCardAction="edu-card-action",n.EducationCardPicture="edu-card-picture",n.EducationCardActionCta="edu-card-action-cta",n.EzNewswirePressReleasesList="ez-newswire-press-releases-list",n.EzNewswireListPagination="ez-newswire-list-pagination",n.EzNewswireDisclaimerLink="ez-newswire-disclaimer-link",n.EzNewswirePressReleaseListInlineCta="ez-newswire-press-release-list-inline-cta",n.EzNewswireRightRail="ez-newswire-right-rail",n.EzNewswireRightRailCta="ez-newswire-right-rail-cta",n.EzNewswireRightRailCtaButton="ez-newswire-right-rail-cta-button",n.EzNewswirePressReleaseListInlineCtaButton="ez-newswire-press-release-list-inline-cta-button",n.EzNewswireListHeader="ez-newswire-list-header",n.EzNewswireListHeadlineLink="ez-newswire-list-headline-link",n.InStream
1="in-stream",n.InContent="in-content",n.NativoTout="nativoTout",n.RightRailFlex="right-rail-flex",n.RightRailArticleSticky="right-rail-article-sticky",n.StickyFooter="sticky-footer",n.AffiliateProductCardWrapper="affiliate-product-card-wrapper",n.AffiliateProductCardHeader="affiliate-product-card-header",n.AffiliateProductCardContentWrapper="affiliate-product-card-content-wrapper",n.AffiliateProductCardBodyWrapper="affiliate-product-card-body",n.AffiliateProductCardProductName="affiliate-product-card-product-name",n.AffiliateProductCardPromotion="affiliate-product-card-promotion",n.AffiliateProductCardTabs="affiliate-product-card-tabs",n.AffiliateProductCardImageCarousel="affiliate-product-card-image-carousel",n.AffiliateTable="affiliate-table",n.AffiliateTableCell="affiliate-table-cell",n.TrendingTopBarLink="trending-top-bar-link",n.PromotionTopBarLink="promotion-top-bar-link",n.TrendingTopBar="trending-top-bar",n.PromotionTopBar="promotion-top-bar",n.DisclosureStripe="disclosure-stripe",n.EngagementBar="engagement-bar",n.EngagementBarShare="engagement-bar-share",n.RegistrationOnboarding="registration-onboarding",n.RegistrationOnboardingLink="registration-onboarding-link",n.OneTrustScript="one-trust-script",n.OneTrustUser="one-trust-user",n)},21042:(e,t,r)=>{"use strict";r.d(t,{C$:()=>C,ly:()=>v});var a=r(12115),n=r(46657);let o=["follow","save"],i={follow:!1,pending:{},save:!1,synced:!1,userId:null},l=i,s=new Set,d=null;function c(e){for(let t of(l=e,s))t()}function u(e){return s.add(e),()=>{s.delete(e)}}function p(){return l}function m(){return i}function f(e){return`popoverDismissals:${e}`}function h(e){try{let t=localStorage.getItem(f(e));if(!t)return{...i,userId:e};let r=JSON.parse(t);return{follow:!!r.follow,pending:r.pending??{},save:!!r.save,synced:!!r.synced,userId:e}}catch{return{...i,userId:e}}}function g(e){if(e.userId)try{localStorage.setItem(f(e.userId),JSON.stringify({follow:e.follow,pending:e.pending,save:e.save,synced:e.synced}))}catch{}c(e)}async function w(e){let t=l.userId;if(t)try{if(!(await fetch("/api/dismissPopover",{body:JSON.stringify({type:e}),headers:{"Content-Type":"application/json"},method:"POST"})).ok||l.userId!==t)return;if(l.pending[e]){let t={...l.pending};delete t[e],g({...l,pending:t})}}catch{}}function y(){for(let e of o)l.pending[e]&&w(e)}async function b(e){try{let t=await fetch("/api/getPopoverDismissals");if(!t.ok)return;let r=await t.json();if(l.userId!==e)return;g({...l,follow:!!r.follow||!!l.pending.follow,save:!!r.save||!!l.pending.save,synced:!0,userId:e}),y()}catch{}}function x(e){(l.userId!==e&&c(h(e)),l.synced&&l.userId===e)?y():d?.userId===e||(d={promise:b(e).finally(()=>{d?.userId===e&&(d=null)}),userId:e})}async function v(e,t){return!!t&&(x(t),d?.userId===t&&await d.promise,!!t&&(l.userId===t?l[e]:h(t)[e]))}function C(e){let{userAccess:{loggedIn:t,data:r}}=(0,n.J)(),o=r?.sub??null,i=(0,a.useSyncExternalStore)(u,p,m);return(0,a.useEffect)(()=>{t&&o&&x(o)},[t,o]),{dismiss:(0,a.useCallback)(()=>{l[e]||(g({...l,[e]:!0,pending:{...l.pending,[e]:!0}}),w(e))},[e]),isDismissed:!!t&&i.userId===o&&i[e]}}},29727:(e,t,r)=>{"use strict";r.r(t),r.d(t,{FollowEntityButton:()=>C});var a=r(95155),n=r(73321),o=r(12115),i=r(93318),l=r(52425),s=r(38256),d=r(21042),c=r(36004),u=r(31070),p=r(41994),m=r(46657),f=r(15296),h=r(14794),g=r(90204),w=r(55507),y=r(2501),b=r(2457),x=r(65832);let v="pendingFollowAuthMethod",C=({kind:e,id:t,name:r,slug:C,className:A,articleId:N})=>{let _=b.Pz[e],j=(0,o.useRef)(null),[I,S]=(0,o.useState)(!1),[P,E]=(0,o.useState)(null),[k,L]=(0,o.useState)(!1),[T,R]=(0,o.useState)(!1),F=(0,o.useRef)(!1),{userAccess:{loggedIn:B,data:$}}=(0,m.J)(),{optimizely:O}=(0,y.G)(),{dismiss:D}
1=(0,d.C$)("follow"),z=$?.sub||"",M=(0,n.useSearchParams)(),U=M?.get("social_response_id"),{followedList:Y,hasLoaded:K,idKey:G,mutate:W}=(0,s.A)(e,!!B),V=Y.some(e=>Number(e[G])===t),J=!!B&&!K,H=(0,x.o)(j,null!==P||k),q=(0,o.useCallback)(()=>({[_.idKey]:t}),[_,t]);(0,o.useEffect)(()=>{U&&!B&&localStorage.getItem(_.pendingIdKey)===String(t)&&R(!0)},[U,B,_.pendingIdKey,t]);let Z=(0,o.useCallback)((e,t={})=>{let r={timestamp:Date.now(),user_id:z,...t};(0,p.oj)(O,e,r),(0,g.sx)({customData:r,eventLabel:e})},[O,z]);(0,o.useEffect)(()=>{if(!(t&&B&&$&&K)||Number(localStorage.getItem(_.pendingIdKey))!==t)return;localStorage.removeItem(_.pendingIdKey);let a=localStorage.getItem(v)||"login";localStorage.removeItem(v);let n="author"===e?"author_id":"section_id",o="author"===e?"follow_author_complete":"follow_section_complete";Z("registration"===a?`follow_${"author"===e?"author":"section"}_registration_complete`:`follow_${"author"===e?"author":"section"}_login_complete`,{[n]:t}),V||(async()=>{S(!0);try{if((await fetch(_.apiFollow,{body:JSON.stringify(q()),headers:{"Content-Type":"application/json"},method:"POST"})).ok){let e=[...Y,{[G]:t,[_.nameKey]:r,...C?{[_.slugKey]:C}:{}}];W(e,!1),L(!await (0,d.ly)("follow",$?.sub??null)),W(),Z(o,{[n]:t})}else E(_.followErrorMsg)}catch{E(_.followErrorMsg)}finally{S(!1)}})()},[t,B,$,K,_,q,V,W,Y,G,r,C,e,Z]);let X=async()=>{if(!t||F.current)return;let a="author"===e?"author_id":"section_id";if(!V){let r="author"===e?"follow_author_click":"follow_section_click",n={[a]:t,is_registered:B?"true":"false"};"author"===e&&N&&(n.article_id=N),Z(r,n)}if(!B){localStorage.setItem(_.pendingIdKey,String(t)),localStorage.setItem(v,"login"),Z("follow_registration_modal_view",{[a]:t}),R(!0);return}let n=V?"DELETE":"POST",o=V?_.unfollowErrorMsg:_.followErrorMsg;F.current=!0,E(null),L(!1);let i=V?{[_.idKey]:t}:q();W(V?Y.filter(e=>Number(e[G])!==t):[...Y,{[G]:t,[_.nameKey]:r,...C?{[_.slugKey]:C}:{}}],!1);try{if(!(await fetch(_.apiFollow,{body:JSON.stringify(i),headers:{"Content-Type":"application/json"},method:n})).ok){W(),E(o);return}W();let l="author"===e?"author_name":"section_name";if(V){let n="author"===e?"unfollow_author":"unfollow_section",o="author"===e?f.A.AUTHOR_UNFOLLOWED:f.A.SECTION_UNFOLLOWED;(0,h.v)(o,{[a]:t,[l]:r}),Z(n,{[a]:t})}else{L(!await (0,d.ly)("follow",$?.sub??null));let n="author"===e?"follow_author_complete":"follow_section_complete",o="author"===e?f.A.AUTHOR_FOLLOWED:f.A.SECTION_FOLLOWED;(0,h.v)(o,{[a]:t,[l]:r}),Z(n,{[a]:t})}}catch{W(),E(o)}finally{F.current=!1}},Q=B&&V?`Unfollow ${r}`:B?`Follow ${r}`:`Follow ${r} (requires sign in)`,ee=(0,a.jsxs)("div",{className:"p-xxs flex flex-col gap-sm typography-default text-primary",children:[(0,a.jsx)("p",{className:"typography-default",children:"author"===e?(0,a.jsxs)(a.Fragment,{children:["You are now following ",r,". Find your followed authors in"," ",(0,a.jsx)(l.Link,{className:"text-accent underline",href:"/account/my-fortune/",children:"My Fortune"}),"."]}):(0,a.jsxs)(a.Fragment,{children:["You're now following ",r,". We'll email you new articles â find your"," ",_.myFortuneListNoun," in"," ",(0,a.jsx)(l.Link,{className:"text-accent underline",href:"/account/my-fortune/",children:"My Fortune"}),"."]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-xs",children:[(0,a.jsx)(u.ButtonV2,{as:"button",className:"w-full normal-case",onClick:()=>{L(!1),D()},variant:"primaryOutline",children:"Ok, got it"}),(0,a.jsx)("p",{className:"typography-xxs text-secondary leading-[1.5]",children:"Fortune may send me information, offers, and additional newsletters relating to other Fortune products and services by email. I may opt-out at any time by clicking the unsubscribe link in those emails."})]})]});return(0,a.jsxs)("span",{className:(0,w.cn)("relative inline-flex font-graphik-compact",A),ref:j,children:[(0,a.jsx)(c._,{align:"start",articleId:N,description:_.popoverDescription,intentTrigger:"follow",isOpen:T,onAuthSuccess:()=>{let e=new URL(window.location.href);e.searchParams.delete("social_response_id"),window.history.replaceState(null,"",`${e.pathname}${e.search}${e.hash}`)},onOpenChange:R,title:_.popoverTitle,children:(0,a.jsx)("span",{className:"inline-flex",children:(0,a.jsx)(u.ButtonV2,{"aria-busy":I||J,"aria-label":Q,"aria-pressed":V,as:"button",className:(0,w.cn)((I||J)&&"opacity-60 cursor-wait animate-pulse pointer-events-none"),"data-cy":_.dataCy,disabled:I||J,noCapitalize:!0,onClick:X,size:"sm",variant:V?"primaryOutline":"secondaryOutline",children:(0,a.jsx)("span",{children:V?"Following":_.defaultLabel})})})}),P&&(0,a.jsx)(i.Y,{className:H.className,content:(0,a.jsx)("p",{className:"typography-default",role:"alert",children:P}),isOpen:null!==P&&H.isReady,onClose:()=>E(null),portal:H.portal,showClose:!1,style:H.style,variant:"error"}),k&&(0,a.jsx)(i.Y,{className:H.className,content:ee,isOpen:k&&H.isReady,onClose:()=>{L(!1)},portal:H.portal,showClose:!1,style:H.style})]})}},30939:(e,t,r)=>{"use strict";r.d(t,{StnVideo:()=>h});var a=r(95155),n=r(12115),o=r(65596),i=r(6240),l=r(46657),s=r(68820),d=r(19578),c=r(43154),u=r(55507);let p=()=>()=>{},m=()=>!0,f=()=>!1,h=({videoId:e,adTags:t,dataCy:r="",floatVerticalTranslate:h=0,float:g=!1,className:w,playerKey:y,target:b="s2nPlayer","aria-label":x="Featured Video"})=>{let{personalizedAds:v}
1=(0,l.J)(),C=(0,n.useSyncExternalStore)(p,m,f),[A,N]=(0,n.useState)(!1),[_,j]=(0,n.useState)(!1),I=(0,n.useSyncExternalStore)(c.tv,c.So,()=>!1),S=(0,n.useRef)(null),P=!!y,E=t?.find(e=>e===s.l.NoVideoAds||e===s.l.NoAds)?e.replace(/-14497$/g,"-16481"):e,k=P?`s2nPlayer-fk-${y}`:`${b}-${E}`;(0,i.l)(!0===v),(0,n.useEffect)(()=>{let e=window.setupS2NApi,t=e=>{let t=P?document.querySelector(`[data-stn-player="${y}"]`):document.querySelector(`.${k}`);t&&(window.s2nApi=e(t),N(!0))};return window.setupS2NApi=t,()=>{window.setupS2NApi===t&&(e?window.setupS2NApi=e:delete window.setupS2NApi)}},[k,P,y]),(0,n.useEffect)(()=>{let e=new MutationObserver(e=>{e.some(e=>Array.from(e.addedNodes).some(e=>e?.classList?.contains("tp-modal")))?j(!0):e.some(e=>Array.from(e.removedNodes).some(e=>e?.classList?.contains("tp-modal")))&&j(!1)});return e.observe(document.body,{childList:!0}),()=>e.disconnect()},[]);let L=g&&!I;return((0,n.useEffect)(()=>{let e=L&&!_;if(A&&window.s2nApi&&(window.s2nApi.floatVerticalTranslate=h,P?"boolean"==typeof window.s2nApi.float&&(window.s2nApi.float=e):window.s2nApi.float=e),!(P&&y))return;let t=`[data-stn-player="${y}"]`,r=t=>{t.setFloatingMargins?.(h),t.setFloatingEnabled?.(e)};S.current&&r(S.current);let a=e=>{let a=(e=>{let r=document.querySelector(t);if(!r?.querySelector("voltax-player"))return null;let a=e.detail;return a?.player&&"fortune-video-modal-player"!==a.externalID?a.player:null})(e);!a||S.current&&S.current!==a||(S.current=a,r(a))};return window.addEventListener("voltaxPlayerLoaded",a),()=>window.removeEventListener("voltaxPlayerLoaded",a)},[L,A,h,P,_,y]),C&&!0===v)?P?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{"aria-label":x,src:`https://embed.sendtonews.com/player3/embedcode.js?fk=${y}`,strategy:"afterInteractive"},`stn-fk-${y}`),(0,a.jsx)("div",{className:(0,u.cn)("stn-video-player w-full",k,w,d.X.ImpressionElement),"data-content-placement":"stn-video","data-cy":r,"data-s2n-api":"setupS2NApi","data-stn-player":y},`stn-fk-player-${y}`)]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{"aria-label":x,src:`https://embed.sendtonews.com/player3/embedcode.js?SC=${E}`,strategy:"afterInteractive"},k),(0,n.createElement)("div",{className:(0,u.cn)(`stn-video-player k-${E}`,k,w,d.X.ImpressionElement),"data-content-placement":"stn-video","data-cy":r,"data-s2n-api":"setupS2NApi",...L?{"data-type":"float"}:{},key:`stn-video-player-${k}`})]}):null}},36004:(e,t,r)=>{"use strict";r.d(t,{_:()=>_});var a=r(95155),n=r(73321),o=r(12115),i=r(29160),l=r(8666),s=r(0),d=r(20281),c=r(46657),u=r(29598),p=r(10716),m=r(18290);let f=()=>{let e=(0,n.useRouter)(),{refreshUserAccess:t}=(0,c.J)(),r=(0,o.useCallback)(async()=>{await (0,m.qD)({flow:u.nK.Popover,redirectCookieKey:(0,m.SM)(u.nK.Popover),refreshUserAccess:t,router:e})},[t,e]),i=(0,o.useCallback)(()=>{(0,p.Ic)("notification:message",{message:"There was an error logging you in. Please try again or use another method.",type:"error"})},[]);return(0,a.jsx)(d.g,{flow:u.nK.Popover,onLoadingChange:()=>{},onLoginError:i,onLoginSuccess:r,children:null})};var h=r(19),g=r(39160),w=r(1976),y=r(55507);let b=({isOpen:e,onOpenChange:t,title:r,description:d,onAuthSuccess:p,children:b})=>{let x=(0,n.usePathname)(),v=(0,n.useSearchParams)(),C=v?.get("social_response_id"),{userAccess:A}=(0,c.J)(),N=(0,o.useRef)(!1),_=(0,o.useId)(),j=(0,o.useId)();(0,o.useEffect)(()=>{if(!e)return;let t=(0,g.c)("social_response_id",v),r=`${x}${t?`?${t}`:""}`;(0,w.NW)((0,m.SM)(u.nK.Modal),r)},[e,x,v]);let I=(0,o.useCallback)(()=>{N.current||(N.current=!0,p?.(),t(!1))},[p,t]);return(0,o.useEffect)(()=>{e&&(N.current=!1)},[e]),(0,o.useEffect)(()=>{e&&!0===A.loggedIn&&I()},[e,A.loggedIn,I]),(0,a.jsxs)(a.Fragment,{children:[C?(0,a.jsx)(f,{}):null,b,(0,a.jsx)(h.bL,{onOpenChange:t,open:e,children:(0,a.jsxs)(h.ZL,{children:[(0,a.jsx)(h.hJ,{className:(0,y.cn)("fixed inset-0 z-modal-backdrop bg-black/48","data-[state=open]:fade-in data-[state=closed]:fade-out")}),(0,a.jsxs)(h.UC,{"aria-describedby":j,"aria-labelledby":_,className:(0,y.cn)("fixed top-1/2 left-1/2 z-modal-content w-[calc(100%-32px)] max-w-[450px] -translate-x-1/2 -translate-y-1/2","max-h-[90vh] overflow-y-auto rounded-md bg-pure px-10 py-16 outline-none","shadow-[2px_2px_20px_0px_rgba(0,0,0,0.08)]","data-[state=open]:fade-in data-[state=closed]:fade-out"),children:[(0,a.jsx)(h.hE,{className:"sr-only",id:_,children:r}),(0,a.jsx)(h.VY,{className:"sr-only",id:j,children:d}),(0,a.jsx)(h.bm,{asChild:!0,children:(0,a.jsx)(i.ActionableIcon,{"aria-label":"Close sign in dialog",className:"absolute top-4 right-4",type:"button",children:(0,a.jsx)(l.Icon,{icon:"X"})})}),(0,a.jsx)(s.SignInFlowManager,{bodyCopy:d,flow:u.nK.Modal,initialTitleOverride:r,onAuthSuccess:I})]})]})})]})};var x=r(15278),v=r(37017);
1let C=({isOpen:e,onOpenChange:t,title:r,description:d,onAuthSuccess:p,align:h="end",intentTrigger:b="generic",articleId:C,authorId:A,children:N})=>{let _=(0,n.usePathname)(),j=(0,n.useSearchParams)(),I=j?.get("social_response_id"),{userAccess:S}=(0,c.J)(),P=(0,o.useRef)(!1),E=(0,o.useRef)(!1),k=(0,o.useId)(),L=(0,o.useId)();(0,o.useEffect)(()=>{if(!e){E.current=!1;return}E.current||(E.current=!0,(0,v.bV)({articleId:C,authorId:A,trigger:b}))},[e,b,C,A]),(0,o.useEffect)(()=>{if(!e)return;let t=(0,g.c)("social_response_id",j),r=`${_}${t?`?${t}`:""}`;(0,w.NW)((0,m.SM)(u.nK.Popover),r)},[e,_,j]);let T=(0,o.useCallback)(()=>{P.current||(P.current=!0,p?.(),t(!1))},[p,t]);return(0,o.useEffect)(()=>{e&&(P.current=!1)},[e]),(0,o.useEffect)(()=>{e&&!0===S.loggedIn&&T()},[e,S.loggedIn,T]),(0,a.jsxs)(a.Fragment,{children:[I?(0,a.jsx)(f,{}):null,(0,a.jsxs)(x.bL,{onOpenChange:t,open:e,children:[(0,a.jsx)(x.Mz,{asChild:!0,children:N}),(0,a.jsx)(x.ZL,{children:(0,a.jsxs)(x.UC,{align:h,"aria-describedby":L,"aria-labelledby":k,avoidCollisions:!1,className:(0,y.cn)("relative z-body-popover w-[328px] max-h-[90vh] overflow-y-auto","rounded-sm border-t-4 stroke-accent bg-pure px-4 py-6 outline-none","shadow-[2px_2px_20px_0px_rgba(0,0,0,0.08)]","data-[state=open]:fade-in data-[state=closed]:fade-out"),side:"bottom",sideOffset:8,children:[(0,a.jsx)("h2",{className:"sr-only",id:k,children:r}),(0,a.jsx)("p",{className:"sr-only",id:L,children:d}),(0,a.jsx)(x.bm,{asChild:!0,children:(0,a.jsx)(i.ActionableIcon,{"aria-label":"Close sign in dialog",className:"absolute top-2 right-3",type:"button",children:(0,a.jsx)(l.Icon,{icon:"X"})})}),(0,a.jsx)(s.SignInFlowManager,{bodyCopy:d,flow:u.nK.Popover,initialTitleOverride:r,onAuthSuccess:T})]})})]})]})};var A=r(2501),N=r(5018);let _=({align:e="end",intentTrigger:t="generic",...r})=>{let{signInModalOn:n}=(()=>{let{userFlags:e,isReady:t}=(0,A.G)(),r=t&&!!e.sign_in_modal?.enabled;return{isReady:t,signInModalOn:r,signInPopoverOn:t&&!r}})(),o=(0,N.Ub)(N.Rp.Mobile,void 0,{getInitialValueInEffect:!1}),i="follow"===t||"follow_authors"===t;return n||o&&i?(0,a.jsx)(b,{...r}):(0,a.jsx)(C,{...r,align:e,intentTrigger:t})}},38187:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var a=r(46657),n=r(72008);let o=(e,t,r)=>{let{personalizedAds:o}=(0,a.J)();if(!(t&&e))return"";let i=r?.topics??t.topics??[],l=r?.tags??t.tags??[],s=(0,n.Nn)(t.ch,e);return`pubads.g.doubleclick.net/gampad/ads?iu=/21809533738/${s}&description_url=${encodeURIComponent(e)}&env=vp&impl=s&tfcd=0&npa=${o?"0":"1"}&gdfp_req=1&output=vast&sz=640x360&ciu_szs=300x250,728x90&unviewed_position_start=1&cust_params=cid=${t.cid}%26topics=${encodeURIComponent(i.join(","))}%26tags=${encodeURIComponent(l.join(","))}%26ctype=${t.ctype}%26premiumCategory=${t.premiumCategory}`}},38256:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(44855),n=r(2457);let o=async([e,t])=>{let r=await fetch(e);if(!r.ok)return[];let a=await r.json();return a?.[t]??[]};function i(e,t){let{apiGetFollowed:r,idKey:i,responseKey:l}=n.Pz[e],{data:s,mutate:d}=(0,a.Ay)(t?[r,l]:null,o,{dedupingInterval:5e3,revalidateOnFocus:!1});return{followedList:s??[],hasLoaded:void 0!==s,idKey:i,mutate:d}}},43154:(e,t,r)=>{"use strict";r.d(t,{RZ:()=>s,So:()=>d,tv:()=>c,yd:()=>l});let a=!1,n=!1,o=new Set;function i(){for(let e of o)e()}function l(e){a!==e&&(a=e,i())}function s(e){n!==e&&(n=e,i())}function d(){return a||n}function c(e){return o.add(e),()=>{o.delete(e)}}},43783:(e,t,r)=>{Promise.resolve().then(r.bind(r,40093)),Promise.resolve().then(r.bind(r,41112)),Promise.resolve().then(r.bind(r,21957)),Promise.resolve().then(r.bind(r,8060)),Promise.resolve().then(r.bind(r,45655)),Promise.resolve().then(r.bind(r,60978)),Promise.resolve().then(r.bind(r,81427)),Promise.resolve().then(r.bind(r,86781)),Promise.resolve().then(r.bind(r,82871)),Promise.resolve().then(r.bind(r,16744)),Promise.resolve().then(r.bind(r,29160)),Promise.resolve().then(r.bind(r,14093)),Promise.resolve().then(r.bind(r,36669)),Promise.resolve().then(r.bind(r,29727)),Promise.resolve().then(r.bind(r,8666)),Promise.resolve().then(r.bind(r,6480)),Promise.resolve().then(r.bind(r,52425)),Promise.resolve().then(r.bind(r,1605)),Promise.resolve().then(r.bind(r,60616)),Promise.resolve().then(r.bind(r,74733)),Promise.resolve().then(r.bind(r,5
1591)),Promise.resolve().then(r.bind(r,90270)),Promise.resolve().then(r.bind(r,45691)),Promise.resolve().then(r.bind(r,31070)),Promise.resolve().then(r.bind(r,15871))},45655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GoogleSourceBanner:()=>u,GoogleSourceBannerSmall:()=>p});var a=r(95155),n=r(12115),o=r(8666);let i=({className:e,...t})=>(0,a.jsxs)("svg",{className:e,fill:"none",height:"32",viewBox:"0 0 32 32",width:"32",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,a.jsx)("title",{children:"Google source logo"}),(0,a.jsxs)("g",{clipPath:"url(#clip0_google_source_logo)",children:[(0,a.jsx)("path",{d:"M11.1475 1.05225C7.95019 2.16142 5.19285 4.26667 3.28046 7.05876C1.36808 9.85085 0.401465 13.1826 0.522592 16.5647C0.643719 19.9467 1.84621 23.2008 3.95343 25.8489C6.06065 28.4971 8.96153 30.3997 12.23 31.2773C14.8798 31.961 17.656 31.991 20.32 31.3648C22.7333 30.8227 24.9644 29.6632 26.795 27.9998C28.7002 26.2156 30.0831 23.9459 30.795 21.4348C31.5685 18.7039 31.7062 15.8321 31.1975 13.0398H16.3175V19.2123H24.935C24.7628 20.1967 24.3937 21.1363 23.8499 21.9748C23.306 22.8133 22.5986 23.5335 21.77 24.0923C20.7178 24.7886 19.5316 25.257 18.2875 25.4673C17.0399 25.6993 15.7601 25.6993 14.5125 25.4673C13.2479 25.2061 12.0516 24.6842 11 23.9348C9.31036 22.7387 8.04168 21.0396 7.37499 19.0798C6.69721 17.0832 6.69721 14.9188 7.37499 12.9223C7.84955 11.5228 8.63407 10.2486 9.66999 9.19475C10.8555 7.96662 12.3563 7.08874 14.0079 6.65744C15.6594 6.22614 17.3979 6.25808 19.0325 6.74975C20.3095 7.14156 21.4772 7.82645 22.4425 8.74975C23.4142 7.78308 24.3842 6.81392 25.3525 5.84225C25.8525 5.31975 26.3975 4.82225 26.89 4.28725C25.4163 2.91605 23.6866 1.84901 21.8 1.14725C18.3642 -0.100274 14.6049 -0.1338 11.1475 1.05225Z",fill:"white"}),(0,a.jsx)("path",{d:"M11.1474 1.05249C14.6046 -0.134368 18.3639 -0.101725 21.7999 1.14499C23.6869 1.85152 25.4158 2.92369 26.8874 4.29999C26.3874 4.83499 25.8599 5.33499 25.3499 5.85499C24.3799 6.82332 23.4108 7.78832 22.4424 8.74999C21.4772 7.82668 20.3094 7.1418 19.0324 6.74999C17.3984 6.25659 15.66 6.22281 14.008 6.65235C12.356 7.08188 10.8542 7.95814 9.66744 9.18499C8.63153 10.2388 7.84701 11.513 7.37244 12.9125L2.18994 8.89999C4.04496 5.22139 7.25681 2.40755 11.1474 1.05249Z",fill:"#E33629"}),(0,a.jsx)("path",{d:"M0.81512 12.8754C1.09347 11.4948 1.55593 10.1579 2.19012 8.90039L7.37262 12.9229C6.69484 14.9194 6.69484 17.0838 7.37262 19.0804C5.64595 20.4137 3.91845 21.7537 2.19012 23.1004C0.602996 19.9412 0.118951 16.3416 0.81512 12.8754Z",fill:"#F8BD00"}),(0,a.jsx)("path",{d:"M16.3175 13.0371H31.1975C31.7062 15.8295 31.5686 18.7012 30.795 21.4321C30.0831 23.9433 28.7002 26.213 26.795 27.9971C25.1225 26.6921 23.4425 25.3971 21.77 24.0921C22.5992 23.5328 23.3069 22.8118 23.8508 21.9724C24.3946 21.133 24.7634 20.1925 24.935 19.2071H16.3175C16.315 17.1521 16.3175 15.0946 16.3175 13.0371Z",fill:"#587DBD"}),(0,a.jsx)("path",{d:"M2.1875 23.1001C3.91583 21.7667 5.64333 20.4267 7.37 19.0801C8.03802 21.0406 9.30851 22.7398 11 23.9351C12.0549 24.681 13.2537 25.1987 14.52 25.4551C15.7676 25.6871 17.0474 25.6871 18.295 25.4551C19.5391 25.2448 20.7253 24.7764 21.7775 24.0801C23.45 25.3851 25.13 26.6801 26.8025 27.9851C24.9722 29.6494 22.741 30.8098 20.3275 31.3526C17.6635 31.9788 14.8873 31.9488 12.2375 31.2651C10.1418 30.7055 8.18419 29.7191 6.4875 28.3676C4.69182 26.9416 3.22509 25.1449 2.1875 23.1001Z",fill:"#319F43"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_google_source_logo",children:(0,a.jsx)("rect",{fill:"white",height:"32",width:"32"})})})]});var l=r(5018),s=r(41994),d=r(55507),c=r(2501);let u=({title:e,className:t=""})=>{let{optimizely:r}=(0,c.G)(),[u,p]=(0,n.useState)(!0),m=(0,l.Ub)(l.Rp.Mobile),f=()=>{window.open("https://www.google.com/preferences/source?q=fortune.com","GooglePopup","menubar=no,toolbar=no,status=no,width=600,height=600,top=100,left=100")};return u?(0,a.jsxs)("div",{className:(0,d.cn)("flex flex-col p-4 md:px-6 max-w-[1344px] 2xl:w-full gap-4 2xl:m-auto margin-safe-area rounded-md border shadow-[0_0_24px_0_rgba(17,17,17,0.04)] font-graphik-compact font-medium",t),children:[(0,a.jsxs)("div",{className:"flex gap-2 md:gap-4 md:items-center",children:[(0,a.jsx)(i,{className:"max-md:size-5"}),(0,a.jsx)("div",{className:"text-primary typography-xs md:typography-default flex-[1_0_0] m-auto",children:e}),(0,a.jsx)("button",{"aria-label":"Add Fortune as a preferred source on Google - Opens in a new window",className:"hidden md:flex justify-center items-center self-stretch px-6 py-3 rounded-full button-primary button-text-primary text-base leading-4 cursor-pointer",onClick:()=>{(0,s.oj)(r,"addOnGoogleClicked",{}),f()},type:"button",children:"Add us on Google"}),(0,a.jsx)("button",{"aria-label":"Close banner",onClick:()=>{(0,s.oj)(r,"closeAddOnGoogleClicked",{}),p(!1)},type:"button",children:m?(0,a.jsx)(o.Icon,{className:"max-md:self-start cursor-pointer",height:20,icon:"X",strokeWidth:1.5,width:20}):(0,a.jsx)(o.Icon,{className:"max-md:self-start cursor-pointer",icon:"X"})})]}),(0,a.jsx)("button",{"aria-label":"Add Fortune as a preferred source on Google - Opens in a new window",className:"flex md:hidden justify-center items-center self-stretch px-4 py-2 rounded-full button-primary button-text-primary text-xs leading-4 cursor-pointer",onClick:()=>{(0,s.oj)(r,"addOnGoogleClicked",{}),f()},type:"button",children:"Add us on Google"})]}):null},p=({title:e,className:t=""})=>{let{optimizely:r}
1=(0,c.G)(),[l,u]=(0,n.useState)(!0);return l?(0,a.jsxs)("div",{className:(0,d.cn)("flex flex-col p-4 gap-4 margin-safe-area rounded-md border shadow-[0_0_24px_0_rgba(17,17,17,0.04)] font-graphik-compact font-medium",t),children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i,{className:"size-5"}),(0,a.jsx)("div",{className:"text-primary typography-xs flex-[1_0_0] m-auto",children:e}),(0,a.jsx)("button",{"aria-label":"Close banner",onClick:()=>{(0,s.oj)(r,"closeAddOnGoogleClicked",{}),u(!1)},type:"button",children:(0,a.jsx)(o.Icon,{className:"self-start cursor-pointer",height:20,icon:"X",strokeWidth:1.5,width:20})})]}),(0,a.jsx)("button",{"aria-label":"Add Fortune as a preferred source on Google - Opens in a new window",className:"flex justify-center items-center self-stretch px-4 py-2 rounded-full button-primary button-text-primary text-xs leading-4 cursor-pointer",onClick:()=>{(0,s.oj)(r,"addOnGoogleClicked",{}),window.open("https://www.google.com/preferences/source?q=fortune.com","GooglePopup","menubar=no,toolbar=no,status=no,width=600,height=600,top=100,left=100")},type:"button",children:"Add us on Google"})]}):null}},65832:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var a=r(12115),n=r(5018),o=r(2457);let i=(e,t)=>{let r=(0,n.Ub)(n.Rp.Mobile,void 0,{getInitialValueInEffect:!1}),[i,l]=(0,a.useState)(null),s=(0,a.useCallback)(()=>{let t,a=e.current;if(!a)return;let{bottom:n,left:o}=a.getBoundingClientRect();l({left:r?void 0:(t=Math.min(276,window.innerWidth-32),Math.max(16,Math.min(o,window.innerWidth-t-16))),top:n+8})},[e,r]);return((0,a.useLayoutEffect)(()=>t?(s(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}):void l(null),[t,s]),t&&null!==i)?{className:r?o.RZ:o.og,isReady:!0,portal:!0,style:void 0===i.left?{top:i.top}:{left:i.left,top:i.top}}:{className:r?o.RZ:o.og,isReady:!1,portal:!0}}},81427:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SurveyGate:()=>s});var a=r(95155),n=r(12115),o=r(31070);let i=({surveyUrl:e})=>e?(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center py-xs px-sm border info-border relative z-9 w-full rounded info-surface gap-6","data-cy":"survey-container",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start w-full","data-cy":"survey-content",children:[(0,a.jsx)("h2",{className:"text-primary typography-level-5 font-bold font-inria-serif","data-cy":"survey-heading",children:"Your opinion matters!"}),(0,a.jsx)("div",{className:"text-secondary font-normal typography-default font-graphik-compact","data-cy":"survey-description",children:"Please take a moment to share feedbackâwe're always looking to improve."})]}),(0,a.jsx)(o.ButtonV2,{className:"font-medium typography-sm tracking-none transition-colors w-full md:w-[141px]","data-cy":"survey-link",href:e,rel:"noopener noreferrer",size:"lg",target:"_blank",variant:"primary",children:(0,a.jsx)("span",{children:"Take Survey"})})]}):null;var l=r(46657);let s=({showSurvey:e,audienceType:t,surveyUrl:r})=>{let{userAccess:o}=(0,n.useContext)(l.R);if(!(e&&o))return null;let s=o.hasAccess,d=o.pianoUserToken;return"default"===t||""===t||"subscribed"===t&&s||"not_subscribed"===t&&d&&!s||"guest"===t&&!d?(0,a.jsx)(i,{surveyUrl:r}):null}},90270:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResponsiveTrinityPlayer:()=>v,TrinityPlayer:()=>x});var a=r(95155),n=r(12115),o=r(41994),i=r(2526),l=r(2501);let s=null,d=null,c=!1,u=!1,p=!1,m="#trinity-player-container";function f(){return window.TRINITY_PLAYER?.api}function h(){return"function"==typeof f()?.createPlayer}function g(e){c&&(c=!1,u=!0,d=s);try{f()?.removePlayer?.()}catch{}let t=e??document.querySelector(m);if(t)for(let e of(t.querySelectorAll("script, iframe, .trinity-iframe").forEach(e=>{e.remove()}),Array.from(t.children)))e.classList.contains("trinity-tts-pb")||e.remove();document.querySelectorAll(".trinity-tts-pb").forEach(e=>{e.innerHTML=""}),h()||(window.__TRINITY_SCRIPT_LOADED__=!1,window.TRINITY_PLAYER=void 0)}let w=({url:e,ownAudio:t,noTrinityAds:r,subscriptionLockedUrl:w})=>{let{paywallState:{paywallCheck:y}}=(0,i.k)(),{optimizely:b}=(0,l.G)();return(0,n.useEffect)(()=>{let r;if("pending"===y)return void g();let a=!1,n=(o=0)=>{let i;if(a)return;
1let l=document.querySelector(m);if(!l){o<20&&(r=setTimeout(()=>n(o+1),50));return}g(l),p||(d=window.onerror,Object.defineProperty(window,"onerror",{configurable:!0,enumerable:!0,get:()=>d,set(e){(!u||c)&&(d=e)}}),p=!0),c||(s=d,u=!1,c=!0);let b=h()&&!!window.__TRINITY_SCRIPT_LOADED__,x=function(e,t,r,a=0xacdac153,n,o){let i=`https://trinitymedia.ai/player/trinity/${a}/?pageURL=${encodeURIComponent(e)}&FAB=fabAfterClick&playerType=${t}`;return r&&(i+=`&cf=${encodeURIComponent(r)}`),n&&(i+=`&subscriptionLockedURL=${encodeURIComponent(n)}`),void 0!==o&&(i+=`&_rc=${o}`),i}(e,"no-paywall"===y?"":"subscription-locked",t,0xacdac153,w,b?void 0:Date.now());if((i=document.createElement("script")).src=x,i.async=!0,i.type="text/javascript",l.appendChild(i),b){try{f()?.createPlayer?.()}catch{}return}window.__TRINITY_SCRIPT_LOADED__=!0},o=setTimeout(()=>n(),0);return()=>{a=!0,clearTimeout(o),void 0!==r&&clearTimeout(r),g()}},[e,y,t,w]),(0,n.useEffect)(()=>{let e=e=>{"https://trinitymedia.ai"===e.origin&&e.data?.type==="TRINITY_TTS"&&window.TRINITY_PLAYER&&window.TRINITY_PLAYER.message&&window.TRINITY_PLAYER.api&&e.data.value&&e.data.value.action===window.TRINITY_PLAYER.message.playerReady&&r&&window.TRINITY_PLAYER.api.setAdFreeSubscriber()};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[r]),(0,n.useEffect)(()=>{let t=()=>{let t=document.activeElement;t?.classList?.contains("trinity-iframe")&&(0,o.oj)(b,"trinity_player_click",{pageUrl:e,playerType:"default",trinityId:0xacdac153,value:1})};return window.addEventListener("blur",t),()=>{window.removeEventListener("blur",t)}},[b,e]),(0,n.useEffect)(()=>{let t=[25,50,75,90],r=new Set,a=()=>{let a=window.pageYOffset||document.documentElement.scrollTop,n=document.documentElement.scrollHeight-window.innerHeight;if(n<=0)return;let i=Math.round(a/n*100);for(let a of t)i>=a&&!r.has(a)&&(r.add(a),(0,o.oj)(b,"scroll_depth",{pageUrl:e,playerType:"default",scrollDepthPercent:a,trinityId:0xacdac153,value:a}))};return window.addEventListener("scroll",a,{passive:!0}),()=>{window.removeEventListener("scroll",a)}},[b,e]),(0,a.jsx)("div",{className:"trinity-tts-pb",dir:"ltr"})};var y=r(46657),b=r(55507);let x=({url:e,ownAudio:t,noTrinityAds:r,hideAudioPlayer:n=!1,className:o})=>{let{personalizedAds:i}=(0,y.J)();return n||!0!==i?null:(0,a.jsx)("div",{className:(0,b.cn)("flex self-center w-full h-[115px]",o),"data-content-placement":"trinity_audio_player",id:"trinity-player-container",children:(0,a.jsx)(w,{noTrinityAds:r,ownAudio:t,subscriptionLockedUrl:"https://fortune.com/subscribe/?itm_source=Site_0_HCL_TRINITY_CTA_0_2026_ZZ",url:e})})},v=({mediaQuery:e,...t})=>{let[r,o]=(0,n.useState)(()=>"matchMedia"in window&&window.matchMedia(e).matches);return((0,n.useEffect)(()=>{let t=window.matchMedia(e),r=e=>o(e.matches);return r(t),t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),r)?(0,a.jsx)(x,{...t}):null}},93318:(e,t,r)=>{"use strict";r.d(t,{Y:()=>u});var a=r(95155),n=r(50716),o=r(33210),i=r(12115),l=r(47650),s=r(29217),d=r(55507);let c=(0,s.tv)({base:"absolute right-0 top-full mt-2 w-80 bg-white rounded shadow-lg p-2 z-10 border-t-4",defaultVariants:{variant:"default"},variants:{variant:{default:"border-t-blue-500",error:"border-t-red-500"}}});function u({isOpen:e,onClose:t,title:r,content:s,className:p="",showClose:m=!0,variant:f="default",portal:h=!1,style:g}){let[w,y]=(0,i.useState)(!1);if((0,i.useLayoutEffect)(()=>{y(!0)},[]),!e||h&&!w)return null;let b=(0,a.jsxs)("div",{className:(0,d.cn)(c({variant:f}),p),style:g,children:[r&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3 gap-2 h-11",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-neutral-900","data-cy":"ndr-tooltip-title",children:r}),m&&(0,a.jsx)("button",{"aria-label":"Close disclosure",className:"text-neutral-900 transition-colors p-1 cursor-pointer","data-cy":"ndr-tooltip-close-button",onClick:t,type:"button",children:(0,a.jsx)(o.A,{className:"w-4 h-4"})})]}),(0,a.jsx)("div",{className:"text-sm text-neutral-900 font-normal leading-relaxed [&_a]:underline [&_a]:text-blue-500","data-cy":"ndr-tooltip-content",children:"string"==typeof s?(0,n.Ay)(s):s})]});return h&&w?(0,l.createPortal)(b,document.body):b}},97643:(e,t,r)=>{"use strict";r.d(t,{l:()=>o,u:()=>i});let a="/image/upload/",n=/^[a-z]{1,3}_[^,]+$/;function o(e){return e.includes(a)}function i(e,t){let r=e.split("?")[0]??"",o=r.indexOf(a);if(-1===o)return e;let i=o+a.length,l=r.slice(i),[s="",...d]=l.split("/");if(d.length>0&&s.split(",").every(e=>n.test(e)))return null==t?r:`${r.slice(0,i)}${/(^|,)w_\d+(,|$)/.test(s)?s.replace(/(^|,)w_\d+/,`$1w_${t}`):`${s},w_${t}`}/${d.join("/")}`;let c=null==t?"f_auto,q_auto":`f_auto,q_auto,w_${t}`;return`${r.slice(0,i)}${c}/${l}`}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.