/*1327706257,176820406*/

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

window.__DEV__=window.__DEV__||0;if(!window.skipDomainLower&&document.domain.toLowerCase().match(/(^|\.)facebook\..*/))document.domain=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1');function bagofholding(){}function bagof(a){return function(){return a;};}if(!Date.now)Date.now=function now(){return new Date().getTime();};if(!Array.isArray)Array.isArray=function(a){return Object.prototype.toString.call(a)=='[object Array]';};Env=window.Env||{};Env.start=Env.start||Date.now();document.documentElement.className=document.documentElement.className.replace('no_js','');
window.require||(function(){var za={},y={},p=0,z=this,k=1,n=2,l='special',e='exports',c='dependencies',i='module',o='waiting',f='factory',m=undefined,b='define',g='global',j='require',h='requireLazy',d='requireDynamic',a='context';function zb(zk){var zm=za[zk],zf,zj;if(zm[o]&&zm[l]&n)s();if(!zm[e]){var zh=zm[e]={},zi=zm[f];if(Object.prototype.toString.call(zi)==='[object Function]'){var ze=[],zg=zm[c],zl=zg.length;if(zm[l]&n)zl=Math.min(zl,zi.length);for(zj=0;zj<zl;zj++){zf=zg[zj];ze.push(zf===i?zm:(zf===e?zh:zb(zf)));}var zn=zi.apply(zm[a]||z,ze);if(zn)zm[e]=zn;}else zm[e]=zi;}return zm[e];}function w(zi,zg,zh,zf,ze){if(zg===m){zg=[];zh=zi;zi=u();}else if(zh===m){zh=zg;zg=zi;zi=u();}if(za[zi])return;var zj={id:zi};zj[f]=zh;zj[c]=zg;zj[a]=ze;zj[l]=zf;za[zi]=zj;q(zi);}function zc(zf,zg,ze){w(zf,zg,m,k,ze);}function s(){var zf={},ze;for(ze in y)if(za[ze]&&!zf[ze]&&za[ze][l]&n)t({},ze,zf);}function t(zh,ze,zi){zi[ze]=1;var zg=y[ze],zf;if(!zg)return;zh[ze]=1;for(zf in zg){if(!za[zf][l]&n)continue;if(zh[zf]){delete zg[zf];za[zf][o]--;if(!za[zf][o])v(zf);}else t(zh,zf,zi);}zh[ze]=0;}function u(){return '__mod__'+p++;}function q(zg){var zh=za[zg];var zi=0;for(var zf=0;zf<zh[c].length;zf++){var ze=zh[c][zf];if(!za[ze]||za[ze][o]){y[ze]||(y[ze]={});y[ze][zg]=1;zi++;}}zh[o]=zi;if(!zi)v(zg);}function v(zf){var zg=za[zf];if(zg[l]&k)zb(zf);var zh=y[zf];if(zh){delete y[zf];for(var ze in zh)if(!--za[ze][o])v(ze);}}function r(zf,ze){za[zf]={id:zf};za[zf][e]=ze;}r(i,0);r(e,0);r(b,w);r(g,z);r(j,zb);r(d,zb);r(h,zc);w.amd={};z[b]=w;z[j]=zb;z[d]=zb;z[h]=zc;zb.ensure=zc;var zd=false;var x=function(zh,zf,zg,ze){w(zh,zf,zg,ze||n);if(za[zh][o]&&!zd)zd=setTimeout(function(){s();zd=false;},9);};z.__d=function(zh,zf,zg,ze){zf=[g,j,h,i,e].concat(zf);x(zh,zf,zg,ze);};z.__e=function(zh,zf,zg,ze){zf=[g,j,d,h,i,e].concat(zf);x(zh,zf,zg,ze);};})();
__d("hasArrayNature",[],function(b,e,f,d,a){function c(g){return (!!g&&(typeof g=='object'||typeof g=='function')&&('length' in g)&&!('setInterval' in g)&&(Object.prototype.toString.call(g)==="[object Array]"||('callee' in g)||('item' in g)));}d.exports=c;});
__d("ArrayUtils",["hasArrayNature"],function(c,f,g,e,b){var d=f("hasArrayNature");var a={createFrom:function(i){if(!d(i))return [i];if(i.item){var h=i.length,j=new Array(h);while(h--)j[h]=i[h];return j;}return Array.prototype.slice.call(i);}};e.exports=a;});
__d("copyProperties",[],function(c,e,f,d,b){function a(h,i){h=h||{};i=i||{};for(var g in i)h[g]=i[g];if(i.hasOwnProperty&&i.hasOwnProperty('toString')&&(typeof i.toString!='undefined')&&(h.toString!==i.toString))h.toString=i.toString;return h;}d.exports=a;});
__d("array-extensions",["copyProperties"],function(c,f,g,d,b){var a=f('copyProperties');function e(h){return function(){if(this===c)throw new TypeError();return h.apply(this,arguments);};}a(Array.prototype,{map:function(i,h){if(this===c||typeof i!='function')throw new TypeError();var j;var k=this.length;var l=new Array(k);for(j=0;j<k;++j)if(j in this)l[j]=i.call(h,this[j],j,this);return l;},forEach:function(i,h){this.map(i,h);},filter:e(function(i,h){if(typeof i!='function')throw new TypeError();var j,m,k=this.length,l=[];for(j=0;j<k;++j)if(j in this){m=this[j];if(i.call(h,m,j,this))l.push(m);}return l;}),every:e(function(i,h){if(typeof i!=='function')throw new TypeError();var l=new Object(this);var k=l.length;for(var j=0;j<k;j++)if(j in l)if(!i.call(h,l[j],j,l))return false;return true;}),some:e(function(i,h){if(typeof i!=='function')throw new TypeError();var l=new Object(this);var k=l.length;for(var j=0;j<k;j++)if(j in l)if(i.call(h,l[j],j,l))return true;return false;}),reduce:null,reduceRight:null,sort:e(Array.prototype.sort),reverse:e(Array.prototype.reverse),concat:e(Array.prototype.concat),slice:e(Array.prototype.slice),indexOf:e(Array.prototype.indexOf||function(j,h){var i=this.length;h|=0;if(h<0)h+=i;for(;h<i;h++)if(h in this&&this[h]===j)return h;return -1;}),contains:function(h){return this.indexOf(h)!=-1;},remove:function(i){var h=this.indexOf(i);if(h!=-1)this.splice(h,1);}});Array.prototype.each=Array.prototype.forEach;},3);
__d("Util",[],function(b,d,e,c,a){if(typeof console=='undefined')b.console={log:bagofholding,info:bagofholding,warn:bagofholding,debug:bagofholding,dir:bagofholding,error:bagofholding};c.exports=b.console;});
__d("Arbiter",["array-extensions","ArrayUtils","Util","copyProperties","hasArrayNature"],function(g,j,k,i,f){j("array-extensions");var b=j("ArrayUtils");var c=j("Util");var e=j("copyProperties");var h=j("hasArrayNature");var d=null;function l(m){d=m;}if(!window.async_callback)window.async_callback=function(m,n){return m;};function a(){e(this,{_listeners:[],_events:{},_callbacks:{},_last_id:1,_listen:{},_index:{}});e(this,a);delete this.setErrorHandler;}e(a,{SUBSCRIBE_NEW:'new',SUBSCRIBE_ALL:'all',BEHAVIOR_EVENT:'event',BEHAVIOR_PERSISTENT:'persistent',BEHAVIOR_STATE:'state',LIVEMESSAGE:'livemessage',BOOTLOAD:'bootload',FUNCTION_EXTENSION:'function_ext',setErrorHandler:l,subscribe:function(x,o,s){x=b.createFrom(x);var n=x.some(function(y){return !y||typeof(y)!='string';});if(n)return null;s=s||a.SUBSCRIBE_ALL;var m=a._getInstance(this);m._listeners.push({callback:o,types:x});var u=m._listeners.length-1;for(var q=0;q<x.length;q++){var w=x[q];if(!m._index[w])m._index[w]=[];m._index[w].push(u);if(s==a.SUBSCRIBE_ALL)if(w in m._events)for(var r=0;r<m._events[w].length;r++){var p=m._events[w][r];var t=m._fireCallback(o,w,p);if(t===false){m._events[w].splice(r,1);r--;}}}var v={subscriberID:u};return v;},unsubscribe:function(q){var m=a._getInstance(this);var o=m._listeners[q.subscriberID];if(!o)return;for(var p=0;p<o.types.length;p++){var r=o.types[p];if(m._index[r])for(var n=0;n<m._index[r].length;n++)if(m._index[r][n]==q.subscriberID){m._index[r].splice(n,1);if(m._index[r].length==0)delete m._index[r];break;}}delete m._listeners[q.subscriberID];},inform:function(x,o,n){var y=h(x);x=b.createFrom(x);var m=a._getInstance(this);var u={};n=n||a.BEHAVIOR_EVENT;for(var q=0;q<x.length;q++){var v=x[q],p=null;if(n==a.BEHAVIOR_PERSISTENT){p=m._events.length;if(!(v in m._events))m._events[v]=[];m._events[v].push(o);m._events[v]._stateful=false;}else if(n==a.BEHAVIOR_STATE){p=0;m._events[v]=[o];m._events[v]._stateful=true;}else if(v in m._events)m._events[v]._stateful=false;window.ArbiterMonitor&&ArbiterMonitor.record('event',v,o,m);var t;if(m._index[v]){var w=b.createFrom(m._index[v]);for(var r=0;r<w.length;r++){var s=m._listeners[w[r]];if(s){t=m._fireCallback(s.callback,v,o);if(t===false){if(p!==null)m._events[v].splice(p,1);break;}}}}m._updateCallbacks(v,o);window.ArbiterMonitor&&ArbiterMonitor.record('done',v,o,m);u[v]=t;}return y?u:u[x[0]];},query:function(n){var m=a._getInstance(this);if(!(n in m._events))return null;if(m._events[n].length)return m._events[n][0];return null;},_instance:null,_getInstance:function(m){if(m instanceof a)return m;if(!a._instance)a._instance=new a();return a._instance;},registerCallback:function(n,p){var t,o=0,m=a._getInstance(this),s=false;if(typeof n=='function'){t=m._last_id;m._last_id++;s=true;}else{if(!m._callbacks[n])return null;t=n;}if(h(p)){var u={};for(var r=0;r<p.length;r++)u[p[r]]=1;p=u;}for(var v in p){try{if(m.query(v))continue;}catch(q){}o+=p[v];if(m._listen[v]===undefined)m._listen[v]={};m._listen[v][t]=(m._listen[v][t]||0)+p[v];}if(o==0&&s){m._fireCallback(n);return null;}if(!s){m._callbacks[t].depnum+=o;}else m._callbacks[t]={callback:async_callback(n,'arbiter'),depnum:o};return t;},_updateCallbacks:function(p,o){if(o===null||!this._listen[p])return;for(var n in this._listen[p]){this._listen[p][n]--;if(this._listen[p][n]<=0)delete this._listen[p][n];this._callbacks[n].depnum--;if(this._callbacks[n].depnum<=0){var m=this._callbacks[n].callback;delete this._callbacks[n];this._fireCallback(m);}}},_fireCallback:function(n){var m=Array.prototype.slice.call(arguments,1);if(/nocatch/.test(location.search))return n.apply(null,m);try{return n.apply(null,m);}catch(o){if(d)d(o);}}});i.exports=a;});
__d("mixins",["Arbiter"],function(d,f,g,e,c){var a=f('Arbiter');var b={Arbiter:{_getArbiterInstance:function(){return this._arbiter||(this._arbiter=new a());},inform:function(j,i,h){return this._getArbiterInstance().inform(j,i,h);},subscribe:function(j,h,i){return this._getArbiterInstance().subscribe(j,h,i);},unsubscribe:function(h){this._getArbiterInstance().unsubscribe(h);}}};d.Mixins=e.exports=b;},3);
__d("bind",[],function(c,e,f,d,b){function a(j,i){var g=Array.prototype.slice.call(arguments,2);function h(){var l=j||(this==window?false:this),k=g.concat(Array.prototype.slice.call(arguments));if(typeof(i)=="string"){if(l[i])return l[i].apply(l,k);}else return i.apply(l,k);}h.toString=function(){if(typeof(i)=="string")return "bound lazily: "+j[i];return "bound: "+i;};return h;}d.exports=a;c.bind=a;},3);
__d("function-extensions",["ArrayUtils","mixins","bind","copyProperties"],function(f,h,i,g,e){var a=h('ArrayUtils');var b=h('mixins');var c=h('bind');var d=h('copyProperties');Function.mixin=function(){for(var k=1,j=arguments.length;k<j;++k)d(arguments[0],b[arguments[k]]||arguments[k]);};Function.prototype.bind=function(k){var j=[k,this].concat(Array.prototype.slice.call(arguments,1));return c.apply(null,j);};Function.prototype.curry=Function.prototype.bind.bind(null,null);Function.prototype.shield=function(k){if(typeof this!='function')throw new TypeException();var j=this.bind.apply(this,a.createFrom(arguments));return function(){return j();};};Function.prototype.defer=function(k,j){if(typeof this!='function')throw new TypeError();k=k||0;return setTimeout(this,k,j);};},3);
__d("isEmpty",[],function(b,e,f,d,a){function c(h){if(h instanceof Array){return h.length===0;}else if(h instanceof Object){for(var g in h)return false;return true;}else return !h;}d.exports=c;});
__d("CSSLoader",["function-extensions","Util","isEmpty"],function(p,s,t,r,o){s("function-extensions");var d=s("Util");var q=s("isEmpty");var b=20;var c=5000;var i;var n;var l={};var h=[];var g;var e={};function f(v){var u=Array.prototype.slice(arguments,1);for(var w=0;w<v.length;w++)v[w].apply(null,u);}function m(u){if(n)return;n=true;var v=document.createElement('link');v.onload=function(){i=true;v.parentNode.removeChild(v);};v.rel='stylesheet';v.href='data:text/css;base64,';u.appendChild(v);}function j(){var x;var u=[];var v=[];if(Date.now()>=g){for(x in e){v.push(e[x].signal);u.push(e[x].error);}e={};}else for(x in e){var y=e[x].signal;var z=window.getComputedStyle?getComputedStyle(y,null):y.currentStyle;if(z&&parseInt(z.height,10)>1){u.push(e[x].load);v.push(y);delete e[x];}}for(var w=0;w<v.length;w++)v[w].parentNode.removeChild(v[w]);if(!q(u)){f(u);g=Date.now()+c;}return q(e);}function k(x,v,z,y){var za=document.createElement('meta');za.id='bootloader_'+x.replace(/[^a-z0-9]/ig,'_');v.appendChild(za);var u=!q(e);g=Date.now()+c;e[x]={signal:za,load:z,error:y};if(!u)var w=setInterval(function _pollCSS(){if(j())clearInterval(w);},b,false);}var a={loadStyleSheet:function(x,zb,u,z,y){if(l[x])throw new Error('CSS component '+x+' has already been requested.');if(document.createStyleSheet){var za;for(var v=0;v<h.length;v++)if(h[v].imports.length<31){za=v;break;}if(za===undefined){h.push(document.createStyleSheet());za=h.length-1;}h[za].addImport(zb);l[x]={styleSheet:h[za],uri:zb};k(x,u,z,y);return;}var w=document.createElement('link');w.rel='stylesheet';w.type='text/css';w.href=zb;l[x]={link:w};if(i){w.onload=function(){w.onload=w.onerror=null;z();};w.onerror=function(){w.onload=w.onerror=null;y();};}else{k(x,u,z,y);if(i===undefined)m(u);}u.appendChild(w);},registerLoadedStyleSheet:function(v,u){if(l[v])throw new Error('CSS component '+v+' has already been requested.');l[v]={link:u};},unloadStyleSheet:function(x){if(!x in l)return;var v=l[x];var w=v.link;if(w){w.onload=w.onerror=null;w.parentNode.removeChild(w);}else{var y=v.styleSheet;for(var u=0;u<y.imports.length;u++)if(y.imports[u].href==v.uri){y.removeImport(u);break;}}delete e[x];delete l[x];}};r.exports=a;});
__d("bootloader",["ArrayUtils","Arbiter","CSSLoader","Util","isEmpty"],function(r,u,v,t,q){var b=u('ArrayUtils');var a=u('Arbiter');var d=u('CSSLoader');var e=u('Util');var s=u('isEmpty');var m={};var k={};var g={};var i=null;var n={};var h={};var f=false;var p=[];function l(zb,za,y,x){var w=c.done.curry([y],zb=='css');if(zb=='js'){var z=document.createElement('script');z.src=za;z.type='text/javascript';z.async=true;z.onload=z.onerror=w;z.onreadystatechange=function(){if(this.readyState in {loaded:1,complete:1})w();};x.appendChild(z);}else if(zb=='css')d.loadStyleSheet(y,za,x,w,function(){w();});}function o(w){if(!n[w])return;if(n[w].type=='css'){d.unloadStyleSheet(w);delete m[w];a.inform(a.BOOTLOAD+'/'+w,null,a.BEHAVIOR_STATE);}}function j(y,w){if(!f){p.push([y,w]);return;}y=b.createFrom(y);var zb=[];for(var z=0;z<y.length;++z){if(!y[z])continue;var x=g[y[z]];if(!!x)for(var za=0;za<x.length;++za)zb.push(x[za]);}c.loadResources(zb,w);}var c={configurePage:function(w){var zc={};var zb=c.resolveResources(w);var x;for(x=0;x<zb.length;x++){zc[zb[x].src]=zb[x];c.requested(zb[x].name);}var z=document.getElementsByTagName('link');for(x=0;x<z.length;++x){if(z[x].rel!='stylesheet')continue;for(var y in zc)if(z[x].href.indexOf(y)!==-1){var za=zc[y].name;if(zc[y].permanent)k[za]=true;delete zc[y];d.registerLoadedStyleSheet(za,z[x]);c.done([za],true);break;}}},loadComponents:function(x,w){x=b.createFrom(x);var za=[];for(var y=0;y<x.length;y++){var zb=g[x[y]];if(zb&&!zb.module)continue;var z='legacy:'+x[y];if(g[z]){x[y]=z;}else if(zb&&zb.module)za.push(x[y]);}za.length;j(x,w);},loadResources:function(zf,x,ze,zi){var za;zf=c.resolveResources(b.createFrom(zf));if(ze){var zc={};for(za=0;za<zf.length;++za)zc[zf[za].name]=true;for(var zb in m)if(!(zb in k)&&!(zb in zc)&&!(zb in h))o(zb);h={};}var zj=[];var zd=[];for(za=0;za<zf.length;++za){var zg=zf[za];if(zg.permanent)k[zg.name]=true;var zh=a.BOOTLOAD+'/'+zg.name;if(a.query(zh)!==null)continue;if(!zg.nonblocking)zd.push(zh);if(!m[zg.name]){c.requested(zg.name);zj.push(zg);window.CavalryLogger&&CavalryLogger.getInstance().measureResources(zg,zi);}}if(x)x=a.registerCallback(x,zd);var z=document.documentMode||+(/MSIE.(\d+)/.exec(navigator.userAgent)||[])[1];var y=c.getHardpoint();var w=z?y:document.createDocumentFragment();for(za=0;za<zj.length;++za)l(zj[za].type,zj[za].src,zj[za].name,w);if(y!==w)y.appendChild(w);return x;},requestResource:function(z,y,x){var w=c.getHardpoint();l(z,y,x,w);},done:function(za,x){c.requested(za);if(!x){var z={sender:this};a.inform(a.BOOTLOAD,z,a.BEHAVIOR_EVENT);}for(var w=0;w<za.length;++w){var y=za[w];a.inform(a.BOOTLOAD+'/'+y,true,a.BEHAVIOR_STATE);}},requested:function(x){x=b.createFrom(x);for(var w=0;w<x.length;++w)m[x[w]]=true;},enableBootload:function(x){for(var y in x)if(!g[y])g[y]=x[y];if(!f){f=true;for(var w=0;w<p.length;w++)c.loadComponents.apply(null,p[w]);p=[];}},getHardpoint:function(){if(!i){var w=document.getElementsByTagName('head');i=w.length&&w[0]||document.body;}return i;},setResourceMap:function(x){if(!x)return;for(var w in x){if(!x[w].name)x[w].name=w;n[w]=x[w];}},resolveResources:function(y){if(!y)return [];var x=[];for(var w=0;w<y.length;++w)if(typeof y[w]=='string'){if(y[w] in n)x.push(n[y[w]]);}else x.push(y[w]);return x;},loadEarlyResources:function(y){var w;c.setResourceMap(y);var x=[];for(w in y)x.push(n[w]);c.loadResources(x);for(w in y){var z=n[w];if(!z.permanent)h[z.name]=z;}},isDisplayJS:function(w){if(typeof w=='string')w=n[w];return w.displayjs;}};r.Bootloader=t.exports=c;},3);
__d("Env",["copyProperties"],function(d,f,g,e,c){var b=f("copyProperties");var a={start:Date.now()};if(d.Env){b(a,d.Env);d.Env=undefined;}e.exports=a;});
__d("onload",["Arbiter","copyProperties"],function(l,u,v,m,k){var a=u('Arbiter');var c=a.BEHAVIOR_STATE;var h=function(w){window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp(w);};var b={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 g(){return !window.loading_page_chrome;}function q(w){if(window.loaded&&typeof _runHook!='undefined'){_runHook(w,'onlateloadhooks');}else d('onloadhooks',w);}function n(w){if(window.afterloaded&&typeof _runHook!='undefined'){setTimeout(function(){_runHook(w,'onlateafterloadhooks');},0);}else d('onafterloadhooks',w);}function o(w,x){if(x===undefined)x=g();x?d('onbeforeleavehooks',w):d('onbeforeunloadhooks',w);}function s(w){if(!window.onunload)window.onunload=function(){a.inform(b.ONUNLOAD,true,c);};d('onunloadhooks',w);}function p(w){d('onleavehooks',w);}function d(x,w){window[x]=(window[x]||[]).concat(w);}function t(w){window[w]=[];}function f(){a.inform(b.ONLOAD_DOMCONTENT,true,c);}function e(){var w=document,za=window;if(w.addEventListener){var zb=/AppleWebKit.(\d+)/.exec(navigator.userAgent);if(zb&&zb[1]<525){var z=setInterval(function(){if(/loaded|complete/.test(w.readyState)){f();clearInterval(z);}},10);}else w.addEventListener("DOMContentLoaded",f,true);}else{var y='javascript:void(0)';if(za.location.protocol=='https:')y='//:';w.write('<script onreadystatechange="if (this.readyState==\'complete\') {'+'this.parentNode.removeChild(this);_domcontentready();}" '+'defer="defer" src="'+y+'"><\/script\>');}var x=za.onload;za.onload=function(){h('t_layout');x&&x();a.inform(b.ONLOAD,true,c);};za.onbeforeunload=function(){var zc={};a.inform(b.ONBEFOREUNLOAD,zc,c);if(!zc.warn)a.inform('onload/exit',true);return zc.warn;};}var r=a.registerCallback(function(){h('t_onload');a.inform(b.ONLOAD_CALLBACK,true,c);},[b.ONLOAD]);var j=a.registerCallback(function(){h('t_domcontent');a.inform(b.ONLOAD_DOMCONTENT_CALLBACK,true,c);},[b.ONLOAD_DOMCONTENT]);e();m.exports={Event:b,runOnload:q,runAfterload:n,runOnleave:p,runBeforeUnload:o,runOnUnload:s};var i=u('copyProperties');i(l,{OnloadEvent:b,onloadRegister:q,onafterloadRegister:n,onleaveRegister:p,onbeforeunloadRegister:o,onunloadRegister:s,domcontent_callback:j,onload_callback:r,_domcontentready:f,removeHook:t,_addHook:d});},3);
__d("EagleEye",["Arbiter","bootloader","Env","onload","Util"],function(p,w,x,t,o){var a=w('Arbiter');var c=w('bootloader');var e=w('Env');var f=w('onload');var h=w('Util');var j=e.eagleEyeConfig||{};var za='_e_';var zc=(window.name||'').toString();if(zc.length==7&&zc.substr(0,3)==za){zc=zc.substr(3);}else{zc=j.seed;if(window==window.top)window.name=za+zc;}var y=(window.location.protocol=='https:'&&document.cookie.match(/\bcsm=1/))?'; secure':'';var u=za+zc+'_';var n=new Date(Date.now()+604800000).toGMTString();var l=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1');var m='; expires='+n+';path=/; domain='+l+y;var k=0;var v;var zb=j.sessionStorage&&p.sessionStorage;var r=document.cookie.length;var s=false;var z=Date.now();function q(zg){var zd=2166136261;for(var ze=0,zf=zg.length;ze<zf;++ze)zd=(zd^zg.charCodeAt(ze))*16777619;zd+=zd<<13;zd^=zd>>7;zd+=zd<<3;zd^=zd>>17;zd+=zd<<5;return (zd|0)+2147483648;}function i(zd){return u+(k++)+'='+encodeURIComponent(zd)+m;}function b(){var zd=[];var zg=false;var zf=0;var ze=0;this.isEmpty=function(){return !zd.length;};this.enqueue=function(zi,zh){if(zh){zd.unshift(zi);}else zd.push(zi);};this.dequeue=function(){zd.shift();};this.peek=function(){return zd[0];};this.clear=function(zj){r=Math.min(r,document.cookie.length);if(!s&&(new Date()-z>60000))s=true;var zh=!zj&&(document.cookie.search(za)>=0);var zt=!!e.cookie_header_limit;var zo=e.cookie_count_limit||19;var zp=e.cookie_header_limit||3950;var zm=zo-5;var zn=zp-1000;while(!this.isEmpty()){var zi=i(this.peek());if(zt&&(zi.length>zp||(s&&zi.length+r>zp))){this.dequeue();continue;}if((zh||zt)&&((document.cookie.length+zi.length>zp)||(document.cookie.split(';').length>zo)))break;document.cookie=zi;zh=true;this.dequeue();}var zq=Date.now();if(zj||!zg&&zh&&((ze>0)&&(Math.min(10*Math.pow(2,ze-1),60000)+zf<zq))&&a.query(f.Event.ONLOAD)&&(!this.isEmpty()||(document.cookie.length>zn)||(document.cookie.split(';').length>zm))){var zs=new Image();var zr=this;var zk=e.tracking_domain||'';zg=true;zs.onload=function _EagleEye_logged(){zg=false;ze=0;zr.clear();};zs.onerror=zs.onabort=function _EagleEye_error(){zg=false;zf=Date.now();ze++;};var zl=e.fb_isb?'&fb_isb='+e.fb_isb:'';var zu='&__user='+e.user;zs.src=zk+'/ajax/nectar.php?asyncSignal='+(Math.floor(Math.random()*10000)+1)+zl+zu+'&'+(!zj?'':'s=')+zq;}};}v=new b();if(zb){var g=function(){var zf=0;var zh=zf;function ze(){var zj=sessionStorage.getItem('_e_ids');if(zj){var zi=(zj+'').split(';');if(zi.length==2){zf=parseInt(zi[0],10);zh=parseInt(zi[1],10);}}}function zg(){var zi=zf+';'+zh;sessionStorage.setItem('_e_ids',zi);}function zd(zi){return '_e_'+((zi!==undefined)?zi:zf++);}this.isEmpty=function(){return zh===zf;};this.enqueue=function(zk,zi){var zj=zi?zd(--zh):zd();sessionStorage.setItem(zj,zk);zg();};this.dequeue=function(){this.isEmpty();sessionStorage.removeItem(zd(zh));zh++;zg();};this.peek=function(){var zi=sessionStorage.getItem(zd(zh));return zi?(zi+''):zi;};this.clear=v.clear;ze();};v=new g();}var d={log:function(zg,zd,ze){if(e.no_cookies)return;var zh=[zc,Date.now(),zg].concat(zd);zh.push(zh.length);function zf(){var zj=JSON.stringify(zh);try{v.enqueue(zj,!!ze);v.clear(!!ze);}catch(zi){if(zb&&(zi.code===1000)){v=new b();zb=false;zf();}}}if(p.JSON){zf();}else c.loadComponents('json',zf);},createLogger:function(zf,zd){zd=(zd===undefined)?1:zd;var ze=function(zg,zh){if(ze.enabled)d.log(zf,zg,zh);};ze.enabled=false;ze._key=(e.user||Math.random())+zf;ze.enabled=(q(ze._key)%65535/65535)<=zd;return ze;},getSessionID:function(){return zc;}};p.EagleEye=t.exports=d;},3);
__d("setUECookie",["Env"],function(c,e,f,d,b){var a=e("Env");function g(i){if(!a.no_cookies){var h=0;if(c.afterloaded){h=2;}else if(c.loaded)h=1;document.cookie="act="+encodeURIComponent(i+":"+h)+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}}d.exports=g;});
__d("json",[],function(global,require,requireLazy,module,exports){if(!this.JSON)this.JSON={};(function(){function f(n){return n<10?'0'+n:n;}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function')value=value.toJSON(key);if(typeof rep==='function')value=rep.call(holder,key,value);switch(typeof value){case 'string':return quote(value);case 'number':return isFinite(value)?String(value):'null';case 'boolean':case 'null':return String(value);case 'object':if(!value)return 'null';gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1)partial[i]=str(i,value)||'null';v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v)partial.push(quote(k)+(gap?': ':':')+v);}}}else for(k in value)if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v)partial.push(quote(k)+(gap?': ':':')+v);}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}if(typeof JSON.stringify!=='function')JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1)indent+=' ';}else if(typeof space==='string')indent=space;rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number'))throw new Error('JSON.stringify');return str('',{'':value});};if(typeof JSON.parse!=='function')JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object')for(k in value)if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else delete value[k];}return reviver.call(holder,key,value);}text=String(text);cx.lastIndex=0;if(cx.test(text))text=text.replace(cx,function(a){return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}throw new SyntaxError('JSON.parse');};JSON.stringify=function(old){return function(){var s=old.apply(this,arguments);return s?s.replace(/[%\u2028\u2029]/g,function(m){var s=m.charCodeAt(0).toString(16);return '\\u0000'.substring(0,6-s.length)+s;}):s;};}(JSON.stringify);}());if(!global.JSON)global.JSON=JSON;},3);
__d("collectDataAttributes",["json"],function(c,e,f,d,b){e("json");function a(k,o){var m={};var j={};var n=o.length;var l;for(l=0;l<n;++l){m[o[l]]={};j[o[l]]='data-'+o[l];}while(k){if(k.getAttribute)for(l=0;l<n;++l){var i=k.getAttribute(j[o[l]]);if(i){var h=JSON.parse(i);for(var g in h)if(m[o[l]][g]===undefined)m[o[l]][g]=h[g];}}k=k.parentNode;}return m;}d.exports=a;});
__d("ClickRef",["Arbiter","EagleEye","copyProperties","setUECookie","collectDataAttributes"],function(f,i,j,h,e){var a=i("Arbiter");var b=i("EagleEye");var d=i("copyProperties");var k=i("setUECookie");var c=i("collectDataAttributes");function g(){function n(s){if(!!s){var r={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 q=s;q&&q!=document.body;q=q.parentNode){if(!q.id||typeof q.id!=='string')continue;if(q.id.substr(0,8)=='pagelet_')return q.id.substr(8);if(q.id.substr(0,8)=='box_app_')return q.id;if(r[q.id])return q.id;}}return '-';}function m(q){return (q.getAttribute&&(q.getAttribute('ajaxify')||q.getAttribute('data-endpoint'))||q.action||q.href||q.name);}function o(r){if(!ge('content'))return [0,0,0,0];var q=$('content');var s=window.Vector2?Vector2.getEventPosition(r):{x:0,y:0};return [s.x,s.y,q.offsetLeft,q.clientWidth];}function p(r,q){if(q=='FORCE')return true;if(q=='INDIRECT')return false;return (r&&m(r));}function l(zb,x,event,t){var z=(!window.ArbiterMonitor)?'r':'a',w=[0,0,0,0],za,u,v;if(!!event){za=event.type;if(za=='click'&&ge('content'))w=o(event);var r=0;event.ctrlKey&&(r+=1);event.shiftKey&&(r+=2);event.altKey&&(r+=4);event.metaKey&&(r+=8);if(r)za+=r;}if(!!x)u=m(x);var q=[];if(window.ArbiterMonitor){v=ArbiterMonitor.getInternRef(x);q=ArbiterMonitor.getActFields();}var s=c(x,['ft','gt']);d(s.ft,t.ft||{});d(s.gt,t.gt||{});if(s.gt.ua_id)zb.set_ua_id(s.gt.ua_id);if(typeof(s.ft.ei)==='string')delete s.ft.ei;var y=[zb._ue_ts,zb._ue_count,u||'-',zb._context,za||'-',v||n(x),z,window.URI?URI.getRequestURI(true,true).getUnqualifiedURI().toString():location.pathname+location.search+location.hash,s].concat(w).concat(q);return y;}a.subscribe("UserAction/new",function(s,r){if(p(r.node,r.mode)){var q=l(r.ua,r.node,r.event,r.extra_data);k(r.ua.ue);b.log('act',q);}});}h.exports={init:g};});
__d("legacy:click-ref",["ClickRef"],function(a,b,c){b('ClickRef').init();},3);
__d("legacy:env",["Env"],function(b,c,d){var a=c('Env');b.Env=a;},3);
__d("htmlspecialchars",[],function(b,e,f,d,a){function c(g){if(typeof(g)=='undefined'||g===null||!g.toString)return '';if(g===false){return '0';}else if(g===true)return '1';return g.toString().replace(/&/g,'&amp;').replace(/"/g,'&quot;').replace(/'/g,'&#039;').replace(/</g,'&lt;').replace(/>/g,'&gt;');}d.exports=c;});
__d("dom-core",["htmlspecialchars"],function(d,g,h,f,b){var e=g('htmlspecialchars');var a=function(i){return typeof i=='string'?document.getElementById(i):i;};var c=a;d.ge=b.ge=c;d.$=b.$=a;},3);
__d("css-core",["dom-core"],function(d,f,g,e,c){var a=f('dom-core').$;var b={hasClass:function(i,h){i=a(i);return (' '+i.className+' ').indexOf(' '+h+' ')>-1;},addClass:function(i,h){i=a(i);if(h&&!b.hasClass(i,h))i.className=i.className+' '+h;return i;},removeClass:function(i,h){i=a(i);if(b.hasClass(i,h))i.className=i.className.replace(new RegExp('(^|\\s)'+h+'(?:\\s|$)','g'),'$1').replace(/\s+/g,' ').replace(/^\s*|\s*$/g,'');return i;},toggleClass:function(i,h){return b.conditionClass(i,h,!b.hasClass(i,h));},conditionClass:function(j,i,h){return (h?b.addClass:b.removeClass)(j,i);},show:function(h){b.removeClass(h,'hidden_elem');},hide:function(h){b.addClass(h,'hidden_elem');},conditionShow:function(i,h){b.conditionClass(i,'hidden_elem',!h);}};d.CSS=e.exports=b;},3);
__d("Parent",["css-core"],function(d,f,g,e,c){var a=f("css-core");var b={byTag:function(h,i){i=i.toUpperCase();while(h&&h.nodeName!=i)h=h.parentNode;return h;},byClass:function(i,h){while(i&&!a.hasClass(i,h))i=i.parentNode;return i;},byAttribute:function(i,h){while(i&&(!i.getAttribute||!i.getAttribute(h)))i=i.parentNode;return i;}};e.exports=b;});
__d("legacy:parent",["Parent"],function(a,b,c){a.Parent=b('Parent');},3);
__d("trackReferrer",["Parent"],function(c,e,f,d,b){var a=e("Parent");function g(h,l){h=a.byAttribute(h,'data-referrer');if(h){var k=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/.exec(l)[1]||'';if(!k)return;var j=k+'|'+h.getAttribute('data-referrer');var i=new Date();i.setTime(Date.now()+1000);document.cookie="x-src="+encodeURIComponent(j)+"; "+"expires="+i.toGMTString()+";path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}return h;}d.exports=g;});
__d("legacy:referrer-tracker",["trackReferrer"],function(a,b,c){a.trackReferrer=b('trackReferrer');},3);
__d("UserNoOp",[],function(d,f,g,e,c){var a=function(){};var b=function(){return this;};a.prototype={add_event:b,add_data:b,set_ua_id:b,set_namespace:b};e.exports=a;});
__d("FunctionUtils",[],function(b,e,f,d,a){function c(j,l,h,g){var k;var i=function(){var m=arguments;var n=this;var o=function(){k=null;j.apply(n,m);};h&&i.reset();if(h||!k)k=setTimeout(o,l,g);};i.reset=function(){k&&clearTimeout(k);k=null;};return i;}d.exports={debounce:function(h,i,g){return c(h,i,true,g);},throttle:function(h,i,g){return c(h,i,false,g);}};});
__d("userAction",["function-extensions","Arbiter","EagleEye","FunctionUtils","copyProperties","hasArrayNature"],function(h,n,o,j,g){n("function-extensions");var a=n("Arbiter");var b=n("EagleEye");var c=n("FunctionUtils");var f=n("copyProperties");var i=n("hasArrayNature");function d(u,t,r){var s=u+'/'+t;f(this,{ue:s,_ua_id:null,_ts:u,_ns:null,_start_ts:u,_prev_event:'s',_ue_ts:u,_ue_count:t,_context:r,_data_version:1,_event_version:2,_info_version:1});if(d.enable.report)b.log('uan',[u,t]);this._report=c.debounce(function report(){if(!d.enable.report)return;var v=[this._info_version,this.ue,this._ns,this._ua_id];b.log('uai',v);}.bind(this),100);}var e=[];d.enable=function(s){if(!s)return;if(!i(s))s=[s];for(var r=0;r<s.length;r++)d.enable[s[r]]=true;};f(d.prototype,{set_ua_id:function(r){this._ua_id=r;this._report();return this;},set_namespace:function(r){this._ns=r;this._report();return this;},add_event:function(t,u){if(!d.enable.events)return this;u=u||0;var w=(Date.now()-u);var r=w-this._ts;var v=w-this._ue_ts;var s=[this._event_version,this.ue,this._ns,this._ua_id,this._prev_event,t,r,v];b.log('uae',s);this._ts=w;this._prev_event=t;return this;},add_data:function(r){if(!d.enable.data)return this;var s=[this._data_version,this.ue,r];b.log('uad',s);return this;}});var p=0;var m=0;var l=null;var k=null;function q(r,v,event,u,s){var y=Date.now();var x=y+'/'+p;s=s||{};if(!v&&event)v=event.getTarget();var t=50;if(v&&l)if(y-m<t&&v==l&&u!="FORCE")return e[e.length-1];if(!window.addEventListener&&document.createEventObject)event=document.createEventObject(event);l=v;k=event;var w=new d(y,p,r);e.push(w);while(e.length>10)e.shift();a.inform("UserAction/new",{ua:w,node:v,mode:u,event:event,extra_data:s});m=y;p++;return w;}a.subscribe("UserAction/enable",function(s,r){d.enable(r);});j.exports=q;});
__d("legacy:UserAction",["UserNoOp","userAction"],function(a,b,c){a.UserNoOp=b('UserNoOp');a.user_action=a.user_action||b('userAction');a.report_data=a.report_data||function(d,e){user_action(d,null,null,'FORCE',e);};},3);
!function(){if(window.__primer)return;window.__primer=true;var a=null;var c=/async(?:-post)?|dialog(?:-pipe|-post)?|theater|toggle/;document.documentElement.onclick=function(f){f=f||window.event;a=f.target||f.srcElement;var g=Parent.byTag(a,'A');if(!g)return;var d=g.getAttribute('ajaxify');var h=g.href;var m=d||h;if(m){var l=user_action('a',g,f).set_namespace('primer');if(window.ArbiterMonitor)ArbiterMonitor.initUA(l,[g]);}if(d&&h&&!(/#$/).test(h)){var i=f.which&&f.which!=1;var j=f.altKey||f.ctrlKey||f.metaKey||f.shiftKey;if(i||j)return;}trackReferrer(g,m);var e=['dialog'];var k=g.rel&&g.rel.match(c);k=k&&k[0];switch(k){case 'dialog-pipe':e.push('ajaxpipe');case 'dialog':case 'dialog-post':Bootloader.loadComponents(e,function(){Dialog.bootstrap(m,null,k=='dialog',null,null,g);});break;case 'async':case 'async-post':Bootloader.loadComponents('async',function(){AsyncRequest.bootstrap(m,g);});break;case 'theater':if(window.Env&&Env.snowlift){Bootloader.loadComponents('PhotoSnowlift',function(){PhotoSnowlift.bootstrap(m,g);});}else Bootloader.loadComponents('PhotoSnowbox',function(){PhotoSnowbox.bootstrap(m,g);});break;case 'toggle':CSS.toggleClass(g.parentNode,'openToggler');Bootloader.loadComponents('Toggler',function(){Toggler.bootstrap(g);});break;default:return;}return false;};document.documentElement.onsubmit=function(d){d=d||window.event;var e=d.target||d.srcElement;if(e&&e.nodeName=='FORM'&&e.getAttribute('rel')=='async'){var g=user_action('f',e,d).set_namespace('primer');if(window.ArbiterMonitor)ArbiterMonitor.initUA(g,[e]);var f=a;Bootloader.loadComponents('dom-form',function(){Form.bootstrap(e,f);});return false;}};var b=null;document.documentElement.onmouseover=function(d){d=d||window.event;b=d.target||d.srcElement;var e=Parent.byAttribute(b,'data-hover');if(!e)return;switch(e.getAttribute('data-hover')){case 'tooltip':Bootloader.loadComponents('Tooltip',function(){Tooltip.process(e,b);});break;}};}();
__d("Class",["function-extensions","Arbiter","bind"],function(n,p,q,o,m){p('function-extensions');var a=p('Arbiter');var l=p('bind');var h={};var d=null;var b={extend:function(r,s){if(!d)d=a.subscribe(a.BOOTLOAD,j);if(typeof s=='string'){i(r,s);}else c(r,s);},mixin:function(t,s){var r=Array.prototype.slice.call(arguments);r[0]=r[0].prototype;Function.mixin.apply(Function,r);}};function i(s,t){s.__class_extending=true;var r=a.registerCallback(l(null,c,s,t),[a.FUNCTION_EXTENSION+'/'+t,a.BOOTLOAD]);if(r!==null)h[t]=true;}function j(){for(var r in h)if(!!n[r]){delete h[r];if(!n[r].__class_extending){a.inform(a.FUNCTION_EXTENSION+'/'+r,true,a.BEHAVIOR_STATE);}else n[r].__class_name=r;}}function c(r,t){delete r.__class_extending;t=typeof t=='string'?n[t]:t;var u=g(t,0);var s=g(r,u.prototype.__level+1);s.parent=u;if(!!r.__class_name)a.inform(a.FUNCTION_EXTENSION+'/'+r.__class_name,true,a.BEHAVIOR_STATE);}function g(t,r){if(t._metaprototype)return t._metaprototype;var s=new Function();s.construct=e;s.prototype.construct=k(t,r,true);s.prototype.__level=r;s.base=t;t.prototype.parent=s;t._metaprototype=s;return s;}function e(r){f(r.parent);var u=[];var t=r;while(t.parent){var s=new t.parent();u.push(s);s.__instance=r;t=t.parent;}r.parent=u[1];u.reverse();u.pop();r.__parents=u;r.__instance=r;return r.parent.construct.apply(r.parent,arguments);}function f(u){if(u.initialized)return;var r=u.base.prototype;if(u.parent){f(u.parent);var v=u.parent.prototype;for(var s in v)if(s!='__level'&&s!='construct'&&r[s]===undefined)r[s]=u.prototype[s]=v[s];}u.initialized=true;var t=u.prototype.__level;for(var s in r)if(s!='parent')r[s]=u.prototype[s]=k(r[s],t);}function k(t,s,u){if(typeof t!='function'||t.__prototyped)return t;var r=function(){var x=this.__instance;if(x){var y=x.parent;x.parent=s?x.__parents[s-1]:null;var v=arguments;if(u){v=[];for(var w=1;w<arguments.length;w++)v.push(arguments[w]);}var z=t.apply(x,v);x.parent=y;return z;}else return t.apply(this,arguments);};r.__prototyped=true;return r;}n.Class=o.exports=b;},3);
__d("legacy:arbiter",["Arbiter"],function(a,b,c){a.Arbiter=b('Arbiter');},3);
__d("event-form-bubbling",[],function(b,d,e,c,a){b.Event=b.Event||function(){};Event.__inlineSubmit=function(g,event){var f=Event.__getHandler&&Event.__getHandler(g,'submit');return f?null:Event.__bubbleSubmit(g,event);};Event.__bubbleSubmit=function(f,event){if(document.documentElement.attachEvent){var g;while(g!==false&&(f=f.parentNode))g=f.onsubmit?f.onsubmit(event):Event.__fire&&Event.__fire(f,'submit',event);return g;}};},3);
__d("DataStore",[],function(i,k,l,j,h){var f={};var c={};var g=1;var b=1;function d(m){var n;if(typeof m=='string'){n='str_'+m;}else{n='elem_'+(m.__FB_TOKEN||(m.__FB_TOKEN=[g++]))[0];c[n]=m;}return f[n]||(f[n]={});}function e(m){if(!m.nodeName)return false;try{if(null!=m.offsetParent)return false;}catch(n){}if(document.documentElement.contains){return !document.documentElement.contains(m);}else return (document.documentElement.compareDocumentPosition(m)&b);}var a={set:function(o,n,p){var m=d(o);m[n]=p;return o;},get:function(q,p,o){var n=d(q),r=n[p];if(typeof r==='undefined'&&q.getAttribute){var m=q.getAttribute('data-'+p);r=(null===m)?undefined:m;}if((o!==undefined)&&(r===undefined))r=n[p]=o;return r;},remove:function(o,n){var m=d(o),p=m[n];delete m[n];return p;},cleanup:function(){var n,m;for(n in c){m=c[n];if(e(m)){delete f[n];delete c[n];}}}};j.exports=a;});
__d("string-extensions",[],function(b,d,e,c,a){String.prototype.trim=function(){if(this==window)return null;return this.replace(/^\s*|\s*$/g,'');};a.trim=b.trim=function(g){try{return String(g.toString()).trim();}catch(f){return '';}};String.prototype.startsWith=function(f){if(this==window)return null;return this.substring(0,f.length)==f;};String.prototype.endsWith=function(f){if(this==window)return null;return this.length>=f.length&&this.substring(this.length-f.length)==f;};String.prototype.split=(function(f){return function(m,j){var g="";if(m===null||j===null){return [];}else if(typeof m=='string'){return f.call(this,m,j);}else if(m===undefined){return [this.toString()];}else if(m instanceof RegExp){if(!m._2||!m._1){g=m.toString().replace(/^[\S\s]+\//,"");if(!m._1)if(!m.global){m._1=new RegExp(m.source,"g"+g);}else m._1=1;}separator1=m._1===1?m:m._1;var n=(m._2?m._2:m._2=new RegExp("^"+separator1.source+"$",g));if(j===undefined||j<0){j=false;}else{j=Math.floor(j);if(!j)return [];}var k,l=[],i=0,h=0;while((j?h++<=j:true)&&(k=separator1.exec(this))){if((k[0].length===0)&&(separator1.lastIndex>k.index))separator1.lastIndex--;if(separator1.lastIndex>i){if(k.length>1)k[0].replace(n,function(){for(var o=1;o<arguments.length-2;o++)if(arguments[o]===undefined)k[o]=undefined;});l=l.concat(this.substring(i,k.index),(k.index===this.length?[]:k.slice(1)));i=separator1.lastIndex;}if(k[0].length===0)separator1.lastIndex++;}return (i===this.length)?(separator1.test("")?l:l.concat("")):(j?l:l.concat(this.substring(i)));}else return f.call(this,m,j);};})(String.prototype.split);},3);
__d("ua",[],function(b,d,e,c,a){var f={ie:function(){return f._populate()||this._ie;},ie64:function(){return f.ie()&&this._win64;},firefox:function(){return f._populate()||this._firefox;},opera:function(){return f._populate()||this._opera;},safari:function(){return f._populate()||this._safari;},chrome:function(){return f._populate()||this._chrome;},windows:function(){return f._populate()||this._windows;},osx:function(){return f._populate()||this._osx;},linux:function(){return f._populate()||this._linux;},iphone:function(){return f._populate()||this._iphone;},_populated:false,_populate:function(){if(f._populated)return;f._populated=true;var j=navigator.userAgent;var g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(j);var i=/(Mac OS X)|(Windows)|(Linux)/.exec(j);var h=/\b(iPhone|iP[ao]d)/.exec(j);f._win64=!!(/Win64/.exec(j));if(g){f._ie=g[1]?parseFloat(g[1]):NaN;if(f._ie&&document.documentMode)f._ie=document.documentMode;f._firefox=g[2]?parseFloat(g[2]):NaN;f._opera=g[3]?parseFloat(g[3]):NaN;f._safari=g[4]?parseFloat(g[4]):NaN;if(f._safari){g=/(?:Chrome\/(\d+\.\d+))/.exec(j);f._chrome=g&&g[1]?parseFloat(g[1]):NaN;}else f._chrome=NaN;}else f._ie=f._firefox=f._opera=f._chrome=f._safari=NaN;if(i){if(i[1]){var k=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(j);f._osx=k?parseFloat(k[1].replace('_','.')):true;}else f._osx=false;f._windows=!!i[2];f._linux=!!i[3];}else f._osx=f._windows=f._linux=false;f._iphone=h;}};b.ua=c.exports=f;},3);
__d("evalGlobal",[],function(c,e,f,d,b){function a(i){if('string'!=typeof(i)){throw new Error('JS sent to eval_global is not a string.  Only strings '+'are permitted.');}else if(''==i)return;var j=document.createElement('script');j.type='text/javascript';try{j.appendChild(document.createTextNode(i));}catch(g){j.text=i;}var h=(document.getElementsByTagName("head")[0]||document.documentElement);h.appendChild(j);h.removeChild(j);}d.exports=a;});
__d("HTML",["function-extensions","string-extensions","ArrayUtils","ua","copyProperties","evalGlobal"],function(f,h,i,g,e){h("function-extensions");h("string-extensions");var a=h("ArrayUtils");var j=h("ua");var c=h("copyProperties");var d=h("evalGlobal");function b(k){if(k&&k.__html)k=k.__html;if(!(this instanceof b)){if(k instanceof b)return k;return new b(k);}this._content=k;this._defer=false;this._extra_action='';this._nodes=null;this._inline_js=bagofholding;this._ie_clone_bug=false;return this;}b.isHTML=function(k){return k&&(k instanceof b||k.__html!==undefined);};b.replaceJSONWrapper=function(k){return k&&k.__html!==undefined?new b(k.__html):k;};c(b.prototype,{toString:function(){var k=this._content||'';if(this._extra_action)k+='<script type="text/javascript">'+this._extra_action+'</scr'+'ipt>';return k;},setAction:function(k){this._extra_action=k;return this;},getAction:function(){this._fillCache();var k=function(){this._inline_js();d(this._extra_action);}.bind(this);if(this.getDeferred()){return k.defer.bind(k);}else return k;},setDeferred:function(k){this._defer=!!k;return this;},getDeferred:function(){return this._defer;},getContent:function(){return this._content;},getNodes:function(){this._fillCache();return this._nodes;},getRootNode:function(){return this.getNodes()[0];},ieCloneBug:function(){this._fillCache();return this._ie_clone_bug;},_fillCache:function(){if(null!==this._nodes)return;var n=this._content;if(!n){this._nodes=[];return;}n=n.replace(/(<(\w+)[^>]*?)\/>/g,function(v,w,x){return x.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?v:w+'></'+x+'>';});var r=n.trim().toLowerCase(),u=document.createElement('div'),l=false;var t=(!r.indexOf('<opt')&&[1,'<select multiple="multiple" class="__WRAPPER">','</select>'])||(!r.indexOf('<leg')&&[1,'<fieldset class="__WRAPPER">','</fieldset>'])||(r.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,'<table class="__WRAPPER">','</table>'])||(!r.indexOf('<tr')&&[2,'<table><tbody class="__WRAPPER">','</tbody></table>'])||((!r.indexOf('<td')||!r.indexOf('<th'))&&[3,'<table><tbody><tr class="__WRAPPER">','</tr></tbody></table>'])||(!r.indexOf('<col')&&[2,'<table><tbody></tbody><colgroup class="__WRAPPER">','</colgroup></table>'])||null;if(null===t){u.className='__WRAPPER';if(j.ie()){t=[0,'<span style="display:none">&nbsp;</span>',''];l=true;}else t=[0,'',''];}u.innerHTML=t[1]+n+t[2];while(t[0]--)u=u.lastChild;if(l)u.removeChild(u.firstChild);u.className!='__WRAPPER';if(0!==u.getElementsByTagName('option').length||0!==u.getElementsByTagName('object').length)this._ie_clone_bug=true;if(j.ie()){var s;if(!r.indexOf('<table')&&-1==r.indexOf('<tbody')){s=u.firstChild&&u.firstChild.childNodes;}else if(t[1]=='<table>'&&-1==r.indexOf('<tbody')){s=u.childNodes;}else s=[];for(var p=s.length-1;p>=0;--p)if(s[p].nodeName&&s[p].nodeName.toLowerCase()=='tbody'&&s[p].childNodes.length==0)s[p].parentNode.removeChild(s[p]);}var q=u.getElementsByTagName('script');var k=[];for(var o=0;o<q.length;o++)if(q[o].src){k.push(Bootloader.requestResource.bind(Bootloader,'js',q[o].src));}else k.push(d.bind(null,q[o].innerHTML));for(var o=q.length-1;o>=0;o--)q[o].parentNode.removeChild(q[o]);var m=function(){for(var v=0;v<k.length;v++)k[v]();};this._nodes=a.createFrom(u.childNodes);this._inline_js=m;}});g.exports=b;});
__d("ObjectUtils",["copyProperties","hasArrayNature"],function(d,g,h,f,c){var b=g("copyProperties");var e=g("hasArrayNature");var a={object:function(j){var i=new Function();i.prototype=j;return new i();},isScalar:function(i){return (/string|number|boolean/).test(typeof i);},getKeys:function(k){var j=[];for(var i in k)j.push(i);return j;},getValues:function(j){var k=[];for(var i in j)k.push(j[i]);return k;},countKeys:function(k){var i=0;for(var j in k)i++;return i;},areEqual:function(i,j){return JSON.stringify(i)==JSON.stringify(j);},merge:function(){var j={};for(var i=0;i<arguments.length;i++)b(j,arguments[i]);return j;},coalesce:function(){for(var i=0;i<arguments.length;++i)if(arguments[i]!=null)return arguments[i];return null;},createFrom:function(k,m){var l={};var j=e(m);if(typeof m=='undefined')m=true;for(var i=k.length;i--;)l[k[i]]=j?m[i]:m;return l;}};f.exports=a;});
__d("Intl",[],function(c,f,g,d,b){function a(h){if(typeof h!='string')return false;return h.match(new RegExp(a.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'+']*$'));}a.punct_char_class='['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']';function e(n){var l,k=n,m=window.intl_locale_rewrites,i,j;try{if(m){var pats=[],reps=[];for(var p in m.patterns){var pat=p,rep=m.patterns[p];for(i in m.meta){l=new RegExp(i.slice(1,-1),'g');pat=pat.replace(l,m.meta[i]);rep=rep.replace(l,m.meta[i]);}pats[pats.length]=pat;reps[reps.length]=rep;}for(var ii=0;ii<pats.length;ii++){l=new RegExp(pats[ii].slice(1,-1),'g');if(reps[ii]=='javascript'){j=n.match(l);i=j&&j[0];if(i)n=n.replace(l,i.slice(1).toLowerCase());}else n=n.replace(l,reps[ii]);}}}catch(h){n=k;}l=new RegExp('\x01','g');n=n.replace(l,'');return n;}d.exports={endsInPunct:a,phonologicalRules:e};});
__d("_tx",["Intl"],function(d,f,g,e,c){var a=f('Intl');function b(l,h){if(!h)return l;var k;for(var j in h){if(a.endsInPunct(h[j])){k=new RegExp('\\{'+j+'\\}'+a.endsInPunct.punct_char_class+'*','g');}else k=new RegExp('\\{'+j+'\\}','g');var i='\x01';l=l.replace(k,i+h[j]+i);}l=a.phonologicalRules(l);return l;}e.exports=b;});
__d("tx",["_tx"],function(c,e,f,d,b){var a=e('_tx');function g(i,h){if(typeof _string_table=='undefined')return;i=_string_table[i];return a(i,h);}d.exports=g;});
__d("dom",["ArrayUtils","css-core","HTML","ObjectUtils","dom-core","copyProperties","ua","tx","_tx"],function(m,o,p,n,k){var c=o('ArrayUtils');var d=o('css-core');var f=o('HTML');var g=o('ObjectUtils');var a=o('dom-core').$;var j=o('copyProperties');var l=o('dom-core').ge;var r=o('ua');var q=o('tx');var h=o('_tx');function i(s){function t(u){return e.create('div',{},u).innerHTML;}return function(x,u){var v={};if(u)for(var w in u)v[w]=t(u[w]);return f(s(x,v));};}var e={find:function(s,u){var t=e.scry(s,u);return t[0];},scry:function(zb,zn){if(!zb||!zb.getElementsByTagName)return [];var zo=zn.split(' ');var v=[zb];var za=!!zb.documentElement;for(var ze=0;ze<zo.length;ze++){if(v.length==0)break;if(zo[ze]=='')continue;var zm=zo[ze];var zk=[];var zv=false;if(zm.charAt(0)=='^')if(ze==0){zv=true;zm=zm.slice(1);}else return [];zm=zm.replace(/\./g,' .');zm=zm.replace(/\#/g,' #');zm=zm.replace(/\[/g,' [');var zr=zm.split(' ');var zs=zr[0]||'*';var zf=zr[1]&&zr[1].charAt(0)=='#';if(zf){var z=l(zr[1].slice(1),true);if(z&&('*'==zs||z.tagName.toLowerCase()==zs))for(var zi=0;zi<v.length;zi++)if(zv&&e.contains(z,v[zi])){zk=[z];break;}else if(document==v[zi]||e.contains(v[zi],z)){zk=[z];break;}}else{var zu=[];var u=v.length;for(var zg=0;zg<u;zg++){if(zv){var zc=[];var y=v[zg].parentNode;var s=zs=='*';while(e.isElementNode(y)){if(s||y.tagName.toLowerCase()==zs)zc.push(y);y=y.parentNode;}}else var zc=v[zg].getElementsByTagName(zs);var zd=zc.length;for(var zj=0;zj<zd;zj++)zu.push(zc[zj]);}for(var zp=1;zp<zr.length;zp++){var zq=zr[zp];var zh=zq.charAt(0)=='.';var w=zq.substring(1);for(var zg=0;zg<zu.length;zg++){var zt=zu[zg];if(!zt)continue;if(zh){if(!d.hasClass(zt,w))delete zu[zg];continue;}else{var x=zq.slice(1,zq.length-1);if(x.indexOf('=')==-1){if(zt.getAttribute(x)===null){delete zu[zg];continue;}}else{var zl=x.split('=');var t=zl[0];var zw=zl[1];zw=zw.slice(1,zw.length-1);if(zt.getAttribute(t)!=zw){delete zu[zg];continue;}}}}}for(var zg=0;zg<zu.length;zg++)if(zu[zg]){zk.push(zu[zg]);if(zv)break;}}v=zk;}return v;},getText:(function(){var s=document.createElement('div'),t=s.textContent!=null?'textContent':'innerText';return function(u){if(!u){return '';}else if(e.isTextNode(u)){return u.data;}else return u[t];};})(),getSelection:function(){var t=window.getSelection,s=document.selection;if(t){return t()+'';}else if(s)return s.createRange().text;return null;},create:function(u,s,t){u=document.createElement(u);if(s){s=j({},s);if(s.style){j(u.style,s.style);delete s.style;}for(var v in s)if(v.toLowerCase().indexOf('on')==0){if(!(typeof s[v]!='function'))if(window.Event&&Event.listen){Event.listen(u,v.substr(2),s[v]);}else u[v]=s[v];delete s[v];}j(u,s);}if(t!=undefined)e.setContent(u,t);return u;},prependContent:function(u,t){if(!e.isNode(u))throw new Error('DOM.prependContent: reference element is not a node');var s=function(v){if(u.firstChild){u.insertBefore(v,u.firstChild);}else u.appendChild(v);};return e._addContent(t,s,u);},insertAfter:function(u,t){if(!e.isNode(u)||!u.parentNode)throw new Error('DOM.insertAfter: reference element is not a node');var s=function(v){if(u.nextSibling){u.parentNode.insertBefore(v,u.nextSibling);}else u.parentNode.appendChild(v);};return e._addContent(t,s,u.parentNode);},insertBefore:function(t,u){if(!e.isNode(u)||!u.parentNode)throw new Error('DOM.insertBefore: reference element is not a node or '+'does not have a parent.');var s=function(v){u.parentNode.insertBefore(v,u);};return e._addContent(t,s,u.parentNode);},setContent:function(t,s){if(!e.isNode(t))throw new Error('DOM.setContent: reference element is not a node');e.empty(t);return e.appendContent(t,s);},appendContent:function(u,t){if(!e.isNode(u))throw new Error('DOM.appendContent: reference element is not a node');var s=function(v){u.appendChild(v);};return e._addContent(t,s,u);},replace:function(u,t){if(!e.isNode(u)||!u.parentNode)throw new Error('DOM.replace: reference element must be a node with a'+' parent');var s=function(v){u.parentNode.replaceChild(v,u);};return e._addContent(t,s,u.parentNode);},remove:function(s){s=a(s);if(s.parentNode)s.parentNode.removeChild(s);},empty:function(s){s=a(s);while(s.firstChild)e.remove(s.firstChild);},contains:function(t,s){t=l(t);s=l(s);if(!t||!s){return false;}else if(t===s){return true;}else if(e.isTextNode(t)){return false;}else if(e.isTextNode(s)){return e.contains(t,s.parentNode);}else if(t.contains){return t.contains(s);}else if(t.compareDocumentPosition){return !!(t.compareDocumentPosition(s)&16);}else return false;},getRootElement:function(){var s=null;if(window.Quickling&&Quickling.isActive())s=l('content');return s||document.body;},isNode:function(s){return !!(s&&(typeof Node=='object'?s instanceof Node:typeof s=="object"&&typeof s.nodeType=='number'&&typeof s.nodeName=='string'));},isNodeOfType:function(t,u){var v=c.createFrom(u).join('|').toUpperCase().split('|');var s=g.createFrom(v);return e.isNode(t)&&t.nodeName in s;},isElementNode:function(s){return e.isNode(s)&&s.nodeType==1;},isTextNode:function(s){return e.isNode(s)&&s.nodeType==3;},_addContent:function(v,s,ze){v=f.replaceJSONWrapper(v);if(v instanceof f&&-1==v.toString().indexOf('<scr'+'ipt')&&''==ze.innerHTML){var y=r.ie();if(!y||(y>7&&!e.isNodeOfType(ze,['table','tbody','thead','tfoot','tr','select','fieldset']))){var z=y?"<em style=\"display:none;\">&nbsp;</em>":"";ze.innerHTML=z+v;y&&ze.removeChild(ze.firstChild);return c.createFrom(ze.childNodes);}}else if(e.isTextNode(ze)){ze.data=v;return [v];}var zb,w=[],t=[];var x=document.createDocumentFragment();if(!(v instanceof Array))v=[v];for(var za=0;za<v.length;za++){zb=f.replaceJSONWrapper(v[za]);if(zb instanceof f){t.push(zb.getAction());var zd=zb.getNodes(),u;for(var zc=0;zc<zd.length;zc++){u=(r.safari()||(r.ie()&&zb.ieCloneBug()))?zd[zc]:zd[zc].cloneNode(true);w.push(u);x.appendChild(u);}}else if(g.isScalar(zb)){var zf=document.createTextNode(zb);w.push(zf);x.appendChild(zf);}else if(e.isNode(zb)){w.push(zb);x.appendChild(zb);}else if(!(zb instanceof Array))zb!==null;}s(x);for(var za=0;za<t.length;za++)t[za]();return w;},getDocumentScrollElement:function(s){s=s||document;if(d.hasClass(s.documentElement,'wrapped')){var t=s.getElementById('body');if(t)return t;}return !(r.chrome()||r.safari())&&s.compatMode==='CSS1Compat'?s.documentElement:s.body;},getDocumentBodyElement:function(s){s=s||document;if(d.hasClass(s.documentElement,'wrapped')){var t=s.getElementById('body');if(t)return t;}return s.body;},tx:i(q),_tx:i(h)};function b(u,s,t){if(typeof s!='object'||e.isNode(s)||s instanceof Array||f.isHTML(s)){t=s;s=null;}return e.create(u,s,t);}m.$N=e.$N=b;m.DOM=n.exports=e;},3);
__d("SystemEvents",["Arbiter","Env","ua","Util","copyProperties"],function(s,w,x,u,r){var a=w('Arbiter');var c=w('Env');var z=w('ua');var e=w('Util');var q=w('copyProperties');var d=new a();var g=[],b=1000;setInterval(function(){for(var za=0;za<g.length;za++)g[za]();},b,false);function i(){return (/c_user=(\d+)/.test(document.cookie)&&RegExp.$1)||0;}var m=c.user;var l=navigator.onLine;g.push(function(){var za=navigator.onLine;if(l!=za){d.inform(d.ONLINE,za);l=za;}});var p=m;g.push(function(){var za=i();if(p!=za){d.inform(d.USER,za);p=za;}});var n=Date.now();function f(){var zc=Date.now();var za=zc-n;var zb=za<0||za>10000;n=zc;if(zb)d.inform(d.TIME_TRAVEL,za);return zb;}g.push(f);function v(za){var zb=za?{line:za.lineNumber||za.line,message:za.message,name:za.name,script:za.fileName||za.sourceURL,stack:za.stackTrace||za.stack}:{};if(z.chrome()&&za.stack&&/(\w{3,5}:\/\/[^:]+):(\d+)/.test(za.stack)){zb.script=RegExp.$1;zb.line=parseInt(RegExp.$2,10);}for(var zc in zb)if(zb[zc]==null)delete zb[zc];return zb;}var h=null;var o=false;function y(zb,za){if(z.ie())return zb;if(/nocatch/.test(location.search))return zb;return function(){if(o)return zb.apply(this,arguments);try{o=true;var res=zb.apply(this,arguments);o=false;return res;}catch(zc){o=false;h=d.normalizeError(zc);if(za)za(h);throw zc;}};}function t(za){if(za instanceof Error)za=v(za);d.inform(d.ERROR,za);}function j(zc,zd,zb){var za=h||{message:zc,script:zd,line:zb};h=null;za.script=za.script||zd;za.line=za.line||zb;t(za);}function k(){window.onerror=j;}a.setErrorHandler(d.informError);k();g.push(k);s.SystemEvents=u.exports=q(d,{USER:'SystemEvents/USER',ONLINE:'SystemEvents/ONLINE',TIME_TRAVEL:'SystemEvents/TIME_TRAVEL',ERROR:'SystemEvents/ERROR',trapError:y,normalizeError:v,informError:t,isPageOwner:function(za){return za||i()==m;},checkTimeTravel:f});},3);
__d("event-extensions",["event-form-bubbling","DataStore","dom","ObjectUtils","Parent","SystemEvents","ua","dom-core","copyProperties","userAction"],function(m,s,t,q,l){s('event-form-bubbling');var e=s('DataStore');var d=s('dom');var g=s('ObjectUtils');var h=s('Parent');var i=s('SystemEvents');var v=s('ua');var a=s('dom-core').$;var k=s('copyProperties');var w=s('userAction');Event.DATASTORE_KEY='Event.listeners';if(!Event.prototype)Event.prototype={};function c(y,z,x){this.target=y;this.type=z;this.data=x;}c.prototype={getData:function(){this.data=this.data||{};return this.data;},stop:function(){this.cancelBubble=true;this.stopPropagation&&this.stopPropagation();return this;},prevent:function(){this.returnValue=false;this.preventDefault&&this.preventDefault();return this;},kill:function(){this.stop().prevent();return false;},getTarget:function(){var x=this.target||this.srcElement;return x?a(x):null;}};function b(x){if(x instanceof c)return x;x=x||window.event||{};if(!x._inherits_from_prototype)for(var z in Event.prototype)try{x[z]=Event.prototype[z];}catch(y){}return x;}k(Event.prototype,{_inherits_from_prototype:true,getRelatedTarget:function(){var x=this.relatedTarget||(this.fromElement===this.srcElement?this.toElement:this.fromElement);return x?a(x):null;},getModifiers:function(){var x={control:!!this.ctrlKey,shift:!!this.shiftKey,alt:!!this.altKey,meta:!!this.metaKey};x.access=v.osx()?x.control:x.alt;x.any=x.control||x.shift||x.alt||x.meta;return x;}});k(Event.prototype,c.prototype);k(Event,{listen:function(y,zi,za,ze){if(typeof y=='string')y=a(y);if(typeof ze=='undefined')ze=Event.Priority.NORMAL;if(typeof zi=='object'){var z={};for(var zh in zi)z[zh]=Event.listen(y,zh,zi[zh],ze);return z;}if(zi.match(/^on/i))throw new TypeError("Bad event name `"+event+"': use `click', not `onclick'.");if(y.nodeName=='LABEL'&&zi=='click'){var zd=y.getElementsByTagName('input');y=zd.length==1?zd[0]:y;}else if(y===window&&zi==='scroll'){var zg=d.getDocumentScrollElement();if(zg!==document.documentElement&&zg!==document.body)y=zg;}var zb=e.get(y,n,{});if(u[zi]){var x=u[zi];zi=x.base;za=x.wrap(za);}j(y,zi);var zj=zb[zi];if(!(ze in zj))zj[ze]=[];var zc=zj[ze].length,zf=new f(za,zj[ze],zc);zj[ze].push(zf);return zf;},stop:function(x){return b(x).stop();},prevent:function(x){return b(x).prevent();},kill:function(x){return b(x).kill();},getKeyCode:function(event){event=b(event);if(!event)return false;switch(event.keyCode){case 63232:return 38;case 63233:return 40;case 63234:return 37;case 63235:return 39;case 63272:case 63273:case 63275:return null;case 63276:return 33;case 63277:return 34;}if(event.shiftKey)switch(event.keyCode){case 33:case 34:case 37:case 38:case 39:case 40:return null;}return event.keyCode;},getPriorities:function(){if(!r){var x=g.getValues(Event.Priority);x.sort(function(y,z){return y-z;});r=x;}return r;},fire:function(za,zc,x){var y=new c(za,zc,x);var zb;do{var z=Event.__getHandler(za,zc);if(z)zb=z(y);za=za.parentNode;}while(za&&zb!==false&&!y.cancelBubble);return zb!==false;},__fire:function(x,z,event){var y=Event.__getHandler(x,z);if(y)return y(b(event));},__getHandler:function(x,y){return e.get(x,Event.DATASTORE_KEY+y);}});var r=null,n=Event.DATASTORE_KEY;var o=function(x){return function(y){if(!d.contains(this,y.getRelatedTarget()))return x.call(this,y);};};var u={mouseenter:{base:'mouseover',wrap:o},mouseleave:{base:'mouseout',wrap:o}};var j=function(x,zd){var y='on'+zd;var zb=p.bind(x);var za=e.get(x,n);if(zd in za)return;za[zd]={};if(x.addEventListener){x.addEventListener(zd,zb,false);}else if(x.attachEvent)x.attachEvent(y,zb);e.set(x,n+zd,zb);if(x[y]){var zc=x===document.documentElement?Event.Priority._BUBBLE:Event.Priority.TRADITIONAL;var z=x[y];x[y]=null;Event.listen(x,zd,z,zc);}if(x.nodeName==='FORM'&&zd==='submit')Event.listen(x,zd,Event.__bubbleSubmit.curry(x),Event.Priority._BUBBLE);};var p=function(event){event=b(event);var ze=event.type;if(!e.get(this,n))throw new Error("Bad listenHandler context.");var zf=e.get(this,n)[ze];if(!zf)throw new Error("No registered handlers for `"+ze+"'.");if(ze=='click'){var z=h.byTag(event.getTarget(),'a');var zg=w('click',z,event).set_namespace('evt_ext');if(window.ArbiterMonitor)ArbiterMonitor.initUA(zg,[z]);}var zb=Event.getPriorities();for(var za=0;za<zb.length;za++){var zc=zb[za];if(zc in zf){var x=zf[zc];for(var y=0;y<x.length;y++){if(!x[y])continue;var zd=x[y].fire(this,event);if(zd===false){return event.kill();}else if(event.cancelBubble)event.stop();}}}return event.returnValue;};Event.Priority={URGENT:-20,TRADITIONAL:-10,NORMAL:0,_BUBBLE:1000};function f(y,x,z){this._handler=y;this._container=x;this._index=z;}f.prototype={remove:function(){delete this._handler;delete this._container[this._index];},fire:function(x,event){var y=i.trapError(this._handler,function(z){z.event_type=event.type;z.dom_element=x.name||x.id;z.category='eventhandler';});return y.call(x,event);}};m.$E=l.$E=b;});
__d("css",["dom","css-core","copyProperties"],function(e,g,h,f,d){var b=g('dom');var a=g('css-core');var c=g('copyProperties');c(a,{shown:function(i){return !a.hasClass(i,'hidden_elem');},toggle:function(i){a.conditionShow(i,!a.shown(i));},setClass:function(j,i){$(j).className=i||'';return j;},setStyle:function(i,j,k){switch(j){case 'opacity':i.style.opacity=k;i.style.filter=k!==''?'alpha(opacity='+k*100+')':'';break;case 'float':i.style.cssFloat=i.style.styleFloat=k;break;default:j=j.replace(/-(.)/g,function(l,m){return m.toUpperCase();});i.style[j]=k;}return i;},getStyle:function(j,l){j=$(j);l=l.replace(/-(.)/g,function(m,n){return n.toUpperCase();});function k(m){return m.replace(/([A-Z])/g,'-$1').toLowerCase();}if(window.getComputedStyle){var i=window.getComputedStyle(j,null);if(i)return i.getPropertyValue(k(l));}if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(j,null);if(i)return i.getPropertyValue(k(l));if(l=="display")return "none";}if(j.currentStyle)return j.currentStyle[l];return j.style&&j.style[l];},getStyleFloat:function(i,j){return parseFloat(a.getStyle(i,j),10);},getOpacity:function(i){i=$(i);var j=a.getStyle(i,'filter');var k=null;if(j&&(k=/(\d+(?:\.\d+)?)/.exec(j))){return parseFloat(k.pop())/100;}else if(j=a.getStyle(i,'opacity')){return parseFloat(j);}else return 1;},isFixed:function(i){while(i&&i!==document.documentElement){if(a.getStyle(i,'position')==='fixed')return true;i=i.parentNode;}return false;},getScrollParent:(function(){function i(j,l){var k=a.getStyle(j,l);return (k==='auto'||k==='scroll');}return function(j){if(!j)return null;while(j!==document.body){if(i(j,'overflow')||i(j,'overflowY')||i(j,'overflowX'))return j;j=j.parentNode;}return window;};})()});f.exports=a;},3);
__d("AsyncDOM",["css","dom","onload"],function(f,h,i,g,e){var b=h("css");var c=h("dom");var d=h("onload");var a={invoke:function(o,q){for(var m=0;m<o.length;++m){var n=o[m];var j=n[0];var r=n[1];var p=n[2];var k=n[3];var l=(p&&q)||null;if(r)l=c.scry(l||document.documentElement,r)[0];switch(j){case 'eval':(new Function(k)).apply(l);break;case 'hide':b.hide(l);break;case 'show':b.show(l);break;case 'setContent':c.setContent(l,k);break;case 'appendContent':c.appendContent(l,k);break;case 'prependContent':c.prependContent(l,k);break;case 'insertAfter':c.insertAfter(l,k);break;case 'insertBefore':c.insertBefore(k,l);break;case 'remove':c.remove(l);break;case 'replace':c.replace(l,k);break;default:}}}};g.exports=a;});
__d("AsyncResponse",["Env","copyProperties","tx"],function(e,g,h,f,d){var b=g("Env");var c=g("copyProperties");e.tx=g("tx");function a(j,i){c(this,{error:0,errorSummary:null,errorDescription:null,onload:null,replay:false,payload:i||null,request:j||null,silentError:false,is_last:true});return this;}c(a,{defaultErrorHandler:function(j){try{if(!j.silentError){a.verboseErrorHandler(j);}else j.logErrorByGroup('silent',10);}catch(i){alert(j);}},verboseErrorHandler:function(j){try{var summary=j.getErrorSummary();var desc=j.getErrorDescription();j.logErrorByGroup('popup',10);if(j.silentError&&desc=='')desc="Wyst\u0105pi\u0142 problem na stronie serwisu. Trwaj\u0105 prace nad jak najszybszym usuni\u0119ciem tej usterki. Spr\u00f3buj ponownie.";Bootloader.loadComponents('dialog',function(){new Dialog().setTitle(summary).setBody(desc).setButtons([Dialog.OK]).setModal(true).setCausalElement(this.relativeTo).show();});}catch(i){alert(j);}}});c(a.prototype,{getRequest:function(){return this.request;},getPayload:function(){return this.payload;},getError:function(){return this.error;},getErrorSummary:function(){return this.errorSummary;},setErrorSummary:function(i){i=(i===undefined?null:i);this.errorSummary=i;return this;},getErrorDescription:function(){return this.errorDescription;},getErrorIsWarning:function(){return this.errorIsWarning;},logError:function(i,k){if(window.send_error_signal){var j={err_code:this.error,vip:(b.vip||'-')};if(k!==undefined){j.duration=k.duration;j.xfb_ip=k.xfb_ip;}var l=this.request.getURI();j.path=l||'-';j.aid=this.request.userActionID;if(l&&l.indexOf('scribe_endpoint.php')!=-1)i='async_error_double';send_error_signal(i,JSON.stringify(j));}},logErrorByGroup:function(j,i){if(Math.floor(Math.random()*i)==0)if(this.error==1357010||this.error<15000){this.logError('async_error_oops_'+j);}else this.logError('async_error_logic_'+j);}});f.exports=a;});
__d("Cookie",["Env"],function(d,f,g,e,c){var b=f("Env");var a={set:function(h,i,k,l,m){if(b.no_cookies&&h!='tpa')return;var j;if(k){var n=new Date();j=new Date();j.setTime(n.getTime()+k);}document.cookie=h+"="+encodeURIComponent(i)+"; "+(k?"expires="+j.toGMTString()+"; ":"")+"path="+(l||'/')+"; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1')+(m?"; secure":"");},clear:function(h){document.cookie=h+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; "+"path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');},get:function(k){var l=k+"=";var i=document.cookie.split(';');for(var j=0;j<i.length;j++){var h=i[j];while(h.charAt(0)==' ')h=h.substring(1,h.length);if(h.indexOf(l)===0)return decodeURIComponent(h.substring(l.length,h.length));}return null;}};e.exports=a;});
__d("JSCC",["array-extensions","Util","isEmpty"],function(f,k,l,j,d){k("array-extensions");var b=k("Util");var h=k("isEmpty");var e={};var i={};function c(n){var o;var m=false;return function(){if(!m){o=n();m=true;}return o;};}function g(m,o){if(h(m))return;for(var n in m){e[n]=c(m[n]);if(o){if(!i[o])i[o]=[];i[o].push(n);}}}var a={get:function(m){!e[m];return e[m]();},init:function(m){g(m);},initForPagelet:function(n,m){g(m,n);},clearForPagelet:function(o){if(i[o]){for(var m=0;m<i[o].length;m++){var n=i[o][m];delete e[n];}delete i[o];}}};j.exports=a;});
__d("URI",["copyProperties"],function(d,f,g,e,c){var b=f("copyProperties");function a(h){if(!(this instanceof a))return new a(h||window.location.href);this.parse(h||'');}b(a,{getRequestURI:function(h,i){h=h===undefined||h;if(h&&window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getCurrentURI(!!i).getQualifiedURI();}else return new a(window.location.href);},getMostRecentURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getMostRecentURI().getQualifiedURI();}else return new a(window.location.href);},getNextURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getNextURI().getQualifiedURI();}else return new a(window.location.href);},expression:/(((\w+):\/\/)([^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/,arrayQueryExpression:/^(\w+)((?:\[\w*\])+)=?(.*)/,explodeQuery:function(n){if(!n)return {};var o={};n=n.replace(/%5B/ig,'[').replace(/%5D/ig,']');n=n.split('&');for(var i=0,k=n.length;i<k;i++){var l=n[i].match(a.arrayQueryExpression);if(!l){var q=n[i].split('=');o[a.decodeComponent(q[0])]=q[1]===undefined?null:a.decodeComponent(q[1]);}else{var j=l[2].split(/\]\[|\[|\]/).slice(0,-1);var m=l[1];var r=a.decodeComponent(l[3]||'');j[0]=m;var p=o;for(var h=0;h<j.length-1;h++)if(j[h]){if(p[j[h]]===undefined)if(j[h+1]&&!j[h+1].match(/^\d+$/)){p[j[h]]={};}else p[j[h]]=[];p=p[j[h]];}else{if(j[h+1]&&!j[h+1].match(/^\d+$/)){p.push({});}else p.push([]);p=p[p.length-1];}if(p instanceof Array&&j[j.length-1]===''){p.push(r);}else p[j[j.length-1]]=r;}}return o;},implodeQuery:function(m,l,h){l=l||'';if(h===undefined)h=true;var n=[];if(m===null||m===undefined){n.push(h?a.encodeComponent(l):l);}else if(m instanceof Array){for(var j=0;j<m.length;++j)try{if(m[j]!==undefined)n.push(a.implodeQuery(m[j],l?(l+'['+j+']'):j));}catch(i){}}else if(typeof(m)=='object'){if(('nodeName' in m)&&('nodeType' in m)){n.push('{node}');}else for(var k in m)try{if(m[k]!==undefined)n.push(a.implodeQuery(m[k],l?(l+'['+k+']'):k));}catch(i){}}else if(h){n.push(a.encodeComponent(l)+'='+a.encodeComponent(m));}else n.push(l+'='+m);return n.join('&');},encodeComponent:function(k){var j=String(k).split(/([\[\]])/);for(var h=0,i=j.length;h<i;h+=2)j[h]=encodeURIComponent(j[h]);return j.join('');},decodeComponent:function(h){return decodeURIComponent(h.replace(/\+/g,' '));},INVALID_DOMAIN:'invalid.invalid',sanitizeDomain:function(h){var i=new RegExp('[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f'+'\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF'+'\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]');if(i.test(h)){return a.INVALID_DOMAIN;}else return h;}});b(a.prototype,{parse:function(i){var h=i.toString().match(a.expression);b(this,{protocol:h[3]||'',domain:a.sanitizeDomain(h[4]||''),port:h[6]||'',path:h[7]||'',query_s:h[9]||'',fragment:h[11]||''});return this;},setProtocol:function(h){this.protocol=h;return this;},getProtocol:function(){return this.protocol;},setQueryData:function(h){this.query_s=a.implodeQuery(h);return this;},addQueryData:function(h){return this.setQueryData(b(this.getQueryData(),h));},removeQueryData:function(i){if(!(i instanceof Array))i=[i];var k=this.getQueryData();for(var h=0,j=i.length;h<j;++h)delete k[i[h]];return this.setQueryData(k);},getQueryData:function(){return a.explodeQuery(this.query_s);},setFragment:function(h){this.fragment=h;return this;},getFragment:function(){return this.fragment;},setDomain:function(h){this.domain=a.sanitizeDomain(h);return this;},getDomain:function(){return this.domain;},setPort:function(h){this.port=h;return this;},getPort:function(){return this.port;},setPath:function(h){this.path=h;return this;},getPath:function(){return this.path.replace(/^\/+/,'/');},isEmpty:function(){return !(this.path||this.protocol||this.domain||this.port||this.query_s||this.fragment);},toString:function(){var h='';this.protocol&&(h+=this.protocol+'://');this.domain&&(h+=this.domain);this.port&&(h+=':'+this.port);if(this.domain&&!this.path)h+='/';this.path&&(h+=this.path);this.query_s&&(h+='?'+this.query_s);this.fragment&&(h+='#'+this.fragment);return h;},valueOf:function(){return this.toString();},isFacebookURI:function(){if(!a._facebookURIRegex)a._facebookURIRegex=new RegExp('(^|\\.)facebook\\.com([^.]*)$','i');return (!this.domain||a._facebookURIRegex.test(this.domain));},isQuicklingEnabled:function(){return window.Quickling&&Quickling.isActive()&&Quickling.isPageActive(this);},getRegisteredDomain:function(){if(!this.domain)return '';if(!this.isFacebookURI())return null;var i=this.domain.split('.');var h=i.indexOf('facebook');return i.slice(h).join('.');},getUnqualifiedURI:function(){return new a(this).setProtocol(null).setDomain(null).setPort(null);},getQualifiedURI:function(){var i=new a(this);if(!i.getDomain()){var h=a();i.setProtocol(h.getProtocol()).setDomain(h.getDomain()).setPort(h.getPort());}return i;},isSameOrigin:function(h){var i=h||window.location.href;if(!(i instanceof a))i=new a(i.toString());if(this.getProtocol()&&this.getProtocol()!=i.getProtocol())return false;if(this.getDomain()&&this.getDomain()!=i.getDomain())return false;return true;},go:function(h){goURI(this,h);},setSubdomain:function(i){var j=new a(this).getQualifiedURI();var h=j.getDomain().split('.');if(h.length<=2){h.unshift(i);}else h[0]=i;return j.setDomain(h.join('.'));},getSubdomain:function(){if(!this.getDomain())return '';var h=this.getDomain().split('.');if(h.length<=2){return '';}else return h[0];},setSecure:function(h){return this.setProtocol(h?'https':'http');},isSecure:function(){return this.getProtocol()=='https';}});e.exports=a;});
__d("goURI",[],function(b,e,f,d,a){function c(h,g){h=h.toString();if(!g&&b.PageTransitions&&PageTransitions.isInitialized()){PageTransitions.go(h);}else if(window.location.href==h){window.location.reload();}else window.location.href=h;}d.exports=c;});
__d("invokeCallbacks",[],function(b,e,f,d,a){function c(h,j){if(h)for(var i=0;i<h.length;i++)try{(new Function(h[i])).apply(j);}catch(g){}}d.exports=c;});
__d("AsyncRequest",["array-extensions","event-extensions","json","Arbiter","AsyncDOM","AsyncResponse","bootloader","Cookie","css-core","dom","Env","JSCC","Parent","URI","Util","bind","copyProperties","evalGlobal","goURI","invokeCallbacks","isEmpty"],function(global,require,requireLazy,module,exports){require("array-extensions");require("event-extensions");require("json");var Arbiter=require("Arbiter");var AsyncDOM=require("AsyncDOM");var AsyncResponse=require("AsyncResponse");var Bootloader=require("bootloader");var Cookie=require("Cookie");var CSS=require("css-core");var DOM=require("dom");var Env=require("Env");var JSCC=require("JSCC");var Parent=require("Parent");var URI=require("URI");var Util=require("Util");var bind=require("bind");var copyProperties=require("copyProperties");var evalGlobal=require("evalGlobal");var goURI=require("goURI");var invokeCallbacks=require("invokeCallbacks");var isEmpty=require("isEmpty");function AsyncRequest(uri){var dispatchResponse=bind(this,function(asyncResponse){try{this.clearStatusIndicator();if(!this.isRelevant()){invokeErrorHandler(1010);return;}if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.timer);if(asyncResponse.jscc_map){var jscc_map=eval(asyncResponse.jscc_map);JSCC.init(jscc_map);}if(this.handler)try{var suppress_onload=this.handler(asyncResponse);}catch(exception){asyncResponse.is_last&&this.finallyHandler(asyncResponse);throw exception;}if(suppress_onload!==AsyncRequest.suppressOnloadToken){var domOps=asyncResponse.domops;if(domOps)AsyncDOM.invoke(domOps,this.getRelativeTo());asyncResponse.jscalls&&invokeCallbacks([asyncResponse.jscalls]);var onload=asyncResponse.onload;if(onload)for(var ii=0;ii<onload.length;ii++)try{(new Function(onload[ii])).apply(this);}catch(exception){}if(this.lid)Arbiter.inform('tti_ajax',{s:this.lid,d:[this._sendTimeStamp||0,(this._sendTimeStamp&&this._responseTime)?(this._responseTime-this._sendTimeStamp):0]},Arbiter.BEHAVIOR_EVENT);var onafterload=asyncResponse.onafterload;if(onafterload)for(var ii=0;ii<onafterload.length;ii++)try{(new Function(onafterload[ii])).apply(this);}catch(exception){}}asyncResponse.is_last&&this.finallyHandler(asyncResponse);}}catch(exception){}});var dispatchErrorResponse=bind(this,function(asyncResponse,isTransport){try{this.clearStatusIndicator();var async_error=asyncResponse.getError();if(this._sendTimeStamp){var _duration=Date.now()-this._sendTimeStamp;var xfb_ip=this._xFbServer||'-';asyncResponse.logError('async_error',{duration:_duration,xfb_ip:xfb_ip});}else asyncResponse.logError('async_error');if((!this.isRelevant())||async_error===1010)return;if(async_error==1357008||async_error==1357007||async_error==1442002||async_error==1357001){var is_confirmation=false;if(async_error==1357008||async_error==1357007)is_confirmation=true;var payload=asyncResponse.getPayload();this._displayServerDialog(payload.__dialog,is_confirmation);}else if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.timer);try{if(isTransport){this.transportErrorHandler(asyncResponse);}else this.errorHandler(asyncResponse);}catch(exception){this.finallyHandler(asyncResponse);throw exception;}this.finallyHandler(asyncResponse);}}catch(exception){}});var _interpretTransportResponse=bind(this,function(){if(this.getOption('suppressEvaluation')){var r=new AsyncResponse(this,this.transport);return {asyncResponse:r};}var _sendError=function(p,error_code,str){if(!window.send_error_signal)return;if(this._xFbServer){error_code='1008_'+error_code;}else error_code='1012_'+error_code;send_error_signal('async_xport_resp',error_code+':'+(this._xFbServer||'-')+':'+p.getURI()+':'+str.length+':'+str.substr(0,1600));};var shield="for (;;);";var shieldlen=shield.length;var text=this.transport.responseText;if(text.length<=shieldlen){_sendError(this,'empty',text);return {transportError:'Response too short on async to '+this.getURI()};}var offset=0;while(text.charAt(offset)==" "||text.charAt(offset)=="\n")offset++;offset&&text.substring(offset,offset+shieldlen)==shield;var safeResponse=text.substring(offset+shieldlen);try{var response=eval('('+safeResponse+')');}catch(exception){_sendError(this,'excep',text);return {transportError:'eval() failed on async to '+this.getURI()};}return interpretResponse(response);});var interpretResponse=bind(this,function(response){if(response.redirect)return {redirect:response.redirect};var r=new AsyncResponse(this);if(response.__ar!=1){r.payload=response;}else{copyProperties(r,response);if(response.tplts)if(window.DynaTemplate)DynaTemplate.registerTemplates(response.tplts);}return {asyncResponse:r};});var invokeResponseHandler=bind(this,function(interp){if(typeof(interp.redirect)!='undefined'){(function(){this.setURI(interp.redirect).send();}).bind(this).defer();return;}if(this.handler||this.errorHandler||this.transportErrorHandler)if(typeof(interp.asyncResponse)!='undefined'){var r=interp.asyncResponse;if(!this.isRelevant()){invokeErrorHandler(1010);return;}if(r.inlinejs)evalGlobal(r.inlinejs);if(r.lid){this._responseTime=Date.now();if(window.CavalryLogger)this.cavalry=CavalryLogger.getInstance(r.lid);this.lid=r.lid;}if(r.getError()&&!r.getErrorIsWarning()){var fn=dispatchErrorResponse;}else var fn=dispatchResponse;Bootloader.setResourceMap(r.resource_map);if(r.bootloadable)Bootloader.enableBootload(r.bootloadable);fn=fn.shield(null,r);fn=fn.defer.bind(fn);var is_transitional=false;if(this.preBootloadHandler)is_transitional=this.preBootloadHandler(r);r.css=r.css||[];r.js=r.js||[];Bootloader.loadResources(r.css.concat(r.js),fn,is_transitional,this.getURI());}else if(typeof(interp.transportError)!='undefined'){if(this._xFbServer){invokeErrorHandler(1008);}else invokeErrorHandler(1012);}else invokeErrorHandler(1007);});var invokeErrorHandler=bind(this,function(explicitError){try{if(!window.loaded&&!this.getOption('handleErrorAfterUnload'))return;}catch(ex){return;}var r=new AsyncResponse(this);var err;try{err=explicitError||this.transport.status||1004;}catch(ex){err=1005;}if(this._requestAborted)err=1011;try{if(this.responseText=='')err=1002;}catch(ignore){}if(this.transportErrorHandler){var desc,summary;var silent=true;if(false===navigator.onLine){summary="Brak po\u0142\u0105czenia z Internetem.";desc="Wyszukiwarka jest w trybie offline. Sprawd\u017a po\u0142\u0105czenie z Internetem i spr\u00f3buj ponownie.";err=1006;}else if(err>=300&&err<=399){summary="Przekierowanie";desc="Tw\u00f3j dost\u0119p do Facebooka zosta\u0142 aktualnie przekierowany lub zablokowany przez stron\u0119 trzeci\u0105. Prosimy skontaktowa\u0107 si\u0119 z operatorem internetowym lub za\u0142adowa\u0107 stron\u0119 jeszcze raz.";redir_url=this.transport.getResponseHeader("Location");if(redir_url)goURI(redir_url,true);silent=true;}else{summary="Ups...";desc="Wyst\u0105pi\u0142 problem na stronie serwisu. Trwaj\u0105 prace nad jak najszybszym usuni\u0119ciem tej usterki. Spr\u00f3buj ponownie.";}!this.getOption('suppressErrorAlerts');copyProperties(r,{error:err,errorSummary:summary,errorDescription:desc,silentError:silent});dispatchErrorResponse(r,true);}});var handleResponse=function(response){var asyncResponse=this.interpretResponse(response);this.invokeResponseHandler(asyncResponse);};var onStateChange=function(){try{if(this.transport.readyState==4){AsyncRequest._inflightPurge();try{if(typeof(this.transport.getResponseHeader)!='undefined'&&this.transport.getResponseHeader('X-FB-Debug'))this._xFbServer=this.transport.getResponseHeader('X-FB-Debug');}catch(ex){}if(this.transport.status>=200&&this.transport.status<300){AsyncRequest.lastSuccessTime=Date.now();invokeResponseHandler(_interpretTransportResponse());}else if(ua.safari()&&(typeof(this.transport.status)=='undefined')){invokeErrorHandler(1002);}else if(window.Env&&window.Env.retry_ajax_on_network_error&&this.transport.status in {0:1,12029:1,12030:1,12031:1,12152:1}&&this.remainingRetries>0){--this.remainingRetries;delete this.transport;this.send(true);return;}else invokeErrorHandler();if(this.getOption('asynchronous')!==false)delete this.transport;}}catch(exception){try{if(!window.loaded)return;}catch(ex){return;}delete this.transport;if(this.remainingRetries>0){--this.remainingRetries;this.send(true);}else{!this.getOption('suppressErrorAlerts');if(window.send_error_signal)send_error_signal('async_xport_resp','1007:'+(this._xFbServer||'-')+':'+this.getURI()+':'+exception.message);invokeErrorHandler(1007);}}};var onJSONPResponse=function(data,more_chunked_response){var is_first=(this.is_first===undefined);this.is_first=is_first;if(this.transportIframe&&!more_chunked_response){if(this.cavalry)this.cavalry.collectBrowserTiming(this.transportIframe.contentWindow);(function(x){document.body.removeChild(x);}).bind(null,this.transportIframe).defer();}if(ua.ie()>=9&&window.JSON)data=window.JSON.parse(window.JSON.stringify(data));var r=this.interpretResponse(data);r.asyncResponse.is_first=is_first;r.asyncResponse.is_last=!more_chunked_response;this.invokeResponseHandler(r);return more_chunked_response;};copyProperties(this,{onstatechange:onStateChange,onjsonpresponse:onJSONPResponse,invokeResponseHandler:invokeResponseHandler,interpretResponse:interpretResponse,handleResponse:handleResponse,transport:null,method:'POST',uri:'',timeout:null,timer:null,initialHandler:bagofholding,handler:null,errorHandler:null,transportErrorHandler:null,timeoutHandler:null,finallyHandler:bagofholding,serverDialogCancelHandler:bagofholding,relativeTo:null,statusElement:null,statusClass:'',data:{},file:null,context:{},readOnly:false,writeRequiredParams:['post_form_id'],remainingRetries:0,option:{asynchronous:true,suppressErrorHandlerWarning:false,suppressEvaluation:false,suppressErrorAlerts:false,retries:0,jsonp:false,bundle:false,useIframeTransport:false,tfbEndpoint:true,handleErrorAfterUnload:false},userActionID:'-'});this.errorHandler=AsyncResponse.defaultErrorHandler;this.transportErrorHandler=bind(this,'errorHandler');if(uri!=undefined)this.setURI(uri);return this;}Arbiter.subscribe("page_transition",function(type,message){AsyncRequest._id_threshold=message.id;});copyProperties(AsyncRequest,{receiveJSONPResponse:function(id,data,more_chunked_response){if(this._JSONPReceivers[id]){if(!this._JSONPReceivers[id](data,more_chunked_response))delete this._JSONPReceivers[id];}else if(window.logJSError&&!more_chunked_response){var uri=(data.payload&&data.payload.uri)||'';logJSError('ajax',{error:'UnexpectedJsonResponse',extra:{id:id,uri:uri}});}},_bundleRequest:function(request){if(request.getOption('jsonp')||request.getOption('useIframeTransport')){request.setOption('bundle',false);return false;}else if(!request.uri.isFacebookURI()){request.setOption('bundle',false);return false;}else if(!request.getOption('asynchronous')){request.setOption('bundle',false);return false;}var path=request.uri.getPath();if(!AsyncRequest._bundleTimer)AsyncRequest._bundleTimer=setTimeout(function(){AsyncRequest._sendBundledRequests();},0);AsyncRequest._allBundledRequests.push([path,request]);return true;},_sendBundledRequests:function(){clearTimeout(AsyncRequest._bundleTimer);AsyncRequest._bundleTimer=null;var bundled_requests=AsyncRequest._allBundledRequests;AsyncRequest._allBundledRequests=[];if(bundled_requests.length==1){var request=bundled_requests[0][1];request.setOption('bundle',false).send();return request;}if(bundled_requests.length===0)return null;var data=[];for(var ii=0;ii<bundled_requests.length;ii++)data.push([bundled_requests[ii][0],URI.implodeQuery(bundled_requests[ii][1].data)]);var query_data={data:data};var request=new AsyncRequest();request.setURI('/ajax/proxy.php').setData(query_data).setMethod('POST').setInitialHandler(bagof(true)).setAllowCrossPageTransition(true).setHandler(function(r){var payload=r.getPayload();var responses=payload.responses;if(responses.length!=bundled_requests.length){return;}else for(var ii=0;ii<bundled_requests.length;ii++){var path=bundled_requests[ii][0];var request=bundled_requests[ii][1];request.id=this.id;if(responses[ii][0]!=path){request.invokeResponseHandler({transportError:'Wrong response order in bundled request to '+path});continue;}var asyncResponse=request.interpretResponse(responses[ii][1]);request.invokeResponseHandler(asyncResponse);}}).setTransportErrorHandler(function(response){var paths=[];var interp={transportError:response.errorDescription};for(var ii=0;ii<bundled_requests.length;ii++){var path=bundled_requests[ii][0];var request=bundled_requests[ii][1];paths.push(path);request.id=this.id;request.invokeResponseHandler(interp);}}).send();return request;},bootstrap:function(href,elem,is_post){var method='GET';var readonly=true;var data={};if(is_post||elem&&(elem.rel=='async-post'||elem.getAttribute&&elem.getAttribute('forcemethod')=='post')){method='POST';readonly=false;if(href){href=URI(href);data=href.getQueryData();href.setQueryData({});}}var status_elem=Parent.byClass(elem,'stat_elem')||elem;if(status_elem&&CSS.hasClass(status_elem,'async_saving'))return false;var async=new AsyncRequest(href).setReadOnly(readonly).setMethod(method).setData(data).setNectarModuleDataSafe(elem).setRelativeTo(elem).setHandler(function(response){Event.fire(elem,'success',{response:response});}).setErrorHandler(function(response){if(Event.fire(elem,'error',{response:response})!==false)AsyncResponse.defaultErrorHandler(response);});if(status_elem){async.setStatusElement(status_elem);var status_class=status_elem.getAttribute('data-status-class');status_class&&async.setStatusClass(status_class);}async.send();return false;},post:function(href,data){new AsyncRequest(href).setReadOnly(false).setMethod('POST').setData(data).send();return false;},getLastId:function(){return AsyncRequest._last_id;},_JSONPReceivers:{},_allBundledRequests:[],_bundleTimer:null,suppressOnloadToken:{},_last_id:2,_id_threshold:2,_inflight:[],_inflightAdd:bagofholding,_inflightPurge:bagofholding,_inflightEnable:function(){if(ua.ie()){copyProperties(AsyncRequest,{_inflightAdd:function(ar){this._inflight.push(ar);},_inflightPurge:function(){AsyncRequest._inflight=AsyncRequest._inflight.filter(function(ar){return ar.transport&&ar.transport.readyState<4;});}});onunloadRegister(function(){AsyncRequest._inflight.each(function(ar){if(ar.transport&&ar.transport.readyState<4){ar.transport.abort();delete ar.transport;}});});}}});copyProperties(AsyncRequest.prototype,{setMethod:function(m){this.method=m.toString().toUpperCase();return this;},getMethod:function(){return this.method;},setData:function(obj){this.data=obj;return this;},_setDataHash:function(){if(this.method!='POST'||!this.getOption('tfbEndpoint')||this.data.phstamp)return;var input_len=URI.implodeQuery(this.data).length;var numeric_csrf_value='';for(var ii=0;ii<this.data.fb_dtsg.length;ii++)numeric_csrf_value+=this.data.fb_dtsg.charCodeAt(ii);this.data.phstamp='1'+numeric_csrf_value+input_len;},setFile:function(file){this.file=file;return this;},getData:function(){return this.data;},setContextData:function(key,value,enabled){enabled=enabled===undefined?true:enabled;if(enabled)this.context['_log_'+key]=value;return this;},_setUserActionID:function(){var ue=window.ArbiterMonitor&&ArbiterMonitor.getUE()||'-';this.userActionID=(window.EagleEye&&EagleEye.getSessionID()||'-')+'/'+ue;},setURI:function(uri){var uri_obj=URI(uri);if(this.getOption('useIframeTransport')&&!uri_obj.isFacebookURI())return this;if(!this.getOption('jsonp')&&!this.getOption('useIframeTransport')&&!uri_obj.isSameOrigin())return this;this._setUserActionID();if(!uri||uri_obj.isEmpty()){if(window.send_error_signal&&window.get_error_stack){var data={err_code:1013,vip:'-',duration:0,xfb_ip:'-',path:window.location.href,aid:this.userActionID};send_error_signal('async_error',JSON.stringify(data));send_error_signal('async_xport_stack','1013:'+window.location.href+'::'+get_error_stack());}return this;}this.uri=uri_obj;return this;},getURI:function(){return this.uri.toString();},setInitialHandler:function(fn){this.initialHandler=fn;return this;},setHandler:function(fn){if(!(typeof(fn)!='function'))this.handler=fn;return this;},getHandler:function(){return this.handler;},setErrorHandler:function(fn){if(!(typeof(fn)!='function'))this.errorHandler=fn;return this;},setTransportErrorHandler:function(fn){this.transportErrorHandler=fn;return this;},getErrorHandler:function(){return this.errorHandler;},getTransportErrorHandler:function(){return this.transportErrorHandler;},setTimeoutHandler:function(timeout,fn){if(!(typeof(fn)!='function')){this.timeout=timeout;this.timeoutHandler=fn;}return this;},resetTimeout:function(timeout){if(!(this.timeoutHandler===null))if(timeout===null){this.timeout=null;clearTimeout(this.timer);this.timer=null;}else{var clear_on_quickling_event=!this._allowCrossPageTransition;this.timeout=timeout;clearTimeout(this.timer);this.timer=this._handleTimeout.bind(this).defer(this.timeout,clear_on_quickling_event);}return this;},_handleTimeout:function(){this.abandon();this.timeoutHandler(this);},setNewSerial:function(){this.id=++AsyncRequest._last_id;return this;},setFinallyHandler:function(fn){this.finallyHandler=fn;return this;},setServerDialogCancelHandler:function(fn){this.serverDialogCancelHandler=fn;return this;},setPreBootloadHandler:function(fn){this.preBootloadHandler=fn;return this;},setReadOnly:function(readOnly){if(!(typeof(readOnly)!='boolean'))this.readOnly=readOnly;return this;},setFBMLForm:function(){this.writeRequiredParams=["fb_sig"];return this;},getReadOnly:function(){return this.readOnly;},setRelativeTo:function(element){this.relativeTo=element;return this;},getRelativeTo:function(){return this.relativeTo;},setStatusClass:function(c){this.statusClass=c;return this;},setStatusElement:function(element){this.statusElement=element;return this;},getStatusElement:function(){return ge(this.statusElement);},isRelevant:function(){if(this._allowCrossPageTransition)return true;if(!this.id)return true;return this.id>AsyncRequest._id_threshold;},clearStatusIndicator:function(){var statusElem=this.getStatusElement();if(statusElem){CSS.removeClass(statusElem,'async_saving');CSS.removeClass(statusElem,this.statusClass);}},addStatusIndicator:function(){var statusElem=this.getStatusElement();if(statusElem){CSS.addClass(statusElem,'async_saving');CSS.addClass(statusElem,this.statusClass);}},specifiesWriteRequiredParams:function(){return this.writeRequiredParams.every(function(param){this.data[param]=this.data[param]||Env[param]||(ge(param)||{}).value;if(this.data[param]!==undefined)return true;return false;},this);},setOption:function(opt,v){if(typeof(this.option[opt])!='undefined')this.option[opt]=v;return this;},getOption:function(opt){typeof(this.option[opt])=='undefined';return this.option[opt];},abort:function(){if(this.transport){var old_handler=this.getTransportErrorHandler();this.setOption('suppressErrorAlerts',true);this.setTransportErrorHandler(bagofholding);this._requestAborted=1;this.transport.abort();this.setTransportErrorHandler(old_handler);}},abandon:function(){clearTimeout(this.timer);this.setOption('suppressErrorAlerts',true).setHandler(bagofholding).setErrorHandler(bagofholding).setTransportErrorHandler(bagofholding);if(this.transport){this._requestAborted=1;this.transport.abort();}},setNectarData:function(nctrParams){if(nctrParams){if(this.data.nctr===undefined)this.data.nctr={};copyProperties(this.data.nctr,nctrParams);}return this;},setNectarModuleDataSafe:function(elem){if(this.setNectarModuleData)this.setNectarModuleData(elem);return this;},setNectarImpressionIdSafe:function(){if(this.setNectarImpressionId)this.setNectarImpressionId();return this;},setAllowCrossPageTransition:function(allow){this._allowCrossPageTransition=!!allow;if(this.timer)this.resetTimeout(this.timeout);return this;},send:function(isRetry){isRetry=isRetry||false;if(!this.uri)return false;!this.errorHandler&&!this.getOption('suppressErrorHandlerWarning');if(this.getOption('jsonp')&&this.method!='GET')this.setMethod('GET');if(this.getOption('useIframeTransport')&&this.method!='GET')this.setMethod('GET');this.timeoutHandler!==null&&(this.getOption('jsonp')||this.getOption('useIframeTransport'));if(!this.getReadOnly()){this.specifiesWriteRequiredParams();if(this.method!='POST')return false;}if(this.method=='POST'&&this.getOption('tfbEndpoint')){this.data.fb_dtsg=Env.fb_dtsg;this.data.lsd=Cookie.get('lsd');}if(!isEmpty(this.context)&&this.getOption('tfbEndpoint')){copyProperties(this.data,this.context);this.data.ajax_log=1;}if(window.Env&&Env.force_param)copyProperties(this.data,Env.force_param);if(!this.getReadOnly()&&this.getOption('tfbEndpoint')&&this.method=='POST'&&this.data.post_form_id_source===undefined)this.data.post_form_id_source='AsyncRequest';if(window.Env)this.data.__user=Env.user;this._setUserActionID();if(this.getOption('bundle')&&AsyncRequest._bundleRequest(this))return true;this.setNewSerial();if(this.getOption('tfbEndpoint')){this.uri.addQueryData({__a:1});if(!this.getOption('asynchronous'))this.uri.addQueryData({__s:1});if(Env.fb_isb)this.uri.addQueryData({fb_isb:Env.fb_isb});}this.finallyHandler=async_callback(this.finallyHandler,'final');var uri_str,query;if(this.method=='GET'||this.file){uri_str=this.uri.addQueryData(this.data).toString();query='';}else{uri_str=this.uri.toString();this._setDataHash();query=URI.implodeQuery(this.data);}if(this.getOption('jsonp')||this.getOption('useIframeTransport')){uri_str=this.uri.addQueryData({__a:this.id}).toString();AsyncRequest._JSONPReceivers[this.id]=async_callback(bind(this,'onjsonpresponse'),'json');if(this.getOption('jsonp')){(function(){document.body.appendChild($N('script',{src:uri_str,type:"text/javascript"}));}).bind(this).defer();}else{var style={position:'absolute',top:'-9999999px',width:'80px',height:'80px'};this.transportIframe=$N('iframe',{src:"javascript:''",style:style});document.body.appendChild(this.transportIframe);this.transportIframe.src=uri_str;}return true;}if(this.transport)return false;var transport=null;try{transport=new XMLHttpRequest();}catch(ignored){}if(!transport)try{transport=new ActiveXObject("Msxml2.XMLHTTP");}catch(ignored){}if(!transport)try{transport=new ActiveXObject("Microsoft.XMLHTTP");}catch(ignored){}if(!transport)return false;transport.onreadystatechange=async_callback(bind(this,'onstatechange'),'xhr');if(!isRetry)this.remainingRetries=this.getOption('retries');if(window.send_error_signal||window.ArbiterMonitor)this._sendTimeStamp=this._sendTimeStamp||Date.now();this.transport=transport;try{this.transport.open(this.method,uri_str,this.getOption('asynchronous'));}catch(ex){return false;}var svn_rev=Env.svn_rev;if(svn_rev)this.transport.setRequestHeader('X-SVN-Rev',String(svn_rev));if(this.method=='POST')this.transport.setRequestHeader('Content-Type','application/x-www-form-urlencoded');this.addStatusIndicator();query=this.file||query;this.transport.send(query);if(this.timeout!==null)this.resetTimeout(this.timeout);AsyncRequest._inflightAdd(this);return true;},_displayServerDialog:function(model,is_confirmation){Bootloader.loadComponents('dialog',function(){var dialog=new Dialog(model);if(is_confirmation)dialog.setHandler(this._displayConfirmationHandler.bind(this,dialog));dialog.setCancelHandler(function(){this.serverDialogCancelHandler.apply(this,arguments);this.finallyHandler.apply(this,arguments);}.bind(this)).setCausalElement(this.relativeTo).setCloseHandler(this.finallyHandler.bind(this)).show();}.bind(this));},_displayConfirmationHandler:function(dialog){this.data.confirmed=1;copyProperties(this.data,dialog.getFormData());this.send();}});module.exports=AsyncRequest;});
__d("legacy:async",["AsyncRequest","AsyncResponse"],function(a,b,c){a.AsyncRequest=b('AsyncRequest');a.AsyncResponse=b('AsyncResponse');},3);
__d("AsyncRequestNectarLogging",["string-extensions","AsyncRequest","Env","copyProperties"],function(e,g,h,f,d){g("string-extensions");var a=g("AsyncRequest");var b=g("Env");var c=g("copyProperties");c(a.prototype,{setNectarModuleData:function(k){if(this.method=='POST'){var l=b.module;if(k&&l===undefined){var j={fbpage_fan_confirm:1};var m=null;for(var i=k;i&&i!=document.body;i=i.parentNode){if(!i.id||typeof i.id!=='string')continue;if(i.id.startsWith('pagelet_')){l=i.id;break;}if(!m&&j[i.id])m=i.id;}if(l===undefined&&m)l=m;}if(l!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._mod=l;}}},setNectarImpressionId:function(){if(this.method=='POST'){var i=b.impid;if(i!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._impid=i;}}}});});
__d("legacy:async-postlude",["AsyncRequestNectarLogging"],function(a,b,c){b('AsyncRequestNectarLogging');},3);
__d("deferUntil",[],function(c,e,f,d,b){function a(i,h,m,g,n){var k=h();if(k){i(k);return null;}var l=Date.now();var j=setInterval(function(){k=h();if(!k){if(!m||(m<new Date()-l))return;n&&n();}clearInterval(j);i(k);},20,g);return j;}d.exports=a;});
__d("legacy:function-utils",["FunctionUtils","deferUntil"],function(b,c,d){var a=c('FunctionUtils');b.debounce=a.debounce;b.throttle=a.throttle;b.defer_until=c('deferUntil');},3);
__d("XD",["function-extensions","copyProperties","ua","URI","Arbiter"],function(g,i,j,h,f){i("function-extensions");var e=i("copyProperties");var k=i("ua");var b=i("URI");var a=i("Arbiter");var d={_callbacks:[],_opts:{autoResize:false,allowShrink:true,channelUrl:null,hideOverflow:false,newResizeMethod:false,resizeTimeout:100,resizeWidth:false,expectResizeAck:false,resizeAckTimeout:6000},_lastResizeAckId:0,_resizeCount:0,_resizeTimestamp:0,init:function(l){this._opts=e(e({},this._opts),l);if(this._opts.autoResize)this._startResizeMonitor();a.subscribe('Connect.Unsafe.resize.ack',function(n,m){if(!m.id)m.id=this._resizeCount;if(m.id>this._lastResizeAckId)this._lastResizeAckId=m.id;}.bind(this));},send:function(m,l){l=l||this._opts.channelUrl;if(!l)return;if(l.substr(0,4)!='http')return;var t=l+'&'+b.implodeQuery(m),p='f'+(Math.random()*(1<<30)).toString(16).replace('.',''),n=document.body.appendChild(document.createElement('div')),s=false;n.style.position='absolute';n.style.top='-10000px';n.style.width='1px';n.style.height='1px';d._callbacks[p]=function(){if(s){(function(){n.parentNode.removeChild(n);}).defer(3000);delete d._callbacks[p];}};if(k.ie()){var q,o=document.createElement('div');q='<iframe onload="XD._callbacks.'+p+'()"></iframe>';o.innerHTML=q;o.firstChild.setAttribute('src',t);q=o.innerHTML;n.innerHTML='<iframe src="javascript:false"></iframe>';s=true;(function(){n.innerHTML=q;}).defer();}else{var r=document.createElement('iframe');r.onload=d._callbacks[p];n.appendChild(r);s=true;r.src=t;}},_computeSize:function(){return {width:this._opts.resizeWidth?this._calcWidth(d.forced_min_width):0,height:this._calcHeight(this._opts.newResizeMethod)};},_calcHeight:function(o){var l=document.body,m=document.documentElement,n=0;if(o){n=Math.max(Math.max(l.offsetHeight,l.scrollHeight)+l.offsetTop,Math.max(m.offsetHeight,m.scrollHeight)+m.offsetTop);}else{if(k.ie()){n=Math.max(l.offsetHeight,l.scrollHeight)+l.offsetTop;}else n=m.offsetHeight+m.offsetTop;if(window.Dialog)n=Math.max(n,Dialog.max_bottom);}return n;},_calcWidth:function(r){var l=document.body,p=document.documentElement,s=0;if(l.offsetWidth<l.scrollWidth){s=l.scrollWidth+l.offsetLeft;}else{var o=l.childNodes;for(var q=0;q<o.length;q++){var m=o[q];var n=m.offsetWidth+m.offsetLeft;if(n>s)s=n;}}if(r)s=Math.max(s,r);if(p.clientLeft>0)s+=(p.clientLeft*2);if(p.clientTop>0)height+=(p.clientTop*2);return s;},_startResizeMonitor:function(){var m,l=document.documentElement;if(this._opts.hideOverflow){l.style.overflow='hidden';document.body.style.overflow='hidden';}setInterval((function(){var q=this._computeSize();var r=Date.now();var n=this._lastResizeAckId<this._resizeCount&&(r-this._resizeTimestamp)>this._opts.resizeAckTimeout;if(!m||(this._opts.expectResizeAck&&n)||(this._opts.allowShrink&&m.width!=q.width)||(!this._opts.allowShrink&&m.width<q.width)||(this._opts.allowShrink&&m.height!=q.height)||(!this._opts.allowShrink&&m.height<q.height)){m=q;this._resizeCount++;this._resizeTimestamp=r;var p={type:'resize',height:q.height,ackData:{id:this._resizeCount}};if(q.width&&q.width!=0)p.width=q.width;try{if(b(document.referrer).isFacebookURI()&&window.parent!=window&&window.name&&window.parent.location&&window.parent.location.toString&&b(window.parent.location).isFacebookURI()){var iframes=window.parent.document.getElementsByTagName('iframe');for(var i=0;i<iframes.length;i=i+1)if(iframes[i].name==window.name){if(this._opts.resizeWidth)iframes[i].style.width=p.width+'px';iframes[i].style.height=p.height+'px';}}this.send(p);}catch(o){this.send(p);}}}).bind(this),this._opts.resizeTimeout);}};var c=e({},d);h.exports.UnverifiedXD=c;h.exports.XD=d;g.UnverifiedXD=c;g.XD=d;});
__d("legacy:connect-xd",["XD"],function(a,b,c){a.UnverifiedXD=b('XD').UnverifiedXD;a.XD=b('XD').XD;},3);
__d("legacy:uri",["URI"],function(a,b,c){a.URI=b('URI');},3);
WindowComm={_callbacks:{},makeHandler:function(a,c){c=c||'opener';var b='f'+(Math.random()*(1<<30)).toString(16).replace('.','');WindowComm._callbacks[b]=a;return new URI('/connect/window_comm.php').setQueryData({_id:b,_relation:c}).getQualifiedURI().toString();},_recv:function(b){var a=new URI(b).getQueryData();WindowComm._callbacks[a._id](a);}};
__d("Vector",["dom","ua","event-extensions","copyProperties"],function(f,h,i,g,e){var b=h("dom");var j=h("ua");var a=h("event-extensions").$E;var d=h("copyProperties");function c(l,m,k){d(this,{x:parseFloat(l),y:parseFloat(m),domain:k||'pure'});}d(c.prototype,{toString:function(){return '('+this.x+', '+this.y+')';},add:function(m,n){if(arguments.length==1){if(m.domain!='pure')m=m.convertTo(this.domain);return this.add(m.x,m.y);}var k=parseFloat(m);var l=parseFloat(n);return new c(this.x+k,this.y+l,this.domain);},mul:function(k,l){if(typeof l=="undefined")l=k;return new c(this.x*k,this.y*l,this.domain);},sub:function(k,l){if(arguments.length==1){return this.add(k.mul(-1));}else return this.add(-k,-l);},distanceTo:function(k){return this.sub(k).magnitude();},magnitude:function(){return Math.sqrt((this.x*this.x)+(this.y*this.y));},convertTo:function(k){if(k!='pure'&&k!='viewport'&&k!='document')return new c(0,0);if(k==this.domain)return new c(this.x,this.y,this.domain);if(k=='pure')return new c(this.x,this.y);if(this.domain=='pure')return new c(0,0);var l=c.getScrollPosition('document');var m=this.x,n=this.y;if(this.domain=='document'){m-=l.x;n-=l.y;}else{m+=l.x;n+=l.y;}return new c(m,n,k);},setElementPosition:function(k){var l=this.convertTo('document');k.style.left=parseInt(l.x)+'px';k.style.top=parseInt(l.y)+'px';return this;},setElementDimensions:function(k){return this.setElementWidth(k).setElementHeight(k);},setElementWidth:function(k){k.style.width=parseInt(this.x,10)+'px';return this;},setElementHeight:function(k){k.style.height=parseInt(this.y,10)+'px';return this;},scrollElementBy:function(k){if(k==document.body){window.scrollBy(this.x,this.y);}else{k.scrollLeft+=this.x;k.scrollTop+=this.y;}return this;}});d(c,{getEventPosition:function(l,k){k=k||'document';l=a(l);var m=b.getDocumentScrollElement();var o=l.pageX||(l.clientX+m.scrollLeft);var p=l.pageY||(l.clientY+m.scrollTop);var n=new c(o,p,'document');return n.convertTo(k);},getScrollPosition:function(k){k=k||'document';var l=b.getDocumentScrollElement();var m=l.scrollLeft;var n=l.scrollTop;return new c(m,n,'document').convertTo(k);},getElementPosition:function(m,l){l=l||'document';if(!m)return;if(!('getBoundingClientRect' in m))return new c(0,0,'document');var o=m.getBoundingClientRect(),k=document.documentElement,n=Math.round(o.left)-k.clientLeft,p=Math.round(o.top)-k.clientTop;return new c(n,p,'viewport').convertTo(l);},getElementDimensions:function(k){return new c(k.offsetWidth||0,k.offsetHeight||0);},getViewportDimensions:function(){var k=(window&&window.innerWidth)||(document&&document.documentElement&&document.documentElement.clientWidth)||(document&&document.body&&document.body.clientWidth)||0;var l=(window&&window.innerHeight)||(document&&document.documentElement&&document.documentElement.clientHeight)||(document&&document.body&&document.body.clientHeight)||0;return new c(k,l,'viewport');},getDocumentDimensions:function(k){k=k||document;var l=b.getDocumentScrollElement(k);if(l===k.body&&j.firefox())l=k.documentElement;var m=l.scrollWidth||0;var n=l.scrollHeight||0;return new c(m,n,'document');},deserialize:function(l){var k=l.split(',');return new c(k[0],k[1]);}});g.exports=c;});
__d("PopupWindow",["copyProperties","ua","Vector"],function(e,g,h,f,d){var c=g("copyProperties");var i=g("ua");var b=g("Vector");var a={_opts:{allowShrink:true,timeout:100},init:function(j){copy_properties(a._opts,j);setInterval(a._resizeCheck,a._opts.timeout);},_resizeCheck:function(){var n=b.getViewportDimensions(),j=a._getDocumentSize(),l=j.y-n.y,m=j.x-n.x;if(m<0)m=0;if(!a._opts.allowShrink&&l<0)l=0;if(l||m)try{if(window.console&&window.console.firebug)console.log('Resizing will not work in firefox with firebug enabled. '+'See https://bugzilla.mozilla.org/show_bug.cgi?id=691693');window.resizeBy(m,l);if(m)window.moveBy(m/-2,0);}catch(k){}},_getDocumentSize:function(){var j=b.getDocumentDimensions();if(window.Dialog&&Dialog.max_bottom&&Dialog.max_bottom>j.y)j.y=Dialog.max_bottom;return j;},open:function(r,k,s){var o=typeof window.screenX!='undefined'?window.screenX:window.screenLeft,p=typeof window.screenY!='undefined'?window.screenY:window.screenTop,n=typeof window.outerWidth!='undefined'?window.outerWidth:document.body.clientWidth,m=typeof window.outerHeight!='undefined'?window.outerHeight:(document.body.clientHeight-22),l=parseInt(o+((n-s)/2),10),q=parseInt(p+((m-k)/2.5),10),j=('width='+s+',height='+k+',left='+l+',top='+q);return window.open(r,'_blank',j);}};f.exports=a;});
__d("legacy:popup-resizer",["PopupWindow"],function(a,b,c){a.PopupResizer=b('PopupWindow');},3);
ConnectLogin={init:function(a){this.appID=a.appID;this.addToProfile=a.addToProfile;this.oneClick=a.oneClick;this.channelUrl=a.channelUrl;XD.init(a);},login:function(a,c,b){if(this.oneClick&&!c){this._oneClick(a);}else this._openPopup(a,c,b);},logout:function(){XD.send({type:'logout'});},_oneClick:function(a){new AsyncRequest().setURI('/ajax/api/tos.php').setData({app_id:this.appID,grant_perm:1}).setHandler(function(b){ConnectLogin._refreshLoginStatus();a&&a();}).send();},_openPopup:function(c,e,d){d=d||{};var b=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();if(ConnectLogin.appID)ConnectLogin._refreshLoginStatus();c&&c();}),a=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();}),g=new URI('/login.php');g.setQueryData({api_key:this.appID,next:b,channel_url:a,cancel_url:a,req_perms:e,v:'1.0',fbconnect:1,add_to_profile:this.addToProfile,display:'popup'});g.addQueryData(d);var f=this._getSize(d);this._popup=PopupResizer.open(g.toString(),f.height,f.width);},_closePopup:function(){if(this._popup){this._popup.close();this._popup=null;}},_refreshLoginStatus:function(){if(this.channelUrl){XD.send({type:'refreshLoginStatus'});}else window.location.reload();},_getSize:function(a){if(a.social_plugin=='registration'){return {width:640,height:370};}else return {width:610,height:280};}};
__d("legacy:intl-core",["tx","_tx","Intl"],function(c,d,e){var f=d('tx');var b=d('_tx');var a=d('Intl');c.tx=f;c._tx=b;c.intl_ends_in_punct=a.endsInPunct;c.intl_phonological_rules=a.phonologicalRules;},3);
__d("legacy:vector",["Vector"],function(a,b,c){a.Vector2=b('Vector');},3);
__d("legacy:dom-html",["HTML"],function(a,b,c){a.HTML=b('HTML');},3);
__d("legacy:object-core-utils",["isEmpty","copyProperties"],function(b,c,d){b.is_empty=c('isEmpty');b.copy_properties=c('copyProperties');function a(e,f){return copy_properties(window[e]||(window[e]={}),f);}b.add_properties=a;},3);
InitialJSLoader=window.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])};
__d("legacy:util",["Util"],function(a,b,c){a.Util=b('Util');},3);
function _onloadHook(){!window.loaded&&window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_prehooks');_runHooks('onloadhooks');!window.loaded&&window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_hooks');window.loaded=true;Arbiter.inform('uipage_onload',true,Arbiter.BEHAVIOR_STATE);}function _onafterloadHook(){_runHooks('onafterloadhooks');window.afterloaded=true;}function _runHook(b,c){if(/nocatch/.test(location.search))return b();try{return b();}catch(a){var err=SystemEvents.normalizeError(a);err.event_type=c;err.category='runhook';SystemEvents.informError(err);}}function _runHooks(b){var d=b=='onbeforeleavehooks'||b=='onbeforeunloadhooks';var e=null;do{var a=window[b];if(!d)window[b]=null;if(!a)break;for(var c=0;c<a.length;c++)if(d){e=e||_runHook(a[c],b);}else _runHook(a[c],b);if(d)break;}while(window[b]);if(d&&e)return e;}function keep_window_set_as_loaded(){if(window.loaded==false){window.loaded=true;_runHooks('onloadhooks');}if(window.afterloaded==false){window.afterloaded=true;_runHooks('onafterloadhooks');}}Arbiter.registerCallback(_onloadHook,[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,InitialJSLoader.INITIAL_JS_READY]);Arbiter.registerCallback(_onafterloadHook,[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,OnloadEvent.ONLOAD_CALLBACK,InitialJSLoader.INITIAL_JS_READY]);Arbiter.subscribe(OnloadEvent.ONBEFOREUNLOAD,function(b,a){a.warn=_runHooks('onbeforeleavehooks')||_runHooks('onbeforeunloadhooks');if(!a.warn){window.loaded=false;window.afterloaded=false;}},Arbiter.SUBSCRIBE_NEW);Arbiter.subscribe(OnloadEvent.ONUNLOAD,function(b,a){_runHooks('onunloadhooks');},Arbiter.SUBSCRIBE_NEW);
var PlatformOptInPopup=function(){};copy_properties(PlatformOptInPopup,{DIALOG_URL:'/connect/uiserver.php',DIALOG_WIDTH:420,DIALOG_HEIGHT:450,APP_ID:127760087237610,open:function(d,c,a){if(!d)d='generic';if(!c)c='opt.in';var b=new URI(PlatformOptInPopup.DIALOG_URL);b.addQueryData({social_plugin:d,method:c,display:'popup',secure:URI.getRequestURI().isSecure(),app_id:PlatformOptInPopup.APP_ID});if(a)b.addQueryData(a);return PopupResizer.open(b.toString(),PlatformOptInPopup.DIALOG_WIDTH,PlatformOptInPopup.DIALOG_HEIGHT);}});
__d("animation",["css"],function(d,f,g,e,c){var a=f('css');function b(h){if(h==undefined)return;if(d==this){return new b(h);}else{this.obj=h;this._reset_state();this.queue=[];this.last_attr=null;}}b.resolution=20;b.offset=0;b.prototype._reset_state=function(){this.state={attrs:{},duration:500};};b.prototype.stop=function(){this._reset_state();this.queue=[];return this;};b.prototype._build_container=function(){if(this.container_div){this._refresh_container();return;}if(this.obj.firstChild&&this.obj.firstChild.__animation_refs){this.container_div=this.obj.firstChild;this.container_div.__animation_refs++;this._refresh_container();return;}var i=document.createElement('div');i.style.padding='0px';i.style.margin='0px';i.style.border='0px';i.__animation_refs=1;var h=this.obj.childNodes;while(h.length)i.appendChild(h[0]);this.obj.appendChild(i);this._orig_overflow=this.obj.style.overflow;this.obj.style.overflow='hidden';this.container_div=i;this._refresh_container();};b.prototype._refresh_container=function(){this.container_div.style.height='auto';this.container_div.style.width='auto';this.container_div.style.height=this.container_div.offsetHeight+'px';this.container_div.style.width=this.container_div.offsetWidth+'px';};b.prototype._destroy_container=function(){if(!this.container_div)return;if(!--this.container_div.__animation_refs){var h=this.container_div.childNodes;while(h.length)this.obj.appendChild(h[0]);this.obj.removeChild(this.container_div);}this.container_div=null;this.obj.style.overflow=this._orig_overflow;};b.ATTR_TO=1;b.ATTR_BY=2;b.ATTR_FROM=3;b.prototype._attr=function(h,k,j){h=h.replace(/-[a-z]/gi,function(l){return l.substring(1).toUpperCase();});var i=false;switch(h){case 'background':this._attr('backgroundColor',k,j);return this;case 'margin':k=b.parse_group(k);this._attr('marginBottom',k[0],j);this._attr('marginLeft',k[1],j);this._attr('marginRight',k[2],j);this._attr('marginTop',k[3],j);return this;case 'padding':k=b.parse_group(k);this._attr('paddingBottom',k[0],j);this._attr('paddingLeft',k[1],j);this._attr('paddingRight',k[2],j);this._attr('paddingTop',k[3],j);return this;case 'backgroundColor':case 'borderColor':case 'color':k=b.parse_color(k);break;case 'opacity':k=parseFloat(k,10);break;case 'height':case 'width':if(k=='auto'){i=true;}else k=parseInt(k,10);break;case 'borderWidth':case 'lineHeight':case 'fontSize':case 'marginBottom':case 'marginLeft':case 'marginRight':case 'marginTop':case 'paddingBottom':case 'paddingLeft':case 'paddingRight':case 'paddingTop':case 'bottom':case 'left':case 'right':case 'top':case 'scrollTop':case 'scrollLeft':k=parseInt(k,10);break;default:throw new Error(h+' is not a supported attribute!');}if(this.state.attrs[h]===undefined)this.state.attrs[h]={};if(i)this.state.attrs[h].auto=true;switch(j){case b.ATTR_FROM:this.state.attrs[h].start=k;break;case b.ATTR_BY:this.state.attrs[h].by=true;case b.ATTR_TO:this.state.attrs[h].value=k;break;}};b._get_box_width=function(j){var k=parseInt(a.getStyle(j,'paddingLeft'),10),l=parseInt(a.getStyle(j,'paddingRight'),10),h=parseInt(a.getStyle(j,'borderLeftWidth'),10),i=parseInt(a.getStyle(j,'borderRightWidth'),10);return j.offsetWidth-(k?k:0)-(l?l:0)-(h?h:0)-(i?i:0);};b._get_box_height=function(j){var l=parseInt(a.getStyle(j,'paddingTop'),10),k=parseInt(a.getStyle(j,'paddingBottom'),10),h=parseInt(a.getStyle(j,'borderTopWidth'),10),i=parseInt(a.getStyle(j,'borderBottomWidth'),10);return j.offsetHeight-(l?l:0)-(k?k:0)-(h?h:0)-(i?i:0);};b.prototype.to=function(h,i){if(i===undefined){this._attr(this.last_attr,h,b.ATTR_TO);}else{this._attr(h,i,b.ATTR_TO);this.last_attr=h;}return this;};b.prototype.by=function(h,i){if(i===undefined){this._attr(this.last_attr,h,b.ATTR_BY);}else{this._attr(h,i,b.ATTR_BY);this.last_attr=h;}return this;};b.prototype.from=function(h,i){if(i===undefined){this._attr(this.last_attr,h,b.ATTR_FROM);}else{this._attr(h,i,b.ATTR_FROM);this.last_attr=h;}return this;};b.prototype.duration=function(h){this.state.duration=h?h:0;return this;};b.prototype.checkpoint=function(i,h){if(i===undefined)i=1;this.state.checkpoint=i;this.queue.push(this.state);this._reset_state();this.state.checkpointcb=h;return this;};b.prototype.blind=function(){this.state.blind=true;return this;};b.prototype.hide=function(){this.state.hide=true;return this;};b.prototype.show=function(){this.state.show=true;return this;};b.prototype.ease=function(h){this.state.ease=h;return this;};b.prototype.go=function(){var i=(new Date()).getTime();this.queue.push(this.state);for(var h=0;h<this.queue.length;h++){this.queue[h].start=i-b.offset;if(this.queue[h].checkpoint)i+=this.queue[h].checkpoint*this.queue[h].duration;}b.push(this);return this;};b.prototype._show=function(){a.show(this.obj);};b.prototype._hide=function(){a.hide(this.obj);};b.prototype._frame=function(t){var j=true;var s=false;var v=false;var u;function k(w){return document.documentElement[w]||document.body[w];}for(var l=0;l<this.queue.length;l++){var i=this.queue[l];if(i.start>t){j=false;continue;}if(i.checkpointcb){this._callback(i.checkpointcb,t-i.start);i.checkpointcb=null;}if(i.started===undefined){if(i.show)this._show();for(var h in i.attrs){if(i.attrs[h].start!==undefined)continue;switch(h){case 'backgroundColor':case 'borderColor':case 'color':u=b.parse_color(a.getStyle(this.obj,h=='borderColor'?'borderLeftColor':h));if(i.attrs[h].by){i.attrs[h].value[0]=Math.min(255,Math.max(0,i.attrs[h].value[0]+u[0]));i.attrs[h].value[1]=Math.min(255,Math.max(0,i.attrs[h].value[1]+u[1]));i.attrs[h].value[2]=Math.min(255,Math.max(0,i.attrs[h].value[2]+u[2]));}break;case 'opacity':u=a.getOpacity(this.obj);if(i.attrs[h].by)i.attrs[h].value=Math.min(1,Math.max(0,i.attrs[h].value+u));break;case 'height':u=b._get_box_height(this.obj);if(i.attrs[h].by)i.attrs[h].value+=u;break;case 'width':u=b._get_box_width(this.obj);if(i.attrs[h].by)i.attrs[h].value+=u;break;case 'scrollLeft':case 'scrollTop':u=(this.obj===document.body)?k(h):this.obj[h];if(i.attrs[h].by)i.attrs[h].value+=u;i['last'+h]=u;break;default:u=parseInt(a.getStyle(this.obj,h),10)||0;if(i.attrs[h].by)i.attrs[h].value+=u;break;}i.attrs[h].start=u;}if((i.attrs.height&&i.attrs.height.auto)||(i.attrs.width&&i.attrs.width.auto)){if(ua.firefox()<3)v=true;this._destroy_container();for(var h in {height:1,width:1,fontSize:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,borderBottomWidth:1,paddingLeft:1,paddingRight:1,paddingTop:1,paddingBottom:1})if(i.attrs[h])this.obj.style[h]=i.attrs[h].value+(typeof i.attrs[h].value=='number'?'px':'');if(i.attrs.height&&i.attrs.height.auto)i.attrs.height.value=b._get_box_height(this.obj);if(i.attrs.width&&i.attrs.width.auto)i.attrs.width.value=b._get_box_width(this.obj);}i.started=true;if(i.blind)this._build_container();}var p=(t-i.start)/i.duration;if(p>=1){p=1;if(i.hide)this._hide();}else j=false;var r=i.ease?i.ease(p):p;if(!s&&p!=1&&i.blind)s=true;if(v&&this.obj.parentNode){var q=this.obj.parentNode;var o=this.obj.nextSibling;q.removeChild(this.obj);}for(var h in i.attrs)switch(h){case 'backgroundColor':case 'borderColor':case 'color':this.obj.style[h]='rgb('+b.calc_tween(r,i.attrs[h].start[0],i.attrs[h].value[0],true)+','+b.calc_tween(r,i.attrs[h].start[1],i.attrs[h].value[1],true)+','+b.calc_tween(r,i.attrs[h].start[2],i.attrs[h].value[2],true)+')';break;case 'opacity':a.setStyle(this.obj,'opacity',b.calc_tween(r,i.attrs[h].start,i.attrs[h].value));break;case 'height':case 'width':this.obj.style[h]=r==1&&i.attrs[h].auto?'auto':b.calc_tween(r,i.attrs[h].start,i.attrs[h].value,true)+'px';break;case 'scrollLeft':case 'scrollTop':var m=this.obj===document.body;u=m?k(h):this.obj[h];if(i['last'+h]!==u){delete i.attrs[h];}else{var n=b.calc_tween(r,i.attrs[h].start,i.attrs[h].value,true);if(!m){n=this.obj[h]=n;}else{if(h=='scrollLeft'){d.scrollTo(n,k('scrollTop'));}else d.scrollTo(k('scrollLeft'),n);n=k(h);}i['last'+h]=n;}break;default:this.obj.style[h]=b.calc_tween(r,i.attrs[h].start,i.attrs[h].value,true)+'px';break;}if(p==1){this.queue.splice(l--,1);this._callback(i.ondone,t-i.start-i.duration);}}if(v)q[o?'insertBefore':'appendChild'](this.obj,o);if(!s&&this.container_div)this._destroy_container();return !j;};b.prototype.ondone=function(h){this.state.ondone=h;return this;};b.prototype._callback=function(h,i){if(h){b.offset=i;h.call(this);b.offset=0;}};b.calc_tween=function(h,i,j,k){return (k?parseInt:parseFloat)((j-i)*h+i,10);};b.parse_color=function(h){var i=/^#([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})$/i.exec(h);if(i){return [parseInt(i[1].length==1?i[1]+i[1]:i[1],16),parseInt(i[2].length==1?i[2]+i[2]:i[2],16),parseInt(i[3].length==1?i[3]+i[3]:i[3],16)];}else{var j=/^rgba? *\(([0-9]+), *([0-9]+), *([0-9]+)(?:, *([0-9]+))?\)$/.exec(h);if(j){if(j[4]==='0'){return [255,255,255];}else return [parseInt(j[1],10),parseInt(j[2],10),parseInt(j[3],10)];}else if(h=='transparent'){return [255,255,255];}else throw 'Named color attributes are not supported.';}};b.parse_group=function(h){h=trim(h).split(/ +/);if(h.length==4){return h;}else if(h.length==3){return [h[0],h[1],h[2],h[1]];}else if(h.length==2){return [h[0],h[1],h[0],h[1]];}else return [h[0],h[0],h[0],h[0]];};b.push=function(h){if(!b.active)b.active=[];b.active.push(h);if(b.active.length===1){if(!b.requestAnimationFrame){var i=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame;if(i)b.requestAnimationFrame=i.bind(d);}if(b.requestAnimationFrame){b.requestAnimationFrame(b._animate);}else b.timeout=setInterval(b._animate,b.resolution,false);}if(b.requestAnimationFrame)b._updateEndingTimer();b._animate(Date.now(),true);};b._updateEndingTimer=function(){if(!b.requestAnimationFrame)throw new Error('Ending timer only valid with requestAnimationFrame');var k=0;for(var h=0;h<b.active.length;h++){var m=b.active[h];for(var l=0;l<m.queue.length;l++){var i=m.queue[l].start+m.queue[l].duration;if(i>k)k=i;}}if(b.timeout){clearTimeout(b.timeout);delete b.timeout;}var j=Date.now();if(k>j)b.timeout=setTimeout(b._animate.shield(),k-j,false);};b._animate=function(k,j){k=k||Date.now();for(var i=(j===true)?b.active.length-1:0;i<b.active.length;i++)try{if(!b.active[i]._frame(k))b.active.splice(i--,1);}catch(h){b.active.splice(i--,1);}if(b.active.length===0){if(b.timeout){if(b.requestAnimationFrame){clearTimeout(b.timeout);}else clearInterval(b.timeout);delete b.timeout;}}else if(b.requestAnimationFrame)b.requestAnimationFrame(b._animate);};b.ease={};b.ease.begin=function(h){return Math.sin(Math.PI/2*(h-1))+1;};b.ease.end=function(h){return Math.sin(.5*Math.PI*h);};b.ease.both=function(h){return .5*Math.sin(Math.PI*(h-.5))+.5;};b.prependInsert=function(i,h){b.insert(i,h,DOM.prependContent);};b.appendInsert=function(i,h){b.insert(i,h,DOM.appendContent);};b.insert=function(j,h,i){a.setStyle(h,'opacity',0);i(j,h);b(h).from('opacity',0).to('opacity',1).duration(400).go();};d.animation=e.exports=b;},3);
__d("legacy:event-extensions",["event-extensions"],function(a,b,c){b('event-extensions');},3);
__d("legacy:array-utils",["ArrayUtils","hasArrayNature"],function(a,b,c){a.$A=b('ArrayUtils').createFrom;a.hasArrayNature=b('hasArrayNature');},3);
WidgetArbiter={_findSiblings:function(){if(WidgetArbiter._siblings)return;WidgetArbiter._siblings=[];for(var b=parent.frames.length-1;b>=0;b--)try{if(parent.frames[b]&&parent.frames[b].Arbiter&&parent.frames[b].Arbiter.inform)WidgetArbiter._siblings.push(parent.frames[b].Arbiter);}catch(a){}},inform:function(){WidgetArbiter._findSiblings();var a=$A(arguments);WidgetArbiter._siblings.each(function(b){b.inform.apply(b,a);});}};
__d("Locale",["css"],function(d,f,g,e,c){var a=f("css");var b={isRTL:function(){return 'rtl'===a.getStyle(document.body,'direction');}};e.exports=b;});
__d("legacy:intl-locale",["Locale"],function(a,b,c){a.intl_locale_is_rtl=b('Locale').isRTL;},3);
__d("Button",["event-extensions","css","DataStore","dom","Parent"],function(g,i,j,h,f){i('event-extensions');var b=i('css');var d=i('DataStore');var c=i('dom');var e=i('Parent');var a=(function(){var l='uiButtonDisabled';var k='uiButtonDepressed';var n='button:blocker';var m='href';function o(t,s){var r=d.get(t,n);if(s){if(r){r.remove();d.remove(t,n);}}else if(!r)d.set(t,n,Event.listen(t,'click',bagof(false),Event.Priority.URGENT));}function p(r){var s=e.byClass(r,'uiButton');if(!s)throw new Error('invalid use case');return s;}function q(r){return c.isNodeOfType(r,'a');}return {getInputElement:function(r){r=p(r);if(q(r))throw new Error('invalid use case');return c.find(r,'input');},isEnabled:function(r){return !b.hasClass(p(r),l);},setEnabled:function(u,r){u=p(u);b.conditionClass(u,l,!r);if(q(u)){var s=u.href;var v=d.get(u,m,'#');if(r){if(!s)u.href=v;}else{if(s&&s!==v)d.set(u,m,s);u.removeAttribute('href');}o(u,r);}else{var t=a.getInputElement(u);t.disabled=!r;o(t,r);}},setDepressed:function(s,r){b.conditionClass(p(s),k,r);},isDepressed:function(r){return b.hasClass(p(r),k);},setLabel:function(s,r){s=p(s);if(q(s)){var t=c.find(s,'span.uiButtonText');c.setContent(t,r);}else a.getInputElement(s).value=r;b.conditionClass(s,'uiButtonNoText',!r);},setIcon:function(s,r){if(!c.isNode(r))return;b.addClass(r,'customimg');s=p(s);var t=c.scry(s,'.img')[0];if(t!=r)if(t){c.replace(t,r);}else c.prependContent(s,r);}};})();g.Button=h.exports=a;},3);
!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;}();
__d("DOMControl",["DataStore","dom-core"],function(e,g,h,f,d){var c=g("DataStore");var a=g("dom-core").$;function b(i){this.root=a(i);this.updating=false;c.set(i,'DOMControl',this);}b.prototype={getRoot:function(){return this.root;},beginUpdate:function(){if(this.updating)return false;this.updating=true;return true;},endUpdate:function(){this.updating=false;},update:function(i){if(!this.beginUpdate())return this;this.onupdate(i);this.endUpdate();},onupdate:function(i){}};b.getInstance=function(i){return c.get(i,'DOMControl');};f.exports=b;});
__d("InputSelection",["dom","Input"],function(e,g,h,f,d){var a=g("dom");var b=g("Input");var c={get:function(j){if(!document.selection)return {start:j.selectionStart,end:j.selectionEnd};var l=document.selection.createRange();if(l.parentElement()!==j)return {start:0,end:0};var k=j.value.length;if(a.isNodeOfType(j,'input')){return {start:-l.moveStart('character',-k),end:-l.moveEnd('character',-k)};}else{var m=l.duplicate();m.moveToElementText(j);m.setEndPoint('StartToEnd',l);var i=k-m.text.length;m.setEndPoint('StartToStart',l);return {start:k-m.text.length,end:i};}},set:function(l,n,k){if(typeof k=='undefined')k=n;if(document.selection){if(l.tagName=='TEXTAREA'){var i=(l.value.slice(0,n).match(/\r/g)||[]).length;var j=(l.value.slice(n,k).match(/\r/g)||[]).length;n-=i;k-=i+j;}var m=l.createTextRange();m.collapse(true);m.moveStart('character',n);m.moveEnd('character',k-n);m.select();}else{l.selectionStart=n;l.selectionEnd=Math.min(k,l.value.length);b.focus(l);}}};f.exports=c;});
__d("enforceMaxLength",["event-extensions","function-extensions","dom","Input","InputSelection"],function(f,i,j,h,e){i("event-extensions");i("function-extensions");var a=i("dom");var b=i("Input");var c=i("InputSelection");var d=function(m,o){var s=b.getValue(m);var n=s.length;var p=n-o;if(p>0){var q;var k;try{q=c.get(m);k=q.end;}catch(l){q=null;k=0;}if(k>=p)n=k;var r=n-p;if(r&&(s.charCodeAt(r-1)&64512)===55296)r--;k=Math.min(k,r);b.setValue(m,s.slice(0,r)+s.slice(n));if(q)c.set(m,Math.min(q.start,k),k);}};var g=function(event){var k=event.getTarget();var l=k.getAttribute&&parseInt(k.getAttribute('maxlength'),10);if(l>0&&a.isNodeOfType(k,['input','textarea']))d.bind(null,k,l).defer();};Event.listen(document.documentElement,{keydown:g,paste:g});h.exports=d;});
__d("Input",["bootloader","css-core","dom","DOMControl"],function(g,j,k,i,f){var a=j("bootloader");var b=j("css-core");var c=j("dom");var d=j("DOMControl");var h=function(l){var m=l.getAttribute('maxlength');if(m&&m>0)k(["enforceMaxLength"],function(n){n(l,m);});};var e={focus:function(l){try{l.focus();}catch(m){}},isEmpty:function(l){return !(/\S/).test(l.value||'')||b.hasClass(l,'DOMControl_placeholder');},getValue:function(l){return e.isEmpty(l)?'':l.value;},setValue:function(m,n){b.removeClass(m,'DOMControl_placeholder');m.value=n||'';h(m);var l=d.getInstance(m);l&&l.resetHeight&&l.resetHeight();},setPlaceholder:function(l,m){l.setAttribute('title',m);l.setAttribute('placeholder',m);if(l==document.activeElement)return;if(e.isEmpty(l)){b.conditionClass(l,'DOMControl_placeholder',m);l.value=m||'';}},reset:function(l){var m=l!==document.activeElement?(l.getAttribute('placeholder')||''):'';l.value=m;b.conditionClass(l,'DOMControl_placeholder',m);l.style.height='';},setSubmitOnEnter:function(l,m){b.conditionClass(l,'enter_submit',m);},getSubmitOnEnter:function(l){return b.hasClass(l,'enter_submit');},setMaxLength:function(l,m){if(m>0){l.setAttribute('maxlength',m);h(l);}else l.removeAttribute('maxlength');}};i.exports=e;});
__d("legacy:input-methods",["Input","copyProperties"],function(c,d,e){var a=d('Input');var b=d('copyProperties');b(c.Input||(c.Input={}),a);},3);
onloadRegister(function(){Event.listen(document.documentElement,'submit',function(b){var a=b.getTarget().getElementsByTagName('*');for(var c=0;c<a.length;c++)if(a[c].getAttribute('placeholder')&&Input.isEmpty(a[c]))Input.setValue(a[c],'');});});
var ExternalNodeConnectWidget=function(i){copy_properties(this,{widgetID:i.widgetID,widget:$(i.widgetID),viewerID:i.viewer,nodeType:i.nodeType,viewerIsAdmin:i.viewerIsAdmin&&!i.userOptedOut,adminUrl:i.adminUrl,popupOptInParams:{},nodeUri:new URI(i.nodeURL),externalUrl:i.externalURL,pageId:i.pageId,domainId:i.domainId,layout:i.layout,edgeType:i.edgeType,error:i.error,errorURI:new URI('/'),alreadyConnected:i.alreadyConnected,usingConnectLibrary:!!i.channelURL,commentWidgetMarkup:i.commentWidgetMarkup,commentWidgetOpen:false,commentWidgetVisible:false,userProfile:null,connectStoryFbid:0,isAmbiguousText:i.isAmbiguousText,socialBar:i.socialbar,useDisconnectLink:i.useDisconnectLink,showError:i.showError,showConfirm:i.showConfirm,showFaces:i.showFaces,connectText:i.connectText,ref:i.ref,userOptedOut:i.userOptedOut,usingInlineCommenting:i.usingInlineCommenting,mobile:i.mobile,supportCommenting:!i.mobile&&(!!i.channelURL||i.usingInlineCommenting),inlineCommentListenersInitialized:false,inlineCommentFocused:false,forceCommentHooks:i.forceCommentHooks,nux:i.nux,iframeReferer:i.iframeReferer,isBlocked:i.isBlocked,isPersonalized:i.isPersonalized,confirmedConnect:i.confirmedConnect,hasSend:i.send,colorScheme:i.colorScheme,grayOut:i.grayOut});if(this.usingConnectLibrary)UnverifiedXD.init({autoResize:i.autoResize,channelUrl:i.channelURL,resizeWidth:i.autoResize&&i.layout!==ExternalNodeConnectWidget.STANDARD_LAYOUT});this.connectButtonSlider=DOM.scry(this.widget,'div.connect_button_slider');this.connectButtonContainer=null;if(this.connectButtonSlider.length){this.connectButtonSlider=this.connectButtonSlider[0];this.connectButtonContainer=DOM.find(this.connectButtonSlider,'div.connect_button_container');}else this.connectButtonSlider=null;this.connectButton=DOM.find(this.widget,'a.connect_widget_like_button');if(this.grayOut)this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');this.connectedMessage=DOM.scry(this.widget,'span.connect_widget_connected_text');this.connectedMessage=this.connectedMessage.length?this.connectedMessage[0]:null;this.notConnectedMessage=DOM.scry(this.widget,'span.connect_widget_not_connected_text');this.notConnectedMessage=this.notConnectedMessage.length?this.notConnectedMessage[0]:null;this.adminSpans=DOM.scry(this.widget,'span.connect_widget_admin_span');if(this.adminSpans.length>0){this.adminLinks=[];for(var a=0;a<this.adminSpans.length;a++)this.adminLinks[a]=DOM.find(this.adminSpans[a],'a.connect_widget_admin_option');}if(this.layout==ExternalNodeConnectWidget.STANDARD_LAYOUT){this.confirmationCell=DOM.find(this.widget,'div.connect_confirmation_cell');this.userActionTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_user_action');this.summaryTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_summary');this.summaryText=DOM.find(this.confirmationCell,'div.connect_widget_text_summary');var j=DOM.scry(this.widget,'div.connect_widget_sample_connections');this.sampleConnections=j.length>0?j[0]:null;if(i.showFaces&&i.viewer>0){var e=DOM.scry(this.widget,'div.connect_widget_logged_in_user');this.loggedInUserPhotoDiv=e.length>0?e[0]:null;}}if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.originalButtonWidth=this.computeButtonDimensions().width;this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_simple_including');this.supportCommenting=false;this.usingInlineCommenting=false;}this.setQueryData();if(this.pageId)copy_properties(this.popupOptInParams,{connect_id:this.pageId});this.errorSpans=DOM.scry(this.widget,'span.connect_widget_error_span');if(this.errorSpans.length>0){this.errorLinks=[];for(var b=0;b<this.errorSpans.length;b++)this.errorLinks[b]=DOM.find(this.errorSpans[b],'a.connect_widget_error_text');}this.confirmSpans=DOM.scry(this.widget,'span.connect_widget_confirm_span');if(this.confirmSpans.length>0){this.confirmLinks=[];for(var d=0;d<this.confirmSpans.length;d++)this.confirmLinks[d]=DOM.find(this.confirmSpans[d],'a.connect_widget_confirm_link');}this.unlikeSpans=DOM.scry(this.widget,'span.unlike_span');this.unlikeLinks=[];for(var c=0;c<this.unlikeSpans.length;c++){this.unlikeLinks[c]=DOM.find(this.unlikeSpans[c],'a.connect_widget_unlike_link');Event.listen(this.unlikeLinks[c],'click',this.connectToNodeOnClick.bind(this));}var h=DOM.scry(this.widget,'div.connect_widget_number_cloud');if(h.length==1){this.numberCloud=h[0];this.numberCloudNub=DOM.find(this.widget,'div.connect_widget_number_cloud_nub');this.numberCloudExtension=DOM.find(this.numberCloud,'div.connect_widget_number_cloud_extension');this.sizeNumberCloud();this.numberCloudUnlikeSpan=DOM.find(this.numberCloudExtension,'span.unlike_span');this.numberCloudReminderSpan=DOM.find(this.numberCloudExtension,'span.like_reminder');this.inAnimation=false;this.reminderIsVisible=CSS.hasClass(this.numberCloudUnlikeSpan,'hidden_elem');Event.listen(this.numberCloud,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloud,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',function(event){this.requiresMouseLeaveEvent=false;}.bind(this));}if(this.usingInlineCommenting&&!this.showFaces){this.shareCommentSpans=DOM.scry(this.widget,'span.connect_widget_share_comment_span');for(var f=0;f<this.shareCommentSpans.length;f++){var k=DOM.find(this.shareCommentSpans[f],'a.connect_widget_share_comment_option');Event.listen(k,'click',function(event){for(var l=0;l<this.shareCommentSpans.length;l++)CSS.addClass(this.shareCommentSpans[l],'hidden_elem');this.presentCommentingOption();}.bind(this));}}if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){XD.forced_min_width=this.getButtonCountWidgetWidth();this.numberExcluding=DOM.find(this.widget,'td.connect_widget_button_count_excluding');this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_button_count_including');this.thumbsUpIcon=DOM.find(this.summaryIncluding,'div.thumbs_up');this.undoRegion=DOM.find(this.summaryIncluding,'div.undo');this.originalButtonWidth=this.computeButtonDimensions().width;Event.listen(this.thumbsUpIcon,'mouseenter',function(event){this.undoButton=DOM.find(this.undoRegion,'label.undo_button input');Event.listen(this.undoButton,'click',this.connectToNodeOnClick.bind(this));CSS.addClass(this.thumbsUpIcon,'hidden_elem');CSS.removeClass(this.undoRegion,'hidden_elem');}.bind(this));Event.listen(this.undoRegion,'mouseleave',function(event){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}.bind(this));}if(!this.isBlocked){Event.listen(this.connectButton,'click',this.primaryLikeButtonOnClick.bind(this));if(this.grayOut)Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}if(this.adminLinks)for(var a=0;a<this.adminLinks.length;a++)Event.listen(this.adminLinks[a],'click',this.presentAdminPage.bind(this));if(this.errorLinks)for(var a=0;a<this.errorLinks.length;a++)Event.listen(this.errorLinks[a],'click',this.presentErrorDialog.bind(this));if(this.confirmLinks)for(var g=0;g<this.confirmLinks.length;g++)Event.listen(this.confirmLinks[g],'click',this.presentConfirmDialog.bind(this));if(i.showCaptcha){this.showCaptcha=true;this.connectToNode(true);}if(this.forceCommentHooks)this.setupCommentHooks($(this.forceCommentHooks));this.textInputMarginWithButton=5;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/send/resize',this.syncSendWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/like/resize',{button_width:this.computeButtonDimensionsWithPadding().width,widget_width:Vector2.getElementDimensions(this.widget).x,layout:this.layout},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(m,l){if(l.controllerID!==this.widgetID)this.otherCommentWidgetOpen=(l.event=='open');}.bind(this));Arbiter.subscribe('platform/socialplugins/dialog',function(m,l){if(l.controllerID!==this.divID&&l.event=='open')this.closeCommentWidget();}.bind(this));this.subscribeToSync(i);};copy_properties(ExternalNodeConnectWidget,{STANDARD_LAYOUT:'standard',BOX_COUNT_LAYOUT:'box_count',BUTTON_COUNT_LAYOUT:'button_count',SIMPLE_LAYOUT:'simple',COLOR_DARK:0,COLOR_LIGHT:1,OPT_IN_FACEBOOK_APP_ID:'127760087237610',updateLoggedInUser:function(b){var a=ExternalNodeConnectWidget.controllerManagingLogin;a.setLoggedIn(b);a.connectToNode(true);a.userOptedOut=false;delete ExternalNodeConnectWidget.controllerManagingLogin;Arbiter.inform('platform/socialplugins/login',{user:b.user},Arbiter.BEHAVIOR_STATE);WidgetArbiter.inform('platform/socialplugins/login',{user:b.user},Arbiter.BEHAVIOR_STATE);},onCommentWidgetLoaded:function(a){var b=ExternalNodeConnectWidget.self;delete ExternalNodeConnectWidget.self;b.injectCommentWidgetMarkup(a);}});copy_properties(ExternalNodeConnectWidget.prototype,{getSyncEndpointName:function(){},getConnectionEndpointName:function(){},getPluginName:function(){},subscribeToSync:function(a){Arbiter.subscribe('platform/socialplugins/login',function(c,b){if(this.viewerID&&b.user!==this.viewerID)document.location.reload();}.bind(this));Arbiter.subscribe(this.getSyncEndpointName(),function(c,b){if(b.externalUrl==a.externalURL){this.userOptedOut=false;this.updateWidget(b.opts,true);}}.bind(this));},setQueryData:function(){copy_properties(this.popupOptInParams,{protocol:window.location.protocol,external_page_url:this.externalUrl});if(this.nux)copy_properties(this.popupOptInParams,{nux:this.nux,referer:this.iframeReferer});},updateWidget:function(e,d,b){var a=(this.alreadyConnected!=e.nowConnected)||(this.showConfirm!=e.showConfirm);if(!d)Arbiter.inform(this.getConnectionEndpointName(),e,Arbiter.BEHAVIOR_STATE);this.alreadyConnected=e.nowConnected;this.viewerIsAdmin=e.isAdmin;this.showError=e.showError;this.showConfirm=e.showConfirm;this.adminUrl=e.adminUrl;this.userProfile=e.userProfile;this.connectStoryFbid=e.connectStoryFbid;this.error=e.error;if(!e.nowConnected)this.closeCommentWidget();if(a&&!d||b){var c=e.nowConnected?'edgeCreated':'edgeRemoved';UnverifiedXD.send({type:c});}if(a||this.error)this.syncWidgetDisplay();if(!d||b)WidgetArbiter.inform(this.getSyncEndpointName(),{externalUrl:this.externalUrl,opts:e},Arbiter.BEHAVIOR_STATE);},presentOptIn:function(){ExternalNodeConnectWidget.controllerManagingLogin=this;PlatformOptInPopup.open(this.getPluginName(),'opt.inlike',this.popupOptInParams);UnverifiedXD.send({type:'authPrompted'});},setLoggedIn:function(a){this.viewerID=a.user;this.newProfilePic=a.profilePic;this.placeFormUserCheck(a.formUserCheck,a.fbDtsg);},placeFormUserCheck:function(b,a){Env.fb_dtsg=a;if(ge('post_form_id')){DOM.replace($('post_form_id'),HTML(b));}else DOM.appendContent(DOM.find(document,'body'),HTML(b));},syncWidgetWithServer:function(c){var b=c.getPayload();if(b.requires_login){this.updateWidget({nowConnected:false,isAdmin:false},false);this.presentOptIn();return;}var a={nowConnected:b.success&&b.already_connected,isAdmin:b.is_admin,showError:b.show_error,showConfirm:b.show_confirm,adminUrl:b.admin_url,userProfile:b.user_profile,connectStoryFbid:b.story_fbid,error:b.error_info};this.updateWidget(a,!b.success,b.success);if(b.success&&this.showCaptcha){window.opener.location.reload();window.close();}},getButtonCountWidgetWidth:function(){var a=DOM.find(this.widget,'table.connect_widget_interactive_area');var b=CSS.getStyle(a,'width');return parseInt(b,10);},sizeNumberCloud:function(){this.collapsedNumberCloudHeight=this.getCollapsedNumberCloudHeight();this.expandedNumberCloudHeight=this.collapsedNumberCloudHeight+this.getNumberCloudExtensionHeight();if(this.alreadyConnected)CSS.setStyle(this.numberCloud,'height',this.expandedNumberCloudHeight+'px');var a=this.computeButtonDimensionsWithPadding().width;XD.forced_min_width=a;var b=intl_locale_is_rtl();a-=2;CSS.setStyle(this.numberCloud,'width',a+'px');CSS.setStyle(this.numberCloud,'visibility','visible');animation(this.numberCloud).from('opacity',0).to('opacity',1).duration(100).go();},getCollapsedNumberCloudHeight:function(){var b=Vector2.getElementDimensions(this.numberCloud).y;var d=parseInt(CSS.getStyle(this.numberCloud,'paddingTop'),10);var c=parseInt(CSS.getStyle(this.numberCloud,'paddingBottom'),10);var a=parseInt(CSS.getStyle(this.numberCloud,'border'),10);return b-d-c-2;},getNumberCloudExtensionHeight:function(){CSS.addClass(this.numberCloudExtension,'connect_widget_offscreen');if(!this.alreadyConnected)CSS.removeClass(this.numberCloudExtension,'hidden_elem');var a=Vector2.getElementDimensions(this.numberCloudExtension).y;if(!this.alreadyConnected)CSS.addClass(this.numberCloudExtension,'hidden_elem');CSS.removeClass(this.numberCloudExtension,'connect_widget_offscreen');return a;},restoreReminderSpan:function(event){if(this.reminderIsVisible||this.inAnimation)return;this.animateReminderSpanReappearance();},animateReminderSpanReappearance:function(){if(this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.setStyle(this.numberCloudReminderSpan,'opacity',0);CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloudReminderSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=true;}.bind(this)).go();},exposeUnlikeSpan:function(event){if(!this.alreadyConnected||this.requiresMouseLeaveEvent||!this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudReminderSpan,'hidden_elem');CSS.setStyle(this.numberCloudUnlikeSpan,'opacity',0);CSS.removeClass(this.numberCloudUnlikeSpan,'hidden_elem');animation(this.numberCloudUnlikeSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=false;}.bind(this)).go();},conditionallyActivateButton:function(event){this.commentButtonIsActive=this.inlineCommentInput.value.trim().length>0;},updateConnectionWithComment:function(event){Event.kill(event);if(this.commentButtonIsActive){this.postInlineComment();this.resetInlineComment();this.closeInlineComment();}},postInlineComment:function(){this.postUserComment(this.inlineCommentInput.value.trim(),false,'iframe');},resetInlineComment:function(){this.concealCommentButton();var a=this.inlineCommentInput.getAttribute('placeholder');this.inlineCommentInput.value=a;},showInlineComment:function(event){Event.kill(event);if(!this.inlineCommentFlyoutOpen||this.inlineCommentFlyoutVisible||this.showConfirm||this.error)return;this.inlineCommentFlyoutVisible=true;CSS.show(this.inlineCommentFlyout);},hideInlineComment:function(event){if(event)Event.kill(event);if(this.inlineCommentFocused||!this.inlineCommentFlyoutOpen||!this.inlineCommentFlyoutVisible)return;if(event&&DOM.contains(this.inlineCommentFlyout,event.getRelatedTarget()))return;var b=this.inlineCommentInput.value.trim();var a=this.inlineCommentInput.getAttribute('placeholder');if(b.length>0&&b!=a)return;this.inlineCommentFlyoutVisible=false;CSS.hide(this.inlineCommentFlyout);},closeInlineComment:function(){this.inlineCommentFlyoutVisible=false;this.inlineCommentFlyoutOpen=false;CSS.hide(this.inlineCommentFlyout);this.resetInlineComment();},concealCommentButton:function(){CSS.addClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);},positionInlineCommentFlyout:function(){CSS.addClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.removeClass(this.inlineCommentFlyout,'hidden_elem');var b=0;var a=this.computeButtonDimensions();var e=a.height;var d=this.grayOut?b:b+20;var g=intl_locale_is_rtl()?'right':'left';if(this.showFaces){var k=DOM.scry(this.widget,'span.connect_widget_text')[0];var h=intl_locale_is_rtl()?'paddingRight':'paddingLeft';var l=CSS.getStyle(k,h);d=this.grayOut?b:b+parseInt(l,10);var i=Vector2.getElementDimensions(this.sampleConnections).y;e=i-3;}var j=Vector2.getElementDimensions(this.summaryText).y;if(j>15)e+=2;CSS.setStyle(this.inlineCommentFlyout,g,d+'px');CSS.setStyle(this.inlineCommentFlyout,'top',(-e)+'px');var n=Vector2.getElementPosition(this.widget,'document').x;var m=Vector2.getElementDimensions(this.widget).x;var o=n+m-d-5;CSS.setStyle(this.inlineCommentFlyout,'width',o+'px');CSS.removeClass(this.inlineCommentButton,'hidden_elem');var f=Vector2.getElementDimensions(this.inlineCommentButton).x;CSS.addClass(this.inlineCommentButton,'hidden_elem');var c=(this.inlineCommentClose)?15:0;this.textInputWidthWithoutButton=o-24-c;this.textInputWidthWithButton=this.textInputWidthWithoutButton-f-this.textInputMarginWithButton-1;CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);CSS.removeClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.addClass(this.inlineCommentFlyout,'hidden_elem');},postUserComment:function(a,c,d){var b={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,connect_text:this.connectText,story_fbid:this.connectStoryFbid,comment:a,widget_type:d||'xfbml',own_product:c};new AsyncRequest().setURI(this.getCommentAjaxEndpoint()).setData(b).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();this.closeCommentWidget();},closeCommentWidget:function(){if(this.commentWidgetOpen){delete this.inGracePeriod;delete this.commentWidgetIsExpanded;this.commentWidgetVisible=false;this.commentWidgetOpen=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});}},presentAdminPage:function(){var a='_blank';window.open(this.adminUrl.toString(),a);},presentErrorDialog:function(){if(!this.error.errorUri)return;var b='_blank';var a='toolbar=0, status=0, width=960, height=300';window.open(this.error.errorUri.toString(),b,a);},presentConfirmDialog:function(){var b='_blank';var a='toolbar=0,status=0,width=450,height=200,scrollbars=0,location=0,menubar=0';if(!window.confirmDialogReturn)window.confirmDialogReturn={};window.confirmDialogReturn[this.widgetID]=this;var c=this.getConfirmURL();window.open(c,b,a);},returnFromConfirmDialog:function(a){if(a){this.showConfirm=null;this.confirmedConnect=a;this.connectToNode(!this.alreadyConnected);}else this.updateWidget({nowConnected:this.alreadyConnected,showConfirm:null,isAdmin:this.viewerIsAdmin},false);},syncWidgetDisplay:function(){var a=this.alreadyConnected;this.setButtonState(a);this.showElementIf(this.connectedMessage,a);this.showElementIf(this.notConnectedMessage,!a);if(this.adminSpans)for(var b=0;b<this.adminSpans.length;b++)this.showElementIf(this.adminSpans[b],this.viewerIsAdmin);if(this.errorSpans)for(var c=0;c<this.errorSpans.length;c++)this.showElementIf(this.errorSpans[c],this.error&&(this.viewerIsAdmin||this.showError));for(var f=0;f<this.confirmSpans.length;f++)this.showElementIf(this.confirmSpans[f],!this.alreadyConnected&&this.showConfirm);for(var d=0;d<this.unlikeSpans.length;d++)this.showElementIf(this.unlikeSpans[d],this.alreadyConnected);if(this.shareCommentSpans)for(var e=0;e<this.shareCommentSpans.length;e++)this.showElementIf(this.shareCommentSpans[e],a);this.showElementIf(this.connectButton,(!this.useDisconnectLink||!a)&&!this.showConfirm);if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT){this.manageBoxCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){this.manageButtonCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.manageSimpleButtonAnimation(a);}else this.manageStandardButtonAnimation(a);if(!this.loggedInUserPhotoDiv)return;if(a){this.slideUserPhotoIn(this.loggedInUserPhotoDiv);}else this.slideUserPhotoOut(this.loggedInUserPhotoDiv);},manageStandardButtonAnimation:function(a){if(this.grayOut)return;if(this.alreadyConnected||this.showConfirm){this.hideButton(true);}else this.hideButton(false);},setButtonState:function(a){if(a){CSS.removeClass(this.connectButton,'like_button_no_like');CSS.addClass(this.connectButton,'like_button_like');this.fixIEButtonDoubleLineBug();}else{CSS.addClass(this.connectButton,'like_button_no_like');CSS.removeClass(this.connectButton,'like_button_like');}},fixIEButtonDoubleLineBug:function(){if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&ua.ie()<=7&&!this.hasBeenFixed){var a=this.computeButtonDimensionsWithPadding();CSS.setStyle(this.connectButton,'width',a.width+1);this.hasBeenFixed=true;}},hideButton:function(a){if(this.layout!=='standard')return;if(this.oAnimateBlind)this.oAnimateBlind.stop();this.oAnimateBlind=animation(this.connectButtonSlider).duration(150);var c=1,b=intl_locale_is_rtl(),d=b?'marginRight':'marginLeft',e=b?'marginLeft':'marginRight';if(a){CSS.addClass(this.connectButtonContainer,'hidden');this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonContainer,d,'2px');CSS.setStyle(this.connectButtonContainer,'visibility','hidden');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_no_like');this.oAnimateBlind=null;}.bind(this));}else{CSS.setStyle(this.connectButtonContainer,d,'0px');c=Vector2.getElementDimensions(this.connectButton).x;this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonSlider,'overflow','visible');CSS.setStyle(this.connectButtonSlider,'width','auto');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_no_like');CSS.setStyle(this.connectButtonContainer,'visibility','visible');CSS.removeClass(this.connectButtonContainer,'hidden');this.oAnimateBlind=null;}.bind(this));}this.oAnimateBlind.to('width',c).blind().go();},showElementIf:function(a,b){if(!a)return;if(b){CSS.show(a);}else CSS.hide(a);},slideUserPhotoIn:function(b){if(!CSS.hasClass(b,'connect_widget_user_not_connected'))return;var a=CSS.getStyle(b,'width');CSS.setStyle(b,'width',0);CSS.setStyle(b,'opacity',0);CSS.removeClass(b,'connect_widget_user_not_connected');animation(b).to('width',a).duration(100).checkpoint().to('opacity',1).duration(400).go();},slideUserPhotoOut:function(a){if(CSS.hasClass(a,'connect_widget_user_not_connected'))return;animation(a).to('opacity',0).duration(100).checkpoint(.25).to('width',0).duration(100).ondone(function(){CSS.addClass(a,'connect_widget_user_not_connected');CSS.setStyle(a,'width',null);}).go();},primaryLikeButtonOnClick:function(event){if(this.grayOut&&this.alreadyConnected&&!this.mobile)return;this.connectToNodeOnClick(event);if(this.tombstoneCross&&this.alreadyConnected)DOM.replace(this.tombstoneCross,HTML('<div class="tombstone_cross tombstone_cross_static" />'));setTimeout(function(){this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');CSS.removeClass(this.tombstoneCross,'tombstone_cross_static');Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}.bind(this),1000);},_clickLocked:false,connectToNodeOnClick:function(event){Event.kill(event);if(!this._clickLocked){this._clickLocked=true;setTimeout(function(){this._clickLocked=false;}.bind(this),1000);if(this.viewerID==0||this.userOptedOut){this.presentOptIn();}else this.connectToNode(!this.alreadyConnected);}},connectToNode:function(d){if(!d){if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT)return;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.removeClass(this.summaryTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',1);}if(this.shareCommentSpans)for(var b=0;b<this.shareCommentSpans.length;b++)CSS.addClass(this.shareCommentSpans[b],'hidden_elem');if(this.commentWidgetOpen){this.closeCommentWidget();}else if(this.inlineCommentFlyoutOpen)this.closeInlineComment();}this.updateWidget({nowConnected:!this.alreadyConnected,isAdmin:this.viewerIsAdmin},true);var a={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,layout:this.layout,is_personalized:this.isPersonalized,show_captcha:this.showCaptcha,connect_text:this.connectText,ref:this.ref,now_connected:d,post_form_id:$('post_form_id').value,iframe_referer:this.iframeReferer};if(this.confirmedConnect)a.confirm=1;new AsyncRequest().setURI(this.getAjaxEndpoint()).setHandler(this.syncWidgetWithServer.bind(this)).setData(a).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();if(d){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT)this.requiresMouseLeaveEvent=true;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.setStyle(this.userActionTextSpan,'opacity',1);CSS.removeClass(this.userActionTextSpan,'hidden_elem');CSS.addClass(this.summaryTextSpan,'hidden_elem');Event.listen(this.widget,'mouseleave',this.transitionBetweenMessages.bind(this));}if(this.shareCommentSpans){for(var c=0;c<this.shareCommentSpans;c++)CSS.removeClass(this.shareCommentSpans[c],'hidden_elem');}else if(this.supportCommenting)this.presentCommentingOption();this.repositionFacepileVertically();}},transitionBetweenMessages:function(event){if(!this.alreadyConnected||CSS.hasClass(this.userActionTextSpan,'hidden_elem'))return;animation(this.userActionTextSpan).to('opacity',0).duration(500).ondone(function(){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',0);CSS.removeClass(this.summaryTextSpan,'hidden_elem');animation(this.summaryTextSpan).to('opacity',1).duration(500).ondone(function(){this.repositionFacepileVertically();}.bind(this)).go();this.positionInlineCommentFlyout();}.bind(this)).go();},presentCommentingOption:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.widgetID,event:'open'});if(this.usingConnectLibrary){ExternalNodeConnectWidget.self=this;var a={type:'presentEdgeCommentDialog',masterFrameName:window.name,version:2};if(this.layout==ExternalNodeConnectWidget.BOX_COUNT_LAYOUT){a.preComputedWidthOffset=this.computeButtonDimensionsWithPadding().width;if(!intl_locale_is_rtl())a.preComputedWidthOffset+=8;}if(this.socialBar){a.left=parseInt(CSS.getStyle(document.getElementById('profile'),'width'),10)+1;}else if(this.hasSend&&this.layout==ExternalNodeConnectWidget.STANDARD_LAYOUT)a.preComputedWidthOffset=this.invertedButtons?0:65;UnverifiedXD.send(a);this.commentWidgetOpen=true;this.commentWidgetVisible=true;this.commentWidgetExpanded=true;}else if(this.usingInlineCommenting)if(!this.inlineCommentListenersInitialized){this.unwrapComment();this.initializeInlineCommentListeners();this.openInlineCommentFlyout();this.positionInlineCommentFlyout();this.inlineCommentListenersInitialized=true;}else{this.positionInlineCommentFlyout();this.openInlineCommentFlyout();}},unwrapComment:function(){if(this.unwrapComment.done)return;var b=$('connect-widget-comment-box-markup'),a=ExternalNodeConnectWidget.commentMarkup;b.innerHTML=a;this.unwrapComment.done=true;},initializeInlineCommentListeners:function(){this.inlineCommentFlyout=DOM.find(this.widget,'.connect_widget_comment_box');this.inlineCommentInput=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_textinput');this.inlineCommentButton=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_button');this.inlineCommentClose=DOM.scry(this.inlineCommentFlyout,'.connect_widget_comment_close_button');if(this.inlineCommentClose.length>0)this.inlineCommentClose=this.inlineCommentClose[0];this.commentButtonIsActive=false;Event.listen(this.inlineCommentInput,'keyup',this.conditionallyActivateButton.bind(this));Event.listen(this.inlineCommentInput,'focus',function(){this.inlineCommentFocused=true;this.exposeCommentButton();}.bind(this));Event.listen(this.inlineCommentButton,'click',this.updateConnectionWithComment.bind(this));Event.listen(this.inlineCommentInput,'blur',function(){this.inlineCommentFocused=false;this.hideInlineComment();}.bind(this));Event.listen(this.widget,'mouseout',this.hideInlineComment.bind(this));Event.listen(this.widget,'mouseover',this.showInlineComment.bind(this));if(this.inlineCommentClose)Event.listen(this.inlineCommentClose,'click',function(event){for(var a=0;a<this.shareCommentSpans.length;a++)CSS.removeClass(this.shareCommentSpans[a],'hidden_elem');this.closeInlineComment();}.bind(this));},exposeCommentButton:function(event){if(!CSS.hasClass(this.inlineCommentButton,'hidden_elem'))return;CSS.removeClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',this.textInputMarginWithButton+'px');},openInlineCommentFlyout:function(){CSS.show(this.inlineCommentFlyout);this.inlineCommentFlyoutOpen=true;this.inlineCommentFlyoutVisible=true;},manageBoxCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateBoxCountButtonDisappearance();}else this.animateBoxCountButtonReappearance();},animateBoxCountButtonDisappearance:function(){if(this.grayOut)return;CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.numberCloudExtension,'opacity',0);CSS.removeClass(this.numberCloudExtension,'hidden_elem');CSS.addClass(this.numberCloudNub,'hidden_elem');CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloud).to('height',this.expandedNumberCloudHeight).duration(100).ondone(function(){animation(this.numberCloudExtension).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateBoxCountButtonReappearance:function(){CSS.addClass(this.numberCloudExtension,'hidden_elem');animation(this.numberCloud).to('height',this.collapsedNumberCloudHeight).duration(75).ondone(function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.setStyle(this.connectButton,'opacity',0);CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('opacity',0).to('opacity',1).duration(75).ondone(function(){CSS.setStyle(this.numberCloudNub,'opacity',0);CSS.removeClass(this.numberCloudNub,'hidden_elem');animation(this.numberCloudNub).from('opacity',0).to('opacity',1).duration(50).go();}.bind(this)).go();}}.bind(this)).go();},manageButtonCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateButtonCountButtonDisappearance();}else this.animateButtonCountButtonReappearance();if(!this.grayOut){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}},manageSimpleButtonAnimation:function(a){if(this.grayOut)return;if(a&&!this.showConfirm){this.animateSimpleButtonDisappearance();}else this.animateSimpleButtonReappearance();},animateButtonCountButtonDisappearance:function(){if(!this.grayOut)animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');}.bind(this)).duration(100).go();animation(this.numberExcluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.numberExcluding,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},animateSimpleButtonDisappearance:function(){animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).duration(50).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},computeButtonDimensions:function(){var c=CSS.hasClass(this.connectButton,'hidden_elem');if(c){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var a=Vector2.getElementDimensions(this.connectButton);var d=a.x;var b=a.y;var f=parseInt(CSS.getStyle(this.connectButton,'paddingLeft'),10);var g=parseInt(CSS.getStyle(this.connectButton,'paddingRight'),10);var h=parseInt(CSS.getStyle(this.connectButton,'paddingTop'),10);var e=parseInt(CSS.getStyle(this.connectButton,'paddingBottom'),10);if(c){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:d-f-g-2,height:b};},computeButtonDimensionsWithPadding:function(){var c=CSS.hasClass(this.connectButton,'hidden_elem');if(c){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var a=Vector2.getElementDimensions(this.connectButton);var d=a.x;var b=a.y;if(ua.ie())d+=3;if(c){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:d,height:b};},animateButtonCountButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else if(!this.grayOut){CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');CSS.setStyle(this.numberExcluding,'opacity',0);CSS.removeClass(this.numberExcluding,'hidden_elem');animation(this.numberExcluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateSimpleButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');}.bind(this)).go();},injectCommentWidgetMarkup:function(a){this.commentDocument=a;this.commentDocument.body.innerHTML=this.commentWidgetMarkup;this.transferCSSStyles();if(this.newProfilePic){var c=DOM.find(this.commentDocument,'img.connect_comment_widget_user_pic');c.src=this.newProfilePic;delete this.newProfilePic;}if(ua.ie()){var f=DOM.scry(this.commentDocument,'.connect_comment_share_preview_pic');if(f.length>0){f=f[0];var e=50;var d=Vector2.getElementDimensions(f);var g=e/d.x;if(g<1){CSS.setStyle(f,'width',e);CSS.setStyle(f,'height',d.y*g);}}}this.setupCommentHooks(this.commentDocument);this.commentWidgetIsExpanded=!this.inlineUnlikeLink;var b=this.getCommentActivatingComponent();b.onmouseout=this.commentDocument.body.onmouseout=this.onCommentMouseOut.bind(this);b.onmouseover=this.commentDocument.body.onmouseover=this.onCommentMouseOver.bind(this);this.inGracePeriod=false;},onCommentMouseOut:function(a){if(this.mouseclickToDismiss){this.mouseOutside=true;return true;}else return this.hideCommentWidget();},onCommentMouseOver:function(a){if(this.mouseclickToDismiss){this.mouseOutside=false;return true;}else return this.showCommentWidget();},setupCommentHooks:function(a){this.placeholderInputRegion=DOM.find(a,'div.connect_comment_widget_placeholder_input_region');this.placeholderInput=DOM.find(this.placeholderInputRegion,'input.connect_comment_widget_placeholder_input');this.fullInputRegion=DOM.find(a,'div.connect_comment_widget_full_input_region');this.fullInputTextarea=DOM.find(this.fullInputRegion,'textarea.connect_comment_widget_full_input_textarea');this.ownProductCheckbox=DOM.scry(a,'.connect_comment_widget_own_product_checkbox');if(this.ownProductCheckbox.length>0)this.ownProductCheckbox=this.ownProductCheckbox[0];this.widgetButtonRegion=DOM.find(a,'div.connect_comment_widget_button_region');this.postToFacebookButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_post_button input');if(this.postToFacebookButton.length>0){this.postToFacebookButton=this.postToFacebookButton[0];this.postToFacebookButton.onclick=this.updateUserComment.bind(this);}this.closeButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_close_button input');if(this.closeButton.length>0){this.closeButton=this.closeButton[0];this.closeButton.onclick=this.closeCommentWidget.bind(this);this.sendOnEnter=true;}this.mouseclickToDismiss=CSS.hasClass(this.widgetButtonRegion,'mouseclicktodismiss');this.inlineUnlikeLink=DOM.scry(a,'a.connect_comment_widget_unlike_link');if(this.inlineUnlikeLink.length>0){this.inlineUnlikeLink=this.inlineUnlikeLink[0];this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);}this.defaultInputText=this.placeholderInput.value;this.placeholderInput.onfocus=this.transitionToFullInputMode.bind(this);this.fullInputTextarea.onfocus=this.removePlaceholderText.bind(this);this.fullInputTextarea.onblur=(function(b){this.restorePlaceholderText();if(this.mouseclickToDismiss&&this.mouseOutside)return this.hideCommentWidget();}).bind(this);if(this.inlineUnlikeLink)this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);if(this.closeButton)this.closeButton.onclick=this.closeCommentWidget.bind(this);this.sendOnEnter=(CSS.hasClass(this.widgetButtonRegion,'sendonenter')||this.sendOnEnter);if(this.sendOnEnter){this.fullInputTextarea.onkeydown=(function(b){b=b||window.event;if(!b)return true;if(this.sendOnEnter&&b.keyCode==13&&!(b.ctrlKey||b.shiftKey||b.altKey||b.metaKey)){this.updateUserComment();return false;}if(this.didResetOnKeydown)return true;this.removePlaceholderText();this.didResetOnKeydown=true;return true;}).bind(this);this.transitionToFullInputMode();}},getCommentActivatingComponent:function(){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT||this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){return this.widget;}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){return this.widget;}else if(this.grayOut){return DOM.find(this.widget,'table.connect_widget_interactive_area');}else return this.confirmationCell;},showCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=true;this.killCloseThread();if(this.commentWidgetOpen&&!this.commentWidgetVisible){this.commentWidgetVisible=true;CSS.show(this.commentDocument.body);UnverifiedXD.send({type:'showEdgeCommentDialog'});}return false;},hideCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=false;if(this.commentWidgetOpen&&this.commentWidgetVisible){var a=function(){if(!this.inGracePeriod&&this.shouldHideExpandedWidget()){this.fullInputTextarea.blur();this.commentWidgetVisible=false;if(!this.socialBar)CSS.hide(this.commentDocument.body);UnverifiedXD.send({type:'hideEdgeCommentDialog'});}this.inGracePeriod=false;this.killCloseThread();}.bind(this);this.closeThreadID=setTimeout(a,100);}return false;},shouldHideExpandedWidget:function(){return !this.commentWidgetIsExpanded||this.fullInputTextarea.value===''||this.fullInputTextarea.value===this.defaultInputText;},killCloseThread:function(){if(this.closeThreadID){clearTimeout(this.closeThreadID);delete this.closeThreadID;}},transferCSSStyles:function(){var e=DOM.scry(window.document,'link');var f=DOM.scry(window.document,'style');var d=DOM.find(window.document,'html');var h=DOM.find(this.commentDocument,'html');var g=DOM.find(this.commentDocument,'head');for(var b=0;b<e.length;b++)if(e[b].rel=='stylesheet'){var c=this.commentDocument.createElement('link');c.rel=e[b].rel;c.href=e[b].href;c.type=e[b].type;g.appendChild(c);}for(b=0;b<f.length;b++){var i=this.commentDocument.createElement('style');var a=f[b].innerText||f[b].textContent||f[b].innerHTML;i.setAttribute("type","text/css");g.appendChild(i);if(i.styleSheet){i.styleSheet.cssText=a;}else{var j=this.commentDocument.createTextNode(a);i.appendChild(j);}}h.id=d.id;h.className=d.className;this.commentDocument.body.className=window.document.body.className;},transitionToFullInputMode:function(event){this.commentWidgetIsExpanded=true;CSS.hide(this.placeholderInputRegion);CSS.show(this.fullInputRegion);CSS.show(this.widgetButtonRegion);if(this.closeButton||this.sendOnEnter){this.restorePlaceholderText();var b=this.fullInputTextarea;if(document.selection){var a=b.createTextRange();a.collapse(true);a.moveEnd('character',0);a.moveStart('character',0);a.select();}else if(b.setSelectionRange){b.focus();b.setSelectionRange(0,0);}}return false;},removePlaceholderText:function(event){if(CSS.hasClass(this.fullInputTextarea,'connect_comment_widget_disabled')){CSS.removeClass(this.fullInputTextarea,'connect_comment_widget_disabled');this.fullInputTextarea.value='';}return false;},restorePlaceholderText:function(event){if(this.fullInputTextarea.value.trim()==''){this.fullInputTextarea.value=this.defaultInputText;CSS.addClass(this.fullInputTextarea,'connect_comment_widget_disabled');}return false;},updateUserComment:function(event){var b=this.fullInputTextarea.value.trim();var a=this.ownProductCheckbox.checked;if(b===''||b==this.defaultInputText){if(a===false)return false;b='';}this.postUserComment(b,a);return false;},getAjaxEndpoint:function(){return '/ajax/connect/external_node_connect.php';},getCommentAjaxEndpoint:function(){return '/ajax/connect/external_edge_comment.php';},getConfirmURL:function(){var a={href:this.externalUrl,page_id:this.pageId,node_type:this.nodeType,edge_type:this.edgeType,widget_id:this.widgetID};if(this.ref)a.ref=this.ref;return URI('/plugins/like_confirm.php').addQueryData(a).toString();},updateLoggedInUser:function(b,a){ExternalNodeConnectWidget.updateLoggedInUser(b,a);},syncSendWidgetWidth:function(h,b){var a=this.computeButtonDimensionsWithPadding().width;var c=b.button_width-a;if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT&&c>0&&c<=5){CSS.setStyle(this.connectButton,'width',(b.button_width-parseInt(CSS.getStyle(this.connectButton,'paddingLeft'))-parseInt(CSS.getStyle(this.connectButton,'paddingRight'))-parseInt(CSS.getStyle(this.connectButton,'borderLeftWidth'))-parseInt(CSS.getStyle(this.connectButton,'borderRightWidth')))+'px');this.sizeNumberCloud();}if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT){var d=Vector2.getElementDimensions(this.widget).y;CSS.setStyle(this.widget,'height',(d+5)+'px');var e=ua.ie();var f=intl_locale_is_rtl();var g=f?'right':'left';if(e&&e<9){CSS.setStyle(this.connectButton,'position','absolute');CSS.setStyle(this.connectButton,g,-(b.button_width+10)+'px');}else{CSS.setStyle(this.connectButton,'position','fixed');CSS.setStyle(this.connectButton,g,'0px');}if(e&&this.connectButtonSlider){CSS.setStyle(this.connectButtonSlider,g,b.button_width+'px');if(e<=7)this.fixIEButtonDoubleLineBug();}CSS.setStyle(this.confirmationCell,'position','absolute');CSS.setStyle(this.confirmationCell,g,(b.button_width+a+5)+'px');CSS.setStyle(this.confirmationCell,'top','5px');if(this.sampleConnections){CSS.setStyle(this.sampleConnections,'position','fixed');CSS.setStyle(this.sampleConnections,g,'0');}this.invertedButtons=true;this.repositionFacepileVertically();}},repositionFacepileVertically:function(){if(this.invertedButtons&&this.sampleConnections){var a=Vector2.getElementDimensions(this.summaryText).y;CSS.setStyle(this.sampleConnections,'margin-top',(5+a+5)+'px');}}});
var ExternalPageLikeWidget=function(a){a.edgeType='like';this.parent.construct(this,a);this.unactionLink=DOM.scry(this.widget,'span.unlike_link')[0];if(this.unactionLink)Event.listen(this.unactionLink,'click',this.connectToNodeOnClick.bind(this));this.hasShowedInsights=false;this.showInsights();};Class.extend(ExternalPageLikeWidget,'ExternalNodeConnectWidget');ExternalPageLikeWidget.LIKE_EDGE_TYPE=0;ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE=1;copy_properties(ExternalPageLikeWidget.prototype,{getSyncEndpointName:function(){var a=this.connectText?this.connectText:'like';if(a==ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE)a='like';return 'platform/'+a+'/sync';},getConnectionEndpointName:function(){return 'platform/like/connection';},getPluginName:function(){return 'like';},presentInsightsPage:function(){var a;a='/insights/?inline_link=true&sk=';if(this.pageId){a+='po_'+this.pageId;}else a+='lo_'+this.domainId;window.open(a,'_blank');},showInsights:function(){if(this.hasShowedInsights||(!this.pageId&&!this.domainId))return;var b=DOM.scry(this.widget,'a.connect_widget_insights_link');if(b)for(var a=0;a<b.length;a++){CSS.show(b[a].parentNode);Event.listen(b[a],'click',this.presentInsightsPage.bind(this));}this.hasShowedInsights=true;},repositionFacepileVertically:function(){this.showInsights();this.parent.repositionFacepileVertically();}});
function SendButton(b){var a=$(b.divID);copy_properties(this,{button:DOM.find(a,'a.btnLink'),channel:b.channel,div:a,divID:b.divID,loggedIn:!!b.userID,nodeImageURL:b.nodeImageURL,nodeTitle:b.nodeTitle,nodeURL:b.nodeURL,nodeSummary:b.nodeSummary,error:b.error,initFormOpen:b.initFormOpen,extended_social_context:b.extended_social_context,likeButtonLayout:b.likeButtonLayout});this.init();}copy_properties(SendButton.prototype,{init:function(){this.formIsOpen=false;this.formIsShown=false;this.pendingFormShow=false;Arbiter.subscribe('platform/socialplugins/send/sent',function(b,a){if(a.controllerID===this.divID)this.closeForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);Arbiter.subscribe('platform/socialplugins/send/cancel',function(b,a){if(a.controllerID===this.divID)this.hideForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);this.buttonWidth=Vector2.getElementDimensions(this.button).x;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/like/resize',this.syncLikeWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/send/resize',{button_width:this.buttonWidth},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(b,a){if(a.controllerID!==this.divID&&a.event=='open')this.closeForm();}.bind(this));UnverifiedXD.init({channelUrl:this.channel,autoResize:true,resizeWidth:true});Event.listen(this.button,'click',this.toggleFormVisibility.bind(this));if(this.initFormOpen)onafterloadRegister(this.toggleFormVisibility.bind(this));},syncLikeWidgetWidth:function(d,a){var b=a.button_width-this.buttonWidth;if(a.layout==='box_count'&&b>0&&b<=5)CSS.setStyle(this.div,'width',(a.button_width-parseInt(CSS.getStyle(this.button,'paddingLeft'))-parseInt(CSS.getStyle(this.button,'paddingRight'))-parseInt(CSS.getStyle(this.button,'borderLeftWidth'))-parseInt(CSS.getStyle(this.button,'borderRightWidth')))+'px');if(a.layout==='standard'){var c=intl_locale_is_rtl()?'right':'left';CSS.setStyle(this.div,'position','absolute');CSS.setStyle(this.div,c,(a.button_width+5)+'px');this.invertedButtons=true;}this.likeWidgetWidth=a.widget_width;this.likeButtonWidth=a.button_width;},toggleFormVisibility:function(a){if(!this.loggedIn){a.kill();PlatformOptInPopup.open('send');return;}if(!this.formIsOpen){this.openForm();}else if(this.formIsShown){this.hideForm();}else this.showForm();},hideForm:function(){if(this.formIsShown){this.formIsShown=false;UnverifiedXD.send({type:'hideEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}},showForm:function(){if(!this.formIsShown){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsShown=true;UnverifiedXD.send({type:'showEdgeCommentDialog'});}},closeForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'close'});if(this.formIsOpen){this.formIsOpen=this.formIsShown=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}return this;},openForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'open'});if(!this.formIsOpen){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsOpen=this.formIsShown=true;var a={type:'presentEdgeCommentDialog',nodeImageURL:this.nodeImageURL,nodeTitle:this.nodeTitle,nodeURL:this.nodeURL,nodeSummary:this.nodeSummary,controllerID:this.divID,error:this.error,widget_type:'send',extended_social_context:this.extended_social_context};if(this.likeButtonLayout=='button_count'){a.preComputedWidthOffset=this.likeWidgetWidth?this.likeWidgetWidth+10:91;}else if(this.likeButtonLayout=='box_count'){a.preComputedHeightOffset=65;a.preComputedWidthOffset=this.buttonWidth?this.buttonWidth+7:60;a.siderender=true;}else if(this.likeButtonLayout=='simple'){a.preComputedWidthOffset=100;}else if(this.likeButtonLayout=='standard'&&this.invertedButtons)a.preComputedWidthOffset=this.likeButtonWidth?this.likeButtonWidth+5:69;UnverifiedXD.send(a);}return this;}});
__d("legacy:cookie",["Cookie"],function(b,c,d){var a=c('Cookie');b.getCookie=a.get;b.setCookie=a.set;b.clearCookie=a.clear;},3);