Cryptocurrency | Yahoo - Latest News & Headlines (2024)

Make Yahoo Your Homepage

Discover something new every day from News, Sports, Finance, Entertainment and more!

Yahoo Home

  • Mail
  • News
  • Finance
  • Sports
  • Entertainment
  • Life
  • Yahoo Plus
  • More...
    ':"";if(a){var r=n.promos.showYahooLogo?"":"yns-no-logo";a=a.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",r).replace("{promoLogo}",n.promos.promoLogo)}var s=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":P,u=n.panel.headerMsg?"":" "+P,d=c?q:"",p=void 0;t.count?p=t.markup:p='
  • {emptyPanelMsg}

  • '.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",a).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",n.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,n.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,t){var n=this;if(n._panelNode){var i=void 0,o=n._panelNode,a=void 0,r=void 0;switch(e){case"expanded_panel":i='

    {headerMsg}

      {promoMarkup}{notifMarkup}

    {notificationCenterNavMsg}

    ',r=n._store.getNotifications(),a=n._generatePanelMarkup(i,r),o.innerHTML=a;break;case"error_panel":a=(i='

    {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;n0){if(N.addModules(o,!1,i),V.length>0)for(e=0;e40959)&&(o<13312||o>19903)&&(o<44032||o>55215))return!1}return!0},fe={navBeaconFired:!1},ve=["ready","navigation"],ye=function(){function e(e){var t=this;this.triggerEvent=r,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig=u,this.getPerformanceMetrics=d,this.rapidRefresh=ee,this.state=h({},fe),this.modules=e,this.userEmail="",window.YBAR&&(ve.forEach((function(e){var n="on".concat(e),i=window.YBAR[n];i&&(t[n]=i)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),ve.forEach((function(e){var n="on".concat(e);s(e,(function(){for(var i,o=[],a=0;a0,i=_.scrollTope.pageOffset,a=_.scrollTop>x+y,r=_.scrollTop90&&Me("performance",e)}catch(e){}}),1e3)})),le(),s("error",(function(e){var t=e&&e.detail||{},n=t.error||{},i=t.message||n.message||n.toString();try{var o={code:n.name,file:n.fileName||"",line:n.lineNumber||"",message:i};Me("error",o)}catch(e){}}));var Re,Pe,qe="_yb_1asmwdo",De="_yb_1gc3bdd",He="_yb_278f31",Ue="_yb_k8ma5z",Fe="_yb_1h271fn",Ye="_yb_z85rh1",je="_yb_di788v",ze="_yb_1avoxaw",Ge="_yb_phrxyu",We="_yb_1gwoer6",Ve="_yb_1izj0qh",Ke="_yb_1ascipe",Ze="_yb_vrax15",Je="_yb_128ep",Qe="_yb_161ai0b",Xe="_yb_ot37ln",$e="_yb_1kd8nb0",et="_yb_1y5m834",tt="_yb_1yn60ie",nt="_yb_1wgosqm",it="_yb_ra51om",ot="_yb_14ro9kv",at="_yb_gbfktq",rt="_yb_1b3vjqr",st="_yb_1lbbpej",ct={animation:"_yb_1cbjiwn","left-open":"_yb_1ql5txf",noscroll:"_yb_1mki8p9",overlay:"_yb_17ugq8r","fade-in-out":"_yb_1x4ts3y","right-open":"_yb_5hv0l4","center-open":"_yb_zvtryr"},lt=function(e,t){return void 0===t&&(t={}),m(void 0,void 0,void 0,(function(){return f(this,(function(n){return[2,new Promise((function(n,i){var o=new XMLHttpRequest;if(o.open("string"==typeof t.method?t.method:"GET","string"==typeof e?e:e.url,!0),"object"==typeof t.headers){var a=t.headers;for(var r in a)o.setRequestHeader(r,a[r])}o.withCredentials="include"===t.credentials,o.onreadystatechange=function(){4===o.readyState&&n({ok:o.status>=200&&o.status<=299,status:o.status,text:function(){return Promise.resolve(o.responseText)},json:function(){return new Promise((function(e,t){try{e(JSON.parse(o.responseText))}catch(e){t(e)}}))}})},o.send(t.body)}))]}))}))},ut=function(e,t){return void 0===t&&(t={}),("function"==typeof window.fetch?fetch:lt)(e,t)},dt=function(e,t){var n=e.url,i=e.headers,o=void 0===i?{}:i;return o["X-Requested-With"]="XMLHttpRequest",ut(n,{headers:o,credentials:"include"}).then((function(e){return e.text().then((function(n){!function(e,t){if(200!==e.status){var n=new Error("Request failed with status: "+e.status);n._meta={status:e.status},e.ymreqid&&(n._meta={ymreqid:e.ymreqid}),t(n)}else{var i=null;try{i=JSON.parse(e.responseText)}catch(e){var o=new Error("Error parsing responseText");return o._meta={originalError:e},void t(o)}t(null,i)}}({status:e.status,responseText:n},t)}))}))};!function(e){e[e.COUNT=0]="COUNT"}(Re||(Re={})),function(e){e[e.PENDING=0]="PENDING",e[e.COMPLETE=1]="COMPLETE"}(Pe||(Pe={}));var pt={0:0,1:1,9:9,99:99,150:150},ht=new Map,mt=function(){function e(){}return Object.defineProperty(e.prototype,"wssid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return n||(n=(null===(t=document.querySelector('input[name="mail_wssid"]'))||void 0===t?void 0:t.value)||"",this.wssid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return n||(n=(null===(t=document.querySelector('input[name="mail_appid"]'))||void 0===t?void 0:t.value)||"",this.appid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||""},enumerable:!1,configurable:!0}),e.prototype.fetchCount=function(e){return m(this,void 0,void 0,(function(){var t,n,i,o,a=this;return f(this,(function(r){return t=function(e){var t=ht.get(e);if(t){if(t.status===Pe.PENDING)return t.promise;var n=Date.now()-12e4;return t.data&&t.lastRequested>n?Promise.resolve(t.data):void 0}}(Re.COUNT),(n=this._checkForMockData())?[2,n]:!e&&t?[2,t]:(1,i={data:{responseType:"json",requests:[{id:"GetMailboxId",uri:"/ws/v3/mailboxes/",method:"GET",filters:{select:{mailboxId:"$..mailboxes[?(@.isPrimary==true)].id"}},suppressResponse:!0,requests:[{id:"ListDecos",uri:"/ws/v3/mailboxes/@.id==$(mailboxId)/decos",method:"GET"}]}]}},o=this._fetch(i,1,(function(e){var t=a._normalizerCountResponse(e);return function(e,t){var n={lastRequested:Date.now(),status:Pe.COMPLETE,promise:Promise.resolve(t),data:t};ht.set(e,n)}(Re.COUNT,t),t})),s=Re.COUNT,c=o,l={lastRequested:Date.now(),status:Pe.PENDING,promise:c},ht.set(s,l),[2,o]);var s,c,l}))}))},e.prototype._fetch=function(e,t,n){var i,o;return m(this,void 0,void 0,(function(){var a,r,s,l,u,d,p,m,v,y,g,b,w,_,E,x;return f(this,(function(f){switch(f.label){case 0:if(a=e.data,r=void 0===a?{}:a,s=e.params,l=void 0===s?{}:s,u="EC-4008",d="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");m=h({appId:this.appid},l),this.wssid&&(m.wssid=this.wssid),e.params=m,v=[],Object.keys(m).forEach((function(e){var t=m[e];t&&v.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t)))})),y=v.length?"?".concat(v.join("&")):"",g="https://apis.mail.yahoo.com/ws/v3/batch".concat(y),f.label=1;case 1:return f.trys.push([1,4,,5]),[4,ut(g,{method:"POST",body:JSON.stringify(r),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(b=f.sent()).json()];case 3:if(w=f.sent(),b.ok)return[2,n(null===(o=w.result)||void 0===o?void 0:o.responses)];if((_=null===(i=null==w?void 0:w.error)||void 0===i?void 0:i.code)===d)return[2,this._handleWssidApiError(w,e,t,n)];throw _===u?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw E=f.sent(),c("JWS: ".concat((x=E).message),x),E;case 5:return[2]}}))}))},e.prototype._checkForMockData=function(){var e=document.getElementById("ybar");if(e&&e.hasAttribute("data-mc")){var t=e.getAttribute("data-mc");if(t&&pt[t])return pt[t]}},e.prototype._normalizerCountResponse=function(e){var t,n,i,o,a,r;if(!e)return 0;var s=((null===(i=null===(n=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.response)||void 0===n?void 0:n.result)||void 0===i?void 0:i.decos)||[]).find((function(e){return"FTI"===(null==e?void 0:e.id)}));return s&&null!==(r=null===(a=null===(o=null==s?void 0:s.counts)||void 0===o?void 0:o[0])||void 0===a?void 0:a.unseen)&&void 0!==r?r:0},e.prototype._handleWssidApiError=function(e,t,n,i){var o,a,r=null===(a=null===(o=null==e?void 0:e.error)||void 0===o?void 0:o.details)||void 0===a?void 0:a.wssid,s=t.params,c=(void 0===s?{}:s).wssid;if(r){if(c&&r===c)throw new Error("API provided same invalid WSSID");if(void 0!==n&&n>0)return n-=1,this.wssid=r,this._fetch(t,n,i);throw new Error("Max retries with invalid WSSID reached")}throw new Error("valid WSSID missing from API Response")},e.prototype._getYmreqid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00".replace(new RegExp("x","g"),(function(){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),t.toString(16)}))},e}();be("ybar-mod-sidenav",(function(e){var t,n={sidenavBtn:document.getElementById("_yb_sidenav-btn"),sidenav:document.querySelector(".".concat(et)),menu:document.querySelector(".".concat(nt)),sections:document.querySelectorAll(".".concat(Je)),closeBtn:document.querySelector(".".concat(De)),panels:document.querySelectorAll(".".concat(Ze)),backBtn:document.querySelector(".".concat(qe)),footer:document.querySelector(".".concat(ze)),copyright:document.querySelector(".".concat(Ue)),selectedSectionLinks:document.querySelectorAll(".".concat(Xe," a")),focusedElement:document.querySelector(".".concat(Xe," .").concat(je)),editionsDropdown:document.querySelector(".".concat(Fe)),mailUnread:document.querySelector(".".concat(ot))},i=window.location.href.split("?")[0]?window.location.href.split("?")[0].replace(/\/$/,""):window.location.href,o=y([],v(n.selectedSectionLinks),!1);if(!n.focusedElement)for(var a=0;a0){if(i&&o){var n=t>99;i.classList.add("".concat(st)),o.classList.add("".concat(st)),i.textContent=n?"99+":t+"",n?i.classList.add("".concat(at)):t>=10&&i.classList.add("".concat(rt))}e.onDestroy((function(){i&&(i.textContent="")}))}})).catch((function(){}))}(e,s)}));var ft="_yb_1ypzggq",vt=function(e,t){var n;t.logoImages&&(n=t.logoImages).length>0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(Ae("#ybar-logo","#ybar-logo",t),t.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(t.wrapper,e),function(e,t){t&&e.addElementListener(t,"click",(function(){e.triggerEvent("logo-click")}))}(e,t.wrapper))};be("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(ft))};vt(e,t)}));var yt={"dropdown-open":"_yb_g0r19l","merchant-is-selected":"_yb_h2qzhu",overlay:"_yb_1nru3sh","selected-merchant-clear-button":"_yb_1wbp2p6","shops-buttons":"_yb_d0o15g","styled-select":"_yb_1oasj6l",tooltip:"_yb_1s23b6m","tooltip--show":"_yb_1g22j5p",tooltip__text:"_yb_eyzzz7",tooltip__voice:"_yb_1c2pch4",tooltip__web:"_yb_4v349a",dark:"_yb_r00emv",darker:"_yb_baechs",light:"_yb_139sugl",midnight60:"_yb_xb8k5t","search-input-uh3-hover":"_yb_1tp8zrq","search-input-uh3-focus-visible":"_yb_45dcv3","sa-btn-bar":"_yb_vsu14g","searchbox-icon-uh3":"_yb_eyo1p1",empty:"_yb_131x8vy"},gt=function(e,t){var n=Math.max(e,t),i=Math.min(e,t),o=Math.abs(n-i);return y([],v(new Array(o+1)),!1).map((function(e,t){return i+t}))},bt=function(e,t,n){var i=e.getConfig().bucketConfig,o=(void 0===i?{}:i).enable_search_ui,a=void 0!==o&&o;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");$("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),a&&window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view&&!window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.show())}))}},wt=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value="",e.searchInput.blur())},_t=function(){function e(e,t,n){t&&(this.ybar=e,this.elem=t,this.options=n,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,"tooltip",{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var t,n;null===(n=null===(t=e.tooltipMarkup)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,"mouseenter",this.show),this.ybar.addElementListener(this.elem,"focus",this.show),this.ybar.addElementListener(this.elem,"mouseleave",this.hide),this.ybar.addElementListener(this.elem,"blur",this.hide)},e.prototype.createTooltip=function(){var e=document.createElement("div");e.className=this.options.containerClass||"";var t=document.createElement("p");return t.textContent=this.options.label,t.className=this.options.textClass||"",e.appendChild(t),e},e}();!function(){var e,t,n,i,o,a,r,s,c,l,u,d,p,h,m,f={516:function(e,t,n){var i,o,a,r;e.exports=(i=n(336),o="default",a=function(e){return e.reduce((function(e,t){return e[t.id]=t.defaultMessage,e}),{})},((r=function(e){var t;this.lang=(t=e&&e.lang,-1!==i.indexOf(t)?e.lang:o)}).langMap={})[o]=a(n(559)),r.setLangMap=function(e,t){e&&t&&(r.langMap[e]=a(t))},r.prototype={t:function(e){switch(!0){case Boolean(r.langMap&&r.langMap[this.lang]&&r.langMap[this.lang][e]):return r.langMap[this.lang][e];case Boolean(r.langMap&&r.langMap[o]&&r.langMap[o][e]):return r.langMap[o][e];default:return""}}},r)},383:function(e,t,n){var i=n(645),o=n.n(i)()((function(e){return e[1]}));o.push([e.id,'/* Sprites */\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch1x-1620383531565.min.png");\n background-repeat: no-repeat;\n background-size: initial;\n color: transparent;\n}\n/* Retina displays */\n@media\n only screen and (min-device-pixel-ratio: 2),\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and (min-resolution: 192dpi),\n only screen and (min-resolution: 2dppx) {\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-size: 41px 330px;\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch2x-1620383531565.min.png")\n}\n }\n\n/* permission guide */\n#spchp.permission-guide {\n height: 100%;\n width: 100%;\n padding: 0;\n opacity: 0.9;\n background-color: #fff;\n left: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spchp.permission-guide .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spchp.permission-guide .close-button:hover {\n opacity: 1;\n }\n#spchp.permission-guide .guide {\n margin: 191px 0 0 507px;\n }\n#spchp.permission-guide .guide .microphone {\n height: 68px;\n width: 52px;\n border-right: 1px solid #232a31;\n float: left;\n }\n#spchp.permission-guide .guide .microphone .sprite {\n background-position: 0 -105px;\n width: 28px;\n height: 28px;\n }\n#spchp.permission-guide .guide .guide-text {\n height: 68px;\n margin-left: 24px;\n float: left;\n }\n#spchp.permission-guide .guide .guide-text .title {\n color: #232a31;\n font-size: 32px;\n font-family: HelveticaNeue-Bold;\n line-height: 28px;\n margin-bottom: 16px;\n }\n#spchp.permission-guide .guide .guide-text .text {\n color: #232a31;\n font-size: 16px;\n line-height: 28px;\n }\n#spchp.permission-guide.hide {\n display: none;\n }\n\n/* speech panel */\n#spch.spch {\n background: #fff;\n height: 100%;\n left: 0;\n opacity: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n visibility: hidden;\n width: 100%;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spch.spch .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spch.spch .close-button:hover {\n opacity: 1;\n }\n#spch.spch .spchc {\n display: block;\n height: 97px;\n pointer-events: none;\n }\n#spch.spch .spchc .inner-container {\n width: 100%;\n height: 100%;\n opacity: 0.1;\n pointer-events: none;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch .spchc .inner-container .spch-control {\n display: inline-block;\n }\n#spch.spch .spchc .inner-container .text-container {\n float: left;\n height: 91px;\n overflow: hidden;\n margin: 3px 0;\n pointer-events: none;\n width: calc(50% - 48.5px);\n }\n#spch.spch .spchc .inner-container .text-container p {\n display: table-cell;\n vertical-align: middle;\n width: 550px;\n height: 97px;\n }\n#spch.spch .spchc .inner-container .text-container .spcht {\n font-weight: normal;\n color: #6e7780;\n line-height: normal;\n opacity: 0;\n pointer-events: none;\n text-align: left;\n -webkit-font-smoothing: antialiased;\n transition: opacity 0.1s ease-in, margin-left 0.5s ease-in, top 0s linear 0.218s;\n }\n#spch.spch .spchc .inner-container .text-container .spcht.hide {\n display: none;\n }\n#spch.spch .spchc .inner-container .text-container #spcht-retry {\n color: #0f69ff;\n cursor: pointer;\n pointer-events: auto;\n }\n#spch.spch .spchc .inner-container .button-container {\n pointer-events: none;\n position: relative;\n transition: transform 0.218s, opacity 0.218s ease-in;\n }\n#spch.spch .spchc .inner-container .button-container .button {\n background-color: #fff;\n border: 1px solid #eee;\n border-radius: 100%;\n bottom: 0;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n cursor: pointer;\n display: inline-block;\n left: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.218s, border 0.218s, box-shadow 0.218s;\n }\n#spch.spch .spchc .inner-container .button-container .button .microphone {\n background-position: 0 -24px;\n width: 41px;\n height: 41px;\n left: 27px;\n pointer-events: none;\n position: absolute;\n top: 27px;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple {\n position: absolute;\n width: 136px;\n height: 136px;\n z-index: -1;\n left: 50%;\n top: 50%;\n opacity: 0;\n margin: -70px 0 0 -70px;\n border-radius: 100px;\n animation: ripple 3.3s infinite;\n background-color: #fff !important;\n border: 2px solid #e0e4e9;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(2) {\n animation-delay: 1.1s;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(3) {\n animation-delay: 2.2s;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button {\n background-color: #0f69ff;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button .microphone {\n background-position: 0 -65px;\n width: 40px;\n height: 40px;\n pointer-events: none;\n position: absolute;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple {\n background-size: 114px;\n position: absolute;\n width: 114px;\n height: 114px;\n z-index: -1;\n left: 50%;\n top: 50%;\n margin: -57px 0 0 -57px;\n animation: speakingRipple1 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(2) {\n background-size: 123px;\n width: 123px;\n height: 123px;\n margin: -62px 0 0 -62px;\n animation: speakingRipple2 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(3) {\n background-size: 136px;\n width: 136px;\n height: 136px;\n margin: -68px 0 0 -68px;\n animation: speakingRipple3 2s infinite;\n }\n#spch.spch .spcho {\n background-image: linear-gradient(to bottom, rgb(255 255 255) 50%, rgb(255 255 255 / 0%) 99%);\n display: block;\n min-width: 100%;\n text-align: center;\n top: 145px;\n padding-bottom: 71px;\n pointer-events: auto;\n }\n#spch.spch .spcho #spch-trending {\n animation: fadeIn 1s forwards;\n opacity: 0;\n }\n#spch.spch .spcho #spch-trending .trending {\n color: #6e7780;\n display: inline-block;\n font-size: 16px;\n }\n#spch.spch .spcho #spch-trending #trending-label {\n font-weight: bold;\n margin: 5px;\n }\n#spch.spch .spcho #spch-trending.hide {\n display: none;\n }\n#spch.spch.s2tb .spchc, #spch.spch.s2tb-h .spchc {\n background: #fff;\n box-sizing: border-box;\n box-shadow: 0 2px 6px rgb(0 0 0 / 20%);\n height: auto;\n margin: 0;\n min-width: 100%;\n overflow: hidden;\n padding: 24px 115px;\n }\n#spch.spch.s2tb .spchc .inner-container, #spch.spch.s2tb-h .spchc .inner-container {\n opacity: 1;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container, #spch.spch.s2tb-h .spchc .inner-container .text-container {\n position: relative;\n }\n#spch.spch.s2tb {\n background: rgb(255 255 255 / 0%);\n opacity: 1;\n visibility: visible;\n transition-delay: 0s;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container {\n transform: scale(1);\n height: 97px;\n right: 0;\n top: 0;\n width: 97px;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container .button {\n opacity: 1;\n pointer-events: auto;\n position: absolute;\n transform: scale(1);\n transition-delay: 0;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container .spcht {\n font-size: 24px;\n margin-left: 0;\n opacity: 1;\n transition: opacity 0.5s ease-out, margin-left 0.5s ease-out;\n }\n#spch.spch.s2tb #spch-overlay {\n -webkit-backdrop-filter: blur(10px);\n backdrop-filter: blur(10px);\n background-color: #fff;\n height: 100%;\n opacity: 0.9;\n position: absolute;\n top: 149px;\n\n /* spchc\'s height */\n width: 100%;\n }\n#spch.spch.disable-blur-overlay #spch-overlay {\n background-color: transparent;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n }\n#spch.spch.disable-blur-overlay .spcho {\n height: 27px;\n padding-bottom: 20px;\n background: #fff;\n background-image: none;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n box-shadow: 0 8px 6px -6px rgb(0 0 0 / 20%);\n }\n#spch.spch.s2tb-h {\n background: rgb(255 255 255 / 0%);\n opacity: 0;\n visibility: hidden;\n }\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes ripple {\n 0% {\n opacity: 1;\n transform: scale(0.7);\n }\n\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple1 {\n 0%,\n 100% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-1-202105260611.png");\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple2 {\n 0%,\n 100% {\n background-image: none;\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple3 {\n 0%,\n 25%,\n 75%,\n 100% {\n background-image: none;\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple3-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n',""]),t.Z=o},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var a=0;a0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},559:function(e){e.exports=JSON.parse('[{"id":"search.voice.hover_clear_text","description":"","defaultMessage":"Clear"},{"id":"search.voice.hover_search_text","description":"","defaultMessage":"Search the web"},{"id":"search.voice.hover_voice_text","description":"","defaultMessage":"Search by voice"},{"id":"search.voice.permission_text","description":"","defaultMessage":"Allow microphone access to enable voice search"},{"id":"search.voice.permission_title","description":"","defaultMessage":"Waiting for permission"},{"id":"search.voice.recognition_error","description":"","defaultMessage":"Please check your microphone and audio levels."},{"id":"search.voice.recognition_listening","description":"","defaultMessage":"Listening..."},{"id":"search.voice.recognition_nomatch","description":"","defaultMessage":"Didn\'t get that."},{"id":"search.voice.recognition_retry","description":"","defaultMessage":"Try again."},{"id":"search.voice.recognition_start","description":"","defaultMessage":"What would you like to search for?"},{"id":"search.voice.trending_title","description":"","defaultMessage":"Try saying"},{"id":"search.voice.trending_or","description":"","defaultMessage":"or"}]')},336:function(e){e.exports=JSON.parse('["ar-JO","da-DK","de-AT","de-CH","de-DE","el-GR","en-AU","en-CA","en-GB","en-IN","en-MY","en-NZ","en-PH","en-SG","es-AR","es-CL","es-CO","es-ES","es-MX","es-US","fi-FI","fr-CA","fr-CH","fr-FR","id-ID","it-CH","it-IT","ko-KR","nb-NO","nl-NL","pl-PL","pt-BR","ro-RO","ru-RU","sv-SE","th-TH","tr-TR","vi-VN","zh-Hant-HK","zh-Hant-TW"]')}},v={};function y(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={id:e,exports:{}};return f[e](n,n.exports,y),n.exports}y.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(t,{a:t}),t},y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},y.nc=void 0,e=y(379),t=y.n(e),n=y(795),i=y.n(n),o=y(569),a=y.n(o),r=y(565),s=y.n(r),c=y(216),l=y.n(c),u=y(589),d=y.n(u),p=y(383),(h={}).styleTagTransform=d(),h.setAttributes=s(),h.insert=a().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=l(),t()(p.Z,h),p.Z&&p.Z.locals&&p.Z.locals,m=y(516),function(e,t){var n={uiLang:"en-US",speechLang:"en-US",voiceButton:"#voice-btn",searchBox:{form:"#sf",input:"#yschsp",params:{fr:"",fr2:""}},enable_voice_trending:!1,trending:{market:"en-us"},ui:{speechOverlay:{disableBlur:!1}},browsers:{edge:!1}};function i(o){var a=this;if(a.config=Object.assign(n,o||{}),a.i18n=new i.I18n({lang:a.config.uiLang}),a.renderPermissionGuide(a),a.renderSpeechPanel(a),a.speechResult="",a.noSpeech=!0,a.isRecognitionStart=!1,a.recognition=null,a.voiceButton=t.querySelector(a.config.voiceButton),a.searchBoxForm=t.querySelector(a.config.searchBox.form),a.searchBoxQuery=t.querySelector(a.config.searchBox.input),a.speechPanel=t.querySelector("#spch"),a.speechButtonContainer=t.querySelector("#spchbc"),a.speechButton=t.querySelector("#spchbc-btn"),a.speechText=t.querySelector("#spcht"),a.speechOverlay=t.getElementById("spch-overlay"),a.retryLink=t.querySelector("#spcht-retry"),a.trending=t.getElementById("spch-trending"),a.trendingTerms=t.getElementById("trending-terms"),a.termSpans=t.getElementsByClassName("trending-term"),a.closeButton=t.querySelector("#spchx"),a.startAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-start-202105050733.wav"),a.resultAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-result-202105050733.wav"),a.errorAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-error-202105050733.wav"),a.closeAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-close-202105050733.wav"),a.permissionGuide=t.querySelector("#spchp"),a.permissionGuideClose=t.querySelector("#spchpx"),a.permissionGuideTimer=null,a.onEscKeyDown=function(e){"Escape"===e.code&&(a.recognition.stop(),a.sendBeacon("keybrd","voicesearch_cancel_esc"),a.closePanel(a))},a.isBrowserSupported()){var r=e.SpeechRecognition||e.webkitSpeechRecognition,s=e.SpeechGrammarList||e.webkitSpeechGrammarList;a.recognition=new r;var c=new s;c.addFromString&&c.addFromString("#JSGF V1.0;",1),a.recognition.grammars=c,a.recognition.continuous=!1,a.recognition.lang=a.config.speechLang,a.recognition.interimResults=!1,a.recognition.maxAlternatives=1,a.voiceButton&&(a.voiceButton.onclick=function(){a.recognition.start(),a.permissionGuideTimer&&e.clearTimeout(a.permissionGuideTimer),a.permissionGuideTimer=e.setTimeout((function(){a.isRecognitionStart||a.showPermissionGuide(a)}),300),t.addEventListener("keydown",a.onEscKeyDown),a.sendBeacon("clk","voicesearch")}),a.speechButton&&(a.speechButton.onclick=function(){a.isRecognitionStart?(a.recognition.stop(),a.sendBeacon("clk","voicesearch_panel_mic_close"),a.closePanel(a)):(a.recognition.start(),a.sendBeacon("clk","voicesearch_panel_mic_restart"))}),a.retryLink&&(a.retryLink.onclick=function(){a.isRecognitionStart||(a.recognition.start(),a.sendBeacon("clk","voicesearch_panel_retry"))}),a.speechOverlay&&(a.speechOverlay.onclick=function(){a.recognition.stop(),a.sendBeacon("clk","voicesearch_cancel_outside"),a.closePanel(a)}),a.closeButton&&(a.closeButton.onclick=function(){a.recognition.stop(),a.sendBeacon("clk","voicesearch_cancel"),a.closePanel(a)}),a.permissionGuideClose&&(a.permissionGuideClose.onclick=function(){a.recognition.stop(),a.sendBeacon("clk","voicesearch_permission_close"),a.closeAudio.play(),a.hidePermissionGuide(a)}),a.recognition.onresult=function(t){a.speechResult=t.results[0][0].transcript,a.handlePunctuation(a),a.speechText&&(a.speechText.innerText=a.speechResult),a.searchBoxQuery&&(a.searchBoxQuery.value=a.speechResult),a.resultAudio.play(),e.setTimeout((function(){if(a.speechPanel&&(a.speechPanel.classList.remove("s2tb"),a.speechPanel.classList.add("s2tb-h")),a.hideRetryLink(a),a.searchBoxForm){var e=a.searchBoxForm.querySelector("[name=fr]"),t=a.searchBoxForm.querySelector("[name=fr2]");e&&a.config.searchBox&&a.config.searchBox.params&&a.config.searchBox.params.fr&&(e.value=o.searchBox.params.fr,e.disabled=!1),t&&a.config.searchBox&&a.config.searchBox.params&&a.config.searchBox.params.fr2&&(t.value=o.searchBox.params.fr2,t.disabled=!1),a.searchBoxForm.submit()}}),1e3)},a.recognition.onspeechstart=function(){},a.recognition.onspeechend=function(){a.recognition.stop()},a.recognition.onerror=function(){a.speechText&&(a.speechText.innerText=a.i18n.t("search.voice.recognition_error")),a.hideTrending(a),a.showRetryLink(a),a.errorAudio.play()},a.recognition.onaudiostart=function(){a.speechButtonContainer&&a.speechButtonContainer.classList.add("listening")},a.recognition.onaudioend=function(){a.speechButtonContainer&&a.speechButtonContainer.classList.remove("listening")},a.recognition.onsoundstart=function(){a.hideTrending(a),a.noSpeech=!1,a.speechButtonContainer&&(a.speechButtonContainer.classList.remove("listening"),a.speechButtonContainer.classList.add("speaking"))},a.recognition.onsoundend=function(){a.speechButtonContainer&&a.speechButtonContainer.classList.remove("speaking")},a.recognition.onstart=function(){a.recognitionInit(a),a.startRecognition(a)},a.recognition.onend=function(){a.isRecognitionStart=!1,0==a.noSpeech&&""==a.speechResult&&(a.speechText&&(a.speechText.innerText=a.i18n.t("search.voice.recognition_nomatch")),a.hideTrending(a),a.showRetryLink(a),a.errorAudio.play())},document&&document.dispatchEvent&&document.dispatchEvent(new Event("VOICE_JS_READY"))}}i.I18n=m,i.prototype.renderPermissionGuide=function(e){var t='\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=(new DOMParser).parseFromString(t,"text/html");document.body.appendChild(n.body.children[0])},i.prototype.renderSpeechPanel=function(e){var t='\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

    \n '),n=(new DOMParser).parseFromString(t,"text/html");e&&e.config&&e.config.ui&&e.config.ui.speechOverlay&&e.config.ui.speechOverlay.disableBlur&&n.body.children[0].classList.add("disable-blur-overlay"),document.body.appendChild(n.body.children[0])},i.prototype.isBrowserSupported=function(){for(var t=!1,n=this,i=Boolean(window.chrome),o=/CriOS/.test(window.navigator.userAgent),a=/Edg\//.test(window.navigator.userAgent),r=/Edge\//.test(window.navigator.userAgent),s=Boolean(window.opr),c=Boolean(window.navigator.brave),l=[{checkEnabled:function(){return!0},checkBrowser:function(){return i&&!o&&!a&&!s&&!c},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}},{checkEnabled:function(){return n&&n.config&&n.config.browsers&&n.config.browsers.edge},checkBrowser:function(){return i&&a&&!r},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}}],u=0;u0){var t=e.speechResult.charAt(e.speechResult.length-1);"."!==t&&"?"!==t&&"。"!==t&&"?"!==t||(e.speechResult=e.speechResult.slice(0,-1))}},i.prototype.sendBeacon=function(t,n){var i=e.YAHOO.ULT||{},o=e.YAHOO.SB||{};if(i.beacon_click){var a={_S:o.config.i13n.spaceid,_I:o.config.i13n.pvid,actn:t,sec:"search",slk:n};e.YAHOO.ULT.beacon_click(a)}},i.prototype.ajaxReq=function(n,i){var o,a,r=XMLHttpRequest.DONE||4,s=new XMLHttpRequest;if(t.documentMode&&t.documentMode<10)return(new e.XDomainRequest).onload=function(){try{a=JSON.parse(o),i(a)}catch(e){return}},s.open("GET",n),void s.send();s.onreadystatechange=function(){if(s.readyState===r)if(200===s.status){o=s.responseText;try{a=JSON.parse(o),i(a)}catch(e){return}}else i(a)},s.open("GET",n,!0),s.timeout=1e4,s.send()},e.YAHOO||(e.YAHOO={}),e.YAHOO.Util||(e.YAHOO.Util={}),e.YAHOO.Util.VoiceSearch=i}(window,document)}();var Et={containerClass:yt.tooltip,textClass:yt.tooltip__text,showClass:yt["tooltip--show"]},xt=["zh-hant-tw","zh-hant-hk"];be("ybar-mod-searchbox",(function(e){var t={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(yt["sa-btn-bar"])),voiceSearchBtn:document.getElementById("ybar-sbq-voice"),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(yt["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(yt["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(yt["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x")};!function(e,t){var n,i,o,a=e.getConfig();if(t.ybar&&"desktop"===a.device&&(null===(n=a.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(i=a.bucketConfig)||void 0===i?void 0:i.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",a.bucketConfig.overlay_class),null===(o=t.searchForm)||void 0===o||o.classList.add(yt[a.bucketConfig.overlay_class]);var r=document.createElement("div");r.classList.add(yt.overlay,yt[a.bucketConfig.overlay_class]),document.body.appendChild(r),e.onDestroy((function(){document.body.removeChild(r)})),e.addElementListener(t.searchForm,"focusout",(function(e){if(t.searchForm&&t.searchInput){var n=e.relatedTarget;n&&!t.searchForm.contains(n)&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,t),function(e,t){var n=e.getConfig();"smartphone"===n.device&&("finance"===n.property&&"crunch"===n.ytheme&&e.addElementListener(t.searchInput,"click",(function(){re("search_input_focus_click"),e.addElementListener(t.searchForm,"click",(function(){if(t.ybar){if(t.ybar.classList.contains("ybar-searchbox-assist-fullscreen"))return;t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),t.ybar.classList.add("ybar-searchbox-assist-fadein")}document.documentElement.classList.contains("ybar-overlay")||(document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll"),$("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}))}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){bt(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var i=n,o=i.keyCode,a=i.key,r=gt(65,90),s=y(y([],v(gt(58,57)),!1),v(gt(96,105)),!1),c=y(y([],v(r),!1),v(s),!1).includes(o);(32===o||13===o||c)&&(n.preventDefault(),n.stopPropagation(),bt(e,t,c?a:""))})),t.searchBoxBackButton&&(e.addElementListener(t.searchBoxBackButton,"click",(function(e){e.stopPropagation(),window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&(window.YAHOO.SA.apps[0].view.resetQuery(),window.YAHOO.SA.apps[0].view.hide()),wt(t),$("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation(),27===e.keyCode&&(e.stopPropagation(),wt(t))}))),e.addEventListener("viewerClosed",(function(){wt(t)})),e.onDestroy((function(){wt(t)})))}(e,t),t.voiceSearchBtn&&function(e,t){var n=e.getConfig(),i=n.locale,o=function(){var e,n;(null===(n=null===(e=window.YAHOO)||void 0===e?void 0:e.Util)||void 0===n?void 0:n.VoiceSearch)?new window.YAHOO.Util.VoiceSearch({uiLang:i,speechLang:i,voiceButton:"#ybar-sbq-voice",searchBox:{form:"#ybar-sf",input:"#ybar-sbq",params:{fr:t.voiceSearchBtn.dataset.fr||"yfp-t-voice",fr2:t.voiceSearchBtn.dataset.fr2||"p:fp,m:voice-search"}},ui:{speechOverlay:{disableBlur:xt.includes(i.toLowerCase())}},browsers:{edge:!0},enable_voice_trending:!0,trending:{market:i}}):console.log("YBAR: VoiceJS lib was not loaded")};e.addElementListener(document,"VOICE_JS_READY",(function(){var i,o;t.voiceSearchBtn.style.visibility="visible",t.voiceSearchBtn.style.display="block",new _t(e,t.voiceSearchBtn,h(h({},Et),{label:null!==(i=n.i18n.root.SEARCH_TOOLTIP_VOICE)&&void 0!==i?i:"Search with voice",containerClass:"".concat(yt.tooltip," ").concat(yt.tooltip__voice),tooltipParentElm:null===(o=t.voiceSearchBtn)||void 0===o?void 0:o.parentElement}))})),e.addElementListener(document,"DOMContentLoaded",(function(){var i,o;new _t(e,t.submitSearchBtn,h(h({},Et),{label:null!==(i=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==i?i:"Search the web",containerClass:"".concat(yt.tooltip," ").concat(yt.tooltip__web),tooltipParentElm:null===(o=t.voiceSearchBtn)||void 0===o?void 0:o.parentElement}))})),"loading"===document.readyState?e.addElementListener(document,"DOMContentLoaded",o):o(),window.addEventListener("keyup",(function(e){27===e.keyCode&&t.voiceSearchBtn.blur()}))}(e,h(h({},t),{voiceSearchBtn:t.voiceSearchBtn})),t.searchForm&&(e.addElementListener(t.searchBoxIcon,"mouseover",(function(){t.searchForm.classList.add("".concat(yt["search-input-uh3-hover"]))})),e.addElementListener(t.searchBoxIcon,"mouseout",(function(){t.searchForm.classList.remove("".concat(yt["search-input-uh3-hover"]))})),e.addElementListener(t.buttonBar,"mouseover",(function(){t.searchForm.classList.add("".concat(yt["search-input-uh3-hover"]))})),e.addElementListener(t.buttonBar,"mouseout",(function(){t.searchForm.classList.remove("".concat(yt["search-input-uh3-hover"]))})),e.addElementListener(t.searchInput,"keyup",(function(e){"Tab"===e.key&&t.searchForm.classList.add("".concat(yt["search-input-uh3-focus-visible"])),t.searchInput.classList.toggle("".concat(yt.empty),""===t.searchInput.value)})),e.addElementListener(t.searchInput,"keydown",(function(){t.searchForm.classList.remove("".concat(yt["search-input-uh3-focus-visible"]))})),e.addElementListener(t.searchInput,"focusout",(function(){t.searchForm.classList.remove("".concat(yt["search-input-uh3-focus-visible"]))})),e.addElementListener(t.submitSearchBtn,"click",(function(e){""===t.searchInput.value.trim()&&e.preventDefault()})),e.addElementListener(t.clearSearchBtn,"click",(function(){t.searchInput.classList.add("".concat(yt.empty))})))})),function(){var e,t,n,i,o,a,r=window,s=document,c=(r=(function(e,t){var n,i="load",o=!1,a="Microsoft Internet Explorer"===e.navigator.appName&&(n=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e.navigator.userAgent))&&n[1]&&parseFloat(n[1]);function r(e,t){var n=[];return s(t,(function(e,t){n.push(encodeURIComponent(e)+"="+encodeURIComponent(t))})),0\&]/gim,(function(e){return""+e.charCodeAt(0)+";"}))},afterOnload:function(t){if(v())return t();var n=function(t,n){o=!0,h(e,i,n),t()}.bind(e,t,n);p(e,i,n)},getWinLoaded:v,getDOMContentLoaded:function(){return"interactive"===t.readyState||"complete"===t.readyState||"loaded"===t.readyState},ae:p,de:h,ts:function(){return Math.round((new Date).getTime()/1e3)},bold:function(e,t,n,i){if(i=i||{},t.toLowerCase()==n.toLowerCase())return e.replace(/\{s\}/g,t);var o;if(!(n=n.split(/[\s|,]+/).filter((function(e){return""!==e}))).length)return t;i.ignorePunctuation&&(o=/[~`!@#$%^&*()_\-+={[}\]|\\:;"'<,>.?/]/g,n=n.concat(n.filter((function(e){return o.test(e)})).map((function(e){return e.replace(o,"")}))));n="(&[^;\\s]*)?(%needles)".replace("%needles",n.sort((function(e,t){return t.length-e.length})).map((function(e){return e=m(e),i.v2&&/^\d+$/.test(e)?"(^|\\D)("+e+")":e})).join("|"));var a=i.v2?function(t,n,i,o,a,r,s){return n&&!/\s/.test(i)?t:a&&s?o+e.replace(/\{s\}/g,a):e.replace(/\{s\}/g,i)}:function(t,n,i){return n&&!/\s/.test(i)?t:e.replace(/\{s\}/g,i)};return t.replace(new RegExp(n,"gi"),a)},fireEvent:function(n,i,o){var a;"function"==typeof e.CustomEvent?(a=new e.CustomEvent(i,{detail:o}),n.dispatchEvent(a)):"function"==typeof t.createEvent?((a=t.createEvent("CustomEvent")).initCustomEvent(i,!1,!1,o),n.dispatchEvent(a)):"function"==typeof t.attachEvent&&(document.documentElement[i]=o)},getScrollingEle:function(){return document.scrollingElement||document.documentElement},sendViewBeacon:function(t,n){var i;e.YAHOO.SB.config.i13n&&(i=e.YAHOO.SB.config.i13n,n=n?"b":"p",t.s||(t._S?t.s=t._S:i.spaceid&&(t.s=i.spaceid)),delete t._S,!t.mtestid&&i.mtestid&&(t.mtestid=i.mtestid),t.t=t.t||+(new Date).getTime(),(new Image).src=r("https://"+e.YAHOO.SB.config.beacon_host+"/"+n,t))},properties:s,has:c,debug:function(t){this.config.debug&&e.console&&e.console.log&&e.console.log(t)}},e.YAHOO.NBClass=e.YAHOO.SBClass=y,e.YAHOO.NB=e.YAHOO.SB=new y}(r,s),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null==this)throw new TypeError(" this is null or not defined");var o,a=Object(this),r=a.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1>>0;if("function"!=typeof e)throw new TypeError;for(var i,o=[],a=2<=arguments.length?arguments[1]:void 0,r=0;r>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1this.length)&&-1!==this.indexOf(e,t)}),window),s=document,r.YAHOO),l=c.NB,u={},d="before_get_assist",p="before_display_data",h="before_init_view",m="after_init_view",f="before_parse_data",v="before_update_assist",y="after_update_list",g="after_create_item",b="before_show_sa",w="after_reset_view",_="before_hide_view",E="after_hide_view",x="after_expanded",C="after_init_controller",L="click_assist",k="before_query_assist",S="before_key_submit",A="before_button_submit",T="before_submit_query",I="before_sb_focus",N="after_sb_focus",O="before_sb_blur",M="after_sb_blur",B="before_beacon",R="after_set_ylc",P="after_reset_controller",q="after_item_highlight",D="after_item_reset_highlight";function H(e,t){var n,i;for(i in t=(e=e||{}).tag||t||"div",n=s.createElement(t),e.css&&(n.className=e.css),e.text&&(n.textContent=e.text),e.attrs)l.set(n,i,e.attrs[i]);for(i in e.style)n.style[i]=e.style[i];return e.wrap?((t=H(e.wrap)).appendChild(n),t):(t=l.cleanHTML(n,!0))?t[0]:null}function U(e){this.config=e||{},this.listeners={},this.cb={}}function F(){}function Y(){}function j(){}function z(){var e=this.app.view.elems,t=e.sbClear;t&&(0{0}'}}function le(e){var t=0,n=0,i=0,o=e.r;if(0<(e=o.length)){for(var a=e-1;0<=a;a--)75==o[a].m&&o[a].fd?(t=a,n++):76==o[a].m&&i++;0'+o.contentRating+"":"",e.li.innerHTML+=a.app.format(r.s_tmpl,[n,i,o]),a.whatToWatch.push(e)):t.k&&r.insertPos&&r.insertPos>=a.currentPos&&(r.insertPos==a.currentPos&&(a.beforeNode=e.li),a.currentPos=a.currentPos+1)}function de(e){var t,n,i=this,o=i.whatToWatch,a=o.length,r=i.config,s=i.createElem;if(0=r.item.count&&(u.className+=" hide"),u.appendChild(o[l].li),c.appendChild(u)}t.appendChild(c),e.insertBefore(t,i.beforeNode)}i.whatToWatch=[],i.beforeNode=null,i.currentPos=0}function pe(){this.config={ctn:{css:"sa-wtw-ctn"},hd:{css:"sa-wtw-hd",text:"What to watch"},ul:{css:"sa-wtw-list"},itemClass:{css:"sa-wtw-item"},item:{count:6},s_tmpl:'

    {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{0} · {1}{2}',fd_tmpl:'{0}{3} ({4})',icon:"sa-stk-icon",down:{css:"sa-stk-down"},up:{css:"sa-stk-up"},zero:{css:"sa-stk-zero"}}}function we(e){var t=this.config,n=e.m;e=e.fd;if(48==n&&e&&!e.subtitle){n=e.t_logo;var i,o,a,r,s,c,l,u=e.t_abbr||e.team,d=e.ot_logo,p=e.ot_abbr||e.oteam,h=e.team_points,m=e.opp_points,f=e.period&&"• Q"+e.period,v=e.timeleft,y=e.gametime&&new Date(1e3*e.gametime),g=e.live,b=e.game_cnt,w=b&&1 • '+i+" "+e.period),e.time_elapsed_display&&(f=e.is_halftime&&"true"==e.is_halftime?'Halftime':''+e.time_elapsed_display),e.qtype&&"lg"==e.qtype)if(t.enableNewLeagueTmpl)try{g?(o=v&&''+v+"",a=''+t.liveIconText+"",e.title=E(t.league_l_tmpl,[u,n,h,m,d,p,f,o,a])):_?(r=y.toLocaleString([],{day:"numeric",month:"short",timeZone:e.tz}),s='',c=''+r+"",e.title=E(t.league_f_tmpl,[u,n,h,m,d,p,s+c])):(r=y.toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",timeZoneName:"short",timeZone:e.tz}),s=u.length+p.length+r.length+t.sepThreshold>t.maxLen?"":'',c=''+r+"",l=b&&1'+w+"":"",e.title=E(t.league_n_tmpl,[u,n,d,p,s+c+l]))}catch(e){}else e.title=E(t.league_tmpl,[u,p,y.toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",timeZoneName:"short",timeZone:e.tz})]);else{try{e.title=g?E(t.l_tmpl,[h,m,p,f,v])+''+t.liveIconText+"":_?E(t.f_tmpl,[h,m,p,y.toLocaleString([],{day:"numeric",month:"short",timeZone:e.tz})]):E(t.n_tmpl,[p,y.toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",timeZoneName:"short",timeZone:e.tz})])}catch(e){}n&&(e.imageUrl=n)}}}function _e(e,t){var n=this.config,i=t.m;t=t.fd,e=e.li;n.enableNewLeagueTmpl&&48==i&&t&&t.qtype&&"lg"==t.qtype&&(e.className+=" league")}function Ee(){this.config={enableNewLeagueTmpl:!1,n_tmpl:"vs. {0} {1}",l_tmpl:"{0} - {1} vs. {2} {3} {4}",f_tmpl:"{0} - {1} vs. {2} {3}",league_tmpl:"{0} vs. {1} {2}",league_n_tmpl:'{0}Cryptocurrency | Yahoo - Latest News & Headlines (3)vsCryptocurrency | Yahoo - Latest News & Headlines (4){3}{4}',league_l_tmpl:'{0}Cryptocurrency | Yahoo - Latest News & Headlines (5){2} vs {3}Cryptocurrency | Yahoo - Latest News & Headlines (6){5}{6} {7} {8}',league_f_tmpl:'{0}Cryptocurrency | Yahoo - Latest News & Headlines (7){2} vs {3}Cryptocurrency | Yahoo - Latest News & Headlines (8){5}{6}',liveIconClass:"sa-ico-live",liveIconText:"",maxLen:60,sepThreshold:10}}function xe(e){var t,n,i,o,a,r,s,c=this.config,l=e.m;e=e.fd;41==l&&e&&!e.subtitle&&(l=e.img_url||"",t=''+e.condition+"",n=e.degree,i=e.high_temp&&' H:'+e.high_temp+"°",o=e.low_temp&&"L:"+e.low_temp+"°",a=e.loc&&' '+e.loc,r=e.warning?'':"",s=this.app.format,c.enableHL?e.title=s(c.tmpl_hl,[l,n,r,t,i,o,a]):e.title=s(c.tmpl,[l,n,t,a]))}function Ce(e,t){var n=this.config,i=t.m,o=t.fd&&t.fd.img_url;41==i&&n.enableThumb&&o&&(t.fd.imageUrl=o)}function Le(){this.config={enableHL:!1,enableThumb:!1,tmpl:'Cryptocurrency | Yahoo - Latest News & Headlines (9){1} {2} {3}',tmpl_hl:'Cryptocurrency | Yahoo - Latest News & Headlines (10){1} {2} {3} {4} {5} {6}'}}function ke(e){var t,n,i,o=this.config,a=e.m,r=e.d,s=(e=e.fd)&&e.show_subtitle?e.show_subtitle:0;27==a&&e&&!s&&(r&&"movie"==r.subdn?(n=e.year||"",a=e.genre&&e.genre[0]?e.genre[0]+" "+o.text.movie:o.text.movie,s=e.releaseDate?new Date(e.releaseDate):"",t=new Date,s&&t{1}{3}{4}{5}',label:{C:"Cancelled",S:"Scheduled",A0:"Delayed",A1:"Ontime",L0:"Arrived Late",L1:"Arrived"},descPrefix:{S:"Scheduled departure at",A:"Estimated arrival at",L:"Arrived at"}}}function Oe(e){var t=this.config,n=this.app.format,i=e.idx,o=e.m;e=e.fd;t.enabled&&53===o&&e&&0===i&&"1.00"===e.num&&(e.title=n(t.titleTpl,[e.fromUnit,e.title]))}function Me(e,t){var n=this.config,i=t.idx,o=t.m;t=t.fd;n.enabled&&53===o&&0===i&&t&&(e.li.classList.add("sa-currency"),"1.00"!==t.num)&&e.li.classList.add("sa-currency-plural")}function Be(){this.config={titleTpl:"1 {0} = {1}"}}function Re(e){var t=this.config,n=this.app.format,i=e.m;e=e.fd;t.enabled&&54===i&&e&&(i=e.resultUnitAbbr||e.resultUnit,e.title=n(t.titleTpl,[e.num,i]))}function Pe(e,t){var n=this.config,i=t.idx,o=t.m;t=t.fd;n.enabled&&54===o&&0===i&&t&&e.li.classList.add("sa-unitconv")}function qe(){this.config={titleTpl:"{0} {1}"}}function De(e){var t=e.m,n=e.fd;if(79==t&&n){var i=n.answeredby;if(i&&0<(t=i.length)){for(var o=i[0],a=n.answer_count,r="Answered by ",s=l.htmlEncode,c="",u=Math.min(t,3)-1;0<=u;u--){var d=i[u].imgurl;d&&(c+='Cryptocurrency | Yahoo - Latest News & Headlines (11)')}c&&(r+=''+c+""),r+=(c?" ":"")+l.bold(this.app.config.boldTag,s(o.name),s(e.q)),a&&1Manage history'},log:{sec:"search",slk:"clear history",rspns:"upd",t2:"search",t4:"clear history"}}}function $e(){function e(e){e.keyCode&&27!==e.keyCode&&13!=e.keyCode||(l.stopPropagation(e),a.value="",l.setFocus(a),i.show(),n.control.beacon("tapClr",r,t.config.log))}var t=this,n=t.app,i=n.view,o=i.elems,a=o.sbInput,r=o.sbClear;r&&(l.ae(r,"click",e),l.ae(r,"keydown",e))}function et(){this.config={log:{_r:2,actn:"clk",pos:1,sec:"search",slk:"clearsearch",t1:"hdr",t2:"search",t3:"clear",t4:"clearsearch"}}}c.SA=(t=[],U.prototype={jsonp:function(e){var t=s.getElementsByTagName("head")[0],n=s.createElement("script");l.set(n,"type","text/javascript"),l.set(n,"src",e),t.appendChild(n),l.ae(n,"load",(function(){t.removeChild(n)}))},xhr:function(e,t){var n=new XMLHttpRequest;n.open("GET",e),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.onreadystatechange=function(){var e=n.status;(4==n.readyState&&200<=e&&e<300||304===e||1223===e)&&t(JSON.parse(n.response))},n.send(null)},createElem:H,getElemStyleValue:function(e,t){return r.getComputedStyle?r.getComputedStyle(e).getPropertyValue(t):e.currentStyle?(t=t.replace(/\-([a-z]){1}/g,(function(e,t){return t.toUpperCase()})),e.currentStyle[t]):""},format:function(e,t){if(e)return e.replace(/{(\d+)}/g,(function(e,n){return t&&void 0!==t[n]?t[n]:""})).trim()},on:function(e,t,n){var i;e&&t&&((i=this.listeners)[e]||(i[e]=[]),i[e].push({thisArg:n||this,fn:t}))},notify:function(e,t){var n=this.listeners;if(!n[e])return!1;n[e].forEach((function(e){var n=e.thisArg;(e=e.fn)&&e.apply&&1!=n.config.disable&&e.apply(n,t||[])}))},init:function(t){var n,i,o,a,r=this,s=r.config,c=s.plugins={};for(a in r.view=n=new e.viewClass,r.model=i=new e.modelClass,r.control=o=new e.controlClass,u){var d=new u[a];c[a]=d.config=d.config||{},d.createElem=H,d.init(r)}"object"==typeof t&&l.merge(s,t),r.ready=n.init(r)&&i.init(r)&&o.init(r)}},n=U,e={ver:"assistjs-v1.0.275-ybar",apps:t,plugs:u,add:function(e,t){u[e]=t},msg:{BEFORE_GET_ASSIST:d,BEFORE_DISPLAY_DATA:p,BEFORE_INIT_VIEW:h,AFTER_INIT_VIEW:m,BEFORE_PARSE_DATA:f,BEFORE_UPDATE_ASSIST:v,AFTER_UPDATE_LIST:y,AFTER_CREATE_ITEM:g,BEFORE_SHOW_SA:b,AFTER_RESET_VIEW:w,BEFORE_HIDE_VIEW:_,AFTER_HIDE_VIEW:E,AFTER_EXPANDED:x,AFTER_INIT_CONTROLLER:C,CLICK_ASSIST:L,BEFORE_QUERY_ASSIST:k,BEFORE_KEY_SUBMIT:S,BEFORE_BUTTON_SUBMIT:A,BEFORE_SUBMIT_QUERY:T,BEFORE_SB_FOCUS:I,AFTER_SB_FOCUS:N,BEFORE_SB_BLUR:O,AFTER_SB_BLUR:M,BEFORE_BEACON:B,AFTER_SET_YLC:R,AFTER_RESET_CONTROLLER:P,AFTER_ITEM_HIGHLIGHT:q,AFTER_ITEM_RESET_HIGHLIGHT:D},markers:{GOSSIP_MARKER_SEARCH_HISTORY:13,GOSSIP_MARKER_TRENDING:9,GOSSIP_MARKER_ENTERTAINMENTS:27,GOSSIP_MARKER_COMPANY:30,GOSSIP_MARKER_FLIGHT:32,GOSSIP_MARKER_WEATHER:41,GOSSIP_MARKER_PEOPLE_ALSO_SEARCH_FOR:42,GOSSIP_MARKER_CURRENCYCONV:53,GOSSIP_MARKER_UNITCONV:54,GOSSIP_MARKER_PEOPLE_ALSO_ASK:72,GOSSIP_MARKER_FINANCE:46,GOSSIP_MARKER_SPORTS:48,GOSSIP_MARKER_RELATED_STOCKS:73,GOSSIP_MARKER_WHAT_TO_WATCH:75,GOSSIP_MARKER_SHOPPING_REFINEMENT:76,GOSSIP_MARKER_ANSWERS:79},init:function(e){var i,o=l.ieVer;return!(o&&o<8||((i=new n(this.initConfig?this.initConfig():{})).init(e),!i.ready))&&(i.config.customEvent&&8===o&&(s.documentElement.assistSelection=null),i.idx=t.length,t.push(i),void(!this.latency&&r.performance&&"function"==typeof r.performance.now&&(this.latency=r.performance.now())))}}),e.controlClass=(i="ylcAssist",o="ylcKey",a="ylcBtn",F.prototype={init:function(e){function t(e){g.pqstr="",g.pqstrl=0,g.pos=0;var t=h.sbForm.fr2,n=h.sbInput.value,r=u.data;switch(g.query=encodeURIComponent(n),g.qstrl=n.length,g.t_stmp=l.ts(),g.gprid=r.l&&r.l.gprid?r.l.gprid:"",g.n_sugg=r.r?r.r.length:0,t&&(g.fr2=t.value),d.assistItem&&(g.pos=d.assistItem.idx+1),e){case i:var s=d.lastInput;l.merge(g,p[i]),g.pqstr=s,g.pqstrl=s.length;break;case o:l.merge(g,p[o]);break;default:l.merge(g,p[a])}q(R),E.lastActn=g.t4}function n(e){var t=h.sbInput.value,n=d.assistItem,i=n&&n.data||{},o=i.d||{};o=(i=i.fd||{}).navUrl||"games"===o.dn&&i.url;if(!(t=h.mustHaveInput?h.mustHaveInput.value:t)||""===t||void 0!==t.trim&&""===t.trim())return!1;q(T),o&&(f.action=o),e?l.fireEvent(m,e,{data:n}):f.submit(),setTimeout((function(){c()}),400)}function c(){m.blur(),d.reset(),q(P)}var u,d,p,h,m,f,v,y,g,b,w,_,E=this,x=l.ieVer,B=!1,q=function(t,n){e.notify(t,n)};return E.model=u=e.model,E.view=d=e.view,E.config=p=e.config,E.customEvent=y=p.customEvent||{},E.setYlc=t,E.emit=q,E.submitForm=n,E.lastActn="",E.ylc=g={},l.merge(g,p.ylc),h=d.elems,m=h.sbInput,f=h.sbForm,v=h.sbSubmit,(!x||9<=x)&&l.ae(m,"input",(function(){d.show()})),l.ae(m,"focus",(function(e){q(I),p.sbScrollTop&&(s.body.scrollTop=0),q(N)})),l.ae(m,"blur",(function(e){e.relatedTarget&&f.contains&&f.contains(e.relatedTarget)||(q(O),q(M))})),l.ae(m,"click",(function(){d.triggered||d.show()})),l.ae(m,"keydown",(function(e){switch(E.lastActn="key_"+e.keyCode,e.keyCode){case 13:e.preventDefault(),q(S),t(o),n(y.customKeyBoard);break;case 27:m.blur(),d.hide(),l.stopPropagation(e)}})),v?l.ae(v,"click",(function(e){e.preventDefault(),q(A),t(a),n(y.customBtn)})):l.ae(f,"submit",(function(){q(A),t(a),q(T),setTimeout((function(){c()}),400)})),"ontouchstart"in r&&(_=function(e,t){return(/touch/.test(e.type)?(e.originalEvent||e).changedTouches[0]:e)["page"+t]},l.ae(s,"touchstart",(function(e){d.shown&&(b=_(e,"X"),w=_(e,"Y"))})),l.ae(s,"touchend",(function(e){d.shown&&(5<=Math.abs(_(e,"X")-b)||5<=Math.abs(_(e,"Y")-w))&&e.preventDefault()}))),l.ae(s,"click",(function(e){if(d.shown){for(var o=e.target||e.srcElement,a=!1;o;){if(o===f||o===h.saTray)return;var r=(r=l.get(o,"pos"))?d.items[r]:{};if(q(L,[function(){a=!0},o,r]),a)return;if(o===r.li)return m.value=r.data.k,d.assistItem=r,q(k),t(i),void n(y.customSelection);if((o=o.parentNode)===s)break}p.hideOnOutsideClick&&d.hide()}})),l.ae(r,"resize",(function(){B||(d.updateRows(),B=!0,setTimeout((function(){B=!1}),p.resizeDelay||50))})),q(C),!0},submitFormByIndex:function(e,t){var n=this,o=(t=t||"",n.view),a=o.elems.sbInput;item=o.items[e],customEvent=n.customEvent,item&&(a.value=item.data.k,o.assistItem=item,n.emit(k,[t]),n.setYlc(i),n.submitForm(customEvent.customSelection))},beacon:function(e,t,n){var i,o,a,r;n&&(i=(r=this).customEvent,o=r.config,r.model.app.notify(B,[n]),a="sa_rt"in n?{rt:n.sa_rt,q:n.cqry,la:r.lastActn,n:n.nitems,s:n._S}:{},r.lastActn=n.t4,i[e]?l.fireEvent(t,i[e],n):c.ULT?(t=(r=c.ULT).BEACON,o.saBeacon&&(r.BEACON=location.protocol+"//"+l.buildUrl(o.saBeacon,a)),r.beacon_click(n),r.BEACON=t):"function"==typeof c.SaBeacon&&c.SaBeacon(n))}},F),e.modelClass=(Y.prototype={init:function(e){var t=this;return t.app=e,t.view=e.view,t.config=e.config,t.cbIdx=0,t.data={},!0},fetch:function(){var e=this,t=e.app,n="sacb"+e.cbIdx++,i={pq:(i=e.view).origQuery,command:i.elems.sbInput.value,t_stmp:l.ts()},o=e.config.saBE,a=t.cb;if(e.config.xhr||(i.callback="YAHOO.SA.apps["+t.idx+"].cb."+n),l.merge(i,o.params),!(i.nresults<=0)){if(!e.config.xhr){for(var r in a)a.hasOwnProperty(r)&&(a[r]=function(){});a[n]=function(t){e.read(t||{}),a[n]=function(){}}}t.notify(d,[i]),e.getAssist(o,i)}},getAssistFromUrl:function(e,t){var n=this;n.config.xhr?n.app.xhr(e,(function(e){t.command==(e=e||{}).q&&n.read(e||{})})):n.app.jsonp(e)},getAssist:function(e,t){this.getAssistFromUrl(e.host+l.buildUrl(e.base,t),t)},read:function(e){this.data=e,this.display()},removeAt:function(e){this.data.r.splice(e,1),this.display()},removeItems:function(e){for(var t=this.data,n=t.r.length-1;0<=n;n--)t.r[n].m==e&&t.r.splice(n,1);this.display()},display:function(){var e=this.data;this.app.notify(p,[e]),this.view.dropdown(e)}},Y),e.viewClass=(j.prototype={init:function(e){var t,n,i,o,a,c,u=this,d=(u.app=e,u.model=e.model,u.config=t=e.config,u.elems=n={},u.items=[],u.assistItem=null,e.notify(h),t.elems);for(c in d)n[c]||(n[c]=s.getElementById(d[c]));return i=n.sbInput,a=n.saTray,!!((o=n.sbForm)&&i&&a)&&(u.origQuery=u.lastInput=i.value,l.set(i,"role","combobox"),l.set(i,"aria-autocomplete","both"),l.set(i,"aria-expanded","false"),u.origAction=o.action,(!(a=i.autofocus)&&t.autofocus||a&&i.value.length)&&l.setFocus(i),"TEXTAREA"===i.tagName&&(u.useTextArea=!0),e.notify(m),l.ae(r,"load",(function(){s.body.dir&&"rtl"==s.body.dir&&(t.saAria.style.left="",t.saAria.style.right="-9999px"),n.saAria=s.body.appendChild(e.createElem(t.saAria,"div"))})),!0)},dropdown:function(e){var t,n=this,i=n.config,o=n.app,a=e&&e.r?e.r.length:0,r=s.body,c=(t=n.elems).sbInput,u=t.saAria,d=t.saTray,p=((t=t.sbForm)||{}).parentElement,h=n.app.createElem,m=i.noQueryClass,g=i.typingClass,b=i.noResultClass,w=h(i.sa,"div"),_=h(i.saList,"ul");if(i.restoreScrollPosition&&!n.shown&&(n.previousScrollY=window.scrollY),l.addClass([r,p],g),""==e.q?i.addNoQueryClsToBody?l.addClass(r,m):l.addClass(d,m):l.removeClass([d,r],m),n.shown=!0,n.clearAssist(),a){w.appendChild(_),o.notify(f,[e]);for(var E=0;E
    "+a+" "+n.config.saAria.shownText+""),o.notify(x)},show:function(){var e=this,t=e.config,n=e.elems.sbInput.value,i=n.length;e.updateRows(),e.app.notify(b),e.shown&&e.sameQuery()||(e.lastInput=n,it.maxInput?e.hide():(e.model.fetch(),e.triggered=!0))},hide:function(){var e=this,t=(i=e.elems).sbInput,n=i.saAria,i=i.sbForm,o=e.config,a=e.app;a.notify(_),l.removeClass(s.body,o.typingClass),i&&i.parentElement&&l.removeClass(i.parentElement,o.typingClass),l.removeClass(i,o.noResultClass),e.clearAssist(),e.shown=!1,e.triggered=!1,o.restoreScrollPosition&&window.scroll({top:e.previousScrollY}),t&&(l.set(t,"aria-expanded","false"),e.useTextArea)&&l.set(t,"rows","1"),n&&(l.set(n,"aria-expanded","false"),n.innerHTML="

    "+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;o40?(S.style.setProperty(k,"40px"),S.style.setProperty(L,i+"px")):(S.style.setProperty(k,"0px"),S.style.setProperty(L,"40px")),C.addClass(t,g),C.removeClass(t,b)}else S.style.setProperty(k,"0px"),S.style.setProperty(L,"0px")})),e.on("before_hide_view",(function(){var t=e.view.elems.sbForm;C.addClass(t,b),C.removeClass(t,g)}))}},x.add("yba-saPCAnim",_);var A=x.viewClass;C.extend(E,A),E.prototype.clearAssist=function(){var e=this,t=e.config;C.hasClass(document.body,t.typingClass)?A.prototype.clearAssist.call(e):setTimeout((function(){A.prototype.clearAssist.call(e)}),200)},x.viewClass=E}var T=function(e){var t,n,i;return r&&e&&(t=13===e.data.m?"history":9===e.data.m?w:"sa",n=9===e.data.m?"".concat("tn"===w?"organic":"none"):"none",0==e.idx&&e.data.m&&-1!==[27,32,41,44,46,48,53,54].indexOf(e.data.m)&&(i=e.data.m)),{category:t,keyword:n,marker:i}},I=function(e){var n,a,r=!!document.querySelector(".modal-open"),s=null===(n=e.detail)||void 0===n?void 0:n.data,c=1,l=!1;if(p&&""!==p.value.trim()){"enterKeyPressed"===e.type?s&&s.idx>=0?(a="srch-asst",l=!0,c=s.idx+1):a="kybrd":a="botSearchClicked"===e.type?"sitesrch":"icon";var u=T(s),d=u.category,h=u.keyword;qt(t,o,l,d,h),(r||l)&&("homepage"===i||"my"===i?(Pt(t,r,l,d),Dt(t,l,d)):"smartphone"===o&&Dt(t,l,d)),B(Ht(a,"0",c.toString()))}},N=function(e){var n,a=!!document.querySelector(".modal-open"),r=null===(n=e.detail)||void 0===n?void 0:n.data,s=!0,c=(r&&r.idx||0)+1,l=T(r),u=l.category,d=l.keyword,p=l.marker;qt(t,o,s,u,d,p),"homepage"===i||"my"===i?(Pt(t,a,s,u),Dt(t,s,u)):"smartphone"===o&&Dt(t,s,u),B(Ht("srch-asst","0",c.toString(),r&&r.data.m))},O=function(e){if("function"==typeof n.beaconClick&&9!==e.keyCode&&13!==e.keyCode&&1===y&&"smartphone"!==o){n.saveCurrentTimerValue("search_input_keyboard_input");var t=Ht("keystroke","1");delete t.clickParams.tar,"answers"===i&&(t.slk="inpt-fcs",t.clickParams.elm="inpt",t.clickParams.elmt="srch-keystroke"),y++,n.beaconClick(t.sec,t.slk,t.pValue,t.clickParams)}};window.visualViewport&&"smartphone"===o&&window.visualViewport.addEventListener("resize",(function(){var e;document.querySelector(":root").style.setProperty("--yb-visual-viewport-height",(null===(e=window.visualViewport)||void 0===e?void 0:e.height)+"px")}));var M=function(){n.saveCurrentTimerValue("search_input_focus_click"),"smartphone"===o&&t.addEventListener("click",(function(){if(e){if(e.classList.contains("ybar-searchbox-assist-fullscreen"))return;e.classList.add("ybar-searchbox-assist-fullscreen"),e.classList.add("ybar-searchbox-assist-fadein")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");"function"==typeof n.beaconClick&&n.beaconClick("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))},B=function(e){if("function"==typeof n.beaconClick){n.saveCurrentTimerValue("search_query_submit");var i={pp:{A_utm:n.getPerformanceI13nObject()}};!function(e,t,n){var i=e.getAttribute("action")||"",o=-1!==i.search("/play/"),a=-1!==i.search("/tag/"),r=-1!==i.search("/category/"),s=i.match(/^(.*)\/([^/]+)$/);(o||r||a)&&(t.slk="gamesrch",n.tar=window.location.host.replace(/^www\./i,""),n.tar_uri=null==s?void 0:s[1],n.ll2=null==s?void 0:s[2],n.ct=o?"game":"nav_link")}(t,e,e.clickParams),n.beaconClick(e.sec,e.slk,e.pValue,e.clickParams,void 0,(function(){setTimeout((function(){t&&(t.submit(),Ut(t))}),300)}),i)}else t&&(t.submit(),Ut(t))},R=function(n){var i=n.animationName;i==St.safadein?e&&e.classList.remove("ybar-searchbox-assist-fadein"):i==St.sacollapse&&t.classList.remove(b)};function P(){this.config={botSearch:{action:h,text:f||""},suggestionTitle:{text:m||""}}}function q(e){var t=this.config,n=this.app.view,i=n.elems.sbForm,o=n.elems.sbInput.value,a=function(e,t){if(t){var n=document.createElement("div");n.className=e["suggestion-title"];var i=document.createElement("span"),o=document.createElement("span");return o.textContent=t,i.appendChild(o),n.appendChild(i),n}}(St,t.suggestionTitle.text),r=function(e,t,n){var i=document.createElement("div");i.className=n["bot-search-item"];var o=document.createElement("div"),a=document.createElement("div");o.className=n["bot-search-item-col"],a.className=n["bot-search-item-col"];var r=document.createElement("div");r.className=n["bot-search-icon-container"];var s=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("width","20"),s.setAttribute("height","20"),s.setAttribute("viewBox","0 0 24 24"),s.classList.add(n["bot-search-icon"]),c.setAttribute("d","M3.7634,15.837 L6.1814,15.837 C6.5214,17.45 7.0614,18.891 7.7584,20.045 C6.0094,19.118 4.6024,17.637 3.7634,15.837 L3.7634,15.837 Z M2.9144,12.008 C2.9144,11.351 2.9844,10.711 3.1164,10.094 L5.8884,10.094 C5.8264,10.717 5.7864,11.354 5.7864,12.008 C5.7864,12.663 5.8264,13.299 5.8884,13.922 L3.1164,13.922 C2.9844,13.305 2.9144,12.665 2.9144,12.008 L2.9144,12.008 Z M7.7584,3.971 C7.0614,5.125 6.5214,6.566 6.1814,8.179 L3.7634,8.179 C4.6024,6.379 6.0094,4.898 7.7584,3.971 L7.7584,3.971 Z M11.0504,3.142 L11.0504,8.179 L8.1054,8.179 C8.6604,5.664 9.7414,3.771 11.0504,3.142 L11.0504,3.142 Z M12.9654,3.142 C14.2754,3.771 15.3564,5.664 15.9114,8.179 L12.9654,8.179 L12.9654,3.142 Z M20.2524,8.179 L17.8344,8.179 C17.4954,6.566 16.9544,5.126 16.2574,3.971 C18.0064,4.898 19.4144,6.379 20.2524,8.179 L20.2524,8.179 Z M11.0504,20.875 C9.7414,20.245 8.6594,18.352 8.1054,15.837 L10.1354,15.837 C10.2104,15.161 10.3914,14.519 10.6584,13.922 L7.7984,13.922 C7.7354,13.305 7.7004,12.665 7.7004,12.008 C7.7004,11.351 7.7354,10.711 7.7984,10.094 L11.0504,10.094 L11.0504,13.184 C11.5394,12.388 12.1904,11.702 12.9654,11.183 L12.9654,10.094 L20.8994,10.094 C21.0284,10.697 21.0964,11.323 21.0994,11.964 L21.0994,11.964 L21.0994,12.661 C21.0994,13.19 21.5284,13.618 22.0574,13.618 L22.0584,13.618 C22.5874,13.618 23.0164,13.19 23.0164,12.661 L23.0164,11.965 L23.0144,11.965 C22.9904,5.662 17.6704,0.608 11.2724,1.024 C5.8994,1.373 1.4994,5.676 1.0414,11.04 C0.5134,17.228 5.1074,22.463 11.0504,22.975 C11.1664,22.985 11.3274,22.993 11.4844,22.999 C11.8104,23.012 12.1194,22.85 12.2904,22.572 L12.2924,22.569 C12.5734,22.113 12.3964,21.514 11.9124,21.284 L11.0504,20.875 Z M15.9434,18.874 C14.6054,18.874 13.5214,17.79 13.5214,16.452 C13.5214,15.115 14.6054,14.03 15.9434,14.03 C17.2804,14.03 18.3654,15.115 18.3654,16.452 C18.3654,17.79 17.2804,18.874 15.9434,18.874 M21.6354,20.908 L19.4524,18.725 C19.8774,18.07 20.1264,17.291 20.1264,16.452 C20.1264,14.145 18.2584,12.274 15.9514,12.269 L15.9354,12.269 C13.6284,12.274 11.7604,14.145 11.7604,16.452 C11.7604,18.763 13.6324,20.635 15.9434,20.635 C16.7814,20.635 17.5614,20.386 18.2154,19.961 L20.3984,22.144 C20.7404,22.486 21.2934,22.486 21.6354,22.144 C21.9774,21.803 21.9774,21.249 21.6354,20.908"),s.appendChild(c),r.appendChild(s),o.appendChild(r);var l=document.createElement("span"),u=document.createElement("span");u.className=n["bot-search-span"];var d=document.createElement("span"),p=e.split("{query}");return l.textContent=p[0]||"",u.textContent=t,d.textContent=p[1]||"",a.appendChild(l),a.appendChild(u),a.appendChild(d),i.appendChild(o),i.appendChild(a),i}(t.botSearch.text,o,St);r&&(e&&a&&(e.prepend(a),e.appendChild(r)),r.addEventListener("click",(function(){t.botSearch.action&&(i.action=t.botSearch.action),n.hide(),I(new CustomEvent("botSearchClicked"))})))}function D(){this.config={}}function H(){""===this.app.view.lastInput&&(window.location.href="https://search.yahoo.com/search?p=what+to+watch&fr=yfp-sb-w2w&fr2=p%3Afp%2Cm%3Asb%2Cct%3Aw2w")}p&&(p&&(p.addEventListener("enterKeyPressed",I),p.addEventListener("assistSelectionClicked",N),p.addEventListener("searchBtnClicked",I),p.addEventListener("keydown",O),p.addEventListener("click",M)),t&&(t.addEventListener("animationend",(function(e){R(e)})),t.addEventListener("animationcancel",(function(e){R(e)}))),"homepage"!==i&&"my"!==i||(Pt(t),"homepage"===i&&function(e){var t=Mt("type");if(t)if(e.querySelectorAll('input[name="type"]').length)Bt(e,'input[name="type"]',t);else{var n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name","type"),n.setAttribute("value",t),e.appendChild(n)}}(t)),n.saveCurrentTimerValue("search_assist_ready")),P.prototype={init:function(e){this.app=e,e.on("after_update_list",q,this)}},h&&(null===(u=window.YAHOO.SA)||void 0===u||u.add("saBotSearch",P)),D.prototype={init:function(e){var t=this;t.app=e,e.on("before_button_submit",H,t),e.on("before_key_submit",H,t)}};var U=function(e){var t;return null===(t=window.localStorage)||void 0===t?void 0:t.setItem(Ft,e)};(function(e){var t=new Date;if(!0!==l&&(null===e||!function(e){var t=v(e.toLocaleTimeString("en-US",{hour12:!1,timeZone:"America/Los_Angeles",hour:"numeric",weekday:"narrow"}).split(", "),2),n=t[0],i=t[1],o=parseInt(i);return("S"===n||"F"===n)&&o>=14&&o<=20}(t)))return!1;var n=t.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"America/Los_Angeles"}).split("/"),i=parseInt("".concat(n[2]).concat(n[0]).concat(n[1])),o=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Ft)}();if(null===o||!0===l)return U("".concat(i,",1")),!0;var a=v(o.split(","),2),r=a[0],s=a[1],c=parseInt(r),u=parseInt(s);return!Number.isNaN(i)&&!Number.isNaN(c)&&i>c?(U("".concat(i,",1")),!0):!Number.isNaN(u)&&2>u&&(U("".concat(i,",2")),!0)})(s)&&(p&&""!==c&&p.setAttribute("placeholder",c),t.classList.add("ybar-enable-watch-to-watch"),null===(d=window.YAHOO.SA)||void 0===d||d.add("saWTW",D))};be("ybar-mod-assistjs",(function(e){var t,n,i,o,a,r=document.getElementById("ybar-sf"),s=document.getElementById("ybar-w2w-list"),c=null;if(r&&"true"===r.getAttribute("data-saEnabled")){var l={ybar:document.getElementById("ybar"),crumbs:document.querySelector('input[name="uh-crumb"]'),searchBox:r,searchInput:document.getElementById("ybar-sbq"),searchBoxBackButton:document.getElementById("ybar-search-back-btn")},u=e.getConfig();!!u.bucketConfig.use_uh3_profile&&(At.plugins.saTray.ctn.css+=" "+St["uh3-layout"]);var d=!!u.bucketConfig.assist_autoselect;d&&(At.autoSelect=!0),!!u.bucketConfig.wrap_searchbox&&(At.plugins.saTray.afterNode="ybar-sbq-wrap");var p=At,m=!!u.bucketConfig.enable_search_ui,f=!!u.bucketConfig.assist_billboard_v2,v=!!u.bucketConfig.assist_disable_search_history,y=!!u.bucketConfig.answers_search;if(m){var g="smartphone"===u.device?It:Tt,b=r.getAttribute("data-tn-title");if(b&&(null===(t=null==g?void 0:g.plugins)||void 0===t?void 0:t.saGroup)&&Object.assign(g.plugins.saGroup,{grps:{m9:{text:b}}}),f){var w="smartphone"===u.device?Nt:Ot;(null==g?void 0:g.plugins)&&Object.assign(g.plugins,w.plugins)}v&&(null===(n=null==g?void 0:g.saBE)||void 0===n?void 0:n.params)&&(g.saBE.params.f=0),y&&((null===(i=null==g?void 0:g.plugins)||void 0===i?void 0:i.saFlvr)&&Object.assign(null===(o=null==g?void 0:g.plugins)||void 0===o?void 0:o.saFlvr,{m79:St["sa-answer"],m80:St["sa-trending"],m81:St["sa-creator"]}),(null===(a=null==g?void 0:g.plugins)||void 0===a?void 0:a.saGroup)&&Object.assign(g.plugins.saGroup,{groupAlways:!0,grps:{m80:{text:"Popular questions"},m13:{text:"History"},m81:{text:"Contributors"},m79:{text:"Yahoo Answers"},default:{text:"From the web"}},placeholders:{m79:{text:"There are no results found.",css:St["sa-group-holder"],pos:0,empty:1}}}),d&&(g.autoSelect={m:79,exact:!0}),g.inputRowHeight=20),p=h(h(h({},At),g),{plugins:h(h({},At.plugins),g.plugins)})}s&&!0===u.bucketConfig.enable_what_to_watch&&((c=s.cloneNode(!0)).removeAttribute("id"),c.removeAttribute("style")),function(e,t,n,i,o,a,r,s){var c,l,u,d,p=t.searchBox.getAttribute("data-appid"),h=t.searchBox.getAttribute("data-pubid");if(window.YAHOO&&window.YAHOO.SA){if(!window.YAHOO.SA.apps[0]){"attgoog"===p&&(n.saBE.params.appid="attgoog"),h&&""!==h&&(n.saBE.params.pubid=h),"games"===i&&(n.saBE.params.anno_output="raw"),n.saBE.host=r?t.searchBox.getAttribute("data-fastbreak"):t.searchBox.getAttribute("data-sabase");var m=(null===(c=t.crumbs)||void 0===c?void 0:c.dataset.sacrumb)||t.searchBox.dataset.sacrumb,f=(null===(l=t.crumbs)||void 0===l?void 0:l.dataset.sabcrumb)||t.searchBox.dataset.sabcrumb,v=t.searchBox.dataset.mtestid;m&&(n.saBE.params[".crumb"]=m),f&&n.shBE&&(n.shBE.params._bcrumb=f),v&&(n.saBE.params.mtestid=v);var y=e.getConfig();Yt(t.ybar,t.searchBox,{beaconClick:$,saveCurrentTimerValue:re,getPerformanceI13nObject:se},i,o,a,r,s,(null===(u=null==y?void 0:y.bucketConfig)||void 0===u?void 0:u.placeholder)||"",(null===(d=null==y?void 0:y.bucketConfig)||void 0===d?void 0:d.force_what_to_watch)||!1),window.YAHOO.SA.init(n)}}else{var g="Search lib not found. SearchAssist failed to initialise";e.logError(g,new Error(g))}}(e,l,p,u.property,u.device,u.ytheme,m,c)}}));var jt="_yb_bdvltf",zt="_yb_pyb0oj",Gt="_yb_12ow2qu",Wt="_yb_bdff1j",Vt="_yb_h8svwi",Kt="_yb_1sih6en",Zt="_yb_zpultn",Jt="_yb_42rtps";be("ybar-mod-adaptivenav",(function(e){var t={moreDropDown:document.querySelector(".".concat(jt)),moreBtn:document.querySelector(".".concat(zt)),wrap:document.querySelector(".".concat(Wt)),moreSectionTitle:document.querySelectorAll(".".concat(Vt)),editionsCtaBtn:document.querySelector(".".concat(Kt)),editionsMenu:document.querySelector(".".concat(Zt)),closeBtn:document.querySelector(".".concat(Jt))},n=!1,i=function(t,n){var i=t.moreDropDown,o=t.moreBtn,a=t.wrap,r={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};i&&o&&a&&i.classList.contains("".concat(jt))&&(i.classList.remove("".concat(jt)),a.classList.add("".concat(Gt)),o.setAttribute("aria-expanded","true"),r.elm="expand",e.triggerEvent("adapnav:more:show",{event:n}),$("ybar",r.slk,"",r))},o=function(e){var t=e.moreDropDown,i=e.moreBtn,o=e.wrap,a={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};t&&i&&o&&(t.classList.contains("".concat(jt))||(t.classList.add("".concat(jt)),o.classList.remove("".concat(Gt)),i.setAttribute("aria-expanded","false"),n||$("ybar",a.slk,"",a)))},a=function(e){var t=e.editionsMenu,n={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};null==t||t.close(),$("ybar",n.slk,"",n)},r=function(){var e;window.innerWidth<1024&&(null===(e=t.editionsMenu)||void 0===e||e.close())};t.moreBtn&&(e.addElementListener(t.moreBtn.parentNode,"focusin",(function(e){i(t,e)})),e.addElementListener(t.moreBtn.parentNode,"focusout",(function(){o(t)})),e.addElementListener(t.moreBtn,"mouseenter",(function(e){var n;window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown?window.YAHOO.SA.apps[0].view.hide():null===(n=t.moreBtn)||void 0===n||n.click(),i(t,e)})),e.addElementListener(t.moreBtn.parentNode,"mouseleave",(function(){o(t)})),e.addElementListener(t.moreBtn.parentNode,"click",(function(e){t.moreDropDown&&t.moreDropDown.classList.contains("".concat(jt))&&i(t,e)})),e.addElementListener(t.moreBtn,"keydown",(function(e){var n;27===e.keyCode&&(null===(n=t.moreBtn)||void 0===n||n.blur())}))),t.moreSectionTitle&&Array.from(t.moreSectionTitle).forEach((function(t){e.addElementListener(t,"mouseover",(function(){n=!0})),e.addElementListener(t,"mouseout",(function(){n=!1}))})),t.editionsCtaBtn&&t.editionsMenu&&(e.addElementListener(t.editionsCtaBtn,"click",(function(){var e,n;t.editionsMenu&&(e=t.editionsMenu,n={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"},e&&(e.showModal(),$("ybar",n.slk,"",n)))})),e.addElementListener(t.closeBtn,"click",(function(){a(t)})),t.editionsMenu.addEventListener("click",(function(e){var n,i,o=null===(n=t.editionsMenu)||void 0===n?void 0:n.getBoundingClientRect();(e.clientXo.right||e.clientYo.bottom)&&(null===(i=t.editionsMenu)||void 0===i||i.close())})),window.addEventListener("resize",r)),e.onDestroy((function(){o(t),a(t),window.removeEventListener("resize",r)})),window.addEventListener("keyup",(function(e){27===e.keyCode&&o(t)}))}));var Qt,Xt,$t,en={"account-status-container":"_yb_nmo83n","accounts-container":"_yb_kxv3qh","accounts-list":"_yb_1jqbu8c",chevron:"_yb_jlcrp6",current:"_yb_1l1cl88",expanded:"_yb_pxkipi",greetings:"_yb_1htpqzn","greetings-container":"_yb_1tpcl2h",hide:"_yb_1m9d00h",mobile:"_yb_epzokx",multiple:"_yb_19kw51d","loading-profile-wrapper":"_yb_q9nrf3","loading-profile-button":"_yb_5no3ii","notification-container":"_yb_15km99y","pfs-container":"_yb_1dgybvi","pfs-iframe":"_yb_7skrcd",show:"_yb_1m8zfaq","sign-in-menu":"_yb_k6981i","signed-in":"_yb_1f6r9s9","signed-in-mark":"_yb_19nswvl","signed-out":"_yb_nb2h4w","signedout-text":"_yb_1929o9p","stacked-name":"_yb_1vb89f8","stacked-name-given":"_yb_18b6jwq","stacked-name-family":"_yb_iimxu7","uh3-layout":"_yb_8mvb6w","ybar-account-img":"_yb_7czcvv","ybar-account-img-signed-out":"_yb_ipeyv","ybar-account-img-hidden":"_yb_3pkl3w","ybar-account-menu":"_yb_h2r897","ybar-account-menu-item-signed-out":"_yb_10mgvqn","ybar-account-user-email":"_yb_1pzo2q0","ybar-account-user-email-other":"_yb_1xjp075","ybar-account-user-name":"_yb_mkgrgj","ybar-account-user-signedout":"_yb_1fl7bmg","ybar-account-yahoo-plus-imp":"_yb_1p9w64m","ybar-icon-arrow":"_yb_70wjbf","ybar-icon-arrow-down":"_yb_1nocifo","ybar-icon-arrow-up":"_yb_13sciw3","ybar-icon-image-wrapper":"_yb_1v322nf","ybar-item-hidden":"_yb_p0u22u","ybar-login-btn":"_yb_1wqaqq","ybar-mod-account":"_yb_yla28u","ybar-mod-mail":"_yb_18yjoom","ybar-profile-character":"_yb_85d13f","ybar-profile-character-hidden":"_yb_qm5g4s","ybar-see-info":"_yb_gxxyg4","ybar-sign-out":"_yb_1bjnrb8","ybar-sign-out-text":"_yb_zvpxn8","ybar-user-accounts-list":"_yb_1iwmv05","ybar-user-profile-img":"_yb_12or1kd"},tn=/\$({|%7B)GDPR_CONSENT_(\d+)(}|%7D)/g,nn=/\$({|%7B)GDPR(}|%7D)/g,on=/\[timestamp\]/g,an=function(e){return e.replace(on,Date.now()+"")},rn=function(e){return m(void 0,void 0,void 0,(function(){var t,n,i,o;return f(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,new Promise((function(e,t){if(!window.__tcfapi){var n="Missing TCF API",i=new Error(n);return c(n,i),t(i)}window.__tcfapi("getTCData",2,(function(n,i){return i&&"error"!==n.cmpStatus?e(n):t(!1)}),r)}))];case 1:return t=a.sent(),n=function(e,t){var n=t.gdprApplies;return e.replace(nn,n?"1":"0")}(e,t),i=function(e,t){var n=t.gdprApplies,i=t.tcString;return e.replace(tn,n?i:"")}(n,t),[2,an(i)];case 2:return a.sent(),o="Error adding consent to ".concat(e),c(o,new Error(o)),[2,e];case 3:return[2]}var r}))}))};Qt="ybar",$t={createHTML:function(e){return e}},void 0!==(Xt=window.trustedTypes)&&void 0!==Xt.createPolicy&&window.trustedTypes.createPolicy(Qt,$t);var sn,cn=!1,ln=function(e,t,n){var i,o=n.ybarAccMenuItemTemplate,a=n.crumb;if(o){var r=(t+1).toString(),s=o.getAttribute("data-signedOutState"),c=o.getAttribute("data-signedInState")||"",l=o.getAttribute("data-done")||"",u=function(e){if("content"in e)return e.content.cloneNode(!0);for(var t=document.createDocumentFragment(),n=0;n=230&&(e.greetings.classList.add(en.hide),e.stackedName.classList.remove(en.hide),e.chevron&&(e.chevron.style.marginTop="-35px"))},dn=function(e,t,n){return 0===e.indexOf("javascript:")||~e.indexOf("https://membernotifications.aol.com/notice/maillogout")||~e.indexOf("wtExtndSource")?e:(n&&(n=~e.indexOf("&activity=ybar-")?void 0:n.replace("[[pspid]]",ue())),~e.indexOf("done=")?(e=e.replace(/\[\[page\]\]/g,encodeURIComponent(window.location.href)),n&&(e+="&"+n),e):~e.indexOf("dest=[[done]]")?e.replace(/\[\[done\]\]/g,encodeURIComponent(t)):(e=pe(e),e+=".done="+encodeURIComponent(t),n&&(e+="&"+n),e))},pn=function(e,t){var n,i=e.ybarAccMenuItemTemplate,o=e.ybarAccountContainer,a=document.querySelector(".".concat(en["ybar-mod-account"]," .").concat(en["ybar-login-btn"])),r=document.querySelector(".".concat(en["ybar-mod-account"]," .").concat(en["ybar-sign-out"])),s=o&&o.querySelectorAll("a"),c="",l=window.location.href;if(a){var u=a.href;t.onDestroy((function(){a.href=u})),a.href=dn(a.href,l,a.getAttribute("data-redirect-params")||void 0)}if(i?(l=i.getAttribute("data-done")||"",c=i.getAttribute("data-sign-out-url")||""):r&&(c=r.getAttribute("data-sign-out-url")||""),s){var d=function(){var e=n,i=s[e].href;t.onDestroy((function(){s[e].href=i}));var o=s[n].getAttribute("data-redirect-params");s[n].classList.contains(en["ybar-sign-out"])?s[n].href=dn(s[n].href,c,o||void 0):s[n].href=dn(s[n].href,l,o||void 0)};for(n=0;n=0;--t){e[t]=(o=void 0,(o={fn:(i=e[t]).fn||"",ln:i.ln||"",em:i.em||"",alias:i.alias||"",imageUrl:i.imageUrl,state:i.state,fullName:null,identifier:""}).fullName=me(o.fn,o.ln)?[o.ln,o.fn].join(""):[o.fn,o.ln].join(" "),o.identifier=o.em||o.alias,o);var n=e[t].state;0!==n&&"0"!==n||(window.YBAR&&window.YBAR.setUserEmail(e[t].em),sn=e[t],e.splice(t,1)[0])}var i,o;return e}(a.users);if(t.isUH3Layout&&sn){if(t.ybarLoadingProfileWrapper){var l=document.querySelector(".".concat(en["ybar-profile-character-hidden"])),u=sn.fn&&sn.fn[0].toUpperCase()||"",d=me(sn.fn,sn.ln),p=function(){t.ybarLoadingProfileWrapper.remove(),t.ybarAccountMenu.classList.remove(en["loading-profile-button"])};if(l&&he(sn.imageUrl)&&!d)l.innerHTML=u,l.ontransitionend=p,l.classList.remove(en["ybar-profile-character-hidden"]);else{var h=new Image;h.classList.add(en["ybar-account-img"],en["ybar-account-img-hidden"]),h.src=sn.imageUrl,h.alt=t.ybarLoadingProfileWrapper.getAttribute("data-alt")||"",h.ontransitionend=p,h.onload=function(){h.classList.remove(en["ybar-account-img-hidden"])},t.ybarLoadingProfileWrapper.parentElement.prepend(h),l&&l.remove()}t.greetings&&(t.greetings.innerText=sn.fullName||""),t.stackedNameGiven&&(t.stackedNameGiven.innerText=sn.fn||""),t.stackedNameFamily&&(t.stackedNameFamily.innerText=sn.ln||""),un(t)}c.length>0&&(c.unshift(sn),t.chevron&&t.chevron.classList.remove("hide"),t.greetingsContainer&&(t.greetingsContainer.classList.add(en.multiple),t.greetingsContainer.setAttribute("aria-expanded","false")))}for(var m=document.querySelector(".".concat(en["ybar-user-accounts-list"]))||document.querySelector(".".concat(en["accounts-list"])),f=function(n){var i=ln(c[n],n,t);i&&(null==m||m.appendChild(i)),e.onDestroy((function(){i&&(null==m||m.removeChild(i))}))},v=0;v0){var y=document.querySelector("".concat(s," .").concat(en["ybar-sign-out"])),g=y&&y.getAttribute("data-soa"),b=document.querySelector("".concat(s," .").concat(en["ybar-sign-out-text"]));if(b&&g&&(b.innerText=g),r&&r.classList.add(en.show),n){var w=document.querySelector("".concat(s," ").concat(en["ybar-icon-arrow"])),_=en["ybar-icon-arrow-up"],E=en["ybar-icon-arrow-down"],x=en["ybar-item-hidden"],C=document.querySelectorAll(".".concat(en["ybar-item-hidden"]));w&&(w.classList.toggle(E),e.addElementListener(w,"click",(function(){for(var e=0;e3){var L=document.querySelector("".concat(s," .").concat(en["ybar-see-info"]));L&&L.style&&(L.style.display="block")}pn(t,e),i&&i(),cn=!1}))}},mn=function(e,t,n){var i,o,a,r,s,c={},l=e.getConfig(),u=new URLSearchParams({activity_p:"ybar"}),d=null,p="https://pfs.yahoo.com",h=function(e){for(var t=e.split(";"),n=new Map,i=0;i567?567:e},y=function(){document.body.removeEventListener("focusin",y,!1),document.body.removeEventListener("click",y,!1),d&&(d.style.height="0",d.style.visibility="hidden")},g=function(){var e;if(null===(e=document.activeElement)||void 0===e?void 0:e.classList.contains(n))return document.body.addEventListener("focusin",y,!1),void document.body.addEventListener("click",y,!1);y()},b=function(){d&&(d.style.visibility="visible",m("resize",{height:f()}))},w=function(){null===d&&((d=document.createElement("iframe")).src="".concat(p,"/?").concat(u.toString()),d.scrolling="no",d.setAttribute("style","visibility:hidden;height: 0;"),d.sandbox.add("allow-forms"),d.sandbox.add("allow-scripts"),d.sandbox.add("allow-same-origin"),d.sandbox.add("allow-popups"),d.classList.add(n),d.addEventListener("load",(function(){setTimeout((function(){var n;i&&o||(e.triggerEvent("ybar-pfs-init-failure"),null===(n=null==d?void 0:d.parentNode)||void 0===n||n.removeChild(d),t.ybarAccountContainer&&t.ybarAccountContainer.setAttribute("data-pfs","err"))}),500)})),t.loggedInUserElement&&(t.loggedInUserElement.appendChild(d),e.addElementListener(t.loggedInUserElement,"mouseleave",g),e.addElementListener(t.loggedInUserElement,"blur",g),t.ybarAccountMenu&&(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",b),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",b))))};if(t.ybarAccountMenu){if(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",w,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",w,{once:!0}),e.onDestroy((function(){y(),d=null})),t.ybarAccountContainer)"false"===t.ybarAccountContainer.getAttribute("data-prod")&&(p="https://stage.pfs.yahoo.com"),u.set("intl","us"),u.set("src",l.property),u.set("lang",l.locale),u.set("theme",(a="light",r=document.documentElement,null!==(s=r.getAttribute("data-color-theme-enabled"))&&"false"!==s&&(a="dark"===r.getAttribute("data-color-scheme")?"dark":"auto"),a)),u.set("done",window.location.href),u.set("pspid",ue());window.addEventListener("message",(function(e){if(e.origin===p){var t=function(e){var t={cmd:"noop",params:{height:"0px",width:"",url:"","data-ylk":""}};try{t=JSON.parse(e)}catch(e){return}return t}(e.data);if(null!==d&&(null==t?void 0:t.cmd)&&e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))switch(t.cmd){case"iframeready":i=e.origin,o=e.source,m("initialize",{height:f(),maxAccounts:3,enableAnimations:!0,animationDuration:"500ms",animationTimingFunction:"ease-in-out"});break;case"hide":case"hide-for-animation":d.style.height="0";break;case"show":d.style.height=t.params.height,d.style.visibility="0"===t.params.height?"hidden":"visible",t.params.width&&(d.style.width=t.params.width);break;case"redirect":c=h(t.params["data-ylk"]),$("ybar",c.slk||"account","",c),window.location=t.params.url;break;case"popup":c=h(t.params["data-ylk"]),$("ybar",c.slk||"account","",c),window.open(t.params.url,"_blank")}}})),window.addEventListener("keyup",(function(e){if(!d||"visible"===d.style.visibility){27===e.keyCode&&g()}}))}};if("undefined"!=typeof Element&&!Element.prototype.matches){var fn=Element.prototype;fn.matches=fn.matchesSelector||fn.mozMatchesSelector||fn.msMatchesSelector||fn.oMatchesSelector||fn.webkitMatchesSelector}var vn=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function yn(e,t,n,i,o){var a=gn.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function gn(e,t,n,i){return function(n){n.delegateTarget=vn(n.target,t),n.delegateTarget&&i.call(e,n)}}var bn,wn=function(e,t,n,i,o){return"function"==typeof e.addEventListener?yn.apply(null,arguments):"function"==typeof n?yn.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return yn(e,t,n,i,o)})))},_n=function(e){this.data=e,this.next=null,this.prev=null},En=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new _n(e);return this.head?this.tail?(t.prev=this.tail,this.tail.next=t,this.tail=t):(this.tail=t,this.tail.prev=this.head,this.head.next=this.tail):(this.head=t,t.next=this.tail),t},e.prototype.size=function(){for(var e=0,t=this.head;t;)e+=1,t=t.next;return e},e.prototype.getHead=function(){return this.head},e.prototype.getTail=function(){return this.tail},e.prototype.get=function(e){if(e>=this.size())return null;for(var t=0,n=this.head;(null==n?void 0:n.next)&&t0){var n=e.getConfig(),c=n.i18n.root.MAIL_ARIA_LINK;if(i&&i.hasAttribute("aria-label")&&c&&i.setAttribute("aria-label",c.replace("{count}",t.toString())),"finance"!==n.property&&o.classList.add(s),r&&r.classList.add(s),a){var l=t>99;a.textContent=l?"99+":t+"",o.classList.add("".concat(An["count-loaded"])),l?o.classList.add("".concat(An["ybar-large-unread"])):t>=10&&o.classList.add("".concat(An["ybar-mid-unread"]))}e.onDestroy((function(){o.classList.remove(s),r&&r.classList.remove(s),a&&(a.textContent="")}))}})).catch((function(){}))};be("ybar-mail-init",(function(e){var t=document.getElementById("ybarUnread");!function(e,t){var n=t.mailModule,i=t.mailLink,o=t.mailSigninLink,a=t.mailPreview;if(n){var r=new mt;if(e.addElementListener(n,"mouseenter",(function(){e.triggerEvent("close-all-menus")})),e.addEventListener("close-all-menus",(function(){Le(n)||In(t)})),e.addElementListener(a,"focusin",(function(){Tn(t)})),e.addElementListener(a,"focusout",(function(){In(t)})),e.onDestroy((function(){In(t)})),o){var s=i.getAttribute("data-redirect-params");if(s&&""!==s){var c=i.href;e.onDestroy((function(){i.href=c})),s=-1!==i.href.indexOf("&activity=ybar-")?"":s.replace(/\[\[pspid\]\]/,ue()),i.href=pe(i.href)+s,(null==o?void 0:o.href)&&(o.href=pe(o.href)+s)}}else Nn(e,t,r)}}(e,{mailModule:document.querySelector(".".concat(An["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(An["ybar-mail-indicator"])),mailLink:document.querySelector(".".concat(An["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(An["ybar-mail-signin-link"])),mailUnread:t,mailUnreadSpan:null==t?void 0:t.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat(An["popover-body"].split(" ").join("."))),mailPreviewPopover:document.querySelector(".".concat(An["ybar-mail-preview"].split(" ").join(".")," .").concat(An["popover-body"].split(" ").join(".")))})}));var On,Mn="_yb_bbtl14",Bn="_yb_1s29w0v",Rn="_yb_ovoi5z",Pn="_yb_lmf2m7",qn="_yb_j2kfr2",Dn="_yb_1ymb489",Hn="_yb_1ksy112",Un="_yb_h2n8dp",Fn="_yb_1w59f0k",Yn="_yb_1huqorh",jn=function(e){var t=document.querySelector("#ybar-navigation-item-mail"),n=document.querySelector("#ybar-navigation-item-mail > a"),i=document.querySelector("#ybar-navigation-item-mail > a > span");null!==t&&null!==n&&(new mt).fetchCount().then((function(t){i&&t>0&&(i.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){i.textContent=""})))})).catch((function(){}))},zn=!1,Gn=-1,Wn=function(e,t,n){var i,o,a,r=-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;for(var p=window.getComputedStyle(e.navList),h=parseInt(p.gap,10)||0,m=0;mb&&(m!==e.navItems.length-1||s+y>b||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&Gn<0)){r=m;break}s+=y+(mGn&&-1!==Gn)for(var _=Gn;_=r;){var x=e.navItems[E].cloneNode(!0),C=x.querySelector("a");C&&(C.setAttribute("id",""),C.classList.remove(Rn));var L=x.querySelector(".".concat(e.navigationDropdownListClass));if(L&&(L.style.display="none"),x.classList.remove(e.dropdownWrapperClass),x.classList.remove(e.ybarNavigationItemClass),x.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(x,e.moreMenuDropdown.firstChild);var k=x.getElementsByTagName("a")[0];n.unshiftMoreMenuItem(k)}null===(a=e.navItems[E].querySelector("a"))||void 0===a||a.setAttribute("tabindex","-1"),E--}Gn=r}if(-1!==r&&e.navList){var S=parseInt(s.toString(),10)+"px";e.navList.style.maxWidth=S,t.textContent=".".concat(Hn,"{ max-width: ").concat(S,"}")}e.moreMenuNavItem&&e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()?(e.moreMenuNavItem.classList.add(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility="visible"):null!==e.moreMenuNavItem&&(e.moreMenuNavItem.classList.remove(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility="hidden"),e.moreMenuDropdown&&e.moreMenuDropdown.childElementCount>10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass)}},Vn=function(e,t,n,i){for(var o=t||window.location.pathname,a=n||window.location.hostname,r=(i||{}).setParentFocus,s=void 0!==r&&r,c=y([],v(e.topLevelNavLinks),!1),l=null,u=null,d=0;d0),a=new xn(e,{containerElm:t.ybarNav,navlistItemSelector:".".concat(Fn," > li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:o,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,t){var n;y([],v(null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(t.dropdownOpenClass)}));var i=e.getConfig();"news"===i.property?On=-12:(On="finance"!==i.property&&"sports"!==i.property&&t.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(On=-20));var o=t.isTablet?"touchstart":"mouseover",a=wn(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),o,(function(n){if(window||document){var i=window.innerWidth||document.documentElement.clientWidth,o=n.delegateTarget;if(o&&-1!=o.className.indexOf(t.dropdownWrapperClass)&&(o=o.querySelector(".".concat(t.navigationDropdownListClass))),o){o.style.removeProperty("left");var a=o.getBoundingClientRect(),r=Math.trunc(a.right),s=parseInt(window.getComputedStyle(o).marginLeft,10)+i-r;if(r>i)return void(o.style.marginLeft=s+"px");parseInt(o.style.marginLeft)0?o.style.removeProperty("margin-left"):o.style.marginLeft=s+"px":(o.style.removeProperty("margin-left"),o.style.marginLeft=On+"px")}}else{var c=new Error("Dropdown could not be initialized");e.logError("Error:",c)}}));e.onDestroy((function(){a.destroy()}))}(e,t),jn(e),e.addElementListener(document,"DOMContentLoaded",(function(){jn(e)})),function(e,t){var n,i=function(e,n){var i;e.classList.contains(t.moreMenuNavItemClass)&&(null===(i=t.moreMenuMainFocusItem)||void 0===i||i.setAttribute("aria-expanded",n))},o=wn(".".concat(t.dropdownWrapperClass),"focusin",(function(e){var n=e.delegateTarget;n&&n.classList.contains(t.dropdownWrapperClass)&&(n.classList.add(t.dropdownOpenClass),i(n,"true"))})),a=wn(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",(function(e){var n=e.delegateTarget;if(null==n?void 0:n.classList.contains(t.navigationDropdownListClass)){var o=n.parentElement;o&&!o.contains(e.relatedTarget)&&o.classList.contains(t.dropdownWrapperClass)&&(o.classList.remove(t.dropdownOpenClass),i(o,"false"))}else(null==n?void 0:n.classList.contains(t.dropdownOpenClass))&&(n.classList.remove(t.dropdownOpenClass),i(n,"false"))})),r=null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(Dn));null==r||r.forEach((function(t){var n=t.parentNode;n&&null!==document.querySelector(".ybar-ytheme-crunch")&&(e.addElementListener(n,"mouseenter",(function(n){e.triggerEvent("nav:dropdown:show",{event:n}),t.style.height=t.scrollHeight-20+"px"})),e.addElementListener(n,"mouseleave",(function(){t.style.height="0"})))})),e.onDestroy((function(){var e;o.destroy(),a.destroy(),y([],v(null===(e=t.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(t.dropdownOpenClass);var n=document.activeElement;(function(e,t){var n=!1;if(!e||!t)return n;if("function"==typeof e.contains)n=e.contains(t);else for(var i=t;i;){if(i===e){n=!0;break}i=i.parentElement}return n})(t.ybarNav,n)&&setTimeout((function(){null==n||n.blur()}),1)}))}))}(e,t);var r=e.getConfig().bucketConfig,s=void 0===r?{}:r,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(zn=void 0!==u&&u,Vn(t)),e.addEventListener("nav:setFocus",(function(e){var n=e.detail,i=void 0===n?{}:n,o=i.hostname,a=void 0===o?window.location.hostname:o,r=i.pathname,s=void 0===r?window.location.pathname:r,c=i.options;Vn(t,s,a,void 0===c?{}:c)})),o){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=wn("#ybar-nav-more-menu ul a","click",(function(t){e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){Wn(t,d,a)})),Wn(t,d,a),e.addElementListener(window,"load",(function(){t.navList&&t.moreMenuNavItem&&(t.hasNavPlacement||Zn(e,t))&&([t.navList,t.moreMenuNavItem,t.hasNavPlacement].forEach((function(e){e&&(e.style.opacity="1",e.style.visibility="visible")})),Wn(t,d,a))})),e.addElementListener(window,"resize",(function(){Wn(t,d,a)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}Jn(e,t)},Zn=function(e,t){var n=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return t.isFuji2&&n},Jn=function(e,t){if(t.isNavHidden){var n=!1;e.addElementListener(document,"DOMContentLoaded",(function(n){t.isNavHidden()&&e.triggerEvent("l2:hide",{event:n})})),e.addElementListener(window,"resize",(function(i){!n&&t.isNavHidden()&&e.triggerEvent("l2:hide",{event:i}),n=t.isNavHidden()}))}},Qn="#ybar-nav-more-menu";be("ybar-mod-navigation",(function(e){var t,n=e.getConfig(),i={dropdownWrapperClass:Bn,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet"),longListClass:Pn,moreMenuDropdown:document.querySelector("".concat(Qn," ul")),moreMenuNavItem:document.querySelector(Qn),moreMenuNavLinksSelector:"".concat(Qn," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(Qn," > button")),moreMenuNavItemClass:Yn,navigationDropdownItemClass:qn,navigationDropdownListClass:Dn,navItems:document.querySelectorAll("li.".concat(Un)),topLevelNavLinks:document.querySelectorAll("li.".concat(Un," > 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:Un,dropdownOpenClass:Mn,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var t=window.getComputedStyle(e),i=parseInt(t.marginLeft,10)+parseInt(t.marginRight,10);return"sports"===n.property?parseInt(t.marginRight):"finance"===n.property&&"crunch"===n.ytheme?(i-=1.8)>5?i:5:"crunch"===n.ytheme?i:0},navigationPlacement:function(){return t||(t=document.getElementById("ybar-nav-placement")),t},isNavHidden:function(){var e=!1;return"finance"===n.property&&"crunch"===n.ytheme&&document.documentElement.clientWidth<=1049&&(e=!0),e}};i.ybarNav&&Kn(e,i)}));var Xn="_yb_1jg50yc",$n="_yb_1cg4fow",ei="_yb_kc47r6",ti="_yb_kbhnkm",ni="ytlv",ii=864e5,oi="_yb_17ht3sm",ai="_yb_3870we",ri="_yb_1pxtgvg",si="_yb_1y6b1jw",ci=function(){function e(e,t){var n=this;this.initialized=!1,this.ybar=e,this.container=t,this.a11yMenu=this.container.querySelector(".".concat(si)),this.historyEnabled=!!Number(this.container.dataset.history);var i=this.getLocalStorage();this.state={lastSeen:(null==i?void 0:i.lastSeen)||null,manuallyClosed:(null==i?void 0:i.manuallyClosed)||!1},this.init();var o=0,a=setInterval((function(){o>=5||n.initialized?clearInterval(a):(void 0!==n.isNotificationsSupported()&&n.init(),o++)}),100)}return e.prototype.show=function(e){var t;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(oi),null===(t=this.a11yMenu)||void 0===t||t.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(ai),document.body.classList.remove(oi),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(ai),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:ii)||(document.body.classList.add(ai),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(ri)[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 t=new Date(this.lastSeen),n=new Date;return t.getTime()+e>n.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(ni,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,t,n=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(ni);if(null===n)return null;try{return JSON.parse(n)}catch(e){return null===(t=window.localStorage)||void 0===t||t.removeItem(ni),null}},e}(),li=-1,ui={0:0,1:1,9:9,99:99,150:150},di=function(e,t){var n,i=t.isUH3,o=t.notifMenu,a=t.notifMenuOpener,r=t.notifDropdown,s=t.notifBadge,c=t.notifContainer,l=t.notifLabel;t.tooltipContainer&&(n=new ci(e,t.tooltipContainer));var u=G(),d=function(){o&&(o.checked=!1),null==r||r.classList.remove("ybarMenuOpen")},p=function(){var t;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(Xn))||(u.resetBadge(),s&&(i?null===(t=s.parentElement)||void 0===t||t.classList.remove($n):s.style.display="none"))},h=function(e){var t,n;0===li&&(null===(t=null==e?void 0:e.css)||void 0===t?void 0:t.length)&&e.css.length>0&&(li++,function(e){for(var t,n,i=0;i0&&s)if(i){var a,r=(a=e.newCount)>99;s.textContent=r?"99+":a+"",null===(n=s.parentElement)||void 0===n||n.classList.add($n)}else s.style.display="block"},m=function(){u.refreshPanel().then(h).then(ee).catch((function(){}))};e.addEventListener("close-all-menus",(function(){Le(c)||d()})),c&&(m(),setInterval((function(){m()}),3e5),i?l&&l.addEventListener("mouseenter",(function(){p(),null==n||n.show()})):c.addEventListener("mouseenter",(function(){p(),null==n||n.show()})),c.addEventListener("mouseleave",(function(){d(),null==n||n.hide()}))),e.addElementListener(o,"click",(function(){$("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),a&&Se(e,a,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(r,"focusin",(function(){o&&(o.checked=!0),null==r||r.classList.add("ybarMenuOpen")})),e.addElementListener(r,"focusout",d),e.addElementListener(t.tooltipContainer,"focusin",(function(){null==n||n.show()})),e.addElementListener(t.tooltipContainer,"focusout",(function(){null==n||n.hide()}))};be("ybar-mod-notification",(function(e){var t={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(ei)),notifLabel:document.querySelector(".".concat(ti))};di(e,t)}))}()}};
    Cryptocurrency | Yahoo - Latest News & Headlines (2024)

    FAQs

    What is the best source of crypto news? ›

    Here are some of the best crypto news websites to pick from:
    • CoinDesk.
    • Cointelegraph.
    • U. Today.
    • Decrypt.
    • The Crypto Times.
    • The Coin Bureau.
    • Blockworks.
    • Reddit.

    Where can I find the latest news about cryptocurrency? ›

    CNBC Crypto World features the latest news and daily trading updates from the digital currency markets and provides viewers a look at what's ahead with high-profile interviews, explainers and unique stories from the ever-changing crypto industry.

    Which crypto to buy today? ›

    Top Cryptos
    NamePriceChange
    ETH Ethereum264,079.0-921.0
    USDT Tether USD89.25-0.59
    BNB Binance Coin50,899.60560.71
    SOL Solana12,795.00680.00
    36 more rows

    What is the promising new crypto? ›

    New Crypto Coins 2024 – Detailed Analysis
    • Dogeverse ($DOGEVERSE) – The Newest Cryptocurrency on the Block with Explosive APY. ...
    • Sealana ($SEAL) – New SOL Meme Coin Has Raised Over $120K on Presale. ...
    • WienerAI ($WAI) – An Exciting New Crypto to Invest In With Lucrative Staking Rewards.
    3 days ago

    Where can I get real time crypto news? ›

    The 12 best crypto news outlets
    • CoinDesk. CoinDesk is one of the largest and most popular crypto media outlets in the world. ...
    • UToday. U. ...
    • Decrypt. Decrypt was founded in 2018 and is considered one of the most trustworthy sources of cryptocurrency news. ...
    • Bankless. ...
    • BeInCrypto. ...
    • The Block. ...
    • Bitcoin Magazine. ...
    • Blockworks.

    What is the most trusted crypto website? ›

    The most stable cryptocurrency exchanges include Coinbase, Binance and Kraken. They are among the top 10 largest exchanges by trading volume. Higher trading volume helps stabilize market prices.

    Which crypto will boom in 2024? ›

    Top 10 Cryptos in 2024
    CoinMarket CapitalizationCurrent Price
    Solana (SOL)$69 Billion$154.53
    Ripple (XRP)$28.4 Billion$0.5131
    Dogecoin (DOGE)$23.8 Billion$0.1653
    Tron (TRX)$10.1 Billion$0.1152
    6 more rows

    What is the current situation of cryptocurrency? ›

    Bitcoin, the largest cryptocurrency, is currently trading at $67,279, 7.69% down over the past seven days but reflecting 4.98% increase in the last 24 hours. Ethereum, the second-largest cryptocurrency, is trading at $3,527, down by 10.25% in the last seven days.

    How much will 1 Ethereum be worth in 2030? ›

    By the end of 2030, the predicted Ethereum price could soar to a peak of $26,575.21. The current price of 1 Ethereum is $ 3,054.12341169.

    Which crypto will skyrocket? ›

    Which Altcoin To Buy in The Next Crypto Bull Run
    • Ethereum (ETH) Market cap: $459.16 billion. ...
    • Solana (SOL) Market cap: $58.39 billion. ...
    • Cosmos (ATOM-USD) Market cap: $4.85 billion. ...
    • Kaspa (KAS-USD) Market cap: $3.48 billion. ...
    • Stellar (XLM-USD) Market cap: $3.92 billion.
    Mar 6, 2024

    Which crypto is going to boom? ›

    Cryptos that could boom in 2024 include SingularityNET and Fetch.ai, both of which may capitalize on the popularity of AI. Bitcoin is another crypto that could be poised for a strong performance in 2024, thanks to the SEC's approval of Bitcoin ETFs.

    What is the next hot crypto? ›

    As narratives like DeFi, AI, NFTs and Gaming seem to lead the current market upswing, hot candidates for 2024include Solana, Avalanche and Ethereum Layer 2 Solutions like Polygon, Arbitrum, Immutable and Optimism.

    Which new coin is best to invest in? ›

    1. Bitcoin (BTC) Market cap: $1.2 trillion. ...
    2. Ethereum (ETH) Market cap: $358.3 billion. ...
    3. Tether (USDT) Market cap: $110.6 billion. ...
    4. Binance Coin (BNB) Market cap: $82.7 billion. ...
    5. Solana (SOL) Market cap: $61.5 billion. ...
    6. U.S. Dollar Coin (USDC) Market cap: $33.1 billion. ...
    7. XRP (XRP) Market cap: $28.6 billion. ...
    8. Dogecoin (DOGE)
    Apr 23, 2024

    What is the most reliable source for crypto predictions? ›

    1. Binance. Binance is a leading cryptocurrency exchange, trusted by many, so when they introduced their tempting price prediction feature, it only makes sense to give it a try. They conduct a technical analysis using artificial intelligence (trading bots), which have a deep understanding of market sentiment and trends ...

    What is the best crypto reporting? ›

    • TokenTax – Best for Fully Automated Crypto Tax Reporting.
    • TurboTax – Best for Ease of Use.
    • TaxSlayer – Best for Expert Tax Assistance.
    • H&R Block – Best for Beginners.
    • TaxAct – Best for Customer Support.
    • TaxBit – Best for Unlimited Transactions.
    • CoinLedger – Best for Frequent Traders.
    • Coinpanda – Best for Exchange Integrations.
    Apr 16, 2024

    Who gives the best crypto signals? ›

    WOLFX Signals is a top choice for short-term investors seeking trading signals. The platform offers both free and paid signals services for cryptocurrencies and forex. The free Telegram channel offers 1-2 signals per day, whereas the VIP group sends up to four.

    What is the fastest crypto news app? ›

    Getting a news aggregator like CryptoPanic serves you right in such an instance. It comes with a Bitcoin-aggregated real-time news feed and a free portfolio tracker. They introduced an official Android app that provides native notification support.

    Top Articles
    Latest Posts
    Article information

    Author: Golda Nolan II

    Last Updated:

    Views: 5255

    Rating: 4.8 / 5 (78 voted)

    Reviews: 85% of readers found this page helpful

    Author information

    Name: Golda Nolan II

    Birthday: 1998-05-14

    Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

    Phone: +522993866487

    Job: Sales Executive

    Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

    Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.