/*1318872877,169776067*/

if (window.CavalryLogger) { CavalryLogger.start_js(["oOAiK"]); }

void(1);window.__DEV__=window.__DEV__||0;if(!window.skipDomainLower&&navigator&&navigator.userAgent&&document.domain.toLowerCase().match(/(^|\.)facebook\..*/)&&!(parseInt((/Gecko\/([0-9]+)/.exec(navigator.userAgent)||[]).pop(),10)<=20060508))document.domain=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1');window.onloadhooks=window.onloadhooks||[];window.onloadRegister=window.onloadRegister||function(a){onloadhooks.push(a);};window.onafterloadhooks=window.onafterloadhooks||[];window.onafterloadRegister=window.onafterloadRegister||function(a){onafterloadhooks.push(a);};function run_if_loaded(a,b){return window.loaded&&b.call(a);}function run_with(b,a,c){Bootloader.loadComponents(a,bind(b,c));return false;}function wait_for_load(c,b,e){e=bind(c,e,b);if(window.loaded)return e();switch((b||event).type){case 'load':case 'focus':onafterloadRegister(e);return;case 'click':var d=c.style,a=document.body.style;d.cursor=a.cursor='progress';onafterloadRegister(function(){d.cursor=a.cursor='';if(c.tagName.toLowerCase()=='a'){if(false!==e()&&c.href)window.location.href=c.href;}else if(c.click)c.click();});break;}return false;}function bind(d,c){var a=Array.prototype.slice.call(arguments,2);function b(){var f=d||(this==window?false:this),e=a.concat(Array.prototype.slice.call(arguments));if(typeof(c)=="string"){if(f[c])return f[c].apply(f,e);}else return c.apply(f,e);}return b;}var curry=bind(null,bind,null);function env_get(a){return window.Env&&Env[a];}document.documentElement.className=document.documentElement.className.replace('no_js','');
function hasArrayNature(a){return (!!a&&(typeof a=='object'||typeof a=='function')&&('length' in a)&&!('setInterval' in a)&&(Object.prototype.toString.call(a)==="[object Array]"||('callee' in a)||('item' in a)));}function $A(b){if(!hasArrayNature(b))return [b];if(b.item){var a=b.length,c=new Array(a);while(a--)c[a]=b[a];return c;}return Array.prototype.slice.call(b);}
function eval_global(c){if('string'!=typeof(c)){throw new Error('JS sent to eval_global is not a string.  Only strings '+'are permitted.');}else if(''==c)return;var d=document.createElement('script');d.type='text/javascript';try{d.appendChild(document.createTextNode(c));}catch(a){d.text=c;}var b=(document.getElementsByTagName("head")[0]||document.documentElement);b.appendChild(d);b.removeChild(d);}
function copy_properties(b,c){b=b||{};c=c||{};for(var a in c)b[a]=c[a];if(c.hasOwnProperty&&c.hasOwnProperty('toString')&&(typeof c.toString!='undefined')&&(b.toString!==c.toString))b.toString=c.toString;return b;}function add_properties(a,b){return copy_properties(window[a]||(window[a]={}),b);}function is_empty(b){if(b instanceof Array){return b.length==0;}else if(b instanceof Object){for(var a in b)return false;return true;}else return !b;}
window.require||(function(){var y={},v={},m=0,x=this,h=1,k=2,i='special',c='exports',b='dependencies',f='module',l='waiting',d='factory',j=undefined,a='define',e='global',g='require';function z(zh){var zj=y[zh],zc,zg;if(zj[l]&&zj[i]&k)p();if(!zj[c]){var ze=zj[c]={},zf=zj[d];if(Object.prototype.toString.call(zf)==='[object Function]'){var zb=[],zd=zj[b],zi=zd.length;if(zj[i]&k)zi=Math.min(zi,zf.length);for(zg=0;zg<zi;zg++){zc=zd[zg];zb.push(zc===f?zj:(zc===c?ze:z(zc)));}var zk=zf.apply(x,zb);if(zk)zj[c]=zk;}else zj[c]=zf;}return zj[c];}function u(ze,zc,zd,zb){if(zc===j){zc=[];zd=ze;ze=r();}else if(zd===j){zd=zc;zc=ze;ze=r();}if(y[ze])return;var zf={id:ze};zf[d]=zd;zf[b]=zc;zf[i]=zb;y[ze]=zf;n(ze);}function w(zb,zc){u(zb,zc,j,h);}function p(){var zc={},zb;for(zb in v)if(y[zb]&&!zc[zb]&&y[zb][i]&k)q({},zb,zc);}function q(ze,zb,zf){zf[zb]=1;var zd=v[zb],zc;if(!zd)return;ze[zb]=1;for(zc in zd){if(!y[zc][i]&k)continue;if(ze[zc]){delete zd[zc];y[zc][l]--;if(!y[zc][l])s(zc);}else q(ze,zc,zf);}ze[zb]=0;}function r(){return '__mod__'+m++;}function n(zd){var ze=y[zd];var zf=0;for(var zc=0;zc<ze[b].length;zc++){var zb=ze[b][zc];if(!y[zb]||y[zb][l]){v[zb]||(v[zb]={});v[zb][zd]=1;zf++;}}ze[l]=zf;if(!zf)s(zd);}function s(zc){var zd=y[zc];if(zd[i]&h)z(zc);var ze=v[zc];if(ze){delete v[zc];for(var zb in ze)if(!--y[zb][l])s(zb);}}function o(zc,zb){y[zc]={id:zc};y[zc][c]=zb;}o(f,0);o(c,0);o(a,u);o(e,x);o(g,z);u.amd={};x[a]=u;x[g]=z;z.ensure=w;var t=[e,f,g,c];var za=false;x.__d=function(ze,zc,zd,zb){u(ze,t.concat(zc),zd,zb||k);if(y[ze][l]&&!za)za=setTimeout(function(){p();za=false;},9);};})();
__d("arbiter",[],function(c,d,e,b){if(!window.async_callback)window.async_callback=function(f,g){return f;};function a(){copy_properties(this,{_listeners:[],_events:{},_callbacks:{},_last_id:1,_listen:{},_index:{}});copy_properties(this,a);}copy_properties(a,{SUBSCRIBE_NEW:'new',SUBSCRIBE_ALL:'all',BEHAVIOR_EVENT:'event',BEHAVIOR_PERSISTENT:'persistent',BEHAVIOR_STATE:'state',LIVEMESSAGE:'livemessage',BOOTLOAD:'bootload',FUNCTION_EXTENSION:'function_ext',CONTEXT_CHANGE:'ui/context-change',LIST_EDITOR_LISTS_CHANGED:'listeditor/friend_lists_changed',CAROUSEL_ROTATE:'carousel/rotate',subscribe:function(p,g,n){if(!p||p.length==0)return null;p=$A(p);var f=a._getInstance(this);f._listeners.push({callback:g,types:p});var m=f._listeners.length-1;for(var i=0;i<p.length;i++)if(f._index[p[i]]){f._index[p[i]].push(m);}else f._index[p[i]]=[m];n=n||a.SUBSCRIBE_ALL;if(n==a.SUBSCRIBE_ALL){var h,o,l;for(var j=0;j<p.length;j++){o=p[j];if(o in f._events)for(var k=0;k<f._events[o].length;k++){h=f._events[o][k];l=g.apply(null,[o,h]);if(l===false){f._events[o].splice(k,1);k--;}}}}return {subscriberID:m};},unsubscribe:function(j){var f=a._getInstance(this);var h=f._listeners[j.subscriberID];if(!h)return;for(var i=0;i<h.types.length;i++){var k=h.types[i];if(f._index[k])for(var g=0;g<f._index[k].length;g++)if(f._index[k][g]==j.subscriberID){f._index[k].splice(g,1);if(f._index[k].length==0)delete f._index[k];break;}}delete f._listeners[j.subscriberID];},inform:function(o,h,g){var r=hasArrayNature(o);var q=$A(o);var f=a._getInstance(this);var n={};g=g||a.BEHAVIOR_EVENT;for(var j=0;j<q.length;j++){var o=q[j],i=null;if(g==a.BEHAVIOR_PERSISTENT){i=f._events.length;if(!(o in f._events))f._events[o]=[];f._events[o].push(h);f._events[o]._stateful=false;}else if(g==a.BEHAVIOR_STATE){i=0;f._events[o]=[h];f._events[o]._stateful=true;}else if(o in f._events)f._events[o]._stateful=false;window.ArbiterMonitor&&ArbiterMonitor.record('event',o,h,f);var m;if(f._index[o]){var p=$A(f._index[o]);for(var k=0;k<p.length;k++){var l=f._listeners[p[k]];if(l){m=l.callback.apply(null,[o,h]);if(m===false){if(i!==null)f._events[o].splice(i,1);break;}}}}f._updateCallbacks(o,h);window.ArbiterMonitor&&ArbiterMonitor.record('done',o,h,f);n[o]=m;}return r?n:n[q[0]];},query:function(g){var f=a._getInstance(this);if(!(g in f._events))return null;if(f._events[g].length)return f._events[g][0];return null;},_instance:null,_getInstance:function(f){if(f instanceof a)return f;if(!a._instance)a._instance=new a();return a._instance;},registerCallback:function(g,i){var m,h=0,f=a._getInstance(this),l=false;if(typeof g=='function'){m=f._last_id;f._last_id++;l=true;}else{if(!f._callbacks[g])return null;m=g;}if(hasArrayNature(i)){var n={};for(var k=0;k<i.length;k++)n[i[k]]=1;i=n;}for(var o in i){try{if(f.query(o))continue;}catch(j){}h+=i[o];if(f._listen[o]===undefined)f._listen[o]={};f._listen[o][m]=(f._listen[o][m]||0)+i[o];}if(h==0&&l){g();return null;}if(!l){f._callbacks[m].depnum+=h;}else f._callbacks[m]={callback:async_callback(g,'arbiter'),depnum:h};return m;},_updateCallbacks:function(i,h){if(h===null||!this._listen[i])return;for(var g in this._listen[i]){this._listen[i][g]--;if(this._listen[i][g]<=0)delete this._listen[i][g];this._callbacks[g].depnum--;if(this._callbacks[g].depnum<=0){var f=this._callbacks[g].callback;delete this._callbacks[g];f();}}}});c.Arbiter=d.exports=a;},3);
__d("bootloader",["arbiter"],function(d,e,f,c){var a=f('arbiter');var b={configurePage:function(g){var m={};var l=b.resolveResources(g);var h;for(h=0;h<l.length;h++){m[l[h].src]=l[h];b.requested(l[h].name);b._startCSSPoll(l[h].name);}var j=document.getElementsByTagName('link');for(h=0;h<j.length;++h){if(j[h].rel!='stylesheet')continue;for(var i in m)if(j[h].href.indexOf(i)!==-1){var k=m[i].name;b._cssLinkMap[k]={link:j[h]};if(m[i].permanent)b._permanent[k]=true;delete m[i];break;}}},loadComponents:function(i,g){if(!b._bootloadEnabled){b._waitForBootloadEnabled.push([i,g]);return;}i=$A(i);var l=[];for(var j=0;j<i.length;++j){if(!i[j])continue;var h=b._componentMap[i[j]];if(!!h)for(var k=0;k<h.length;++k)l.push(h[k]);}b.loadResources(l,g);},loadResources:function(m,g,l,p){var h;m=b.resolveResources($A(m));if(l){var j={};for(h=0;h<m.length;++h)j[m[h].name]=true;for(var i in b._requested)if(!(i in b._permanent)&&!(i in j)&&!(i in b._earlyResources))b._unloadResource(i);b._earlyResources={};}var q=[];var k=[];for(h=0;h<m.length;++h){var n=m[h];if(n.permanent)b._permanent[n.name]=true;var o=a.BOOTLOAD+'/'+n.name;if(a.query(o)!==null)continue;if(!n.nonblocking)k.push(o);if(!b._requested[n.name]){b.requested(n.name);q.push(n);window.CavalryLogger&&CavalryLogger.getInstance().measureResources(n,p);}}if(g)g=a.registerCallback(g,k);for(h=0;h<q.length;++h)b.requestResource(q[h].type,q[h].src,q[h].name);return g;},requestResource:function(p,m,k){var h=b.getHardpoint();if(p=='js'){var l=document.createElement('script');l.src=m;l.type='text/javascript';l.async=true;var g=function(){b.done([k]);};l.onload=l.onerror=g;l.onreadystatechange=function(){if(this.readyState in {loaded:1,complete:1})g();};h.appendChild(l);}else if(p=='css'){if(document.createStyleSheet){var n=b._styleTags,o=-1;for(var i=0;i<n.length;i++)if(n[i].imports.length<25){o=i;break;}if(o==-1){n.push(document.createStyleSheet());o=n.length-1;}n[o].addImport(m);b._cssLinkMap[k]={tagIdx:o,href:m};}else{var j=document.createElement('link');j.rel="stylesheet";j.type="text/css";j.media="all";j.href=m;b._cssLinkMap[k]={link:j};h.appendChild(j);}b._startCSSPoll(k);}},_activeCSSPolls:{},_expireTime:null,_runCSSPolls:function(){var j;var g=[];var k=new Date().getTime();if(k>=b._expireTime){if(window.send_error_signal)if(Math.random()<.01)send_error_signal('js_timeout_and_exception','00001:error:CSS timeout.');for(j in b._activeCSSPolls)g.push(j);}else for(j in b._activeCSSPolls){var l=b._activeCSSPolls[j];var m=window.getComputedStyle?window.getComputedStyle(l,null):l.currentStyle;if(m&&parseInt(m.height,10)>1)g.push(j);}if(!is_empty(g)){for(var i=0;i<g.length;i++){var h=b._activeCSSPolls[g[i]];h.parentNode.removeChild(h);delete b._activeCSSPolls[g[i]];}b._expireTime=k+b._CSS_POLL_EXPIRATION;b.done(g,true);}return is_empty(b._activeCSSPolls);},_startCSSPoll:function(i){var g='bootloader_'+i.replace(/[^a-z0-9]/ig,'_');var j=document.createElement('meta');j.id=g;b.getHardpoint().appendChild(j);b._expireTime=new Date()+b._CSS_POLL_EXPIRATION;var k=is_empty(b._activeCSSPolls);b._activeCSSPolls[i]=j;if(k)var h=setInterval(function _poll(){if(b._runCSSPolls())h&&clearInterval(h);},20,false);},done:function(k,h){b.requested(k);if(!h){var j={sender:this};a.inform(a.BOOTLOAD,j,a.BEHAVIOR_EVENT);}for(var g=0;g<k.length;++g){var i=k[g];a.inform(a.BOOTLOAD+'/'+i,true,a.BEHAVIOR_STATE);}},requested:function(h){h=$A(h);for(var g=0;g<h.length;++g)b._requested[h[g]]=true;},enableBootload:function(h){for(var i in h)if(!b._componentMap[i])b._componentMap[i]=h[i];if(!b._bootloadEnabled){b._bootloadEnabled=true;var j=b._waitForBootloadEnabled;for(var g=0;g<j.length;g++)b.loadComponents.apply(null,j[g]);b._waitForBootloadEnabled=[];}},_unloadResource:function(j){if(j in b._cssLinkMap){var h=b._cssLinkMap[j],i=h.link;if(i){i.parentNode.removeChild(i);}else{var k=b._styleTags[h.tagIdx];for(var g=0;g<k.imports.length;g++)if(k.imports[g].href==h.href){k.removeImport(g);break;}}delete b._cssLinkMap[j];delete b._requested[j];a.inform(a.BOOTLOAD+'/'+j,null,a.BEHAVIOR_STATE);}},getHardpoint:function(){if(!b._hardpoint){var g=document.getElementsByTagName('head');b._hardpoint=g.length&&g[0]||document.body;}return b._hardpoint;},setResourceMap:function(h){if(!h)return;for(var g in h){if(!h[g].name)h[g].name=g;b._resources[g]=h[g];}},resolveResources:function(j,g){if(!j)return [];var i=new Array(j.length);for(var h=0;h<j.length;++h)if(!j[h].type&&j[h] in b._resources){i[h]=b._resources[j[h]];if(g&&(g in i[h]))i[h]=i[h][g];}else i[h]=j[h];return i;},loadEarlyResources:function(i){var g;b.setResourceMap(i);var h=[];for(g in i)h.push(b._resources[g]);b.loadResources(h);for(g in i){var j=b._resources[g];if(!j.permanent)b._earlyResources[j.name]=j;}},isDisplayJS:function(g){if(typeof g=='string')g=b._resources[g];return g.displayjs;},_requested:{},_permanent:{},_componentMap:{},_cssLinkMap:{},_styleTags:[],_hardpoint:null,_resources:{},_earlyResources:{},_bootloadEnabled:false,_waitForBootloadEnabled:[],_CSS_POLL_EXPIRATION:5000};d.Bootloader=e.exports=b;},3);
(function(){if(window!=window.top)return;var o='_e_',q=(window.name||'').toString();q=(q.length==7&&o==q.substr(0,3))?q.substr(3):(window.name=o+window._EagleEyeSeed).substr(3);var m=(window.location.protocol=='https:'&&document.cookie.match(/\bcsm=1/))?'; secure':'';var k=o+q+'_',g=new Date(+new Date()+604800000).toGMTString(),e=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1'),f='; expires='+g+';path=/; domain='+e+m,d=0,r=false,l,p=window._EagleEyeSessionStorage&&window.sessionStorage,i=document.cookie.length,j=false,n=+new Date();function h(v){var s=2166136261;for(var t=0,u=v.length;t<u;++t)s=(s^v.charCodeAt(t))*16777619;s+=s<<13;s^=s>>7;s+=s<<3;s^=s>>17;s+=s<<5;return (s|0)+2147483648;}function c(s){return k+(d++)+'='+encodeURIComponent(s)+f;}function a(){var s=[],v=false,u=0,t=0;this.isEmpty=function(){return !s.length;};this.enqueue=function(x,w){if(w){s.unshift(x);}else s.push(x);};this.dequeue=function(){s.shift();};this.peek=function(){return s[0];};this.clear=function(y){i=Math.min(i,document.cookie.length);if(!j&&(new Date()-n>60000))j=true;var w=!y&&(document.cookie.search(o)>=0);var zi=!!(window.Env&&Env.cookie_header_limit);var zd=(window.Env&&Env.cookie_count_limit)||19;var ze=(window.Env&&Env.cookie_header_limit)||3950;var zb=zd-5;var zc=ze-1000;while(!this.isEmpty()){var x=c(this.peek());if(zi&&(x.length>ze||(j&&x.length+i>ze))){this.dequeue();continue;}if((w||zi)&&((document.cookie.length+x.length>ze)||(document.cookie.split(';').length>zd)))break;document.cookie=x;w=true;this.dequeue();}var zf=+new Date();if(y||!v&&w&&((t>0)&&(Math.min(10*Math.pow(2,t-1),60000)+u<zf))&&(r||window.Arbiter&&window.OnloadEvent&&Arbiter.query(OnloadEvent.ONLOAD))&&(!this.isEmpty()||(document.cookie.length>zc)||(document.cookie.split(';').length>zb))){var zh=new Image(),zg=this,z=window._EagleEyeDomain||(window.Env&&Env.tracking_domain)||'';v=true;zh.onload=function _EagleEye_logged(){v=false;t=0;zg.clear();};zh.onerror=zh.onabort=function _EagleEye_error(){v=false;u=+new Date();t++;};var za=(window.Env&&Env.fb_isb)?'&fb_isb='+Env.fb_isb:'';var zj=window.Env?'&__user='+Env.user:'';zh.src=z+'/ajax/nectar.php?asyncSignal='+(Math.floor(Math.random()*10000)+1)+za+zj+'&'+(!y?'':'s=')+zf;}};}l=new a();if(p){var b=function(){var u=0;var w=u;function t(){var y=sessionStorage.getItem('_e_ids');if(y){var x=(y+'').split(';');if(x.length==2){u=parseInt(x[0],10);w=parseInt(x[1],10);}}}function v(){var x=u+';'+w;sessionStorage.setItem('_e_ids',x);}function s(x){return '_e_'+((x!==undefined)?x:u++);}this.isEmpty=function(){return w===u;};this.enqueue=function(z,x){var y=x?s(--w):s();sessionStorage.setItem(y,z);v();};this.dequeue=function(){this.isEmpty();sessionStorage.removeItem(s(w));w++;v();};this.peek=function(){var x=sessionStorage.getItem(s(w));return x?(x+''):x;};this.clear=l.clear;t();};l=new b();}window.EagleEye={log:function(v,s,t){if(window.Env&&Env.no_cookies)return;var w=[q,+new Date(),v].concat(s);w.push(w.length);function u(){var y=JSON.stringify(w);try{l.enqueue(y,!!t);l.clear(!!t);}catch(x){if(p&&(x.code===1000)){l=new a();p=false;u();}}}if(window.JSON){u();}else if(window.Bootloader)Bootloader.loadComponents('json',u);},createLogger:function(u,s){s=(s===undefined)?1:s;var t=function(v,w){if(t.enabled)EagleEye.log(u,v,w);};t.enabled=false;t._key=((window.Env&&Env.user)||Math.random())+u;t.enabled=(h(t._key)%65535/65535)<=s;return t;},getSessionID:function(){return q;},loaded:function(){r=true;}};})();
var Mixins={Arbiter:{_getArbiterInstance:function(){return this._arbiter||(this._arbiter=new Arbiter());},inform:function(c,b,a){return this._getArbiterInstance().inform(c,b,a);},subscribe:function(c,a,b){return this._getArbiterInstance().subscribe(c,a,b);},unsubscribe:function(a){this._getArbiterInstance().unsubscribe(a);}}};
Class={extend:function(a,b){if(!Metaprototype._arbiterHandle)Metaprototype._arbiterHandle=Arbiter.subscribe(Arbiter.BOOTLOAD,Metaprototype._onbootload.bind(Metaprototype));Metaprototype._queue(a,b);},mixin:function(c,b){var a=Array.prototype.slice.call(arguments);a[0]=a[0].prototype;Function.mixin.apply(Function,a);}};function Metaprototype(){}copy_properties(Metaprototype,{makeFinal:function(a){},_pending:{},_queue:function(b,c){b.__class_extending=true;var a=Arbiter.registerCallback(bind(Metaprototype,Metaprototype._apply,b,c),[Arbiter.FUNCTION_EXTENSION+'/'+c,Arbiter.BOOTLOAD]);if(a!==null)this._pending[c]=true;},_onbootload:function(b,a){this._update();},_update:function(){for(var a in this._pending)if(!!window[a]){delete this._pending[a];if(!window[a].__class_extending){Arbiter.inform(Arbiter.FUNCTION_EXTENSION+'/'+a,true,Arbiter.BEHAVIOR_STATE);}else window[a].__class_name=a;}},_apply:function(a,c){delete a.__class_extending;var d=__metaprototype(window[c],0);var b=__metaprototype(a,d.prototype.__level+1);b.parent=d;if(!!a.__class_name)Arbiter.inform(Arbiter.FUNCTION_EXTENSION+'/'+a.__class_name,true,Arbiter.BEHAVIOR_STATE);}});function __metaprototype(c,a){if(c.__metaprototype)return c.__metaprototype;var b=new Function();b.construct=__metaprototype_construct;b.prototype.construct=__metaprototype_wrap(c,a,true);b.prototype.__level=a;b.base=c;c.prototype.parent=b;c.__metaprototype=b;return b;}function __metaprototype_construct(a){__metaprototype_init(a.parent);var d=[];var c=a;while(c.parent){var b=new c.parent();d.push(b);b.__instance=a;c=c.parent;}a.parent=d[1];d.reverse();d.pop();a.__parents=d;a.__instance=a;return a.parent.construct.apply(a.parent,arguments);}function __metaprototype_init(d){if(d.initialized)return;var a=d.base.prototype;if(d.parent){__metaprototype_init(d.parent);var e=d.parent.prototype;for(var b in e)if(b!='__level'&&b!='construct'&&a[b]===undefined)a[b]=d.prototype[b]=e[b];}d.initialized=true;var c=d.prototype.__level;for(var b in a)if(b!='parent')a[b]=d.prototype[b]=__metaprototype_wrap(a[b],c);}function __metaprototype_wrap(c,b,d){if(typeof c!='function'||c.__prototyped)return c;var a=function(){var g=this.__instance;if(g){var h=g.parent;g.parent=b?g.__parents[b-1]:null;var e=arguments;if(d){e=[];for(var f=1;f<arguments.length;f++)e.push(arguments[f]);}var i=c.apply(g,e);g.parent=h;return i;}else return c.apply(this,arguments);};a.__prototyped=true;return a;}Function.mixin=function(){for(var b=1,a=arguments.length;b<a;++b)copy_properties(arguments[0],Mixins[arguments[b]]||arguments[b]);};Function.prototype.bind=function(b){var a=[b,this].concat(Array.prototype.slice.call(arguments,1));return bind.apply(null,a);};Function.prototype.curry=Function.prototype.bind.bind(null,null);Function.prototype.shield=function(b){if(typeof this!='function')throw new TypeException();var a=this.bind.apply(this,$A(arguments));return function(){return a();};};Function.prototype.defer=function(b,a){if(typeof this!='function')throw new TypeError();b=b||0;return setTimeout(this,b,a);};function bagofholding(){}function bagof(a){return function(){return a;};}
function set_ue_cookie(a){if(!(window.Env&&Env.no_cookies))document.cookie="act="+encodeURIComponent(a)+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}window.UserNoOp=window.UserNoOp||(function(){var a=function(){};var b=function(){return this;};copy_properties(a.prototype,{add_event:b,add_data:b,set_ua_id:b,set_namespace:b});return a;})();window.UserAction=window.UserAction||(function(){var a=function a(e,d,b){var c=e+'/'+d;copy_properties(this,{ue:c,_ua_id:null,_ts:e,_ns:null,_start_ts:e,_prev_event:'s',_ue_ts:e,_ue_count:d,_context:b,_version:2});};a.enable=function(b){a.enable[b]=true;};a._stack=[];copy_properties(a.prototype,{set_ua_id:function(b){this._ua_id=b;return this;},set_namespace:function(b){this._ns=b;return this;},add_event:function(d){if(!a.enable.events)return this;var f=(+new Date()),b=f-this._ts;var e=f-this._ue_ts;var c=[this._version,this.ue,this._ns,this._ua_id,this._prev_event,d,b,e];window.EagleEye&&EagleEye.log('evt',c);this._ts=f;this._prev_event=d;return this;},add_data:function(b){if(!a.enable.data)return this;return this;}});return a;})();window.user_action=window.user_action||(function(){var d=0,c=0;var b=null,a=null;return function(i,e,event,h,f){var l=(+new Date()),k=l+'/'+d;f=f||{};if(!i&&event)i=event.getTarget();var g=50;if(l-c<g&&i==b&&h!="FORCE")return UserAction._stack[UserAction._stack.length-1];b=i;a=event;var j=new UserAction(l,d,e);UserAction._stack.push(j);while(UserAction._stack.length>10)UserAction._stack.shift();Arbiter.inform("UserAction/new",{ua:j,node:i,mode:h,event:event,extra_data:f});c=l;d++;return j;};})();window.report_data=function(a,b){user_action(null,a,null,'FORCE',b);};
(function(){ClickRef={};ClickRef.get_intern_ref=function(c){if(!!c){var b={profile_minifeed:1,info_tab:1,gb_content_and_toolbar:1,gb_muffin_area:1,ego:1,bookmarks_menu:1,jewelBoxNotif:1,jewelNotif:1,BeeperBox:1,navSearch:1};for(var a=c;a&&a!=document.body;a=a.parentNode){if(!a.id||typeof a.id!=='string')continue;if(a.id.substr(0,8)=='pagelet_')return a.id.substr(8);if(a.id.substr(0,8)=='box_app_')return a.id;if(b[a.id])return a.id;}}return '-';};ClickRef.get_href=function(b){var a=(b.getAttribute&&(b.getAttribute('ajaxify')||b.getAttribute('data-endpoint'))||b.action||b.href||b.name);return a;};ClickRef.mouse_click_info=function(b){if(!ge('content'))return [0,0,0,0];var a=$('content');var c=window.Vector2?Vector2.getEventPosition(b):{x:0,y:0};return [c.x,c.y,a.offsetLeft,a.clientWidth];};ClickRef.should_report=function(b,a){if(a=='FORCE')return true;if(a=='INDIRECT')return false;return (b&&ClickRef.get_href(b));};ClickRef.collect_data=function(l,h,event,d){var j=(!window.ArbiterMonitor)?'r':'a',g=[0,0,0,0],k,e,f;if(!!event){k=event.type;if(k=='click'&&ge('content'))g=ClickRef.mouse_click_info(event);var b=0;event.ctrlKey&&(b+=1);event.shiftKey&&(b+=2);event.altKey&&(b+=4);event.metaKey&&(b+=8);if(b)k+=b;}if(!!h)e=ClickRef.get_href(h);var a=[];if(window.ArbiterMonitor){f=ArbiterMonitor.getInternRef(h);a=ArbiterMonitor.getActFields();}var c={};if(window.collect_data_attribs){c=collect_data_attribs(h,['ft','gt']);copy_properties(c.ft,d.ft||{});copy_properties(c.gt,d.gt||{});if(c.gt.ua_id)l.set_ua_id(c.gt.ua_id);}var i=[l._ue_ts,l._ue_count,e||'-',l._context,k||'-',f||ClickRef.get_intern_ref(h),j,window.URI?URI.getRequestURI(true,true).getUnqualifiedURI().toString():location.pathname+location.search+location.hash,c].concat(g).concat(a);return i;};ClickRef.onNewUserAction=function(b,a){Bootloader.loadComponents('dom-collect',function(){if(ClickRef.should_report(a.node,a.mode)){var c=ClickRef.collect_data(a.ua,a.node,a.event,a.extra_data);ClickRef.report(a.ua,c);}});};ClickRef.report=function(b,a){var c=b.ue;set_ue_cookie(c);window.EagleEye&&EagleEye.log('act',a);};window.Arbiter&&Arbiter.subscribe("UserAction/new",ClickRef.onNewUserAction);})();
__d("dom-core",[],function(d,e,f,b){var a=function(g){return typeof g=='string'?document.getElementById(g):g;};var c=a;d.ge=b.ge=c;d.$=b.$=a;},3);
__d("css-core",["dom-core"],function(d,e,f,c){var a=f('dom-core').$;var b={hasClass:function(h,g){h=a(h);return (' '+h.className+' ').indexOf(' '+g+' ')>-1;},addClass:function(h,g){h=a(h);if(g&&!b.hasClass(h,g))h.className=h.className+' '+g;return h;},removeClass:function(h,g){h=a(h);if(b.hasClass(h,g))h.className=h.className.replace(new RegExp('(^|\\s)'+g+'(?:\\s|$)','g'),'$1');return h;},toggleClass:function(h,g){return b.conditionClass(h,g,!b.hasClass(h,g));},conditionClass:function(i,h,g){return (g?b.addClass:b.removeClass)(i,h);},show:function(g){b.removeClass(g,'hidden_elem');},hide:function(g){b.addClass(g,'hidden_elem');},conditionShow:function(h,g){b.conditionClass(h,'hidden_elem',!g);}};d.CSS=e.exports=b;},3);
__d("parent",["css-core"],function(b,c,d,a){b.Parent=c.exports={byTag:function(e,f){f=f.toUpperCase();while(e&&e.nodeName!=f)e=e.parentNode;return e;},byClass:function(f,e){while(f&&!d('css-core').hasClass(f,e))f=f.parentNode;return f;},byAttribute:function(f,e){while(f&&(!f.getAttribute||!f.getAttribute(e)))f=f.parentNode;return f;}};},3);
function trackReferrer(a,e){a=Parent.byAttribute(a,'data-referrer');if(a){var d=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/.exec(e)[1]||'';if(!d)return;var c=d+'|'+a.getAttribute('data-referrer');var b=new Date();b.setTime(new Date().getTime()+1000);document.cookie="x-src="+encodeURIComponent(c)+"; "+"expires="+b.toGMTString()+";path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}return a;}
!function(){if(window.__primer)return;window.__primer=true;var a=null;var b=/async(?:-post)?|dialog(?:-pipe|-post)?|theater|toggle/;document.documentElement.onclick=function(e){e=e||window.event;a=e.target||e.srcElement;var f=Parent.byTag(a,'A');if(!f)return;var c=f.getAttribute('ajaxify');var g=f.href;var l=c||g;if(l){var k=user_action(f,'a',e);if(window.ArbiterMonitor)ArbiterMonitor.initUA(k,[f]);}if(c&&g&&!(/#$/).test(g)){var h=e.which&&e.which!=1;var i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;if(h||i)return;}trackReferrer(f,l);var d=['dialog'];var j=f.rel&&f.rel.match(b);j=j&&j[0];switch(j){case 'dialog-pipe':d.push('ajaxpipe');case 'dialog':case 'dialog-post':Bootloader.loadComponents(d,function(){Dialog.bootstrap(l,null,j=='dialog',null,null,f);});break;case 'async':case 'async-post':Bootloader.loadComponents('async',function(){AsyncRequest.bootstrap(l,f);});break;case 'theater':Bootloader.loadComponents('PhotoSnowbox',function(){PhotoSnowbox.bootstrap(l,f);});break;case 'toggle':CSS.toggleClass(f.parentNode,'openToggler');Bootloader.loadComponents('Toggler',function(){Toggler.bootstrap(f);});break;default:return;}return false;};document.documentElement.onsubmit=function(c){c=c||window.event;var d=c.target||c.srcElement;if(d&&d.nodeName=='FORM'&&d.getAttribute('rel')=='async'){var f=user_action(d,'f',c);if(window.ArbiterMonitor)ArbiterMonitor.initUA(f,[d]);var e=a;Bootloader.loadComponents('dom-form',function(){Form.bootstrap(d,e);});return false;}};}();
__d("ua",[],function(b,c,d,a){var e={ie:function(){return e._populate()||this._ie;},ie64:function(){return e.ie()&&this._win64;},firefox:function(){return e._populate()||this._firefox;},opera:function(){return e._populate()||this._opera;},safari:function(){return e._populate()||this._safari;},chrome:function(){return e._populate()||this._chrome;},windows:function(){return e._populate()||this._windows;},osx:function(){return e._populate()||this._osx;},linux:function(){return e._populate()||this._linux;},iphone:function(){return e._populate()||this._iphone;},_populated:false,_populate:function(){if(e._populated)return;e._populated=true;var i=navigator.userAgent;var f=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(i);var h=/(Mac OS X)|(Windows)|(Linux)/.exec(i);var g=/\b(iPhone|iP[ao]d)/.exec(i);e._win64=!!(/Win64/.exec(i));if(f){e._ie=f[1]?parseFloat(f[1]):NaN;if(e._ie&&document.documentMode)e._ie=document.documentMode;e._firefox=f[2]?parseFloat(f[2]):NaN;e._opera=f[3]?parseFloat(f[3]):NaN;e._safari=f[4]?parseFloat(f[4]):NaN;if(e._safari){f=/(?:Chrome\/(\d+\.\d+))/.exec(i);e._chrome=f&&f[1]?parseFloat(f[1]):NaN;}else e._chrome=NaN;}else e._ie=e._firefox=e._opera=e._chrome=e._safari=NaN;if(h){if(h[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(i);e._osx=j?parseFloat(j[1].replace('_','.')):true;}else e._osx=false;e._windows=!!h[2];e._linux=!!h[3];}else e._osx=e._windows=e._linux=false;e._iphone=g;}};b.ua=c.exports=e;},3);
OnloadEvent={ONLOAD:'onload/onload',ONLOAD_CALLBACK:'onload/onload_callback',ONLOAD_DOMCONTENT:'onload/dom_content_ready',ONLOAD_DOMCONTENT_CALLBACK:'onload/domcontent_callback',ONBEFOREUNLOAD:'onload/beforeunload',ONUNLOAD:'onload/unload'};function _include_quickling_events_default(){return !window.loading_page_chrome;}function onbeforeunloadRegister(a,b){if(b===undefined)b=_include_quickling_events_default();b?_addHook('onbeforeleavehooks',a):_addHook('onbeforeunloadhooks',a);}function onunloadRegister(a){if(!window.onunload)window.onunload=function(){Arbiter.inform(OnloadEvent.ONUNLOAD,true,Arbiter.BEHAVIOR_STATE);};_addHook('onunloadhooks',a);}function onleaveRegister(a){_addHook('onleavehooks',a);}function _addHook(b,a){window[b]=(window[b]||[]).concat(a);}function removeHook(a){window[a]=[];}function _domcontentready(){Arbiter.inform(OnloadEvent.ONLOAD_DOMCONTENT,true,Arbiter.BEHAVIOR_STATE);}function _bootstrapEventHandlers(){var a=document,e=window;if(a.addEventListener){if(ua.safari()<525){var d=setInterval(function(){if(/loaded|complete/.test(a.readyState)){_domcontentready();clearInterval(d);}},10);}else a.addEventListener("DOMContentLoaded",_domcontentready,true);}else{var c='javascript:void(0)';if(e.location.protocol=='https:')c='//:';a.write('<script onreadystatechange="if (this.readyState==\'complete\') {'+'this.parentNode.removeChild(this);_domcontentready();}" '+'defer="defer" src="'+c+'"><\/script\>');}var b=e.onload;e.onload=function(){e.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_layout');b&&b();Arbiter.inform(OnloadEvent.ONLOAD,true,Arbiter.BEHAVIOR_STATE);};e.onbeforeunload=function(){var f={};Arbiter.inform(OnloadEvent.ONBEFOREUNLOAD,f,Arbiter.BEHAVIOR_STATE);if(!f.warn)Arbiter.inform('onload/exit',true);return f.warn;};}onload_callback=Arbiter.registerCallback(function(){window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_onload');Arbiter.inform(OnloadEvent.ONLOAD_CALLBACK,true,Arbiter.BEHAVIOR_STATE);},[OnloadEvent.ONLOAD]);domcontent_callback=Arbiter.registerCallback(function(){window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_domcontent');Arbiter.inform(OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,true,Arbiter.BEHAVIOR_STATE);},[OnloadEvent.ONLOAD_DOMCONTENT]);if(!window._eventHandlersBootstrapped){_eventHandlersBootstrapped=true;_bootstrapEventHandlers();}
function tx(b,a){if(typeof _string_table=='undefined')return;b=_string_table[b];return _tx(b,a);}function intl_ends_in_punct(a){if(typeof a!='string')return false;return a.match(new RegExp(intl_ends_in_punct.punct_char_class+'['+')"'+"'"+'\u00BB'+'\u0F3B'+'\u0F3D'+'\u2019'+'\u201D'+'\u203A'+'\u3009'+'\u300B'+'\u300D'+'\u300F'+'\u3011'+'\u3015'+'\u3017'+'\u3019'+'\u301B'+'\u301E'+'\u301F'+'\uFD3F'+'\uFF07'+'\uFF09'+'\uFF3D'+'\s'+']*$'));}intl_ends_in_punct.punct_char_class='['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']';function intl_render_list_separator(){return _tx("{previous-items}, {next-items}",{'previous-items':'','next-items':''});}function intl_phonological_rules(g){var e,d=g,f=window.intl_locale_rewrites,b,c;try{if(f){var pats=[],reps=[];for(var p in f.patterns){var pat=p,rep=f.patterns[p];for(b in f.meta){e=new RegExp(b.slice(1,-1),'g');pat=pat.replace(e,f.meta[b]);rep=rep.replace(e,f.meta[b]);}pats[pats.length]=pat;reps[reps.length]=rep;}for(var ii=0;ii<pats.length;ii++){e=new RegExp(pats[ii].slice(1,-1),'g');if(reps[ii]=='javascript'){c=g.match(e);b=c&&c[0];if(b)g=g.replace(e,b.slice(1).toLowerCase());}else g=g.replace(e,reps[ii]);}}}catch(a){g=d;}e=new RegExp('\x01','g');g=g.replace(e,'');return g;}function _tx(e,a){if(!a)return e;var d;for(var c in a){if(intl_ends_in_punct(a[c])){d=new RegExp('\\{'+c+'\\}'+intl_ends_in_punct.punct_char_class+'*','g');}else d=new RegExp('\\{'+c+'\\}','g');var b='';if(a[c][0]!='~')b='\x01';e=e.replace(d,b+a[c]+b);}e=intl_phonological_rules(e);return e;}
InitialJSLoader={INITIAL_JS_READY:'BOOTLOAD/JSREADY',load:function(a){InitialJSLoader.callback=Bootloader.loadResources(a,InitialJSLoader.callback);},callback:Arbiter.registerCallback(function(){Arbiter.inform(InitialJSLoader.INITIAL_JS_READY,true,Arbiter.BEHAVIOR_STATE);},[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK])};
function goURI(b,a){b=b.toString();if(!a&&window.PageTransitions&&PageTransitions.isInitialized()){PageTransitions.go(b);}else if(window.location.href==b){window.location.reload();}else window.location.href=b;}function loadExternalJavascript(f,b,a){if(f instanceof Array){var e=f.shift(0);if(e){loadExternalJavascript(e,function(){if(f.length){loadExternalJavascript(f,b,a);}else b&&b();},a);}else if(b)b();}else{var c=a?document.body:document.getElementsByTagName('head')[0];var d=document.createElement('script');d.type='text/javascript';d.src=f;if(b){d.onerror=d.onload=b;d.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")b();};}c.appendChild(d);return d;}}function invoke_callbacks(b,d){if(b)for(var c=0;c<b.length;c++)try{(new Function(b[c])).apply(d);}catch(a){}}
window.JSLogger||(function(){function b(d){this.cat=d;this._counts={};}var a={_JSLogger:b,instances:{},backlog:[],stringify:function(e){try{return JSON.stringify(e);}catch(d){return '{}';}}};function c(d){b.prototype[d]=function(event,e){if(a.backlog.length<100)a.backlog.push([this.cat,d,event,e&&a.stringify(e),new Date()]);};}c('debug');c('log');c('warn');c('error');c('bump');window.JSLogger={_:a,DUMP_EVENT:'jslogger/dump',create:function(d){return a.instances[d]||(a.instances[d]=new b(d));}};})();
window.Event=window.Event||function(){};Event.__inlineSubmit=function(b,event){var a=Event.__getHandler&&Event.__getHandler(b,'submit');return a?null:Event.__bubbleSubmit(b,event);};Event.__bubbleSubmit=function(a,event){if(document.documentElement.attachEvent){var b;while(b!==false&&(a=a.parentNode))b=a.onsubmit?a.onsubmit(event):Event.__fire&&Event.__fire(a,'submit',event);return b;}};
JSCC=window.JSCC||function(){var a={},b={};return {get:function(c){if(c in a){b[c]=a[c]();delete a[c];return b[c];}else return b[c];},init:function(c){copy_properties(a,c);}};}();
DynaTemplate=window.DynaTemplate||(function(){var g='[[',i='\\[\\[',h='\\]\\]';var l={};var a={};function d(n,m){return m.indexOf(g+n)!=-1;}function e(m){return Object.prototype.toString.call(m)==="[object Array]";}function f(m){return m&&typeof m=="object";}function c(m){switch(m){case "&":return "&amp;";case '"':return '&quot;';case "'":return '&#39;';case "<":return "&lt;";case ">":return "&gt;";default:return m;}}function b(m){m=String(m===null?"":m);return m.replace(/&(?!\w+;)|["'<>]/g,c);}function j(n){for(var m in n){var o=n[m];a[o[0]]=o[1];l[m]=o[1];}}function k(p,m){if(p.charAt(0)=='@')return k(a[p.substring(1)],m);if(d('#',p)||d('^',p)){var o=new RegExp(i+"(\\^|\\#)\\s*(.+)\\s*"+h+"\n*([\\s\\S]+?)"+i+"\\/\\s*\\2\\s*"+h+"\\s*","mg");p=p.replace(o,function(q,v,t,r){var w=m[t];w=(w&&w.__html!==undefined)?w.__html:w;if(v=='^'){if(!w||e(w)&&w.length===0){return k(r,m);}else return '';}else if(v=='#'){if(e(w)){var u=[];for(var s=0;s<w.length;s++)u.push(k(r,w[s]));return u.join('');}else if(f(w)){return k(r,w);}else if(!(typeof w=='function'))if(w)return k(r,m);return '';}});}if(!d("",p))return p;var n=new RegExp(i+"(>|\\[|&)?([^\\/#\\^]+?)\\1?"+h+"+","g");return p.replace(n,function(q,s,r){r=r.replace(/^\s*|\s*$/g,"");var t=m[r];if(!t||t instanceof Array&&t.length===0)return '';switch(s){case '>':if(t[0].charAt(0)=='@'){return k(t[0],t[1]);}else if(!(t[0] in l))return '';return k(l[t[0]],t[1]);case '&':default:if(window.HTML&&t instanceof HTML)return t.toString();return t.__html!==undefined?t.__html:b(t);}});}return {registerTemplates:j,renderToHtml:k};})();
__d("big-pipe",["dom-core","arbiter","bootloader"],function(g,h,i,e){var a=i('dom-core').$;var f=i('dom-core').ge;var b=i('arbiter');var d=i('bootloader');function c(j){copy_properties(this,{arbiter:b,rootNodeID:'content',lid:0,isAjax:false,rrEnabled:true,domContentCallback:domcontent_callback,onloadCallback:onload_callback,domContentEvt:OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,onloadEvt:OnloadEvent.ONLOAD_CALLBACK,forceFinish:false,_phaseDoneCallbacks:[],_currentPhase:0,_lastPhase:-1});copy_properties(this,j);this._cavalry=(this.lid&&window.CavalryLogger)?CavalryLogger.getInstance(this.lid):null;this._inst=this._cavalry&&(window._pagelet_profile||this._cavalry.isPageletProfiler());c._current_instance=this;if(env_get('tti_vision')==1)(new TTIVisualizer(this)).init();this.arbiter.registerCallback(this.domContentCallback,['pagelet_displayed_all']);this.arbiter.inform('phase_begin_0',true,b.BEHAVIOR_STATE);this._inst&&this._cavalry.setTimeStamp('t_phase_begin_0');this.onloadCallback=this.arbiter.registerCallback(this.onloadCallback,['pagelet_displayed_all']);}copy_properties(c.prototype,{_ct:function(j){return (!j||'length' in j&&j.length===0)?{}:j;},_displayPagelet:function(l){if(this._inst)this._cavalry.onPageletEvent('display_start',l.id);l.content=this._ct(l.content);var k=true;for(var o in l.content){var j=l.content[o];if(l.append)o=(l.append==='bigpipe_root')?this.rootNodeID:l.append;var n=f(o);if(n){j=this._getContentMarkup(j);if(j)if(!l.append&&l.has_inline_js){if(window.DOM&&window.HTML){DOM.setContent(n,HTML(j));}else{k=false;d.loadComponents(['dom','dom-html'],function(){DOM.setContent(n,HTML(j));this.arbiter.inform(l.id+'_displayed',true,b.BEHAVIOR_STATE);}.bind(this));}}else if(l.append||ua.ie()<8){if(!l.append)while(n.firstChild)n.removeChild(n.firstChild);this._appendNodes(n,j);}else n.innerHTML=j;if(this._inst)this._cavalry.onPageletEvent('display',l.id);var m=n.getAttribute('data-referrer');if(!m)n.setAttribute('data-referrer',o);}}if(k)this.arbiter.inform(l.id+'_displayed',true,b.BEHAVIOR_STATE);if(l.cache_hit&&env_get('pc_debug')==1)a(l.id).style.border="1px red solid";},_getContentMarkup:function(k){if(!k||typeof k==='string')return k;if(k.container_id){var j=a(k.container_id);k=this._extractMarkup(j)||'';j.parentNode.removeChild(j);return k;}if(k.length>=2)return DynaTemplate.renderToHtml(k[0],k[1]);return null;},_extractMarkup:function(k){if(!k.firstChild){d.loadComponents('error-signal',function(){send_error_signal('bigpipe','Pagelet markup container is empty.');});return null;}if(k.firstChild.nodeType!==8)return null;var j=k.firstChild.nodeValue;j=j.substring(1,j.length-1);return j.replace(/\\([\s\S]|$)/g,'$1');},_appendNodes:function(j,m){var n=document.createElement('div');var l=ua.ie()<7;if(l)j.appendChild(n);n.innerHTML=m;var k=document.createDocumentFragment();while(n.firstChild)k.appendChild(n.firstChild);j.appendChild(k);if(l)j.removeChild(n);},_downloadJsForPagelet:function(j){d.loadResources(j.js||[],bind(this,function(){if(this._inst)this._cavalry.onPageletEvent('jsdone',j.id);j.requires=j.requires||[];if(!this.isAjax||j.phase>=1)j.requires.push('uipage_onload');var l=bind(this,function(){if(!this._isRelevant())return;invoke_callbacks(j.onload);if(j.cacheable&&!j.cache_hit)PageletCache.write(j);if(this._inst)this._cavalry.onPageletEvent('onload',j.id);this.arbiter.inform('pagelet_onload',true,b.BEHAVIOR_EVENT);j.provides&&this.arbiter.inform(j.provides,true,b.BEHAVIOR_STATE);});var k=bind(this,function(){this._isRelevant()&&invoke_callbacks(j.onafterload);});if(this.delay){var m=l;l=function(){setTimeout(m,400);};}this.arbiter.registerCallback(l,j.requires);this.arbiter.registerCallback(k,[this.onloadEvt]);}),false,j.id);},_downloadCssAndDisplayPagelet:function(l){if(this._inst)this._cavalry.onPageletEvent('css',l.id);var k=bind(this,function(){var m=l.display_dependency||[];var o=[];for(var n=0;n<m.length;n++)o.push(m[n]+'_displayed');this.arbiter.registerCallback(this._displayPagelet.bind(this,l),o);});var j=l.css||[];d.loadResources(j,k,false,l.id);if(this._inst)this._cavalry.onPageletEvent('css_end',l.id);},_downloadAndScheduleDisplayJS:function(m){var l=m.js||[];var j=[];for(var k=0;k<l.length;k++)if(d.isDisplayJS(l[k]))j.push(l[k]);d.loadResources(j,bind(this,function(){if(m.ondisplay&&m.ondisplay.length)this.arbiter.registerCallback(function(){invoke_callbacks(m.ondisplay);},[m.id+'_displayed']);}));},onPageletArrive:function(j){if(this._inst)this._cavalry.onPageletEvent('arrive',j.id);var k=j.phase;if(!this._phaseDoneCallbacks[k])this._phaseDoneCallbacks[k]=this.arbiter.registerCallback(this._onPhaseDone.bind(this),['phase_complete_'+k]);this.arbiter.registerCallback(this._phaseDoneCallbacks[k],[j.id+'_displayed']);if(j.cacheable){if(j.cache_hit){b.registerCallback(function(){this.processPagelet(this.loadFromCache(j));}.bind(this),['pagelet_cache_loaded']);}else{PageletCache.write(j);this.processPagelet(j);}}else this.processPagelet(j);if(this._inst)this._cavalry.onPageletEvent('arrive_end',j.id);},processPagelet:function(k){var l=k.phase;if(k.the_end)this._lastPhase=k.phase;if(k.tti_phase!==undefined)this._ttiPhase=k.tti_phase;k.jscc&&invoke_callbacks([k.jscc]);k.tplts&&DynaTemplate.registerTemplates(k.tplts);d.setResourceMap(k.resource_map);d.enableBootload(this._ct(k.bootloadable));var m='phase_begin_'+l;this.arbiter.registerCallback(this._downloadCssAndDisplayPagelet.bind(this,k),[m]);this.arbiter.registerCallback(this._downloadAndScheduleDisplayJS.bind(this,k),[m]);var j;if(!this.jsNonBlock){j=this.domContentEvt;}else j=k.id+'_displayed';this.arbiter.registerCallback(this.onloadCallback,['pagelet_onload']);this.arbiter.registerCallback(this._downloadJsForPagelet.bind(this,k),[j]);k.is_last&&this.arbiter.inform('phase_complete_'+l,true,b.BEHAVIOR_STATE);},_onPhaseDone:function(){if(this._currentPhase===this._ttiPhase&&this.rrEnabled){this.arbiter.inform('tti_bigpipe',{s:this.lid},b.BEHAVIOR_EVENT);this._cavalry&&this._cavalry.setTTIPhase(this._ttiPhase).measurePageLoad(true);}var k=this._currentPhase+1;var j=bind(this,function(){this._inst&&this._cavalry.setTimeStamp('t_phase_begin_'+k);this.arbiter.inform('phase_begin_'+k,true,b.BEHAVIOR_STATE);});if(this._currentPhase===this._lastPhase&&this._isRelevant())this.arbiter.inform('pagelet_displayed_all',true,b.BEHAVIOR_STATE);this._currentPhase++;if(ua.ie()){setTimeout(j,20);}else j();},_isRelevant:function(){return this==c._current_instance||this.jsNonBlock||this.forceFinish;}});c.pagelet_ids={};g.BigPipe=h.exports=c;},3);
function namespace(e,f){var d=e.split('.'),a=0,b=d.length,c=f||window;for(;a<b;a++){if(!c[d[a]])c[d[a]]={};c=c[d[a]];}return c;}
function incorporate_fragment(a){var c=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/;var b='';a.href.replace(c,function(d,g,h,f){var e,i;e=i=g+(h?'?'+h:'');if(f){f=f.replace(/^(!|%21)/,'');if(f.charAt(0)=='/')e=f.replace(/^\/+/,'/');}if(e!=i){if(window._script_path)document.cookie="rdir="+window._script_path+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');window.location.replace(b+e);}});}if(window._script_path!==undefined)incorporate_fragment(window.location);
!function(){var b=document.documentElement;var a=function(c){c=c||window.event;var d=c.target||c.srcElement;var f=d.getAttribute('placeholder');if(f){var e=Parent.byClass(d,'focus_target');if('focus'==c.type||'focusin'==c.type){if(d.value==f&&CSS.hasClass(d,'DOMControl_placeholder')){d.value='';CSS.removeClass(d,'DOMControl_placeholder');}if(e){CSS.addClass(e,'child_is_active');CSS.addClass(e,'child_is_focused');CSS.addClass(e,'child_was_focused');Arbiter.inform('reflow');}}else{if(d.value==''){CSS.addClass(d,'DOMControl_placeholder');d.value=f;e&&CSS.removeClass(e,'child_is_active');d.style.direction='';}e&&CSS.removeClass(e,'child_is_focused');}}};if(b.addEventListener){b.addEventListener('focus',a,true);b.addEventListener('blur',a,true);}else b.onfocusin=b.onfocusout=a;}();
document.documentElement.onkeydown=function(a){a=a||window.event;var b=a.target||a.srcElement;var c=a.keyCode==13&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&CSS.hasClass(b,'enter_submit');if(c){Bootloader.loadComponents(['dom','input-methods'],function(){if(!Input.isEmpty(b)){var d=DOM.scry(b.form,'.enter_submit_target')[0]||DOM.scry(b.form,'[type="submit"]')[0];d&&d.click();}});return false;}};
function fc_click(a,b){user_action(a,'ufi');fc_expand(a,b);}function fc_expand(a,b){var c=Parent.byTag(a,'form');fc_uncollapse(c);CSS.removeClass(c,'hidden_add_comment');if(b!==false)(c.add_comment_text_text||c.add_comment_text).focus();return false;}function fc_uncollapse(a){CSS.removeClass(a,'collapsed_comments');}