Hot topics close

Vegas Golden Knights 1 - Dallas Stars 2: 11:53 3rd

Vegas Golden Knights 1  Dallas Stars 2 1153 3rd
Sport news, scores, fantasy games

':"";if(r){var s=n.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",s).replace("{promoLogo}",n.promos.promoLogo)}var a=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":q,d=n.panel.headerMsg?"":" "+q,u=c?R:"",p=void 0;t.count?p=t.markup:p='

  • {emptyPanelMsg}

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

    {headerMsg}

      {promoMarkup}{notifMarkup}
    ',s=n._store.getNotifications(),r=n._generatePanelMarkup(o,s),i.innerHTML=r;break;case"error_panel":r=(o='

    {errorMsg}

    ').replace("{errorMsg}",n._config.panel.errorMsg),i.innerHTML=r}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(O))}},{key:"updateBadgeNode",value:function(e){if(e){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var o=t>n?n+"+":t;e.innerHTML=o}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}(),D=function(){function e(t,n,o){L(this,e);var i=this;i._store=n,i._view=o,i._config=t;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return k(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(O)}},{key:"refreshPanelNode",value:function(e,t){var n=this;E(n._notifPanelNode,B),n._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render("error_panel"),E(n._notifPanelNode,B)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(o.css)),M(n._notifPanelNode,B),i&&i.sync(n._notifPanelNode.parentNode),t&&t(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),E(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?E(this._indicatorNode,this._config.panel.indicatorClass):M(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?M(e._badgeNode,e._config.badge.hideClass):E(e._badgeNode,e._config.badge.hideClass)}}]),e}(),H={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEligibleClassCheck:!1,notifOnboardBtnLabel:"Notify Me",notifOnboardMsg:"Get alerts for breaking news and top stories",promoLogo:"https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png",showYahooLogo:!0,subscriptionTopic:"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"",headerMsg:"Notifications",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"View all {newCount} notifications",notificationCenterPath:"",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}},z={NotificationClient:function(){function e(t){L(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new S(n.config),n._store=new T(n.config,n._request),n._view=new P(n.config,n._store),n._panelController=new D(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return k(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in N(t,H),t)if(t.hasOwnProperty(n)){var o=t[n],i=e[n];"object"===(void 0===o?"undefined":x(o))?N(o,i):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(){M(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},U="lnct",Y=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 z.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,t,n,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,t){o.client.helpers.refreshPanelNode({matrixParams:i},(function(n,o){n&&(a("Notification refresh error:",n),t(n)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,o,i,r=document.getElementById("notification-container"),s=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0:e.config;if(I&&!s)return I;var c={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(s){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(c.promos.showYahooLogo=!1);try{var d=JSON.parse(s);l=m({},d),this.personalized=1===d.personalize}catch(e){a("Notifications config parsing error",e)}r&&delete r.dataset.config}return I=this.mergeConfigs(c,l),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=I.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete I.promos.subscriptionTopic,I},e.prototype.mergeConfigs=function(e,t){var n=m({},e);for(var o in e)n[o]=m(m({},e[o]),t[o]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(U)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(U,t),t},e}();new Y;var F,j,G="",V=[],W=function(){},J=function(){window.removeEventListener("beforeunload",J),""!==G&&a("Rapid not found on page",new Error(G))},K=null,X=function(){return null===K&&(K=document.getElementById("ybar")),K},$=function(){var e=0,t=window.YAHOO;if(F)return F;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length0)for(var n=0;n0){if(F.addModules(i,!1,o),V.length>0)for(e=0;e40959)&&(i19903)&&(i55215))return!1}return!0},pe={navBeaconFired:!1},he=["ready","navigation"],me=function(){function e(e){var t=this;this.triggerEvent=r,this.addEventListener=s,this.logError=a,this.logPerformance=c,this.getConfig=l,this.getPerformanceMetrics=d,this.rapidRefresh=Q,this.state=m({},pe),this.modules=e,this.userEmail="",window.YBAR&&(he.forEach((function(e){var n="on".concat(e),o=window.YBAR[n];o&&(t[n]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),he.forEach((function(e){var n="on".concat(e);s(e,(function(){for(var o,i=[],r=0;r0,o=_.scrollTope.pageOffset,r=_.scrollTop>L+y,s=_.scrollTop90&&Me("performance",e)}catch(e){}}),1e3)})),se(),s("error",(function(e){var t=e&&e.detail||{},n=t.error||{},o=t.message||n.message||n.toString();try{var i={code:n.name,file:n.fileName||"",line:n.lineNumber||"",message:o};Me("error",i)}catch(e){}}));var Ie,Te,Be="_yb_1phf426",Oe="_yb_13wzjqr",qe="_yb_1kftl8f",Re="_yb_1dbucet",Pe="_yb_1m1agyp",De="_yb_1ev2yt3",He="_yb_1neq50d",ze="_yb_biout6",Ue="_yb_10srv8",Ye="_yb_1uwbi1c",Fe="_yb_lzizf",je="_yb_1ph7t74",Ge="_yb_18gz4bf",Ve="_yb_q5w7oz",We="_yb_v2k009",Je="_yb_14g6e1l",Ke="_yb_1aowkf2",Xe="_yb_1n4l4cy",$e="_yb_14b6eic",Ze="_yb_152xqzg",Qe="_yb_19b382s",et="_yb_1s7paot",tt="_yb_1uwf8ng",nt="_yb_1hcejyp",ot="_yb_12hgy49",it="_yb_1q6izzp",rt="_yb_1w536e4",st={animation:"_yb_1u2c311","left-open":"_yb_8q5ich",noscroll:"_yb_1ux1crz",overlay:"_yb_e5agmx","fade-in-out":"_yb_acidm4","right-open":"_yb_3umwwq","center-open":"_yb_1dvr8oh"},at=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 o=null;try{o=JSON.parse(e.responseText)}catch(e){var i=new Error("Error parsing responseText");return i._meta={originalError:e},void t(i)}t(null,o)}},ct=function(e,t){return void 0===t&&(t={}),f(void 0,void 0,void 0,(function(){return v(this,(function(n){return[2,new Promise((function(n,o){var i=new XMLHttpRequest;if(i.open("string"==typeof t.method?t.method:"GET","string"==typeof e?e:e.url,!0),"object"==typeof t.headers){var r=t.headers;for(var s in r)i.setRequestHeader(s,r[s])}i.withCredentials="include"===t.credentials,i.onreadystatechange=function(){4===i.readyState&&n({ok:i.status>=200&&i.statusn?Promise.resolve(t.data):void 0}}(Ie.COUNT),(n=this._checkForMockData())?[2,n]:!e&&t?[2,t]:(1,o={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"}]}]}},i=this._fetch(o,1,(function(e){var t=r._normalizerCountResponse(e);return function(e,t){var n={lastRequested:Date.now(),status:Te.COMPLETE,promise:Promise.resolve(t),data:t};pt.set(e,n)}(Ie.COUNT,t),t})),a=Ie.COUNT,c=i,l={lastRequested:Date.now(),status:Te.PENDING,promise:c},pt.set(a,l),[2,i]);var a,c,l}))}))},e.prototype._fetch=function(e,t,n){var o,i;return f(this,void 0,void 0,(function(){var r,s,c,l,d,u,p,h,f,y,g,b,w,_,x,L;return v(this,(function(v){switch(v.label){case 0:if(r=e.data,s=void 0===r?{}:r,c=e.params,l=void 0===c?{}:c,d="EC-4008",u="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");h=m({appId:this.appid},l),this.wssid&&(h.wssid=this.wssid),e.params=h,f=[],Object.keys(h).forEach((function(e){var t=h[e];t&&f.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t)))})),y=f.length?"?".concat(f.join("&")):"",g="https://apis.mail.yahoo.com/ws/v3/batch".concat(y),v.label=1;case 1:return v.trys.push([1,4,,5]),[4,lt(g,{method:"POST",body:JSON.stringify(s),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(b=v.sent()).json()];case 3:if(w=v.sent(),b.ok)return[2,n(null===(i=w.result)||void 0===i?void 0:i.responses)];if((_=null===(o=null==w?void 0:w.error)||void 0===o?void 0:o.code)===u)return[2,this._handleWssidApiError(w,e,t,n)];throw _===d?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw x=v.sent(),a("JWS: ".concat((L=x).message),L),x;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&&ut[t])return ut[t]}},e.prototype._normalizerCountResponse=function(e){var t,n,o,i,r,s;if(!e)return 0;var a=((null===(o=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===o?void 0:o.decos)||[]).find((function(e){return"FTI"===(null==e?void 0:e.id)}));return a&&null!==(s=null===(r=null===(i=null==a?void 0:a.counts)||void 0===i?void 0:i[0])||void 0===r?void 0:r.unseen)&&void 0!==s?s:0},e.prototype._handleWssidApiError=function(e,t,n,o){var i,r,s=null===(r=null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.details)||void 0===r?void 0:r.wssid,a=t.params,c=(void 0===a?{}:a).wssid;if(s){if(c&&s===c)throw new Error("API provided same invalid WSSID");if(void 0!==n&&n>0)return n-=1,this.wssid=s,this._fetch(t,n,o);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}(),mt={add:[{itemId:"ybar-mail-banner",reactions:["SHOWN"]}]};ve("ybar-mod-sidenav",(function(e){var t,n={sidenavBtn:document.getElementById("_yb_sidenav-btn"),sidenav:document.querySelector(".".concat(Xe)),menu:document.querySelector(".".concat(Ze)),sections:document.querySelectorAll(".".concat(Ve)),closeBtn:document.querySelector(".".concat(Oe)),panels:document.querySelectorAll(".".concat(Ge)),backBtn:document.querySelector(".".concat(Be)),footer:document.querySelector(".".concat(ze)),copyright:document.querySelector(".".concat(Re)),selectedSectionLinks:document.querySelectorAll(".".concat(Je," a")),focusedElement:document.querySelector(".".concat(Je," .").concat(He)),editionsDropdown:document.querySelector(".".concat(Pe)),mailUnread:document.querySelector(".".concat(et)),mailTooltip:document.getElementById("_yb_mail-tooltip"),tooltipClose:document.getElementById("_yb_mail-tooltip-close")},o=window.location.href.split("?")[0]?window.location.href.split("?")[0].replace(/\/$/,""):window.location.href,i=g([],y(n.selectedSectionLinks),!1);if(!n.focusedElement)for(var r=0;r0){if(o&&i){var n=t>99;o.classList.add("".concat(ot)),i.classList.add("count-loaded"),o.textContent=n?"99+":t+"",n?o.classList.add("".concat(tt)):t>=10&&o.classList.add("".concat(nt))}e.onDestroy((function(){o&&(o.textContent="")}))}})).catch((function(){}))}(e,a)}));var ft="_yb_129hs6j",vt="_yb_141wday",yt="_yb_p2v6rg",gt="_yb_m8fqf0";if("undefined"!=typeof Element&&!Element.prototype.matches){var bt=Element.prototype;bt.matches=bt.matchesSelector||bt.mozMatchesSelector||bt.msMatchesSelector||bt.oMatchesSelector||bt.webkitMatchesSelector}var wt=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function _t(e,t,n,o,i){var r=xt.apply(this,arguments);return e.addEventListener(n,r,i),{destroy:function(){e.removeEventListener(n,r,i)}}}function xt(e,t,n,o){return function(n){n.delegateTarget=wt(n.target,t),n.delegateTarget&&o.call(e,n)}}var Lt,kt=function(e,t,n,o,i){return"function"==typeof e.addEventListener?_t.apply(null,arguments):"function"==typeof n?_t.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return _t(e,t,n,o,i)})))},St=function(e){this.data=e,this.next=null,this.prev=null},Ct=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new St(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&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(ke("#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))};ve("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(qt))};Rt(e,t)}));var Pt={"dropdown-open":"_yb_fycr63","merchant-is-selected":"_yb_ud2v80",overlay:"_yb_1yhcb6b","selected-merchant-clear-button":"_yb_1ighlfs","shops-buttons":"_yb_lnl0ae","styled-select":"_yb_gl1p4v",tooltip:"_yb_3qeaik","tooltip--show":"_yb_1fnxsdb",tooltip__text:"_yb_1s5f8e9",tooltip__voice:"_yb_1tfdcne",tooltip__web:"_yb_4u71d8",dark:"_yb_1f3f94l",darker:"_yb_191t2xu",light:"_yb_1gz9jbr",midnight60:"_yb_18tzv5f","search-input-uh3-hover":"_yb_90i2d0","search-input-uh3-focus-visible":"_yb_70zoot","sa-btn-bar":"_yb_1d1j5aq","searchbox-icon-uh3":"_yb_v4gfw7",empty:"_yb_1grdue4"},Dt=function(e,t){var n=Math.max(e,t),o=Math.min(e,t),i=Math.abs(n-o);return g([],y(new Array(i+1)),!1).map((function(e,t){return o+t}))},Ht=function(e,t,n){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,r=void 0!==i&&i;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");Z("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),r&&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())}))}},zt=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())},Ut=function(e,t){var n=e.getConfig();"smartphone"===n.device&&("finance"===n.property&&"crunch"===n.ytheme&&e.addElementListener(t.searchInput,"click",(function(){var n,o;n="search_input_focus_click",null!==(o=oe())&&(ee[n]||(ee[n]=o)),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")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");Z("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){Ht(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var o=n,i=o.keyCode,r=o.key,s=Dt(65,90),a=g(g([],y(Dt(58,57)),!1),y(Dt(96,105)),!1),c=g(g([],y(s),!1),y(a),!1).includes(i);(32===i||13===i||c)&&(n.preventDefault(),n.stopPropagation(),Ht(e,t,c?r:""))})),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()),zt(t);Z("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),zt(t))}))),e.addEventListener("viewerClosed",(function(){zt(t)})),e.onDestroy((function(){zt(t)})))},Yt=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,o,i,r,s,a,c,l,d,u,p,h,m,f={516:function(e,t,n){var o,i,r,s;e.exports=(o=n(336),i="default",r=function(e){return e.reduce((function(e,t){return e[t.id]=t.defaultMessage,e}),{})},((s=function(e){var t;this.lang=(t=e&&e.lang,-1!==o.indexOf(t)?e.lang:i)}).langMap={})[i]=r(n(559)),s.setLangMap=function(e,t){e&&t&&(s.langMap[e]=r(t))},s.prototype={t:function(e){switch(!0){case Boolean(s.langMap&&s.langMap[this.lang]&&s.langMap[this.lang][e]):return s.langMap[this.lang][e];case Boolean(s.langMap&&s.langMap[i]&&s.langMap[i][e]):return s.langMap[i][e];default:return""}}},s)},383:function(e,t,n){var o=n(645),i=n.n(o)()((function(e){return e[1]}));i.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=i},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,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,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),o=y.n(n),i=y(569),r=y.n(i),s=y(565),a=y.n(s),c=y(216),l=y.n(c),d=y(589),u=y.n(d),p=y(383),(h={}).styleTagTransform=u(),h.setAttributes=a(),h.insert=r().bind(null,"head"),h.domAPI=o(),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 o(i){var r=this;if(r.config=Object.assign(n,i||{}),r.i18n=new o.I18n({lang:r.config.uiLang}),r.renderPermissionGuide(r),r.renderSpeechPanel(r),r.speechResult="",r.noSpeech=!0,r.isRecognitionStart=!1,r.recognition=null,r.voiceButton=t.querySelector(r.config.voiceButton),r.searchBoxForm=t.querySelector(r.config.searchBox.form),r.searchBoxQuery=t.querySelector(r.config.searchBox.input),r.speechPanel=t.querySelector("#spch"),r.speechButtonContainer=t.querySelector("#spchbc"),r.speechButton=t.querySelector("#spchbc-btn"),r.speechText=t.querySelector("#spcht"),r.speechOverlay=t.getElementById("spch-overlay"),r.retryLink=t.querySelector("#spcht-retry"),r.trending=t.getElementById("spch-trending"),r.trendingTerms=t.getElementById("trending-terms"),r.termSpans=t.getElementsByClassName("trending-term"),r.closeButton=t.querySelector("#spchx"),r.startAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-start-202105050733.wav"),r.resultAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-result-202105050733.wav"),r.errorAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-error-202105050733.wav"),r.closeAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-close-202105050733.wav"),r.permissionGuide=t.querySelector("#spchp"),r.permissionGuideClose=t.querySelector("#spchpx"),r.permissionGuideTimer=null,r.onEscKeyDown=function(e){"Escape"===e.code&&(r.recognition.stop(),r.sendBeacon("keybrd","voicesearch_cancel_esc"),r.closePanel(r))},r.isBrowserSupported()){var s=e.SpeechRecognition||e.webkitSpeechRecognition,a=e.SpeechGrammarList||e.webkitSpeechGrammarList;r.recognition=new s;var c=new a;c.addFromString&&c.addFromString("#JSGF V1.0;",1),r.recognition.grammars=c,r.recognition.continuous=!1,r.recognition.lang=r.config.speechLang,r.recognition.interimResults=!1,r.recognition.maxAlternatives=1,r.voiceButton&&(r.voiceButton.onclick=function(){r.recognition.start(),r.permissionGuideTimer&&e.clearTimeout(r.permissionGuideTimer),r.permissionGuideTimer=e.setTimeout((function(){r.isRecognitionStart||r.showPermissionGuide(r)}),300),t.addEventListener("keydown",r.onEscKeyDown),r.sendBeacon("clk","voicesearch")}),r.speechButton&&(r.speechButton.onclick=function(){r.isRecognitionStart?(r.recognition.stop(),r.sendBeacon("clk","voicesearch_panel_mic_close"),r.closePanel(r)):(r.recognition.start(),r.sendBeacon("clk","voicesearch_panel_mic_restart"))}),r.retryLink&&(r.retryLink.onclick=function(){r.isRecognitionStart||(r.recognition.start(),r.sendBeacon("clk","voicesearch_panel_retry"))}),r.speechOverlay&&(r.speechOverlay.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_cancel_outside"),r.closePanel(r)}),r.closeButton&&(r.closeButton.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_cancel"),r.closePanel(r)}),r.permissionGuideClose&&(r.permissionGuideClose.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_permission_close"),r.closeAudio.play(),r.hidePermissionGuide(r)}),r.recognition.onresult=function(t){r.speechResult=t.results[0][0].transcript,r.handlePunctuation(r),r.speechText&&(r.speechText.innerText=r.speechResult),r.searchBoxQuery&&(r.searchBoxQuery.value=r.speechResult),r.resultAudio.play(),e.setTimeout((function(){if(r.speechPanel&&(r.speechPanel.classList.remove("s2tb"),r.speechPanel.classList.add("s2tb-h")),r.hideRetryLink(r),r.searchBoxForm){var e=r.searchBoxForm.querySelector("[name=fr]"),t=r.searchBoxForm.querySelector("[name=fr2]");e&&r.config.searchBox&&r.config.searchBox.params&&r.config.searchBox.params.fr&&(e.value=i.searchBox.params.fr,e.disabled=!1),t&&r.config.searchBox&&r.config.searchBox.params&&r.config.searchBox.params.fr2&&(t.value=i.searchBox.params.fr2,t.disabled=!1),r.searchBoxForm.submit()}}),1e3)},r.recognition.onspeechstart=function(){},r.recognition.onspeechend=function(){r.recognition.stop()},r.recognition.onerror=function(){r.speechText&&(r.speechText.innerText=r.i18n.t("search.voice.recognition_error")),r.hideTrending(r),r.showRetryLink(r),r.errorAudio.play()},r.recognition.onaudiostart=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.add("listening")},r.recognition.onaudioend=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.remove("listening")},r.recognition.onsoundstart=function(){r.hideTrending(r),r.noSpeech=!1,r.speechButtonContainer&&(r.speechButtonContainer.classList.remove("listening"),r.speechButtonContainer.classList.add("speaking"))},r.recognition.onsoundend=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.remove("speaking")},r.recognition.onstart=function(){r.recognitionInit(r),r.startRecognition(r)},r.recognition.onend=function(){r.isRecognitionStart=!1,0==r.noSpeech&&""==r.speechResult&&(r.speechText&&(r.speechText.innerText=r.i18n.t("search.voice.recognition_nomatch")),r.hideTrending(r),r.showRetryLink(r),r.errorAudio.play())},document&&document.dispatchEvent&&document.dispatchEvent(new Event("VOICE_JS_READY"))}}o.I18n=m,o.prototype.renderPermissionGuide=function(e){var t='\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])},o.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])},o.prototype.isBrowserSupported=function(){for(var t=!1,n=this,o=Boolean(window.chrome),i=/CriOS/.test(window.navigator.userAgent),r=/Edg\//.test(window.navigator.userAgent),s=/Edge\//.test(window.navigator.userAgent),a=Boolean(window.opr),c=Boolean(window.navigator.brave),l=[{checkEnabled:function(){return!0},checkBrowser:function(){return o&&!i&&!r&&!a&&!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 o&&r&&!s},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}}],d=0;d0){var t=e.speechResult.charAt(e.speechResult.length-1);"."!==t&&"?"!==t&&"。"!==t&&"?"!==t||(e.speechResult=e.speechResult.slice(0,-1))}},o.prototype.sendBeacon=function(t,n){var o=e.YAHOO.ULT||{},i=e.YAHOO.SB||{};if(o.beacon_click){var r={_S:i.config.i13n.spaceid,_I:i.config.i13n.pvid,actn:t,sec:"search",slk:n};e.YAHOO.ULT.beacon_click(r)}},o.prototype.ajaxReq=function(n,o){var i,r,s=XMLHttpRequest.DONE||4,a=new XMLHttpRequest;if(t.documentMode&&t.documentMode1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var o=arguments.length,i=new Array(o),r=0;r{t=setTimeout((()=>o(e(...i))),n)}))}},t.getFormattedMessage=function(e,t,n){let o;if(!e&&!t)return o;if("object"!=typeof e)return o;if(o=e[t],!o)return t;n&&Object.keys(n).forEach((e=>{o=o.replace(new RegExp("{"+e+"}","g"),n[e])}));return o},t.getRelativeTimeString=function(e){const t=(e=>{const t=Date.now(),s=n,a=(+e-+t)/1e3;if(Math.abs(a)0)return{value:Math.round(h),unit:"year"};const m=12*h+u.getMonth()-p.getMonth();if(Math.round(Math.abs(m))>0)return{value:Math.round(m),unit:"month"};const f=a/r;return{value:Math.round(f),unit:"week"}})(e),s=(window.searchContext||{}).intl||"en";if(window?.Intl?.RelativeTimeFormat)try{return new window.Intl.RelativeTimeFormat(s,{numeric:"auto"}).format(t.value,t.unit)}catch(e){return""}return""},t.renderSvg=void 0;const n={second:45,minute:45,hour:22,day:5},o=3600,i=86400,r=604800;t.renderSvg=function(){let{viewBox:e,height:t,width:n,className:o,nodes:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=document.createElementNS("https://www.w3.org/2000/svg","svg");return e&&r.setAttribute("viewBox",e),t&&r.setAttribute("height",t),n&&r.setAttribute("width",n),o&&r.setAttribute("class",o),Array.isArray(i)&&i.forEach((e=>{let[t,n]=e;const o=document.createElementNS("https://www.w3.org/2000/svg",t);Object.keys(n).forEach((e=>{if("string"!=typeof n[e])throw new Error(`Invalid SVG attribute ${e}=${JSON.stringify(n[e])}`);o.setAttribute(e,n[e])})),r.appendChild(o)})),r}})),Vt=n((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports})),Wt=n((function(e){var t;(t=void 0===t?{}:t).attention={name:"attention",height:48,width:48,path:"M24.993 46.424c-12.13 0-22-9.87-22-22s9.87-22 22-22 22 9.87 22 22-9.87 22-22 22zm0-40c-9.925 0-18 8.075-18 18 0 9.926 8.075 18 18 18s18-8.074 18-18c0-9.924-8.075-18-18-18zM24.993 27.424c-1.104 0-2-.895-2-2v-10c0-1.104.896-2 2-2s2 .896 2 2v10c0 1.105-.895 2-2 2zM22.993 33.424a2 2 0 1 0 4 0 2 2 0 1 0-4 0z"},e.exports&&(e.exports=t.attention)})),Jt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;t.Icon=class{constructor(){let{nodes:e,viewBox:t="0 0 48 48",width:n=16,height:o=16,className:i=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.nodes=e,this.viewBox=t,this.width=n,this.height=o,this.className=i}render(){return(0,Gt.renderSvg)(this)}}})),Kt={dummy:"_dummy_1ny14_3",noDisplay:"_noDisplay_1ny14_6",IbBox:"_IbBox_1ny14_9",BoxShadow:"_BoxShadow_1ny14_13",list:"_list_1ny14_16",selectedBackground:"_selectedBackground_1ny14_21",suggestionList:"_suggestionList_1ny14_25",resultsContainer:"_resultsContainer_1ny14_40",desktop:"_desktop_1ny14_43",smartphone:"_smartphone_1ny14_46",sectionHeader:"_sectionHeader_1ny14_49",sectionHeaderTitle:"_sectionHeaderTitle_1ny14_54",screenerText:"_screenerText_1ny14_66",screenerLink:"_screenerLink_1ny14_69",screenerIcon:"_screenerIcon_1ny14_84",errorMessage:"_errorMessage_1ny14_89",errorIcon:"_errorIcon_1ny14_96",tipMessage:"_tipMessage_1ny14_101",modernSuggestionItem:"_modernSuggestionItem_1ny14_111",linkItem:"_linkItem_1ny14_114",itemLeftCol:"_itemLeftCol_1ny14_127 _IbBox_1ny14_9",itemRightCol:"_itemRightCol_1ny14_131 _IbBox_1ny14_9",itemIconContainer:"_itemIconContainer_1ny14_136",itemIconContainerNoBg:"_itemIconContainerNoBg_1ny14_144",itemImageIconContainer:"_itemImageIconContainer_1ny14_150",Ell:"_Ell_1ny14_157",itemIcon:"_itemIcon_1ny14_136",ItemVideoIcon:"_ItemVideoIcon_1ny14_181 _itemIcon_1ny14_136",itemTitle:"_itemTitle_1ny14_186 _Ell_1ny14_157",itemTitleOnly:"_itemTitleOnly_1ny14_199 _itemTitle_1ny14_186 _Ell_1ny14_157",itemMeta:"_itemMeta_1ny14_203 _itemTitle_1ny14_186 _Ell_1ny14_157",itemSeperator:"_itemSeperator_1ny14_209"},Xt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerManager=void 0;t.ListenerManager=class{constructor(){this.listeners=[]}add(e,t,n){e&&"function"==typeof e.addEventListener&&(this.listeners.push({node:e,type:t,callback:n}),e.addEventListener(t,n))}destroy(){this.listeners.forEach((e=>{let{node:t,type:n,callback:o}=e;t.removeEventListener(n,o)})),this.listeners=[]}}})),$t=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionItem=void 0;var n=Vt(Kt);t.SuggestionItem=class{constructor(e){let{suggestion:t,sectionIndex:n,query:o,itemIndex:i,className:r="",onClick:s=(()=>{}),onKeyDown:a=(()=>{}),defaultIcon:c}=e;this.query=o,this.suggestion=t,this.sectionIndex=n,this.itemIndex=i,this.className=r,this.href=t.linkCallback?t.linkCallback:t.link,this.onClick=s,this.onKeyDown=a,this.defaultIcon=c,this.listeners=new Xt.ListenerManager}_renderIcon(e,t){let{imageIcon:o,imageIconBgColor:i,title:r,viewBox:s,icon:a,noIconBg:c,iconWidth:l,iconHeight:d,itemIconColor:u}=e;const p=document.createElement("div");if(o){const e=document.createElement("img");e.src=o,e.width=32,e.alt=r,p.className=n.default.itemImageIconContainer,i&&(p.style.backgroundColor=`#${i}`,p.style.borderRadius="50%"),p.appendChild(e)}else if(a||t){p.className=c?n.default.itemIconContainerNoBg:n.default.itemIconContainer;const e=new Jt.Icon({nodes:[["path",{d:a?.path||t?.path}]],className:n.default.itemIcon,viewBox:s||"0 0 48 48",width:l||32,height:d||32}).render();u&&(e.style.fill=`#${u}`),p.appendChild(e)}return p}render(){const e=document.createElement("li");e.setAttribute("role","link"),e.setAttribute("title",this.suggestion.title),e.setAttribute("tabindex","0"),e.setAttribute("data-type",this.type),e.setAttribute("data-index",this.sectionIndex),e.setAttribute("data-pindex",this.itemIndex),e.className=n.default.linkItem+" "+this.className,this.listeners.add(e,"click",this.onClick),this.listeners.add(e,"keydown",this.onKeyDown);const t=document.createElement("div"),o=document.createElement("div");t.className=n.default.itemLeftCol,o.className=n.default.itemRightCol,t.appendChild(this._renderIcon(this.suggestion,this.defaultIcon));const i=document.createElement("h5");if(i.className=n.default.itemTitleOnly,i.textContent=this.suggestion.title,o.appendChild(i),this.suggestion.subtitle){i.className=n.default.itemTitle;const e=document.createElement("div");e.className=n.default.itemMeta;const t=document.createElement("span");if(t.textContent=this.suggestion.subtitle||"",e.appendChild(t),this.suggestion.timeStamp){const t=document.createElement("i");t.setAttribute("aria-hidden","true"),t.className=n.default.itemSeperator,t.innerHTML="•",e.appendChild(t);const o=document.createElement("span");o.textContent=(0,Gt.getRelativeTimeString)(1e3*this.suggestion.timeStamp),e.appendChild(o)}o.appendChild(e)}return e.appendChild(t),e.appendChild(o),e}}})),Zt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionList=void 0;var n=Vt(Wt),o=Vt(Kt);const i={smartphone:"smartphone",desktop:"desktop"},r="typing";t.SuggestionList=class{constructor(e,t){let{i13n:n,device:o,strings:r={},onClearCb:s,onSelectCb:a,rapidInstance:c}=t;this.els=e,this.listeners=new Xt.ListenerManager,this.i13n=n,this.strings=r,this.onClearCb=s,this.onSelectCb=a,this.rapidInstance=c,this.query="",this.suggestions=null,this.resultsNode=null,this.suggestionNode=null,this.footerNode=null,this.selectedIndex=-1,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.loadSuggestions=this.loadSuggestions.bind(this),this.hideSuggestions=this.hideSuggestions.bind(this),this.showSuggestions=this.showSuggestions.bind(this),this.onResize=this.onResize.bind(this),this.device=i[o]||"desktop",this.init()}init(){const{clearBtn:e,input:t,resultsWrap:n}=this.els;if(n){t&&(t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","both"),t.setAttribute("aria-expanded","false"),t.setAttribute("required","")),n.classList.add(o.default.noDisplay),this.resultsNode=document.createElement("div"),this.resultsNode.className=o.default.suggestionList+" "+o.default[this.device],this.updateResultsNodeTopOffset(),this.suggestionNode=document.createElement("div"),this.suggestionNode.className=o.default.resultsContainer,this.resultsNode.appendChild(this.suggestionNode),n.appendChild(this.resultsNode),this.footerNode=document.createElement("footer"),this.footerNode.className=o.default.noDisplay;const i=document.createElement("p");i.className=o.default.tipMessage,i.textContent=(0,Gt.getFormattedMessage)(this.strings,"SEARCH_TIP"),this.footerNode.appendChild(i),this.resultsNode.appendChild(this.footerNode),e&&!t.checkValidity()&&(e.classList.add(o.default.noDisplay),this.listeners.add(e,"click",this.onClear)),"smartphone"!=this.device&&this.listeners.add(window,"resize",this.onResize)}}destroy(){const{clearBtn:e,resultsWrap:t,input:n}=this.els;this.listeners.destroy(),t&&(t.classList.remove(o.default.noDisplay),this.resultsNode.parentNode.removeChild(this.resultsNode),delete this.resultsNode),e&&n.checkValidity()&&e.classList.remove(o.default.noDisplay)}showSuggestions(){const{container:e,input:t,resultsWrap:n}=this.els;n&&(this.listeners.add(document,"click",this.onDocumentClick),n.classList.remove(o.default.noDisplay),t&&(e&&(e.classList.add(r),document.body.classList.add(r)),t.setAttribute("aria-expanded","true")))}onSubmit(e){if(this.suggestionNode.length>0&&this.selectedIndex>-1){e.preventDefault();const t=this.suggestionNode[this.selectedIndex],n=Number(t.getAttribute("data-index")),o=Number(t.getAttribute("data-pindex"));this.handleItemSelect(e,{sectionIndex:n,itemIndex:o,i13nModel:{elm:"kybrd"}},(e=>{"function"==typeof this.onSelectCb&&this.onSelectCb(e)}))}(0,Gt.beaconClick)(this.i13n.sec,"websrch",{subsec:this.i13n.subsec,itc:0,elm:"itm",elmt:"kybrd",rspns:"nav",pp:{query:this.query}},(()=>{e.target.submit()}),this.rapidInstance)}handleItemSelect(e,t){let{sectionIndex:n,itemIndex:o,i13nModel:i}=t,r=this.suggestions&&this.suggestions[n]&&this.suggestions[n].items&&this.suggestions[n].items[o]||{};const s=r?this.suggestions[n].linkCallback?this.suggestions[n].linkCallback:r.link:null;let a=s;s&&"function"==typeof s&&(a=s(e,r,(()=>{}))),(0,Gt.beaconClick)(this.i13n.sec,this.suggestions[n].sectionName,{subsec:this.i13n.subsec,itc:0,elm:"itm",elmt:"link",rspns:"nav",ct:this.suggestions[n].type.toLowerCase(),cat:"",_p:n,cpos:o,pp:{query:this.query},tar:window.location.hostname,tar_uri:a,...i},(()=>{a&&window.location.assign(a)}),this.rapidInstance)}hideSuggestions(){const{clearBtn:e,container:t,input:n,resultsWrap:i}=this.els;i&&(document.removeEventListener("click",this.onDocumentClick),i.classList.add(o.default.noDisplay),e&&!n.checkValidity()&&e.classList.add(o.default.noDisplay),n&&n.setAttribute("aria-expanded","false"),t&&(document.body.classList.remove(r),t.classList.remove(r)))}loadSuggestions(e,t){const{clearBtn:n,input:i}=this.els;this.suggestions&&t&&this.suggestions.timestamp>t.timestamp||(this.clear(),this.query=e,this.suggestions=t.suggestions,this.render(),n&&i.checkValidity()?n.classList.remove(o.default.noDisplay):n.classList.add(o.default.noDisplay),this.suggestions?.[0]&&0===Object.keys(this.suggestions[0]).length?this.resultsNode.classList.remove(o.default.BoxShadow):this.resultsNode.classList.add(o.default.BoxShadow))}onDocumentClick(e){this.els.form.contains(e.target)||this.hideSuggestions()}onSelect(e){let t=e.target;if(!t)return;for(;null!==t.parentNode&&(!t.nodeName||"li"!==t.nodeName.toLowerCase());)t=t.parentNode;const n=Number(t.getAttribute("data-index")),o=Number(t.getAttribute("data-pindex"));this.handleItemSelect(e,{sectionIndex:n,itemIndex:o},(e=>{"function"==typeof this.onSelectCb&&this.onSelectCb(e)}))}onClear(e){const{clearBtn:t,input:n}=this.els;(0,Gt.beaconClick)(this.i13n.sec,"clr-click",{subsec:this.i13n.subsec,itc:1,elm:"icn",elmt:"clr",outcm:"srch-clr"},(()=>{}),this.rapidInstance),t.classList.add(o.default.noDisplay),n.value="","function"==typeof this.onClearCb&&this.onClearCb(e),n.focus()}onKeyDown(e){"Enter"===e.key&&this.onSelect(e)}onResize(){this.updateResultsNodeTopOffset()}clear(){for(;this.suggestionNode.firstChild;)this.suggestionNode.removeChild(this.suggestionNode.firstChild);this.query="",this.suggestions=null}render(){if(!this.suggestionNode)return;this.query?this.suggestionNode.classList.add("is-gossip"):this.suggestionNode.classList.remove("is-gossip"),this.footerNode.classList.contains(o.default.noDisplay)||(this.footerNode.classList.add(o.default.noDisplay),this.suggestionNode.classList.remove(o.default.BoxShadow));const e=document.createDocumentFragment();if(this.suggestions&&0!==this.suggestions.length)this.suggestions&&this.suggestions.forEach(((t,n)=>{const o=this.renderSectionHeader(t.title);o&&e.appendChild(o),e.appendChild(this.renderSectionList(t,n))}));else{const t=document.createElement("div");t.className=o.default.errorIcon,t.appendChild(new Jt.Icon({nodes:[["path",{d:n.default.path}]]}).render());const i=document.createElement("div");i.className=o.default.errorMessage,i.textContent=(0,Gt.getFormattedMessage)(this.strings,"MSG_NO_SEARCH_RESULTS",{query:decodeURIComponent(this.query||"")}),e.appendChild(t),e.appendChild(i),this.footerNode.classList.remove(o.default.noDisplay)}this.suggestionNode.appendChild(e)}renderSectionList(e,t){const n=document.createDocumentFragment(),i=e.items;if(i&&$t.SuggestionItem)for(let o=0;o0?e.offsetHeight:44)+"px"}}})),Qt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=()=>{};t.default=class{constructor(e){this.els=e,this.listeners=new Xt.ListenerManager}init(){let{getSearchResult:e=n,rapidInstance:t,i13n:o,device:i,strings:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{form:s,input:a}=this.els;if(s){if(!a)return void console.warn("[SearchJS] No input Node found, see documentation to configure input");let n=this.els.resultsWrap;n||(n=document.createElement("div"),s.appendChild(n),this.els.resultsWrap=n);const c=this.suggestionList=new Zt.SuggestionList(this.els,{i13n:o,strings:r,device:i,container:n,onSelectCb:this.onSelect,onClearCb:this.onClear,rapidInstance:t});this.listeners.add(a,"input",(0,Gt.debouncePromise)((t=>{if(c){const n=(t.target.value||"").trim();e(n,{type:"input"},(e=>{c.loadSuggestions(n,e)})),c.showSuggestions()}}))),this.listeners.add(a,"focus",(()=>{if(c){const t=(a.value||"").trim();e(t,{type:"focus"},(e=>{c.loadSuggestions(t,e)})),c.showSuggestions()}})),this.listeners.add(a,"keydown",(e=>{switch(e.key){case"ArrowUp":case"ArrowDown":break;case"Escape":a.blur(),c?.hideSuggestions(e);break;case"Spacebar":case" ":""===a.value.trim()&&(e.preventDefault(),e.stopPropagation())}})),this.listeners.add(s,"submit",(e=>{e.preventDefault(),c?.onSubmit(e)})),this.listeners.add(s,"focusout",(e=>{const t=e.relatedTarget;t&&!s.contains(t)&&(a.blur(),c?.hideSuggestions(e))}))}else console.warn("[SearchJS] No form Node provided")}destroy(){this.listeners.destroy(),this.suggestionList.destroy(),delete this.suggestionList}onSelect(e){let{index:t,type:n,url:o,symbol:i,query:r}=e;"function"!=typeof this.onSelectCb?window.location.assign(o):this.onSelectCb({index:t,type:n,url:o,symbol:i,query:r})}onClear(){this.suggestionList&&this.suggestionList.showSuggestions()}}})),en=Qt.default,tn=function(){
    Similar news
    News Archive
    • Murder hornet
      Murder hornet
      ‘Murder Hornets’ Are Now In The U.S., What Does This Really Mean
      3 May 2020
      2
    • Sarah Moulds
      Sarah Moulds
      Sarah Moulds who was filmed kicking and slapping horse is SACKED from primary school teaching job
      21 Dec 2021
      10
    • Haier
      Haier
      Rail Transit Air-conditioning Market Upcoming Trends, Segmented by Type, Application, End-User and Region ...
      17 Apr 2022
      4
    • Renato Sanches
      Renato Sanches
      Wolves Transfer News: Tim Spiers clarifies Renato Sanches situation
      31 Aug 2021
      4