if (self.CavalryLogger) { CavalryLogger.start_js(["W7JZ8"]); } __d("PagePluginActions",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={PAGE_AVATAR:"page_avatar",PAGE_CTA:"page_cta",PAGE_LIKE:"page_like",PAGE_PERMALINK:"page_permalink",PAGE_SHARE:"page_share",PAGE_UNLIKE:"page_unlike"};}),null); __d("PagePluginActionTypes",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CLICK:"click"};}),null); __d("PluginConnectButtonType",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={BLUE_BASE:1,WHITE_BASE:2};}),null); __d("PluginShareLogTypes",[],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={IMPRESSION:"impression",CLICK:"click"};}),null); __d('PlatformDialog',['cx','DOMEventListener','DOMEvent','CSS'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i;j.getInstance=function(){'use strict';return i;};function j(k,l,m){'use strict';i=this;this.$PlatformDialog1=k;this.$PlatformDialog2=l;this.$PlatformDialog3=false;c('DOMEventListener').add(this.$PlatformDialog1,'submit',function(n){if(this.$PlatformDialog3){new (c('DOMEvent'))(n).kill();return;}this.$PlatformDialog3=true;if(m)c('CSS').addClass(k,"_32qa");}.bind(this));}j.prototype.getForm=function(){'use strict';return this.$PlatformDialog1;};j.prototype.getDisplay=function(){'use strict';return this.$PlatformDialog2;};j.prototype.hasBeenSubmitted=function(){'use strict';return this.$PlatformDialog3;};j.RESPONSE='platform/dialog/response';f.exports=j;}),null); __d('PluginLoggedOutUserTypedLogger',['Banzai','GeneratedLoggerUtils','nullthrows'],(function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.clear();}h.prototype.log=function(){c('GeneratedLoggerUtils').log('logger:PluginLoggedOutUserLoggerConfig',this.$PluginLoggedOutUserTypedLogger1,c('Banzai').BASIC);};h.prototype.logVital=function(){c('GeneratedLoggerUtils').log('logger:PluginLoggedOutUserLoggerConfig',this.$PluginLoggedOutUserTypedLogger1,c('Banzai').VITAL);};h.prototype.clear=function(){this.$PluginLoggedOutUserTypedLogger1={};return this;};h.prototype.updateData=function(j){this.$PluginLoggedOutUserTypedLogger1=babelHelpers['extends']({},this.$PluginLoggedOutUserTypedLogger1,j);return this;};h.prototype.setHref=function(j){this.$PluginLoggedOutUserTypedLogger1.href=j;return this;};h.prototype.setIsSDK=function(j){this.$PluginLoggedOutUserTypedLogger1.is_sdk=j;return this;};h.prototype.setPluginAppID=function(j){this.$PluginLoggedOutUserTypedLogger1.plugin_app_id=j;return this;};h.prototype.setPluginName=function(j){this.$PluginLoggedOutUserTypedLogger1.plugin_name=j;return this;};h.prototype.setRefererURL=function(j){this.$PluginLoggedOutUserTypedLogger1.referer_url=j;return this;};h.prototype.setVC=function(j){this.$PluginLoggedOutUserTypedLogger1.vc=j;return this;};h.prototype.updateExtraData=function(j){j=c('nullthrows')(c('GeneratedLoggerUtils').serializeMap(j));c('GeneratedLoggerUtils').checkExtraDataFieldNames(j,i);this.$PluginLoggedOutUserTypedLogger1=babelHelpers['extends']({},this.$PluginLoggedOutUserTypedLogger1,j);return this;};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l);};var i={href:true,is_sdk:true,plugin_app_id:true,plugin_name:true,referer_url:true,vc:true};f.exports=h;}),null); __d('ArbiterFrame',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={inform:function i(j,k,l){var m=parent.frames,n=m.length,o;k.crossFrame=true;for(var p=0;p1?p:0;if(!h._opts.allowShrink&&o<0)o=0;if(o||p)try{window.console&&window.console.firebug;window.resizeBy(p,o);if(p)window.moveBy(p/-2,0);}catch(q){}},_getDocumentSize:function i(){var j=c('DOMDimensions').getDocumentDimensions();if(h._opts.strategy==='offsetHeight')j.height=document.body.offsetHeight;if(h._opts.widthElement){var k=c('DOMQuery').scry(document.body,h._opts.widthElement)[0];if(k)j.width=c('DOMDimensions').getElementDimensions(k).width;}var l=b.Dialog;if(l&&l.max_bottom&&l.max_bottom>j.height)j.height=l.max_bottom;return j;},open:function i(j,k,l,m){return c('Popup').open(j,l,k,m);}};f.exports=h;}),null); __d('Queue',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={};function i(j){'use strict';this._opts=babelHelpers['extends']({interval:0,processor:null},j);this._queue=[];this._stopped=true;}i.prototype._dispatch=function(j){'use strict';if(this._stopped||this._queue.length===0)return;if(!this._opts.processor){this._stopped=true;throw new Error('No processor available');}if(this._opts.interval){this._opts.processor.call(this,this._queue.shift());this._timeout=setTimeout(this._dispatch.bind(this),this._opts.interval);}else while(this._queue.length)this._opts.processor.call(this,this._queue.shift());};i.prototype.enqueue=function(j){'use strict';if(this._opts.processor&&!this._stopped){this._opts.processor.call(this,j);}else this._queue.push(j);return this;};i.prototype.start=function(j){'use strict';if(j)this._opts.processor=j;this._stopped=false;this._dispatch();return this;};i.prototype.isStarted=function(){'use strict';return !this._stopped;};i.prototype.dispatch=function(){'use strict';this._dispatch(true);};i.prototype.stop=function(j){'use strict';this._stopped=true;if(j)clearTimeout(this._timeout);return this;};i.prototype.merge=function(j,k){'use strict';this._queue[k?'unshift':'push'].apply(this._queue,j._queue);j._queue=[];this._dispatch();return this;};i.prototype.getLength=function(){'use strict';return this._queue.length;};i.get=function(j,k){'use strict';var l;if(j in h){l=h[j];}else l=h[j]=new i(k);return l;};i.exists=function(j){'use strict';return j in h;};i.remove=function(j){'use strict';return delete h[j];};f.exports=i;}),null); __d('TextInputControl',['DOMControl','Event','Input','debounce'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('DOMControl'));i=h&&h.prototype;function j(k){'use strict';i.constructor.call(this,k);var l=this.getRoot(),m=c('debounce')(this.update.bind(this),0);c('Event').listen(l,{input:m,keydown:m,paste:m});}j.prototype.setMaxLength=function(k){'use strict';c('Input').setMaxLength(this.getRoot(),k);return this;};j.prototype.getValue=function(){'use strict';return c('Input').getValue(this.getRoot());};j.prototype.isEmpty=function(){'use strict';return c('Input').isEmpty(this.getRoot());};j.prototype.setValue=function(k){'use strict';c('Input').setValue(this.getRoot(),k);this.update();return this;};j.prototype.clear=function(){'use strict';return this.setValue('');};j.prototype.setPlaceholderText=function(k){'use strict';c('Input').setPlaceholder(this.getRoot(),k);return this;};f.exports=j;}),null); __d('transferTextStyles',['Style'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={fontFamily:null,fontSize:null,fontStyle:null,fontWeight:null,lineHeight:null,wordWrap:null};function i(j,k){for(var l in h)if(h.hasOwnProperty(l))h[l]=c('Style').get(j,l);c('Style').apply(k,h);}f.exports=i;}),null); __d('TextMetrics',['DOM','Style','UserAgent','transferTextStyles'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j){var k=j.clientWidth,l=c('Style').get(j,'-moz-box-sizing')=='border-box';if(l&&c('UserAgent').isBrowser('Firefox < 29'))return k;var m=c('Style').getFloat(j,'paddingLeft')+c('Style').getFloat(j,'paddingRight');return k-m;}function i(j,k){'use strict';this.$TextMetrics1=j;this.$TextMetrics2=!!k;var l='textarea',m='textMetrics';if(this.$TextMetrics2){l='div';m+=' textMetricsInline';}this.$TextMetrics3=c('DOM').create(l,{className:m});c('transferTextStyles')(j,this.$TextMetrics3);document.body.appendChild(this.$TextMetrics3);}i.prototype.measure=function(j){'use strict';var k=this.$TextMetrics1,l=this.$TextMetrics3;j=(j||k.value)+'...';if(!this.$TextMetrics2){var m=h(k);c('Style').set(l,'width',Math.max(m,0)+'px');}if(k.nodeName==='TEXTAREA'){l.value=j;}else c('DOM').setContent(l,j);return {width:l.scrollWidth,height:l.scrollHeight};};i.prototype.destroy=function(){'use strict';c('DOM').remove(this.$TextMetrics3);};f.exports=i;}),null); __d('TextAreaControl',['Arbiter','ArbiterMixin','CSS','DOMControl','Event','Style','TextInputControl','TextMetrics','classWithMixins','mixin'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();function j(l,m){return c('Style').getFloat(l,m)||0;}h=babelHelpers.inherits(k,c('classWithMixins')(c('TextInputControl'),c('mixin')(c('ArbiterMixin'))));i=h&&h.prototype;function k(l){'use strict';i.constructor.call(this,l);this.autogrow=c('CSS').hasClass(l,'uiTextareaAutogrow');this.autogrowWithPlaceholder=c('CSS').hasClass(l,'uiTextareaAutogrowWithPlaceholder');this.width=null;c('Event').listen(l,'focus',this._handleFocus.bind(this));}k.prototype.setAutogrow=function(l){'use strict';this.autogrow=l;return this;};k.prototype.onupdate=function(){'use strict';i.onupdate.call(this);this.updateHeight();};k.prototype.updateHeight=function(){'use strict';if(this.autogrow){var l=this.getRoot();if(!this.metrics)this.metrics=new (c('TextMetrics'))(l);if(typeof this.initialHeight==='undefined'){this.isBorderBox=c('Style').get(l,'box-sizing')==='border-box'||c('Style').get(l,'-moz-box-sizing')==='border-box'||c('Style').get(l,'-webkit-box-sizing')==='border-box';this.borderBoxOffset=j(l,'padding-top')+j(l,'padding-bottom')+j(l,'border-top-width')+j(l,'border-bottom-width');this.initialHeight=l.offsetHeight-this.borderBoxOffset;}var m=null;if((!l.value||l.value.length===0)&&this.autogrowWithPlaceholder){m=this.metrics.measure(l.placeholder);}else m=this.metrics.measure();var n=Math.max(this.initialHeight,m.height);if(this.isBorderBox)n+=this.borderBoxOffset;if(this.maxHeight&&n>this.maxHeight){n=this.maxHeight;c('Arbiter').inform('maxHeightExceeded',{textArea:l});}if(n!==this.height){this.height=n;c('Style').set(l,'height',n+'px');c('Arbiter').inform('reflow');this.inform('resize');}}else if(this.metrics){this.metrics.destroy();this.metrics=null;}};k.prototype.resetHeight=function(){'use strict';this.height=-1;this.update();};k.prototype.setMaxHeight=function(l){'use strict';this.maxHeight=l;};k.prototype.setAutogrowWithPlaceholder=function(l){'use strict';this.autogrowWithPlacedholder=l;};k.prototype._handleFocus=function(){'use strict';this.width=null;};k.getInstance=function(l){'use strict';return c('DOMControl').getInstance(l)||new k(l);};f.exports=k;}),null); __d('resolveWindow',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){var j=window,k=i.split('.');try{for(var m=0;mthis._lastResizeAckId)this._lastResizeAckId=n.id;}.bind(this));},getQueue:function k(){if(!this._queue)this._queue=new (c('Queue'))();return this._queue;},setChannelUrl:function k(l){this.getQueue().start(function(m){return this.send(m,l);}.bind(this));},send:function k(l,m){m=m||this._opts.channelUrl;if(!m){this.getQueue().enqueue(l);return;}var n={},o=new (c('URI'))(m);Object.assign(n,l,c('PHPQuerySerializer').deserialize(o.getFragment()));var p=new (c('URI'))(n.origin).getOrigin(),q=c('resolveWindow')(n.relation.replace(/^parent\./,'')),r=50,s=function t(){var u=q.frames[h];try{u.proxyMessage(c('PHPQuerySerializer').serialize(n),p);}catch(v){if(--r){setTimeout(t,100);}else c('Log').warn('No such frame "'+h+'" to proxyMessage to');}};s();},_computeSize:function k(){var l=c('DOMDimensions').getDocumentDimensions(),m=0;if(this._opts.resizeWidth){var n=document.body;if(n.clientWidthm)m=r;}}m=Math.max(m,i.forced_min_width);}l.width=m;if(this._opts.allowShrink){if(!this._shrinker)this._shrinker=c('DOM').create('div');c('DOM').appendContent(document.body,this._shrinker);l.height=Math.max(this._shrinker.offsetTop,0);}return l;},_startResizeMonitor:function k(){var l,m=document.documentElement;if(this._opts.hideOverflow){m.style.overflow='hidden';document.body.style.overflow='hidden';}var n=function(){var o=this._computeSize(),p=Date.now(),q=this._lastResizeAckIdthis._opts.resizeAckTimeout;if(!l||this._opts.expectResizeAck&&q||this._opts.allowShrink&&l.width!=o.width||!this._opts.allowShrink&&l.width