if (self.CavalryLogger) { CavalryLogger.start_js(["W0Wxg"]); } __d("Locale",["SiteData"],(function(a,b,c,d,e,f){function a(){return b("SiteData").is_rtl}e.exports={isRTL:a}}),null); __d("getOffsetParent",["Style"],(function(a,b,c,d,e,f){function g(a){a=a.parentNode;if(!a||a===document.documentElement)return document.documentElement;return b("Style").get(a,"position")!=="static"?a:a===document.body?document.documentElement:g(a)}e.exports=g}),null); __d("TypeaheadViewItem",["React","ReactDOM","SearchableEntry","prop-types"],(function(a,b,c,d,e,f){var g=b("React");d={children:(c=b("prop-types")).node,className:c.string,entry:c.instanceOf(b("SearchableEntry")).isRequired,highlighted:c.bool,role:c.string,selected:c.bool,onSelect:c.func.isRequired,onHighlight:c.func,onRenderHighlight:c.func};f={children:c.node,className:c.string,entry:c.instanceOf(b("SearchableEntry")).isRequired,highlighted:c.bool,role:c.string,selected:c.bool,onSelect:c.func.isRequired,onHighlight:c.func,onRenderHighlight:c.func};var h={role:"option"};c={_onSelect:function(a){this.props.onSelect(this.props.entry,a)},_onHighlight:function(a){this.props.onHighlight&&this.props.onHighlight(this.props.entry,a)},getDefaultProps:function(){return h},shouldComponentUpdate:function(a){return this.props.entry.getUniqueID()!==a.entry.getUniqueID()||this.props.highlighted!==a.highlighted||this.props.selected!==a.selected},componentDidMount:function(){var a=this.props.onRenderHighlight;this.props.highlighted&&a&&a(b("ReactDOM").findDOMNode(this))},componentDidUpdate:function(){var a=this.props.onRenderHighlight;this.props.highlighted&&a&&a(b("ReactDOM").findDOMNode(this))}};function a(a){var c,d;return d=c=function(c){"use strict";babelHelpers.inheritsLoose(d,c);function d(){var a,b;for(var d=arguments.length,e=new Array(d),f=0;f0){k(f[g],i(a,c,g));return"break"}c=b("BinarySearch").greatestLowerBound(function(b){k(f[g],j(a[0],b,g));return d.offsetHeight||0},m,0,a[0].length-h.length-2,function(a,b){return a-b});if(c>-1){k(f[g],j(a[0],c,g));return"break"}k(f[g],"");g--};while(g>=0){a=e();if(a==="break")break}}};function k(a,b){g=g||(a.textContent!=null?"textContent":"innerText"),a[g]=b}function l(a){return b("isTextNode")(a)?[a]:b("concatMap")(l,Array.from(a.childNodes))}e.exports=a}),null); __d("LitestandShareAttachment",["csx","cx","CSS","DOMQuery","LitestandEllipsis","queryThenMutateDOM"],(function(a,b,c,d,e,f,g,h){var i=22,j=16,k=5,l=3,m=3,n=2,o=2,p=5,q=5,r="_5qqr",s="_6m2",t=20,u=20,v=2;function w(a){return b("CSS").matchesSelector(a,"._59ap")}function x(a){return b("CSS").matchesSelector(a,"._5ej3")}function y(a){return b("CSS").matchesSelector(a,"._pb2")}function z(a){return b("CSS").matchesSelector(a,"._1-9r")}function A(a){return b("CSS").matchesSelector(a,"._61bj")}function B(a,c){a=a.getElementsByTagName?b("DOMQuery").scry(a,c)[0]:null;return a?a:null}function C(a){return!!B(a,"^div._4rtc")}function D(a){return B(a,"._59tj")}function E(a){return B(a,"._6m6")}function F(a){return B(a,"._6m7")}function G(a){return B(a,"._6m3")}function H(a){if(y(a))return o;else if(C(a))return n;else if(w(a))if(z(a))return v;else return l;else if(x(a))return m;else return k}function I(a,b,c){var d=G(a);if(!b||!d||A(a))return 0;var e=D(a),f=w(a),g=y(a),h=Math.round(b.scrollHeight/J(a));if(w(a)&&z(a))if(h==v)return 0;else return Math.max(v-h,0);if(h>c&&!g)return 0;h=d.offsetHeight-p-b.offsetHeight-(e?e.offsetHeight:0)-(f?0:q)+1;return Math.floor(Math.max(h,0)/K(a))}function J(a){return y(a)?u:i}function K(a){return z(a)?t:j}a={getSimpleCropClass:function(){return r},_truncateText:function(a,c){var d,e,f,g=H(a);b("queryThenMutateDOM")(function(){d=E(a),e=F(a),f=I(a,d,g)},function(){if(!a.offsetHeight){c&&b("CSS").addClass(a,r);return}!f?(e&&b("CSS").hide(e),d&&b("LitestandEllipsis").add(d,g*J(a))):e&&f&&(b("CSS").show(e),b("LitestandEllipsis").add(e,f*K(a)))})},getDetailsBreakingNewsPlaceholder:function(a){a=this.getDetailsFooterBrandName(a);if(!a)return null;var b=B(a.parentNode,"div._3vkw");b||(b=document.createElement("div"),b.className="clearfix _3vkw",a.parentNode.insertBefore(b,a));return b},getBreakingBanner:function(a){a=B(a,"div.___a");return a},getDetailsFooterBrandName:function(a){a=B(a,"div._59tj");return!a?null:B(a,"div._6lz")},getDetailsFooterForBreaking:function(a){return B(a,"div._59tj")},getTitleNode:function(a){return B(a,"div._6m6")},getContentNode:function(a){return B(a,"div._6m3")},init:function(a,c){var d=this;if(b("CSS").hasClass(a,r)){var e=!1;b("queryThenMutateDOM")(function(){a.offsetHeight&&(e=!0)},function(){e?(b("CSS").removeClass(a,r),d._truncateText(a,!0)):c||window.setTimeout(function(){return d.init(a,!0)},300)});return}else{var f=b("CSS").hasClass(a,s);this._truncateText(a,f)}},getNumDescriptionLines:function(a){return I(a,E(a),H(a))},getDescriptionLineHeight:function(a){return K(a)}};e.exports=a}),null); __d("BanzaiConsts",[],(function(a,b,c,d,e,f){a={SEND:"Banzai:SEND",OK:"Banzai:OK",ERROR:"Banzai:ERROR",SHUTDOWN:"Banzai:SHUTDOWN",BASIC:"basic",VITAL:"vital",BASIC_WAIT:6e4,BASIC_WAIT_COMET:2e3,VITAL_WAIT:1e3,BATCH_SIZE_LIMIT:64e3,EXPIRY:864e5,BATCH_TIMEOUT:1e4,LAST_STORAGE_FLUSH:"banzai:last_storage_flush",STORAGE_FLUSH_INTERVAL:12*60*6e4,ODS_ROUTE:"categorized_ods",POST_READY:0,POST_INFLIGHT:1,POST_SENT:2};e.exports=a}),null); __d("CurrentUser",["Cookie","CurrentUserInitialData"],(function(a,b,c,d,e,f){var g,h={getID:function(){return(g||(g=b("CurrentUserInitialData"))).USER_ID},getAccountID:function(){return(g||(g=b("CurrentUserInitialData"))).ACCOUNT_ID},getEmployeeWorkUserID:function(){return(g||(g=b("CurrentUserInitialData"))).WORK_USER_ID},getName:function(){return(g||(g=b("CurrentUserInitialData"))).NAME},getShortName:function(){return(g||(g=b("CurrentUserInitialData"))).SHORT_NAME},isLoggedIn:function(){return(g||(g=b("CurrentUserInitialData"))).USER_ID!=="0"},isLoggedInNow:function(){if(!h.isLoggedIn())return!1;if((g||(g=b("CurrentUserInitialData"))).IS_INTERN_SITE)return!0;if((g||(g=b("CurrentUserInitialData"))).IS_WORK_USER)return!0;return(g||(g=b("CurrentUserInitialData"))).ORIGINAL_USER_ID!=null&&(g||(g=b("CurrentUserInitialData"))).ORIGINAL_USER_ID!=""?(g||(g=b("CurrentUserInitialData"))).ORIGINAL_USER_ID===b("Cookie").get("c_user"):(g||(g=b("CurrentUserInitialData"))).USER_ID===b("Cookie").get("c_user")},isEmployee:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_EMPLOYEE},isTestUser:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_TEST_USER},hasWorkUser:function(){return!!(g||(g=b("CurrentUserInitialData"))).HAS_WORK_USER},isWorkUser:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_WORK_USER},isGray:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_GRAY},isUnderage:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_UNDERAGE},isMessengerOnlyUser:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_MESSENGER_ONLY_USER},isDeactivatedAllowedOnMessenger:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_DEACTIVATED_ALLOWED_ON_MESSENGER},isMessengerCallGuestUser:function(){return!!(g||(g=b("CurrentUserInitialData"))).IS_MESSENGER_CALL_GUEST_USER},getAppID:function(){return(g||(g=b("CurrentUserInitialData"))).APP_ID}};e.exports=h}),null); __d("BanzaiUtils",["BanzaiConsts","CurrentUser","FBLogger","WebSession","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";var g,h,i={canSend:function(a){return a[2]>=(g||(g=b("performanceAbsoluteNow")))()-(h||(h=b("BanzaiConsts"))).EXPIRY},filterPost:function(a,c,d,e){if(e.overlimit)return!0;if(!e.sendMinimumOnePost&&a[4]+e.currentSize>(h||(h=b("BanzaiConsts"))).BATCH_SIZE_LIMIT)return!0;var f=a.__meta;if(f.status!=null&&f.status>=(h||(h=b("BanzaiConsts"))).POST_SENT||!i.canSend(a))return!1;if(f.status!=null&&f.status>=(h||(h=b("BanzaiConsts"))).POST_INFLIGHT)return!0;var g=f.compress!=null?f.compress:!0,j=(f.webSessionId!=null?f.webSessionId:"null")+(f.userID!=null?f.userID:"null")+(f.appID!=null?f.appID:"null")+(g?"compress":""),k=e.wadMap.get(j);k||(k={app_id:f.appID,needs_compression:g,posts:[],user:f.userID,webSessionId:f.webSessionId},e.wadMap.set(j,k),c.push(k));f.status=(h||(h=b("BanzaiConsts"))).POST_INFLIGHT;Array.isArray(k.posts)?k.posts.push(a):b("FBLogger")("banzai").mustfix("Posts were a string instead of array");d.push(a);e.currentSize+=a[4];e.currentSize>=(h||(h=b("BanzaiConsts"))).BATCH_SIZE_LIMIT&&(e.overlimit=!0);return e.keepRetryable&&Boolean(f.retry)},resetPostStatus:function(a){a.__meta.status=(h||(h=b("BanzaiConsts"))).POST_READY},retryPost:function(a,c,d){var e=a;e.__meta.status=(h||(h=b("BanzaiConsts"))).POST_READY;e[3]=(e[3]||0)+1;e.__meta.retry!==!0&&c>=400&&c<600&&d.push(a)},wrapData:function(a,c,d,e,f){d=[a,c,d,0,(a=f)!=null?a:c?JSON.stringify(c).length:0];d.__meta={appID:b("CurrentUser").getAppID(),retry:e===!0,status:(h||(h=b("BanzaiConsts"))).POST_READY,userID:b("CurrentUser").getID(),webSessionId:b("WebSession").getId()};return d}};e.exports=i}),null); __d("cancelIdleCallback",["requireCond","cr:692209"],(function(a,b,c,d,e,f){e.exports=b("cr:692209")}),null); __d("SetIdleTimeoutAcrossTransitions",["NavigationMetrics","cancelIdleCallback","clearTimeout","nullthrows","requestIdleCallbackAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";var g=!1,h=new Map();c={start:function(a,c){if(g){var d=b("setTimeoutAcrossTransitions")(function(){var c=b("requestIdleCallbackAcrossTransitions")(function(){a(),h["delete"](c)});h.set(d,c)},c);return d}else return b("setTimeoutAcrossTransitions")(a,c)},clear:function(a){b("clearTimeout")(a),h.has(a)&&(b("cancelIdleCallback")(b("nullthrows")(h.get(a))),h["delete"](a))}};b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.EVENT_OCCURRED,function(b,c){c.event==="all_pagelets_loaded"&&(g=!!a.requestIdleCallback)});e.exports=c}),null); __d("WebStorageMutex",["WebStorage","clearTimeout","pageID","setTimeout"],(function(a,b,c,d,e,f){"use strict";var g,h=null,i=!1,j=b("pageID");function k(){i||(i=!0,h=(g||(g=b("WebStorage"))).getLocalStorage());return h}a=function(){function a(a){this.name=a}a.testSetPageID=function(a){j=a};var c=a.prototype;c.$2=function(){var a,b=k();if(!b)return j;b=b.getItem("mutex_"+this.name);b=((a=b)!=null?a:"").split(":");return b&&parseInt(b[1],10)>=Date.now()?b[0]:null};c.$3=function(a){var c=k();if(!c)return;a=a==null?1e3:a;a=Date.now()+a;(g||(g=b("WebStorage"))).setItemGuarded(c,"mutex_"+this.name,j+":"+a)};c.hasLock=function(){return this.$2()===j};c.lock=function(a,c,d){var e=this;this.$1&&b("clearTimeout")(this.$1);j===(this.$2()||j)&&this.$3(d);this.$1=b("setTimeout")(function(){e.$1=null;var b=e.hasLock()?a:c;b&&b(e)},0)};c.unlock=function(){this.$1&&b("clearTimeout")(this.$1);var a=k();a&&this.hasLock()&&a.removeItem("mutex_"+this.name)};return a}();e.exports=a}),null); __d("BanzaiStorage",["BanzaiConsts","BanzaiUtils","CurrentUser","FBJSON","SetIdleTimeoutAcrossTransitions","WebSession","WebStorage","WebStorageMutex","isInIframe","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";var g,h,i,j="bz:",k=b("isInIframe")(),l,m=!1,n=null;function o(){var a="check_quota";try{var b=p();if(!b)return!1;b.setItem(a,a);b.removeItem(a);return!0}catch(a){return!1}}function p(){m||(m=!0,l=(g||(g=b("WebStorage"))).getLocalStorage());return l}a={flush:function(a){if(k)return;var c=p();if(c){n==null&&(n=parseInt(c.getItem((h||(h=b("BanzaiConsts"))).LAST_STORAGE_FLUSH),10));var d=n&&(i||(i=b("performanceAbsoluteNow")))()-n>=(h||(h=b("BanzaiConsts"))).STORAGE_FLUSH_INTERVAL;d&&a();(d||!n)&&(n=(i||(i=b("performanceAbsoluteNow")))(),(g||(g=b("WebStorage"))).setItemGuarded(c,(h||(h=b("BanzaiConsts"))).LAST_STORAGE_FLUSH,n.toString()))}},restore:function(a){if(k)return;var c=p();if(!c)return;var d=function(d){var e=[];for(var f=0;f=4){var a=j.indexOf(g);a>=0&&j.splice(a,1);try{a=g.status}catch(b){a=0}a==200?(c&&c(),e||o.inform((i||(i=b("BanzaiConsts"))).OK)):(d&&d(a),e||o.inform((i||(i=b("BanzaiConsts"))).ERROR))}};j.push(g);g.send(a,!1)},setHooks:function(a){},setUnloadHook:function(a){b("Run").onAfterUnload(a._unload)},onUnload:function(a){b("Run").onAfterUnload(a)},isOkToSendViaBeacon:function(){return!0}};e.exports=o}),null); __d("XLynxAsyncCallbackController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/si/linkclick/ajax_callback/",{lynx_uri:{type:"String"}})}),null); __d("FBLynxLogging",["AsyncRequest","BanzaiODS","XLynxAsyncCallbackController"],(function(a,b,c,d,e,f){"use strict";a={log:function(a){var c=b("XLynxAsyncCallbackController").getURIBuilder().getURI();new(b("AsyncRequest"))(c).setData({lynx_uri:a}).setErrorHandler(function(a){a=a.getError();b("BanzaiODS").bumpEntityKey(2966,"linkshim","click_log.post.fail."+a)}).setTransportErrorHandler(function(a){a=a.getError();b("BanzaiODS").bumpEntityKey(2966,"linkshim","click_log.post.transport_fail."+a)}).send()}};e.exports=a}),null); __d("isLinkshimURI",["isFacebookURI","isMessengerDotComURI"],(function(a,b,c,d,e,f){"use strict";function a(a){var c=a.getPath();return(c==="/l.php"||c.indexOf("/si/ajax/l/")===0||c.indexOf("/l/")===0||c.indexOf("l/")===0)&&(b("isFacebookURI")(a)||b("isMessengerDotComURI")(a))?!0:!1}e.exports=a}),null); __d("FBLynxBase",["FBLynxLogging","LinkshimHandlerConfig","URI","$","isLinkshimURI"],(function(a,b,c,d,e,f){"use strict";var g;function h(a){if(!b("isLinkshimURI")(a))return null;a=a.getQueryData().u;return!a?null:a}var i={logAsyncClick:function(a){i.swapLinkWithUnshimmedLink(a);a=a.getAttribute("data-lynx-uri");if(!a)return;b("FBLynxLogging").log(a)},originReferrerPolicyClick:function(a){var c=b("$")("meta_referrer");c.content=b("LinkshimHandlerConfig").switched_meta_referrer_policy;i.logAsyncClick(a);setTimeout(function(){c.content=b("LinkshimHandlerConfig").default_meta_referrer_policy},100)},swapLinkWithUnshimmedLink:function(a){var c=a.href,d=h(new(g||(g=b("URI")))(c));if(!d)return;a.setAttribute("data-lynx-uri",c);a.href=d},revertSwapIfLynxURIPresent:function(a){var b=a.getAttribute("data-lynx-uri");if(!b)return;a.removeAttribute("data-lynx-uri");a.href=b}};e.exports=i}),null); __d("FBLynx",["Base64","Event","FBLynxBase","LinkshimHandlerConfig","Parent","URI"],(function(a,b,c,d,e,f){"use strict";var g,h=(g||(g=b("URI"))).goURIOnWindow,i={alreadySetup:!1,setupDelegation:function(a){a===void 0&&(a=!1);if(document.body==null){if(a)return;setTimeout(function(){i.setupDelegation(!0)},100);return}if(i.alreadySetup)return;i.alreadySetup=!0;var c=function(a){var c=i.getMaybeLynxLink(a.target);if(!c)return;var d=c[0];c=c[1];var e=c,f=new(g||(g=b("URI")))(c.href),j;if(b("LinkshimHandlerConfig").ghl_param_link_shim&&d!=="hover"&&(c.dataset&&c.dataset.attributes)){j=b("Base64").decodeObject(c.dataset.attributes);if(j&&j.open_link){var k;for(k in j)k!=="open_link"&&f.addQueryData(k,j[k]);k=c.cloneNode(!0);k.href=f.toString();e=k}}switch(d){case"async":case"asynclazy":b("FBLynxBase").logAsyncClick(e);break;case"origin":b("FBLynxBase").originReferrerPolicyClick(e);break;case"hover":i.hoverClick(e);break}b("LinkshimHandlerConfig").ghl_param_link_shim&&d!=="hover"&&j&&j.open_link&&(a.preventDefault(),h(f,window.open("",e.target),!0))};b("Event").listen(document.body,"click",c);b("LinkshimHandlerConfig").middle_click_requires_event&&b("Event").listen(document.body,"mouseup",function(a){a.button==1&&c(a)});b("Event").listen(document.body,"mouseover",function(a){a=i.getMaybeLynxLink(a.target);if(!a)return;var b=a[0];a=a[1];switch(b){case"async":case"asynclazy":case"origin":case"hover":i.mouseover(a);break}});b("Event").listen(document.body,"contextmenu",function(a){a=i.getMaybeLynxLink(a.target);if(!a)return;var b=a[0];a=a[1];switch(b){case"async":case"hover":case"origin":i.contextmenu(a);break;case"asynclazy":break}})},getMaybeLynxLink:function(a){a=b("Parent").byAttribute(a,"data-lynx-mode");if(a instanceof HTMLAnchorElement){var c=a.getAttribute("data-lynx-mode");switch(c){case"async":case"asynclazy":case"hover":case"origin":return[c,a];default:return null}}return null},hoverClick:function(a){b("FBLynxBase").revertSwapIfLynxURIPresent(a)},mouseover:function(a){b("FBLynxBase").swapLinkWithUnshimmedLink(a)},contextmenu:function(a){b("FBLynxBase").revertSwapIfLynxURIPresent(a)}};e.exports=i}),null); __d("Popup",["isTruthy"],(function(a,b,c,d,e,f){a={open:function(a,c,d,e){var f=[];b("isTruthy")(c)&&f.push("width="+c);b("isTruthy")(d)&&f.push("height="+d);var g=document.body;if(g!=null&&c!=null&&c!==0&&d!=null&&d!==0){var h="screenX"in window?window.screenX:window.screenLeft,i="screenY"in window?window.screenY:window.screenTop,j="outerWidth"in window?window.outerWidth:g.clientWidth;g="outerHeight"in window?window.outerHeight:g.clientHeight-22;h=Math.floor(h+(j-c)/2);j=Math.floor(i+(g-d)/2.5);f.push("left="+h);f.push("top="+j)}f.push("scrollbars");return window.open(a,e!=null&&e!==""?e:"_blank",f.join(","))}};e.exports=a}),null); __d("PopupWindow",["DOMDimensions","DOMQuery","FlowMigrationUtilsForLegacyFiles","Layer","Popup","getViewportDimensions"],(function(a,b,c,d,e,f){var g=b("FlowMigrationUtilsForLegacyFiles").invariantViolation,h=b("FlowMigrationUtilsForLegacyFiles").isFalsy,i={_opts:{allowShrink:!0,strategy:"vector",timeout:100,widthElement:null},init:function(a){Object.assign(i._opts,a),window.setInterval(i._resizeCheck,i._opts.timeout)},_resizeCheck:function(){var a=b("getViewportDimensions")(),c=i._getDocumentSize(),d=b("Layer").getTopmostLayer();if(d){d=(d=d.getRoot())==null?void 0:d.firstChild;d||g("topMostLayer.getRoot().firstChild is null.");var e=b("DOMDimensions").getElementDimensions(d);e.height+=b("DOMDimensions").measureElementBox(d,"height",!0,!0,!0);e.width+=b("DOMDimensions").measureElementBox(d,"width",!0,!0,!0);c.height=Math.max(c.height,e.height);c.width=Math.max(c.width,e.width)}d=c.height-a.height;e=c.width-a.width;e<0&&h(i._opts.widthElement)&&(e=0);e=e>1?e:0;h(i._opts.allowShrink)&&d<0&&(d=0);if(d||e)try{window.console&&window.console.firebug,window.resizeBy(e,d),e&&window.moveBy(e/-2,0)}catch(a){}},_getDocumentSize:function(){var c=b("DOMDimensions").getDocumentDimensions();if(i._opts.strategy==="offsetHeight"){var d=document.body;if(!d)g("document.body is null.");else{c.height=(d=d.offsetHeight)!=null?d:0}}if(h(i._opts.widthElement)&&typeof i._opts.widthElement==="string"){d=b("DOMQuery").scry(document.body,i._opts.widthElement)[0];d&&(c.width=b("DOMDimensions").getElementDimensions(d).width)}d=a.Dialog;d&&d.max_bottom&&d.max_bottom>c.height&&(c.height=d.max_bottom);return c},open:function(a,c,d,e){return b("Popup").open(a,d,c,e)}};e.exports=i}),null); __d("PluginMessage",["DOMEventListener"],(function(a,b,c,d,e,f){a={listen:function(){b("DOMEventListener").add(window,"message",function(a){if(/\.facebook\.com$/.test(a.origin)&&/^FB_POPUP:/.test(a.data)){a=JSON.parse(a.data.substring(9));"reload"in a&&/^https?:/.test(a.reload)&&document.location.replace(a.reload)}})}};e.exports=a}),null); __d("PluginResize",["Locale","Log","UnverifiedXD","getOffsetParent","getStyleProperty"],(function(a,b,c,d,e,f){function g(a){a=a||document.body;var c=0,d=b("getOffsetParent")(a);b("Locale").isRTL()&&d?c=d.offsetWidth-a.offsetLeft-a.offsetWidth:b("Locale").isRTL()||(c=a.offsetLeft);return h(a)+c}function h(a){return Math.ceil(parseFloat(b("getStyleProperty")(a,"width")))||a.offsetWidth}function i(a){a=a||document.body;return a.offsetHeight+a.offsetTop}function j(a,b,c){this.calcWidth=a||g,this.calcHeight=b||i,this.width=void 0,this.height=void 0,this.event=c||"resize"}Object.assign(j.prototype,{resize:function(){var a=this.calcWidth(),c=this.calcHeight();(a!==this.width||c!==this.height)&&(b("Log").debug("Resizing Plugin: (%s, %s, %s, %s)",a,c,this.event),this.width=a,this.height=c,b("UnverifiedXD").send({type:this.event,width:a,height:c}));return this},auto:function(a){setInterval(this.resize.bind(this),a||250);return this}});j.auto=function(a,b,c){return new j(g.bind(null,a),i.bind(null,a),b).resize().auto(c)};j.autoHeight=function(a,b,c,d){return new j(function(){return a},i.bind(null,b),c).resize().auto(d)};j.getElementWidth=h;e.exports=j}),null); __d("forEachObject",[],(function(a,b,c,d,e,f){"use strict";var g=Object.prototype.hasOwnProperty;function a(a,b,c){for(var d in a){var e=d;g.call(a,e)&&b.call(c,a[e],e,a)}}e.exports=a}),null); __d("monitorCodeUse",["invariant","BanzaiScuba","ErrorNormalizeUtils","ScriptPath","SiteData","forEachObject","gkx","ReactCurrentOwner"],(function(a,b,c,d,e,f,g){var h;function i(a){a=a.type;if(typeof a==="string")return a;return typeof a==="function"?a.displayName||a.name:null}function j(a){var b=1e3,c=[];while(a&&c.length10){var b=a.slice(0,5).map(k);return"["+b.join(", ")+", ...]"}b=a.map(k);return"["+b.join(", ")+"]"}if(typeof a==="string")return"'"+a+"'";if(typeof a==="object"){b=Object.keys(a).map(function(a){return a+"=..."});return"{"+b.join(", ")+"}"}return String(a)}function m(a){return a.identifier||""}function n(a){var b;return((b=a.script)!=null?b:"")+" "+((b=a.line)!=null?b:"")+":"+((b=a.column)!=null?b:"")}var o;function a(a,c,d){c===void 0&&(c={});d===void 0&&(d={});a&&!/[^a-z0-9_]/.test(a)||g(0,2789);var e={};d.sampleRate!=null&&(e.sampleRate=d.sampleRate);var f=new(b("BanzaiScuba"))("core_monitor",null,e);f.addNormal("event",a);o===void 0&&(o=b("gkx")("708253"));f.addNormal("is_comet",o);e=h||(h=b("ReactCurrentOwner"));f.addNormVector("owners",j(e.current));f.addNormal("uri",window.location.href);f.addNormal("script_path",b("ScriptPath").getScriptPath());f.addNormal("devserver_username",b("SiteData").devserver_username||"");e=!1;d.forceIncludeStackTrace&&(e=!0);if(e)try{d=new Error(a);d.framesToPop=1;e=b("ErrorNormalizeUtils").normalizeError(d).stackFrames;a=e.map(m);d=e.map(n).join("\n");f.addNormVector("stacktrace",a);f.addDenorm("stack",d)}catch(a){}b("forEachObject")(c,function(a,b,c){typeof a==="string"?f.addNormal(b,a):typeof a==="number"&&(a|0)===a?f.addInteger(b,a):Array.isArray(a)?f.addNormVector(b,a.map(l)):f.addNormal(b,l(a))});f.post()}e.exports=a}),null); __d("Dispatcher_DEPRECATED",["invariant","FBLogger","monitorCodeUse"],(function(a,b,c,d,e,f,g){"use strict";var h="ID_";a=function(){function a(){this.$1=new Map(),this.$2=!1,this.$3=new Map(),this.$4=new Map(),this.$5=1}var b=a.prototype;b.register=function(a,b){b=this.__genID(b);this.$1.set(b,a);return b};b.unregister=function(a){this.$1.get(a)||g(0,1331,a),this.$1["delete"](a)};b.waitFor=function(a){this.$2||g(0,1332);for(var b=0;b=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;this.$4.set(e,!1);this.$3.set(e,!1)}this.$6=a;this.$2=!0};b.$9=function(){delete this.$6,this.$2=!1};b.__genID=function(a){var b=a?a+"_":h;a=a||b+this.$5++;while(this.$1.get(a))a=b+this.$5++;return a};return a}();function i(a){var b="";if(!a)return b;if(typeof a.type==="string")return a.type;if(typeof a.actionType==="string")return a.actionType;if(!a.action)return b;if(typeof a.action.type==="string")return a.action.type;return typeof a.action.actionType==="string"?a.action.actionType:b}function j(a,c,d){if(a){a=new Error("Cannot dispatch in the middle of a dispatch");b("FBLogger")("flux_dispatcher").catching(a).mustfix("Tried to dispatch action %s while already dispatching %s",i(d),i(c));throw a}}e.exports=a}),null); __d("InlineFbtResultImpl",["cx","FbtHooks","FbtReactUtil","FbtResultBase"],(function(a,b,c,d,e,f,g){function h(a,c,d,e){var f="_4qba";e!=null&&e!=""&&(c==="TRANSLATION"?f="_4qbb":c==="APPROVE"?f="_4qbc":c==="REPORT"&&(f="_4qbd"));return{$$typeof:b("FbtReactUtil").REACT_ELEMENT_TYPE,type:"em",key:null,ref:null,props:{className:f,"data-intl-hash":e,"data-intl-translation":d,"data-intl-trid":"",children:a,suppressHydrationWarning:!0},_owner:null}}var i=function(a){return h(a.content,a.inlineMode,a.translation,a.hash)};a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d,e,f){var g;g=a.call(this,c,b("FbtHooks").getErrorListener({translation:e,hash:f}))||this;g.$$typeof=b("FbtReactUtil").REACT_ELEMENT_TYPE;g.key=null;g.ref=null;g.type=i;g.props={content:c,inlineMode:d,translation:e,hash:f};return g}return c}(b("FbtResultBase"));e.exports=a}),null); __d("JSResource",["JSResourceReference"],(function(a,b,c,d,e,f){var g={};function h(a,b){g[a]=b}function i(a){return g[a]}function a(a){a=a;var c=i(a);if(c)return c;c=new(b("JSResourceReference"))(a);h(a,c);return c}a.Reference=b("JSResourceReference");a.loadAll=b("JSResourceReference").loadAll;e.exports=a}),null); __d("cancelIdleCallbackBlue",["IdleCallbackImplementation","TimerStorage","TimeSlice"],(function(a,b,c,d,e,f){var g=b("TimerStorage").IDLE_CALLBACK;function a(a){b("TimerStorage").unset(g,a);var c=g+String(a);b("TimeSlice").cancelWithToken(c);b("IdleCallbackImplementation").cancelIdleCallback(a)}e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/WRsJ32R7YJG/ */ __d("SnappyCompress",[],(function(a,b,c,d,e,f){"use strict";function g(){return typeof process==="object"&&(typeof process.versions==="object"&&typeof process.versions.node!=="undefined")?!0:!1}function h(a){return a instanceof Uint8Array&&(!g()||!Buffer.isBuffer(a))}function i(a){return a instanceof ArrayBuffer}function j(a){return!g()?!1:Buffer.isBuffer(a)}var k="Argument compressed must be type of ArrayBuffer, Buffer, or Uint8Array";function a(a){if(!h(a)&&!i(a)&&!j(a))throw new TypeError(k);var b=!1,c=!1;h(a)?b=!0:i(a)&&(c=!0,a=new Uint8Array(a));a=new A(a);var d=a.readUncompressedLength();if(d===-1)throw new Error("Invalid Snappy bitstream");if(b){b=new Uint8Array(d);if(!a.uncompressToBuffer(b))throw new Error("Invalid Snappy bitstream")}else if(c){b=new ArrayBuffer(d);c=new Uint8Array(b);if(!a.uncompressToBuffer(c))throw new Error("Invalid Snappy bitstream")}else{b=Buffer.alloc(d);if(!a.uncompressToBuffer(b))throw new Error("Invalid Snappy bitstream")}return b}function b(a){if(!h(a)&&!i(a)&&!j(a))throw new TypeError(k);var b=!1,c=!1;h(a)?b=!0:i(a)&&(c=!0,a=new Uint8Array(a));a=new x(a);var d=a.maxCompressedLength(),e,f,g;b?(e=new Uint8Array(d),g=a.compressToBuffer(e)):c?(e=new ArrayBuffer(d),f=new Uint8Array(e),g=a.compressToBuffer(f)):(e=Buffer.alloc(d),g=a.compressToBuffer(e));if(!e.slice){f=new Uint8Array(Array.prototype.slice.call(e,0,g));if(b)return f;else if(c)return f.buffer;else throw new Error("not implemented")}return e.slice(0,g)}c=16;var l=1<>>b}function p(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)}function q(a,b,c){return a[b]===a[c]&&a[b+1]===a[c+1]&&a[b+2]===a[c+2]&&a[b+3]===a[c+3]}function r(a,b,c,d,e){var f;for(f=0;f>>8,e+=3);r(a,b,d,e,c);return e+c}function t(a,b,c,d){if(d<12&&c<2048){a[b]=1+(d-4<<2)+(c>>>8<<5);a[b+1]=c&255;return b+2}else{a[b]=2+(d-1<<2);a[b+1]=c&255;a[b+2]=c>>>8;return b+3}}function u(a,b,c,d){while(d>=68)b=t(a,b,c,64),d-=64;d>64&&(b=t(a,b,c,60),d-=60);return t(a,b,c,d)}function v(a,b,c,d,e){var f=1;while(1<=x){c=h-x;b+=1;x=o(p(a,b),g);while(w){t=32;l=b;do{b=l;k=x;v=t>>>5;t+=1;l=b+v;if(b>c){w=!1;break}x=o(p(a,l),g);r=i+f[k];f[k]=b-i}while(!q(a,b,r));if(!w)break;e=s(a,j,b-j,d,e);do{v=b;k=4;while(b+k=c){w=!1;break}t=o(p(a,b-1),g);f[t]=b-1-i;v=o(p(a,b),g);r=i+f[v];f[v]=b-i}while(q(a,b,r));if(!w)break;b+=1;x=o(p(a,b),g)}}j>>7,a>0&&(b[c]+=128),c+=1;while(a>0);return c}function x(a){this.array=a}x.prototype.maxCompressedLength=function(){var a=this.array.length;return 32+a+Math.floor(a/6)};x.prototype.compressToBuffer=function(a){var b=this.array,c=b.length,d=0,e=0,f;e=w(c,a,e);while(d>>b!==d)return-1;a|=d<>>2)+1;if(g>60){if(d+3>=c)return!1;h=g-60;g=b[d]+(b[d+1]<<8)+(b[d+2]<<16)+(b[d+3]<<24);g=(g&y[h])+1;d+=h}if(d+g>c)return!1;r(b,d,a,e,g);d+=g;e+=g}else{switch(f&3){case 1:g=(f>>>2&7)+4;i=b[d]+(f>>>5<<8);d+=1;break;case 2:if(d+1>=c)return!1;g=(f>>>2)+1;i=b[d]+(b[d+1]<<8);d+=2;break;case 3:if(d+3>=c)return!1;g=(f>>>2)+1;i=b[d]+(b[d+1]<<8)+(b[d+2]<<16)+(b[d+3]<<24);d+=4;break;default:break}if(i===0||i>e)return!1;z(a,e,i,g);e+=g}}return!0};e.exports.uncompress=a;e.exports.compress=b}),null); __d("SnappyCompressUtil",["SnappyCompress"],(function(a,b,c,d,e,f){"use strict";var g={compressUint8ArrayToSnappy:function(c){if(c==null)return null;var d=null;try{d=b("SnappyCompress").compress(c)}catch(a){return null}c="";for(var e=0;e127)return null;c[d]=e}return g.compressUint8ArrayToSnappy(c)},compressStringToSnappyBinary:function(c){if(a.Uint8Array===void 0)return null;var d=null;if(a.TextEncoder!==void 0)d=new TextEncoder().encode(c);else{d=new a.Uint8Array(c.length);for(var e=0;e127)return null;d[e]=f}}f=null;try{f=b("SnappyCompress").compress(d)}catch(a){return null}return f}};e.exports=g}),null); __d("BanzaiCompressionUtils",["Promise","FBLogger","SnappyCompressUtil","once","performanceNow"],(function(a,b,c,d,e,f){"use strict";var g,h=b("once")(function(){if(a.CompressionStream==null)return!1;if(a.Response==null)return!1;try{new a.CompressionStream("deflate")}catch(a){return!1}return!0}),i={compressWad:function(a,c){if(a.needs_compression!==!0){delete a.needs_compression;return}if(c==="deflate"){i.compressWad(a,"snappy");return}var d=(g||(g=b("performanceNow")))(),e=JSON.stringify(a.posts),f;switch(c){case"snappy":f=b("SnappyCompressUtil").compressStringToSnappyBinary(e);break;case"snappy_base64":f=b("SnappyCompressUtil").compressStringToSnappy(e);break;default:break}f!=null&&f.length0&&(w._tryToSendViaBeacon()||w._store(!1))}),w.isEnabled("enable_client_logging_clear_on_visible")&&b("Visibility").addListener(b("Visibility").VISIBLE,function(){w._tryToSendViaBeacon()||w._restore(!1)})):w.adapter.setHooks(w),w.adapter.setUnloadHook(w),b("NavigationMetrics").addListener(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,c){if(c.pageType!=="normal")return;w._restore(!1);b("NavigationMetrics").removeCurrentListener()}))},_sendBeacon:function(b,c){return a.navigator.sendBeacon(b,c)},_prepForTransit:function(a){var c=new FormData();c.append("ts",String(Date.now()));var d={};Object.keys(d).sort().forEach(function(a){var b=d[a];if(b===void 0)return;if(b===null){c.append(a,"");return}c.append(a,String(b))});var e=b("BanzaiCompressionUtils").outOfBandsPosts(a);Object.keys(e).forEach(function(a){c.append(a,e[a])});c.append("q",JSON.stringify(a));return c},_prepWadForTransit:function(a){b("BanzaiCompressionUtils").compressWad(a,b("BanzaiAdapter").preferredCompressionMethod())},_processCallbacksAndSendViaBeacon:function(){var a=[],c=[],d=[];w._gatherWadsAndPostsFromBuffer(c,d,!0,a,!1);if(c.length>0){c[0].send_method="beacon";c.map(w._prepWadForTransit);d=w._prepForTransit(c);a=b("BanzaiAdapter").getEndPointUrl(!0);c=w._sendBeacon(a,d);c||b("FBLogger")("banzai").warn("Error sending beacon")}},_restore:function(a){a=b("BanzaiAdapter").getStorage();var c=function(a){q.push(a)};(h||(h=b("ErrorGuard"))).applyWithGuard(a.restore,a,[c]);w._schedule(b("BanzaiAdapter").config.RESTORE_WAIT||(i||(i=b("BanzaiConsts"))).VITAL_WAIT)},_schedule:function(a){var c=w._getEventTime()+a;if(!p||c0&&((!w.adapter.useBeacon||!w._tryToSendViaBeacon())&&w._store(!1))},BASIC:{delay:b("BanzaiAdapter").config.MAX_WAIT||(i||(i=b("BanzaiConsts"))).BASIC_WAIT},BASIC_WAIT:(i||(i=b("BanzaiConsts"))).BASIC_WAIT,ERROR:i.ERROR,OK:i.OK,SEND:i.SEND,SHUTDOWN:i.SHUTDOWN,VITAL:{delay:b("BanzaiAdapter").config.MIN_WAIT||(i||(i=b("BanzaiConsts"))).VITAL_WAIT},VITAL_WAIT:i.VITAL_WAIT,adapter:b("BanzaiAdapter"),canUseNavigatorBeacon:function(){return Boolean(navigator&&navigator.sendBeacon&&b("BanzaiAdapter").isOkToSendViaBeacon())},counterTracker:function(a,c,d,e){var f;c=c;a=b("BanzaiUtils").wrapData(j,{2979:{banzai:(f={},f[n[a]]=[c],f)}},w._getEventTime(),!0);e.push(a);d.push({webSessionId:w._getWebSessionId(),posts:[a],needs_compression:!0,user:w._getUserId(),app_id:w._getAppId()})},flush:function(a,c){b("SetIdleTimeoutAcrossTransitions").clear(o),w._sendWithCallbacks(a,c)},isEnabled:function(a){return Boolean(b("BanzaiAdapter").config.gks&&b("BanzaiAdapter").config.gks[a])},post:function(a,c,d){var e;a||b("FBLogger")("banzai").mustfix("Banzai.post called without specifying a route");var f=(e=JSON.stringify(c))!=null?e:"",g=d==null?void 0:d.retry;if(b("BanzaiAdapter").config.disabled)return;if(!b("ExecutionEnvironment").canUseDOM&&!b("ExecutionEnvironment").isInWorker)return;var h=w.adapter.getTopLevel();if(h){var j;try{j=h.require("Banzai")}catch(a){j=null}if(j){j.post.apply(j,arguments);return}}var k=b("BanzaiAdapter").config.blacklist;if(k&&(k.indexOf&&(typeof k.indexOf=="function"&&k.indexOf(a)!=-1)))return;var l=f.length;s++;u++;var m=b("BanzaiUtils").wrapData(a,c,w._getEventTime(),g,l),n=m;(d==null?void 0:d.callback)&&(n.__meta.callback=d==null?void 0:d.callback);(d==null?void 0:d.compress)!=null&&(n.__meta.compress=d==null?void 0:d.compress);var o=d==null?void 0:d.delay;o==null&&(o=(i||(i=b("BanzaiConsts"))).BASIC_WAIT);if(d==null?void 0:d.signal){n.__meta.status=(i||(i=b("BanzaiConsts"))).POST_INFLIGHT;var p=[{user:w._getUserId(),webSessionId:w._getWebSessionId(),app_id:w._getAppId(),posts:[m],trigger:a}];b("BanzaiAdapter").send(w._prepForTransit(p),function(){v++,t++,n.__meta.status=(i||(i=b("BanzaiConsts"))).POST_SENT,n.__meta.callback&&n.__meta.callback()},function(a){b("BanzaiUtils").retryPost(m,a,q)},!0);if(!g)return}q.push(m);(w._schedule(o)||!r)&&(r=a);var x=b("BanzaiLazyQueue").flushQueue();x.forEach(function(a){return w.post.apply(w,a)})},subscribe:b("BanzaiAdapter").subscribe};w._initialize();e.exports=w}),null);