;/*FB_PKG_DELIM*/ __d("BasicVector",[],(function(t,n,r,o,a,i){var e=(function(){function e(e,t){this.x=e,this.y=t}var t=e.prototype;return t.derive=function(n,r){return new e(n,r)},t.toString=function(){return"("+this.x+", "+this.y+")"},t.add=function(t,n){var e=t,r=n;r===void 0&&(r=e.y,e=e.x);var o=parseFloat(e),a=parseFloat(r);return this.derive(this.x+o,this.y+a)},t.mul=function(t,n){var e=n;return e===void 0&&(e=t),this.derive(this.x*t,this.y*e)},t.div=function(t,n){var e=n;return e===void 0&&(e=t),this.derive(this.x*1/t,this.y*1/e)},t.sub=function(t,n){return arguments.length===1?this.add(t.mul(-1)):this.add(-t,-n)},t.distanceTo=function(t){return this.sub(t).magnitude()},t.magnitude=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.rotate=function(t){return this.derive(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))},e})();i.default=e}),66); __d("BlueBar",["csx","CSS","DOMQuery","Style","ge"],(function(t,n,r,o,a,i,l,s){var e=document,u={};function c(t){return o("DOMQuery").scry(e,t)[0]}function d(e,t){return u[e]?u[e]:u[e]=c(t)}function m(){e=r("ge")("blueBarDOMInspector")||document,u={}}function p(){var e=g();return e?o("CSS").matchesSelector(e,"._5rmj")||r("Style").isFixed(e):!1}function _(){return d("bar","div._1s4v")}function f(){return d("navRoot","div._cx4")||_()}function g(){return d("maybeFixedRoot","div._26aw")}function h(){return d("maybeFixedRootLoggedOut","div._1pmx")}function y(){return d("maybeFixedRootLogin","div._53jh")}m(),l.hasFixedBlueBar=p,l.getBar=_,l.getNavRoot=f,l.getMaybeFixedRoot=g,l.getLoggedOutRoot=h,l.getNewLoggedOutRoot=y}),98); __d("getUnboundedScrollPosition",["Scroll"],(function(t,n,r,o,a,i){"use strict";function e(e){if(e===window){var t,r;return{x:(t=window.pageXOffset)!=null?t:n("Scroll").getLeft(document.documentElement),y:(r=window.pageYOffset)!=null?r:n("Scroll").getTop(document.documentElement)}}return{x:n("Scroll").getLeft(e),y:n("Scroll").getTop(e)}}a.exports=e}),null); __d("DOMVector",["BasicVector","FBLogger","getDocumentScrollElement","getElementPosition","getUnboundedScrollPosition","getViewportDimensions"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(t,n,r){var o;return o=e.call(this,t,n)||this,o.domain=r||"pure",o}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.derive=function(n,r,o){return new t(n,r,o||this.domain)},n.add=function(r,o){var n=r;return n instanceof t&&n.getDomain()!=="pure"&&(n=n.convertTo(this.domain)),e.prototype.add.call(this,n,o)},n.convertTo=function(n){if(n!="pure"&&n!="viewport"&&n!="document")return r("FBLogger")("DOMVector").mustfix("Domain %s is invalid; valid coordinate domains are pure, viewport, and document.",n),this.derive(0,0);if(n==this.domain)return this.derive(this.x,this.y,this.domain);if(n=="pure")return this.derive(this.x,this.y);if(this.domain=="pure")return r("FBLogger")("DOMVector").mustfix("Unable to covert a pure vector to %s coordinates; a pure vector is abstract and does not exist in any document coordinate system. If you need to hack around this, create the vector explicitly in some document coordinate domain, by passing a third argument to the constructor. But you probably don't, and are just using the class wrong. Stop doing that.",n),this.derive(0,0);var e=t.getScrollPosition("document"),o=this.x,a=this.y;return this.domain=="document"?(o-=e.x,a-=e.y):(o+=e.x,a+=e.y),this.derive(o,a,n)},n.getDomain=function(){return this.domain},t.from=function(n,r,o){return new t(n,r,o)},t.getScrollPosition=function(t){var e=t||"document",n=r("getUnboundedScrollPosition")(window);return this.from(n.x,n.y,"document").convertTo(e)},t.getElementPosition=function(t,n){var e=n||"document",o=r("getElementPosition")(t);return this.from(o.x,o.y,"viewport").convertTo(e)},t.getElementDimensions=function(t){return this.from(t.offsetWidth||0,t.offsetHeight||0)},t.getViewportDimensions=function(){var e=r("getViewportDimensions")();return this.from(e.width,e.height,"viewport")},t.getLayoutViewportDimensions=function(){var e=r("getViewportDimensions").layout();return this.from(e.width,e.height,"viewport")},t.getViewportWithoutScrollbarDimensions=function(){var e=r("getViewportDimensions").withoutScrollbars();return this.from(e.width,e.height,"viewport")},t.getDocumentDimensions=function(t){var e=r("getDocumentScrollElement")(t);return this.from(e.scrollWidth,e.scrollHeight,"document")},t})(r("BasicVector"));l.default=e}),98); __d("PageHooks",["Arbiter","ErrorUtils","InitialJSLoader","PageEvents"],(function(t,n,r,o,a,i){var e,l={DOMREADY_HOOK:"domreadyhooks",ONLOAD_HOOK:"onloadhooks"};function s(){d(_.DOMREADY_HOOK),window.domready=!0,n("Arbiter").inform("uipage_onload",!0,"state")}function u(){d(_.ONLOAD_HOOK),window.loaded=!0}function c(t,r){return(e||(e=n("ErrorUtils"))).applyWithGuard(t,null,null,function(e){e.event_type=r,e.category="runhook"},"PageHooks:"+r)}function d(e){var t=e=="onbeforeleavehooks"||e=="onbeforeunloadhooks";do{var n=window[e];if(!n)break;t||(window[e]=null);for(var r=0;r=0;n--){var r=t[n];r.isPersistent()||r.remove()}})});var m=babelHelpers.extends({},r("ArbiterMixin"),{getTop:u("top"),getRight:u("right"),getBottom:u("bottom"),getLeft:u("left"),getElementPosition:function(t){var e=r("Vector").getElementPosition(t);return e.y-=m.getTop(),e},addTop:c("top"),addRight:c("right"),addBottom:c("bottom"),addLeft:c("left"),addPersistentTop:c("top",!0),addPersistentRight:c("right",!0),addPersistentBottom:c("bottom",!0),addPersistentLeft:c("left",!0)});m.addPersistentTop(function(){if((e||(e=r("ExecutionEnvironment"))).canUseDOM&&o("BlueBar").hasFixedBlueBar()){var t=o("BlueBar").getMaybeFixedRoot();return t?t.offsetHeight:0}return 0});var p=m;l.default=p}),98);