/*!CK:272275978!*//*1459218458,*/

if (self.CavalryLogger) { CavalryLogger.start_js(["KEvFX"]); }

__d('getDOMImageSize',['EncryptedImg','URI'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(m){m.onload=null;m.onerror=null;m.onreadystatechange=null;m._callback=null;m._thisObj=null;m._srcStr=null;m.parentNode&&m.parentNode.removeChild(m);}function i(){var m=this;if(m._callback)m._callback.call(m._thisObj,m.naturalWidth||m.width,m.naturalHeight||m.height,m._srcStr);h(m);}function j(){var m=this;if(m.readyState==='complete')i.call(m);}function k(){var m=this;if(m._callback)m._callback.call(m._thisObj,0,0,m._srcStr);h(m);}function l(m,n,o){o=o||null;if(!m){n.call(o,0,0,'');return;}var p=document.body;if(!p){setTimeout(l.bind(this,m,n,o),500);return;}var q;if(typeof m==='string'){q=m;}else if(typeof m==='object')if(typeof m.width==='number'&&typeof m.height==='number'){if(typeof m.src==='string'){q=m.src;if(m.naturalWidth&&m.naturalHeight){n.call(o,m.naturalWidth,m.naturalHeight,q);return;}}if(typeof m.uri==='string'){q=m.uri;if(m.width&&m.height){n.call(o,m.width,m.height,q);return;}}}else if(m instanceof c('URI'))q=m.toString();if(!q){n(0,0,m);return;}var r=document.createElement('img');r.onreadystatechange=j;r.onload=i;r.onerror=k;r._callback=n;r._thisObj=o;r._srcStr=q;if(c('EncryptedImg').isEncrypted(q)){c('EncryptedImg').insertIntoDOM(q,r);}else r.src=q;r.style.cssText='\n    position:absolute;\n    left:-5000px;\n    top:-5000px;\n    width:auto;\n    height:auto;\n    clip:rect(0 0 0 0);\n  '.replace(/\s+/,' ');p.insertBefore(r,p.firstChild);}f.exports=l;},null);
__d('CachedDOMImageSizePool',['debounce','getDOMImageSize'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){'use strict';this.$CachedDOMImageSizePool1={};this.$CachedDOMImageSizePool2=j;this.$CachedDOMImageSizePool3=0;this.$CachedDOMImageSizePool4=i;this.$CachedDOMImageSizePool5=c('debounce')(this.$CachedDOMImageSizePool6,5000,this);this.$CachedDOMImageSizePool7={};this.$CachedDOMImageSizePool8={};}h.prototype.get=function(i,j,k){'use strict';if(!i){j.call(k,0,0,i);return;}var l=this.$CachedDOMImageSizePool1[i];if(l){l.lastAccessTime=Date.now();j.call(k,l.width,l.height,l.src);}else if(this.$CachedDOMImageSizePool7[i]){this.$CachedDOMImageSizePool7[i].push(j);this.$CachedDOMImageSizePool8[i].push(k);}else{this.$CachedDOMImageSizePool7[i]=[j];this.$CachedDOMImageSizePool8[i]=[k];c('getDOMImageSize')(i,this.$CachedDOMImageSizePool9,this);}};h.prototype.set=function(i,j,k){'use strict';if(this.$CachedDOMImageSizePool3>this.$CachedDOMImageSizePool4)this.$CachedDOMImageSizePool5();var l=this.$CachedDOMImageSizePool1;if(i&&!l[i]){var m={width:j,height:k,src:i,lastAccessTime:Date.now()};l[i]=m;this.$CachedDOMImageSizePool3++;}};h.prototype.$CachedDOMImageSizePool9=function(i,j,k){'use strict';this.set(k,i,j);var l=this.$CachedDOMImageSizePool7[k],m=this.$CachedDOMImageSizePool8[k];for(var n=0,o=l.length;n<o;n++)l[n].call(m[n],i,j,k);delete this.$CachedDOMImageSizePool7[k];delete this.$CachedDOMImageSizePool8[k];};h.prototype.$CachedDOMImageSizePool6=function(){'use strict';var i=Date.now(),j=this.$CachedDOMImageSizePool1,k=this.$CachedDOMImageSizePool3,l=this.$CachedDOMImageSizePool2;for(var m in j){var n=j[m];if(i-n.lastAccessTime>l){delete j[m];k--;}}this.$CachedDOMImageSizePool3=k;};f.exports=h;},null);
__d('BackgroundImage.react',['cx','invariant','CachedDOMImageSizePool','Image.react','React','XUISpinner.react','joinClasses','clamp'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k='(-?(\\d+\\.)?\\d+(px|\\%))',l=new RegExp('^'+k+'?(\\s'+k+')?$','g'),m=new (c('CachedDOMImageSizePool'))(50,10*60*1000),n=c('React').createClass({displayName:'BackgroundImage',propTypes:{src:j.string,width:j.number.isRequired,height:j.number.isRequired,backgroundSize:j.oneOf(['contain','cover','containinside','coverinside']),loadingIndicatorStyle:j.oneOf(['none','large','small']),backgroundPosition:function(o,p,q){var r=o[p];if(r){!(typeof r==='string')?i(0):void 0;!r.match(l)?i(0):void 0;}!(o.backgroundFocus==null||o.backgroundPosition==null)?i(0):void 0;},backgroundFocus:function(o,p,q){var r=o[p];if(r){!(typeof r==='string')?i(0):void 0;!r.match(l)?i(0):void 0;}!(o.backgroundFocus==null||o.backgroundPosition==null)?i(0):void 0;},onImageLoad:j.func,optimizeResizeSpeed:j.bool,onContextMenu:j.func},getInitialState:function(){return {imageWidth:null,imageHeight:null,imageSrc:this.props.src,loading:true};},getDefaultProps:function(){return {optimizeResizeSpeed:false,loadingIndicatorStyle:'none'};},componentDidMount:function(){this._resolveImageSize();},componentDidUpdate:function(o){if(this.props.src!==this.state.imageSrc)this.setState({imageWidth:0,imageHeight:0,imageSrc:this.props.src,loading:true},this._resolveImageSize);},_resolveImageSize:function(){var o=this.state.imageSrc;if(o)m.get(o,this._onImageSizeResolved,this);},render:function(){var o={width:this.props.width+'px',height:this.props.height+'px'},p=c('joinClasses')(this.props.className,"_5f0d");return (c('React').createElement('div',babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,p),style:babelHelpers['extends']({},this.props.style||{},o),onContextMenu:this.props.onContextMenu}),this._renderImage(),this._renderContent(),this._renderLoadingIndicator()));},_renderLoadingIndicator:function(){if(!this.state.loading||this.props.loadingIndicatorStyle==='none')return null;return (c('React').createElement('div',{className:"_1qe- _5lar"},c('React').createElement('div',{className:"_1qe_"},c('React').createElement('div',{className:"_1qf0"},c('React').createElement(c('XUISpinner.react'),{size:this.props.loadingIndicatorStyle})))));},_renderContent:function(){if(this.props.children)return (c('React').createElement('div',{className:"_1qe-"},c('React').createElement('div',{className:"_1qe_"},c('React').createElement('div',{className:"_1qf0"},this.props.children))));},_renderImage:function(){if(!this.state.imageWidth||!this.state.imageHeight)return;var o=this.props.width,p=this.props.height,q,r;switch(this.props.backgroundSize){case 'cover':q='cover';r=false;break;case 'coverinside':q='cover';r=true;break;case 'contain':q='contain';r=false;break;case 'containinside':q='contain';r=true;}var s=this.state.imageWidth,t=this.state.imageHeight,u=o/p,v=s/t;if(q==='contain')if((s>o||!r)&&v>=u){s=o;t=s/v;}else if(t>p||!r){t=p;s=t*v;}if(q==='cover')if((s>o||!r)&&v>=u){t=p;s=t*v;}else if(t>p||!r){s=o;t=s/v;}var w=this._getImageStyle(s,t);return (c('React').createElement(c('Image.react'),{alt:'',className:"_5i4g"+(this.props.optimizeResizeSpeed?' '+"_5sjv":''),style:w,src:this.state.imageSrc}));},_getImageStyle:function(o,p){var q=['50%','50%'],r=this._getBackgroundPositionPxValue;if(this.props.backgroundPosition){q=this.props.backgroundPosition.split(' ');}else if(this.props.backgroundFocus){q=this.props.backgroundFocus.split(' ');r=this._getBackgroundFocusPxValue;}return {width:Math.round(o)+'px',height:Math.round(p)+'px',left:r(q[0],o,this.props.width),top:r(q[1]||q[0],p,this.props.height)};},_getBackgroundPositionPxValue:function(o,p,q){var r=parseFloat(o),s=o.substr(r.toString().length);if(s==='px')return o;return Math.round((q-p)*(r/100))+'px';},_getBackgroundFocusPxValue:function(o,p,q){var r=parseFloat(o),s=o.substr(r.toString().length);if(p<q)return '0';var t=s==='px'?r:Math.round(p*(r/100)),u=t-q/2;u=c('clamp')(u,0,p-q);return -u+'px';},_onImageSizeResolved:function(o,p,q){if(!this.isMounted()||this.state.imageSrc!==q)return;var r=this.props.onImageLoad?this.props.onImageLoad.bind(null,o,p):null;this.setState({imageWidth:o,imageHeight:p,loading:false},r);}});f.exports=n;},null);
__d('CloseButton.react',['cx','fbt','React','Image.react','joinClasses'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').createClass({displayName:'CloseButton',render:function(){var k=this.props,l=k.size||'medium',m=k.appearance||'normal',n=l==='small',o=l==='huge',p=m==='dark',q=m==='inverted',r=k.ajaxify||null,s=k.rel||null,t="uiCloseButton"+(n?' '+"uiCloseButtonSmall":'')+(o?' '+"uiCloseButtonHuge":'')+(n&&p?' '+"uiCloseButtonSmallDark":'')+(n&&q?' '+"uiCloseButtonSmallInverted":'')+(!n&&p?' '+"uiCloseButtonDark":'')+(!n&&q?' '+"uiCloseButtonInverted":''),u=i._("Close");return (c('React').createElement('a',babelHelpers['extends']({},this.props,{ajaxify:r,href:'#',role:'button','aria-label':k.ariaLabel||u,'data-hover':k.tooltip&&'tooltip','data-skipchecker':null,'data-tooltip-alignh':k.tooltip&&'center','data-tooltip-content':k.tooltip,className:c('joinClasses')(this.props.className,t),rel:s}),c('React').createElement(c('Image.react'),{className:'uiCloseButtonHighContrast',src:'/images/chat/tab/close.png'})));}});f.exports=j;},null);
__d('AbstractCheckboxInput.react',['cx','invariant','React','joinClasses'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=c('React').PropTypes,k=c('React').createClass({displayName:'AbstractCheckboxInput',propTypes:{tooltip:j.string},render:function(){!(!this.props.children||this.props.children.length===0)?i(0):void 0;var l=c('joinClasses')(this.props.className,"_kv1"),m=c('React').createElement('input',babelHelpers['extends']({},this.props,{className:null,type:'checkbox'}),undefined);return (c('React').createElement('label',{className:l},m,c('React').createElement('span',{'data-hover':this.props.tooltip?'tooltip':null,'data-tooltip-content':this.props.tooltip})));}});f.exports=k;},null);
__d('XUICheckboxInput.react',['cx','AbstractCheckboxInput.react','React','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'XUICheckboxInput',render:function(){return (c('React').createElement(c('AbstractCheckboxInput.react'),babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,"_55sg")}),undefined));}});f.exports=i;},null);
__d('TypeaheadViewPropTypes',['React'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=c('React').PropTypes,i={ariaOwneeID:h.string,highlightedEntry:h.object,entries:h.array.isRequired,onSelect:h.func.isRequired,onHighlight:h.func,onRenderHighlight:h.func,role:h.string};f.exports=i;},null);
__d('XUITypeaheadViewContainer.react',['cx','React','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'XUITypeaheadViewContainer',render:function(){return (c('React').createElement('ul',{className:c('joinClasses')("_599r",this.props.className),id:this.props.arieaOwneeID,role:this.props.role},this.props.children));}});f.exports=i;},null);
__d('XUITypeaheadViewItem.react',['cx','BackgroundImage.react','Badge.react','ImageBlock.react','React','TextWithEmoticons.react','TypeaheadViewItem','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'XUITypeaheadViewItem',mixins:[c('TypeaheadViewItem').Mixin],propTypes:babelHelpers['extends']({},c('TypeaheadViewItem').propTypes,{splitText:i.bool}),render:function(){var k=this.props.entry,l=this.props.splitSubtext?k.getSubtitle().split(' \u00b7 ')[0]:k.getSubtitle(),m=l?c('React').createElement('div',{className:"_599q"},l):null,n=k.getPhoto()?c('React').createElement(c('BackgroundImage.react'),{width:32,height:32,backgroundSize:'cover',src:k.getPhoto()}):c('React').createElement('span',null),o=k.getAuxiliaryData(),p=null;if(o&&o.verified)p=c('React').createElement(c('Badge.react'),null);var q="_599m"+(!m?' '+"_5mne":'')+(this.props.highlighted?' '+"_599n":'');q=c('joinClasses')(q,this.props.className);return (c('React').createElement('li',{'aria-selected':this.props.highlighted,className:q,onMouseDown:this._onSelect,onMouseEnter:this._onHighlight,role:this.props.role},c('React').createElement(c('ImageBlock.react'),{spacing:'medium'},n,c('React').createElement('div',null,c('React').createElement('div',{className:"_599p"},c('React').createElement(c('TextWithEmoticons.react'),{renderEmoticons:false,renderEmoji:true,text:k.getTitle()}),p),m))));}});f.exports=j;},null);
__d('XUITypeaheadView.react',['cx','React','TypeaheadViewPropTypes','XUITypeaheadViewContainer.react','XUITypeaheadViewItem.react'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').createClass({displayName:'XUITypeaheadView',propTypes:c('TypeaheadViewPropTypes'),getDefaultProps:function(){return {role:'listbox'};},_renderItem:function(j){var k=j===this.props.highlightedEntry;return (c('React').createElement(c('XUITypeaheadViewItem.react'),{key:j.getUniqueID(),entry:j,highlighted:k,onSelect:this.props.onSelect,onHighlight:this.props.onHighlight,onRenderHighlight:this.props.onRenderHighlight}));},render:function(){var j=!this.props.entries.length?"_599s":'';return (c('React').createElement(c('XUITypeaheadViewContainer.react'),{className:j,id:this.props.ariaOwneeID,role:this.props.role},this.props.entries.map(this._renderItem)));}});f.exports=i;},null);
__d('Grid.react',['cx','React','ReactChildren','joinClasses'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('React').PropTypes,j=c('React').createClass({displayName:'Grid',propTypes:{cols:i.number.isRequired,fixed:i.bool,alignv:i.oneOf(['top','middle','bottom']),alignh:i.oneOf(['left','center','right']),spacing:i.string},render:function(){var l=this.props,m=l.alignh,n=l.alignv,o=l.children,p=l.cols,q=l.fixed,r=l.spacing,s=c('ReactChildren').count(o),t=[],u=[],v=0;c('ReactChildren').forEach(o,function(w,x){if(w===null||w===undefined)return;var y=w.type===k;v+=y?Math.max(w.props.colSpan||0,1):1;var z=v===p?"_51mw":'';if(!y){w=c('React').createElement(k,{alignh:m,alignv:n,className:c('joinClasses')(r,z),key:w.key||x},w);}else w=c('React').cloneElement(w,{key:w.key||x,alignh:w.props.alignh||m,alignv:w.props.alignv||n,className:c('joinClasses')(w.props.className,r,z)});u.push(w);if(v%p===0||x+1===s){if(q&&v<p){for(var aa=v;aa<p;aa++)u.push(c('React').createElement(k,{key:x+aa}));v=p;}t.push(c('React').createElement('tr',{className:"_51mx",key:x},u));u=[];v=0;}});return (c('React').createElement('table',babelHelpers['extends']({},this.props,{className:c('joinClasses')(this.props.className,"uiGrid"+(' '+"_51mz")+(q?' '+"_5f0n":'')),cellSpacing:'0',cellPadding:'0'}),c('React').createElement('tbody',null,t)));}}),k=c('React').createClass({displayName:'GridItem',propTypes:{alignv:i.oneOf(['top','middle','bottom']),alignh:i.oneOf(['left','center','right'])},render:function(){var l=c('joinClasses')(this.props.className,"_51m-"+(this.props.alignv==='top'?' '+"vTop":'')+(this.props.alignv==='middle'?' '+"vMid":'')+(this.props.alignv==='bottom'?' '+"vBot":'')+(this.props.alignh==='left'?' '+"hLeft":'')+(this.props.alignh==='center'?' '+"hCent":'')+(this.props.alignh==='right'?' '+"hRght":''));return (c('React').createElement('td',babelHelpers['extends']({},this.props,{className:l})));}});j.GridItem=k;f.exports=j;},null);
__d('AbstractSearchSource',['Promise'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();h.prototype.bootstrap=function(i){'use strict';if(!this.$AbstractSearchSource1)this.$AbstractSearchSource1=new (c('Promise'))(function(j){this.bootstrapImpl(j);}.bind(this));return this.$AbstractSearchSource1.then(i);};h.prototype.search=function(i,j,k){'use strict';this.searchImpl(i,j,k);};h.prototype.bootstrapImpl=function(i){'use strict';i();};h.prototype.searchImpl=function(i,j,k){'use strict';throw new Error('Abstract method #searchImpl is not implemented.');};h.prototype.clearBootstrappedData=function(){'use strict';this.$AbstractSearchSource1=null;};function h(){'use strict';}f.exports=h;},null);
__d('SearchSourceQueryStatus',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={ACTIVE:'ACTIVE',COMPLETE:'COMPLETE'};f.exports=h;},null);
__d('SearchSourceCallbackManager',['invariant','SearchSourceQueryStatus','createObjectFrom'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('SearchSourceQueryStatus').ACTIVE,j=c('SearchSourceQueryStatus').COMPLETE;function k(m){'use strict';this.$SearchSourceCallbackManager1=m.parseFn;!(typeof this.$SearchSourceCallbackManager1==='function')?h(0):void 0;this.$SearchSourceCallbackManager2=m.matchFn;!(typeof this.$SearchSourceCallbackManager2==='function')?h(0):void 0;this.$SearchSourceCallbackManager3=m.alwaysPrefixMatch||false;this.$SearchSourceCallbackManager4=m.indexFn||l;this.reset();}k.prototype.search=function(m,n,o){'use strict';var p=this.$SearchSourceCallbackManager5(m,n,o);if(p)return 0;this.$SearchSourceCallbackManager6.push({queryString:m,callback:n,options:o});var q=this.$SearchSourceCallbackManager6.length-1;this.$SearchSourceCallbackManager7.push(q);return q;};k.prototype.$SearchSourceCallbackManager5=function(m,n,o){'use strict';var p=this.$SearchSourceCallbackManager8(m),q=!!this.$SearchSourceCallbackManager9[m];if(!p.length){n([],m,q?j:i);return q;}var r=p.map(function(s){return this.$SearchSourceCallbackManager10[s];},this);n(r,m,q?j:i);return q;};k.prototype.$SearchSourceCallbackManager11=function(){'use strict';var m=this.$SearchSourceCallbackManager7;this.$SearchSourceCallbackManager7=[];m.forEach(this.$SearchSourceCallbackManager12,this);};k.prototype.$SearchSourceCallbackManager12=function(m){'use strict';var n=this.$SearchSourceCallbackManager6[m];if(!n)return;var o=this.$SearchSourceCallbackManager5(n.queryString,n.callback,n.options);if(o){delete this.$SearchSourceCallbackManager6[m];return;}this.$SearchSourceCallbackManager7.push(m);};k.prototype.reset=function(){'use strict';this.$SearchSourceCallbackManager10={};this.$SearchSourceCallbackManager13={};this.$SearchSourceCallbackManager14={};this.$SearchSourceCallbackManager15={};this.$SearchSourceCallbackManager9={};this.$SearchSourceCallbackManager7=[];this.$SearchSourceCallbackManager6=[undefined];};k.prototype.addLocalEntries=function(m){'use strict';m.forEach(function(n){var o=n.getUniqueID(),p=this.$SearchSourceCallbackManager4(n);this.$SearchSourceCallbackManager10[o]=n;this.$SearchSourceCallbackManager13[o]=p;var q=this.$SearchSourceCallbackManager1(p);q.tokens.forEach(function(r){if(!this.$SearchSourceCallbackManager14.hasOwnProperty(r))this.$SearchSourceCallbackManager14[r]={};this.$SearchSourceCallbackManager14[r][o]=true;},this);},this);this.$SearchSourceCallbackManager11();};k.prototype.addQueryEntries=function(m,n,o){'use strict';if(o===j)this.setQueryStringAsExhausted(n);var p=this.$SearchSourceCallbackManager8(n),q=this.$SearchSourceCallbackManager1(n).flatValue;this.$SearchSourceCallbackManager15[q]=c('createObjectFrom')(p,true);m.forEach(function(r){var s=r.getUniqueID();this.$SearchSourceCallbackManager10[s]=r;this.$SearchSourceCallbackManager13[s]=this.$SearchSourceCallbackManager4(r);this.$SearchSourceCallbackManager15[q][s]=true;},this);this.$SearchSourceCallbackManager11();};k.prototype.unsubscribe=function(m){'use strict';delete this.$SearchSourceCallbackManager6[m];};k.prototype.removeEntry=function(m){'use strict';delete this.$SearchSourceCallbackManager10[m];};k.prototype.getAllEntriesMap=function(){'use strict';return this.$SearchSourceCallbackManager10;};k.prototype.setQueryStringAsExhausted=function(m){'use strict';this.$SearchSourceCallbackManager9[m]=true;};k.prototype.unsetQueryStringAsExhausted=function(m){'use strict';delete this.$SearchSourceCallbackManager9[m];};k.prototype.$SearchSourceCallbackManager8=function(m){'use strict';var n=this.$SearchSourceCallbackManager16(m,this.$SearchSourceCallbackManager17(m)),o=this.$SearchSourceCallbackManager16(m,this.$SearchSourceCallbackManager18(m)),p=n.concat(o),q={},r=[];p.forEach(function(s){if(!q[s]&&this.$SearchSourceCallbackManager10[s]!==undefined){r.push(s);q[s]=true;}},this);return r;};k.prototype.$SearchSourceCallbackManager16=function(m,n){'use strict';var o=this.$SearchSourceCallbackManager19(m,n),p=this.$SearchSourceCallbackManager10;function q(r,s){if(o[r]!==o[s])return o[r]?-1:1;var t=p[r],u=p[s];if(t.getOrder()!==u.getOrder())return t.getOrder()-u.getOrder();var v=t.getTitle().length,w=u.getTitle().length;if(v!==w)return v-w;return t.getUniqueID()-u.getUniqueID();}return n.sort(q).slice();};k.prototype.$SearchSourceCallbackManager19=function(m,n){'use strict';var o={};n.forEach(function(p){o[p]=this.$SearchSourceCallbackManager2(m,this.$SearchSourceCallbackManager13[p]);},this);return o;};k.prototype.$SearchSourceCallbackManager17=function(m){'use strict';var n=this.$SearchSourceCallbackManager1(m,this.$SearchSourceCallbackManager3),o=this.$SearchSourceCallbackManager3?n.sortedTokens:n.tokens,p=o.length,q=n.isPrefixQuery?p-1:null,r={},s={},t={},u=false,v={},w=0;o.forEach(function(y,z){if(v.hasOwnProperty(y))return;w++;v[y]=true;for(var aa in this.$SearchSourceCallbackManager14){var ba=aa===y&&!r.hasOwnProperty(aa),ca=false;if(!ba)ca=(this.$SearchSourceCallbackManager3||q===z)&&aa.indexOf(y)===0;if(!ba&&!ca)continue;if(aa===y){if(s.hasOwnProperty(aa))u=true;r[aa]=true;}else{if(r.hasOwnProperty(aa)||s.hasOwnProperty(aa))u=true;s[aa]=true;}for(var da in this.$SearchSourceCallbackManager14[aa])if(z===0||t.hasOwnProperty(da)&&t[da]==w-1)t[da]=w;}},this);var x=Object.keys(t).filter(function(y){return t[y]==w;});if(u||w<p)x=this.$SearchSourceCallbackManager20(m,x);return x;};k.prototype.$SearchSourceCallbackManager18=function(m){'use strict';var n=this.$SearchSourceCallbackManager1(m).flatValue,o=this.$SearchSourceCallbackManager21(n);if(this.$SearchSourceCallbackManager15.hasOwnProperty(n))return o;return this.$SearchSourceCallbackManager20(m,o);};k.prototype.$SearchSourceCallbackManager21=function(m){'use strict';var n=0,o=null,p=this.$SearchSourceCallbackManager15;Object.keys(p).forEach(function(q){if(m.indexOf(q)===0&&q.length>n){n=q.length;o=q;}});return (p.hasOwnProperty(o)?Object.keys(p[o]):[]);};k.prototype.$SearchSourceCallbackManager20=function(m,n){'use strict';return n.filter(function(o){return this.$SearchSourceCallbackManager2(m,this.$SearchSourceCallbackManager13[o]);},this);};function l(m){return [m.getTitle(),m.getKeywordString()].join(' ');}f.exports=k;},null);
__d('AbstractAsyncSearchSource',['AbstractSearchSource','SearchSourceCallbackManager','SearchSourceQueryStatus','SearchableEntry','TokenizeUtil','emptyFunction','isValidUniqueID'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();var j=c('SearchSourceQueryStatus').ACTIVE,k=c('SearchSourceQueryStatus').COMPLETE;h=babelHelpers.inherits(l,c('AbstractSearchSource'));i=h&&h.prototype;function l(m,n,o){'use strict';i.constructor.call(this);this.$AbstractAsyncSearchSource1=m.bootstrapRequests;this.$AbstractAsyncSearchSource2=m.queryRequests;this.$AbstractAsyncSearchSource3=m.auxiliaryFields;this.$AbstractAsyncSearchSource4=m.asyncErrorHandler||c('emptyFunction');this.$AbstractAsyncSearchSource5=m.packageFn||this.$AbstractAsyncSearchSource6;this.$AbstractAsyncSearchSource7=m.requestData||{};this.$AbstractAsyncSearchSource8=m.getAllForEmptyQuery;this.$AbstractAsyncSearchSource9=[];this.$AbstractAsyncSearchSource10=new (c('SearchSourceCallbackManager'))({parseFn:c('TokenizeUtil').parse,matchFn:c('TokenizeUtil').isQueryMatch,indexFn:m.indexFn});this.$AbstractAsyncSearchSource11=n;this.$AbstractAsyncSearchSource12=o;}l.prototype.bootstrapImpl=function(m){'use strict';if(!this.$AbstractAsyncSearchSource1||!this.$AbstractAsyncSearchSource1.length){m();return;}var n=this.$AbstractAsyncSearchSource1.length,o=0;this.$AbstractAsyncSearchSource1.forEach(function(p){this.$AbstractAsyncSearchSource13(this.$AbstractAsyncSearchSource7,p,function(q){this.$AbstractAsyncSearchSource10.addLocalEntries(q);this.$AbstractAsyncSearchSource9=this.$AbstractAsyncSearchSource9.concat(q);o++;if(o===n){m();m=null;}}.bind(this));}.bind(this));};l.prototype.searchImpl=function(m,n,o){'use strict';if(this.$AbstractAsyncSearchSource8&&m===''){this.getBootstrappedEntries(function(u){n(u,m);});return;}var p=null,q={},r=this.$AbstractAsyncSearchSource10.search(m,function(u,v,w){if(o&&o.waitForAllResults&&w!==k)return;if(!p){p=u;p.forEach(function(x){q[x.getUniqueID()]=true;});}else u.forEach(function(x){var y=x.getUniqueID();if(!q[y]){p.push(x);q[y]=true;}});n(p,v,w);},o);if(!r||!this.$AbstractAsyncSearchSource2||!this.$AbstractAsyncSearchSource2.length)return;var s=babelHelpers['extends']({value:m,existing_ids:p&&p.map(function(u){return u.getUniqueID();}).join(',')},this.$AbstractAsyncSearchSource7),t=this.$AbstractAsyncSearchSource2.length;this.$AbstractAsyncSearchSource2.forEach(function(u){this.$AbstractAsyncSearchSource13(s,u,function(v){t--;this.$AbstractAsyncSearchSource14(v,m,t?j:k);}.bind(this));},this);};l.prototype.getBootstrappedEntries=function(m){'use strict';return this.bootstrap(function(){return m(this.$AbstractAsyncSearchSource9||[]);}.bind(this));};l.prototype.getAllEntriesMap=function(){'use strict';return this.$AbstractAsyncSearchSource10.getAllEntriesMap();};l.prototype.setRequestData=function(m){'use strict';this.$AbstractAsyncSearchSource7=m;};l.prototype.$AbstractAsyncSearchSource13=function(m,n,o){'use strict';this.$AbstractAsyncSearchSource11(m,n,function(p){return (o(this.$AbstractAsyncSearchSource12(p,this.$AbstractAsyncSearchSource5).filter(function(q){return !!q;})));}.bind(this),this.$AbstractAsyncSearchSource4);};l.prototype.$AbstractAsyncSearchSource15=function(m){'use strict';this.$AbstractAsyncSearchSource10.addLocalEntries(m);};l.prototype.$AbstractAsyncSearchSource14=function(m,n,o){'use strict';this.$AbstractAsyncSearchSource10.addQueryEntries(m,n,o);};l.prototype.$AbstractAsyncSearchSource6=function(m,n){'use strict';var o=m.title||m.text,p=m.uniqueID||m.uid;if(!o||!c('isValidUniqueID')(p))return null;return new (c('SearchableEntry'))({uniqueID:p,order:m.order||m.index||n,title:o,subtitle:m.subtitle||m.category||m.subtext,keywordString:m.keywordString||m.tokens,type:m.type,photo:m.photo,uri:m.uri||m.path,auxiliaryData:this.$AbstractAsyncSearchSource16(m)});};l.prototype.$AbstractAsyncSearchSource16=function(m){'use strict';var n;if(this.$AbstractAsyncSearchSource3){n={};for(var o in this.$AbstractAsyncSearchSource3){var p=this.$AbstractAsyncSearchSource3[o];n[o]=m[p];}}if(m.aux_data)n=babelHelpers['extends']({},n,m.aux_data);return n;};f.exports=l;},null);
__d("TypeaheadNavigation",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={moveUp:function(i,j,k){var l=i.indexOf(j),m=l==-1?i.length-1:l-1;k(m==-1?null:i[m]);},moveDown:function(i,j,k){var l=i.indexOf(j)+1;k(l==i.length?null:i[l]);}};f.exports=h;},null);
__d('WebAsyncSearchSourceUtils',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={normalizeResponse:function(i,j){var k=i.getPayload(),l;if(Array.isArray(k)){l=k;}else if(k&&k.entries){l=k.entries;}else l=[];return l.map(j,this);}};f.exports=h;},null);
__d('WebAsyncSearchSource',['AbstractAsyncSearchSource','AbstractSearchSource','AsyncRequest','WebAsyncSearchSourceUtils'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AbstractSearchSource'));i=h&&h.prototype;function j(k){'use strict';i.constructor.call(this);this.$WebAsyncSearchSource1=new (c('AbstractAsyncSearchSource'))(k,this.$WebAsyncSearchSource2,c('WebAsyncSearchSourceUtils').normalizeResponse);}j.prototype.bootstrapImpl=function(k){'use strict';this.$WebAsyncSearchSource1.bootstrap(k);};j.prototype.searchImpl=function(k,l,m){'use strict';this.$WebAsyncSearchSource1.search(k,l,m);};j.prototype.getBootstrappedEntries=function(k){'use strict';return this.$WebAsyncSearchSource1.getBootstrappedEntries(k);};j.prototype.getAllEntriesMap=function(){'use strict';return this.$WebAsyncSearchSource1.getAllEntriesMap();};j.prototype.setRequestData=function(k){'use strict';this.$WebAsyncSearchSource1.setRequestData(k);};j.prototype.$WebAsyncSearchSource2=function(k,l,m,n){'use strict';new (c('AsyncRequest'))(l.uri).setData(babelHelpers['extends']({},k,l.data)).setMethod('GET').setReadOnly(true).setAllowCrossPageTransition(true).setHandler(m).setErrorHandler(n).send();};f.exports=j;},null);