/*! jquery ui - v1.9.2 - 2013-05-02 * http://jqueryui.com * includes: jquery.ui.autocomplete.js * copyright 2013 jquery foundation and other contributors; licensed mit */ (function(e,t){var n=0;e.widget("ui.autocomplete",{version:"1.9.2",defaultelement:"",options:{appendto:"body",autofocus:!1,delay:300,minlength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,n,r;this.ismultiline=this._ismultiline(),this.valuemethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isnewmenu=!0,this.element.addclass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readonly")){t=!0,r=!0,n=!0;return}t=!1,r=!1,n=!1;var s=e.ui.keycode;switch(i.keycode){case s.page_up:t=!0,this._move("previouspage",i);break;case s.page_down:t=!0,this._move("nextpage",i);break;case s.up:t=!0,this._keyevent("previous",i);break;case s.down:t=!0,this._keyevent("next",i);break;case s.enter:case s.numpad_enter:this.menu.active&&(t=!0,i.preventdefault(),this.menu.select(i));break;case s.tab:this.menu.active&&this.menu.select(i);break;case s.escape:this.menu.element.is(":visible")&&(this._value(this.term),this.close(i),i.preventdefault());break;default:n=!0,this._searchtimeout(i)}},keypress:function(r){if(t){t=!1,r.preventdefault();return}if(n)return;var i=e.ui.keycode;switch(r.keycode){case i.page_up:this._move("previouspage",r);break;case i.page_down:this._move("nextpage",r);break;case i.up:this._keyevent("previous",r);break;case i.down:this._keyevent("next",r)}},input:function(e){if(r){r=!1,e.preventdefault();return}this._searchtimeout(e)},focus:function(){this.selecteditem=null,this.previous=this._value()},blur:function(e){if(this.cancelblur){delete this.cancelblur;return}cleartimeout(this.searching),this.close(e),this._change(e)}}),this._initsource(),this.menu=e("