YUI.add("autocomplete-filters",function(t,r){var o=t.Array,u=t.Object,i=t.Text.WordBreak,e=t.mix(t.namespace("AutoCompleteFilters"),{charMatch:function(t,r,e){if(!t)return r;var n=o.unique((e?t:t.toLowerCase()).split(""));return o.filter(r,function(r){return r=r.text,e||(r=r.toLowerCase()),o.every(n,function(t){return-1!==r.indexOf(t)})})},charMatchCase:function(t,r){return e.charMatch(t,r,!0)},phraseMatch:function(r,t,e){return r?(e||(r=r.toLowerCase()),o.filter(t,function(t){return-1!==(e?t.text:t.text.toLowerCase()).indexOf(r)})):t},phraseMatchCase:function(t,r){return e.phraseMatch(t,r,!0)},startsWith:function(r,t,e){return r?(e||(r=r.toLowerCase()),o.filter(t,function(t){return 0===(e?t.text:t.text.toLowerCase()).indexOf(r)})):t},startsWithCase:function(t,r){return e.startsWith(t,r,!0)},subWordMatch:function(t,r,e){if(!t)return r;var n=i.getUniqueWords(t,{ignoreCase:!e});return o.filter(r,function(t){var r=e?t.text:t.text.toLowerCase();return o.every(n,function(t){return-1!==r.indexOf(t)})})},subWordMatchCase:function(t,r){return e.subWordMatch(t,r,!0)},wordMatch:function(t,r,e){if(!t)return r;var n={ignoreCase:!e},a=i.getUniqueWords(t,n);return o.filter(r,function(t){var r=o.hash(i.getUniqueWords(t.text,n));return o.every(a,function(t){return u.owns(r,t)})})},wordMatchCase:function(t,r){return e.wordMatch(t,r,!0)}})},"patched-v3.18.4",{requires:["array-extras","text-wordbreak"]});