window.LI||(window.LI={});
LI.TalkIn=LI.Talkin||function(c){function f(){var s=A.domain.split(".").slice(-2).join(".");return A.domain!==s?(A.domain=s,!0):!1}function e(s,a){var b,d,h;if(x.call(s)===r)for(b in s)e(b,s[b]);else b=s.split("."),d=b[0],h=g.hasOwnProperty(d)?g[d]:null,1<b.length?(d=b[1],h.hasOwnProperty(d)&&h[d](a)):h(a)}function k(s){var d,f=s.data,q;a:{q=l.length;for(var r=v(s.origin);q--;)if(l[q]===r){q=!0;break a}q=!1}if(q)if(m)if(f===n)g=LI.TalkIn.endpoints,s.source.postMessage(n,s.origin);else try{d=JSON.parse(f),
e(d)}catch(t){}else if(!a&&f===n)for(a=s.origin,h(c,p,k),b&&(c.clearInterval(b),b=null);y.length;)LI.TalkIn.send(y.pop())}var b,g,a,d,h,n="__READY__",p="message",r="[object Object]",l="TKzOtpCyQ2lB7OUEhbHz1wkI1ww doTckfvQb6UiSnR+KOXknWFUZDw VQFeyjjIKmjjtkdwWlgApCn6W2g k6bHUsq8eXftkQ3CTJXvgYJSY9Q f640W4X7ZDRDfPdwPRkQXzbNt2Q +lus2RBkJ7GswWZiaRZwr2YCWSE w/Cq9ectx60qdy04zfYE9z05C/c Nv8UVtK4cvfsZjnR37q4cl6FELo zVp+SXlpBxy9ceDhF/QhJIMZ/8w ipnp/j05RxfRo66icU7vJlMRYwk nsN0FYX3oxPXHFo7F61hk3BLmgw qOB2HzNYRUAtmrFigAFhhIdKZX8 ft6Qf4NlUr+igYY6o7gL3U9PAzA r/LByGpOBknQftv1+tpZONO+1e8 UN2TmDNo1h5c+Bty9q7GqXYZ94Y ilgaq1nh7Zup+ZAk5SgZPeLQKAE j/jyhrBSfizuVEh/YcNna4pJlBM 4rlVmy8S5DGns8N9yQ1S1zxQfyg oYU1rheOj0XNs4hgDNyodd2YW8w wC3CbUDuIqAJmcb/jGre+Rlb4T4 +3DJhQPlY5rBArZfhlWss5X0P+I JDYCNYT++v4sSG+FZL1+BAkzkGs ue5T9aOY34YF+XnDD5Drnf5MOMg Mfoz2r9CRt9122j7jy7TL5Fs5Dg".split(" "),
v=function(){function s(s,a){var b=(65535&s)+(65535&a);return(s>>16)+(a>>16)+(b>>16)<<16|65535&b}return function(a){var b,d=[];for(b=0;8*a.length>b;b+=8)d[b>>5]|=(a.charCodeAt(b/8)&255)<<24-b%32;var g=8*a.length,h,c,f,k,p,e,l;a=[80];b=1732584193;var n=-271733879,r=-1732584194,m=271733878,v=-1009589776;d[g>>5]|=128<<24-g%32;d[(g+64>>9<<4)+15]=g;for(p=0;d.length>p;p+=16){g=b;h=n;c=r;f=m;k=v;for(e=0;80>e;e++)a[e]=16>e?d[p+e]:(a[e-3]^a[e-8]^a[e-14]^a[e-16])<<1|(a[e-3]^a[e-8]^a[e-14]^a[e-16])>>>31,l=s(s(b<<
5|b>>>27,20>e?n&r|~n&m:40>e?n^r^m:60>e?n&r|n&m|r&m:n^r^m),s(s(v,a[e]),20>e?1518500249:40>e?1859775393:60>e?-1894007588:-899497514)),v=m,m=r,r=n<<30|n>>>2,n=b,b=l;b=s(b,g);n=s(n,h);r=s(r,c);m=s(m,f);v=s(v,k)}d=[b,n,r,m,v];r="";for(b=0;4*d.length>b;b+=3)for(a=(255&d[b>>2]>>8*(3-b%4))<<16|(255&d[b+1>>2]>>8*(3-(b+1)%4))<<8|255&d[b+2>>2]>>8*(3-(b+2)%4),n=0;4>n;n++)r+=8*b+6*n>32*d.length?"":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&a>>6*(3-n));return r}}(),A=c.document,
B=c.top,m=c.window===B,w=void 0!==c.webkitURL,t=void 0!==c.postMessage,x=Object.prototype.toString,y=[];if(function(){c.addEventListener?(d=function(b,a,d){b.addEventListener(a,d,!1)},h=function(b,a,d){b.removeEventListener(a,d)}):c.attachEvent&&(d=function(b,a,d){b.attachEvent("on"+a,d)},h=function(b,a,d){b.detachEvent("on"+a,d)})}(),m)t&&d(c,p,k);else{if(!w)try{g=B.LI.TalkIn.endpoints}catch(z){try{f()&&(g=B.LI.TalkIn.endpoints)}catch(u){}}t&&!g&&d(c,p,k)}return{endpoints:{},register:function(b,
a){var d,g;d=this.endpoints;if(b&&a&&a instanceof Object)if(d[b]&&x.call(a)===r)for(g in d=d[b],a)d[g]=a[g];else d[b]=a},VERSION:"1.3.2"}}(window);
LI.TalkIn.register("ads",function(c){function f(c){var b;if(!c)throw Error("ExpandableContainer requires a config object. Refer to the API for details.");return b=this.getOrSetCache(c.containerId),b.expandData?b:c.width||c.height||c.top?b.configure(c):void 0}var e=c.document;return f.prototype={UNIT:"px",MIN_ZINDEX:5,MAX_ZINDEX:1E4,ATTRIBUTES:["left","width","height","top"],_cache:{},getOrSetCache:function(c){var b=this._cache,g=b[c];return g?g:(b[c]=this,this)},configure:function(e){var b=this.container=
this.getElement(e.containerId),g=this.containerStyle=b.style,a=e.delta,d={},h={};return d.width=b.offsetWidth,d.height=b.offsetHeight,h.width=+((a&&e.width?d.width:0)+(e.width||d.width||b.width)),h.height=+((a&&e.height?d.height:0)+(e.height||d.height||b.height)),e.top&&(d.top=b.offsetTop,h.top=+((a?d.top:0)+e.top),h.height+=-1*h.top),e.push||(this.detach(d),d.left=parseInt(g.left,10),h.left=d.left-(h.width-d.width)),this.animation=c.$&&c.$().animate&&e.animate,this.setStateData(d,h),e.forget&&(this.forget=
!0),this.parentZIndex=this.getStyle("z-index",b.parentNode),this},setStateData:function(c,b){for(var g,a=this.UNIT,d=this.ATTRIBUTES.slice(0);d.length;)g=d.pop(),c[g]===b[g]?(delete c[g],delete b[g]):(c[g]+=a,b[g]+=a);c.zIndex=this.MIN_ZINDEX;b.zIndex=this.MAX_ZINDEX;this.collapseData=c;this.expandData=b},getElement:function(c){return isNaN(c)?e.getElementById(c):this.getElementByTileId(c)},getElementByTileId:function(c){for(var b,g,a=/(;tile|&ti)=\d/g,d=e.getElementsByTagName("iframe"),h=d.length;h--;)if(b=
d[h],g=b.src.match(a),g&&g[0].slice(g[0].indexOf("\x3d")+1)===c)return b;return null},getStyle:function(e,b){if(b=b||this.container,b&&e){if(c.getComputedStyle)return c.getComputedStyle(b).getPropertyValue(e);if(b.currentStyle)return b.currentStyle[this.camelize(e)]}return""},camelize:function(c){return c.replace(/\-[a-z]/g,function(b){return b[1].toUpperCase()})},detach:function(c){var b=this.container,g=this.containerStyle;this.placeholder||(b.parentNode.insertBefore(this.createPlaceholder(c),b.nextSibling),
g.position="absolute",g.top=b.offsetTop+this.UNIT,g.left=b.offsetLeft+this.UNIT,g.zIndex=this.MIN_ZINDEX)},createPlaceholder:function(c){var b=this.placeholder=e.createElement("div"),g=b.style,a=this.getStyle("display");return g.width=c.width+this.UNIT,g.height=c.height+this.UNIT,g.display="inline"===a?"inline-block":a,b},expand:function(){var c=this.expandData;this.animation?(this.containerStyle.display="",this.containerStyle.zIndex=c.zIndex,this.animate(c)):this.resize(c);this.forget&&(delete this.forget,
this.expandData=null)},collapse:function(){var c=this.collapseData;this.animation?this.animate(c):this.resize(c)},resize:function(c){var b,g=this.containerStyle;for(b in c)g[b]=c[b];isNaN(this.parentZIndex)||(this.container.parentNode.style.zIndex=c.zIndex===this.MAX_ZINDEX?this.MAX_ZINDEX:this.parentZIndex)},animate:function(e){c.$(this.container).animate(e,this.animation)}},{ExpandableContainer:f,initialize:function(c){return new f(c)},expand:function(c){this.initialize(c).expand()},collapse:function(c){this.initialize(c).collapse()}}}(window));
(function(c){function f(){var b=/LI_JS_DEBUG/;try{return location.hash.match(b)||window.localStorage&&window.localStorage.getItem&&"true"===window.localStorage.getItem("enableLog")}catch(d){}return!1}var e={info:!0,warn:!0,error:!0},k=Array.prototype.slice,b=f(),g=function(){var a=[],d=null;window.console||(window.console={log:function(){}});if(b){a=k.call(arguments);d=a[1];if(e[d])if(a.splice(1,1),"function"===typeof console[d])console[d](a);else console.log(d+": "+a.join(", "));console.log(a)}};
g.reset=function(){b=f()};c.exports("log",g)})(window.LIModules);
(function(c){function f(b,c,a,d,h,e){b=b&&"object"===typeof b?b:{message:b,type:c,node:a,animate:d,dismissable:h,dismissMsg:e};b.node&&"string"===typeof b.node&&(b.node=document.getElementById(b.node));return b}if(!window.LI||!window.LI.injectAlert){var e=c&&c.alertManager,k;k=e?{create:e.injectAlert,remove:e.removeAlert}:{create:function(b){var c=b.node||document.createElement("div"),a=b.message||"",d=b.type||"error",h=!!b.animate,e=!!b.dismissable,f=b.dismissMsg||"";c.innerHTML="";c.appendChild(this._buildNode(d,
a,f,e));h&&b.node&&this.animate(b);e&&!b.disableDismissHandler&&c.addEventListener("click",function(b){b.target.classList.contains("dismiss")&&(b.preventDefault(),this.remove(c,h))}.bind(this));return c},remove:function(b,c){c?this.animate({node:b,shouldRemove:!0,callback:function(){b.innerHTML=""}}):b.innerHTML=""},animate:function(b){if(!b.node)throw Error("you must provide a node");var c=b.node,a=b.callback,d=b.shouldRemove;c.length?Array.prototype.forEach.call(c,function(b){this._determineAnimation(b,
a,d)}.bind(this)):this._determineAnimation(c,a,d)},_buildNode:function(b,c,a,d){var h=document.createElement("div");h.className="alert "+b;h.setAttribute("role","alert");h.innerHTML=c;d&&(b=document.createElement("button"),b.className="dismiss",b.setAttribute("type","button"),b.setAttribute("id","dismiss-alert"),a&&(b.innerHTML=a),h.appendChild(b));return h},_determineAnimation:function(b,c,a){b.firstChild&&b.firstChild.classList.add(a?"animate-out":"animate-in");"function"===typeof c&&c()}};c={injectAlert:function(){var b=
f.apply(this,arguments),c=k.create.call(k,b);return e?c:b.node},removeAlert:k.remove.bind(k),showMobileError:function(){var b=f.apply(this,arguments);b.message&&window.alert(b.message)}};c.injectAlert.normalizeInterface=f;LIModules.exports("alertManager",c);LIModules.exports("injectAlert",c.injectAlert);LIModules.exports("removeAlert",c.removeAlert);LIModules.exports("showMobileError",c.showMobileError)}})(window.globalNav);
(function(){var c=!!document.all,f=c&&!!window.atob,e=c&&!!document.addEventListener&&!f,k=c&&!!document.querySelector&&!document.addEventListener,b=c&&!!window.XMLHttpRequest&&!document.querySelector,g=c&&!!document.compatMode&&!window.XMLHttpRequest,a=!!navigator.userAgent.match(/firefox/i);LIModules.exports("browser",{ie:c,ie6:g,ie7:b,ie8:k,ie9:e,ie10:f,firefox:a})})();
(function(){LIModules.exports("patterns",{sharingUrl:/((?:[A-Z0-9][A-Z0-9_\-]*\.)+(?:(ht)tp(s?)\:\/\/)?(?:aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)(?::(?:\d+))?)(\/[^\s]*)?/i,email:/^([a-zA-Z0-9_\-=\.\'\+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,10}|[0-9]{1,3})(\]?)$/})})();
(function(){LIModules.exports("supportsCSSTransitions",function(){var c=document.createElement("p").style;return"transition"in c||"WebkitTransition"in c||"MozTransition"in c||"msTransition"in c||"OTransition"in c})})();(function(){function c(c,e){return c}dust.register("templates/messages/contributionMessages",c);return c})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/messages/contributionMessages"]={contribution_started:"Getting Started",contribution_finding:"Finding an Audience",contribution_making:"Making an Impact",contribution_building:"Building a Following",contribution_top:"Top Contributor"}})();
(function(c){c.exports("SocialShareButton",function(f,e){function k(b){return function(){b&&a&&a.trackUserAction(b)}}function b(b){f&&("A"===f.tagName&&(f.href=b),f.onclick=function(a){k(e.webtrack)();window.open(b,null,e.winParams);return!1})}function g(a){return function(){var a;e.url&&(a="http://www.facebook.com/sharer/sharer.php?u\x3d"+e.url,a+=e.text?"\x26t\x3d"+d(e.text):"",b(a))}}var a=c.imports("WebTracking"),d=window.encodeURIComponent;e=e||{};e.type=e.type||null;e.actionType=e.actionType||
null;e.text=e.text||null;e.url=e.url||null;e.webtrack=e.webtrack||null;e.winParams=e.winParams||"width\x3d550,height\x3d380";this.linkedinLoad=function(){var a;e.url&&(a="http://www.linkedin.com/shareArticle?url\x3d"+e.url,a+=e.text?"\x26summary\x3d"+d(e.text):"",a+=e.title?"\x26title\x3d"+d(e.title):"",b(a))};this.facebookShareLoad=g("SHARE");this.facebookLikeLoad=g("LIKE");this.facebookLoad=g("LIKE");this.twitterLoad=function(){var a,c;e.url&&(a="https://twitter.com/intent/tweet?\x26url\x3d"+e.url,
c=d(e.text),a+=e.text?"\x26text\x3d"+c:"",b(a))};this.googleplusLoad=function(){var a;e.url&&(a="https://plus.google.com/u/0/share?url\x3d"+e.url,b(a))};if(e.type)this[e.type+"Load"]()})})(window.LIModules);
(function(){var c=LIModules.imports("i18n"),f=function(){function e(a){return"function"===typeof a}function f(){g=c&&c.page&&c.page.readsRTL()}var b={left:"right",right:"left",ltr:"rtl",rtl:"ltr"},g;f();return{init:f,flip:function(a,c){var h;g?void 0===c?(h=a,h=e(h)?h():h,!0===h||!1===h||"[object Boolean]"===Object.prototype.toString.call(h)?h=!h:h&&b[h]&&(h=b[h])):h=e(c)?c():c:h=e(a)?a():a;return h},applyWhenRTL:function(a){return this.flip(null,a)},isRtl:function(a){function b(a,c){if(null===a)return!1;
var d=Array.prototype.indexOf;return d&&a.indexOf===d?-1!==a.indexOf(c):Array.prototype.some(a,function(a){return a===c})}if(void 0===a||null===a)return!1;for(var c=0,g,e=a.length,f=" \n\r\t\f\u00a0\u2028\u2029".split("").concat("~!@#$%^\x26*()_+`1234567890-\x3d{}|[]\\:\";'\x3c\x3e?,./".split(""));c<e&&(g=a.charAt(c),b(f,g));c++);return c>=e?!1:"\u0590"<=g&&"\u06ff">=g?!0:!1}}}();LIModules.exports("Bidi",f)})();
(function(c){var f=c.requires("jquery"),e=c.requires("underscore"),k=c.imports("Controls"),b=c.requires("Events"),g,a,d=c.imports("Profile2");f.fn.MiniProfile=function(a,b,d){g=g||c.imports("Bidi");this.id=a;this.$panel=b;this.content="";this.manager=d;this.followToggler="";this.isRTL=(g=g||c.imports("Bidi"))?g.flip(!1,!0):!1};f.extend(f.fn.MiniProfile.prototype,{calculatePosition:function(a){var b,c,d;c=this.$panel;d=c.find(".new-miniprofile-content");var e=f(window).height(),k=f(window).width(),
A=f(document).scrollTop(),B=f(document).scrollLeft(),m={},w=b=0,t=0,x=0,y,z,u=this.manager.getDefaultShownBelow(),s=!1,D=!1,t=c.find(".company-miniprofile-content, .school-miniprofile-content").length,C=this.isRTL,q=C?t?69:124:80,E=C?-159:t?-70:-115,F=t?15:10;f("img",a).each(function(b){a=f(this);return!1});b=a.innerHeight();w=a.innerWidth();c.css({visibility:"hidden"}).removeClass("hidden");t=d.outerHeight();x=d.outerWidth();c.addClass("hidden").css({visibility:"visible"});c=a.offset().left+w/2;
d=a.offset().top;a.offset();b=a.offset().top+b;b+t<A+e&&(D=!0);d-t-80>A&&(s=!0);u&&D?m.bottom=!0:!u&&s?m.top=!0:D?m.bottom=!0:m.top=!0;e=g?g.flip(x,-1*x):x;c+e+E<B+k?m.right=!0:c-e+q>B?m.left=!0:m.right=!0;m.top&&(y=d-t-F);m.bottom&&(y=b+F);if(m.left&&!C||m.right&&C)z=c-x+q;if(m.right&&!C||m.left&&C)z=c+E-10;return{x:z,y:y,directions:m}},id:function(){return this.id},getContent:function(){return this.content},show:function(d){var g=this;g.$node=d;g.manager.loadProfile(d,{success:function(f){var r=
g.manager,l=g.$panel,v=r.$lastSelectedNode;f&&(g.content=f,!r.areDifferentLinkNodes(v,d)&&(l.html(f),k&&k.parseFragment&&k.parseFragment(l.get(0)),f=l.find(".company-miniprofile-content, .school-miniprofile-content"),f.length&&(a=a||c.imports("scripts.FollowToggler"),g.followToggler||b.bind("follow-toggler:follow:success follow-toggler:unfollow:success",e.bind(g.afterFollowingCompany,g)),a&&(g.followToggler=new a(f,{toggleContainerClass:"follow-actions-container",selectedClass:"current",companyId:g.id}))),
f=g.calculatePosition(d)))&&(l.css({visibility:"hidden"}).removeClass("hidden").offset({top:f.y,left:f.x}).addClass("hidden").css({visibility:"visible"}),g.setPointer(f.directions),g.manager.showPanel(l))}});return g},afterFollowingCompany:function(a,b){if(this.id===b._config.companyId){var c=f("\x3cdiv\x3e").append(b._$el.clone()).html();this.manager.updateMiniProfileInCache(this.$node,c)}},setPointer:function(a){var b=this.$panel,c=[],c=[],d;for(d in a)c.push(d);b.find(".triangle").removeClass("top bottom left right").addClass(c.join(" "));
b.find(".miniprofile-shared-connections").length?(a="triangle-bottom",c="triangle-bottom-grey"):(a="triangle-bottom-grey",c="triangle-bottom");b.find("."+a).removeClass(a).addClass(c)}});f.fn.MiniProfileManager=function(a){var b={};f.extend(b,{config:a,profileRegistry:{},defaultShownBelow:!1,$panel:null,showPanelTimer:null,currentProfileId:null,mouseInsidePanel:!1,mouseInsideLink:!1,$lastSelectedNode:null,$lastMouseOverNode:null,isHiding:null,initPanel:function(){var a=this,b;a.$panel||(b=f("\x3cdiv\x3e\x3c/div\x3e"),
a.$panel=b,b.attr("id",a.config.PANEL_ID_NAME),f("body").append(b),b.css("z-index",a.config.zIndex),b.mouseenter(function(){a.mouseInsidePanel=!0}),b.mouseleave(function(){a.mouseInsidePanel=!1}))},showPanel:function(a){a.removeClass("hidden")},hidePanel:function(a){a.addClass("hidden")},isPanelHidden:function(a){return a.hasClass("hidden")},setDefaultShownBelow:function(a){this.defaultShownBelow=a},getDefaultShownBelow:function(){return this.defaultShownBelow},delayShowPanel:function(b,c){var d=
this;d.showPanelTimer=setTimeout(function(){d.mouseInsideLink&&b.show(c);d.showPanelTimer=null},a.SHOW_PANEL_DELAY)},delayHidePanel:function(a,b){var c=this,d=c.config,g;c.mouseInsidePanel||(c.isHiding=!0,setTimeout(function(){var d=c.areDifferentLinkNodes(b,c.$lastSelectedNode);(!c.mouseInsidePanel&&!c.mouseInsideLink||c.mouseInsideLink&&d)&&c.hidePanel(a);c.isHiding&&(c.isHiding=!1,g=c.registerMiniProfile(c.$lastSelectedNode),d&&c.delayShowPanel(g,c.$lastSelectedNode))},d.HIDE_PANEL_DELAY))},loadProfile:function(a,
b){var c=this.config,g=a.attr(c.MINIPROFILE_JS_ATTRIBUTE_NAME),e=a.attr(c.MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME)||"tl/shared/profile/mini_profile_shell",h=a.attr(c.MINIPROFILE_URL_ATTRIBUTE_NAME);"undefined"!==typeof window.console||f.noop();var m;if(h&&(m=this.getProfileContent(h))){b.success(m);return}g&&f.getScript(g);var k=function(a){a&&(b.success(a),f("body").trigger(c.NEW_CONTENT_EVENT))};f.ajax({type:"GET",url:h,headers:{"X-IsAJAXForm":1},data:"",dataType:"text",success:function(a,c,g){var h;
if(-1!==(g.getResponseHeader("content-type")||"").indexOf("html"))b.success(a);else if(d&&d.Render)d.Render.render({template:e,response:g,success:k});else if(e&&window.dust)try{a=a.replace("throw /*LI:DBE*/ 1;",""),h=f.parseJSON(a),dust.render(e,h.content,function(a,b){a||k(b)})}catch(m){}},error:function(a,b,c){}})},getProfileContent:function(a){return(a=this.profileRegistry[a])?a.getContent():null},getMiniProfile:function(b){b=b.attr(a.MINIPROFILE_URL_ATTRIBUTE_NAME);return this.profileRegistry[b]},
registerMiniProfile:function(a){var b=this.config,c=this.getMiniProfile(a),d;d=a.attr(b.MINIPROFILE_ID_ATTRIBUTE_NAME);d||(d="LI-"+Math.floor(9999999*Math.random()),a.attr(b.MINIPROFILE_ID_ATTRIBUTE_NAME,d));c||(a=a.attr(b.MINIPROFILE_URL_ATTRIBUTE_NAME),c=new f.fn.MiniProfile(d,this.$panel,this),this.profileRegistry[a]=c);return c},updateMiniProfileInCache:function(b,c){var d=b.attr(a.MINIPROFILE_URL_ATTRIBUTE_NAME);this.profileRegistry[d].content=c},areDifferentLinkNodes:function(a,b){var c=this.config;
return!a||!b||a.attr(c.MINIPROFILE_ID_ATTRIBUTE_NAME)!==b.attr(c.MINIPROFILE_ID_ATTRIBUTE_NAME)},handleMouseEvent:function(a){var b=this.config;a=f(a.target);var c;this.$panel||this.initPanel();this.$lastMouseOverNode=a;a=a.closest("."+b.MINIPROFILE_SEARCH_CLASS_NAME);a.length?(this.mouseInsideLink=!0,b=this.registerMiniProfile(a),this.currentProfileId&&this.currentProfileId===b.id||(this.currentProfileId=b.id,this.showPanelTimer&&(c=this.showPanelTimer,window.clearTimeout(c)),this.$lastSelectedNode=
a,this.isHiding||(this.isHiding=!1,this.delayShowPanel(b,a)))):(this.mouseInsideLink=!1,this.mouseInsidePanel||(this.currentProfileId=null,!this.isPanelHidden(this.$panel)&&this.$panel.find("."+b.MINIPROFILE_CONTENT_CLASS_NAME).length&&this.delayHidePanel(this.$panel,this.$lastSelectedNode)))}});return b}({SHOW_PANEL_DELAY:500,HIDE_PANEL_DELAY:400,PANEL_ID_NAME:"lui-mini-profile-body",PANEL_ZINDEX:1007,MINIPROFILE_SEARCH_CLASS_NAME:"new-miniprofile-container",MINIPROFILE_CONTENT_CLASS_NAME:"new-miniprofile-content",
MINIPROFILE_ID_ATTRIBUTE_NAME:"data-li-miniprofile-id",MINIPROFILE_JS_ATTRIBUTE_NAME:"data-li-getjs",MINIPROFILE_TEMPLATE_ATTRIBUTE_NAME:"data-li-tl",MINIPROFILE_URL_ATTRIBUTE_NAME:"data-li-url",NEW_CONTENT_EVENT:"show-mini-profile"});f(function(){function a(b){f.fn.MiniProfileManager.handleMouseEvent(b)}var b=f(document);if(b.on)b.on("mouseover",a)})})(window.LIModules);
(function(){var c=LIModules.requires("jquery"),f=LIModules.requires("BaseControl"),e=LIModules.requires("browser"),f=f.extend(function(){function f(){var a,b,c=arguments[0]._errorReporting;if(c){b=z._ERR_PREFIX+arguments[1];for(a=2;a<arguments.length;a++)b=b.replace("{"+(a-1)+"}",arguments[a]);if("console"===c)console.log(b);else if("throw"===c)throw Error(b);}}function b(a){a=c.extend(!0,{},y,a);a.fill.width=a.fill.width.match(u.NUM_FOLLOWED_BY_PERCENT)?a.fill.width:null;a.fill.color=a.fill.color.match(u.COLOR_STRING_OR_HEX)?
a.fill.color:null;a.fill.colorStop=null;a.fill.stopWidth=null;a.fill.trueWidth=null;a.fill.relWidth=null;return a}function g(a){var b;if(a===A)return!1;a=c.extend(!0,{},v,a);return b=(b=(b=(b=(b=!!a.fill.width.match(u.NUM_FOLLOWED_BY_PERCENT))&&(null===a.fill.colorStop||"number"===typeof a.fill.colorStop))&&"number"===typeof a.fill.stopWidth)&&(null===a.fill.trueWidth||a.fill.trueWidth.match(u.NUM_FOLLOWED_BY_PERCENT)))&&(null===a.fill.relWidth||a.fill.relWidth.match(u.REL_NUM_FOLLOWED_BY_PERCENT))}
function a(a,b){a=d(a,b);return a=h(a,b)}function d(a,b){var c,d;b=b||v;c=a.fill.width.replace(u.REPLACE.NUM_LEAVE_UNITS,"");"undefined"!==typeof b.fill.width&&a.fill.width.match(u.REL_NUM_FOLLOWED_BY_PERCENT)?(d=a.fill.width.match(u.REL_NUM_FOLLOWED_BY_PERCENT)[0],d=p(b.fill.trueWidth)+p(d),a.fill.trueWidth=d+c,a.fill.numTrueWidth=d,a.fill.relWidth=a.fill.width):(d=a.fill.width,a.fill.trueWidth=d,a.fill.numTrueWidth=p(d),void 0!==b.fill.trueWidth&&null!==b.fill.trueWidth&&(d=r(p(b.fill.trueWidth),
p(a.fill.trueWidth)),a.fill.relWidth=(0===d?"+"+d:d)+c));a.fill.stopWidth=Math.floor(p(a.fill.trueWidth)/m)*m;if(c=a.fill.color.match(u.COLOR_STOP_STRING))a.fill.colorStop=p(c[1]);if(c=a.fill.color.match(u.COLOR_STRING))a.fill.colorStop="DEFAULT"===c[1]?a.fill.stopWidth:null;return a}function h(a){a.indicator.textPrint=a.indicator.text;a.indicator.textPrint.match(u.KEYWORD_STRING)&&(a.indicator.textPrint=a.indicator.textPrint.replace("[FILL_PERCENT_ABSOLUTE]",a.fill.trueWidth),a.indicator.textPrint=
a.indicator.textPrint.replace("[FILL_PERCENT_RELATIVE]",a.fill.relWidth));return a}function n(a,b,c){var d,g;b=b||v;g=a.fill.width.replace(u.REPLACE.NUM_LEAVE_UNITS,"");"undefined"!==typeof b.fill.width&&a.fill.width.match(u.REL_NUM_FOLLOWED_BY_PERCENT)?(d=a.fill.width.match(u.REL_NUM_FOLLOWED_BY_PERCENT)[0],c&&(a.fill.trueWidth=p(b.fill.trueWidth)+p(d)+g)):c&&(a.fill.trueWidth=a.fill.width);void 0!==b.fill.trueWidth&&null!==b.fill.trueWidth&&(b=r(p(b.fill.trueWidth),p(a.fill.trueWidth)),a.fill.relWidth=
(0===b?"+"+b:b)+g);return a}function p(a){return parseInt(a,10)||0}function r(a,b){return a===b?0:(b>a?"+":"-")+Math.abs(a-b)}function l(a,b,c){(c||""===c)&&a.css(b,c)}var v={fill:{},indicator:{}},A="-1_NaN_false",B={width:"0px",radius:"0px"},m=10,w={color_prefix:"fill-color-",animation:{empty:"fill-empty",initialFill:"fill-slow",stateChange:"fill-fast"}},t={role:"progressbar",valuemin:"0",valuemax:"100",live:{assertive:"assertive",off:"off"}},x={_errorReporting:null,_autostart:!0,_theme:"light",
ariaLiveBroadcast:!1,ariaDescString:"",ariaDescPlaceholder:"{0}",gauge:{width:"200px",height:"20px",border:{width:"3px",radius:"3px"},graduation:!0,indicator:{line:!0,text:!0},animation:{initialFill:!0,stateChange:!0}}},y={fill:{width:"50%",color:"[COLOR_DEFAULT]",colorStop:void 0,stopWidth:void 0,trueWidth:void 0,relWidth:void 0,_refresh:null},indicator:{text:"[FILL_PERCENT_ABSOLUTE]",color:"#555",textColor:"#000",textPrint:"",_refresh:"onUpdate"}},z={_ERR_PREFIX:"StrengthGauge: ",INVALID_GAUGE_ID:"An element with the ID passed in does not exist.",
FIRST_STATE_RELATIVE_WIDTH:"The width of the first state cannot be a relative value, was '{1}'.",INVALID_STATE_ATTR:"Invalid value '{2}' for state attribute '{1}'",RESERVED_STATE_ATTR_SET:"'{1}' is a reserved state attribute, you shouldn't be assigning a value to it.",INVALID_STATE_ID:"Invalid state ID '{1}'."},u={NUM_FOLLOWED_BY_PERCENT:/^([\-\+]?)(\d+)%$/,REL_NUM_FOLLOWED_BY_PERCENT:/^([\-\+]{1})(\d+)%$/,COLOR_STRING_OR_HEX:/^([a-zA-Z0-9_#\-\[\]]+)$/,COLOR_STRING:/\[COLOR_(\D+)\]/,COLOR_STOP_STRING:/\[COLOR_(\d+)\]/,
KEYWORD_STRING:/\[(\w+)\]/,REPLACE:{NUM_LEAVE_UNITS:/^([\-\+]?)(\d+)/}};return{beforeDecoration:function(){var d=this._config,g=this._$el;"function"===typeof Object.freeze&&(Object.freeze(x),Object.freeze(x.gauge.border),Object.freeze(x.gauge.indicator),Object.freeze(x.gauge.animation),Object.freeze(y),Object.freeze(y.fill),Object.freeze(y.indicator),Object.freeze(v),Object.freeze(v.fill),Object.freeze(v.indicator),Object.freeze(B),Object.freeze(w),Object.freeze(w.animation),Object.freeze(t),Object.freeze(t.live),
Object.freeze(z),Object.freeze(u),Object.freeze(u.REPLACE));d.gauge&&(d.gauge.border="none"===d.gauge.border?B:d.gauge.border,d.gauge.border&&(e.ie8||e.ie7)&&(d.gauge.border.radius=null),d.gauge.animation=!0===d.gauge.animation?{initialFill:!0,stateChange:!0}:d.gauge.animation,d.gauge.animation=d.gauge.animation?d.gauge.animation:{initialFill:!1,stateChange:!1},d.gauge.indicator=!0===d.gauge.indicator?{line:!0,text:!0}:d.gauge.indicator,d.gauge.indicator="inline"===d.gauge.indicator?{line:!1,text:"inline"}:
d.gauge.indicator,d.gauge.indicator=d.gauge.indicator?d.gauge.indicator:{line:!1,text:!1});d=c.extend(!0,{},{gauge:{ID:g.attr("id")}},x,d);g.length&&0!==g.length||f(d,z.INVALID_GAUGE_ID);d.states[0].fill.width.match(u.REL_NUM_FOLLOWED_BY_PERCENT)&&f(d,z.FIRST_STATE_RELATIVE_WIDTH,d.states[0].fill.width);for(g=0;g<d.states.length;g++)d.states[g]=b(d.states[g]);this.CONFIG=d;this.renderGaugeMarkup();g=this.CONFIG;for(d=0;d<g.states.length;d++)g.states[d]=a(g.states[d],0<d?g.states[d-1]:null)},afterDecoration:function(){this.setGaugeAttributes();
this._IDX=0;this.CURRENT_STATE=v;this.setState(this._IDX)},attachEventListeners:function(){this.CONFIG._autostart&&this.gaugeStart()},setGaugeAttributes:function(){l(this.$EL.gauge,"width",this.CONFIG.gauge.width);l(this.$EL.gauge,"height",this.CONFIG.gauge.height);this.CONFIG.gauge.border&&(l(this.$EL.gauge,"border-width",this.CONFIG.gauge.border.width),this.CONFIG.gauge.border.radius&&(l(this.$EL.gauge,"border-radius",this.CONFIG.gauge.border.radius),0===p(this.CONFIG.gauge.border.width)&&(l(this.$EL.fill,
"border-radius",this.CONFIG.gauge.border.radius),l(this.$EL.fill,"min-width",this.CONFIG.gauge.height))),l(this.$EL.gauge,"border-color",this.CONFIG.gauge.border.color));l(this.$EL.gauge,"background-color",this.CONFIG.gauge.backgroundFill);l(this.$EL.indicator,"width",this.CONFIG.gauge.width);l(this.$EL.indicator,"margin","-"+(p(this.CONFIG.gauge.height)+p(this.CONFIG.gauge.border.width))+"px 0 0 "+this.CONFIG.gauge.border.width);l(this.$EL.fillLine,"height",this.CONFIG.gauge.height);this.CONFIG.gauge.indicator.line||
(l(this.$EL.fillLine,"border","0"),"inline"===this.CONFIG.gauge.indicator.text&&l(this.$EL.fillLine,"padding","0"))},renderGaugeMarkup:function(){var a='\x3cspan class\x3d"strength-fill'+(this.CONFIG.gauge.animation.initialFill?" "+w.animation.empty:"")+(this.CONFIG.gauge.animation.stateChange?" "+w.animation.initialFill:"")+'"\x3e',a='\x3cdiv class\x3d"gauge-container"\x3e'+(this.CONFIG.gauge.graduation?'\x3cdiv class\x3d"fill-graduation"\x3e\x3c/div\x3e':"")+a+'\x3cspan class\x3d"fill-text"\x3e\x3c/span\x3e\x3c/span\x3e\x3c/div\x3e'+
(this.CONFIG.gauge.indicator.text&&this.CONFIG.gauge.indicator.line?"inline"===this.CONFIG.gauge.indicator.text?'\x3cspan class\x3d"fill-indicator"\x3e\x3c/span\x3e':'\x3cdiv class\x3d"indicator-container"\x3e'+a+'\x26nbsp;\x3c/span\x3e\x3cspan class\x3d"fill-indicator"\x3e\x3cspan class\x3d"fill-label"\x3e\x3c/span\x3e\x3c/span\x3e\x3c/div\x3e':"");this._$el.empty().removeClass().addClass("strength-gauge").html(a);"dark"===this.CONFIG._theme&&this._$el.addClass("dark");this.$EL={};this.$EL._=this._$el.filter(".strength-gauge");
this.$EL.gauge=this._$el.find(".gauge-container");this.$EL.fill=this._$el.find(".strength-fill");this.$EL.fillText=this._$el.find(".fill-text");this.$EL.indicator=this._$el.find(".indicator-container");this.$EL.fillLine=this._$el.find(".fill-indicator");this.$EL.label=this._$el.find(".fill-label");this.$EL.graduation=this._$el.find(".fill-graduation");"inline"===this.CONFIG.gauge.indicator.text&&(this.$EL.label=c('\x3cspan class\x3d"fill-label"\x3e\x3c/span\x3e'),this.$EL.gauge.after(this.$EL.label));
this.$EL.gauge.attr("role",t.role);this.$EL.gauge.attr("aria-valuemin",t.valuemin);this.$EL.gauge.attr("aria-valuemax",t.valuemax);this.$EL.gauge.attr("aria-valuenow","");this.$EL.gauge.attr("aria-valuetext","");this.$EL.gauge.attr("aria-live",this.CONFIG.ariaLiveBroadcast?t.live.assertive:t.live.off)},dumpConfig:function(a){switch(a||"return"){case "console":console.log(this.CONFIG)}return this.CONFIG},gaugeStart:function(){var a=this;this.CONFIG.gauge.animation.initialFill&&setTimeout(function(){a.$EL.fill.removeClass(w.animation.empty)},
0);this.CONFIG.gauge.animation.stateChange&&setTimeout(function(){a.$EL.fill.removeClass(w.animation.initialFill);a.$EL.fill.addClass(w.animation.stateChange)},1E3)},tick:function(a){a="number"===typeof a?Math.abs(a):1;this.shiftState(a)},tickReverse:function(a){a="number"===typeof a?Math.abs(a):1;this.shiftState(-a)},shiftState:function(a){0>this._IDX+a?this.setState(0):this._IDX+a>=this.CONFIG.states.length?this.setState(this.CONFIG.states.length-1):this.setState(this._IDX+a)},setState:function(c){var e,
t,q;c="string"===typeof c?p(c):c;if("number"===typeof c&&void 0===this.CONFIG.states[c])return f(this.CONFIG,z.INVALID_STATE_ID,c),!1;t=c&&"object"===typeof c?a(b(c),this.CURRENT_STATE):A;q=g(t)?t:g(this.CONFIG.states[c])?this.CONFIG.states[c]:v;"onUpdate"===q.fill._refresh&&(q=n(q,this.CURRENT_STATE,!0),q=d(q,this.CURRENT_STATE));"onUpdate"===q.indicator._refresh&&(q=n(q,this.CURRENT_STATE),q=h(q,this.CURRENT_STATE));l(this.$EL.fill,"width",q.fill.trueWidth);if(null!==q.fill.colorStop)q.fill.colorStop!==
this.CURRENT_STATE.fill.colorStop&&(this.$EL.fill.first().addClass(w.color_prefix+q.fill.colorStop),this.$EL.fill.first().removeClass(w.color_prefix+this.CURRENT_STATE.fill.colorStop)),l(this.$EL.fill.first(),"background-color","");else if(q.fill.color){for(e=0;100>e;e+=m)this.$EL.fill.first().removeClass(w.color_prefix+e);l(this.$EL.fill.first(),"background-color",q.fill.color)}this.CONFIG.gauge.indicator.line&&l(this.$EL.fillLine,"border-left-color",q.indicator.color);this.CONFIG.gauge.indicator.text&&
(l(this.$EL.label,"color",q.indicator.textColor),this.$EL.label.text(q.indicator.textPrint));this.$EL.fillText.text(q.fill.trueWidth);this.$EL.gauge.attr("aria-valuenow",q.fill.numTrueWidth);e=this.CONFIG.ariaDescString&&this.CONFIG.ariaDescPlaceholder?this.CONFIG.ariaDescString.replace(this.CONFIG.ariaDescPlaceholder,q.fill.trueWidth):q.fill.trueWidth;this.$EL.gauge.attr("aria-valuetext",e);if(c||0===c)switch(typeof c){case "number":this._IDX=c;this.CURRENT_STATE=this.CONFIG.states[this._IDX];break;
case "object":this.CURRENT_STATE=t}return this.CURRENT_STATE}}});LIModules.exports("StrengthGauge",f)})();
(function(){var c=LIModules.requires("jquery"),f=LIModules.requires("underscore"),e=LIModules.requires("BaseControl").extend(function(e){var b={activeClass:"active",eventType:"click",mercyTime:400,triggerSelector:".dropdown-trigger",dropdownMenuListSelector:".dropdown-content",dropdownContainerSelector:"delegated-dropdown"};return{beforeDecoration:function(){this._$body=c("body");this._mouseDown=!1;this._mouseoutTimer=0;this._config=f.extend(b,this._config);this._isOpen=!1;this._$currentDropdown=
null;this._selector=this._config.dropdownContainerSelector;this._triggerSelector=this._config.triggerSelector;this._menuListSelector=this._config.dropdownMenuListSelector;this._currentItemIndex=-1},attachEventListeners:function(){if("hover"===this._config.eventType)this._$el.on("mouseover",this._config.triggerSelector,this._handleMouseOverEvent).on("mouseout",this._config.triggerSelector,this._handleMouseOutEvent);this._$el.on("mousedown",this._config.triggerSelector,this._handleMousedownEvent).on("click",
this._config.triggerSelector,this._handleClickEvent);this._$body.on("click",this._handleBodyClickEvent);this._$el.on("keydown",this._selector,this._handleKeyEvent)},detachEventListeners:function(){"hover"===this._config.eventType&&this._$el.off("mouseover",this._config.triggerSelector,this._handleMouseOverEvent).off("mouseout",this._config.triggerSelector,this._handleMouseOutEvent);this._$el.off("mousedown",this._config.triggerSelector,this._handleMousedownEvent).off("click",this._config.triggerSelector,
this._handleClickEvent);this._$body.off("click",this._handleBodyClickEvent);this._$el.off("keydown",this._selector,this._handleKeyEvent)},_bootstrapAria:function(){var b=this._$currentDropdown.find(this._triggerSelector),a=this._$currentDropdown.find(this._menuListSelector),c=this._getListItems();b.attr({tabindex:0,"aria-haspopup":!0,role:"button"});this._bootstrapListItems(c);a.attr("tabindex",-1);c.length&&a.attr("role","menu")},_bootstrapListItems:function(b){b.each(function(){c(this).attr({tabindex:0,
role:"menuitem"})})},_getListItems:function(b){return(b||this._$currentDropdown).find(this._menuListSelector).find("li, dd, dt")},_handleBodyClickEvent:function(b){this._isOpen&&0===this._$currentDropdown.has(b.target).length&&this.close()},_focusNext:function(){var b,a=this._getListItems();if(b=a.length)this._currentItemIndex<b-1?this._currentItemIndex++:this._currentItemIndex=0,a[this._currentItemIndex].focus()},_focusPrevious:function(){var b,a=this._getListItems();if(b=a.length)0<this._currentItemIndex?
this._currentItemIndex--:this._currentItemIndex=b-1,a[this._currentItemIndex].focus()},_handleKeyEvent:function(b){var a=b.which,d=c(b.target);switch(a){case 13:b.preventDefault();d.click();break;case 32:b.preventDefault();d.click();break;case 27:this._isOpen&&this.close();break;case 40:b.preventDefault();this._focusNext();break;case 38:b.preventDefault(),this._focusPrevious()}},open:function(b){var a=this._config.activeClass;this._$currentDropdown=b;b=this._$currentDropdown.find(this._menuListSelector);
this._bootstrapAria();this._isOpen||(this._$currentDropdown.addClass(a),b.focus(),this._$currentDropdown.trigger("dropdown:open",this),this._isOpen=!0)},close:function(){this._$currentDropdown&&(this._$currentDropdown.removeClass(this._config.activeClass),this._$currentDropdown.find(this._config.triggerSelector).focus(),this._$currentDropdown.trigger("dropdown:close",this));this._mouseoutTimer&&window.clearTimeout(this._mouseoutTimer);this._isOpen=!1;this._currentItemIndex=-1},_handleMousedownEvent:function(b){this._mouseDown=
!0},_handleClickEvent:function(b){var a,d=c(b.target).closest(this._selector);this._mouseDown=!1;if("hover"===this._config.eventType&&(a=b.target.href)&&-1===a.indexOf("#"))return;b.preventDefault();b.stopPropagation();this._isOpen&&this._$currentDropdown.is(d)?this.close():(this._isOpen&&this.close(),this.open(d))},_handleMouseOverEvent:function(b){b=c(b.target).closest(this._selector);window.clearTimeout(this._mouseoutTimer);this._$currentDropdown&&!this._$currentDropdown.is(b)&&this.close();this.open(b)},
_handleMouseOutEvent:function(b){b=this._config.mercyTime;0<b?this._mouseoutTimer=window.setTimeout(f.bind(function(){this.close()},this),b):this.close()}}});e.EVENTS={OPEN:"dropdown:open",CLOSE:"dropdown:close"};LIModules.exports("DropdownDelegate",e)})();
(function(c){var f=c.requires("jquery");c.exports("Spinner",{showSpinner:function(c){0===c.children(".spinner").length?c.append(f('\x3cdiv class\x3d"spinner"\x3e\x3c/div\x3e')).children(".spinner").height(c.prop("scrollHeight")):c.children(".spinner").show().height(c.prop("scrollHeight"))},hideSpinner:function(c){c.children(".spinner").hide()}})})(window.LIModules);
(function(c){var f=c.requires("jquery"),e=c.requires("underscore"),k=c.requires("dust");c.imports("Controls");var b=c.requires("BaseControl"),g=c.requires("i18n"),a=c.imports("Controls.parseFragment")||function(){},d=c.imports("environment"),h=c.imports("LiX"),n=c.imports("jSecure"),p=null,r=function(a){p&&"function"===typeof p&&p();p=a},l=function(){},b=b.extend(function(b){function c(){for(var a=[{key:"errorMessage",value:"dialogbox_error_generic"},{key:"closeText",value:"dialogbox_close"},{key:"startText",
value:"dialogbox_start"},{key:"endText",value:"dialogbox_end"}],b=a.length,d=0,e={},f="";d<b;d++)(f=g.get(a[d].value))&&(e[a[d].key]=f);return e}var p={width:500,top:150,xOffset:0,yOffset:0,errorMessage:"We're sorry. Something unexpected happened and your request could not be completed. Please try again.",closeText:"Close",startText:"Dialog start",endText:"Dialog end",customClassName:void 0,dialogTemplate:"tl/shared/dialog",dialogCss:d&&d.consumer2?["css!scss/modules/dialog/dialog_standalone"]:["css!scss/modules/dialog_v3"],
cssDependencies:null,templateDataUrl:null,centerVertically:!1,fitDialogBoxToWindow:!0,callbacks:{beforeOpen:l,afterOpen:l,beforeClose:l,afterClose:l}};return{beforeDecoration:function(){this._$dialog=void 0;this._config=e.defaults(this._config,c(),p);this._config.callbacks=e.defaults(this._config.callbacks,p.callbacks);this._requiredTemplates=[this._config.dialogTemplate];this._requiredCSS=e.flatten(e.compact([this._config.dialogCss,this._config.cssDependencies]));this._href=this._config.templateDataUrl||
this._$el.data("href")||this._$el.attr("href")},attachEventListeners:function(){this._$el.on("click",e.bind(this._eventOpen,this))},detachEventListeners:function(){this._$el.off("click")},onResolve:function(a){this.open()},_eventOpen:function(a){a.preventDefault();this.open()},_eventClose:function(a){a.preventDefault();this.close()},_keyupHandler:function(a){27===a.which&&this._eventClose(a)},_resizeHandler:e.throttle(function(a){this._$dialog&&this._$dialog.length&&(this._$dialog.css(this._getPosition()),
this._fitToWindow())},500),_attachEventListeners:function(){this._$dialog.on("click",".dialog-close",this._eventClose);f(document).on("keyup",this._keyupHandler);f(window).on("resize",this._resizeHandler)},open:function(){if(!this._opened)return this._config.callbacks.beforeOpen(this),this._opened=!0,f.when(this.loadDependencies(this._requiredTemplates),this.loadCss(this._requiredCSS)).then(r(e.bind(this.close,this))).then(e.bind(this._render,this)).then(e.bind(this.setFocusToDialog,this)).then(e.bind(function(){this._config.callbacks.afterOpen(this)},
this)).fail(e.bind(this.close,this))},close:function(){this._opened&&this._config.callbacks.beforeClose(this);this._$dialog&&this._$dialog.remove();this._rendered=!1;f(document).off("keyup",this._keyupHandler);f(window).off("resize",this._resizeHandler);this._opened&&(this._opened=!1,this._$el.focus(),this._config.callbacks.afterClose(this))},destroy:function(){this.close();this.detachEventListeners();b.destroy.apply(this,arguments)},setFocusToDialog:function(){this._$dialog.attr("tabindex",-1);this._$dialog.focus()},
_loadContent:function(){var a=f(this._href),b=a.html(),c=new f.Deferred;a[0]||!this._href?c.resolve(b):c.reject();return c.promise()},_buildMarkup:function(){return this._renderDialogMarkup().then(this._renderMarkUpSuccess,this._renderMarkUpFailure)},_renderMarkUpSuccess:function(a){this._$dialog=f(a).prop("id","modeless-dialog");this._config.customClassName&&this._$dialog.addClass(this._config.customClassName);f("body").append(this._$dialog);this._$dialog.css(this._getPosition());this._rendered=
!0},_renderMarkUpFailure:function(){throw Error("Unable to render dialog markup");},_loadContentSuccess:function(a){this.setDialogBodyContent(a)},_loadContentFail:function(){this.setDialogBodyContent(this._config.errorMessage)},setDialogBodyContent:function(b,c){var d=this._$dialog.find(".dialog-body")[0];c=c||{};var g=n&&n.setElementContent;!c.isUnsafe&&(h&&"enabled"===h.get("jsecure_Dialog"))&&g?n.setElementContent(d,b,{}):f(d).html(b);a(this._$dialog);this._$dialog.css(this._getPosition());this._fitToWindow()},
_render:function(){return this._buildMarkup().then(this._loadContent).then(this._loadContentSuccess,this._loadContentFail).always(this._attachEventListeners)},_renderDialogMarkup:function(){var a=new f.Deferred;k.render(this._config.dialogTemplate,this._config,function(b,c){b?a.reject(b):a.resolve(c)});return a.promise()},_getPosition:function(){var a=f(window),b=this._config.top,c=a.innerWidth()/2-this._config.width/2+this._config.xOffset;this._config.centerVertically&&(b=a.innerHeight()/2-this._$dialog.outerHeight()/
2+this._config.yOffset,b=Math.max(b,this._config.top));return{left:c,top:b}},_fitToWindow:function(){var a=f(window).innerHeight()-this._config.top-50,b=this._$dialog.find(".dialog-title").outerHeight(),c;c=this._$dialog.clone().css("visibility","hidden");c.find(".dialog-body").height("auto");f("body").append(c);c.height()>a&&this._config.fitDialogBoxToWindow?this._$dialog.find(".dialog-body").height(a-b):this._$dialog.find(".dialog-body").height("auto");c.remove()}}});c.exports("DialogBox",b)})(window.LIModules);
(function(c){var f=c.requires("jquery"),e=c.requires("underscore"),k=c.requires("dust"),b=c.requires("DialogBox").extend(function(b){var a={maskTemplate:"tl/shared/dialog_mask",fitToWindow:!0,closeOnMaskClick:!0};return{beforeDecoration:function(){b.beforeDecoration.call(this);this._config=e.defaults(this._config,a);this._requiredTemplates=[this._config.maskTemplate,this._config.dialogTemplate];this._requiredCSS=e.flatten(e.compact([this._config.dialogCss,this._config.cssDependencies]));this._initialHtmlOverflowValue=
this._$mask=void 0;this._config.fitToWindow||(this._fitToWindow=function(){})},_maskClickHandler:function(a){f(a.target).is("#dialog-mask")&&this._eventClose(a)},_attachEventListeners:function(){b._attachEventListeners.call(this);if(this._config.closeOnMaskClick)this._$mask.on("click",this._maskClickHandler);f(document).on("focusin",this._trapFocus)},close:function(){this._opened&&this._config.callbacks.beforeClose(this);this._$mask&&this._$mask.remove();f(document).off("keyup",this._keyupHandler);
f(window).off("resize",this._resizeHandler);f("html").css({overflow:this._initialHtmlOverflowValue});this._rendered=!1;this._opened&&(this._opened=!1,this._$el.focus(),this._config.callbacks.afterClose(this))},_buildMarkup:function(){return f.when(this._renderMaskMarkup(),this._renderDialogMarkup()).then(this._renderMarkUpSuccess,this._renderMarkUpFailure)},_renderMarkUpSuccess:function(a,b){this._$mask=f(a);this._$dialog=f(b);this._$mask.append(this._$dialog);this._config.fitToWindow||this._$mask.css({"overflow-y":"auto"});
f("body").append(this._$mask);this._$dialog.css(this._getPosition());this._rendered=!0},_render:function(){this._initialHtmlOverflowValue=f("html").css("overflow");f("html").css({overflow:"hidden"});return this._buildMarkup().then(this._loadContent).then(this._loadContentSuccess,this._loadContentFail).always(this._attachEventListeners)},_renderMaskMarkup:function(){var a=new f.Deferred;k.render(this._config.maskTemplate,this._config,function(b,c){b?a.reject(b):a.resolve(c)});return a.promise()},_trapFocus:function(a){a.stopPropagation();
if(this._opened){if(this._$dialog.is(f(a.target))||0<this._$dialog.has(f(a.target)).length)return!1;this._$dialog.focus()}}}});c.exports("ModalDialogBox",b)})(window.LIModules);
(function(c){var f=c.requires("jquery"),e=c.requires("underscore"),k;k=c.requires("ModalDialogBox").extend(function(b){var c=f("body");return{beforeDecoration:function(){this._renderedOnce=!1;this.currentView=1;this._config=e.defaults(this._config,{customClassName:"dialog-v2",decorators:["scripts/shared/Dialog/AjaxLoading"]});b.beforeDecoration.call(this)},open:function(){this.loadCss(["css!scss/themes/katy/modules/feedback/feedback"]).then(e.bind(b.open,this)).then(e.bind(this._dialogPostRender,
this))},setDialogBodyContent:function(){b.setDialogBodyContent.apply(this,arguments);f("#subject-feedbackInfoForm").val(this._config.subjectLine)},_dialogPostRender:function(){this._renderedOnce||(this._attachFormButtonHandlers(),this._renderedOnce=!0);this._$dialogBody=this._$dialog.find(".dialog-body");this._$dialogBody.attr("data-view",this.currentView);this._$mask.addClass("feedback-v2");this._$mask.addClass("opened")},_attachFormButtonHandlers:function(){c.on("click.next-view",".feedback-btn",
e.debounce(this._nextView,300)).on("click.submit-feedback","#feedback-submit",this._postFeedbackForm).on("click.close-dialog",".btn-dialog-close",this.close)},_nextView:function(a){this.currentView+=1;this._$dialogBody.attr("data-view",this.currentView)},_postFeedbackForm:function(){var a=f("#feedback_info");f.ajax({url:a.attr("action"),method:a.attr("method"),data:a.serialize(),headers:{"X-IsAJAXForm":1,"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded; charset\x3dUTF-8"}}).then(e.bind(this._nextView,
this));return!1}}});c.exports("FeedbackDialog",k)})(window.LIModules);
(function(){var c=LIModules.requires("jquery"),f=LIModules.requires("underscore"),e=LIModules.requires("dust"),k={deepFind:function(b,c){var a=c.split("."),d=a.length,e;for(e=0;e<d;e++){if(!b||"object"!==typeof b)return null;b=b[a[e]]}return b},dataPrefix:function(b,e){var a=c(b).data(),d={},f,n;e=k.toCamelCase(e);for(f in a)a.hasOwnProperty(f)&&0===f.indexOf(e)&&(n=f.replace(e,""))&&(n=n.charAt(0).toLowerCase()+n.slice(1),d[n]=a[f]);return d},serializeObject:function(b){b=c(b).serializeArray();var e=
{};f.each(b,function(a,b){var c=a.value?a.value:"";e[a.name]?(e[a.name].push||(e[a.name]=[e[a.name]]),e[a.name].push(c)):e[a.name]=c});return e},toCamelCase:function(b,c){c=c||"-";return b.replace(/(\-[a-z])/g,function(a){return a.toUpperCase().replace(c,"")})},fromCamelCase:function(b,c){return b.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})},renderTemplate:function(b,f){var a=c.Deferred();e.render(b,f,function(b,e){b?a.reject():a.resolve(c(e))});return a.promise()}};f.extend(c.fn,{dataPrefix:function(b){return k.dataPrefix(this,
b)},serializeObject:function(){return k.serializeObject(this)}});LIModules.exports("Groups.appUtils",k)})();
(function(){var c=LIModules.requires("jquery"),f=LIModules.requires("underscore"),e=new (LIModules.requires("t8").Resources)(dust.i18n,dust),k={getMessage:function(b,f,a){var d=c.Deferred();a=a||{};e.get(b,f,a,function(a,c){a?d.reject():d.resolve(c,b)});return d.promise()},getMessages:function(b,e,a){a=a||{};b=f.reduce(b,function(b,c){b.push(k.getMessage(c,e,a[c]));return b},[]);return c.when.apply(c,b).then(function(){var a={};f.each(arguments,function(b){a[b[1]]=b[0]});return a})}};LIModules.exports("Groups.i18nUtils",
k)})();
(function(){var c=LIModules.requires("underscore"),f=LIModules.requires("BaseControl"),e=LIModules.requires("StrengthGauge"),f=f.extend(function(f){var b={replaceElement:".contrib-meter-element",gaugeContainerElement:".strength-gauge",strengthMeterElement:".gauge-container",rightAlignClass:"text-right",contributionMessages:{},contribLevel:"STARTED",startState:1,defaultState:1,maxState:5,stateMap:{}},g={SPAMMER:0,STARTED:1,FINDING:2,MAKING:3,BUILDING:4,TOP:5},a={width:"276px",height:"20px",backgroundFill:"#fff",
border:{width:"1px",radius:"10px"},animation:{initialFill:!0,stateChange:!0},indicator:{line:!0,text:!0},graduation:!0};return{beforeInit:function(){c.defaults(this._config,b);var d=this._config.contributionMessages,d=[{fill:{width:"0%",color:"#F2C448"},indicator:{text:""}},{fill:{width:"20%",color:"#F2C448"},indicator:{text:d.contribution_started}},{fill:{width:"40%",color:"#7BAD50"},indicator:{text:d.contribution_finding}},{fill:{width:"60%",color:"#80C5ED"},indicator:{text:d.contribution_making}},
{fill:{width:"80%",color:"#3198DF"},indicator:{text:d.contribution_building}},{fill:{width:"100%",color:"#287EB6"},indicator:{text:d.contribution_top}}];this._config.startState=this._getStateId(this._config.contribLevel);if(this._config.startState>this._config.maxState||0>this._config.startState)this._config.startState=this.config.defaultState;this._gauge=new e(this._$el.find(this._config.replaceElement),{gauge:a,states:d});this.$gaugeContainer=this._$el.find(this._config.gaugeContainerElement);this.$meter=
this._$el.find(this._config.strengthMeterElement);this.setState(this._config.startState)},attachEventListeners:function(){var a=this._innerState;this.$meter.on("mouseenter",c.bind(function(b){this._innerState<this._config.maxState&&(a=this._innerState+1,this.showState(a))},this));this.$meter.on("mouseleave",c.bind(function(b){this._innerState!==a&&this.showState(this._innerState)},this))},_getStateId:function(a){a=g[a.toUpperCase()];"number"!==typeof a&&(a=this.config.defaultState);return a},setState:function(a){this._innerState=
a;this.showState(this._innerState)},showState:function(a){2<a?this.$gaugeContainer.addClass(this._config.rightAlignClass):this.$gaugeContainer.removeClass(this._config.rightAlignClass);this._gauge.setState(a)}}});LIModules.exports("Groups.ProfileStrength",f)})();
(function(c){var f;f=c.requires("BaseControl");var e=c.requires("underscore"),k=c.requires("jquery");f=f.extend(function(b){var c={baseDomain:"",baseUrl:"/csp/dtag",width:300,height:200,applyHeight:!1,tile:1,placement:1,pageKey:"",messageOrigin:/doubleclick\.net$/,className:"",additionalParams:{}};return{beforeDecoration:function(){this._config=k.extend(!0,{},c,this._config);this._config.pageKey=this._config.pageKey||this._$el.data("page-key")},destroy:function(){this._$el.find("iframe").remove()},
_buildUrl:function(){var a=this._config,b=this._getExtraParams(),c=["sz\x3d"+a.width+"x"+a.height,"ti\x3d"+a.tile,"p\x3d"+a.placement,"z\x3d"+a.pageKey].join("\x26");b&&(c+="\x26"+b);return a.baseDomain+a.baseUrl+"?"+c},_matchMessageOrigin:function(a){var b=this._config.messageOrigin;return b?b.test(a):!0},_getExtraParams:function(){var a="",b=this._config.additionalParams;e.isEmpty(b)||(a=k.param(b),a="_x\x3d"+encodeURIComponent(a));return a},render:function(){var a=document.createElement("iframe"),
b=this._config;a.width=b.width;a.allowtransparency=!0;a.border=0;a.seamless="seamless";a.scrolling="no";a.src=this._buildUrl();b.applyHeight?a.height=b.height:(a.style.height=0,a.style.display="none");b.className&&(a.className=b.className);this._$el.append(a);return a},hasValidMessage:function(a){return a.data&&("string"===typeof a.data&&-1<a.data.indexOf('"tileId"'))&&this._matchMessageOrigin(a.origin)},broadcast:function(){var a=k.Deferred();window.addEventListener("message",e.bind(function(b,c){var e=
{},f={};if(this.hasValidMessage(c))try{e=JSON.parse(c.data),(f=e["ads.expand"])&&parseInt(f.containerId,10)===b&&a.resolve(e)}catch(g){a.reject(g,c)}},this,this._config.tile));return a.promise()}}});c.exports("AdIFrameCreator",f)})(LIModules);
(function(c){var f=c.requires("jquery"),e=c.requires("underscore"),k=c.requires("BaseControl"),b=c.requires("Events"),k=k.extend(function(){var c={debounceWait:250,bindToWindow:!0,throttle:!1,throttleRate:1E3/60};return{beforeDecoration:function(){this.registry={};this._config=e.defaults(this._config,c);this._config.bindToWindow&&(this._$el=f(window))},afterDecoration:function(){var a=this._config.bindToWindow,c=a?"window":this._config.id,g=this._$el[0],k;this.elId=c;this.registry[c]={evtName:c+"-scroll",
scrollPos:this._getScrollPos(c)};k=this.registry[c];k.prevScrollPos=k.scrollPos;a?k.elHeight=f(window).height():(k.elHeight=g.offsetHeight,k.contentEl=this._$el.children(":first")[0]);if(this._config.throttle)this._$el.on("scroll.scoller",e.throttle(function(){b.trigger("scroll.scoller",c)},this._config.throttleRate));else this._$el.on("scroll.scoller",e.debounce(function(){b.trigger("scroll.scoller",c)},this._config.debounceWait));b.on("scroll.scoller",this._scrolled)},getEvtName:function(){return this.registry[this.elId].evtName},
_getDistToBottom:function(a,b,c){return a-(b+c)},_getScrollPos:function(a){return this._config.bindToWindow?f(document).scrollTop():f("#"+a).scrollTop()},_getScrollDirection:function(a,b){return a>b?"up":"down"},_scrolled:function(a){var c,e=this.registry[a];"undefined"!==typeof e&&(c=this._config.bindToWindow?f(document).height():e.contentEl.offsetHeight,e.prevScrollPos=e.scrollPos,e.scrollPos=this._getScrollPos(a),a=this._getDistToBottom(c,e.scrollPos,e.elHeight),c=this._getScrollDirection(e.prevScrollPos,
e.scrollPos),b.trigger(e.evtName,{scrollPos:e.scrollPos,distToBottom:a,scrollDirection:c}))},destroy:function(){var a=this._config.bindToWindow?"window":this._$el.attr("id"),c=this.registry[a];"undefined"!==typeof c&&(b.off(c.evtName),delete this.registry[a]);this._$el.off("scroll.scoller")}}});c.exports("Scroller",k)})(window.LIModules);
(function(c){var f=c.requires("jquery"),e=c.requires("BaseControl"),k=c.requires("Scroller"),b=c.requires("Events"),e=e.extend(function(){var c=0;return{beforeDecoration:function(){this.scrollEvtName=(new k(window,{debounceWait:10})).getEvtName();this.elHeight=this.initialPos=this.offsetFromTop=0;this.stickyState="notSticky";this.STICKY_CLASS=this._config.stickyClass||!1;this.STICKY_DISTANCE=this._config.stickyDistance||0;this.FIXED_HEADER_HEIGHT=this._config.fixedHeaderHeight||0;this.UNSTICK_HEIGHT=
this._config.unstickHeight||0;this.RESULTS_LOADED_EVT_NAME=this._config.resultsLoadedEvtName||""},attachEventListeners:function(){var a;b.on(this.scrollEvtName,this.decideStickiness);if("string"===typeof this.RESULTS_LOADED_EVT_NAME&&""!==this.RESULTS_LOADED_EVT_NAME)b.on(this.RESULTS_LOADED_EVT_NAME,function(){window.scrollTo(0,document.scrollTop+1)});this._saveElementInformation();a=this;f(window).on("load",function(){a._saveElementInformation()})},_saveElementInformation:function(){this.elPosition=
this._$el.css("position");this.elTop=this._$el.css("top");this.initialPos=this._getOffsetFromTop(this._$el.parent());this.elHeight=parseInt(this._$el.css("height"),10)},_getOffsetFromTop:function(a){var b=0;a=a?a.get(0):this._$el.get(0);if(a.offsetParent){do b+=a.offsetTop,a=a.offsetParent;while(a);return b}return this._$el.get(0).offsetTop},_stick:function(){this.STICKY_CLASS?this._$el.addClass(this.STICKY_CLASS):(this._$el.css("position","fixed"),this._$el.css("top",this.STICKY_DISTANCE+this.FIXED_HEADER_HEIGHT+
"px"));this.stickyState="sticky"},_unStick:function(){this.STICKY_CLASS?this._$el.removeClass(this.STICKY_CLASS):(this._$el.css("position",this.elPosition),this.elTop="number"===typeof this.elTop?this.elTop+"px":this.elTop,this._$el.css("top",this.elTop));this.stickyState="notSticky"},_makeElStickToFooter:function(){this._$el.css("position","relative");this._$el.css("top",f(document).height()-this.initialPos-this.elHeight-this.UNSTICK_HEIGHT+"px");this.stickyState="footerSticky"},decideStickiness:function(a){var b=
a.scrollPos+this.STICKY_DISTANCE+this.FIXED_HEADER_HEIGHT;a=this.UNSTICK_HEIGHT-a.distToBottom;"notSticky"===this.stickyState&&(c=this._getOffsetFromTop())&&b>=c&&this._stick();"notSticky"!==this.stickyState&&(c&&b<c?this._unStick():0<a&&0>f(window).height()-this.FIXED_HEADER_HEIGHT-this.STICKY_DISTANCE-this.elHeight-a?this._makeElStickToFooter():this._stick())}}});c.exports("Sticky",e)})(window.LIModules);
(function(c){function f(b){b=b.find("iframe");b.is(":hidden")&&b.slideDown()}var e=c.requires("jquery"),k=c.requires("underscore");c.exports("Groups.adsHelper",{initAll:function(b){var c=k.bind(function(){this._initAdSlot1();this._initAdSlot2();this._initAdSlot3()},this);if(b)b(c);else e(window).on("load",c)},createAd:function(b,f){f=f||{};var a=e(b),d=c.requires("AdIFrameCreator"),h;if(a.length)return f=e.extend(!0,{width:300,optional:!1,messageOrigin:null},f),(h=a.data("group-id"))&&e.extend(!0,
f,{additionalParams:{grpid:h}}),d=new d(a.get(0),f),d.isReady.then(d.render).then(d.broadcast).then(function(){return a});if(!f.optional)throw Error("A valid selector must be passed in or else an ad cannot be created");},_initAdSlot1:function(){c.requires("AdIFrameCreator");this.createAd("#ad-slot-1",{width:1,height:1,tile:1,applyHeight:!0,className:"text-ad-iframe"})},_initAdSlot2:function(){var b=this.createAd("#ad-slot-2",{height:125,tile:2,optional:!0,additionalParams:{autoexpand:0}});b&&b.then(function(b){b.addClass("ad-sponsored");
f(b)})},_initAdSlot3:function(){return this.createAd("#ad-slot-3",{height:250,tile:3,additionalParams:{autoexpand:250}}).then(function(b){b.parent().addClass("ad-block");f(b)})}})})(window.LIModules);
(function(){var c=LIModules.requires("jquery"),f=LIModules.requires("underscore"),e=LIModules.requires("DropdownDelegate"),k=LIModules.requires("SocialShareButton"),b=LIModules.requires("ModalDialogBox"),g=LIModules.requires("FeedbackDialog"),a=LIModules.requires("Groups.ProfileStrength"),d=LIModules.requires("Groups.i18nUtils"),h=LIModules.requires("Sticky"),n=LIModules.requires("injectAlert"),p=LIModules.requires("Groups.appUtils"),r=LIModules.requires("Groups.adsHelper"),l;l={$topbarActions:c(".top-bar-actions"),
$content:c("#content"),$sidebar:c("#extra"),$topHeader:c("#top-header").length?c("#top-header"):c("#header-banner"),initAll:function(){l.initDropdowns();l.initTopbarShare();l.initLeaveGroupDialog();l.initFeedbackDialog();l.initLikersDialog();l.initContributionMeter();l.initStickyRightRail();l.initReportMessage();l.initAds()},initDropdowns:function(){l.$topbarActions.add(l.$content).each(function(){new e(c(this),{dropdownContainerSelector:".dropdown"})})},initTopbarShare:function(){var a=l.$topbarActions.find(".social-share-content"),
b=a.data("li-share-url"),d=a.data("li-share-text");a.find(".share-link").each(function(){var a=c(this).data("li-share-type");new k(this,{type:a,actionType:"popup",url:encodeURIComponent(b),text:d,webtrack:"grp-h-share-"+a})})},initFeedbackDialog:function(){var a=c("#feedback-link");a.length&&new g(a,{title:a.data("li-feedback-title")})},initLeaveGroupDialog:function(){var a=c("#action-leave-group");a.length&&new b(a,{title:a.data("li-dialog-title")})},initLikersDialog:function(a){(a?a:l.$content).find(".likers-more").each(function(){var a=
c(this);new b(a,{title:a.data("li-dialog-title"),decorators:["scripts/shared/Dialog/AjaxDustLoading"],dustContentTemplate:"templates/features/dialogs/likersDialog"})})},initContributionMeter:function(){var b=l.$sidebar.find(".contrib-meter");d.getMessages(["contribution_started","contribution_finding","contribution_making","contribution_building","contribution_top"],"templates/messages/contributionMessages").done(function(c){new a(b,{contribLevel:b.data("li-contrib-level"),contributionMessages:c})})},
initStickyRightRail:function(){new h(l.$sidebar.find(".sidebar-linkedin"),{fixedHeaderHeight:l.$topHeader.height()+10,stickyClass:"stick-ad"})},initReportMessage:function(){var a=c(".report-message");a.length&&n(f.extend({dismissable:!0,autoHide:!1},p.dataPrefix(a,"li-report")))},initAds:function(){r.initAll()}};LIModules.exports("Groups.appHelper",l)})();(function(){function a(b,a){return b}dust.register("templates/messages/validateMessages",a);return a})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/messages/validateMessages"]={required:"Field is required"}})();(function(){function a(b,a){return b.write("Field maximum length is ").reference(a.get(["value"],!1),a,"h").write(" characters")}dust.register("__i18n__templates/messages/validateMessages__maxlength",a);return a})();
(function(){function a(a,h){return a}dust.register("templates/messages/discussionMessages",a);return a})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/messages/discussionMessages"]={show_more_text:"more",show_less_text:"less",show_more_text_long:"Show more",show_less_text_long:"Show less",flagged_promotion:"Thank you, this item has been flagged as a promotion.",flagged_job:"Thank you, this item has been flagged as a job.",flagged:"Thank you, this item has been flagged for review.",deleted:"This item has been deleted.",undo:"Undo",managers_choice_selected:"This discussion has been selected as the Manager's Choice! Any previous Manager's Choice selection will be replaced.",
submission_failure:"An error was encountered with the submission.",submission_success:"Your submission was successful.",submission_pending:"Your submission is pending manager approval.",submission_moved:'Your discussion looks like it may include a promotion or job, so we have moved it to another tab.\x3cbr\x3eFor tips on contributing to Groups, visit our \x3ca target\x3d"_blank" href\x3d"https://help.linkedin.com/app/answers/detail/a_id/47677/~/contributing-as-a-group-member---best-practices"\x3eHelp Center\x3c/a\x3e.'}})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("BaseControl").extend(function(){var h={sliderElement:".carousel-slider",autoA11y:!0};return{afterDecoration:function(){this._config=b.defaults(this._config,h);this._$slider=this._$el.find(this._config.sliderElement);this._currentItem=0;this.updateItems()},attachEventListeners:function(){if(this._config.autoA11y)this._$items.on("focus",function(){a(this).next().attr("tabindex",0)})},goToItem:function(b,
e){var m=new a.Deferred;"undefined"===typeof e&&(e=b);0<=b&&b<=this._itemCount&&this._$items[e]?(this._transitionSlide(e),this._currentItem=b,m.resolve()):m.reject();return m.promise()},_transitionSlide:function(a){this._$slider.css("left",-this._$items[a].offsetLeft)},next:function(a){this.goToItem(this._currentItem+(a||1));return this},previous:function(a){this.next(-(a||1));return this},updateItems:function(){var a=this._config.itemSelector;this._$items=a?this._$slider.find(a):this._$slider.children();
this._itemCount=this._$items.length;return this},isFirst:function(){return 0===this._currentItem},isLast:function(){return this._currentItem===this._itemCount-1}}});define("scripts/shared/Carousel",[],function(){return h});LIModules.exports("Carousel",h)})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("BaseControl"),l=LIModules.requires("Events"),h=h.extend(function(){var h;h={$charCountEl:null,countPlaceholder:null,maxCharLimit:null,maxCharLimitClass:null,minCharLimit:null,minCharLimitClass:null,showNetCount:!1,showNumViolated:!1};return{beforeDecoration:function(){var e=b.defaults(this._config,h);this.text="";this.numViolated=this.charCount=0;this.CUSTOM_EVENT_ON_TEXT_CHANGE="LI.TextCount.ON_TEXT_CHANGE";
this.showNetCount=e.showNetCount;this.showNumViolated=e.showNumViolated;null!==e.maxCharLimit&&(this.maxCharLimit=e.maxCharLimit,this.maxCharLimitClass=e.maxCharLimitClass,this.isViolateMaxLimit=!1);null!==e.minCharLimit&&(this.minCharLimit=e.minCharLimit,this.minCharLimitClass=e.minCharLimitClass,this.isViolateMinLimit=!1);this.$charCountEl=e.$charCountEl;e.countPlaceholder&&(this.charCountElTemplate=this.$charCountEl.html(),this.countPlaceholder=e.countPlaceholder);this._$liveRegion=a("#"+this._$el.attr("aria-controls"));
if(this._liveRegionExists=this._$liveRegion.length)this._liveRegionContent=b.escape(this._$liveRegion.text()),this._$liveRegion.empty();this._updateCharCount();this._updateCharCountText()},attachEventListeners:function(){this._$el.keyup(this.onTextChange)},onTextChange:function(a){this._updateCharCount();if("undefined"!==typeof this.minCharLimit&&(this.isViolateMinLimit=this.charCount<this.minCharLimit,this.numViolated=this.minCharLimit-this.charCount,this.minCharLimitClass&&this._updateCharLimitMarkup(this.minCharLimitClass,
this.isViolateMinLimit),this.isViolateMinLimit)){l.trigger("LI.TextCount.ON_TEXT_CHANGE",a);return}"undefined"!==typeof this.maxCharLimit&&(this.isViolateMaxLimit=this.charCount>this.maxCharLimit,this.numViolated=this.showNetCount?this.maxCharLimit-this.charCount:this.charCount-this.maxCharLimit,this.maxCharLimitClass&&this._updateCharLimitMarkup(this.maxCharLimitClass,this.isViolateMaxLimit));this._updateCharCountText();l.trigger("LI.TextCount.ON_TEXT_CHANGE",a)},_updateCharCount:function(){this.text=
this._$el.val();this.charCount=this.text.length},_updateCharCountText:function(){var a=this._getFormattedCharCount();this.countPlaceholder?(a=this.charCountElTemplate.slice().replace(this.countPlaceholder,a),this.$charCountEl.html(a)):this.$charCountEl.text(a)},_updateCharLimitMarkup:function(a,b){var h;b?(this._$el.addClass(a),this.$charCountEl.addClass(a),this._liveRegionExists&&(h=this._liveRegionContent.slice().replace(this.countPlaceholder,this.numViolated),this._$liveRegion.text(h))):(this._$el.removeClass(a),
this.$charCountEl.removeClass(a),this._liveRegionExists&&this._$liveRegion.empty())},_getFormattedCharCount:function(){return this.showNumViolated?this.numViolated:this.charCount}}});LIModules.exports("TextCount",h)})();
(function(){var a=LIModules.requires("TextCount").extend(function(a){return{_updateCharCountText:function(){var a;a=this.maxCharLimit-this.charCount;this.countPlaceholder&&(a=this.charCountElTemplate.slice().replace(this.countPlaceholder,a));this.$charCountEl.text(a)},attachEventListeners:function(){this._$el.on("keyup reset",this.onTextChange)}}});LIModules.exports("Groups.TextCountDown",a)})();
(function(a){var b=a.requires("BaseControl");a.requires("jquery");var h=a.requires("underscore"),b=b.extend(function(a){var b={textareaSelector:"textarea",maxHeight:165,boxSizeClass:"autosizing",maxSizeClass:"max-size",shrinkable:!1};return{afterDecoration:function(){h.defaults(this._config,b);this.$textarea=this._$el.is(this._config.textareaSelector)?this._$el.first():this._$el.find(this._config.textareaSelector).first()},afterInit:function(){this.$textarea.addClass(this._config.boxSizeClass);this.growHeight()},
attachEventListeners:function(){this.$textarea.on("input.boxsizer",this._changeHandler);this.$textarea.on("blur.boxsizer",this._blurHandler)},detachEventListeners:function(){this.$textarea.off(".boxsizer")},destroy:function(){this.resetHeight();this.$textarea.removeClass(this._config.boxSizeClass)},_getContentVal:function(){return this.$textarea.val()},_changeHandler:function(){this.growHeight(this._config.shrinkable)},_blurHandler:function(){1>this._getContentVal().length&&this.resetHeight()},_setHeight:function(a){this.$textarea.innerHeight(a)},
growHeight:function(a){a&&this.resetHeight();a=Math.min(this.$textarea.prop("scrollHeight"),this._config.maxHeight);var b=parseInt(this.$textarea.innerHeight(),10);a>b&&this._setHeight(a);a>=this._config.maxHeight?this.$textarea.addClass(this._config.maxSizeClass):this.$textarea.removeClass(this._config.maxSizeClass)},resetHeight:function(){this.$textarea.css("height","")}}});a.exports("TextareaSizer",b)})(window.LIModules);
(function(a){var b=a.requires("jquery"),h=a.requires("underscore"),l=a.requires("BaseControl").extend(function(){var a,e;return{beforeDecoration:function(){a={charCount:100,className:"",showMoreText:null,showLessText:null,showMoreTextLong:null,showLessTextLong:null,showEllipsis:!0};e=["showMoreText","showLessText","showMoreTextLong","showLessTextLong"];this._config=h.defaults(this._config,a);this._collapsed=!0;h.each(h.pick(this._config,e),function(a,b){if(h.isNull(a))throw Error('Configuration property "'+
b+'" must be provided.');});this._truncate()},attachEventListeners:function(){if(this._$toggleLink)this._$toggleLink.on("click",this._handleClick)},_truncate:function(){this._$el.html()&&(this._content=this._getContent())&&(this._$el.html(this._content.truncated),this._$toggleLink=this._createToggleLink(),this._setToggleLink(),this._$el.append(this._$toggleLink),this._toggleClassName())},_getContent:function(){var a=this._$el.html(),e=b.trim(this._$el.text()),c="",q=[],k=this._config.charCount,f,
g=/^(.*?|[\s\S]*)(<\/?\w+(\s+[\w-]+\s*=\s*"?[^>]*"?)*\s*\/?\s*>)/m,d=/<(\w+)(\s+[\w-]+\s*=\s*"?[^>]*"?)*\s*\/?\s*>/;if(this._config.charCount>=e.length)return null;for(e=a+"\x3c0\x3e";e&&0<k;){f=g.exec(e);if(!f)return null;var n=f[1];f=f[2];n&&(n=n.slice(0,k),c+=n,k-=n.length,e=e.slice(n.length));if(0===k){g=/\s*\w+$/.exec(c);e=/^\w+/.exec(e);g&&e&&(c=c.slice(0,c.length-g[0].length),k+=g[0].length);break}c+=f;/^<\w/.test(f)&&!/\/\s*>$/.test(f)?q.push(f):q.pop();e=e.slice(f.length)}c+=h.reduce(q,function(a,
n){n=n.replace(d,"\x3c/$1\x3e");return n+a},"");this._config.showEllipsis&&(c+="...");return{original:a,truncated:c}},_createToggleLink:function(){var a=b("\x3ca\x3e\x3c/a\x3e");a.prop("href","#");a.addClass("toggle-show-more");return a},_setToggleLink:function(){this._collapsed?(this._$toggleLink.prop("title",this._config.showMoreTextLong),this._$toggleLink.html(this._config.showMoreText)):(this._$toggleLink.prop("title",this._config.showLessTextLong),this._$toggleLink.html(this._config.showLessText))},
_toggleClassName:function(){this._config.className&&this._$el.toggleClass(this._config.className)},_handleClick:function(a){a.preventDefault();a=b(a.target);"A"===a.prop("nodeName")&&a.hasClass("toggle-show-more")&&this.toggle()},toggle:function(){this._content&&((this._collapsed=!this._collapsed)?this._$el.html(this._content.truncated):this._$el.html(this._content.original),this._setToggleLink(),this._$el.append(this._$toggleLink),this._toggleClassName(),this.attachEventListeners())}}});a.exports("ShowMore",
l)})(window.LIModules);
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("BaseControl"),l=LIModules.requires("Events"),p=LIModules.requires("fiber"),e=LIModules.requires("Groups.appUtils"),m;m=h.extend(function(m){var c={contentContainer:null,contentLocation:"bottom",fetchUrl:null,fetchData:{},fetchMethod:"GET",template:null,templateData:{},loadingClass:"loading",eventPrefix:"viewLoad",animateSpeed:0,plugins:[]},q={top:"prepend",bottom:"append",before:"before",after:"after",
replace:"append"};return{beforeDecoration:function(){b.defaults(this._config,c)},afterDecoration:function(){var c=this._config;this.$content=c.contentContainer?a(c.contentContainer):this._$el;this.setFetchData(c.fetchData);this.setFetchUrl(c.fetchUrl);this._insertMethod=q[c.contentLocation]},decorate:function(){b.each(this._config.plugins,function(a){p.decorate(this,a)},this);return h.prototype.decorate.call(this)},setFetchData:function(a,c){this._fetchData=c?a:b.extend(this._fetchData||{},a)},setFetchUrl:function(a){this._fetchUrl=
a},isLoading:function(){return this._isLoading},render:function(a){var c=this,g=this._config;a=b.extend({},g.templateData,a);return e.renderTemplate(g.template,a).then(function(a){l.trigger(g.eventPrefix+":rendered",a);c.insert(a);return a})},insert:function(a){var c=this._config;if(!c.contentLocation)return!1;"replace"===c.contentLocation&&this.$content.empty();c.animateSpeed&&a.hide();this.$content[this._insertMethod](a);c.animateSpeed&&a.slideDown(c.animateSpeed);l.trigger(c.eventPrefix+":inserted",
a)},fetch:function(c){var f=this._config,g=this;c=c||{};if(this._isLoading)return a.Deferred().reject();this._$el.addClass(f.loadingClass);this._isLoading=!0;return a.ajax({method:c.method||f.fetchMethod,url:c.url||this._fetchUrl,dataType:"json",data:b.extend({},this._fetchData,c.data||{})}).then(function(a){return!1!==c.render?g.render(a):a}).always(function(){g._$el.removeClass(f.loadingClass);g._isLoading=!1})}}});LIModules.exports("Groups.ViewLoad",m)})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("BaseControl"),l=LIModules.requires("Groups.i18nUtils"),h=h.extend(function(h){var e={fieldErrorClass:"error",messageErrorClass:"error-msg",validatingClass:"validating",fieldContainerSelector:".field-container",validateAttrs:[],validateOnChange:!0,validateOnSubmit:!0,messageTemplate:"templates/messages/validateMessages",animateSpeed:0},m=["change","keyup"],r=["required"];return{rules:{required:function(c){return c.is(":radio, :checkbox")?
(c=this._getNormalizedField(c,":checked"),0<c.length):!!a.trim(c.val())},maxlength:function(a,b){return a.val().length<=b}},messages:{},beforeDecoration:function(){var a=b.defaults(this._config,e);this.$form=this._$el;this._$errors=[];this.validateAttrs=r.concat(a.validateAttrs)},afterDecoration:function(){this.$form.attr("novalidate",!0)},attachEventListeners:function(){var a=this._config,b=this,k=m.join(".formValidate ")+".formValidate";if(a.validateOnChange)this.$form.one("submit.formValidate",
function(){b.$form.on(k,":input",b._evtChange)});if(a.validateOnSubmit)this.$form.on("submit.formValidate",this._evtSubmit)},deattachEventListeners:function(){this.$form.off(".formValidate")},_evtSubmit:function(a){var b=this;a.preventDefault();this.validateForm().done(function(){b.$form.trigger("submitValid")}).fail(function(){b.$form.trigger("submitInvalid")})},_evtChange:function(c){this.validateField(a(c.target))},testRule:function(c,b,k){var f=a.Deferred();c&&this.rules[c]?(c=this.rules[c].call(this,
b,k,f),!0===c?f.resolve():!1===c&&f.reject()):f.resolve();return f.promise()},getFieldRules:function(a,e){var k={},f;a=this._getNormalizedField(a);f=a.dataPrefix("li-validate")||{};if(f.rules&&!e)return f.rules;k=b.reduce(this.validateAttrs,function(g,d){a.is("["+d+"]")&&(g[d]=a.attr(d));return g},k);k=b.reduce(b.keys(f),function(a,d){this.rules[d]&&(a[d]=f[d]);return a},k,this);a.data("li-validate-rules",k);return k},validateField:function(c){var e=this.getFieldRules(c),k=[],k=b.reduce(e,function(a,
g,d){g=this.testRule(d,c,g).fail(b.partial(this.addFieldError,c,d,{value:g}));a.push(g);return a},k,this);return a.when.apply(a,k).done(b.partial(this.removeFieldError,c))},validateForm:function(){var c=this._config,b=this,e=[],f;this.$form.addClass(c.validatingClass);f=this.$form.find(":input");this.removeErrors();f.each(function(){e.push(b.validateField(a(this)))});return a.when.apply(a,e).fail(this.addErrors).done(this.removeErrors).always(function(){b.$form.removeClass(c.validatingClass)})},removeErrors:function(){this._$errors=
b.compact(this._$errors);b.each(this._$errors,b.bind(function(a){this.removeFieldError(a)},this))},addFieldError:function(c,b,e){var f=this._config,g=a("\x3cdiv\x3e"),d="li-validate-msg-{rule}".replace("{rule}",b);e=e||{};c=this._getNormalizedField(c);this.removeFieldError(c,{animateSpeed:0});(d=c.data(d))?(e.value&&(d=d.replace("{value}",value)),e=a.Deferred().resolve(d)):(b=this.messages[b]||b,e=l.getMessage(b,f.messageTemplate,{value:e.value}));e.done(function(a){g.text(a)});g.addClass(f.messageErrorClass).hide();
c.addClass(f.fieldErrorClass).data("li-validate-$error",g);c.closest(f.fieldContainerSelector).addClass(f.fieldErrorClass).prepend(g);g.slideDown(f.animateSpeed);this._$errors.push(c)},removeFieldError:function(a,b){var e=this._config,f=this._getFieldError(a),g;b=b||{};g=b.animateSpeed||e.animateSpeed;f&&(f.slideUp(g,function(){f.remove()}),a.removeClass(e.fieldErrorClass).removeData("li-validate-$error"),this._$errors[this._$errors.indexOf(a)]=null)},_getFieldError:function(a){a=this._getNormalizedField(a);
return a.data("li-validate-$error")},_getNormalizedField:function(a,b){a.is(":radio, :checkbox")&&(a=this.$form.find('[name\x3d"'+a.attr("name")+'"]'));return a=b?a.filter(b):a.first()}}});LIModules.exports("Groups.FormValidate",h)})();
(function(){var a=LIModules.requires("underscore"),b=LIModules.requires("jquery"),h=LIModules.requires("fiber"),l=LIModules.requires("BaseControl");LIModules.requires("Events");var p=LIModules.requires("injectAlert"),e=LIModules.imports("TextareaSizer"),m=LIModules.requires("Groups.FormValidate"),r=LIModules.requires("Groups.i18nUtils"),c=LIModules.requires("Groups.appUtils"),q=LIModules.requires("Groups.ViewLoad"),k=l.extend(function(f){var g={messagesTemplate:"templates/messages/discussionMessages",
activeClass:"active",loadingClass:"loading",deactivateSelector:".share-remove",deactivateOnLeave:!0,formValidateConfig:{},plugins:[],submitUrl:null,submitData:{},contentContainer:null,contentLocation:"top",contentTemplate:null,contentTemplateData:{},animateSpeed:0};return{beforeDecoration:function(){var d=a.defaults(this._config,g);this.$form=this._$el.find("form");this.$submit=this.$form.find(":submit");this.$content=d.contentContainer?b(d.contentContainer):this._$el;this.$document=b(document);this._isActive=
!1;this.formValidate=new m(this.$form,a.extend({animateSpeed:d.animateSpeed,validateOnSubmit:!1},d.formValidateConfig));this.viewLoad=new q(this.$content,{eventPrefix:"shareBox",fetchUrl:d.submitUrl||this.$form.attr("action"),fetchMethod:"POST",fetchData:d.submitData,contentLocation:d.contentLocation,template:d.contentTemplate,templateData:d.contentTemplateData,loadingClass:null,animateSpeed:d.animateSpeed});this.boxSizer=new e(this.$form,{});this._eventNamespace="shareBox";this._uniqueId=a.uniqueId()},
afterInit:function(){b.contains(this.$form[0],document.activeElement)&&this._setActiveState(!0)},attachEventListeners:function(){var d=this._config,b=".shareBox"+this._uniqueId;this.$form.on("submit.shareBox",this._evtSubmit);this.$form.on("focusin.shareBox",":input",a.partial(this._setActiveState,!0));this._$el.on("click.shareBox",d.deactivateSelector,a.partial(this._setActiveState,!1));if(d.deactivateOnLeave)this.$document.on("click"+b+" focusin"+b,this._evtDocClick)},detachEventListeners:function(){this.$form.off(".shareBox");
this._$el.off(".shareBox");this.$document.off(".shareBox"+this._uniqueId)},decorate:function(){a.each(this._config.plugins,function(a){h.decorate(this,a)},this);return l.prototype.decorate.call(this)},_evtSubmit:function(a){a.preventDefault();this.validate().then(this.submit)},_evtDocClick:function(a){b.contains(this._$el[0],a.target)||this._setActiveState(!1)},_setActiveState:function(a){a!==this._isActive&&(this._$el[a?"addClass":"removeClass"](this._config.activeClass),(this._isActive=a)||this.formValidate.removeErrors())},
isActive:function(){return this._isActive},submit:function(){var a=this,n=this._config;if(this.viewLoad.isLoading())return b.Deferred().reject("loading");this._$el.addClass(n.loadingClass);this.viewLoad.fetch({render:!1,data:c.serializeObject(this.$form)}).then(this._handleSubmitResponse).fail(function(b,n,g){500===b.status&&window.location.reload();a.addMessage("submission_failure",{type:"error"})}).always(function(){a._$el.removeClass(n.loadingClass)})},_handleSubmitResponse:function(d){var n=this._config;
202===d&&(d={status:"PENDING_APPROVAL"});d=a.extend({},n.contentTemplateData,d);if("FAILURE"===d.status)return b.Deferred().reject(d);if("PENDING_APPROVAL"===d.status||"NON_DISCUSSION"===d.status)return n="PENDING_APPROVAL"===d.status?"submission_pending":"submission_moved",this.addMessage(n,{type:"notice"}),this.reset(),b.Deferred().resolve(d);this.addMessage("submission_success",{type:"success"});this._$el.trigger("shareBox:submitSuccess",{data:d});return this.viewLoad.render(d).then(this.reset)},
reset:function(a){a=!0===a;this.$form.trigger("reset").find(":input").trigger("reset");this._setActiveState(a)},validate:function(){return this.formValidate.validateForm()},addMessage:function(b,n){var g=this._config;n=a.defaults(n||{},{type:"error",autoHide:!0});r.getMessage(b,g.messagesTemplate,{}).done(function(a){p({message:a,type:n.type,dismissable:!0,autoHide:n.autoHide})})}}});LIModules.exports("Groups.ShareBox",k)})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("Carousel"),l=LIModules.requires("patterns"),p=LIModules.requires("Groups.appUtils");LIModules.exports("Groups.ShareBox.UrlUnwinder",function(e){var m={previewContainer:".url-preview",previewTemplate:null,previewContentTemplate:null,previewTemplateData:{},previewEditTemplate:null,previewEditTemplateData:{},previewUrl:"/sharing/api/url-preview",previewRemoveSelector:".preview-remove",imageCarouselSelector:".preview-carousel",
previewEditSelector:".preview-edit",previewEditFormSelector:".content-edit",previewEditSaveSelector:".content-edit-save",previewEditCancelSelector:".content-edit-cancel",previewContentSelector:".content",previewTitleSelector:".share-title-input",previewDescripSelector:".share-descrip-input",disableUrlPreviewCheckboxSelector:".disable-url-preview",disableUrlPreviewContainerSelector:".disable-url-preview-container"},r=l.sharingUrl,c=this.attachEventListeners,q=this.afterDecoration,k=this.reset,f=["keyup",
"paste","blur"],g=['input[type\x3d"text"]',"textarea"],d=[13,32];return{afterDecoration:function(){var a=b.defaults(this._config,m);this.$preview=this._$el.find(a.previewContainer);this.$previewContent=null;this._displayUrlPreview=!0;this.$enableUrlPreviewCheckbox=this.$form.find(a.disableUrlPreviewCheckboxSelector);this.$enableUrlPreviewContainer=this.$form.find(a.disableUrlPreviewContainerSelector);q.call(this)},attachEventListeners:function(){var a=this._config,b="."+this._eventNamespace;this.$form.on(f.join(b+
" ")+b,g.join(","),this._evtTextEntered);this._$el.on("click",a.disableUrlPreviewCheckboxSelector,this._evtUrlPreviewPreferenceUpdated);this._$el.on("click"+b,a.previewRemoveSelector,this._evtRemovePreview);c.call(this)},_evtTextEntered:function(a){var g=a.target.value;!this._hasPreview&&this._displayUrlPreview&&(this._typingTimeout&&clearTimeout(this._typingTimeout),"keyup"===a.type&&-1<d.indexOf(a.keyCode)&&(a.type="keyupwordend"),"keyup"===a.type?this._typingTimeout=setTimeout(b.bind(function(){this.extractUrl(g)},
this),1500):this.extractUrl(g))},_evtUrlPreviewPreferenceUpdated:function(b){(this._displayUrlPreview=!this.$enableUrlPreviewCheckbox.prop("checked"))&&this.$form.find(g.join(",")).trigger("keyup");a(this).hide()},_evtRemovePreview:function(a){a.preventDefault();this.removePreview();this._displayUrlPreview=!1;this.$enableUrlPreviewContainer.is(":visible")||this.$enableUrlPreviewContainer.fadeIn("fast")},extractUrl:function(a){var g=a.replace(/\n/g," ").split(" ");a=this._config;var d;if(g=b.find(g,
function(a){if((d=a.match(r))&&-1===d.input.search("@"))return a},this))this._hasPreview=!0,this.$preview.addClass(a.loadingClass),this.fetchPreview(g)},fetchPreview:function(b){var g=this._config,d=this;return a.ajax({url:g.previewUrl,dataType:"json",data:{url:b}}).fail(function(){d._hasPreview=!1;d.removePreview()}).then(function(a){if("KEEP_POLLING"===a.status)return d.fetchPreview(b);a=d._parsePreviewResponse(a);return d.addPreview(a)}).then(function(){d.$preview.removeClass(g.loadingClass)})},
_parsePreviewResponse:function(a){a=p.deepFind(a,"data.content.0")||{};var g=p.deepFind(a,"previewImages")||{};return b.extend(a,{images:g,source:a.sourceDomain})},addPreview:function(a){var g=this._config,d=this;if(this._displayUrlPreview)return this._setPreviewData(b.extend({},a,{imageUrl:p.deepFind(a.images,"0.url")})),p.renderTemplate(g.previewTemplate,b.extend(a,g.previewTemplateData)).then(function(b){d.$previewContent=b;d.$preview.append(b).addClass(g.activeClass);d.initCarousel(a);d.initEdit(a);
d.$enableUrlPreviewContainer.hide()})},removePreview:function(){var a=this._config;this._setPreviewData(null);this.$previewContent&&(this.$preview.removeClass(a.loadingClass).removeClass(a.activeClass),this._hasPreview=!1,this.$previewContent.remove(),this.$enableUrlPreviewCheckbox.prop("checked",!0))},reset:function(){this._hasPreview&&this.removePreview();k.call(this)},_setPreviewData:function(a){a=a||{};this.viewLoad.setFetchData({shareImageUrl:a.imageUrl,shareTitle:a.title,shareUrl:a.url,shareDescription:a.description,
shareId:a.entityId})},initCarousel:function(a){var b=this,g=this.$preview.find(this._config.imageCarouselSelector),d=new h(g,{decorators:["scripts/shared/Carousel/Controls","scripts/shared/Carousel/TextPageIndicator"]});d.after("goToItem",function(){b.viewLoad.setFetchData({shareImageUrl:a.images[d._currentItem].url})})},_updatePreviewContent:function(a){var b=this,g=b._config;p.renderTemplate(g.previewContentTemplate,a).then(function(d){b.$previewContent.find(g.previewContentSelector).empty().append(d);
b.$preview.removeClass("editing");b.$preview.find(g.previewEditFormSelector).remove();b.initEdit(a)})},_savePreviewEdit:function(a){var g=this._config,d=this.$editPreviewForm.find(g.previewTitleSelector).val(),g=this.$editPreviewForm.find(g.previewDescripSelector).val(),c=b.extend({},a.data,{title:d,description:g});a.preventDefault();this.viewLoad.setFetchData({shareTitle:d,shareDescription:g});this._updatePreviewContent(c)},_cancelPreviewEdit:function(a){a.preventDefault();this._updatePreviewContent(a.data)},
initEdit:function(g){var d=this,c=d._config,f=d._$el.find(c.previewEditSelector);d.$editPreviewForm=a();f.on("click",function(a){d.$preview.addClass("editing")});p.renderTemplate(c.previewEditTemplate,b.extend(g,c.previewEditTemplateData)).then(function(a){d.$editPreviewForm=a;d.$previewContent.append(d.$editPreviewForm);d.$editPreviewForm.on("click",c.previewEditSaveSelector,g,d._savePreviewEdit);d.$editPreviewForm.on("click",c.previewEditCancelSelector,g,d._cancelPreviewEdit)})}}})})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("fiber"),l=LIModules.requires("BaseControl"),p=LIModules.requires("Events"),e=LIModules.requires("injectAlert");LIModules.requires("removeAlert");var m=LIModules.requires("Groups.ShareBox"),r=LIModules.requires("Groups.i18nUtils"),c=l.extend(function(c){var k={itemSelector:".discussion-item",messageSelector:"\x3e .message-container",commentShareSelector:".comment-share",commentContentSelector:".comment-list",
commentInputSelector:".discussion-details",flaggedClass:"is-flagged",deletedClass:"is-deleted",commentedClass:"has-comments",mgrsChoiceClass:"is-mgrs-choice",activeClass:"active",loadingClass:"loading",initializedClass:"initialized",undoClass:"undo",commentShareConfig:{},messageTemplate:null,shareConfig:{},plugins:[]},f;f={remove:function(a){return this._action(a,{completeClass:this._config.deletedClass,message:"deleted"})},flagInappropriate:function(a){return this._action(a,{completeClass:this._config.flaggedClass,
message:"flagged",undoAction:"unflag"})},flagJob:function(a){return this._action(a,{completeClass:this._config.flaggedClass,message:"flagged_job",undoAction:"unflag"})},flagPromotion:function(a){return this._action(a,{completeClass:this._config.flaggedClass,message:"flagged_promotion",undoAction:"unflag"})},unflag:function(a){return this._action(a,{completeClass:this._config.flaggedClass,message:!0,isUndo:!0})},follow:function(a){return this._toggleAction(a)},unfollow:function(a){return this._toggleAction(a,
{isUndo:!0})},like:function(a){return this._toggleAction(a).then(b.bind(function(){var b=this.getItemContainer(a);p.trigger("discussion:liked",b)},this))},unlike:function(a){return this._toggleAction(a,{isUndo:!0}).then(b.bind(function(){var b=this.getItemContainer(a);p.trigger("discussion:unliked",b)},this))},addMgrsChoice:function(a){return this._toggleAction(a,{completeClass:this._config.mgrsChoiceClass}).then(b.bind(function(){r.getMessage("managers_choice_selected",this._config.messageTemplate,
{}).done(function(a){e({message:a,type:"success",dismissable:!0,autoHide:!0})})},this))},removeMgrsChoice:function(a){return this._toggleAction(a,{completeClass:this._config.mgrsChoiceClass,isUndo:!0})},close:function(a){return this._toggleAction(a)},comment:function(a){var b=this._config;a=this.getItemContainer(a);var c=a.find(b.commentShareSelector);this.initCommentShare(c,{contentContainer:a.find(b.commentContentSelector)});setTimeout(function(){c.find('[name\x3d"body"]').focus()},0)},replyPrivately:function(a){}};
return b.extend({beforeDecoration:function(){b.defaults(this._config,k);this.actionKeys=b.keys(f);this._eventNamespace="discussion"},attachEventListeners:function(){var b=this._config,d=this;this._$el.on("click.discussion","[data-li-disc-act]",this._evtClick);this._$el.on("focus.discussion",b.commentInputSelector,function(c){c=d.getItemContainer(a(c.target));var f=c.find(b.commentShareSelector);d.initCommentShare(f,{contentContainer:c.find(b.commentContentSelector)})})},detachEventListeners:function(){this._$el.off(".discussion")},
decorate:function(){b.each(this._config.plugins,function(a){h.decorate(this,a)},this);return l.prototype.decorate.call(this)},_evtClick:function(b){var d=a(b.target),c=d.data("li-disc-act");b.preventDefault();if(-1<this.actionKeys.indexOf(c))this[c](d)},getItemContainer:function(a){return a.closest(this._config.itemSelector)},_action:function(b,d){var c=this,f=this._config,e=this.getItemContainer(b),m=b.dataPrefix("li-disc");d=d||{};!1!==d.withItemLoader&&e.addClass(f.loadingClass);return a.ajax({type:"POST",
url:m.url}).then(function(a){d.message&&(d.isUndo?c._removeMessage(e):c._addMessage(d.message,{$target:e,data:m,undoAction:d.undoAction}));if(d.completeClass)e[d.isUndo?"removeClass":"addClass"](d.completeClass);return a}).always(function(){!1!==d.withItemLoader&&e.removeClass(f.loadingClass)})},_toggleAction:function(a,b){var c=this._config,f=a.parent();b=b||{};b.withItemLoader=!1;f.addClass(c.loadingClass);return this._action(a,b).then(function(){f[b.isUndo?"removeClass":"addClass"](c.activeClass)}).always(function(){f.removeClass(c.loadingClass)})},
_addMessage:function(c,d){var f=this._config,e=this.getItemContainer(d.$target),m=e.find(f.messageSelector);a.Deferred();d=d||{};e.data("$message",m);b.defaults(d,{type:"notice",data:{}});return r.getMessages([c,"undo"],f.messageTemplate,d.data).then(function(b){var e=b[c],h=d.data,k="";h.undoUrl&&d.undoAction&&(k=a("\x3ca\x3e").addClass(f.undoClass).attr("data-li-disc-act",d.undoAction).attr("data-li-disc-url",h.undoUrl).text(b.undo).prop("outerHTML"));m.html(e+" "+k)})},_removeMessage:function(a){var b=
a.data("$message");b&&(b.empty(),a.removeData("$message"))},initCommentShare:function(a,c){var f=this._config,e=a.data("li-discshare-box");c=c||{};!e&&a.length&&(e=new m(a,b.defaults(c,f.commentShareConfig)),a.data("li-discshare-box",e).addClass(f.initializedClass).on("shareBox:submitSuccess",b.bind(function(){var b=this.getItemContainer(a);b.addClass(f.commentedClass);p.trigger("discussion:commented",b)},this)))}},f)});LIModules.exports("Groups.Discussion",c)})();
(function(){LIModules.requires("jquery");var a=LIModules.requires("underscore"),b=LIModules.requires("Events"),h=LIModules.requires("t8"),l=LIModules.imports("play");LIModules.exports("Groups.Discussion.Counts",function(p){var e=this.attachEventListeners,m=this.detachEventListeners,r=l?l.getPageContext().locale:null;return{attachEventListeners:function(){var c=this._eventNamespace;this._likeActionCount=a.partial(this._updateActionCount,"like",1);this._unlikeActionCount=a.partial(this._updateActionCount,
"like",-1);this._commentActionCount=a.partial(this._updateActionCount,"comment",1);b.on(c+":liked",this._likeActionCount);b.on(c+":unliked",this._unlikeActionCount);b.on(c+":commented",this._commentActionCount);e.call(this)},detachEventListeners:function(){var a=this._eventNamespace;b.off(a+":liked",this._likeActionCount);b.off(a+":unliked",this._unlikeActionCount);b.off(a+":commented",this._commentActionCount);m.call(this)},_updateActionCount:function(a,b,e){a="li-disc-"+a+"-count";e=e.find("[data-"+
a+"]").first();b=(e.data(a)||0)+b;var f;0>b&&(b=0);f=(new h.NumberFormatter).format(b,r);e.text(f).data(a,b)}}})})();
(function(){var a=LIModules.requires("jquery"),b=LIModules.requires("underscore"),h=LIModules.requires("fiber"),l=LIModules.requires("BaseControl"),p=LIModules.requires("Scroller"),e=LIModules.requires("Events"),m=LIModules.requires("Groups.ViewLoad"),r=LIModules.imports("externalTracking"),c=l.extend(function(c){var k={actionType:"click",scrollThreshold:800,loadingClass:"loading",completeClass:"complete",plugins:[],fetchUrl:null,fetchData:{},contentContainer:null,contentLocation:"bottom",contentTemplate:null,
contentTemplateData:{},animateSpeed:0};return{beforeDecoration:function(){var a=this._$el.dataPrefix("li-paging");this._config=b.extend({},k,this._config,a)},afterDecoration:function(){var b=this._config;"scroll"===b.actionType&&(this.scroller=new p(this.$window,{debounceWait:20}),this._scrollEvt=this.scroller.getEvtName());this.viewLoad=new m(a(b.contentContainer),{eventPrefix:"paging",fetchUrl:b.fetchUrl||this._$el.attr("href"),fetchData:b.fetchData,contentLocation:b.contentLocation,template:b.contentTemplate,
templateData:b.contentTemplateData,animateSpeed:b.animateSpeed});this.viewLoad.before("render",this._handleFetchResponse)},afterInit:function(){"scroll"===this._config.actionType&&this.scroller._scrolled("window")},attachEventListeners:function(){if("scroll"===this._config.actionType)e.on(this._scrollEvt,this._evtScroll);else this._$el.on("click.paging",this._evtClick)},detachEventListeners:function(){"scroll"===this._config.actionType?e.off(this._scrollEvt,this._evtScroll):this._$el.off("paging")},
decorate:function(){b.each(this._config.plugins,function(a){h.decorate(this,a)},this);return l.prototype.decorate.call(this)},fetch:function(){var a=this._config,b=this;this.viewLoad.isLoading()||(this._$el.addClass(a.loadingClass),this.viewLoad.fetch().then(function(a){a.length&&(a.first().addClass("first"),a.last().addClass("last"));b._fireComscoreBeacon()}).always(function(){b._$el.removeClass(a.loadingClass)}))},_handleFetchResponse:function(a){var b=a&&a.paging?a.paging:{};b.nextPageUrl?this.viewLoad.setFetchUrl(b.nextPageUrl):
this.complete();return a},_evtScroll:function(a){a.distToBottom<this._config.scrollThreshold&&this.fetch()},_evtClick:function(a){a.preventDefault();this.fetch()},_fireComscoreBeacon:function(a){r&&(a=a||this._getPageKey(),r.trackWithComScore(a))},_getPageKey:function(){return a("body").attr("id").substring(8)||""},complete:function(){this.detachEventListeners();this._$el.addClass(this._config.completeClass)}}});LIModules.exports("Groups.Paging",c)})();
(function(){var a=LIModules.requires("jquery");LIModules.requires("underscore");var b=LIModules.requires("ShowMore"),h=LIModules.requires("Groups.i18nUtils"),l;l={$app:a(".disc-app"),selectors:{item:".disc-post, .disc-comment",postList:".disc-post-list",commentList:".disc-comment-list",commentStream:".disc-comment-stream",postShare:".disc-post-share",commentShare:".disc-comment-share",viewMore:".disc-view-more",viewPrev:".disc-view-more.view-prev",viewNext:".disc-view-more.view-next",commentEntry:".comment-content",
postEntry:".post-details",textCount:".text-count"},templates:{commentList:"templates/features/discussion/comments/commentList",postList:"templates/features/discussion/posts/postList",commentStream:"templates/features/discussion/comments/commentStream",discMsgs:"templates/messages/discussionMessages",articlePreview:"templates/features/discussion/articlePreview",articlePreviewContent:"templates/features/discussion/articlePreviewContent",articlePreviewEdit:"templates/features/discussion/posts/articlePreviewEdit"},
initShowMore:function(p,e){h.getMessages(["show_more_text","show_less_text","show_more_text_long","show_less_text_long"],l.templates.discMsgs).done(function(e){p.each(function(){new b(a(this),{charCount:230,showMoreText:e.show_more_text,showLessText:e.show_less_text,showMoreTextLong:e.show_more_text_long,showLessTextLong:e.show_less_text_long})})})}};LIModules.exports("Groups.discussionHelper",l)})();
(function(){LIModules.requires("jquery");var a=LIModules.requires("Groups.appHelper"),b=LIModules.requires("Groups.discussionHelper"),h=LIModules.requires("Groups.Discussion"),l=LIModules.requires("Groups.Discussion.Counts"),p=LIModules.requires("Groups.TextCountDown"),e=LIModules.requires("Groups.ShareBox"),m=LIModules.requires("Groups.ShareBox.UrlUnwinder"),r=LIModules.requires("Groups.Paging"),c=LIModules.requires("Events"),q=b.$app,k=b.selectors,f=b.templates,g=q.find(k.postShare),d=q.find(k.postList),
n=g.find('input[name\x3d"title"]'),s=q.find(k.viewMore);a.initDropdowns();a.initTopbarShare();a.initLeaveGroupDialog();a.initFeedbackDialog();a.initContributionMeter();a.initReportMessage();a.initAds();new h(q,{itemSelector:k.item,messageTemplate:f.discMsgs,commentShareSelector:k.commentShare,plugins:[l],commentContentSelector:k.commentList,commentShareConfig:{contentTemplate:f.commentList,contentLocation:"bottom",submitData:{followPost:"false"},animateSpeed:"fast"}});c.on("app:rendered shareBox:rendered paging:rendered",
function(c){b.initShowMore(c.find(k.postEntry),230);b.initShowMore(c.find(k.commentEntry),180);a.initLikersDialog(c)});c.trigger("app:rendered",q);s.length&&new r(q.find(k.viewMore),{contentContainer:d,contentTemplate:f.postList,actionType:"scroll"});g.length&&(new e(g,{contentContainer:d,contentTemplate:f.postList,contentLocation:"top",plugins:[m],previewTemplate:f.articlePreview,previewContentTemplate:f.articlePreviewContent,previewEditTemplate:f.articlePreviewEdit,deactivateOnLeave:!1,animateSpeed:"fast"}),
new p(n,{$charCountEl:n.next(k.textCount),maxCharLimit:n.data("li-validate-maxlength")}))})();
(function(){function a(a,m){return a.write('\x3cul class\x3d"member-list"\x3e').section(m.get(["likes"],!1),m,{block:b},{}).write("\x3c/ul\x3e")}function b(a,b){return a.write("\x3cli\x3e").helper("miniprofile_popup",b,{block:h},{url:b.getPath(!1,["links","miniprofile"]),searchClass:"new-miniprofile-container"}).write('\x3cdiv class\x3d"member-info"\x3e').helper("miniprofile_popup",b,{block:l},{url:b.getPath(!1,["links","miniprofile"]),searchClass:"new-miniprofile-container"}).write('\x3cdiv class\x3d"member-headline"\x3e').reference(b.get(["headline"],
!1),b,"h").write("\x3c/div\x3e\x3c/div\x3e\x3c/li\x3e")}function h(a,b){return a.write('\x3ca class\x3d"member-image" href\x3d"').reference(b.getPath(!1,["links","profile"]),b,"h").write('"\x3e').helper("profileImg",b,{},{mediaId:b.get(["pictureID"],!1),size:"100",alt:b.get(["fullName"],!1),"class":"image"}).write("\x3c/a\x3e")}function l(a,b){return a.write('\x3ca class\x3d"member-name" href\x3d"').exists(b.getPath(!1,["links","profile"]),b,{block:p},{}).write('"\x3e').reference(b.get(["fullName"],
!1),b,"h").write("\x3c/a\x3e")}function p(a,b){return a.helper("addTrackingCode",b,{},{url:b.getPath(!1,["links","profile"]),code:"groups-post-b-liker"})}dust.register("templates/features/dialogs/likersDialog",a);return a})();