Make Yahoo Your Homepage
Discover something new every day from News, Sports, Finance, Entertainment and more!
Yahoo Home
Sign in to view your mail
- News
- Finance
- Sports
- Entertainment
- Life
- Yahoo Plus
- More...
{emptyPanelMsg}
{headerMsg}
- {promoMarkup}{notifMarkup}
{notificationCenterNavMsg}
{errorMsg}
').replace("{errorMsg}",n._config.panel.errorMsg),o.innerHTML=a}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(R))}},{key:"updateBadgeNode",value:function(e){if(e){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var i=t>n?n+"+":t;e.innerHTML=i}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var t=document.getElementById(this._config.panel.styleTagId);t||((t=document.createElement("style")).type="text/css",t.id=this._config.panel.styleTagId,t.innerText=e,document.head.appendChild(t))}}}]),e}(),H=function(){function e(t,n,i){E(this,e);var o=this;o._store=n,o._view=i,o._config=t;var a=o._config.panel;o._panelParentNode=document.querySelector(a.parentSelector),o._badgeNode=o._config.badge.selector&&document.querySelector(o._config.badge.selector),o._indicatorNode=a.indicatorSelector&&document.querySelector(a.indicatorSelector)}return x(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(R)}},{key:"refreshPanelNode",value:function(e,t){var n=this;k(n._notifPanelNode,B),n._store.fetchNotifications(e,(function(e,i){var o=window.wafer&&window.wafer.base;o&&o.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render("error_panel"),k(n._notifPanelNode,B)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(i.css)),A(n._notifPanelNode,B),o&&o.sync(n._notifPanelNode.parentNode),t&&t(e,i)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),k(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?k(this._indicatorNode,this._config.panel.indicatorClass):A(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?A(e._badgeNode,e._config.badge.hideClass):k(e._badgeNode,e._config.badge.hideClass)}}]),e}(),U={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}},F={NotificationClient:function(){function e(t){E(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new C(n.config),n._store=new M(n.config,n._request),n._view=new D(n.config,n._store),n._panelController=new H(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return x(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in T(t,U),t)if(t.hasOwnProperty(n)){var i=t[n],o=e[n];"object"===(void 0===i?"undefined":_(i))?T(i,o):t[n]=e[n]}return t}},{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(){A(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},Y="lnct",j=function(){function e(){var e,t;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(t=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===t?void 0:t.match(/ybar-variant-([a-z]*)/),this.client=new F.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,t,n,i=this,o={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},a=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return a.region&&a.lang&&(o.lang=a.lang,o.region=a.region),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&(o.partner=this.partnerClasses[1]),new Promise((function(e,t){i.client.helpers.refreshPanelNode({matrixParams:o},(function(n,i){n&&(c("Notification refresh error:",n),t(n)),e(i)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,i,o,a=document.getElementById("notification-container"),r=null===(e=null==a?void 0:a.dataset)||void 0===e?void 0:e.config;if(I&&!r)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(r){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(s.promos.showYahooLogo=!1);try{var u=JSON.parse(r);l=h({},u),this.personalized=1===u.personalize}catch(e){c("Notifications config parsing error",e)}a&&delete a.dataset.config}return I=this.mergeConfigs(s,l),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&"yahoo"!==(null===(i=this.partnerClasses)||void 0===i?void 0:i[1])&&(null===(o=I.promos)||void 0===o?void 0:o.subscriptionTopic)&&delete I.promos.subscriptionTopic,I},e.prototype.mergeConfigs=function(e,t){var n=h({},e);for(var i in e)n[i]=h(h({},e[i]),t[i]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Y)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(Y,t),t},e}(),z=new j,G=function(){return z},W="",V=[],K=function(){},Z=function(){window.removeEventListener("beforeunload",Z),""!==W&&c("Rapid not found on page",new Error(W))},J=null,Q=function(){return null===J&&(J=document.getElementById("ybar")),J},X=function(){var e=0,t=window.YAHOO;if(N)return N;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length<1)W="YBAR: no instances of rapid found!";else{var n=function(e){var t=void 0;if(e&&e.length>0)for(var n=0;n\n
\n
\n
\n
\n
\n
\n
'.concat(e.i18n.t("search.voice.permission_title"),'
\n
').concat(e.i18n.t("search.voice.permission_text"),"
\n
\n
\n
\n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n \n '.concat(e.i18n.t("search.voice.recognition_retry"),'\n
\n
\n
\n
\n
\n
\n ').concat(e.i18n.t("search.voice.trending_title"),'\n \n
\n
\n
{0}
{1}
{2}'}}function he(e){var t=this.config,n=this.createElem;e.edit=e.li.appendChild(n(t.ctn,"span")),t.icon&&e.edit.appendChild(n(t.icon,"span")),t.text&&e.edit.appendChild(n(t.text,"span")),l.set(e.edit,"pos",e.idx)}function me(){this.config={ctn:{css:"sa-edit"},icon:{css:"sa-edit-icon"},text:{css:"sa-edit-text"}}}function fe(e,t){var n=this.config,i=t.d,o=t.fd;t=t.m;if(o){if(13==t&&(o.dispMrk&&(u=n.history.markers["m"+o.dispMrk])&&u.css&&(e.li.className+=" "+u.css),!n.showAnnotForHistory))return;var a,r=e.li,s=this.createElem,c=o.title,l=o.subtitle,u=(s=(i&&i.subdn,c&&(i=s(n.title,"p"),n.concatSubTitle&&l&&(c+=" · "+l,l=""),i.innerHTML=c,r.className+=" quick-facts",r.appendChild(i)),l&&((i=s(n.subtitle,"p")).innerHTML=l,n.enableFlag&&o.flag&&((a=s({css:"sa-annot-flag"},"img")).onerror=function(e){a.style.display="none"},a.src=o.flag,i.appendChild(a)),r.appendChild(i)),n.markers))&&s["m"+t];0==e.idx&&u&&u.type&&(r.className+=" billboard "+u.type),n.richClass&&(c||l)&&(r.className+=" "+n.richClass)}}function ve(){this.config={title:{css:"sa-annot-title"},subtitle:{css:"sa-annot-subtitle"},markers:{m41:{type:"weather"},m46:{type:"finance"},m48:{type:"sports"}},history:{markers:{m27:{css:"entity-sugg"},m30:{css:"public-company"}}}}}function ye(e){var t,n,i,o,a=this.config,r=e.m;e=e.fd;46==r&&e&&(r=e.price,t=e.change,n=e.change_pct,i=a.zero.css,o=parseFloat(t),r)&&t&&n&&(o<0?i=a.down.css:0"+e.config.saAria.closedText+"
"),a.notify(E)},autoSelect:function(e){var t,n=this.config.autoSelect;n&&(!0===n&&0===e.idx||"[object Object]"===Object.prototype.toString.call(n)&&(t=e.data).m==n.m&&n.exact&&t.k.toLowerCase()===t.q.toLowerCase())&&(this.assistItem=e)},clearAssist:function(){this.elems.saTray.innerHTML="",this.items.splice(0,this.items.length),this.assistItem=null},createItem:function(e){var t={idx:e.idx,data:e.origData},n=l.htmlEncode,i=this.config,o=this.app.createElem,a={},r=(i.highlight&&l.merge(a,i.highlight),e.highlight&&l.merge(a,e.highlight),o(i.saItem,"li"));return(o=(l.set(r,"pos",e.idx),o(i.saTitle,"span"))).innerHTML=e.t||(i.boldTag&&e.k&&e.q?l.bold(i.boldTag,n(e.k),n(e.q),a):n(e.k)),r.appendChild(o),t.li=r,t.title=o,this.app.notify(g,[t,e]),t},resetQuery:function(){this.elems.sbInput.value=this.origQuery},reset:function(){var e=this,t=e.config,n=e.elems.sbForm;t.resetQuery&&e.resetQuery(),e.hide(),n.action=e.origAction,e.app.notify(w)},sameQuery:function(){return this.elems.sbInput.value==this.lastInput},updateRows:function(){var e=this,t=e.config,n=e.elems.sbInput,i=e.app.getElemStyleValue;e.useTextArea&&(e.rowHeight||(e.rowHeight=t.inputRowHeight||n.clientHeight-parseInt(i(n,"padding-top"),10)-parseInt(i(n,"padding-bottom"),10)),n.style.height=0,l.set(n,"rows",Math.min(Math.floor(n.scrollHeight/e.rowHeight),t.inputMaxRows||5)),n.style.height="")}},j),e.initConfig=function(){return{elems:{sbForm:"sb-form",sbInput:"sb-input",sbSubmit:"sb-search",sbClear:"sb-clr",sbCancel:"sb-cancel",saTray:"sa-tray"},customEvent:{},sa:{css:"sa",attrs:{type:"normal"}},saList:{css:"sa-list",attrs:{role:"listbox"},style:{cursor:"pointer"}},saItem:{css:"sa-item",attrs:{role:"option"}},saTitle:{css:"sa-item-title"},saAria:{shownText:"new suggestions shown",closedText:"Suggestion box closed",css:"sa-aria-live-region",attrs:{"aria-live":"polite"},style:{position:"absolute",left:"-9999px"}},saBE:{host:"",base:"/sugg/gossip/gossip-us-ura/",params:{l:1,bm:3,output:"sd1",nresults:10}},shBE:{host:"",base:"/history"},minInput:0,maxInput:255,boldTag:"{s}",ylc:{_r:2},ylcAssist:{use_case:""},hideOnOutsideClick:!0,noQueryClass:"sa-noQuery",typingClass:"typing",noResultClass:"sf-noResult"}},u.hideSbClr=(G.prototype={init:function(e){(this.app=e).on(b,z,this)}},G),u.entityFocus=(V.prototype={init:function(e){(this.app=e).on(T,W,this)}},V),u.saFr=(Q.prototype={init:function(e){(this.app=e).on(m,K,this),e.on(k,Z,this),e.on(w,J,this)}},Q),u.ipos=(ee.prototype={init:function(e){(this.app=e).on(b,X,this),e.on(d,$,this)}},ee),u.saTray=(ne.prototype={init:function(e){(this.app=e).on(h,te,this)}},ne),u.saFlvr=(oe.prototype={init:function(e){e.on(g,ie,this)}},oe),u.saShoppingRefinement=(ce.prototype={init:function(e){var t=this;t.shoppingRefinement=[],t.beforeNode=null,t.currentPos=0,t.category="",(t.app=e).on(f,ae,t),e.on(g,re,t),e.on(y,se,t)}},ce),u.saWhatToWatch=(pe.prototype={init:function(e){var t=this;t.whatToWatch=[],t.beforeNode=null,t.currentPos=0,(t.app=e).on(p,le,t),e.on(g,ue,t),e.on(y,de,t)}},pe),u.saEdit=(me.prototype={init:function(e){e.on(g,he,this)}},me),u.saAnnot=(ve.prototype={init:function(e){e.on(g,fe,this)}},ve),u.saStock=(be.prototype={init:function(e){(this.app=e).on(v,ye,this),e.on(g,ge,this)}},be),u.saSport=(Ee.prototype={init:function(e){(this.app=e).on(v,we,this),e.on(g,_e,this)}},Ee),u.saWeather=(Le.prototype={init:function(e){(this.app=e).on(v,xe,this),e.on(g,Ce,this)}},Le),u.saEntertainments=(Se.prototype={init:function(e){(this.app=e).on(v,ke,this)}},Se),u.saFlightStatus=(Ne.prototype={init:function(e){(this.app=e).on(v,Te,this),e.on(g,Ie,this)}},Ne),u.saCurrencyConverter=(Be.prototype={init:function(e){(this.app=e).on(v,Oe,this),e.on(g,Me,this)}},Be),u.saUnitConverter=(qe.prototype={init:function(e){(this.app=e).on(v,Re,this),e.on(g,Pe,this)}},qe),u.saAnswers=(He.prototype={init:function(e){(this.app=e).on(v,De,this)}},He),u.saImg=(Fe.prototype={init:function(e){e.on(g,Ue,this)}},Fe),u.saGroup=(Ge.prototype={init:function(e){var t=this;t.app=e,t.grps=[],t.mkrs={},e.on(g,Ye,t),e.on(y,ze,t)}},Ge),u.saPCActn=(Je.prototype={init:function(e){var t=this;t.app=e,t.selectedIndex=-1,e.on(p,We,t),e.on(C,Ve,t),e.on(N,Ke,t),e.on(M,Ze,t)}},Je),u.tapRmv=(Xe.prototype={init:function(e){(this.app=e).on(L,Qe,this)}},Xe),u.tapClr=(et.prototype={init:function(e){(this.app=e).on(C,$e,this)}},et)}();var Ct,Lt,kt,St={"bot-search-icon":"_yb_1bavday","bot-search-icon-container":"_yb_1qw8le8","bot-search-item":"_yb_1rcbk78","bot-search-item-col":"_yb_li5fk9","bot-search-span":"_yb_tv5lp9",history:"_yb_pcyl1g","list-item-hover":"_yb_x07c8n",lowlight:"_yb_1l5d3bg","no-wrap":"_yb_1dmwwu","related-title":"_yb_6iy6x0",sa:"_yb_1gtgrjo","sa-annot-rich":"_yb_h6y8wu","sa-annot-subtitle":"_yb_1su4a96","sa-annot-title":"_yb_1u8oovi","sa-company":"_yb_10strni","sa-edit":"_yb_1rj17np","sa-edit-icon":"_yb_1u2imlf","sa-edit-text":"_yb_3ioks5","sa-fd-actn-cont":"_yb_17d5ik5","sa-grp-hdr":"_yb_exx7in","sa-grp-hdr-title":"_yb_5xdk2","sa-history":"_yb_10gu5zv","sa-img":"_yb_i47iuy","sa-img-ctn":"_yb_16u51e6","sa-img-icon":"_yb_1g1owm4","sa-item":"_yb_116mifg","sa-item-title":"_yb_1mnwsh","sa-rich-thumb":"_yb_16q87oi","sa-sbx-container":"_yb_c0u0uy","sa-sugg":"_yb_nk5c67","sa-thumb-icon":"_yb_1syc08p","sa-tray":"_yb_yxbfl3","sa-tray-list-container":"_yb_102kd6q","sa-trending":"_yb_1qi7ucw","sub-assist":"_yb_ncrd8g","suggestion-title":"_yb_5n119j",trending:"_yb_h3mm6n","trending-title":"_yb_2dxvj6","yui3-highlight":"_yb_16n31zh",safadein:"_yb_gvj79","uh3-layout":"_yb_30g267","sa-answer":"_yb_d84gx1","sa-creator":"_yb_rh7wth","sa-group-holder":"_yb_1kzidgz",sacollapse:"_yb_bhuvwf"},At={boldTag:'{s}',customEvent:{customBtn:"searchBtnClicked",customKeyBoard:"enterKeyPressed",customSelection:"assistSelectionClicked"},elems:{sbForm:"ybar-sf",sbInput:"ybar-sbq",sbSubmit:"ybar-search",sbClear:"ybar-sbq-x"},hightlight:{exact:!0,pattern:"^"},minInput:1,sa:{css:St["sa-tray"]},saBE:{base:"",host:"",params:{appid:"yfp-t"}},saItem:{css:""},saList:{css:St["sa-tray-list-container"]},saTitle:{css:"",style:{display:"block"}},plugins:{saFr:{disable:!0},saFr2:{disable:!0},saTray:{afterNode:"ybar-sbq",ctn:{css:St["sa-sbx-container"]},tray:{css:St.sa+" "+St.lowlight}},saPCActn:{css:St["list-item-hover"],useDefaultTab:!0},ylcEncode:{disable:!0},saFlvr:{disable:!0},saEdit:{disable:!0},saAnnot:{disable:!0},saWhatToWatch:{disable:!0},saImg:{disable:!0},saPopup:{disable:!0}}},Tt={saBE:{base:"",host:"",params:{appid:"yfp-t",".crumb":"",f:1}},shBE:{host:"https://search.yahoo.com",base:"/history",params:{_bcrumb:""}},saItem:{css:St["sa-item"]},saTitle:{css:St["sa-item-title"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:St["sa-trending"],m13:St["sa-history"],m30:St["sa-company"],flvr:St["sa-sugg"]},saEdit:{ctn:{css:St["sa-edit"]},icon:{css:St["sa-edit-icon"]},text:{css:St["sa-edit-text"],text:"Remove"}},saAnnot:{title:{css:St["sa-annot-title"]},subtitle:{css:St["sa-annot-subtitle"]},richClass:St["sa-annot-rich"]},tapRmv:{placeholder:""},saImg:{placeholder:{css:St["sa-img-icon"]},thumbnail:{css:St["sa-img"]},ctn:{css:St["sa-img-ctn"]},richClass:St["sa-rich-thumb"]},saWhatToWatch:{disable:!0},saGroup:{hdr:{css:St["sa-grp-hdr"]},title:{css:St["sa-grp-hdr-title"]},grps:{m9:{text:"Trending now",css:St.trending},m13:{text:"",css:St.history}}}}},It={saBE:{base:"",host:"",params:{appid:"mi5",".crumb":"",f:1}},shBE:{host:"https://search.yahoo.com",base:"/history",params:{_bcrumb:""}},saItem:{css:St["sa-item"]},saTitle:{css:St["sa-item-title"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:St["sa-trending"],m13:St["sa-history"],m30:St["sa-company"],flvr:St["sa-sugg"]},saEdit:{ctn:{css:St["sa-edit"]},icon:{css:St["sa-edit-icon"]},text:{css:St["sa-edit-text"]}},saAnnot:{title:{css:St["sa-annot-title"]},subtitle:{css:St["sa-annot-subtitle"]},richClass:St["sa-annot-rich"]},tapRmv:{placeholder:""},saImg:{placeholder:{css:St["sa-img-icon"],wrap:{css:St["sa-thumb-icon"]}},thumbnail:{css:St["sa-img"]},ctn:{css:St["sa-img-ctn"]},richClass:St["sa-rich-thumb"],showIconOnImgLoad:!0},saGroup:{hdr:{css:St["sa-grp-hdr"]},title:{css:St["sa-grp-hdr-title"]},grps:{m9:{text:"Trending Now",css:St.trending},m13:{text:"",css:St.history}}},doneBtn:{disable:!0}}},Nt={plugins:{saAnnot:{title:{css:St["sa-annot-title"]},subtitle:{css:St["sa-annot-subtitle"]},richClass:St["sa-annot-rich"],markers:{m27:{type:"entertainments"},m32:{type:"flight"},m44:{type:"holiday"},m53:{type:"currency"},m54:{type:"unit"}}},saWeather:{enableHL:!0},saSport:{enableNewLeagueTmpl:!0,maxLen:40},saStock:{icon:"sa-stk-icon",billboard:!0,k_tmpl:'{0} · {1}',fd_tmpl:'{0}{3} ({4})'},saFlightStatus:{enabled:!0},saCurrencyConverter:{enabled:!0},saUnitConverter:{enabled:!0},saWhatToWatch:{disable:!1,insertPos:1}}},Ot={plugins:{saAnnot:{title:{css:St["sa-annot-title"]},subtitle:{css:St["sa-annot-subtitle"]},richClass:St["sa-annot-rich"],markers:{m27:{type:"entertainments"},m32:{type:"flight"},m44:{type:"holiday"},m53:{type:"currency"},m54:{type:"unit"}}},saWeather:{enableHL:!0},saSport:{enableNewLeagueTmpl:!0,maxLen:60},saStock:{icon:"sa-stk-icon",billboard:!0,k_tmpl:'{0} · {1}',fd_tmpl:'{0}{3} ({4})'},saFlightStatus:{enabled:!0},saCurrencyConverter:{enabled:!0},saUnitConverter:{enabled:!0},saWhatToWatch:{disable:!1,insertPos:1,item:{count:4}}}},Mt=function(e){var t=new RegExp("[?&]"+e+"=([^]*)").exec(window.location.search);return t?t[1]:null},Bt=function(e,t,n){var i=e.querySelectorAll(t);if(i)for(var o=0;o