':"";if(r){var a=t.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",t.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",t.promos.notifOnboardMsg).replace("{subscriptionTopic}",t.promos.subscriptionTopic).replace("{noLogoClass}",a).replace("{promoLogo}",t.promos.promoLogo)}var s=n.newCount>t.panel.maxCount?n.newCount:"",c=t.panel.notificationCenterPath,l=c?"":R,u=t.panel.headerMsg?"":" "+R,d=c?D:"",p=void 0;n.count?p=n.markup:p='{emptyPanelMsg}'.replace("{emptyPanelMsg}",t.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",t.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,t.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,n){var t=this;if(t._panelNode){var o=void 0,i=t._panelNode,r=void 0,a=void 0;switch(e){case"expanded_panel":o='{promoMarkup}{notifMarkup}',a=t._store.getNotifications(),r=t._generatePanelMarkup(o,a),i.innerHTML=r;break;case"error_panel":r=(o='{errorMsg}').replace("{errorMsg}",t._config.panel.errorMsg),i.innerHTML=r}n&&n()}else n&&n(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(P))}},{key:"updateBadgeNode",value:function(e){if(e){var n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if(n){var o=n>t?t+"+":n;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var n=document.getElementById(this._config.panel.styleTagId);n||((n=document.createElement("style")).type="text/css",n.id=this._config.panel.styleTagId,n.innerText=e,document.head.appendChild(n))}}}]),e}(),U=function(){function e(n,t,o){L(this,e);var i=this;i._store=t,i._view=o,i._config=n;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return k(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(P)}},{key:"refreshPanelNode",value:function(e,n){var t=this;C(t._notifPanelNode,q),t._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(t._notifPanelNode),e?t._notifPanelNode.innerHTML||(t._view.render("error_panel"),C(t._notifPanelNode,q)):(t._view.render("expanded_panel"),t._view.updateBadgeNode(t._badgeNode),t._showBadge(),t._showIndicator(),t._view.addStyles(o.css)),M(t._notifPanelNode,q),i&&i.sync(t._notifPanelNode.parentNode),n&&n(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),C(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?C(this._indicatorNode,this._config.panel.indicatorClass):M(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?M(e._badgeNode,e._config.badge.hideClass):C(e._badgeNode,e._config.badge.hideClass)}}]),e}(),Y={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEligibleClassCheck:!1,notifOnboardBtnLabel:"Notify Me",notifOnboardMsg:"Get alerts for breaking news and top stories",promoLogo:"https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png",showYahooLogo:!0,subscriptionTopic:"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"",headerMsg:"Notifications",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"View all {newCount} notifications",notificationCenterPath:"",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}},z={NotificationClient:function(){function e(n){L(this,e);var t=this;t.config=t._parseConfig(n),t._validateRequiredConfigs()&&(t._request=new E(t.config),t._store=new O(t.config,t._request),t._view=new H(t.config,t._store),t._panelController=new U(t.config,t._store,t._view),t._panelController.createPanelParentNode(),t._assignHelperMethods())}return k(e,[{key:"_parseConfig",value:function(e){var n={};for(var t in N(n,Y),n)if(n.hasOwnProperty(t)){var o=n[t],i=e[t];"object"===(void 0===o?"undefined":_(o))?N(o,i):n[t]=e[t]}return n}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:"_assignHelperMethods",value:function(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){M(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},j="lnct",F=function(){function e(){var e,n;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(n=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===n?void 0:n.match(/ybar-variant-([a-z]*)/),this.client=new z.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,n,t,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(n=window.Af)||void 0===n?void 0:n.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,n){o.client.helpers.refreshPanelNode({matrixParams:i},(function(t,o){t&&(c("Notification refresh error:",t),n(t)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,n,t,o,i,r=document.getElementById("notification-container"),a=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0:e.config;if(I&&!a)return I;var s={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"Please check back later.",headerMsg:"Notifications",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP:!1}},l={};if(a){"att"===(null===(n=this.partnerClasses)||void 0===n?void 0:n[1])&&(s.promos.showYahooLogo=!1);try{var u=JSON.parse(a);l=h({},u),this.personalized=1===u.personalize}catch(e){c("Notifications config parsing error",e)}r&&delete r.dataset.config}return I=this.mergeConfigs(s,l),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=I.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete I.promos.subscriptionTopic,I},e.prototype.mergeConfigs=function(e,n){var t=h({},e);for(var o in e)t[o]=h(h({},e[o]),n[o]);return t},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(j)},e.prototype.setTimeStamp=function(){var e,n=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(j,n),n},e}(),G=new F,W=function(){return G},J="",V=[],K=function(){},X=function(){window.removeEventListener("beforeunload",X),""!==J&&c("Rapid not found on page",new Error(J))},$=null,Z=function(){return null===$&&($=document.getElementById("ybar")),$},Q=function(){var e=0,n=window.YAHOO;if(B)return B;if(n)if(n.i13n)if(n.i13n.__RAPID_INSTANCES__)if(n.i13n.__RAPID_INSTANCES__.length0)for(var t=0;t0){if(B.addModules(i,!1,o),V.length>0)for(e=0;e40959)&&(i19903)&&(i55215))return!1}return!0},fe={navBeaconFired:!1},me=["ready","navigation"],ve=function(){function e(e){var n=this;this.triggerEvent=a,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig=u,this.getPerformanceMetrics=d,this.rapidRefresh=ne,this.state=h({},fe),this.modules=e,this.userEmail="",window.YBAR&&(me.forEach((function(e){var t="on".concat(e),o=window.YBAR[t];o&&(n[t]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),me.forEach((function(e){var t="on".concat(e);s(e,(function(){for(var o,i=[],r=0;r0,o=_.scrollTope.pageOffset,r=_.scrollTop>k+y,a=_.scrollTop a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==n&&null!==t&&(new Rn).fetchCount().then((function(n){o&&n>0&&(o.textContent="("+(n>99?"99+":n)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},Pt=!1,Rt=-1,Dt=function(e,n,t){var o,i,r,a=-1,s=0;if(e.ybarNav&&e.navList){var c=window.getComputedStyle(e.ybarNav),l=parseInt(c.width,10)-parseInt(c.paddingLeft,10)-parseInt(c.paddingRight,10),u=61,d=e.navigationPlacement();if(d)u+=d.getBoundingClientRect().width;if(xt)u+=xt.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),h=parseInt(p.gap,10)||0,f=0;fb&&(f!==e.navItems.length-1||s+y>b||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&Rt10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass))}},Ht=function(e,n){var t=function(e,t){var o;e.classList.contains(n.moreMenuNavItemClass)&&(null===(o=n.moreMenuMainFocusItem)||void 0===o||o.setAttribute("aria-expanded",t))},o=function(){n.isTablet&&(document.body.classList.remove("ybar-nav-open"),document.body.removeEventListener("touchend",l))},i=function(e){var o=e.delegateTarget;o&&o.classList.contains(n.dropdownWrapperClass)&&(o.classList.contains(n.dropdownOpenClass)||(n.isTablet&&(document.body.classList.add("ybar-nav-open"),document.body.addEventListener("touchend",l)),o.classList.add(n.dropdownOpenClass),t(o,"true")))},r=function(e){var i=e.delegateTarget;if(null==i?void 0:i.classList.contains(n.navigationDropdownListClass)){var r=i.parentElement;r&&!r.contains(e.relatedTarget)&&r.classList.contains(n.dropdownWrapperClass)&&(o(),r.classList.remove(n.dropdownOpenClass),t(r,"false"))}else if(null==i?void 0:i.classList.contains(n.dropdownOpenClass)){if(n.isTablet&&e instanceof FocusEvent)return;var a=e.target;xt&&(!xt||xt.contains(a)&&"focusout"!==e.type)||(o(),i.classList.remove(n.dropdownOpenClass),t(i,"false"))}},a=je(".".concat(n.dropdownWrapperClass),"focusin",i),s=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),"focusout",r),c=document.getElementById("ybar-navigation"),l=function(e){var t=null==e?void 0:e.target;n.isTablet&&e&&e.target&&e.target instanceof HTMLElement&&(e.target.classList.contains(n.dropdownOpenClass)||e.target.closest(".".concat(n.dropdownOpenClass)))||document.body.classList.contains("ybar-nav-open")&&!["svg","path"].includes(t.tagName)&&(null==c||c.querySelectorAll(".".concat(n.dropdownOpenClass)).forEach((function(e){e.classList.remove(n.dropdownOpenClass)})),o())};e.addEventListener("nav:closeOverflowMenu",(function(){l()}));var u=je(".".concat(n.dropdownWrapperClass),"touchstart",(function(e){if(n.isTablet){var t=e.delegateTarget;t&&t.classList.contains(n.dropdownOpenClass)?r(e):(l(e),i(e))}}));e.onDestroy((function(){var e;u.destroy(),a.destroy(),s.destroy(),y([],v(null===(e=n.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(n.dropdownOpenClass);var t=document.activeElement;(function(e,n){var t=!1;if(!e||!n)return t;if("function"==typeof e.contains)t=e.contains(n);else for(var o=n;o;){if(o===e){t=!0;break}o=o.parentElement}return t})(n.ybarNav,t)&&setTimeout((function(){null==t||t.blur()}),1)}))}))},Ut=function(e,n,t,o){for(var i=n||window.location.pathname,r=t||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,c=y([],v(e.topLevelNavLinks),!1),l=null,u=null,d=0;d li"),dropdownClass:n.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:n.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,n){var t,o;y([],v(null===(t=n.ybarNav)||void 0===t?void 0:t.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(n.dropdownOpenClass)}));var i=e.getConfig();xt=(null===(o=i.bucketConfig)||void 0===o?void 0:o.enable_mid_nav_placement)?document.getElementById("ybar-mid-nav-placement"):void 0,"news"===i.property?kt=-12:(kt="finance"!==i.property&&"sports"!==i.property&&n.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(kt=-20));var r=n.isTablet?"touchstart":"mouseover",a=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),r,(function(t){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,r=t.delegateTarget;if(r&&-1!=r.className.indexOf(n.dropdownWrapperClass)&&(r=r.querySelector(".".concat(n.navigationDropdownListClass))),r){r.style.removeProperty("left");var a=r.getBoundingClientRect(),s=Math.trunc(a.right),c=parseInt(window.getComputedStyle(r).marginLeft,10)+o-s;if(s>o)return"sports"!==i.property?void(r.style.marginLeft=c+"px"):void(r.style.right="0px");if(parseInt(r.style.marginLeft)0?r.style.removeProperty("margin-left"):r.style.marginLeft=c+"px":(r.style.removeProperty("margin-left"),r.style.marginLeft=kt+"px"),n.isTablet){var l=r.previousElementSibling;if(xt&&xt.contains(r));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);r.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){a.destroy()}))}(e,n),qt(e),e.addElementListener(document,"DOMContentLoaded",(function(){qt(e)})),Ht(e,n);var a=e.getConfig().bucketConfig,s=void 0===a?{}:a,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(Pt=void 0!==u&&u,Ut(n)),e.addEventListener("nav:setFocus",(function(e){var t=e.detail,o=void 0===t?{}:t,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,c=o.options;Ut(n,s,r,void 0===c?{}:c)})),i){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=je("#ybar-nav-more-menu ul a","click",(function(n){e.triggerEvent("navigation",{event:n})}));e.addEventListener("nav:resize",(function(){Dt(n,d,r)})),Dt(n,d,r);var h=e.getConfig();if("complete"===document.readyState)Yt(e,n,d,r);else{var f="load";("news"===h.property&&("zh-Hant-TW"===h.locale||"zh-Hant-HK"===h.locale)||"finance"===h.property&&"zh-Hant-TW"===h.locale)&&(f="DOMContentLoaded"),e.addElementListener(window,f,(function(){Yt(e,n,d,r)}))}e.addElementListener(window,"resize",(function(){Dt(n,d,r)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}Ft(e,n)},jt=function(e,n){var t=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return n.isFuji2&&t},Ft=function(e,n){if(n.isNavHidden){var t=!1;e.addElementListener(document,"DOMContentLoaded",(function(t){n.isNavHidden()&&e.triggerEvent("l2:hide",{event:t})})),e.addElementListener(window,"resize",(function(o){!t&&n.isNavHidden()&&e.triggerEvent("l2:hide",{event:o}),t=n.isNavHidden()}))}},Gt="#ybar-nav-more-menu";ge("ybar-mod-navigation",(function(e){var n,t=e.getConfig(),o={dropdownWrapperClass:St,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet")||"tablet"===t.device||matchMedia("(hover: none)").matches,longListClass:At,moreMenuDropdown:document.querySelector("".concat(Gt," ul")),moreMenuNavItem:document.querySelector(Gt),moreMenuNavLinksSelector:"".concat(Gt," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(Gt," > button")),moreMenuNavItemClass:Ot,navigationDropdownItemClass:Mt,navigationDropdownListClass:Nt,navItems:document.querySelectorAll("ul.".concat(Tt," li.").concat(Bt)),topLevelNavLinks:document.querySelectorAll("li.".concat(Bt," > a")),navLinks:document.querySelectorAll(".ybar-mod-navigation a"),navList:document.querySelector(".ybar-mod-navigation ul"),shiftMoreMenuEnabled:document.querySelector(".ybar-shift-more-menu"),ybarNav:document.getElementById("ybar-navigation"),ybarNavigationItemClass:Bt,dropdownOpenClass:Et,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var n=window.getComputedStyle(e),o=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10);return"sports"===t.property?parseInt(n.marginRight):"finance"===t.property&&"crunch"===t.ytheme?(o-=1.8)>5?o:5:"crunch"===t.ytheme?o:0},navigationPlacement:function(){return n||(n=document.getElementById("ybar-nav-placement")),n},isNavHidden:function(){var e=!1;return"finance"===t.property&&"crunch"===t.ytheme&&document.documentElement.clientWidth=5||t.initialized?clearInterval(r):(void 0!==t.isNotificationsSupported()&&t.init(),i++)}),100)}return e.prototype.show=function(e){var n;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(Zt),null===(n=this.a11yMenu)||void 0===n||n.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(Qt),document.body.classList.remove(Zt),null===(e=this.a11yMenu)||void 0===e||e.setAttribute("aria-expanded","false"))},Object.defineProperty(e.prototype,"lastSeen",{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manuallyClosed",{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled||document.body.classList.add(Qt),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:$t)||(document.body.classList.add(Qt),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(eo)[0],"click",(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window||void 0===window?void 0:window.subscriptionHelperInstance)||void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return"default"===(null===(e=window.Notification)||void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var n=new Date(this.lastSeen),t=new Date;return n.getTime()+e>t.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(Xt,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,n,t=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Xt);if(null===t)return null;try{return JSON.parse(t)}catch(e){return null===(n=window.localStorage)||void 0===n||n.removeItem(Xt),null}},e}(),oo=-1,io={0:0,1:1,9:9,99:99,150:150},ro=function(e,n){var t,o=n.isUH3,i=n.notifMenu,r=n.notifMenuOpener,a=n.notifDropdown,s=n.notifBadge,c=n.notifContainer,l=n.notifLabel;n.tooltipContainer&&(t=new to(e,n.tooltipContainer));var u=W(),d=function(){i&&(i.checked=!1),null==a||a.classList.remove("ybarMenuOpen")},p=function(){var n;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(Wt))||(u.resetBadge(),s&&(o?null===(n=s.parentElement)||void 0===n||n.classList.remove(Jt):s.style.display="none"))},h=function(e){var n,t;0===oo&&(null===(n=null==e?void 0:e.css)||void 0===n?void 0:n.length)&&e.css.length>0&&(oo++,function(e){for(var n=function(e){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)},t=0;t0&&s)if(o){var r,a=(r=e.newCount)>99;s.textContent=a?"99+":r+"",null===(t=s.parentElement)||void 0===t||t.classList.add(Jt)}else s.style.display="block"},f=function(){u.refreshPanel().then(h).then(ne).catch((function(){}))};e.addEventListener("close-all-menus",(function(){xe(c)||d()})),c&&(f(),setInterval((function(){f()}),3e5),o?l&&l.addEventListener("mouseenter",(function(){p(),null==t||t.show()})):c.addEventListener("mouseenter",(function(){p(),null==t||t.show()})),c.addEventListener("mouseleave",(function(){d(),null==t||t.hide()}))),e.addElementListener(i,"click",(function(){ee("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),r&&Se(e,r,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(a,"focusin",(function(){i&&(i.checked=!0),null==a||a.classList.add("ybarMenuOpen")})),e.addElementListener(a,"focusout",d),e.addElementListener(n.tooltipContainer,"focusin",(function(){null==t||t.show()})),e.addElementListener(n.tooltipContainer,"focusout",(function(){null==t||t.hide()}));var m=e.getConfig().device,v=document.getElementById("ybar");v&&v.classList.contains("ybar-ytheme-crunch")&&(oo=0);var y=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===m&&i&&y.test(window.location.search)&&(i.checked=!0)};ge("ybar-mod-notification",(function(e){var n={isUH3:"crunch"===e.getConfig().ytheme,notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(Vt)),notifLabel:document.querySelector(".".concat(Kt))};n.notifDropdown&&ro(e,n)}))}()}};]]>Unlock stock picks and a broker-level newsfeed that powers Wall Street. Upgrade NowChris NeigerThu, Feb 20, 2025, 3:15 PM 5 min readTechnology companies of all shapes and sizes have bet their futures on artificial intelligence. The shockwave felt by nearly everyone after the release of OpenAI's ChatGPT was the catalyst for the current AI land grab, and subsequent releases of its model, as well as other advanced models released by competitors, are fueling an all-out king-of-the-hill battle among tech giants.Among the top contenders is semiconductor company Nvidia (NASDAQ: NVDA). Once an obscure name among more well-known tech companies, Nvidia has bolted to the top of many investors' buy lists and jockeys for the most valuable company title with Apple.There's a risk of choosing Nvidia as a top AI stock for the next decade simply because it's been a big winner over the past few years. But there's also a risk in ignoring the company's clear advantages in the AI market and settling for lesser AI stocks.Here's why I think Nvidia may go the distance over the next 10 years.Image source: Getty Images.Nvidia designs some of the world's most advanced processors. It doesn't manufacture them (check out Taiwan Semiconductor if AI chip-making is your thing) but instead uses a fabless semiconductor model, designing chips that have become integral to the tech industry.Nvidia's processors account for an estimated 70% to 95% of AI chips, giving the company a massive lead among competitors like Advanced Micro Devices. To stay a few steps ahead of its rivals, Nvidia continues to release new AI chips that tech companies are knocking down its doors to get their hands on.For example, its Blackwell processor is the next iteration of its AI processor, and Nvidia's CFO, Colette Kress, said on a recent earnings call that the company is ramping up production to keep up."Blackwell demand is staggering, and we are racing to scale supply to meet the incredible demand customers are placing on us," Kress said. With its lead already well-established and the company continuing its history of releasing advanced AI processors that outpace rivals and satisfy customers, it's likely there are many more years ahead for Nvidia's growth.Having in-demand chips right now is one thing, but parlaying that opportunity into a years-long opportunity is quite another. That's why the massive data center market is such an important factor for Nvidia.Nvidia CEO Jensen Huang estimates that data center spending will accelerate over the next few years as companies aim to dominate AI in cloud computing and develop AI models. Huang said a few months ago that technology companies could spend up to $2 trillion over the next five years as they try to race ahead of each other.Terms and Privacy PolicyPrivacy & Cookie SettingsMore InfoS&P 5006,049.44 -68.08 (-1.11%)Dow 3043,604.52 -572.13 (-1.30%)Nasdaq19,676.30 -286.06 (-1.43%)Russell 20002,219.84 -41.90 (-1.85%)Crude Oil70.95 -1.53 (-2.11%)Gold2,954.70 -1.40 (-0.05%)My PortfoliosSign in to access your portfolioSign inTop GainersCELH Celsius Holdings, Inc. 32.55 +7.02 (+27.49%)PONY Pony AI Inc. 22.65 +4.77 (+26.68%)VICR Vicor Corporation 63.20 +11.34 (+21.87%)TLX Telix Pharmaceuticals Limited 19.53 +2.12 (+12.26%)VKTX Viking Therapeutics, Inc. 35.43 +3.80 (+12.00%)Top LosersGLOB Globant S.A. 159.57 -50.60 (-24.08%)HIMS Hims & Hers Health, Inc. 50.79 -15.62 (-23.52%)AKAM Akamai Technologies, Inc. 78.88 -19.15 (-19.55%)SFM Sprouts Farmers Market, Inc. 138.96 -30.85 (-18.17%)NU Nu Holdings Ltd. 10.98 -2.36 (-17.73%)Most ActiveNU Nu Holdings Ltd. 10.98 -2.36 (-17.73%)NVDA NVIDIA Corporation 137.36 -2.75 (-1.96%)NIO NIO Inc. 4.5300 +0.1600 (+3.66%)PLTR Palantir Technologies Inc. 104.21 -2.06 (-1.94%)HIMS Hims & Hers Health, Inc. 50.79 -15.62 (-23.52%)Trending TickersUNH UnitedHealth Group Incorporated 463.70 -38.72 (-7.71%)MLGO MicroAlgo Inc. 7.51 +6.36 (+553.04%)CELH Celsius Holdings, Inc. 32.47 +6.93 (+27.16%)XYZ Block, Inc. 68.30 -14.75 (-17.74%)HIMS Hims & Hers Health, Inc. 50.89 -15.52 (-23.38%)Top Economic Events