/* Auto generated, hash = bc4wb5mnnesl7iwkdbnagohpj */
/**
 * 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 e(b,e){for(;b&&1===b.nodeType&&b!==document;){if((b.matches||b.matchesSelector||b.msMatchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.oMatchesSelector).call(b,e))return b;b=b.parentNode}return null}var c=-1;(function(){function b(a,b){g.setAttribute("aria-expanded",a);b||(a?h.focus():g.focus())}function k(a){var b=l.length;return c=a?c+1>=b?0:c+1:-1>=c-1?b-1:c-1}var g=document.querySelector("#minimal-nav-account-btn")||null,d=g?g.parentElement:null,h=document.querySelector("#minimal-sub-nav")||
null,l=h?h.getElementsByTagName("a"):null,f=d?d.classList.contains("active"):!1;d&&h&&(window.addEventListener("focusin",function(){var a;if(a=f){a=!1;if(e(document.activeElement,"#minimal-sub-nav")==h||e(document.activeElement,"#minimal-nav-account-btn")==g)a=!0;a=!a}a&&(d.classList.remove("active"),f=!1,b(!1,!0))}),document.body.addEventListener("click",function(a){var c=a.target,c=(a=e(c,"#minimal-nav-account-btn"))||e(c,".nav-item")||e(c,"#minimal-sub-nav");a?(d.classList.toggle("active"),f=d.classList.contains("active"),
b(f)):c||(d.classList.remove("active"),f=!1)}),window.addEventListener("keydown",function(a){if(f){if(37===a.keyCode||38===a.keyCode)a.preventDefault(),l[k(!1)].focus();if(39===a.keyCode||40===a.keyCode)a.preventDefault(),l[k(!0)].focus();9===a.keyCode&&k(!a.shiftKey);27===a.keyCode&&(d.classList.remove("active"),f=!1,b(!1))}}))})()})();
/**
 * 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);
