/* Auto generated, hash = bj70ot6fetfaeboqd6w755e1i */
/**
 * Hack to avoid dynamic concatenation of footer-scripts, the scripts was originallly
 * designed to only work in dynamic concat state due to interdependence of scripts on shared variables.
 * https://jira01.corp.linkedin.com:8443/browse/HUED-14097
 *
 * Extracting out all the shared variables b/w interdependent footer scripts and creates a new closure
 *
 * start of the dynamic concat fix closure
 */
(function(context) {
    context = context || {};
    var LI = context.LI;
    var globalNavAPI = window.globalNav || context.globalNav;
    var _namespaces = context._namespaces;
    var Injector = context.Injector;
    var Helpers = context.Helpers;
    var Promise = context.Promise;
    var Request = context.Request;
    var Delegate = context.Delegate;
    var CustomEvents = context.CustomEvents;
    var CookieManager = context.CookieManager;
    var WeightedQueue = context.WeightedQueue;
    var NodeStash = context.NodeStash;
    var NavMenu = context.NavMenu;
    var InboxNavAPI = context.InboxNavAPI;
    var SlidingNavView = context.SlidingNavView;
    var TourManager = context.TourManager;
    var AddConnectionsFactory = context.AddConnectionsFactory;
    var AddConnectionsDecorator = context.AddConnectionsDecorator;
    var PageShift = context.PageShift;
    var AutoHide = context.AutoHide;
    var AlertFactory = context.AlertFactory;
    var GlobalAlertManager = context.GlobalAlertManager;

(function(){function g(a){return(a=RegExp("(?:^|;)\\s?"+a+"\x3d(.*?)(?:;|$)","i").exec(document.cookie||""))&&a[1]||""}function p(a){a.preventDefault();e()}function q(a){a.preventDefault();h(this.getAttribute("lang").replace("-","_"))}function r(a){clearTimeout(k)}function s(a){k=setTimeout(l,m)}function e(){b.classList.add(c)}function l(){b.classList.remove(c)}function h(a){function b(){var c='"v\x3d2\x26lang\x3d'+a.toLowerCase()+'"',d=document.domain.split(".").splice(-2).join(".");"undefined"!==
typeof console&&console.error("lang cookie was not set correctly, manually setting it to "+c);document.cookie=["lang\x3d"+c,"domain\x3d."+d,"path\x3d/"].join(";");window.location.reload()}var d=new XMLHttpRequest;d.withCredentials=!0;d.open(f.method,f.action,!0);d.setRequestHeader("X-Requested-With","XMLHttpRequest");d.onload=function(){try{if(200===JSON.parse(d.responseText).result.responseCode){t.test(g("lang"))?window.location.reload():b();return}}catch(a){}b()};d.onerror=b;var c=new FormData(f);
c.set("locale",a);var e=g("JSESSIONID").replace(/"/g,"");e&&c.set("csrfToken",e);d.send(c)}function n(){if(f=document.languageSelectorForm){b=document.getElementById("nav-utility-lang");var a=Delegate;a(b,"a","click",p);a(b,"a","mouseover",r);a(b,"a","mouseout",s);a(b,"a[lang]","click",q)}}var m=100,c="hover",t=/^"v=2&lang=[a-z]{2}-[a-z]{2}"/,f,b,k;window.LI_JS_TEST?(window.LanguageSwitcher={showMenu:e,hideMenu:l,switchLanguage:h,TIMER_DELAY:m,HOVER_CLASS:c},n()):window.addEventListener("load",n)})();
/**
 * Hack to avoid dynamic concatenation of footer-scripts, the scripts was originallly
 * designed to only work in dynamic concat state due to interdependence of scripts on shared variables.
 * https://jira01.corp.linkedin.com:8443/browse/HUED-14097
 *
 * Extracting out all the shared variables b/w interdependent footer scripts and updating the LIContext with the
 * new state.
 *
 * end of the dynamic concat fix closure
 */
var LIContext = {};
LIContext.LI = LI;
LIContext.globalNav = window.globalNav || {};
LIContext.Injector = Injector;
LIContext._namespaces = _namespaces;
LIContext.Helpers = Helpers;
LIContext.Promise = Promise;
LIContext.Request = Request;
LIContext.Delegate = Delegate;
LIContext.CustomEvents = CustomEvents;
LIContext.CookieManager = CookieManager;
try{LIContext.NavMenu = NavMenu;} catch(e) {LIContext.NavMenu=undefined;}
try{LIContext.WeightedQueue = WeightedQueue;} catch(e) {LIContext.WeightedQueue=undefined;}
try{LIContext.NodeStash = NodeStash;} catch(e) {LIContext.NodeStash=undefined;}
try{LIContext.InboxNavAPI = InboxNavAPI;} catch(e) {LIContext.InboxNavAPI=undefined;}
try{LIContext.SlidingNavView = SlidingNavView;} catch(e) {LIContext.SlidingNavView=undefined;}
try{LIContext.TourManager = TourManager;} catch(e) {LIContext.TourManager=undefined;}
try{LIContext.AddConnectionsFactory = AddConnectionsFactory;} catch(e) {LIContext.AddConnectionsFactory=undefined;}
try{LIContext.AddConnectionsDecorator = AddConnectionsDecorator;} catch(e) {LIContext.AddConnectionsDecorator=undefined;}
try{LIContext.PageShift = PageShift;} catch(e) {LIContext.PageShift=undefined;}
try{LIContext.AutoHide = AutoHide;} catch(e) {LIContext.AutoHide=undefined;}
try{LIContext.AlertFactory = AlertFactory;} catch(e) {LIContext.AlertFactory=undefined;}
try{LIContext.GlobalAlertManager = GlobalAlertManager;} catch(e) {LIContext.GlobalAlertManager=undefined;}
window.LIContext = LIContext;
})(window.LIContext);
