if (self.CavalryLogger) { CavalryLogger.start_js(["OTet7"]); } __d("AugmentedLoggerImplementation",["FBLogger","Random"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="augl";function h(){return Math.floor(b("Random").random()*1e16)}function i(a){return a+1}function j(a){return Array.from(a.values())}a=function(){__p&&__p();function a(a,b,c,d){__p&&__p();this.activeSessions=new Map();this.appExperienceSessionInfo={session_id:h(),time:Date.now()};this.contextGetter=b;this.disableServerLogging=!!d.disableServerLogging;this.falcoLoggerGetter=c;this.hasInitialized=!1;this.name=a;this.sequence=0;this.sequenceGenerator=(b=d.sequenceGenerator)!=null?b:i;this.logHook=d.logHook;this.logThrottler=(c=d.logSuppressor)==null?void 0:c.throttler;this.logUnthrottler=(a=d.logSuppressor)==null?void 0:a.unthrottler;this.userInteractionSessionInfo={session_id:h(),time:Date.now()}}var c=a.prototype;c.$1=function(){this.sequence=this.sequenceGenerator(this.sequence);return this.sequence};c.init=function(){if(this.hasInitialized)return;this.hasInitialized=!0;var a=Date.now();this.$2("CoreUserInteraction",{core:{active_sessions:[],app_experience_id:null,event_core_type:"Session",event_name:"CoreUserInteraction",event_type:"CoreUserInteraction",session_id:this.userInteractionSessionInfo.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id},context:this.contextGetter(),props:{}});this.userInteractionSessionInfo=babelHelpers["extends"]({},this.userInteractionSessionInfo,{time:a});this.$2("CoreAppExperience",{core:{active_sessions:[],app_experience_id:this.appExperienceSessionInfo.session_id,event_core_type:"Session",event_name:"CoreAppExperience",event_type:"CoreAppExperience",session_id:this.appExperienceSessionInfo.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id},context:this.contextGetter(),props:{}});this.appExperienceSessionInfo=babelHelpers["extends"]({},this.appExperienceSessionInfo,{time:a});this.logUnthrottler&&this.logUnthrottler.init()};c.destroy=function(){if(!this.hasInitialized)return;var a=Date.now();this.$2("CoreAppExperienceEnded",{core:{active_sessions:j(this.activeSessions),app_experience_id:this.appExperienceSessionInfo.session_id,duration:a-this.appExperienceSessionInfo.time,event_core_type:"SessionEnded",event_name:"CoreAppExperienceEnded",event_type:"CoreAppExperienceEnded",session_id:this.appExperienceSessionInfo.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id},context:this.contextGetter(),props:{}});this.$2("CoreUserInteractionEnded",{core:{active_sessions:j(this.activeSessions),app_experience_id:this.appExperienceSessionInfo.session_id,duration:a-this.userInteractionSessionInfo.time,event_core_type:"SessionEnded",event_name:"CoreUserInteractionEnded",event_type:"CoreUserInteractionEnded",session_id:this.userInteractionSessionInfo.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id},context:this.contextGetter(),props:{}});this.logUnthrottler&&this.logUnthrottler.destroy();this.sequence=0;this.hasInitialized=!1;this.activeSessions=new Map()};c.$2=function(a,c,d){__p&&__p();d===void 0&&(d=[]);if(!this.hasInitialized){b("FBLogger")(g).info("Logging %s without initializing logger for %s",a,this.name);return}if(this.logThrottler){var e=c.core.event_type+"-"+c.core.event_name,f=this.logThrottler(e);if(f.type==="begin-throttle"){b("FBLogger")(g).info("Throttling %s in %s: %s",e,this.name,f.avgCallsPerSecond);return}else if(f.type==="throttled")return}e=this.falcoLoggerGetter(a);if(!e){b("FBLogger")(g).mustfix("Unable to find falco logger for %s in %s",a,this.name);return}this.disableServerLogging||e.log(function(){return c});if(this.logHook)try{this.logHook({name:this.name,disableServerLogging:this.disableServerLogging},babelHelpers["extends"]({},c,{type_hierarchy:d}))}catch(a){b("FBLogger")(g).mustfix("Exception running logHook for %s for event %s: %s",this.name,c.core.event_name,a.message)}};c.logDiscreteEvent=function(a,b){b===void 0&&(b={});var c=babelHelpers["extends"]({},a.core,{active_sessions:j(this.activeSessions),app_experience_id:this.appExperienceSessionInfo.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id});this.$2(a.identifier,{core:c,context:babelHelpers["extends"]({},this.contextGetter(),b),props:a.props},a.__getTypeHierarchy())};c.logSessionEvent=function(a,b){b===void 0&&(b={});var c=Date.now(),d=h(),e=babelHelpers["extends"]({},a.core,{active_sessions:j(this.activeSessions),app_experience_id:this.appExperienceSessionInfo.session_id,session_id:d,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id});this.$2(a.identifier,{core:e,context:babelHelpers["extends"]({},this.contextGetter(),b),props:a.props},a.__getTypeHierarchy());e={session_id:d,event_name:a.core.event_name,event_type:a.core.event_type,time:c};this.activeSessions.set(d,e);return e};c.logSessionEndedEvent=function(a,c,d){d===void 0&&(d={});if(!this.activeSessions["delete"](c.session_id)){b("FBLogger")(g).mustfix("Trying to close invalid session id in %s: (%s, %s)",this.name,c.event_type,c.session_id);return}var e=Date.now();e=babelHelpers["extends"]({},a.core,{active_sessions:j(this.activeSessions),app_experience_id:this.appExperienceSessionInfo.session_id,duration:e-c.time,session_id:c.session_id,sequence:this.$1(),user_interaction_id:this.userInteractionSessionInfo.session_id});this.$2(a.identifier,{core:e,context:babelHelpers["extends"]({},this.contextGetter(),d),props:a.props},a.__getTypeHierarchy())};return a}();e.exports=a}),null); __d("AugmentedLogger",["AugmentedLoggerImplementation"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={createLogger:function(a,c,d,e){return new(b("AugmentedLoggerImplementation"))(a,c,d,e)},createDiscreteEvent:function(a){var b=null;return{__setTypeHierarchy:function(a){b=a},create:function(c,d){return{__getTypeHierarchy:function(){return b||[]},core:{event_core_type:"Discrete",event_name:c,event_type:a},identifier:a,props:d}}}},createSessionEvent:function(a){var b=null;return{__setTypeHierarchy:function(a){b=a},create:function(c,d){return{__getTypeHierarchy:function(){return b||[]},core:{event_core_type:"Session",event_name:c,event_type:a},identifier:a,props:d}}}},createSessionEndedEvent:function(a){var b=null;return{__setTypeHierarchy:function(a){b=a},create:function(c,d){return{__getTypeHierarchy:function(){return b||[]},core:{event_core_type:"SessionEnded",event_name:c,event_type:a},identifier:a,props:d}}}}};e.exports=a}),null); __d("AMCriticalExceptionAugLEvent",["AugmentedLogger"],(function(a,b,c,d,e,f){"use strict";a=b("AugmentedLogger").createDiscreteEvent("AMCriticalException");e.exports=a}),null); __d("AMExceptionAugLEvent",["AugmentedLogger"],(function(a,b,c,d,e,f){"use strict";a=b("AugmentedLogger").createDiscreteEvent("AMException");e.exports=a}),null); __d("AMFatalErrorAugLEvent",["AugmentedLogger"],(function(a,b,c,d,e,f){"use strict";a=b("AugmentedLogger").createDiscreteEvent("AMFatalError");e.exports=a}),null); __d("AdsFluxContextInstrumentation",[],(function(a,b,c,d,e,f){"use strict";var g=null;a={actionStart:function(a){g=a},actionEnd:function(a){},getLastAction:function(){return g}};e.exports=a}),null); __d("AdsInterfacesCriticalExceptionEnum",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({FLUX_STORE:"FLUX_STORE",FLUX_CONTAINER:"FLUX_CONTAINER",ERROR_BOUNDARY:"ERROR_BOUNDARY",VALIDATOR:"VALIDATOR"})}),null); __d("AdsInterfacesLogger",["invariant"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="primary",i="secondary",j="ads_interfaces_logger_primary_app",k="ads_interfaces_logger_secondary_app",l=(a={},a[h]={data:[],isRegistered:!1},a[i]={data:[],isRegistered:!1},a),m=new Map(),n=new Set();b=function(){__p&&__p();a.__reset=function(){l[h]={data:[],isRegistered:!1},m.has(j)&&m["delete"](j),l[i]={data:[],isRegistered:!1},m.has(k)&&m["delete"](k),n=new Set()};a.getPath=function(a){return a===h?j:k};a.log=function(b,c){__p&&__p();c===void 0&&(c=i);c===i&&!l[c].isRegistered&&l[h].isRegistered&&(c=h);if(!l[c].isRegistered){l[c].data.push(b);return}c=m.get(this.getPath(c));c||g(0,2975);c instanceof a||g(0,2976);c.__log(b)};a.logOnce=function(b,c){c===void 0&&(c=i);var d=JSON.stringify(b);if(n.has(d))return;a.log(b,c);n.add(d)};a.get=function(a){a===void 0&&(a=i);a===i&&!l[a].isRegistered&&l[h].isRegistered&&(a=h);a=m.get(this.getPath(a));return a};function a(a,b){this.__log=a.log,this.__interfaceID=b}var b=a.prototype;b.getInterfaceID=function(){return this.__interfaceID};b.register=function(a){m.set(this.constructor.getPath(a),this),l[a].isRegistered=!0,l[a].data.length>0&&(l[a].data.forEach(this.__log),l[a].data=[]),a===h&&l[i].data.length>0&&(l[i].data.forEach(this.__log),l[i].data=[])};b.unregister=function(a){m["delete"](this.constructor.getPath(a)),l[a].isRegistered=!1};return a}();b.LOG_TYPE_PRIMARY_APP=h;b.LOG_TYPE_SECONDARY_APP=i;e.exports=b}),null); __d("AdsInterfacesLoggerUtils",["AdsFluxContextInstrumentation","AdsInterfacesCriticalExceptionEnum","AdsInterfacesLogger","ErrorUtils","ifRequired","requireWeak","AMExceptionAugLEvent","AMCriticalExceptionAugLEvent","AMFatalErrorAugLEvent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=typeof jest!=="undefined";({defaultJSErrorHandler:function(){}});b("requireWeak")("ErrorLogging",function(a){return a});"stackTraceLimit"in Error&&(Error.stackTraceLimit=50);function h(a,c){__p&&__p();a=b("ErrorUtils").normalizeError(a);try{JSON.stringify(c)}catch(a){c=null}c=babelHelpers["extends"]({stack_trace:a.stack,action_type_on_error:b("AdsFluxContextInstrumentation").getLastAction()},c,{normalized_error:a});c.error_name=a.name;c.message=a.message;c.meta_message=a.messageWithParams?a.messageWithParams[0]:"-";c.error_line=a.line;c.error_script=a.script;return c}function i(a,c,d){b("AdsInterfacesLogger").log({eventName:c,eventCategory:"errors",data:h(a,d)},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}var j={logPreloading:function(a,c){b("AdsInterfacesLogger").log({eventName:c,eventCategory:"preloading",data:a},b("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)},logException:function(a,c){i(a,"ADS_INTERFACES_ERROR_EXCEPTION",c),b("ifRequired")("AdsManagerAugmentedLogger",function(a){a.logDiscreteEvent(b("AMExceptionAugLEvent").create("ads_interfaces_error_exception",{}))})},logCriticalException:function(a,c){i(a,"ADS_INTERFACES_CRITICAL_EXCEPTION",c),g||b("ifRequired")("AdsManagerAugmentedLogger",function(a){var d={};d.error_type=c.error_type;d.action_type_on_error=c.error_type==="VALIDATOR"?b("AdsFluxContextInstrumentation").getLastAction():c.action_type_on_error;d.store_name=c.error_type==="FLUX_STORE"?c.store_name:null;d.module_name=c.error_type==="FLUX_CONTAINER"||c.error_type==="ERROR_BOUNDARY"?c.module_name:null;a.logDiscreteEvent(b("AMCriticalExceptionAugLEvent").create("ads_interfaces_critical_exception",d))})},logFatal:function(a,c){i(a,"ADS_INTERFACES_ERROR_FATAL",c),b("ifRequired")("AdsManagerAugmentedLogger",function(a){return a.logDiscreteEvent(b("AMFatalErrorAugLEvent").create("ads_interfaces_error_fatal",{action_type_on_error:b("AdsFluxContextInstrumentation").getLastAction()}))})},logUserError:function(a,b){i(a,"ADS_INTERFACES_USER_ERROR",b)},constructLogDataForError:h};b("ErrorUtils").addListener(function(a,b){b==="FATAL"&&!a.message.toLowerCase().startsWith("script error")&&j.logFatal(a)});e.exports=j}),null); __d("AdsFluxContainer",["AdsFluxContextInstrumentation","AdsInterfacesLoggerUtils","FluxContainer","getModuleNameFromFluxContainer"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a,c){__p&&__p();var d=b("FluxContainer").create(a,c),e=function(e){__p&&__p();babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.componentDidCatch=function(d){if(!d.hasBeenLoggedForAdsInterfaces){var e={action_type_on_error:b("AdsFluxContextInstrumentation").getLastAction(),error_type:"FLUX_CONTAINER",module_name:(c?c.name:null)||b("getModuleNameFromFluxContainer")(a.displayName||a.name)||"AdsFluxContainer(unknown)"};b("AdsInterfacesLoggerUtils").logCriticalException(d,e);d.hasBeenLoggedForAdsInterfaces=!0}throw d};return d}(d);try{Object.defineProperty(e,"name",{value:d.name})}catch(a){}return e}e.exports={create:a,createFunctional:b("FluxContainer").createFunctional}}),null); __d("DOMClone",["DataStoreConfig"],(function(a,b,c,d,e,f){a={shallowClone:function(a){return g(a,!1)},deepClone:function(a){return g(a,!0)}};function g(a,c){a=a.cloneNode(c);typeof a.__FB_TOKEN!=="undefined"&&delete a.__FB_TOKEN;typeof a[b("DataStoreConfig").expandoKey]!=="undefined"&&delete a[b("DataStoreConfig").expandoKey];return a}e.exports=a}),null); __d("FileInput",["cx","ArbiterMixin","DOM","DOMClone","Event","Focus","Keys","UserAgent_DEPRECATED","mixin"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("UserAgent_DEPRECATED").ie();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e){__p&&__p();var f;f=a.call(this)||this;f.container=c;f.control=d;c=b("DOM").scry(f.container,"a")[0];c&&c.removeAttribute("href");d=b("DOM").create("div",{className:"_3jk"},e);b("DOM").appendContent(f.control,d);f._boundHandleChange=f._handleChange.bind(babelHelpers.assertThisInitialized(f));h&&(f._boundHandleIEKeyDown=f._handleIEKeyDown.bind(babelHelpers.assertThisInitialized(f)));f._setInputElement(e);return f}var d=c.prototype;d.getValue=function(){return this.input.value};d.getInput=function(){return this.input};d.getContainer=function(){return this.container};d.getControl=function(){return this.control};d.clear=function(){this.input.value="";if(this.input.value!==""){var a=b("DOMClone").deepClone(this.input);b("DOM").replace(this.input,a);this._setInputElement(a)}};d.destroy=function(){this._focus.remove(),this._focus=null,this._listener.remove(),this._listener=null,h&&(this._IEKeyDownListener.remove(),this._IEKeyDownListener=null),this.container=null,this.control=null,this.input=null};d._setInputElement=function(a){this.input=a,this._focus&&this._focus.remove(),this._focus=b("Focus").relocate(a,this.control),this._listener&&this._listener.remove(),this._listener=b("Event").listen(a,"change",this._boundHandleChange),h&&(this._IEKeyDownListener&&this._IEKeyDownListener.remove(),this._IEKeyDownListener=b("Event").listen(a,"keydown",this._boundHandleIEKeyDown))};d._handleChange=function(a){this.inform("change",a);if(this.input){var c=this.input.form;c&&h<9&&b("Event").fire(c,"change",a)}};d._handleIEKeyDown=function(a){if(a.keyCode===b("Keys").RETURN){a.preventDefault();a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0);this.input.dispatchEvent(a)}};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a}),null); __d("FileInput.react",["cx","invariant","FileInput","InlineBlock.react","React","ReactDOM","joinClasses","nullthrows"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;gh?h:a)+"px"}},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.$BUIProgressBar1=function(){if(!this.props.icon&&!this.props.message)return null;var a;this.props.icon&&(a=b("React").createElement(b("Image.react"),{className:"__q1",src:this.props.icon}));return b("React").createElement("div",{className:"__q2","data-testid":this.props.dataTestId},a,this.props.message)};d.$BUIProgressBar2=function(){var a=this.props.background;if(this.props.isBuffering)return b("React").createElement("div",{className:"__q3",style:{width:"100%"}});var c=this.props.percentage||0;c<0&&(c=0);c>100&&(c=100);return b("React").createElement("div",{className:"_65ab"+(a==="default"?" __q6":"")+(a==="transparent"?" _65ac":"")},b("React").createElement("div",{className:"__q7",style:{width:c+"%"}}))};d.render=function(){var a=b("joinClasses")("__qa"+(this.props.isComplete===!0?" __qb":"")+(this.props.isComplete===!0&&this.props.useAltCompleteVisuals?" _6age":"")+(this.props.isError===!0?" __qc":"")+(this.props.height==="small"?" _2tr-":"")+(this.props.color==="gray"?" _2tr_":"")+(this.props.padding===!0?" _2m-z":""),this.props.className);a=b("React").createElement("div",{className:a,style:this.$BUIProgressBar3()},this.$BUIProgressBar2(),this.$BUIProgressBar1());this.props.representsWait&&!this.props.isComplete&&(a=b("React").createElement(b("LoadingMarker.react"),null,a));this.props.isError&&(a=b("React").createElement(b("ErrorMarker.react"),null,a));return a};return c}(b("BUIComponent"));d.propTypes={background:a.oneOf(["default","transparent"]),dataTestId:a.string,icon:a.object,isBuffering:a.bool,isError:a.bool,isSuccess:a.bool,message:a.node,percentage:a.number,height:a.oneOf(["small","medium"]),width:a.number,color:a.oneOf(["gray","blue"]),flexibleWidth:a.bool,padding:a.bool,representsWait:a.bool,isComplete:a.bool,useAltCompleteVisuals:a.bool};d.defaultProps=c;e.exports=d}),null); __d("FDSLink.react",["FDSPrivateThemeContext.react","React","SUILink.react","getSUILinkUniform.fds","makeFDSStandardComponent","makeSUIThemeGetter"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("makeSUIThemeGetter")({SUILink:b("getSUILinkUniform.fds")});a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=g(this.context);return b("React").createElement(b("SUILink.react"),{"data-testid":a["data-testid"],display:a.display,href:a.href,isInverseColor:a.isInverseColor,margin:a.margin,onClick:a.onClick,rel:a.rel,showUnderline:a.showUnderline,target:a.target,theme:c,width:a.width},a.children)};return c}(b("React").PureComponent);a.contextType=b("FDSPrivateThemeContext.react");a.defaultProps={display:"inline",isInverseColor:!1,showUnderline:"hover"};e.exports=b("makeFDSStandardComponent")("FDSLink",a)}),null); __d("FDSPrivateInfoIconSelector",["ix","asset"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={"default":g("481013"),hover:g("485955")},i={"default":g("547567"),hover:g("547567")};function a(a){switch(a){case"hover":return i.hover;case"default":default:return i["default"]}}function b(a){switch(a){case"hover":return h.hover;case"default":default:return h["default"]}}e.exports={classicIconSelector:b,geoIconSelector:a}}),null); __d("getSUIActionMenuUniform.fds",["ix","cssVar","FDSPrivateThemeAtomsType","FDSPrivateTypeStylesGeodesic","React","SUIGlyphIcon.react","asset","createBUITypeStyle"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("FDSPrivateTypeStylesGeodesic").getTypeStyle;function a(a){var c;if(a.id===b("FDSPrivateThemeAtomsType").FDS_GEODESIC){var d=a.colors.text.primary;c={borderRadius:a.borderRadius.layer,borderWidth:0,descriptionTypeStyle:i({color:a.colors.text.secondary,fontSize:"12px"}),itemColor:d,itemTypeStyle:i({color:d,fontSize:"14px"}),itemBorderRadius:a.borderRadius.container,highlightedItemColor:d,horizontalPadding:a.list.paddingHoriz}}return babelHelpers["extends"]({backgroundColor:"#FFFFFF",borderColor:"#CCD0D5",descriptionTypeStyle:b("createBUITypeStyle")({color:"#8D949E",fontSize:"12px",fontWeight:"normal"}),disabledItemColor:a.colors.text.disabled,headerColor:"#606770",headerTypeStyle:b("createBUITypeStyle")({color:"#606770",fontSize:"12px",fontWeight:"bold"}),highlightedItemBackgroundColor:"#F2F3F5",highlightedItemColor:"#606770",itemColor:"#606770",itemIconWidth:"auto",itemIconAlignment:"center",itemHeight:32,itemTypeStyle:b("createBUITypeStyle")({color:"#606770",fontSize:"12px",fontWeight:"normal"}),submenuIndicatorLTR:b("React").createElement(b("SUIGlyphIcon.react"),{srcDefault:g("496757")}),submenuIndicatorRTL:b("React").createElement(b("SUIGlyphIcon.react"),{srcDefault:g("503180")})},c)}e.exports=a}),null); __d("getSUIDropdownMenuUniform.fds",["cssVar","FDSPrivateThemeAtomsType"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var c={borderRadius:2,boxShadow:"0 0 4px 0 rgba(0, 0, 0, 0.2)",offsetY:0};a.id===b("FDSPrivateThemeAtomsType").FDS_GEODESIC&&(c.borderRadius=a.borderRadius.container,c.boxShadow=a.elevation.depth2,c.offsetY=a.dropdown.offsetY);return c}e.exports=a}),null); __d("getSUIPopoverUniform.fds",["cssVar","FDSPrivateInfoIconSelector","FDSPrivateThemeAtomsType","React","SUIGlyphIcon.react","createBUITypeStyle"],(function(a,b,c,d,e,f,g){"use strict";var h=b("FDSPrivateInfoIconSelector").classicIconSelector,i=b("FDSPrivateInfoIconSelector").geoIconSelector;function a(a){var c=a.id===b("FDSPrivateThemeAtomsType").FDS_GEODESIC,d=c?i:h;return{backgroundColor:"#FFFFFF",border:"1px solid transparent",borderRadius:c?8:2,boxShadow:c?a.elevation.depth2:"0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1)",icon:b("React").createElement(b("SUIGlyphIcon.react"),{srcDefault:d("default"),srcHover:d("hover")}),footer:{borderTop:"1px solid #DADCDE"},showArrow:!c,title:{typeStyle:b("createBUITypeStyle")({color:"#1C1D1D",fontSize:c?"16px":"14px",fontWeight:"bold"})},typeStyle:b("createBUITypeStyle")({color:"#1C1D1D",fontSize:c?"14px":"12px",fontWeight:"normal"})}}e.exports=a}),null); __d("SUICloseButtonUniform.fds",["getSUICloseButtonUniform.fds"],(function(a,b,c,d,e,f){"use strict";e.exports=b("getSUICloseButtonUniform.fds")()}),null); __d("InputLabelLabel_DEPRECATED.react",["React"],(function(a,b,c,d,e,f){"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(){var a=this.props,c=a.children;a=babelHelpers.objectWithoutPropertiesLoose(a,["children"]);return b("React").createElement("label",a,c)};return c}(b("React").Component);e.exports=a}),null); __d("MenuStaticItem.react",["MenuStaticItem"],(function(a,b,c,d,e,f){function a(a){a.isReactLegacyFactory={},a.type=a}c=b("MenuStaticItem");a(c);e.exports=c}),null); __d("XUIDialogCloseButton.react",["fbt","React","XUIDialogButton.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 b("React").createElement(b("XUIDialogButton.react"),babelHelpers["extends"]({},this.props,{action:"cancel",label:g._("Close")}))};return c}(b("React").Component);e.exports=a}),null); __d("XUIMenuStaticItem.react",["MenuStaticItem.react"],(function(a,b,c,d,e,f){a=b("MenuStaticItem.react");e.exports=a}),null); __d("AbstractTextField.react",["cx","Keys","React","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").Component;b("React").Element;c=b("React").PropTypes;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.onInputKeyDown=function(a){var c=d.props,e=a.keyCode,f=a.shiftKey;e===b("Keys").BACKSPACE&&!f&&c.onBackspace?c.onBackspace(a):e===b("Keys").TAB&&!f&&c.onTab?c.onTab(a):e===b("Keys").TAB&&f&&c.onBackTab?c.onBackTab(a):e===b("Keys").UP?f?c.onShiftUpArrow&&c.onShiftUpArrow(a):c.onUpArrow&&c.onUpArrow(a):e===b("Keys").DOWN&&c.onDownArrow?f?c.onShiftDownArrow&&c.onShiftDownArrow(a):c.onDownArrow&&c.onDownArrow(a):e===b("Keys").LEFT&&c.onLeftArrow?c.onLeftArrow(a):e===b("Keys").RIGHT&&c.onRightArrow?c.onRightArrow(a):e===b("Keys").RETURN?(c.onEnter&&c.onEnter(a),f?c.onShiftEnter&&c.onShiftEnter(a):c.onNoShiftEnter&&c.onNoShiftEnter(a)):e===b("Keys").ESC&&c.onEscape?c.onEscape(a):e==b("Keys").COMMA&&c.onComma?c.onComma(a):e==b("Keys").SPACE&&c.onSpace&&c.onSpace(a);c.onKeyDown&&c.onKeyDown(a)};d.onInputChange=function(a){d.props.onChange&&d.props.onChange(a),(d.props.value===null||d.props.value===void 0)&&d.setState({value:a.currentTarget.value})};d.onInputBlur=function(a){d.props.onBlur&&d.props.onBlur(a),a.isDefaultPrevented()||d.setState({focused:!1})};d.onInputFocus=function(a){d.props.onFocus&&d.props.onFocus(a),a.isDefaultPrevented()||d.setState({focused:!0})};d.state={focused:!1,value:d.props.defaultValue||""};return d}var d=c.prototype;d.getValue=function(){return this.props.value!=null?String(this.props.value):this.state.value};d.getHint=function(){return this.props.hint!=null?String(this.props.hint):""};d.cloneElement=function(a){var c=this.getHint()?this.getHint():this.getValue();return b("React").cloneElement(a,{"aria-activedescendant":this.props["aria-activedescendant"],"aria-autocomplete":this.props["aria-autocomplete"],"aria-controls":this.props["aria-controls"],"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-multiline":this.props["aria-multiline"],"aria-expanded":this.props["aria-expanded"],"aria-valuenow":this.props["aria-valuenow"],"aria-valuetext":this.props["aria-valuetext"],"data-testid":this.props["data-testid"],required:this.props.required,role:this.props.role,placeholder:this.props.placeholder,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,autoFocus:this.props.autoFocus,onKeyDown:this.onInputKeyDown,onKeyUp:this.props.onKeyUp,onBlur:this.onInputBlur,onFocus:this.onInputFocus,onChange:this.onInputChange,onInput:this.props.onInput,onPaste:this.props.onPaste,onWheel:this.props.onWheel,className:this.props.useLabel?a.props.className:b("joinClasses")(a.props.className,this.props.className),dir:this.props.dir,disabled:this.props.disabled,defaultValue:this.props.defaultValue,name:this.props.name,value:c,id:this.props.id,maxLength:this.props.maxLength,min:this.props.min,max:this.props.max,step:this.props.step,pattern:this.props.pattern,style:this.props.style,title:this.props.title,type:this.props.type||a.props.type})};d.render=function(){var a=b("React").Children.only(this.props.children);if(!this.props.useLabel)return this.cloneElement(a);var c=this.props.className;this.props.classNames&&(c=b("joinClasses")(c,this.props.classNames.root),this.getValue()||(c=b("joinClasses")(c,this.props.classNames.empty)));return b("React").createElement("label",{className:c,style:this.props.styles.label},this.props.leftChild,this.cloneElement(a),this.props.rightChild)};return c}(a);d.defaultProps={useLabel:!0,classNames:{root:"_58ak",empty:"_3ct8"},styles:{label:null}};d.propTypes={useLabel:c.bool,leftChild:c.element,rightChild:c.element,classNames:c.shape({root:c.string.isRequired,empty:c.string.isRequired}),styles:c.shape({label:c.object}),"aria-activedescendant":c.string,"aria-autocomplete":c.string,"aria-controls":c.string,"aria-describedby":c.string,"aria-errormessage":c.string,"aria-invalid":c.oneOf(["grammar","false","spelling","true"]),"aria-label":c.node,"aria-labelledby":c.string,"aria-multiline":c.bool,"aria-expanded":c.bool,"aria-valuenow":c.number,"aria-valuetext":c.string,"data-testid":c.string,autoComplete:c.string,autoFocus:c.bool,className:c.string,defaultValue:c.string,dir:c.string,disabled:c.bool,id:c.string,max:c.oneOfType([c.number,c.string]),maxLength:c.number,min:c.string,name:c.string,onBackspace:c.func,onBackTab:c.func,onBlur:c.func,onChange:c.func,onClick:c.func,onComma:c.func,onDownArrow:c.func,onEnter:c.func,onEscape:c.func,onFocus:c.func,onKeyDown:c.func,onKeyPress:c.func,onKeyUp:c.func,onLeftArrow:c.func,onNoShiftEnter:c.func,onPaste:c.func,onRightArrow:c.func,onShiftDownArrow:c.func,onShiftEnter:c.func,onShiftUpArrow:c.func,onSpace:c.func,onTab:c.func,onUpArrow:c.func,onWheel:c.func,pattern:c.string,placeholder:c.node,required:c.bool,role:c.string,step:c.string,style:c.object,tabIndex:c.number,title:c.string,type:c.string,value:c.string,autoCapitalize:c.string,autoCorrect:c.string};e.exports=d}),null); __d("AbstractTextInput.react",["cx","AbstractTextField.react","React"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").Component;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this;return b("React").createElement(b("AbstractTextField.react"),this.props,b("React").createElement("input",{className:"_58al",onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,onKeyUp:this.props.onKeyUp,onKeyDown:this.props.onKeyDown,onPaste:this.props.onPaste,size:this.props.size,tabIndex:this.props.tabIndex,type:this.props.type,ref:function(b){return a.$1=b}}))};d.focusInput=function(){this.$1&&this.$1.focus()};d.blurInput=function(){this.$1&&this.$1.blur()};d.selectInput=function(){this.$1&&this.$1.select()};d.getTextFieldDOM=function(){return this.$1};d.getValue=function(){return this.$1?this.$1.value:""};return c}(a);c.propTypes=b("AbstractTextField.react").propTypes;c.defaultProps={type:"text"};e.exports=c}),null); __d("XUIError",["cx","invariant","Promise","ARIA","Bootloader","CSS","DataStore","DOM","Event","Parent","filterObject","getActiveElement","getElementText","isNode","memoize","nl2br","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i="data-xui-error-alignh",j="XUIError",k="data-xui-error",l="_1tp7",m="data-xui-error-position";b("Event").listen(document.documentElement,"mouseover",function(a){if(b("Parent").byClass(b("getActiveElement")(),l))return;a=b("Parent").byClass(a.getTarget(),l);a?v(a):w()});b("Event").listen(document.documentElement,"focusin",function(a){a=b("Parent").byClass(a.getTarget(),l);a?v(a):w()});b("Event").listen(document.documentElement,"focusout",function(a){w()});var n=b("memoize")(function(){return new(b("Promise"))(function(a,c){b("Bootloader").loadModules(["React","ReactDOM","XUIErrorDialogImpl"],function(b,c,d){a(babelHelpers["extends"]({React:b,ReactDOM:c},d.getNewDialog()))},"XUIError")})}),o=null;function p(a){return babelHelpers["extends"]({message:a.getAttribute(k),position:a.getAttribute(m),alignh:a.getAttribute(i)},b("DataStore").get(a,j))}function q(a,c){b("DataStore").set(a,j,c)}function r(a,c){b("DataStore").set(a,j,babelHelpers["extends"]({},b("DataStore").get(a,j),c))}function s(a){b("DataStore").remove(a,j)}var t=!1,u=!1;function v(a){__p&&__p();b("promiseDone")(n(),function(c){__p&&__p();var d=c.React,e=c.ReactDOM,f=c.dialog;c=c.dialogMessageNode;var g=p(a),i=g.message;if(i==null)return;d=d.isValidElement(i);t&&!d&&e.unmountComponentAtNode(c);d?e.render(i,c):(typeof i==="string"||b("isNode")(i)||h(0,652),typeof i==="string"&&(i=b("nl2br")(i)),b("DOM").setContent(c,i));t=d;f.setContext(a).setPosition(g.position||"right").setAlignment(g.alignh||(g.position==="above"||g.position==="below"?"right":null)).show();b("ARIA").notify(b("getElementText")(c));o=a}),u=!0}function w(){__p&&__p();if(!u)return;b("promiseDone")(n(),function(a){a.React;var b=a.ReactDOM,c=a.dialog;a=a.dialogMessageNode;if(!o)return;t&&(b.unmountComponentAtNode(a),t=!1);c.hide();o=null})}function x(a){b("DOM").contains(a,b("getActiveElement")())&&v(a)}a={set:function(a){var c=a.target,d=a.message,e=a.position;a=a.alignh;d!==null||h(0,653);b("CSS").addClass(c,l);r(c,b("filterObject")({message:d,position:e,alignh:a},function(a){return a!==void 0}));x(c)},clear:function(a){b("CSS").removeClass(a,l),a.removeAttribute(k),s(a),a===o&&w()},updatePosition:function(){if(!u)return;b("promiseDone")(n(),function(a){a=a.dialog;o&&a.updatePosition()})},__setReactError:function(a,b){var c=b.message,d=b.position;b=b.alignh;c!==null||h(0,653);q(a,{message:c,position:d,alignh:b});x(a)},__clearReactError:function(a){s(a),a===o&&w()}};e.exports=a}),null); __d("XUIError.react",["cx","React","ReactDOM","XUIError","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="_1tp7";a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.componentDidMount=function(){this.props.xuiError!=null&&b("XUIError").__setReactError(b("ReactDOM").findDOMNode(this),{message:this.props.xuiError,position:this.props.xuiErrorPosition,alignh:this.props.xuiErrorAlignh})};d.componentDidUpdate=function(){this.props.xuiError==null?b("XUIError").__clearReactError(b("ReactDOM").findDOMNode(this)):b("XUIError").__setReactError(b("ReactDOM").findDOMNode(this),{message:this.props.xuiError,position:this.props.xuiErrorPosition,alignh:this.props.xuiErrorAlignh})};d.componentWillUnmount=function(){b("XUIError").__clearReactError(b("ReactDOM").findDOMNode(this))};d.render=function(){var a=b("React").Children.only(this.props.children);this.props.xuiError!=null&&(a=b("React").cloneElement(a,{className:b("joinClasses")(a.props.className,h)}));return a};return c}(b("React").Component);e.exports=a}),null); __d("XUITextInput.react",["cx","AbstractTextInput.react","React","XUIError.react","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").Component;c=b("React").PropTypes;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){var c;c=a.call(this,b)||this;c.$1=function(a){c.props.onFocus&&c.props.onFocus(a),c.setState({focused:!0})};c.$2=function(a){c.props.onBlur&&c.props.onBlur(a),c.setState({focused:!1})};c.state={focused:!1};return c}var d=c.prototype;d.render=function(){var a="_55r1"+(this.props.height==="tall"?" _55r2":"")+(this.props.disabled?" _53a0":"")+(this.state.focused?" _1488":"");return b("React").createElement(b("XUIError.react"),this.props,b("React").createElement(b("AbstractTextInput.react"),babelHelpers["extends"]({},this.props,{onFocus:this.$1,onBlur:this.$2,ref:"textInput",className:b("joinClasses")(this.props.className,a)})))};d.focusInput=function(){this.refs.textInput&&this.refs.textInput.focusInput()};d.blurInput=function(){this.refs.textInput&&this.refs.textInput.blurInput()};d.selectInput=function(){this.refs.textInput&&this.refs.textInput.selectInput()};d.getValue=function(){return this.refs.textInput&&this.refs.textInput.getValue()};d.getTextFieldDOM=function(){return this.refs.textInput?this.refs.textInput.getTextFieldDOM():null};return c}(a);d.defaultProps={height:"short"};d.propTypes=babelHelpers["extends"]({},b("AbstractTextInput.react").propTypes,b("XUIError.react").propTypes,{height:c.oneOf(["short","tall"])});e.exports=d}),null); __d("ComposerTargetData",[],(function(a,b,c,d,e,f){a=function(a,b,c,d){"use strict";this.targetID=a,this.targetSupportsMultiplePhotos=b,this.viewerIsTarget=c,this.targetSupportsMultiMedia=d};e.exports=a}),null); __d("MenuDeprecated",["ArbiterMixin","CSS","DataStore","DOM","Event","HTML","Keys","Parent","Style","UserAgent_DEPRECATED","emptyFunction","mixin","Run"],(function(a,b,c,d,e,f){__p&&__p();var g="menu:mouseover",h=null;function i(a){return b("CSS").hasClass(a,"uiMenuContainer")?a:b("Parent").byClass(a,"uiMenu")}function j(a){return b("Parent").byClass(a,"uiMenuItem")}function k(a){if(document.activeElement){var b=j(document.activeElement);return a.indexOf(b)}return-1}function l(a){return b("DOM").find(a,"a.itemAnchor")}function m(a){return b("CSS").hasClass(a,"checked")}function n(a){return!b("CSS").hasClass(a,"disabled")&&b("Style").get(a,"display")!=="none"}function o(a){var c=document.activeElement;if(!c||!b("Parent").byClass(c,"uiMenu")||!b("DOM").isInputNode(c)){c=j(a.getTarget());c&&r.focusItem(c)}}function p(a){b("UserAgent_DEPRECATED").firefox()&&l(a).blur(),r.inform("select",{menu:i(a),item:a})}var q=function(){__p&&__p();q=b("emptyFunction");var a={};a.click=function(a){a=j(a.getTarget());if(a&&n(a)){p(a);a=l(a);var b=a.href;a=a.getAttribute("rel");return a&&a!=="ignore"||b&&b.charAt(b.length-1)!=="#"}};a.keydown=function(a){__p&&__p();var c=a.getTarget();if(a.getModifiers().any)return;if(!h||b("DOM").isInputNode(c))return;var d=b("Event").getKeyCode(a),e;switch(d){case b("Keys").UP:case b("Keys").DOWN:var f=r.getEnabledItems(h);e=k(f);r.focusItem(f[e+(d===b("Keys").UP?-1:1)]);return!1;case b("Keys").SPACE:f=j(c);f&&(p(f),a.prevent());break;default:c=String.fromCharCode(d).toLowerCase();f=r.getEnabledItems(h);e=k(f);a=e;d=f.length;while(~e&&(a=++a%d)!==e||!~e&&++a0&&b("CSS").conditionShow(a[0],!0);d?N(c):O(c)}}function X(a,c){a={profile_id:c};b("Arbiter").inform("EnableNotifsForUser",a);new(b("AsyncRequest"))().setURI(w).setMethod("POST").setData({notifier_id:c,enable:!0}).setErrorHandler(b("Arbiter").inform.bind(null,"EnableNotifsForUserFail",a)).send()}function Y(a,c){a={profile_id:c};b("Arbiter").inform("DisableNotifsForUser",a);new(b("AsyncRequest"))().setURI(w).setMethod("POST").setData({notifier_id:c,enable:!1}).setErrorHandler(b("Arbiter").inform.bind(null,"DisableNotifsForUserFail",a)).send()}c={init:function(a,c,d){__p&&__p();var e=b("getOrCreateDOMID")(a);B[e]=d;j[e]||b("Event").listen(a,"click",function(b){return D(a,j[e],d,b.getTarget())});d===h&&x[c].length&&V(a,c,x[c]);q[c]&&K(a,c);j[e]=c;b("CSS").conditionClass(a,"NonFriendSubscriptionMenu",!k[c]);b("CSS").conditionClass(a,"cannotSubscribe",!n[c]);b("CSS").conditionClass(a,"noSubscriptionLevels",o[c]&&!p[c]);b("CSS").conditionClass(a,"noSubscribeCheckbox",!k[c]&&!o[c]);T(a,c,l[c]);W(a,c,m[c]);b("Arbiter").subscribe(["FollowUser","FollowingUser","UnfollowUserFail"],function(b,d){d.profile_id==c&&T(a,c,!0)}.bind(this));b("Arbiter").subscribe(["UnfollowUser","UnfollowingUser","FollowUserFail"],function(d,e){e.profile_id==c&&(b("Arbiter").inform("SubMenu/Reset"),T(a,c,!1))}.bind(this));b("Arbiter").subscribe(["EnableNotifsForUser","DisableNotifsForUserFail"],function(b,d){d.profile_id==c&&W(a,c,!0)}.bind(this));b("Arbiter").subscribe(["DisableNotifsForUser","EnableNotifsForUserFail"],function(b,d){d.profile_id==c&&W(a,c,!1)}.bind(this));b("Arbiter").subscribe("listeditor/friend_lists_changed",function(b,c){if(c.notify_state){b=c.added_uid?c.added_uid:c.removed_uid;W(a,b,c.notify_state.is_notified)}}.bind(this))},getSubscriptions:function(a){return{level:q[a],custom_categories:r[a]}},registerTimelineNotifySelector:function(a,c){var d=a.getInitialMenu(),e=a.getContentRoot();d.forEachItem(function(a){var d=a.getRoot();b("CSS").hasClass(d,"SubscribeMenuNotifyMeCheckbox")&&(y[c]=a,W(e,c,m[c]))});d.subscribe("itemclick",function(a,b){b.item===y[c]&&E(e,c);return!0})},toggleNotificationsOnJoin:function(a,b){m[a]!==b&&E(null,a)},setSubscriptions:function(a,b,c,d,e,f,g,h,i,j,q,u){Q(a,g+""),k[a]=b,l[a]=c,n[a]=d,o[a]=e,p[a]=f,s[a]=i+"",r[a]=h.map(String),t[a]=j.map(String),x[a]=u,m[a]=q}};e.exports=a.EditSubscriptions||c}),null); __d("SelectorDeprecated",["Arbiter","ArbiterMixin","Button","ContextualLayer","CSS","DataStore","DOM","Event","Focus","HTML","Keys","MenuDeprecated","Parent","Style","Toggler","TooltipData","URI","Vector","emptyFunction","getDocumentScrollElement","mixin"],(function(a,b,c,d,e,f){__p&&__p();var g,h,i=[],j;function k(a){return b("Parent").byClass(a,"uiSelector")}function l(a){return b("Parent").byClass(a,"uiSelectorButton")}function m(){h||(h=new(b("ContextualLayer"))({position:"below"},b("DOM").create("div")),b("CSS").addClass(h.getRoot(),"uiSelectorContextualLayer"));return h}function n(a){return b("DOM").scry(a,"select")[0]}function o(a){return b("DOM").find(a,"div.uiSelectorMenuWrapper")}var p=function(){__p&&__p();p=b("emptyFunction"),b("MenuDeprecated").subscribe("select",function(a,c){__p&&__p();if(!g||!c||c.menu!==u.getSelectorMenu(g))return;a=q(g);var d=r(c.item);if(d){var e=g,f=u.isOptionSelected(c.item),h=u.inform("select",{selector:e,option:c.item,clone:j});if(h===!1)return;(a||!f)&&(u.setSelected(e,u.getOptionValue(c.item),!f),u.inform("toggle",{selector:e,option:c.item}),u.inform("change",{selector:e}),b("Arbiter").inform("Form/change",{node:e}),s(e)&&b("DataStore").set(e,"dirty",!0))}(!a||!d)&&(g&&u.toggle(g))})};function q(a){return!!a.getAttribute("data-multiple")}function r(a){return b("CSS").hasClass(a,"uiSelectorOption")}function s(a){return!!a.getAttribute("data-autosubmit")}var t=function(){__p&&__p();t=b("emptyFunction");var a={keydown:function(a){__p&&__p();var c=a.getTarget();if(b("DOM").isInputNode(c))return;switch(b("Event").getKeyCode(a)){case b("Keys").DOWN:case b("Keys").SPACE:case b("Keys").UP:if(l(c)){a=k(c);u.toggle(a);return!1}break;case b("Keys").ESC:if(g){c=u.getSelectorButton(g);u.toggle(g);c&&b("Focus").set(c);return!1}break}},mouseover:function(a){a=b("Parent").byAttribute(a.getTarget(),"ajaxify");a&&b("CSS").hasClass(a,"uiSelectorButton")&&u.loadMenu(k(a))}};b("Event").listen(document.body,a)};b("Toggler").subscribe(["show","hide"],function(a,c){__p&&__p();var d=k(c.getActive());if(d){t();p();var e=u.getSelectorButton(d),f=u.getSelectorMenu(d);a=a==="show";e.setAttribute("aria-expanded",a?"true":"false");if(a){g=d;if(b("CSS").hasClass(e,"uiButtonDisabled")){u.setEnabled(d,!1);return!1}f=f||u.loadMenu(d);e=b("Style").getScrollParent(d);var h=e!==window&&e!==b("getDocumentScrollElement")();if(h||b("CSS").hasClass(d,"uiSelectorUseLayer")){h&&i.push(b("Event").listen(e,"scroll",function(){c.hide()}));j=b("DOM").create("div",{className:d.className});b("CSS").addClass(j,"invisible_elem");b("Vector").getElementDimensions(d).setElementDimensions(j);b("DOM").replace(d,j);h=b("CSS").hasClass(d,"uiSelectorRight");e=b("CSS").hasClass(d,"uiSelectorBottomUp");m().setContext(j).setContent(d).setPosition(e?"above":"below").setAlignment(h?"right":"left").show()}b("MenuDeprecated").register(f);e=b("MenuDeprecated").getCheckedItems(f);e.length||(e=b("MenuDeprecated").getEnabledItems(f));e.length&&b("MenuDeprecated").focusItem(e[0])}else{g=null;if(j){while(i.length)i.pop().remove();b("DOM").replace(j,d);m().hide();j=null}f&&b("MenuDeprecated").unregister(f);if(s(d)&&b("DataStore").get(d,"dirty")){h=b("DOM").scry(d,"input.submitButton")[0];h&&h.click();b("DataStore").remove(d,"dirty")}}b("CSS").conditionClass(u.getSelectorButton(d),"selected",a);u.inform(a?"open":"close",{selector:d,clone:j})}});a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var e=c.prototype;e.attachMenu=function(a,c,d){__p&&__p();a=k(a);if(a){g&&b("MenuDeprecated").unregister(u.getSelectorMenu(g));b("DOM").setContent(o(a),c);g&&b("MenuDeprecated").register(u.getSelectorMenu(a));j&&m().updatePosition();if(d){c=a.getAttribute("data-name");c&&d.setAttribute("name",c);q(a)||d.setAttribute("multiple",!1);c=n(a);c?b("DOM").replace(c,d):b("DOM").insertAfter(a.firstChild,d)}return!0}};e.getOption=function(a,b){a=u.getOptions(a);var c=a.length;while(c--)if(b===u.getOptionValue(a[c]))return a[c];return null};e.getOptions=function(a){a=b("MenuDeprecated").getItems(u.getSelectorMenu(a));return a.filter(r)};e.getEnabledOptions=function(a){a=b("MenuDeprecated").getEnabledItems(u.getSelectorMenu(a));return a.filter(r)};e.getSelectedOptions=function(a){return b("MenuDeprecated").getCheckedItems(u.getSelectorMenu(a))};e.getOptionText=function(a){return b("MenuDeprecated").getItemLabel(a)};e.getOptionValue=function(a){var b=k(a),c=n(b);b=u.getOptions(b).indexOf(a);return b>=0?c.options[b+1].value:""};e.getSelectorButton=function(a){return b("DOM").find(a,"a.uiSelectorButton")};e.getSelectorMenu=function(a){return b("DOM").scry(a,"div.uiSelectorMenu")[0]};e.getValue=function(a){__p&&__p();var b=n(a);if(!b)return null;if(!q(a))return b.value;a=[];b=b.options;for(var c=1,d=b.length;c
');b("DOM").appendContent(f.parentNode,h);e=u.getSelectorMenu(a);f.removeAttribute("onmouseover")}}else c&&c();return e};e.setButtonLabel=function(a,c){a=u.getSelectorButton(a);var d=parseInt(a.getAttribute("data-length"),10);c=c||a.getAttribute("data-label")||"";b("Button").setLabel(a,c);typeof c==="string"&&(d&&c.length>d?a.setAttribute("title",c):a.removeAttribute("title"))};e.setButtonTooltip=function(a,c){a=u.getSelectorButton(a);var d=b("Parent").byTag(a,"a");d&&b("TooltipData").set(d,c||a.getAttribute("data-tooltip")||"")};e.setEnabled=function(a,c){!c&&g&&k(a)===g&&u.toggle(a),b("Button").setEnabled(u.getSelectorButton(a),c)};e.setOptionEnabled=function(a,c){b("MenuDeprecated").setItemEnabled(a,c)};e.setSelected=function(a,c,d){__p&&__p();d=d!==!1;c=u.getOption(a,c);if(!c)return;var e=u.isOptionSelected(c);if(d!==e){if(!q(a)&&!e){d=u.getSelectedOptions(a)[0];d&&b("MenuDeprecated").toggleItem(d)}b("MenuDeprecated").toggleItem(c)}u.updateSelector(a)};e.toggle=function(a){b("Toggler").toggle(b("DOM").scry(k(a),"div.wrap")[0])};e.updateSelector=function(a){__p&&__p();var c=u.getOptions(a),d=u.getSelectedOptions(a),e=n(a).options,f=[],g=[];for(var h=0,i=c.length;h=0&&a