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