if (self.CavalryLogger) { CavalryLogger.start_js(["zud3P"]); } /** * License: https://www.facebook.com/legal/license/EUHhrQahPlY/ */ __d("colr-convert",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports={grayscale:{rgb:k},hex:{rgb:a},rgb:{hsl:c,hsv:d,hex:b,grayscale:l},hsl:{rgb:f,hsv:h},hsv:{rgb:i,hsl:j}};function g(a){return a<58?a-48:a<71?a-55:a-87}function a(a){var b=a[0]==="#"?1:0,c=a.length;if(c-b<3)throw new Error("hex input must be at least three chars long");var d,e=g(a.charCodeAt(0+b)),f=g(a.charCodeAt(1+b)),h=g(a.charCodeAt(2+b));c-b>=6?(c=(e<<4)+f,d=(h<<4)+g(a.charCodeAt(3+b)),a=(g(a.charCodeAt(4+b))<<4)+g(a.charCodeAt(5+b))):(c=(e<<4)+e,d=(f<<4)+f,a=(h<<4)+h);if(c<0||c>255||d<0||d>255||a<0||a>255)throw new Error("hex input is invalid");return[c,d,a]}function b(a){return"#"+("000000"+((a[0]<<16)+(a[1]<<8)+a[2]).toString(16)).slice(-6)}function c(a){var b=a[0]/255,c=a[1]/255;a=a[2]/255;var d=Math.min(b,c,a),e=Math.max(b,c,a),f=e-d,g;e===d?g=0:b===e?g=(c-a)/f:c===e?g=2+(a-b)/f:a===e&&(g=4+(b-c)/f);g=Math.min(g*60,360);g<0&&(g+=360);a=(d+e)/2;e===d?b=0:a<=.5?b=f/(e+d):b=f/(2-e-d);return[g,b*100,a*100]}function d(a){var b=a[0],c=a[1];a=a[2];var d=Math.min(b,c,a),e=Math.max(b,c,a),f=e-d,g,h;e===0?h=0:h=f/e*1e3/10;e===d?g=0:b===e?g=(c-a)/f:c===e?g=2+(a-b)/f:a===e&&(g=4+(b-c)/f);g=Math.min(g*60,360);g<0&&(g+=360);d=e/255*1e3/10;return[g,h,d]}function f(a){__p&&__p();var b=a[0]/360,c=a[1]/100;a=a[2]/100;var d,e,f;if(c===0)d=e=f=a;else{c=a<.5?a*(c+1):a+c-a*c;a=2*a-c;var g;g=b+1/3;g<0?g+=1:g>1&&(g-=1);g<1/6?d=a+(c-a)*g*6:g<1/2?d=c:g<2/3?d=a+(c-a)*(2/3-g)*6:d=a;g=b;g<0?g+=1:g>1&&(g-=1);g<1/6?e=a+(c-a)*g*6:g<1/2?e=c:g<2/3?e=a+(c-a)*(2/3-g)*6:e=a;g=b-1/3;g<0?g+=1:g>1&&(g-=1);g<1/6?f=a+(c-a)*g*6:g<1/2?f=c:g<2/3?f=a+(c-a)*(2/3-g)*6:f=a}return[d*255,e*255,f*255]}function h(a){__p&&__p();var b=a[0],c=a[1]/100;a=a[2]/100;var d;if(c===0)return[b,0,a*100];if(a===0)return[b,0,0];a*=2;c*=a<=1?a:2-a;d=(a+c)/2;a=2*c/(a+c);return[b,a*100,d*100]}function i(a){__p&&__p();var b=a[0]/60,c=a[1]/100;a=a[2]/100;var d=Math.floor(b)%6;b=b-Math.floor(b);var e=255*a*(1-c),f=255*a*(1-c*b);c=255*a*(1-c*(1-b));a=255*a;switch(d){case 0:return[a,c,e];case 1:return[f,a,e];case 2:return[e,a,c];case 3:return[e,f,a];case 4:return[c,e,a];case 5:return[a,e,f]}}function j(a){__p&&__p();var b=a[0],c=a[1]/100;a=a[2]/100;var d;if(c===0)return[b,0,a*100];if(a===0)return[b,0,0];d=(2-c)*a;c=c*a;c/=d<=1?d:2-d;d/=2;return[b,c*100,d*100]}function k(a){return[a,a,a]}function l(a){return(a[0]*299+a[1]*587+a[2]*114)/1e3}}),null); /** * License: https://www.facebook.com/legal/license/rkSzzR0kXTD/ */ __d("colr",["colr-convert"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this._={}}a.fromHex=function(b){return new a().fromHex(b)};a.fromGrayscale=function(b){return new a().fromGrayscale(b)};a.fromRgb=function(b,c,d){return new a().fromRgb(b,c,d)};a.fromRgbArray=function(b){return new a().fromRgb(b[0],b[1],b[2])};a.fromRgbObject=function(b){return new a().fromRgb(b.r,b.g,b.b)};a.fromHsl=function(b,c,d){return new a().fromHsl(b,c,d)};a.fromHslArray=function(b){return new a().fromHsl(b[0],b[1],b[2])};a.fromHslObject=function(b){return new a().fromHsl(b.h,b.s,b.l)};a.fromHsv=function(b,c,d){return new a().fromHsv(b,c,d)};a.fromHsvArray=function(b){return new a().fromHsv(b[0],b[1],b[2])};a.fromHsvObject=function(b){return new a().fromHsv(b.h,b.s,b.v)};var c=a.prototype;c.fromHex=function(a){a=b("colr-convert").hex.rgb(a);this._={rgb:a};return this};c.fromGrayscale=function(a){a=h(a);a=b("colr-convert").grayscale.rgb(a);this._={rgb:a};return this};c.fromRgb=function(a,b,c){if(typeof a!=="number"||typeof b!=="number"||typeof c!=="number")throw new Error("Arguments must be numbers");a=i(a,b,c);this._={rgb:a};return this};c.fromRgbArray=function(a){return this.fromRgb(a[0],a[1],a[2])};c.fromRgbObject=function(a){return this.fromRgb(a.r,a.g,a.b)};c.fromHsl=function(a,b,c){if(typeof a!=="number"||typeof b!=="number"||typeof c!=="number")throw new Error("Arguments must be numbers");this._={hsl:j(a,b,c)};return this};c.fromHslArray=function(a){return this.fromHsl(a[0],a[1],a[2])};c.fromHslObject=function(a){return this.fromHsl(a.h,a.s,a.l)};c.fromHsv=function(a,b,c){if(typeof a!=="number"||typeof b!=="number"||typeof c!=="number")throw new Error("Arguments must be numbers");this._={hsv:j(a,b,c)};return this};c.fromHsvArray=function(a){return this.fromHsv(a[0],a[1],a[2])};c.fromHsvObject=function(a){return this.fromHsv(a.h,a.s,a.v)};c.toHex=function(){__p&&__p();var a=this._.hex;if(a!==void 0)return a;a=this._.rgb;a!==void 0?a=a:a=this.toRawRgbArray();a[0]=Math.round(a[0]);a[1]=Math.round(a[1]);a[2]=Math.round(a[2]);a=b("colr-convert").rgb.hex(a);this._.hex=a;return a};c.toGrayscale=function(){var a=this._.grayscale;if(a!==void 0)return a;a=this._.rgb;a!==void 0?a=a:a=this.toRawRgbArray();a=b("colr-convert").rgb.grayscale(a);this._.grayscale=a;return a};c.toRawRgbArray=function(){__p&&__p();var a=this._.rgb;if(a!==void 0)return a;if((a=this._.hsv)!==void 0)a=b("colr-convert").hsv.rgb(a);else if((a=this._.hsl)!==void 0)a=b("colr-convert").hsl.rgb(a);else throw new Error("No data to convert");this._.rgb=a;return a};c.toRawRgbObject=function(){var a=this.toRawRgbArray();return{r:a[0],g:a[1],b:a[2]}};c.toRgbArray=function(){var a=this.toRawRgbArray();return[Math.round(a[0]),Math.round(a[1]),Math.round(a[2])]};c.toRgbObject=function(){var a=this.toRgbArray();return{r:a[0],g:a[1],b:a[2]}};c.toRawHslArray=function(){__p&&__p();var a=this._.hsl;if(a!==void 0)return a;if((a=this._.hsv)!==void 0)a=b("colr-convert").hsv.hsl(a);else if((a=this._.rgb)!==void 0)a=b("colr-convert").rgb.hsl(a);else throw new Error("No data to convert");this._.hsl=a;return a};c.toRawHslObject=function(){var a=this.toRawHslArray();return{h:a[0],s:a[1],l:a[2]}};c.toHslArray=function(){var a=this.toRawHslArray();return[Math.round(a[0]),Math.round(a[1]),Math.round(a[2])]};c.toHslObject=function(){var a=this.toHslArray();return{h:a[0],s:a[1],l:a[2]}};c.toRawHsvArray=function(){__p&&__p();var a=this._.hsv;if(a!==void 0)return a;if((a=this._.hsl)!==void 0)a=b("colr-convert").hsl.hsv(a);else if((a=this._.rgb)!==void 0)a=b("colr-convert").rgb.hsv(a);else throw new Error("No data to convert");this._.hsv=a;return a};c.toRawHsvObject=function(){var a=this.toRawHsvArray();return{h:a[0],s:a[1],v:a[2]}};c.toHsvArray=function(){var a=this.toRawHsvArray();return[Math.round(a[0]),Math.round(a[1]),Math.round(a[2])]};c.toHsvObject=function(){var a=this.toHsvArray();return{h:a[0],s:a[1],v:a[2]}};c.lighten=function(a){var b=this.toRawHslArray();a=a*(100-b[2]);b[2]=g(b[2]+a);this._={hsl:b};return this};c.darken=function(a){var b=this.toRawHslArray();a=a*b[2];b[2]=g(b[2]-a);this._={hsl:b};return this};c.clone=function(){var b=new a();b._.hex=this._.hex;b._.grayscale=this._.grayscale;this._.rgb!==void 0&&(b._.rgb=this._.rgb.slice(0));this._.hsv!==void 0&&(b._.hsv=this._.hsv.slice(0));this._.hsl!==void 0&&(b._.hsl=this._.hsl.slice(0));return b};return a}();function g(a){return Math.max(Math.min(a,100),0)}function h(a){return Math.max(Math.min(a,255),0)}function i(a,b,c){return[Math.max(Math.min(a,255),0),Math.max(Math.min(b,255),0),Math.max(Math.min(c,255),0)]}function j(a,b,c){return[Math.max(Math.min(a,360),0),Math.max(Math.min(b,100),0),Math.max(Math.min(c,100),0)]}e.exports=a}),null); __d("CanvasColorUtils",["Assert","colr"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){a=Math.floor(a*255/100).toString(16);a.length===1&&(a="0"+a);return a}function h(a){b("Assert").isTrue(a.length<=2,"invalid hex string: "+a);return Math.ceil(parseInt(a,16)/255*100)}function i(a){return b("colr").fromHex(a).toGrayscale()/255}e.exports={convertColorWithOpacityToARGB:function(a){var c=a.color;b("Assert").isTrue(6===c.length,"unexpected length string: "+c);a=g(a.opacity)+c;b("Assert").isTrue(a.length===8,"generated invalid argb: "+a);return a},convertARGBToColorWithOpacity:function(a){b("Assert").isTrue(a.length===8,"Got argb: "+a);return{color:a.slice(2),opacity:h(a.slice(0,2))}},convertRGBtoCSSColorWithOpacity:function(a,c){b("Assert").isTrue(6===a.length,"unexpected length string: "+a);return"rgba("+parseInt(a.slice(0,2),16)+","+parseInt(a.slice(2,4),16)+","+parseInt(a.slice(4,6),16)+","+c+")"},luminosityOfColor:i,colorContrastingWith:function(a){return i(a)>.5?"#000":"#FFF"}}}),null); __d("useNoopDebuggingInfoComponent",[],(function(a,b,c,d,e,f){"use strict";var g=function(){};a=function(){return[null,g]};e.exports=a}),null); __d("VideoPlayerOzImplementationRefactor2019Fork",["requireCond","cr:1082578"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:1082578")}),null); __d("FDSDropdownButton.react",["FDSButton.react","FDSPrivateThemeAtomsType","FDSPrivateThemeContext.react","React","SUIBorderUtils","SUIButtonContext","autoFlipStyleProps","getSUIButtonUniform.fds","getSUIDropdownButtonUniform.fds","makeFDSStandardComponent","makeSUIThemeGetter"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("React").useMemo,h=b("makeSUIThemeGetter")({SUIButton:b("getSUIButtonUniform.fds"),SUISelectorButton:b("getSUIDropdownButtonUniform.fds")}),i={isFixedWidthPadded:!0};a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a,c=this.context,d=h(c);c=c.id===b("FDSPrivateThemeAtomsType").FDS_GEODESIC;a=(a=d.SUISelectorButton.use[n(this.props.use)])!=null?a:d.SUISelectorButton.use["default"];var e=this.props.labelIsHidden&&this.props.icon==null;return b("React").createElement(b("SUIButtonContext").Provider,{value:i},b("React").createElement(b("FDSButton.react"),{"aria-haspopup":!0,"aria-pressed":null,borderedSides:this.props.borderedSides,"data-testid":this.props["data-testid"],icon:this.props.icon,iconAfter:b("React").createElement(k,{isGeo:c,isOnlyIcon:e,size:this.props.size,theme:d,width:this.props.width},a.chevron),id:this.props.id,isDepressed:this.props.isDepressed,isDisabled:this.props.isDisabled,label:this.props.label,labelIsHidden:this.props.labelIsHidden,margin:this.props.margin,maxWidth:this.props.maxWidth,onBlur:this.props.onBlur,onClick:this.props.onClick,onFocus:this.props.onFocus,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,onMouseDown:this.props.onMouseDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseUp:this.props.onMouseUp,rel:this.props.rel,roundedCorners:this.props.roundedCorners,size:this.props.size,textAlign:this.props.textAlign,tooltip:this.props.tooltip,tooltipDelay:this.props.tooltipDelay,tooltipPosition:this.props.tooltipPosition,type:this.props.type,use:this.props.use,width:this.props.width}))};return c}(b("React").PureComponent);a.contextType=b("FDSPrivateThemeContext.react");a.defaultProps={borderedSides:b("SUIBorderUtils").ALL_SIDES,isDisabled:!1,labelIsHidden:!1,roundedCorners:b("SUIBorderUtils").ALL_CORNERS,size:"medium",type:"button",use:"default"};var j={display:"flex",justifyContent:"flex-end",flexGrow:1};function k(a){__p&&__p();var c=a.children,d=a.isGeo,e=a.isOnlyIcon,f=a.size,h=a.style,i=a.theme,k=a.width;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","isGeo","isOnlyIcon","size","style","theme","width"]);i=i.SUIButton.padding[m(f)];var n=i.button,o=i.onlyIcon;f=g(function(){var a;if(c==null)return null;a=b("autoFlipStyleProps")({marginRight:(a=c.props.style)==null?void 0:a.marginRight,marginLeft:(a=c.props.style)==null?void 0:a.marginLeft});var f=l(h==null?void 0:h.marginRight,a==null?void 0:a.marginRight);a=l(h==null?void 0:h.marginLeft,a==null?void 0:a.marginLeft);var g=parseInt(n,10)-parseInt(o,10);g=d&&e?{marginRight:-g,marginLeft:-g}:null;return babelHelpers["extends"]({},h,f!=null?{marginRight:f}:null,a!=null?{marginLeft:a}:null,g)},[c,h,n,o,d,e]);if(c==null)return null;i=b("React").cloneElement(c,babelHelpers["extends"]({},a,{style:f}));return k==null||k==="auto"?i:b("React").createElement("span",{style:j},i)}function l(a,b){if(a==null&&b==null)return null;a=a!=null?parseInt(a,10):0;b=b!=null?parseInt(b,10):0;return a+b+"px"}function m(a){if(a==="small")return"short";return a==="large"?"tall":"normal"}function n(a){return a==="primary"?"confirm":a}e.exports=b("makeFDSStandardComponent")("FDSDropdownButton",a)}),null); __d("FDSEllipsisButton.react",["ix","FDSButton.react","React","SUIBorderUtils","SUIGlyphIcon.react","asset","makeFDSStandardComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement(b("FDSButton.react"),babelHelpers["extends"]({},this.props,{icon:b("React").createElement(b("SUIGlyphIcon.react"),{srcDefault:g("516421"),srcDisabled:g("532252")}),labelIsHidden:!0}))};return c}(b("React").PureComponent);a.defaultProps={borderedSides:b("SUIBorderUtils").ALL_SIDES,isDisabled:!1,roundedCorners:b("SUIBorderUtils").ALL_CORNERS,size:"medium",type:"button",use:"default"};e.exports=b("makeFDSStandardComponent")("FDSEllipsisButton",a)}),null); __d("divisorSignedModulo",[],(function(a,b,c,d,e,f){function a(a,b){return(a%b+b)%b}e.exports=a}),null); __d("wrapIndex",["divisorSignedModulo"],(function(a,b,c,d,e,f){"use strict";function a(a,c){return b("divisorSignedModulo")(a,c)}e.exports=a}),null); __d("SUIActionMenu.react",["cx","Link.react","Locale","React","RTLKeys","SUIComponent","SUIFocusUtil","SUISubActionMenuLayer.react","SUITheme","cxMargin","wrapIndex"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=1,i=4;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g1&&this.props.warningText)a=g("89108"),b=this.props.warningText;else if(this.props.messageText)a=g("89336"),b=this.props.messageText;else return null;return this._getMessageMarkup(a,b)},_getMessageMarkup:function(a,c){return b("React").createElement("div",{className:"_aym"},b("React").createElement(b("Image.react"),{className:"_a63",src:a}),c)}};e.exports=a}),null); __d("ProfileHeaderSpinner.react",["cx","React","XUISpinner.react"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return!this.props.shown?null:b("React").createElement("div",{className:"_5mb0"},b("React").createElement(b("XUISpinner.react"),{background:"light",size:"large"}))};return c}(b("React").Component);e.exports=a}),null); __d("ProfileHeaderViewShapes",["React"],(function(a,b,c,d,e,f){a=b("React").PropTypes;c=a.shape({focus:a.shape({height:a.number,width:a.number}),original:a.shape({height:a.number,width:a.number}),permalinkURI:a.string,source:a.number,uri:a.string,altText:a.string});e.exports={COVER_PHOTO_DATA:c}}),null); __d("ProfileWizardStrings",["fbt"],(function(a,b,c,d,e,f,g){a={CANCEL:g._("Cancel"),CHOOSE_FROM_MY_PHOTOS:g._("Choose From My Photos"),COVER_PHOTO_CHANGE_NOTICE:g._("Change your cover photo any time from the camera icon."),COVER_PHOTO_LEAVE_WARNING:g._("The changes you made to your cover photo haven't been saved."),PROFILE_PICTURE_CHANGE_NOTICE:g._("Change your profile picture any time from the camera icon."),SAVE:g._("Save"),UPDATE_COVER_PHOTO:g._("Update Cover Photo"),UPLOAD_PHOTO:g._("Upload Photo"),UPDATE_PROFILE_PICTURE:g._("Update Profile Picture")};e.exports=a}),null); __d("ProfileHeaderCoverPhoto.react",["ix","cx","BasicVector","Image.react","PhotoZoomCropDimensions","PhotoZoomCropImage.react","PhotoZoomCropMixin","ProfileHeaderSpinner.react","ProfileHeaderViewShapes","ProfileWizardStrings","React","ReactComponentWithPureRenderMixin","XUIButton.react","asset"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").PropTypes;c=b("React").createClass({displayName:"ProfileHeaderCoverPhoto",_dims:null,mixins:[b("PhotoZoomCropMixin"),b("ReactComponentWithPureRenderMixin")],propTypes:{coverPhotoData:b("ProfileHeaderViewShapes").COVER_PHOTO_DATA.isRequired,customControls:a.element,dragPosition:a.string,emptyCover:a.element,height:a.number.isRequired,hideDefaultButtons:a.bool,index:a.number,isHidden:a.bool,isLoading:a.bool,isRequestFromContextItems:a.bool,isTabbable:a.bool,moveStatus:a.bool,onMove:a.func,previewCancelHandler:a.func,previewMode:a.bool,previewSaveHandler:a.func,width:a.number.isRequired},getDefaultProps:function(){return{hideDefaultButtons:!1,onMove:function(){},previewCancelHandler:function(){},previewSaveHandler:function(){}}},getInitialState:function(){this._updateDimensions(this.props.coverPhotoData);return babelHelpers["extends"]({},this._getUpdatedDimensionsState())},UNSAFE_componentWillReceiveProps:function(a){__p&&__p();var b=this.props.coverPhotoData;if(b.id===a.coverPhotoData.id&&this.props.previewMode===a.previewMode&&this.props.width===a.width){b=b.focus;if(!b)return;if(b.width===a.coverPhotoData.focus.width&&b.height===a.coverPhotoData.focus.height)return}this._updateDimensions(a.coverPhotoData,a.height,a.width);this.setState(babelHelpers["extends"]({},this._getUpdatedDimensionsState()))},_updateDimensions:function(a,c,d){__p&&__p();var e=a.original;if(e==null)return;var f=new(b("BasicVector"))(e.width,e.height);f=new(b("PhotoZoomCropDimensions"))(f);f.setSize(d||this.props.width,c||this.props.height);d=a.focus;d&&f.setCenter(d.width,d.height);f.setZoom(f.getSize().x/e.width);this._dims=f},_getUpdatedDimensionsState:function(){return this._getDimensionsState()},_onMove:function(a,b){this._handleMove(a,b),this.props.onMove&&this.props.onMove(a,b,this.props.index)},render:function(){__p&&__p();var a=this.props.coverPhotoData;if(a.uri){var c=!!(this.props.previewMode&&this._dims&&this._dims.isCurrentlyDragable());c=b("React").createElement(b("PhotoZoomCropImage.react"),{altText:a.altText,className:"_2oru"+(this.props.isHidden||this.props.isLoading?" _2orv":""),customControls:this.props.customControls,dimensions:this._dims,dragPosition:this.props.dragPosition,enableDrag:c,isTabbable:this.props.isTabbable,moveStatus:this.props.moveStatus,onMove:this._onMove,src:a.uri})}else if(this.props.emptyCover)c=this.props.emptyCover;else{a=this.props.isRequestFromContextItems||null;a!==null?c=b("React").createElement("div",{className:"_6ld6"},b("React").createElement(b("Image.react"),{src:g("621934")})):c=b("React").createElement("div",{className:"_2orw"})}a=null;this.props.previewMode&&!this.props.customControls&&!this.props.hideDefaultButtons&&(a=b("React").createElement("div",{className:"_1tg",id:"fbProfileHeaderCoverPhotoControl"},b("React").createElement("div",{className:"_1th"},b("React").createElement(b("XUIButton.react"),{"data-testid":"cover_photo_save_button",label:b("ProfileWizardStrings").SAVE,onClick:this.props.previewSaveHandler,size:"large",use:"confirm"}),b("React").createElement(b("XUIButton.react"),{label:b("ProfileWizardStrings").CANCEL,onClick:this.props.previewCancelHandler,size:"large"}))));return b("React").createElement("div",{className:"_2orx",style:{height:this.props.height,width:this.props.width}},c,a,b("React").createElement(b("ProfileHeaderSpinner.react"),{shown:this.props.isLoading}))},getOffsets:function(){var a=this.getDimensions().getPosition();return{x:a.left/a.width,y:a.top/a.height}},getCenter:function(){var a=this.getDimensions().getRect();return a.center},__getZoom:function(){return this.state.zoom}});e.exports=c}),null); __d("createCommitMutation",["Promise","requireCond","cr:819055"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("cr:819055").commitMutation;function h(a,c,d){return new(b("Promise"))(function(b,e){return g(a,babelHelpers["extends"]({},d,{variables:{input:c},onCompleted:function(a,c){c&&c.length?e(c):b(a)},onError:function(a){return e([a])}}))})}function a(a,b){return function(c){return h(a,c,b)}}function c(a){return function(b,c){return h(b,c,a)}}function d(a,b){return function(c){return h(a,c,b(c))}}e.exports.createCommitMutation=a;e.exports.createCommitMutationForEnvironment=c;e.exports.createCommitMutationWithVariables=d}),null); __d("XUIDateTimePickerUtils",[],(function(a,b,c,d,e,f){__p&&__p();var g=60,h=36e5,i=3600,j=60;a={offsetDate:function(a,b,c){b=b!=null?b:a.getTimezoneOffset()/g*-1;c=c?-1:1;c=b>=0?c:c*-1;b=Math.abs(b)*h;return new Date(a.getTime()+b*c)},getOffsetUIDate:function(a,b){return this.offsetDate(a,b)},getOffsetUISecondsSinceMidnightUTC:function(a,b){return this.getSecondsSinceMidnightUTC(this.getOffsetUIDate(a,b))},getActualDateFromOffsetUIDate:function(a,b){return this.offsetDate(a,b,!0)},getActualDateFromOffsetUISeconds:function(a,b,c){b=this.getDateAtTimeUTC(this.getOffsetUIDate(b,c),a);return this.getActualDateFromOffsetUIDate(b,c)},getActualCanonicalDate:function(a,b,c){c=this.getOffsetUIDate(b,c);var d=0;c.getUTCDate()!==b.getUTCDate()&&(d=c.getTime()=d){this.$12(this.$7);this.$7.clear();return c}}this.$9===null&&(this.$9=window.setTimeout(function(){b.$12(b.$7),b.$7.clear(),b.$10||b.$8.clear(),b.$9=null},0));this.$11=this.$11["delete"](a)}return c};c.getCached=function(a){a=this.$5(a);return this.$1.has(a)?this.$1.get(a):b("LoadObject").empty()};c.getAll=function(a){__p&&__p();var c=this,d=b("immutable").Map().withMutations(function(b){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;b.set(g,c.get(g))}});return d};c.setKeyStale=function(b){b=new a(g,this.$3,this.$5,this.$4,this.$6,this.$10,this.$11.add(b));b.$1=this.$1;return b};c.setAllKeysStale=function(b){b=new a(g,this.$3,this.$5,this.$4,this.$6,this.$10,this.$11.union(b));b.$1=this.$1;return b};c.$13=function(a,b){__p&&__p();var c=[],d=new Set();b=this.__modifyChunkSize(a,b);for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;d.add(g);d.size>=b&&(c.push(d),d=new Set())}d.size>0&&c.push(d);return c};c.$12=function(a){__p&&__p();for(var a=this.$13(a,this.$6),b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;this.__doLoadChunk(d)}};c.__doLoadChunk=function(a){this.$3(a)};c.__modifyChunkSize=function(a,b){return b};c.getData=function(){return this.$1};c.__setData=function(a){this.$1=a};c.getLoadedMap=function(){__p&&__p();if(!this.$2){var a=[];for(var c=this.$1,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;var g=f[0];f=f[1];f.hasValue()&&a.push([g,f.getValueEnforcing()])}this.$2=b("immutable").Map(a)}return this.$2};c.getLoadedValue=function(a){return this.getLoadedMap().get(this.$5(a))};c.setDeleting=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;var h=b.$5(g);g=b.getCached(g);c.set(h,g.deleting())}})})};c.setLoading=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;var h=b.$5(g);g=b.getCached(g);c.set(h,g.loading())}})})};c.setUpdating=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;var h=b.$5(g);g=b.getCached(g);c.set(h,g.updating())}})})};c.setSingleValueOrError=function(a,b){var c=this.getCached(a);if(b instanceof Error)return this.set(a,c.setError(b).done());else return this.set(a,c.setValue(b).done())};c.setMultipleValueOrError=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];var i=b.$5(h);h=b.getCached(h);g instanceof Error?c.set(i,h.setError(g).done()):c.set(i,h.setValue(g).done())}})})};c.setMultipleErrors=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];var i=b.$5(h);h=b.getCached(h);c.set(i,h.setError(g).done())}})})};c.deleteMultipleValueOrError=function(a){__p&&__p();var b=this;return this.__mutate(function(){__p&&__p();return b.$1.withMutations(function(c){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;g=b.$5(g);c["delete"](g)}})})};c.deleteAllErrors=function(){var a=this;return this.__mutate(function(){return a.$1.withMutations(function(a){a.forEach(function(b,c){b.hasError()&&a["delete"](c)})})})};c.has=function(a){return this.$1.has(this.$5(a))};c.set=function(a,b){var c=this;return this.__mutate(function(){return c.$1.set(c.$5(a),b)})};c.update=function(a,b){return this.set(a,b(this.get(a)))};c["delete"]=function(a){var b=this;return this.__mutate(function(){return b.$1["delete"](b.$5(a))})};c.merge=function(a){var b=this;return this.__mutate(function(){return b.$1.merge(b.$14(a))})};c.withMutations=function(a){var b=this;return this.__mutate(function(){return b.$1.withMutations(a)})};c.clear=function(){var a=this;return this.__mutate(function(){return a.$1.clear()})};c.$14=b("regeneratorRuntime").mark(function a(c){__p&&__p();var d,e,f,g,h;return b("regeneratorRuntime").wrap(function(a){__p&&__p();while(1)switch(a.prev=a.next){case 0:d=c,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();case 1:if(!e){a.next=7;break}if(!(f>=d.length)){a.next=4;break}return a.abrupt("break",16);case 4:g=d[f++];a.next=11;break;case 7:f=d.next();if(!f.done){a.next=10;break}return a.abrupt("break",16);case 10:g=f.value;case 11:h=g;a.next=14;return[this.$5(h[0]),h[1]];case 14:a.next=1;break;case 16:case"end":return a.stop()}},a,this)});c.__mutate=function(b){b=b();if(b===this.$1)return this;var c=new a(g,this.$3,this.$5,this.$4,this.$6,this.$10,this.$11);c.$1=b;return c};return a}();e.exports=a}),null); __d("Dimensions",[],(function(a,b,c,d,e,f){"use strict";a={get:function(a){return{fontScale:1,height:550,width:310,scale:2.5}}};e.exports=a}),null); __d("PixelRatio_FIXME",["Dimensions"],(function(a,b,c,d,e,f){"use strict";var g={get:function(){return b("Dimensions").get("window").scale},getFontScale:function(){return b("Dimensions").get("window").fontScale||g.get()},getPixelSizeForLayoutSize:function(a){return Math.round(a*g.get())},roundToNearestPixel:function(a){var b=g.get();return Math.round(a*b)/b},startDetecting:function(){}};e.exports=g}),null); __d("XCMSBlockDeliveryController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/cms/render_block/",{})}),null); __d("XPhotoBrowserDialogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/photo_browser_dialog/",{album_id:{type:"Int"},cursor:{type:"String"},data:{type:"String",defaultValue:""},display:{type:"Enum",defaultValue:2,enumType:0},endpoint:{type:"Enum",required:!0,enumType:0},generator:{type:"Enum",required:!0,enumType:0},id:{type:"Int",required:!0},member_id:{type:"Int"},existing_media_ids:{type:"FBIDSet",defaultValue:[]},ajaxify_links:{type:"Bool",defaultValue:!0},include_photo_uri:{type:"Bool",defaultValue:!1},__asyncDialog:{type:"Int"}})}),null); __d("XPhotoPermalinkController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/{vanity}/photos/{?set_token}/{photo_id}/",{photo_id:{type:"Int"},set_token:{type:"String"},type:{type:"Enum",defaultValue:3,enumType:0},link_share:{type:"String"},subject:{type:"Int"},object_id:{type:"Int"},opaque_cursor:{type:"String"},legacy_user_id:{type:"Int"},legacy_photo_id:{type:"Int"},video_id:{type:"Int"},comment_id:{type:"Int"},notif_t:{type:"String"},is_notification_preview:{type:"Bool",defaultValue:!1},force_theater:{type:"Bool",defaultValue:!1},story_token:{type:"String"},vanity:{type:"String"},__tn__:{type:"String"},reply_comment_id:{type:"Int"}})}),null); __d("XSavedForLaterDashboardController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/saved/",{collection_token:{type:"String"},tag_filter:{type:"String"},cref:{type:"Int"},suggestion_dialog:{type:"Int"},cursor:{type:"String"},notif_id:{type:"Int"},dashboard_section:{type:"Enum",defaultValue:"ALL",enumType:1},cref_name:{type:"String"},a_type:{type:"String"},search_token:{type:"String"},list_id:{type:"Int"},tab:{type:"Enum",enumType:1},unlisted_only:{type:"Bool",defaultValue:!1},seen_state_filter:{type:"Enum",enumType:0},referrer:{type:"String"}})}),null);