/*!CK:561957075!*//*1459218908,*/

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

__d("ApiVideoStatusType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={READY:"ready",PROCESSING:"processing",ERROR:"error",EXPIRED:"expired"};},null);
__d("CreditCardFormParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACCOUNT_ID:"account_id",ACCOUNT_COUNTRY_CODE:"account_country_code",APP_ID:"app_id",CARD_EXPIRATION:"exp",CARD_FBID:"cc_fbid",CARD_ID:"cc_id",CARD_TYPE:"cardType",CITY:"city",CONTEXT_ID:"context_id",COUNTRY:"country",CSC_LENGTH:"csc_length",EMAIL:"email",FIRST_NAME:"firstName",TRACKING_ID:"tracking_id",JSFAIL_SOURCE:"jsfail_source",KEYPRESS_TIMES:"kpts",LAST_NAME:"lastName",MONTH:"month",STATE:"state",STREET:"street",STREET_2:"street2",VALIDATE_ADDRESS:"validate_address",VALIDATE_NAME:"validate_name",VALIDATE_ZIP:"validate_zip",YEAR:"year",ZIP:"zip",VALIDATOR_CHECKS:"checks",CARD_NUMBER:"creditCardNumber",CSC:"csc",CARD_NUMBER_FIRST_6:"creditCardNumber_first6",CARD_NUMBER_LAST_4:"creditCardNumber_last4",CARD_NUMBER_TOKEN:"creditCardNumber_token",CSC_TOKEN:"csc_token",AUTH_LEVEL_FLAG:"auth_level",AUTH_AMOUNT:"auth_amount",AUTH_CURRENCY:"auth_currency",AUTO_EXPAND_AUTH_LEVEL_FLAG:"auto_expand_auth_level",PAYMENT_ITEM_TYPE:"payment_item_type",CREDENTIAL_ID:"credential_id",IS_STORED_BALANCE:"is_stored_balance",FLOW_TYPE:"flow_type",STORED_BALANCE_STATUS:"stored_balance_status"};},null);
__d("XCommerceErrorParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"};},null);
__d("XPaymentsCreditCardMutationType",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={CREATE:"create",UPDATE:"update",CACHE_CVV:"cache_cvv"};},null);
__d("XPaymentsCreditCardMutatorParam",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={MUTATION_TYPE:"mutation_type",CARD_FBID:"cc_fbid",CACHE_TOKEN:"cache_token",ERRORS:"errors",GENERAL_ERROR:"general",FIELD_ERRORS:"fields",ERROR_CODE:"code",ERROR_MSG:"message",ERROR_TITLE:"title"};},null);
__d('AdsCanvasConstants',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={CANVAS_PREFIX:'https://fb.com/canvas_doc/',EMPTY_CANVAS_LINK:'https://fb.com/canvas_doc/',TYPE_AHEAD_LIMIT:100};f.exports=h;},null);
__d('CustomAudienceTosUtils',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();h.prototype.getTosRequirements=function(i){'use strict';return {custom_audience:i?228298987271350:215449065224656,website_custom_audience:206760949512025,mobile_app_custom_audience:206760949512025};};h.prototype.isWcaTosAccepted=function(i){'use strict';var j=this.getTosRequirements().website_custom_audience;return !!(i&&(i.web_custom_audience_tos||i[j]));};function h(){'use strict';}f.exports=new h();},null);
__d('AdsPaymentMethodMessages',['fbt'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={genericErrorMessage:h._("There was an error while loading the payment methods. Please try again."),removePaymentMethodSuccessMessage:h._("Payment method was removed successfully."),removePaymentMethodErrorMessage:h._("There was an error while removing your payment method. Please try again."),changePrimaryMethodSuccessMessage:h._("Your primary payment method has been changed."),changePrimaryMethodErrorMessage:h._("There was an error while changing your primary payment method. Please try again."),changePaymentMethodDisclaimer:h._("Your ads are all charged to the same payment method. Switching your payment method here will switch it for all ads, including ads for different pages."),noPaymentMethodFound:h._("Please select a payment method")};f.exports=i;},null);
__d('PagePostTypes',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={LINK:'link',OFFER:'offer',PHOTO:'photo',QUESTION:'question',STATUS:'status',VIDEO:'video',PREMIUM_VIDEO:'premiumVideo',TEMPLATE:'template',CAROUSEL:'carousel'};f.exports=h;},null);
__d('AdsAccountActions',['AdsActionTypes','AdsDispatcher'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={accountBatchLoaded:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({accountSpecs:i,type:c('AdsActionTypes').ACCOUNT.BATCH_LOADED});},accountBatchLoadError:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({errors:i,type:c('AdsActionTypes').ACCOUNT.BATCH_LOAD_ERROR});},accountListPartialLoad:function(i,j,k){c('AdsDispatcher').handleUpdateFromServerResponse({id:i,accounts:j,totalCount:k,type:c('AdsActionTypes').ACCOUNT.LIST.PARTIAL_LOAD});},accountListLoaded:function(i,j){c('AdsDispatcher').handleUpdateFromServerResponse({accounts:j,id:i,type:c('AdsActionTypes').ACCOUNT.LIST.BATCH_LOADED});},accountListLoadError:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({id:i,type:c('AdsActionTypes').ACCOUNT.LIST.BATCH_LOAD_ERROR});},invalidate:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({id:i,type:c('AdsActionTypes').ACCOUNT.INVALIDATE});},rateCardListLoaded:function(i,j){c('AdsDispatcher').handleUpdateFromServerResponse({accountID:i,rateCards:j,type:c('AdsActionTypes').RATE_CARD.LIST.BATCH_LOADED});},rateCardListLoadError:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({accountID:i,type:c('AdsActionTypes').RATE_CARD.LIST.BATCH_LOAD_ERROR});},rateCardBatchLoaded:function(i){c('AdsDispatcher').handleUpdateFromServerResponse({rateCards:i,type:c('AdsActionTypes').RATE_CARD.BATCH_LOADED});}};f.exports=h;},null);
__d('GraphAPIFieldUtils',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={getFieldWithSubfields:function(i,j){var k=j;if(Array.isArray(k))return i+'{'+k.join(',')+'}';var l=Object.keys(k).map(function(m){var n=k[m];if(n!=null){var o=typeof n==='string'?n:JSON.stringify(n);return '.'+m+'('+o+')';}}).join('');return ''+i+l;}};f.exports=h;},null);
__d('AdsAccountDataManager',['fbt','AdsAccountActions','AdsAPIAdAccountFields','AdsBaseDataManager','AdsGraphAPI','CurrentUser','GraphAPIFieldUtils','Map','adsGKCheck','memoize'],function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();var k=c('memoize')(function(){var n=[c('AdsAPIAdAccountFields').ACCOUNT_ID,c('AdsAPIAdAccountFields').CAPABILITIES,c('AdsAPIAdAccountFields').CREATED_TIME,c('AdsAPIAdAccountFields').CURRENCY,c('AdsAPIAdAccountFields').FUNDING_SOURCE,c('AdsAPIAdAccountFields').ID,c('AdsAPIAdAccountFields').IO_NUMBER,c('AdsAPIAdAccountFields').NAME,c('AdsAPIAdAccountFields').TIMEZONE_ID,c('AdsAPIAdAccountFields').TIMEZONE_OFFSETS,c('AdsAPIAdAccountFields').BUSINESS,c('AdsAPIAdAccountFields').USERPERMISSIONS+'.fields(business, role)\n      .user('+c('CurrentUser').getID()+')',c('GraphAPIFieldUtils').getFieldWithSubfields(c('AdsAPIAdAccountFields').BUSINESSLABELS,['business','name']),c('AdsAPIAdAccountFields').USERS];if(c('adsGKCheck')('ads_pe_account_friendly_name'))n.push(c('AdsGraphAPI').getFriendlyNameField());return n;});i=babelHelpers.inherits(l,c('AdsBaseDataManager'));j=i&&i.prototype;l.prototype.loadAll=function(n){n.forEach(function(o){return this.load(o);}.bind(this));};l.prototype.load=function(n){c('AdsGraphAPI').getWithGeneralMigration().adaccount(n).batched().get({fields:k()}).done(this.__handleSuccess.bind(this,['load'],n,null),this.__handleError.bind(this,['load'],n,null));};l.prototype.__onBatchLoaded=function(n){c('AdsAccountActions').accountBatchLoaded(n);};l.prototype.__onBatchLoadError=function(n){c('AdsAccountActions').accountBatchLoadError(n);};l.prototype.__getObjectTypeLabel=function(){return h._("Ad Account");};function l(){i.apply(this,arguments);}var m=new l();f.exports=m;},null);
__d('AdsAccountStore',['AdsAccountDataManager','AdsActionTypes','AdsBaseDataStore','AdsLoadState','Timezone'],function a(b,c,d,e,f,g){'use strict';var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('AdsBaseDataStore'));i=h&&h.prototype;j.prototype.getDataManager=function(){return c('AdsAccountDataManager');};j.prototype.__onDispatch=function(l){var m=l.action;switch(m.type){case c('AdsActionTypes').ACCOUNT.BATCH_LOADED:this.$AdsAccountStoreClass1(m.accountSpecs);break;case c('AdsActionTypes').ACCOUNT.BATCH_LOAD_ERROR:this.__handleData(m.errors,c('AdsLoadState').ERROR);break;case c('AdsActionTypes').ACCOUNT.INVALIDATE:if(this.__invalidate(m.id))this.__emitChange();break;}};j.prototype.$AdsAccountStoreClass1=function(l){this.__handleData(l,c('AdsLoadState').LOADED);l.forEach(function(m){return c('Timezone').setupTimezoneWithPHPTransitions(m.timezone_id,m.timezoneoffsets&&m.timezoneoffsets.data);});};function j(){h.apply(this,arguments);}var k=new j();f.exports=k;},null);
__d('AdsPixelLoggingPrefix',['keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('keyMirror')({CUSTOM_CONVERSION_SERVER_ACTION_:null,CUSTOM_CONVERSION_VIEW_ACTION_:null,PIXEL_PICKER_SERVER_ACTION_:null,PIXEL_PICKER_VIEW_ACTION_:null,PIXEL_SERVER_ACTION_:null,PIXEL_VIEW_ACTION_:null});f.exports=h;},null);
__d('AdsPixelUIEnvironments',['keyMirror'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('keyMirror')({AM:null,CF:null,CM:null,LWI:null,PE:null});f.exports=h;},null);
__d('AdsAccountStoreWrapper_DEPRECATED',['invariant','AdInterfacesUiLogger','AdsAPIAdAccountFields','AdsAccountCapabilities','AdsAccountStore','AdsLoadState','AdsPixelUIEnvironments','CustomAudienceTosUtils','arrayContains'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();i.prototype.getAccount=function(){if(!this.$AdsAccountStoreWrapperClass2){!this.$AdsAccountStoreWrapperClass4;return c('AdsAccountStore').get(this.$AdsAccountStoreWrapperClass4);}return this.$AdsAccountStoreWrapperClass2.getSelectedAccount?this.$AdsAccountStoreWrapperClass2.getSelectedAccount():this.$AdsAccountStoreWrapperClass2.getAccount_DO_NOT_USE();};i.prototype.getAccountID=function(){return this.$AdsAccountStoreWrapperClass4||this.getAccount().account_id||this.getAccount().accountID||'';};i.prototype.getAccountName=function(){return this.getAccount().name||'';};i.prototype.getCurrency=function(){var k=this.getAccount()[c('AdsAPIAdAccountFields').CURRENCY];!k?h(0):void 0;return k;};i.prototype.getTimezoneID=function(){var k=this.getAccount()[c('AdsAPIAdAccountFields').TIMEZONE_ID];!(k!=null)?h(0):void 0;return k;};i.prototype.getTimezoneName=function(){var k=this.getAccount()[c('AdsAPIAdAccountFields').TIMEZONE_NAME];return k;};i.prototype.getUserSettings=function(){var k=this.getAccount()[c('AdsAPIAdAccountFields').USER_SETTINGS];!(k!=null)?h(0):void 0;return k;};i.prototype.getFluxStore=function(){return this.$AdsAccountStoreWrapperClass2;};i.prototype.getEnvironment=function(){return this.$AdsAccountStoreWrapperClass1;};i.prototype.setTosAccepted=function(){this.$AdsAccountStoreWrapperClass3=true;};i.prototype.isAccountLoaded=function(){return this.getAccount().loadState===c('AdsLoadState').LOADED;};i.prototype.isTosAccepted=function(){if(this.$AdsAccountStoreWrapperClass3)return true;var k=this.$AdsAccountStoreWrapperClass2.getTosAccepted()||{};return c('CustomAudienceTosUtils').isWcaTosAccepted(k);};i.prototype.setAccountID=function(k){this.$AdsAccountStoreWrapperClass4=k;c('AdsAccountStore').get(this.$AdsAccountStoreWrapperClass4);};i.prototype.setEnvironment=function(k,l){!(k in c('AdsPixelUIEnvironments'))?h(0):void 0;this.$AdsAccountStoreWrapperClass1=k;this.$AdsAccountStoreWrapperClass2=l;this.$AdsAccountStoreWrapperClass5();};i.prototype.$AdsAccountStoreWrapperClass5=function(){c('AdInterfacesUiLogger').setAccountID(this.getAccountID());c('AdInterfacesUiLogger').setAppName(this.$AdsAccountStoreWrapperClass1);};i.prototype.canUseBMSharedAudience=function(){return c('arrayContains')(this.getAccount().capabilities||[],c('AdsAccountCapabilities').CAN_USE_BM_SHARED_AUDIENCE);};i.prototype.canPromoteSphericalVideo=function(){return c('arrayContains')(this.getAccount().capabilities||[],c('AdsAccountCapabilities').SPHERICAL_VIDEO_POST_PROMOTABLE);};function i(){}var j=new i();f.exports=j;},null);
__d('AdsCurrencyFormatter',['Currency','NumberFormatConfig','intlNumUtils'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(ba){return Math.round(Math.log(ba)/Math.LN10);}function i(ba,ca,da){var ea=c('Currency').getFormat(ba)||'{symbol}{amount}',fa=c('Currency').getSymbol(ba)||'',ga=ea.replace('{symbol}',fa).replace('{amount}',ca);if(da)return ga+' '+c('Currency').getISO(ba);return ga;}function j(ba,ca,da){var ea=c('Currency').getOffset(ba)||100,fa=h(ea);return c('intlNumUtils').formatNumberRaw(ca/ea,fa,da?c('NumberFormatConfig').numberDelimiter:'',c('NumberFormatConfig').decimalSeparator,c('NumberFormatConfig').minDigitsForThousandsSeparator);}function k(ba,ca,da,ea){var fa=j(ba,ca,ea);return i(ba,fa,da);}function l(ba,ca){return k(ba,ca);}function m(ba,ca){return j(ba,ca);}function n(ba,ca){return k(ba,ca,true);}function o(ba,ca){return k(ba,ca,false,true);}function p(ba,ca){var da=c('Currency').getOffset(ba)||100,ea=h(da);while(ca!==0&&Math.round(Math.abs(ca)*Math.pow(10,ea)/da)<1)ea++;var fa=c('intlNumUtils').formatNumberRaw(ca/da,ea,c('NumberFormatConfig').numberDelimiter,c('NumberFormatConfig').decimalSeparator,c('NumberFormatConfig').minDigitsForThousandsSeparator);return i(ba,fa,false);}function q(ba,ca,da){var ea=c('Currency').getOffset(ba)||100,fa=h(ea);if(fa&&ca%ea===0)fa=0;var ga=c('intlNumUtils').formatNumberRaw(ca/ea,fa,da?c('NumberFormatConfig').numberDelimiter:'',c('NumberFormatConfig').decimalSeparator);return i(ba,ga,false);}function r(ba,ca,da){return u(l(ba,ca),l(ba,da));}function s(ba,ca,da,ea){if(ea-da<ca){return l(ba,ea);}else return r(ba,da,ea);}var t='\u2013';function u(ba,ca){return ba+t+ca;}function v(ba,ca,da){return w(ba,ca,da)||0;}function w(ba,ca,da){var ea=c('Currency').getOffset(ba),fa=c('intlNumUtils').parseNumberRaw(ca,da,c('NumberFormatConfig').numberDelimiter);if(fa==null)return null;return Math.round(fa*ea);}function x(ba,ca){var da=c('Currency').getOffset(ba),ea=h(da),fa=c('intlNumUtils').parseNumber(ca)||0;return +fa.toFixed(ea);}function y(ba,ca,da){var ea=da||c('NumberFormatConfig').decimalSeparator;return v(ba,ca,ea);}function z(ba,ca,da){var ea=da||c('NumberFormatConfig').decimalSeparator;return w(ba,ca,ea);}function aa(ba,ca,da,ea){return k(ba,ca,da,ea);}f.exports={formatCurrency:l,formatCurrencyAtLeastOneSigFig:p,formatCurrencyFullFormat:aa,formatCurrencyNoSymbol:m,formatCurrencyRange:r,formatCurrencyRangeWithThreshold:s,formatCurrencyWithISO:n,formatCurrencyWithNumberDelimiters:o,formatCurrencyWithOptionalDecimals:q,formatRange:u,parseCurrency:y,parseOptionalCurrency:z,parsePECurrency:x};},null);
__d('BoostedComponentSimpleXUIDialogHelper',['invariant','BoostedComponentClientEvent','BoostedComponentDispatcher','BoostedComponentStrings','BoostedComponentSubmissionHelper','SimpleXUIDialog'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(event){switch(event){case c('BoostedComponentClientEvent').DELETE_CLICK:return {body:c('BoostedComponentStrings').DELETE_DIALOG_BODY,title:c('BoostedComponentStrings').DELETE_DIALOG_TITLE};case c('BoostedComponentClientEvent').DELETE_SUCCESS:return {body:c('BoostedComponentStrings').DELETE_SUCCESS_DIALOG_BODY,title:c('BoostedComponentStrings').DELETE_SUCCESS_DIALOG_TITLE};case c('BoostedComponentClientEvent').PAUSE_CLICK:return {body:c('BoostedComponentStrings').PAUSE_DIALOG_BODY,title:c('BoostedComponentStrings').PAUSE_DIALOG_TITLE};case c('BoostedComponentClientEvent').PAUSE_SUCCESS:return {body:c('BoostedComponentStrings').PAUSE_SUCCESS_DIALOG_BODY,title:c('BoostedComponentStrings').PAUSE_SUCCESS_DIALOG_TITLE};case c('BoostedComponentClientEvent').RESUME_SUCCESS:return {body:c('BoostedComponentStrings').RESUME_SUCCESS_DIALOG_BODY,title:c('BoostedComponentStrings').RESUME_SUCCESS_DIALOG_TITLE};}h(0);}var j={show:function(k,event){var l=i(event);c('SimpleXUIDialog').show(l.body,l.title,this._onHide.bind(this,k,event));},showConfirm:function(k,event){var l=i(event);c('SimpleXUIDialog').showConfirm(l.body,l.title,this._onHide.bind(this,k,event));},_onHide:function(k,event,l){var m=l?c('BoostedComponentSubmissionHelper').getSubmitEventForClientEvent(event):c('BoostedComponentSubmissionHelper').getCancelEventForClientEvent(event);k.handleUpdateFromViewAction({actionType:m});}};f.exports=j;},null);
__d('PromotedPostConstants',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h={SAVE:'boosted_post/save',CANCEL:'boosted_post/cancel',SAVE_BUTTON_DISABLE:'boosted_post/save_button_disable',SET_COMPOSER_BOOST:'boosted_post/set_composer_budget',CLEAR_COMPOSER_BOOST:'boosted_post/clear_composer_budget',CLOSE_DIALOG:'boosted_post/close_dialog',RECREATE:'boosted_post/recreate',CLOSE:'boosted_post/close',SET_BUDGET:'boosted_post/set_budget',RETARGET:'boosted_post/retarget',STOP:'boosted_post/stop',RESUME:'boosted_post/resume',DELETE:'boosted_post/delete',ACCOUNT_CHANGE:'boosted_post/account_change',ACCOUNT_CHANGE_FINISH:'boosted_post/account_change_finish',PAY_FOR_PROMOTION:'boosted_post/pay_for_promotion',ADD_PAYMENT:'boosted_post/add_payment',AUDIENCE_CHANGE:'boosted_post/audience_change',DURATION_CHANGE:'boosted_post/duration_change',BUDGET_MENU_CHANGE:'boosted_post/budget_menu_change',BUDGET_TEXT_CHANGE:'boosted_post/budget_text_change',BUDGET_TEXT_CHANGE_FINISH:'boosted_post/budget_text_change_finish',SAVE_BUTTON_CLICK:'boosted_post/save_button_click',CANCEL_BUTTON_CLICK:'boosted_post/cancel_button_click',ENTER_LOADING_STATE:'boosted_post/enter_loading_state',EXIT_LOADING_STATE:'boosted_post/exit_loading_state'};f.exports=h;},null);
__d('AdsVideoFetcher',['regeneratorRuntime','Promise','ex','AdsDaoGraph','ErrorUtils','URI'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=['captions','creator_product','description','format','id','length','name','thumbnails','spherical','updated_time'],i={processFetchedVideo:function(j){var k=j.captions,l=j.creator_product,m=j.description,n=j.id,o=j.length,p=j.name,q=j.thumbnails,r=j.spherical;if(q){q=q.data;}else q=[];if(q.length<=0)c('ErrorUtils').reportError(new Error(c('ex')('Got no thumbnails from the API for video with ID %s',n)));var s=null;q=q.map(function(x){var y=x.height,z=x.is_preferred,aa=x.uri,ba=x.width;aa=new (c('URI'))(aa).setFragment('').toString();var ca={width:ba,height:y,uri:aa,id:aa};if(z)s=ca;return ca;});if(!s)s=q[0];var t=j.format.find(function(x){return x.filter==='native';}),u=t.width,v=t.height,w=j.updated_time;return {captions:k,creator_product:l,description:m,height:v,id:n,length:o,name:p,preferredThumbnail:s,spherical:r,thumbnails:q,updatedTime:w,width:u};},genAdAccountVideos:function j(k){var l;return c('regeneratorRuntime').async(function m(n){while(1)switch(n.prev=n.next){case 0:n.next=2;return c('regeneratorRuntime').awrap(c('AdsDaoGraph').fetch.videosForAccount.promiseOne({accountId:k,fields:h}));case 2:l=n.sent;return n.abrupt('return',l.map(i.processFetchedVideo));case 4:case 'end':return n.stop();}},null,this);},genPageVideos:function j(k){var l;return c('regeneratorRuntime').async(function m(n){while(1)switch(n.prev=n.next){case 0:n.next=2;return c('regeneratorRuntime').awrap(c('AdsDaoGraph').fetch.videosForPage.promiseOne({pageId:k,fields:['id']}));case 2:l=n.sent;return n.abrupt('return',c('Promise').all(l.map(function(o){return i.genSingleVideo(o.id);})));case 4:case 'end':return n.stop();}},null,this);},genSingleVideo:function j(k,l){var m;return c('regeneratorRuntime').async(function n(o){while(1)switch(o.prev=o.next){case 0:if(l)c('AdsDaoGraph').fetch.objectByFBID.clearCache();o.next=3;return c('regeneratorRuntime').awrap(c('AdsDaoGraph').fetch.objectByFBID.promiseOne({fbid:k,fields:h}));case 3:m=o.sent;return o.abrupt('return',i.processFetchedVideo(m));case 5:case 'end':return o.stop();}},null,this);},genVideoStatus:function j(k){var l;return c('regeneratorRuntime').async(function m(n){while(1)switch(n.prev=n.next){case 0:c('AdsDaoGraph').fetch.objectByFBID.clearCache();n.next=3;return c('regeneratorRuntime').awrap(c('AdsDaoGraph').fetch.objectByFBID.promiseOne({fbid:k,fields:['status']}));case 3:l=n.sent;return n.abrupt('return',l.status);case 5:case 'end':return n.stop();}},null,this);}};f.exports=i;},null);
__d('adsGetCreativeTypeByCreativeFields',['ApiAdObjectTypes','ApiCreativeTypes'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(i,j,k){switch(j){case c('ApiAdObjectTypes').DOMAIN:return c('ApiCreativeTypes').STANDARD;case c('ApiAdObjectTypes').PAGE:return c('ApiCreativeTypes').INLINE_FAN;case c('ApiAdObjectTypes').EVENT:return c('ApiCreativeTypes').INLINE_RSVP;case c('ApiAdObjectTypes').OFFER:case c('ApiAdObjectTypes').PHOTO:case c('ApiAdObjectTypes').SHARE:case c('ApiAdObjectTypes').STATUS:return c('ApiCreativeTypes').PAGE_POSTS_V2;case c('ApiAdObjectTypes').VIDEO:if(k&&k.length){return c('ApiCreativeTypes').PREMIUM_FEED_VIDEO_AD;}else return c('ApiCreativeTypes').PAGE_POSTS_V2;break;case c('ApiAdObjectTypes').ACTION_SPEC:return c('ApiCreativeTypes').QUERY_BASED;case c('ApiAdObjectTypes').INSTAGRAM_MEDIA:return c('ApiCreativeTypes').INSTAGRAM_AD;case c('ApiAdObjectTypes').INVALID:return c('ApiCreativeTypes').EXOTIC_OR_INVALID;default:if(i)return c('ApiCreativeTypes').INSTAGRAM_AD;return null;}}f.exports=h;},null);
__d('validateCTAPhoneNumber',['AdsGraphAPI','BoostedComponentStrings','debounce'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=1500,i=c('AdsGraphAPI').getWithGeneralMigration().path_DO_NOT_USE('/phone_number'),j='PREMIUM_RATE',k='tel:',l=c('debounce')(m,h);function m(n,o,p){var q=void 0;if(!n||n.indexOf(k)!==0){q=c('BoostedComponentStrings').PHONE_NUMBER_NOT_VALID_ERROR;}else{var r=n.substr(k.length);if(!r)q=c('BoostedComponentStrings').PHONE_NUMBER_NOT_VALID_ERROR;}if(q){p(null,q);return;}i.get({number:r,region:o}).done(function(s){var t=s.data&&s.data[0]&&s.data[0].uri,u=s.data&&s.data[0]&&s.data[0].region_code,v=s.data&&s.data[0]&&s.data[0].category,w=void 0;if(!t){w=c('BoostedComponentStrings').PHONE_NUMBER_NOT_VALID_ERROR;}else if(v===j){w=c('BoostedComponentStrings').PHONE_NUMBER_IS_PREMIUM_ERROR;}else if(o&&u!==o)w=c('BoostedComponentStrings').PHONE_NUMBER_IS_NOT_LOCAL_ERROR;p(t,w);});}f.exports=l;},null);
__d('everyObject',[],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=Object.prototype.hasOwnProperty;function i(j,k,l){for(var m in j)if(h.call(j,m))if(!k.call(l,j[m],m,j))return false;return true;}f.exports=i;},null);
__d('FluxMixinLegacy',['invariant','FluxStoreGroup','SubscriptionsHandler'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();function i(k){var l=arguments.length<=1||arguments[1]===undefined?{withProps:false}:arguments[1];k=k.filter(function(m){return !!m;});return {getInitialState:function(){j(this);return l.withProps?this.constructor.calculateState(null,this.props):this.constructor.calculateState(null,undefined);},componentWillMount:function(){var m,n=false,o=function(){n=true;};this._fluxMixinSubscriptionsHandler=new (c('SubscriptionsHandler'))();var p=k.map(function(r){return r.addListener(o);});(m=this._fluxMixinSubscriptionsHandler).addSubscriptions.apply(m,p);var q=function(){if(n)this.setState(function(r){return l.withProps?this.constructor.calculateState(r,this.props):this.constructor.calculateState(r,undefined);}.bind(this));n=false;}.bind(this);this._fluxMixinStoreGroup=new (c('FluxStoreGroup'))(k,q);},componentWillReceiveProps:function(m,n){if(!l.withProps)return;this.setState(function(o){return this.constructor.calculateState(o,m);}.bind(this));},componentWillUnmount:function(){this._fluxMixinStoreGroup.release();this._fluxMixinSubscriptionsHandler.release();}};}function j(k){!k.constructor.calculateState?h(0):void 0;}f.exports=i;},null);
__d('Stopwatch',['performanceNow'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(){'use strict';this.reset();}h.prototype.reset=function(){'use strict';this.$Stopwatch1=c('performanceNow')();};h.prototype.read=function(){'use strict';return c('performanceNow')()-this.$Stopwatch1;};f.exports=h;},null);
__d('mergeDeepInto',['invariant','mergeHelpers'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=c('mergeHelpers').ArrayStrategies,j=c('mergeHelpers').checkArrayStrategy,k=c('mergeHelpers').checkMergeArrayArgs,l=c('mergeHelpers').checkMergeLevel,m=c('mergeHelpers').checkMergeObjectArgs,n=c('mergeHelpers').isTerminal,o=c('mergeHelpers').normalizeMergeArg,p=function(t,u,v,w){m(t,u);l(w);var x=u?Object.keys(u):[];for(var y=0;y<x.length;y++){var z=x[y];r(t,u,z,v,w);}},q=function(t,u,v,w){k(t,u);l(w);var x=Math.max(t.length,u.length);for(var y=0;y<x;y++)r(t,u,y,v,w);},r=function(t,u,v,w,x){var y=u[v],z=u.hasOwnProperty(v),aa=z&&n(y),ba=z&&Array.isArray(y),ca=z&&!ba&&!ba,da=t[v],ea=t.hasOwnProperty(v),fa=ea&&n(da),ga=ea&&Array.isArray(da),ha=ea&&!ga&&!ga;if(fa){if(aa){t[v]=y;}else if(ba){t[v]=[];q(t[v],y,w,x+1);}else if(ca){t[v]={};p(t[v],y,w,x+1);}else if(!z)t[v]=da;}else if(ga){if(aa){t[v]=y;}else if(ba){!i[w]?h(0):void 0;if(w===i.Clobber)da.length=0;q(da,y,w,x+1);}else if(ca){t[v]={};p(t[v],y,w,x+1);}else !z;}else if(ha){if(aa){t[v]=y;}else if(ba){t[v]=[];q(t[v],y,w,x+1);}else if(ca){p(da,y,w,x+1);}else !z;}else if(!ea)if(aa){t[v]=y;}else if(ba){t[v]=[];q(t[v],y,w,x+1);}else if(ca){t[v]={};p(t[v],y,w,x+1);}else !z;},s=function(t,u,v){var w=o(u);j(v);p(t,w,v,0);};f.exports=s;},null);
__d('mergeDeep',['mergeHelpers','mergeDeepInto'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=c('mergeHelpers').checkArrayStrategy,i=c('mergeHelpers').checkMergeObjectArgs,j=c('mergeHelpers').normalizeMergeArg,k=function(l,m,n){var o=j(l),p=j(m);i(o,p);h(n);var q={};c('mergeDeepInto')(q,o,n);c('mergeDeepInto')(q,p,n);return q;};f.exports=k;},null);
__d('PaymentMethodUtils',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=16,i=4,j=[{pattern:/^5[1-5]/,name:'mc',cscDigits:3,digits:16,supported:true,code:77},{pattern:/^4/,name:'visa',cscDigits:3,digits:16,supported:true,code:86},{pattern:/^3[47]/,name:'amex',cscDigits:4,digits:15,supported:true,code:65},{pattern:/^35(2[8-9]|[3-8])/,name:'jcb',cscDigits:3,digits:16,supported:true,code:74},{pattern:/^(6011|65|64[4-9]|622([2-8]|1[3-9]|12[6-9]|9[0-1]|92[0-5]))/,name:'disc',cscDigits:3,digits:16,supported:true,code:68},{pattern:/^30[0-5]/,name:'diners',digits:14,cscDigits:3,supported:false,code:64},{name:'unknown',digits:16,cscDigits:3,supported:false,code:85}],k=function(m){return m.replace(/[iIl]/g,'1').replace(/[Oo]/g,'0').replace(/[^\d]/gi,'');},l={getCardType:function(m){m=k(m);m=m.substr(0,6);for(var n=0;n<j.length;n++)if(m.match(j[n].pattern))return j[n];},getCardTypeFromCode:function(m){for(var n=0;n<j.length;n++)if(m==j[n].code)return j[n];return null;},isValidCCNumber:function(m){m=k(m);var n=l.getCardType(m);if(n.digits!==m.length)return false;if(!n.supported)return false;return l.isValidLuhn(m);},isValidLuhn:function(m){m=k(m);var n=m.split('').reverse(),o='';for(var p=0;p<n.length;p++){var q=parseInt(n[p],10);if(p%2!==0)q=q*2;o=o+q;}var r=0;for(p=0;p<o.length;p++)r=r+parseInt(o.charAt(p),10);return !!(r!==0&&r%10===0);},getMaxCardLength:function(m){return h;},getMaxCSCLength:function(){return i;}};f.exports=l;},null);
__d('PaymentTokenProxyUtils',['CurrentEnvironment','URI'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={getURI:function(i){var j=new (c('URI'))('/ajax/payment/token_proxy.php').setDomain(window.location.hostname).setProtocol('https').addQueryData(i),k=j.getDomain().split('.');if(k.indexOf('secure')<0){k.splice(1,0,'secure');j.setDomain(k.join('.'));}if(c('CurrentEnvironment').messengerdotcom){var l=j.getDomain();l=l.replace('messenger.com','facebook.com');j.setDomain(l);}return j;}};f.exports=h;},null);
__d('ShareDialogAudienceTypes',['getObjectValues','ShareModeConst'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={OWN:c('ShareModeConst').SELF_POST,PERSON:c('ShareModeConst').FRIEND,GROUP:c('ShareModeConst').GROUP,EVENT:c('ShareModeConst').EVENT,PAGE:c('ShareModeConst').PAGE,MESSAGE:c('ShareModeConst').MESSAGE},i=c('getObjectValues')(h);function j(k){return i.some(function(l){return l===k;});}f.exports=h;f.exports.ALL=i;f.exports.isValid=j;f.exports.propType=function(k,l){if(!j(k[l]))throw new Error('Invalid audience '+k[l]);};},null);
__d('AdsVideoEncodingAsyncNotifier',['AdsVideoFetcher','ApiVideoStatusType'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();var h=1000;function i(j){this.$AdsVideoEncodingAsyncNotifier1=j;this.$AdsVideoEncodingAsyncNotifier2=0;}i.prototype.start=function(){this.$AdsVideoEncodingAsyncNotifier3=Date.now();this.$AdsVideoEncodingAsyncNotifier4();};i.prototype.getEncodingElapsedTime=function(){return this.$AdsVideoEncodingAsyncNotifier5;};i.prototype.setOnStatusUpdateListener=function(j){this.$AdsVideoEncodingAsyncNotifier6=j;};i.prototype.setOnFailedListener=function(j){this.$AdsVideoEncodingAsyncNotifier7=j;};i.prototype.setOnSuccessListener=function(j){this.$AdsVideoEncodingAsyncNotifier8=j;};i.prototype.$AdsVideoEncodingAsyncNotifier4=function(){var j=this.$AdsVideoEncodingAsyncNotifier2+h,k=Math.max(0,j-Date.now());setTimeout(function(){return this.$AdsVideoEncodingAsyncNotifier9();}.bind(this),k);};i.prototype.$AdsVideoEncodingAsyncNotifier9=function(){this.$AdsVideoEncodingAsyncNotifier2=Date.now();c('AdsVideoFetcher').genVideoStatus(this.$AdsVideoEncodingAsyncNotifier1).done(function(j){return this.$AdsVideoEncodingAsyncNotifier10(j);}.bind(this));};i.prototype.$AdsVideoEncodingAsyncNotifier10=function(j){var k=j.video_status||j;if(k===c('ApiVideoStatusType').PROCESSING){this.$AdsVideoEncodingAsyncNotifier6();this.$AdsVideoEncodingAsyncNotifier4();}else if(k===c('ApiVideoStatusType').ERROR){this.$AdsVideoEncodingAsyncNotifier7();}else if(k===c('ApiVideoStatusType').READY)c('AdsVideoFetcher').genSingleVideo(this.$AdsVideoEncodingAsyncNotifier1).done(function(l){this.$AdsVideoEncodingAsyncNotifier5=Date.now()-this.$AdsVideoEncodingAsyncNotifier3;this.$AdsVideoEncodingAsyncNotifier8(l);}.bind(this));};f.exports=i;},null);
__d("XPaymentsCreditCardMutatorController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/payments\/credit_card\/mutator\/{mutation_type}\/",{mutation_type:{type:"Enum",required:true,enumType:1}});},null);
__d("XShareDialogSubmitController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/share\/dialog\/submit\/",{post_id:{type:"Int"},share_type:{type:"Int"},url:{type:"String"},audience_type:{type:"String"},owner_id:{type:"Int"},app_id:{type:"Int"},message:{type:"String"},shared_ad_id:{type:"Int"},sharer_id:{type:"Int"},source:{type:"String"},composer_session_id:{type:"String"},audience_targets:{type:"IntVector"},ephemeral_ttl_mode:{type:"Int"},tagged_people:{type:"IntVector"},tagged_place:{type:"Int"},tagged_action:{type:"Int"},tagged_object:{type:"Int"},tagged_object_str:{type:"String"},tagged_action_icon:{type:"Int"},tagged_feed_topics:{type:"StringVector"},attribution:{type:"Int"},privacy:{type:"String"},messaging_tags:{type:"StringVector"},internalextra:{type:"StringToStringMap"},internal_preview_image_id:{type:"Int"},share_now:{type:"Bool",defaultValue:false},is_forced_reshare_of_post:{type:"Bool",defaultValue:false},targeted_privacy_data:{type:"HackType"},unpublished_content_type:{type:"Enum",enumType:0},share_to_group_as_page:{type:"Bool",defaultValue:false},shared_to_group_id:{type:"Int"}});},null);