':"";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?D:"",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}
    ',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(q))}},{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}(),F=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(q)}},{key:"refreshPanelNode",value:function(e,t){var n=this;S(n._notifPanelNode,R),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"),S(n._notifPanelNode,R)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(i.css)),T(n._notifPanelNode,R),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),S(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?S(this._indicatorNode,this._config.panel.indicatorClass):T(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?T(e._badgeNode,e._config.badge.hideClass):S(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}},j={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 B(n.config,n._request),n._view=new H(n.config,n._store),n._panelController=new F(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 I(t,U),t)if(t.hasOwnProperty(n)){var i=t[n],o=e[n];"object"===(void 0===i?"undefined":_(i))?I(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(){T(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},Y="lnct",z=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 j.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(M&&!r)return M;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 M=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=M.promos)||void 0===o?void 0:o.subscriptionTopic)&&delete M.promos.subscriptionTopic,M},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}(),G=new z,W=function(){return G},V="",K=[],Z=function(){},J=function(){window.removeEventListener("beforeunload",J),""!==V&&c("Rapid not found on page",new Error(V))},Q=null,X=function(){return null===Q&&(Q=document.getElementById("ybar")),Q},$=function(){var e=0,t=window.YAHOO;if(O)return O;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length0)for(var n=0;n0){if(O.addModules(o,!1,i),K.length>0)for(e=0;e40959)&&(o19903)&&(o55215))return!1}return!0},ve={navBeaconFired:!1},ye=["ready","navigation"],ge=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=te,this.state=h({},ve),this.modules=e,this.userEmail="",window.YBAR&&(ye.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)),ye.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&&Be("performance",e)}catch(e){}}),1e3)})),ue(),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};Be("error",o)}catch(e){}}));var qe,Pe,De="_yb_19ujfnt",He="_yb_le1c7o",Fe="_yb_1243rq0",Ue="_yb_191ptgy",je="_yb_8cc4p2",Ye="_yb_1av6c34",ze="_yb_9t90qi",Ge="_yb_1tu46zh",We="_yb_9jocsz",Ve="_yb_13x5m53",Ke="_yb_1gbknek",Ze="_yb_19ulbrr",Je="_yb_xuv98",Qe="_yb_z547h0",Xe="_yb_1sypxam",$e="_yb_109dgwu",et="_yb_esrp4p",tt="_yb_11peagl",nt="_yb_1q4vcgj",it="_yb_16uw07v",ot="_yb_33cyw3",at="_yb_hfqltm",rt="_yb_1mxk1ez",st="_yb_1r5r92",ct="_yb_5ioj7i",lt="_yb_1ic2dyq",ut="_yb_1alnqyj",dt={animation:"_yb_xzi582","left-open":"_yb_7yteo6",noscroll:"_yb_1wsurjc",overlay:"_yb_1ux3n32","fade-in-out":"_yb_53m9cb","right-open":"_yb_1dtetlp","center-open":"_yb_bkp1jq"},pt=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)}},ht=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.statusn?Promise.resolve(t.data):void 0}}(qe.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};yt.set(e,n)}(qe.COUNT,t),t})),s=qe.COUNT,c=o,l={lastRequested:Date.now(),status:Pe.PENDING,promise:c},yt.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&&"mail_wssid"!==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,mt(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&&vt[t])return vt[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}(),bt={add:[{itemId:"ybar-mail-banner",reactions:["SHOWN"]}]};we("ybar-mod-sidenav",(function(e){var t,n={sidenavBtn:document.getElementById("_yb_sidenav-btn"),sidenav:document.querySelector(".".concat(tt)),menu:document.querySelector(".".concat(it)),sections:document.querySelectorAll(".".concat(Qe)),closeBtn:document.querySelector(".".concat(He)),panels:document.querySelectorAll(".".concat(Je)),backBtn:document.querySelector(".".concat(De)),footer:document.querySelector(".".concat(Ge)),copyright:document.querySelector(".".concat(Ue)),selectedSectionLinks:document.querySelectorAll(".".concat($e," a")),focusedElement:document.querySelector(".".concat($e," .").concat(ze)),editionsDropdown:document.querySelector(".".concat(je)),mailUnread:document.querySelector(".".concat(at)),mailTooltip:document.getElementById("_yb_mail-tooltip"),tooltipClose:document.getElementById("_yb_mail-tooltip-close")},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(ct)),o.classList.add("count-loaded"),i.textContent=n?"99+":t+"",n?i.classList.add("".concat(rt)):t>=10&&i.classList.add("".concat(st))}e.onDestroy((function(){i&&(i.textContent="")}))}})).catch((function(){}))}(e,s)}));var wt="_yb_1e46uhr",_t=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&&(Te("#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))};we("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(wt))};_t(e,t)}));var Et={"dropdown-open":"_yb_1qr55t8","merchant-is-selected":"_yb_hpfgev",overlay:"_yb_1t4opbo","selected-merchant-clear-button":"_yb_sdzekv","shops-buttons":"_yb_1gmhi8h","styled-select":"_yb_1fed2vs",tooltip:"_yb_156j5sr","tooltip--show":"_yb_t94u7s",tooltip__text:"_yb_149d3c6",tooltip__voice:"_yb_rkldcd",tooltip__web:"_yb_1bze76z",dark:"_yb_of9a42",darker:"_yb_1br2rz9",light:"_yb_p0373k","search-border-gradient":"_yb_109k2ga","search-border-gradient-hover":"_yb_vljmzl",midnight60:"_yb_1o792pg","search-input-uh3-hover":"_yb_15ox84z","search-input-uh3-focus-visible":"_yb_1e6541m","sa-btn-bar":"_yb_1axm66t","searchbox-icon-uh3":"_yb_1uef33k",empty:"_yb_owcm9n"},xt=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}))},Lt=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");ee("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())}))}},Ct=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())},kt=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
    \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/?`~]$/.test(o);(a||r||s)&&!n&&(t.searchGradientBorder.classList.add("".concat(Et["search-border-gradient-hover"])),n=!0)})),e.addElementListener(t.searchForm,"mouseover",(function(){n||t.searchGradientBorder.classList.add("".concat(Et["search-border-gradient-hover"]))})),e.addElementListener(t.searchForm,"mouseout",(function(){n||t.searchGradientBorder.classList.remove("".concat(Et["search-border-gradient-hover"]))})),e.addElementListener(t.searchInput,"click",(function(){n=!0})),e.addElementListener(t.searchInput,"blur",(function(){t.searchGradientBorder.classList.remove("".concat(Et["search-border-gradient-hover"]))}))}t.searchForm&&(e.addElementListener(t.searchBoxIcon,"mouseover",(function(){t.searchForm.classList.add("".concat(Et["search-input-uh3-hover"]))})),e.addElementListener(t.searchBoxIcon,"mouseout",(function(){t.searchForm.classList.remove("".concat(Et["search-input-uh3-hover"]))})),e.addElementListener(t.buttonBar,"mouseover",(function(){t.searchForm.classList.add("".concat(Et["search-input-uh3-hover"]))})),e.addElementListener(t.buttonBar,"mouseout",(function(){t.searchForm.classList.remove("".concat(Et["search-input-uh3-hover"]))})),e.addElementListener(t.searchInput,"keyup",(function(e){"Tab"===e.key&&t.searchForm.classList.add("".concat(Et["search-input-uh3-focus-visible"])),t.searchInput.classList.toggle("".concat(Et.empty),""===t.searchInput.value)})),e.addElementListener(t.searchInput,"keydown",(function(){t.searchForm.classList.remove("".concat(Et["search-input-uh3-focus-visible"]))})),e.addElementListener(t.searchInput,"focusout",(function(){t.searchForm.classList.remove("".concat(Et["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(Et.empty))})))})),function(){var e,t,n,i,o,a,r,s,c,l,u,d,p,h,m=window,f=document,v=(m=(function(e,t){var n,i=!1,o="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 a(e,t,n){return n=0\&]/gim,(function(e){return""+e.charCodeAt(0)+";"}))},afterOnload:function(t){if(v())return t();var n=function(t,n){i=!0,h(e,"load",n),t()}.bind(e,t,n);p(e,"load",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){var o,r,s,c,l;return i=i||{},t.toLowerCase()==n.toLowerCase()?e.replace(/\{s\}/g,t):(o=n.split(/[\s|,]+/).filter((function(e){return""!==e}))).length?(r=/[~`!@#$%^&*()_\-+={[}\]|\\:;"'.?/]/g,i.ignorePunctuation&&(o=o.concat(o.filter((function(e){return r.test(e)})).map((function(e){return e.replace(r,"")})))),i.v3?(n=t.split(/[\s|,]+/).filter((function(e){return""!==e})),s=0,c=[],n.map((function(t,n){var l=n+s;return-1>>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>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1this.length)&&-1!==this.indexOf(e,t)}),window),f=document,m.YAHOO),y=v.NB,g={},b="before_get_assist",w="before_display_data",_="before_init_view",E="after_init_view",x="before_parse_data",L="before_update_assist",C="after_update_list",k="after_create_item",S="before_show_sa",A="after_reset_view",T="before_hide_view",I="after_hide_view",M="after_expanded",O="after_init_controller",N="click_assist",B="before_query_assist",R="before_key_submit",q="before_button_submit",P="before_submit_query",D="before_sb_focus",H="after_sb_focus",F="before_sb_blur",U="after_sb_blur",j="before_beacon",Y="after_set_ylc",z="after_reset_controller",G="after_item_highlight",W="after_item_reset_highlight",V="aria-activedescendant";function K(e,t){var n,i;for(i in t=(e=e||{}).tag||t||"div",n=f.createElement(t),e.css&&(n.className=e.css),e.text&&(n.textContent=e.text),e.attrs)y.set(n,i,e.attrs[i]);for(i in e.style)n.style[i]=e.style[i];return e.wrap?((t=K(e.wrap)).appendChild(n),t):(t=y.cleanHTML(n,!0))?t[0]:null}function Z(e){this.config=e||{},this.listeners={},this.cb={}}function J(){}function Q(){}function X(){}function $(){var e=this.app.view.elems,t=e.sbClear;t&&(0{0}'}}function be(e){var t=this.config,n=0,i=0,o=0,a=e.r;if(0'+o.contentRating+"":"",e.li.innerHTML+=y.cleanHTML(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 _e(e){var t,n,i=this,o=i.whatToWatch,a=o.length,r=i.config,s=i.createElem;if(0{0}
    {1}
    {2}'}}function xe(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")),y.set(e.edit,"pos",e.idx)}function Le(){this.config={ctn:{css:"sa-edit"},icon:{css:"sa-edit-icon"},text:{css:"sa-edit-text"}}}function Ce(){}function ke(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=y.cleanHTML(c),r.className+=" quick-facts",r.appendChild(i)),l&&((i=s(n.subtitle,"p")).innerHTML=y.cleanHTML(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 Se(){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 Ae(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} · {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 Me(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 Oe(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 Ne(){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}vs{3}{4}',league_l_tmpl:'{0}{2} vs {3}{5}{6} {7} {8}',league_f_tmpl:'{0}{2} vs {3}{5}{6}',liveIconClass:"sa-ico-live",liveIconText:"",maxLen:60,sepThreshold:10}}function Be(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 Re(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 qe(){this.config={enableHL:!1,enableThumb:!1,tmpl:'{1} {2} {3}',tmpl_hl:'{1} {2} {3} {4} {5} {6}'}}function Pe(e){var t,n,i,o=this.config,a=e.m,p=e.d,h=(e=e.fd)&&e[r]?e[r]:0;27==a&&e&&!h&&(p&&"movie"==p.subdn?(n=e[s]||"",a=e[c]&&e[c][0]?e[c][0]+" "+o.text.movie:o.text.movie,h=e[l]?new Date(e[l]):"",t=new Date,h&&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 Ye(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 ze(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 Ge(){this.config={titleTpl:"1 {0} = {1}"}}function We(e){var t=this.config,n=this.app.format,i=e.m;e=e.fd;t.enabled&&54===i&&e&&(i=e[p]||e[h],e.title=n(t.titleTpl,[e.num,i]))}function Ve(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 Ke(){this.config={titleTpl:"{0} {1}"}}function Ze(e){var t=e.m,n=e.fd;if(79==t&&n){var i=n.answeredby;if(i&&0')}c&&(r+=''+c+""),r+=(c?" ":"")+y.bold(this.app.config.boldTag,s(o.name),s(e.q)),a&&1
    Manage history'},log:{sec:"search",slk:"clear history",rspns:"upd",t2:"search",t4:"clear history"}}}function ut(){function e(e){e.keyCode&&27!==e.keyCode&&13!=e.keyCode||(y.stopPropagation(e),a.value="",y.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&&(y.ae(r,"click",e),y.ae(r,"keydown",e))}function dt(){this.config={log:{_r:2,actn:"clk",pos:1,sec:"search",slk:"clearsearch",t1:"hdr",t2:"search",t3:"clear",t4:"clearsearch"}}}v.SA=(t=[],Z.prototype={jsonp:function(e){var t=f.getElementsByTagName("head")[0],n=f.createElement("script");y.set(n,"type","text/javascript"),y.set(n,"src",e),t.appendChild(n),y.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"+a+" "+n.config.saAria.shownText+"")),o.notify(M)},show:function(){var e=this,t=e.config,n=e.elems.sbInput.value,i=n.length;e.updateRows(),e.app.notify(S),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(T),y.removeClass(f.body,o.typingClass),i&&i.parentElement&&y.removeClass(i.parentElement,o.typingClass),y.removeClass(i,o.noResultClass),e.clearAssist(),e.shown=!1,e.triggered=!1,o.restoreScrollPosition&&window.scroll({top:e.previousScrollY}),t&&(y.set(t,"aria-expanded","false"),e.useTextArea)&&y.set(t,"rows","1"),n&&(y.set(n,"aria-expanded","false"),n.innerHTML=y.cleanHTML("

    "+e.config.saAria.closedText+"

    ")),a.notify(I)},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(){var e=this.elems;e.saTray.innerHTML="",this.items.splice(0,this.items.length),this.assistItem=null,y.set(e.sbInput,V,"")},createItem:function(e){var t,n={idx:t=e.idx,data:e.origData},i=y.htmlEncode,o=this.config,a=this.app.createElem,r={},s=(o.highlight&&y.merge(r,o.highlight),e.highlight&&y.merge(r,e.highlight),a(o.saItem,"li"));return(t=(y.set(s,"pos",t),s.id+=t,a(o.saTitle,"span"))).innerHTML=y.cleanHTML(e.t||(o.boldTag&&e.k&&e.q?y.bold(o.boldTag,i(e.k),i(e.q),r):i(e.k))),s.appendChild(t),n.li=s,n.title=t,n},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(A)},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,y.set(n,"rows",Math.min(Math.floor(n.scrollHeight/e.rowHeight),t.inputMaxRows||5)),n.style.height="")}},X),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",id:"sa-item"}},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"}},g.hideSbClr=(ee.prototype={init:function(e){(this.app=e).on(S,$,this),e.on(E,$,this)}},ee),g.entityFocus=(ie.prototype={init:function(e){(this.app=e).on(P,ne,this)}},ie),g.saFr=(se.prototype={init:function(e){(this.app=e).on(E,oe,this),e.on(B,ae,this),e.on(A,re,this)}},se),g.ipos=(ue.prototype={init:function(e){(this.app=e).on(S,ce,this),e.on(b,le,this)}},ue),g.saTray=(pe.prototype={init:function(e){(this.app=e).on(_,de,this)}},pe),g.saFlvr=(me.prototype={init:function(e){e.on(k,he,this)}},me),g.saShoppingRefinement=(ge.prototype={init:function(e){var t=this;t.shoppingRefinement=[],t.beforeNode=null,t.currentPos=0,t.category="",(t.app=e).on(x,fe,t),e.on(k,ve,t),e.on(C,ye,t)}},ge),g.saWhatToWatch=(Ee.prototype={init:function(e){var t=this;t.whatToWatch=[],t.beforeNode=null,t.currentPos=0,(t.app=e).on(w,be,t),e.on(k,we,t),e.on(C,_e,t)}},Ee),g.saEdit=(Le.prototype={init:function(e){e.on(k,xe,this)}},Le),g.saDirectTitle=(Ce.prototype={init:function(e){(this.app=e).on(L,(function(e){441===e.m&&(e.t=e.k,e.origData.k=e.k.replace(//gi,""))}),this)}},Ce),g.saAnnot=(Se.prototype={init:function(e){e.on(k,ke,this)}},Se),g.saStock=(Ie.prototype={init:function(e){(this.app=e).on(L,Ae,this),e.on(k,Te,this)}},Ie),g.saSport=(Ne.prototype={init:function(e){(this.app=e).on(L,Me,this),e.on(k,Oe,this)}},Ne),g.saWeather=(qe.prototype={init:function(e){(this.app=e).on(L,Be,this),e.on(k,Re,this)}},qe),g.saEntertainments=(r="show_subtitle",s="year",c="genre",l="releaseDate",u="offer",d="tvNetwork",De.prototype={init:function(e){(this.app=e).on(L,Pe,this),e.fdToSH=e.fdToSH.concat([r,s,c,l,u,d])}},De),g.saFlightStatus=(je.prototype={init:function(e){(this.app=e).on(L,Fe,this),e.on(k,Ue,this)}},je),g.saCurrencyConverter=(Ge.prototype={init:function(e){(this.app=e).on(L,Ye,this),e.on(k,ze,this)}},Ge),g.saUnitConverter=(p="resultUnitAbbr",h="resultUnit",Ke.prototype={init:function(e){(this.app=e).on(L,We,this),e.on(k,Ve,this),e.fdToSH=e.fdToSH.concat([p,h,"num"])}},Ke),g.saAnswers=(Je.prototype={init:function(e){(this.app=e).on(L,Ze,this)}},Je),g.saImg=(Xe.prototype={init:function(e){e.on(k,Qe,this)}},Xe),g.saGroup=(nt.prototype={init:function(e){var t=this;t.app=e,t.grps=[],t.mkrs={},e.on(k,$e,t),e.on(C,tt,t)}},nt),g.saPCActn=(st.prototype={init:function(e){var t=this;t.app=e,t.selectedIndex=-1,e.on(w,it,t),e.on(O,ot,t),e.on(H,at,t),e.on(U,rt,t)}},st),g.tapRmv=(lt.prototype={init:function(e){(this.app=e).on(N,ct,this)}},lt),g.tapClr=(dt.prototype={init:function(e){(this.app=e).on(O,ut,this)}},dt)}();var Tt,It,Mt,Ot={"bot-search-icon":"_yb_1jihrzz","bot-search-icon-container":"_yb_18dhq2d","bot-search-item":"_yb_hev6g1","bot-search-item-col":"_yb_1yxmga4","bot-search-span":"_yb_nomrnc",history:"_yb_66t3kx","list-item-hover":"_yb_cn7lxu",lowlight:"_yb_1l72bih","no-wrap":"_yb_16sjj0b","related-title":"_yb_t3itwh",sa:"_yb_19hztkh","sa-annot-rich":"_yb_1k43egr","sa-annot-subtitle":"_yb_ogobkf","sa-annot-title":"_yb_6jsl4b","sa-company":"_yb_1p9nvwb","sa-edit":"_yb_1qpomao","sa-edit-icon":"_yb_jc7lk6","sa-edit-text":"_yb_sz4p0w","sa-fd-actn-cont":"_yb_y2f00g","sa-grp-hdr":"_yb_135tx56","sa-grp-hdr-title":"_yb_npklbb","sa-history":"_yb_kmwza6","sa-img":"_yb_186xagv","sa-img-ctn":"_yb_99puyz","sa-img-icon":"_yb_1n92ol5","sa-item":"_yb_19hlxd5","sa-item-title":"_yb_1bf7n38","sa-rich-thumb":"_yb_1u2z3wn","sa-sbx-container":"_yb_y1750f","sa-sugg":"_yb_10xap8a","sa-thumb-icon":"_yb_f7auvw","sa-tray":"_yb_jgbjnm","sa-tray-list-container":"_yb_1s7re6f","sa-trending":"_yb_1cfj85","sub-assist":"_yb_1e2829x","suggestion-title":"_yb_1q6q8ma",trending:"_yb_h9we4q","trending-title":"_yb_a309uv","yui3-highlight":"_yb_1i6wnm0",safadein:"_yb_193degg","uh3-layout":"_yb_tj6xve","sa-answer":"_yb_129e1mo","sa-creator":"_yb_jpuy8w","sa-group-holder":"_yb_12gi82e",sacollapse:"_yb_q75lkq","sa-nomatch":"_yb_v5oh1q","sa-shield-icon":"_yb_ugjhph","sa-question-icon":"_yb_5e3f9w","sa-eye-icon":"_yb_1joteeb","search-gradient-background":"_yb_1pay9tx"},Nt={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:Ot["sa-tray"]},saBE:{base:"",host:"",params:{appid:"yfp-t"}},saItem:{css:""},saList:{css:Ot["sa-tray-list-container"],attrs:{role:"listbox",id:"_yb_sa-listbox"}},saTitle:{css:"",style:{display:"block"}},plugins:{saFr:{disable:!0},saFr2:{disable:!0},saTray:{afterNode:"ybar-sbq",ctn:{css:Ot["sa-sbx-container"]},tray:{css:Ot.sa+" "+Ot.lowlight}},saPCActn:{css:Ot["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}}},Bt={saBE:{base:"",host:"",params:{appid:"yfp-t",".crumb":"",f:1}},shBE:{host:"https://search.yahoo.com",base:"/history",params:{_bcrumb:""}},saItem:{css:Ot["sa-item"]},saTitle:{css:Ot["sa-item-title"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:Ot["sa-trending"],m13:Ot["sa-history"],m30:Ot["sa-company"],flvr:Ot["sa-sugg"]},saEdit:{ctn:{css:Ot["sa-edit"]},icon:{css:Ot["sa-edit-icon"]},text:{css:Ot["sa-edit-text"],text:"Remove"}},saAnnot:{title:{css:Ot["sa-annot-title"]},subtitle:{css:Ot["sa-annot-subtitle"]},richClass:Ot["sa-annot-rich"]},tapRmv:{placeholder:""},saImg:{placeholder:{css:Ot["sa-img-icon"]},thumbnail:{css:Ot["sa-img"]},ctn:{css:Ot["sa-img-ctn"]},richClass:Ot["sa-rich-thumb"],m442:{iconClass:Ot["sa-shield-icon"]},m443:{iconClass:Ot["sa-question-icon"]},m444:{iconClass:Ot["sa-eye-icon"]}},saWhatToWatch:{disable:!0},saGroup:{hdr:{css:Ot["sa-grp-hdr"]},title:{css:Ot["sa-grp-hdr-title"]},grps:{m9:{text:"Trending now",css:Ot.trending},m13:{text:"",css:Ot.history}}}}},Rt={saBE:{base:"",host:"",params:{appid:"mi5",".crumb":"",f:1}},shBE:{host:"https://search.yahoo.com",base:"/history",params:{_bcrumb:""}},saItem:{css:Ot["sa-item"]},saTitle:{css:Ot["sa-item-title"]},minInput:0,highlight:{v2:!0},plugins:{saFlvr:{m9:Ot["sa-trending"],m13:Ot["sa-history"],m30:Ot["sa-company"],flvr:Ot["sa-sugg"]},saEdit:{ctn:{css:Ot["sa-edit"]},icon:{css:Ot["sa-edit-icon"]},text:{css:Ot["sa-edit-text"]}},saAnnot:{title:{css:Ot["sa-annot-title"]},subtitle:{css:Ot["sa-annot-subtitle"]},richClass:Ot["sa-annot-rich"]},tapRmv:{placeholder:""},saImg:{placeholder:{css:Ot["sa-img-icon"],wrap:{css:Ot["sa-thumb-icon"]}},thumbnail:{css:Ot["sa-img"]},ctn:{css:Ot["sa-img-ctn"]},richClass:Ot["sa-rich-thumb"],showIconOnImgLoad:!0},saGroup:{hdr:{css:Ot["sa-grp-hdr"]},title:{css:Ot["sa-grp-hdr-title"]},grps:{m9:{text:"Trending Now",css:Ot.trending},m13:{text:"",css:Ot.history}}},doneBtn:{disable:!0}}},qt={plugins:{saAnnot:{title:{css:Ot["sa-annot-title"]},subtitle:{css:Ot["sa-annot-subtitle"]},richClass:Ot["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}}},Pt={plugins:{saAnnot:{title:{css:Ot["sa-annot-title"]},subtitle:{css:Ot["sa-annot-subtitle"]},richClass:Ot["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}}}},Dt=function(e){var t=new RegExp("[?&]"+e+"=([^]*)").exec(window.location.search);return t?t[1]:null},Ht=function(e,t,n){var i=e.querySelectorAll(t);if(i)for(var o=0;o40?(S.style.setProperty(k,"40px"),S.style.setProperty(C,o+"px")):(S.style.setProperty(k,"0px"),S.style.setProperty(C,"40px")),L.hasClass(t,g)||"function"!=typeof n.beaconClick||n.beaconClick("ybar","websrch","",A),L.addClass(t,g),L.removeClass(t,b)}else S.style.setProperty(k,"0px"),S.style.setProperty(C,"0px")})),e.on("before_hide_view",(function(){null==p||p.setAttribute("aria-controls","");var t=e.view.elems.sbForm;L.addClass(t,b),L.removeClass(t,g)}))}},x.add("yba-saPCAnim",_);var T=x.viewClass;L.extend(E,T),E.prototype.clearAssist=function(){var e=this,t=e.config;L.hasClass(document.body,t.typingClass)?T.prototype.clearAssist.call(e):setTimeout((function(){T.prototype.clearAssist.call(e)}),200)},x.viewClass=E}var I=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}},M=function(e){var n;if(t&&"javascript:void(0);"===t.action)return!1;var 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=I(s),d=u.category,h=u.keyword;jt(t,o,l,d,h),(r||l)&&("homepage"===i||"my"===i?(Ut(t,r,l,d),Yt(t,l,d)):"smartphone"===o&&Yt(t,l,d)),R(zt(a,"0",c.toString()))}},O=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=I(r),u=l.category,d=l.keyword,p=l.marker;if(jt(t,o,s,u,d,p),"member-center"===i&&r&&r.data&&r.data.fd&&r.data.fd.itemUrl)return window.location.href=r.data.fd.itemUrl,void R(zt("srch-asst","0",c.toString(),r&&r.data.m,r&&r.data.k&&r.data.k));"homepage"===i||"my"===i?(Ut(t,a,s,u),Yt(t,s,u)):"smartphone"===o&&Yt(t,s,u),R(zt("srch-asst","0",c.toString(),r&&r.data.m))},N=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=zt("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 B=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"})}}))},R=function(e){if("function"==typeof n.beaconClick){n.saveCurrentTimerValue("search_query_submit");var o={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(){"member-center"!==i&&setTimeout((function(){t&&(t.submit(),Gt(t))}),300)}),o)}else t&&"member-center"!==i&&(t.submit(),Gt(t))},q=function(n){var i=n.animationName;i==Ot.safadein?e&&e.classList.remove("ybar-searchbox-assist-fadein"):i==Ot.sacollapse&&t.classList.remove(b)};function P(){this.config={botSearch:{action:h,text:f||""},suggestionTitle:{text:m||""}}}function D(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}}(Ot,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,Ot);r&&(e&&a&&(e.prepend(a),e.appendChild(r)),r.addEventListener("click",(function(){t.botSearch.action&&(i.action=t.botSearch.action),n.hide(),M(new CustomEvent("botSearchClicked"))})))}function H(){this.config={}}function F(){""===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",M),p.addEventListener("assistSelectionClicked",O),p.addEventListener("searchBtnClicked",M),p.addEventListener("keydown",N),p.addEventListener("click",B)),t&&(t.addEventListener("animationend",(function(e){q(e)})),t.addEventListener("animationcancel",(function(e){q(e)}))),"homepage"!==i&&"my"!==i||(Ut(t),"homepage"===i&&function(e){var t=Dt("type");if(t)if(e.querySelectorAll('input[name="type"]').length)Ht(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",D,this)}},h&&(null===(u=window.YAHOO.SA)||void 0===u||u.add("saBotSearch",P)),H.prototype={init:function(e){var t=this;t.app=e,e.on("before_button_submit",F,t),e.on("before_key_submit",F,t)}};var U=function(e){var t;return null===(t=window.localStorage)||void 0===t?void 0:t.setItem(Wt,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&&oc?(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",H))};we("ybar-mod-assistjs",(function(e){var t,n,i,o,a,r,s=document.getElementById("ybar-sf"),c=document.getElementById("ybar-w2w-list"),l=null;if(s&&"true"===s.getAttribute("data-saEnabled")){var u={ybar:document.getElementById("ybar"),crumbs:document.querySelector('input[name="uh-crumb"]'),searchBox:s,searchInput:document.getElementById("ybar-sbq"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),searchAssistContainer:document.querySelector(".".concat(Ot["sa-sbx-container"]))},d=e.getConfig();!!d.bucketConfig.use_uh3_profile&&(Nt.plugins.saTray.ctn.css+=" "+Ot["uh3-layout"]);var p=!!d.bucketConfig.assist_autoselect;p&&(Nt.autoSelect=!0),!!d.bucketConfig.assist_disable_srp&&s.setAttribute("action","javascript:void(0);"),!!d.bucketConfig.wrap_searchbox&&(Nt.plugins.saTray.afterNode="ybar-sbq-wrap");var m=Nt,f=!!d.bucketConfig.enable_search_ui,v=!!d.bucketConfig.assist_billboard_v2,y=!!d.bucketConfig.assist_disable_search_history,g=!!d.bucketConfig.answers_search;if(f){var b="smartphone"===d.device?Rt:Bt,w=s.getAttribute("data-tn-title");if(w&&(null===(t=null==b?void 0:b.plugins)||void 0===t?void 0:t.saGroup)&&Object.assign(b.plugins.saGroup,{grps:{m9:{text:w}}}),v){var _="smartphone"===d.device?qt:Pt;(null==b?void 0:b.plugins)&&Object.assign(b.plugins,_.plugins)}y&&(null===(n=null==b?void 0:b.saBE)||void 0===n?void 0:n.params)&&(b.saBE.params.f=0),g&&((null===(i=null==b?void 0:b.plugins)||void 0===i?void 0:i.saFlvr)&&Object.assign(null===(o=null==b?void 0:b.plugins)||void 0===o?void 0:o.saFlvr,{m79:Ot["sa-answer"],m80:Ot["sa-trending"],m81:Ot["sa-creator"]}),(null===(a=null==b?void 0:b.plugins)||void 0===a?void 0:a.saGroup)&&Object.assign(b.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:Ot["sa-group-holder"],pos:0,empty:1}}}),p&&(b.autoSelect={m:79,exact:!0}),b.inputRowHeight=20),m=h(h(h({},Nt),b),{plugins:h(h({},Nt.plugins),b.plugins)})}c&&!0===d.bucketConfig.enable_what_to_watch&&((l=c.cloneNode(!0)).removeAttribute("id"),l.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"),m=t.searchBox.getAttribute("data-geoid"),f=t.searchBox.getAttribute("data-ll");if(console.log(m,f),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"),m&&""!==m&&(n.saBE.params.geoid=m),f&&""!==f&&(n.saBE.params.ll=f),n.saBE.host=r?t.searchBox.getAttribute("data-fastbreak"):t.searchBox.getAttribute("data-sabase");var v=(null===(c=t.crumbs)||void 0===c?void 0:c.dataset.sacrumb)||t.searchBox.dataset.sacrumb,y=(null===(l=t.crumbs)||void 0===l?void 0:l.dataset.sabcrumb)||t.searchBox.dataset.sabcrumb,g=t.searchBox.dataset.mtestid;v&&(n.saBE.params[".crumb"]=v),y&&n.shBE&&(n.shBE.params._bcrumb=y),g&&(n.saBE.params.mtestid=g);var b=e.getConfig();Vt(t.ybar,t.searchBox,{beaconClick:ee,saveCurrentTimerValue:se,getPerformanceI13nObject:ce},i,o,a,r,s,(null===(u=null==b?void 0:b.bucketConfig)||void 0===u?void 0:u.placeholder)||"",(null===(d=null==b?void 0:b.bucketConfig)||void 0===d?void 0:d.force_what_to_watch)||!1),window.YAHOO.SA.init(n)}}else{var w="Search lib not found. SearchAssist failed to initialise";e.logError(w,new Error(w))}}(e,u,m,d.property,d.device,d.ytheme,f,l),u.searchAssistContainer=document.querySelector(".".concat(Ot["sa-sbx-container"]));var E=null===(r=u.ybar)||void 0===r?void 0:r.classList.contains("search-gradient");if(u.searchBox&&E){var x=0;e.addElementListener(u.searchBox,"click",(function(){0===x&&(u.searchAssistContainer.classList.add("".concat(Ot["search-gradient-background"])),x=1)})),e.addElementListener(u.searchInput,"keydown",(function(){0===x&&(u.searchAssistContainer.classList.add("".concat(Ot["search-gradient-background"])),x=1)})),e.addElementListener(u.searchInput,"blur",(function(){u.searchAssistContainer.classList.remove("".concat(Ot["search-gradient-background"]))}))}}}));var Kt="_yb_tdk4ba",Zt="_yb_hkd17a",Jt="_yb_rtzclf",Qt="_yb_tdbhj6",Xt="_yb_de52ef",$t="_yb_9hwrey",en="_yb_slc8ta",tn="_yb_bf0svp",nn="_yb_hjic9z";if("undefined"!=typeof Element&&!Element.prototype.matches){var on=Element.prototype;on.matches=on.matchesSelector||on.mozMatchesSelector||on.msMatchesSelector||on.oMatchesSelector||on.webkitMatchesSelector}var an=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function rn(e,t,n,i,o){var a=sn.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function sn(e,t,n,i){return function(n){n.delegateTarget=an(n.target,t),n.delegateTarget&&i.call(e,n)}}var cn,ln=function(e,t,n,i,o){return"function"==typeof e.addEventListener?rn.apply(null,arguments):"function"==typeof n?rn.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return rn(e,t,n,i,o)})))},un=function(e){this.data=e,this.next=null,this.prev=null},dn=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new un(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)&&ti.right||e.clientYi.bottom)&&a(t)})),window.addEventListener("resize",r)),e.onDestroy((function(){o(t,!0),a(t,!0),window.removeEventListener("resize",r)}))}));var hn,mn,fn,vn={"account-status-container":"_yb_ymi0h2","accounts-container":"_yb_cbk7gs","accounts-list":"_yb_1xscf7t",chevron:"_yb_pa7kxr",current:"_yb_z3vl31",expanded:"_yb_1wdvidv",greetings:"_yb_hz3nxi","greetings-container":"_yb_1dvo2p8",hide:"_yb_1tqu5w",mobile:"_yb_303pw",multiple:"_yb_dx6pd0","loading-profile-wrapper":"_yb_5m8r7u","loading-profile-button":"_yb_qaqab3","notification-container":"_yb_1vpbvgz","pfs-container":"_yb_12irxp7","pfs-iframe":"_yb_1a475s8",show:"_yb_1tj3rr","sign-in-menu":"_yb_mpd5lf","signed-in":"_yb_1330230","signed-in-mark":"_yb_1puqf10","signed-out":"_yb_43r3tx","signedout-text":"_yb_1a59ed4","stacked-name":"_yb_ts4lap","stacked-name-given":"_yb_zb2ipb","stacked-name-family":"_yb_1v4uiyy","uh3-layout":"_yb_19rb0y5","ybar-account-img":"_yb_12iiv1a","ybar-account-img-signed-out":"_yb_cbs8y","ybar-account-img-hidden":"_yb_1owxd09","ybar-account-menu":"_yb_9u1jny","ybar-account-menu-item-signed-out":"_yb_1qla71m","ybar-account-user-email":"_yb_1on73m5","ybar-account-user-email-other":"_yb_u3fczo","ybar-account-user-name":"_yb_5pkkfa","ybar-account-user-signedout":"_yb_axu8rh","ybar-account-yahoo-plus-imp":"_yb_14bnbgj","ybar-icon-arrow":"_yb_1tu7gjy","ybar-icon-arrow-down":"_yb_ngz6b5","ybar-icon-arrow-up":"_yb_1nagqiu","ybar-icon-image-wrapper":"_yb_19gpxwu","ybar-item-hidden":"_yb_559mjn","ybar-login-btn":"_yb_11glrwn","ybar-mod-account":"_yb_lq748r","ybar-mod-mail":"_yb_1e163lf","ybar-profile-character":"_yb_10rialq","ybar-profile-character-hidden":"_yb_1e2i1rd","ybar-see-info":"_yb_uiw8wx","ybar-sign-out":"_yb_j1eqwx","ybar-sign-out-text":"_yb_dvnuy9","ybar-user-accounts-list":"_yb_15pu2gg","ybar-user-profile-img":"_yb_1mawsyw","account-switcher-item-container":"_yb_1kjh1ov","account-switcher-chevron":"_yb_ju6kvv","account-switcher-container":"_yb_62ip13","hide-universal-profile":"_yb_11o7p8y","hide-account-switcher-container":"_yb_dwibp6","settings-item-container":"_yb_94wwjn","universal-profile-switch-button":"_yb_1p1qbi3","universal-profile":"_yb_1y7wwv3","account-switcher-settings-container":"_yb_zw2im7","account-switcher-signout-link":"_yb_1an82qo","signout-link-wrapper":"_yb_gk0uu2","ybar-keyline":"_yb_1rsy4q0","hide-up-settings":"_yb_1wofy5w"},yn=/\$({|%7B)GDPR_CONSENT_(\d+)(}|%7D)/g,gn=/\$({|%7B)GDPR(}|%7D)/g,bn=/\[timestamp\]/g,wn=function(e){return e.replace(bn,Date.now()+"")},_n=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(gn,n?"1":"0")}(e,t),i=function(e,t){var n=t.gdprApplies,i=t.tcString;return e.replace(yn,n?i:"")}(n,t),[2,wn(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}))}))};hn="ybar",fn={createHTML:function(e){return e}},void 0!==(mn=window.trustedTypes)&&void 0!==mn.createPolicy&&window.trustedTypes.createPolicy(hn,fn);var En,xn=!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=0;--n){e[n]=(a=void 0,(a={fn:(o=e[n]).fn||"",ln:o.ln||"",em:o.em||"",alias:o.alias||"",imageUrl:o.imageUrl,state:o.state,fullName:null,identifier:""}).fullName=fe(a.fn,a.ln)?[a.ln,a.fn].join(""):[a.fn,a.ln].join(" "),a.identifier=a.em||a.alias,a);var i=e[n].state;0!==i&&"0"!==i||(window.YBAR&&window.YBAR.setUserEmail(e[n].em),En=e[n],t||e.splice(n,1)[0])}var o,a;return e}(a.users,t.isUH3Layout);if(t.isUH3Layout&&En){if(t.ybarLoadingProfileWrapper){var l=document.querySelector(".".concat(vn["ybar-profile-character-hidden"])),u=En.fn&&En.fn[0].toUpperCase()||"",d=fe(En.fn,En.ln),p=function(){t.ybarLoadingProfileWrapper.remove(),t.ybarAccountMenu.classList.remove(vn["loading-profile-button"])};if(l&&me(En.imageUrl)&&!d)l.innerHTML=u,l.ontransitionend=p,l.classList.remove(vn["ybar-profile-character-hidden"]);else{var h=new Image;h.classList.add(vn["ybar-account-img"],vn["ybar-account-img-hidden"]),h.src=En.imageUrl,h.alt=t.ybarLoadingProfileWrapper.getAttribute("data-alt")||"",h.ontransitionend=p,h.onload=function(){h.classList.remove(vn["ybar-account-img-hidden"])},t.ybarLoadingProfileWrapper.parentElement.prepend(h),l&&l.remove()}}c.length>0&&(t.chevron&&t.chevron.classList.remove("hide"),t.greetingsContainer&&(t.greetingsContainer.classList.add(vn.multiple),t.greetingsContainer.setAttribute("aria-expanded","false")))}for(var m=document.querySelector(".".concat(vn["ybar-user-accounts-list"]))||document.querySelector(".".concat(vn["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(r," .").concat(vn["ybar-sign-out"])),g=y&&y.getAttribute("data-soa"),b=document.querySelector("".concat(r," .").concat(vn["ybar-sign-out-text"]));if(b&&g&&(b.innerText=g),s&&s.classList.add(vn.show),n){var w=document.querySelector("".concat(r," ").concat(vn["ybar-icon-arrow"])),_=vn["ybar-icon-arrow-up"],E=vn["ybar-icon-arrow-down"],x=vn["ybar-item-hidden"],L=document.querySelectorAll(".".concat(vn["ybar-item-hidden"]));w&&(w.classList.toggle(E),e.addElementListener(w,"click",(function(){for(var e=0;e5){var C=document.querySelector("".concat(r," .").concat(vn["ybar-see-info"]));C&&C.style&&(C.style.display="block")}kn(t,e),i&&i(),xn=!1}))}},An=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;i720?720:e},y=function(){document.body.removeEventListener("focusin",y,!1),document.body.removeEventListener("click",y,!1)},g=function(){d&&m("resize",{height:f()})},b=function(){var a;if(null===d){(d=document.createElement("iframe")).src="".concat(p,"/?").concat(u.toString()),d.scrolling="no",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.style.height="0px",d.style.opacity="0";var r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode("body { background: var(--UI-White, #FFF); }.skeleton-container { display: inline-flex; padding: 20px 20px 41px 20px; justify-content: center; align-items: center; background: var(--UI-White, #FFF); }.profile-skeleton { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }.userinfo-container { display: flex; align-items: center; gap: 12px; }.avatar { width: 72px; height: 72px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.userinfo { display: flex; padding: 8px 0px; flex-direction: column; align-items: flex-start; gap: 10px; }.name { width: 117px; height: 16px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.email { width: 74px; height: 12px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.manage-account { width: 284px; height: 40px; border-radius: 40px; opacity: 0.5; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.list-container { display: flex; padding-top: 12px; flex-direction: column; align-items: flex-start; gap: 36px; align-self: stretch; opacity: 0.25; }.list { border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); } .list:nth-child(1) { width: 198px; height: 12px; }.list:nth-child(2) { width: 169.5px; height: 12px; }.list:nth-child(3) { width: 198px; height: 12px; }")),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.iframeContainer.appendChild(d),d.contentDocument&&(d.contentDocument.head.appendChild(r),d.contentDocument.body.innerHTML='\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    ',d.style.opacity="1",setTimeout((function(){d&&(d.style.height="300px")}),100)),t.ybarAccountMenu&&(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",g),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",g),e.addElementListener(t.ybarAccountMenu.parentNode,"keyup",g),null===(a=t.accountSwitcherChevron)||void 0===a||a.addEventListener("click",g)))}};if(t.ybarAccountMenu){if(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",b,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",b,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"keyup",b,{once:!0}),e.onDestroy((function(){y(),d=null})),t.ybarAccountContainer){var w=t.ybarAccountContainer.getAttribute("data-prod");"false"===w&&(p="https://stage.pfs.yahoo.com"),u.set("intl","us"),u.set("src",l.property),u.set("version","2"),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)),"false"===w&&u.set("bucket","mbr-up-pfs-five"),u.set("done",window.location.href),u.set("pspid",de())}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":case"show":d.style.height=t.params.height,t.params.width&&(d.style.width=t.params.width);break;case"redirect":c=h(t.params["data-ylk"]),ee("ybar",c.slk||"account","",c),window.location=t.params.url;break;case"popup":c=h(t.params["data-ylk"]),ee("ybar",c.slk||"account","",c),window.open(t.params.url,"_blank")}}}))}},Tn=null,In=!0,Mn=0,On={ybarAccountImage:{selector:"ybar-account-img",size:"64"},ybarCurrentUserProfileImage:{selector:"ybar-current-user-profile-img",size:"128"},ybarUserProfileImage:{selector:"ybar-user-profile-img",size:"128"}},Nn=function(e,t){var n=t.ybarAccountContainer,i=t.ybarAccountMenu,o=t.ybarMobile,a=t.ybarMenuManagePub,r=t.signInAccountMenu,s=t.signInBtn,l=t.ybarModAccount,u=t.yahooPlusImpression,d=t.ybarLabel,p=t.accountSwitcherButton,h=t.universalProfile,m=t.universalProfileSettings,f=t.accountSwitcherContainer,v=t.accountSwitcherChevron,y=t.accountSwitcherSettings,g=t.signoutLinkWrapper,b=t.universalProfileKeyLine,w=t.financeApprBtnEl,_=function(){new pn(e,{containerElm:t.ybarAccountContainer,isUserAccountNavigation:!0,loggedInUser:t.loggedInUser,loggedInUserElement:t.loggedInUserElement,accountSwitcherButtonSelector:".".concat(vn["greetings-container"],".").concat(vn.multiple)})},E=function(i){if(n)n.style.removeProperty("display"),"false"===n.getAttribute("data-enabled")&&(n.style.display="none"),kn(t,e);else{var o=new Error("ybarAccountContainer not Found");c("ERROR:",o)}n&&In&&(In=!1,e.onDestroy((function(){In=!0})),Sn(e,t,i,_))},x=function(){var e,t;0===Mn&&(Mn=1,null===(e=null==i?void 0:i.parentNode)||void 0===e||e.removeEventListener("mouseenter",x),null===(t=null==i?void 0:i.parentNode)||void 0===t||t.removeEventListener("focusin",x),setTimeout((function(){te()}),500))},L=function(t){e.triggerEvent("ybar:show_theme_modal",{event:t})},C=function(o){(null==n?void 0:n.classList.contains("ybarMenuOpen"))||(null==i?void 0:i.classList.contains(vn["loading-profile-button"]))||(null==n||n.classList.add("ybarMenuOpen"),null==i||i.setAttribute("aria-expanded","true"),e.triggerEvent("close-all-menus"),e.triggerEvent("profile:show",{event:o}),document.activeElement===i&&setTimeout((function(){var e;null===(e=t.ybarAccountMenu)||void 0===e||e.blur(),(null==h?void 0:h.classList.contains("hide-universal-profile"))?null==v||v.focus():(null==m?void 0:m.children[0].children[0].children[0]).focus()}),300))},k=function(){null==n||n.classList.remove("ybarMenuOpen"),null==i||i.setAttribute("aria-expanded","false")},S=function(e){if(i&&n){if(i.classList.contains(vn["loading-profile-button"]))return;n.classList.contains("ybarMenuOpen")?k():C(e)}},A=function(){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()},T=function(){if(u&&!u.getAttribute("src")&&u.getAttribute("data-src")){var t=u.getAttribute("data-src")||"";_n(t).then((function(e){null===Tn&&((Tn=document.createElement("iframe")).src="https://s.yimg.com/jk/gtm/gtm_ns.html?id=GTM-NVQTVCX&type=yahoo&cat=ybarimp1",Tn.sandbox.add("allow-scripts"),Tn.sandbox.add("allow-same-origin"),Tn.height="0",Tn.width="0",Tn.referrerPolicy="origin",Tn.style.display="none",Tn.style.visibility="hidden",document.body.appendChild(Tn)),u.setAttribute("src",e)})),e.onDestroy((function(){u.setAttribute("src",""),Tn=null}))}};null==p||p.addEventListener("click",(function(){return function(e,t,n,i,o,a,r){null==e||e.classList.add("hide-universal-profile"),null==e||e.classList.add("hide"),null==t||t.classList.add("hide"),null==t||t.classList.add("".concat(vn["hide-up-settings"])),null==n||n.classList.add("".concat(vn["account-switcher-signout-link"])),null==i||i.classList.add("hide"),null==o||o.classList.remove("".concat(vn["hide-account-switcher-container"])),null==a||a.classList.remove("".concat(vn["account-switcher-settings-container"])),null==r||r.focus()}(h,m,g,b,f,y,v)})),null==v||v.addEventListener("click",(function(){return function(e,t,n,i,o,a){null==e||e.classList.remove("hide-universal-profile"),null==t||t.classList.remove("hide"),null==t||t.classList.remove("".concat(vn["hide-up-settings"])),null==n||n.classList.remove("".concat(vn["account-switcher-signout-link"])),null==i||i.classList.remove("hide"),null==o||o.classList.add("".concat(vn["hide-account-switcher-container"])),null==a||a.classList.add("".concat(vn["account-switcher-settings-container"])),(null==t?void 0:t.children[0].children[0].children[0]).focus()}(h,m,g,b,f,y)})),s&&(Ae(e,s,"ybar","sign-in",{elm:"signin",subsec:"settings",itc:"2"}),kn(t,e));var I=function(){E(!1),e.addEventListener("close-all-menus",(function(){r&&r.classList.contains(vn.show)&&r.parentNode&&!ke(r.parentNode)&&k()}));e.onDestroy((function(){k()})),i&&(i.onchange=function(){e.triggerEvent("close-all-menus")},{itc:"2",elm:"menu",elmt:"user-info",subsec:"accounts"},l&&(e.addElementListener(l,"mouseenter",T),e.addElementListener(l,"focus",T)),i&&i.parentNode&&e.addElementListener(i.parentNode,"mouseenter",x),Te("#ybarAccountMenu","#ybarAccountMenu + label",e)),e.addElementListener(l,"mouseenter",S),e.addElementListener(l,"mouseleave",k),e.addElementListener(i,"click",S),e.addElementListener(a,"click",k),e.addElementListener(l,"mouseenter",A),null==l||l.addEventListener("keydown",(function(e){!function(e){var i;switch(e.key){case"ArrowDown":C(e);break;case" ":case"Enter":document.activeElement===t.ybarAccountMenu&&e.preventDefault(),C(e);break;case"Escape":(null==n?void 0:n.classList.contains("ybarMenuOpen"))&&(null===(i=t.ybarAccountMenu)||void 0===i||i.focus())}}(e)})),null==g||g.addEventListener("keydown",(function(e){!function(e){"Tab"===e.key&&(null==n||n.classList.remove("ybarMenuOpen"),null==i||i.setAttribute("aria-expanded","false"))}(e)}))};(i||o||r)&&(o?E(!0):(n&&"true"===n.getAttribute("data-pfs")&&(An(e,t,vn["pfs-iframe"]),e.addEventListener("ybar-pfs-init-failure",(function(){var e;null===(e=t.ybarAccountMenuBody)||void 0===e||e.classList.remove(vn["pfs-container"]),I();ee("ybar","pfs-load-failure","",{elm:"btn",subsec:"profile",itc:"1"})}))),I()),Object.keys(On).forEach((function(e){var t=On[e],n=document.querySelector(".".concat(vn[t.selector]));n&&(n.onerror=function(){var e,i,o;e=t.size,o="https://s.yimg.com/cv/apiv2/ybar/images/default_user_profile_pic_"+e+".svg",(i=n).onerror=null,i.srcset="",i.src=o})}))),window.addEventListener("keyup",(function(e){27===e.keyCode&&(k(),null==d||d.blur())})),null==w||w.addEventListener("click",(function(e){L(e)})),null==w||w.addEventListener("keydown",(function(e){(e instanceof KeyboardEvent&&"Tab"!==e.key&&e.preventDefault(),e instanceof KeyboardEvent&&"Enter"===e.key)&&("Enter"===e.key&&L(e))}))};we("ybar-account-init",(function(e){var t=document.getElementById("ybarAccountContainer"),n={ybarAccountContainer:t,ybarAccountMenu:document.getElementById("ybarAccountMenu"),loggedInUser:document.querySelectorAll("#ybarAccountProfile"),loggedInUserElement:document.getElementById("ybarAccountProfile"),iframeContainer:document.getElementById("iframe-container"),ybarMobile:document.querySelector(".".concat(vn.mobile," .").concat(vn["ybar-account-user-email"])),ybarMenuManagePub:document.getElementById("ybarMenuManagePub"),signInAccountMenu:document.querySelector(".".concat(vn["ybar-mod-account"]," .").concat(vn["sign-in-menu"])),signInBtn:document.querySelector(".".concat(vn["ybar-mod-account"]," .").concat(vn["ybar-login-btn"])),ybarModAccount:document.querySelector(".".concat(vn["ybar-mod-account"])),yahooPlusImpression:t&&t.querySelector(".".concat(vn["ybar-account-yahoo-plus-imp"])),crumb:document.querySelector('input[name="uh-crumb"]'),jsapicrumb:document.querySelector('input[name="jsapicrumb"]'),ybarAccMenuItemTemplate:document.getElementById("ybarAccMenuItemTemplate"),isUH3Layout:!!document.querySelector(".".concat(vn["uh3-layout"])),isAOLMail:!!document.querySelector("#ybar.ybar-variant-aolmail"),chevron:document.querySelector(".".concat(vn.chevron)),greetingsContainer:document.querySelector(".".concat(vn["greetings-container"])),ybarAccountMenuBody:document.getElementById("ybarAccountMenuBody"),stackedName:document.querySelector(".".concat(vn["stacked-name"])),stackedNameGiven:document.querySelector(".".concat(vn["stacked-name-given"])),stackedNameFamily:document.querySelector(".".concat(vn["stacked-name-family"])),ybarLabel:document.querySelector("#ybarAccountMenuOpener"),ybarLoadingProfileWrapper:document.querySelector(".".concat(vn["loading-profile-wrapper"])),universalProfile:document.getElementById("universalProfile"),universalProfileSettings:document.getElementById("universalProfileSettings"),accountSwitcherSettings:document.getElementById("accountSwitcherSettings"),accountSwitcherContainer:document.querySelector(".".concat(vn["account-switcher-container"])),universalProfileKeyLine:document.querySelector(".".concat(vn["ybar-keyline"])),accountSwitcherButton:document.querySelector(".".concat(vn["universal-profile-switch-button"])),accountSwitcherChevron:document.querySelector(".".concat(vn["account-switcher-chevron"])),signoutLinkWrapper:document.querySelector(".".concat(vn["signout-link-wrapper"])),financeApprBtnEl:document.getElementById("fin-appr-btn")};Nn(e,n)}));var Bn={"popover-body":"_yb_1cv16f4","ybar-mail-link":"_yb_1b0y3p9","ybar-mail-preview":"_yb_q2xbhz","ybar-mail-signin-link":"_yb_hnauxw","ybar-mod-mail":"_yb_10309ej","ybar-mod-mail-promo-imp":"_yb_6ci77k","ybar-large-unread":"_yb_9b6j40","ybar-mid-unread":"_yb_12gd9wd","ybar-mail-indicator":"_yb_tnmz0c","ybar-unread-active":"_yb_jdf7pt","count-loaded":"_yb_13nwx6d"},Rn=function(e){var t,n;null===(t=e.mailPreview)||void 0===t||t.classList.add("ybarMenuOpen"),null===(n=e.mailLink)||void 0===n||n.setAttribute("aria-expanded","true")},qn=function(e){var t,n;null===(t=e.mailPreview)||void 0===t||t.classList.remove("ybarMenuOpen"),null===(n=e.mailLink)||void 0===n||n.setAttribute("aria-expanded","false")},Pn=function(e,t,n){var i=t.mailLink,o=t.mailUnread,a=t.mailUnreadSpan,r=t.mailIndicator,s=t.mailModule,c="".concat(Bn["ybar-unread-active"]);n.fetchCount().then((function(t){if(o&&t>0){var n=e.getConfig().i18n.root.MAIL_ARIA_LINK;if(i&&i.hasAttribute("aria-label")&&n&&i.setAttribute("aria-label",n.replace("{count}",t.toString())),o.classList.add(c),r&&(r.classList.add(c),null==s||s.classList.add(c)),a){var l=t>99;a.textContent=l?"99+":t+"",o.classList.add("".concat(Bn["count-loaded"])),l?o.classList.add("".concat(Bn["ybar-large-unread"])):t>=10&&o.classList.add("".concat(Bn["ybar-mid-unread"]))}e.onDestroy((function(){o.classList.remove(c),r&&r.classList.remove(c),a&&(a.textContent="")}))}})).catch((function(){}))};we("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 gt;if(e.addElementListener(n,"mouseenter",(function(){e.triggerEvent("close-all-menus")})),e.addEventListener("close-all-menus",(function(){ke(n)||qn(t)})),e.addElementListener(a,"focusin",(function(){Rn(t)})),e.addElementListener(a,"focusout",(function(){qn(t)})),e.onDestroy((function(){qn(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\]\]/,de()),i.href=he(i.href)+s,(null==o?void 0:o.href)&&(o.href=he(o.href)+s)}}else Pn(e,t,r)}}(e,{mailModule:document.querySelector(".".concat(Bn["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(Bn["ybar-mail-indicator"])),mailLink:document.querySelector(".".concat(Bn["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(Bn["ybar-mail-signin-link"])),mailUnread:t,mailUnreadSpan:null==t?void 0:t.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat(Bn["popover-body"].split(" ").join("."))),mailPreviewPopover:document.querySelector(".".concat(Bn["ybar-mail-preview"].split(" ").join(".")," .").concat(Bn["popover-body"].split(" ").join(".")))})}));var Dn,Hn,Fn="_yb_rbr9p9",Un="_yb_ac74t6",jn="_yb_8737ki",Yn="_yb_1vnnmze",zn="_yb_h1s1bv",Gn="_yb_bkrga4",Wn="_yb_kwlkcz",Vn="_yb_1772h7s",Kn="_yb_15viflt",Zn="_yb_zzzvko",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 gt).fetchCount().then((function(t){i&&t>0&&(i.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){i.textContent=""})))})).catch((function(){}))},Qn=!1,Xn=-1,$n=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;if(Hn)u+=Hn.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()&&XnXn&&-1!==Xn)for(var _=Xn;_=r;){var x=e.navItems[E].cloneNode(!0),L=x.querySelector("a");L&&(L.setAttribute("id",""),L.classList.remove(jn));var C=x.querySelector(".".concat(e.navigationDropdownListClass));if(C&&(C.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--}Xn=r}if(-1!==r&&e.navList){var S=parseInt(s.toString(),10)+"px";e.navList.style.maxWidth=S,t.textContent=".".concat(Wn,"{ max-width: ").concat(S,"}")}Hn||(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))}},ei=function(e,t){var n=function(e,n){var i;e.classList.contains(t.moreMenuNavItemClass)&&(null===(i=t.moreMenuMainFocusItem)||void 0===i||i.setAttribute("aria-expanded",n))},i=function(){t.isTablet&&(document.body.classList.remove("ybar-nav-open"),document.body.removeEventListener("touchend",l))},o=function(e){var i=e.delegateTarget;i&&i.classList.contains(t.dropdownWrapperClass)&&(i.classList.contains(t.dropdownOpenClass)||(t.isTablet&&(document.body.classList.add("ybar-nav-open"),document.body.addEventListener("touchend",l)),i.classList.add(t.dropdownOpenClass),n(i,"true")))},a=function(e){var o=e.delegateTarget;if(null==o?void 0:o.classList.contains(t.navigationDropdownListClass)){var a=o.parentElement;a&&!a.contains(e.relatedTarget)&&a.classList.contains(t.dropdownWrapperClass)&&(i(),a.classList.remove(t.dropdownOpenClass),n(a,"false"))}else if(null==o?void 0:o.classList.contains(t.dropdownOpenClass)){if(t.isTablet&&e instanceof FocusEvent)return;var r=e.target;Hn&&(!Hn||Hn.contains(r)&&"focusout"!==e.type)||(i(),o.classList.remove(t.dropdownOpenClass),n(o,"false"))}},r=ln(".".concat(t.dropdownWrapperClass),"focusin",o),s=ln(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",a),c=document.getElementById("ybar-navigation"),l=function(e){var n=null==e?void 0:e.target;t.isTablet&&e&&e.target&&e.target instanceof HTMLElement&&(e.target.classList.contains(t.dropdownOpenClass)||e.target.closest(".".concat(t.dropdownOpenClass)))||document.body.classList.contains("ybar-nav-open")&&!["svg","path"].includes(n.tagName)&&(null==c||c.querySelectorAll(".".concat(t.dropdownOpenClass)).forEach((function(e){e.classList.remove(t.dropdownOpenClass)})),i())};e.addEventListener("nav:closeOverflowMenu",(function(){l()}));var u=ln(".".concat(t.dropdownWrapperClass),"touchstart",(function(e){if(t.isTablet){var n=e.delegateTarget;n&&n.classList.contains(t.dropdownOpenClass)?a(e):(l(e),o(e))}}));e.onDestroy((function(){var e;u.destroy(),r.destroy(),s.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)}))}))},ti=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 pn(e,{containerElm:t.ybarNav,navlistItemSelector:".".concat(Kn," > li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:o,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,t){var n,i;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 o=e.getConfig();Hn=(null===(i=o.bucketConfig)||void 0===i?void 0:i.enable_mid_nav_placement)?document.getElementById("ybar-mid-nav-placement"):void 0,"news"===o.property?Dn=-12:(Dn="finance"!==o.property&&"sports"!==o.property&&t.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==o.locale&&"zh-Hant-TW"!==o.locale||(Dn=-20));var a=t.isTablet?"touchstart":"mouseover",r=ln(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),a,(function(n){if(window||document){var i=window.innerWidth||document.documentElement.clientWidth,a=n.delegateTarget;if(a&&-1!=a.className.indexOf(t.dropdownWrapperClass)&&(a=a.querySelector(".".concat(t.navigationDropdownListClass))),a){a.style.removeProperty("left");var r=a.getBoundingClientRect(),s=Math.trunc(r.right),c=parseInt(window.getComputedStyle(a).marginLeft,10)+i-s;if(s>i)return"sports"!==o.property?void(a.style.marginLeft=c+"px"):void(a.style.right="0px");if(parseInt(a.style.marginLeft)0?a.style.removeProperty("margin-left"):a.style.marginLeft=c+"px":(a.style.removeProperty("margin-left"),a.style.marginLeft=Dn+"px"),t.isTablet){var l=a.previousElementSibling;if(Hn&&Hn.contains(a));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);a.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){r.destroy()}))}(e,t),Jn(e),e.addElementListener(document,"DOMContentLoaded",(function(){Jn(e)})),ei(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&&(Qn=void 0!==u&&u,ti(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;ti(t,s,a,void 0===c?{}:c)})),o){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=ln("#ybar-nav-more-menu ul a","click",(function(t){e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){$n(t,d,a)})),$n(t,d,a);var h=e.getConfig();if("complete"===document.readyState)ni(e,t,d,a);else{var m="load";("news"===h.property&&("zh-Hant-TW"===h.locale||"zh-Hant-HK"===h.locale)||"finance"===h.property&&"zh-Hant-TW"===h.locale)&&(m="DOMContentLoaded"),e.addElementListener(window,m,(function(){ni(e,t,d,a)}))}e.addElementListener(window,"resize",(function(){$n(t,d,a)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}ai(e,t)},oi=function(e,t){var n=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return t.isFuji2&&n},ai=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()}))}},ri="#ybar-nav-more-menu";we("ybar-mod-navigation",(function(e){var t,n=e.getConfig(),i={dropdownWrapperClass:Un,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet")||"tablet"===n.device||matchMedia("(hover: none)").matches,longListClass:Yn,moreMenuDropdown:document.querySelector("".concat(ri," ul")),moreMenuNavItem:document.querySelector(ri),moreMenuNavLinksSelector:"".concat(ri," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(ri," > button")),moreMenuNavItemClass:Zn,navigationDropdownItemClass:zn,navigationDropdownListClass:Gn,navItems:document.querySelectorAll("ul.".concat(Kn," li.").concat(Vn)),topLevelNavLinks:document.querySelectorAll("li.".concat(Vn," > 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:Vn,dropdownOpenClass:Fn,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=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(hi),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(mi),document.body.classList.remove(hi),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(mi),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:pi)||(document.body.classList.add(mi),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(fi)[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(di,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,t,n=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(di);if(null===n)return null;try{return JSON.parse(n)}catch(e){return null===(t=window.localStorage)||void 0===t||t.removeItem(di),null}},e}(),gi=-1,bi={0:0,1:1,9:9,99:99,150:150},wi=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 yi(e,t.tooltipContainer));var u=W(),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(si))||(u.resetBadge(),s&&(i?null===(t=s.parentElement)||void 0===t||t.classList.remove(ci):s.style.display="none"))},h=function(e){var t,n;0===gi&&(null===(t=null==e?void 0:e.css)||void 0===t?void 0:t.length)&&e.css.length>0&&(gi++,function(e){for(var t=function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},n=0;n0&&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(ci)}else s.style.display="block"},m=function(){u.refreshPanel().then(h).then(te).catch((function(){}))};if(e.addEventListener("close-all-menus",(function(){ke(c)||d()})),c){m();var f=setInterval((function(){m()}),3e5);e.onDestroy((function(){clearInterval(f)})),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(){ee("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),a&&Ae(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()}))};we("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(li)),notifLabel:document.querySelector(".".concat(ui))};t.notifDropdown&&wi(e,t)}))}()}};
    Advertisement

    Topic

    English Premier League

    Footballing Weekly

    Stories for you

    Advertisement

    More Hot Topics

    View More Hot Topics
    Advertisement