Democratic Sen. Kyrsten Sinema received the legal maximum of donations from several known GOP donors, new FEC filings show

0
9

[ad_1]

t.maxInput?e.hide():(e.model.fetch(),e.triggered=!0))},hide:function(){var e=this,t=(i=e.elems).saAria,n=i.sbForm,i=e.config;g.removeClass(m.body,i.typingClass),g.removeClass(n,i.noResultClass),e.clearAssist(),e.shown=!1,e.triggered=!1,t&&(g.set(t,”aria-expanded”,”false”),t.innerHTML=”

“+e.config.saAria.closedText+”

“),e.app.notify(L)},clearAssist:function(){this.elems.saTray.innerHTML=””,this.items.splice(0,this.items.length),this.assistItem=null},createItem:function(e){var t={idx:e.idx,data:e.origData},n=g.htmlEncode,i=this.config,o=this.app.createElem,r=o(i.saItem,”li”);return g.set(r,”pos”,e.idx),(o=o(i.saTitle,”span”)).innerHTML=e.t||(i.boldTag&&e.k&&e.q?g.bold(i.boldTag,n(e.k),n(e.q),i.highlight||{}):n(e.k)),r.appendChild(o),t.li=r,t.title=o,this.app.notify(T,[t,e]),t},resetQuery:function(){this.elems.sbInput.value=this.origQuery},reset:function(){var e=this,t=e.config,n=e.elems.sbForm;t.resetQuery&&e.resetQuery(),e.hide(),n.action=e.origAction,e.app.notify(I)},sameQuery:function(){return this.elems.sbInput.value==this.lastInput}},K),c.initConfig=function(){return{elems:{sbForm:”sb-form”,sbInput:”sb-input”,sbSubmit:”sb-search”,sbClear:”sb-clr”,sbCancel:”sb-cancel”,saTray:”sa-tray”},customEvent:{},sa:{css:”sa”,attrs:{type:”normal”}},saList:{css:”sa-list”,attrs:{role:”listbox”},style:{cursor:”pointer”}},saItem:{css:”sa-item”,attrs:{role:”option”}},saTitle:{css:”sa-item-title”},saAria:{shownText:”new suggestions shown”,closedText:”Suggestion box closed”,css:”sa-aria-live-region”,attrs:{“aria-live”:”polite”},style:{position:”absolute”,left:”-9999px”}},saBE:{host:””,base:”/sugg/gossip/gossip-us-ura/”,params:{l:1,bm:3,output:”sd1″,nresults:10}},shBE:{host:””,base:”https://news.yahoo.com/history”},minInput:0,maxInput:255,boldTag:”{s}“,ylc:{_r:2},ylcAssist:{use_case:””},hideOnOutsideClick:!0,noQueryClass:”sa-noQuery”,typingClass:”typing”,noResultClass:”sf-noResult”}},v.hideSbClr=(J.prototype={init:function(e){(this.app=e).on(S,$,this)}},J),v.saFr=(te.prototype={init:function(e){(this.app=e).on(E,X,this),e.on(M,Z,this),e.on(I,ee,this)}},te),v.ipos=(oe.prototype={init:function(e){(this.app=e).on(S,ne,this),e.on(b,ie,this)}},oe),v.saTray=(ae.prototype={init:function(e){(this.app=e).on(w,re,this)}},ae),v.saFlvr=(ce.prototype={init:function(e){e.on(T,se,this)}},ce),v.saEdit=(ue.prototype={init:function(e){e.on(T,le,this)}},ue),v.saAnnot=(pe.prototype={init:function(e){e.on(T,de,this)}},pe),v.saImg=(he.prototype={init:function(e){e.on(T,fe,this)}},he),v.saGroup=(ge.prototype={init:function(e){this.app=e,this.idxs={},e.on(T,me,this),e.on(k,ye,this)}},ge),v.saPCActn=(Ee.prototype={init:function(e){var t=this;t.app=e,t.selectedIndex=-1,e.on(_,ve,t),e.on(A,be,t),e.on(j,_e,t),e.on(H,we,t)}},Ee),v.tapRmv=(xe.prototype={init:function(e){(this.app=e).on(N,Ce,this)}},xe),v.tapClr=(Te.prototype={init:function(e){(this.app=e).on(A,ke,this)}},Te)}();var Xe={“sa-sbx-container”:”_yb_1q2ee”,sa:”_yb_15a7c”,”sub-assist”:”_yb_h12ap”,”no-wrap”:”_yb_1n0rv”,”sa-tray”:”_yb_6b7h9″,”sa-tray-list-container”:”_yb_j0h4u”,”yui3-highlight”:”_yb_17ele”,lowlight:”_yb_xi5g4″,”list-item-hover”:”_yb_r139c”,”related-title”:”_yb_29omm”,”trending-title”:”_yb_fekcw”,”sa-fd-actn-cont”:”_yb_y22id”,”suggestion-title”:”_yb_1o3vd”,”bot-search-item”:”_yb_1thbc”,”bot-search-item-col”:”_yb_131m7″,”bot-search-icon-container”:”_yb_11bj5″,”bot-search-span”:”_yb_1mo6o”,”bot-search-icon”:”_yb_oh12z”,”sa-annot-rich”:”_yb_1kb61″,”sa-img-ctn”:”_yb_1iusj”,”sa-img-icon”:”_yb_128dg”,”sa-history”:”_yb_zypcp”,”sa-trending”:”_yb_1ywqu”,”sa-img”:”_yb_1yo52″,”sa-annot-title”:”_yb_ftmim”,”sa-annot-subtitle”:”_yb_1tonn”,”sa-edit”:”_yb_1vwhf”,”sa-edit-text”:”_yb_53dy8″,”sa-sugg”:”_yb_1t6yv”,”sa-edit-icon”:”_yb_1cnxh”,”sa-grp-hdr”:”_yb_zwad2″,”sa-grp-hdr-title”:”_yb_11wco”},Ze={boldTag:’{s}‘,customEvent:{customBtn:”searchBtnClicked”,customKeyBoard:”enterKeyPressed”,customSelection:”assistSelectionClicked”},elems:{sbForm:”ybar-sf”,sbInput:”ybar-sbq”,sbSubmit:”ybar-search”,sbClear:”ybar-sbq-x”,sbCancel:”ybar-search-back-btn”},hightlight:{exact:!0,pattern:”^”},minInput:1,sa:{css:Xe[“sa-tray”]},saBE:{base:””,host:””,params:{appid:”yfp-t”}},saItem:{css:””},saList:{css:Xe[“sa-tray-list-container”]},saTitle:{css:””,style:{display:”block”}},plugins:{saFr:{fr:””},saTray:{afterNode:”ybar-sbq”,ctn:{css:Xe[“sa-sbx-container”]},tray:{css:Xe.sa+” “+Xe.lowlight}},saPCActn:{css:Xe[“list-item-hover”]},ylcEncode:{disable:!0},saFlvr:{disable:!0},saEdit:{disable:!0},saAnnot:{disable:!0},saImg:{disable:!0},saPopup:{disable:!0}}},et={saBE:{base:””,host:””,params:{appid:”yfp-t”,”.crumb”:””,f:1}},shBE:{host:”https://search.yahoo.com”,base:”https://news.yahoo.com/history”,params:{_bcrumb:””}},minInput:0,plugins:{saFlvr:{m9:Xe[“sa-trending”],m13:Xe[“sa-history”],flvr:Xe[“sa-sugg”]},saEdit:{ctn:{css:Xe[“sa-edit”]},icon:{css:Xe[“sa-edit-icon”]},text:{css:Xe[“sa-edit-text”],text:”Remove”}},saAnnot:{title:{css:Xe[“sa-annot-title”]},subtitle:{css:Xe[“sa-annot-subtitle”]},richClass:Xe[“sa-annot-rich”]},tapRmv:{placeholder:””},saImg:{placeholder:{css:Xe[“sa-img-icon”]},thumbnail:{css:Xe[“sa-img”]},ctn:{css:Xe[“sa-img-ctn”]}},saGroup:{hdr:{css:Xe[“sa-grp-hdr”]},title:{css:Xe[“sa-grp-hdr-title”]},grps:{m9:{text:”Trending Now”,css:Xe.trending},m13:{text:””,css:Xe.history}}}}},tt=function(e,t,n){var i=document.createElement(“div”);i.className=n[“bot-search-item”];var o=document.createElement(“div”),r=document.createElement(“div”);o.className=n[“bot-search-item-col”],r.className=n[“bot-search-item-col”];var a=document.createElement(“div”);a.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),a.appendChild(s),o.appendChild(a);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]||””,r.appendChild(l),r.appendChild(u),r.appendChild(d),i.appendChild(o),i.appendChild(r),i},nt=function(e){var t=new RegExp(“[?&]”+e+”=([^]*)”).exec(window.location.search);return t?t[1]:null},it=function(e,t,n){var i=e.querySelectorAll(t);if(i)for(var o=0;o=0?(o=”srch-asst”,c=!0,s=t.detail.data.idx+1):o=”kybrd”:o=”botSearchClicked”===t.type?”sitesrch”:”icon”,”homepage”!==n&&”my”!==n||!a&&!c?”smartphone”===i&&(rt(e,i,c),at(e,c)):(ot(e,a,c),rt(e,i,c),at(e,c)),”ngy”===n&&(a||c)&&ot(e,a,c),h(st(o,”0″,s.toString())))},d=function(t){var o=!!document.querySelector(“.modal-open”),r=!0,a=(t.detail&&t.detail.data&&t.detail.data.idx||0)+1;”homepage”===n||”my”===n?(ot(e,o,r),rt(e,i,r),at(e,r)):”smartphone”===i&&(rt(e,i,r),at(e,r)),”ngy”===n&&ot(e,o,r),h(st(“srch-asst”,”0″,a.toString()))},p=function(e){if(“function”==typeof t.beaconClick&&9!==e.keyCode&&13!==e.keyCode&&1===l){t.saveCurrentTimerValue(“search_input_keyboard_input”);var n=st(“keystroke”,”1″);l++,t.beaconClick(n.sec,n.slk,n.pValue,n.clickParams)}},f=function(){t.saveCurrentTimerValue(“search_input_focus_click”)},h=function(n){if(“function”==typeof t.beaconClick){t.saveCurrentTimerValue(“search_query_submit”);var i={pp:{A_utm:t.getPerformanceI13nObject()}};t.beaconClick(n.sec,n.slk,n.pValue,n.clickParams,void 0,(function(){setTimeout((function(){e&&e.submit()}),250)}),i)}else e&&e.submit()};function m(){this.config={botSearch:{action:a,text:c||””},suggestionTitle:{text:s||””}}}function y(e){var t=this.config,n=this.app.view,i=n.elems.sbForm,o=n.elems.sbInput.value,r=ct(Xe,t.suggestionTitle.text),a=tt(t.botSearch.text,o,Xe);a&&(e&&r&&(e.prepend(r),e.appendChild(a)),a.addEventListener(“click”,(function(){t.botSearch.action&&(i.action=t.botSearch.action),n.hide(),u(new CustomEvent(“botSearchClicked”))})))}r&&(r&&(r.addEventListener(“enterKeyPressed”,u),r.addEventListener(“assistSelectionClicked”,d),r.addEventListener(“searchBtnClicked”,u),r.addEventListener(“keydown”,p),r.addEventListener(“click”,f)),”homepage”!==n&&”my”!==n&&”ngy”!==n||(ot(e),”homepage”===n&&lt(e)),t.saveCurrentTimerValue(“search_assist_ready”)),m.prototype={init:function(e){this.app=e,e.on(“after_update_list”,y,this)}},a&&(null===(o=window.YAHOO.SA)||void 0===o||o.add(“saBotSearch”,m))}(t.searchBox,{beaconClick:X,saveCurrentTimerValue:ae,getPerformanceI13nObject:se},i,o),window.YAHOO.SA.init(n)}else{var c=”Search lib not found. SearchAssist failed to initialise”;e.logError(c,new Error(c))}},pt={boldTag:’{s}‘,clearButtonId:”ybar-sbq-x”,suppressEmptyQuery:!0,anykey:!0,autofocus:!0,enableYlc:!1,fr2:”sa-gp-ybar”,searchBoxId:”ybar-sbq”,cssClass:{container:Xe[“sa-sbx-container”],trayContainer:Xe.sa+” “+Xe.lowlight,tray:Xe[“sa-tray”],traySub:Xe[“sa-tray”]+” “+Xe[“sub-assist”]+” “+Xe[“no-wrap”],ul:Xe[“sa-tray-list-container”],liHighlight:Xe[“list-item-hover”],li:””,span:””,text:””,aria:””,actionContainer:Xe[“sa-fd-actn-cont”],relatedSearches:Xe[“related-title”],trendingNow:Xe[“trending-title”]}},ft=t(fe),ht=n((function(e){var t=function(e,t){var n=function(){if(“Microsoft Internet Explorer”===e.navigator.appName){var t=new RegExp(“MSIE ([0-9]{1,}[.0-9]{0,})”).exec(e.navigator.userAgent);return t&&t[1]&&parseFloat(t[1])}return!1}();function i(e,t){e.prototype=Object.create?Object.create(t.prototype):function(e){function t(){}return t.prototype=e,new t}(t.prototype),e.prototype.constructor=e}function o(e){return”function”==typeof e.trim?e.trim():e.replace(/^s+|s+$/gm,””)}function r(e){if(n&&n{s}”,annotation:{},cssClass:{container:”sa-sbx-container”,trayContainer:”sa lowlight”,tray:”sa-tray”,traySub:”sa-tray sub-assist no-wrap”,ul:”sa-tray-list-container”,liHighlight:”list-item-hover”,li:””,span:””,text:””,aria:”sa-aria-live-region”,actionContainer:”sa-fd-actn-cont”,relatedSearches:”related-title”,trendingNow:”trending-title”},text:{relatedSearches:”Related Searches”,trendingNow:”Trending Now”,ariaShown:”new suggestions shown”,ariaClosed:”Suggestion box closed”},customEvent:!1,suppressEmptyQuery:!1,enableAnnotation:!1,enableIpos:!0,subAssist:!0,subTrayDelta:5,trayPadding:12,debug:!1,objectName:”SA”,anykey:!1,clearBeaconing:!1,enableYlc:!0,autofocus:!1,highlight:{pattern:””,exact:!1},minQueryLength:0,enableTabRender:!0}}return e.YAHOO=e.YAHOO||{},c.prototype={set:function(e,t,n){e.setAttribute(t,n)},get:function(e,t){return e.getAttribute(t)},merge:function e(t,n){for(var i in n)”object”==typeof n[i]&&”object”==typeof t[i]?e(t[i],n[i]):t[i]=n[i]},extend:i,buildUrl:function(e,t){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(encodeURIComponent(i)+”=”+encodeURIComponent(t[i]));return n.length>0&&(e=e+(-1===e.indexOf(“?”)?”?”:”&”)+n.join(“&”)),e},stopPropagation:function(e){e.returnValue=!1,e.cancelBubble=!0,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation()},setFocus:function(e){r(e),a(e)},cursorEnd:r,select:function(e,t,i){if(n&&n&]/gim,(function(e){return””+e.charCodeAt(0)+”;”}))},ae:function(e,t,n,i){if(i||(i=!1),e.addEventListener)e.addEventListener(t,n,i);else{if(!e.attachEvent)return!1;e.attachEvent(“on”+t,n)}},de:function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n);else{if(!e.detachEvent)return!1;e.detachEvent(“on”+t,n)}},ts:function(){return Math.round((new Date).getTime()/1e3)},bold:function(e,t,n,i){var o,r,a=(i.pattern?i.pattern:””)+”(&[^;\s]*)?(%needles)”;return(o=i.exact?[s(n)]:n.split(/[s|,]+/).filter((function(e){return””!==e})).sort((function(e,t){return t.length-e.length})).map((function(e){return s(e)}))).length?(a=a.replace(“%needles”,o.join(“|”)),t=t.replace(new RegExp(a,”gi”),(r=e,function(e,t,n){return t&&!/s/.test(n)?e:r.replace(/{s}/g,n)})),t):t},debug:function(t){this.config.debug&&e.console&&e.console.log&&e.console.log(t)}},i(l,c),l.prototype.init=function(n,i){var o=this;if(this.saModel=i,this.config=n,this.clearButton=this.clearButton||t.getElementById(this.config.clearButtonId),this.searchbox=this.searchbox||t.getElementById(this.config.searchBoxId),!this.searchbox)return!1;this.config.gossipParam.pq=this.searchbox.value;for(var r=this.searchbox;r&&!this.formTag;)r.tagName&&”form”===r.tagName.toLowerCase()&&(this.formTag=r),r=r.parentNode;return!!this.formTag&&(this.container=t.createElement(“div”),this.container.className=this.config.cssClass.container,this.trayContainer=t.createElement(“div”),this.trayContainer.className=this.config.cssClass.trayContainer,this.container.appendChild(this.trayContainer),this.searchbox.parentNode.insertBefore(this.container,this.searchbox.nextSibling),this.searchbox.setAttribute(“role”,”combobox”),this.searchbox.setAttribute(“aria-autocomplete”,”both”),this.ae(e,”load”,(function(){o.aria=t.createElement(“div”),o.aria.className=o.config.cssClass.aria,o.set(o.aria,”aria-live”,”polite”),o.aria.style.position=”absolute”,o.aria.style.left=”-9999px”,t.body.appendChild(o.aria)})),!0)},l.prototype.getWidth=function(e,n){var i,o={p:e,t:this.config.boldTag.replace(“{s}”,this.htmlEncode(e)),idx:0},r=t.createElement(“div”);r.className=this.config.cssClass.container;var a=t.createElement(“div”);a.className=this.config.cssClass.trayContainer,r.appendChild(a);var s=t.createElement(“div”);s.className=this.config.cssClass.traySub,s.style.left=”-9999px”,a.appendChild(s);var c=t.createElement(“ul”);c.className=this.config.cssClass.ul,s.appendChild(c);var l=this.createItem(o);n&&((i=t.createElement(“span”)).innerHTML=n,l.suggestionSpan.appendChild(i)),c.appendChild(l.li),this.searchbox.parentNode.insertBefore(r,this.searchbox.nextSibling);var u=l.suggestionSpan.clientWidth+this.config.subTrayDelta;return r.outerHTML=””,u},l.prototype.display=function(n){var i=n.data,o=n.sqpos,r=n.hiddenNeedle,a=this,s={};this.hide(),this.selectedItem=!1,this.tray=t.createElement(“div”),this.set(this.tray,”type”,”normal”),this.tray.className=this.config.cssClass.tray,o&&this.config.subAssist&&(this.tray.className=this.config.cssClass.traySub,this.tray.style.left=this.getWidth(r)+”px”),this.ul=t.createElement(“ul”),this.ul.className=this.config.cssClass.ul,this.set(this.ul,”role”,”listbox”),this.tray.appendChild(this.ul),this.itemList=[],this.config.ylcParam.n_sugg=a.saModel.ylc.n_sugg,i.forEach((function(n){var i;if(n.idx=a.itemList.length,4===n.m&&a.config.text.trendingNow&&!s.trending){var r=t.createElement(“span”);r.className=a.config.cssClass.trendingNow,r.innerHTML=a.config.text.trendingNow,a.ul.appendChild(r),s.trending=!0}var c=a.createItem(n);!o&&a.config.enableAnnotation&&n.m&&a.config.annotation[n.m]&&n.fd&&(i=a.getItemAnnotation(n,c.suggestionSpan))&&c.suggestionSpan.appendChild(i),a.ul.appendChild(c.li),a.itemList.push(c.li),a.ae(c.li,”mouseenter”,(function(e){a.resetHighlight(),c.li.className=a.config.cssClass.li+” “+a.config.cssClass.liHighlight,a.selectedItem=n.idx})),a.ae(c.li,”mouseleave”,(function(e){c.li.className=a.config.cssClass.li})),a.ae(c.li,”click”,(function(i){var o=a.searchbox.value,r=i.target||i.srcElement;a.saModel.ylc.pos=n.idx+1,a.saModel.ylc.pqstr=o,a.saModel.ylc.pqstrl=o.length,a.saModel.ylc.use_case=””,a.formTag.fr2&&(a.formTag.fr2.value=a.config.fr2),a.searchbox.value=n.p,r.tagName&&”a”===r.tagName.toLowerCase()&&(a.searchbox.value=a.get(r,”data”),a.saModel.ylc.use_case=r.innerHTML),a.hide(),a.saModel.addYlc(a.saModel.clickTarget),a.config.customEvent?(a.saModel.addYlk(r),function(n,i,o){var r;”function”==typeof e.CustomEvent?(r=new e.CustomEvent(i,{detail:o}),n.dispatchEvent(r)):”function”==typeof t.createEvent?((r=t.createEvent(“CustomEvent”)).initCustomEvent(i,!1,!1,o),n.dispatchEvent(r)):(t.attachEvent,document.documentElement[i]=o)}(a.searchbox,”assistSelection”,{data:n})):a.suggestionClick(i,n)}))})),this.aria&&(this.set(this.aria,”aria-expanded”,”true”),this.aria.innerHTML=”

“+a.itemList.length+” “+this.config.text.ariaShown+”

“),this.show()},l.prototype.suggestionClick=function(e,t){this.formTag.submit()},l.prototype.show=function(){this.shown=!0,this.resetHighlight(),this.trayContainer.appendChild(this.tray)},l.prototype.hide=function(){this.aria&&(this.set(this.aria,”aria-expanded”,”false”),this.aria.innerHTML=”

“+this.config.text.ariaClosed+”

“),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=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”),i=this;if(n.className=this.config.cssClass.li,this.set(n,”pos”,e.idx),this.set(n,”role”,”option”),this.config.formatResult){var o=this.config.ylcVal;o&&(o=o.replace(“cposV”,e.idx),i.config.ylcParam&&(o=o.replace(“t9Val”,i.config.ylcParam.n_sugg)),this.set(n,”data-ylk”,o)),this.set(n,”data-position”,e.idx)}i.set(n,”data”,e.p);var r=t.createElement(“span”);r.className=i.config.cssClass.span,r.style.display=”block”,n.appendChild(r);var a=t.createElement(“span”);return a.className=i.config.cssClass.text,a.innerHTML=e.t,r.appendChild(a),{li:n,suggestionSpan:r}},l.prototype.getItemAnnotation=function(e){var n,i,o,r=this.config.annotation[e.m]||{},a=this.config.cssClass,s=e.fd,c=””,l=””,u=this.searchbox.clientWidth-2*this.config.trayPadding;if(r.subtitle&&s.subtitle){if(l=r.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},i(u,c),u.prototype.unset=function(){this.triggered=!1,this.saView.hide()},u.prototype.jsonp=function(e,n){var i={command:this.saView.searchbox.value,t_stmp:this.ts(),callback:”YAHOO.”+this.config.objectName+”.cb.”+e};this.merge(i,this.config.gossipParam),n&&this.merge(i,n);var o=this.buildUrl(this.config.saBase,i),r=t.getElementsByTagName(“head”)[0],a=t.createElement(“script”);this.set(a,”type”,”text/javascript”),this.set(a,”src”,o),r.appendChild(a),this.ae(a,”load”,(function(){r.removeChild(a)}))},u.prototype.read=function(e){var t,n=this,i=[],o=e.sqpos,r=e.q=e.q||””,a=””;e&&”object”==typeof e.r&&e.r.length>0?(n.config.subAssist&&o&&(r=e.q.substr(o),a=e.q.substr(0,o),e.r.forEach((function(t){n.saView.getWidth(t.k)>n.saView.searchbox.clientWidth&&(o=0,r=e.q,a=””)}))),e.r.forEach((function(e){t=n.config.subAssist&&o?e.k.substr(o):e.k,i.push({p:e.k,t:n.bold(n.config.boldTag,n.htmlEncode(t),n.htmlEncode(r),n.config.highlight),fd:e.fd,m:e.m})})),this.ylc.n_sugg=e.r.length,this.ylc.pos=0,this.saView.display({data:i,sqpos:o,hiddenNeedle:a})):(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,i=null,r=n.lastValue===n.saView.searchbox.value;if(n.config.suppressEmptyQuery&&””==o(t.value))return n.unset(),!0;if(n.saView.shown&&r)return!0;if(this.config.enableIpos&&!r&&void 0!==n.lastValue&&((e=this.getCursorPosition())===t.value.length&&(e=null),null!==e&&(i={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 a=”sacb”+this.callBackIdx;for(var s in n.cbTable)n.cbTable.hasOwnProperty(s)&&(n.cbTable[s]=function(){});this.cbTable[a]=function(e){n.read(e||{}),n.cbTable[a]=function(){}},this.jsonp(a,i)},u.prototype.getCursorPosition=function(){var e,n=this.saView.searchbox,i=null;return”number”==typeof n.selectionStart?i=n.selectionStart:t.selection&&(n.focus(),(e=t.selection.createRange()).moveStart(“character”,-t.activeElement.value.length),i=e.text.length),i},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 i=t.get(e,”data-ylk”)+”;”+n.join(“;”);t.set(e,”data-ylk”,i)}},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},i(d,c),d.prototype.init=function(i){var r=this;r.lastValue=null,this.config=i,this.config.autofocus&&this.setFocus(this.saView.searchbox),!n||n>=9?this.ae(this.saView.searchbox,”input”,(function(e){r.saModel.fetch()})):8===n&&this.ae(this.saView.searchbox,”propertychange”,(function(e){“value”===e.propertyName&&!1===r.saView.selectedItem&&r.saModel.fetch()})),r.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&&!r.saView.shown&&r.saView.searchbox.value.length?(r.select(r.saView.searchbox,0,r.saView.searchbox.value.length),void r.stopPropagation(e)):void(e.keyCode-1?i=o=l:(i=-u.moveStart(“character”,-l),i+=s.slice(0,i).split(“n”).length-1,u.compareEndPoints(“EndToEnd”,d)>-1?o=l:(o=-u.moveEnd(“character”,-l),o+=s.slice(0,o).split(“n”).length-1)),a.selectionStart=i,a.selectionEnd=o}r.lastValue!==r.saView.searchbox.value&&!1===r.saView.selectedItem&&r.saModel.fetch()};this.ae(this.saView.searchbox,”focus”,(function(e){!r.saModel.triggered&&r.saModel.fetch(),n&&9===n&&!r.ie9_attached&&(r.ae(t,”selectionchange”,a),r.ie9_attached=!0)})),this.ae(this.saView.searchbox,”blur”,(function(e){n&&9===n&&r.ie9_attached&&(r.de(t,”selectionchange”,a),r.ie9_attached=!1)})),this.ae(this.saView.searchbox,”click”,(function(e){!r.saModel.triggered&&r.saModel.fetch()}));var s=function(e){if(r.saView.shown){for(var t=e.target?e.target:e.srcElement;t;){if(t===r.saView.formTag)return;t=t.parentNode}r.config.touchOriented&&r.stopPropagation(e),r.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){r.saModel.addYlc(r.saModel.submitTarget)})),this.saView.clearButton&&this.ae(this.saView.clearButton,”click”,(function(e){if(r.saView.searchbox.value=””,r.saModel.triggered=!1,r.setFocus(r.saView.searchbox),r.config.enableYlc&&r.config.clearBeaconing&&r.saModel.ULT){var t={_r:2,actn:”clk”,pos:1,sec:”clearsearch”,slk:”clear”,t1:”hdr”,t2:”searchbox”,t3:”clear”};r.merge(t,r.config.clrLog),r.saModel.ULT.beacon_click(t)}})),!0},i(p,c),p.prototype.saModelClass=u,p.prototype.saViewClass=l,p.prototype.saControlClass=d,p.prototype.init=function(i){return!(n&&n

[ad_2]

Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here