"),this.shown=!1,this.resetHighlight(),this.trayContainer.innerHTML=""},l.prototype.resetHighlight=function(){!1!==this.selectedItem&&this.itemList.length&&(this.itemList[this.selectedItem].className=this.config.cssClass.li)},l.prototype.resetHightlight=l.prototype.resetHighlight,l.prototype.tab=function(){if(!this.shown||!this.itemList.length)return!1;if(!1!==this.selectedItem)this.searchbox.value=this.get(this.itemList[this.selectedItem],"data"),this.saModel.fetch();else{if(this.searchbox.value===this.get(this.itemList[0],"data"))return this.saModel.unset(),!1;this.searchbox.value=this.get(this.itemList[0],"data"),this.saModel.fetch()}return!0},l.prototype.moveUpDown=function(e){return!(!this.shown||!this.itemList.length)&&(this.resetHighlight(),e?!1===this.selectedItem||this.selectedItem<=0?this.selectedItem=this.itemList.length-1:this.selectedItem--:!1===this.selectedItem||this.selectedItem>=this.itemList.length-1?this.selectedItem=0:this.selectedItem++,this.itemList[this.selectedItem].className=this.config.cssClass.li+" "+this.config.cssClass.liHighlight,this.searchbox.value=this.get(this.itemList[this.selectedItem],"data"),!0)},l.prototype.createItem=function(e){var n=t.createElement("li"),a=this;if(n.className=this.config.cssClass.li,this.set(n,"pos",e.idx),this.set(n,"role","option"),this.config.formatResult){var r=this.config.ylcVal;r&&(r=r.replace("cposV",e.idx),a.config.ylcParam&&(r=r.replace("t9Val",a.config.ylcParam.n_sugg)),this.set(n,"data-ylk",r)),this.set(n,"data-position",e.idx)}a.set(n,"data",e.p);var o=t.createElement("span");o.className=a.config.cssClass.span,o.style.display="block",n.appendChild(o);var i=t.createElement("span");return i.className=a.config.cssClass.text,i.innerHTML=e.t,o.appendChild(i),{li:n,suggestionSpan:o}},l.prototype.getItemAnnotation=function(e){var n,a,r,o=this.config.annotation[e.m]||{},i=this.config.cssClass,s=e.fd,c="",l="",u=this.searchbox.clientWidth-2*this.config.trayPadding;if(o.subtitle&&s.subtitle){if(l=o.subtitle.replace("{subtitle}",this.htmlEncode(s.subtitle)),!(this.getWidth(e.p,l)'+l+"")>u){l="";break}l&&(c+=''+l+"")}return c&&((n=t.createElement("span")).innerHTML=c),n},a(u,c),u.prototype.unset=function(){this.triggered=!1,this.saView.hide()},u.prototype.jsonp=function(e,n){var a={command:this.saView.searchbox.value,t_stmp:this.ts(),callback:"YAHOO."+this.config.objectName+".cb."+e};this.merge(a,this.config.gossipParam),n&&this.merge(a,n);var r=this.buildUrl(this.config.saBase,a),o=t.getElementsByTagName("head")[0],i=t.createElement("script");this.set(i,"type","text/javascript"),this.set(i,"src",r),o.appendChild(i),this.ae(i,"load",(function(){o.removeChild(i)}))},u.prototype.read=function(e){var t,n=this,a=[],r=e.sqpos,o=e.q=e.q||"",i="";e&&"object"==typeof e.r&&e.r.length>0?(n.config.subAssist&&r&&(o=e.q.substr(r),i=e.q.substr(0,r),e.r.forEach((function(t){n.saView.getWidth(t.k)>n.saView.searchbox.clientWidth&&(r=0,o=e.q,i="")}))),e.r.forEach((function(e){t=n.config.subAssist&&r?e.k.substr(r):e.k,a.push({p:e.k,t:n.bold(n.config.boldTag,n.htmlEncode(t),n.htmlEncode(o),n.config.highlight),fd:e.fd,m:e.m})})),this.ylc.n_sugg=e.r.length,this.ylc.pos=0,this.saView.display({data:a,sqpos:r,hiddenNeedle:i})):(this.ylc.n_sugg=0,this.ylc.pos=0,this.saView.hide()),e&&e.l&&(this.ylc.gprid=e.l.gprid)},u.prototype.fetch=function(){var e,t=this.saView.searchbox,n=this,a=null,o=n.lastValue===n.saView.searchbox.value;if(n.config.suppressEmptyQuery&&""==r(t.value))return n.unset(),!0;if(n.saView.shown&&o)return!0;if(this.config.enableIpos&&!o&&void 0!==n.lastValue&&((e=this.getCursorPosition())===t.value.length&&(e=null),null!==e&&(a={ipos:e})),n.lastValue=n.saView.searchbox.value,this.config.minQueryLength&&this.saView.searchbox.value.lengththis.config.max)return this.unset(),!0;this.triggered=!0,this.callBackIdx++;var i="sacb"+this.callBackIdx;for(var s in n.cbTable)n.cbTable.hasOwnProperty(s)&&(n.cbTable[s]=function(){});this.cbTable[i]=function(e){n.read(e||{}),n.cbTable[i]=function(){}},this.jsonp(i,a)},u.prototype.getCursorPosition=function(){var e,n=this.saView.searchbox,a=null;return"number"==typeof n.selectionStart?a=n.selectionStart:t.selection&&(n.focus(),(e=t.selection.createRange()).moveStart("character",-t.activeElement.value.length),a=e.text.length),a},u.prototype.addYlc=function(e){var t=encodeURIComponent(this.saView.searchbox.value);this.ylc.query=t,this.ylc.qstrl=t.length,this.ylc.t_stmp=this.ts(),this.config.enableYlc&&this.ULT?this.saView.formTag.action=this.ULT.y64_token("ylc",e,this.ylc):this.debug("YLC logging is disabled")},u.prototype.addYlk=function(e){var t=this,n=[];if(["gprid","query","pqstr"].forEach((function(e){e in t.ylc&&n.push(e+":"+t.ylc[e])})),t.config.ylcVal=t.config.ylcVal+";"+n.join(";"),e){var a=t.get(e,"data-ylk")+";"+n.join(";");t.set(e,"data-ylk",a)}},u.prototype.init=function(t){return this.config=t,this.ULT=e.YAHOO.ULT,this.ULT||(this.debug("ULT library is missing. Disabling ylc logging"),this.config.enableYlc=!1),this.ylc={},this.merge(this.ylc,this.config.ylcParam),this.clickTarget=this.config.clkLink?this.config.clkLink:this.saView.formTag.action,this.submitTarget=this.saView.formTag.action,!0},a(d,c),d.prototype.init=function(a){var o=this;o.lastValue=null,this.config=a,this.config.autofocus&&this.setFocus(this.saView.searchbox),!n||n>=9?this.ae(this.saView.searchbox,"input",(function(e){o.saModel.fetch()})):8===n&&this.ae(this.saView.searchbox,"propertychange",(function(e){"value"===e.propertyName&&!1===o.saView.selectedItem&&o.saModel.fetch()})),o.config.anykey&&this.ae(t,"keydown",(function(e){var n=t.activeElement;if(!n.tagName||"input"!==n.tagName.toLowerCase()&&"textarea"!==n.tagName.toLowerCase())return 27===e.keyCode&&!o.saView.shown&&o.saView.searchbox.value.length?(o.select(o.saView.searchbox,0,o.saView.searchbox.value.length),void o.stopPropagation(e)):void(e.keyCode<=40||e.ctrlKey||e.metaKey||(o.saView.searchbox.value=r(o.saView.searchbox.value),""!==o.saView.searchbox.value&&(o.saView.searchbox.value+=" "),o.saModel.triggered=!0,o.setFocus(o.saView.searchbox)))})),this.ae(this.saView.searchbox,"keydown",(function(e){switch(e.keyCode){case 13:!1!==o.saView.selectedItem&&(o.config.ylcParam.pqstr=o.saModel.lastValue),o.config.ylcParam.gprid=o.saModel.ylc.gprid,o.config.ylcParam.query=encodeURIComponent(o.saView.searchbox.value);break;case 40:o.saView.moveUpDown(!1),o.stopPropagation(e);break;case 38:o.saView.moveUpDown(!0),o.stopPropagation(e);break;case 27:if(!o.saView.shown)return;return o.cursorEnd(o.saView.searchbox),o.saView.searchbox.blur(),o.saModel.unset(),o.saView.resetHighlight(),o.saView.selectedItem=!1,o.stopPropagation(e),!1;case 9:if(o.saView.searchbox.selectionEnd==o.saView.searchbox.value.length&&o.saView.searchbox.selectionStart==o.saView.searchbox.value.length){if(!o.config.enableTabRender)return o.saModel.unset(),!1;if(o.saView.tab())return o.stopPropagation(e),!1}else o.saView.searchbox.selectionEnd=o.saView.searchbox.selectionStart=o.saView.searchbox.value.length,o.stopPropagation(e);break;case 39:o.saView.searchbox.selectionEnd==o.saView.searchbox.value.length&&o.saView.searchbox.selectionStart==o.saView.searchbox.value.length&&o.saView.tab();break;default:o.saView.resetHighlight(),o.saView.selectedItem=!1}}));var i=function(e){if(n&&n<=8&&t.selection){var a,r,i=o.saView.searchbox,s=i.value.replace(/\r\n/g,"\n"),c=t.selection.createRange(),l=i.value.length,u=i.createTextRange();u.moveToBookmark(c.getBookmark());var d=i.createTextRange();d.collapse(!1),u.compareEndPoints("StartToEnd",d)>-1?a=r=l:(a=-u.moveStart("character",-l),a+=s.slice(0,a).split("\n").length-1,u.compareEndPoints("EndToEnd",d)>-1?r=l:(r=-u.moveEnd("character",-l),r+=s.slice(0,r).split("\n").length-1)),i.selectionStart=a,i.selectionEnd=r}o.lastValue!==o.saView.searchbox.value&&!1===o.saView.selectedItem&&o.saModel.fetch()};this.ae(this.saView.searchbox,"focus",(function(e){!o.saModel.triggered&&o.saModel.fetch(),n&&9===n&&!o.ie9_attached&&(o.ae(t,"selectionchange",i),o.ie9_attached=!0)})),this.ae(this.saView.searchbox,"blur",(function(e){n&&9===n&&o.ie9_attached&&(o.de(t,"selectionchange",i),o.ie9_attached=!1)})),this.ae(this.saView.searchbox,"click",(function(e){!o.saModel.triggered&&o.saModel.fetch()}));var s=function(e){if(o.saView.shown){for(var t=e.target?e.target:e.srcElement;t;){if(t===o.saView.formTag)return;t=t.parentNode}o.config.touchOriented&&o.stopPropagation(e),o.saModel.unset()}};return"ontouchstart"in e?(this.config.touchOriented=!0,this.ae(t.body,"touchstart",s,!0)):this.ae(t,"click",s),this.ae(this.saView.formTag,"submit",(function(e){o.saModel.addYlc(o.saModel.submitTarget)})),this.saView.clearButton&&this.ae(this.saView.clearButton,"click",(function(e){if(o.saView.searchbox.value="",o.saModel.triggered=!1,o.setFocus(o.saView.searchbox),o.config.enableYlc&&o.config.clearBeaconing&&o.saModel.ULT){var t={_r:2,actn:"clk",pos:1,sec:"clearsearch",slk:"clear",t1:"hdr",t2:"searchbox",t3:"clear"};o.merge(t,o.config.clrLog),o.saModel.ULT.beacon_click(t)}})),!0},a(p,c),p.prototype.saModelClass=u,p.prototype.saViewClass=l,p.prototype.saControlClass=d,p.prototype.init=function(a){return!(n&&n<8)&&("object"==typeof a&&this.merge(this.config,a),this.saView=new this.saViewClass,this.saModel=new this.saModelClass(this.saView),this.saControl=new this.saControlClass(this.saModel,this.saView),this.cb=this.saModel.cbTable,this.config.customEvent&&8===n&&(t.documentElement.assistSelection=null),this.ready=this.saView.init(this.config,this.saModel)&&this.saModel.init(this.config)&&this.saControl.init(this.config),!!this.ready&&(e.YAHOO[this.config.objectName]=this,void(e.performance&&"function"==typeof e.performance.now&&(this.latency=e.performance.now()))))},p};e.exports={assistJS:t},"undefined"!=typeof window&&(window.YAHOO=window.YAHOO||{},window.YAHOO.SAClass=t(window,document))})).assistJS,ee=function(e,t,n,a){var r=Z(window,document),o=r.prototype.saControlClass,i=r.prototype.saViewClass,s=document.getElementById("ybar-sbq"),c=function(e,t){o.call(this,e,t)},l=document.getElementById("ybar"),u=l&&l.className&&l.className.match(/ybar-property-([a-z]*)/)[1],d=!!document.querySelector(".modal-open"),p=null,f=null;"homepage"!==u&&"my"!==u&&"ngy"!==u||Y(e,d),"homepage"===u&&D(e),s&&s.addEventListener("click",(function(){n.saveCurrentTimerValue("search_input_focus_click")})),r.prototype.extend(c,o);var y=1;c.prototype.init=function(r){var i=this,s=1,c=this.get(i.saView.formTag,"data-appid"),m=this.get(i.saView.formTag,"data-pubid"),h=this.get(i.saView.formTag,"data-textShown"),g=this.get(i.saView.formTag,"data-textClosed"),b=this.get(i.saView.formTag,"data-sabase"),v=this.get(i.saView.formTag,"data-botSearch"),_=this.get(i.saView.formTag,"data-textSuggestionTitle"),w=this.get(i.saView.formTag,"data-textBotSearch");o.prototype.init.call(this,r),m&&(this.config.gossipParam.pubid=m),c&&(this.config.gossipParam.appid=c),h&&(this.config.text.ariaShown=h),g&&(this.config.text.ariaClosed=g),b&&(this.config.saBase=b),v&&(this.config.botSearch=v,this.config.botSearchSlk="sitesrch"),_&&(this.config.text.suggestionTitle=_),w&&(this.config.text.botSearch=w),window.addEventListener("keydown",(function(e){document.activeElement===i.saView.searchbox&&J(e,i.saView.searchbox)}),!0);var E="";return setTimeout((function(){var t=e.querySelector("input[type=submit]");t&&(E=t.getAttribute("data-ylk"))&&(E=Q(E),t.removeAttribute("data-ylk"))}),0),i.saView.formTag.onsubmit=function(t){if(i.owner.searching&&2!==y||""===i.saView.searchbox.value.trim())t.preventDefault();else if(1===y){i.owner.searching=!0,y=2,n.saveCurrentTimerValue("search_query_submit"),p=E,f={pp:{A_utm:n.getPerformanceI13nObject()}};var a=i.config.botSearchSlk,r=p.sec,o=p.slk;delete p.sec,delete p.slk,n.beaconClick(r,a||o,"1",p,null,(function(){setTimeout((function(){i.saView.formTag.submit()}),300)}),f),d=!!document.querySelector(".modal-open"),"homepage"!==u&&"ngy"!==u&&"my"!==u||!d||Y(e,d),t.preventDefault()}else{var s=e.querySelector("input[type=submit]");s&&setTimeout((function(){s.disabled=!0,setTimeout((function(){i.owner.searching=!1,s.disabled=!1}),1e3)}),0),i.owner.searching=!0,y=1}},this.ae(this.saView.searchbox,"keydown",(function(t){if(n.saveCurrentTimerValue("search_input_keyboard_input"),13===t.keyCode){if(t.preventDefault(),i.owner.searching)return;if(""!==i.saView.searchbox.value.trim()){n.saveCurrentTimerValue("search_query_submit"),i.owner.searching=!0,setTimeout((function(){i.owner.searching=!1}),1e3),d=!!document.querySelector(".modal-open");var r=i.saView.shown&&!1!==i.saView.selectedItem;if("homepage"===u&&(d||r)?(Y(e,d,r),z(e,a,r),F(e,r)):"smartphone"===a&&z(e,a,r),("ngy"===u&&(d||r)||"my"===u&&(d||r))&&Y(e,d,r),"function"==typeof n.beaconClick){p={elm:"search",elmt:"kybrd",subsec:"searchbox",itc:"0",tar:"search.yahoo.com"},r&&(p.elmt="srch-asst"),f={pp:{A_utm:n.getPerformanceI13nObject()}};var o=i.config.botSearchSlk;n.beaconClick("ybar",o||"websrch","1",p,null,(function(){setTimeout((function(){y=0,i.saView.formTag.submit()}),300)}),f)}else i.saView.formTag.submit()}}else 9!==t.keyCode&&13!==t.keyCode&&1===s&&(s++,p={elm:"search",elmt:"keystroke",subsec:"searchbox",itc:"1",tar:"search.yahoo.com"},f={pp:{A_utm:n.getPerformanceI13nObject()}},"function"==typeof n.beaconClick&&n.beaconClick("ybar","websrch","1",p,null,null,f))})),t&&t.addEventListener("click",(function(e){e.stopPropagation(),l.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.toggle("ybar-overlay"),i.saView.searchbox.value="",i.saView.searchbox.blur(),i.saModel.unset(),i.saView.resetHighlight(),i.saView.selectedItem=!1,p={elm:"btn",subsec:"searchbox",itc:"1"},n.beaconClick("ybar","back-close-srch","",p)})),!0},r.prototype.saControlClass=c;var m=function(){i.call(this)};return r.prototype.extend(m,i),m.prototype.display=function(e){var t=this;i.prototype.display.call(this,e);var a=t.config.botSearch;if(a){var r=document.querySelector('ul[role="listbox"]'),o=G(V,t.config.text.suggestionTitle);r.prepend(o);var s=function(e,t){var n=document.createElement("div");n.className=V["bot-search-item"];var a=document.createElement("div"),r=document.createElement("div");a.className=V["bot-search-item-col"],r.className=V["bot-search-item-col"];var o=document.createElement("div");o.className=V["bot-search-icon-container"];var i=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("width","20"),i.setAttribute("height","20"),i.setAttribute("viewBox","0 0 24 24"),i.classList.add(V["bot-search-icon"]),s.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"),i.appendChild(s),o.appendChild(i),a.appendChild(o);var c=document.createElement("span"),l=document.createElement("span");l.className=V["bot-search-span"];var u=document.createElement("span"),d=e.split("{query}");return c.textContent=d[0]||"",l.textContent=t,u.textContent=d[1]||"",r.appendChild(c),r.appendChild(l),r.appendChild(u),n.appendChild(a),n.appendChild(r),n}(t.config.text.botSearch,t.searchbox.value);r.appendChild(s),t.ae(s,"click",(function(){t.hide(),t.formTag.action=a,n.saveCurrentTimerValue("search_query_submit"),t.owner.searching=!0,setTimeout((function(){t.owner.searching=!1}),1e3),p={elm:"search",elmt:"button",subsec:"searchbox",itc:"0",tar:"search.yahoo.com"},f={pp:{A_utm:n.getPerformanceI13nObject()}},"function"==typeof n.beaconClick?n.beaconClick("ybar","websrch","1",p,null,(function(){setTimeout((function(){y=0,t.formTag.submit()}),300)}),f):t.formTag.submit()}))}},m.prototype.suggestionClick=function(t,r){var o=this;if(!o.owner.searching){n.saveCurrentTimerValue("search_query_submit"),o.owner.searching=!0,setTimeout((function(){o.owner.searching=!1}),1e3),p={cpos:r?r.idx:0,elm:"search",elmt:"srch-asst",subsec:"searchbox",itc:"0",tar:"search.yahoo.com"},f={pp:{A_utm:n.getPerformanceI13nObject()}};var i=!0;if(d=!!document.querySelector(".modal-open"),"homepage"===u?(Y(e,d,i),z(e,a,i),F(e,i)):"ngy"===u||"my"===u?Y(e,d,i):"smartphone"===a&&z(e,a,i),"function"==typeof n.beaconClick){var s=o.config.botSearchSlk;n.beaconClick("ybar",s||"websrch","1",p,null,(function(){setTimeout((function(){y=0,o.formTag.submit()}),300)}),f)}else o.formTag.submit()}},m.prototype.show=function(){i.prototype.show.call(this),e&&e.classList&&(e.classList.add("sa"),s.setAttribute("aria-expanded","true"))},m.prototype.hide=function(){i.prototype.hide.call(this),e&&e.classList&&(e.classList.remove("sa"),s.setAttribute("aria-expanded","false"))},r.prototype.saViewClass=m,r},te=function(e,t,n,a){var r={};for(var o in t)r[o]=t[o];"homepage"===n?"tablet"===a?r.fr2="p:fp,m:sb":delete r.fr2:"my"===n&&(r.fr2="p:my,m:sb"),e.searchInput&&(r.autofocus=e.searchInput.autofocus),"smartphone"===a&&e.searchBox&&e.searchBox.addEventListener("click",(function(){e.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.contains("ybar-overlay")||document.documentElement.classList.toggle("ybar-overlay")}));var i=new(ee(e.searchBox,e.searchBoxBackButton,f,a));return i.init(r),i.searching=!1,i.saControl.owner=i,i.saView.owner=i,f.saveCurrentTimerValue("search_assist_ready"),i};(0,w.initModule)("ybar-mod-assistjs",(function(e){var t=document.getElementById("ybar-sf");if(t&&"true"===t.getAttribute("data-saEnabled")){var n=t.getAttribute("data-saVersion"),a="0"===n?te:$,r="0"===n?K:H,o={ybar:document.getElementById("ybar"),searchBox:t,searchInput:document.getElementById(K.searchBoxId),searchBoxBackButton:document.getElementById("ybar-search-back-btn")},i=e.getConfig();a(o,r,i.property,i.device)}}));var ne={"ybar-mod-account":"_yb_1hdq6","ybar-link-color":"_yb_7v4lj","ybar-margin-bottom-8":"_yb_c3j0e","ybar-margin-top-14":"_yb_yoswz","ybar-margin-right-20":"_yb_1ah2i","ybar-text-overflow":"_yb_d97xt","ybar-item-border":"_yb_1ouex","ybar-inline-block":"_yb_1bqcu","ybar-block":"_yb_ixtsx","ybar-see-info":"_yb_mmcuf","ybar-login-btn":"_yb_1jjiy","property-generic":"_yb_1bob3","property-homepage":"_yb_yevt5","ybar-account":"_yb_3wve8","ybar-account-img":"_yb_lvskr",smartphone:"_yb_1v4ye","logged-in":"_yb_pt2uc","ybar-account-name":"_yb_smwxt","ybar-account-container":"_yb_muzdc _yb_fnutb","property-mail":"_yb_dt7tl","ybar-user-accounts-list":"_yb_ooqbt","ybar-account-menu":"_yb_1dhil _yb_1jgia","ybar-account-menu-item-current":"_yb_8wc3z","signedout-text":"_yb_14xmg","ybar-avatar":"_yb_zlkaq","ybar-current-user-profile-img":"_yb_1euv0","ybar-current-user-profile-shape":"_yb_f2xjn","ybar-user-profile-img":"_yb_tiu1s","ybar-user-profile-shape":"_yb_wumpi","ybar-gradient":"_yb_15988","ybar-account-menu-item":"_yb_1j2ox","ybar-account-menu-item-signed-out":"_yb_umr3p","ybar-account-img-signed-out":"_yb_qdhzl","ybar-account-item-hover":"_yb_1fsx5","ybar-sign-out":"_yb_t64v3","ybar-account-info":"_yb_147gc","ybar-account-info-spacing":"_yb_1diba","ybar-account-user-name":"_yb_469ru","ybar-account-user-email":"_yb_ulleh","ybar-account-info-link":"_yb_x2g5u","ybar-account-wrapper":"_yb_329th","ybar-account-settings-item":"_yb_miyr5","ybar-account-settings-item-text":"_yb_17523","ybar-icon":"_yb_btor7","ybar-menu-item-icon":"_yb_1vov9","ybar-homepage-menu-item-icon":"_yb_frca0","ybar-icon-camera":"_yb_1wrrc","ybar-icon-image-wrapper":"_yb_alw14","ybar-btn-default-homepage":"_yb_1lv4e","ybar-btn-update-phone-number":"_yb_1us15","locale-es-us":"_yb_p7sln","variant-att":"_yb_nai4e","locale-en-us":"_yb_11kpw","variant-aol":"_yb_riybq","variant-engadget":"_yb_1gnzq","variant-stylemepretty":"_yb_z5ifb","variant-polyvore":"_yb_qcie8","variant-rivals":"_yb_kv1xo","variant-tumblr":"_yb_1qhx1","variant-techcrunch":"_yb_1ncec","variant-moviefone":"_yb_r4yst","variant-builtbygirls":"_yb_1rsdq","variant-mapquest":"_yb_qnxbs","ybar-sign-out-text":"_yb_cfsnn","no-lazy-image":"_yb_7t65y","lazy-image":"_yb_1izc6",mobile:"_yb_73qll","ybar-login-link":"_yb_h8jl8","ybar-icon-arrow":"_yb_16y96","ybar-item-hidden":"_yb_vrv8v","ybar-icon-arrow-down":"_yb_1uwqn","ybar-icon-arrow-up":"_yb_1pnwp","smartphone-inner-wrapper":"_yb_1ybcw","smartphone-profile-panel-container":"_yb_2d4lw","gray-divider":"_yb_pppvv","box-shadow":"_yb_1b902","current-account-first-row":"_yb_pyh87","oneyahoo-icon-wrapper":"_yb_28hq9","smartphone-user-profile-img":"_yb_vcojj","small-icon":"_yb_z411a","smartphone-account-info":"_yb_15ep2","smartphone-account-max-width":"_yb_1btl6","signed-out":"_yb_bcvu5","signed-in":"_yb_pt3p2","ybar-account-user-signedout":"_yb_bgqwz","ybar-account-user-email-other":"_yb_zv7t4","smartphone-account-normal":"_yb_1n73h","smartphone-icon-wrapper":"_yb_14vdf","height-auto":"_yb_1qh47","smartphone-logo":"_yb_1std4","gray-background":"_yb_1ehyd","smartphone-align-right":"_yb_kih0q","current-account-second-row":"_yb_3j4kf","user-account-list-item":"_yb_1e80b","vertical-align-center":"_yb_11kt0","other-accounts-wrapper":"_yb_1aaxf","smartphone-row":"_yb_dlryb","signin-wrapper":"_yb_wq32v","signin-message":"_yb_15mxu","signin-button":"_yb_dy1ul","smartphone-account-dark":"_yb_1fkrn","notif-dropdown-container":"_yb_nev8n","notif-badge":"_yb_vmuhs","prof-notif-badge":"_yb_1d4fy","position-relative":"_yb_1ar4y","dropdown-header-wrapper":"_yb_1ezwj","dropdown-header-title":"_yb_14y12","oneyahoo-active-user-icon":"_yb_15rf8","oneyahoo-profile-footer":"_yb_uzjt1",homepage_show_saved_accounts:"_yb_161cu"},ae=function(){var e=this;return e._head=null,e._done=!1,e};ae.prototype._load=function(e,t){var n=this,a=document.createElement("script");a.src=e,a.async=!0,a.onerror=function(a){n._done=!0,a._meta={jsonpUrl:e},a.message=a.message+", error loading "+e+" JSONP script tag",t(a)},a.onload=a.onreadystatechange=function(){n._done||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(n._done=!0,a.onload=a.onreadystatechange=null,a.parentNode.removeChild(a))},n._head=document.getElementsByTagName("head")[0],n._head.appendChild(a)},ae.prototype.get=function(e,t,n,a){var r=~e.indexOf("?")?"&":"?";for(var o in t=t||{})Object.prototype.hasOwnProperty.call(t,o)&&(r+=encodeURIComponent(o)+"="+encodeURIComponent(t[o])+"&");return window[a]=function(e){n(null,e);try{delete window[a]}catch(e){}window[a]=null},this._load(e+r,n),a};var re,oe=ae,ie=d((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.postreq=t.getreq=void 0;var n=function(e,t){if(200!==e.status){var n=new Error("GET request failed with status: "+e.status);n._meta={status:e.status},e.ymreqid&&(n._meta={ymreqid:e.ymreqid}),t(n)}else{var a=null;try{a=JSON.parse(e.responseText)}catch(e){var r=new Error("Error parsing responseText");return r._meta={originalError:e},void t(r)}t(null,a)}};t.getreq=function(e,t){var a=new XMLHttpRequest;if(a.open("GET",e.url,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),"object"==typeof e.headers&&Object.keys(e.headers).length)for(var r in e.headers)a.setRequestHeader(r,e.headers[r]);a.withCredentials=!0,a.onreadystatechange=function(){4===a.readyState&&n({status:a.status,responseText:a.responseText},t)},a.send()};t.postreq=function(e,t){var a=new XMLHttpRequest,r=e.body?JSON.stringify(e.body):null;a.open("POST",e.url,!0),a.setRequestHeader("Content-type","application/json"),e.ymreqid&&a.setRequestHeader("X-Oath-YmReqId",e.ymreqid),a.withCredentials=!0,a.onreadystatechange=function(){4===a.readyState&&n({status:a.status,responseText:a.responseText,ymreqid:e.ymreqid},t)},a.send(r)}})),se=d((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectValue=t.appendQorA=void 0;t.getObjectValue=function(e,t,n){if(!e)return n;if(!t)return e;"string"==typeof t&&(t=t.split("."));for(var a=0;e&&a=0;--t){e[t]=(r=void 0,(r={fn:(a=e[t]).fn||"",ln:a.ln||"",em:a.em||"",alias:a.alias||"",imageUrl:a.imageUrl,state:a.state,fullName:null,identifier:null}).fullName=function(e,t){for(var n=e+t,a=0;a40959)&&(r<13312||r>19903))return!1}return!0}(r.fn,r.ln)?[r.ln,r.fn].join(""):[r.fn,r.ln].join(" "),r.identifier=r.em||r.alias,r);var n=e[t].state;0!==n&&"0"!==n||e.splice(t,1)[0]}var a,r;return e}(a.users),o=de(ue("ybar-user-accounts-list")),i=0;i<3;++i)o.appendChild(Ee(r[i],i));if(r.length>0){var s=de(ue("ybar-account-menu","ybar-sign-out")),c=s&&s.getAttribute("data-soa"),l=de(ue("ybar-account-menu","ybar-sign-out-text"));if(l&&c&&(l.innerText=c),e){var u=de(ue("ybar-account-menu","ybar-icon-arrow")),d=ue("ybar-icon-arrow-up").substr(1),p=ue("ybar-icon-arrow-down").substr(1),f=ue("ybar-item-hidden").substr(1),y=pe(ue("ybar-item-hidden"));u&&(u.classList.toggle(p),u.addEventListener("click",(function(){for(i=0;i3){var m=de(ue("ybar-account-menu","ybar-see-info"));m&&m.style&&(m.style.display="block")}xe(),t&&t(null)}else ve&&(ve.style.display="block")};if(we)le({url:"https://jsapi.login.yahoo.com/w/device_users?.crumb="+re.value},r);else(new oe).get("https://jsapi.login.yahoo.com/w/device_users",a,r,"processDeviceUsers")}},Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ie=function(){function e(e,t){for(var n=0;n0?(t--,setTimeout((function(){a._sendRequest(e,t,n)}),o)):n&&n(new Error("Error: "+l.status+" "+l.statusText),null)};l.onload=function(){if(200===l.status){var t=a._parseRequestResult(l.response||l.responseText);n&&n(null,t,e)}else u()},l.onerror=u,"GET"===e.method?l.send():l.send(c)}}]),e}(),Ne=" ";function Oe(e,t){if(e&&!Ae(e,t)){var n=e.className+Ne+t;e.className=n}}function Ae(e,t){var n=e&&e.className&&e.className.split(Ne);return!!n&&-1!==n.indexOf(t)}function qe(e,t){if(e){var n=e.className&&e.className.split(Ne);if(n){var a=n.indexOf(t);a>=0&&n.splice(a,1),e.className=n.join(Ne)}}}function Me(e,t){if(e){if(!t)return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}var Pe=function(){function e(t,n){Se(this,e);var a=this;a._config=t,a._markup="",a._newCount,a._count,a._request=n}return Ie(e,[{key:"_replaceAllNotifications",value:function(e){this._markup=e.markup||"",this._newCount=e.newCount&&parseInt(e.newCount,10)||0,this._count=e.count&&parseInt(e.count,10)||0}},{key:"resetNewCount",value:function(){if(0!==this._newCount&&this._config.service.resetUrl){var e={url:this._config.service.resetUrl};this._request.read(e,(function(e,t){}))}this._newCount=0}},{key:"_requestNotifications",value:function(e,t){var n=this,a=n._config.panel,r={count:a.maxCount,imageTag:a.imageTag,theme:a.theme};e||(e={}),a.notificationTypes&&(r.notificationTypes=a.notificationTypes),Me(r,e.matrixParams);var o={matrixParams:r};n._request.read(o,(function(e,a){!e&&a&&n._replaceAllNotifications(a),a=a||{},t&&t(e,a)}))}},{key:"getNotifications",value:function(){return{count:this._count,markup:this._markup,newCount:this._newCount}}},{key:"fetchNotifications",value:function(e,t){this._requestNotifications(e,t)}}]),e}(),Be="yns-panel-loading",je="yns-panel",Re="yns-hide",Ve="yns-panel-padding-btm",He=function(){function e(t,n){Se(this,e);var a=this;a._config=t,a._panelNode=null,a._store=n}return Ie(e,[{key:"_generatePanelMarkup",value:function(e,t){var n=this._config,a=void 0,r=void 0;"undefined"!=typeof window&&(a=window.Notification&&"default"===window.Notification.permission,r=Ae(document.body,n.promos.eligibleBodyClass));var o=n.promos.enableNotifOnboard&&a&&r?'