!function(I){var o={method:"GET",contentType:"json",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"×",animateDropdown:!0,tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",prePopulate:null,processPrePopulate:!1,idPrefix:"token-input-",resultsFormatter:function(e){return"
  • "+e[this.propertyToSearch]+"
  • "},tokenFormatter:function(e){return"
  • "+e[this.propertyToSearch]+"

  • "},onResult:null,onAdd:null,onDelete:null,onReady:null},F={tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"},P=0,O=1,A=2,z=8,_=13,q=27,B=37,E=38,V=39,W=40,G=108,H=188,t={init:function(e,t){var n=I.extend({},o,t||{});return this.each(function(){I(this).data("tokenInputObject",new I.TokenList(this,e,n))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(e){return this.data("tokenInputObject").add(e),this},remove:function(e){return this.data("tokenInputObject").remove(e),this},get:function(){return this.data("tokenInputObject").getTokens()}};I.fn.tokenInput=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):t.init.apply(this,arguments)},I.TokenList=function(e,t,a){var n;"string"===I.type(t)||"function"===I.type(t)?(a.url=t,n=S(),void 0===a.crossDomain&&(-1===n.indexOf("://")?a.crossDomain=!1:a.crossDomain=location.href.split(/\/+/g)[1]!==n.split(/\/+/g)[1])):"object"==typeof t&&(a.local_data=t),a.classes?a.classes=I.extend({},F,a.classes):a.theme?(a.classes={},I.each(F,function(e,t){a.classes[e]=t+"-"+a.theme})):a.classes=F;var o,i=[],s=0,l=new I.TokenList.Cache,r=I('').css({outline:"none"}).attr("id",a.idPrefix+e.id).focus(function(){null!==a.tokenLimit&&a.tokenLimit===s||a.hintText&&(k.html("

    "+a.hintText+"

    "),D())}).blur(function(){x(),I(this).val("")}).keydown(function(e){var t;switch(e.keyCode){case B:case V:case E:case W:if(I(this).val()){var n=null;return(n=e.keyCode===W||e.keyCode===V?I(p).next():I(p).prev()).length&&j(n),!1}t=f.prev(),n=f.next(),t.length&&t.get(0)===u||n.length&&n.get(0)===u?e.keyCode===B||e.keyCode===E?y(I(u),P):y(I(u),O):e.keyCode!==B&&e.keyCode!==E||!t.length?e.keyCode!==V&&e.keyCode!==W||!n.length||T(I(n.get(0))):T(I(t.get(0)));break;case z:if(t=f.prev(),!I(this).val().length)return u?(C(I(u)),c.change()):t.length&&T(I(t.get(0))),!1;1===I(this).val().length?x():setTimeout(function(){R()},5);break;case _:case G:case H:return p?(v(I(p).data("tokeninput")),c.change()):v(null),!1;case q:return x(),!0;default:String.fromCharCode(e.which)&&setTimeout(function(){R()},5)}}),c=I(e).hide().val("").focus(function(){r.focus()}).blur(function(){r.blur()}),u=null,d=0,p=null,h=I("