/* Auto generated, hash = 6ohlxb3bwglr9i4dnnmv12nz7 */
(function(dust){dust.helpers.linkTo=function(chunk,context,bodies,params){function clean(param){var cleanString=param?dust.filters.h(dust.helpers.tap(param,chunk,context)):"";return cleanString?cleanString:""}var anchor=["\x3ca"],href;if(params){href=params.href;if(href!==undefined&&href!==null){href=clean(href).replace(/^\/|\/$/g,"");if(href.indexOf("pulse/")>-1)href=href.split("pulse/").pop();anchor.push('href\x3d"/pulse/'+href+'"');anchor.push('data-spa-href\x3d"'+href+'"')}if(params.tracking)anchor.push("data-li-track\x3d"+
clean(params.tracking));if(params.className)anchor.push('class\x3d"'+clean(params.className)+'"');anchor.push("\x3e");chunk.write(anchor.join(" "));chunk.render(bodies.block,context);chunk.write("\x3c/a\x3e")}return chunk}})(dust);
(function(dust){dust.helpers.timeAgo=function(chunk,context,bodies,params){if(!params.time)return chunk;var time=params.time,seconds=Math.floor(Math.max(Date.now()-time,0)/1E3),count=0,key="",template="templates/walter/shared/strings/i18nTags",output="",second=1,minute=second*60,hour=minute*60,day=hour*24,week=day*7,month=day*30,year=day*365,useLongFormat=params.long==="true",keyFormat=useLongFormat?"long":"short";if(seconds<minute){count=seconds;key="i18n_seconds_"+keyFormat+"-ago"}else if(seconds<
hour){count=Math.floor(seconds/minute);key="i18n_minutes_"+keyFormat+"-ago"}else if(seconds<day){count=Math.floor(seconds/hour);key="i18n_hours_"+keyFormat+"-ago"}else if(seconds<week){count=Math.floor(seconds/day);key="i18n_days_"+keyFormat+"-ago"}else if(seconds<month){count=Math.floor(seconds/week);key="i18n_weeks_"+keyFormat+"-ago"}else if(seconds<year){count=Math.floor(seconds/month);key="i18n_months_"+keyFormat+"-ago"}else{count=Math.floor(seconds/year);key="i18n_years_"+keyFormat+"-ago"}var t8Resources=
new t8.Resources(dust.i18n,dust);t8Resources.get(key,template,context||{},function(err,out){if(err)throw err;output=out.replace(/\{0\}/,count);chunk.write(output)});return chunk}})(dust);
(function(dust){function adUrl(chunk,context,bodies,params){var urlParams;urlParams={"sz":params.width+"x"+params.height,"ti":params.tile,"p":params.publisherId,"z":params.zone,"_x":params._x?params._x:""};return chunk.write(play.buildUrlSimple("/csp/dtag",urlParams))}dust.helpers.adUrl=adUrl})(dust);
/* Auto generated, hash = 3kb61oo3fyps1obtr5z0j0ytf */
(function(){dust.register("templates/walter/article/index",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"dateIso"}).helper("addToContext",ctx,{"block":body_2},{"name":"dateMdyLong"}).helper("addToContext",ctx,{"block":body_3},{"name":"showEditButton"}).write('\x3cdiv id\x3d"actions-header-article" class\x3d"actions-header slider has-offset"\x3e\x3c/div\x3e\x3cdiv id\x3d"share-prompt"\x3e\x3c/div\x3e\x3carticle id\x3d"pulse-article-content" class\x3d"pulse-article" itemtype\x3d"http://schema.org/NewsArticle" itemscope tabindex\x3d"-1" data-li-main-content\x3e\x3cheader id\x3d"article-header" role\x3d"banner"\x3e').section(ctx.get(["images"],
false),ctx,{"block":body_8},{}).write('\x3ch1 class\x3d"article-title" itemprop\x3d"headline"\x3e').reference(ctx.get(["title"],false),ctx,"h").write("\x3c/h1\x3e").helper("eq",ctx,{"block":body_15},{"key":ctx.get(["showEditButton"],false),"value":"true","type":"boolean"}).write('\x3cul class\x3d"article-meta"\x3e\x3cli\x3e').helper("i18n",ctx,{},{"key":"i18n_published_on","templateName":"templates/walter/article/index"}).write(' \x3ctime itemprop\x3d"datePublished" datetime\x3d"').reference(ctx.get(["dateIso"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["dateMdyLong"],false),ctx,"h").write("\x3c/time\x3e\x3c/li\x3e").exists(ctx.get(["associatedChannels"],false),ctx,{"block":body_16},{}).write('\x3c/ul\x3e\x3cdiv class\x3d"article-author-wrapper"\x3e\x3csection id\x3d"social-stats"\x3e\x3c/section\x3e').section(ctx.get(["author"],false),ctx,{"block":body_21},{}).write('\x3c/div\x3e\x3c/header\x3e\x3cdiv class\x3d"prose" itemprop\x3d"articleBody"\x3e').reference(ctx.get(["articleContent"],false),ctx,
"h",["rich","s"]).write('\x3c/div\x3e\x3cdiv id\x3d"floating-share-button"\x3e\x3c/div\x3e\x3cdiv class\x3d"article-content-footer"\x3e\x3cdiv id\x3d"social-actions"\x3e\x3c/div\x3e').notexists(ctx.get(["originalAuthor"],false),ctx,{"block":body_22},{}).exists(ctx.get(["contentTags"],false),ctx,{"block":body_24},{}).write('\x3c/div\x3e\x3cfooter id\x3d"article-footer" role\x3d"contentinfo" class\x3d"article-author-wrapper article-author-footer"\x3e').section(ctx.get(["author"],false),ctx,{"block":body_26},
{}).write('\x3c/footer\x3e\x3csection id\x3d"related-content-vertical-list"\x3e\x3c/section\x3e\x3csection id\x3d"comments"\x3e\x3c/section\x3e\x3csection id\x3d"related-content-horizontal-images"\x3e\x3c/section\x3e\x3csection id\x3d"top-content"\x3e\x3c/section\x3e\x3csection class\x3d"article-end"\x3e').partial("templates/walter/article/articleEnd",ctx,{}).write("\x3c/section\x3e\x3c/article\x3e")}function body_1(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.iso","key":"fmt_date","date":ctx.get(["publishedDate"],
false),"useTimeZone":ctx.get(["false"],false)})}function body_2(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.mdy.long","key":"fmt_date","date":ctx.get(["publishedDate"],false),"useTimeZone":ctx.get(["false"],false)})}function body_3(chk,ctx){return chk.exists(ctx.get(["editor"],false),ctx,{"else":body_4,"block":body_7},{})}function body_4(chk,ctx){return chk.exists(ctx.get(["originalAuthor"],false),ctx,{"else":body_5,"block":body_6},{})}function body_5(chk,ctx){return chk.write("false")}
function body_6(chk,ctx){return chk.write("true")}function body_7(chk,ctx){return chk.write("true")}function body_8(chk,ctx){return chk.helper("eq",ctx,{"block":body_9},{"key":ctx.get(["$idx"],false),"value":0})}function body_9(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_10},{"name":"slateBannerClass"}).write('\x3cfigure role\x3d"presentation" class\x3d"article-banner-image-wrapper" itemprop\x3d"image" itemscope itemtype\x3d"http://schema.org/ImageObject"\x3e\x3cdiv class\x3d"').reference(ctx.get(["slateBannerClass"],
false),ctx,"h").write('"\x3e\x3cimg src\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" alt\x3d"" class\x3d"article-banner-image" itemprop\x3d"contentUrl"\x3e\x3c/div\x3e').exists(ctx.get(["caption"],false),ctx,{"block":body_14},{}).write("\x3c/figure\x3e")}function body_10(chk,ctx){return chk.helper("select",ctx,{"block":body_11},{"key":ctx.get(["width"],false)})}function body_11(chk,ctx){return chk.helper("gt",ctx,{"block":body_12},{"key":ctx.get(["width"],false),"value":"400"})}function body_12(chk,
ctx){return chk.write("article-banner-slate").helper("gt",ctx,{"block":body_13},{"key":ctx.get(["width"],false),"value":"744"})}function body_13(chk,ctx){return chk.write(" article-banner-slate-large")}function body_14(chk,ctx){return chk.write('\x3cfigcaption itemprop\x3d"caption"\x3e').reference(ctx.get(["caption"],false),ctx,"h").write("\x3c/figcaption\x3e")}function body_15(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["editUrl"],false),ctx,"h").write('" class\x3d"button-secondary-medium button-edit"\x3e').helper("i18n",
ctx,{},{"key":"i18n_edit","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}function body_16(chk,ctx){return chk.write("\x3cli\x3e").helper("i18n",ctx,{},{"key":"i18n_featured_in","templateName":"templates/walter/article/index"}).write(" ").section(ctx.get(["associatedChannels"],false),ctx,{"block":body_17},{}).write("\x3c/li\x3e")}function body_17(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_18},{"href":body_19}).helper("sep",ctx,{"block":body_20},{})}
function body_18(chk,ctx){return chk.write('\x3cspan class\x3d"channel-link" itemprop\x3d"genre" content\x3d"/pulse/feed/channel/').reference(ctx.get(["vanityName"],false),ctx,"h").write('"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/span\x3e")}function body_19(chk,ctx){return chk.write("/pulse/feed/channel/").reference(ctx.get(["vanityName"],false),ctx,"h")}function body_20(chk,ctx){return chk.write(", ")}function body_21(chk,ctx){return chk.partial("templates/walter/shared/userBaseInfo",
ctx,{"isAuthor":"true","hideCounts":"true","showFollowButton":"true"})}function body_22(chk,ctx){return chk.notexists(ctx.get(["isGuest"],false),ctx,{"block":body_23},{})}function body_23(chk,ctx){return chk.write('\x3cdiv class\x3d"flag-article-wrapper"\x3e\x3ca href\x3d"#" class\x3d"flag-article"\x3e').helper("i18n",ctx,{},{"key":"i18n_report_this","templateName":"templates/walter/article/index"}).write("\x3c/a\x3e\x3c/div\x3e")}function body_24(chk,ctx){return chk.write('\x3cdiv class\x3d"tags-wrapper"\x3e\x3ch2\x3e').helper("i18n",
ctx,{},{"key":"i18n_tagged_in","templateName":"templates/walter/article/index"}).write('\x3c/h2\x3e\x3cul class\x3d"tags" itemprop\x3d"keywords"\x3e').section(ctx.get(["contentTags"],false),ctx,{"block":body_25},{}).write("\x3c/ul\x3e\x3c/div\x3e")}function body_25(chk,ctx){return chk.write('\x3cli\x3e\x3ca href\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" rel\x3d"tag"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/a\x3e\x3c/li\x3e")}function body_26(chk,ctx){return chk.partial("templates/walter/shared/userCard",
ctx,{})}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/article/index"]={"i18n_published_on":"Published on","i18n_featured_in":"Featured in:","i18n_report_this":"Report this","i18n_tagged_in":"Tagged in:"}})();
(function(){dust.register("templates/walter/article/indexSSREarlyFlush",body_0);var blocks={"content":body_1};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/server/baseApp",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdiv id\x3d"pulse-article-wrapper" class\x3d"ssr-wrapper" data-ssr\x3d"true"\x3e').partial("templates/walter/article/index",ctx,{}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/article/actionsHeader",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv id\x3d"actions-header-article"\x3e\x3cdiv class\x3d"content"\x3e\x3cdiv class\x3d"entity-wrapper"\x3e').helper("ne",ctx,{"block":body_1},{"key":ctx.get(["articleHeaderActions"],false),"value":"control"}).helper("select",ctx,{"block":body_3},{"key":ctx.get(["articleHeaderActions"],false)}).write('\x3c/div\x3e\x3cdiv class\x3d"social-stats-wrapper"\x3e\x3c/div\x3e').helper("eq",
ctx,{"block":body_10},{"key":ctx.get(["articleHeaderActions"],false),"value":"control"}).write('\x3c/div\x3e\x3cdiv class\x3d"aside"\x3e').exists(ctx.get(["showEditButton"],false),ctx,{"else":body_13,"block":body_15},{}).write("\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.section(ctx.get(["author"],false),ctx,{"block":body_2},{})}function body_2(chk,ctx){return chk.write('\x3cfigure class\x3d"entity-image entity-image-user"\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],
false),ctx,"h").write('"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.getPath(false,["author","name"]),ctx,"h").write('" /\x3e\x3c/a\x3e\x3c/figure\x3e')}function body_3(chk,ctx){return chk.helper("eq",ctx,{"block":body_4},{"value":"article"}).helper("eq",ctx,{"block":body_5},{"value":"author"})}function body_4(chk,ctx){return chk.write('\x3ch1 class\x3d"title"\x3e').reference(ctx.get(["title"],false),ctx,"h").write("\x3c/h1\x3e")}function body_5(chk,
ctx){return chk.section(ctx.get(["author"],false),ctx,{"block":body_6},{})}function body_6(chk,ctx){return chk.write('\x3ch1 class\x3d"entity-name"\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/a\x3e").exists(ctx.get(["isInfluencer"],false),ctx,{"block":body_7},{}).exists(ctx.get(["canFollow"],false),ctx,{"block":body_9},{}).write("\x3c/h1\x3e")}function body_7(chk,ctx){return chk.helper("img",ctx,
{},{"class":"influencer-icon article","path":"walter/shared/influencer_logo.svg","alt":body_8})}function body_8(chk,ctx){return chk.reference(ctx.get(["i18n_influencer"],false),ctx,"h")}function body_9(chk,ctx){return chk.write('\x3cspan class\x3d"follow-action"\x3e').partial("templates/walter/shared/buttonFollow",ctx,{"className":"button-link"}).write("\x3c/span\x3e")}function body_10(chk,ctx){return chk.write('\x3cul class\x3d"actions article-actions article-actions-control"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonLike",
ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e").notexists(ctx.get(["commentingDisabled"],false),ctx,{"block":body_11},{}).write("\x3cli\x3e").partial("templates/walter/shared/buttonShare",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e").notexists(ctx.get(["removeBookmark"],false),ctx,{"block":body_12},{}).write("\x3c/ul\x3e")}function body_11(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonComment",
ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e")}function body_12(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonBookmark",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e")}function body_13(chk,ctx){return chk.exists(ctx.get(["publishIn"],false),ctx,{"block":body_14},{})}function body_14(chk,ctx){return chk.partial("templates/walter/shared/buttonWriteArticle",ctx,{"className":"button-secondary-medium button-write"})}
function body_15(chk,ctx){return chk.write('\x3ca class\x3d"button-secondary-medium" href\x3d\'').reference(ctx.get(["editUrl"],false),ctx,"h").write("'\x3e").helper("i18n",ctx,{},{"key":"i18n_edit","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}return body_0})();
(function(){dust.register("templates/walter/article/likeFirst",body_0);function body_0(chk,ctx){return chk.write('\x3ch2 class\x3d"article-likes-title"\x3e').helper("i18n",ctx,{},{"key":"i18n_like_first","templateName":"templates/walter/article/likeFirst"}).write("\x3c/h2\x3e\x3cp\x3e").partial("templates/walter/shared/buttonLike",ctx,{"className":"button-primary-medium","isSmall":"true"}).write("\x3c/p\x3e")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/article/likeFirst"]={"i18n_like_first":"Be first to like this!"}})();
(function(){dust.register("templates/walter/article/metaData",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"dateIso"}).write('\x3cmeta property\x3d"og:type" content\x3d"article" class\x3d"meta-article"\x3e\x3cmeta name\x3d"twitter:card" content\x3d"summary_large_image"\x3e').exists(ctx.get(["canonical"],false),ctx,{"block":body_2},{}).section(ctx.get(["author"],false),ctx,{"block":body_3},{}).exists(ctx.get(["authorTwitterHandle"],false),ctx,{"block":body_6},
{}).exists(ctx.get(["title"],false),ctx,{"block":body_7},{}).exists(ctx.get(["url"],false),ctx,{"block":body_8},{}).exists(ctx.get(["summary"],false),ctx,{"block":body_9},{}).exists(ctx.get(["facebookAppId"],false),ctx,{"block":body_10},{}).exists(ctx.get(["facebookPages"],false),ctx,{"block":body_11},{}).section(ctx.get(["bestImage"],false),ctx,{"else":body_12,"block":body_13},{}).exists(ctx.get(["dateIso"],false),ctx,{"block":body_14},{}).section(ctx.get(["contentTags"],false),ctx,{"block":body_15},
{})}function body_1(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.iso","key":"fmt_date","date":ctx.get(["publishedDate"],false),"useTimeZone":ctx.get(["false"],false)})}function body_2(chk,ctx){return chk.write('\x3clink rel\x3d"canonical" href\x3d"').reference(ctx.get(["canonical"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_3(chk,ctx){return chk.exists(ctx.get(["publicProfileUrl"],false),ctx,{"block":body_4},{}).exists(ctx.get(["name"],false),ctx,{"block":body_5},
{})}function body_4(chk,ctx){return chk.write('\x3clink rel\x3d"author" href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_5(chk,ctx){return chk.write('\x3cmeta property\x3d"article:author" content\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_6(chk,ctx){return chk.write('\x3cmeta name\x3d"twitter:creator" content\x3d"@').reference(ctx.get(["authorTwitterHandle"],false),ctx,
"h").write('" class\x3d"meta-article"\x3e')}function body_7(chk,ctx){return chk.write('\x3cmeta property\x3d"og:title" content\x3d"').reference(ctx.get(["title"],false),ctx,"h").write('" class\x3d"meta-article"\x3e\x3cmeta name\x3d"twitter:title" content\x3d"').reference(ctx.get(["title"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_8(chk,ctx){return chk.write('\x3cmeta property\x3d"og:url" content\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}
function body_9(chk,ctx){return chk.write('\x3cmeta property\x3d"og:description" content\x3d"').reference(ctx.get(["summary"],false),ctx,"h").write('" class\x3d"meta-article"\x3e\x3cmeta property\x3d"twitter:description" content\x3d"').reference(ctx.get(["summary"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_10(chk,ctx){return chk.write('\x3cmeta property\x3d"fb:app_id" content\x3d"').reference(ctx.get(["facebookAppId"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}
function body_11(chk,ctx){return chk.write('\x3cmeta property\x3d"fb:pages" content\x3d"').reference(ctx.get(["facebookPages"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_12(chk,ctx){return chk.write('\x3cmeta property\x3d"og:image" content\x3d"').reference(ctx.getPath(false,["author","image","url"]),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_13(chk,ctx){return chk.write('\x3cmeta property\x3d"og:image" content\x3d"').reference(ctx.get(["url"],false),ctx,
"h").write('" class\x3d"meta-article"\x3e\x3cmeta property\x3d"og:image:height" content\x3d"').reference(ctx.get(["height"],false),ctx,"h").write('" class\x3d"meta-article"\x3e\x3cmeta property\x3d"og:image:width" content\x3d"').reference(ctx.get(["width"],false),ctx,"h").write('" class\x3d"meta-article"\x3e\x3cmeta name\x3d"twitter:image:src" content\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_14(chk,ctx){return chk.write('\x3cmeta property\x3d"article:published_time" content\x3d"').reference(ctx.get(["dateIso"],
false),ctx,"h").write('" class\x3d"meta-article"\x3e')}function body_15(chk,ctx){return chk.write('\x3cmeta property\x3d"article:tag" content\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('" class\x3d"meta-article"\x3e')}return body_0})();
(function(){dust.register("templates/walter/article/relatedContent",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"').exists(ctx.get(["showRelatedNumberedColumns"],false),ctx,{"block":body_1},{}).exists(ctx.get(["showRelatedSimpleVerticalList"],false),ctx,{"block":body_2},{}).exists(ctx.get(["showRelatedVerticalListNumberedColumns"],false),ctx,{"block":body_3},{}).write('"\x3e\x3cdiv class\x3d"related-content-wrapper"\x3e').exists(ctx.get(["reason"],false),ctx,{"block":body_4},
{}).write('\x3cul class\x3d"related-content-list"\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e')}function body_1(chk,ctx){return chk.write("numbered-columns")}function body_2(chk,ctx){return chk.write("simple-vertical-list")}function body_3(chk,ctx){return chk.write("simple-vertical-list")}function body_4(chk,ctx){return chk.write('\x3ch1 class\x3d"related-content-reason"\x3e').exists(ctx.get(["relatedContentKeys"],false),ctx,{"else":body_5,"block":body_6},{}).write("\x3c/h1\x3e")}function body_5(chk,ctx){return chk.reference(ctx.get(["reason"],
false),ctx,"h")}function body_6(chk,ctx){return chk.helper("select",ctx,{"block":body_7},{"key":ctx.get(["reason"],false)})}function body_7(chk,ctx){return chk.helper("eq",ctx,{"block":body_8},{"value":"PUBLISHED_POSTS_REASON_DEFAULT"}).helper("eq",ctx,{"block":body_11},{"value":"TOP_POSTS_REASON"}).helper("eq",ctx,{"block":body_12},{"value":"EDITORS_PICKS_REASON"})}function body_8(chk,ctx){return chk.exists(ctx.get(["authorName"],false),ctx,{"else":body_9,"block":body_10},{})}function body_9(chk,
ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_published_posts_reason_default","templateName":"templates/walter/article/relatedContent"})}function body_10(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_published_posts_reason_with_author","filters":"mk|s","templateName":"templates/walter/article/relatedContent"})}function body_11(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_top_posts_reason","templateName":"templates/walter/article/relatedContent"})}function body_12(chk,ctx){return chk.helper("i18n",
ctx,{},{"key":"i18n_editors_picks_reason","templateName":"templates/walter/article/relatedContent"})}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/article/relatedContent"]={"i18n_published_posts_reason_default":"Don't miss more articles by this author","i18n_top_posts_reason":"Top stories from authors on LinkedIn","i18n_editors_picks_reason":"Top stories from Editors Picks"}})();
(function(){dust.register("__i18n__templates/walter/article/relatedContent__i18n_published_posts_reason_with_author",body_0);function body_0(chk,ctx){return chk.write("Don't miss more articles by ").reference(ctx.get(["authorName"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/article/relatedContentExtension",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"numbered-columns"\x3e\x3cdiv class\x3d"related-content-wrapper"\x3e').exists(ctx.get(["reason"],false),ctx,{"block":body_1},{}).write('\x3cul class\x3d"related-content-list"\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e')}function body_1(chk,ctx){return chk.write('\x3ch1 class\x3d"related-content-reason"\x3e').reference(ctx.get(["reason"],false),ctx,"h").write("\x3c/h1\x3e")}
return body_0})();
(function(){dust.register("templates/walter/article/relatedContentItem",body_0);function body_0(chk,ctx){return chk.write('\x3cfigure class\x3d"related-content-image"\x3e').helper("eq",ctx,{"else":body_1,"block":body_4},{"key":ctx.get(["permalink"],false),"value":""}).write('\x3c/figure\x3e\x3cdiv class\x3d"item-number"\x3e\x3c/div\x3e\x3cspan class\x3d"related-content-wrapper"\x3e\x3ch2 class\x3d"related-content-title"\x3e').helper("eq",ctx,{"else":body_5,"block":body_8},{"key":ctx.get(["permalink"],
false),"value":""}).write('\x3c/h2\x3e\x3cul class\x3d"related-content-meta"\x3e\x3cli\x3e').helper("eq",ctx,{"else":body_9,"block":body_10},{"key":ctx.get(["permalink"],false),"value":""}).write("\x3c/li\x3e\x3c/ul\x3e\x3c/span\x3e")}function body_1(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_2},{"href":body_3})}function body_2(chk,ctx){return chk.write('\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.getPath(false,["image","caption"]),
ctx,"h").write('"\x3e')}function body_3(chk,ctx){return chk.reference(ctx.get(["permalink"],false),ctx,"h")}function body_4(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.getPath(false,["image","caption"]),ctx,"h").write('"\x3e\x3c/a\x3e')}function body_5(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_6},{"href":body_7})}function body_6(chk,
ctx){return chk.reference(ctx.get(["title"],false),ctx,"h",["et","s"])}function body_7(chk,ctx){return chk.reference(ctx.get(["permalink"],false),ctx,"h")}function body_8(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('"\x3e').reference(ctx.get(["title"],false),ctx,"h",["et","s"]).write("\x3c/a\x3e")}function body_9(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_on_linkedin","filters":"et|s","templateName":"templates/walter/article/relatedContentItem"})}
function body_10(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_third_party_url","filters":"et|s","templateName":"templates/walter/article/relatedContentItem"})}return body_0})();(function(){dust.register("__i18n__templates/walter/article/relatedContentItem__i18n_third_party_url",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["source"],false),ctx,"h")}return body_0})();
(function(){dust.register("__i18n__templates/walter/article/relatedContentItem__i18n_on_linkedin",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["source"],false),ctx,"h").write(" on LinkedIn")}return body_0})();
(function(){dust.register("templates/walter/article/sharePrompt",body_0);function body_0(chk,ctx){return chk.write('\x3cbutton class\x3d"dismiss"\x3e\x3cli-icon aria-hidden\x3d"true" type\x3d"cancel-icon"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"a11y-hidden"\x3e').helper("i18n",ctx,{},{"key":"i18n_dismiss","templateName":"templates/walter/article/sharePrompt"}).write("\x3c/span\x3e\x3c/button\x3e\x3ch2\x3e").helper("i18n",ctx,{},{"key":"i18n_congrats_post_published","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/h2\x3e\x3ch3\x3e").helper("i18n",
ctx,{},{"key":"i18n_share_to_broaden","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/h3\x3e").partial("templates/walter/shared/buttonShareFacebook",ctx,{}).partial("templates/walter/shared/buttonShareTwitter",ctx,{})}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/article/sharePrompt"]={"i18n_dismiss":"Dismiss"}})();
(function(){dust.register("templates/walter/article/articleEnd",body_0);function body_0(chk,ctx){return chk.write("\x3ch3\x3e").helper("i18n",ctx,{},{"key":"i18n_want_more","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/h3\x3e\x3ca href\x3d"/" class\x3d"button-primary-medium"\x3e').helper("i18n",ctx,{},{"key":"i18n_discover_stories","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}return body_0})();
(function(){dust.register("templates/walter/author/actionsHeader",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"layout-container-large"\x3e').notexists(ctx.get(["removeFeed"],false),ctx,{"block":body_1},{}).write('\x3cdiv class\x3d"content ').exists(ctx.get(["removeFeed"],false),ctx,{"block":body_2},{}).write('"\x3e').partial("templates/walter/author/authorActions",ctx,{}).write('\x3cfigure class\x3d"entity-image entity-image-user"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,
["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('" /\x3e\x3c/figure\x3e\x3ch1 class\x3d"entity-name"\x3e').reference(ctx.get(["name"],false),ctx,"h").write(" ").exists(ctx.get(["isInfluencer"],false),ctx,{"block":body_3},{}).write("\x3c/h1\x3e\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.partial("templates/walter/shared/buttonBackToFeed",ctx,{})}function body_2(chk,ctx){return chk.write("no-feed-nav")}function body_3(chk,ctx){return chk}
return body_0})();
(function(){dust.register("templates/walter/author/authorActions",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"actions author-actions"\x3e').exists(ctx.get(["canFollow"],false),ctx,{"block":body_1},{}).write('\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('" class\x3d"button-action button-secondary-medium"\x3e').helper("i18n",ctx,{},{"key":"i18n_view_profile","templateName":"templates/walter/author/authorActions"}).write("\x3c/a\x3e\x3c/div\x3e")}
function body_1(chk,ctx){return chk.partial("templates/walter/shared/buttonFollow",ctx,{"className":"button-primary-medium"})}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/author/authorActions"]={"i18n_view_profile":"View profile"}})();
(function(){dust.register("templates/walter/author/banner",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"banner-bg').exists(ctx.getPath(false,["backgroundImage","url"]),ctx,{"block":body_1},{}).write('" role\x3d"banner"').exists(ctx.getPath(false,["backgroundImage","url"]),ctx,{"block":body_2},{}).write("\x3e").notexists(ctx.get(["removeFeed"],false),ctx,{"block":body_3},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write(" has-user-bg")}function body_2(chk,
ctx){return chk.write(" style\x3d\"background-image: url('").reference(ctx.getPath(false,["backgroundImage","url"]),ctx,"h",["mk","et","s"]).write("') !important;\"")}function body_3(chk,ctx){return chk.write('\x3cdiv class\x3d"actions"\x3e').partial("templates/walter/shared/buttonBackToFeed",ctx,{"isInverse":"true"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/author/header",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"author-profile"\x3e\x3cfigure class\x3d"author-image"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('" /\x3e\x3c/figure\x3e\x3ch1 class\x3d"primary-headline"\x3e').reference(ctx.get(["name"],false),ctx,"h").write(" ").exists(ctx.get(["isInfluencer"],false),ctx,{"block":body_1},
{}).write('\x3c/h1\x3e\x3ch2 class\x3d"secondary-headline"\x3e').reference(ctx.get(["headline"],false),ctx,"h").write("\x3c/h2\x3e\x3cnav\x3e").partial("templates/walter/shared/entityCountsNav",ctx,{}).write("\x3c/nav\x3e").partial("templates/walter/author/authorActions",ctx,{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk}return body_0})();
(function(){dust.register("templates/walter/author/index",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv id\x3d"actions-header-author" class\x3d"actions-header slider"\x3e\x3c/div\x3e\x3cdiv id\x3d"author-header-region"\x3e\x3c/div\x3e\x3cdiv id\x3d"author-content-region" tabindex\x3d"-1" data-li-main-content\x3e').partial("templates/walter/shared/contentRegionLoadingView",ctx,{"initialLoader":"true","js":"true"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/author/indexSSREarlyFlush",body_0);var blocks={"content":body_1};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/server/baseApp",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdiv id\x3d"pulse-author-wrapper" class\x3d"author-wrapper ssr-wrapper" data-ssr\x3d"true"\x3e').partial("templates/walter/author/index",ctx,{}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/index",body_0);function body_0(chk,ctx){return chk.write('  \x3cdiv id\x3d"feed-header-region"\x3e\x3c/div\x3e\x3cdiv id\x3d"actions-header-feed-region"\x3e\x3c/div\x3e\x3cdiv id\x3d"feed-nav-region"\x3e\x3c/div\x3e\x3cdiv id\x3d"feed-stream-region" tabindex\x3d"-1" data-li-main-content\x3e').partial("templates/walter/shared/contentRegionLoadingView",ctx,{"initialLoader":"true"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/indexSSREarlyFlush",body_0);var blocks={"content":body_1};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/server/baseApp",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdiv id\x3d"pulse-feed-wrapper" class\x3d"feed-wrapper ssr-wrapper" data-ssr\x3d"true"\x3e').partial("templates/walter/feed/index",ctx,{}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/savedItem",body_0);var blocks={"itemActions":body_2};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("addToContext",ctx,{"block":body_1},{"name":"title"}).write('\x3cdiv class\x3d"feed-item-report-this"\x3e').partial("templates/walter/shared/reportDropdown",ctx,{}).write("\x3c/div\x3e").partial("templates/walter/feed/baseArticleContent",ctx,{}).write('\x3csection id\x3d"comments"\x3e\x3c/section\x3e')}function body_1(chk,ctx){ctx=
ctx.shiftBlocks(blocks);return chk.reference(ctx.getPath(false,["summary","title"]),ctx,"h")}function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cul class\x3d"feed-item-actions"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonLike",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3cli\x3e").partial("templates/walter/shared/buttonShare",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e").notexists(ctx.get(["removeBookmark"],
false),ctx,{"block":body_3},{}).write("\x3c/ul\x3e")}function body_3(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonBookmark",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/header",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"author-profile"\x3e\x3cfigure class\x3d"author-image"\x3e\x3cimg alt\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('" src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('"/\x3e\x3c/figure\x3e\x3ch1 class\x3d"primary-headline"\x3e').helper("i18n",ctx,{},{"key":"i18n_welcome","filter":"et|s","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/h1\x3e\x3ch2 class\x3d"secondary-headline"\x3e').helper("i18n",
ctx,{},{"key":"i18n_pulse_summary","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/h2\x3e\x3cnav\x3e").partial("templates/walter/shared/entityCountsNav",ctx,{"hidePostsLink":"true"}).write("\x3c/nav\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/actionsHeader",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"layout-container-large" id\x3d"actions-header-feed"\x3e\x3cdiv class\x3d"content"\x3e').partial("templates/walter/feed/nav",ctx,{}).write('\x3c/div\x3e\x3cdiv class\x3d"actions"\x3e').partial("templates/walter/shared/buttonWriteArticle",ctx,{"className":"button-secondary-medium"}).write("\x3c/div\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/nav",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_your_daily","output":"json","templateName":"templates/walter/feed/nav"}).write('\x3cdiv class\x3d"filters-dropdown"\x3e\x3cspan class\x3d"daily-news"\x3e').reference(ctx.get(["i18n_your_daily"],false),ctx,"h").write('\x3c/span\x3e\x3cbutton href\x3d"#" class\x3d"filters-trigger hidden"\x3e\x3cli-icon type\x3d"chevron-down-icon" size\x3d"small"\x3e\x3c/li-icon\x3e\x3c/button\x3e\x3cul class\x3d"filters-list filters-menu" data-impr-trk-id\x3d"test-id"\x3e\x3cli\x3e\x3ca tabindex\x3d"0"\x3eBanking \x26 Finance\x3c/a\x3e\x3c/li\x3e\x3cli\x3e\x3ca tabindex\x3d"0"\x3eNews Related to Your Company\x3c/a\x3e\x3c/li\x3e\x3cli\x3e').helper("linkTo",
ctx,{"block":body_1},{"href":"feed/connections-in-the-news"}).write("\x3c/li\x3e\x3cli\x3e").helper("linkTo",ctx,{"block":body_2},{"href":"feed/trending-in-industry/1"}).write('\x3c/li\x3e\x3cli\x3e\x3ca tabindex\x3d"0"\x3ePublished by Your Network\x3c/a\x3e\x3c/li\x3e\x3cli\x3e\x3ca tabindex\x3d"0" href\x3d"').helper("url",ctx,{},{"alias":"com.linkedin.news.controllers.PresentationController.catalog"}).write('"\x3eDiscover More\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e')}function body_1(chk,ctx){return chk.write("Connections in the News")}
function body_2(chk,ctx){return chk.write("Trending in industry")}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/feed/nav"]={"i18n_your_daily":"Your Daily News"}})();
(function(){dust.register("templates/walter/feed/feedItem",body_0);var blocks={"itemActions":body_8};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("addToContext",ctx,{"block":body_1},{"name":"canFlag"}).helper("addToContext",ctx,{"block":body_3},{"name":"title"}).section(ctx.get(["reason"],false),ctx,{"block":body_4},{}).helper("eq",ctx,{"block":body_5},{"key":ctx.get(["whichFeed"],false),"value":"author"}).helper("select",ctx,{"block":body_6},{"key":ctx.get(["feedItemType"],
false)}).write('\x3csection id\x3d"comments" class\x3d"feed"\x3e\x3c/section\x3e')}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("eq",ctx,{"block":body_2},{"key":ctx.get(["feedItemType"],false),"value":"CONTENT"})}function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.reference(ctx.getPath(false,["summary","author","isMember"]),ctx,"h")}function body_3(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.reference(ctx.getPath(false,["summary","title"]),ctx,"h")}function body_4(chk,
ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/feed/reason",ctx,{"canFlag":ctx.get(["canFlag"],false)})}function body_5(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdiv class\x3d"feed-item-report-this"\x3e').partial("templates/walter/shared/reportDropdown",ctx,{}).write("\x3c/div\x3e")}function body_6(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("eq",ctx,{"block":body_7},{"value":"CONTENT"}).helper("eq",ctx,{"block":body_11},{"value":"FOLLOW_RECOMMENDATION"})}
function body_7(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/feed/baseArticleContent",ctx,{})}function body_8(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cul class\x3d"feed-item-actions"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonLike",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e").exists(ctx.get(["feedComments"],false),ctx,{"block":body_9},{}).write("\x3cli\x3e").partial("templates/walter/shared/buttonShare",
ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e").notexists(ctx.get(["removeBookmark"],false),ctx,{"block":body_10},{}).write("\x3c/ul\x3e")}function body_9(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonComment",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e")}function body_10(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonBookmark",
ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e")}function body_11(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/feed/followRecommendations",ctx,{})}return body_0})();
(function(){dust.register("templates/walter/feed/baseArticleContent",body_0);function body_0(chk,ctx){return chk.partial("templates/walter/shared/formatters/globalFormatters",ctx,{}).helper("i18n",ctx,{},{"key":"i18n_influencer","output":"json","templateName":"templates/walter/feed/baseArticleContent"}).helper("i18n",ctx,{},{"key":"i18n_untitled","output":"json","templateName":"templates/walter/feed/baseArticleContent"}).helper("addToContext",ctx,{"block":body_1},{"name":"truncatedHeadline"}).helper("addToContext",
ctx,{"block":body_4},{"name":"dateIso"}).helper("addToContext",ctx,{"block":body_5},{"name":"dateMdyLong"}).write('\x3carticle itemscope itemtype\x3d"http://schema.org/Article"').exists(ctx.get(["hasThumbnail"],false),ctx,{"block":body_6},{}).write("\x3e").section(ctx.get(["summary"],false),ctx,{"block":body_7},{}).block(ctx.getBlock("itemActions"),ctx,{},{}).write("\x3c/article\x3e")}function body_1(chk,ctx){return chk.exists(ctx.getPath(false,["summary","title"]),ctx,{"else":body_2,"block":body_3},
{})}function body_2(chk,ctx){return chk.reference(ctx.get(["i18n_untitled"],false),ctx,"h")}function body_3(chk,ctx){return chk.helper("truncate",ctx,{},{"value":ctx.getPath(false,["summary","title"]),"length":"100"})}function body_4(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.iso","key":"fmt_date","date":ctx.getPath(false,["summary","publishedDate"]),"useTimeZone":ctx.get(["false"],false)})}function body_5(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.mdy.long","key":"fmt_date",
"date":ctx.getPath(false,["summary","publishedDate"]),"useTimeZone":ctx.get(["false"],false)})}function body_6(chk,ctx){return chk.write(' class\x3d"has-thumbnail"')}function body_7(chk,ctx){return chk.write('\x3ch3 class\x3d"headline persist-track" itemprop\x3d"headline"\x3e').helper("select",ctx,{"block":body_8},{"key":ctx.get(["whichFeed"],false)}).write('\x3c/h3\x3e\x3ch4 class\x3d"meta"\x3e').helper("select",ctx,{"block":body_15},{"key":ctx.get(["whichFeed"],false)}).block(ctx.getBlock("draftUpdated"),
ctx,{},{}).write("\x3c/h4\x3e").block(ctx.getBlock("publishedStats"),ctx,{},{}).write('\x3cdiv class\x3d"feed-item-content"\x3e').exists(ctx.get(["bestImage"],false),ctx,{"block":body_24},{}).exists(ctx.get(["hasSummary"],false),ctx,{"block":body_43},{}).write("\x3c/div\x3e")}function body_8(chk,ctx){return chk.helper("eq",ctx,{"else":body_9,"block":body_14},{"value":"drafts"})}function body_9(chk,ctx){return chk.exists(ctx.getPath(false,["author","isMember"]),ctx,{"else":body_10,"block":body_11},
{})}function body_10(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["shortUrl"],false),ctx,"h").write('" target\x3d"_blank"\x3e').reference(ctx.get(["truncatedHeadline"],false),ctx,"h",["et","s"]).write("\x3c/a\x3e")}function body_11(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_12},{"href":body_13})}function body_12(chk,ctx){return chk.reference(ctx.get(["truncatedHeadline"],false),ctx,"h",["et","s"])}function body_13(chk,ctx){return chk.reference(ctx.get(["permalink"],false),
ctx,"h")}function body_14(chk,ctx){return chk.write("\x3ca href\x3d'").helper("url",ctx,{},{"alias":"com.linkedin.pulse.controllers.EditorController.editArticle","arg0":ctx.get(["pubArticleId"],false)}).write('\' target\x3d"_blank"\x3e').reference(ctx.get(["truncatedHeadline"],false),ctx,"h",["et","s"]).write("\x3c/a\x3e")}function body_15(chk,ctx){return chk.helper("eq",ctx,{"block":body_16},{"value":"home"}).helper("eq",ctx,{"block":body_22},{"value":"published"}).helper("eq",ctx,{"block":body_23},
{"value":"author"})}function body_16(chk,ctx){return chk.write('\x3cspan class\x3d"author" itemprop\x3d"author"\x3e').exists(ctx.getPath(false,["author","isMember"]),ctx,{"else":body_17,"block":body_18},{}).write("\x3c/span\x3e")}function body_17(chk,ctx){return chk.reference(ctx.getPath(false,["author","name"]),ctx,"h")}function body_18(chk,ctx){return chk.section(ctx.get(["author"],false),ctx,{"block":body_19},{})}function body_19(chk,ctx){return chk.exists(ctx.get(["isInfluencer"],false),ctx,{"else":body_20,
"block":body_21},{})}function body_20(chk,ctx){return chk.helper("i18n",ctx,{},{"filter":"|mk|s","key":"i18n_full_headline","templateName":"templates/walter/feed/baseArticleContent"})}function body_21(chk,ctx){return chk.helper("i18n",ctx,{},{"filter":"|mk|s","key":"i18n_full_headline_influencer","templateName":"templates/walter/feed/baseArticleContent"})}function body_22(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_published_on","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3ctime itemprop\x3d"datePublished" datetime\x3d"').reference(ctx.get(["dateIso"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["dateMdyLong"],false),ctx,"h").write("\x3c/time\x3e")}function body_23(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_published_on","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3ctime itemprop\x3d"datePublished" datetime\x3d"').reference(ctx.get(["dateIso"],false),ctx,"h").write('"\x3e').reference(ctx.get(["dateMdyLong"],false),ctx,"h").write("\x3c/time\x3e")}function body_24(chk,ctx){return chk.write('\x3cfigure class\x3d"article-img-wrapper persist-track').exists(ctx.get(["feedMprImages"],
false),ctx,{"block":body_25},{}).write('"\x3e').helper("select",ctx,{"block":body_27},{"key":ctx.get(["whichFeed"],false)}).write("\x3c/figure\x3e")}function body_25(chk,ctx){return chk.exists(ctx.getPath(false,["author","isMember"]),ctx,{"block":body_26},{})}function body_26(chk,ctx){return chk.write(" member-post")}function body_27(chk,ctx){return chk.helper("eq",ctx,{"else":body_28,"block":body_39},{"value":"drafts"})}function body_28(chk,ctx){return chk.exists(ctx.getPath(false,["author","isMember"]),
ctx,{"else":body_29,"block":body_33},{})}function body_29(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["shortUrl"],false),ctx,"h").write('" target\x3d"_blank"\x3e').exists(ctx.get(["feedMprImages"],false),ctx,{"else":body_30,"block":body_31},{}).write("\x3c/a\x3e")}function body_30(chk,ctx){return chk.write('\x3cimg class\x3d"article-img" itemprop\x3d"image" src\x3d"').reference(ctx.getPath(false,["bestImage","url"]),ctx,"h").write('" alt\x3d"" /\x3e')}function body_31(chk,ctx){return chk.write('\x3cimg class\x3d"article-img').exists(ctx.get(["feedMprImages"],
false),ctx,{"block":body_32},{}).write('" itemprop\x3d"image" src\x3d"//:0" data-li-src\x3d"').reference(ctx.getPath(false,["bestImage","url"]),ctx,"h").write('" alt\x3d"" /\x3e')}function body_32(chk,ctx){return chk.write(" loading")}function body_33(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_34},{"href":body_38})}function body_34(chk,ctx){return chk.exists(ctx.get(["feedMprImages"],false),ctx,{"else":body_35,"block":body_36},{})}function body_35(chk,ctx){return chk.write('\x3cimg class\x3d"article-img" itemprop\x3d"image" src\x3d"').reference(ctx.getPath(false,
["bestImage","url"]),ctx,"h").write('" alt\x3d"" /\x3e')}function body_36(chk,ctx){return chk.write('\x3cimg class\x3d"article-img').exists(ctx.get(["feedMprImages"],false),ctx,{"block":body_37},{}).write('" itemprop\x3d"image" src\x3d"//:0" data-li-src\x3d"').reference(ctx.getPath(false,["bestImage","url"]),ctx,"h").write('" alt\x3d"" /\x3e')}function body_37(chk,ctx){return chk.write(" loading")}function body_38(chk,ctx){return chk.reference(ctx.get(["permalink"],false),ctx,"h")}function body_39(chk,
ctx){return chk.write("\x3ca href\x3d'").helper("url",ctx,{},{"alias":"com.linkedin.pulse.controllers.EditorController.editArticle","arg0":ctx.get(["pubArticleId"],false)}).write('\' target\x3d"_blank"\x3e').exists(ctx.get(["feedMprImages"],false),ctx,{"else":body_40,"block":body_41},{}).write("\x3c/a\x3e")}function body_40(chk,ctx){return chk.write('\x3cimg class\x3d"article-img" itemprop\x3d"image" src\x3d"').reference(ctx.getPath(false,["bestImage","url"]),ctx,"h").write('" alt\x3d"" /\x3e')}function body_41(chk,
ctx){return chk.write('\x3cimg class\x3d"article-img').exists(ctx.get(["feedMprImages"],false),ctx,{"block":body_42},{}).write('" itemprop\x3d"image" src\x3d"//:0" data-li-src\x3d"').reference(ctx.getPath(false,["bestImage","url"]),ctx,"h").write('"  alt\x3d"" /\x3e')}function body_42(chk,ctx){return chk.write(" loading")}function body_43(chk,ctx){return chk.write('\x3cp class\x3d"summary" itemprop\x3d"description"\x3e').helper("format",ctx,{},{"type":"string.truncate","value":ctx.get(["summary"],
false),"limit":190}).write("\x3c/p\x3e")}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/feed/baseArticleContent"]={"i18n_influencer":"Influencer","i18n_untitled":"Untitled"}})();
(function(){dust.register("__i18n__templates/walter/feed/baseArticleContent__i18n_full_headline_influencer",body_0);function body_0(chk,ctx){return chk.write("Published on LinkedIn by ").reference(ctx.get(["name"],false),ctx,"h").write(' \x3cspan class\x3d"influencer-icon-bg"\x3e\x3c/span\x3e')}return body_0})();
(function(){dust.register("__i18n__templates/walter/feed/baseArticleContent__i18n_full_headline",body_0);function body_0(chk,ctx){return chk.write("Published on LinkedIn by ").reference(ctx.get(["name"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/feed/publishedArticleContent",body_0);var blocks={"publishedDate":body_2,"publishedStats":body_3};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("addToContext",ctx,{"block":body_1},{"name":"view_stats_for_title"}).partial("templates/walter/feed/baseArticleContent",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("i18n",ctx,{},{"key":"i18n_view_stats_for_title","templateName":"templates/walter/feed/publishedArticleContent"})}
function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("i18n",ctx,{},{"key":"i18n_published_on","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3ctime itemprop\x3d"datePublished" datetime\x3d"').reference(ctx.get(["dateIso"],false),ctx,"h").write('"\x3e').reference(ctx.get(["dateMdyLong"],false),ctx,"h").write("\x3c/time\x3e")}function body_3(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdiv class\x3d"stats-wrapper"\x3e').partial("templates/walter/shared/socialStatsCounts",
ctx,{"showViews":"true","showStats":"true"}).write("\x3c/div\x3e")}return body_0})();(function(){dust.register("__i18n__templates/walter/feed/publishedArticleContent__i18n_view_stats_for_title",body_0);function body_0(chk,ctx){return chk.write("View stats for ").reference(ctx.get(["title"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/feed/followRecommendations",body_0);function body_0(chk,ctx){return chk.notexists(ctx.get(["reason"],false),ctx,{"block":body_1},{}).write('\x3cul class\x3d"follow-recommendations"\x3e\x3c/ul\x3e\x3cp\x3e\x3ca class\x3d"discover" href\x3d"').helper("url",ctx,{},{"alias":"com.linkedin.news.controllers.PresentationController.catalog"}).write('"\x3e').helper("i18n",ctx,{},{"key":"i18n_discover","templateName":"templates/walter/feed/followRecommendations"}).write("\x3c/a\x3e\x3c/p\x3e")}
function body_1(chk,ctx){return chk.write('\x3cp class\x3d"reason"\x3e').reference(ctx.get(["text"],false),ctx,"h").write("\x3c/p\x3e")}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/feed/followRecommendations"]={"i18n_discover":"Discover more to follow"}})();
(function(){dust.register("templates/walter/feed/reason",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"reason-group"\x3e\x3cp class\x3d"reason"\x3e').exists(ctx.get(["textWithPivots"],false),ctx,{"else":body_1,"block":body_2},{}).write("\x3c/p\x3e").exists(ctx.get(["createdDate"],false),ctx,{"block":body_3},{}).partial("templates/walter/shared/reportDropdown",ctx,{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.reference(ctx.get(["text"],false),ctx,"h")}function body_2(chk,
ctx){return chk.reference(ctx.get(["textWithPivots"],false),ctx,"h",["mk","s"])}function body_3(chk,ctx){return chk.write('\x3ctime aria-hidden\x3d"true" itemprop\x3d"datePublished"\x3e').helper("timeAgo",ctx,{},{"time":ctx.get(["createdDate"],false)}).write('\x3c/time\x3e\x3ctime class\x3d"visually-hidden" itemprop\x3d"datePublished"\x3e').helper("timeAgo",ctx,{},{"time":ctx.get(["createdDate"],false),"long":"true"}).write("\x3c/time\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/pivotEntity",body_0);function body_0(chk,ctx){return chk.helper("select",ctx,{"block":body_1},{"key":ctx.get(["entityType"],false)})}function body_1(chk,ctx){return chk.helper("eq",ctx,{"block":body_2},{"value":"MEMBER"}).helper("eq",ctx,{"block":body_3},{"value":"COMPANY"}).helper("eq",ctx,{"block":body_4},{"value":"CHANNEL"}).helper("eq",ctx,{"block":body_6},{"value":"INDUSTRY"})}function body_2(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/a\x3e")}function body_3(chk,ctx){return chk.write('\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/a\x3e")}function body_4(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_5},{"href":ctx.get(["publicProfileUrl"],false)})}function body_5(chk,ctx){return chk.reference(ctx.get(["name"],false),ctx,"h")}function body_6(chk,
ctx){return chk.helper("linkTo",ctx,{"block":body_7},{"href":ctx.get(["publicProfileUrl"],false)})}function body_7(chk,ctx){return chk.reference(ctx.get(["name"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/feed/banner",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"banner-bg" role\x3d"banner"\x3e\x3c/div\x3e\x3cdiv class\x3d"actions"\x3e\x3cspan class\x3d"prompt"\x3e').helper("i18n",ctx,{},{"key":"i18n_have_something","templateName":"templates/walter/feed/banner"}).write("\x3c/span\x3e").partial("templates/walter/shared/buttonWriteArticle",ctx,{"className":"button-secondary-medium-inverse"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/feed/banner"]={"i18n_have_something":"Have something to say?"}})();
(function(){dust.register("templates/walter/feed/feedEnd",body_0);function body_0(chk,ctx){return chk.write("\x3ch3\x3e").helper("i18n",ctx,{},{"key":"i18n_caught_up","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3cspan\x3e").helper("i18n",ctx,{},{"key":"i18n_check_back","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/span\x3e\x3c/h3\x3e\x3ca href\x3d"').helper("url",ctx,{},{"alias":"com.linkedin.news.controllers.PresentationController.catalog"}).write('" class\x3d"button-primary-medium"\x3e').helper("i18n",
ctx,{},{"key":"i18n_discover","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}return body_0})();
(function(){dust.register("templates/walter/feed/feedLoadingMoreItems",body_0);function body_0(chk,ctx){return chk.write('\x3ch3 class\x3d"visually-hidden"\x3e').helper("i18n",ctx,{},{"key":"i18n_loading_more_items","templateName":"templates/walter/feed/feedLoadingMoreItems"}).write('\x3c/h3\x3e\x3cli-icon type\x3d"loader" aria-hidden\x3d"true"\x3e\x3c/li-icon\x3e')}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/feed/feedLoadingMoreItems"]={"i18n_loading_more_items":"Loading more items"}})();
(function(){dust.register("templates/walter/feed/publishedItem",body_0);var blocks={"itemActions":body_2};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("addToContext",ctx,{"block":body_1},{"name":"title"}).partial("templates/walter/feed/publishedArticleContent",ctx,{}).write('\x3csection id\x3d"comments"\x3e\x3c/section\x3e')}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.reference(ctx.getPath(false,["summary","title"]),ctx,"h")}function body_2(chk,ctx){ctx=
ctx.shiftBlocks(blocks);return chk.write('\x3cul class\x3d"feed-item-actions"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonShare",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3cli\x3e").partial("templates/walter/shared/buttonEdit",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3cli\x3e").partial("templates/walter/shared/buttonDelete",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3c/ul\x3e")}
return body_0})();
(function(){dust.register("templates/walter/feed/draftsItem",body_0);var blocks={"draftUpdated":body_1,"itemActions":body_2};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/shared/formatters/globalFormatters",ctx,{}).partial("templates/walter/feed/baseArticleContent",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("i18n",ctx,{},{"key":"i18n_draft_modified","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3ctime itemprop\x3d"updatedDate" datetime\x3d"').reference(ctx.get(["dateIso_draft_updated"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["dateMdyLong_draft_updated"],false),ctx,"h").write("\x3c/time\x3e")}function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cul class\x3d"feed-item-actions"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonEdit",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3cli\x3e").partial("templates/walter/shared/buttonDelete",ctx,{"className":"button-tertiary-small-muted","isSmall":"true"}).write("\x3c/li\x3e\x3c/ul\x3e")}
return body_0})();
(function(){dust.register("templates/walter/feed/publishedEmpty",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"feed-empty-view"\x3e\x3ch2\x3e').helper("i18n",ctx,{},{"key":"i18n_published_empty_header","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/h2\x3e\x3ch4\x3e").helper("i18n",ctx,{},{"key":"i18n_published_empty","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/h4\x3e\x3cdiv class\x3d"actions"\x3e\x3ca class\x3d"button-primary-medium" href\x3d\'').helper("url",
ctx,{},{"alias":"com.linkedin.pulse.controllers.EditorController.newArticle"}).write('\' target\x3d"_blank"\x3e').helper("i18n",ctx,{},{"key":"i18n_start_writing","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/a\x3e\x3c/div\x3e\x3cdiv id\x3d"video-region"\x3e\x3c/div\x3e\x3c/div\x3e')}return body_0})();
(function(){dust.register("templates/walter/feed/savedEmpty",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"feed-empty-view"\x3e\x3ch2\x3e').helper("i18n",ctx,{},{"key":"i18n_saved_empty_header","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/h2\x3e").helper("img",ctx,{},{"path":"walter/feed/no_saved_articles.png","alt":body_1}).write("\x3ch4\x3e").helper("i18n",ctx,{},{"key":"i18n_saved_empty_when_you_save","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3cbr\x3e").helper("i18n",
ctx,{},{"key":"i18n_saved_empty_read_later","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/h4\x3e\x3cdiv class\x3d"actions"\x3e').helper("linkTo",ctx,{"block":body_2},{"href":"/","className":"button-primary-medium"}).write("\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.reference(ctx.get(["i18n_saved_articles_here"],false),ctx,"h")}function body_2(chk,ctx){return chk.reference(ctx.get(["i18n_read_more_articles"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/pivot/index",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv id\x3d"feed-header-region"\x3e\x3c/div\x3e\x3cdiv id\x3d"actions-header-pivot" class\x3d"actions-header slider"\x3e\x3c/div\x3e\x3cdiv id\x3d"feed-stream-region"\x3e\x3c/div\x3e')}return body_0})();
(function(){dust.register("templates/walter/pivot/banner",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"followerCount"}).write('\x3cdiv class\x3d"banner-bg" role\x3d"banner"\x3e\x3c/div\x3e').notexists(ctx.get(["removeFeed"],false),ctx,{"block":body_4},{}).write('\x3cdiv class\x3d"banner-content"\x3e\x3ch1\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/h1\x3e").helper("gt",ctx,{"block":body_5},{"key":ctx.get(["followerCount"],false),
"value":"0"}).notexists(ctx.get(["isGuest"],false),ctx,{"block":body_6},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.notexists(ctx.get(["totalFollowers"],false),ctx,{"else":body_2,"block":body_3},{})}function body_2(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalFollowers"],false)})}function body_3(chk,ctx){return chk.write("0")}function body_4(chk,ctx){return chk.write('\x3cdiv class\x3d"actions"\x3e').partial("templates/walter/shared/buttonBackToFeed",
ctx,{"isInverse":"true"}).write("\x3c/div\x3e")}function body_5(chk,ctx){return chk.write('\x3cp class\x3d"followers"\x3e').helper("i18n",ctx,{},{"key":"i18n_pivot_total_followers","templateName":"templates/walter/pivot/banner"}).write("\x3c/p\x3e")}function body_6(chk,ctx){return chk.partial("templates/walter/shared/buttonFollow",ctx,{"isFollowing":ctx.get(["isFollowing"],false),"className":"button-secondary-medium-inverse"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/pivot/banner__i18n_pivot_total_followers",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["followerCount"],false),ctx,"h").write(" ").helper("choice",ctx,{},{"key":ctx.get(["followerCount"],false),"singular":"follower","plural":"followers"})}return body_0})();
(function(){dust.register("templates/walter/pivot/actionsHeader",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"layout-container-large"\x3e').notexists(ctx.get(["removeFeed"],false),ctx,{"block":body_1},{}).write('\x3cdiv class\x3d"content ').exists(ctx.get(["removeFeed"],false),ctx,{"block":body_2},{}).write('"\x3e\x3cdiv class\x3d"actions"\x3e').partial("templates/walter/shared/buttonFollow",ctx,{"className":"button-primary-medium","isFollowing":ctx.get(["isFollowing"],false)}).write('\x3c/div\x3e\x3ch1 class\x3d"pivot-name"\x3e').reference(ctx.get(["name"],
false),ctx,"h").write("\x3c/h1\x3e\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.partial("templates/walter/shared/buttonBackToFeed",ctx,{})}function body_2(chk,ctx){return chk.write("no-feed-nav")}return body_0})();
(function(){dust.register("templates/walter/layouts/application",body_0);var blocks={"head":body_1,"body":body_2,"foot":body_3};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("__layout__",ctx,{})}function body_1(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cmeta name\x3d"viewport" content\x3d"width\x3ddevice-width, initial-scale\x3d1, maximum-scale\x3d1"\x3e').block(ctx.getBlock("meta"),ctx,{},{}).helper("linkedInDustScriptTag",ctx,{},{}).helper("cssAsset",ctx,
{},{"path":"stylesheets/walter/styles.css"})}function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("initContext",ctx,{},{}).helper("createCsrfInput",ctx,{},{}).partial("templates/walter/server/baseApp",ctx,{})}function body_3(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.block(ctx.getBlock("js"),ctx,{"block":body_4},{})}function body_4(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.partial("templates/walter/server/baseData",ctx,{}).exists(ctx.getPath(false,["embeddedConfigJson",
"lixes","agoraRevamp"]),ctx,{"else":body_5,"block":body_6},{}).partial("templates/walter/server/artDeco",ctx,{})}function body_5(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("concatJs",ctx,{},{"paths":"agoraScripts,agoraTemplates,walterDustHelpers,walterTemplates,walterDist"})}function body_6(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("concatJs",ctx,{},{"paths":"walterDustHelpers,walterTemplates,agoraScriptDependencies,agoraScriptsV2,agoraTemplatesV2,walterDist"})}return body_0})();
(function(){dust.register("templates/walter/shared/contentRegionLoadingView",body_0);function body_0(chk,ctx){return chk.write('\x3cli-icon type\x3d"loader" ').exists(ctx.get(["initialLoader"],false),ctx,{"block":body_1},{}).write("\x3e\x3c/li-icon\x3e")}function body_1(chk,ctx){return chk.write('class\x3d"initial-loader"')}return body_0})();
(function(){dust.register("templates/walter/shared/buttonBackToFeed",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_daily_news","output":"json","templateName":"templates/walter/shared/buttonBackToFeed"}).helper("addToContext",ctx,{"block":body_1},{"name":"logoClassName"}).write('\x3cdiv class\x3d"branding"\x3e').notexists(ctx.get(["removeFeed"],false),ctx,{"else":body_3,"block":body_4},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write("pulse-logo").exists(ctx.get(["isInverse"],
false),ctx,{"block":body_2},{})}function body_2(chk,ctx){return chk.write(" inverse")}function body_3(chk,ctx){return chk.reference(ctx.get(["i18n_daily_news"],false),ctx,"h")}function body_4(chk,ctx){return chk.helper("linkTo",ctx,{"block":body_5},{"href":"/","className":ctx.get(["logoClassName"],false)})}function body_5(chk,ctx){return chk.write('\x3cli-icon type\x3d"arrow-left-icon" size\x3d"small"\x3e\x3c/li-icon\x3e').reference(ctx.get(["i18n_daily_news"],false),ctx,"h")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonBackToFeed"]={"i18n_daily_news":"Daily News"}})();
(function(){dust.register("templates/walter/shared/buttonBookmark",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cbutton class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write(" button-bookmark tooltip-trigger ").exists(ctx.get(["saved"],false),ctx,{"block":body_1},{}).write('"\x3e\x3cspan class\x3d"text text-default"\x3e\x3cli-icon type\x3d"ribbon-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_2},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",
ctx,{"block":body_3},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_bookmark","templateName":"templates/walter/shared/buttonBookmark"}).write('\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"text text-active" aria-hidden\x3d"true"\x3e\x3cli-icon type\x3d"ribbon-filled-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_4},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_5},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",
ctx,{},{"key":"i18n_bookmarked","templateName":"templates/walter/shared/buttonBookmark"}).write('\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"text text-active-hover"\x3e\x3cli-icon type\x3d"ribbon-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_6},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_7},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_remove","templateName":"templates/walter/shared/buttonBookmark"}).write("\x3c/span\x3e\x3c/span\x3e").exists(ctx.get(["title"],
false),ctx,{"block":body_8},{}).write('\x3c/button\x3e\x3cp class\x3d"tooltip" role\x3d"tooltip"\x3e').helper("i18n",ctx,{},{"key":"i18n_tooltip_bookmark","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/p\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.write("active")}function body_2(chk,ctx){return chk.write('size\x3d"small"')}function body_3(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_4(chk,ctx){return chk.write('size\x3d"small"')}function body_5(chk,
ctx){return chk.write('class\x3d"accessible-text"')}function body_6(chk,ctx){return chk.write('size\x3d"small"')}function body_7(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_8(chk,ctx){return chk.write('\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["title"],false),ctx,"h").write("\x3c/span\x3e")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonBookmark"]={"i18n_bookmark":"Bookmark","i18n_bookmarked":"Bookmarked","i18n_remove":"Remove"}})();
(function(){dust.register("templates/walter/shared/buttonComment",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cbutton class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write(' button-comment tooltip-trigger"\x3e\x3cli-icon type\x3d"speech-bubble-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_1},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_2},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",
ctx,{},{"key":"i18n_comment","templateName":"templates/walter/shared/buttonComment"}).write("\x3c/span\x3e\x3c/button\x3e").exists(ctx.get(["showTooltips"],false),ctx,{"block":body_3},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write('size\x3d"small"')}function body_2(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_3(chk,ctx){return chk.write('\x3cp class\x3d"tooltip" role\x3d"tooltip"\x3e').exists(ctx.get(["isGuest"],false),ctx,{"else":body_4,"block":body_5},
{}).write("\x3c/p\x3e")}function body_4(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_tooltip_comment","templateName":"templates/walter/shared/strings/globalStrings"})}function body_5(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_tooltip_comment_guest","templateName":"templates/walter/shared/strings/globalStrings"})}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonComment"]={"i18n_comment":"Comment"}})();
(function(){dust.register("templates/walter/shared/buttonFollow",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cbutton class\x3d"button-follow ').reference(ctx.get(["className"],false),ctx,"h").write(" ").exists(ctx.get(["isFollowing"],false),ctx,{"block":body_1},{}).write(' tooltip-trigger"\x3e\x3cspan class\x3d"text text-default"\x3e').helper("i18n",ctx,{},{"key":"i18n_follow","templateName":"templates/walter/shared/buttonFollow"}).write('\x3c/span\x3e\x3cspan class\x3d"text text-active"\x3e').helper("i18n",
ctx,{},{"key":"i18n_following","templateName":"templates/walter/shared/buttonFollow"}).write('\x3c/span\x3e\x3cspan class\x3d"text text-active-hover"\x3e').helper("i18n",ctx,{},{"key":"i18n_unfollow","templateName":"templates/walter/shared/buttonFollow"}).write("\x3c/span\x3e").exists(ctx.get(["name"],false),ctx,{"block":body_2},{}).write("\x3c/button\x3e").exists(ctx.get(["isGuest"],false),ctx,{"block":body_3},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write("active")}function body_2(chk,
ctx){return chk.write('\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/span\x3e")}function body_3(chk,ctx){return chk.write('\x3cp class\x3d"tooltip tooltip-follow" role\x3d"tooltip"\x3e').helper("i18n",ctx,{},{"key":"i18n_tooltip_follow_guest","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/p\x3e")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonFollow"]={"i18n_follow":"Follow","i18n_following":"Following","i18n_unfollow":"Unfollow"}})();
(function(){dust.register("templates/walter/shared/buttonLike",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cbutton class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write(" button-like ").exists(ctx.get(["isLiked"],false),ctx,{"block":body_1},{}).write(' tooltip-trigger"\x3e\x3cspan class\x3d"text text-default"\x3e\x3cli-icon type\x3d"like-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_2},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",
ctx,{"block":body_3},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_like","templateName":"templates/walter/shared/buttonLike"}).write('\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"text text-active" aria-hidden\x3d"true"\x3e\x3cli-icon type\x3d"like-filled-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_4},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_5},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",
ctx,{},{"key":"i18n_liked","templateName":"templates/walter/shared/buttonLike"}).write('\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"text text-active-hover"\x3e\x3cli-icon type\x3d"like-filled-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_6},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_7},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_unlike","templateName":"templates/walter/shared/buttonLike"}).write("\x3c/span\x3e\x3c/span\x3e").exists(ctx.get(["title"],
false),ctx,{"block":body_8},{}).write("\x3c/button\x3e").exists(ctx.get(["showTooltips"],false),ctx,{"block":body_9},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write("active")}function body_2(chk,ctx){return chk.write('size\x3d"small"')}function body_3(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_4(chk,ctx){return chk.write('size\x3d"small"')}function body_5(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_6(chk,ctx){return chk.write('size\x3d"small"')}
function body_7(chk,ctx){return chk.write('class\x3d"accessible-text"')}function body_8(chk,ctx){return chk.write('\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["title"],false),ctx,"h").write("\x3c/span\x3e")}function body_9(chk,ctx){return chk.write('\x3cp class\x3d"tooltip tooltip-like" role\x3d"tooltip"\x3e').exists(ctx.get(["isGuest"],false),ctx,{"else":body_10,"block":body_13},{}).write("\x3c/p\x3e")}function body_10(chk,ctx){return chk.exists(ctx.get(["isLiked"],false),ctx,{"else":body_11,
"block":body_12},{})}function body_11(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_tooltip_like","templateName":"templates/walter/shared/strings/globalStrings"})}function body_12(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_tooltip_unlike","templateName":"templates/walter/shared/strings/globalStrings"})}function body_13(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_tooltip_like_guest","templateName":"templates/walter/shared/strings/globalStrings"})}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonLike"]={"i18n_like":"Like","i18n_liked":"Liked","i18n_unlike":"Unlike"}})();
(function(){dust.register("templates/walter/shared/buttonShare",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"share_title"}).write('\x3cdiv class\x3d"dropdown-wrapper js-dropdown"\x3e\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cbutton class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write(' button-share tooltip-trigger js-dropdown-trigger"\x3e\x3cli-icon type\x3d"share-ios-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_2},{}).write('\x3e\x3c/li-icon\x3e\x3cspan class\x3d"text text-default ').helper("eq",
ctx,{"block":body_3},{"key":ctx.get(["showText"],false),"value":"false"}).write('" aria-hidden\x3d"true"\x3e').helper("i18n",ctx,{},{"key":"i18n_share","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/span\x3e\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["share_title"],false),ctx,"h").write("\x3c/span\x3e\x3c/button\x3e").exists(ctx.get(["showTooltips"],false),ctx,{"block":body_4},{}).write('\x3c/div\x3e\x3cdiv class\x3d"dropdown-content share-dropdown-content js-dropdown-content"\x3e').partial("templates/walter/shared/socialIcons",
ctx,{}).write("\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_share_title","templateName":"templates/walter/shared/buttonShare"})}function body_2(chk,ctx){return chk.write('size\x3d"small"')}function body_3(chk,ctx){return chk.write("accessible-text")}function body_4(chk,ctx){return chk.write('\x3cp class\x3d"tooltip" role\x3d"tooltip"\x3e').helper("i18n",ctx,{},{"key":"i18n_tooltip_share","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/p\x3e")}
return body_0})();(function(){dust.register("__i18n__templates/walter/shared/buttonShare__i18n_share_title",body_0);function body_0(chk,ctx){return chk.write("Share ").reference(ctx.get(["title"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/shared/buttonEdit",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"edit_title"}).write("\x3ca href\x3d'").helper("url",ctx,{},{"alias":"com.linkedin.pulse.controllers.EditorController.editArticle","arg0":ctx.get(["pubArticleId"],false)}).write("' class\x3d\"").reference(ctx.get(["className"],false),ctx,"h").write('" target\x3d"_blank"\x3e\x3cli-icon type\x3d"pencil-icon" size\x3d"small"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"text text-default" aria-hidden\x3d"true"\x3e').helper("i18n",
ctx,{},{"key":"i18n_edit","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/span\x3e\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["edit_title"],false),ctx,"h").write("\x3c/span\x3e\x3c/a\x3e")}function body_1(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_edit_title","templateName":"templates/walter/shared/buttonEdit"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/buttonEdit__i18n_edit_title",body_0);function body_0(chk,ctx){return chk.write("Edit ").reference(ctx.get(["title"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/shared/buttonDelete",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"delete_title"}).write('\x3cbutton class\x3d"button-delete ').reference(ctx.get(["className"],false),ctx,"h").write(' delete-item"\x3e\x3cli-icon type\x3d"trash-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_2},{}).write('\x3e\x3c/li-icon\x3e\x3cspan class\x3d"text text-default" aria-hidden\x3d"true"\x3e\x3cspan ').helper("eq",
ctx,{"block":body_3},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_delete","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["delete_title"],false),ctx,"h").write("\x3c/span\x3e\x3c/button\x3e")}function body_1(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_delete_title","templateName":"templates/walter/shared/buttonDelete"})}function body_2(chk,
ctx){return chk.write('size\x3d"small"')}function body_3(chk,ctx){return chk.write('class\x3d"accessible-text"')}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/buttonDelete__i18n_delete_title",body_0);function body_0(chk,ctx){return chk.write("Delete ").reference(ctx.get(["title"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/shared/buttonStats",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-wrapper"\x3e\x3cdiv class\x3d"tooltip-trigger"\x3e\x3ca href\x3d\'').reference(ctx.get(["viewStatsUrl"],false),ctx,"h").write('\' target\x3d"_blank" class\x3d"button-stats button-link"\x3e\x3cli-icon type\x3d"analytics-icon"\x3e\x3c/li-icon\x3e\x3c/a\x3e\x3c/div\x3e\x3cp class\x3d"tooltip" role\x3d"tooltip"\x3e').helper("i18n",ctx,{},{"key":"i18n_stats_published",
"templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/p\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/buttonViews",body_0);function body_0(chk,ctx){return chk.write('\x3cbutton class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write(' button-views"\x3e\x3cli-icon type\x3d"people-icon" ').exists(ctx.get(["isSmall"],false),ctx,{"block":body_1},{}).write("\x3e\x3c/li-icon\x3e\x3cspan ").helper("eq",ctx,{"block":body_2},{"key":ctx.get(["showText"],false),"value":"false"}).write("\x3e").helper("i18n",ctx,{},{"key":"i18n_views","templateName":"templates/walter/shared/buttonViews"}).write("\x3c/span\x3e\x3c/button\x3e")}
function body_1(chk,ctx){return chk.write('size\x3d"small"')}function body_2(chk,ctx){return chk.write('class\x3d"accessible-text"')}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/buttonViews"]={"i18n_views":"Views"}})();
(function(){dust.register("templates/walter/shared/buttonWriteArticle",body_0);function body_0(chk,ctx){return chk.write('\x3ca class\x3d"').reference(ctx.get(["className"],false),ctx,"h").write("\" href\x3d'").helper("url",ctx,{},{"alias":"com.linkedin.pulse.controllers.EditorController.newArticle"}).write('\' target\x3d"_blank"\x3e').helper("i18n",ctx,{},{"key":"i18n_publish_a_post","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/buttonShareFacebook",body_0);function body_0(chk,ctx){return chk.write('\x3ca href\x3d"#" class\x3d"button-primary-medium button-facebook share-button share-facebook" itemprop\x3d"url" role\x3d"button" data-share-type\x3d"facebook" data-li-uetrk-click\x3d"share-fb" data-li-uetrk-action\x3d"share"\x3e\x3cli-icon type\x3d"facebook-icon" aria-hidden\x3d"true"\x3e\x3c/li-icon\x3e').helper("i18n",ctx,{},{"key":"i18n_share_on_facebook","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}
return body_0})();
(function(){dust.register("templates/walter/shared/buttonShareTwitter",body_0);function body_0(chk,ctx){return chk.write('\x3ca href\x3d"#" class\x3d"button-primary-medium button-twitter share-button share-twitter" itemprop\x3d"url" role\x3d"button" data-share-type\x3d"twitter" data-li-uetrk-click\x3d"share-twtr" data-li-uetrk-action\x3d"share"\x3e\x3cli-icon type\x3d"twitter-icon"\x3e\x3c/li-icon\x3e').helper("i18n",ctx,{},{"key":"i18n_share_on_twitter","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e")}
return body_0})();
(function(){dust.register("templates/walter/shared/entityCountsNav",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"entityPostCount"}).helper("i18n",ctx,{},{"key":"i18n_entity_posts","output":"json","templateName":"templates/walter/shared/entityCountsNav"}).write('\x3cul class\x3d"entity-counts"\x3e').notexists(ctx.get(["hidePostsLink"],false),ctx,{"block":body_4},{}).write("\x3c/ul\x3e")}function body_1(chk,ctx){return chk.notexists(ctx.get(["totalPosts"],
false),ctx,{"else":body_2,"block":body_3},{})}function body_2(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalPosts"],false)})}function body_3(chk,ctx){return chk.write("0")}function body_4(chk,ctx){return chk.helper("gt",ctx,{"block":body_5},{"key":ctx.get(["totalPosts"],false),"value":"0","type":"number"})}function body_5(chk,ctx){return chk.write('\x3cli\x3e\x3ca href\x3d"/today/author/').reference(ctx.get(["memberToken"],false),ctx,"h").write('"\x3e').reference(ctx.get(["i18n_entity_posts"],
false),ctx,"h",["mk","s"]).write("\x3c/a\x3e\x3c/li\x3e")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/entityCountsNav__i18n_entity_posts",body_0);function body_0(chk,ctx){return chk.write('\x3cspan class\x3d"count"\x3e').reference(ctx.get(["entityPostCount"],false),ctx,"h").write("\x3c/span\x3e ").helper("choice",ctx,{},{"key":ctx.get(["entityPostCount"],false),"singular":"article","plural":"articles"})}return body_0})();
(function(){dust.register("templates/walter/shared/pulseIcons",body_0);function body_0(chk,ctx){return chk.write('\x3csvg id\x3d"pulse-icons" version\x3d"1.1" xmlns:sketch\x3d"http://www.bohemiancoding.com/sketch/ns"xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" x\x3d"0px" y\x3d"0px" viewBox\x3d"-367 292 65 17"enable-background\x3d"new -367 292 65 17" xml:space\x3d"preserve"\x3e\x3cdefs\x3e\x3cg id\x3d"-icon" sketch:type\x3d"MSPage"\x3e\x3cg id\x3d"_x30_7-following-author" transform\x3d"translate(-411.000000, -601.000000)" sketch:type\x3d"MSArtboardGroup"\x3e\x3cg id\x3d"Influencer-Logo-2C-RGB-Copy-6" transform\x3d"translate(411.803680, 601.476093)" sketch:type\x3d"MSLayerGroup"\x3e\x3cpath id\x3d"Fill-1" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-346.4,293.4l0,10.2h0.9l0-10.2H-346.4"/\x3e\x3cpath id\x3d"Fill-2" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-350.7,295.6l0,1.5h-1.4v0.8h1.4v5.7h0.9v-5.7h1.8v-0.8h-1.8l0-1.4c0-0.9,0.2-1.7,1.2-1.7c0.2,0,0.5,0,0.6,0.1l0.2-0.8c-0.2-0.1-0.5-0.1-0.8-0.1C-350,293.2-350.7,294.1-350.7,295.6"/\x3e\x3cpath id\x3d"Fill-3" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-338.8,303.6c0-0.3-0.1-0.8-0.1-1.1h0c-0.4,0.7-1.3,1.3-2.2,1.3c-1.6,0-2.4-1.1-2.4-2.7v-4h0.9v3.6c0,1.4,0.4,2.3,1.7,2.3c1,0,1.9-0.8,1.9-2.5v-3.3h0.9v5c0,0.3,0,1,0.1,1.4H-338.8"/\x3e\x3cpath id\x3d"Fill-4" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-330.9,299.8c-0.1-1.2-0.8-2.1-2.1-2.1c-1.2,0-2.2,1-2.2,2.1H-330.9L-330.9,299.8z M-330,300.6h-5.3c0,1.3,1,2.3,2.3,2.3c1,0,1.7-0.5,2.1-1.1l0.7,0.6c-0.8,1-1.7,1.4-2.8,1.4c-1.9,0-3.3-1.4-3.3-3.4c0-1.9,1.4-3.4,3.2-3.4c2,0,3.1,1.4,3.1,3.2C-330,300.3-330,300.4-330,300.6L-330,300.6z"/\x3e\x3cpath id\x3d"Fill-5" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-327.5,297.1c0,0.3,0.1,0.8,0.1,1.1h0c0.4-0.7,1.3-1.3,2.2-1.3c1.6,0,2.4,1.1,2.4,2.7v4h-0.9V300c0-1.4-0.4-2.3-1.7-2.3c-1,0-1.9,0.8-1.9,2.5v3.3h-0.9v-5c0-0.3,0-1-0.1-1.4H-327.5"/\x3e\x3cpath id\x3d"Fill-6" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-316.2,298.6c-0.3-0.5-0.9-0.9-1.6-0.9c-1.5,0-2.5,1.1-2.5,2.6c0,1.5,0.9,2.6,2.4,2.6c0.8,0,1.4-0.3,1.7-0.8l0.7,0.5c-0.5,0.7-1.3,1.1-2.4,1.1c-2.1,0-3.4-1.4-3.4-3.4c0-1.9,1.4-3.4,3.4-3.4c0.9,0,1.8,0.4,2.4,1.1L-316.2,298.6"/\x3e\x3cpath id\x3d"Fill-7" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-309.1,299.8c-0.1-1.2-0.8-2.1-2.1-2.1c-1.2,0-2.2,1-2.2,2.1H-309.1L-309.1,299.8z M-308.1,300.6h-5.3c0,1.3,1,2.3,2.3,2.3c1,0,1.7-0.5,2.1-1.1l0.7,0.6c-0.8,1-1.7,1.4-2.8,1.4c-1.9,0-3.3-1.4-3.3-3.4c0-1.9,1.4-3.4,3.2-3.4c2,0,3.1,1.4,3.1,3.2C-308.1,300.3-308.1,300.4-308.1,300.6L-308.1,300.6z"/\x3e\x3cpath id\x3d"Fill-8" sketch:type\x3d"MSShapeGroup" fill\x3d"#0A0B09" d\x3d"M-306.6,297.1h0.9c0,0.3,0.1,0.8,0.1,1.1h0c0.4-0.7,1.2-1.3,2.1-1.3c0.2,0,0.4,0,0.6,0.1l-0.1,0.9c-0.1,0-0.4-0.1-0.7-0.1c-1,0-1.9,0.7-1.9,2.4v3.3h-0.9v-5C-306.5,298.2-306.5,297.6-306.6,297.1"/\x3e\x3cpath id\x3d"Fill-9" sketch:type\x3d"MSShapeGroup" fill\x3d"#196DA1" d\x3d"M-354.5,292H-366c-0.6,0-1,0.4-1,1v11.6c0,0.5,0.4,1,1,1h1v2.4l3.3-2.4h7.3c0.6,0,1-0.4,1-1V293C-353.5,292.5-353.9,292-354.5,292"/\x3e\x3cpath id\x3d"Fill-10" sketch:type\x3d"MSShapeGroup" fill\x3d"#FFFFFF" d\x3d"M-364,293.9c0.6,0,1.2,0.5,1.2,1.2c0,0.6-0.5,1.2-1.2,1.2c-0.6,0-1.2-0.5-1.2-1.2C-365.2,294.4-364.6,293.9-364,293.9L-364,293.9z M-365,297.1h2v6.5h-2V297.1z"/\x3e\x3cpath id\x3d"Fill-11" sketch:type\x3d"MSShapeGroup" fill\x3d"#FFFFFF" d\x3d"M-361.7,297.1h1.9v0.9h0c0.3-0.5,0.9-1,1.9-1c2,0,2.4,1.3,2.4,3.1v3.5h-2v-3.1c0-0.8,0-1.7-1-1.7c-1,0-1.2,0.8-1.2,1.7v3.2h-2V297.1"/\x3e\x3c/g\x3e\x3c/g\x3e\x3c/g\x3e\x3c/defs\x3e\x3c/svg\x3e')}
return body_0})();
(function(){dust.register("templates/walter/shared/socialIcons",body_0);function body_0(chk,ctx){return chk.write('\x3cul class\x3d"dropdown-social-actions"\x3e\x3cli\x3e\x3ca href\x3d"#" itemprop\x3d"url" class\x3d"share-button share-linkedin" role\x3d"button" data-share-type\x3d"linkedin" data-li-uetrk-click\x3d"share-li" data-li-uetrk-action\x3d"share"\x3e\x3cli-icon type\x3d"linkedin-icon" color aria-hidden\x3d"true"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"icons-label"\x3eLinkedIn\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e').notexists(ctx.get(["china"],
false),ctx,{"block":body_1},{}).write("\x3c/ul\x3e")}function body_1(chk,ctx){return chk.notexists(ctx.get(["hideFacebook"],false),ctx,{"block":body_2},{}).write('\x3cli\x3e\x3ca href\x3d"#" itemprop\x3d"url" class\x3d"share-button share-twitter" role\x3d"button" data-share-type\x3d"twitter" data-li-uetrk-click\x3d"share-twtr" data-li-uetrk-action\x3d"share"\x3e\x3cli-icon type\x3d"twitter-icon" color aria-hidden\x3d"true"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"icons-label"\x3eTwitter\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e')}
function body_2(chk,ctx){return chk.write('\x3cli\x3e\x3ca href\x3d"#" itemprop\x3d"url" class\x3d"share-button share-facebook" role\x3d"button" data-share-type\x3d"facebook" data-li-uetrk-click\x3d"share-fb" data-li-uetrk-action\x3d"share"\x3e\x3cli-icon type\x3d"facebook-icon" color aria-hidden\x3d"true"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"icons-label"\x3eFacebook\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e')}return body_0})();
(function(){dust.register("templates/walter/shared/userBaseInfo",body_0);function body_0(chk,ctx){return chk.write('\x3cfigure class\x3d"entity-image entity-image-user"\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('" ').exists(ctx.get(["isAuthor"],false),ctx,{"block":body_1},{}).write('\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('"\x3e\x3c/a\x3e\x3c/figure\x3e\x3cdiv class\x3d"entity-content"\x3e\x3ch2 class\x3d"entity-name" ').exists(ctx.get(["isAuthor"],
false),ctx,{"block":body_2},{}).write('\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('" ').exists(ctx.get(["isAuthor"],false),ctx,{"block":body_3},{}).write("\x3e").exists(ctx.get(["isAuthor"],false),ctx,{"else":body_4,"block":body_5},{}).write("\x3c/a\x3e").exists(ctx.get(["isInfluencer"],false),ctx,{"block":body_6},{}).exists(ctx.get(["showFollowButton"],false),ctx,{"block":body_8},{}).write("\x3c/h2\x3e").exists(ctx.get(["headline"],false),ctx,{"block":body_10},
{}).notexists(ctx.get(["hideCounts"],false),ctx,{"block":body_11},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.write('rel\x3d"author"')}function body_2(chk,ctx){return chk.write('itemprop\x3d"author creator" itemscope itemtype\x3d"http://schema.org/Person"')}function body_3(chk,ctx){return chk.write('rel\x3d"author"')}function body_4(chk,ctx){return chk.reference(ctx.get(["name"],false),ctx,"h")}function body_5(chk,ctx){return chk.write('\x3cspan itemprop\x3d"name"\x3e').reference(ctx.get(["name"],
false),ctx,"h").write("\x3c/span\x3e")}function body_6(chk,ctx){return chk.helper("img",ctx,{},{"class":"influencer-icon article","path":"walter/shared/influencer_logo.svg","alt":body_7})}function body_7(chk,ctx){return chk.reference(ctx.get(["i18n_influencer"],false),ctx,"h")}function body_8(chk,ctx){return chk.exists(ctx.get(["canFollow"],false),ctx,{"block":body_9},{})}function body_9(chk,ctx){return chk.write('\x3cspan class\x3d"follow-action"\x3e').partial("templates/walter/shared/buttonFollow",
ctx,{"isFollowing":ctx.get(["isFollowing"],false),"className":"button-link"}).write("\x3c/span\x3e")}function body_10(chk,ctx){return chk.write('\x3ch3 class\x3d"entity-headline"\x3e').reference(ctx.get(["headline"],false),ctx,"h").write("\x3c/h3\x3e")}function body_11(chk,ctx){return chk.partial("templates/walter/shared/entityCountsNav",ctx,{})}return body_0})();
(function(){dust.register("templates/walter/shared/companyBaseInfo",body_0);function body_0(chk,ctx){return chk.write('\x3cfigure class\x3d"entity-image entity-image-company"\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('" alt\x3d"').reference(ctx.get(["name"],false),ctx,"h").write('"\x3e\x3c/a\x3e\x3c/figure\x3e\x3cdiv class\x3d"entity-content"\x3e\x3ch2 class\x3d"entity-name"\x3e\x3ca href\x3d"').reference(ctx.get(["publicProfileUrl"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["name"],false),ctx,"h").exists(ctx.get(["isInfluencer"],false),ctx,{"block":body_1},{}).write("\x3c/a\x3e\x3c/h2\x3e").exists(ctx.get(["headline"],false),ctx,{"block":body_2},{}).exists(ctx.get(["totalPosts"],false),ctx,{"block":body_3},{}).write("\x3c/div\x3e")}function body_1(chk,ctx){return chk.partial("templates/walter/shared/iconInfluencer",ctx,{})}function body_2(chk,ctx){return chk.write('\x3ch3 class\x3d"entity-headline"\x3e').reference(ctx.get(["headline"],
false),ctx,"h").write("\x3c/h3\x3e")}function body_3(chk,ctx){return chk.write('\x3cul class\x3d"entity-counts"\x3e\x3cli\x3e').helper("linkTo",ctx,{"block":body_4},{"href":body_5}).write("\x3c/li\x3e\x3c/ul\x3e")}function body_4(chk,ctx){return chk.reference(ctx.get(["i18n_posts"],false),ctx,"h")}function body_5(chk,ctx){return chk.write("author/").reference(ctx.get(["vanityName"],false),ctx,"h").write("/posts")}return body_0})();
(function(){dust.register("templates/walter/shared/userCard",body_0);function body_0(chk,ctx){return chk.exists(ctx.get(["canFollow"],false),ctx,{"block":body_1},{}).partial("templates/walter/shared/userBaseInfo",ctx,{})}function body_1(chk,ctx){return chk.write('\x3cdiv class\x3d"entity-actions" id\x3d"entity-actions-footer"\x3e').partial("templates/walter/shared/buttonFollow",ctx,{"isFollowing":ctx.get(["isFollowing"],false),"className":"button-secondary-medium"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/socialStatsActions",body_0);function body_0(chk,ctx){return chk.partial("templates/walter/shared/formatters/globalFormatters",ctx,{}).write('\x3cul class\x3d"social-stats social-stats-actions"\x3e').exists(ctx.get(["showViews"],false),ctx,{"block":body_1},{}).write("\x3cli\x3e").partial("templates/walter/shared/buttonLike",ctx,{"showText":"false","className":body_3}).write('\x3ca href\x3d"#" class\x3d"trigger trigger-likes-modal"\x3e\x3cspan class\x3d"count count-likes"\x3e').reference(ctx.get(["likesTotal"],
false),ctx,"h").write("\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e").notexists(ctx.get(["commentingDisabled"],false),ctx,{"block":body_4},{}).write("\x3cli\x3e").partial("templates/walter/shared/buttonShare",ctx,{"showText":"false","className":body_6}).notexists(ctx.get(["lixHideShareCount"],false),ctx,{"block":body_7},{}).write("\x3c/li\x3e").exists(ctx.get(["showStats"],false),ctx,{"block":body_8},{}).write("\x3c/ul\x3e")}function body_1(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonViews",
ctx,{"showText":"false","className":body_2}).write('\x3cspan class\x3d"count count-views"\x3e').reference(ctx.get(["viewsTotal"],false),ctx,"h").write("\x3c/span\x3e\x3c/li\x3e")}function body_2(chk,ctx){return chk.write("button-secondary-").reference(ctx.get(["buttonSize"],false),ctx,"h").write("-round-muted")}function body_3(chk,ctx){return chk.write("button-secondary-").reference(ctx.get(["buttonSize"],false),ctx,"h").write("-round-muted")}function body_4(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonComment",
ctx,{"showText":"false","className":body_5}).write('\x3ca href\x3d"#comments" class\x3d"trigger-comments"\x3e\x3cspan class\x3d"count count-comments"\x3e').reference(ctx.get(["commentsTotal"],false),ctx,"h").write("\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")}function body_5(chk,ctx){return chk.write("button-secondary-").reference(ctx.get(["buttonSize"],false),ctx,"h").write("-round-muted")}function body_6(chk,ctx){return chk.write("button-secondary-").reference(ctx.get(["buttonSize"],false),ctx,"h").write("-round-muted")}
function body_7(chk,ctx){return chk.write('\x3cspan class\x3d"count count-shares"\x3e').reference(ctx.get(["sharesTotal"],false),ctx,"h").write("\x3c/span\x3e")}function body_8(chk,ctx){return chk.write('\x3cli class\x3d"stats-action"\x3e').partial("templates/walter/shared/buttonStats",ctx,{}).write("\x3c/li\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/socialStatsCounts",body_0);function body_0(chk,ctx){return chk.partial("templates/walter/shared/formatters/globalFormatters",ctx,{}).write('\x3cul class\x3d"social-stats social-stats-counts"\x3e').exists(ctx.get(["showViews"],false),ctx,{"block":body_1},{}).write("\x3cli\x3e").exists(ctx.get(["hasActions"],false),ctx,{"block":body_2},{}).helper("i18n",ctx,{},{"key":"i18n_likes_total","templateName":"templates/walter/shared/strings/globalStrings"}).exists(ctx.get(["hasActions"],
false),ctx,{"block":body_3},{}).write("\x3c/li\x3e\x3cli\x3e").exists(ctx.get(["hasActions"],false),ctx,{"block":body_4},{}).helper("i18n",ctx,{},{"key":"i18n_comments_total","templateName":"templates/walter/shared/strings/globalStrings"}).exists(ctx.get(["hasActions"],false),ctx,{"block":body_5},{}).write("\x3c/li\x3e").notexists(ctx.get(["lixHideShareCount"],false),ctx,{"block":body_6},{}).exists(ctx.get(["showStats"],false),ctx,{"block":body_7},{}).write("\x3c/ul\x3e")}function body_1(chk,ctx){return chk.write("\x3cli\x3e").helper("i18n",
ctx,{},{"key":"i18n_views_total","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/li\x3e")}function body_2(chk,ctx){return chk.write('\x3ca href\x3d"#" class\x3d"trigger-likes-modal"\x3e')}function body_3(chk,ctx){return chk.write("\x3c/a\x3e")}function body_4(chk,ctx){return chk.write('\x3ca href\x3d"#comments" class\x3d"trigger-comments"\x3e')}function body_5(chk,ctx){return chk.write("\x3c/a\x3e")}function body_6(chk,ctx){return chk.write("\x3cli\x3e").helper("i18n",
ctx,{},{"key":"i18n_shares_total","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/li\x3e")}function body_7(chk,ctx){return chk.write('\x3cli class\x3d"stats-action"\x3e').partial("templates/walter/shared/buttonStats",ctx,{}).write("\x3c/li\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/reportDropdown",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"more_actions_prompt"}).write('\x3cdiv class\x3d"dropdown-wrapper js-dropdown dropdown-report-this"\x3e\x3cbutton class\x3d"trigger js-dropdown-trigger"\x3e\x3cli-icon type\x3d"ellipsis-horizontal-icon"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"accessible-text"\x3e').reference(ctx.get(["more_actions_prompt"],false),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3cdiv class\x3d"dropdown-content js-dropdown-content"\x3e\x3cul\x3e\x3cli\x3e\x3ca role\x3d"button" tabindex\x3d"0"  class\x3d"flag-article"\x3e').helper("i18n",
ctx,{},{"key":"i18n_report_this","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_more_actions_on_title","templateName":"templates/walter/shared/reportDropdown"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/reportDropdown__i18n_more_actions_on_title",body_0);function body_0(chk,ctx){return chk.write("More actions on ").reference(ctx.get(["title"],false),ctx,"h")}return body_0})();
(function(){dust.register("templates/walter/shared/companyCard",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"postCount"}).helper("i18n",ctx,{},{"key":"i18n_posts","output":"json","templateName":"templates/walter/shared/companyCard"}).exists(ctx.get(["canFollow"],false),ctx,{"block":body_4},{}).partial("templates/walter/shared/companyBaseInfo",ctx,{})}function body_1(chk,ctx){return chk.notexists(ctx.get(["totalPosts"],false),ctx,{"else":body_2,"block":body_3},
{})}function body_2(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalPosts"],false)})}function body_3(chk,ctx){return chk.write("0")}function body_4(chk,ctx){return chk.write('\x3cdiv class\x3d"entity-actions"\x3e').partial("templates/walter/shared/buttonFollow",ctx,{"isFollowing":ctx.get(["isFollowing"],false),"className":"button-secondary-medium"}).write("\x3c/div\x3e")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/companyCard__i18n_posts",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["postCount"],false),ctx,"h").write(" ").helper("choice",ctx,{},{"key":ctx.get(["postCount"],false),"singular":"article","plural":"articles"})}return body_0})();
(function(){dust.register("templates/walter/shared/strings/globalStrings",body_0);function body_0(chk,ctx){return chk.partial("templates/walter/shared/formatters/globalFormatters",ctx,{}).helper("i18n",ctx,{},{"key":"i18n_multiple_member","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_multiple_company","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_multiple_channel","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_multiple_industry","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_welcome","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_pulse_summary","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_discover","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_caught_up","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_check_back","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_discover_stories","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_want_more","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_views_total","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_likes_total","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comments_total","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_shares_total","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_share","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_edit","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_delete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_like","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_share_on_facebook","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_share_on_twitter","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_published_on","templateName":"templates/walter/shared/strings/globalStrings"}).write(" ").helper("i18n",ctx,{},{"key":"i18n_stats_published",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_draft_modified","templateName":"templates/walter/shared/strings/globalStrings"}).write(" ").helper("i18n",ctx,{},{"key":"i18n_flagging_semaphore_title","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_report_this","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_delete_your_post","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_are_you_sure_delete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_saved_empty_header","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_saved_empty_when_you_save","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_saved_empty_read_later","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_read_more_posts",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_published_empty_header","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_published_empty","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_start_writing","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_analytics_no_activity_new_world","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_analytics_no_activity_play","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_analytics_no_activity_check_out_janet","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_analytics_no_activity_read_janet","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_publish_a_post","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comments_total_context","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_delete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_cancel","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_recommended","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_oldest",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_newest","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_showMore","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_thereAre_context","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_notEnoughChars","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comments_commentSettings","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_allowComments","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_saveChanges","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comments_disableComments","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},
{"key":"i18n_comments_disableCommentsInfo","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsDisabled_commentsDisabledCommentsDisabling","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsDisabled_commentsDisabledAuthorMessage","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsDisabled_commentsDisabledAuthorEnable","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_commentsDisabled_commentsDisabledViewerMessage","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsInputDefault_placeholder","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsInputDefault_comment","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_commentsInputGuest_signin","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comments_disabled_reader_view","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_placeholder","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_showMore","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_cancel","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_reply",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_viewPrevious","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_thread_notEnoughChars","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_like","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_likeGuestTooltip","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comment_unlike","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_reply","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_replyGuestTooltip","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_feature","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_share",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_getlink","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_delete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_you","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_flag","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_comment_commentCount","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_seeMore","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_comment_seeLess","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_likeModal_membersWhoLike","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_likeModal_dismiss",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_linkModal_dismiss","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_linkModal_getLink","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_linkModal_urlOfComment","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_mentions_topInput","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_mentions_bottomInput","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_mentions_comment","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_flag","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_delete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_dismiss",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_confirm","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_disableCommentsConfirmation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_mainMessageDelete","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_mainMessageFlag",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_mainMessageDisableComments","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_second","doc":"Shorthand representation of seconds, used for time notation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_minute","doc":"Shorthand representation of minutes, used for time notation",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_hour","doc":"Shorthand representation of hours, used for time notation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_day","doc":"Shorthand representation of days, used for time notation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_week","doc":"Shorthand representation of weeks, used for time notation",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_month","doc":"Shorthand representation of months, used for time notation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_year","doc":"Shorthand representation of years, used for time notation","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_title_bookmarks","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_title_published","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_title_drafts","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_title_followers","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_title_following","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_title_posts","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_likes","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_congrats_post_published","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_share_to_broaden","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_bookmark","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_share","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",
ctx,{},{"key":"i18n_tooltip_like","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_unlike","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_comment","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_like_guest","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_follow_guest",
"templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_tooltip_comment_guest","templateName":"templates/walter/shared/strings/globalStrings"}).helper("i18n",ctx,{},{"key":"i18n_trending_on_linkedin","templateName":"templates/walter/shared/strings/globalStrings"})}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/strings/globalStrings"]={"i18n_multiple_member":"others","i18n_multiple_company":"other companies","i18n_multiple_channel":"other channels","i18n_multiple_industry":"other industries","i18n_pulse_summary":"Your daily news, powered by your professional world","i18n_discover":"Discover more to follow","i18n_caught_up":"You're all caught up on the latest headlines!","i18n_check_back":"Check back soon for more news.",
"i18n_discover_stories":"Discover more stories","i18n_want_more":"Looking for more of the latest headlines on LinkedIn?","i18n_share":"Share","i18n_edit":"Edit article","i18n_delete":"Delete","i18n_like":"Like","i18n_share_on_facebook":"Share on Facebook","i18n_share_on_twitter":"Share on Twitter","i18n_published_on":"Published on ","i18n_stats_published":"View stats","i18n_draft_modified":"Draft last modified on ","i18n_flagging_semaphore_title":"Why are you reporting this?","i18n_report_this":"Report this",
"i18n_delete_your_post":"Delete your article","i18n_are_you_sure_delete":"Are you sure you want to delete this article?","i18n_saved_empty_header":"Your saved articles will live here","i18n_saved_empty_when_you_save":"When you save an article, it will live here.","i18n_saved_empty_read_later":"Save articles to read later or keep for reference.","i18n_read_more_posts":"Read more articles","i18n_published_empty_header":"You haven't published an article yet","i18n_published_empty":"When you write an article, it will live here. You'll find stats on your performace and insights on your audience. Write about your experiences, industry insights, or what inspires you to do what you do.",
"i18n_start_writing":"Start writing","i18n_analytics_no_activity_new_world":"Open a world of new opportunities","i18n_analytics_no_activity_play":"Play","i18n_analytics_no_activity_check_out_janet":"See how Janet connected with a bigger audience and discovered a new opportunity through publishing on LinkedIn.","i18n_analytics_no_activity_read_janet":"Read what Janet's writing","i18n_publish_a_post":"Write an article","i18n_comments_delete":"delete","i18n_comments_cancel":"Cancel","i18n_comments_recommended":"Recommended",
"i18n_comments_oldest":"Oldest","i18n_comments_newest":"Newest","i18n_comments_showMore":"Show more.","i18n_comments_notEnoughChars":"Please enter more characters in your comment","i18n_comments_commentSettings":"Comment settings","i18n_comments_allowComments":"Allow comments","i18n_comments_saveChanges":"Save changes","i18n_comments_disableComments":"Disable comments","i18n_comments_disableCommentsInfo":"All the existing comments will be deleted permanently.","i18n_commentsDisabled_commentsDisabledCommentsDisabling":"Disabling comments. This may take a few minutes.",
"i18n_commentsDisabled_commentsDisabledAuthorMessage":"You've disabled comments on this article.","i18n_commentsDisabled_commentsDisabledAuthorEnable":'To hear people\'s thoughts and to improve the reach of this article, \x3cbutton class\x3d"disable-comments__button--enable"\x3eenable comments now\x3c/button\x3e.',"i18n_commentsDisabled_commentsDisabledViewerMessage":"Comments have been disabled by the author.","i18n_commentsInputDefault_placeholder":"Leave your thoughts here\u2026","i18n_commentsInputDefault_comment":"Comment",
"i18n_commentsInputGuest_signin":'\x3ca href\x3d"urlPlaceHolder"\x3eSign in\x3c/a\x3e to leave your comment\x3c/a\x3e',"i18n_comments_disabled_reader_view":"Comments have been disabled by the author.","i18n_thread_placeholder":"Reply to this comment\u2026","i18n_thread_showMore":"Show more","i18n_thread_cancel":"Cancel","i18n_thread_reply":"Reply","i18n_thread_viewPrevious":"View previous replies","i18n_thread_notEnoughChars":"Please enter more chacters in your reply","i18n_comment_like":"Like","i18n_comment_likeGuestTooltip":"Sign in to like this comment",
"i18n_comment_unlike":"Unlike","i18n_comment_reply":"Reply","i18n_comment_replyGuestTooltip":"Sign in to reply to this comment","i18n_comment_feature":"Feature","i18n_comment_share":"Share","i18n_comment_getlink":"Get link","i18n_comment_delete":"Delete","i18n_comment_you":"You","i18n_comment_flag":"Flag and Hide","i18n_comment_commentCount":"Comment Count","i18n_comment_seeMore":"See more","i18n_comment_seeLess":"See less","i18n_likeModal_membersWhoLike":"Members who like this","i18n_likeModal_dismiss":"Dismiss",
"i18n_linkModal_dismiss":"Dismiss","i18n_linkModal_getLink":"Get Link","i18n_linkModal_urlOfComment":"The URL of this comment is below. Copy it to share","i18n_mentions_topInput":"Leave your thoughts here\u2026","i18n_mentions_bottomInput":"Reply to this comment\u2026","i18n_mentions_comment":"Comment","i18n_removeCommentModal_flag":"flag","i18n_removeCommentModal_delete":"Delete","i18n_removeCommentModal_dismiss":"Cancel","i18n_removeCommentModal_confirm":"Confirm","i18n_removeCommentModal_disableCommentsConfirmation":"Disable comments",
"i18n_removeCommentModal_mainMessageDelete":"Would you like to delete this comment?","i18n_removeCommentModal_mainMessageFlag":"Would you like to flag this comment?","i18n_removeCommentModal_mainMessageDisableComments":"Are you sure you want to disable comments? All the existing comments will be deleted permanently.","i18n_title_bookmarks":"Bookmarks","i18n_title_published":"Published","i18n_title_drafts":"Drafts","i18n_title_followers":"Followers","i18n_title_following":"Following","i18n_title_posts":"Articles",
"i18n_likes":"Likes","i18n_congrats_post_published":"Congrats, your article has been published!","i18n_share_to_broaden":"Share it with your other networks to broaden your reach.","i18n_tooltip_bookmark":"Bookmark","i18n_tooltip_share":"Share","i18n_tooltip_like":"Like","i18n_tooltip_unlike":"Unlike","i18n_tooltip_comment":"Comment","i18n_tooltip_like_guest":"Sign in to like this article","i18n_tooltip_follow_guest":"Sign in to follow this author","i18n_tooltip_comment_guest":"Sign in to comment on this article",
"i18n_trending_on_linkedin":"Trending on LinkedIn"}})();(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_welcome",body_0);function body_0(chk,ctx){return chk.write("Welcome to Pulse, ").reference(ctx.get(["firstName"],false),ctx,"h")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_views_total",body_0);function body_0(chk,ctx){return chk.write('\x3cspan class\x3d"count count-views"\x3e').reference(ctx.get(["viewsTotal"],false),ctx,"h").write("\x3c/span\x3e ").helper("choice",ctx,{},{"key":ctx.get(["viewsTotal"],false),"singular":"view","plural":"views"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_likes_total",body_0);function body_0(chk,ctx){return chk.write('\x3cspan class\x3d"count count-likes"\x3e').reference(ctx.get(["likesTotal"],false),ctx,"h").write("\x3c/span\x3e ").helper("choice",ctx,{},{"key":ctx.get(["likesTotal"],false),"singular":"like","plural":"likes"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_comments_total",body_0);function body_0(chk,ctx){return chk.write('\x3cspan class\x3d"count count-comments"\x3e').reference(ctx.get(["commentsTotal"],false),ctx,"h").write("\x3c/span\x3e ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"comment","plural":"comments"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_shares_total",body_0);function body_0(chk,ctx){return chk.write('\x3cspan class\x3d"count count-shares"\x3e').reference(ctx.get(["sharesTotal"],false),ctx,"h").write("\x3c/span\x3e ").helper("choice",ctx,{},{"key":ctx.get(["sharesTotal"],false),"singular":"share","plural":"shares"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_comments_total_context",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["commentsTotal"],false),ctx,"h").write(" ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"comment","plural":"comments"})}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_comments_thereAre_context",body_0);function body_0(chk,ctx){return chk.write("There ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"is","plural":"are"}).write(" ").reference(ctx.get(["commentsTotal"],false),ctx,"h").write(" other ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"comment","plural":"comments"}).write(".")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_second",body_0);function body_0(chk,ctx){return chk.write("{0}s")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_minute",body_0);function body_0(chk,ctx){return chk.write("{0}m")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_hour",body_0);function body_0(chk,ctx){return chk.write("{0}h")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_day",body_0);function body_0(chk,ctx){return chk.write("{0}d")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_week",body_0);function body_0(chk,ctx){return chk.write("{0}w")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_month",body_0);function body_0(chk,ctx){return chk.write("{0}mo")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/globalStrings__i18n_timePrefixes_year",body_0);function body_0(chk,ctx){return chk.write("{0}y")}return body_0})();
(function(){dust.register("templates/walter/shared/strings/i18nTags",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_seconds_short-ago","doc":"Shorthand representation of seconds, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_minutes_short-ago","doc":"Shorthand representation of minutes, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_hours_short-ago",
"doc":"Shorthand representation of hours, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_days_short-ago","doc":"Shorthand representation of days, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_weeks_short-ago","doc":"Shorthand representation of weeks, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_months_short-ago",
"doc":"Shorthand representation of months, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_years_short-ago","doc":"Shorthand representation of years, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_seconds_long-ago","doc":"Shorthand representation of seconds, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,
{},{"key":"i18n_minutes_long-ago","doc":"Shorthand representation of minutes, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_hours_long-ago","doc":"Shorthand representation of hours, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_days_long-ago","doc":"Shorthand representation of days, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",
ctx,{},{"key":"i18n_weeks_long-ago","doc":"Shorthand representation of weeks, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_months_long-ago","doc":"Shorthand representation of months, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"}).helper("i18n",ctx,{},{"key":"i18n_years_long-ago","doc":"Shorthand representation of years, used for time notation","templateName":"templates/walter/shared/strings/i18nTags"})}
return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_seconds_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}s")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_minutes_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}m")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_hours_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}h")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_days_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}d")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_weeks_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}w")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_months_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}mo")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_years_short-ago",body_0);function body_0(chk,ctx){return chk.write("{0}y")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_seconds_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} seconds ago")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_minutes_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} minutes ago")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_hours_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} hours ago")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_days_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} days ago")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_weeks_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} weeks ago")}return body_0})();
(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_months_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} months ago")}return body_0})();(function(){dust.register("__i18n__templates/walter/shared/strings/i18nTags__i18n_years_long-ago",body_0);function body_0(chk,ctx){return chk.write("{0} years ago")}return body_0})();
(function(){dust.register("templates/walter/shared/formatters/globalFormatters",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"viewsTotal"}).helper("addToContext",ctx,{"block":body_4},{"name":"likesTotal"}).helper("addToContext",ctx,{"block":body_7},{"name":"commentsTotal"}).helper("addToContext",ctx,{"block":body_10},{"name":"sharesTotal"}).helper("addToContext",ctx,{"block":body_13},{"name":"dateMdyLong"}).helper("addToContext",ctx,{"block":body_14},
{"name":"dateIso"}).helper("addToContext",ctx,{"block":body_15},{"name":"dateMdyLong_draft_updated"}).helper("addToContext",ctx,{"block":body_16},{"name":"dateIso_draft_updated"})}function body_1(chk,ctx){return chk.notexists(ctx.get(["totalViews"],false),ctx,{"else":body_2,"block":body_3},{})}function body_2(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalViews"],false)})}function body_3(chk,ctx){return chk.write("0")}function body_4(chk,ctx){return chk.notexists(ctx.get(["totalLikes"],
false),ctx,{"else":body_5,"block":body_6},{})}function body_5(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalLikes"],false)})}function body_6(chk,ctx){return chk.write("0")}function body_7(chk,ctx){return chk.notexists(ctx.get(["totalComments"],false),ctx,{"else":body_8,"block":body_9},{})}function body_8(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalComments"],false)})}function body_9(chk,ctx){return chk.write("0")}function body_10(chk,
ctx){return chk.notexists(ctx.get(["totalShares"],false),ctx,{"else":body_11,"block":body_12},{})}function body_11(chk,ctx){return chk.helper("format",ctx,{},{"type":"number","value":ctx.get(["totalShares"],false)})}function body_12(chk,ctx){return chk.write("0")}function body_13(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.mdy.long","key":"fmt_date","date":ctx.get(["publishedDate"],false),"useTimeZone":"true"})}function body_14(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.iso",
"key":"fmt_date","date":ctx.get(["publishedDate"],false),"useTimeZone":"true"})}function body_15(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.mdy.long","key":"fmt_date","date":ctx.getPath(false,["summary","updatedDate"]),"useTimeZone":"true"})}function body_16(chk,ctx){return chk.helper("format",ctx,{},{"type":"date.iso","key":"fmt_date","date":ctx.getPath(false,["summary","updatedDate"]),"useTimeZone":"true"})}return body_0})();
(function(){dust.register("templates/walter/shared/modal",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_modal_close","output":"json","templateName":"templates/walter/shared/modal"}).write('\x3csection id\x3d"modal" class\x3d"modal visible" role\x3d"dialog" aria-labelledby\x3d"modal-title" tabindex\x3d"-1"\x3e\x3cdiv role\x3d"document" class\x3d"modal-dialog" tabindex\x3d"0"\x3e\x3cheader\x3e\x3ch1 id\x3d"modal-title"\x3e').helper("i18n",ctx,{},{"key":ctx.get(["titleKey"],
false),"templateName":ctx.get(["i18nTemplate"],false)}).write('\x3c/h1\x3e\x3cbutton class\x3d"dismiss"\x3e\x3cli-icon aria-hidden\x3d"true" type\x3d"cancel-icon" size\x3d"small"\x3e\x3c/li-icon\x3e\x3cspan class\x3d"a11y-hidden"\x3e').helper("i18n",ctx,{},{"key":"i18n_dismiss","templateName":"templates/walter/shared/modal"}).write('\x3c/span\x3e\x3c/button\x3e\x3c/header\x3e\x3cdiv id\x3d"modal-body" class\x3d"modal-body"\x3e\x3c/div\x3e').exists(ctx.get(["showFooter"],false),ctx,{"block":body_1},
{}).write("\x3c/div\x3e\x3c/section\x3e")}function body_1(chk,ctx){return chk.write('\x3cfooter\x3e\x3cdiv class\x3d"primary-actions"\x3e\x3cbutton class\x3d"no-btn"\x3e').helper("i18n",ctx,{},{"key":"i18n_no","templateName":"templates/walter/shared/modal"}).write('\x3c/button\x3e\x3cbutton class\x3d"yes-btn"\x3e').helper("i18n",ctx,{},{"key":"i18n_yes","templateName":"templates/walter/shared/modal"}).write("\x3c/button\x3e\x3c/div\x3e\x3c/footer\x3e")}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/walter/shared/modal"]={"i18n_modal_close":"Close","i18n_dismiss":"Dismiss","i18n_no":"No","i18n_yes":"Yes"}})();
(function(){dust.register("templates/walter/shared/simpleTextModalBody",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":ctx.get(["contentKey"],false),"templateName":ctx.get(["i18nTemplate"],false)})}return body_0})();
(function(){dust.register("templates/walter/flagging/semaphoreFlagging",body_0);var blocks={"buttonSection":body_1};function body_0(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.helper("gt",ctx,{"block":body_4},{"key":ctx.get(["pageCount"],false),"value":1}).write('\x3cdiv class\x3d"pagination"\x3e').section(ctx.get(["paging"],false),ctx,{"block":body_5},{}).write('\x3c/div\x3e\x3cdiv class\x3d"options"\x3e').section(ctx.get(["options"],false),ctx,{"block":body_7},{}).write("\x3c/div\x3e")}function body_1(chk,
ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cdl role\x3d"button" tabindex\x3d"0" class\x3d"option option-trigger" data-option-index\x3d"').reference(ctx.get(["$idx"],false),ctx,"h").write('"').exists(ctx.get(["actionUrl"],false),ctx,{"block":body_2},{}).write('data-tracking-id\x3d"').reference(ctx.get(["trackingId"],false),ctx,"h").write('"').exists(ctx.get(["url"],false),ctx,{"block":body_3},{}).write('\x3e\x3cdt class\x3d"flagging-reason"\x3e').reference(ctx.get(["title"],false),ctx,"h").write('\x3cli-icon class\x3d"next" type\x3d"chevron-right-icon" size\x3d"small"\x3e\x3c/li-icon\x3e\x3c/dt\x3e\x3cdd class\x3d"flagging-description"\x3e').reference(ctx.get(["body"],
false),ctx,"h").write("\x3c/dd\x3e\x3c/dl\x3e")}function body_2(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write(' data-option-url\x3d"').reference(ctx.get(["actionUrl"],false),ctx,"h").write('"')}function body_3(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write(' data-open-link-url\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('"')}function body_4(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3cli-icon class\x3d"back" type\x3d"chevron-left-icon" size\x3d"small"\x3e\x3c/li-icon\x3e')}
function body_5(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write('\x3ci class\x3d"page').helper("eq",ctx,{"block":body_6},{"key":ctx.get(["pageCount"],false),"value":ctx.getPath(true,[])}).write('"\x3e\x3c/i\x3e')}function body_6(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.write(" selected")}function body_7(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.section(ctx.get(["section"],false),ctx,{"block":body_8},{}).section(ctx.get(["action"],false),ctx,{"block":body_9},{}).section(ctx.get(["openLink"],
false),ctx,{"block":body_10},{})}function body_8(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.block(ctx.getBlock("buttonSection"),ctx,{},{})}function body_9(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.block(ctx.getBlock("buttonSection"),ctx,{},{})}function body_10(chk,ctx){ctx=ctx.shiftBlocks(blocks);return chk.block(ctx.getBlock("buttonSection"),ctx,{},{})}return body_0})();
(function(){dust.register("templates/walter/shared/janetVideo",body_0);function body_0(chk,ctx){return chk.helper("addToContext",ctx,{"block":body_1},{"name":"video_url"}).helper("addToContext",ctx,{"block":body_2},{"name":"videoAuthorPostsUrl"}).write('\x3cvideo id\x3d"video" src\x3d"').reference(ctx.get(["video_url"],false),ctx,"h").write('" controls width\x3d"744" height\x3d"418"\x3e\x3c/video\x3e\x3cdiv class\x3d"overlay"\x3e\x3ch2\x3e').helper("i18n",ctx,{},{"key":"i18n_analytics_no_activity_new_world",
"templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3c/h2\x3e\x3cbutton class\x3d"play"\x3e\x3cli-icon type\x3d"play-icon"\x3e\x3c/li-icon\x3e\x3c/button\x3e\x3ch4\x3e').helper("i18n",ctx,{},{"key":"i18n_analytics_no_activity_check_out_janet","templateName":"templates/walter/shared/strings/globalStrings"}).write('\x3cspan class\x3d"divider"\x3e\x3c/span\x3e\x3ca href\x3d"').reference(ctx.get(["videoAuthorPostsUrl"],false),ctx,"h").write('" class\x3d"text-link"\x3e').helper("i18n",
ctx,{},{"key":"i18n_analytics_no_activity_read_janet","templateName":"templates/walter/shared/strings/globalStrings"}).write("\x3c/a\x3e\x3c/h4\x3e\x3c/div\x3e")}function body_1(chk,ctx){return chk.write("https://vcdn.slidesharecdn.com/linkedinjanetmfinal022515startwriting-150406235106-conversion-gate01-video-HD.mp4")}function body_2(chk,ctx){return chk.write("https://www.linkedin.com/today/author/6508011?trk\x3dpulse_spock-video-author-posts")}return body_0})();
(function(){dust.register("templates/walter/shared/tooltip",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"tooltip-container"\x3e\x3cp class\x3d"tooltip-content" role\x3d"tooltip" id\x3d"').reference(ctx.get(["id"],false),ctx,"h").write('"\x3e').reference(ctx.get(["content"],false),ctx,"h").write("\x3c/p\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/walter/shared/socialActions",body_0);function body_0(chk,ctx){return chk.write('\x3cul class\x3d"actions article-actions article-footer-actions"\x3e\x3cli\x3e').partial("templates/walter/shared/buttonLike",ctx,{"showText":"false","className":"button-secondary-large-round-muted"}).write("\x3c/li\x3e").notexists(ctx.get(["commentingDisabled"],false),ctx,{"block":body_1},{}).write("\x3cli\x3e").partial("templates/walter/shared/buttonShare",ctx,{"showText":"false",
"className":"button-secondary-large-round-muted"}).write("\x3c/li\x3e").notexists(ctx.get(["removeBookmark"],false),ctx,{"block":body_2},{}).write("\x3c/ul\x3e")}function body_1(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonComment",ctx,{"showText":"false","className":"button-secondary-large-round-muted"}).write("\x3c/li\x3e")}function body_2(chk,ctx){return chk.write("\x3cli\x3e").partial("templates/walter/shared/buttonBookmark",ctx,{"showText":"false","className":"button-secondary-large-round-muted"}).write("\x3c/li\x3e")}
return body_0})();
(function(){dust.register("templates/walter/flagging/semaphoreFlaggingSuccess",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"success-group"\x3e\x3cli-icon class\x3d"success-icon" type\x3d"success-pebble-icon"\x3e\x3c/li-icon\x3e\x3ch3 class\x3d"success-text"\x3e').reference(ctx.getPath(false,["resultScreen","title"]),ctx,"h").write("\x3c/h3\x3e\x3c/div\x3e").exists(ctx.get(["additionalActions"],false),ctx,{"block":body_1},{})}function body_1(chk,ctx){return chk.write('\x3cdiv class\x3d"additional-actions"\x3e\x3cp class\x3d"action-headline"\x3e').reference(ctx.getPath(false,
["resultScreen","body"]),ctx,"h").write('\x3c/p\x3e\x3cul class\x3d"action-options"\x3e').section(ctx.get(["additionalActions"],false),ctx,{"block":body_2},{}).write("\x3c/ul\x3e\x3c/div\x3e")}function body_2(chk,ctx){return chk.write('\x3cli class\x3d"option option-trigger" data-tracking-id\x3d"').reference(ctx.get(["trackingId"],false),ctx,"h").write('"\x3e\x3ca href\x3d"').reference(ctx.get(["actionUrl"],false),ctx,"h").write('"\x3e').helper("select",ctx,{"block":body_3},{"key":ctx.get(["type"],
false)}).write('\x3cspan class\x3d"success-action"\x3e').reference(ctx.get(["title"],false),ctx,"h").write("\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")}function body_3(chk,ctx){return chk.helper("eq",ctx,{"block":body_4},{"value":"SEND_MESSAGE"}).helper("eq",ctx,{"block":body_5},{"value":"BLOCK_PROFILE"}).helper("eq",ctx,{"block":body_6},{"value":"REMOVE_CONNECTION"}).helper("eq",ctx,{"block":body_7},{"value":"UNFOLLOW"})}function body_4(chk,ctx){return chk.write('\x3cli-icon type\x3d"envelope-icon" size\x3d"small"\x3e\x3c/li-icon\x3e')}
function body_5(chk,ctx){return chk.write('\x3cli-icon type\x3d"block-icon" size\x3d"small"\x3e\x3c/li-icon\x3e')}function body_6(chk,ctx){return chk.write('\x3cli-icon type\x3d"block-icon" size\x3d"small"\x3e\x3c/li-icon\x3e')}function body_7(chk,ctx){return chk.write('\x3cli-icon type\x3d"cancel-icon" size\x3d"small"\x3e\x3c/li-icon\x3e')}return body_0})();
(function(){dust.register("templates/walter/shared/topAd",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"ad-container"\x3e\x3ciframe src\x3d"').helper("adUrl",ctx,{},{"width":"1","height":"1","tile":"1","publisherId":"1","zone":ctx.get(["pageKey"],false)}).write('" width\x3d"974" height\x3d"34" scrolling\x3d"no"\x3e\x3c/iframe\x3e\x3c/div\x3e')}return body_0})();
/* Auto generated, hash = cbtwy1p20habooqv154iwym6l */
if(typeof LI==="undefined"||!LI)window.LI={};LI.namespace=function(newNamespace){var o=LI,namespaceElements,i,len;namespaceElements=newNamespace.split(".");for(i=0,len=namespaceElements.length;i<len;i=i+1){o[namespaceElements[i]]=o[namespaceElements[i]]||{};o=o[namespaceElements[i]]}return o};LI.define=function(namespace){return LI.namespace(namespace)};window.i18n=window.i18n||{};if(typeof Lui==="undefined"||!Lui){Lui={};lui=Lui}
(function(){if(typeof YAHOO!=="undefined"&&YAHOO.util){var u=YAHOO.util;window.YUtil=YAHOO.util;if(u.Connect)window.YConn=u.Connect;if(u.Get)window.YGet=u.Get;if(YAHOO.lang&&YAHOO.lang.JSON)window.YJson=YAHOO.lang.JSON;if(YAHOO.widget)window.YWidget=YAHOO.widget;if(u.Dom){window.YDom=u.Dom;YDom.get=function(el){if(el){if(el.nodeType||el.item)return el;if(typeof el==="string")return document.getElementById(el);if(typeof el==="object")if("length"in el){var c=[];for(var i=0,len=el.length;i<len;++i)c[c.length]=
YDom.get(el[i]);return c}return el}return null}}if(u.Event)window.YEvent=u.Event;if(u.Anim)window.YAnim=u.Anim;window.Y$=function(selector,root,firstOnly){var result=firstOnly?null:[];if(!selector)return result;if(root&&!root.nodeName){root=YDom.get(root);if(!root)return result}if(window.jQuery){result=root?jQuery(root).find(selector):jQuery(selector);if(firstOnly&&result.length>0)return result.get(0);else if(firstOnly&&result.length<=0)return null;result=result.get()}else{result=root?Sizzle(selector,
root):Sizzle(selector);if(firstOnly&&result.length>0)return result[0];else if(firstOnly&&result.length<=0)return null}return result}}})();if(typeof YAHOO!=="undefined"&&typeof Sizzle!=="undefined")window.YSel=Sizzle;if(!window.console){var f=function(){};window.console={log:f,debug:f,info:f,warn:f,error:f,assert:f,dir:f,dirxml:f,trace:f,group:f,groupEnd:f,time:f,timeEnd:f,profile:f,profileEnd:f,count:f}}
(function(root){var moduleWindowMappings={jquery:function(){return window.jQuery||window.$},underscore:"_",fiber:"Fiber","li-backbone":"MVC","backbone":"Backbone"};function findModuleFromWindow(name){name=moduleWindowMappings[name]||name;if(typeof name==="function")return name();else return window[name]||undefined}function getterSetter(name,module){var DELIM=".",context=name.split(DELIM);name=context.pop();context=context.join(DELIM);if(context)context=LI.define(context);context=context||LI;if(module)context[name]=
module;else return context[name]||findModuleFromWindow(name)}var LIModules=root.LIModules=root.LIModules||{};LIModules.imports=function(name){return getterSetter(name)};LIModules.requires=function(name){var module=getterSetter(name);if(module)return module;throw new Error(name+" was not loaded or could not be found");};LIModules.exports=function(name,module){getterSetter(name,module)}})(window);
LIModules.exports("jsConfig",{get:function(name,namespace){var registry=window.__li__config_registry__||{};if(namespace)registry=registry[namespace]||{};return registry[name]||{}}});LIModules.exports("LiX",{get:function(key){var registry=window.__li__lix_registry__||{},value=registry[key]||"";return value}});
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory():typeof define==="function"&&define.amd?define("jSecure",factory):global.jSecure=factory()})(this,function(){var TEXT_CONTENT_PROP=hasTextContent()?"textContent":"innerText";var FORMATTING_TAGS=["b","del","em","i","s","strong","sub","sup"];var ALLOWED_TAGS=FORMATTING_TAGS.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite",
"code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]);var ALLOWED_ATTRS="alt|aria-[a-z0-9_\\-]+|border|caption|checked|class"+"|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir"+
"|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth"+"|maxlength|method|multiple|name|preload|readonly|rel|required|reversed"+"|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width"+"|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step";var ALLOWED_URL_ATTRS="href|src";var ALLOWED_URL_PREFIXES="data:image/(?:gif|jpg|jpeg|png);base64,";var ALLOWED_URL_SCHEMES="https?|ftp|mailto";var ENTITIES_PATTERN="\x26#?[a-zA-Z0-9]{1,10};";var R_ENTITIES=
new RegExp(ENTITIES_PATTERN);function ValueString(){}function hasTextContent(){if(typeof document==="undefined")return true;return"textContent"in document.createElement("div")}var jSecure__jSecure={ALLOWED_TAGS:ALLOWED_TAGS,FORMATTING_TAGS:FORMATTING_TAGS};var log=jSecure__jSecure.log=function(message,level){level=level||"log";if(typeof console!=="undefined"&&typeof console[level]==="function")console[level](message)};var unsafe=jSecure__jSecure.unsafe=function(text){return text};var jSecure__default=
jSecure__jSecure;var htmlEncode=jSecure__default.htmlEncode=function(){var rHtmlChars=/[&<>"'\u0000\\=]/g,htmlCharsToEntities;htmlCharsToEntities={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","\x00":"\ufffd","\\":"\x26#92;","\x3d":"\x26#61;"};return function(str){if(str===null||str===undefined)return null;return str.toString().replace(rHtmlChars,function(match){return htmlCharsToEntities[match]})}}();var htmlUnencode=jSecure__default.htmlUnencode=function(){var helperDiv,
rEntities=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/ig,decodeNumericEntity;if(typeof document==="undefined")return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)");};helperDiv=document.createElement("div");var decodedEntities={"nbsp":"\u00a0","lt":"\x3c","gt":"\x3e","amp":"\x26","quot":'"'};function decodeNamedEntity(entity){var decoded;if(decodedEntities.hasOwnProperty(entity))return decodedEntities[entity];helperDiv.innerHTML="\x26"+entity+";";decoded=
helperDiv[TEXT_CONTENT_PROP];decodedEntities[entity]=decoded;return decoded}if(typeof String.fromCodePoint==="function")decodeNumericEntity=function(num){return String.fromCodePoint(num)};else decodeNumericEntity=function(num){return num<=65535?String.fromCharCode(num):"\ufffd"};return function htmlUnencode(encodedText){if(encodedText===null||encodedText===undefined)return null;return(encodedText+"").replace(rEntities,function(match,named,hex,dec){if(named)return decodeNamedEntity(named);else if(hex||
dec)return decodeNumericEntity(parseInt(hex||dec,hex?16:10)||65533);return"\ufffd"})}}();var reEncode=jSecure__default.reEncode=function(string){return jSecure__default.htmlEncode(jSecure__default.htmlUnencode(string))};var text=jSecure__default.text=function(string){jSecure__default.log("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn");return jSecure__default.htmlEncode(string)};var encoding={htmlEncode:htmlEncode,htmlUnencode:htmlUnencode,reEncode:reEncode,text:text};function containsHTML(string){return string.indexOf("\x3c")>
-1||string.indexOf("\x26")>-1}function createWhitelist(tags){tags=tags||ALLOWED_TAGS;return new RegExp("\x3c(?!/?(?:"+tags.join("|")+")(?:[ \t\r\n]*/?\x3e|[ \t\r\n]+(?:(?:(?:"+ALLOWED_ATTRS+")(?:\x3d([\"'])[^'\"\x3c\x3e]*\\1)?|(?:"+ALLOWED_URL_ATTRS+")\x3d([\"'])(?:(?:"+ALLOWED_URL_SCHEMES+")(?::|\x26#(?:58|x3a);)|(?:"+ALLOWED_URL_PREFIXES+")|[/.#?]|\x26#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"\x3c\x3e]*\\2)[ \t\r\n]*)+/?\x3e))","i")}function escapeRegexChars(string){return(string+"").replace(/[\-#$\^*()+\[\]{}|\\,.?\s]/g,
"\\$\x26")}function extend(target,source){for(var key in source)if(source.hasOwnProperty(key))target[key]=source[key];return target}function flattenShallow(array){return array.reduce(function(newArray,el){return newArray.concat(el)},[])}var forEach=function(){if(Array.prototype.forEach)return function(array,fn){Array.prototype.forEach.call(array,fn)};return function(array,fn){for(var i=0,length=array.length;i<length;i++)fn(array[i],i)}}();function isSafeHTML(string){return!isSafeHTML.R_UNSAFE_HTML.test(string)}
isSafeHTML.R_UNSAFE_HTML=createWhitelist();function stripTags(string){return string.replace(/<[^>]*>|[<>'"&\\]/g,"")}var isArray=Array.isArray||function(arg){return Object.prototype.toString.call(arg)==="[object Array]"};function processString(string,replacements){var replacedString=replacements?replacePlaceholders(string,replacements):string,origString=string;if(containsHTML(replacedString)&&!isSafeHTML(replacedString)){replacedString=stripTags(replacedString);log("Content contains non-whitelisted tags or attributes:\n"+
"Content: "+origString,"warn")}return replacedString}function replacePlaceholders(string,replacements){var processedReplacements={};return string.replace(/\{([^}]+)\}/g,function(match,placeholder){var replacement=match,isString,isNumber;if(processedReplacements.hasOwnProperty(placeholder))return processedReplacements[placeholder];if(replacements.hasOwnProperty(placeholder)){replacement=replacements[placeholder];isString=typeof replacement==="string";isNumber=typeof replacement==="number";if(!isString&&
!(replacement instanceof ValueString)&&!isNumber)throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");replacement=isString?htmlEncode(replacement):replacement.toString()}processedReplacements[placeholder]=replacement;return replacement})}function merge(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++)first[i++]=second[j];first.length=i;return first}var wrapMap={option:[1,'\x3cselect multiple\x3d"multiple"\x3e',"\x3c/select\x3e"],
thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};wrapMap.optgroup=wrapMap.option;wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;var rtagName=/<([\w:]+)/;function buildFragment(htmls,context){var tag,wrap,fragment=
context.createDocumentFragment(),wrapped,tmp,nodes=[],html,i,j,l;for(i=0,l=htmls.length;i<l;i++){html=htmls[i];if(html||html===0)if(typeof html==="string"){tmp=tmp||fragment.appendChild(context.createElement("div"));tag=(rtagName.exec(html)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;wrapped=wrap[1]+html+wrap[2];jSecure.setElementContent(tmp,wrapped);j=wrap[0];while(j--)if(tmp.lastChild&&tmp.lastChild.nodeType===Node.ELEMENT_NODE)tmp=tmp.lastChild;merge(nodes,tmp.childNodes);tmp=
fragment.firstChild;tmp.textContent=""}else merge(nodes,html.nodeType?[html]:html)}fragment.textContent="";i=0;html=nodes[i];while(html){fragment.appendChild(html);i++;html=nodes[i]}return fragment}function parseHTML(template,context){context=context||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document;var parsed;if(typeof template==="string")parsed=buildFragment([template],context);else if(isArray(template))parsed=buildFragment(template,
context);else return template;return merge([],parsed.childNodes)}var manipulation={parseHTML:parseHTML};var processTemplate=jSecure__default.processTemplate=processString;var sanitizeHTML=jSecure__default.sanitizeHTML=function(htmlString){return processString(htmlString)};var setElementContent=jSecure__default.setElementContent=function(el,template,replacements){var processedTemplate=processString(template,replacements);if(containsHTML(processedTemplate))el.innerHTML=processedTemplate;else el[TEXT_CONTENT_PROP]=
processedTemplate;return processedTemplate};jSecure__default.parseHTML=parseHTML;var parseSelector=jSecure__default.parseSelector=function(selector){var rQuickExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;if(typeof selector==="string"&&rQuickExpr.test(selector))return[];return selector};var safeHTML={processTemplate:processTemplate,sanitizeHTML:sanitizeHTML,setElementContent:setElementContent,parseHTML:parseHTML,parseSelector:parseSelector};var UnsafeString=jSecure__default.UnsafeString=function(string,options){if(!(this instanceof
UnsafeString))return new UnsafeString(string,options);options=options||{};options.allowTags=options.allowTags?flattenShallow(options.allowTags):jSecure__default.ALLOWED_TAGS;this._string=string;this._options=options};UnsafeString.prototype=extend(new ValueString,{toString:function toString(){var string=this._string,allowedTags=this._options.allowTags,stringVal=this._stringVal,origString=string,rNonWhitelist;if(stringVal!==undefined)return stringVal;rNonWhitelist=createWhitelist(allowedTags);if(rNonWhitelist.test(string)){origString=
string;string=stripTags(string);jSecure__default.log("UnsafeString contains non-whitelisted tags or attributes.\n"+"String: "+origString+"\nAllowed Tags: "+allowedTags,"warn")}this._stringVal=string;return string}});var index=jSecure__default;return index});
//     Underscore.js 1.6.0
//     http://underscorejs.org
//     (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Underscore may be freely distributed under the MIT license.
(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,g=e.filter,d=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,w=Object.keys,_=i.bind,j=function(n){return n instanceof j?n:this instanceof j?void(this._wrapped=n):new j(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=j),exports._=j):n._=j,j.VERSION="1.6.0";var A=j.each=j.forEach=function(n,t,e){if(null==n)return n;if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a=j.keys(n),u=0,i=a.length;i>u;u++)if(t.call(e,n[a[u]],a[u],n)===r)return;return n};j.map=j.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e.push(t.call(r,n,u,i))}),e)};var O="Reduce of empty array with no initial value";j.reduce=j.foldl=j.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=j.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(O);return r},j.reduceRight=j.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=j.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var a=j.keys(n);i=a.length}if(A(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(O);return r},j.find=j.detect=function(n,t,r){var e;return k(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},j.filter=j.select=function(n,t,r){var e=[];return null==n?e:g&&n.filter===g?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&e.push(n)}),e)},j.reject=function(n,t,r){return j.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},j.every=j.all=function(n,t,e){t||(t=j.identity);var u=!0;return null==n?u:d&&n.every===d?n.every(t,e):(A(n,function(n,i,a){return(u=u&&t.call(e,n,i,a))?void 0:r}),!!u)};var k=j.some=j.any=function(n,t,e){t||(t=j.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,a){return u||(u=t.call(e,n,i,a))?r:void 0}),!!u)};j.contains=j.include=function(n,t){return null==n?!1:y&&n.indexOf===y?n.indexOf(t)!=-1:k(n,function(n){return n===t})},j.invoke=function(n,t){var r=o.call(arguments,2),e=j.isFunction(t);return j.map(n,function(n){return(e?t:n[t]).apply(n,r)})},j.pluck=function(n,t){return j.map(n,j.property(t))},j.where=function(n,t){return j.filter(n,j.matches(t))},j.findWhere=function(n,t){return j.find(n,j.matches(t))},j.max=function(n,t,r){if(!t&&j.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);var e=-1/0,u=-1/0;return A(n,function(n,i,a){var o=t?t.call(r,n,i,a):n;o>u&&(e=n,u=o)}),e},j.min=function(n,t,r){if(!t&&j.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.min.apply(Math,n);var e=1/0,u=1/0;return A(n,function(n,i,a){var o=t?t.call(r,n,i,a):n;u>o&&(e=n,u=o)}),e},j.shuffle=function(n){var t,r=0,e=[];return A(n,function(n){t=j.random(r++),e[r-1]=e[t],e[t]=n}),e},j.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=j.values(n)),n[j.random(n.length-1)]):j.shuffle(n).slice(0,Math.max(0,t))};var E=function(n){return null==n?j.identity:j.isFunction(n)?n:j.property(n)};j.sortBy=function(n,t,r){return t=E(t),j.pluck(j.map(n,function(n,e,u){return{value:n,index:e,criteria:t.call(r,n,e,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=E(r),A(t,function(i,a){var o=r.call(e,i,a,t);n(u,o,i)}),u}};j.groupBy=F(function(n,t,r){j.has(n,t)?n[t].push(r):n[t]=[r]}),j.indexBy=F(function(n,t,r){n[t]=r}),j.countBy=F(function(n,t){j.has(n,t)?n[t]++:n[t]=1}),j.sortedIndex=function(n,t,r,e){r=E(r);for(var u=r.call(e,t),i=0,a=n.length;a>i;){var o=i+a>>>1;r.call(e,n[o])<u?i=o+1:a=o}return i},j.toArray=function(n){return n?j.isArray(n)?o.call(n):n.length===+n.length?j.map(n,j.identity):j.values(n):[]},j.size=function(n){return null==n?0:n.length===+n.length?n.length:j.keys(n).length},j.first=j.head=j.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:0>t?[]:o.call(n,0,t)},j.initial=function(n,t,r){return o.call(n,0,n.length-(null==t||r?1:t))},j.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:o.call(n,Math.max(n.length-t,0))},j.rest=j.tail=j.drop=function(n,t,r){return o.call(n,null==t||r?1:t)},j.compact=function(n){return j.filter(n,j.identity)};var M=function(n,t,r){return t&&j.every(n,j.isArray)?c.apply(r,n):(A(n,function(n){j.isArray(n)||j.isArguments(n)?t?a.apply(r,n):M(n,t,r):r.push(n)}),r)};j.flatten=function(n,t){return M(n,t,[])},j.without=function(n){return j.difference(n,o.call(arguments,1))},j.partition=function(n,t){var r=[],e=[];return A(n,function(n){(t(n)?r:e).push(n)}),[r,e]},j.uniq=j.unique=function(n,t,r,e){j.isFunction(t)&&(e=r,r=t,t=!1);var u=r?j.map(n,r,e):n,i=[],a=[];return A(u,function(r,e){(t?e&&a[a.length-1]===r:j.contains(a,r))||(a.push(r),i.push(n[e]))}),i},j.union=function(){return j.uniq(j.flatten(arguments,!0))},j.intersection=function(n){var t=o.call(arguments,1);return j.filter(j.uniq(n),function(n){return j.every(t,function(t){return j.contains(t,n)})})},j.difference=function(n){var t=c.apply(e,o.call(arguments,1));return j.filter(n,function(n){return!j.contains(t,n)})},j.zip=function(){for(var n=j.max(j.pluck(arguments,"length").concat(0)),t=new Array(n),r=0;n>r;r++)t[r]=j.pluck(arguments,""+r);return t},j.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},j.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=j.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(y&&n.indexOf===y)return n.indexOf(t,r);for(;u>e;e++)if(n[e]===t)return e;return-1},j.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(b&&n.lastIndexOf===b)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var u=e?r:n.length;u--;)if(n[u]===t)return u;return-1},j.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=new Array(e);e>u;)i[u++]=n,n+=r;return i};var R=function(){};j.bind=function(n,t){var r,e;if(_&&n.bind===_)return _.apply(n,o.call(arguments,1));if(!j.isFunction(n))throw new TypeError;return r=o.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(o.call(arguments)));R.prototype=n.prototype;var u=new R;R.prototype=null;var i=n.apply(u,r.concat(o.call(arguments)));return Object(i)===i?i:u}},j.partial=function(n){var t=o.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===j&&(e[u]=arguments[r++]);for(;r<arguments.length;)e.push(arguments[r++]);return n.apply(this,e)}},j.bindAll=function(n){var t=o.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return A(t,function(t){n[t]=j.bind(n[t],n)}),n},j.memoize=function(n,t){var r={};return t||(t=j.identity),function(){var e=t.apply(this,arguments);return j.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},j.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},j.defer=function(n){return j.delay.apply(j,[n,1].concat(o.call(arguments,1)))},j.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var c=function(){o=r.leading===!1?0:j.now(),a=null,i=n.apply(e,u),e=u=null};return function(){var l=j.now();o||r.leading!==!1||(o=l);var f=t-(l-o);return e=this,u=arguments,0>=f?(clearTimeout(a),a=null,o=l,i=n.apply(e,u),e=u=null):a||r.trailing===!1||(a=setTimeout(c,f)),i}},j.debounce=function(n,t,r){var e,u,i,a,o,c=function(){var l=j.now()-a;t>l?e=setTimeout(c,t-l):(e=null,r||(o=n.apply(i,u),i=u=null))};return function(){i=this,u=arguments,a=j.now();var l=r&&!e;return e||(e=setTimeout(c,t)),l&&(o=n.apply(i,u),i=u=null),o}},j.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},j.wrap=function(n,t){return j.partial(t,n)},j.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},j.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},j.keys=function(n){if(!j.isObject(n))return[];if(w)return w(n);var t=[];for(var r in n)j.has(n,r)&&t.push(r);return t},j.values=function(n){for(var t=j.keys(n),r=t.length,e=new Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},j.pairs=function(n){for(var t=j.keys(n),r=t.length,e=new Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},j.invert=function(n){for(var t={},r=j.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},j.functions=j.methods=function(n){var t=[];for(var r in n)j.isFunction(n[r])&&t.push(r);return t.sort()},j.extend=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},j.pick=function(n){var t={},r=c.apply(e,o.call(arguments,1));return A(r,function(r){r in n&&(t[r]=n[r])}),t},j.omit=function(n){var t={},r=c.apply(e,o.call(arguments,1));for(var u in n)j.contains(r,u)||(t[u]=n[u]);return t},j.defaults=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]===void 0&&(n[r]=t[r])}),n},j.clone=function(n){return j.isObject(n)?j.isArray(n)?n.slice():j.extend({},n):n},j.tap=function(n,t){return t(n),n};var S=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof j&&(n=n._wrapped),t instanceof j&&(t=t._wrapped);var u=l.call(n);if(u!=l.call(t))return!1;switch(u){case"[object String]":return n==String(t);case"[object Number]":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]==n)return e[i]==t;var a=n.constructor,o=t.constructor;if(a!==o&&!(j.isFunction(a)&&a instanceof a&&j.isFunction(o)&&o instanceof o)&&"constructor"in n&&"constructor"in t)return!1;r.push(n),e.push(t);var c=0,f=!0;if("[object Array]"==u){if(c=n.length,f=c==t.length)for(;c--&&(f=S(n[c],t[c],r,e)););}else{for(var s in n)if(j.has(n,s)&&(c++,!(f=j.has(t,s)&&S(n[s],t[s],r,e))))break;if(f){for(s in t)if(j.has(t,s)&&!c--)break;f=!c}}return r.pop(),e.pop(),f};j.isEqual=function(n,t){return S(n,t,[],[])},j.isEmpty=function(n){if(null==n)return!0;if(j.isArray(n)||j.isString(n))return 0===n.length;for(var t in n)if(j.has(n,t))return!1;return!0},j.isElement=function(n){return!(!n||1!==n.nodeType)},j.isArray=x||function(n){return"[object Array]"==l.call(n)},j.isObject=function(n){return n===Object(n)},A(["Arguments","Function","String","Number","Date","RegExp"],function(n){j["is"+n]=function(t){return l.call(t)=="[object "+n+"]"}}),j.isArguments(arguments)||(j.isArguments=function(n){return!(!n||!j.has(n,"callee"))}),"function"!=typeof/./&&(j.isFunction=function(n){return"function"==typeof n}),j.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},j.isNaN=function(n){return j.isNumber(n)&&n!=+n},j.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==l.call(n)},j.isNull=function(n){return null===n},j.isUndefined=function(n){return n===void 0},j.has=function(n,t){return f.call(n,t)},j.noConflict=function(){return n._=t,this},j.identity=function(n){return n},j.constant=function(n){return function(){return n}},j.property=function(n){return function(t){return t[n]}},j.matches=function(n){return function(t){if(t===n)return!0;for(var r in n)if(n[r]!==t[r])return!1;return!0}},j.times=function(n,t,r){for(var e=Array(Math.max(0,n)),u=0;n>u;u++)e[u]=t.call(r,u);return e},j.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},j.now=Date.now||function(){return(new Date).getTime()};var T={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};T.unescape=j.invert(T.escape);var I={escape:new RegExp("["+j.keys(T.escape).join("")+"]","g"),unescape:new RegExp("("+j.keys(T.unescape).join("|")+")","g")};j.each(["escape","unescape"],function(n){j[n]=function(t){return null==t?"":(""+t).replace(I[n],function(t){return T[n][t]})}}),j.result=function(n,t){if(null==n)return void 0;var r=n[t];return j.isFunction(r)?r.call(n):r},j.mixin=function(n){A(j.functions(n),function(t){var r=j[t]=n[t];j.prototype[t]=function(){var n=[this._wrapped];return a.apply(n,arguments),z.call(this,r.apply(j,n))}})};var N=0;j.uniqueId=function(n){var t=++N+"";return n?n+t:t},j.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\t|\u2028|\u2029/g;j.template=function(n,t,r){var e;r=j.defaults({},r,j.templateSettings);var u=new RegExp([(r.escape||q).source,(r.interpolate||q).source,(r.evaluate||q).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(D,function(n){return"\\"+B[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),u&&(a+="';\n"+u+"\n__p+='"),i=o+t.length,t}),a+="';\n",r.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=new Function(r.variable||"obj","_",a)}catch(o){throw o.source=a,o}if(t)return e(t,j);var c=function(n){return e.call(this,n,j)};return c.source="function("+(r.variable||"obj")+"){\n"+a+"}",c},j.chain=function(n){return j(n).chain()};var z=function(n){return this._chain?j(n).chain():n};j.mixin(j),A(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=e[n];j.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!=n&&"splice"!=n||0!==r.length||delete r[0],z.call(this,r)}}),A(["concat","join","slice"],function(n){var t=e[n];j.prototype[n]=function(){return z.call(this,t.apply(this._wrapped,arguments))}}),j.extend(j.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return j})}).call(this);

/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)
},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Lb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Mb||(Mb=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Mb),Mb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Yb,Zb,$b=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))
},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=l.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,n.ajaxSettings),b):tc(n.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||xc.test(a)?d(a,e):Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cc=0,Dc={},Ec={0:200,1223:204},Fc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Dc)Dc[a]()}),k.cors=!!Fc&&"withCredentials"in Fc,k.ajax=Fc=!!Fc,n.ajaxTransport(function(a){var b;return k.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gc=[],Hc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gc.pop()||n.expando+"_"+cc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hc,"$1"+e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Ic=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Ic)return Ic.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Jc=a.document.documentElement;function Kc(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Kc(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Jc;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Jc})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Kc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=yb(k.pixelPosition,function(a,c){return c?(c=xb(a,b),vb.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Lc=a.jQuery,Mc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Mc),b&&a.jQuery===n&&(a.jQuery=Lc),n},typeof b===U&&(a.jQuery=a.$=n),n});

(function(LIModules){var jSecure=LIModules.requires("jSecure");LIModules.exports("htmlEncode",jSecure.htmlEncode)})(window.LIModules);
(function($){var _={isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:false},isBlankString:function(str){return!str||/^\s*$/.test(str)},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$\x26")},isString:function(obj){return typeof obj==="string"},isNumber:function(obj){return typeof obj==="number"},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return typeof obj===
"undefined"},bind:$.proxy,each:function(collection,cb){$.each(collection,reverseArgs);function reverseArgs(index,value){return cb(value,index)}},map:$.map,filter:$.grep,every:function(obj,test){var result=true;if(!obj)return result;$.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj)))return false});return!!result},some:function(obj,test){var result=false;if(!obj)return result;$.each(obj,function(key,val){if(result=test.call(null,val,key,obj))return false});return!!result},mixin:$.extend,
getUniqueId:function(){var counter=0;return function(){return counter++}}(),templatify:function templatify(obj){return $.isFunction(obj)?obj:template;function template(){return String(obj)}},defer:function(fn){setTimeout(fn,0)},debounce:function(func,wait,immediate){var timeout,result;return function(){var context=this,args=arguments,later,callNow;later=function(){timeout=null;if(!immediate)result=func.apply(context,args)};callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,
wait);if(callNow)result=func.apply(context,args);return result}},throttle:function(func,wait){var context,args,timeout,result,previous,later;previous=0;later=function(){previous=new Date;timeout=null;result=func.apply(context,args)};return function(){var now=new Date,remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args)}else if(!timeout)timeout=setTimeout(later,remaining);return result}},noop:function(){}};
var VERSION="0.10.2";var tokenizers=function(root){return{nonword:nonword,whitespace:whitespace,obj:{nonword:getObjTokenizer(nonword),whitespace:getObjTokenizer(whitespace)}};function whitespace(s){return s.split(/\s+/)}function nonword(s){return s.split(/\W+/)}function getObjTokenizer(tokenizer){return function setKey(key){return function tokenize(o){return tokenizer(o[key])}}}}();var LruCache=function(){function LruCache(maxSize){this.maxSize=maxSize||100;this.size=0;this.hash={};this.list=new List}
_.mixin(LruCache.prototype,{set:function set(key,val){var tailItem=this.list.tail,node;if(this.size>=this.maxSize){this.list.remove(tailItem);delete this.hash[tailItem.key]}if(node=this.hash[key]){node.val=val;this.list.moveToFront(node)}else{node=new Node(key,val);this.list.add(node);this.hash[key]=node;this.size++}},get:function get(key){var node=this.hash[key];if(node){this.list.moveToFront(node);return node.val}}});function List(){this.head=this.tail=null}_.mixin(List.prototype,{add:function add(node){if(this.head){node.next=
this.head;this.head.prev=node}this.head=node;this.tail=this.tail||node},remove:function remove(node){node.prev?node.prev.next=node.next:this.head=node.next;node.next?node.next.prev=node.prev:this.tail=node.prev},moveToFront:function(node){this.remove(node);this.add(node)}});function Node(key,val){this.key=key;this.val=val;this.prev=this.next=null}return LruCache}();var PersistentStorage=function(){var ls,methods;try{ls=window.localStorage;ls.setItem("~~~","!");ls.removeItem("~~~")}catch(err){ls=null}function PersistentStorage(namespace){this.prefix=
["__",namespace,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+this.prefix)}if(ls&&window.JSON)methods={_prefix:function(key){return this.prefix+key},_ttlKey:function(key){return this._prefix(key)+this.ttlKey},get:function(key){if(this.isExpired(key))this.remove(key);return decode(ls.getItem(this._prefix(key)))},set:function(key,val,ttl){if(_.isNumber(ttl))ls.setItem(this._ttlKey(key),encode(now()+ttl));else ls.removeItem(this._ttlKey(key));return ls.setItem(this._prefix(key),
encode(val))},remove:function(key){ls.removeItem(this._ttlKey(key));ls.removeItem(this._prefix(key));return this},clear:function(){var i,key,keys=[],len=ls.length;for(i=0;i<len;i++)if((key=ls.key(i)).match(this.keyMatcher))keys.push(key.replace(this.keyMatcher,""));for(i=keys.length;i--;)this.remove(keys[i]);return this},isExpired:function(key){var ttl=decode(ls.getItem(this._ttlKey(key)));return _.isNumber(ttl)&&now()>ttl?true:false}};else methods={get:_.noop,set:_.noop,remove:_.noop,clear:_.noop,
isExpired:_.noop};_.mixin(PersistentStorage.prototype,methods);return PersistentStorage;function now(){return(new Date).getTime()}function encode(val){return JSON.stringify(_.isUndefined(val)?null:val)}function decode(val){return JSON.parse(val)}}();var Transport=function(){var pendingRequestsCount=0,pendingRequests={},maxPendingRequests=6,requestCache=new LruCache(10);function Transport(o){o=o||{};this._send=o.transport?callbackToDeferred(o.transport):$.ajax;this._get=o.rateLimiter?o.rateLimiter(this._get):
this._get}Transport.setMaxPendingRequests=function setMaxPendingRequests(num){maxPendingRequests=num};Transport.resetCache=function clearCache(){requestCache=new LruCache(10)};_.mixin(Transport.prototype,{_get:function(url,o,cb){var that=this,jqXhr;if(jqXhr=pendingRequests[url])jqXhr.done(done).fail(fail);else if(pendingRequestsCount<maxPendingRequests){pendingRequestsCount++;pendingRequests[url]=this._send(url,o).done(done).fail(fail).always(always)}else this.onDeckRequestArgs=[].slice.call(arguments,
0);function done(resp){cb&&cb(null,resp);requestCache.set(url,resp)}function fail(){cb&&cb(true)}function always(){pendingRequestsCount--;delete pendingRequests[url];if(that.onDeckRequestArgs){that._get.apply(that,that.onDeckRequestArgs);that.onDeckRequestArgs=null}}},get:function(url,o,cb){var resp;if(_.isFunction(o)){cb=o;o={}}if(resp=requestCache.get(url))_.defer(function(){cb&&cb(null,resp)});else this._get(url,o,cb);return!!resp}});return Transport;function callbackToDeferred(fn){return function customSendWrapper(url,
o){var deferred=$.Deferred();fn(url,o,onSuccess,onError);return deferred;function onSuccess(resp){_.defer(function(){deferred.resolve(resp)})}function onError(err){_.defer(function(){deferred.reject(err)})}}}}();var SearchIndex=function(){function SearchIndex(o){o=o||{};if(!o.datumTokenizer||!o.queryTokenizer)$.error("datumTokenizer and queryTokenizer are both required");this.datumTokenizer=o.datumTokenizer;this.queryTokenizer=o.queryTokenizer;this.reset()}_.mixin(SearchIndex.prototype,{bootstrap:function bootstrap(o){this.datums=
o.datums;this.trie=o.trie},add:function(data){var that=this;data=_.isArray(data)?data:[data];_.each(data,function(datum){var id,tokens;id=that.datums.push(datum)-1;tokens=normalizeTokens(that.datumTokenizer(datum));_.each(tokens,function(token){var node,chars,ch;node=that.trie;chars=token.split("");while(ch=chars.shift()){node=node.children[ch]||(node.children[ch]=newNode());node.ids.push(id)}})})},get:function get(query){var that=this,tokens,matches;tokens=normalizeTokens(this.queryTokenizer(query));
_.each(tokens,function(token){var node,chars,ch,ids;if(matches&&matches.length===0)return false;node=that.trie;chars=token.split("");while(node&&(ch=chars.shift()))node=node.children[ch];if(node&&chars.length===0){ids=node.ids.slice(0);matches=matches?getIntersection(matches,ids):ids}else{matches=[];return false}});return matches?_.map(unique(matches),function(id){return that.datums[id]}):[]},reset:function reset(){this.datums=[];this.trie=newNode()},serialize:function serialize(){return{datums:this.datums,
trie:this.trie}}});return SearchIndex;function normalizeTokens(tokens){tokens=_.filter(tokens,function(token){return!!token});tokens=_.map(tokens,function(token){return token.toLowerCase()});return tokens}function newNode(){return{ids:[],children:{}}}function unique(array){var seen={},uniques=[];for(var i=0;i<array.length;i++)if(!seen[array[i]]){seen[array[i]]=true;uniques.push(array[i])}return uniques}function getIntersection(arrayA,arrayB){var ai=0,bi=0,intersection=[];arrayA=arrayA.sort(compare);
arrayB=arrayB.sort(compare);while(ai<arrayA.length&&bi<arrayB.length)if(arrayA[ai]<arrayB[bi])ai++;else if(arrayA[ai]>arrayB[bi])bi++;else{intersection.push(arrayA[ai]);ai++;bi++}return intersection;function compare(a,b){return a-b}}}();var oParser=function(){return{local:getLocal,prefetch:getPrefetch,remote:getRemote};function getLocal(o){return o.local||null}function getPrefetch(o){var prefetch,defaults;defaults={url:null,thumbprint:"",ttl:24*60*60*1E3,filter:null,ajax:{}};if(prefetch=o.prefetch||
null){prefetch=_.isString(prefetch)?{url:prefetch}:prefetch;prefetch=_.mixin(defaults,prefetch);prefetch.thumbprint=VERSION+prefetch.thumbprint;prefetch.ajax.type=prefetch.ajax.type||"GET";prefetch.ajax.dataType=prefetch.ajax.dataType||"json";!prefetch.url&&$.error("prefetch requires url to be set")}return prefetch}function getRemote(o){var remote,defaults;defaults={url:null,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}};if(remote=o.remote||
null){remote=_.isString(remote)?{url:remote}:remote;remote=_.mixin(defaults,remote);remote.rateLimiter=/^throttle$/i.test(remote.rateLimitBy)?byThrottle(remote.rateLimitWait):byDebounce(remote.rateLimitWait);remote.ajax.type=remote.ajax.type||"GET";remote.ajax.dataType=remote.ajax.dataType||"json";delete remote.rateLimitBy;delete remote.rateLimitWait;!remote.url&&$.error("remote requires url to be set")}return remote;function byDebounce(wait){return function(fn){return _.debounce(fn,wait)}}function byThrottle(wait){return function(fn){return _.throttle(fn,
wait)}}}}();(function(root){var old,keys;old=root.Bloodhound;keys={data:"data",protocol:"protocol",thumbprint:"thumbprint"};root.Bloodhound=Bloodhound;function Bloodhound(o){if(!o||!o.local&&!o.prefetch&&!o.remote)$.error("one of local, prefetch, or remote is required");this.limit=o.limit||5;this.sorter=getSorter(o.sorter);this.dupDetector=o.dupDetector||ignoreDuplicates;this.local=oParser.local(o);this.prefetch=oParser.prefetch(o);this.remote=oParser.remote(o);this.cacheKey=this.prefetch?this.prefetch.cacheKey||
this.prefetch.url:null;this.index=new SearchIndex({datumTokenizer:o.datumTokenizer,queryTokenizer:o.queryTokenizer});this.storage=this.cacheKey?new PersistentStorage(this.cacheKey):null}Bloodhound.noConflict=function noConflict(){root.Bloodhound=old;return Bloodhound};Bloodhound.tokenizers=tokenizers;_.mixin(Bloodhound.prototype,{_loadPrefetch:function loadPrefetch(o){var that=this,serialized,deferred;if(serialized=this._readFromStorage(o.thumbprint)){this.index.bootstrap(serialized);deferred=$.Deferred().resolve()}else deferred=
$.ajax(o.url,o.ajax).done(handlePrefetchResponse);return deferred;function handlePrefetchResponse(resp){that.clear();that.add(o.filter?o.filter(resp):resp);that._saveToStorage(that.index.serialize(),o.thumbprint,o.ttl)}},_getFromRemote:function getFromRemote(query,cb){var that=this,url,uriEncodedQuery;query=query||"";uriEncodedQuery=encodeURIComponent(query);url=this.remote.replace?this.remote.replace(this.remote.url,query):this.remote.url.replace(this.remote.wildcard,uriEncodedQuery);return this.transport.get(url,
this.remote.ajax,handleRemoteResponse);function handleRemoteResponse(err,resp){err?cb([]):cb(that.remote.filter?that.remote.filter(resp):resp)}},_saveToStorage:function saveToStorage(data,thumbprint,ttl){if(this.storage){this.storage.set(keys.data,data,ttl);this.storage.set(keys.protocol,location.protocol,ttl);this.storage.set(keys.thumbprint,thumbprint,ttl)}},_readFromStorage:function readFromStorage(thumbprint){var stored={},isExpired;if(this.storage){stored.data=this.storage.get(keys.data);stored.protocol=
this.storage.get(keys.protocol);stored.thumbprint=this.storage.get(keys.thumbprint)}isExpired=stored.thumbprint!==thumbprint||stored.protocol!==location.protocol;return stored.data&&!isExpired?stored.data:null},_initialize:function initialize(){var that=this,local=this.local,deferred;deferred=this.prefetch?this._loadPrefetch(this.prefetch):$.Deferred().resolve();local&&deferred.done(addLocalToIndex);this.transport=this.remote?new Transport(this.remote):null;return this.initPromise=deferred.promise();
function addLocalToIndex(){that.add(_.isFunction(local)?local():local)}},initialize:function initialize(force){return!this.initPromise||force?this._initialize():this.initPromise},add:function add(data){this.index.add(data)},get:function get(query,cb){var that=this,matches=[],cacheHit=false;matches=this.index.get(query);matches=this.sorter(matches).slice(0,this.limit);if(matches.length<this.limit&&this.transport)cacheHit=this._getFromRemote(query,returnRemoteMatches);if(!cacheHit)(matches.length>0||
!this.transport)&&cb&&cb(matches);function returnRemoteMatches(remoteMatches){var matchesWithBackfill=matches.slice(0);_.each(remoteMatches,function(remoteMatch){var isDuplicate;isDuplicate=_.some(matchesWithBackfill,function(match){return that.dupDetector(remoteMatch,match)});!isDuplicate&&matchesWithBackfill.push(remoteMatch);return matchesWithBackfill.length<that.limit});cb&&cb(that.sorter(matchesWithBackfill))}},clear:function clear(){this.index.reset()},clearPrefetchCache:function clearPrefetchCache(){this.storage&&
this.storage.clear()},clearRemoteCache:function clearRemoteCache(){this.transport&&Transport.resetCache()},ttAdapter:function ttAdapter(){return _.bind(this.get,this)}});return Bloodhound;function getSorter(sortFn){return _.isFunction(sortFn)?sort:noSort;function sort(array){return array.sort(sortFn)}function noSort(array){return array}}function ignoreDuplicates(){return false}})(this)})(window.jQuery);
(function(LIModules){var $=LIModules.requires("jquery");function msieversion(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);else return 0}function RealTimeChangeObserver(input){var ieVersion=msieversion(),isIE9=false,$input=$(input);function transmitChange(){$input.trigger("change")}function fireChange(forceDelay){if(forceDelay)setTimeout(transmitChange,50);else transmitChange()}
if(ieVersion&&ieVersion<=10){isIE9=ieVersion===9;input.attachEvent("onpropertychange",function(evt){if(evt.propertyName.toLowerCase()==="value")fireChange()});$input.on("keyup",function(evt){switch(evt.keyCode){case 8:if(isIE9)fireChange();break;case 46:if(isIE9)fireChange();break;case 35:case 36:case 37:case 38:case 39:case 40:fireChange();break}});if(isIE9)input.attachEvent("oncut",function(){fireChange(true)},false)}else $input.on("input",fireChange);$input.on("click",fireChange)}LIModules.exports("RealTimeChangeObserver",
RealTimeChangeObserver)})(window.LIModules);
(function(){var $=LIModules.requires("jquery");function TokenMatcher(el){var input=el,$input=$(input),self=this,triggerKeys=[],triggerKeysLen,upperCaseChars="A-Z\\u00C0-\\u00D6\\u00D8-\\u00DE",noMatchChars="^\\s\\.\\,",tripleUpperExpression,whiteSpaceChars="[^\\S\\n\\r]",upperExpression;triggerKeys.push({"trigger":"@","includeInSearch":false,"regExp":new RegExp("(?:(?:(?:[\\s]|^)\\@$)|(?:(?:[\\s]|^)\\@([\\S]+(?:[\\u0020]+[^\\s\\@]+)?)))","gim")});noMatchChars+="\\@";triggerKeys.push({"trigger":"+",
"includeInSearch":false,"regExp":new RegExp("(?:(?:(?:[\\s]|^)\\+$)|(?:(?:[\\s]|^)\\+([\\S]+(?:[\\u0020]+[^\\s\\+]+)?)))","gim")});noMatchChars+="\\+";tripleUpperExpression="(?:[\\s]|^)"+"("+"["+upperCaseChars+"]["+noMatchChars+"]{2,}"+whiteSpaceChars+"["+upperCaseChars+"]["+noMatchChars+"]*"+whiteSpaceChars+"["+upperCaseChars+"]["+noMatchChars+"]*"+")";triggerKeys.push({"trigger":"tripleUpper","includeInSearch":true,"regExp":new RegExp(tripleUpperExpression,"gm")});upperExpression="((?:[\\s]|^)["+
upperCaseChars+"](?:"+"(?:["+noMatchChars+"]{3,}(?:"+whiteSpaceChars+"?)(?:["+noMatchChars+"]+)?)"+"|(?:["+noMatchChars+"]{1}"+whiteSpaceChars+"["+noMatchChars+"]{2,})"+"|(?:["+noMatchChars+"]{2}"+whiteSpaceChars+"["+noMatchChars+"]+)"+"))";triggerKeys.push({"trigger":"upper","includeInSearch":true,"regExp":new RegExp(upperExpression,"gm")});triggerKeysLen=triggerKeys.length;function handleInput(){var caretPosition=getCaretPosition(input),content=input.value.substr(0,caretPosition),curRegExp,curTrigger,
hasMatch=false,i,match,matchEnd,matchStart,matchToken,trigger;for(i=0;i<triggerKeysLen;i++){curTrigger=triggerKeys[i];curRegExp=curTrigger.regExp;if(content.match(curRegExp)){curRegExp.lastIndex=0;match=curRegExp.exec(content);while(match){trigger=curTrigger.trigger;matchToken=match[1]?match[1].replace(/^\s+|\s+$/,""):"";matchStart=match.index;matchEnd=matchStart+match[0].length;if(caretPosition>matchStart&&caretPosition<=matchEnd){$input.trigger("match",{match:{"caretPosition":caretPosition,"end":matchEnd,
"start":matchStart,"token":matchToken||"a","trigger":trigger,"triggerIncluded":curTrigger.includeInSearch}});hasMatch=true;break}match=curRegExp.exec(content)}}if(hasMatch)break}if(!hasMatch)$input.trigger("typeaheadHide")}$input.on("change",handleInput)}function getCaretPosition(elt){var position=0,sel;if(document.selection){sel=document.selection.createRange();sel.moveStart("character",-elt.value.length);position=sel.text.length}else if(elt.selectionStart>=0)position=elt.selectionStart;return position}
LIModules.exports("TokenMatcher",TokenMatcher)})();
(function(LIModules){var $=LIModules.requires("jquery"),_=LIModules.requires("underscore"),jSecure=LIModules.imports("jSecure"),encodeText=jSecure&&jSecure.text||LIModules.requires("htmlEncode");function getValidTokens(tokens){return _.filter(tokens,function(token){return token.index>=0&&token.length})}var newlines=/\r?\n/gm,nonWhiteSpace=/\S/;function TokenHighlighter(el,config){this.config=_.defaults(config||{},{highlightClass:"highlight"});this.el=el;this.$el=$(el)}TokenHighlighter.prototype={render:function(userText,
tokens){var tokensLen,i,curStart,curEnd,fullText=[],curObj,previousEnd=0,EMPTY="";if(userText===undefined||tokens===undefined||!nonWhiteSpace.test(userText)){this.el.innerHTML=EMPTY;return}tokens=getValidTokens(tokens);tokensLen=tokens.length;if(tokensLen){tokens.sort(function(token1,token2){return token1.index-token2.index});for(i=0;i<tokensLen;i++){curObj=tokens[i];curStart=curObj.index;curEnd=curStart+curObj.length;if(curStart)fullText.push(encodeText(userText.substr(previousEnd,curStart-previousEnd)));
fullText.push(['\x3cspan class\x3d"',encodeText(this.config.highlightClass),'"\x3e',encodeText(curObj.token),"\x3c/span\x3e"].join(EMPTY));if(i===tokensLen-1)fullText.push(encodeText(userText.substr(curEnd)));previousEnd=curEnd}this.$el.html(fullText.join(EMPTY).replace(newlines,"\x3cbr /\x3e")+"\x26nbsp;")}else this.$el.text(userText)}};LIModules.exports("TokenHighlighter",TokenHighlighter)})(window.LIModules);
(function(LIModules){var $=LIModules.requires("jquery"),_=LIModules.requires("underscore"),jSecure=LIModules.imports("jSecure"),htmlUnencode=jSecure&&jSecure.htmlUnencode||LIModules.requires("htmlUnencode"),RealTimeChangeObserver=LIModules.requires("RealTimeChangeObserver"),TokenMatcher=LIModules.requires("TokenMatcher"),TokenHighlighter=LIModules.requires("TokenHighlighter"),EMPTY="",DEFAULT_MENTIONS_TL="tl/shared/mentions/mentions-play",PROXY_KEYS=_.values({up:38,down:40,enter:13,escape:27}),Mentions=
function(el,config){this.el=el;this.$el=$(this.el);this.mentionsData=[];this.useOonMentions=false;this.$mentionsInput=this.$el.find(".mentions-input");this.$mentionsTypeahead=this.$el.find(".mentions-typeahead");this.$mentionsEntities=this.$el.find(".mentions-entities");this.$mentionsHighlighter=this.$el.find(".mentions-highlighter");this.changeObserver=null;this.tokenMatcher=null;this.useAdjustOffset=true;this.previousEditedMentionTokens=null;this.currentMentionTokens=null;this.inputValueOld="";
this.inputValue="";this.lastMatch=null;this.config=_.defaults(config||{},{isInfluencer:false,oonMentions:false,ieVersion:0,discussionId:0,posterId:0,mentionsTL:DEFAULT_MENTIONS_TL,isMegaphone:false,limits:{mynetwork:5,my1stnetwork:5,company:5,school:0}});if(!this.$el.data("is-connections-only")&&(this.config.isInfluencer||this.config.oonMentions))this.useOonMentions=true;this.discussionId=this.config.discussionId;this.posterId=this.config.posterId;this.init()};Mentions.prototype={attachEventEmitters:function(){this.changeObserver=
new RealTimeChangeObserver(this.$mentionsInput.get(0));this.tokenMatcher=new TokenMatcher(this.$mentionsInput.get(0))},attachEventListeners:function(){this.$mentionsInput.on("keyup keydown keypress",this.events.proxyTypeahead).on("change",this.events.handleUpdates).on("change",this.events.syncMentionsHighlighterScroll).on("typeaheadHide blur",this.events.hideTypeahead).on("match",this.events.tokenMatched).on("scroll",this.events.syncMentionsHighlighterScroll);this.$mentionsTypeahead.on("typeahead:opened",
this.events.typeaheadOpened).on("typeahead:closed",this.events.typeaheadClosed).on("typeahead:selected",this.events.typeaheadSelected)},bindAllEvents:function(){var events={},self=this;_.each(this.events,function(func,funcName){events[funcName]=_.bind(func,self)});this.events=events},clearMentions:function(){this.mentionsData=[];this.updateMentionsEntitiesInput();this.tokenHighlighter.render(EMPTY,[])},updateMentionsEntitiesInput:function(){this.$mentionsEntities.val(JSON.stringify(this.generateMentions())).trigger("change")},
generateMentions:function(){return _.map(this.mentionsData,function(curMention){return _.pick(curMention,"id","index","length","type","isFirstDegree","token")})},init:function(){this.bindAllEvents();this.loadTemplates();this.loadi18n();this.initBloodhound();this.initTypeahead();this.tokenHighlighter=new TokenHighlighter(this.$mentionsHighlighter.get(0));this.attachEventEmitters();this.attachEventListeners();this.highlightMentions()},initBloodhound:function(){var peopleType=this.useOonMentions?"mynetwork":
"my1stnetwork",companyType="company",schoolType="school",limits=this.config.limits,baseUrl="/ta/federator?query\x3d%QUERY\x26types\x3d",isMegaphone=this.config.isMegaphone,participantsUrl,peopleBH,companiesBH,schoolsBH,result;participantsUrl="/ta/discussionparticipants?"+$.param({"ta-updateId":this.discussionId,"ta-posterId":this.posterId,"ta-isMegaphone":isMegaphone,"query":(new Date).getTime()});companiesBH=this.buildBloodhound({limit:limits[companyType]},{url:baseUrl+companyType},companyType,"companies");
schoolsBH=this.buildBloodhound({limit:limits[schoolType]},{url:baseUrl+schoolType},schoolType,"universities");if(this.discussionId)peopleBH=this.buildBloodhound({prefetch:{url:participantsUrl,filter:function(resp){if(_.isObject(resp)&&resp.resultList)resp=resp.resultList;return resp}},dupDetector:function(remoteMatch,localMatch){return remoteMatch.id===localMatch.id},limit:limits[peopleType]},{url:baseUrl+peopleType},peopleType,"people");else peopleBH=this.buildBloodhound({limit:limits[peopleType]},
{url:baseUrl+peopleType},peopleType,"people");this.bloodhound={people:peopleBH,universities:schoolsBH,companies:companiesBH};_.invoke(this.bloodhound,"initialize")},buildBloodhound:function(base,remote,resultType,sourceName){var source={datumTokenizer:Bloodhound.tokenizers.obj.whitespace("displayName"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{rateLimitBy:"debounce",rateLimitWait:250,filter:_.bind(function(result){if(result[resultType]&&result[resultType].resultList)result=result[resultType].resultList;
else result=[];this.bloodhound[sourceName].isEmpty=!result.length;return result},this)}};_.extend(source,base);_.extend(source.remote,remote);return _.extend(new Bloodhound(source),{isEmpty:true})},initTypeahead:function(){var self=this,mentionsTL=this.config.mentionsTL,datasets,typeaheadConfig,peopleConfig,participantsConfig,companiesConfig,universitiesConfig;typeaheadConfig={minLength:1,highlight:false,hint:false};peopleConfig={name:"People",displayKey:"displayName",source:this.bloodhound.people.ttAdapter(),
templates:{header:function(config){return config.isEmpty?"":dust.i18n.cache[mentionsTL].i18n_people},empty:function(){self.events.typeaheadEmpty("people")},suggestion:this.templates.suggestion}};participantsConfig={name:"Participants",displayKey:"displayName",source:this.bloodhound.people.ttAdapter(),templates:{header:function(config){return config.isEmpty?"":dust.i18n.cache[mentionsTL].i18n_participants},empty:function(){self.events.typeaheadEmpty("participants")},suggestion:this.templates.suggestion}};
companiesConfig={name:"Companies",displayKey:"displayName",source:this.bloodhound.companies.ttAdapter(),templates:{header:function(config){return config.isEmpty?"":dust.i18n.cache[mentionsTL].i18n_companies},empty:function(){self.events.typeaheadEmpty("companies")},suggestion:this.templates.suggestion}};universitiesConfig={name:"Universities",displayKey:"displayName",source:this.bloodhound.universities.ttAdapter(),templates:{header:function(config){return config.isEmpty?"":dust.i18n.cache[mentionsTL].i18n_universities},
empty:function(){self.events.typeaheadEmpty("universities")},suggestion:this.templates.suggestion}};datasets=[peopleConfig,companiesConfig];if(this.discussionId)datasets.unshift(participantsConfig);if(this.config.schoolMentions)datasets.push(universitiesConfig);this.$mentionsTypeahead.typeahead(typeaheadConfig,datasets)},loadi18n:function(){},loadTemplates:function(){var template=this.config.mentionsTL;this.templates={"suggestion":function(context){var r="";dust.render(template,context,function(err,
html){if(err)throw new Error("Template for Mentions could not be loaded.");r=html});return r}}},events:{hideTypeahead:function(){this.$mentionsTypeahead.typeahead("close")},handleUpdates:function(){this.inputValueOld=this.inputValue;this.inputValue=this.$mentionsInput.val();this.adjustMentions()},tokenMatched:function(evt,matchData){var match=matchData.match,self=this;if(!this.$mentionsInput.is(":focus"))return;if(this.validateMentionPosition(match)&&!this._isEditingExistingMention()){this.lastMatch=
matchData;self.$mentionsTypeahead.val(match.token).trigger("input").trigger("keydown").typeahead("open")}},typeaheadEmpty:function(){var UPPERCASE_CHARS="[A-Z\\u00C0-\\u00D6\\u00D8-\\u00DE]",MULTIPLE_WORDS=new RegExp("("+UPPERCASE_CHARS+"\\S+)"+"( "+UPPERCASE_CHARS+".+)"),matchData=this.lastMatch,token=matchData.match.token,multipleWords=MULTIPLE_WORDS.exec(token),allSourcesEmpty=_.every(_.pluck(this.bloodhound,"isEmpty"),_.identity);if(multipleWords&&allSourcesEmpty){if(matchData.match.start)matchData.match.start++;
matchData.match.start+=multipleWords[1].length;matchData.match.token=multipleWords[2];if(matchData.match.token.length>=4)this.events.tokenMatched(null,matchData)}},typeaheadOpened:function(){this.$mentionsTypeahead.open=true},typeaheadClosed:function(){this.$mentionsTypeahead.open=false},typeaheadSelected:function(evt,data,type){var curValue=this.$mentionsInput.val(),curMatch=this.lastMatch.match,start=curMatch.start,itemType,newValue,tmpResult,displayToken=htmlUnencode(data.displayName),isFirstDegree=
data.misc&&data.misc.degree?true:false,tokenLen=displayToken.length,triggerIncluded=curMatch.triggerIncluded,types={Companies:"company",People:"member",Universities:"school"};_.extend(curMatch,data);if(start)start++;itemType=types[type];newValue=[curValue.substr(0,start),displayToken,curValue.substr(curMatch.end)].join(EMPTY);if(start){tmpResult=this.checkTripleUpperStart(displayToken,start,newValue);start=tmpResult[0];newValue=tmpResult[1]}this.$mentionsInput.val(newValue);this.addMention({"id":curMatch.id,
"index":start,"length":tokenLen,"type":itemType,"token":displayToken,"isFirstDegree":isFirstDegree,"triggerIncluded":triggerIncluded,"caretPosition":curMatch.caretPosition})},proxyTypeahead:function(evt){if(!this.$mentionsTypeahead.open)return;if(!evt.charCode&&_.indexOf(PROXY_KEYS,evt.which)>=0){evt.preventDefault();this.$mentionsTypeahead.trigger(evt);return false}},syncMentionsHighlighterScroll:function(){this.$mentionsHighlighter.scrollTop(this.$mentionsInput.scrollTop())}},addMention:function(mention){this.mentionsData.push(mention);
this.sortMentions();this.events.handleUpdates();this.updateMentionsEntitiesInput();this.$mentionsInput.focus();this.setCursorPosition(this.$mentionsInput.get(0),mention.index+mention.length+(mention.index&&!mention.triggerIncluded?1:0));this.highlightMentions()},highlightMentions:function(){this.tokenHighlighter.render(this.$mentionsInput.val(),this.mentionsData)},checkTripleUpperStart:function(displayToken,start,newValue){var firstSpace,firstWord,tmpStart,tmpEnd,isolatedMatch,doubleMatch,tokenLen=
displayToken.length;firstSpace=displayToken.indexOf(" ");if(firstSpace!==-1){firstWord=htmlUnencode(displayToken.substr(0,firstSpace));if(firstWord!==EMPTY){tmpStart=start-(firstWord.length+1);tmpEnd=start+tokenLen;isolatedMatch=newValue.substr(tmpStart,tmpEnd).toLowerCase();doubleMatch=[firstWord,displayToken].join(" ").toLowerCase();if(doubleMatch===isolatedMatch)if(this.validateMentionPosition({"start":tmpStart,"end":tmpStart+tokenLen})){newValue=[newValue.substr(0,tmpStart),displayToken,newValue.substr(tmpEnd)].join(EMPTY);
start=tmpStart}}}return[start,newValue]},_isEditingExistingMention:function(){var previousMentionTokens=this.previousEditedMentionTokens,currentMentionTokens=this.currentMentionTokens,prevLastName,currentLastName;if(previousMentionTokens&&currentMentionTokens){this.previousEditedMentionTokens=null;this.currentMentionTokens=null;if(previousMentionTokens.length===currentMentionTokens.length){prevLastName=previousMentionTokens[previousMentionTokens.length-1];currentLastName=currentMentionTokens[currentMentionTokens.length-
1];if(prevLastName.length>currentLastName.length)return true;if(previousMentionTokens[0].length>currentMentionTokens[0].length)return true}}return false},adjustMentions:function(){var adjustedIndex,commonTokens=[],curMention,curIndex,curToken,diff,i,doubleCall=false,instanceRemoved,oneInstance,mentionsLen=this.mentionsData.length,mentionsToRemove=[],mentionTokens,mentionDiffTokens,newEnd,newIndex,newLen,newToken,newValue,offset,originalRe,removeLen,space=" ",strCheck,strDiffCheck,tokenLen,useIeFix=
this.ieVersion&&this.ieVersion<=9;this.inputValue=this.$mentionsInput.val();offset=useIeFix&&this.useAdjustOffset?-1:0;diff=this.inputValue.length-this.inputValueOld.length;for(i=0;i<mentionsLen;i++){curMention=this.mentionsData[i];curToken=curMention.token;curIndex=curMention.index;curToken=curToken.replace(/\u0000$/,"");newIndex=this.inputValue.indexOf(curToken);oneInstance=this.inputValueOld.indexOf(curToken)===this.inputValueOld.lastIndexOf(curToken)&&newIndex===this.inputValue.lastIndexOf(curToken);
instanceRemoved=newIndex===-1;if(oneInstance&&newIndex!==curIndex&&newIndex!==-1)this.mentionsData[i].index=this.inputValue.indexOf(curToken);else{tokenLen=curToken.length;strCheck=this.inputValue.substr(curIndex,tokenLen);if(strCheck!==curToken){adjustedIndex=curIndex+diff+offset;strDiffCheck=this.inputValue.substr(adjustedIndex,tokenLen);if(strDiffCheck===curToken)this.mentionsData[i].index=adjustedIndex;else{mentionTokens=curToken.split(space);originalRe=new RegExp("[^"+curToken.replace(/\s/g,
EMPTY).replace(/([\-\[\]])/g,"\\$1")+"\\s]","gi");mentionDiffTokens=strCheck.replace(originalRe,"").split(space);commonTokens=_.intersection(mentionTokens,mentionDiffTokens);if(commonTokens.length){doubleCall=true;newToken=commonTokens.join(space);newIndex=curMention.index;newLen=newToken.length;newEnd=newIndex+newLen;this.previousEditedMentionTokens=mentionTokens;this.currentMentionTokens=mentionDiffTokens;curMention.token=newToken;curMention.length=newLen;curMention.end=newEnd;this.mentionsData[i]=
curMention;newValue=this.inputValue.substr(0,newIndex)+newToken+EMPTY+this.inputValue.substr(newIndex-1+tokenLen);this.$mentionsInput.val(newValue);if(useIeFix){diff=this.inputValue.length-this.$mentionsInput.value.length;_.defer(this.setCursorPosition,this.$mentionsInput,newEnd)}else this.setCursorPosition(this.$mentionsInput,newEnd)}else mentionsToRemove.push(i);offset=0}}}}removeLen=mentionsToRemove.length;mentionsToRemove.sort().reverse();if(removeLen)for(i=0;i<removeLen;i++)this.mentionsData.splice(mentionsToRemove[i],
1);this.sortMentions();if(doubleCall)this.adjustMentions();this.updateMentionsEntitiesInput();this.highlightMentions();this.useAdjustOffset=false},sortMentions:function(){this.mentionsData.sort(function(token1,token2){return token1.index-token2.index})},setCursorPosition:function(input,position){var CHARACTER="character",range;if(input.setSelectionRange)input.setSelectionRange(position,position);else if(input.createTextRange){range=input.createTextRange();range.collapse(true);range.moveEnd(CHARACTER,
position);range.moveStart(CHARACTER,position);range.select()}},validateMentionPosition:function(match){var curStart=match.start,curEnd=match.end,curMention,curMentionStart,curMentionEnd,mentions=this.mentionsData,i=mentions.length;while(i--){curMention=mentions[i];curMentionStart=curMention.index-1;curMentionEnd=curMentionStart+curMention.length;if(curStart>=curMentionStart&&curStart<curMentionEnd||curEnd>=curMentionStart&&curEnd<=curMentionEnd)return false}return true}};LIModules.exports("Mentions",
Mentions)})(window.LIModules);
(function(LIModules){var $=LIModules.requires("jquery"),_=LIModules.requires("underscore"),Mentions=LIModules.requires("Mentions");function msieversion(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);else return 0}var MentionsDelegator=function(el,config){var $el=$(el);this.el=el;this.config=_.defaults(config||{},{entitlementUrl:"/nhome/influencer-entitlement",oonMentions:$el.data("oon-mentions")||
false,schoolMentions:$el.data("school-mentions")||false,limits:$el.data("mentions-limits")||{mynetwork:5,my1stnetwork:5,company:5,school:0},isInfluencer:null,mentionsTL:null});this.init()};_.extend(MentionsDelegator,{cache:{},count:0,ieVersion:msieversion(),containerClass:".mentions-container",idAttr:"data-li-mentionsid",discussionIdAttr:"data-li-discussionid",hasDelegatorSelector:".hasMentionsDelegator"});MentionsDelegator.prototype={setInstance:function(evt){var $el=$(evt.target).closest(MentionsDelegator.containerClass),
discussionId=$el.attr(MentionsDelegator.discussionIdAttr)||0,_isInfluencer=this.config.isInfluencer,_isMegaphone=this.config.isMegaphone||false,_oonMentions=this.config.oonMentions,_schoolMentions=this.config.schoolMentions,_limits=this.config.limits,_mentionsTL=this.config.mentionsTL;if(!$el.attr(MentionsDelegator.idAttr)){var mentionsInstance=new Mentions($el.get(0),{"isInfluencer":_isInfluencer!==null?_isInfluencer:MentionsDelegator.isInfluencer,"ieVersion":MentionsDelegator.ieVersion,"discussionId":discussionId,
"memberId":this.memberId,"oonMentions":_oonMentions,"isMegaphone":_isMegaphone,"schoolMentions":_schoolMentions,"limits":_limits,"mentionsTL":_mentionsTL});$el.attr(MentionsDelegator.idAttr,MentionsDelegator.count);MentionsDelegator.cache[MentionsDelegator.count]={el:$el,instance:mentionsInstance};MentionsDelegator.count++}},getInstance:function(el){var $el=$(el),id=$el.closest(MentionsDelegator.containerClass).attr(MentionsDelegator.idAttr);if(id===undefined)throw new Error("Undefined -- no Mentions instance is associated with that element. Make sure to pass in the .mentions-container element");
return MentionsDelegator.cache[id].instance},checkInfluencer:function(){var entitlementUrl="/nhome/influencer-entitlement",checkInfluencerHandler;if(MentionsDelegator.isInfluencer!==undefined)return;checkInfluencerHandler=_.bind(function(data){try{this.isInfluencer=data.content.influencer_entitlement.result.isInfluencer}catch(err){}},MentionsDelegator);$.ajax({url:entitlementUrl,beforeSend:function(jqxhr){jqxhr.setRequestHeader("X-IsAJAXForm","1")},success:checkInfluencerHandler})},init:function(){var $el=
$(this.el),hasDelegatorSelector=MentionsDelegator.hasDelegatorSelector;if($el.is(hasDelegatorSelector))throw new Error("Mentions Delegator cannot be instantiated twice on the same element");if($el.find(hasDelegatorSelector).length)throw new Error("Mentions Delegator cannot be nested (a Delegator already exists within that DOM scope)");if($el.parents(hasDelegatorSelector).length)throw new Error("Mentions Delegator cannot be nested (tried to instantiate a Delegator within a Delegator");this.checkInfluencer();
_.bindAll(this,"setInstance");$el.addClass(hasDelegatorSelector.substr(1));$el.on("focus",".mentions-input",this.setInstance)}};Mentions.Delegator=MentionsDelegator})(window.LIModules);
(function($){var _={isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:false},isBlankString:function(str){return!str||/^\s*$/.test(str)},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$\x26")},isString:function(obj){return typeof obj==="string"},isNumber:function(obj){return typeof obj==="number"},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return typeof obj===
"undefined"},bind:$.proxy,each:function(collection,cb){$.each(collection,reverseArgs);function reverseArgs(index,value){return cb(value,index)}},map:$.map,filter:$.grep,every:function(obj,test){var result=true;if(!obj)return result;$.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj)))return false});return!!result},some:function(obj,test){var result=false;if(!obj)return result;$.each(obj,function(key,val){if(result=test.call(null,val,key,obj))return false});return!!result},mixin:$.extend,
getUniqueId:function(){var counter=0;return function(){return counter++}}(),templatify:function templatify(obj){return $.isFunction(obj)?obj:template;function template(){return String(obj)}},defer:function(fn){setTimeout(fn,0)},debounce:function(func,wait,immediate){var timeout,result;return function(){var context=this,args=arguments,later,callNow;later=function(){timeout=null;if(!immediate)result=func.apply(context,args)};callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,
wait);if(callNow)result=func.apply(context,args);return result}},throttle:function(func,wait){var context,args,timeout,result,previous,later;previous=0;later=function(){previous=new Date;timeout=null;result=func.apply(context,args)};return function(){var now=new Date,remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0){clearTimeout(timeout);timeout=null;previous=now;result=func.apply(context,args)}else if(!timeout)timeout=setTimeout(later,remaining);return result}},noop:function(){}};
var html={wrapper:'\x3cspan class\x3d"twitter-typeahead"\x3e\x3c/span\x3e',dropdown:'\x3cspan class\x3d"tt-dropdown-menu"\x3e\x3c/span\x3e',dataset:'\x3cdiv class\x3d"tt-dataset-%CLASS%"\x3e\x3c/div\x3e',suggestions:'\x3cspan class\x3d"tt-suggestions"\x3e\x3c/span\x3e',suggestion:'\x3cdiv class\x3d"tt-suggestion"\x3e\x3c/div\x3e'};var css={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none"},input:{position:"relative",
verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};if(_.isMsie())_.mixin(css.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"});
if(_.isMsie()&&_.isMsie()<=7)_.mixin(css.input,{marginTop:"-1px"});var EventBus=function(){var namespace="typeahead:";function EventBus(o){if(!o||!o.el)$.error("EventBus initialized without el");this.$el=$(o.el)}_.mixin(EventBus.prototype,{trigger:function(type){var args=[].slice.call(arguments,1);this.$el.trigger(namespace+type,args)}});return EventBus}();var EventEmitter=function(){var splitter=/\s+/,nextTick=getNextTick();return{onSync:onSync,onAsync:onAsync,off:off,trigger:trigger};function on(method,
types,cb,context){var type;if(!cb)return this;types=types.split(splitter);cb=context?bindContext(cb,context):cb;this._callbacks=this._callbacks||{};while(type=types.shift()){this._callbacks[type]=this._callbacks[type]||{sync:[],async:[]};this._callbacks[type][method].push(cb)}return this}function onAsync(types,cb,context){return on.call(this,"async",types,cb,context)}function onSync(types,cb,context){return on.call(this,"sync",types,cb,context)}function off(types){var type;if(!this._callbacks)return this;
types=types.split(splitter);while(type=types.shift())delete this._callbacks[type];return this}function trigger(types){var type,callbacks,args,syncFlush,asyncFlush;if(!this._callbacks)return this;types=types.split(splitter);args=[].slice.call(arguments,1);while((type=types.shift())&&(callbacks=this._callbacks[type])){syncFlush=getFlush(callbacks.sync,this,[type].concat(args));asyncFlush=getFlush(callbacks.async,this,[type].concat(args));syncFlush()&&nextTick(asyncFlush)}return this}function getFlush(callbacks,
context,args){return flush;function flush(){var cancelled;for(var i=0;!cancelled&&i<callbacks.length;i+=1)cancelled=callbacks[i].apply(context,args)===false;return!cancelled}}function getNextTick(){var nextTickFn;if(window.setImmediate)nextTickFn=function nextTickSetImmediate(fn){setImmediate(function(){fn()})};else nextTickFn=function nextTickSetTimeout(fn){setTimeout(function(){fn()},0)};return nextTickFn}function bindContext(fn,context){return fn.bind?fn.bind(context):function(){fn.apply(context,
[].slice.call(arguments,0))}}}();var highlight=function(doc){var defaults={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:false,caseSensitive:false};return function hightlight(o){var regex;o=_.mixin({},defaults,o);if(!o.node||!o.pattern)return;o.pattern=_.isArray(o.pattern)?o.pattern:[o.pattern];regex=getRegex(o.pattern,o.caseSensitive,o.wordsOnly);traverse(o.node,hightlightTextNode);function hightlightTextNode(textNode){var match,patternNode;if(match=regex.exec(textNode.data)){wrapperNode=
doc.createElement(o.tagName);o.className&&(wrapperNode.className=o.className);patternNode=textNode.splitText(match.index);patternNode.splitText(match[0].length);wrapperNode.appendChild(patternNode.cloneNode(true));textNode.parentNode.replaceChild(wrapperNode,patternNode)}return!!match}function traverse(el,hightlightTextNode){var childNode,TEXT_NODE_TYPE=3;for(var i=0;i<el.childNodes.length;i++){childNode=el.childNodes[i];if(childNode.nodeType===TEXT_NODE_TYPE)i+=hightlightTextNode(childNode)?1:0;
else traverse(childNode,hightlightTextNode)}}};function getRegex(patterns,caseSensitive,wordsOnly){var escapedPatterns=[],regexStr;for(var i=0;i<patterns.length;i++)escapedPatterns.push(_.escapeRegExChars(patterns[i]));regexStr=wordsOnly?"\\b("+escapedPatterns.join("|")+")\\b":"("+escapedPatterns.join("|")+")";return caseSensitive?new RegExp(regexStr):new RegExp(regexStr,"i")}}(window.document);var Input=function(){var specialKeyCodeMap;specialKeyCodeMap={9:"tab",27:"esc",37:"left",39:"right",13:"enter",
38:"up",40:"down"};function Input(o){var that=this,onBlur,onFocus,onKeydown,onInput;o=o||{};if(!o.input)$.error("input is missing");onBlur=_.bind(this._onBlur,this);onFocus=_.bind(this._onFocus,this);onKeydown=_.bind(this._onKeydown,this);onInput=_.bind(this._onInput,this);this.$hint=$(o.hint);this.$input=$(o.input).on("blur.tt",onBlur).on("focus.tt",onFocus).on("keydown.tt",onKeydown);if(this.$hint.length===0)this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=_.noop;if(!_.isMsie())this.$input.on("input.tt",
onInput);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function($e){if(specialKeyCodeMap[$e.which||$e.keyCode])return;_.defer(_.bind(that._onInput,that,$e))});this.query=this.$input.val();this.$overflowHelper=buildOverflowHelper(this.$input)}Input.normalizeQuery=function(str){return(str||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")};_.mixin(Input.prototype,EventEmitter,{_onBlur:function onBlur(){this.resetInputValue();this.trigger("blurred")},_onFocus:function onFocus(){this.trigger("focused")},
_onKeydown:function onKeydown($e){var keyName=specialKeyCodeMap[$e.which||$e.keyCode];this._managePreventDefault(keyName,$e);if(keyName&&this._shouldTrigger(keyName,$e))this.trigger(keyName+"Keyed",$e)},_onInput:function onInput(){this._checkInputValue()},_managePreventDefault:function managePreventDefault(keyName,$e){var preventDefault,hintValue,inputValue;switch(keyName){case "tab":hintValue=this.getHint();inputValue=this.getInputValue();preventDefault=hintValue&&hintValue!==inputValue&&!withModifier($e);
break;case "up":case "down":preventDefault=!withModifier($e);break;default:preventDefault=false}preventDefault&&$e.preventDefault()},_shouldTrigger:function shouldTrigger(keyName,$e){var trigger;switch(keyName){case "tab":trigger=!withModifier($e);break;default:trigger=true}return trigger},_checkInputValue:function checkInputValue(){var inputValue,areEquivalent,hasDifferentWhitespace;inputValue=this.getInputValue();areEquivalent=areQueriesEquivalent(inputValue,this.query);hasDifferentWhitespace=areEquivalent?
this.query.length!==inputValue.length:false;if(!areEquivalent)this.trigger("queryChanged",this.query=inputValue);else if(hasDifferentWhitespace)this.trigger("whitespaceChanged",this.query)},focus:function focus(){this.$input.focus()},blur:function blur(){this.$input.blur()},getQuery:function getQuery(){return this.query},setQuery:function setQuery(query){this.query=query},getInputValue:function getInputValue(){return this.$input.val()},setInputValue:function setInputValue(value,silent){this.$input.val(value);
silent?this.clearHint():this._checkInputValue()},resetInputValue:function resetInputValue(){this.setInputValue(this.query,true)},getHint:function getHint(){return this.$hint.val()},setHint:function setHint(value){this.$hint.val(value)},clearHint:function clearHint(){this.setHint("")},clearHintIfInvalid:function clearHintIfInvalid(){var val,hint,valIsPrefixOfHint,isValid;val=this.getInputValue();hint=this.getHint();valIsPrefixOfHint=val!==hint&&hint.indexOf(val)===0;isValid=val!==""&&valIsPrefixOfHint&&
!this.hasOverflow();!isValid&&this.clearHint()},getLanguageDirection:function getLanguageDirection(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function hasOverflow(){var constraint=this.$input.width()-2;this.$overflowHelper.text(this.getInputValue());return this.$overflowHelper.width()>=constraint},isCursorAtEnd:function(){var valueLength,selectionStart,range;valueLength=this.$input.val().length;selectionStart=this.$input[0].selectionStart;if(_.isNumber(selectionStart))return selectionStart===
valueLength;else if(document.selection){range=document.selection.createRange();range.moveStart("character",-valueLength);return valueLength===range.text.length}return true},destroy:function destroy(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null}});return Input;function buildOverflowHelper($input){return $('\x3cpre aria-hidden\x3d"true"\x3e\x3c/pre\x3e').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:$input.css("font-family"),
fontSize:$input.css("font-size"),fontStyle:$input.css("font-style"),fontVariant:$input.css("font-variant"),fontWeight:$input.css("font-weight"),wordSpacing:$input.css("word-spacing"),letterSpacing:$input.css("letter-spacing"),textIndent:$input.css("text-indent"),textRendering:$input.css("text-rendering"),textTransform:$input.css("text-transform")}).insertAfter($input)}function areQueriesEquivalent(a,b){return Input.normalizeQuery(a)===Input.normalizeQuery(b)}function withModifier($e){return $e.altKey||
$e.ctrlKey||$e.metaKey||$e.shiftKey}}();var Dataset=function(){var datasetKey="ttDataset",valueKey="ttValue",datumKey="ttDatum";function Dataset(o){o=o||{};o.templates=o.templates||{};if(!o.source)$.error("missing source");if(o.name&&!isValidName(o.name))$.error("invalid dataset name: "+o.name);this.query=null;this.highlight=!!o.highlight;this.name=o.name||_.getUniqueId();this.source=o.source;this.displayFn=getDisplayFn(o.display||o.displayKey);this.templates=getTemplates(o.templates,this.displayFn);
this.$el=$(html.dataset.replace("%CLASS%",this.name))}Dataset.extractDatasetName=function extractDatasetName(el){return $(el).data(datasetKey)};Dataset.extractValue=function extractDatum(el){return $(el).data(valueKey)};Dataset.extractDatum=function extractDatum(el){return $(el).data(datumKey)};_.mixin(Dataset.prototype,EventEmitter,{_render:function render(query,suggestions){if(!this.$el)return;var that=this,hasSuggestions;this.$el.empty();hasSuggestions=suggestions&&suggestions.length;if(!hasSuggestions&&
this.templates.empty)this.$el.html(getEmptyHtml()).prepend(that.templates.header?getHeaderHtml():null).append(that.templates.footer?getFooterHtml():null);else if(hasSuggestions)this.$el.html(getSuggestionsHtml()).prepend(that.templates.header?getHeaderHtml():null).append(that.templates.footer?getFooterHtml():null);this.trigger("rendered");function getEmptyHtml(){return that.templates.empty({query:query,isEmpty:true})}function getSuggestionsHtml(){var $suggestions,nodes;$suggestions=$(html.suggestions).css(css.suggestions);
nodes=_.map(suggestions,getSuggestionNode);$suggestions.append.apply($suggestions,nodes);that.highlight&&highlight({node:$suggestions[0],pattern:query});return $suggestions;function getSuggestionNode(suggestion){var $el;$el=$(html.suggestion).append(that.templates.suggestion(suggestion)).data(datasetKey,that.name).data(valueKey,that.displayFn(suggestion)).data(datumKey,suggestion);$el.children().each(function(){$(this).css(css.suggestionChild)});return $el}}function getHeaderHtml(){return that.templates.header({query:query,
isEmpty:!hasSuggestions})}function getFooterHtml(){return that.templates.footer({query:query,isEmpty:!hasSuggestions})}},getRoot:function getRoot(){return this.$el},update:function update(query){var that=this;this.query=query;this.canceled=false;this.source(query,render);function render(suggestions){if(!that.canceled&&query===that.query)that._render(query,suggestions)}},cancel:function cancel(){this.canceled=true},clear:function clear(){this.cancel();this.$el.empty();this.trigger("rendered")},isEmpty:function isEmpty(){return this.$el.is(":empty")},
destroy:function destroy(){this.$el=null}});return Dataset;function getDisplayFn(display){display=display||"value";return _.isFunction(display)?display:displayFn;function displayFn(obj){return obj[display]}}function getTemplates(templates,displayFn){return{empty:templates.empty&&_.templatify(templates.empty),header:templates.header&&_.templatify(templates.header),footer:templates.footer&&_.templatify(templates.footer),suggestion:templates.suggestion||suggestionTemplate};function suggestionTemplate(context){return"\x3cp\x3e"+
displayFn(context)+"\x3c/p\x3e"}}function isValidName(str){return/^[_a-zA-Z0-9-]+$/.test(str)}}();var Dropdown=function(){function Dropdown(o){var that=this,onSuggestionClick,onSuggestionMouseEnter,onSuggestionMouseLeave;o=o||{};if(!o.menu)$.error("menu is required");this.isOpen=false;this.isEmpty=true;this.datasets=_.map(o.datasets,initializeDataset);onSuggestionClick=_.bind(this._onSuggestionClick,this);onSuggestionMouseEnter=_.bind(this._onSuggestionMouseEnter,this);onSuggestionMouseLeave=_.bind(this._onSuggestionMouseLeave,
this);this.$menu=$(o.menu).on("click.tt",".tt-suggestion",onSuggestionClick).on("mouseenter.tt",".tt-suggestion",onSuggestionMouseEnter).on("mouseleave.tt",".tt-suggestion",onSuggestionMouseLeave);_.each(this.datasets,function(dataset){that.$menu.append(dataset.getRoot());dataset.onSync("rendered",that._onRendered,that)})}_.mixin(Dropdown.prototype,EventEmitter,{_onSuggestionClick:function onSuggestionClick($e){this.trigger("suggestionClicked",$($e.currentTarget))},_onSuggestionMouseEnter:function onSuggestionMouseEnter($e){this._removeCursor();
this._setCursor($($e.currentTarget),true)},_onSuggestionMouseLeave:function onSuggestionMouseLeave(){this._removeCursor()},_onRendered:function onRendered(){this.isEmpty=_.every(this.datasets,isDatasetEmpty);this.isEmpty?this._hide():this.isOpen&&this._show();this.trigger("datasetRendered");function isDatasetEmpty(dataset){return dataset.isEmpty()}},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function getSuggestions(){return this.$menu.find(".tt-suggestion")},
_getCursor:function getCursor(){return this.$menu.find(".tt-cursor").first()},_setCursor:function setCursor($el,silent){$el.first().addClass("tt-cursor");!silent&&this.trigger("cursorMoved")},_removeCursor:function removeCursor(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function moveCursor(increment){var $suggestions,$oldCursor,newCursorIndex,$newCursor;if(!this.isOpen)return;$oldCursor=this._getCursor();$suggestions=this._getSuggestions();this._removeCursor();newCursorIndex=$suggestions.index($oldCursor)+
increment;newCursorIndex=(newCursorIndex+1)%($suggestions.length+1)-1;if(newCursorIndex===-1){this.trigger("cursorRemoved");return}else if(newCursorIndex<-1)newCursorIndex=$suggestions.length-1;this._setCursor($newCursor=$suggestions.eq(newCursorIndex));this._ensureVisible($newCursor)},_ensureVisible:function ensureVisible($el){var elTop,elBottom,menuScrollTop,menuHeight;elTop=$el.position().top;elBottom=elTop+$el.outerHeight(true);menuScrollTop=this.$menu.scrollTop();menuHeight=this.$menu.height()+
parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10);if(elTop<0)this.$menu.scrollTop(menuScrollTop+elTop);else if(menuHeight<elBottom)this.$menu.scrollTop(menuScrollTop+(elBottom-menuHeight))},close:function close(){if(this.isOpen){this.isOpen=false;this._removeCursor();this._hide();this.trigger("closed")}},open:function open(){if(!this.isOpen){this.isOpen=true;!this.isEmpty&&this._show();this.trigger("opened")}},setLanguageDirection:function setLanguageDirection(dir){this.$menu.css(dir===
"ltr"?css.ltr:css.rtl)},moveCursorUp:function moveCursorUp(){this._moveCursor(-1)},moveCursorDown:function moveCursorDown(){this._moveCursor(+1)},getDatumForSuggestion:function getDatumForSuggestion($el){var datum=null;if($el.length)datum={raw:Dataset.extractDatum($el),value:Dataset.extractValue($el),datasetName:Dataset.extractDatasetName($el)};return datum},getDatumForCursor:function getDatumForCursor(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function getDatumForTopSuggestion(){return this.getDatumForSuggestion(this._getSuggestions().first())},
update:function update(query){_.each(this.datasets,updateDataset);function updateDataset(dataset){dataset.update(query)}},empty:function empty(){_.each(this.datasets,clearDataset);this.isEmpty=true;function clearDataset(dataset){dataset.clear()}},isVisible:function isVisible(){return this.isOpen&&!this.isEmpty},destroy:function destroy(){this.$menu.off(".tt");this.$menu=null;_.each(this.datasets,destroyDataset);function destroyDataset(dataset){dataset.destroy()}}});return Dropdown;function initializeDataset(oDataset){return new Dataset(oDataset)}
}();var Typeahead=function(){var attrsKey="ttAttrs";function Typeahead(o){var $menu,$input,$hint;o=o||{};if(!o.input)$.error("missing input");this.isActivated=false;this.autoselect=!!o.autoselect;this.minLength=_.isNumber(o.minLength)?o.minLength:1;this.$node=buildDomStructure(o.input,o.withHint);$menu=this.$node.find(".tt-dropdown-menu");$input=this.$node.find(".tt-input");$hint=this.$node.find(".tt-hint");$input.on("blur.tt",function($e){var active,isActive,hasActive;active=document.activeElement;
isActive=$menu.is(active);hasActive=$menu.has(active).length>0;if(_.isMsie()&&(isActive||hasActive)){$e.preventDefault();$e.stopImmediatePropagation();_.defer(function(){$input.focus()})}});$menu.on("mousedown.tt",function($e){$e.preventDefault()});this.eventBus=o.eventBus||new EventBus({el:$input});this.dropdown=(new Dropdown({menu:$menu,datasets:o.datasets})).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,
this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this);this.input=(new Input({input:$input,hint:$hint})).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,
this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this);this._setLanguageDirection()}_.mixin(Typeahead.prototype,{_onSuggestionClicked:function onSuggestionClicked(type,$el){var datum;if(datum=this.dropdown.getDatumForSuggestion($el))this._select(datum)},_onCursorMoved:function onCursorMoved(){var datum=this.dropdown.getDatumForCursor();this.input.setInputValue(datum.value,true);this.eventBus.trigger("cursorchanged",
datum.raw,datum.datasetName)},_onCursorRemoved:function onCursorRemoved(){this.input.resetInputValue();this._updateHint()},_onDatasetRendered:function onDatasetRendered(){this._updateHint()},_onOpened:function onOpened(){this._updateHint();this.eventBus.trigger("opened")},_onClosed:function onClosed(){this.input.clearHint();this.eventBus.trigger("closed")},_onFocused:function onFocused(){this.isActivated=true;this.dropdown.open()},_onBlurred:function onBlurred(){this.isActivated=false;this.dropdown.empty();
this.dropdown.close()},_onEnterKeyed:function onEnterKeyed(type,$e){var cursorDatum,topSuggestionDatum;cursorDatum=this.dropdown.getDatumForCursor();topSuggestionDatum=this.dropdown.getDatumForTopSuggestion();if(cursorDatum){this._select(cursorDatum);$e.preventDefault()}else if(this.autoselect&&topSuggestionDatum){this._select(topSuggestionDatum);$e.preventDefault()}},_onTabKeyed:function onTabKeyed(type,$e){var datum;if(datum=this.dropdown.getDatumForCursor()){this._select(datum);$e.preventDefault()}else this._autocomplete(true)},
_onEscKeyed:function onEscKeyed(){this.dropdown.close();this.input.resetInputValue()},_onUpKeyed:function onUpKeyed(){var query=this.input.getQuery();this.dropdown.isEmpty&&query.length>=this.minLength?this.dropdown.update(query):this.dropdown.moveCursorUp();this.dropdown.open()},_onDownKeyed:function onDownKeyed(){var query=this.input.getQuery();this.dropdown.isEmpty&&query.length>=this.minLength?this.dropdown.update(query):this.dropdown.moveCursorDown();this.dropdown.open()},_onLeftKeyed:function onLeftKeyed(){this.dir===
"rtl"&&this._autocomplete()},_onRightKeyed:function onRightKeyed(){this.dir==="ltr"&&this._autocomplete()},_onQueryChanged:function onQueryChanged(e,query){this.input.clearHintIfInvalid();query.length>=this.minLength?this.dropdown.update(query):this.dropdown.empty();this.dropdown.open();this._setLanguageDirection()},_onWhitespaceChanged:function onWhitespaceChanged(){this._updateHint();this.dropdown.open()},_setLanguageDirection:function setLanguageDirection(){var dir;if(this.dir!==(dir=this.input.getLanguageDirection())){this.dir=
dir;this.$node.css("direction",dir);this.dropdown.setLanguageDirection(dir)}},_updateHint:function updateHint(){var datum,val,query,escapedQuery,frontMatchRegEx,match;datum=this.dropdown.getDatumForTopSuggestion();if(datum&&this.dropdown.isVisible()&&!this.input.hasOverflow()){val=this.input.getInputValue();query=Input.normalizeQuery(val);escapedQuery=_.escapeRegExChars(query);frontMatchRegEx=new RegExp("^(?:"+escapedQuery+")(.+$)","i");match=frontMatchRegEx.exec(datum.value);match?this.input.setHint(val+
match[1]):this.input.clearHint()}else this.input.clearHint()},_autocomplete:function autocomplete(laxCursor){var hint,query,isCursorAtEnd,datum;hint=this.input.getHint();query=this.input.getQuery();isCursorAtEnd=laxCursor||this.input.isCursorAtEnd();if(hint&&query!==hint&&isCursorAtEnd){datum=this.dropdown.getDatumForTopSuggestion();datum&&this.input.setInputValue(datum.value);this.eventBus.trigger("autocompleted",datum.raw,datum.datasetName)}},_select:function select(datum){this.input.setQuery(datum.value);
this.input.setInputValue(datum.value,true);this._setLanguageDirection();this.eventBus.trigger("selected",datum.raw,datum.datasetName);this.dropdown.close();_.defer(_.bind(this.dropdown.empty,this.dropdown))},open:function open(){this.dropdown.open()},close:function close(){this.dropdown.close()},setVal:function setVal(val){if(this.isActivated)this.input.setInputValue(val);else{this.input.setQuery(val);this.input.setInputValue(val,true)}this._setLanguageDirection()},getVal:function getVal(){return this.input.getQuery()},
destroy:function destroy(){this.input.destroy();this.dropdown.destroy();destroyDomStructure(this.$node);this.$node=null}});return Typeahead;function buildDomStructure(input,withHint){var $input,$wrapper,$dropdown,$hint;$input=$(input);$wrapper=$(html.wrapper).css(css.wrapper);$dropdown=$(html.dropdown).css(css.dropdown);$hint=$input.clone().css(css.hint).css(getBackgroundStyles($input));$hint.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder").prop("disabled",true).attr({autocomplete:"off",
spellcheck:"false"});$input.data(attrsKey,{dir:$input.attr("dir"),autocomplete:$input.attr("autocomplete"),spellcheck:$input.attr("spellcheck"),style:$input.attr("style")});$input.addClass("tt-input").attr({autocomplete:"off",spellcheck:false}).css(withHint?css.input:css.inputWithNoHint);try{!$input.attr("dir")&&$input.attr("dir","auto")}catch(e){}return $input.wrap($wrapper).parent().prepend(withHint?$hint:null).append($dropdown)}function getBackgroundStyles($el){return{backgroundAttachment:$el.css("background-attachment"),
backgroundClip:$el.css("background-clip"),backgroundColor:$el.css("background-color"),backgroundImage:$el.css("background-image"),backgroundOrigin:$el.css("background-origin"),backgroundPosition:$el.css("background-position"),backgroundRepeat:$el.css("background-repeat"),backgroundSize:$el.css("background-size")}}function destroyDomStructure($node){var $input=$node.find(".tt-input");_.each($input.data(attrsKey),function(val,key){_.isUndefined(val)?$input.removeAttr(key):$input.attr(key,val)});$input.detach().removeData(attrsKey).removeClass("tt-input").insertAfter($node);
$node.remove()}}();(function(){var old,typeaheadKey,methods;old=$.fn.typeahead;typeaheadKey="ttTypeahead";methods={initialize:function initialize(o,datasets){datasets=_.isArray(datasets)?datasets:[].slice.call(arguments,1);o=o||{};return this.each(attach);function attach(){var $input=$(this),eventBus,typeahead;_.each(datasets,function(d){d.highlight=!!o.highlight});typeahead=new Typeahead({input:$input,eventBus:eventBus=new EventBus({el:$input}),withHint:_.isUndefined(o.hint)?true:!!o.hint,minLength:o.minLength,
autoselect:o.autoselect,datasets:datasets});$input.data(typeaheadKey,typeahead)}},open:function open(){return this.each(openTypeahead);function openTypeahead(){var $input=$(this),typeahead;if(typeahead=$input.data(typeaheadKey))typeahead.open()}},close:function close(){return this.each(closeTypeahead);function closeTypeahead(){var $input=$(this),typeahead;if(typeahead=$input.data(typeaheadKey))typeahead.close()}},val:function val(newVal){return!arguments.length?getVal(this.first()):this.each(setVal);
function setVal(){var $input=$(this),typeahead;if(typeahead=$input.data(typeaheadKey))typeahead.setVal(newVal)}function getVal($input){var typeahead,query;if(typeahead=$input.data(typeaheadKey))query=typeahead.getVal();return query}},destroy:function destroy(){return this.each(unattach);function unattach(){var $input=$(this),typeahead;if(typeahead=$input.data(typeaheadKey)){typeahead.destroy();$input.removeData(typeaheadKey)}}}};$.fn.typeahead=function(method){if(methods[method])return methods[method].apply(this,
[].slice.call(arguments,1));else return methods.initialize.apply(this,arguments)};$.fn.typeahead.noConflict=function noConflict(){$.fn.typeahead=old;return this}})()})(window.jQuery);
/* Auto generated, hash = 66acceq2drocc2yw5fd555ah5 */
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
 * @version   3.0.2
 */

(function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function n(t){return"object"==typeof t&&null!==t}function r(t){U=t}function o(t){G=t}function i(){return function(){process.nextTick(f)}}function u(){return function(){N(f)}}function s(){var t=0,e=new Q(f),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function c(){var t=new MessageChannel;return t.port1.onmessage=f,function(){t.port2.postMessage(0)}}function a(){return function(){setTimeout(f,1)}}function f(){for(var t=0;B>t;t+=2){var e=X[t],n=X[t+1];e(n),X[t]=void 0,X[t+1]=void 0}B=0}function l(){try{var t=require,e=t("vertx");return N=e.runOnLoop||e.runOnContext,u()}catch(n){return a()}}function p(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function v(t){try{return t.then}catch(e){return et.error=e,et}}function d(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){G(function(t){var r=!1,o=d(n,e,function(n){r||(r=!0,e!==n?g(t,n):A(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function m(t,e){e._state===$?A(t,e._result):e._state===tt?j(t,e._result):E(e,void 0,function(e){g(t,e)},function(e){j(t,e)})}function b(t,n){if(n.constructor===t.constructor)m(t,n);else{var r=v(n);r===et?j(t,et.error):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}}function g(e,n){e===n?j(e,_()):t(n)?b(e,n):A(e,n)}function w(t){t._onerror&&t._onerror(t._result),S(t)}function A(t,e){t._state===Z&&(t._result=e,t._state=$,0!==t._subscribers.length&&G(S,t))}function j(t,e){t._state===Z&&(t._state=tt,t._result=e,G(w,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+$]=n,o[i+tt]=r,0===i&&t._state&&G(S,t)}function S(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,u=0;u<e.length;u+=3)r=e[u],o=e[u+n],r?x(n,r,o,i):o(i);t._subscribers.length=0}}function T(){this.error=null}function P(t,e){try{return t(e)}catch(n){return nt.error=n,nt}}function x(t,n,r,o){var i,u,s,c,a=e(r);if(a){if(i=P(r,o),i===nt?(c=!0,u=i.error,i=null):s=!0,n===i)return void j(n,h())}else i=o,s=!0;n._state!==Z||(a&&s?g(n,i):c?j(n,u):t===$?A(n,i):t===tt&&j(n,i))}function C(t,e){try{e(function(e){g(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function M(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(p),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?A(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&A(n.promise,n._result))):j(n.promise,n._validationError())}function O(t){return new rt(this,t).promise}function k(t){function e(t){g(o,t)}function n(t){j(o,t)}var r=this,o=new r(p);if(!z(t))return j(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,u=0;o._state===Z&&i>u;u++)E(r.resolve(t[u]),void 0,e,n);return o}function Y(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function q(t){var e=this,n=new e(p);return j(n,t),n}function F(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function I(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(t){this._id=ct++,this._state=void 0,this._result=void 0,this._subscribers=[],p!==t&&(e(t)||F(),this instanceof D||I(),C(this,t))}function K(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(t.Promise=at)}var L;L=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var N,U,W,z=L,B=0,G=({}.toString,function(t,e){X[B]=t,X[B+1]=e,B+=2,2===B&&(U?U(f):W())}),H="undefined"!=typeof window?window:void 0,J=H||{},Q=J.MutationObserver||J.WebKitMutationObserver,R="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),V="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,X=new Array(1e3);W=R?i():Q?s():V?c():void 0===H&&"function"==typeof require?l():a();var Z=void 0,$=1,tt=2,et=new T,nt=new T;M.prototype._validateInput=function(t){return z(t)},M.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},M.prototype._init=function(){this._result=new Array(this.length)};var rt=M;M.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===Z&&e>o;o++)t._eachEntry(r[o],o)},M.prototype._eachEntry=function(t,e){var r=this,o=r._instanceConstructor;n(t)?t.constructor===o&&t._state!==Z?(t._onerror=null,r._settledAt(t._state,e,t._result)):r._willSettleAt(o.resolve(t),e):(r._remaining--,r._result[e]=t)},M.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===Z&&(r._remaining--,t===tt?j(o,n):r._result[e]=n),0===r._remaining&&A(o,r._result)},M.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){n._settledAt($,e,t)},function(t){n._settledAt(tt,e,t)})};var ot=O,it=k,ut=Y,st=q,ct=0,at=D;D.all=ot,D.race=it,D.resolve=ut,D.reject=st,D._setScheduler=r,D._setAsap=o,D._asap=G,D.prototype={constructor:D,then:function(t,e){var n=this,r=n._state;if(r===$&&!t||r===tt&&!e)return this;var o=new this.constructor(p),i=n._result;if(r){var u=arguments[r-1];G(function(){x(r,o,u,i)})}else E(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var ft=K,lt={Promise:at,polyfill:ft};"function"==typeof define&&define.amd?define("es6-promise.js",[],function(){return lt}):"undefined"!=typeof module&&module.exports?module.exports=lt:"undefined"!=typeof this&&(this.ES6Promise=lt),ft()}).call(this);
/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */

var requirejs,require,define;!function(e){function n(e,n){return j.call(e,n)}function r(e,n){var r,i,t,o,u,f,l,c,s,p,a,d,g=n&&n.split("/"),m=h.map,y=m&&m["*"]||{};if(e){for(e=e.split("/"),u=e.length-1,h.nodeIdCompat&&q.test(e[u])&&(e[u]=e[u].replace(q,"")),"."===e[0].charAt(0)&&g&&(d=g.slice(0,g.length-1),e=d.concat(e)),s=0;s<e.length;s++)if(a=e[s],"."===a)e.splice(s,1),s-=1;else if(".."===a){if(0===s||1===s&&".."===e[2]||".."===e[s-1])continue;s>0&&(e.splice(s-1,2),s-=2)}e=e.join("/")}if((g||y)&&m){for(r=e.split("/"),s=r.length;s>0;s-=1){if(i=r.slice(0,s).join("/"),g)for(p=g.length;p>0;p-=1)if(t=m[g.slice(0,p).join("/")],t&&(t=t[i])){o=t,f=s;break}if(o)break;!l&&y&&y[i]&&(l=y[i],c=s)}!o&&l&&(o=l,f=c),o&&(r.splice(0,f,o),e=r.join("/"))}return e}function i(n,r){return function(){var i=v.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(e,i.concat([n,r]))}}function t(e){return function(n){return r(n,e)}}function o(e){return function(n){g[e]=n}}function u(r){if(n(m,r)){var i=m[r];delete m[r],y[r]=!0,s.apply(e,i)}if(!n(g,r)&&!n(y,r))throw new Error("No "+r);return g[r]}function f(e){var n,r=e?e.indexOf("!"):-1;return r>-1&&(n=e.substring(0,r),e=e.substring(r+1,e.length)),[n,e]}function l(e){return e?f(e):[]}function c(e){return function(){return h&&h.config&&h.config[e]||{}}}var s,p,a,d,g={},m={},h={},y={},j=Object.prototype.hasOwnProperty,v=[].slice,q=/\.js$/;a=function(e,n){var i,o=f(e),l=o[0],c=n[1];return e=o[1],l&&(l=r(l,c),i=u(l)),l?e=i&&i.normalize?i.normalize(e,t(c)):r(e,c):(e=r(e,c),o=f(e),l=o[0],e=o[1],l&&(i=u(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:i}},d={require:function(e){return i(e)},exports:function(e){var n=g[e];return"undefined"!=typeof n?n:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:c(e)}}},s=function(r,t,f,c){var s,p,h,j,v,q,x,b=[],w=typeof f;if(c=c||r,q=l(c),"undefined"===w||"function"===w){for(t=!t.length&&f.length?["require","exports","module"]:t,v=0;v<t.length;v+=1)if(j=a(t[v],q),p=j.f,"require"===p)b[v]=d.require(r);else if("exports"===p)b[v]=d.exports(r),x=!0;else if("module"===p)s=b[v]=d.module(r);else if(n(g,p)||n(m,p)||n(y,p))b[v]=u(p);else{if(!j.p)throw new Error(r+" missing "+p);j.p.load(j.n,i(c,!0),o(p),{}),b[v]=g[p]}h=f?f.apply(g[r],b):void 0,r&&(s&&s.exports!==e&&s.exports!==g[r]?g[r]=s.exports:h===e&&x||(g[r]=h))}else r&&(g[r]=f)},requirejs=require=p=function(n,r,i,t,o){if("string"==typeof n)return d[n]?d[n](r):u(a(n,l(r)).f);if(!n.splice){if(h=n,h.deps&&p(h.deps,h.callback),!r)return;r.splice?(n=r,r=i,i=null):n=e}return r=r||function(){},"function"==typeof i&&(i=t,t=o),t?s(e,n,r,i):setTimeout(function(){s(e,n,r,i)},4),p},p.config=function(e){return p(e)},requirejs._defined=g,define=function(e,r,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");r.splice||(i=r,r=[]),n(g,e)||n(m,e)||(m[e]=[e,r,i])},define.amd={jQuery:!0}}(),define("almond.js",function(){});
/*! http://mths.be/array-from v0.2.0 by @mathias */

Array.from||!function(){"use strict";var r=function(){try{var r={},e=Object.defineProperty,n=e(r,r,r)&&e}catch(t){}return n||function(r,e,n){r[e]=n.value}}(),e=Object.prototype.toString,n=function(r){return"function"==typeof r||"[object Function]"==e.call(r)},t=function(r){var e=Number(r);return isNaN(e)?0:0!=e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e},a=Math.pow(2,53)-1,o=function(r){var e=t(r);return Math.min(Math.max(e,0),a)},u=function(e){var t=this;if(null==e)throw new TypeError("`Array.from` requires an array-like object, not `null` or `undefined`");var a,u,i=Object(e);arguments.length>1;if(arguments.length>1){if(a=arguments[1],!n(a))throw new TypeError("When provided, the second argument to `Array.from` must be a function");arguments.length>2&&(u=arguments[2])}for(var f,c,l=o(i.length),h=n(t)?Object(new t(l)):new Array(l),m=0;l>m;)f=i[m],c=a?"undefined"==typeof u?a(f,m):a.call(u,f,m):f,r(h,m,{value:c,configurable:!0,enumerable:!0}),++m;return h.length=l,h};r(Array,"from",{value:u,configurable:!0,writable:!0})}(),define("array-from.js",function(){});
define("adaptor/pulse-web",["module","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n["default"]={rendererConfig:{render:function(e,n){var r=new Promise(function(r,t){dust.render(e,n,function(e,n){e?t(e,"error rendering template with dust.js"):r(n)})});return r}},languageConfig:{}},e.exports=n["default"]}),define("adaptor/pulse-web.js",function(){});
define("config/comments",["module","exports","../config/modal"],function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n);t["default"]={idPrefix:"pulse-comments",articleUrn:!1,memberUrn:!1,authorUrn:!1,pageCount:10,pageNextCount:10,pageNextCountMultiplier:1,start:0,container:".comments-container",inputContainer:".comments-input-container",threadContainer:".comments-threads",defaultSort:"recommended",commentsDisabledAuthorLix:!1,templateDefault:"comments",templateCommentsDisabled:"commentsDisabled",commentsDisabled:!1,commentsState:"OPEN",templateInputDefault:"commentsInputDefault",templateInputGuest:"commentsInputGuest",templateUrl:!1,messageMinSize:2,loaderDelay:500,modalOverrides:i["default"],autoInputHeightAdd:20,autoInputDefaultHeight:56,jumpPadding:0,author:{profileUrl:"",image:{url:"https://static.licdn-ei.com/scds/common/u/images/themes/katy/ghosts/person/ghost_person_200x200_v1.png",width:"70px",height:"70px"}},endpoints:{comments:"https://www.linkedin-ei.com/pulse-fe/api/v1/comments",nestedComments:"https://www.linkedin-ei.com/pulse-fe/api/v1/comments",comment:"https://www.linkedin-ei.com/pulse-fe/api/v1/comments","delete":"https://www.linkedin-ei.com/pulse-fe/api/v1/comments/delete",like:"https://www.linkedin-ei.com/pulse-fe/api/v1/like",unlike:"https://www.linkedin-ei.com/pulse-fe/api/v1/like",flag:"https://www.linkedin-ei.com/pulse-fe/api/v1/flag",unflag:"https://www.linkedin-ei.com/pulse-fe/api/v1/flag",disableComments:"https://www.linkedin-ei.com/pulse-fe/api/v1/comments/enable",enableComments:"https://www.linkedin-ei.com/pulse-fe/api/v1/comments/enable"},callbacks:{onDelete:function(){},onCommentDelete:function(){},onCommentsDisable:function(){},onCommentsEnable:function(){},onRendered:function(){},onThreadDelete:function(){},onSave:function(){},onNestedSave:function(){},onMention:function(){},onCommentFlag:function(){},onDestroy:function(){},onLike:function(){},onInputFocus:function(){},onInputBlur:function(){},deleteConfirm:!1,onReplied:function(){},getlinkHook:function(){},getlinkDialog:!1,shareHook:function(){},shareDialog:!1,likeHook:function(){},likeDialog:!1,removeCommentHook:!1,flagCommentHook:!1,disableCommentsHook:!1,removeCommentDialog:!1},thread:{idPrefix:"pulse-comments-thread",template:"thread",templateUrl:!1,commentContainer:".threads-comments",container:".comments-thread-container",nestedPageCount:4,nestedStartCount:1,scrollOnReply:!0,hideRepliesOnLoad:!1,showMoreOpensReply:!0},comment:{idPrefix:"pulse-comments-comment",secondaryPrefix:"urn:li:comment:(article:",legacyHashIdPrefix:"comments",legacyDeepLinkPrefix:"deepLinkCommentId",commentContainerPrefix:"pulse-comments-urn:li:article:",template:"comment",templateUrl:!1,container:".comment-container",nestedBadgeWidth:"36px",nestedBadgeHeight:"36px",badgeWidth:"54px",badgeHeight:"54px",menuItemPrefix:"comments-menu-item-",menuItems:["getlink","delete","flag"],menuItemsForNested:["delete","flag"],menuItemsForGuests:["getlink"],maxInitialChars:375,maxInitialLines:5,charLimitParent:100,charLimitNested:92,seeLessButton:!1}},e.exports=t["default"]}),define("config/comments.js",function(){});
define("config/constants",["module","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t={renderedKey:"rendered",likeKey:"like",deleteKey:"delete",featureKey:"feature",getlinkKey:"getLink",replyKey:"reply",proxyKey:"proxy",commentsName:"comments",hiddenClass:"hidden",nestedClass:"nested",loadingClass:"loading",iosSafariClass:"ios-safari",empty:"empty",mentionsOldInputClass:".mentions-old-input",mentionsInputContainerClass:".mentions-input-container",mentionsDropdownClass:".mentions-dropdown",mentionsClass:".mentions-instance",mentionsInputClass:".mention-input",typeAheadContainerClass:".mentions-type-ahead-container",mentionBadgeClassName:"mention-badge",mentionsKeystroke:"mentions-keystroke",commentsAuthorView:"comments-author-view",disableCommentsLixEnabled:"disable-comments-ui-enabled",clickEvent:"click",mouseEnterEvent:"mouseenter",mouseLeaveEvent:"mouseleave",guestLike:"LIKE",guestReply:"REPLY",open:"OPEN",deleted:"DELETED",closed:"CLOSED",chromeAndroid:"chromeAndroid",internetExplorer:"ie",iosSafari:"iosSafari",iosWebview:"iosWebview",ios:"ios",otherAgent:"otherAgent",enterKey:13,sortMap:{newest:"REV_CHRON",oldest:"CHRON",recommended:"POPULAR"},mentionEvents:{beforeInit:function(){},rendered:function(){},typing:function(){},selected:function(){},destroyed:function(){},clicked:function(){}},parser:new DOMParser};n["default"]=t,e.exports=n["default"]}),define("config/constants.js",function(){});
define("config/global",["module","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=function(){};o["default"]={adaptor:"adaptor/pulse-web",debug:!1,localStorageKey:"comments",newIcons:!1,requestDataMethod:"form",i18nAdapter:t,isGuestMode:!1,isMobileView:!1,mobileViewTooltipTime:1250,guestUrls:{SIGNIN:"https://www.linkedin.com",LIKE:"https://www.linkedin.com",REPLY:"https://www.linkedin.com"},track:{log:t,warn:t,error:t},timePrefixes:{hour:"h",minute:"m",day:"d",second:"s",month:"mo",year:"y",week:"w"},timePlaceholder:""},e.exports=o["default"]}),define("config/global.js",function(){});
define("config/mentions",["module","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n["default"]={entitlementUrl:"/hp/influencer-entitlement",oonMentions:!1,schoolMentions:!1,limits:{mynetwork:5,my1stnetwork:5,company:5,school:0},isInfluencer:null,mentionsTL:"typeaheadMentionItem.tl"},e.exports=n["default"]}),define("config/mentions.js",function(){});
define("config/modal",["module","exports"],function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a["default"]={template:"modal",container:".modalContainer",customClass:"",subModals:{LinkModal:{template:"linkModal",baseUrl:!1},RemoveCommentModal:{template:"removeCommentModal"},LikeModal:{template:"likeModal",subTemplate:"likeModalRows",charLimitTitle:75},ShareModal:{template:"shareModal"}},availableModals:["LinkModal","LikeModal","ShareModal","RemoveCommentModal"]},e.exports=a["default"]}),define("config/modal.js",function(){});
define("config/renderer",["module","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={paths:{comment:"comment.tl",thread:"thread.tl",comments:"comments.tl",commentsDisabled:"commentsDisabled.tl",commentsInputDefault:"commentsInputDefault.tl",commentsInputGuest:"commentsInputGuest.tl",modal:"modal.tl",linkModal:"linkModal.tl",removeCommentModal:"removeCommentModal.tl",shareModal:"shareModal.tl",likeModal:"likeModal.tl",likeModalRows:"likeModalRows.tl"}},e.exports=t["default"]}),define("config/renderer.js",function(){});
define("config/translate",["module","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={comments:{total_context:"{0} comments","delete":"delete",recommended:"Recommended",oldest:"Oldest",newest:"Newest",showMore:"Show more.",thereAre_context:"There are {0} other comments.",notEnoughChars:"Please enter more characters in your comment",cancel:"Cancel",saveChanges:"Save changes",commentSettings:"Comment settings",allowComments:"Allow comments",disableComments:"Disable comments",disableCommentsInfo:"All the existing comments will be deleted permanently."},commentsDisabled:{commentsDisabledCommentsDisabling:"Disabling comments...",commentsDisabledAuthorMessage:"You've disabled comments on this article.",commentsDisabledAuthorEnable:'To hear people\'s thoughts and to improve the reach of this article, <button class="disable-comments__button--enable">enable comments now</button>.',commentsDisabledViewerMessage:"Comments have been disabled by the author."},commentsInputDefault:{comment:"Comment",placeholder:"Leave your thoughts here..."},commentsInputGuest:{signin:"Sign in to leave your comment"},thread:{placeholder:"Reply to this comment...",showMore:"Show more",cancel:"Cancel",reply:"Reply",viewPrevious:"View previous replies",notEnoughChars:"Please enter more chacters in your reply"},comment:{like:"Like",likeGuestTooltip:"Sign in to like this comment",unlike:"Unlike",reply:"Reply",replyGuestTooltip:"Sign in to reply to this comment",feature:"Feature",share:"Share",getlink:"Get link","delete":"Delete",you:"You",flag:"Flag",commentCount:"Comment Count",seeMore:"See more",seeLess:"See less"},likeModal:{membersWhoLike:"Members who like this",dismiss:"Dismiss"},linkModal:{getLink:"Get Link",dismiss:"Dismiss",urlOfComment:"The URL of this comment is below. Copy it to share or to embed it in your post."},removeCommentModal:{flag:"flag","delete":"Delete",dismiss:"Cancel",confirm:"Confirm",disableCommentsConfirmation:"Disable comments",mainMessageDelete:"Would you like to delete this comment?",mainMessageFlag:"Would you like to flag this comment?",mainMessageDisableComments:"Are you sure you want to disable comments? All the existing comments will be deleted permanently."},mentions:{topInput:"Leave your thoughts here...",bottomInput:"Reply to this comment...",comment:"Comment"},timePrefixes:{second:"s",minute:"m",hour:"h",day:"d",month:"mo",year:"y",week:"w"}},e.exports=t["default"]}),define("config/translate.js",function(){});
define("modules/Comment",["module","exports","../util/Renderer","../util/Utils","../util/Alerts","../config/constants"],function(e,t,n,i,s,o){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var u=r(n),h=r(s),m=r(o),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),d=m["default"].renderedKey,g=m["default"].hiddenClass,f=m["default"].clickEvent,v=m["default"].mouseEnterEvent,p=m["default"].mouseLeaveEvent,k=m["default"].proxyKey,C=function(){function e(t){var n=this;arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};l(this,e),this.events=new i.Events,this.configure.apply(this,arguments),i.Helpers.build(this.config.template,this.transformer(this.data),this.config.container).then(function(e){n.setElements(e),n.render(),n.bindEvents(),n.events.emit(d,n.id)})["catch"](this.Logger["throw"].bind(this.Logger))}return c(e,[{key:"configure",value:function(e,t,n){this.Logger=new i.Logger,this.Renderer=new u["default"],this.Alerts=new h["default"],n&&t||this.Logger["throw"]("No comments or data specified for comment!"),this.config=n.comment,this.globalConfig=commentsProvider.getConfig("global"),this._parentConfig=n,this.memberUrn=this._parentConfig.memberUrn,this.events=new i.Events,this.parentEl=e,this.visible=!1,this.rendered=!1,this.liked=!1,this.isGuestMode=this.globalConfig.isGuestMode,this.isMobileView=this.globalConfig.isMobileView,this.setData(t)}},{key:"setElements",value:function(e){this.el=e,this.likeButton=e.querySelector(".comment-like-button"),this.replyButton=e.querySelector(".comment-reply-button"),this.thumbButton=e.querySelector(".comment-thumb-button"),this.likeTotalEl=this.thumbButton.querySelector(".comment-like-number"),this.moreButton=e.querySelector(".comment-more-button"),this.featureButton=e.querySelector(".comments-menu-item-feature"),this.shareButton=e.querySelector(".comments-menu-item-share"),this.getlinkButton=e.querySelector(".comments-menu-item-getlink"),this.deleteButton=e.querySelector(".comments-menu-item-delete"),this.commentsCount=e.querySelector(".comments-count"),this.commentMenu=e.querySelector(".comment-menu"),this.flagButton=e.querySelector(".comments-menu-item-flag"),this.alertEl=e.querySelector(".alert"),this.alertMessage=e.querySelector(".message"),this.alertDismissButton=e.querySelector(".dismiss"),this.expandCommentButton=e.querySelector(".expand-comment-button"),this.expandCommentButtonMore=e.querySelector(".expand-comment-more"),this.expandCommentButtonLess=e.querySelector(".expand-comment-less"),this.commenterTitle=e.querySelector(".commenter-title"),this.messageHolder=e.querySelector(".message-holder"),this.moreContainer=e.querySelector(".more-container"),this.commenterName=e.querySelector(".commenter-name")}},{key:"setData",value:function(e){e.nestedComments;this.data=e,this.urn=e.urn,this.likes=e.likes,this.viewAllLikesUrl=e.viewAllLikesUrl,this.id=this.config.idPrefix+"-"+e.urn,this.mentionData=this.data.mentions,this.maxInitialChars=this.config.maxInitialChars,this.menu=this.config.menuItems,this.menuForNested=this.config.menuItemsForNested,this.menuItemPrefix=this.config.menuItemPrefix,this.badges=this.data.commenter.badge,this.isInfluencer=this.badges.isInfluencer}},{key:"update",value:function(e){}},{key:"transformer",value:function(e){e.createdDate=i.Helpers.time(e.createdDate);var t=e.commenter.image;return this.isNested?(t.width=this.config.nestedBadgeWidth,t.height=this.config.nestedBadgeWidth):(t.width=this.config.badgeWidth,t.height=this.config.badgeHeight),e.id=this.id,e}},{key:"toggleShow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!0;this.visible=e,e?this.el.classList.remove(g):this.el.classList.add(g)}},{key:"render",value:function(){var e=this;if(this.setCommentCount(this.data.nestedCommentCount),this._trimLinebreaksSpaces(),this._checkCommentLength(),this.likes.map(function(t,n){var i=e.likeTotalEl;t.liker.urn===e.memberUrn&&(i.textContent=parseInt(i.textContent,10)-1,e.likes.splice(n,1),e._toggleLike(!0))}),this._checkCommenterTitleLength(),this._showLikes(),this._showAuthorElements(),this._menuSetVisibility(),this.isNested&&!this.isReply){var t=this.parentEl.querySelector(".comment-container.nested"),n=this.parentEl.parentElement.querySelector(".thread-comments-show-section");this.parentEl.insertBefore(this.el,t),this.parentEl.insertBefore(n,this.parentEl.firstElementChild.nextElementSibling)}else this.parentEl.appendChild(this.el);this.rendered=!0,this.isInfluencer&&this._isInfluencerBadge()}},{key:"_parseMentions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data.message,t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.messageHolder,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[],o=e,r=0;this.mentionData.map(function(e,n){var a=e.range,l=e.url,u=a.start-i,h=a.end-i,m=document.createElement("a"),c=document.createElement("span"),d=document.createElement("span"),g=o.substring(u,h),f=t.mentionData.length-1===n,v=o.length;a.start-i>=0&&v>u&&(m.classList.add("comments-mention"),m.href=l,m.target="_blank",0!==u&&(0===s.length?c.textContent=o.substring(0,u):c.textContent=o.substring(r,u),s.push(c)),r=h,m.textContent=g,s.push(m)),f&&r!==v&&(d.textContent=o.substring(r,v),s.push(d))}),n.innerHTML="",s.forEach(function(e){n.appendChild(e)})}},{key:"setCommentCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1;!this.isNested&&e?(this.commentsCount.classList.remove(g),this.commentsCount.querySelector(".comment-count-number").textContent=parseInt(e,10)):this.commentsCount.classList.add(g)}},{key:"bindEvents",value:function(){var e=this;this.alertDismissButton.addEventListener(f,function(){e.Alerts.toggleDisplay(e)}),this.getlinkButton&&this.getlinkButton.addEventListener(f,this._getlinkEvent.bind(this)),this.shareButton&&this.shareButton.addEventListener(f,this._shareEvent.bind(this)),this.commentsCount&&this.commentsCount.addEventListener(f,function(){e.events.emit(k,"page")}),this.thumbButton.addEventListener(f,this._thumbEvent.bind(this)),this.expandCommentButton.addEventListener(f,function(){i.Helpers.toggleElementsHidden(e.moreContainer),i.Helpers.toggleElementsHidden(e.expandCommentButtonMore),e.config.seeLessButton&&i.Helpers.toggleElementsHidden(e.expandCommentButtonLess)}),this.moreButton.addEventListener(f,function(t){t.stopPropagation(),e.events.emit(k,"_hideItems"),i.Helpers.toggleElementsHidden(e.commentMenu)}),document.body.addEventListener(f,function(){e.events&&e.events.emit(k,"_hideItems")}),this.isGuestMode?this.isMobileView?(this.replyButton.addEventListener(f,this._guestClickEvent.bind(this,null,this.replyButton)),this.likeButton.addEventListener(f,this._guestClickEvent.bind(this,null,this.likeButton))):(this.replyButton.addEventListener(f,this._guestClickEvent.bind(this,m["default"].guestReply)),this.likeButton.addEventListener(f,this._guestClickEvent.bind(this,m["default"].guestLike)),this.replyButton.addEventListener(v,function(){return e._guestTooltipToggle(e.replyButton)}),this.replyButton.addEventListener(p,function(){return e._guestTooltipToggle(e.replyButton,!1)}),this.likeButton.addEventListener(v,function(){return e._guestTooltipToggle(e.likeButton)}),this.likeButton.addEventListener(p,function(){return e._guestTooltipToggle(e.likeButton,!1)})):(this.replyButton.addEventListener(f,this._replyEvent.bind(this)),this.likeButton.addEventListener(f,this._likeEvent.bind(this)),this.featureButton&&this.featureButton.addEventListener(f,this._featureEvent.bind(this)),this.deleteButton&&this.deleteButton.addEventListener(f,this._deleteEvent.bind(this)),this.flagButton&&this.flagButton.addEventListener(f,this._flagEvent.bind(this)))}},{key:"_guestTooltipToggle",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!1;i?!function(){var n=e.parentElement.querySelector(".tooltip");n.classList.add("active"),window.setTimeout(function(){n.classList.remove("active")},t.globalConfig.mobileViewTooltipTime)}():e.parentElement.querySelector(".tooltip").classList.toggle("active",n)}},{key:"authorHasLiked",value:function(){return this.liked}},{key:"_showAuthorElements",value:function(){this.isAuthor?(this.flagButton.remove(),this.deleteButton.classList.remove(g)):(this.deleteButton.remove(),this.flagButton.classList.remove(g))}},{key:"_isInfluencerBadge",value:function(){this.commenterName.classList.add("is-influencer")}},{key:"_trimLinebreaksSpaces",value:function(){this.messageHolder.textContent=this.messageHolder.textContent.replace(/^\n+|\n+$/g,"").trim()}},{key:"_checkCommentLength",value:function(){var e=this.config.maxInitialChars,t=this._splitAroundMentions(e);if(Array.isArray(t)){if(this.mentionData.length){var n=t[0].length;this._parseMentions(t[0],this.messageHolder),this._parseMentions(t[1],this.moreContainer,n)}else this.moreContainer.textContent=t[1],this.messageHolder.textContent=t[0];this.expandCommentButton.classList.remove(g),this.messageHolder.classList.add("hasMore"),this.messageHolder.appendChild(this.moreContainer)}else this.mentionData.length?this._parseMentions(t,this.messageHolder):this.messageHolder.textContent=t}},{key:"_splitAroundMentions",value:function(e){var t=this,n=this.config.maxInitialLines,s=this.messageHolder.textContent,o=i.Helpers.truncateWithLogic(s,e,!0,!1,!1,n);return Array.isArray(o)&&this.mentionData.forEach(function(n){n.range.start<o[0].length&&n.range.end>o[0].length&&(o=t._splitAroundMentions(e-2))}),o}},{key:"_checkCommenterTitleLength",value:function(){var e=this.isNested?this._parentConfig.comment.charLimitNested:this._parentConfig.comment.charLimitParent,t=this.commenterTitle.textContent;this.commenterTitle.textContent=i.Helpers.truncateWithLogic(t,e,!1,!0,!0)}},{key:"_showLikes",value:function(){var e=this.thumbButton.querySelector(".comment-you-wrapper"),t=e.querySelector(".comment-you-label"),n=this.thumbButton.querySelector(".you-not-liked"),i=this.likeButton.querySelector(".comment-unlike-label"),s=this.likeButton.querySelector(".comment-like-label"),o=parseInt(this.likeTotalEl.textContent,10);this.authorHasLiked()?(s.classList.add(g),n.classList.add(g),i.classList.remove(g),e.classList.remove(g)):(i.classList.add(g),e.classList.add(g),s.classList.remove(g),n.classList.remove(g)),0===o&&this.authorHasLiked()?(this.thumbButton.classList.remove(g),this.likeTotalEl.classList.add(g),t.textContent=t.textContent.replace("+","")):o>0||this.authorHasLiked()?this.thumbButton.classList.remove(g):(t.textContent=t.textContent.replace("+",""),this.thumbButton.classList.add(g))}},{key:"_guestClickEvent",value:function(e,t){var n=void 0;this.isMobileView?this._guestTooltipToggle(t,null,!0):(n=this.globalConfig.guestUrls[e],e===m["default"].guestLike&&(n=n.replace(encodeURIComponent("{pulseGuiCommentId}"),this.id.replace(")","").split(",")[1])),this.windowRedirect(n.replace(encodeURIComponent("{commentId}"),this.id)))}},{key:"windowRedirect",value:function(e){window.location.href=e}},{key:"_likeEvent",value:function(){var e=this,t=void 0;return t=this.authorHasLiked()?i.Xhr["delete"](this._parentConfig.endpoints.like,{urn:this.urn}).then(function(){e._toggleLike(!1)})["catch"](this.Logger["throw"].bind(this.Logger)):i.Xhr.post(this._parentConfig.endpoints.unlike,{urn:this.urn}).then(function(){e._toggleLike(!0)})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_toggleLike",value:function(e){this.liked=e,this._parentConfig.callbacks.onLike(e,this),this._showLikes()}},{key:"_menuSetVisibility",value:function(){var e=this,t=this.isNested?this.menuForNested:this.menu,n=this.commentMenu.querySelectorAll("li"),i=[].concat(a(n));return this.isGuestMode&&(t=t.filter(function(t){return e.config.menuItemsForGuests.indexOf(t)>-1})),0===t.length?(this.moreButton.remove(),void this.commentMenu.remove()):void i.forEach(function(n){var i=[].concat(a(n.classList)).find(function(t){return t.indexOf(e.menuItemPrefix)+1}).replace(e.menuItemPrefix,"");t.indexOf(i)<0&&n.remove()})}},{key:"_replyEvent",value:function(){this.events.emit(k,"toggleReplyBox",!0,this)}},{key:"_deleteEvent",value:function(){var e=this;if(this._parentConfig.callbacks.removeCommentHook){var t=this._parentConfig.callbacks.removeCommentHook(this.urn,this);t.then?t.then(function(){return e.deleteComment()}):t&&this.deleteComment()}else this.dialogCheck("delete")}},{key:"_flagEvent",value:function(){var e=this;if(this._parentConfig.callbacks.flagCommentHook){var t=this._parentConfig.callbacks.flagCommentHook(this.urn,this.data.commenter.urn,this);t.then?t.then(function(){return e.flagComment()}):removeHook&&this.flagComment()}else this.dialogCheck("flag")}},{key:"_thumbEvent",value:function(){this._parentConfig.callbacks.likeHook(),this._parentConfig.callbacks.likeDialog?this._parentConfig.callbacks.likeDialog():commentsProvider.getModal("LikeModal").update(this.data.viewAllLikesUrl).show()}},{key:"_featureEvent",value:function(){this.Logger.log("feature")}},{key:"_shareEvent",value:function(){this._parentConfig.callbacks.shareHook(),this._parentConfig.callbacks.shareDialog?this._parentConfig.callbacks.shareDialog():commentsProvider.getModal("ShareModal").update().show()}},{key:"_getlinkEvent",value:function(){this._parentConfig.callbacks.getlinkHook(),this._parentConfig.callbacks.getlinkDialog?this._parentConfig.callbacks.getlinkDialog():commentsProvider.getModal("LinkModal").update(this.id,this._parentConfig).show()}},{key:"flagComment",value:function(){var e=this;i.Xhr.post(this._parentConfig.endpoints.flag,{commentUrn:this.urn}).then(function(){e.events.emit(k,"flagComment",e),e.destroy()})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"deleteComment",value:function(){this.events.emit(k,"deleteComment",this)}},{key:"remove",value:function(){var e=this,t=this.el;return new Promise(function(n,s){var o=e._parentConfig.endpoints["delete"];return i.Xhr["delete"](o,{commentUrn:e.urn}).then(function(){t.parentNode.removeChild(t),n(),e.destroy(t)})["catch"](e.Logger["throw"].bind(e.Logger))})}},{key:"destroy",value:function(){this.Logger=this.Renderer=this.events=null}},{key:"dialogCheck",value:function(e){var t=void 0;this._parentConfig.callbacks.getlinkDialog?this._parentConfig.callbacks.removeCommentDialog():(t=commentsProvider.getModal("RemoveCommentModal"),t.update(this,e).show(),this.modalListen(t))}},{key:"modalListen",value:function(e){var t=this;e.events.on("flagEvent",function(){t.flagComment()}),e.events.on("deleteEvent",function(){t.deleteComment()})}},{key:"alert",value:function(e,t){this.Alerts.update(this,e,t).show(this)}},{key:"isAuthor",get:function(){return this.data.commenter.urn===this._parentConfig.memberUrn}},{key:"isNested",get:function(){return!1}},{key:"isReply",get:function(){return this.data.isReply}}]),e}();t["default"]=C,e.exports=t["default"]}),define("modules/Comment.js",function(){});
define("modules/Comments",["module","exports","../provider/CommentsProvider","./Thread","../util/Utils","../util/Alerts","../util/Translate","../config/constants"],function(t,e,n,i,s,o,r,a){"use strict";function l(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var m=l(n),h=l(i),c=l(o),g=l(r),d=l(a),f=function(){function t(t,e){var n=[],i=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(i=(r=a.next()).done)&&(n.push(r.value),!e||n.length!==e);i=!0);}catch(l){s=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(s)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),p=d["default"].sortMap,b=d["default"].commentsName,C=d["default"].hiddenClass,y=d["default"].clickEvent,L=d["default"].renderedKey,S=d["default"].proxyKey,_=d["default"].loadingClass,x=d["default"].mouseEnterEvent,k=d["default"].mouseLeaveEvent,E=d["default"].open,B=d["default"].closed,T=d["default"].deleted,w=0,M=function(){function t(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;u(this,t),m["default"].polyfill(),this.configure.apply(this,arguments),this.masterBuilder()}return v(t,[{key:"configure",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=void 0;return n=commentsProvider?Promise.resolve():m["default"].create(),e?(this.parentEl=e,this.parentEl.innerHTML="",this.threads=[],commentsProvider.register(this),this.globalConfig=commentsProvider.getConfig("global"),this.config=commentsProvider.getConfig(b),this.mentionsConfig=commentsProvider.getConfig("mentions"),this.Logger=new s.Logger,this.events=new s.Events,this.Alerts=new c["default"],this.jumped=!1,this.isGuestMode=this.globalConfig.isGuestMode,Object.keys(t).length&&(this.config=s.Helpers.extend(this.config,t)),this.config.articleUrn?(this.config.memberUrn||this.Logger.log("No memberUrn - isGuestMode should be true. Current value: "+this.isGuestMode),this.memberUrn=this.config.memberUrn,this.articleUrn=this.config.articleUrn,this.isAuthor=this.config.authorUrn===this.memberUrn?!0:!1,this.commentsDisabledAuthorLix=this.config.commentsDisabledAuthorLix,this.id=this.config.idPrefix+"-"+this.config.articleUrn,this.pageCount=this.config.pageCount,this.start=this.config.start,n.then(function(){Object.keys(commentsProvider.modals).length||m["default"].registerModals()})["catch"](this.Logger["throw"].bind(this.Logger))):this.Logger["throw"]("No articleUrn provided for comments instance!")):s.Logger["throw"]("No element given!")}},{key:"masterBuilder",value:function(){var t=this;this.config.commentsState!==E?this.buildCommentsDisabledContainer():Promise.all([this.buildContainer(),this.buildInput()]).then(function(e){t.setElements(e),t.initializeCommentSettings(),t.parentEl.appendChild(t.el),t._setUserAgentFlag(),t.fetch(w,t.pageCount).then()["catch"](t.Logger["throw"].bind(t.Logger)).then(function(e){var n=t.start+t.pageCount;t._incrementPaging(null,n),t.render(e),t._incrementComments(),t.bindEvents()})["catch"](t.Logger["throw"].bind(t.Logger))})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"buildContainer",value:function(){return s.Helpers.build(this.config.templateDefault,{id:this.id,author:this.config.author,defaultSort:g["default"].translate("comments")[this.config.defaultSort]},this.config.container)}},{key:"buildCommentsDisabledContainer",value:function(){var t=this;s.Helpers.build(this.config.templateCommentsDisabled,{},"div").then(function(e){t.parentEl.appendChild(e),t.isAuthor&&(s.Helpers.toggleElementsHidden(e.querySelector(".comments-disabled__info--reader")),t.config.commentsState===T?(s.Helpers.toggleElementsHidden(e.querySelectorAll(".comments-disabled__info--author-enable")),t.enableCommentsText=e.querySelector(".comments-disabled__enable"),t.enableCommentsText.innerHTML=g["default"].translateWithContext("commentsDisabled","commentsDisabledAuthorEnable"),t.enableCommentButton=e.querySelector(".disable-comments__button--enable"),t.enableCommentButton.addEventListener(y,function(){s.Xhr.post(t.config.endpoints.enableComments,{urn:t.config.articleUrn}).then(function(){t._reloadCommentsEls(E),t.config.callbacks.onCommentsEnable()})["catch"](t.Logger["throw"].bind(t.Logger))},!1)):s.Helpers.toggleElementsHidden(e.querySelectorAll(".comments-disabled__info--author-disabling")))})}},{key:"buildInput",value:function(){var t=this.isGuestMode?this.config.templateInputGuest:this.config.templateInputDefault;return s.Helpers.build(t,{url:this.config.author.image.url},this.config.inputContainer)}},{key:"setElements",value:function(t){var e=f(t,2),n=e[0],i=e[1];this.el=n,this.el.querySelector(".comments-input-container").innerHTML=i.innerHTML,this.submitButton=this.el.querySelector(".comment-submit-button"),this.sortButton=this.el.querySelector(".comment-sort-button"),this.commentsSortMenu=this.el.querySelector(".comments-sort"),this.sortButtons=this.commentsSortMenu.querySelector("ul"),this.showMoreButton=this.el.querySelector(".comments-more-button"),this.showMoreSection=this.el.querySelector(".comments-more-button-section"),this.moreCommentsNumber=this.el.querySelector(".comments-more-number"),this.commentsThreadContainer=this.el.querySelector(".comments-threads"),this.alertEl=this.el.querySelector(".alert"),this.alertMessage=this.el.querySelector(".message"),this.alertDismissButton=this.el.querySelector(".dismiss"),this.totalNumComments=this.el.querySelector(".total-comments"),this.remainingComments=this.el.querySelector(".remaining-comments-pluaral"),this.messageBox=this.el.querySelector(".mentions-container"),this.commentSettings=this.el.querySelector(".comment-settings"),this.commentSettingsToggle=this.el.querySelector(".comment-settings__button--toggle"),this.commentSettingsCancel=this.el.querySelector(".disable-comments__button--cancel"),this.commentSettingsSave=this.el.querySelector(".disable-comments__button--save"),this.disableCommentsOptionDisable=this.el.querySelector("#disable-comments__option--disable"),this.disableCommentsOptionEnable=this.el.querySelector("#disable-comments__option--enable"),this.parentEl.appendChild(this.el),this.isGuestMode?(this.guestView=this.el.querySelector(".guest-view"),this.guestView.innerHTML=g["default"].translateWithContext("commentsInputGuest","signin").replace("urlPlaceHolder",this.globalConfig.guestUrls&&this.globalConfig.guestUrls.SIGNIN+"#"+this.el.id)):(this.messageBoxHighlighter=this.messageBox.querySelector(".mentions-highlighter"),this.messageBoxInput=this.messageBox.querySelector("textarea"),this.mentionsInput=this.messageBox.querySelector(".mentions-entities"),this.mentions=this._setMentions(this.messageBox))}},{key:"initializeCommentSettings",value:function(){this.isAuthor&&this.commentsDisabledAuthorLix&&(s.Helpers.toggleElementsHidden(this.commentSettingsToggle),this.commentsSortMenu.classList.add(d["default"].commentsAuthorView),this.sortButton.classList.add(d["default"].disableCommentsLixEnabled))}},{key:"toggleSubmitButton",value:function(){var t=""!==this.messageBoxInput.value.trim();t?this.messageBox.classList.remove(d["default"].empty):this.messageBox.classList.add(d["default"].empty);var e=t&&this.submitButton.disabled,n=!t&&!this.submitButton.disabled;(e||n)&&s.Helpers.toggleButtonDisabled(this.submitButton)}},{key:"bindEvents",value:function(){var t=this;this.alertDismissButton.addEventListener(y,function(){t.Alerts.toggleDisplay(t)}),this.showMoreButton.addEventListener(y,this.pageNext.bind(this)),document.body.addEventListener(y,this._hideItems.bind(this)),this.sortButtons.addEventListener(y,function(e){t._hideItems(),t._delegateSort(e)}),this.sortButton.addEventListener(y,function(e){e.stopPropagation(),s.Helpers.toggleElementsHidden(t.commentsSortMenu)}),this.isGuestMode||(this.submitButton.addEventListener(y,function(){var e=t.messageBoxInput.value,n=s.Helpers.mapMentions(t.mentionsInput.value);t._enterMessage(e,JSON.stringify(n)),t.submitButton.disabled=!0}),this.messageBoxInput.addEventListener("blur",function(){t.config.callbacks.onInputBlur(),t.messageBox.classList.remove("mentions-focused")},!1),this.messageBoxInput.addEventListener("focus",function(){t.config.callbacks.onInputFocus(),t.messageBox.classList.add("mentions-focused")},!1),this.messageBoxInput.addEventListener("input",function(){t.toggleSubmitButton(),s.Helpers.autoInputHeight(t.messageBoxInput)},!1),this.messageBoxInput.addEventListener("change",function(){t.toggleSubmitButton()},!1),this.commentSettingsToggle.addEventListener(y,function(){s.Helpers.toggleElementsHidden(t.commentSettings)},!1),this.commentSettingsToggle.addEventListener(x,function(){t.settingsTooltipToggle(t.commentSettingsToggle,!0)},!1),this.commentSettingsToggle.addEventListener(k,function(){t.settingsTooltipToggle(t.commentSettingsToggle,!1)},!1),this.commentSettingsCancel.addEventListener(y,function(){s.Helpers.toggleElementsHidden(t.commentSettings)},!1),this.commentSettingsSave&&this.commentSettingsSave.addEventListener(y,this._disableCommentsEvent.bind(this)),this.disableCommentsOptionDisable.addEventListener("change",function(){t.commentSettingsSave.disabled=!1},!1),this.disableCommentsOptionEnable.addEventListener("change",function(){t.commentSettingsSave.disabled=!0},!1))}},{key:"settingsTooltipToggle",value:function(t,e){t.parentElement.querySelector(".tooltip").classList.toggle("active",e)}},{key:"_setMentions",value:function(t){if(window.LIModules){var e=LIModules.requires("Mentions");return 0===this.mentionsConfig.limits.company&&(this.mentionsConfig.limits.company=-1),new e.Delegator(t,this.mentionsConfig)}this.Logger["throw"]("LIModules not found! Required for mentions.")}},{key:"_setUserAgentFlag",value:function(){commentsProvider.userAgent===d["default"].iosSafari&&this.el.classList.add(d["default"].iosSafariClass)}},{key:"fetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.start,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pageCount,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p[this.config.defaultSort],o=this.config,r=this.getUrn(),a=s.Helpers.addParamToUrl(o.endpoints.comments,{urn:this.articleUrn,start:t,count:n,sort:i}),l=setTimeout(function(){u||e._toggleLoading(!0)},this.config.loaderDelay),u=!1;return a=r.commentThread?a+"&commentUrn="+r.urn:a,s.Xhr.get(a).then(function(t){var n=void 0;try{t=JSON.parse(t),n=t.elements,e._prepareCommentsTotal(t)}catch(i){return e.Logger["throw"](i)}return u=!0,clearTimeout(l),e._toggleLoading(!1),new Promise(function(t){t(n)})})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_prepareCommentsTotal",value:function(t){this.total=this.total||t.paging.total||0,this._toggleSortButton(this.total),this._updateCommentText()}},{key:"_toggleSortButton",value:function(t){t?this.sortButton.classList.remove(C):this.sortButton.classList.add(C)}},{key:"_disableCommentsEvent",value:function(){var t=this;if(this.config.callbacks.disableCommentsHook){var e=this.config.callbacks.disableCommentsHook(this.urn,this.data.commenter.urn,this);e.then&&e.then(function(){return t.disableComments()})}else this.dialogCheck("disable")}},{key:"dialogCheck",value:function(t){var e=this,n=void 0;this.config.callbacks.getlinkDialog?this.config.callbacks.removeCommentDialog():(n=commentsProvider.getModal("RemoveCommentModal"),n.update(this,t).show(),n.events.on("disableCommentsEvent",function(){e.disableComments()}))}},{key:"disableComments",value:function(){var t=this;s.Xhr["delete"](this.config.endpoints.disableComments,{urn:this.config.articleUrn}).then(function(){t._reloadCommentsEls(B),t.config.callbacks.onCommentsDisable()})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_reloadCommentsEls",value:function(t){this._destroy(),this.config.commentsState=t,this.masterBuilder()}},{key:"pageNext",value:function(){var t=this,e=Boolean(this.pageNextCount)&&1!==this.config.pageNextCountMultiplier;this.pageNextCount=e?this.pageNextCount*this.config.pageNextCountMultiplier:this.config.pageNextCount,this.fetch(this.start,this.pageNextCount,this.sortSelection).then()["catch"](this.Logger["throw"].bind(this.Logger)).then(function(e){var n=t.start+t.pageNextCount;t._incrementPaging(null,n),t.render(e),t._incrementComments(),n>=t.total&&t.showMoreSection.classList.add(C)})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"render",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;t&&t.length&&t.forEach(function(t){t.prepend=n;var i=new h["default"](e.el.querySelector(e.config.threadContainer),t,e.config,e.articleUrn);e.threads.push(i),e.threadListen(i)})}},{key:"getUrn",value:function(){var t=window.location.hash,e=window.location.search,n=this.config.comment.idPrefix+"-",i=this.config.comment.legacyDeepLinkPrefix+"=",s=e.indexOf(i),o=this.config.comment.commentContainerPrefix;if(t.indexOf(n)>-1)return{urn:t.replace("#","").replace(n,""),commentThread:!0};if(t.indexOf(o)>-1)return{urn:t.replace("#",""),container:!0};if(s>-1){var r=e.substring(s+i.length).split("&")[0],a=this.articleUrn.replace("urn:li:article:","");return{urn:""+this.config.comment.secondaryPrefix+a+","+r+")",commentThread:!0}}return!1}},{key:"_incrementComments",value:function(){var t=void 0,e=void 0;this.total>this.threads.length&&(t=this.total-this.threads.length,e=g["default"].translateWithContext("comments","thereAre_context",{commentsTotal:t}),this.remainingComments.textContent=this._totalCountScrubber(t,e),this.showMoreSection.classList.remove("hidden"))}},{key:"threadListen",value:function(t){var e=this;t.events.on(S,function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;n>s;s++)i[s-1]=arguments[s];e[t]&&e[t].apply(e,i)}),t.events.on(L,function(t){var n=!e.threads.filter(function(t){return!t.rendered}).length;n&&(e.config.callbacks.onRendered(e,e.id),e.jumped||e.jumpToComment())})}},{key:"jumpToComment",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1,e=void 0,n=this.getUrn();return this.jumped=!0,t?(s.Helpers.jump(this.config.comment.idPrefix+"-"+t,this.config.jumpPadding),this.Logger.log("Jumped to urn "+t)):n.urn?void(n.container?(s.Helpers.jump(n.urn),this.Logger.log("Jumped to urn "+n.urn)):(e=this.threads.filter(function(t){return t.getComment(n.urn)?t:void 0}),e.length&&(s.Helpers.jump(this.config.comment.idPrefix+"-"+n.urn,this.config.jumpPadding),this.Logger.log("Jumped to urn "+n.urn)))):this.Logger.log("No urn specified for checkHash")}},{key:"getThreads",value:function(){return this.threads}},{key:"getLastThread",value:function(){return this.threads[this.threads.length-1]}},{key:"getThread",value:function(t){var e=this;return this.threads.filter(function(n){return n.id===e.commentConfig.idPrefix+"-"+t})[0]}},{key:"_hideItems",value:function(){this.commentsSortMenu.classList.add(C),Array.prototype.slice.call(this.el.querySelectorAll(".comment-menu")).forEach(function(t){t.classList.add(C)})}},{key:"_enterMessage",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s.Helpers.randomString();return t.length<this.config.messageMinSize?(this.alert("error",g["default"].translate("comments").notEnoughChars),this.Logger.warn("Not enough characters")):void this.save(t,n).then()["catch"](this.Logger["throw"].bind(this.Logger)).then(function(t){e.mentions.getInstance(e.messageBox).clearMentions(),e.messageBoxInput.value="",s.Helpers.autoInputHeight(e.messageBoxInput),e._updateTotal(),e.render(t,!0),e._incrementComments(),e._toggleSortButton(!0),e.config.callbacks.onSave(e.getLastThread(),e),e.Alerts.hide(e)})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"save",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.config;return t=encodeURIComponent(t),s.Xhr.post(i.endpoints.comment,{articleUrn:this.articleUrn,message:t,mentions:n}).then(function(t){var n=void 0;try{t=[JSON.parse(t).comment]}catch(n){n=e.Logger["throw"](n)}return new Promise(function(e,i){t?e(t):i(n)})})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_delegateSort",value:function(t){var e=t.target,n=void 0;return"UL"===e.nodeName?!1:("BUTTON"===e.nodeName&&(e=e.parentNode),n=e.getAttribute("aria-label"),this.commentsSortMenu.classList.add(C),this.sortButton.querySelector(".comment-sort-label").textContent=e.textContent,void this.sort(n))}},{key:"_toggleLoading",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1;t?this.commentsThreadContainer.classList.add(_):this.commentsThreadContainer.classList.remove(_)}},{key:"sort",value:function(t){var e=this;this.sortSelection=p[t],this.fetch(0,this.pageCount,this.sortSelection).then()["catch"](this.Logger["throw"].bind(this.Logger)).then(function(t){var n=[];n.length=e.pageCount,e._removeThreads(),e._incrementPaging(null,e.pageCount),e.render(t),e._incrementComments()})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_updateTotal",value:function(t){t?this.total=this.total+t:this.total++,this._updateCommentText()}},{key:"_updateCommentText",value:function(){var t=void 0;t=g["default"].translateWithContext("comments","total_context",{commentsTotal:this.total}),this.totalNumComments.textContent=this._totalCountScrubber(this.total,t)}},{key:"_totalCountScrubber",value:function(t,e){return e?e.replace("{0}",t):""}},{key:"_incrementPaging",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e?this.start=e:this.start+=t.length}},{key:"_removeThreads",value:function(){for(var t=this.threads.length-1;t>=0;t--){var e=this.threads[t];e.destroy(),delete this.threads[t]}this.threads=[]}},{key:"_destroy",value:function(){for(this._removeThreads();this.parentEl.firstChild;)this.parentEl.removeChild(this.parentEl.firstChild)}},{key:"alert",value:function(t,e){this.Alerts.update(this,t,e).show(this)}}]),t}();e["default"]=M,t.exports=e["default"]}),define("modules/Comments.js",function(){});
define("modules/Modal",["exports","../util/Utils","../util/Translate","./Comment","../config/constants"],function(e,t,o,i,n){"use strict";function l(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.RemoveCommentModal=e.LikeModal=e.ShareModal=e.LinkModal=e.Modal=void 0;var u=l(o),c=(l(i),l(n)),d=function b(e,t,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:b(n,t,o)}if("value"in i)return i.value;var l=i.get;if(void 0!==l)return l.call(o)},h=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),m=(c["default"].proxyKey,new DOMParser,function(){function e(o){var i=this;a(this,e),this.Logger=new t.Logger,this.events=new t.Events,this.configure.apply(this,arguments),this.addContainer(),t.Helpers.build(this.config.template,{className:o,idName:o},"section").then(function(e){i.el=e,i.renderContainer()})["catch"](this.Logger["throw"].bind(this.Logger))}return h(e,null,[{key:"register",value:function(){var e={};return commentsProvider.getConfig("modal").availableModals.forEach(function(t){e[t]=new y[t]}),e}}]),h(e,[{key:"addContainer",value:function(){var e=document.querySelector(".modalContainer");if(e)this.modalContainerEl=document.querySelector(".modalContainer");else{var t=document.createElement("div");t.className="modalContainer commentsModals",this.modalContainerEl=document.body.appendChild(t)}}},{key:"configure",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=commentsProvider.getConfig("modal"),this.globalConfig=commentsProvider.getConfig("global")}},{key:"renderContainer",value:function(){this.modalContainerEl.appendChild(this.el)}},{key:"render",value:function(e,t){e.firstElementChild?e.replaceChild(t,e.firstElementChild):e.appendChild(t)}},{key:"setElements",value:function(e){this.modalHeader=this.el.querySelector(".modal-header"),this.modalBody=this.el.querySelector(".modal-body"),this.dismissButton=this.el.querySelector(".modal-dismiss-btn"),this.modalContainer=document.querySelector(".modalContainer")}},{key:"bindEvents",value:function(e){var t=this;this.dismissButton.addEventListener("click",function(e){t.hide()}),this.el.addEventListener("click",function(o){o.target===e&&t.hide()})}},{key:"show",value:function(){this.showOk&&this.el.classList.add("visible"),this.showOk=!1}},{key:"hide",value:function(){this.el.classList.remove("visible")}}]),e}()),p=function(e){function o(){return a(this,o),r(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,"link-modal"))}return s(o,e),h(o,[{key:"update",value:function(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l={};return this.configOverrides=n,this.showOk=!0,l=this.buildSubTempalteData(e),t.Helpers.build(this.config.subModals.LinkModal.template,l,"div").then(function(e){i.linkModalEl=e,d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"render",i).call(i,i.el,i.linkModalEl),i.setElements(e),i.bindEvents(),i.selectText()})["catch"](this.Logger["throw"].bind(this.Logger)),this}},{key:"buildSubTempalteData",value:function(e){var t=commentsProvider.userAgent===c["default"].iosSafari?c["default"].iosSafariClass:"",o=this.configOverrides.baseUrl||this.config.subModals.LinkModal.baseUrl||document.location.href;return o=o.split("#")[0],{urn:o+"#"+e,iosDeviceFlag:t}}},{key:"setElements",value:function(e){this.copyButton=this.el.querySelector(".modal-copy-btn"),this.linkTextArea=this.el.querySelector(".modal-link-area"),d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"setElements",this).call(this)}},{key:"bindEvents",value:function(){d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"bindEvents",this).call(this,this.el)}},{key:"selectText",value:function(){var e=this.modalBody.querySelector("input");e.focus(),e.select()}}]),o}(m),f=function(e){function o(){return a(this,o),r(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,"share-modal"))}return s(o,e),h(o,[{key:"update",value:function(){var e=this;return this.showOk=!0,t.Helpers.build(this.config.subModals.ShareModal.template,null,"section, div, li").then(function(t){e.shareModalEl=t,d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"render",e).call(e,e.el,e.shareModalEl),e.setElements(t),e.bindEvents()})["catch"](this.Logger["throw"].bind(this.Logger)),this}},{key:"setElements",value:function(e){d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"setElements",this).call(this)}},{key:"bindEvents",value:function(){d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"bindEvents",this).call(this,this.el)}}]),o}(m),v=function(e){function o(){return a(this,o),r(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,"like-modal"))}return s(o,e),h(o,[{key:"update",value:function(e){var t=this.config.subModals.LikeModal;return this.showOk=!0,this.moreLikes=e,this.template=t.template,this.subTemplate=t.subTemplate,this.likeUlWrapper(),this.multiLiUpdater(),this}},{key:"likeUlWrapper",value:function(){var e=this;t.Helpers.build(this.template,null,"div").then(function(t){d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"render",e).call(e,e.el,t),e.setElements(t),e.bindEvents(),e.focusReader()})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"multiLiUpdater",value:function(){var e=this;t.Xhr.get(this.moreLikes).then(function(t){var o=JSON.parse(t).elements;o.length&&(e.list=document.createDocumentFragment(),e.multiLiprom=[],e.likes=o,e.index=0,e.multiLiBuilder())})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"multiLiBuilder",value:function(){var e=this,o=this.likes[this.index],i=this.config.subModals.LikeModal.charLimitTitle,n=void 0;o.liker.headline&&(o.liker.headline=t.Helpers.truncateWithLogic(o.liker.headline,i,!1,!0,!0)),n=new Promise(function(i){t.Helpers.build(e.config.subModals.LikeModal.subTemplate,o.liker,"li").then(function(t){var o=e.likes[e.index+1];e.list.appendChild(t),i(),o&&(e.index++,e.multiLiBuilder())})["catch"](e.Logger["throw"].bind(e.Logger))}),this.multiLiprom.push(n),this.multiLiprom.length===this.likes.length&&Promise.all(this.multiLiprom).then(function(){e.modalListContainer.appendChild(e.list)})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"focusReader",value:function(){this.dismissButton.focus()}},{key:"setElements",value:function(e){this.modalListContainer=this.el.querySelector(".modal-list-container"),d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"setElements",this).call(this)}},{key:"bindEvents",value:function(){d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"bindEvents",this).call(this,this.el)}}]),o}(m),g=function(e){function o(){return a(this,o),r(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,"remove-comment-modal"))}return s(o,e),h(o,[{key:"update",value:function(e,i){var n=this,l={version:i},r=void 0;return this.showOk=!0,this.type=i,this.comment=e,"flag"===i?(r="flagEvent",l.type=u["default"].translate("removeCommentModal").flag,l.mainMessage=u["default"].translate("removeCommentModal").mainMessageFlag):"delete"===i?(r="deleteEvent",l.type=u["default"].translate("removeCommentModal")["delete"],l.mainMessage=u["default"].translate("removeCommentModal").mainMessageDelete):(r="disableCommentsEvent",l.type=u["default"].translate("removeCommentModal").disableCommentsConfirmation,l.mainMessage=u["default"].translate("removeCommentModal").mainMessageDisableComments),t.Helpers.build(this.config.subModals.RemoveCommentModal.template,l,"div").then(function(e){n.RemoveCommentModal=e,d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"render",n).call(n,n.el,n.RemoveCommentModal),n.setElements(e),n.bindEvents(r)})["catch"](this.Logger["throw"].bind(this.Logger)),this}},{key:"setElements",value:function(e){this.confirmButton=this.el.querySelector(".modal-confirm-btn"),this.cancelButton=this.el.querySelector(".modal-cancel-btn"),d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"setElements",this).call(this)}},{key:"bindEvents",value:function(e){var t=this;this.cancelButton.addEventListener("click",function(){return t.hide()}),this.confirmButton.addEventListener("click",function(o){t.hide(),t.events.emit(e)}),d(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"bindEvents",this).call(this,this.el)}}]),o}(m),y={LinkModal:p,ShareModal:f,LikeModal:v,RemoveCommentModal:g};e.Modal=m,e.LinkModal=p,e.ShareModal=f,e.LikeModal=v,e.RemoveCommentModal=g}),define("modules/Modal.js",function(){});
define("modules/NestedComment",["module","exports","../modules/Comment","../util/Renderer","../util/Utils"],function(e,t,n,r,o){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=u(n),f=(u(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),c=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:d(o,t,n)}if("value"in r)return r.value;var u=r.get;if(void 0!==u)return u.call(n)},p=(new DOMParser,function(e){function t(e){arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),f(t,[{key:"render",value:function(){this.el.classList.add("nested"),c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}},{key:"isNested",get:function(){return!0}}]),t}(s["default"]));t["default"]=p,e.exports=t["default"]}),define("modules/NestedComment.js",function(){});
define("modules/Thread",["module","exports","./Comment","./NestedComment","../util/Utils","../util/Alerts","../util/Translate","../config/constants"],function(e,t,n,s,i,o,r,a){"use strict";function m(e){return e&&e.__esModule?e:{"default":e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l=m(n),c=m(s),d=m(o),g=(m(r),m(a)),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),p=g["default"].renderedKey,v=(g["default"].replyKey,g["default"].enterKey,g["default"].deleteKey,g["default"].clickEvent),y=g["default"].hiddenClass,C=(g["default"].nestedClass,g["default"].proxyKey),b=(g["default"].parser,function(){function e(t,n,s){var o=this;h(this,e),this.events=new i.Events,this.configure.apply(this,arguments),i.Helpers.build(this.config.template,{id:this.id,author:this._parentConfig.author},this.config.container).then(function(e){o.setElements(e),o.showMoreSetup(),o.render(),o.bindEvents()})}return f(e,[{key:"setElements",value:function(e){this.el=e,this.replyBox=this.el.querySelector(".comment-reply-box"),this.messageBox=this.el.querySelector(".mentions-container"),this.messageBoxHighlighter=this.el.querySelector(".mentions-highlighter"),this.messageBoxInput=this.messageBox.querySelector(".mentions-input"),this.mentionsInput=this.messageBox.querySelector(".mentions-entities"),this.commentsShowMoreButton=this.el.querySelector(".thread-comments-show-section"),this.seeMoreButton=this.el.querySelector(".thread-see-more-button"),this.threadCommentsMoreNumber=this.commentsShowMoreButton.querySelector(".thread-comments-more-count"),this.cancelButton=this.el.querySelector(".thread-cancel-button"),this.replyButton=this.el.querySelector(".thread-reply-button"),this.replySubmitButton=this.el.querySelector(".thread-reply-submit-button"),this.prepend?this.parentEl.insertBefore(this.el,this.parentEl.firstChild):this.parentEl.appendChild(this.el),this.alertEl=this.el.querySelector(".alert"),this.alertMessage=this.el.querySelector(".message"),this.alertDismissButton=this.el.querySelector(".dismiss"),this.mentions=this._setMentions(this.messageBox)}},{key:"configure",value:function(e,t,n,s){this.Logger=new i.Logger,this.Alerts=new d["default"],this._parentConfig=n,this.articleUrn=s,this.config=n.thread,this.commentConfig=n.comment,this.globalConfig=commentsProvider.getConfig("global"),this.isGuestMode=this.globalConfig.isGuestMode,this.mentionsConfig=commentsProvider.getConfig("mentions"),this.memberUrn=this._parentConfig.memberUrn,this.prepend=t.prepend,this.parentEl=e,this.comments=[],this.readyPromises=[],this.setData(t)}},{key:"_getMentions",value:function(){return this.mentions.getInstance(this.messageBox)}},{key:"_setMentions",value:function(e){if(!this.mentions&&window.LIModules){var t=LIModules.requires("Mentions");return 0===this.mentionsConfig.limits.company&&(this.mentionsConfig.limits.company=-1),this.mentions=new t.Delegator(e,this.mentionsConfig),this.mentions.setInstance({target:this.messageBoxInput}),this.mentions}return this.mentions}},{key:"fetch",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pageCount,s=this._parentConfig,o=i.Helpers.addParamToUrl(s.endpoints.nestedComments,{urn:this.articleUrn,parentCommentUrn:this.commentData.urn,start:e,count:n});return i.Xhr.get(o).then(function(e){var n=void 0;try{e=JSON.parse(e),n=e.elements}catch(s){return t.Logger["throw"](s)}return new Promise(function(e){e(n)})})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"toggleReplyBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1,n=this.hasNested;if(this.messageBoxInput.value="",i.Helpers.autoInputHeight(this.messageBoxInput),this._getMentions().clearMentions(),e){if(n&&this.lastComment.el.classList.add("replying"),this.messageBox.classList.remove(y),this.replyBox.classList.remove(y),t&&t.isNested){var s=i.Helpers.createMentionForInput({urn:t.data.commenter.urn,text:t.commenterName.textContent});this.messageBoxInput.value=t.commenterName.textContent,this._getMentions().addMention(s)}this.messageBoxInput.focus()}else n&&this.lastComment.el.classList.remove("replying"),this.replyBox.classList.add(y);e&&this.config.scrollOnReply&&this.events.emit(C,"jumpToComment",this.lastComment.urn)}},{key:"_hideItems",value:function(){this.events.emit(C,"_hideItems")}},{key:"setData",value:function(e){this.commentData=this.commentData||e,this.id=this.id||this.config.idPrefix+"-"+e.urn,this.nested=e.nestedComments?e.nestedComments.elements.reverse():[],this.nestedCommentCount=this.nestedCommentCount||e.nestedCommentCount,this.commentsShown=e.nestedComments?e.nestedComments.elements.length:0,this.start=this.commentsShown,this.pageCount=this.config.nestedPageCount}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.commentData,n=this.getComment(t.id);n&&n.update(t),t.nestedComments.length&&t.nestedComments.forEach(function(t){var n=e.getComment(t.id);n&&n.update(t)})}},{key:"getComment",value:function(e){var t=this;return this.comments.filter(function(n){return n.id===t.commentConfig.idPrefix+"-"+e})[0]}},{key:"bindEvents",value:function(){var e=this;this.alertDismissButton.addEventListener(v,function(){e.Alerts.toggleDisplay(e)}),this.cancelButton.addEventListener(v,function(t){e.toggleReplyBox(!1)}),this.seeMoreButton.addEventListener(v,function(t){e.page()}),this.isGuestMode||(this.replySubmitButton.addEventListener(v,function(){e._saveAndHide(),e.replySubmitButton.disabled=!0}),this.messageBoxInput.addEventListener("blur",function(){e._parentConfig.callbacks.onInputBlur.call(e),e.messageBox.classList.remove("mentions-focused")},!1),this.messageBoxInput.addEventListener("focus",function(){e._parentConfig.callbacks.onInputFocus.call(e),e.messageBox.classList.add("mentions-focused")},!1),this.messageBoxInput.addEventListener("input",function(){e._updateInputStyles(e.messageBox,!0),i.Helpers.autoInputHeight(e.messageBoxInput)},!1),this.messageBoxInput.addEventListener("change",function(){e._updateInputStyles(e.messageBox,!0)},!1))}},{key:"_updateInputStyles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1,n=""!==this.messageBoxInput.value.trim();if(n?e.classList.remove("empty"):e.classList.add("empty"),t){var s=n&&this.replySubmitButton.disabled,o=!n&&!this.replySubmitButton.disabled;(s||o)&&i.Helpers.toggleButtonDisabled(this.replySubmitButton)}}},{key:"_saveAndHide",value:function(){var e=this,t=this.messageBoxInput.value,n=i.Helpers.mapMentions(this.mentionsInput.value);this.save(t,n).then()["catch"](this.Logger["throw"].bind(this.Logger)).then(function(e){return e[0].isReply=!0,e}).then(this.render.bind(this)).then(function(){e._parentConfig.callbacks.onNestedSave(e),e.commentsShown++,e.setCommentCount(),e.toggleReplyBox(!1),e.Alerts.hide(e)})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"save",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=this._parentConfig;return n=JSON.stringify(n),e=encodeURIComponent(e),i.Xhr.post(s.endpoints.comment,{parentCommentUrn:this.parentComment.urn,articleUrn:this.articleUrn,message:e,mentions:n}).then(function(e){var n=void 0;try{e=[JSON.parse(e).comment]}catch(n){n=t.Logger["throw"](n)}return new Promise(function(t,s){e?t(e):s(n)})})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1;arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;return new Promise(function(n,s){var i=t||e.nested;t||e.createComment(e.commentData),i.length&&i.forEach(function(t){e.createComment(t,!0)}),n()})}},{key:"setCommentCount",value:function(){this.parentComment.setCommentCount(this.nestedComments.length)}},{key:"createComment",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1,n=[this.el.querySelector(this.config.commentContainer),e,this._parentConfig],s=void 0;return t===!0?(s=new(Function.prototype.bind.apply(c["default"],[null].concat(n))),this.comments.unshift(s)):(s=new(Function.prototype.bind.apply(l["default"],[null].concat(n))),this.parentComment=s,this.comments.unshift(s)),this.commentsListen(s),s}},{key:"showMoreSetup",value:function(){this.hidingReplies=this.config.hideRepliesOnLoad&&this.nestedCommentCount>0,this.hidingReplies||this.updateShowMore(this.commentsShown,this.nestedCommentCount)}},{key:"showNestedComments",value:function(){var e=[].concat(u(this.el.querySelectorAll(".comment-container.nested")));this.hidingReplies=!1,e.forEach(function(e){e.classList.remove(y)})}},{key:"updateShowMore",value:function(e,t){this.hidingReplies&&this.showNestedComments(),this.threadCommentsMoreNumber.textContent=this.nestedCommentCount-e,e>=t?this.commentsShowMoreButton.classList.add(y):this.commentsShowMoreButton.classList.remove(y)}},{key:"page",value:function t(){var e=this,n=this.commentsShown,s=this.nestedCommentCount,t=this.config.nestedPageCount,i=n+t,o=s-i,r=s-n,a=0>=o?0:o,m=!1,u=setTimeout(function(){m||e.events.emit(C,"_toggleLoading",!0)},this._parentConfig.loaderDelay);t=t>=r?r:t,t>0?this.fetch(a,t).then(function(t){m=e.killLoader(u),t=t.reverse(),t.forEach(function(t){e.render([t])}),e.commentsShown+=t.length,e.updateShowMore(e.commentsShown,s),e.setLastVisible(),e.config.showMoreOpensReply&&!e.isGuestMode&&e.toggleReplyBox()})["catch"](this.Logger["throw"].bind(this.Logger)):(this.showNestedComments(),m=this.killLoader(u))}},{key:"killLoader",value:function(e){return this.events.emit(C,"_toggleLoading",!1),clearTimeout(e),!0}},{key:"setLastVisible",value:function(){var e="last-visible",t=this.el.querySelector("."+e),n=[].concat(u(this.el.querySelectorAll(".comment-container.nested")));t&&t.classList.remove(e);var s=!0,i=!1,o=void 0;try{for(var r,a=n[Symbol.iterator]();!(s=(r=a.next()).done);s=!0){var m=r.value,h=m.nextSibling;if(h&&h.classList.contains("hidden")||!h)return void m.classList.add(e)}}catch(l){i=!0,o=l}finally{try{!s&&a["return"]&&a["return"]()}finally{if(i)throw o}}}},{key:"flagComment",value:function(e){this._parentConfig.callbacks.onCommentFlag(e.id),e.isNested||(this.events.emit(C,"_updateTotal",-1),this.destroy())}},{key:"deleteComment",value:function(e){var t=this;this._parentConfig.callbacks.onCommentDelete(e.id),this._removeComment(e).then(function(){e.isNested||(t._parentConfig.callbacks.onThreadDelete(t.id),t.events.emit(C,"_updateTotal",-1),t.destroy())})["catch"](this.Logger["throw"].bind(this.Logger))}},{key:"_removeComment",value:function(e){var t=this.comments.map(function(t,n){return t.id===e.id?n:void 0}).filter(isFinite)[0];return this.comments[t]=null,this.comments.splice(t,1),this.setCommentCount(),e.remove()}},{key:"commentsListen",value:function(e){var t=this;e.events.on(C,function(e){for(var n=arguments.length,s=Array(n>1?n-1:0),i=1;n>i;i++)s[i-1]=arguments[i];t[e]&&t[e].apply(t,s)}),e.events.on("rendered",function(n){var s=!t.comments.filter(function(e){return!e.rendered}).length,i=!e.isNested;(!t.hidingReplies||i)&&e.el.classList.remove(y),s&&(t.rendered=!0,t.events.emit(p,t.id))})}},{key:"destroy",value:function(){var e=this.comments;this.Events=null,this.Logger=null;for(var t=0;t>=e.length;t++)e[t].destroy(),e[t]=null,delete e[t];this.el.remove()}},{key:"alert",value:function(e,t){this.Alerts.update(this,e,t).show(this)}},{key:"hasNested",get:function(){return this.comments.length>1}},{key:"nestedComments",get:function(){return this.comments.filter(function(e){return e.isNested})}},{key:"lastComment",get:function(){return this.comments[this.comments.length-1]}}]),e}());t["default"]=b,e.exports=t["default"]}),define("modules/Thread.js",function(){});
define("provider/CommentsProvider",["module","exports","../config/global","../config/translate","../config/renderer","../config/modal","../config/mentions","../config/comments","../util/Utils","../modules/Modal","../util/Polyfills"],function(e,t,n,r,o,i,s,l,a,u,d){"use strict";function f(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m,g=f(n),v=f(r),y=f(o),h=f(i),p=f(s),w=f(l),P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=["comments","translate","global","comment","thread","renderer","modal","mentions"],k="jSecure",_=[],j={},A=function(){function e(t){c(this,e),this.comments_defaults=w["default"],this.translate_defaults=v["default"],this.global_defaults=g["default"],this.renderer_defaults=y["default"],this.modal_defaults=h["default"],this.mentions_defaults=p["default"],this.modals={},this.userAgent=a.Helpers.userAgent(),j.global=a.Helpers.extend(g["default"],t),this.bindEvents();try{localStorage.setItem(j.global.localStorageKey,JSON.stringify({}))}catch(n){}}return P(e,null,[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.setGlobals(),n=void 0;return window.commentsProvider?n=Promise.resolve():(window.commentsProvider=new this(e),m=new a.Logger,n=Promise.all([commentsProvider.resolveAdaptor(j.global.adaptor),t])),n}},{key:"polyfill",value:function(){(0,d.nodePrototypeRemovePolyfill)(),(0,d.arrayPrototypePolyfill)(),(0,d.es6PromisePolyfill)()}},{key:"registerModals",value:function(e){return new Promise(function(e){commentsProvider.modals=u.Modal.register(),e()})}},{key:"setGlobals",value:function(){return window.jSecure?Promise.resolve():this.initJsecure()}},{key:"initJsecure",value:function(){return new Promise(function(e){window.jSecure||(require?require([k],function(t){window.jSecure=t,e()}):LIModules&&(window.jSecure=LIModules.requires(k),e()))})}}]),P(e,[{key:"getConfig",value:function(e){var t=this[e+"_defaults"],n=j[e]||!1;return!t&&this.logger&&m["throw"]('Default config "'+e+'" not found!'),n?a.Helpers.extend(t,n):t}},{key:"resolveAdaptor",value:function(e){return new Promise(function(t){if("string"==typeof e){var n=require(e);commentsProvider.setAdaptor(n),t()}else commentsProvider.setAdaptor(e),t()})}},{key:"setAdaptor",value:function(e){return"string"==typeof e?m["throw"]("Adaptor is String where object is required. Please use resolveAdaptor instead."):void(j.global.adaptor=e)}},{key:"bindEvents",value:function(){var e=this;this.Events=new a.Events,document.addEventListener("keydown",function(t){e.Events.emit("keydown",t)})}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&-1!==b.indexOf(e)?(j[e]=a.Helpers.extend(this[e+"_defaults"],t),j[e]):void 0}},{key:"register",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1;e&&_.push(e)}},{key:"getModal",value:function(e){return this.modals[e]?this.modals[e]:m["throw"]("Modal "+e+" not found!")}},{key:"commentsInstances",get:function(){return _}},{key:"configs",get:function(){return j}},{key:"adaptor",get:function(){return j.global.adaptor||g["default"].adaptor}}]),e}();t["default"]=A,window.Object.defineProperties=d.definePropertiesPolyfill,e.exports=t["default"]}),define("provider/CommentsProvider.js",function(){});
define("util/Alerts",["module","exports","../util/Utils"],function(e,t,n){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),a=function(){function e(){l(this,e)}return i(e,[{key:"update",value:function(e,t,n){return e.alertEl.classList.add(t),e.alertMessage.textContent=n,this}},{key:"show",value:function(e){e.alertEl.className.indexOf("hidden")>-1&&this.toggleDisplay(e)}},{key:"hide",value:function(e){-1===e.alertEl.className.indexOf("hidden")&&this.toggleDisplay(e)}},{key:"toggleDisplay",value:function(e){n.Helpers.toggleElementsHidden(e.alertEl),n.Helpers.toggleElementsHidden(e.alertDismissButton)}}]),e}();t["default"]=a,e.exports=t["default"]}),define("util/Alerts.js",function(){});
define("util/Polyfills",["exports"],function(e){"use strict";function t(){window.commentsProvider||ES6Promise&&ES6Promise.polyfill()}function o(){Node.prototype.remove||(Node.prototype.remove=function(e){this.parentNode&&this.parentNode.removeChild(this)})}function r(){Array.prototype.find||(Array.prototype.find=function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,o=Object(this),r=o.length>>>0,n=arguments[1],i=0;r>i;i++)if(t=o[i],e.call(n,t,i,o))return t})}function n(e,t){function o(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){return"function"==typeof e}if("object"!==("undefined"==typeof e?"undefined":i(e))||null===e)throw new TypeError("bad desc");var r={};if(t(e,"enumerable")&&(r.enumerable=!!e.enumerable),t(e,"configurable")&&(r.configurable=!!e.configurable),t(e,"value")&&(r.value=e.value),t(e,"writable")&&(r.writable=!!e.writable),t(e,"get")){var n=e.get;if(!o(n)&&"undefined"!=typeof n)throw new TypeError("bad get");r.get=n}if(t(e,"set")){var f=e.set;if(!o(f)&&"undefined"!=typeof f)throw new TypeError("bad set");r.set=f}if(("get"in r||"set"in r)&&("value"in r||"writable"in r))throw new TypeError("identity-confused descriptor");return r}if("object"!==("undefined"==typeof e?"undefined":i(e))||null===e)throw new TypeError("bad obj");t=Object(t);for(var r=Object.keys(t),n=[],f=0;f<r.length;f++)n.push([r[f],o(t[r[f]])]);for(var f=0;f<n.length;f++)Object.defineProperty(e,n[f][0],n[f][1]);return e}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.nodePrototypeRemovePolyfill=o,e.arrayPrototypePolyfill=r,e.es6PromisePolyfill=t,e.definePropertiesPolyfill=n}),define("util/Polyfills.js",function(){});
define("util/Renderer",["module","exports","../util/Utils","../util/Translate"],function(e,t,r,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n),l=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=function(){function e(){a(this,e)}return l(e,[{key:"render",value:function(e,t){var n=commentsProvider.getConfig("renderer"),o=commentsProvider.getConfig("global"),a=void 0,i=n.paths,l=t||{},u=void 0,s=void 0;this.logger||(this.logger=new r.Logger),e||this.logger["throw"](new Error("Renderer.js: template key not specified."));try{this.globalKey=o.localStorageKey,u=localStorage[this.globalKey],s=u&&JSON.parse(u)}catch(c){u=JSON.stringify({}),s=u&&JSON.parse(u)}return s&&s.hasOwnProperty(e)?new Promise(function(t){t(s[e])}):Object.keys(i).indexOf(e)>=0?(l=this.translateCheck(e,l),a=this.callAdaptor(i,e,l),this.promiseCheck(a)):this.logger.warn("template key not found in config")}},{key:"promiseCheck",value:function(e){return"function"===e.then?e:new Promise(function(t){t(e)})}},{key:"cache",value:function(e,t){var r=JSON.parse(localStorage.getItem(this.globalKey));r[e]=t,localStorage.setItem(this.globalKey,JSON.stringify(r))}},{key:"translateCheck",value:function(e,t){var r=i["default"].translate(e);return r&&(t.translate=r),t}},{key:"callAdaptor",value:function(e,t,r){return commentsProvider.adaptor.rendererConfig.render(e[t],r)}}]),e}();t["default"]=u,e.exports=t["default"]}),define("util/Renderer.js",function(){});
define("util/Translate",["module","exports","../config/translate","../util/Utils"],function(e,n,t,r){"use strict";function a(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n["default"]=e,n}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=(a(t),function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}()),l=function(){function e(){i(this,e)}return o(e,null,[{key:"translate",value:function(e){var n=commentsProvider.getConfig("translate");return e in n?n[e]:void 0}},{key:"translateWithContext",value:function(e,n,t){var a=commentsProvider.getConfig("global").i18nAdapter,i=void 0;return a?a("i18n_"+e+"_"+n,t):(i=new r.Logger,i.log("Caution: plurals & translation require logic. Use an i18nAdapter."),this.translate(e)[n])}}]),e}();n["default"]=l,e.exports=n["default"]}),define("util/Translate.js",function(){});
define("util/Utils",["exports","../config/constants","./Translate","./Renderer"],function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Events=e.Logger=e.Helpers=e.Xhr=void 0;var s=o(t),u=o(n),l=o(r),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(){function e(){a(this,e)}return f(e,null,[{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=new XMLHttpRequest,i=g.addParamToUrl("",t).replace("?","");o.open(n,e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(i);var a=new Promise(function(e,t){o.onload=function(){o.status>=200&&o.status<400?(e(o.responseText),r.call(this,o.response)):t(o.responseText,"error communicating with server")},o.onerror=function(e){t(o.responseText,e.error)}});return a}},{key:"delete",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return this.post.apply(this,t.concat(["DELETE"]))}},{key:"get",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=new XMLHttpRequest;o.open(n,e),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.send();var i=new Promise(function(e,t){o.onload=function(){o.status>=200&&o.status<400?(e(o.responseText),r.call(this,o.response)):t(o.responseText,"error communicating with server")},o.onerror=function(e){t(o.responseText,e.error)}});return i}}]),e}(),g=function(){function e(){a(this,e)}return f(e,null,[{key:"mapMentions",value:function(e){return e="string"==typeof e?JSON.parse(e):e,e.map(function(e){return{urn:"urn:li:"+e.type+":"+e.id,range:{start:e.index,end:e.index+e.length}}})}},{key:"createMentionForInput",value:function(e){var t=e.urn.split(":"),n=t[2],r=t[3];if(!e.text)throw"Mention is missing a 'text' property.";var o=e.range&&e.range.start?e.range.start:0,i=e.range&&e.range.end?e.range.end:e.text.length;return{id:r,index:o,length:i,type:n,token:e.text,isFirstDegree:!1}}},{key:"build",value:function(t,n,r){var o=new l["default"],i=s["default"].parser,a=new v;return o.render(t,n).then(function(t){var n=i.parseFromString(t,"text/html");return n=r?n.querySelector(r):n,n?commentsProvider.getConfig("global").newIcons&&e.convertIcons(n):a.warn("Unable to find container for template: {template} from html string: {out}"),n})["catch"](a["throw"].bind(a))}},{key:"convertIcons",value:function(e){e&&e.querySelectorAll&&[].concat(i(e.querySelectorAll(".comments-icon"))).forEach(function(e){var t=e.querySelector("use").getAttribute("xlink:href"),n=e.getAttribute("data-icon-size")?e.getAttribute("data-icon-size"):"small",r=e.classList,o=document.createElement("li-icon");if(o.setAttribute("type",t.replace("#","")),o.setAttribute("size",n),r){var a;(a=o.classList).add.apply(a,i(r))}else o.className+=" "+e.className.baseVal;t&&e.parentNode.replaceChild(o,e)})}},{key:"extend",value:function(t){t=t||{};for(var n=1;n<arguments.length;n++)if(arguments[n])for(var r in arguments[n])"object"===c(arguments[n][r])?e.extend(t[r],arguments[n][r]):arguments[n].hasOwnProperty(r)&&(t[r]=arguments[n][r]);return t}},{key:"selectText",value:function(e){if(document.selection){var t=document.body.createTextRange();t.moveToElementText(e),t.select()}else if(window.getSelection){var n=document.createRange();n.selectNode(e),window.getSelection().addRange(n)}}},{key:"getSelectedNode",value:function(){if(document.selection)return document.selection.createRange().parentElement();var e=window.getSelection();return e.rangeCount>0?e.getRangeAt(0).startContainer.parentNode:void 0}},{key:"getNextNode",value:function(e){if(e.firstChild)return e.firstChild;for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}},{key:"getNodesInRange",value:function(e,t){for(var n,r=t,o=0===r.childElementCount||3===r.nodeType?[r]:r.getElementsByTagName("*"),i=[],a=0;n=o[a];a++)3===n.nodeType&&(n=n.parentElement||n.parentNode),e.containsNode&&e.containsNode(n,!0)?i.push(n):this.userAgent()===s["default"].internetExplorer&&n&&"span"===n.tagName.toLowerCase()&&i.push(n);return i}},{key:"getCaretPosition",value:function(e){var t=0,n=e.ownerDocument||e.document,r=n.defaultView||n.parentWindow,o=window.getSelection();if("undefined"!=typeof r.getSelection){if(o.rangeCount>0){var i=window.getSelection().getRangeAt(0),a=i.cloneRange();a.selectNodeContents(e),a.setEnd(i.endContainer,i.endOffset),t=a.toString().length}}else if((o=n.selection)&&"Control"!=o.type){var s=document.selection.createRange(),u=document.body.createTextRange();u.moveToElementText(e),u.setEndPoint("EndToEnd",s),t=u.text.length}return t}},{key:"setCaretPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.childNodes[0]){var n=e.parentNode;n.focus();var r=window.getSelection(),o=document.createRange();o.setStart(e.childNodes[0],t),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}}},{key:"addParamToUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){var r=t[n],o=n,i=new RegExp("(\\?|\\&)"+o+"=.*?(?=(&|$))"),a=e.toString().split("#"),s=a[0],u=a[1],l=/\?.+$/,c=s;c=i.test(s)?s.replace(i,"$1"+o+"="+r):l.test(s)?s+"&"+o+"="+r:s+"?"+o+"="+r,u&&(c+="#"+u),e=c}),e}},{key:"toggleButtonDisabled",value:function(e){e.disabled?e.disabled=!1:e.disabled=!0}},{key:"toggleElementsHidden",value:function(e){"length"in e?[].concat(i(e)).forEach(function(e){e.classList.contains("hidden")?e.classList.remove("hidden"):e.classList.add("hidden")}):e.classList.contains("hidden")?e.classList.remove("hidden"):e.classList.add("hidden")}},{key:"randomString",value:function(){return Math.round(1e5*Math.random())}},{key:"jump",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1,n=location.href;location.href="#"+e,history.replaceState(null,null,n),t&&window.setTimeout(function(){window.scrollTo(window.scrollX,window.scrollY-110)},1)}},{key:"time",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=new Date(t),r=new Date(e),o=0,i=Object.keys(m).reverse(),a=u["default"].translate("timePrefixes"),s=0;s<i.length;s++){var l=m[i[s]],c=l.call(m,n,r,a);if(c.diff>0){o=c.diff+this.timeStampScrub(c.affix);break}}return 0===o?"0"+this.timeStampScrub(a.second):o}},{key:"timeStampScrub",value:function(e){var t=commentsProvider.getConfig("global").timePlaceholder;return t?e.replace(t,""):e}},{key:"truncateWithLogic",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:!1,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(!e)return"";var a=[];if(i){var s=e.substr(0,t),u=this.nthIndex(s,"\n",i);t=u>0?u:t}return e.length<=t+1?e:(t=this.findPunctuation(e,t),o&&(t=this.wholeWord(e,t)),a[0]=r?e.substring(0,t+1)+"…":e.substring(0,t+1),n?(a[1]=e.substring(t+1),a):a[0])}},{key:"nthIndex",value:function(e,t,n){for(var r=-1;n--&&r++<e.length&&(r=e.indexOf(t,r),!(0>r)););return r}},{key:"wholeWord",value:function(e,t){return/^\S/.test(e[t+1])?this.wholeWord(e,t-1):t}},{key:"findPunctuation",value:function(e,t){return/[a-zA-Z0-9]/.test(e[t])?t:this.findPunctuation(e,t-1)}},{key:"userAgent",value:function(){var e=navigator.userAgent;return/Android.*Chrome\/[.0-9]*/i.test(e)?s["default"].chromeAndroid:/MSIE 10/i.test(e)||/MSIE 9/i.test(e)||/rv:11.0/i.test(e)||/Edge\/12./i.test(e)?s["default"].internetExplorer:/(iPad|iPhone|iPod).*Safari\/[.0-9]*/i.test(e)&&!window.MSStream?s["default"].iosSafari:/iPad|iPhone|iPod/.test(e)&&!window.MSStream?s["default"].iosWebview:s["default"].otherAgent}},{key:"autoInputHeight",value:function(e){var t=commentsProvider.getConfig("comments");e.style.height=t.autoInputDefaultHeight+"px",e.scrollHeight>t.autoInputDefaultHeight&&(e.style.height=e.scrollHeight+t.autoInputHeightAdd+"px")}}]),e}(),m={seconds:function(e,t,n){return{diff:parseInt((e-t)/1e3),affix:n.second}},minutes:function(e,t,n){return{diff:Math.floor(this.seconds.apply(this,arguments).diff/60),affix:n.minute}},hours:function(e,t,n){return{diff:Math.floor(this.minutes.apply(this,arguments).diff/60),affix:n.hour}},days:function(e,t,n){return{diff:Math.floor(this.hours.apply(this,arguments).diff/24),affix:n.day}},weeks:function(e,t,n){return{diff:Math.floor(this.days.apply(this,arguments).diff/7),affix:n.week}},months:function(e,t,n){var r=t.getFullYear(),o=e.getFullYear(),i=t.getMonth(),a=e.getMonth(),s=this.days.apply(this,arguments).diff,u=a+12*o-(i+12*r),l=void 0;return l=s>30?u:0,{diff:l,affix:n.month}},years:function(e,t,n){return{diff:Math.floor(this.months.apply(this,arguments).diff/12),affix:n.year}}},h=function(){function e(){a(this,e)}return f(e,[{key:"on",value:function(e,t){this["_on"+e]=t}},{key:"emit",value:function(e){if(this["_on"+e]){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];this["_on"+e].apply(this,n)}}}]),e}(),v=function(){function e(){a(this,e),this.debugConfig=commentsProvider.getConfig("global").debug,this.track=commentsProvider.getConfig("global").track}return f(e,[{key:"log",value:function(e){return this.debugConfig&&console.log(e),this.track.log&&this.track.log(e),e}},{key:"throw",value:function(e){return this.debugConfig&&console.error(e),this.track.error&&this.track.error(e),e}},{key:"warn",value:function(e){return this.debugConfig&&console.warn(e),this.track.warn&&this.track.warn(e),e}}]),e}();e.Xhr=d,e.Helpers=g,e.Logger=v,e.Events=h}),define("util/Utils.js",function(){});
define("util/htmlEncode",[],function(){"use strict";!function(e){var n=e.requires("jSecure");e.exports("htmlEncode",n.htmlEncode)}(window.LIModules)}),define("util/htmlEncode.js",function(){});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("jSecure",t):e.jSecure=t()}(this,function(){"use strict";function e(){}function t(){return"undefined"==typeof document?!0:"textContent"in document.createElement("div")}function n(e){return e.indexOf("<")>-1||e.indexOf("&")>-1}function r(e){return e=e||h,new RegExp("<(?!/?(?:"+e.join("|")+")(?:[ 	\r\n]*/?>|[ 	\r\n]+(?:(?:(?:"+m+")(?:=([\"'])[^'\"<>]*\\1)?|(?:"+b+")=([\"'])(?:(?:"+v+")(?::|&#(?:58|x3a);)|(?:"+y+")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\2)[ 	\r\n]*)+/?>))","i")}function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function i(e){return e.reduce(function(e,t){return e.concat(t)},[])}function a(e){return!a.R_UNSAFE_HTML.test(e)}function u(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function l(e,t){var r=t?c(e,t):e,o=e;return n(r)&&!a(r)&&(r=u(r),S("Content contains non-whitelisted tags or attributes:\nContent: "+o,"warn")),r}function c(t,n){var r={};return t.replace(/\{([^}]+)\}/g,function(t,o){var i,a,u=t;if(r.hasOwnProperty(o))return r[o];if(n.hasOwnProperty(o)){if(u=n[o],i="string"==typeof u,a="number"==typeof u,!(i||u instanceof e||a))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");u=i?x(u):u.toString()}return r[o]=u,u})}function d(e,t){for(var n=+t.length,r=0,o=e.length;n>r;r++)e[o++]=t[r];return e.length=o,e}function s(e,t){var n,r,o,i,a,u,l,c,s=t.createDocumentFragment(),f=[];for(u=0,c=e.length;c>u;u++)if(a=e[u],a||0===a)if("string"==typeof a){for(i=i||s.appendChild(t.createElement("div")),n=(j.exec(a)||["",""])[1].toLowerCase(),r=_[n]||_._default,o=r[1]+a+r[2],jSecure.setElementContent(i,o),l=r[0];l--;)i.lastChild&&i.lastChild.nodeType===Node.ELEMENT_NODE&&(i=i.lastChild);d(f,i.childNodes),i=s.firstChild,i.textContent=""}else d(f,a.nodeType?[a]:a);for(s.textContent="",u=0,a=f[u];a;)s.appendChild(a),u++,a=f[u];return s}function f(e,t){t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document;var n;if("string"==typeof e)n=s([e],t);else{if(!C(e))return e;n=s(e,t)}return d([],n.childNodes)}var p=t()?"textContent":"innerText",g=["b","del","em","i","s","strong","sub","sup"],h=g.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),m="alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",b="href|src",y="data:image/(?:gif|jpg|jpeg|png);base64,",v="https?|ftp|mailto",w="&#?[a-zA-Z0-9]{1,10};",E=(new RegExp(w),{ALLOWED_TAGS:h,FORMATTING_TAGS:g}),S=E.log=function(e,t){t=t||"log","undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)},T=(E.unsafe=function(e){return e},E),x=T.htmlEncode=function(){var e,t=/[&<>"'\u0000\\=]/g;return e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\x00":"�","\\":"&#92;","=":"&#61;"},function(n){return null===n||void 0===n?null:n.toString().replace(t,function(t){return e[t]})}}();T.htmlUnencode=function(){function e(e){var n;return o.hasOwnProperty(e)?o[e]:(t.innerHTML="&"+e+";",n=t[p],o[e]=n,n)}var t,n,r=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};t=document.createElement("div");var o={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return 65535>=e?String.fromCharCode(e):"�"},function(t){return null===t||void 0===t?null:(t+"").replace(r,function(t,r,o,i){return r?e(r):o||i?n(parseInt(o||i,o?16:10)||65533):"�"})}}(),T.reEncode=function(e){return T.htmlEncode(T.htmlUnencode(e))},T.text=function(e){return T.log("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),T.htmlEncode(e)},function(){return Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}}(),a.R_UNSAFE_HTML=r();var C=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},_={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var j=/<([\w:]+)/;T.processTemplate=l,T.sanitizeHTML=function(e){return l(e)},T.setElementContent=function(e,t,r){var o=l(t,r);return n(o)?e.innerHTML=o:e[p]=o,o},T.parseHTML=f;var A=(T.parseSelector=function(e){var t=/^(?:\s*(<[\w\W]+>)[^>]*)$/;return"string"==typeof e&&t.test(e)?[]:e},T.UnsafeString=function(e,t){return this instanceof A?(t=t||{},t.allowTags=t.allowTags?i(t.allowTags):T.ALLOWED_TAGS,this._string=e,void(this._options=t)):new A(e,t)});A.prototype=o(new e,{toString:function(){var e,t=this._string,n=this._options.allowTags,o=this._stringVal,i=t;return void 0!==o?o:(e=r(n),e.test(t)&&(i=t,t=u(t),T.log("UnsafeString contains non-whitelisted tags or attributes.\nString: "+i+"\nAllowed Tags: "+n,"warn")),this._stringVal=t,t)}});var L=T;return L}),define("jSecure.min.js",function(){});
/* Auto generated, hash = 55xd6h28ke7y53sgnl3raafq */
(function(){dust.register("agora/templates/tlv2/comment",body_0);function body_0(chk,ctx){return chk.write('\x3csection class\x3d"comment-container hidden" id\x3d"').reference(ctx.get(["id"],false),ctx,"h").write('"\x3e\x3cdiv class\x3d"alert hidden" role\x3d"alert" tabindex\x3d"-1"\x3e\x3cdiv class\x3d"wrapper"\x3e\x3cp class\x3d"message"\x3e\x3c/p\x3e\x3cbutton class\x3d"dismiss hidden"\x3e\x3csvg aria-hidden\x3d"true" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" data-size\x3d"small"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3eDismiss\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3cspan class\x3d"comment-time"\x3e').reference(ctx.get(["createdDate"],
false),ctx,"h").write('\x3c/span\x3e\x3cdiv class\x3d"button-time-holder"\x3e\x3cbutton class\x3d"comment-more-button comment-icon-button"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#ellipsis-horizontal-icon" width\x3d"16px" height\x3d"16px" /\x3e\x3c/svg\x3e\x3c/button\x3e\x3cdiv class\x3d"dropdown comment-menu hidden"\x3e\x3cul\x3e\x3cli class\x3d"comments-menu-item-feature"\x3e\x3cbutton type\x3d"button" \x3e').reference(ctx.getPath(false,
["translate","feature"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d"comments-menu-item-share"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,["translate","share"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d"comments-menu-item-getlink"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,["translate","getlink"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d"comments-menu-item-flag hidden"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,
["translate","flag"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d"comments-menu-item-delete hidden"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,["translate","delete"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3ca href\x3d"').reference(ctx.getPath(false,["commenter","publicProfileUrl"]),ctx,"h").write('" class\x3d"comment-badge" target\x3d"_blank"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["commenter","image","url"]),
ctx,"h").write('"  class\x3d"commenter-image"\x3e\x3c/a\x3e\x3cdiv tabindex\x3d"-1" class\x3d"comment-image-container"\x3e\x3cdiv class\x3d"comment-image-divider"\x3e\x26nbsp;\x3c/div\x3e\x3c/div\x3e\x3carticle\x3e\x3ch2\x3e\x3ca href\x3d"').reference(ctx.getPath(false,["commenter","publicProfileUrl"]),ctx,"h").write('" class\x3d"commenter-name" target\x3d"_blank"\x3e').reference(ctx.getPath(false,["commenter","name"]),ctx,"h").write('\x3c/a\x3e\x3c/h2\x3e\x3cspan class\x3d"commenter-badges"\x3e\x3cfigure class\x3d"influencer"\x3e\x3c/figure\x3e\x3cfigure class\x3d"author"\x3e\x3c/figure\x3e\x3c/span\x3e\x3ch3 class\x3d"commenter-title"\x3e').reference(ctx.getPath(false,
["commenter","headline"]),ctx,"h").write('\x3c/h3\x3e\x3cdiv class\x3d"message-holder-wrapper" role\x3d"main"\x3e\x3cp\x3e\x3cspan class\x3d"message-holder"\x3e').reference(ctx.get(["message"],false),ctx,"h").write('\x3c/span\x3e\x3cspan class\x3d"more-container hidden"\x3e\x3c/span\x3e\x3cbutton class\x3d"expand-comment-button hidden"\x3e\x3cspan aria-label\x3d"').reference(ctx.getPath(false,["translate","seeMore"]),ctx,"h").write('" class\x3d"expand-comment-more"\x3e\x26hellip; \x3cspan class\x3d"expand-comment-text"\x3e').reference(ctx.getPath(false,
["translate","seeMore"]),ctx,"h").write('\x3c/span\x3e\x3c/span\x3e\x3cspan aria-label\x3d"').reference(ctx.getPath(false,["translate","seeLess"]),ctx,"h").write('" class\x3d"expand-comment-less hidden"\x3e\x3cspan class\x3d"expand-comment-text"\x3e\x26nbsp; ').reference(ctx.getPath(false,["translate","seeLess"]),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3c/p\x3e\x3c/div\x3e\x3c/article\x3e\x3cdiv role\x3d"navigation" class\x3d"comment-controls-container" aria-label\x3d"Comment Controls"\x3e\x3cspan class\x3d"buttonWrapper"\x3e\x3cspan class\x3d"toolTipWrapper"\x3e\x3cbutton type\x3d"button" class\x3d"comment-like-button"\x3e\x3cspan class\x3d"comment-like-label"\x3e').reference(ctx.getPath(false,
["translate","like"]),ctx,"h").write('\x3c/span\x3e\x3cspan class\x3d"comment-unlike-label hidden"\x3e').reference(ctx.getPath(false,["translate","unlike"]),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3cdiv role\x3d"tooltip" class\x3d"tooltip guest-like-tooltip"\x3e').reference(ctx.getPath(false,["translate","likeGuestTooltip"]),ctx,"h").write('\x3c/div\x3e\x3c/span\x3e\x3cspan class\x3d"toolTipWrapper"\x3e\x3cbutton type\x3d"button" class\x3d"comment-reply-button"\x3e').reference(ctx.getPath(false,
["translate","reply"]),ctx,"h").write('\x3c/button\x3e\x3cdiv role\x3d"tooltip" class\x3d"tooltip guest-reply-tooltip"\x3e').reference(ctx.getPath(false,["translate","replyGuestTooltip"]),ctx,"h").write('\x3c/div\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"comment-button-separator"\x3e\x3cbutton type\x3d"button"  class\x3d"comment-thumb-button comment-icon-button hidden"\x3e\x3cspan class\x3d"comment-you-wrapper hidden" tab-index\x3d-1\x3e\x3cspan class\x3d"you-liked"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#like-filled-icon" width\x3d"16px" height\x3d"16px" /\x3e\x3c/svg\x3e\x3c/span\x3e\x3cspan class\x3d"comment-you-label comment-control-label"\x3e').reference(ctx.getPath(false,
["translate","you"]),ctx,"h").write(' +\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"you-not-liked"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#like-icon" width\x3d"16px" height\x3d"16px" /\x3e\x3c/svg\x3e\x3c/span\x3e\x3cspan aria-label\x3d"Total Likes" class\x3d"comment-like-number comment-control-label"\x3e').reference(ctx.get(["totalLikes"],false),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"comments-count comment-icon-button hidden"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#speech-bubble-icon" width\x3d"16px" height\x3d"16px" /\x3e\x3c/svg\x3e\x3cspan aria-label\x3d"').reference(ctx.getPath(false,
["translate","commentCount"]),ctx,"h").write('" class\x3d"comment-count-number comment-control-label"\x3e').reference(ctx.get(["commentCount"],false),ctx,"h").write("\x3c/span\x3e\x3c/button\x3e\x3c/span\x3e\x3c/div\x3e\x3c/section\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/comments",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"comments-container" id\x3d"').reference(ctx.get(["id"],false),ctx,"h").write('"\x3e\x3cdiv class\x3d"comments-header"\x3e\x3cdiv class\x3d"total-comments-wrapper"\x3e\x3cspan class\x3d"total-comments"\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"comments-header-button-wrapper"\x3e\x3cbutton class\x3d\'comment-sort-button hidden\'\x3e\x3cspan class\x3d"comment-sort-label"\x3e').reference(ctx.get(["defaultSort"],
false),ctx,"h").write('\x3c/span\x3e\x3clabel class\x3d"label-recommended hidden" tab-index\x3d-1\x3e').reference(ctx.getPath(false,["translate","recommended"]),ctx,"h").write('\x3c/label\x3e\x3clabel  class\x3d"label-oldest hidden" tab-index\x3d-1\x3e').reference(ctx.getPath(false,["translate","oldest"]),ctx,"h").write('\x3c/label\x3e\x3clabel  class\x3d"label-newest hidden" tab-index\x3d-1\x3e').reference(ctx.getPath(false,["translate","newest"]),ctx,"h").write('\x3c/label\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#chevron-down-icon" width\x3d"16px" height\x3d"16px" data-size\x3d"small"/\x3e\x3c/svg\x3e\x3c/button\x3e\x3cspan class\x3d"toolTipWrapper"\x3e\x3cbutton type\x3d"button" class\x3d"comment-settings__button--toggle hidden"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#gear-icon" data-size\x3d"small"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cdiv role\x3d"tooltip" class\x3d"tooltip comment-settings__tooltip"\x3e').reference(ctx.getPath(false,
["translate","commentSettings"]),ctx,"h").write('\x3c/div\x3e\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"dropdown comments-sort hidden"\x3e\x3cul\x3e\x3cli class\x3d\'sort-button sort-recommended\' aria-label\x3d"recommended"\x3e\x3cbutton\x3e').reference(ctx.getPath(false,["translate","recommended"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d\'sort-button sort-oldest\' aria-label\x3d"oldest"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,["translate","oldest"]),ctx,
"h").write('\x3c/button\x3e\x3c/li\x3e\x3cli class\x3d\'sort-button sort-newest\' aria-label\x3d"newest"\x3e\x3cbutton type\x3d"button"\x3e').reference(ctx.getPath(false,["translate","newest"]),ctx,"h").write('\x3c/button\x3e\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3csection class\x3d"comment-settings hidden"\x3e\x3ch5 class\x3d"comment-settings__header"\x3e').reference(ctx.getPath(false,["translate","commentSettings"]),ctx,"h").write('\x3c/h5\x3e\x3cdiv class\x3d"comment-settings__disable-comments disable-comments"\x3e\x3cinput type\x3d"radio" id\x3d"disable-comments__option--enable" name\x3d"disable-comments__option" checked\x3e\x3clabel class\x3d"disable-comments__label" for\x3d"disable-comments__option--enable"\x3e').reference(ctx.getPath(false,
["translate","allowComments"]),ctx,"h").write('\x3c/label\x3e\x3cinput id\x3d"disable-comments__option--disable" type\x3d"radio" name\x3d"disable-comments__option"\x3e\x3clabel class\x3d"disable-comments__label" for\x3d"disable-comments__option--disable"\x3e').reference(ctx.getPath(false,["translate","disableComments"]),ctx,"h").write('\x3c/label\x3e\x3cp class\x3d"disable-comments__info"\x3e').reference(ctx.getPath(false,["translate","disableCommentsInfo"]),ctx,"h").write('\x3c/p\x3e\x3cbutton type\x3d"button" class\x3d"disable-comments__button disable-comments__button--save" disabled\x3e').reference(ctx.getPath(false,
["translate","saveChanges"]),ctx,"h").write('\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"disable-comments__button disable-comments__button--cancel"\x3e').reference(ctx.getPath(false,["translate","cancel"]),ctx,"h").write("\x3c/button\x3e\x3c/div\x3e\x3c/section\x3e\x3cdiv class\x3d\"comments-input-container\"\x3e\x3c!-- input container will be dynamically injected --\x3e\x3c/div\x3e\x3cdiv class\x3d'comments-threads'\x3e\x3c!-- threads will be dynamically injected --\x3e\x3c/div\x3e\x3cdiv class\x3d'comments-more-button-section hidden'\x3e\x3cspan class\x3d\"remaining-comments-pluaral\"\x3e").reference(ctx.getPath(false,
["translate","i18n_comments_thereAre_context"]),ctx,"h").write('\x3c/span\x3e\x26nbsp;\x3cbutton class\x3d"comments-more-button"\x3e').reference(ctx.getPath(false,["translate","showMore"]),ctx,"h").write("\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/commentsDisabled",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"comments-disabled"\x3e\x3cp class\x3d"comments-disabled__info comments-disabled__info--reader"\x3e').reference(ctx.getPath(false,["translate","commentsDisabledViewerMessage"]),ctx,"h").write('\x3c/p\x3e\x3cp class\x3d"comments-disabled__info comments-disabled__info--author-disabling hidden"\x3e ').reference(ctx.getPath(false,["translate","commentsDisabledCommentsDisabling"]),
ctx,"h").write('\x3cp class\x3d"comments-disabled__info comments-disabled__info--author-enable hidden"\x3e').reference(ctx.getPath(false,["translate","commentsDisabledAuthorMessage"]),ctx,"h").write('\x3c/p\x3e\x3cp class\x3d"comments-disabled__info comments-disabled__info--author-enable comments-disabled__enable hidden"\x3e\x3c/p\x3e\x3c/div\x3e')}return body_0})();
(function(){dust.register("agora/templates/tlv2/commentsInputDefault",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"comments-input-container"\x3e\x3cdiv class\x3d"alert hidden" role\x3d"alert" tabindex\x3d"-1"\x3e\x3cdiv class\x3d"wrapper"\x3e\x3cp class\x3d"message"\x3e\x3c/p\x3e\x3cbutton class\x3d"dismiss hidden"\x3e\x3csvg aria-hidden\x3d"true" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" data-size\x3d"small"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3eDismiss\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3ca class\x3d"comments-badge-link" href\x3d"').reference(ctx.getPath(false,
["author","profileUrl"]),ctx,"h").write('" target\x3d"_blank"\x3e\x3cimg src\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" class\x3d"comments-badge-image comment-badge"\x3e\x3c/a\x3e\x3cdiv class\x3d"mentions-container"\x3e\x3cpre class\x3d"mentions-highlighter"\x3e\x3c/pre\x3e\x3ctextarea class\x3d"mentions-input" placeholder\x3d"').reference(ctx.getPath(false,["translate","placeholder"]),ctx,"h").write('"\x3e\x3c/textarea\x3e\x3cinput class\x3d"mentions-typeahead" type\x3d"text"/\x3e\x3cinput class\x3d"mentions-entities" type\x3d"text"/\x3e\x3c/div\x3e\x3cdiv class\x3d"comment-reply-button-container"\x3e\x3cbutton type\x3d"button" class\x3d\'comment-submit-button\' disabled\x3e').reference(ctx.getPath(false,
["translate","comment"]),ctx,"h").write("\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/commentsInputGuest",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"comments-input-container"\x3e\x3cdiv class\x3d"alert hidden" role\x3d"alert" tabindex\x3d"-1"\x3e\x3cdiv class\x3d"wrapper"\x3e\x3cp class\x3d"message"\x3e\x3c/p\x3e\x3cbutton class\x3d"dismiss"\x3e\x3csvg aria-hidden\x3d"true" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" data-size\x3d"small"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3eDismiss\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3ca class\x3d"comments-badge-link" href\x3d"').reference(ctx.getPath(false,
["author","profileUrl"]),ctx,"h").write('" target\x3d"_blank"\x3e\x3cimg src\x3d"').reference(ctx.get(["url"],false),ctx,"h").write('" class\x3d"comments-badge-image comment-badge"\x3e\x3c/a\x3e\x3cdiv class\x3d"guest-view"\x3e\x3c/div\x3e\x3c/div\x3e')}return body_0})();
(function(){dust.register("agora/templates/tlv2/likeModal",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv role\x3d"document"\x3e\x3cheader class\x3d"head-wrapper"\x3e\x3c!-- \x3ch1\x3erequired for all modals. It\'s ID must remain: \'modal-header\' for area-labelledby in parent --\x3e\x3ch1 class\x3d"modal-header" id\x3d"like-modal"\x3e').reference(ctx.getPath(false,["translate","membersWhoLike"]),ctx,"h").write('\x3c/h1\x3e\x3cbutton class\x3d"modal-dismiss-btn"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" width\x3d"25px" height\x3d"25px" /\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3e').reference(ctx.getPath(false,
["translate","dismiss"]),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3c/header\x3e\x3cul class\x3d"modal-list-container"\x3e\x3c/ul\x3e\x3c/div\x3e')}return body_0})();
(function(){dust.register("agora/templates/tlv2/likeModalRows",body_0);function body_0(chk,ctx){return chk.write('\x3cli class\x3d"modal-rows"\x3e\x3ca class\x3d"profile-wrapper" href\x3d"').reference(ctx.get(["publicProfileUrl"],false),ctx,"h").write('"\x3e\x3cdiv class\x3d"entity-lockup"\x3e\x3cfigure\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["image","url"]),ctx,"h").write('"  class\x3d"liker-image"  width\x3d"').reference(ctx.getPath(false,["image","width"]),ctx,"h").write('" height\x3d"').reference(ctx.getPath(false,
["image","height"]),ctx,"h").write('"\x3e\x3c/figure\x3e\x3cdl\x3e\x3cdt\x3e\x3ch3 class\x3d"liker-name"\x3e').reference(ctx.get(["name"],false),ctx,"h").write("\x3c/h3\x3e\x3c/dt\x3e\x3cdd\x3e").reference(ctx.get(["headline"],false),ctx,"h").write("\x3c/dd\x3e\x3c/dl\x3e\x3c/div\x3e\x3c/a\x3e\x3c/li\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/linkModal",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv role\x3d"document"\x3e\x3cheader class\x3d"head-wrapper"\x3e\x3c!-- \x3ch1\x3erequired for all modals. It\'s ID must remain: \'modal-header\' for area-labelledby in parent --\x3e\x3ch1 class\x3d"modal-header" id\x3d"link-modal"\x3e').reference(ctx.getPath(false,["translate","getLink"]),ctx,"h").write('\x3c/h1\x3e\x3cbutton class\x3d"modal-dismiss-btn"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" width\x3d"25px" height\x3d"25px" /\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3e').reference(ctx.getPath(false,
["translate","dismiss"]),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3c/header\x3e\x3cdiv class\x3d"modal-body ').reference(ctx.get(["iosDeviceFlag"],false),ctx,"h").write('"\x3e\x3cp\x3e').reference(ctx.getPath(false,["translate","urlOfComment"]),ctx,"h").write('\x3c/p\x3e\x3cinput type\x3d"text" readonly\x3d"true" class\x3d"modal-link-area non-ios" value\x3d"').reference(ctx.get(["urn"],false),ctx,"h").write('" /\x3e\x3ca type\x3d"text" readonly\x3d"true" class\x3d"modal-link-area hidden ios-only" href\x3d"').reference(ctx.get(["urn"],
false),ctx,"h").write('"\x3e').reference(ctx.get(["urn"],false),ctx,"h").write("\x3ca/\x3e\x3c/div\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/modal",body_0);function body_0(chk,ctx){return chk.write('\x3csection class\x3d"comments-modal-container ').reference(ctx.get(["className"],false),ctx,"h").write('" role\x3d"dialog" aria-labelledby\x3d"').reference(ctx.get(["idName"],false),ctx,"h").write('" tabindex\x3d"-1"\x3e\x3c/section\x3e')}return body_0})();
(function(){dust.register("agora/templates/tlv2/thread",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv class\x3d"comments-thread-container" id\x3d"').reference(ctx.get(["id"],false),ctx,"h").write('"\x3e\x3cdiv class\x3d"threads-comments"\x3e\x3c!-- comments are injected here --\x3e\x3c/div\x3e\x3cdiv class\x3d"thread-comments-show-section hidden"\x3e\x3cbutton class\x3d"thread-see-more-button"\x3e').reference(ctx.getPath(false,["translate","viewPrevious"]),ctx,"h").write(' (\x3cspan class\x3d"thread-comments-more-count"\x3e0\x3c/span\x3e)\x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"comment-reply-box nested hidden"\x3e\x3cdiv class\x3d"comment-reply-input-container"\x3e\x3cdiv class\x3d"alert hidden" role\x3d"alert" tabindex\x3d"-1"\x3e\x3cdiv class\x3d"wrapper"\x3e\x3cp class\x3d"message"\x3e\x3c/p\x3e\x3cbutton class\x3d"dismiss hidden"\x3e\x3csvg aria-hidden\x3d"true" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" data-size\x3d"small"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3eDismiss\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3ca href\x3d"').reference(ctx.getPath(false,
["author","profileUrl"]),ctx,"h").write('" target\x3d"_blank" class\x3d"comments-badge-link"\x3e\x3cimg src\x3d"').reference(ctx.getPath(false,["author","image","url"]),ctx,"h").write('" href\x3d"').reference(ctx.getPath(false,["author","profileUrl"]),ctx,"h").write('"class\x3d"comment-badge comments-badge-image"\x3e\x3c/a\x3e\x3cdiv class\x3d"mentions-container hidden"\x3e\x3cpre class\x3d"mentions-highlighter"\x3e\x3c/pre\x3e\x3ctextarea class\x3d"mentions-input" placeholder\x3d"').reference(ctx.getPath(false,
["translate","placeholder"]),ctx,"h").write('"\x3e\x3c/textarea\x3e\x3cinput class\x3d"mentions-typeahead" type\x3d"text"/\x3e\x3cinput class\x3d"mentions-entities" type\x3d"text"/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"thread-reply-button-container"\x3e\x3cbutton type\x3d"button" class\x3d\'thread-cancel-button\'\x3e').reference(ctx.getPath(false,["translate","cancel"]),ctx,"h").write("\x3c/button\x3e\x3cbutton type\x3d\"button\" class\x3d'thread-reply-submit-button'  disabled\x3e").reference(ctx.getPath(false,
["translate","reply"]),ctx,"h").write("\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("agora/templates/tlv2/typeaheadMentionItem",body_0);function body_0(chk,ctx){return chk.exists(ctx.get(["imageUrl"],false),ctx,{"block":body_1},{}).write("\x3ch4\x3e").reference(ctx.get(["headLine"],false),ctx,"h",["mk","s"]).write("\x3c/h4\x3e\x3cp\x3e").reference(ctx.get(["subLine"],false),ctx,"h",["et","s"]).write("\x3c/p\x3e").helper("i18n",ctx,{},{"key":"i18n_people","output":"json","templateName":"agora/templates/tlv2/typeaheadMentionItem"}).helper("i18n",ctx,{},{"key":"i18n_companies",
"output":"json","templateName":"agora/templates/tlv2/typeaheadMentionItem"}).helper("i18n",ctx,{},{"key":"i18n_universities","output":"json","templateName":"agora/templates/tlv2/typeaheadMentionItem"}).helper("i18n",ctx,{},{"key":"i18n_participants","output":"json","templateName":"agora/templates/tlv2/typeaheadMentionItem"})}function body_1(chk,ctx){return chk.write('\x3cimg src\x3d"').reference(ctx.get(["imageUrl"],false),ctx,"h").write('" alt\x3d"').reference(ctx.get(["displayName"],false),ctx,
"h").write('" /\x3e')}return body_0})();(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["agora/templates/tlv2/typeaheadMentionItem"]={"i18n_people":'\x3ch3 class\x3d"comment-typeahead-title"\x3ePeople\x3c/h3\x3e',"i18n_companies":'\x3ch3 class\x3d"comment-typeahead-title"\x3eCompanies\x3c/h3\x3e',"i18n_universities":'\x3ch3 class\x3d"comment-typeahead-title"\x3eUniversities\x3c/h3\x3e',"i18n_participants":'\x3ch3 class\x3d"comment-typeahead-title"\x3eParticipants\x3c/h3\x3e'}})();
(function(){dust.register("agora/templates/tlv2/removeCommentModal",body_0);function body_0(chk,ctx){return chk.write('\x3cdiv role\x3d"document"\x3e\x3cheader class\x3d"head-wrapper"\x3e\x3c!-- \x3ch1\x3erequired for all modals. It\'s ID must remain: \'modal-header\' for area-labelledby in parent --\x3e\x3ch1 class\x3d"modal-header" id\x3d"removecomment-modal"\x3e').reference(ctx.get(["type"],false),ctx,"h").write('\x3c/h1\x3e\x3cbutton class\x3d"modal-dismiss-btn"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true" xmlns:xlink\x3d"http://www.w3.org/1999/xlink" class\x3d"comments-icon"\x3e\x3cuse xlink:href\x3d"#cancel-icon" width\x3d"25px" height\x3d"25px" /\x3e\x3c/svg\x3e\x3cspan class\x3d"a11y-hidden"\x3e').reference(ctx.getPath(false,
["translate","dismiss"]),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3c/header\x3e\x3cdiv class\x3d"modal-body"\x3e\x3cp\x3e').reference(ctx.get(["mainMessage"],false),ctx,"h").write('\x3c/p\x3e\x3c/div\x3e\x3cfooter\x3e\x3cbutton class\x3d"modal-confirm-btn ').reference(ctx.get(["version"],false),ctx,"h").write('-confirm"\x3e\x3cspan\x3e').reference(ctx.get(["type"],false),ctx,"h").write('\x3c/span\x3e\x3c/button\x3e\x3cbutton class\x3d"modal-cancel-btn ').reference(ctx.get(["version"],false),
ctx,"h").write('-cancel"\x3e\x3cspan\x3e').reference(ctx.getPath(false,["translate","dismiss"]),ctx,"h").write("\x3c/span\x3e\x3c/button\x3e\x3c/footer\x3e\x3c/div\x3e")}return body_0})();
(function(){dust.register("templates/harrison/i18nAdaptor",body_0);function body_0(chk,ctx){return chk.helper("i18n",ctx,{},{"key":"i18n_comments_total_context","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_delete","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_cancel","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_recommended","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_comments_oldest","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_newest","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_showMore","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_thereAre_context","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comments_notEnoughChars","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_commentsInputDefault_placeholder","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_commentsInputDefault_comment","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_commentsInputGuest_signin","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_thread_placeholder","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_thread_showMore","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_thread_cancel","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_thread_reply","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_thread_viewPrevious","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_thread_notEnoughChars","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_like","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_comment_likeGuestTooltip","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_unlike","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_reply","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_replyGuestTooltip","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_feature","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_comment_share","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_getlink","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_delete","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_you","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_flag","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},
{"key":"i18n_comment_commentCount","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_seeMore","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_comment_seeLess","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_likeModal_membersWhoLike","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_likeModal_dismiss","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_linkModal_dismiss","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_linkModal_getLink","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_linkModal_urlOfComment","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_mentions_topInput","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_mentions_bottomInput","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_mentions_comment","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_flag","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_delete","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_dismiss","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_confirm","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",
ctx,{},{"key":"i18n_removeCommentModal_mainMessageDelete","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_removeCommentModal_mainMessageFlag","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_second","doc":"Shorthand representation of seconds, used for time notation","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_minute","doc":"Shorthand representation of minutes, used for time notation",
"templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_hour","doc":"Shorthand representation of hours, used for time notation","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_day","doc":"Shorthand representation of days, used for time notation","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_week","doc":"Shorthand representation of weeks, used for time notation",
"templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_month","doc":"Shorthand representation of months, used for time notation","templateName":"templates/harrison/i18nAdaptor"}).helper("i18n",ctx,{},{"key":"i18n_timePrefixes_year","doc":"Shorthand representation of years, used for time notation","templateName":"templates/harrison/i18nAdaptor"})}return body_0})();
(function(){dust.i18n=dust.i18n||{};dust.i18n.cache=dust.i18n.cache||{};dust.i18n.cache["templates/harrison/i18nAdaptor"]={"i18n_comments_delete":"delete","i18n_comments_cancel":"Cancel","i18n_comments_recommended":"Recommended","i18n_comments_oldest":"Oldest","i18n_comments_newest":"Newest","i18n_comments_showMore":"Show more.","i18n_comments_notEnoughChars":"Please enter more chacters in your comment","i18n_commentsInputDefault_placeholder":"Leave your thoughts here\u2026","i18n_commentsInputDefault_comment":"Comment",
"i18n_commentsInputGuest_signin":'\x3ca href\x3d"urlPlaceHolder"\x3eSign in\x3c/a\x3e to leave your comment\x3c/a\x3e',"i18n_thread_placeholder":"Reply to this comment\u2026","i18n_thread_showMore":"Show more","i18n_thread_cancel":"Cancel","i18n_thread_reply":"Reply","i18n_thread_viewPrevious":"View previous replies","i18n_thread_notEnoughChars":"Please enter more chacters in your reply","i18n_comment_like":"Like","i18n_comment_likeGuestTooltip":"Sign in to like this comment","i18n_comment_unlike":"Unlike",
"i18n_comment_reply":"Reply","i18n_comment_replyGuestTooltip":"Sign in to reply to this comment","i18n_comment_feature":"Feature","i18n_comment_share":"Share","i18n_comment_getlink":"Get link","i18n_comment_delete":"Delete","i18n_comment_you":"You","i18n_comment_flag":"Flag and Hide","i18n_comment_commentCount":"Comment Count","i18n_comment_seeMore":"See more","i18n_comment_seeLess":"See less","i18n_likeModal_membersWhoLike":"Members who like this","i18n_likeModal_dismiss":"Dismiss","i18n_linkModal_dismiss":"Dismiss",
"i18n_linkModal_getLink":"Get Link","i18n_linkModal_urlOfComment":"The URL of this comment is below. Copy it to share","i18n_mentions_topInput":"Leave your thoughts here\u2026","i18n_mentions_bottomInput":"Reply to this comment\u2026","i18n_mentions_comment":"Comment","i18n_removeCommentModal_flag":"flag","i18n_removeCommentModal_delete":"delete","i18n_removeCommentModal_dismiss":"Cancel","i18n_removeCommentModal_confirm":"Confirm","i18n_removeCommentModal_mainMessageDelete":"Would you like to delete this comment?",
"i18n_removeCommentModal_mainMessageFlag":"Would you like to flag this comment?"}})();(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_comments_total_context",body_0);function body_0(chk,ctx){return chk.reference(ctx.get(["commentsTotal"],false),ctx,"h").write(" ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"comment","plural":"comments"})}return body_0})();
(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_comments_thereAre_context",body_0);function body_0(chk,ctx){return chk.write("There ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"is","plural":"are"}).write(" ").reference(ctx.get(["commentsTotal"],false),ctx,"h").write(" other ").helper("choice",ctx,{},{"key":ctx.get(["commentsTotal"],false),"singular":"comment","plural":"comments"}).write(".")}return body_0})();
(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_second",body_0);function body_0(chk,ctx){return chk.write("{0}s")}return body_0})();(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_minute",body_0);function body_0(chk,ctx){return chk.write("{0}m")}return body_0})();(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_hour",body_0);function body_0(chk,ctx){return chk.write("{0}h")}return body_0})();
(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_day",body_0);function body_0(chk,ctx){return chk.write("{0}d")}return body_0})();(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_week",body_0);function body_0(chk,ctx){return chk.write("{0}w")}return body_0})();(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_month",body_0);function body_0(chk,ctx){return chk.write("{0}mo")}return body_0})();
(function(){dust.register("__i18n__templates/harrison/i18nAdaptor__i18n_timePrefixes_year",body_0);function body_0(chk,ctx){return chk.write("{0}y")}return body_0})();
/* Auto generated, hash = 4kctg1duqjpafn51k6kh4ytfi */
!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i,r;i=[n(1)],r=function(t){"use strict";function e(){t.init(),t.isArticlePage()&&t.trackRenderComplete(),play.isDustReady?![n(77)]:play.on(play.EVENTS.DUST_READY,function(){![n(77)]})}var i=null!==document.getElementById("stream-container")&&(null!==window.fs||void 0!==window.fs);play.getPageContext(),play.pageContext.contextPath="/"+window.location.pathname.split("/")[1],i?window.fs.after("stream-embed",function(){setTimeout(e,0)}):e()}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(2),n(3),n(4),n(8),n(7),n(73),n(6),n(74)],r=function(t,e,n,i,r,o,s,a,l){var c,u=".",h=o.EVENTS.CLICK,d=5,f=play.getPageContext().locale,p=play.isProd()?3e4:5e3,g={init:function(){n.setProperty("globalTrackingUrl",s.URL),n.setProperty("globalTrackingAppId",o.APP_ID),n.setProperty("maxQueueSize",d),n.setProperty("csrfToken",play.getPageContextValue("csrfToken")),c=new e({"web-ui-framework":"MARIONETTE","beacon-timeout":p}),this.currentAnchorPageKey=null,this.currentPageKey=null,this.currentPageInstance=null,this.previousPageInstance=null,this.pageHistory=[document.referrer],this.persistedTrackingId=null,l.router.on(l.router.BEFORE,a.bind(this.setReferer,this))},getCurrentPageKey:function(){return this.currentPageKey||""},getCurrentAnchorPageKey:function(){return this.currentAnchorPageKey},getCurrentPageInstance:function(){return this.currentPageInstance},generateTrackingId:function(){return r.generateTrackingId()},getPersistedTrackingId:function(){var t=this.persistedTrackingId;return this.persistedTrackingId=null,t},setPersistedTrackingID:function(t){this.persistedTrackingId=t},setReferer:function(){this.pageHistory.push(document.location.href),this.pageHistory.length>2&&this.pageHistory.shift()},getReferer:function(){return this.pageHistory[0]||null},getTrackingPath:function(){return document.location.protocol+"//"+document.location.hostname+document.location.pathname},getQueryTrackingCode:function(){return play.getUrlParameter(document.location.href,s.QUERY_PARAM)||null},getPageInstanceFromQuery:function(){var t=play.getUrlParameter(document.location.href,s.PEMBERLY_PAGE_INSTANCE_QUERY_PARAM)||null;return t?(t=t.split(";"),{pageUrn:t[0],trackingId:t[1]}):null},setCurrentPageKey:function(t){this.currentPageKey=t},setCurrentAnchorPageKey:function(t){this.currentAnchorPageKey=t},startRumClientAppTransition:function(t){c.appTransitionStart(),c.setPageKey(t)},setCurrentPageInstance:function(t){var e;e=this.previousPageInstance?this.getCurrentPageInstance():this.getPageInstanceFromQuery(),this.previousPageInstance=e,this.currentPageInstance={pageUrn:"urn:li:page:"+t,trackingId:r.generateTrackingId()}},getTrackingCode:function(t){for(var e=s.TRACKING_CODES,n=t?t.split(u):[],i=0,r=n.length;i<r;i++){if(e=e[n[i]],!e)return"";if(a.isString(e))return e}return""},createTrackingData:function(t,e){var n=this.client,i=this.getCurrentPageKey();return t=this.getTrackingCode(t),i&&t?(e=e||{},{eventInfo:{eventName:s.EVENTS.FEED.ACTION_EVENT},eventBody:{requestHeader:{pageKey:i,trackingCode:[i,t].join("-")},activityType:e.eventType||h,actionType:t,pageKey:i,attributes:a.extend({client:n},e.attributes||{})}}):{}},track:function(t,e){var i=this.createTrackingData(t,e);n&&i&&n.addToQueue(i)},trackPageView:function(t){var e;t=t||this.getCurrentPageKey(),e={eventBody:{header:{pageInstance:this.getCurrentPageInstance(),time:i.getNow(),pageType:"ajax"},requestHeader:{interfaceLocale:f,pageKey:t,path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()}},eventInfo:{eventName:s.EVENTS.PAGE_VIEW}},t&&n.sendEvent(e.eventInfo,e.eventBody)},trackNavigationEvent:function(){var t,e,r=this.previousPageInstance,o=this.lastControlUrn;t={header:{pageInstance:this.getCurrentPageInstance(),time:i.getNow()},requestHeader:{interfaceLocale:f,pageKey:this.getCurrentPageKey(),path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()},previousPageInstance:r,triggerControlUrn:o},e={eventName:s.EVENTS.NAVIGATION_EVENT,topicName:s.TOPICS.PULSE_NAVIGATION},n.sendEvent(e,t)},trackArticleView:function(t){var e,n,r,o=t.articleId;e=a.extend(t,{header:{pageInstance:this.getCurrentPageInstance(),time:i.getNow()},requestHeader:{interfaceLocale:f,pageKey:this.getCurrentPageKey(),path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()}}),n={eventName:s.EVENTS.ARTICLE.VIEW_EVENT,appId:"pulse-web"},r=JSON.stringify({eventBody:e,eventInfo:n}),r=i.longReplace(r,"articleId",o),this.trackSingleEvent(r,null,function(t){play.log("Error tracking Article View Event: "+t)})},trackImpressionEvent:function(t,e,r){var o={eventBody:{header:{pageInstance:this.getCurrentPageInstance(),time:i.getNow()},requestHeader:{interfaceLocale:f,pageKey:this.getCurrentPageKey(),path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()}},eventInfo:{eventName:t}};o.eventBody[e]=[r],n.sendEvent(o.eventInfo,o.eventBody)},trackActionEvent:function(t,e){var r={eventBody:{header:{pageInstance:this.getCurrentPageInstance(),time:i.getNow()},requestHeader:{interfaceLocale:f,pageKey:this.getCurrentPageKey(),path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()}},eventInfo:{eventName:t}};n.sendEvent(r.eventInfo,a.extend(r.eventBody,e))},trackControlInteractionEvent:function(t){var e={eventBody:{header:{pageInstance:this.getCurrentPageInstance(),time:t.time||i.getNow()},requestHeader:{interfaceLocale:f,pageKey:this.getCurrentPageKey(),path:this.getTrackingPath(),referer:this.getReferer(),trackingCode:this.getQueryTrackingCode()},controlUrn:t.controlUrn,interactionType:s.INTERACTION_TYPES.CLICK},eventInfo:{eventName:s.EVENTS.CONTROL_INTERACTION_EVENT,topicName:s.TOPICS.PULSE_CONTROL_INTERACTION}};this.lastControlUrn=e.eventBody.controlUrn,n.sendEvent(e.eventInfo,e.eventBody)},trackSingleEvent:function(t,e,n){var i;e=e||null,n=n||null,i=new XMLHttpRequest,i&&(i.open("POST",s.URL,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/json"),i.setRequestHeader("Csrf-Token",play.getPageContextValue("csrfToken")),i.onreadystatechange=function(){if(4===i.readyState)return 200!==i.status&&304!==i.status?void(n&&n("Request returned "+i.status)):void("function"==typeof e&&e(i))},4!==i.readyState&&i.send(t))},trackRenderComplete:function(){c.appRenderComplete()},trackViewRenderStart:function(t,e){c.appViewRenderStart(t,e)},trackViewRenderComplete:function(t,e){c.appViewRenderComplete(t,e)},getFullControlUrn:function(t){return s.CONTROL_URN.PREFIX+this.getCurrentPageKey()+t},isArticlePage:function(){var t=window.location.pathname.split("/");return!!t&&(t=a.compact(t),2===t.length||"article"===t[1])}};return g}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,o;!function(n,s){r=[e,t],i=s,o="function"==typeof i?i.apply(e,r):i,!(void 0!==o&&(t.exports=o))}(this,function(t,e){"use strict";function n(t){function e(t){var e={default:.001,xmlhttprequest:1};if(d(),A=t,A.enabled=A.enabled||!0,A.enabled)if(A["beacon-url"]=A["beacon-url"]||"/lite/rum-track",A["beacon-service"]=A["beacon-service"]||"lite",A["event-name"]=A["event-name"]||"RealUserMonitoringEvent",A["app-id"]=A["app-id"]||"linkedin.rum.tracking",A["is-single-page-app"]=A["is-single-page-app"]||!0,A["cross-origin"]=A["cross-origin"]||!1,A["beacon-timeout"]=void 0===A["beacon-timeout"]?6e4:A["beacon-timeout"],A["request-sampling-rate"]=A["request-sampling-rate"]||.01,A["beacon-source"]&&"internal-apps"===A["beacon-source"]&&(C=!0,A["page-key-prefix"]=A["page-key-prefix"]||""),A["navigation-timing-only"]=A["navigation-timing-only"]||!1,A["navigation-timing-only"])"complete"==document.readyState?setTimeout(u,500):window.addEventListener("load",function(){setTimeout(u,500)});else{if(!A["rs-sample-rate"])for(var n in A["rs-sample-rate"])A["rs-sample-rate"].hasOwnProperty(n)&&(e[n]=A["rs-sample-rate"][n]);A["rs-sample-rate"]=e,N.resourceTimingSupport===!0&&(N.readResourceTiming(),N.setBufferSize(100),null===window.performance.onresourcetimingbufferfull?window.performance.onresourcetimingbufferfull=N.readResourceTiming:null===window.performance.onwebkitresourcetimingbufferfull&&(window.performance.onwebkitresourcetimingbufferfull=N.readResourceTiming)),window.addEventListener("unload",u),window.addEventListener("scroll",function(){if(!w)try{w=(new Date).getTime(),E=g()}catch(t){}})}}function n(){var t=document.querySelector('meta[name="treeID"]');return t&&t.getAttribute("content")}function i(){var t=document.querySelector('meta[name="pageKey"]');return t?t.getAttribute("content"):document.body.id?document.body.id.substring("pagekey-".length):""}function r(){var t,e=document.querySelector('meta[name="renderingMode"]');return e&&(t=e.getAttribute("data-mode"),"BIGPIPE"===t&&(t="BIG_PIPE")),t}function o(){var t,e,n;if(!b){if(window.performance&&window.performance.timing&&window.performance.navigation){for(v.navigationTimingApi=!0,t=window.performance.timing,S=t.navigationStart,e=0;e<I.length;e++)n=I[e],t[n]&&(v[n]=t[n]);v.redirectCount=window.performance.navigation.redirectCount,v.navigationType=window.performance.navigation.type}else v.navigationTimingApi=!1;b=!0}}function s(){window.performance&&(window.performance.clearMarks&&window.performance.clearMarks(),window.performance.clearMeasures&&window.performance.clearMeasures())}function a(t,e){var n,i,r,o=[];for(i=0;i<t.length;i++)n=t[i],n&&(r={},r.entryType=e,r.name=n.name,r.startTime=n.startTime,r.duration=n.duration,o.push(r));return o}function l(){var t,e=[];window.performance&&"function"==typeof window.performance.getEntriesByType&&(t=window.performance.getEntriesByType("mark"),e=a(t,"MARK"),t=window.performance.getEntriesByType("measure"),e=e.concat(a(t,"MEASURE"))),v.userTimingEntries=e,s()}function c(){var t;if(Object.keys(m).length>0){v.detailedRenderTimingEntries=[];for(var e in m)m.hasOwnProperty(e)&&v.detailedRenderTimingEntries.push(m[e])}if(N.readResourceTiming(),v.resourceTimingEntries)for(t=v.resourceTimingEntries.length-1;t>=0;t--)v.resourceTimingEntries[t].name&&(v.resourceTimingEntries[t].name=v.resourceTimingEntries[t].name.split(/[?#]/)[0]);o(),l()}function u(){var t,e,o,s;if(A.enabled&&(c(),"navigationStart"in v&&(A["beacon-source"]&&(v.timeSource=A["beacon-source"]),s=n(),s&&(v.treeId=s),!v.hasOwnProperty("pageKey")&&T&&(v.pageKey=i()),v.pageKey))){if(v.boomerangStart=S,v.isSinglePageApp=A["is-single-page-app"],v.isSinglePageApp)if(A["web-ui-framework"]&&(v.webUIFramework=A["web-ui-framework"]),v.appRenderMode=r(),T?v.pageLoadMode="INITIAL":v.pageLoadMode="PARTIAL","renderCompleteTime"in v)v.timeDone=g();else if(!A["navigation-timing-only"])return;C&&!document.querySelector('meta[name="pageKey"]')&&(v.pageKey=A["page-key-prefix"]+":"+window.location.pathname);try{"lite"==A["beacon-service"]?(e=JSON.stringify(v),A["cross-origin"]?(o=document.body.appendChild(new Image),o.width=1,o.height=1,o.src=A["beacon-url"]+"?ir=t&dy=t&plist="+encodeURIComponent(e)):(t=new XMLHttpRequest,t.open("POST",A["beacon-url"],!0),t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t.setRequestHeader("X-IsAJAXForm","1"),t.send("plist="+encodeURIComponent(e)))):h(v)}catch(t){}d()}}function h(t){var e,n={eventInfo:{eventName:A["event-name"],appId:A["app-id"]},eventBody:t};n.eventBody.requestHeader={pageKey:t.pageKey},n.eventBody.trackingTime=-1,e=new XMLHttpRequest,e.open("POST",A["beacon-url"],!0),e.setRequestHeader("content-type","application/json"),e.send(JSON.stringify([n]))}function d(){v={},y=[],x=[],m={},E=void 0,w=void 0,_=Math.random(),O&&(clearTimeout(O),O=void 0)}function f(t){var e,n,i=document.querySelectorAll("img"),r=[];for(n=i.length-1;n>=0;n--)e=i[n],e&&e.src&&e.src.length>0&&r.push(e);return r}function p(t){var e,n=t.getBoundingClientRect();return e={top:Math.max(n.top,0),left:Math.max(n.left,0),bottom:Math.min(n.bottom,window.innerHeight||doc.documentElement.clientHeight),right:Math.min(n.right,window.innerWidth||doc.documentElement.clientWidth)},!(e.bottom<=e.top||e.right<=e.left)}function g(){var t,e,n,i;if(E)return E;if(o(),E=v.renderCompleteTime-v.navigationStart,x)for(n=x.length-1;n>=0;n--)if(e=x[n])for(i=y.length-1;i>=0;i--)if(t=y[i],e.src===t.name){if(w&&S&&t.startTime>w-S)break;if(e.width*e.height<=1)break;p(e)&&(E=Math.max(E,S+t.responseEnd-v.navigationStart));break}return E}var v,m,y,E,w,_,T=!0,b=!1,C=!1,S=window.HEAD_LOAD_TIMESTAMP||void 0,A={},O=void 0,R=0,x=[],I=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],N={resourceTimingSupport:window.performance&&"function"==typeof window.performance.getEntriesByType,clearBuffer:function(){N.resourceTimingSupport!==!0||A["navigation-timing-only"]||(window.performance.clearResourceTimings&&"function"==typeof window.performance.clearResourceTimings?window.performance.clearResourceTimings():window.performance.webkitClearResourceTimings&&"function"==typeof window.performance.webkitClearResourceTimings&&window.performance.webkitClearResourceTimings())},setBufferSize:function(t){N.resourceTimingSupport!==!0||A["navigation-timing-only"]||(window.performance.setResourceTimingBufferSize&&"function"==typeof window.performance.setResourceTimingBufferSize?window.performance.setResourceTimingBufferSize(t):window.performance.webkitSetResourceTimingBufferSize&&"function"==typeof window.performance.webkitSetResourceTimingBufferSize&&window.performance.webkitSetResourceTimingBufferSize(t))},resourceTimingFields:{name:!0,entryType:!1,duration:!0,initiatorType:!0,fetchStart:!0,responseEnd:!0,startTime:!0,connectEnd:!0,connectStart:!0,domainLookupEnd:!0,domainLookupStart:!0,redirectEnd:!0,redirectStart:!0,requestStart:!0,responseStart:!0,secureConnectionStart:!0,nextHopProtocol:!0,transferSize:!0,decodedBodySize:!0,encodedBodySize:!0,workerStart:!0},readResourceTiming:function(){var t,e,n,i,r,o,s="rand",a=!1,l=v.resourceTimingEntries||[];if(N.resourceTimingSupport===!0&&!A["navigation-timing-only"]){for(t=window.performance.getEntriesByType("resource"),e=0;e<t.length;e++){i={};for(n in t[e])N.resourceTimingFields[n]===!0&&(i[n]=t[e][n]);"img"===i.initiatorType&&y.push(i),r=Math.random(),o=A["rs-sample-rate"][t[e].initiatorType]||A["rs-sample-rate"].default,a=_<=A["request-sampling-rate"],(a||r<=o)&&(l.push(i),i.sampleMode="",a&&(i.sampleMode="requestSampled,"),r<=o&&(i.sampleMode+=s+o.toString()))}N.clearBuffer(),l.length>0&&(v.resourceTimingEntries=l)}}};return e(t),{setPageKey:function(t){v.pageKey=t},addTreeId:function(t,e){var n,i,r;if(i=document.createElement("a"),i.href=e,N.readResourceTiming(),v.resourceTimingEntries)for(n=v.resourceTimingEntries.length-1;n>=0;n--)if(r=document.createElement("a"),r.href=v.resourceTimingEntries[n].name,i.protocol===r.protocol&&i.host===r.host&&i.pathname===r.pathname&&(i.search===r.search||""===i.search)){v.resourceTimingEntries[n].resourceTreeId=t;break}},appTransitionStart:function(){R>0&&(u(),d(),v.navigationStart=(new Date).getTime(),T=!1)},appRenderComplete:function(){R++,v.renderCompleteTime=(new Date).getTime(),x=f(),O||(O=setTimeout(u,A["beacon-timeout"]))},appViewRenderStart:function(t,e){m[t]={renderName:e||t,viewName:e,viewId:t,renderStart:(new Date).getTime()}},appViewRenderComplete:function(t,e){m[t]&&(m[t].renderEnd=(new Date).getTime())},customMarkNames:{UI_FRAMEWORK_BOOTSTRAP_START:"mark_ui_framework_bootstrap_start",UI_FRAMEWORK_BOOTSTRAP_END:"mark_ui_framework_bootstrap_end",ABOVE_THE_FOLD:"mark_above_the_fold"}}}e.exports=n})},function(t,e,n){var i,r,o;!function(n,s){r=[e,t],i=s,o="function"==typeof i?i.apply(e,r):i,!(void 0!==o&&(t.exports=o))}(this,function(t,e){"use strict";var n={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",queue:[],maxQueueSize:1,queueTimeout:1e3,timeoutId:null,csrfToken:"",setProperty:function(t,e){e&&(this[t]=e)},setTrackingUrl:function(t){this.setProperty("globalTrackingUrl",t)},setAppId:function(t){this.setProperty("globalTrackingAppId",t)},setCsrfToken:function(t){this.setProperty("csrfToken",t)},getCookieString:function(){return document.cookie},getCsrfToken:function(){for(var t="JSESSIONID=",e=this.getCookieString().split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1);if(i.indexOf(t)!==-1){var r=i.substring(t.length,i.length);return'"'===r[0]&&'"'===r[r.length-1]&&(r=r.substring(1,r.length-1)),r}}return""},createXmlHttpObject:function(){try{return new XMLHttpRequest}catch(t){}return null},ajax:function(t,e,n){var i;return this.globalTrackingUrl?(i=this.createXmlHttpObject(),void(i&&(i.open(this.AJAX_METHOD,this.globalTrackingUrl,!0),i.withCredentials=!0,i.setRequestHeader("Content-type","application/json"),this.csrfToken?i.setRequestHeader("Csrf-Token",this.csrfToken):i.setRequestHeader("Csrf-Token",this.getCsrfToken()),i.onreadystatechange=function(){if(4===i.readyState)return 200!==i.status&&304!==i.status?void(n&&n("Request returned "+i.status)):void("function"==typeof e&&e(i))},4!==i.readyState&&i.send(t)))):void(n&&n("Tracking url is not defined"))},flush:function(){var t=this;this.ajax(JSON.stringify(this.queue),null,t.logError),this.queue=[],clearTimeout(this.timeoutId),this.timeoutId=null},addToQueue:function(t){if(this.queue.push(t),this.queue.length>=this.maxQueueSize)return this.flush();if(!this.timeoutId){var e=this;this.timeoutId=setTimeout(function(){e.flush()},this.queueTimeout)}},sendEvent:function(t,e){this.addToQueue({eventInfo:this.populateEventInfo(t),eventBody:this.populateEventHeaders(e)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},populateEventInfo:function(t){return"string"==typeof t&&(t={eventName:t}),t&&"object"==typeof t?(t.appId||(t.appId=this.globalTrackingAppId),t):(this.logError("Event info must be object"),{})},populateEventHeaders:function(t){return t&&"object"==typeof t?t:(this.logError("Event body must be object"),{})},logError:function(t){var e=window.console;e&&e.error&&e.error(t)},init:function(){var t=this;this.setTrackingUrl(),this.setAppId(),"undefined"!=typeof window&&window&&window.addEventListener("beforeunload",function(){t.flush.call(t)})}};n.init(),e.exports=n})},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(7)],r=function(t,e,n){function i(){return o&&0!==o.length||(o=t("meta[name=pageKey]")),o}var r,o,s,a,l,c=t(n.IS_LISA_SELECTOR).outerHeight()+t(n.HEADER_BANNER_SELECTOR).outerHeight(),u=t(n.HEADER_NAV_SELECTOR).outerHeight(),h=c+u-1,d="pagekey-";return{get$Body:function(){return r&&0!==r.length||(r=t("body")),r},get$Document:function(){return s&&0!==s.length||(s=t(document)),s},get$Window:function(){return a&&0!==a.length||(a=t(window)),a},get$Head:function(){return l&&0!==l.length||(l=t("head")),l},getPathName:function(){return window.location.pathname},getPageKey:function(){var t=i();return t?t.attr("content"):""},setPageKey:function(t){var e=i(),n=this.get$Body();return e&&n&&(e.attr("content",t),n.attr("id",d+t)),e},updateUrlProtocol:function(t){return t.replace(/^https?:/,window.location.protocol)},readCookie:function(t){for(var e=encodeURIComponent(t)+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e))return decodeURIComponent(r.substring(e.length,r.length))}return null},getStickyHeaderOffsets:function(){return{top:c,subNav:u,subNavDown:h}},resetGlobalNav:function(){window.globalNav&&window.globalNav.reset&&window.globalNav.reset()},getNow:function(){return e.now()},longReplace:function(t,e,n){var i,r=new RegExp('"'+e+'"[ :]+"[0-9]+"');return i=t.replace(r,'"'+e+'":'+n)}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;/*!
	 * jQuery JavaScript Library v2.2.3
	 * http://jquery.com/
	 *
	 * Includes Sizzle.js
	 * http://sizzlejs.com/
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2016-04-05T19:26Z
	 */
!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function s(t){var e=!!t&&"length"in t&&t.length,n=ct.type(t);return"function"!==n&&!ct.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function a(t,e,n){if(ct.isFunction(e))return ct.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ct.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Et.test(e))return ct.filter(e,t,n);e=ct.filter(e,t)}return ct.grep(t,function(t){return it.call(e,t)>-1!==n})}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={};return ct.each(t.match(St)||[],function(t,n){e[n]=!0}),e}function u(){Z.removeEventListener("DOMContentLoaded",u),n.removeEventListener("load",u),ct.ready()}function h(){this.expando=ct.expando+h.uid++}function d(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(kt,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Nt.test(n)?ct.parseJSON(n):n)}catch(t){}It.set(t,e,n)}else n=void 0;return n}function f(t,e,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return ct.css(t,e,"")},l=a(),c=n&&n[3]||(ct.cssNumber[e]?"":"px"),u=(ct.cssNumber[e]||"px"!==c&&+l)&&Mt.exec(ct.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do o=o||".5",u/=o,ct.style(t,e,u+c);while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function p(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ct.nodeName(t,e)?ct.merge([t],n):n}function g(t,e){for(var n=0,i=t.length;n<i;n++)xt.set(t[n],"globalEval",!e||xt.get(e[n],"globalEval"))}function v(t,e,n,i,r){for(var o,s,a,l,c,u,h=e.createDocumentFragment(),d=[],f=0,v=t.length;f<v;f++)if(o=t[f],o||0===o)if("object"===ct.type(o))ct.merge(d,o.nodeType?[o]:o);else if(Ft.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(Ut.exec(o)||["",""])[1].toLowerCase(),l=Ht[a]||Ht._default,s.innerHTML=l[1]+ct.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;ct.merge(d,s.childNodes),s=h.firstChild,s.textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(i&&ct.inArray(o,i)>-1)r&&r.push(o);else if(c=ct.contains(o.ownerDocument,o),s=p(h.appendChild(o),"script"),c&&g(s),n)for(u=0;o=s[u++];)Vt.test(o.type||"")&&n.push(o);return h}function m(){return!0}function y(){return!1}function E(){try{return Z.activeElement}catch(t){}}function w(t,e,n,i,r,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)w(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=y;else if(!r)return t;return 1===o&&(s=r,r=function(t){return ct().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ct.guid++)),t.each(function(){ct.event.add(this,e,r,i,n)})}function _(t,e){return ct.nodeName(t,"table")&&ct.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function T(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Yt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function C(t,e){var n,i,r,o,s,a,l,c;if(1===e.nodeType){if(xt.hasData(t)&&(o=xt.access(t),s=xt.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;n<i;n++)ct.event.add(e,r,c[r][n])}It.hasData(t)&&(a=It.access(t),l=ct.extend({},a),It.set(e,l))}}function S(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function A(t,e,n,i){e=et.apply([],e);var r,o,s,a,l,c,u=0,h=t.length,d=h-1,f=e[0],g=ct.isFunction(f);if(g||h>1&&"string"==typeof f&&!at.checkClone&&Gt.test(f))return t.each(function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),A(o,e,n,i)});if(h&&(r=v(e,t[0].ownerDocument,!1,t,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=ct.map(p(r,"script"),T),a=s.length;u<h;u++)l=r,u!==d&&(l=ct.clone(l,!0,!0),a&&ct.merge(s,p(l,"script"))),n.call(t[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,ct.map(s,b),u=0;u<a;u++)l=s[u],Vt.test(l.type||"")&&!xt.access(l,"globalEval")&&ct.contains(c,l)&&(l.src?ct._evalUrl&&ct._evalUrl(l.src):ct.globalEval(l.textContent.replace($t,"")))}return t}function O(t,e,n){for(var i,r=e?ct.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||ct.cleanData(p(i)),i.parentNode&&(n&&ct.contains(i.ownerDocument,i)&&g(p(i,"script")),i.parentNode.removeChild(i));return t}function R(t,e){var n=ct(e.createElement(t)).appendTo(e.body),i=ct.css(n[0],"display");return n.detach(),i}function x(t){var e=Z,n=Jt[t];return n||(n=R(t,e),"none"!==n&&n||(Xt=(Xt||ct("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Xt[0].contentDocument,e.write(),e.close(),n=R(t,e),Xt.detach()),Jt[t]=n),n}function I(t,e,n){var i,r,o,s,a=t.style;return n=n||te(t),s=n?n.getPropertyValue(e)||n[e]:void 0,""!==s&&void 0!==s||ct.contains(t.ownerDocument,t)||(s=ct.style(t,e)),n&&!at.pixelMarginRight()&&Zt.test(s)&&Qt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function N(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t){if(t in ae)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=se.length;n--;)if(t=se[n]+e,t in ae)return t}function L(t,e,n){var i=Mt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function M(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ct.css(t,n+Dt[o],!0,r)),i?("content"===n&&(s-=ct.css(t,"padding"+Dt[o],!0,r)),"margin"!==n&&(s-=ct.css(t,"border"+Dt[o]+"Width",!0,r))):(s+=ct.css(t,"padding"+Dt[o],!0,r),"padding"!==n&&(s+=ct.css(t,"border"+Dt[o]+"Width",!0,r)));return s}function D(t,e,i){var r=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=te(t),a="border-box"===ct.css(t,"boxSizing",!1,s);if(Z.msFullscreenElement&&n.top!==n&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[e])),o<=0||null==o){if(o=I(t,e,s),(o<0||null==o)&&(o=t.style[e]),Zt.test(o))return o;r=a&&(at.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+M(t,e,i||(a?"border":"content"),r,s)+"px"}function B(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)i=t[s],i.style&&(o[s]=xt.get(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&Bt(i)&&(o[s]=xt.access(i,"olddisplay",x(i.nodeName)))):(r=Bt(i),"none"===n&&r||xt.set(i,"olddisplay",r?n:ct.css(i,"display"))));for(s=0;s<a;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function P(t,e,n,i,r){return new P.prototype.init(t,e,n,i,r)}function U(){return n.setTimeout(function(){le=void 0}),le=ct.now()}function V(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Dt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function H(t,e,n){for(var i,r=(z.tweeners[e]||[]).concat(z.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function F(t,e,n){var i,r,o,s,a,l,c,u,h=this,d={},f=t.style,p=t.nodeType&&Bt(t),g=xt.get(t,"fxshow");n.queue||(a=ct._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,ct.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=ct.css(t,"display"),u="none"===c?xt.get(t,"olddisplay")||x(t.nodeName):c,"inline"===u&&"none"===ct.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],ue.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;p=!0}d[i]=g&&g[i]||ct.style(t,i)}else c=void 0;if(ct.isEmptyObject(d))"inline"===("none"===c?x(t.nodeName):c)&&(f.display=c);else{g?"hidden"in g&&(p=g.hidden):g=xt.access(t,"fxshow",{}),o&&(g.hidden=!p),p?ct(t).show():h.done(function(){ct(t).hide()}),h.done(function(){var e;xt.remove(t,"fxshow");for(e in d)ct.style(t,e,d[e])});for(i in d)s=H(p?g[i]:0,i,h),i in g||(g[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function j(t,e){var n,i,r,o,s;for(n in t)if(i=ct.camelCase(n),r=e[i],o=t[n],ct.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),s=ct.cssHooks[i],s&&"expand"in s){o=s.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function z(t,e,n){var i,r,o=0,s=z.prefilters.length,a=ct.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=le||U(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,s=0,l=c.tweens.length;s<l;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),o<1&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ct.extend({},e),opts:ct.extend(!0,{specialEasing:{},easing:ct.easing._default},n),originalProperties:e,originalOptions:n,startTime:le||U(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ct.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(j(u,c.opts.specialEasing);o<s;o++)if(i=z.prefilters[o].call(c,t,u,c.opts))return ct.isFunction(i.stop)&&(ct._queueHooks(c.elem,c.opts.queue).stop=ct.proxy(i.stop,i)),i;return ct.map(u,H,c),ct.isFunction(c.opts.start)&&c.opts.start.call(t,c),ct.fx.timer(ct.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function q(t){return t.getAttribute&&t.getAttribute("class")||""}function K(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(St)||[];if(ct.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function W(t,e,n,i){function r(a){var l;return o[a]=!0,ct.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},s=t===Ie;return r(e.dataTypes[0])||!o["*"]&&r("*")}function G(t,e){var n,i,r=ct.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&ct.extend(!0,t,i),t}function Y(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}function $(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=c[l+" "+o]||c["* "+o],!s)for(r in c)if(a=r.split(" "),a[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[r]:c[r]!==!0&&(o=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function X(t,e,n,i){var r;if(ct.isArray(e))ct.each(e,function(e,r){n||Me.test(t)?i(t,r):X(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==ct.type(e))i(t,e);else for(r in e)X(t+"["+r+"]",e[r],n,i)}function J(t){return ct.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Q=[],Z=n.document,tt=Q.slice,et=Q.concat,nt=Q.push,it=Q.indexOf,rt={},ot=rt.toString,st=rt.hasOwnProperty,at={},lt="2.2.3",ct=function(t,e){return new ct.fn.init(t,e)},ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ht=/^-ms-/,dt=/-([\da-z])/gi,ft=function(t,e){return e.toUpperCase()};ct.fn=ct.prototype={jquery:lt,constructor:ct,selector:"",length:0,toArray:function(){return tt.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:tt.call(this)},pushStack:function(t){var e=ct.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ct.each(this,t)},map:function(t){return this.pushStack(ct.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(tt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:nt,sort:Q.sort,splice:Q.splice},ct.extend=ct.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ct.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],i=t[e],s!==i&&(c&&i&&(ct.isPlainObject(i)||(r=ct.isArray(i)))?(r?(r=!1,o=n&&ct.isArray(n)?n:[]):o=n&&ct.isPlainObject(n)?n:{},s[e]=ct.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},ct.extend({expando:"jQuery"+(lt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ct.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ct.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ct.type(t)||t.nodeType||ct.isWindow(t))return!1;if(t.constructor&&!st.call(t,"constructor")&&!st.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||st.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[ot.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ct.trim(t),t&&(1===t.indexOf("use strict")?(e=Z.createElement("script"),e.text=t,Z.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ht,"ms-").replace(dt,ft)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(s(t))for(n=t.length;i<n&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ut,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(s(Object(t))?ct.merge(n,"string"==typeof t?[t]:t):nt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:it.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],o=0,s=t.length,a=!n;o<s;o++)i=!e(t[o],o),i!==a&&r.push(t[o]);return r},map:function(t,e,n){var i,r,o=0,a=[];if(s(t))for(i=t.length;o<i;o++)r=e(t[o],o,n),null!=r&&a.push(r);else for(o in t)r=e(t[o],o,n),null!=r&&a.push(r);return et.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),ct.isFunction(t))return i=tt.call(arguments,2),r=function(){return t.apply(e||this,i.concat(tt.call(arguments)))},r.guid=t.guid=t.guid||ct.guid++,r},now:Date.now,support:at}),"function"==typeof Symbol&&(ct.fn[Symbol.iterator]=Q[Symbol.iterator]),ct.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){rt["[object "+e+"]"]=e.toLowerCase()});var pt=/*!
	 * Sizzle CSS Selector Engine v2.2.1
	 * http://sizzlejs.com/
	 *
	 * Copyright jQuery Foundation and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2015-10-17
	 */
function(t){function e(t,e,n,i){var r,o,s,a,l,c,h,f,p=e&&e.ownerDocument,g=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return n;if(!i&&((e?e.ownerDocument||e:H)!==k&&N(e),e=e||k,M)){if(11!==g&&(c=mt.exec(t)))if(r=c[1]){if(9===g){if(!(s=e.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(p&&(s=p.getElementById(r))&&U(e,s)&&s.id===r)return n.push(s),n}else{if(c[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&_.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(r)),n}if(_.qsa&&!K[t+" "]&&(!D||!D.test(t))){if(1!==g)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(Et,"\\$&"):e.setAttribute("id",a=V),h=S(t),o=h.length,l=dt.test(a)?"#"+a:"[id='"+a+"']";o--;)h[o]=l+" "+d(h[o]);f=h.join(","),p=yt.test(t)&&u(e.parentNode)||e}if(f)try{return Q.apply(n,p.querySelectorAll(f)),n}catch(t){}finally{a===V&&e.removeAttribute("id")}}}return O(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>T.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[V]=!0,t}function r(t){var e=k.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=j++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,c,u=[F,o];if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(c=e[V]||(e[V]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(a=l[i])&&a[0]===F&&a[1]===o)return u[2]=a[2];if(l[i]=u,u[2]=t(e,n,s))return!0}}}function p(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function v(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function m(t,e,n,r,o,s){return r&&!r[V]&&(r=m(r)),o&&!o[V]&&(o=m(o,s)),i(function(i,s,a,l){var c,u,h,d=[],f=[],p=s.length,m=i||g(e||"*",a.nodeType?[a]:a,[]),y=!t||!i&&e?m:v(m,d,t,a,l),E=n?o||(i?t:p||r)?[]:s:y;if(n&&n(y,E,a,l),r)for(c=v(E,f),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(E[f[u]]=!(y[f[u]]=h));if(i){if(o||t){if(o){for(c=[],u=E.length;u--;)(h=E[u])&&c.push(y[u]=h);o(null,E=[],c,l)}for(u=E.length;u--;)(h=E[u])&&(c=o?tt(i,h):d[u])>-1&&(i[c]=!(s[c]=h))}}else E=v(E===s?E.splice(p,E.length):E),o?o(null,s,E,l):Q.apply(s,E)})}function y(t){for(var e,n,i,r=t.length,o=T.relative[t[0].type],s=o||T.relative[" "],a=o?1:0,l=f(function(t){return t===e},s,!0),c=f(function(t){return tt(e,t)>-1},s,!0),u=[function(t,n,i){var r=!o&&(i||n!==R)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];a<r;a++)if(n=T.relative[t[a].type])u=[f(p(u),n)];else{if(n=T.filter[t[a].type].apply(null,t[a].matches),n[V]){for(i=++a;i<r&&!T.relative[t[i].type];i++);return m(a>1&&p(u),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<i&&y(t.slice(a,i)),i<r&&y(t=t.slice(i)),i<r&&d(t))}u.push(n)}return p(u)}function E(t,n){var r=n.length>0,o=t.length>0,s=function(i,s,a,l,c){var u,h,d,f=0,p="0",g=i&&[],m=[],y=R,E=i||o&&T.find.TAG("*",c),w=F+=null==y?1:Math.random()||.1,_=E.length;for(c&&(R=s===k||s||c);p!==_&&null!=(u=E[p]);p++){if(o&&u){for(h=0,s||u.ownerDocument===k||(N(u),a=!M);d=t[h++];)if(d(u,s||k,a)){l.push(u);break}c&&(F=w)}r&&((u=!d&&u)&&f--,i&&g.push(u))}if(f+=p,r&&p!==f){for(h=0;d=n[h++];)d(g,m,s,a);if(i){if(f>0)for(;p--;)g[p]||m[p]||(m[p]=X.call(l));m=v(m)}Q.apply(l,m),c&&!i&&m.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(F=w,R=y),g};return r?i(s):s}var w,_,T,b,C,S,A,O,R,x,I,N,k,L,M,D,B,P,U,V="sizzle"+1*new Date,H=t.document,F=0,j=0,z=n(),q=n(),K=n(),W=function(t,e){return t===e&&(I=!0),0},G=1<<31,Y={}.hasOwnProperty,$=[],X=$.pop,J=$.push,Q=$.push,Z=$.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",ot=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(ot),dt=new RegExp("^"+it+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,Et=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Tt=function(){N()};try{Q.apply($=Z.call(H.childNodes),H.childNodes),$[H.childNodes.length].nodeType}catch(t){Q={apply:$.length?function(t,e){J.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},N=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:H;return i!==k&&9===i.nodeType&&i.documentElement?(k=i,L=k.documentElement,M=!C(k),(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Tt,!1):n.attachEvent&&n.attachEvent("onunload",Tt)),_.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=r(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=vt.test(k.getElementsByClassName),_.getById=r(function(t){return L.appendChild(t).id=V,!k.getElementsByName||!k.getElementsByName(V).length}),_.getById?(T.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&M){var n=e.getElementById(t);return n?[n]:[]}},T.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){return t.getAttribute("id")===e}}):(delete T.find.ID,T.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),T.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},T.find.CLASS=_.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&M)return e.getElementsByClassName(t)},B=[],D=[],(_.qsa=vt.test(k.querySelectorAll))&&(r(function(t){L.appendChild(t).innerHTML="<a id='"+V+"'></a><select id='"+V+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&D.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+V+"-]").length||D.push("~="),t.querySelectorAll(":checked").length||D.push(":checked"),t.querySelectorAll("a#"+V+"+*").length||D.push(".#.+[+~]")}),r(function(t){var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(_.matchesSelector=vt.test(P=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&r(function(t){_.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),B.push("!=",ot)}),D=D.length&&new RegExp(D.join("|")),B=B.length&&new RegExp(B.join("|")),e=vt.test(L.compareDocumentPosition),U=e||vt.test(L.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return I=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===k||t.ownerDocument===H&&U(H,t)?-1:e===k||e.ownerDocument===H&&U(H,e)?1:x?tt(x,t)-tt(x,e):0:4&n?-1:1)}:function(t,e){if(t===e)return I=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===k?-1:e===k?1:r?-1:o?1:x?tt(x,t)-tt(x,e):0;if(r===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===H?-1:l[i]===H?1:0},k):k},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==k&&N(t),n=n.replace(ut,"='$1']"),_.matchesSelector&&M&&!K[n+" "]&&(!B||!B.test(n))&&(!D||!D.test(n)))try{var i=P.call(t,n);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,k,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==k&&N(t),U(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==k&&N(t);var n=T.attrHandle[e.toLowerCase()],i=n&&Y.call(T.attrHandle,e.toLowerCase())?n(t,e,!M):void 0;return void 0!==i?i:_.attributes||!M?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(I=!_.detectDuplicates,x=!_.sortStable&&t.slice(0),t.sort(W),I){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return x=null,t},b=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=b(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=b(e);return n},T=e.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=S(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&z(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(st," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,d,f,p,g=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a,E=!1;if(v){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?v.firstChild:v.lastChild],s&&y){for(d=v,h=d[V]||(d[V]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[t]||[],f=c[0]===F&&c[1],E=f&&c[2],d=f&&v.childNodes[f];d=++f&&d&&d[g]||(E=f=0)||p.pop();)if(1===d.nodeType&&++E&&d===e){u[t]=[F,f,E];break}}else if(y&&(d=e,h=d[V]||(d[V]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[t]||[],f=c[0]===F&&c[1],E=f),E===!1)for(;(d=++f&&d&&d[g]||(E=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++E||(y&&(h=d[V]||(d[V]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),u[t]=[F,E]),d!==e)););return E-=r,E===i||E%i===0&&E/i>=0}}},PSEUDO:function(t,n){var r,o=T.pseudos[t]||T.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[V]?o(n):o.length>1?(r=[t,t,"",n],T.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)i=tt(t,r[s]),t[i]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=A(t.replace(at,"$1"));return r[V]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(wt,_t),function(e){return(e.textContent||e.innerText||b(e)).indexOf(t)>-1}}),lang:i(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,_t).toLowerCase(),function(e){var n;do if(n=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===L},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!T.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[n<0?n+e:n]}),even:c(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},T.pseudos.nth=T.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})T.pseudos[w]=l(w);return h.prototype=T.filters=T.pseudos,T.setFilters=new h,S=e.tokenize=function(t,n){var i,r,o,s,a,l,c,u=q[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=T.preFilter;a;){i&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ct.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(at," ")}),a=a.slice(i.length));for(s in T.filter)!(r=ft[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):q(t,l).slice(0)},A=e.compile=function(t,e){var n,i=[],r=[],o=K[t+" "];if(!o){for(e||(e=S(t)),n=e.length;n--;)o=y(e[n]),o[V]?i.push(o):r.push(o);o=K(t,E(r,i)),o.selector=t}return o},O=e.select=function(t,e,n,i){var r,o,s,a,l,c="function"==typeof t&&t,h=!i&&S(t=c.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&_.getById&&9===e.nodeType&&M&&T.relative[o[1].type]){if(e=(T.find.ID(s.matches[0].replace(wt,_t),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!T.relative[a=s.type]);)if((l=T.find[a])&&(i=l(s.matches[0].replace(wt,_t),yt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&d(o),!t)return Q.apply(n,i),n;break}}return(c||A(t,h))(i,e,!M,n,!e||yt.test(t)&&u(e.parentNode)||e),n},_.sortStable=V.split("").sort(W).join("")===V,_.detectDuplicates=!!I,N(),_.sortDetached=r(function(t){return 1&t.compareDocumentPosition(k.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);ct.find=pt,ct.expr=pt.selectors,ct.expr[":"]=ct.expr.pseudos,ct.uniqueSort=ct.unique=pt.uniqueSort,ct.text=pt.getText,ct.isXMLDoc=pt.isXML,ct.contains=pt.contains;var gt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ct(t).is(n))break;i.push(t)}return i},vt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},mt=ct.expr.match.needsContext,yt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Et=/^.[^:#\[\.,]*$/;ct.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ct.find.matchesSelector(i,t)?[i]:[]:ct.find.matches(t,ct.grep(e,function(t){return 1===t.nodeType}))},ct.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(ct(t).filter(function(){for(e=0;e<n;e++)if(ct.contains(r[e],this))return!0}));for(e=0;e<n;e++)ct.find(t,r[e],i);return i=this.pushStack(n>1?ct.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&mt.test(t)?ct(t):t||[],!1).length}});var wt,_t=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Tt=ct.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||wt,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:_t.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof ct?e[0]:e,ct.merge(this,ct.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Z,!0)),yt.test(i[1])&&ct.isPlainObject(e))for(i in e)ct.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=Z.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=Z,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ct.isFunction(t)?void 0!==n.ready?n.ready(t):t(ct):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ct.makeArray(t,this))};Tt.prototype=ct.fn,wt=ct(Z);var bt=/^(?:parents|prev(?:Until|All))/,Ct={children:!0,contents:!0,next:!0,prev:!0};ct.fn.extend({has:function(t){var e=ct(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ct.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=mt.test(t)||"string"!=typeof t?ct(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ct.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ct.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?it.call(ct(t),this[0]):it.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ct.uniqueSort(ct.merge(this.get(),ct(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ct.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return gt(t,"parentNode")},parentsUntil:function(t,e,n){return gt(t,"parentNode",n)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return gt(t,"nextSibling")},prevAll:function(t){return gt(t,"previousSibling")},nextUntil:function(t,e,n){return gt(t,"nextSibling",n)},prevUntil:function(t,e,n){return gt(t,"previousSibling",n)},siblings:function(t){return vt((t.parentNode||{}).firstChild,t)},children:function(t){return vt(t.firstChild)},contents:function(t){return t.contentDocument||ct.merge([],t.childNodes)}},function(t,e){ct.fn[t]=function(n,i){var r=ct.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ct.filter(i,r)),this.length>1&&(Ct[t]||ct.uniqueSort(r),bt.test(t)&&r.reverse()),this.pushStack(r)}});var St=/\S+/g;ct.Callbacks=function(t){t="string"==typeof t?c(t):ct.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)o[a].apply(n[0],n[1])===!1&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){ct.each(n,function(n,i){ct.isFunction(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==ct.type(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return ct.each(arguments,function(t,e){for(var n;(n=ct.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?ct.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},ct.extend({Deferred:function(t){var e=[["resolve","done",ct.Callbacks("once memory"),"resolved"],["reject","fail",ct.Callbacks("once memory"),"rejected"],["notify","progress",ct.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ct.Deferred(function(n){ct.each(e,function(e,o){var s=ct.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ct.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ct.extend(t,i):i}},r={};return i.pipe=i.then,ct.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=tt.call(arguments),s=o.length,a=1!==s||t&&ct.isFunction(t.promise)?s:0,l=1===a?t:ct.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?tt.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&ct.isFunction(o[r].promise)?o[r].promise().progress(c(r,n,e)).done(c(r,i,o)).fail(l.reject):--a;return a||l.resolveWith(i,o),l.promise()}});var At;ct.fn.ready=function(t){return ct.ready.promise().done(t),this},ct.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ct.readyWait++:ct.ready(!0)},ready:function(t){(t===!0?--ct.readyWait:ct.isReady)||(ct.isReady=!0,t!==!0&&--ct.readyWait>0||(At.resolveWith(Z,[ct]),ct.fn.triggerHandler&&(ct(Z).triggerHandler("ready"),ct(Z).off("ready"))))}}),ct.ready.promise=function(t){return At||(At=ct.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?n.setTimeout(ct.ready):(Z.addEventListener("DOMContentLoaded",u),n.addEventListener("load",u))),At.promise(t)},ct.ready.promise();var Ot=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===ct.type(n)){r=!0;for(a in n)Ot(t,e,a,n[a],!0,o,s)}else if(void 0!==i&&(r=!0,ct.isFunction(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(ct(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},Rt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};h.uid=1,h.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!Rt(t))return{};var e=t[this.expando];return e||(e={},Rt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,ct.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ct.isArray(e)?i=e.concat(e.map(ct.camelCase)):(r=ct.camelCase(e),e in o?i=[e,r]:(i=r,i=i in o?[i]:i.match(St)||[])),n=i.length;for(;n--;)delete o[i[n]]}(void 0===e||ct.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ct.isEmptyObject(e)}};var xt=new h,It=new h,Nt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,kt=/[A-Z]/g;ct.extend({hasData:function(t){return It.hasData(t)||xt.hasData(t)},data:function(t,e,n){return It.access(t,e,n)},removeData:function(t,e){It.remove(t,e)},_data:function(t,e,n){return xt.access(t,e,n)},_removeData:function(t,e){xt.remove(t,e)}}),ct.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=It.get(o),1===o.nodeType&&!xt.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=ct.camelCase(i.slice(5)),d(o,i,r[i])));xt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){It.set(this,t)}):Ot(this,function(e){var n,i;if(o&&void 0===e){if(n=It.get(o,t)||It.get(o,t.replace(kt,"-$&").toLowerCase()),void 0!==n)return n;if(i=ct.camelCase(t),n=It.get(o,i),void 0!==n)return n;if(n=d(o,i,void 0),void 0!==n)return n}else i=ct.camelCase(t),this.each(function(){var n=It.get(this,i);It.set(this,i,e),t.indexOf("-")>-1&&void 0!==n&&It.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){It.remove(this,t)})}}),ct.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=xt.get(t,e),n&&(!i||ct.isArray(n)?i=xt.access(t,e,ct.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=ct.queue(t,e),i=n.length,r=n.shift(),o=ct._queueHooks(t,e),s=function(){ct.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return xt.get(t,n)||xt.access(t,n,{empty:ct.Callbacks("once memory").add(function(){xt.remove(t,[e+"queue",n])})})}}),ct.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ct.queue(this[0],t):void 0===e?this:this.each(function(){var n=ct.queue(this,t,e);ct._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ct.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ct.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=ct.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=xt.get(o[s],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var Lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Mt=new RegExp("^(?:([+-])=|)("+Lt+")([a-z%]*)$","i"),Dt=["Top","Right","Bottom","Left"],Bt=function(t,e){return t=e||t,"none"===ct.css(t,"display")||!ct.contains(t.ownerDocument,t)},Pt=/^(?:checkbox|radio)$/i,Ut=/<([\w:-]+)/,Vt=/^$|\/(?:java|ecma)script/i,Ht={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ht.optgroup=Ht.option,Ht.tbody=Ht.tfoot=Ht.colgroup=Ht.caption=Ht.thead,Ht.th=Ht.td;var Ft=/<|&#?\w+;/;!function(){var t=Z.createDocumentFragment(),e=t.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),at.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var jt=/^key/,zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=/^([^.]*)(?:\.(.+)|)/;ct.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,v=xt.get(t);if(v)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=ct.guid++),(l=v.events)||(l=v.events={}),(s=v.handle)||(s=v.handle=function(e){return"undefined"!=typeof ct&&ct.event.triggered!==e.type?ct.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(St)||[""],c=e.length;c--;)a=qt.exec(e[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f&&(h=ct.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=ct.event.special[f]||{},u=ct.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ct.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||(d=l[f]=[],d.delegateCount=0,h.setup&&h.setup.call(t,i,p,s)!==!1||t.addEventListener&&t.addEventListener(f,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),ct.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,v=xt.hasData(t)&&xt.get(t);if(v&&(l=v.events)){for(e=(e||"").match(St)||[""],c=e.length;c--;)if(a=qt.exec(e[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(h=ct.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,d=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),
u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));s&&!d.length&&(h.teardown&&h.teardown.call(t,p,v.handle)!==!1||ct.removeEvent(t,f,v.handle),delete l[f])}else for(f in l)ct.event.remove(t,f+e[c],n,i,!0);ct.isEmptyObject(l)&&xt.remove(t,"handle events")}},dispatch:function(t){t=ct.event.fix(t);var e,n,i,r,o,s=[],a=tt.call(arguments),l=(xt.get(this,"events")||{})[t.type]||[],c=ct.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=ct.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,i=((ct.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(i=[],n=0;n<a;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?ct(r,this).index(l)>-1:ct.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||Z,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ct.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=zt.test(r)?this.mouseHooks:jt.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new ct.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=Z),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==E()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===E()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ct.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ct.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ct.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ct.Event=function(t,e){return this instanceof ct.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?m:y):this.type=t,e&&ct.extend(this,e),this.timeStamp=t&&t.timeStamp||ct.now(),void(this[ct.expando]=!0)):new ct.Event(t,e)},ct.Event.prototype={constructor:ct.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=m,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=m,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=m,t&&t.stopImmediatePropagation(),this.stopPropagation()}},ct.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ct.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||ct.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ct.fn.extend({on:function(t,e,n,i){return w(this,t,e,n,i)},one:function(t,e,n,i){return w(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ct(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=y),this.each(function(){ct.event.remove(this,t,n,e)})}});var Kt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Wt=/<script|<style|<link/i,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^true\/(.*)/,$t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ct.extend({htmlPrefilter:function(t){return t.replace(Kt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=ct.contains(t.ownerDocument,t);if(!(at.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ct.isXMLDoc(t)))for(s=p(a),o=p(t),i=0,r=o.length;i<r;i++)S(o[i],s[i]);if(e)if(n)for(o=o||p(t),s=s||p(a),i=0,r=o.length;i<r;i++)C(o[i],s[i]);else C(t,a);return s=p(a,"script"),s.length>0&&g(s,!l&&p(t,"script")),a},cleanData:function(t){for(var e,n,i,r=ct.event.special,o=0;void 0!==(n=t[o]);o++)if(Rt(n)){if(e=n[xt.expando]){if(e.events)for(i in e.events)r[i]?ct.event.remove(n,i):ct.removeEvent(n,i,e.handle);n[xt.expando]=void 0}n[It.expando]&&(n[It.expando]=void 0)}}}),ct.fn.extend({domManip:A,detach:function(t){return O(this,t,!0)},remove:function(t){return O(this,t)},text:function(t){return Ot(this,function(t){return void 0===t?ct.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return A(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.appendChild(t)}})},prepend:function(){return A(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ct.cleanData(p(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ct.clone(this,t,e)})},html:function(t){return Ot(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Wt.test(t)&&!Ht[(Ut.exec(t)||["",""])[1].toLowerCase()]){t=ct.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(ct.cleanData(p(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return A(this,arguments,function(e){var n=this.parentNode;ct.inArray(this,t)<0&&(ct.cleanData(p(this)),n&&n.replaceChild(e,this))},t)}}),ct.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ct.fn[t]=function(t){for(var n,i=[],r=ct(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),ct(r[s])[e](n),nt.apply(i,n.get());return this.pushStack(i)}});var Xt,Jt={HTML:"block",BODY:"block"},Qt=/^margin/,Zt=new RegExp("^("+Lt+")(?!px)[a-z%]+$","i"),te=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},ee=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r},ne=Z.documentElement;!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",ne.appendChild(s);var t=n.getComputedStyle(a);e="1%"!==t.top,o="2px"===t.marginLeft,i="4px"===t.width,a.style.marginRight="50%",r="4px"===t.marginRight,ne.removeChild(s)}var e,i,r,o,s=Z.createElement("div"),a=Z.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",at.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ct.extend(at,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),r},reliableMarginLeft:function(){return null==i&&t(),o},reliableMarginRight:function(){var t,e=a.appendChild(Z.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",ne.appendChild(s),t=!parseFloat(n.getComputedStyle(e).marginRight),ne.removeChild(s),a.removeChild(e),t}}))}();var ie=/^(none|table(?!-c[ea]).+)/,re={position:"absolute",visibility:"hidden",display:"block"},oe={letterSpacing:"0",fontWeight:"400"},se=["Webkit","O","Moz","ms"],ae=Z.createElement("div").style;ct.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=I(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=ct.camelCase(e),l=t.style;return e=ct.cssProps[a]||(ct.cssProps[a]=k(a)||a),s=ct.cssHooks[e]||ct.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e]:(o=typeof n,"string"===o&&(r=Mt.exec(n))&&r[1]&&(n=f(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(ct.cssNumber[a]?"":"px")),at.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l[e]=n)),void 0)}},css:function(t,e,n,i){var r,o,s,a=ct.camelCase(e);return e=ct.cssProps[a]||(ct.cssProps[a]=k(a)||a),s=ct.cssHooks[e]||ct.cssHooks[a],s&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=I(t,e,i)),"normal"===r&&e in oe&&(r=oe[e]),""===n||n?(o=parseFloat(r),n===!0||isFinite(o)?o||0:r):r}}),ct.each(["height","width"],function(t,e){ct.cssHooks[e]={get:function(t,n,i){if(n)return ie.test(ct.css(t,"display"))&&0===t.offsetWidth?ee(t,re,function(){return D(t,e,i)}):D(t,e,i)},set:function(t,n,i){var r,o=i&&te(t),s=i&&M(t,e,i,"border-box"===ct.css(t,"boxSizing",!1,o),o);return s&&(r=Mt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=ct.css(t,e)),L(t,n,s)}}}),ct.cssHooks.marginLeft=N(at.reliableMarginLeft,function(t,e){if(e)return(parseFloat(I(t,"marginLeft"))||t.getBoundingClientRect().left-ee(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ct.cssHooks.marginRight=N(at.reliableMarginRight,function(t,e){if(e)return ee(t,{display:"inline-block"},I,[t,"marginRight"])}),ct.each({margin:"",padding:"",border:"Width"},function(t,e){ct.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Dt[i]+e]=o[i]||o[i-2]||o[0];return r}},Qt.test(t)||(ct.cssHooks[t+e].set=L)}),ct.fn.extend({css:function(t,e){return Ot(this,function(t,e,n){var i,r,o={},s=0;if(ct.isArray(e)){for(i=te(t),r=e.length;s<r;s++)o[e[s]]=ct.css(t,e[s],!1,i);return o}return void 0!==n?ct.style(t,e,n):ct.css(t,e)},t,e,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Bt(this)?ct(this).show():ct(this).hide()})}}),ct.Tween=P,P.prototype={constructor:P,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||ct.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(ct.cssNumber[n]?"":"px")},cur:function(){var t=P.propHooks[this.prop];return t&&t.get?t.get(this):P.propHooks._default.get(this)},run:function(t){var e,n=P.propHooks[this.prop];return this.options.duration?this.pos=e=ct.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ct.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ct.fx.step[t.prop]?ct.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ct.cssProps[t.prop]]&&!ct.cssHooks[t.prop]?t.elem[t.prop]=t.now:ct.style(t.elem,t.prop,t.now+t.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ct.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ct.fx=P.prototype.init,ct.fx.step={};var le,ce,ue=/^(?:toggle|show|hide)$/,he=/queueHooks$/;ct.Animation=ct.extend(z,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return f(n.elem,t,Mt.exec(e),n),n}]},tweener:function(t,e){ct.isFunction(t)?(e=t,t=["*"]):t=t.match(St);for(var n,i=0,r=t.length;i<r;i++)n=t[i],z.tweeners[n]=z.tweeners[n]||[],z.tweeners[n].unshift(e)},prefilters:[F],prefilter:function(t,e){e?z.prefilters.unshift(t):z.prefilters.push(t)}}),ct.speed=function(t,e,n){var i=t&&"object"==typeof t?ct.extend({},t):{complete:n||!n&&e||ct.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ct.isFunction(e)&&e};return i.duration=ct.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ct.fx.speeds?ct.fx.speeds[i.duration]:ct.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){ct.isFunction(i.old)&&i.old.call(this),i.queue&&ct.dequeue(this,i.queue)},i},ct.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=ct.isEmptyObject(t),o=ct.speed(e,n,i),s=function(){var e=z(this,ct.extend({},t),o);(r||xt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=ct.timers,s=xt.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&he.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||ct.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=xt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=ct.timers,s=i?i.length:0;for(n.finish=!0,ct.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ct.each(["toggle","show","hide"],function(t,e){var n=ct.fn[e];ct.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(V(e,!0),t,i,r)}}),ct.each({slideDown:V("show"),slideUp:V("hide"),slideToggle:V("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ct.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ct.timers=[],ct.fx.tick=function(){var t,e=0,n=ct.timers;for(le=ct.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ct.fx.stop(),le=void 0},ct.fx.timer=function(t){ct.timers.push(t),t()?ct.fx.start():ct.timers.pop()},ct.fx.interval=13,ct.fx.start=function(){ce||(ce=n.setInterval(ct.fx.tick,ct.fx.interval))},ct.fx.stop=function(){n.clearInterval(ce),ce=null},ct.fx.speeds={slow:600,fast:200,_default:400},ct.fn.delay=function(t,e){return t=ct.fx?ct.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}})},function(){var t=Z.createElement("input"),e=Z.createElement("select"),n=e.appendChild(Z.createElement("option"));t.type="checkbox",at.checkOn=""!==t.value,at.optSelected=n.selected,e.disabled=!0,at.optDisabled=!n.disabled,t=Z.createElement("input"),t.value="t",t.type="radio",at.radioValue="t"===t.value}();var de,fe=ct.expr.attrHandle;ct.fn.extend({attr:function(t,e){return Ot(this,ct.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ct.removeAttr(this,t)})}}),ct.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ct.prop(t,e,n):(1===o&&ct.isXMLDoc(t)||(e=e.toLowerCase(),r=ct.attrHooks[e]||(ct.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void ct.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=ct.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!at.radioValue&&"radio"===e&&ct.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(St);if(o&&1===t.nodeType)for(;n=o[r++];)i=ct.propFix[n]||n,ct.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),de={set:function(t,e,n){return e===!1?ct.removeAttr(t,n):t.setAttribute(n,n),n}},ct.each(ct.expr.match.bool.source.match(/\w+/g),function(t,e){var n=fe[e]||ct.find.attr;fe[e]=function(t,e,i){var r,o;return i||(o=fe[e],fe[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,fe[e]=o),r}});var pe=/^(?:input|select|textarea|button)$/i,ge=/^(?:a|area)$/i;ct.fn.extend({prop:function(t,e){return Ot(this,ct.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ct.propFix[t]||t]})}}),ct.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ct.isXMLDoc(t)||(e=ct.propFix[e]||e,r=ct.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ct.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||ge.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),at.optSelected||(ct.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ct.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ct.propFix[this.toLowerCase()]=this});var ve=/[\t\r\n\f]/g;ct.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(ct.isFunction(t))return this.each(function(e){ct(this).addClass(t.call(this,e,q(this)))});if("string"==typeof t&&t)for(e=t.match(St)||[];n=this[l++];)if(r=q(n),i=1===n.nodeType&&(" "+r+" ").replace(ve," ")){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=ct.trim(i),r!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(ct.isFunction(t))return this.each(function(e){ct(this).removeClass(t.call(this,e,q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(St)||[];n=this[l++];)if(r=q(n),i=1===n.nodeType&&(" "+r+" ").replace(ve," ")){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a=ct.trim(i),r!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ct.isFunction(t)?this.each(function(n){ct(this).toggleClass(t.call(this,n,q(this),e),e)}):this.each(function(){var e,i,r,o;if("string"===n)for(i=0,r=ct(this),o=t.match(St)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=q(this),e&&xt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":xt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+q(n)+" ").replace(ve," ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g,ye=/[\x20\t\r\n\f]+/g;ct.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=ct.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,ct(this).val()):t,null==r?r="":"number"==typeof r?r+="":ct.isArray(r)&&(r=ct.map(r,function(t){return null==t?"":t+""})),e=ct.valHooks[this.type]||ct.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=ct.valHooks[r.type]||ct.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(me,""):null==n?"":n)}}}),ct.extend({valHooks:{option:{get:function(t){var e=ct.find.attr(t,"value");return null!=e?e:ct.trim(ct.text(t)).replace(ye," ")}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(n=i[l],(n.selected||l===r)&&(at.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ct.nodeName(n.parentNode,"optgroup"))){if(e=ct(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=ct.makeArray(e),s=r.length;s--;)i=r[s],(i.selected=ct.inArray(ct.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ct.each(["radio","checkbox"],function(){ct.valHooks[this]={set:function(t,e){if(ct.isArray(e))return t.checked=ct.inArray(ct(t).val(),e)>-1}},at.checkOn||(ct.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=/^(?:focusinfocus|focusoutblur)$/;ct.extend(ct.event,{trigger:function(t,e,i,r){var o,s,a,l,c,u,h,d=[i||Z],f=st.call(t,"type")?t.type:t,p=st.call(t,"namespace")?t.namespace.split("."):[];if(s=a=i=i||Z,3!==i.nodeType&&8!==i.nodeType&&!Ee.test(f+ct.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),c=f.indexOf(":")<0&&"on"+f,t=t[ct.expando]?t:new ct.Event(f,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:ct.makeArray(e,[t]),h=ct.event.special[f]||{},r||!h.trigger||h.trigger.apply(i,e)!==!1)){if(!r&&!h.noBubble&&!ct.isWindow(i)){for(l=h.delegateType||f,Ee.test(l+f)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(i.ownerDocument||Z)&&d.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?l:h.bindType||f,u=(xt.get(s,"events")||{})[t.type]&&xt.get(s,"handle"),u&&u.apply(s,e),u=c&&s[c],u&&u.apply&&Rt(s)&&(t.result=u.apply(s,e),t.result===!1&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),e)!==!1||!Rt(i)||c&&ct.isFunction(i[f])&&!ct.isWindow(i)&&(a=i[c],a&&(i[c]=null),ct.event.triggered=f,i[f](),ct.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(t,e,n){var i=ct.extend(new ct.Event,n,{type:t,isSimulated:!0});ct.event.trigger(i,null,e),i.isDefaultPrevented()&&n.preventDefault()}}),ct.fn.extend({trigger:function(t,e){return this.each(function(){ct.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ct.event.trigger(t,e,n,!0)}}),ct.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ct.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ct.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),at.focusin="onfocusin"in n,at.focusin||ct.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ct.event.simulate(e,t.target,ct.event.fix(t))};ct.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=xt.access(i,e);r||i.addEventListener(t,n,!0),xt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=xt.access(i,e)-1;r?xt.access(i,e,r):(i.removeEventListener(t,n,!0),xt.remove(i,e))}}});var we=n.location,_e=ct.now(),Te=/\?/;ct.parseJSON=function(t){return JSON.parse(t+"")},ct.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||ct.error("Invalid XML: "+t),e};var be=/#.*$/,Ce=/([?&])_=[^&]*/,Se=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ae=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Oe=/^(?:GET|HEAD)$/,Re=/^\/\//,xe={},Ie={},Ne="*/".concat("*"),ke=Z.createElement("a");ke.href=we.href,ct.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:Ae.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ct.parseJSON,"text xml":ct.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?G(G(t,ct.ajaxSettings),e):G(ct.ajaxSettings,t)},ajaxPrefilter:K(xe),ajaxTransport:K(Ie),ajax:function(t,e){function i(t,e,i,a){var c,h,y,E,_,b=e;2!==w&&(w=2,l&&n.clearTimeout(l),r=void 0,s=a||"",T.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(E=Y(d,T,i)),E=$(d,E,T,c),c?(d.ifModified&&(_=T.getResponseHeader("Last-Modified"),_&&(ct.lastModified[o]=_),_=T.getResponseHeader("etag"),_&&(ct.etag[o]=_)),204===t||"HEAD"===d.type?b="nocontent":304===t?b="notmodified":(b=E.state,h=E.data,y=E.error,c=!y)):(y=b,!t&&b||(b="error",t<0&&(t=0))),T.status=t,T.statusText=(e||b)+"",c?g.resolveWith(f,[h,b,T]):g.rejectWith(f,[T,b,y]),T.statusCode(m),m=void 0,u&&p.trigger(c?"ajaxSuccess":"ajaxError",[T,d,c?h:y]),v.fireWith(f,[T,b]),u&&(p.trigger("ajaxComplete",[T,d]),--ct.active||ct.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,o,s,a,l,c,u,h,d=ct.ajaxSetup({},e),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ct(f):ct.event,g=ct.Deferred(),v=ct.Callbacks("once memory"),m=d.statusCode||{},y={},E={},w=0,_="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=Se.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=E[n]=E[n]||t,y[t]=e),this},overrideMimeType:function(t){return w||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)m[e]=[m[e],t[e]];else T.always(t[T.status]);return this},abort:function(t){var e=t||_;return r&&r.abort(e),i(0,e),this}};if(g.promise(T).complete=v.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||we.href)+"").replace(be,"").replace(Re,we.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=ct.trim(d.dataType||"*").toLowerCase().match(St)||[""],null==d.crossDomain){c=Z.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=ke.protocol+"//"+ke.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ct.param(d.data,d.traditional)),W(xe,d,e,T),2===w)return T;u=ct.event&&d.global,u&&0===ct.active++&&ct.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Oe.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Te.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Ce.test(o)?o.replace(Ce,"$1_="+_e++):o+(Te.test(o)?"&":"?")+"_="+_e++)),d.ifModified&&(ct.lastModified[o]&&T.setRequestHeader("If-Modified-Since",ct.lastModified[o]),ct.etag[o]&&T.setRequestHeader("If-None-Match",ct.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ne+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)T.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(f,T,d)===!1||2===w))return T.abort();_="abort";for(h in{success:1,error:1,complete:1})T[h](d[h]);if(r=W(Ie,d,e,T)){if(T.readyState=1,u&&p.trigger("ajaxSend",[T,d]),2===w)return T;d.async&&d.timeout>0&&(l=n.setTimeout(function(){T.abort("timeout")},d.timeout));try{w=1,r.send(y,i)}catch(t){if(!(w<2))throw t;i(-1,t)}}else i(-1,"No Transport");return T},getJSON:function(t,e,n){return ct.get(t,e,n,"json")},getScript:function(t,e){return ct.get(t,void 0,e,"script")}}),ct.each(["get","post"],function(t,e){ct[e]=function(t,n,i,r){return ct.isFunction(n)&&(r=r||i,i=n,n=void 0),ct.ajax(ct.extend({url:t,type:e,dataType:r,data:n,success:i},ct.isPlainObject(t)&&t))}}),ct._evalUrl=function(t){return ct.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ct.fn.extend({wrapAll:function(t){var e;return ct.isFunction(t)?this.each(function(e){ct(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ct(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ct.isFunction(t)?this.each(function(e){ct(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ct(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ct.isFunction(t);return this.each(function(n){ct(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ct.nodeName(this,"body")||ct(this).replaceWith(this.childNodes)}).end()}}),ct.expr.filters.hidden=function(t){return!ct.expr.filters.visible(t)},ct.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Le=/%20/g,Me=/\[\]$/,De=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;ct.param=function(t,e){var n,i=[],r=function(t,e){e=ct.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ct.ajaxSettings&&ct.ajaxSettings.traditional),ct.isArray(t)||t.jquery&&!ct.isPlainObject(t))ct.each(t,function(){r(this.name,this.value)});else for(n in t)X(n,t[n],e,r);return i.join("&").replace(Le,"+")},ct.fn.extend({serialize:function(){return ct.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ct.prop(this,"elements");return t?ct.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ct(this).is(":disabled")&&Pe.test(this.nodeName)&&!Be.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var n=ct(this).val();return null==n?null:ct.isArray(n)?ct.map(n,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:n.replace(De,"\r\n")}}).get()}}),ct.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ve=ct.ajaxSettings.xhr();at.cors=!!Ve&&"withCredentials"in Ve,at.ajax=Ve=!!Ve,ct.ajaxTransport(function(t){var e,i;if(at.cors||Ve&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");
for(s in r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),ct.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ct.globalEval(t),t}}}),ct.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ct.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=ct("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),Z.head.appendChild(e[0])},abort:function(){n&&n()}}}});var He=[],Fe=/(=)\?(?=&|$)|\?\?/;ct.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||ct.expando+"_"+_e++;return this[t]=!0,t}}),ct.ajaxPrefilter("json jsonp",function(t,e,i){var r,o,s,a=t.jsonp!==!1&&(Fe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=ct.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Fe,"$1"+r):t.jsonp!==!1&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||ct.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always(function(){void 0===o?ct(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,He.push(r)),s&&ct.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),ct.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||Z;var i=yt.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=v([t],e,r),r&&r.length&&ct(r).remove(),ct.merge([],i.childNodes))};var je=ct.fn.load;ct.fn.load=function(t,e,n){if("string"!=typeof t&&je)return je.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=ct.trim(t.slice(a)),t=t.slice(0,a)),ct.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&ct.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?ct("<div>").append(ct.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ct.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ct.fn[e]=function(t){return this.on(e,t)}}),ct.expr.filters.animated=function(t){return ct.grep(ct.timers,function(e){return t===e.elem}).length},ct.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c,u=ct.css(t,"position"),h=ct(t),d={};"static"===u&&(t.style.position="relative"),a=h.offset(),o=ct.css(t,"top"),l=ct.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(i=h.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),ct.isFunction(e)&&(e=e.call(t,n,ct.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):h.css(d)}},ct.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ct.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return e=o.documentElement,ct.contains(e,i)?(r=i.getBoundingClientRect(),n=J(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===ct.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ct.nodeName(t[0],"html")||(i=t.offset()),i.top+=ct.css(t[0],"borderTopWidth",!0),i.left+=ct.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ct.css(n,"marginTop",!0),left:e.left-i.left-ct.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ct.css(t,"position");)t=t.offsetParent;return t||ne})}}),ct.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ct.fn[t]=function(i){return Ot(this,function(t,i,r){var o=J(t);return void 0===r?o?o[e]:t[i]:void(o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r)},t,i,arguments.length)}}),ct.each(["top","left"],function(t,e){ct.cssHooks[e]=N(at.pixelPosition,function(t,n){if(n)return n=I(t,e),Zt.test(n)?ct(t).position()[e]+"px":n})}),ct.each({Height:"height",Width:"width"},function(t,e){ct.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ct.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||r===!0?"margin":"border");return Ot(this,function(e,n,i){var r;return ct.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?ct.css(e,n,s):ct.style(e,n,i,s)},e,o?i:void 0,o,null)}})}),ct.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ct.fn.andSelf=ct.fn.addBack,i=[],r=function(){return ct}.apply(e,i),!(void 0!==r&&(t.exports=r));var ze=n.jQuery,qe=n.$;return ct.noConflict=function(t){return n.$===ct&&(n.$=qe),t&&n.jQuery===ct&&(n.jQuery=ze),ct},o||(n.jQuery=n.$=ct),ct})},function(t,e,n){var i,r;(function(){function n(t){function e(e,n,i,r,o,s){for(;o>=0&&o<s;o+=t){var a=r?r[o]:o;i=n(i,e[a],a,e)}return i}return function(n,i,r,o){i=b(i,o,4);var s=!I(n)&&T.keys(n),a=(s||n).length,l=t>0?0:a-1;return arguments.length<3&&(r=n[s?s[l]:l],l+=t),e(n,i,r,s,l,a)}}function o(t){return function(e,n,i){n=C(n,i);for(var r=x(e),o=t>0?0:r-1;o>=0&&o<r;o+=t)if(n(e[o],o,e))return o;return-1}}function s(t,e,n){return function(i,r,o){var s=0,a=x(i);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(i,r),i[o]===r?o:-1;if(r!==r)return o=e(p.call(i,s,a),T.isNaN),o>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o<a;o+=t)if(i[o]===r)return o;return-1}}function a(t,e){var n=D.length,i=t.constructor,r=T.isFunction(i)&&i.prototype||h,o="constructor";for(T.has(t,o)&&!T.contains(e,o)&&e.push(o);n--;)o=D[n],o in t&&t[o]!==r[o]&&!T.contains(e,o)&&e.push(o)}var l=this,c=l._,u=Array.prototype,h=Object.prototype,d=Function.prototype,f=u.push,p=u.slice,g=h.toString,v=h.hasOwnProperty,m=Array.isArray,y=Object.keys,E=d.bind,w=Object.create,_=function(){},T=function(t){return t instanceof T?t:this instanceof T?void(this._wrapped=t):new T(t)};"undefined"!=typeof t&&t.exports&&(e=t.exports=T),e._=T,T.VERSION="1.8.3";var b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}},C=function(t,e,n){return null==t?T.identity:T.isFunction(t)?b(t,e,n):T.isObject(t)?T.matcher(t):T.property(t)};T.iteratee=function(t,e){return C(t,e,1/0)};var S=function(t,e){return function(n){var i=arguments.length;if(i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],s=t(o),a=s.length,l=0;l<a;l++){var c=s[l];e&&void 0!==n[c]||(n[c]=o[c])}return n}},A=function(t){if(!T.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},O=function(t){return function(e){return null==e?void 0:e[t]}},R=Math.pow(2,53)-1,x=O("length"),I=function(t){var e=x(t);return"number"==typeof e&&e>=0&&e<=R};T.each=T.forEach=function(t,e,n){e=b(e,n);var i,r;if(I(t))for(i=0,r=t.length;i<r;i++)e(t[i],i,t);else{var o=T.keys(t);for(i=0,r=o.length;i<r;i++)e(t[o[i]],o[i],t)}return t},T.map=T.collect=function(t,e,n){e=C(e,n);for(var i=!I(t)&&T.keys(t),r=(i||t).length,o=Array(r),s=0;s<r;s++){var a=i?i[s]:s;o[s]=e(t[a],a,t)}return o},T.reduce=T.foldl=T.inject=n(1),T.reduceRight=T.foldr=n(-1),T.find=T.detect=function(t,e,n){var i;if(i=I(t)?T.findIndex(t,e,n):T.findKey(t,e,n),void 0!==i&&i!==-1)return t[i]},T.filter=T.select=function(t,e,n){var i=[];return e=C(e,n),T.each(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i},T.reject=function(t,e,n){return T.filter(t,T.negate(C(e)),n)},T.every=T.all=function(t,e,n){e=C(e,n);for(var i=!I(t)&&T.keys(t),r=(i||t).length,o=0;o<r;o++){var s=i?i[o]:o;if(!e(t[s],s,t))return!1}return!0},T.some=T.any=function(t,e,n){e=C(e,n);for(var i=!I(t)&&T.keys(t),r=(i||t).length,o=0;o<r;o++){var s=i?i[o]:o;if(e(t[s],s,t))return!0}return!1},T.contains=T.includes=T.include=function(t,e,n,i){return I(t)||(t=T.values(t)),("number"!=typeof n||i)&&(n=0),T.indexOf(t,e,n)>=0},T.invoke=function(t,e){var n=p.call(arguments,2),i=T.isFunction(e);return T.map(t,function(t){var r=i?e:t[e];return null==r?r:r.apply(t,n)})},T.pluck=function(t,e){return T.map(t,T.property(e))},T.where=function(t,e){return T.filter(t,T.matcher(e))},T.findWhere=function(t,e){return T.find(t,T.matcher(e))},T.max=function(t,e,n){var i,r,o=-(1/0),s=-(1/0);if(null==e&&null!=t){t=I(t)?t:T.values(t);for(var a=0,l=t.length;a<l;a++)i=t[a],i>o&&(o=i)}else e=C(e,n),T.each(t,function(t,n,i){r=e(t,n,i),(r>s||r===-(1/0)&&o===-(1/0))&&(o=t,s=r)});return o},T.min=function(t,e,n){var i,r,o=1/0,s=1/0;if(null==e&&null!=t){t=I(t)?t:T.values(t);for(var a=0,l=t.length;a<l;a++)i=t[a],i<o&&(o=i)}else e=C(e,n),T.each(t,function(t,n,i){r=e(t,n,i),(r<s||r===1/0&&o===1/0)&&(o=t,s=r)});return o},T.shuffle=function(t){for(var e,n=I(t)?t:T.values(t),i=n.length,r=Array(i),o=0;o<i;o++)e=T.random(0,o),e!==o&&(r[o]=r[e]),r[e]=n[o];return r},T.sample=function(t,e,n){return null==e||n?(I(t)||(t=T.values(t)),t[T.random(t.length-1)]):T.shuffle(t).slice(0,Math.max(0,e))},T.sortBy=function(t,e,n){return e=C(e,n),T.pluck(T.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index}),"value")};var N=function(t){return function(e,n,i){var r={};return n=C(n,i),T.each(e,function(i,o){var s=n(i,o,e);t(r,i,s)}),r}};T.groupBy=N(function(t,e,n){T.has(t,n)?t[n].push(e):t[n]=[e]}),T.indexBy=N(function(t,e,n){t[n]=e}),T.countBy=N(function(t,e,n){T.has(t,n)?t[n]++:t[n]=1}),T.toArray=function(t){return t?T.isArray(t)?p.call(t):I(t)?T.map(t,T.identity):T.values(t):[]},T.size=function(t){return null==t?0:I(t)?t.length:T.keys(t).length},T.partition=function(t,e,n){e=C(e,n);var i=[],r=[];return T.each(t,function(t,n,o){(e(t,n,o)?i:r).push(t)}),[i,r]},T.first=T.head=T.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:T.initial(t,t.length-e)},T.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},T.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:T.rest(t,Math.max(0,t.length-e))},T.rest=T.tail=T.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},T.compact=function(t){return T.filter(t,T.identity)};var k=function(t,e,n,i){for(var r=[],o=0,s=i||0,a=x(t);s<a;s++){var l=t[s];if(I(l)&&(T.isArray(l)||T.isArguments(l))){e||(l=k(l,e,n));var c=0,u=l.length;for(r.length+=u;c<u;)r[o++]=l[c++]}else n||(r[o++]=l)}return r};T.flatten=function(t,e){return k(t,e,!1)},T.without=function(t){return T.difference(t,p.call(arguments,1))},T.uniq=T.unique=function(t,e,n,i){T.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=C(n,i));for(var r=[],o=[],s=0,a=x(t);s<a;s++){var l=t[s],c=n?n(l,s,t):l;e?(s&&o===c||r.push(l),o=c):n?T.contains(o,c)||(o.push(c),r.push(l)):T.contains(r,l)||r.push(l)}return r},T.union=function(){return T.uniq(k(arguments,!0,!0))},T.intersection=function(t){for(var e=[],n=arguments.length,i=0,r=x(t);i<r;i++){var o=t[i];if(!T.contains(e,o)){for(var s=1;s<n&&T.contains(arguments[s],o);s++);s===n&&e.push(o)}}return e},T.difference=function(t){var e=k(arguments,!0,!0,1);return T.filter(t,function(t){return!T.contains(e,t)})},T.zip=function(){return T.unzip(arguments)},T.unzip=function(t){for(var e=t&&T.max(t,x).length||0,n=Array(e),i=0;i<e;i++)n[i]=T.pluck(t,i);return n},T.object=function(t,e){for(var n={},i=0,r=x(t);i<r;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},T.findIndex=o(1),T.findLastIndex=o(-1),T.sortedIndex=function(t,e,n,i){n=C(n,i,1);for(var r=n(e),o=0,s=x(t);o<s;){var a=Math.floor((o+s)/2);n(t[a])<r?o=a+1:s=a}return o},T.indexOf=s(1,T.findIndex,T.sortedIndex),T.lastIndexOf=s(-1,T.findLastIndex),T.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),o=0;o<i;o++,t+=n)r[o]=t;return r};var L=function(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=A(t.prototype),s=t.apply(o,r);return T.isObject(s)?s:o};T.bind=function(t,e){if(E&&t.bind===E)return E.apply(t,p.call(arguments,1));if(!T.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),i=function(){return L(t,i,e,this,n.concat(p.call(arguments)))};return i},T.partial=function(t){var e=p.call(arguments,1),n=function(){for(var i=0,r=e.length,o=Array(r),s=0;s<r;s++)o[s]=e[s]===T?arguments[i++]:e[s];for(;i<arguments.length;)o.push(arguments[i++]);return L(t,n,this,this,o)};return n},T.bindAll=function(t){var e,n,i=arguments.length;if(i<=1)throw new Error("bindAll must be passed function names");for(e=1;e<i;e++)n=arguments[e],t[n]=T.bind(t[n],t);return t},T.memoize=function(t,e){var n=function(i){var r=n.cache,o=""+(e?e.apply(this,arguments):i);return T.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n},T.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},T.defer=T.partial(T.delay,T,1),T.throttle=function(t,e,n){var i,r,o,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:T.now(),s=null,o=t.apply(i,r),s||(i=r=null)};return function(){var c=T.now();a||n.leading!==!1||(a=c);var u=e-(c-a);return i=this,r=arguments,u<=0||u>e?(s&&(clearTimeout(s),s=null),a=c,o=t.apply(i,r),s||(i=r=null)):s||n.trailing===!1||(s=setTimeout(l,u)),o}},T.debounce=function(t,e,n){var i,r,o,s,a,l=function(){var c=T.now()-s;c<e&&c>=0?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,s=T.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(a=t.apply(o,r),o=r=null),a}},T.wrap=function(t,e){return T.partial(e,t)},T.negate=function(t){return function(){return!t.apply(this,arguments)}},T.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},T.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},T.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},T.once=T.partial(T.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];T.keys=function(t){if(!T.isObject(t))return[];if(y)return y(t);var e=[];for(var n in t)T.has(t,n)&&e.push(n);return M&&a(t,e),e},T.allKeys=function(t){if(!T.isObject(t))return[];var e=[];for(var n in t)e.push(n);return M&&a(t,e),e},T.values=function(t){for(var e=T.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=t[e[r]];return i},T.mapObject=function(t,e,n){e=C(e,n);for(var i,r=T.keys(t),o=r.length,s={},a=0;a<o;a++)i=r[a],s[i]=e(t[i],i,t);return s},T.pairs=function(t){for(var e=T.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=[e[r],t[e[r]]];return i},T.invert=function(t){for(var e={},n=T.keys(t),i=0,r=n.length;i<r;i++)e[t[n[i]]]=n[i];return e},T.functions=T.methods=function(t){var e=[];for(var n in t)T.isFunction(t[n])&&e.push(n);return e.sort()},T.extend=S(T.allKeys),T.extendOwn=T.assign=S(T.keys),T.findKey=function(t,e,n){e=C(e,n);for(var i,r=T.keys(t),o=0,s=r.length;o<s;o++)if(i=r[o],e(t[i],i,t))return i},T.pick=function(t,e,n){var i,r,o={},s=t;if(null==s)return o;T.isFunction(e)?(r=T.allKeys(s),i=b(e,n)):(r=k(arguments,!1,!1,1),i=function(t,e,n){return e in n},s=Object(s));for(var a=0,l=r.length;a<l;a++){var c=r[a],u=s[c];i(u,c,s)&&(o[c]=u)}return o},T.omit=function(t,e,n){if(T.isFunction(e))e=T.negate(e);else{var i=T.map(k(arguments,!1,!1,1),String);e=function(t,e){return!T.contains(i,e)}}return T.pick(t,e,n)},T.defaults=S(T.allKeys,!0),T.create=function(t,e){var n=A(t);return e&&T.extendOwn(n,e),n},T.clone=function(t){return T.isObject(t)?T.isArray(t)?t.slice():T.extend({},t):t},T.tap=function(t,e){return e(t),t},T.isMatch=function(t,e){var n=T.keys(e),i=n.length;if(null==t)return!i;for(var r=Object(t),o=0;o<i;o++){var s=n[o];if(e[s]!==r[s]||!(s in r))return!1}return!0};var B=function(t,e,n,i){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof T&&(t=t._wrapped),e instanceof T&&(e=e._wrapped);var r=g.call(t);if(r!==g.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var o="[object Array]"===r;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(T.isFunction(s)&&s instanceof s&&T.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),o){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!B(t[l],e[l],n,i))return!1}else{var c,u=T.keys(t);if(l=u.length,T.keys(e).length!==l)return!1;for(;l--;)if(c=u[l],!T.has(e,c)||!B(t[c],e[c],n,i))return!1}return n.pop(),i.pop(),!0};T.isEqual=function(t,e){return B(t,e)},T.isEmpty=function(t){return null==t||(I(t)&&(T.isArray(t)||T.isString(t)||T.isArguments(t))?0===t.length:0===T.keys(t).length)},T.isElement=function(t){return!(!t||1!==t.nodeType)},T.isArray=m||function(t){return"[object Array]"===g.call(t)},T.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},T.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){T["is"+t]=function(e){return g.call(e)==="[object "+t+"]"}}),T.isArguments(arguments)||(T.isArguments=function(t){return T.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(T.isFunction=function(t){return"function"==typeof t||!1}),T.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},T.isNaN=function(t){return T.isNumber(t)&&t!==+t},T.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===g.call(t)},T.isNull=function(t){return null===t},T.isUndefined=function(t){return void 0===t},T.has=function(t,e){return null!=t&&v.call(t,e)},T.noConflict=function(){return l._=c,this},T.identity=function(t){return t},T.constant=function(t){return function(){return t}},T.noop=function(){},T.property=O,T.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},T.matcher=T.matches=function(t){return t=T.extendOwn({},t),function(e){return T.isMatch(e,t)}},T.times=function(t,e,n){var i=Array(Math.max(0,t));e=b(e,n,1);for(var r=0;r<t;r++)i[r]=e(r);return i},T.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},T.now=Date.now||function(){return(new Date).getTime()};var P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=T.invert(P),V=function(t){var e=function(e){return t[e]},n="(?:"+T.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};T.escape=V(P),T.unescape=V(U),T.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),T.isFunction(i)?i.call(t):i};var H=0;T.uniqueId=function(t){var e=++H+"";return t?t+e:e},T.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var F=/(.)^/,j={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,q=function(t){return"\\"+j[t]};T.template=function(t,e,n){!e&&n&&(e=n),e=T.defaults({},e,T.templateSettings);var i=RegExp([(e.escape||F).source,(e.interpolate||F).source,(e.evaluate||F).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(i,function(e,n,i,s,a){return o+=t.slice(r,a).replace(z,q),r=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var a=function(t){return s.call(this,t,T)},l=e.variable||"obj";return a.source="function("+l+"){\n"+o+"}",a},T.chain=function(t){var e=T(t);return e._chain=!0,e};var K=function(t,e){return t._chain?T(e).chain():e};T.mixin=function(t){T.each(T.functions(t),function(e){var n=T[e]=t[e];T.prototype[e]=function(){var t=[this._wrapped];return f.apply(t,arguments),K(this,n.apply(T,t))}})},T.mixin(T),T.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=u[t];T.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),T.each(["concat","join","slice"],function(t){var e=u[t];T.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),T.prototype.value=function(){return this._wrapped},T.prototype.valueOf=T.prototype.toJSON=T.prototype.value,T.prototype.toString=function(){return""+this._wrapped},i=[],r=function(){return T}.apply(e,i),!(void 0!==r&&(t.exports=r))}).call(this)},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[],r=function(){return{APP_ID:"pulse-web",CSRF_HEADER:"Csrf-Token",CONF_JSON_ID:"conf-json",EMBEDDED_ARTICLE_JSON_ID:"embedded-article-json",EMBEDDED_FEED_JSON_ID:"embedded-feed-json",EMBEDDED_AUTHOR_JSON_ID:"embedded-author-json",EMBEDDED_MEMBER_JSON_ID:"embedded-member-json",EMBEDDED_CONFIG_JSON_ID:"embedded-config-json",PAGE_TITLE_SEPARATOR:" | ",PAGE_TITLE_SUFFIX:"Pulse | LinkedIn",SSR_WRAPPER_SELECTOR:".ssr-wrapper",SSR_DATA_ATTR:"ssr",ROUTES_JSON_ID:"routes-json",API_BASE:"api_base",ARTICLE_WRAPPER:"#pulse-article-wrapper",ARTICLE_META_CLASS:".meta-article",ARTICLE_SELECTOR:".pulse-article",ARTICLE_CONTENT_SELECTOR:".prose",BUTTON_HEIGHT_MEDIUM:32,TOOLTIP:".tooltip",HEADER_BANNER_SELECTOR:"#header-banner",HEADER_NAV_SELECTOR:"#header-navigation",IS_LISA_SELECTOR:"#is-lisa",AUTHOR_STATES:{POSTS:"posts",FOLLOWING:"following",FOLLOWERS:"followers"},FEED_ITEM_TYPES:{CONTENT:"CONTENT",FOLLOW_RECOMMENDATION:"FOLLOW_RECOMMENDATION"},FEED_TYPES:{DEFAULT:"default",AUTHOR_CONNECTIONS:"authorConnections",AUTHOR:"author",DRAFTS:"drafts",HOME:"home",PUBLISHED:"published",BOOKMARKS:"bookmarks"},FEED_RECOMMENDATION_ENTITY_TYPES:{MEMBER:"MEMBER",COMPANY:"COMPANY",NONE:"NONE"},FEED_STATES:{HOME:"home",SAVED:"saved",DRAFTS:"drafts",PUBLISHED:"published"},TRIGGERS:{CHANGE_FOLLOW:"change:isFollowing",CHANGE_LIKED:"change:isLiked",CHANGE_SAVED:"change:saved",SHOW_LIKES:"show:likes",SHOW_VIEWS:"show:views"},CLASSES:{ACTIVE:"active",HAS_MODAL:"has-modal"},SHARE_URLS:{LINKEDIN_SHARE_URL:"http://www.linkedin.com/shareArticle?url=",FACEBOOK_SHARE_URL:"https://www.facebook.com/sharer/sharer.php?u=",TWITTER_SHARE_URL:"https://twitter.com/intent/tweet?&url="},GUEST_REDIRECT:{ARTICLE:{LIKE:"/today/social/create-like-submit?permLink={permalink}&articleId={targetId}&redirect=true&commentId=-1&csrfToken={token}",FOLLOW:"/ngroups/ajax/follow_member?redirect=profile&csrfToken={token}&followee={targetId}"},COMMENTS:{SIGNIN:"/pulse/{permalink}",REPLY:"/pulse/{permalink}#{commentId}",LIKE:"/today/social/create-like-submit?permLink={permalink}&articleId={targetId}&redirect=true&commentId={pulseGuiCommentId}&csrfToken={token}#{commentId}"}},GUEST_EVENTS:{LIKE:"LIKE",FOLLOW:"FOLLOW"},EVENTS:{CLICK:"click",KEYDOWN:"keydown"},DATA:{TRACK:"li-track",SPA_HREF:"spa-href"},URL_SNIPPETS:{TRACKING:"/li/track",MOB_TRACKING:"/mob/tracking"},APP_ANCHOR_PAGES:{feed:["feed","bookmarks","drafts","published"],article:["article"],author:["author"],pivot:["pivots"]},APP_PAGE_KEYS:{feed:{anchor:"d_flagship2_pulse",feed:"_feed",bookmarks:"_saved",drafts:"_drafts",published:"_published"},article:{anchor:"d_flagship2_pulse_read"},pivot:{anchor:"d_flagship2_pulse_channel"},author:{anchor:"d_flagship2_pulse_profile",following:"_following",followers:"_followers",posts:"_posts"}},API_KEY_MAP:{CONTENT_FEED_ITEM:"com.linkedin.pulse.models.ContentFeedItem",CONTENT:"CONTENT",MEMBER:"MEMBER",COMPANY:"COMPANY",NONE:"NONE"},FLAGGING_CONTENT_SOURCES:{PONCHO:"PONCHO_ARTICLE",INFLUENCER:"INFLUENCER_ARTICLE",THIRD_PARTY:"BABYLONIA_ARTICLE"},REQUEST_METHODS:{GET:"GET",POST:"POST",DELETE:"DELETE"},COMMENTS_TEMPLATES:{comment:"agora/templates/tl/comment",thread:"agora/templates/tl/thread",comments:"agora/templates/tl/comments",likeModal:"agora/templates/tl/likeModal",modal:"agora/templates/tl/modal",likeModalRows:"agora/templates/tl/likeModalRows",linkModal:"agora/templates/tl/linkModal",mentions:"agora/templates/tl/mentions",mentionItem:"agora/templates/tl/mentionItem",removeCommentModal:"agora/templates/tl/removeCommentModal"},COMMENTS_TEMPLATES_V2:{comment:"agora/templates/tlv2/comment",thread:"agora/templates/tlv2/thread",comments:"agora/templates/tlv2/comments",commentsDisabled:"agora/templates/tlv2/commentsDisabled",commentsInputDefault:"agora/templates/tlv2/commentsInputDefault",commentsInputGuest:"agora/templates/tlv2/commentsInputGuest",likeModal:"agora/templates/tlv2/likeModal",modal:"agora/templates/tlv2/modal",likeModalRows:"agora/templates/tlv2/likeModalRows",linkModal:"agora/templates/tlv2/linkModal",removeCommentModal:"agora/templates/tlv2/removeCommentModal"},MENTIONS_SETUP:{entitlementUrl:"/hp/influencer-entitlement",oonMentions:!0,schoolMentions:!1,limits:{mynetwork:5,my1stnetwork:5,company:0,school:0},isInfluencer:null,mentionsTL:"agora/templates/tlv2/typeaheadMentionItem"},LIX_KEYS:{DEFER_APP_START:"deferAppStart",HIDE_SHARE_COUNT_ON_ARTICLE:"hideShareCountOnArticle",HIDE_SHARE_COUNT_ON_FEED:"hideShareCountOnFeed",SHOW_RELATED_CONTENT:"showRelatedContent",USE_RELATED_CONTENT_KEYS:"useRelatedContentKeys",SHOW_SHARE_PROMPT:"showSharePrompt",REMOVE_FEED:"removeFeed",FEED_COMMENTS:"feedComments",ARTICLE_HEADER_ACTIONS:"articleHeaderActions",COMMENTS_SORT_DEFAULT:"commentsSortDefault",COMMENTS_SORT_NEWEST:"commentsSortNewest",REMOVE_AUTHOR_PAGES:"removeAuthorPages",REMOVE_BOOKMARK:"removeBookmark",FEED_MPR_IMAGES:"feedMprImages",HIGHLIGHT_TO_SHARE:"highlightToShare",AGORA_REVAMP:"agoraRevamp",SHOW_TOOLTIPS:"showTooltips",PUBLISHIN:"publishin",CHINA_GEOLOCATION:"chinaGeo",ALLOW_DISABLE_COMMENTS:"allowDisableComments"},LIX_VALUES:{CONTROL:"control",ARTICLE:"article",AUTHOR:"author"},SHARE_PROMPT:{ONE_MIN:6e4},RELATED_CONTENT:{HORIZONTAL_IMAGES:"horizontalImages",SIMPLE_VERTICAL_LIST:"simpleVerticalList",NUMBERED_COLUMNS:"numberedColumns",VERTICAL_LIST_NUMBERED_COLUMNS:"verticalListNumberedColumns",TOP_POSTS:"TOP_POSTS"},COMMENT_SORT_DEFAULTS:{RECOMMENDED:"recommended",NEWEST:"newest",OLDEST:"oldest"},COMMENTS_STATE_DEFAULT_OPEN:"OPEN",AGORA_TRACKING:{COMMENTS_ENABLE:{ACTION_EVENT_NAME:"PulseStoryActionEvent",ACTION_CATEGORY:"SELECT",ACTION_TYPE:"enableComments",CONTROL_URN:"urn:li:control:d_flagship2_pulse_read-enable_comments"},COMMENTS_DISABLE:{ACTION_EVENT_NAME:"PulseStoryActionEvent",ACTION_CATEGORY:"SELECT",ACTION_TYPE:"disableComments",CONTROL_URN:"urn:li:control:d_flagship2_pulse_read-disable_comments"}}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(9)],r=function(t){function e(t){for(var e,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=t.length,s=o%3,a=o-s;r<a;)e=t[r]<<16,e|=t[r+1]<<8,e|=t[r+2],i.push(n.charAt(e>>>18&63)),i.push(n.charAt(e>>>12&63)),i.push(n.charAt(e>>>6&63)),i.push(n.charAt(63&e)),r+=3;switch(s){case 2:e=t[r]<<16,e|=t[r+1]<<8,i.push(n.charAt(e>>>18&63)),i.push(n.charAt(e>>>12&63)),i.push(n.charAt(e>>>6&63)),i.push("=");break;case 1:e=t[r]<<16,i.push(n.charAt(e>>>18&63)),i.push(n.charAt(e>>>12&63)),i.push("="),i.push("=")}return i.join("")}function n(){var n=new Array(16);return t.v4(null,n),e(n)}return{generateTrackingId:n}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){function i(t,e,n){var i=e&&n||0,r=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){r<16&&(e[i+r++]=c[t])});r<16;)e[i+r++]=0;return e}function r(t,e){var n=e||0,i=l;return i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+"-"+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]+i[t[n++]]}function o(t,e,n){var i=e&&n||0,o=e||[];t=t||{};var s=void 0!==t.clockseq?t.clockseq:f,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),l=void 0!==t.nsecs?t.nsecs:g+1,c=a-p+(l-g)/1e4;if(c<0&&void 0===t.clockseq&&(s=s+1&16383),(c<0||a>p)&&void 0===t.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=a,g=l,f=s,a+=122192928e5;var u=(1e4*(268435455&a)+l)%4294967296;o[i++]=u>>>24&255,o[i++]=u>>>16&255,o[i++]=u>>>8&255,o[i++]=255&u;var h=a/4294967296*1e4&268435455;o[i++]=h>>>8&255,o[i++]=255&h,o[i++]=h>>>24&15|16,o[i++]=h>>>16&255,o[i++]=s>>>8|128,o[i++]=255&s;for(var v=t.node||d,m=0;m<6;m++)o[i+m]=v[m];return e?e:r(o)}function s(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),t=t||{};var o=t.random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;s++)e[i+s]=o[s];return e||r(o)}for(var a=n(10),l=[],c={},u=0;u<256;u++)l[u]=(u+256).toString(16).substr(1),c[l[u]]=u;var h=a(),d=[1|h[0],h[1],h[2],h[3],h[4],h[5]],f=16383&(h[6]<<8|h[7]),p=0,g=0,v=s;v.v1=o,v.v4=s,v.parse=i,v.unparse=r,t.exports=v},function(t,e,n){var i=n(11).randomBytes;t.exports=function(){return i(16)}},function(t,e,n){(function(i){function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function o(t,e){for(var n in t)e(t[n],n)}var s=n(16);e.createHash=n(18),e.createHmac=n(31),e.randomBytes=function(t,e){if(!e||!e.call)return new i(s(t));try{e.call(this,void 0,new i(s(t)))}catch(t){e(t)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var a=n(32)(e);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync,n(34)(e,t.exports),o(["createCredentials","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){r("sorry,",t,"is not implemented yet")}})}).call(e,n(12).Buffer)},function(t,e,n){(function(t){/*!
	 * The buffer module from node.js, for the browser.
	 *
	 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
	 * @license  MIT
	 */
"use strict";function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function r(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=s.prototype):(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return a(this,t,e,n)}function a(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,n,i):"string"==typeof e?h(t,e,n):p(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e,n,i){return l(e),e<=0?o(t,e):void 0!==n?"string"==typeof i?o(t,e).fill(n,i):o(t,e).fill(n):o(t,e)}function u(t,e){if(l(e),t=o(t,e<0?0:0|g(e)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|m(e,n);t=o(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function d(t,e){var n=e.length<0?0:0|g(e.length);t=o(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),s.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=s.prototype):t=d(t,e),t}function p(t,e){if(s.isBuffer(e)){var n=0|g(e.length);return t=o(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||X(e.length)?o(t,0):d(t,e);if("Buffer"===e.type&&Z(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),s.alloc(+t)}function m(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(i)return K(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return k(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function E(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function w(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:_(t,e,n,i,r);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,i,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}var c;if(r){var u=-1;for(c=n;c<a;c++)if(o(t,c)===o(e,u===-1?0:c-u)){if(u===-1&&(u=c),c-u+1===l)return u*s}else u!==-1&&(c-=c-u),u=-1}else for(n+l>a&&(n=a-l),c=n;c>=0;c--){for(var h=!0,d=0;d<l;d++)if(o(t,c+d)!==o(e,d)){h=!1;break}if(h)return c}return-1}function T(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,i){return $(K(e,t.length-n),t,n,i)}function C(t,e,n,i){return $(W(e),t,n,i)}function S(t,e,n,i){return C(t,e,n,i)}function A(t,e,n,i){return $(Y(e),t,n,i)}function O(t,e,n,i){return $(G(e,t.length-n),t,n,i)}function R(t,e,n){return 0===e&&n===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o=t[r],s=null,a=o>239?4:o>223?3:o>191?2:1;if(r+a<=n){var l,c,u,h;switch(a){case 1:o<128&&(s=o);break;case 2:l=t[r+1],128===(192&l)&&(h=(31&o)<<6|63&l,h>127&&(s=h));break;case 3:l=t[r+1],c=t[r+2],128===(192&l)&&128===(192&c)&&(h=(15&o)<<12|(63&l)<<6|63&c,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:l=t[r+1],c=t[r+2],u=t[r+3],128===(192&l)&&128===(192&c)&&128===(192&u)&&(h=(15&o)<<18|(63&l)<<12|(63&c)<<6|63&u,h>65535&&h<1114112&&(s=h))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,i.push(s>>>10&1023|55296),s=56320|1023&s),i.push(s),r+=a}return I(i)}function I(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=tt));return n}function N(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function k(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function L(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=q(t[o]);return r}function M(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function D(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,i,r,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function P(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function U(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function V(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,i,r){return r||V(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,i,23,4),n+4}function F(t,e,n,i,r){return r||V(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,i,52,8),n+8}function j(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],s=0;s<i;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function G(t,e){for(var n,i,r,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}function Y(t){return J.toByteArray(j(t))}function $(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function X(t){return t!==t}var J=n(13),Q=n(14),Z=n(15);e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),e.kMaxLength=r(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,n){return a(null,t,e,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,n){return c(null,t,e,n)},s.allocUnsafe=function(t){return u(null,t)},s.allocUnsafeSlow=function(t){return u(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=s.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)E(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},s.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):y.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,e,n,i,r){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,a=n-e,l=Math.min(o,a),c=this.slice(i,r),u=t.slice(e,n),h=0;h<l;++h)if(c[h]!==u[h]){o=c[h],a=u[h];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},s.prototype.indexOf=function(t,e,n){return w(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return w(this,t,e,n,!1)},s.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return T(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;s.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);var i;if(s.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=s.prototype;else{var r=e-t;i=new s(r,void 0);for(var o=0;o<r;++o)i[o]=this[o+t]}return i},s.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},s.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},s.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},s.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),Q.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),Q.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),Q.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),Q.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;B(this,t,e,n,r,0)}var o=1,s=0;for(this[e]=255&t;++s<n&&(o*=256);)this[e+s]=t/o&255;return e+n},s.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;B(this,t,e,n,r,0)}var o=n-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},s.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;r>=0;--r)t[r+e]=this[r+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},s.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var o;if("number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=s.isBuffer(t)?t:K(new s(t,i).toString()),l=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%l]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-n(t)}function r(t){var e,i,r,o,s,a,l=t.length;s=n(t),a=new u(3*l/4-s),r=s>0?l-4:l;var h=0;for(e=0,i=0;e<r;e+=4,i+=3)o=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],a[h++]=o>>16&255,a[h++]=o>>8&255,a[h++]=255&o;return 2===s?(o=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,a[h++]=255&o):1===s&&(o=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,a[h++]=o>>8&255,a[h++]=255&o),a}function o(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function s(t,e,n){for(var i,r=[],s=e;s<n;s+=3)i=(t[s]<<16)+(t[s+1]<<8)+t[s+2],r.push(o(i));return r.join("")}function a(t){for(var e,n=t.length,i=n%3,r="",o=[],a=16383,c=0,u=n-i;c<u;c+=a)o.push(s(t,c,c+a>u?u:c+a));return 1===i?(e=t[n-1],r+=l[e>>2],r+=l[e<<4&63],r+="=="):2===i&&(e=(t[n-2]<<8)+t[n-1],r+=l[e>>10],r+=l[e>>4&63],r+=l[e<<2&63],r+="="),o.push(r),o.join("")}e.byteLength=i,e.toByteArray=r,e.fromByteArray=a;for(var l=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=h.length;d<f;++d)l[d]=h[d],c[h.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?r-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,i),o-=c}return(f?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;t[n+f]=255&s,f+=p,s/=256,c-=8);t[n+f-p]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(e,i){!function(){var r=("undefined"==typeof window?e:window)||{};_crypto=r.crypto||r.msCrypto||n(17),t.exports=function(t){if(_crypto.getRandomValues){var e=new i(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(12).Buffer)},function(t,e){},function(t,e,n){(function(e){function i(t){return function(){var n=[],i={update:function(t,i){return e.isBuffer(t)||(t=new e(t,i)),n.push(t),this},digest:function(i){var r=e.concat(n),o=t(r);return n=null,i?o.toString(i):o}};return i}}var r=n(19),o=i(n(28)),s=i(n(30));t.exports=function(t){return"md5"===t?new o:"rmd160"===t?new s:r(t)}}).call(e,n(12).Buffer)},function(t,e,n){var e=t.exports=function(t){var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n},i=n(12).Buffer,r=n(20)(i);e.sha1=n(21)(i,r),e.sha256=n(26)(i,r),e.sha512=n(27)(i,r)},function(t,e){t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var i=this._len+=e.length,r=this._s=this._s||0,o=0,s=this._block;r<i;){for(var a=Math.min(e.length,o+this._blockSize-r%this._blockSize),l=a-o,c=0;c<l;c++)s[r%this._blockSize+c]=e[c+o];r+=l,o+=l,r%this._blockSize===0&&this._update(s)}return this._s=r,this},e.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){var i=n(22).inherits;t.exports=function(t,e){function n(){return p.length?p.pop().init():this instanceof n?(this._w=f,e.call(this,64,56),this._h=null,void this.init()):new n}function r(t,e,n,i){return t<20?e&n|~e&i:t<40?e^n^i:t<60?e&n|e&i|n&i:e^n^i}function o(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function s(t,e){return t+e|0}function a(t,e){return t<<e|t>>>32-e}var l=0,c=4,u=8,h=12,d=16,f=new("undefined"==typeof Int32Array?Array:Int32Array)(80),p=[];return i(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=p,n.prototype._update=function(t){var e,n,i,l,c,u,h,d,f,p;e=u=this._a,n=h=this._b,i=d=this._c,l=f=this._d,c=p=this._e;for(var g=this._w,v=0;v<80;v++){var m=g[v]=v<16?t.readInt32BE(4*v):a(g[v-3]^g[v-8]^g[v-14]^g[v-16],1),y=s(s(a(e,5),r(v,n,i,l)),s(s(c,m),o(v)));c=l,l=i,i=a(n,30),n=e,e=y}this._a=s(e,u),this._b=s(n,h),this._c=s(i,d),this._d=s(l,f),this._e=s(c,p)},n.prototype._hash=function(){p.length<100&&p.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,l),e.writeInt32BE(0|this._b,c),e.writeInt32BE(0|this._c,u),e.writeInt32BE(0|this._d,h),e.writeInt32BE(0|this._e,d),e},n}},function(t,e,n){(function(t,i){function r(t,n){var i={seen:[],stylize:s};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),g(n)?i.showHidden=n:n&&e._extend(i,n),_(i.showHidden)&&(i.showHidden=!1),_(i.depth)&&(i.depth=2),_(i.colors)&&(i.colors=!1),_(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=o),l(i,t,i.depth)}function o(t,e){var n=r.styles[e];return n?"["+r.colors[n][0]+"m"+t+"["+r.colors[n][1]+"m":t}function s(t,e){return t}function a(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function l(t,n,i){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return E(r)||(r=l(t,r,i)),r}var o=c(t,n);if(o)return o;var s=Object.keys(n),g=a(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return u(n);if(0===s.length){if(A(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(T(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return u(n)}var m="",y=!1,w=["{","}"];if(p(n)&&(y=!0,w=["[","]"]),A(n)){var _=n.name?": "+n.name:"";m=" [Function"+_+"]"}if(T(n)&&(m=" "+RegExp.prototype.toString.call(n)),C(n)&&(m=" "+Date.prototype.toUTCString.call(n)),S(n)&&(m=" "+u(n)),0===s.length&&(!y||0==n.length))return w[0]+m+w[1];if(i<0)return T(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var b;return b=y?h(t,n,i,g,s):s.map(function(e){return d(t,n,i,g,e,y)}),t.seen.pop(),f(b,m,w)}function c(t,e){if(_(e))return t.stylize("undefined","undefined");if(E(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,i,r){for(var o=[],s=0,a=e.length;s<a;++s)N(e,String(s))?o.push(d(t,e,n,i,String(s),!0)):o.push("");return r.forEach(function(r){r.match(/^\d+$/)||o.push(d(t,e,n,i,r,!0))}),o}function d(t,e,n,i,r,o){var s,a,c;if(c=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]},c.get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),N(i,r)||(s="["+r+"]"),a||(t.seen.indexOf(c.value)<0?(a=v(n)?l(t,c.value,null):l(t,c.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return"   "+t}).join("\n"))):a=t.stylize("[Circular]","special")),_(s)){if(o&&r.match(/^\d+$/))return a;s=JSON.stringify(""+r),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t,e,n){var i=0,r=t.reduce(function(t,e){return i++,e.indexOf("\n")>=0&&i++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return null==t}function y(t){return"number"==typeof t}function E(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function _(t){return void 0===t}function T(t){return b(t)&&"[object RegExp]"===R(t)}function b(t){return"object"==typeof t&&null!==t}function C(t){return b(t)&&"[object Date]"===R(t)}function S(t){return b(t)&&("[object Error]"===R(t)||t instanceof Error)}function A(t){return"function"==typeof t}function O(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function R(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}function I(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var k=/%[sdj%]/g;e.format=function(t){if(!E(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(r(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=String(t).replace(k,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}}),a=i[n];n<o;a=i[++n])s+=v(a)||!b(a)?" "+a:" "+r(a);return s},e.deprecate=function(n,r){function o(){if(!s){if(i.throwDeprecation)throw new Error(r);i.traceDeprecation?console.trace(r):console.error(r),s=!0}return n.apply(this,arguments)}if(_(t.process))return function(){return e.deprecate(n,r).apply(this,arguments)};if(i.noDeprecation===!0)return n;var s=!1;return o};var L,M={};e.debuglog=function(t){if(_(L)&&(L=i.env.NODE_DEBUG||""),t=t.toUpperCase(),!M[t])if(new RegExp("\\b"+t+"\\b","i").test(L)){var n=i.pid;M[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else M[t]=function(){};return M[t]},e.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=g,e.isNull=v,e.isNullOrUndefined=m,e.isNumber=y,e.isString=E,e.isSymbol=w,e.isUndefined=_,e.isRegExp=T,e.isObject=b,e.isDate=C,e.isError=S,e.isFunction=A,e.isPrimitive=O,e.isBuffer=n(24);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=n(25),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t}}).call(e,function(){return this}(),n(23))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0);
}catch(e){return u.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){g&&f&&(g=!1,f.length?p=f.concat(p):v=-1,p.length&&a())}function a(){if(!g){var t=r(s);g=!0;for(var e=p.length;e;){for(f=p,p=[];++v<e;)f&&f[v].run();v=-1,e=p.length}f=null,g=!1,o(t)}}function l(t,e){this.fun=t,this.array=e}function c(){}var u,h,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var f,p=[],g=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new l(t,e)),1!==p.length||g||r(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){(function(e){t.exports=function(t){return t instanceof e}}).call(e,n(12).Buffer)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){var i=n(22).inherits;t.exports=function(t,e){function n(){this.init(),this._w=f,e.call(this,64,56)}function r(t,e){return t>>>e|t<<32-e}function o(t,e){return t>>>e}function s(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}function l(t){return r(t,2)^r(t,13)^r(t,22)}function c(t){return r(t,6)^r(t,11)^r(t,25)}function u(t){return r(t,7)^r(t,18)^o(t,3)}function h(t){return r(t,17)^r(t,19)^o(t,10)}var d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);return i(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,i,r,o,f,p,g,v,m,y=this._w;e=0|this._a,n=0|this._b,i=0|this._c,r=0|this._d,o=0|this._e,f=0|this._f,p=0|this._g,g=0|this._h;for(var E=0;E<64;E++){var w=y[E]=E<16?t.readInt32BE(4*E):h(y[E-2])+y[E-7]+u(y[E-15])+y[E-16];v=g+c(o)+s(o,f,p)+d[E]+w,m=l(e)+a(e,n,i),g=p,p=f,f=o,o=r+v,r=i,i=n,n=e,e=v+m}this._a=e+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=r+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=p+this._g|0,this._h=g+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){var i=n(22).inherits;t.exports=function(t,e){function n(){this.init(),this._w=l,e.call(this,128,112)}function r(t,e,n){return t>>>n|e<<32-n}function o(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}var a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);return i(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,i,l,c,u,h,d,f,p,g,v,m,y,E,w,_=this._w;e=0|this._a,n=0|this._b,i=0|this._c,l=0|this._d,c=0|this._e,u=0|this._f,h=0|this._g,d=0|this._h,f=0|this._al,p=0|this._bl,g=0|this._cl,v=0|this._dl,m=0|this._el,y=0|this._fl,E=0|this._gl,w=0|this._hl;for(var T=0;T<80;T++){var b,C,S=2*T;if(T<16)b=_[S]=t.readInt32BE(4*S),C=_[S+1]=t.readInt32BE(4*S+4);else{var A=_[S-30],O=_[S-30+1],R=r(A,O,1)^r(A,O,8)^A>>>7,x=r(O,A,1)^r(O,A,8)^r(O,A,7);A=_[S-4],O=_[S-4+1];var I=r(A,O,19)^r(O,A,29)^A>>>6,N=r(O,A,19)^r(A,O,29)^r(O,A,6),k=_[S-14],L=_[S-14+1],M=_[S-32],D=_[S-32+1];C=x+L,b=R+k+(C>>>0<x>>>0?1:0),C+=N,b=b+I+(C>>>0<N>>>0?1:0),C+=D,b=b+M+(C>>>0<D>>>0?1:0),_[S]=b,_[S+1]=C}var B=s(e,n,i),P=s(f,p,g),U=r(e,f,28)^r(f,e,2)^r(f,e,7),V=r(f,e,28)^r(e,f,2)^r(e,f,7),H=r(c,m,14)^r(c,m,18)^r(m,c,9),F=r(m,c,14)^r(m,c,18)^r(c,m,9),j=a[S],z=a[S+1],q=o(c,u,h),K=o(m,y,E),W=w+F,G=d+H+(W>>>0<w>>>0?1:0);W+=K,G=G+q+(W>>>0<K>>>0?1:0),W+=z,G=G+j+(W>>>0<z>>>0?1:0),W+=C,G=G+b+(W>>>0<C>>>0?1:0);var Y=V+P,$=U+B+(Y>>>0<V>>>0?1:0);d=h,w=E,h=u,E=y,u=c,y=m,m=v+W|0,c=l+G+(m>>>0<v>>>0?1:0)|0,l=i,v=g,i=n,g=p,n=e,p=f,f=W+Y|0,e=G+$+(f>>>0<W>>>0?1:0)|0}this._al=this._al+f|0,this._bl=this._bl+p|0,this._cl=this._cl+g|0,this._dl=this._dl+v|0,this._el=this._el+m|0,this._fl=this._fl+y|0,this._gl=this._gl+E|0,this._hl=this._hl+w|0,this._a=this._a+e+(this._al>>>0<f>>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0<p>>>0?1:0)|0,this._c=this._c+i+(this._cl>>>0<g>>>0?1:0)|0,this._d=this._d+l+(this._dl>>>0<v>>>0?1:0)|0,this._e=this._e+c+(this._el>>>0<m>>>0?1:0)|0,this._f=this._f+u+(this._fl>>>0<y>>>0?1:0)|0,this._g=this._g+h+(this._gl>>>0<E>>>0?1:0)|0,this._h=this._h+d+(this._hl>>>0<w>>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,i){n.writeInt32BE(t,i),n.writeInt32BE(e,i+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){function i(t,e){t[e>>5]|=128<<e%32,t[(e+64>>>9<<4)+14]=e;for(var n=1732584193,i=-271733879,r=-1732584194,u=271733878,h=0;h<t.length;h+=16){var d=n,f=i,p=r,g=u;n=o(n,i,r,u,t[h+0],7,-680876936),u=o(u,n,i,r,t[h+1],12,-389564586),r=o(r,u,n,i,t[h+2],17,606105819),i=o(i,r,u,n,t[h+3],22,-1044525330),n=o(n,i,r,u,t[h+4],7,-176418897),u=o(u,n,i,r,t[h+5],12,1200080426),r=o(r,u,n,i,t[h+6],17,-1473231341),i=o(i,r,u,n,t[h+7],22,-45705983),n=o(n,i,r,u,t[h+8],7,1770035416),u=o(u,n,i,r,t[h+9],12,-1958414417),r=o(r,u,n,i,t[h+10],17,-42063),i=o(i,r,u,n,t[h+11],22,-1990404162),n=o(n,i,r,u,t[h+12],7,1804603682),u=o(u,n,i,r,t[h+13],12,-40341101),r=o(r,u,n,i,t[h+14],17,-1502002290),i=o(i,r,u,n,t[h+15],22,1236535329),n=s(n,i,r,u,t[h+1],5,-165796510),u=s(u,n,i,r,t[h+6],9,-1069501632),r=s(r,u,n,i,t[h+11],14,643717713),i=s(i,r,u,n,t[h+0],20,-373897302),n=s(n,i,r,u,t[h+5],5,-701558691),u=s(u,n,i,r,t[h+10],9,38016083),r=s(r,u,n,i,t[h+15],14,-660478335),i=s(i,r,u,n,t[h+4],20,-405537848),n=s(n,i,r,u,t[h+9],5,568446438),u=s(u,n,i,r,t[h+14],9,-1019803690),r=s(r,u,n,i,t[h+3],14,-187363961),i=s(i,r,u,n,t[h+8],20,1163531501),n=s(n,i,r,u,t[h+13],5,-1444681467),u=s(u,n,i,r,t[h+2],9,-51403784),r=s(r,u,n,i,t[h+7],14,1735328473),i=s(i,r,u,n,t[h+12],20,-1926607734),n=a(n,i,r,u,t[h+5],4,-378558),u=a(u,n,i,r,t[h+8],11,-2022574463),r=a(r,u,n,i,t[h+11],16,1839030562),i=a(i,r,u,n,t[h+14],23,-35309556),n=a(n,i,r,u,t[h+1],4,-1530992060),u=a(u,n,i,r,t[h+4],11,1272893353),r=a(r,u,n,i,t[h+7],16,-155497632),i=a(i,r,u,n,t[h+10],23,-1094730640),n=a(n,i,r,u,t[h+13],4,681279174),u=a(u,n,i,r,t[h+0],11,-358537222),r=a(r,u,n,i,t[h+3],16,-722521979),i=a(i,r,u,n,t[h+6],23,76029189),n=a(n,i,r,u,t[h+9],4,-640364487),u=a(u,n,i,r,t[h+12],11,-421815835),r=a(r,u,n,i,t[h+15],16,530742520),i=a(i,r,u,n,t[h+2],23,-995338651),n=l(n,i,r,u,t[h+0],6,-198630844),u=l(u,n,i,r,t[h+7],10,1126891415),r=l(r,u,n,i,t[h+14],15,-1416354905),i=l(i,r,u,n,t[h+5],21,-57434055),n=l(n,i,r,u,t[h+12],6,1700485571),u=l(u,n,i,r,t[h+3],10,-1894986606),r=l(r,u,n,i,t[h+10],15,-1051523),i=l(i,r,u,n,t[h+1],21,-2054922799),n=l(n,i,r,u,t[h+8],6,1873313359),u=l(u,n,i,r,t[h+15],10,-30611744),r=l(r,u,n,i,t[h+6],15,-1560198380),i=l(i,r,u,n,t[h+13],21,1309151649),n=l(n,i,r,u,t[h+4],6,-145523070),u=l(u,n,i,r,t[h+11],10,-1120210379),r=l(r,u,n,i,t[h+2],15,718787259),i=l(i,r,u,n,t[h+9],21,-343485551),n=c(n,d),i=c(i,f),r=c(r,p),u=c(u,g)}return Array(n,i,r,u)}function r(t,e,n,i,r,o){return c(u(c(c(e,t),c(i,o)),r),n)}function o(t,e,n,i,o,s,a){return r(e&n|~e&i,t,e,o,s,a)}function s(t,e,n,i,o,s,a){return r(e&i|n&~i,t,e,o,s,a)}function a(t,e,n,i,o,s,a){return r(e^n^i,t,e,o,s,a)}function l(t,e,n,i,o,s,a){return r(n^(e|~i),t,e,o,s,a)}function c(t,e){var n=(65535&t)+(65535&e),i=(t>>16)+(e>>16)+(n>>16);return i<<16|65535&n}function u(t,e){return t<<e|t>>>32-e}var h=n(29);t.exports=function(t){return h.hash(t,i,16)}},function(t,e,n){(function(e){function n(t,n){if(t.length%o!==0){var i=t.length+(o-t.length%o);t=e.concat([t,s],i)}for(var r=[],a=n?t.readInt32BE:t.readInt32LE,l=0;l<t.length;l+=o)r.push(a.call(t,l));return r}function i(t,n,i){for(var r=new e(n),o=i?r.writeInt32BE:r.writeInt32LE,s=0;s<t.length;s++)o.call(r,t[s],4*s,!0);return r}function r(t,r,o,s){e.isBuffer(t)||(t=new e(t));var l=r(n(t,s),t.length*a);return i(l,o,s)}var o=4,s=new e(o);s.fill(0);var a=8;t.exports={hash:r}}).call(e,n(12).Buffer)},function(t,e,n){(function(e){function n(t,e,n){return t^e^n}function i(t,e,n){return t&e|~t&n}function r(t,e,n){return(t|~e)^n}function o(t,e,n){return t&n|e&~n}function s(t,e,n){return t^(e|~n)}function a(t,e){return t<<e|t>>>32-e}function l(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var i=g(t),r=8*t.length,o=8*t.length;i[r>>>5]|=128<<24-r%32,i[(r+64>>>9<<4)+14]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var s=0;s<i.length;s+=16)m(n,i,s);for(var s=0;s<5;s++){var a=n[s];n[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var l=v(n);return new e(l)}t.exports=l;/** @preserve
	(c) 2012 by Cédric Mesnil. All rights reserved.
	
	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
	
	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
	    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
	
	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
	*/
var c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0],g=function(t){for(var e=[],n=0,i=0;n<t.length;n++,i+=8)e[i>>>5]|=t[n]<<24-i%32;return e},v=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},m=function(t,e,l){for(var g=0;g<16;g++){var v=l+g,m=e[v];e[v]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}var y,E,w,_,T,b,C,S,A,O;b=y=t[0],C=E=t[1],S=w=t[2],A=_=t[3],O=T=t[4];for(var R,g=0;g<80;g+=1)R=y+e[l+c[g]]|0,R+=g<16?n(E,w,_)+f[0]:g<32?i(E,w,_)+f[1]:g<48?r(E,w,_)+f[2]:g<64?o(E,w,_)+f[3]:s(E,w,_)+f[4],R|=0,R=a(R,h[g]),R=R+T|0,y=T,T=_,_=a(w,10),w=E,E=R,R=b+e[l+u[g]]|0,R+=g<16?s(C,S,A)+p[0]:g<32?o(C,S,A)+p[1]:g<48?r(C,S,A)+p[2]:g<64?i(C,S,A)+p[3]:n(C,S,A)+p[4],R|=0,R=a(R,d[g]),R=R+O|0,b=O,O=A,A=a(S,10),S=C,C=R;R=t[1]+w+A|0,t[1]=t[2]+_+O|0,t[2]=t[3]+T+b|0,t[3]=t[4]+y+C|0,t[4]=t[0]+E+S|0,t[0]=R}}).call(e,n(12).Buffer)},function(t,e,n){(function(e){function i(t,n){if(!(this instanceof i))return new i(t,n);this._opad=l,this._alg=t;var s="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>s?n=r(t).update(n).digest():n.length<s&&(n=e.concat([n,o],s));for(var a=this._ipad=new e(s),l=this._opad=new e(s),c=0;c<s;c++)a[c]=54^n[c],l[c]=92^n[c];this._hash=r(t).update(a)}var r=n(18),o=new e(128);o.fill(0),t.exports=i,i.prototype.update=function(t,e){return this._hash.update(t,e),this},i.prototype.digest=function(t){var e=this._hash.digest();return r(this._alg).update(this._opad).update(e).digest(t)}}).call(e,n(12).Buffer)},function(t,e,n){var i=n(33);t.exports=function(t,e){e=e||{};var n=i(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e){t.exports=function(t){function n(t,e,n,r,o,s){if("function"==typeof o&&(s=o,o=void 0),"function"!=typeof s)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var a;try{a=i(t,e,n,r,o)}catch(t){return s(t)}s(void 0,a)})}function i(n,i,r,o,s){if("number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0)throw new TypeError("Bad key length");s=s||"sha1",e.isBuffer(n)||(n=new e(n)),e.isBuffer(i)||(i=new e(i));var a,l,c,u=1,h=new e(o),d=new e(i.length+4);i.copy(d,0,0,i.length);for(var f=1;f<=u;f++){d.writeUInt32BE(f,i.length);var p=t.createHmac(s,n).update(d).digest();if(!a&&(a=p.length,c=new e(a),u=Math.ceil(o/a),l=o-(u-1)*a,o>(Math.pow(2,32)-1)*a))throw new TypeError("keylen exceeds maximum length");p.copy(c,0,0,a);for(var g=1;g<r;g++){p=t.createHmac(s,n).update(p).digest();for(var v=0;v<a;v++)c[v]^=p[v]}var m=(f-1)*a,y=f==u?l:a;c.copy(h,m,0,y)}return h}return{pbkdf2:n,pbkdf2Sync:i}}}).call(e,n(12).Buffer)},function(t,e,n){t.exports=function(t,e){function i(){return Object.keys(s)}e=e||{};var r=n(35)(t);e.createCipher=r.createCipher,e.createCipheriv=r.createCipheriv;var o=n(72)(t);e.createDecipher=o.createDecipher,e.createDecipheriv=o.createDecipheriv;var s=n(63);e.listCiphers=i}},function(t,e,n){(function(e){function i(t,n,a){return this instanceof i?(s.call(this),this._cache=new r,this._cipher=new o.AES(n),this._prev=new e(a.length),a.copy(this._prev),void(this._mode=t)):new i(t,n,a)}function r(){return this instanceof r?void(this.cache=new e("")):new r}var o=n(36),s=n(37),a=n(62),l=n(63),c=n(64),u=n(65);a(i,s),i.prototype._transform=function(t,e,n){this._cache.add(t);for(var i,r;i=this._cache.get();)r=this._mode.encrypt(this,i),this.push(r);n()},i.prototype._flush=function(t){var e=this._cache.flush();this.push(this._mode.encrypt(this,e)),this._cipher.scrub(),t()},r.prototype.add=function(t){this.cache=e.concat([this.cache,t])},r.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},r.prototype.flush=function(){for(var t=16-this.cache.length,n=new e(t),i=-1;++i<t;)n.writeUInt8(t,i);var r=e.concat([this.cache,n]);return r};var h={ECB:n(66),CBC:n(67),CFB:n(69),OFB:n(70),CTR:n(71)};t.exports=function(t){function n(t,n,r){var o=l[t];if(!o)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=new e(r)),"string"==typeof n&&(n=new e(n)),n.length!==o.key/8)throw new TypeError("invalid key length "+n.length);if(r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===o.type?new u(h[o.mode],n,r):new i(h[o.mode],n,r)}function r(e,i){var r=l[e];if(!r)throw new TypeError("invalid suite type");var o=c(t,i,r.key,r.iv);return n(e,o.key,o.iv)}return{createCipher:r,createCipheriv:n}}}).call(e,n(12).Buffer)},function(t,e,n){(function(t){function n(t){var e,n;return e=t>a||t<0?(n=Math.abs(t)%a,t<0?a-n:n):t}function i(t){var e,n,i;for(e=n=0,i=t.length;0<=i?n<i:n>i;e=0<=i?++n:--n)t[e]=0;return!1}function r(){var t;this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=function(){var e,n;for(n=[],t=e=0;e<4;t=++e)n.push([]);return n}(),this.INV_SUB_MIX=function(){var e,n;for(n=[],t=e=0;e<4;t=++e)n.push([]);return n}(),this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}function o(t){for(var e=t.length/4,n=new Array(e),i=-1;++i<e;)n[i]=t.readUInt32BE(4*i);return n}function s(t){this._key=o(t),this._doReset()}var a=Math.pow(2,32);r.prototype.init=function(){var t,e,n,i,r,o,s,a,l,c;for(t=function(){var t,n;for(n=[],e=t=0;t<256;e=++t)e<128?n.push(e<<1):n.push(e<<1^283);return n}(),r=0,l=0,e=c=0;c<256;e=++c)n=l^l<<1^l<<2^l<<3^l<<4,n=n>>>8^255&n^99,this.SBOX[r]=n,this.INV_SBOX[n]=r,o=t[r],s=t[o],a=t[s],i=257*t[n]^16843008*n,this.SUB_MIX[0][r]=i<<24|i>>>8,this.SUB_MIX[1][r]=i<<16|i>>>16,this.SUB_MIX[2][r]=i<<8|i>>>24,this.SUB_MIX[3][r]=i,i=16843009*a^65537*s^257*o^16843008*r,this.INV_SUB_MIX[0][n]=i<<24|i>>>8,this.INV_SUB_MIX[1][n]=i<<16|i>>>16,this.INV_SUB_MIX[2][n]=i<<8|i>>>24,this.INV_SUB_MIX[3][n]=i,0===r?r=l=1:(r=o^t[t[t[a^o]]],l^=t[t[l]]);return!0};var l=new r;s.blockSize=16,s.prototype.blockSize=s.blockSize,s.keySize=32,s.prototype.keySize=s.keySize,s.ivSize=s.blockSize,s.prototype.ivSize=s.ivSize,s.prototype._doReset=function(){var t,e,n,i,r,o,s,a;for(n=this._key,e=n.length,this._nRounds=e+6,r=4*(this._nRounds+1),this._keySchedule=[],i=s=0;0<=r?s<r:s>r;i=0<=r?++s:--s)this._keySchedule[i]=i<e?n[i]:(o=this._keySchedule[i-1],i%e===0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=l.RCON[i/e|0]<<24):e>6&&i%e===4?o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]:void 0,this._keySchedule[i-e]^o);for(this._invKeySchedule=[],t=a=0;0<=r?a<r:a>r;t=0<=r?++a:--a)i=r-t,o=this._keySchedule[i-(t%4?0:4)],this._invKeySchedule[t]=t<4||i<=4?o:l.INV_SUB_MIX[0][l.SBOX[o>>>24]]^l.INV_SUB_MIX[1][l.SBOX[o>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[o>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&o]];return!0},s.prototype.encryptBlock=function(e){e=o(new t(e));var n=this._doCryptBlock(e,this._keySchedule,l.SUB_MIX,l.SBOX),i=new t(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[1],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[3],12),i},s.prototype.decryptBlock=function(e){e=o(new t(e));var n=[e[3],e[1]];e[1]=n[0],e[3]=n[1];var i=this._doCryptBlock(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX),r=new t(16);return r.writeUInt32BE(i[0],0),r.writeUInt32BE(i[3],4),r.writeUInt32BE(i[2],8),r.writeUInt32BE(i[1],12),r},s.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},s.prototype._doCryptBlock=function(t,e,i,r){var o,s,a,l,c,u,h,d,f,p,g,v;for(a=t[0]^e[0],l=t[1]^e[1],c=t[2]^e[2],u=t[3]^e[3],o=4,s=g=1,v=this._nRounds;1<=v?g<v:g>v;s=1<=v?++g:--g)h=i[0][a>>>24]^i[1][l>>>16&255]^i[2][c>>>8&255]^i[3][255&u]^e[o++],d=i[0][l>>>24]^i[1][c>>>16&255]^i[2][u>>>8&255]^i[3][255&a]^e[o++],f=i[0][c>>>24]^i[1][u>>>16&255]^i[2][a>>>8&255]^i[3][255&l]^e[o++],p=i[0][u>>>24]^i[1][a>>>16&255]^i[2][l>>>8&255]^i[3][255&c]^e[o++],a=h,l=d,c=f,u=p;return h=(r[a>>>24]<<24|r[l>>>16&255]<<16|r[c>>>8&255]<<8|r[255&u])^e[o++],d=(r[l>>>24]<<24|r[c>>>16&255]<<16|r[u>>>8&255]<<8|r[255&a])^e[o++],f=(r[c>>>24]<<24|r[u>>>16&255]<<16|r[a>>>8&255]<<8|r[255&l])^e[o++],p=(r[u>>>24]<<24|r[a>>>16&255]<<16|r[l>>>8&255]<<8|r[255&c])^e[o++],[n(h),n(d),n(f),n(p)]},e.AES=s}).call(e,n(12).Buffer)},function(t,e,n){(function(e){function i(){r.call(this)}var r=n(38).Transform,o=n(62);t.exports=i,o(i,r),i.prototype.update=function(t,n,i){this.write(t,n);for(var r,o=new e("");r=this.read();)o=e.concat([o,r]);return i&&(o=o.toString(i)),o},i.prototype.final=function(t){this.end();for(var n,i=new e("");n=this.read();)i=e.concat([i,n]);return t&&(i=i.toString(t)),i}}).call(e,n(12).Buffer)},function(t,e,n){function i(){r.call(this)}t.exports=i;var r=n(39).EventEmitter,o=n(40);o(i,r),i.Readable=n(41),i.Writable=n(58),i.Duplex=n(59),i.Transform=n(60),i.PassThrough=n(61),i.Stream=i,i.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function i(){c.readable&&c.resume&&c.resume()}function o(){u||(u=!0,t.end())}function s(){u||(u=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){c.removeListener("data",n),t.removeListener("drain",i),c.removeListener("end",o),c.removeListener("close",s),c.removeListener("error",a),t.removeListener("error",a),c.removeListener("end",l),c.removeListener("close",l),t.removeListener("close",l)}var c=this;c.on("data",n),t.on("drain",i),t._isStdio||e&&e.end===!1||(c.on("end",o),c.on("close",s));var u=!1;return c.on("error",a),t.on("error",a),c.on("end",l),c.on("close",l),t.on("close",l),t.emit("pipe",c),t}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function r(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!r(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,r,a,l,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(n=this._events[t],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,l=0;l<r;l++)c[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,r,s,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],s=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){(function(i){var r=function(){try{return n(38)}catch(t){}}();e=t.exports=n(42),e.Stream=r||e,e.Readable=e,e.Writable=n(51),e.Duplex=n(50),e.Transform=n(56),e.PassThrough=n(57),!i.browser&&"disable"===i.env.READABLE_STREAM&&r&&(t.exports=r)}).call(e,n(23))},function(t,e,n){(function(e){"use strict";function i(t,e,n){return"function"==typeof t.prependListener?t.prependListener(e,n):void(t._events&&t._events[e]?N(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n))}function r(t,e){x=x||n(50),t=t||{},this.objectMode=!!t.objectMode,e instanceof x&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(V||(V=n(55).StringDecoder),this.decoder=new V(t.encoding),this.encoding=t.encoding)}function o(t){return x=x||n(50),this instanceof o?(this._readableState=new r(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),void k.call(this)):new o(t)}function s(t,e,n,i,r){var o=u(e,n);if(o)t.emit("error",o);else if(null===n)e.reading=!1,h(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!r){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&r){var l=new Error("stream.unshift() after end event");t.emit("error",l)}else{var c;!e.decoder||r||i||(n=e.decoder.write(n),c=!e.objectMode&&0===n.length),r||(e.reading=!1),c||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&d(t))),p(t,e)}else r||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function l(t){return t>=F?t=F:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function c(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=l(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function u(t,e){var n=null;return M.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,d(t)}}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(U("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?I(f,t):f(t))}function f(t){U("emit readable"),t.emit("readable"),w(t)}function p(t,e){e.readingMore||(e.readingMore=!0,I(g,t,e))}function g(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(U("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function v(t){return function(){var e=t._readableState;U("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&L(t,"data")&&(e.flowing=!0,w(t))}}function m(t){U("readable nexttick read 0"),t.read(0)}function y(t,e){e.resumeScheduled||(e.resumeScheduled=!0,I(E,t,e))}function E(t,e){e.reading||(U("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),w(t),e.flowing&&!e.reading&&t.read(0)}function w(t){var e=t._readableState;for(U("flow",e.flowing);e.flowing&&null!==t.read(););}function _(t,e){if(0===e.length)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=T(t,e.buffer,e.decoder),n}function T(t,e,n){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?b(t,e):C(t,e),i}function b(t,e){var n=e.head,i=1,r=n.data;for(t-=r.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(r+=s===o.length?o:o.slice(0,t),t-=s,0===t){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}function C(t,e){var n=D.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var o=i.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,0===t){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(s));break}++r}return e.length-=r,n}function S(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,I(A,e,t))}function A(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,i=t.length;n<i;n++)e(t[n],n)}function R(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}t.exports=o;var x,I=n(43),N=n(44);o.ReadableState=r;var k,L=(n(39).EventEmitter,function(t,e){return t.listeners(e).length});!function(){try{k=n(38)}catch(t){}finally{k||(k=n(39).EventEmitter)}}();var M=n(12).Buffer,D=n(45),B=n(46);B.inherits=n(47);var P=n(48),U=void 0;U=P&&P.debuglog?P.debuglog("stream"):function(){};var V,H=n(49);B.inherits(o,k),o.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding,e!==n.encoding&&(t=D.from(t,e),e="")),s(this,n,t,e,!1)},o.prototype.unshift=function(t){var e=this._readableState;return s(this,e,t,"",!0)},o.prototype.isPaused=function(){return this._readableState.flowing===!1},o.prototype.setEncoding=function(t){return V||(V=n(55).StringDecoder),this._readableState.decoder=new V(t),this._readableState.encoding=t,this};var F=8388608;o.prototype.read=function(t){U("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return U("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?S(this):d(this),null;if(t=c(t,e),0===t&&e.ended)return 0===e.length&&S(this),null;var i=e.needReadable;U("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,U("length less than watermark",i)),e.ended||e.reading?(i=!1,U("reading or ended",i)):i&&(U("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=c(n,e)));var r;return r=t>0?_(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&S(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},o.prototype.pipe=function(t,n){function r(t){U("onunpipe"),t===d&&s()}function o(){U("onend"),t.end()}function s(){U("cleanup"),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("drain",m),t.removeListener("error",l),t.removeListener("unpipe",r),d.removeListener("end",o),d.removeListener("end",s),d.removeListener("data",a),y=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||m()}function a(e){U("ondata"),E=!1;var n=t.write(e);!1!==n||E||((1===f.pipesCount&&f.pipes===t||f.pipesCount>1&&R(f.pipes,t)!==-1)&&!y&&(U("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,E=!0),d.pause())}function l(e){U("onerror",e),h(),t.removeListener("error",l),0===L(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",u),h()}function u(){U("onfinish"),t.removeListener("close",c),h()}function h(){U("unpipe"),d.unpipe(t)}var d=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,U("pipe count=%d opts=%j",f.pipesCount,n);var p=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr,g=p?o:s;f.endEmitted?I(g):d.once("end",g),t.on("unpipe",r);var m=v(d);t.on("drain",m);var y=!1,E=!1;return d.on("data",a),i(t,"error",l),t.once("close",c),t.once("finish",u),t.emit("pipe",d),f.flowing||(U("pipe resume"),d.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r<i;r++)n[r].emit("unpipe",this);return this}var o=R(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},o.prototype.on=function(t,e){var n=k.prototype.on.call(this,t,e);if("data"===t)this._readableState.flowing!==!1&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&d(this,i):I(m,this))}return n},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var t=this._readableState;return t.flowing||(U("resume"),t.flowing=!0,y(this,t)),this},o.prototype.pause=function(){return U("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(U("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(t){var e=this._readableState,n=!1,i=this;t.on("end",function(){if(U("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&i.push(t)}i.push(null)}),t.on("data",function(r){if(U("wrapped data"),e.decoder&&(r=e.decoder.write(r)),(!e.objectMode||null!==r&&void 0!==r)&&(e.objectMode||r&&r.length)){var o=i.push(r);o||(n=!0,t.pause())}});for(var r in t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));var o=["error","close","destroy","pause","resume"];return O(o,function(e){t.on(e,i.emit.bind(i,e))}),i._read=function(e){U("wrapped _read",e),n&&(n=!1,t.resume())},i},o._fromList=_}).call(e,n(23))},function(t,e,n){(function(e){"use strict";function n(t,n,i,r){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,i)});case 4:return e.nextTick(function(){t.call(null,n,i,r)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n(23))},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){"use strict";var i=n(12),r=i.Buffer,o=i.SlowBuffer,s=i.kMaxLength||2147483647;e.alloc=function(t,e,n){if("function"==typeof r.alloc)return r.alloc(t,e,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof t)throw new TypeError("size must be a number");if(t>s)throw new RangeError("size is too large");var i=n,o=e;void 0===o&&(i=void 0,o=0);var a=new r(t);if("string"==typeof o)for(var l=new r(o,i),c=l.length,u=-1;++u<t;)a[u]=l[u%c];else a.fill(o);return a},e.allocUnsafe=function(t){if("function"==typeof r.allocUnsafe)return r.allocUnsafe(t);if("number"!=typeof t)throw new TypeError("size must be a number");if(t>s)throw new RangeError("size is too large");return new r(t)},e.from=function(e,n,i){if("function"==typeof r.from&&(!t.Uint8Array||Uint8Array.from!==r.from))return r.from(e,n,i);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new r(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var o=n;if(1===arguments.length)return new r(e);"undefined"==typeof o&&(o=0);var s=i;if("undefined"==typeof s&&(s=e.byteLength-o),o>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(s>e.byteLength-o)throw new RangeError("'length' is out of bounds");return new r(e.slice(o,o+s))}if(r.isBuffer(e)){var a=new r(e.length);return e.copy(a,0,0,e.length),a}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new r(e);if("Buffer"===e.type&&Array.isArray(e.data))return new r(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},e.allocUnsafeSlow=function(t){if("function"==typeof r.allocUnsafeSlow)return r.allocUnsafeSlow(t);if("number"!=typeof t)throw new TypeError("size must be a number");if(t>=s)throw new RangeError("size is too large");return new o(t)}}).call(e,function(){return this}())},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function i(t){return"boolean"==typeof t}function r(t){return null===t}function o(t){return null==t}function s(t){return"number"==typeof t}function a(t){return"string"==typeof t}function l(t){return"symbol"==typeof t}function c(t){return void 0===t}function u(t){return"[object RegExp]"===v(t)}function h(t){return"object"==typeof t&&null!==t}function d(t){return"[object Date]"===v(t)}function f(t){return"[object Error]"===v(t)||t instanceof Error}function p(t){return"function"==typeof t}function g(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function v(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=i,e.isNull=r,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol=l,e.isUndefined=c,e.isRegExp=u,e.isObject=h,e.isDate=d,e.isError=f,e.isFunction=p,e.isPrimitive=g,e.isBuffer=t.isBuffer}).call(e,n(12).Buffer)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){},function(t,e,n){"use strict";function i(){this.head=null,this.tail=null,this.length=0}var r=(n(12).Buffer,n(45));t.exports=i,i.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},i.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},i.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},i.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e=r.allocUnsafe(t>>>0),n=this.head,i=0;n;)n.data.copy(e,i),i+=n.data.length,n=n.next;return e}},function(t,e,n){"use strict";function i(t){return this instanceof i?(c.call(this,t),u.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",r)):new i(t)}function r(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(t){t.end()}var s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=i;var a=n(43),l=n(46);l.inherits=n(47);var c=n(42),u=n(51);l.inherits(i,c);for(var h=s(u.prototype),d=0;d<h.length;d++){var f=h[d];i.prototype[f]||(i.prototype[f]=u.prototype[f])}},function(t,e,n){(function(e,i){"use strict";function r(){}function o(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function s(t,e){C=C||n(50),t=t||{},this.objectMode=!!t.objectMode,e instanceof C&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){g(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new b(this)}function a(t){return C=C||n(50),k.call(a,this)||this instanceof C?(this._writableState=new s(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),void R.call(this)):new a(t)}function l(t,e){var n=new Error("write after end");t.emit("error",n),S(e,n)}function c(t,e,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):I.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),S(i,o),r=!1),r}function u(t,e,n){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=N.from(e,n)),e}function h(t,e,n,i,r){n=u(e,n,i),I.isBuffer(n)&&(i="buffer");var s=e.objectMode?1:n.length;e.length+=s;var a=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest=new o(n,i,r),l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else d(t,e,!1,s,n,i,r);return a}function d(t,e,n,i,r,o,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,o,e.onwrite),e.sync=!1}function f(t,e,n,i,r){
--e.pendingcb,n?S(r,i):r(i),t._writableState.errorEmitted=!0,t.emit("error",i)}function p(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function g(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if(p(n),e)f(t,n,i,e,r);else{var o=E(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?A(v,t,n,o,r):v(t,n,o,r)}}function v(t,e,n,i){n||m(t,e),e.pendingcb--,i(),_(t,e)}function m(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),o=e.corkedRequestsFree;o.entry=n;for(var s=0;n;)r[s]=n,n=n.next,s+=1;d(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new b(e)}else{for(;n;){var a=n.chunk,l=n.encoding,c=n.callback,u=e.objectMode?1:a.length;if(d(t,e,!1,u,a,l,c),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function _(t,e){var n=E(e);return n&&(0===e.pendingcb?(w(t,e),e.finished=!0,t.emit("finish")):w(t,e)),n}function T(t,e,n){e.ending=!0,_(t,e),n&&(e.finished?S(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function b(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}t.exports=a;var C,S=n(43),A=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:S;a.WritableState=s;var O=n(46);O.inherits=n(47);var R,x={deprecate:n(54)};!function(){try{R=n(38)}catch(t){}finally{R||(R=n(39).EventEmitter)}}();var I=n(12).Buffer,N=n(45);O.inherits(a,R),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:x.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(t){}}();var k;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(k=Function.prototype[Symbol.hasInstance],Object.defineProperty(a,Symbol.hasInstance,{value:function(t){return!!k.call(this,t)||t&&t._writableState instanceof s}})):k=function(t){return t instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(t,e,n){var i=this._writableState,o=!1;return"function"==typeof e&&(n=e,e=null),I.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=r),i.ended?l(this,n):c(this,i,t,n)&&(i.pendingcb++,o=h(this,i,t,e,n)),o},a.prototype.cork=function(){var t=this._writableState;t.corked++},a.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||y(this,t))},a.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},a.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||T(this,i,n)}}).call(e,n(23),n(52).setImmediate)},function(t,e,n){function i(t,e){this._id=t,this._clearFn=e}var r=Function.prototype.apply;e.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(53),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function i(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return g[p]=i,f(p),p++}function r(t){delete g[t]}function o(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}function s(t){if(v)setTimeout(s,0,t);else{var e=g[t];if(e){v=!0;try{o(e)}finally{r(t),v=!1}}}}function a(){f=function(t){e.nextTick(function(){s(t)})}}function l(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function c(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),f=function(n){t.postMessage(e+n,"*")}}function u(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;s(e)},f=function(e){t.port2.postMessage(e)}}function h(){var t=m.documentElement;f=function(e){var n=m.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function d(){f=function(t){setTimeout(s,0,t)}}if(!t.setImmediate){var f,p=1,g={},v=!1,m=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?a():l()?c():t.MessageChannel?u():m&&"onreadystatechange"in m.createElement("script")?h():d(),y.setImmediate=i,y.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),n(23))},function(t,e){(function(e){function n(t,e){function n(){if(!r){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}if(i("noDeprecation"))return t;var r=!1;return n}function i(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(e,function(){return this}())},function(t,e,n){function i(t){if(t&&!l(t))throw new Error("Unknown encoding: "+t)}function r(t){return t.toString(this.encoding)}function o(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function s(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var a=n(12).Buffer,l=a.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),i(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=r)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";t=t.slice(n,t.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=e.charCodeAt(e.length-1);if(!(i>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),e+=t.toString(this.encoding,0,r);var r=e.length-1,i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},c.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},c.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;e+=i.slice(0,n).toString(r)}return e}},function(t,e,n){"use strict";function i(t){this.afterTransform=function(e,n){return r(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function r(t,e,n){var i=t._transformState;i.transforming=!1;var r=i.writecb;if(!r)return t.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,i.writecb=null,null!==n&&void 0!==n&&t.push(n),r(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState=new i(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,n){s(e,t,n)}):s(e)})}function s(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var i=t._writableState,r=t._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var a=n(50),l=n(46);l.inherits=n(47),l.inherits(o,a),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},function(t,e,n){"use strict";function i(t){return this instanceof i?void r.call(this,t):new i(t)}t.exports=i;var r=n(56),o=n(46);o.inherits=n(47),o.inherits(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(51)},function(t,e,n){t.exports=n(50)},function(t,e,n){t.exports=n(56)},function(t,e,n){t.exports=n(57)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){e["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},e["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},e["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},e["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},e["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},e["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},e.aes128=e["aes-128-cbc"],e.aes192=e["aes-192-cbc"],e.aes256=e["aes-256-cbc"],e["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},e["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},e["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},e["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},e["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},e["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},e["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},e["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},e["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"}},function(t,e,n){(function(e){t.exports=function(t,n,i,r){i/=8,r=r||0;for(var o,s,a,l=0,c=0,u=new e(i),h=new e(r),d=0;;){if(o=t.createHash("md5"),d++>0&&o.update(s),o.update(n),s=o.digest(),a=0,i>0)for(;;){if(0===i)break;if(a===s.length)break;u[l++]=s[a],i--,a++}if(r>0&&a!==s.length)for(;;){if(0===r)break;if(a===s.length)break;h[c++]=s[a],r--,a++}if(0===i&&0===r)break}for(a=0;a<s.length;a++)s[a]=0;return{key:u,iv:h}}}).call(e,n(12).Buffer)},function(t,e,n){(function(e){function i(t,n,s,a){return this instanceof i?(o.call(this),this._cipher=new r.AES(n),this._prev=new e(s.length),this._cache=new e(""),this._secCache=new e(""),this._decrypt=a,s.copy(this._prev),void(this._mode=t)):new i(t,n,s)}var r=n(36),o=n(37),s=n(62);s(i,o),t.exports=i,i.prototype._transform=function(t,e,n){n(null,this._mode.encrypt(this,t,this._decrypt))},i.prototype._flush=function(t){this._cipher.scrub(),t()}}).call(e,n(12).Buffer)},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var i=n(68);e.encrypt=function(t,e){var n=i(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return i(r,n)}},function(t,e,n){(function(e){function n(t,n){for(var i=Math.min(t.length,n.length),r=new e(i),o=-1;++o<i;)r.writeUInt8(t[o]^n[o],o);return r}t.exports=n}).call(e,n(12).Buffer)},function(t,e,n){(function(t){function i(e,n,i){var o=n.length,s=r(n,e._cache);return e._cache=e._cache.slice(o),e._prev=t.concat([e._prev,i?n:s]),s}var r=n(68);e.encrypt=function(e,n,r){for(var o,s=new t("");n.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=new t("")),!(e._cache.length<=n.length)){s=t.concat([s,i(e,n,r)]);break}o=e._cache.length,s=t.concat([s,i(e,n.slice(0,o),r)]),n=n.slice(o)}return s}}).call(e,n(12).Buffer)},function(t,e,n){(function(t){function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var r=n(68);e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,o)}}).call(e,n(12).Buffer)},function(t,e,n){(function(t){function i(t){var e=t._cipher.encryptBlock(t._prev);return r(t._prev),e}function r(t){for(var e,n=t.length;n--;){if(e=t.readUInt8(n),255!==e){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}var o=n(68);e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var r=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),o(n,r)}}).call(e,n(12).Buffer)},function(t,e,n){(function(e){function i(t,n,o){return this instanceof i?(a.call(this),this._cache=new r,this._last=void 0,this._cipher=new s.AES(n),this._prev=new e(o.length),o.copy(this._prev),void(this._mode=t)):new i(t,n,o)}function r(){return this instanceof r?void(this.cache=new e("")):new r}function o(t){var e=t[15];if(16!==e)return t.slice(0,16-e)}var s=n(36),a=n(37),l=n(62),c=n(63),u=n(65),h=n(64);l(i,a),i.prototype._transform=function(t,e,n){this._cache.add(t);for(var i,r;i=this._cache.get();)r=this._mode.decrypt(this,i),this.push(r);n()},i.prototype._flush=function(t){var e=this._cache.flush();return e?(this.push(o(this._mode.decrypt(this,e))),void t()):t},r.prototype.add=function(t){this.cache=e.concat([this.cache,t])},r.prototype.get=function(){if(this.cache.length>16){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},r.prototype.flush=function(){if(this.cache.length)return this.cache};var d={ECB:n(66),CBC:n(67),CFB:n(69),OFB:n(70),CTR:n(71)};t.exports=function(t){function n(t,n,r){var o=c[t];if(!o)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=new e(r)),"string"==typeof n&&(n=new e(n)),n.length!==o.key/8)throw new TypeError("invalid key length "+n.length);if(r.length!==o.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===o.type?new u(d[o.mode],n,r,!0):new i(d[o.mode],n,r)}function r(e,i){var r=c[e];if(!r)throw new TypeError("invalid suite type");var o=h(t,i,r.key,r.iv);return n(e,o.key,o.iv)}return{createDecipher:r,createDecipheriv:n}}}).call(e,n(12).Buffer)},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[],r=function(){return{URL:"/li/track",QUERY_PARAM:"trk",PEMBERLY_PAGE_INSTANCE_QUERY_PARAM:"lipi",EVENTS:{PAGE_VIEW:"PageViewEvent",FEED:{ACTION_EVENT:"PulseFeedActionEvent",IMPRESSION_EVENT:"PulseFeedImpression2Event"},ARTICLE:{ACTION_EVENT:"PulseStoryActionEvent",VIEW_EVENT:"ArticleViewEvent",REC_STORY_IMPRESSION_EVENT:"PulseStoryRecImpressionEvent"},CONTROL_INTERACTION_EVENT:"ControlInteractionEvent",NAVIGATION_EVENT:"NavigationEvent"},TOPICS:{PULSE_CONTROL_INTERACTION:"PulseControlInteractionEvent",PULSE_NAVIGATION:"PulseNavigationEvent"},CONTROL_URN:{PREFIX:"urn:li:control:",LIKE_TOGGLE:"-like_toggle",RESHARE_DROPDOWN:"-reshare_dropdown",SHARE_INTENT:"-share_intent",SHARE_FB:"-share_fb",SHARE_TWITTER:"-share_twitter",SHARE_INTERNAL:"-share_internal",SAVE_TOGGLE:"-save_toggle",REPORT_ARTICLE:"-report",VIEW_ARTICLE:"-view_article",POST_IMAGE:"-post_image",POST_CHANNEL:"-channel",COMMENT_BUTTON:"-comment_button",COMMENT_INTENT:"-comment_intent",USER_PROFILE:"-user-profile",FOLLOW_BUTTON:"-follow-button",WRITE:"-write",EDIT:"-edit",ANALYTICS:"-analytics",RELATED:"-related",FOLLOWER:"-follower",FOLLOWING:"-following",PUBLISHED:"-published",DRAFTS:"-drafts",INTEREST_FEED:"-interest_feed"},ACTION_TYPES:{LIKE_ARTICLE:"likeArticle",UNLIKE_ARTICLE:"unlikeArticle",EXPAND_SHARE:"expandShare",SHARE_INTENT:"shareIntent",SHARE_EXTERNALLY:"shareExternal",SHARE_INTERNAL:"shareInternal",SAVE_ARTICLE:"saveArticle",UNSAVE_ARTICLE:"unsaveArticle",EXPAND_REPORT_ARTICLE:"expandReportArticle",VIEW_ARTICLE:"viewArticle",VIEW_CHANNEL:"viewChannel",COMMENT_INTENT:"commentIntent",CLICK_USER_PROFILE:"clickUserProfile",FOLLOW_AUTHOR:"followAuthor",UNFOLLOW_AUTHOR:"unfollowAuthor",FOLLOW_CHANNEL:"followChannel",UNFOLLOW_CHANNEL:"unfollowChanel",FOLLOW_COMPANY:"followCompany",UNFOLLOW_COMPANY:"unfollowCompany",CLICK_WRITE_POST:"clickWritePost",CLICK_EDIT_POST:"clickEditPost",CLICK_ANALYTICS:"clickAnalytics",CLICK_RELATED:"clickRelated",CLICK_FOLLOWERS:"clickFollowers",CLICK_FOLLOWING:"clickFollowing",CLICK_PUBLISHED:"clickPublished",CLICK_DRAFTS:"clickDrafts",VIEW_WRITE_POST:"viewWritePost",EXPAND_COMMENT:"expandCommentBox",VIEW_INTEREST_FEED:"viewInterestFeed"},ACTION_CATEGORIES:{LIKE:"LIKE",UNLIKE:"UNLIKE",SHARE:"SHARE",EXPAND:"EXPAND",SAVE:"SAVE",UNSAVE:"UNSAVE",VIEW:"VIEW",SELECT:"SELECT",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"},MODULES:{FEED:"pulse-feed"},FOLLOW_TYPES:{AUTHOR:"AUTHOR",CHANNEL:"CHANNEL",COMPANY:"COMPANY"},METHOD_TRIGGERS:{TRACK_ACTION:"track:action",TRACK_CHILD:"track:child"},URN:"urn",TRACKING_ID:"trackingId",CLIENT_TRACKING_ID:"clientTrackingId",INTERACTION_TYPES:{CLICK:"SHORT_PRESS"},TRACKING_CODES:{}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(75)],r=function(t,e){return{app:t.extend({CURRENT_MEMBER:"current:member"},e.channel("app")),cache:t.extend({CLEAR:"clear",CLEAR_BOOKMARKS:"clear:bookmarks",CLEAR_FOLLOWING:"clear:following",CLEAR_LIKE:"clear:like"},e.channel("cache")),follow:t.extend({FOLLOW:"on:follow",UNFOLLOW:"on:unfollow"},e.channel("follow")),guest:t.extend({GATED_ACTION:"on:gatedAction"},e.channel("guest")),lixes:t.extend({GET_VALUE:"on:getValue",IS_ENABLED:"on:isEnabled"},e.channel("lixes")),page:t.extend({TITLE:"change:title"},e.channel("page")),router:t.extend({ROUTE:"route",BEFORE:"before:route",AFTER:"after:route",PAGE_RENDERED:"page:rendered:route"},e.channel("router")),services:t.extend({BOOKMARK_BEFORE:"bookmark:before",BOOKMARK_AFTER:"bookmark:after",FOLLOW_BEFORE:"follow:before",FOLLOW_AFTER:"follow:after",LIKE_BEFORE:"like:before",LIKE_AFTER:"like:after",DELETE_ARTICLE_BEFORE:"delete:article:before",DELETE_ARTICLE_AFTER:"delete:article:after"},e.channel("services")),tracking:t.extend({TRACK:"li-track"},e.channel("tracking")),modal:t.extend({SHOW:"show",CLOSE:"close",CONFIRM:"confirm",CANCEL:"cancel",CHANGE:{TITLE:"change:title"}},e.channel("modal"))}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){!function(e,i){t.exports=i(n(6),n(76))}(this,function(t,e){"use strict";function n(t,e,n,i){var r=t[e];if(!(n&&n!==r.callback&&n!==r.callback._callback||i&&i!==r.context))return delete t[e],!0}function i(e,i,r,o){e||(e={});for(var s=i?[i]:t.keys(e),a=!1,l=0,c=s.length;l<c;l++)i=s[l],e[i]&&n(e,i,r,o)&&(a=!0);return a}function r(e){return c[e]||(c[e]=t.partial(a.log,e))}function o(e){return t.isFunction(e)?e:function(){return e}}var s=e.Radio,a=e.Radio={};a.VERSION="0.9.1",a.noConflict=function(){return e.Radio=s,this},a.DEBUG=!1,a._debugText=function(t,e,n){return t+(n?" on the "+n+" channel":"")+': "'+e+'"'},a.debugLog=function(t,e,n){a.DEBUG&&console&&console.warn&&console.warn(a._debugText(t,e,n))};var l=/\s+/;a._eventsApi=function(e,n,i,r){if(!i)return!1;var o={};if("object"==typeof i){for(var s in i){var a=e[n].apply(e,[s,i[s]].concat(r));l.test(s)?t.extend(o,a):o[s]=a}return o}if(l.test(i)){for(var c=i.split(l),u=0,h=c.length;u<h;u++)o[c[u]]=e[n].apply(e,[c[u]].concat(r));return o}return!1},a._callHandler=function(t,e,n){var i=n[0],r=n[1],o=n[2];switch(n.length){case 0:return t.call(e);case 1:return t.call(e,i);case 2:return t.call(e,i,r);case 3:return t.call(e,i,r,o);default:return t.apply(e,n)}};var c={};t.extend(a,{log:function(e,n){var i=t.rest(arguments,2);console.log("["+e+'] "'+n+'"',i)},tuneIn:function(t){var e=a.channel(t);return e._tunedIn=!0,e.on("all",r(t)),this},tuneOut:function(t){var e=a.channel(t);return e._tunedIn=!1,e.off("all",r(t)),delete c[t],this}}),a.Commands={command:function(e){var n=t.rest(arguments);if(a._eventsApi(this,"command",e,n))return this;var i=this.channelName,r=this._commands;if(i&&this._tunedIn&&a.log.apply(this,[i,e].concat(n)),r&&(r[e]||r.default)){var o=r[e]||r.default;n=r[e]?n:arguments,a._callHandler(o.callback,o.context,n)}else a.debugLog("An unhandled command was fired",e,i);return this},comply:function(t,e,n){return a._eventsApi(this,"comply",t,[e,n])?this:(this._commands||(this._commands={}),this._commands[t]&&a.debugLog("A command was overwritten",t,this.channelName),this._commands[t]={callback:e,context:n||this},this)},complyOnce:function(e,n,i){if(a._eventsApi(this,"complyOnce",e,[n,i]))return this;var r=this,o=t.once(function(){return r.stopComplying(e),n.apply(this,arguments)});return this.comply(e,o,i)},stopComplying:function(t,e,n){return a._eventsApi(this,"stopComplying",t)?this:(t||e||n?i(this._commands,t,e,n)||a.debugLog("Attempted to remove the unregistered command",t,this.channelName):delete this._commands,this)}},a.Requests={request:function(e){var n=t.rest(arguments),i=a._eventsApi(this,"request",e,n);if(i)return i;var r=this.channelName,o=this._requests;if(r&&this._tunedIn&&a.log.apply(this,[r,e].concat(n)),o&&(o[e]||o.default)){var s=o[e]||o.default;return n=o[e]?n:arguments,a._callHandler(s.callback,s.context,n)}a.debugLog("An unhandled request was fired",e,r)},reply:function(t,e,n){return a._eventsApi(this,"reply",t,[e,n])?this:(this._requests||(this._requests={}),this._requests[t]&&a.debugLog("A request was overwritten",t,this.channelName),this._requests[t]={callback:o(e),context:n||this},this)},replyOnce:function(e,n,i){if(a._eventsApi(this,"replyOnce",e,[n,i]))return this;var r=this,s=t.once(function(){return r.stopReplying(e),o(n).apply(this,arguments)});return this.reply(e,s,i)},stopReplying:function(t,e,n){return a._eventsApi(this,"stopReplying",t)?this:(t||e||n?i(this._requests,t,e,n)||a.debugLog("Attempted to remove the unregistered request",t,this.channelName):delete this._requests,this)}},a._channels={},a.channel=function(t){if(!t)throw new Error("You must provide a name for the channel.");return a._channels[t]?a._channels[t]:a._channels[t]=new a.Channel(t)},a.Channel=function(t){this.channelName=t},t.extend(a.Channel.prototype,e.Events,a.Commands,a.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopComplying(),this.stopReplying(),this}});var u,h,d=[e.Events,a.Commands,a.Requests];t.each(d,function(e){t.each(e,function(e,n){a[n]=function(e){return h=t.rest(arguments),u=this.channel(e),u[n].apply(u,h)}})}),a.reset=function(e){var n=e?[this._channels[e]]:this._channels;t.invoke(n,"reset")};var f=a;return f})},function(t,e,n){var i,r;(function(o){!function(s){var a="object"==typeof self&&self.self==self&&self||"object"==typeof o&&o.global==o&&o;i=[n(6),n(5),e],r=function(t,e,n){a.Backbone=s(a,n,t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(function(t,e,n,i){var r=t.Backbone,o=[].slice;e.VERSION="1.2.1",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],t,r)};case 4:return function(t,r,o){return n[e](this[i],t,r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}},a=function(t,e,i){n.each(e,function(e,r){n[r]&&(t.prototype[r]=s(e,r,i))})},l=e.Events={},c=/\s+/,u=function(t,e,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=n.keys(i);a<s.length;a++)e=t(e,s[a],i[s[a]],o)}else if(i&&c.test(i))for(s=i.split(c);a<s.length;a++)e=t(e,s[a],r,o);else e=t(e,i,r,o);return e};l.on=function(t,e,n){return h(this,t,e,n)};var h=function(t,e,n,i,r){if(t._events=u(d,t._events||{},e,n,{context:i,ctx:t,listening:r}),r){var o=t._listeners||(t._listeners={});o[r.id]=r}return t};l.listenTo=function(t,e,i){if(!t)return this;var r=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[r];if(!s){var a=this._listenId||(this._listenId=n.uniqueId("l"));s=o[r]={obj:t,objId:r,id:a,listeningTo:o,count:0}}return h(t,e,i,this,s),this};var d=function(t,e,n,i){if(n){var r=t[e]||(t[e]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:o,ctx:o||s,listening:a})}return t};l.off=function(t,e,n){return this._events?(this._events=u(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(t,e,i){var r=this._listeningTo;if(!r)return this;for(var o=t?[t._listenId]:n.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(e,i,this)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var f=function(t,e,i,r){if(t){var o,s=0,a=r.context,l=r.listeners;if(e||i||a){for(var c=e?[e]:n.keys(t);s<c.length;s++){e=c[s];var u=t[e];if(!u)break;for(var h=[],d=0;d<u.length;d++){var f=u[d];i&&i!==f.callback&&i!==f.callback._callback||a&&a!==f.context?h.push(f):(o=f.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}h.length?t[e]=h:delete t[e]}return n.size(t)?t:void 0}for(var p=n.keys(l);s<p.length;s++)o=l[p[s]],delete l[o.id],delete o.listeningTo[o.objId]}};l.once=function(t,e,i){var r=u(p,{},t,e,n.bind(this.off,this));return this.on(r,void 0,i)},l.listenToOnce=function(t,e,i){var r=u(p,{},e,i,n.bind(this.stopListening,this,t));return this.listenTo(t,r)};var p=function(t,e,i,r){if(i){var o=t[e]=n.once(function(){r(e,o),i.apply(this,arguments)});o._callback=i}return t};l.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;i<e;i++)n[i]=arguments[i+1];return u(g,this._events,t,void 0,n),this};var g=function(t,e,n,i){if(t){var r=t[e],o=t.all;r&&o&&(o=o.slice()),r&&v(r,i),o&&v(o,[e].concat(i))}return t},v=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};l.bind=l.on,l.unbind=l.off,n.extend(e,l);var m=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(m.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null==t)return this;var r;if("object"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,h=this._previousAttributes;this.idAttribute in r&&(this.id=r[this.idAttribute]);for(var d in r)e=r[d],n.isEqual(c[d],e)||a.push(d),n.isEqual(h[d],e)?delete u[d]:u[d]=e,o?delete c[d]:c[d]=e;if(!s){a.length&&(this._pending=i);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,c[a[f]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,i={};for(var r in t){var o=t[r];n.isEqual(e[r],o)||(i[r]=o)}return!!n.size(i)&&i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,i=t.success;return t.success=function(n){var r=t.parse?e.parse(n,t):n;return!!e.set(r,t)&&(i&&i.call(t.context,e,n,t),void e.trigger("sync",e,n,t))},V(this,t),this.sync("read",this,t)},save:function(t,e,i){var r;null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0,parse:!0},i);var o=i.wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(t){s.attributes=l;var e=i.parse?s.parse(t,i):t;return o&&(e=n.extend({},r,e)),!(e&&!s.set(e,i))&&(a&&a.call(i.context,s,t,i),void s.trigger("sync",s,t,i))},V(this,i),r&&o&&(this.attributes=n.extend({},l,r));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,
u},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){r&&o(),i&&i.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var s=!1;return this.isNew()?n.defer(t.success):(V(this,t),s=this.sync("delete",this,t)),r||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||U();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return!i||(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1)}});var y={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};a(m,y,"attributes");var E=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1};n.extend(E.prototype,l,{model:m,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,_))},remove:function(t,e){e=n.extend({},e);var i=!n.isArray(t);t=i?[t]:n.clone(t);var r=this._removeModels(t,e);return!e.silent&&r&&this.trigger("update",this,e),i?r[0]:r},set:function(t,e){e=n.defaults({},e,w),e.parse&&!this._isModel(t)&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:t.slice();var r,o,s,a,l,c=e.at;null!=c&&(c=+c),c<0&&(c+=this.length+1);for(var u=this.comparator&&null==c&&e.sort!==!1,h=n.isString(this.comparator)?this.comparator:null,d=[],f=[],p={},g=e.add,v=e.merge,m=e.remove,y=!(u||!g||!m)&&[],E=!1,_=0;_<t.length;_++){if(s=t[_],a=this.get(s))m&&(p[a.cid]=!0),v&&s!==a&&(s=this._isModel(s)?s.attributes:s,e.parse&&(s=a.parse(s,e)),a.set(s,e),u&&!l&&a.hasChanged(h)&&(l=!0)),t[_]=a;else if(g){if(o=t[_]=this._prepareModel(s,e),!o)continue;d.push(o),this._addReference(o,e)}o=a||o,o&&(r=this.modelId(o.attributes),!y||!o.isNew()&&p[r]||(y.push(o),E=E||!this.models[_]||o.cid!==this.models[_].cid),p[r]=!0)}if(m){for(var _=0;_<this.length;_++)p[(o=this.models[_]).cid]||f.push(o);f.length&&this._removeModels(f,e)}if(d.length||E)if(u&&(l=!0),this.length+=d.length,null!=c)for(var _=0;_<d.length;_++)this.models.splice(c+_,0,d[_]);else{y&&(this.models.length=0);for(var T=y||d,_=0;_<T.length;_++)this.models.push(T[_])}if(l&&this.sort({silent:!0}),!e.silent){for(var b=null!=c?n.clone(e):e,_=0;_<d.length;_++)null!=c&&(b.index=c+_),(o=d[_]).trigger("add",o,this,b);(l||E)&&this.trigger("sort",this,e),(d.length||f.length)&&this.trigger("update",this,e)}return i?t[0]:t},reset:function(t,e){e=e?n.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){var i=n.matches(t);return this[e?"find":"filter"](function(t){return i(t.attributes)})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e.call(t.context,i,n,t),i.trigger("sync",i,n,t)},V(this,t),this.sync("read",this,t)},create:function(t,e){e=e?n.clone(e):{};var i=e.wait;if(t=this._prepareModel(t,e),!t)return!1;i||this.add(t,e);var r=this,o=e.success;return e.success=function(t,e,n){i&&r.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=this.get(t[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,e.silent||(e.index=o,r.trigger("remove",r,this,e)),n.push(r),this._removeReference(r,e)}}return!!n.length&&n},_isModel:function(t){return t instanceof m},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){if("add"!==t&&"remove"!==t||n===this){if("destroy"===t&&this.remove(e,i),"change"===t){var r=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}});var T={forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:2,contains:2,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3};a(E,T,"models");var b=["groupBy","countBy","sortBy","indexBy"];n.each(b,function(t){n[t]&&(E.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)})});var C=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,A)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,A=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,l,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[i]),i){var r=e.match(S);this.delegate(r[1],r[2],n.bind(i,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,i,r){var o=O[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||U()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,l&&l.call(r.context,t,e,n)};var c=r.xhr=e.ajax(n.extend(s,r));return i.trigger("request",i,c,r),c};var O={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var R=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,I=/(\(\?)?:\w+/g,N=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(R.prototype,l,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);o.execute(r,s,i)!==!1&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),e.history.trigger("route",o,i,s))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(k,"\\$&").replace(x,"(?:$1)?").replace(I,function(t,e){return e?t:"([^/?]+)"}).replace(N,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var L=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},M=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,B=/#.*$/;L.started=!1,n.extend(L.prototype,l,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(M,"")},start:function(t){if(L.started)throw new Error("Backbone.history has already been started");if(L.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window,this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(D,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),L.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!L.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+t;if(t=this.decodeFragment(t.replace(B,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new L;var P=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};m.extend=E.extend=R.extend=C.extend=L.extend=P;var U=function(){throw new Error('A "url" property or function must be specified')},V=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger("error",t,i,e)}};return e})}).call(e,function(){return this}())},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(79),n(83),n(99),n(125),n(126),n(223),n(78),n(222),n(74),n(1),n(4),n(7)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p){var g=h.lixes;t.ajaxSetup(function(){var t={};return t[p.CSRF_HEADER]=play.getPageContextValue("csrfToken"),{headers:t}}()),i.Application.prototype._initChannel=function(){this.channelName=e.result(this,"channelName")||"global",this.channel=e.result(this,"channel")||Radio.channel(this.channelName)},i.Behaviors.behaviorsLookup=function(){return o},i.Renderer.render=l,i.Region.prototype.showLoading=function(t){var e;return e=t&&t.view?t.view:new c(t),this.show(e,{showingLoader:!0}),this},i.Region.prototype.attachViewSSR=function(t){return i.Region.prototype.attachView.call(this,t),d.trackRenderComplete(),this},n.Router.prototype.route=function(t,i,r){return e.isRegExp(t)||(t=this._routeToRegExp(t)),e.isFunction(i)&&(r=i,i=""),r||(r=this[i]),n.history.route(t,e.bind(function(e){var o=this._extractParameters(t,e);this.triggerMethod(h.router.BEFORE,i,o),this.execute(r,o,i)!==!1&&(this.triggerMethod(h.router.AFTER,i,o),this.trigger.apply(this,["route:"+i].concat(o)),this.trigger("route",i,o),n.history.trigger("route",this,i,o))},this)),this},n.Router.prototype.execute=function(t,e,n){if(t)return t.apply(this,e)},r.on("start",s.init,s),r.on("start",function(){window.jet&&jet.conf({appId:play.getPageContextValue("mpName")}),u.getInstance().setup(),this.router=new a,this.listenTo(this.router,h.router.BEFORE,this.setPageKey),n.history.start({pushState:!0,root:play.getPageContextValue("contextPath")})}),g.request(g.IS_ENABLED,p.LIX_KEYS.DEFER_APP_START)&&"complete"!==document.readyState?t(window).load(function(){r.start()}):r.start(),window.Pulse=r}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79)],r=function(t){return t.ItemView.extend({template:"templates/walter/shared/contentRegionLoadingView",className:"loading-view"})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;!function(o,s){i=[n(80),n(6),n(81),n(82)],r=function(t,e){return o.Marionette=o.Mn=s(o,t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(this,function(t,e,n){"use strict";var i=t.Marionette,r=t.Mn,o=e.Marionette={};o.VERSION="2.4.4",o.noConflict=function(){return t.Marionette=i,t.Mn=r,this},o.Deferred=e.$.Deferred,o.FEATURES={},o.isEnabled=function(t){return!!o.FEATURES[t]},o.extend=e.Model.extend,o.isNodeAttached=function(t){return e.$.contains(document.documentElement,t)},o.mergeOptions=function(t,e){t&&n.extend(this,n.pick(t,e))},o.getOption=function(t,e){if(t&&e)return t.options&&void 0!==t.options[e]?t.options[e]:t[e]},o.proxyGetOption=function(t){return o.getOption(this,t)},o._getValue=function(t,e,i){return n.isFunction(t)&&(t=i?t.apply(e,i):t.call(e)),t},o.normalizeMethods=function(t){return n.reduce(t,function(t,e,i){return n.isFunction(e)||(e=this[e]),e&&(t[i]=e),t},{},this)},o.normalizeUIString=function(t,e){return t.replace(/@ui\.[a-zA-Z_$0-9]*/g,function(t){return e[t.slice(4)]})},o.normalizeUIKeys=function(t,e){return n.reduce(t,function(t,n,i){var r=o.normalizeUIString(i,e);return t[r]=n,t},{})},o.normalizeUIValues=function(t,e,i){return n.each(t,function(r,s){n.isString(r)?t[s]=o.normalizeUIString(r,e):n.isObject(r)&&n.isArray(i)&&(n.extend(r,o.normalizeUIValues(n.pick(r,i),e)),n.each(i,function(t){var i=r[t];n.isString(i)&&(r[t]=o.normalizeUIString(i,e))}))}),t},o.actAsCollection=function(t,e){var i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];n.each(i,function(i){t[i]=function(){var t=n.values(n.result(this,e)),r=[t].concat(n.toArray(arguments));return n[i].apply(n,r)}})};var s=o.deprecate=function(t,e){n.isObject(t)&&(t=t.prev+" is going to be removed in the future. Please use "+t.next+" instead."+(t.url?" See: "+t.url:"")),void 0!==e&&e||s._cache[t]||(s._warn("Deprecation warning: "+t),s._cache[t]=!0)};s._warn="undefined"!=typeof console&&(console.warn||console.log)||function(){},s._cache={},o._triggerMethod=function(){function t(t,e,n){return n.toUpperCase()}var e=/(^|:)(\w)/gi;return function(i,r,o){var s=arguments.length<3;s&&(o=r,r=o[0]);var a,l="on"+r.replace(e,t),c=i[l];return n.isFunction(c)&&(a=c.apply(i,s?n.rest(o):o)),n.isFunction(i.trigger)&&(s+o.length>1?i.trigger.apply(i,s?o:[r].concat(n.drop(o,0))):i.trigger(r)),a}}(),o.triggerMethod=function(t){return o._triggerMethod(this,arguments)},o.triggerMethodOn=function(t){var e=n.isFunction(t.triggerMethod)?t.triggerMethod:o.triggerMethod;return e.apply(t,n.rest(arguments))},o.MonitorDOMRefresh=function(t){function e(){t._isShown=!0,i()}function n(){t._isRendered=!0,i()}function i(){t._isShown&&t._isRendered&&o.isNodeAttached(t.el)&&o.triggerMethodOn(t,"dom:refresh",t)}t._isDomRefreshMonitored||(t._isDomRefreshMonitored=!0,t.on({show:e,render:n}))},function(t){function e(e,i,r,o){var s=o.split(/\s+/);n.each(s,function(n){var o=e[n];if(!o)throw new t.Error('Method "'+n+'" was configured as an event handler, but does not exist.');e.listenTo(i,r,o)})}function i(t,e,n,i){t.listenTo(e,n,i)}function r(t,e,i,r){var o=r.split(/\s+/);n.each(o,function(n){var r=t[n];t.stopListening(e,i,r)})}function o(t,e,n,i){t.stopListening(e,n,i)}function s(e,i,r,o,s){if(i&&r){if(!n.isObject(r))throw new t.Error({message:"Bindings must be an object or function.",url:"marionette.functions.html#marionettebindentityevents"});r=t._getValue(r,e),n.each(r,function(t,r){n.isFunction(t)?o(e,i,r,t):s(e,i,r,t)})}}t.bindEntityEvents=function(t,n,r){s(t,n,r,i,e)},t.unbindEntityEvents=function(t,e,n){s(t,e,n,o,r)},t.proxyBindEntityEvents=function(e,n){return t.bindEntityEvents(this,e,n)},t.proxyUnbindEntityEvents=function(e,n){return t.unbindEntityEvents(this,e,n)}}(o);var a=["description","fileName","lineNumber","name","message","number"];return o.Error=o.extend.call(Error,{urlRoot:"http://marionettejs.com/docs/v"+o.VERSION+"/",constructor:function(t,e){n.isObject(t)?(e=t,t=e.message):e||(e={});var i=Error.call(this,t);n.extend(this,n.pick(i,a),n.pick(e,a)),this.captureStackTrace(),e.url&&(this.url=this.urlRoot+e.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,o.Error)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}}),o.Error.extend=o.extend,o.Callbacks=function(){this._deferred=o.Deferred(),this._callbacks=[]},n.extend(o.Callbacks.prototype,{add:function(t,e){var i=n.result(this._deferred,"promise");this._callbacks.push({cb:t,ctx:e}),i.then(function(n){e&&(n.context=e),t.call(n.context,n.options)})},run:function(t,e){this._deferred.resolve({options:t,context:e})},reset:function(){var t=this._callbacks;this._deferred=o.Deferred(),this._callbacks=[],n.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),o.Controller=function(t){this.options=t||{},n.isFunction(this.initialize)&&this.initialize(this.options)},o.Controller.extend=o.extend,n.extend(o.Controller.prototype,e.Events,{destroy:function(){return o._triggerMethod(this,"before:destroy",arguments),o._triggerMethod(this,"destroy",arguments),this.stopListening(),this.off(),this},triggerMethod:o.triggerMethod,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption}),o.Object=function(t){this.options=n.extend({},n.result(this,"options"),t),this.initialize.apply(this,arguments)},o.Object.extend=o.extend,n.extend(o.Object.prototype,e.Events,{initialize:function(){},destroy:function(t){return t=t||{},this.triggerMethod("before:destroy",t),this.triggerMethod("destroy",t),this.stopListening(),this},triggerMethod:o.triggerMethod,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.Region=o.Object.extend({constructor:function(t){if(this.options=t||{},this.el=this.getOption("el"),this.el=this.el instanceof e.$?this.el[0]:this.el,!this.el)throw new o.Error({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),o.Object.call(this,t)},show:function(t,e){if(this._ensureElement()){this._ensureViewIsIntact(t),o.MonitorDOMRefresh(t);var i=e||{},r=t!==this.currentView,s=!!i.preventDestroy,a=!!i.forceShow,l=!!this.currentView,c=r&&!s,u=r||a;if(l&&this.triggerMethod("before:swapOut",this.currentView,this,e),this.currentView&&delete this.currentView._parent,c?this.empty():l&&u&&this.currentView.off("destroy",this.empty,this),u){t.once("destroy",this.empty,this),t._parent=this,this._renderView(t),l&&this.triggerMethod("before:swap",t,this,e),this.triggerMethod("before:show",t,this,e),o.triggerMethodOn(t,"before:show",t,this,e),l&&this.triggerMethod("swapOut",this.currentView,this,e);var h=o.isNodeAttached(this.el),d=[],f=n.extend({triggerBeforeAttach:this.triggerBeforeAttach,triggerAttach:this.triggerAttach},i);return h&&f.triggerBeforeAttach&&(d=this._displayedViews(t),this._triggerAttach(d,"before:")),this.attachHtml(t),this.currentView=t,h&&f.triggerAttach&&(d=this._displayedViews(t),this._triggerAttach(d)),l&&this.triggerMethod("swap",t,this,e),this.triggerMethod("show",t,this,e),o.triggerMethodOn(t,"show",t,this,e),this}return this}},triggerBeforeAttach:!0,triggerAttach:!0,_triggerAttach:function(t,e){var i=(e||"")+"attach";n.each(t,function(t){o.triggerMethodOn(t,i,t,this)},this)},_displayedViews:function(t){return n.union([t],n.result(t,"_getNestedViews")||[])},_renderView:function(t){t.supportsRenderLifecycle||o.triggerMethodOn(t,"before:render",t),t.render(),t.supportsRenderLifecycle||o.triggerMethodOn(t,"render",t)},_ensureElement:function(){if(n.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0]),!this.$el||0===this.$el.length){if(this.getOption("allowMissingEl"))return!1;throw new o.Error('An "el" '+this.$el.selector+" must exist in DOM")}return!0},_ensureViewIsIntact:function(t){if(!t)throw new o.Error({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(t.isDestroyed)throw new o.Error({name:"ViewDestroyedError",message:'View (cid: "'+t.cid+'") has already been destroyed and cannot be used.'})},getEl:function(t){return e.$(t,o._getValue(this.options.parentEl,this))},attachHtml:function(t){this.$el.contents().detach(),this.el.appendChild(t.el)},empty:function(t){var e=this.currentView,n=t||{},i=!!n.preventDestroy;return e?(e.off("destroy",this.empty,this),this.triggerMethod("before:empty",e),i||this._destroyView(),this.triggerMethod("empty",e),delete this.currentView,i&&this.$el.contents().detach(),this):this},_destroyView:function(){var t=this.currentView;t.isDestroyed||(t.supportsDestroyLifecycle||o.triggerMethodOn(t,"before:destroy",t),t.destroy?t.destroy():(t.remove(),t.isDestroyed=!0),t.supportsDestroyLifecycle||o.triggerMethodOn(t,"destroy",t))},attachView:function(t){return this.currentView&&delete this.currentView._parent,t._parent=this,this.currentView=t,this},hasView:function(){return!!this.currentView},reset:function(){return this.empty(),this.$el&&(this.el=this.$el.selector),delete this.$el,this}},{buildRegion:function(t,e){if(n.isString(t))return this._buildRegionFromSelector(t,e);if(t.selector||t.el||t.regionClass)return this._buildRegionFromObject(t,e);if(n.isFunction(t))return this._buildRegionFromRegionClass(t);throw new o.Error({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})},_buildRegionFromSelector:function(t,e){return new e({el:t})},_buildRegionFromObject:function(t,e){var i=t.regionClass||e,r=n.omit(t,"selector","regionClass");return t.selector&&!r.el&&(r.el=t.selector),new i(r)},_buildRegionFromRegionClass:function(t){return new t}}),o.RegionManager=o.Controller.extend({constructor:function(t){this._regions={},this.length=0,o.Controller.call(this,t),this.addRegions(this.getOption("regions"))},addRegions:function(t,e){return t=o._getValue(t,this,arguments),n.reduce(t,function(t,i,r){return n.isString(i)&&(i={selector:i}),i.selector&&(i=n.defaults({},i,e)),t[r]=this.addRegion(r,i),t},{},this)},addRegion:function(t,e){var n;return n=e instanceof o.Region?e:o.Region.buildRegion(e,o.Region),this.triggerMethod("before:add:region",t,n),n._parent=this,this._store(t,n),this.triggerMethod("add:region",t,n),n},get:function(t){return this._regions[t]},getRegions:function(){return n.clone(this._regions)},removeRegion:function(t){var e=this._regions[t];return this._remove(t,e),e},removeRegions:function(){var t=this.getRegions();return n.each(this._regions,function(t,e){this._remove(e,t)},this),t},emptyRegions:function(){var t=this.getRegions();return n.invoke(t,"empty"),t},destroy:function(){return this.removeRegions(),o.Controller.prototype.destroy.apply(this,arguments)},_store:function(t,e){this._regions[t]||this.length++,this._regions[t]=e},_remove:function(t,e){this.triggerMethod("before:remove:region",t,e),e.empty(),e.stopListening(),delete e._parent,delete this._regions[t],this.length--,this.triggerMethod("remove:region",t,e)}}),o.actAsCollection(o.RegionManager.prototype,"_regions"),o.TemplateCache=function(t){this.templateId=t},n.extend(o.TemplateCache,{templateCaches:{},get:function(t,e){var n=this.templateCaches[t];return n||(n=new o.TemplateCache(t),this.templateCaches[t]=n),n.load(e)},clear:function(){var t,e=n.toArray(arguments),i=e.length;if(i>0)for(t=0;t<i;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),n.extend(o.TemplateCache.prototype,{load:function(t){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId,t);return this.compiledTemplate=this.compileTemplate(e,t),this.compiledTemplate},loadTemplate:function(t,n){var i=e.$(t);if(!i.length)throw new o.Error({name:"NoTemplateError",message:'Could not find template: "'+t+'"'});return i.html()},compileTemplate:function(t,e){return n.template(t,e)}}),o.Renderer={render:function(t,e){if(!t)throw new o.Error({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."});var i=n.isFunction(t)?t:o.TemplateCache.get(t);return i(e)}},o.View=e.View.extend({isDestroyed:!1,supportsRenderLifecycle:!0,supportsDestroyLifecycle:!0,constructor:function(t){this.render=n.bind(this.render,this),t=o._getValue(t,this),this.options=n.extend({},n.result(this,"options"),t),this._behaviors=o.Behaviors(this),e.View.call(this,this.options),o.MonitorDOMRefresh(this)},getTemplate:function(){return this.getOption("template")},serializeModel:function(t){return t.toJSON.apply(t,n.rest(arguments))},mixinTemplateHelpers:function(t){t=t||{};var e=this.getOption("templateHelpers");return e=o._getValue(e,this),n.extend(t,e)},normalizeUIKeys:function(t){var e=n.result(this,"_uiBindings");return o.normalizeUIKeys(t,e||n.result(this,"ui"))},normalizeUIValues:function(t,e){var i=n.result(this,"ui"),r=n.result(this,"_uiBindings");return o.normalizeUIValues(t,r||i,e)},configureTriggers:function(){if(this.triggers){var t=this.normalizeUIKeys(n.result(this,"triggers"));return n.reduce(t,function(t,e,n){return t[n]=this._buildViewTrigger(e),t},{},this)}},delegateEvents:function(t){return this._delegateDOMEvents(t),this.bindEntityEvents(this.model,this.getOption("modelEvents")),this.bindEntityEvents(this.collection,this.getOption("collectionEvents")),n.each(this._behaviors,function(t){t.bindEntityEvents(this.model,t.getOption("modelEvents")),t.bindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_delegateDOMEvents:function(t){var i=o._getValue(t||this.events,this);i=this.normalizeUIKeys(i),n.isUndefined(t)&&(this.events=i);var r={},s=n.result(this,"behaviorEvents")||{},a=this.configureTriggers(),l=n.result(this,"behaviorTriggers")||{};n.extend(r,s,i,a,l),e.View.prototype.delegateEvents.call(this,r)},undelegateEvents:function(){return e.View.prototype.undelegateEvents.apply(this,arguments),this.unbindEntityEvents(this.model,this.getOption("modelEvents")),this.unbindEntityEvents(this.collection,this.getOption("collectionEvents")),n.each(this._behaviors,function(t){t.unbindEntityEvents(this.model,t.getOption("modelEvents")),t.unbindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_ensureViewIsIntact:function(){if(this.isDestroyed)throw new o.Error({name:"ViewDestroyedError",message:'View (cid: "'+this.cid+'") has already been destroyed and cannot be used.'})},destroy:function(){if(this.isDestroyed)return this;var t=n.toArray(arguments);return this.triggerMethod.apply(this,["before:destroy"].concat(t)),this.isDestroyed=!0,this.triggerMethod.apply(this,["destroy"].concat(t)),
this.unbindUIElements(),this.isRendered=!1,this.remove(),n.invoke(this._behaviors,"destroy",t),this},bindUIElements:function(){this._bindUIElements(),n.invoke(this._behaviors,this._bindUIElements)},_bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var t=n.result(this,"_uiBindings");this.ui={},n.each(t,function(t,e){this.ui[e]=this.$(t)},this)}},unbindUIElements:function(){this._unbindUIElements(),n.invoke(this._behaviors,this._unbindUIElements)},_unbindUIElements:function(){this.ui&&this._uiBindings&&(n.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)},_buildViewTrigger:function(t){var e=n.defaults({},t,{preventDefault:!0,stopPropagation:!0}),i=n.isObject(t)?e.event:t;return function(t){t&&(t.preventDefault&&e.preventDefault&&t.preventDefault(),t.stopPropagation&&e.stopPropagation&&t.stopPropagation());var n={view:this,model:this.model,collection:this.collection};this.triggerMethod(i,n)}},setElement:function(){var t=e.View.prototype.setElement.apply(this,arguments);return n.invoke(this._behaviors,"proxyViewProperties",this),t},triggerMethod:function(){var t=o._triggerMethod(this,arguments);return this._triggerEventOnBehaviors(arguments),this._triggerEventOnParentLayout(arguments[0],n.rest(arguments)),t},_triggerEventOnBehaviors:function(t){for(var e=o._triggerMethod,n=this._behaviors,i=0,r=n&&n.length;i<r;i++)e(n[i],t)},_triggerEventOnParentLayout:function(t,e){var i=this._parentLayoutView();if(i){var r=o.getOption(i,"childViewEventPrefix"),s=r+":"+t,a=[this].concat(e);o._triggerMethod(i,s,a);var l=o.getOption(i,"childEvents");l=o._getValue(l,i);var c=i.normalizeMethods(l);c&&n.isFunction(c[t])&&c[t].apply(i,a)}},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var t=this._getImmediateChildren();return t.length?n.reduce(t,function(t,e){return e._getNestedViews?t.concat(e._getNestedViews()):t},t):t},_parentLayoutView:function(){for(var t=this._parent;t;){if(t instanceof o.LayoutView)return t;t=t._parent}},normalizeMethods:o.normalizeMethods,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.ItemView=o.View.extend({constructor:function(){o.View.apply(this,arguments)},serializeData:function(){if(!this.model&&!this.collection)return{};var t=[this.model||this.collection];return arguments.length&&t.push.apply(t,arguments),this.model?this.serializeModel.apply(this,t):{items:this.serializeCollection.apply(this,t)}},serializeCollection:function(t){return t.toJSON.apply(t,n.rest(arguments))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderTemplate(),this.isRendered=!0,this.bindUIElements(),this.triggerMethod("render",this),this},_renderTemplate:function(){var t=this.getTemplate();if(t!==!1){if(!t)throw new o.Error({name:"UndefinedTemplateError",message:"Cannot render the template since it is null or undefined."});var e=this.mixinTemplateHelpers(this.serializeData()),n=o.Renderer.render(t,e,this);return this.attachElContent(n),this}},attachElContent:function(t){return this.$el.html(t),this}}),o.CollectionView=o.View.extend({childViewEventPrefix:"childview",sort:!0,constructor:function(t){this.once("render",this._initialEvents),this._initChildViewStorage(),o.View.apply(this,arguments),this.on({"before:show":this._onBeforeShowCalled,show:this._onShowCalled,"before:attach":this._onBeforeAttachCalled,attach:this._onAttachCalled}),this.initRenderBuffer()},initRenderBuffer:function(){this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){var t,e=this._isShown&&o.isNodeAttached(this.el);this.isBuffering=!1,this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"before:show"),e&&this._triggerBeforeAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"before:attach")),this.attachBuffer(this,this._createBuffer()),e&&this._triggerAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"attach")),this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"show"),this.initRenderBuffer()},_triggerMethodMany:function(t,e,i){var r=n.drop(arguments,3);n.each(t,function(t){o.triggerMethodOn.apply(t,[t,i,t,e].concat(r))})},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this.render),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},_onCollectionAdd:function(t,e,i){var r=void 0!==i.at&&(i.index||e.indexOf(t));if((this.getOption("filter")||r===!1)&&(r=n.indexOf(this._filteredSortedModels(r),t)),this._shouldAddChild(t,r)){this.destroyEmptyView();var o=this.getChildView(t);this.addChild(t,o,r)}},_onCollectionRemove:function(t){var e=this.children.findByModel(t);this.removeChildView(e),this.checkEmpty()},_onBeforeShowCalled:function(){this._triggerBeforeAttach=this._triggerAttach=!1,this.children.each(function(t){o.triggerMethodOn(t,"before:show",t)})},_onShowCalled:function(){this.children.each(function(t){o.triggerMethodOn(t,"show",t)})},_onBeforeAttachCalled:function(){this._triggerBeforeAttach=!0},_onAttachCalled:function(){this._triggerAttach=!0},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderChildren(),this.isRendered=!0,this.triggerMethod("render",this),this},reorder:function(){var t=this.children,e=this._filteredSortedModels(),i=n.some(e,function(e){return!t.findByModel(e)});if(i)this.render();else{var r=n.map(e,function(e,n){var i=t.findByModel(e);return i._index=n,i.el}),o=t.filter(function(t){return!n.contains(r,t.el)});this.triggerMethod("before:reorder"),this._appendReorderedChildren(r),n.each(o,this.removeChildView,this),this.checkEmpty(),this.triggerMethod("reorder")}},resortView:function(){o.getOption(this,"reorderOnSort")?this.reorder():this.render()},_sortViews:function(){var t=this._filteredSortedModels(),e=n.find(t,function(t,e){var n=this.children.findByModel(t);return!n||n._index!==e},this);e&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(t){this.$el.append(t)},_renderChildren:function(){this.destroyEmptyView(),this.destroyChildren({checkEmpty:!1}),this.isEmpty(this.collection)?this.showEmptyView():(this.triggerMethod("before:render:collection",this),this.startBuffering(),this.showCollection(),this.endBuffering(),this.triggerMethod("render:collection",this),this.children.isEmpty()&&this.getOption("filter")&&this.showEmptyView())},showCollection:function(){var t,e=this._filteredSortedModels();n.each(e,function(e,n){t=this.getChildView(e),this.addChild(e,t,n)},this)},_filteredSortedModels:function(t){var e=this.getViewComparator(),i=this.collection.models;if(t=Math.min(Math.max(t,0),i.length-1),e){var r;t&&(r=i[t],i=i.slice(0,t).concat(i.slice(t+1))),i=this._sortModelsBy(i,e),r&&i.splice(t,0,r)}return this.getOption("filter")&&(i=n.filter(i,function(t,e){return this._shouldAddChild(t,e)},this)),i},_sortModelsBy:function(t,e){return"string"==typeof e?n.sortBy(t,function(t){return t.get(e)},this):1===e.length?n.sortBy(t,e,this):t.sort(n.bind(e,this))},showEmptyView:function(){var t=this.getEmptyView();if(t&&!this._showingEmptyView){this.triggerMethod("before:render:empty"),this._showingEmptyView=!0;var n=new e.Model;this.addEmptyView(n,t),this.triggerMethod("render:empty")}},destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty"),this.destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty"))},getEmptyView:function(){return this.getOption("emptyView")},addEmptyView:function(t,e){var i,r=this._isShown&&!this.isBuffering&&o.isNodeAttached(this.el),s=this.getOption("emptyViewOptions")||this.getOption("childViewOptions");n.isFunction(s)&&(s=s.call(this,t,this._emptyViewIndex));var a=this.buildChildView(t,e,s);a._parent=this,this.proxyChildEvents(a),a.once("render",function(){this._isShown&&o.triggerMethodOn(a,"before:show",a),r&&this._triggerBeforeAttach&&(i=this._getViewAndNested(a),this._triggerMethodMany(i,this,"before:attach"))},this),this.children.add(a),this.renderChildView(a,this._emptyViewIndex),r&&this._triggerAttach&&(i=this._getViewAndNested(a),this._triggerMethodMany(i,this,"attach")),this._isShown&&o.triggerMethodOn(a,"show",a)},getChildView:function(t){var e=this.getOption("childView");if(!e)throw new o.Error({name:"NoChildViewError",message:'A "childView" must be specified'});return e},addChild:function(t,e,n){var i=this.getOption("childViewOptions");i=o._getValue(i,this,[t,n]);var r=this.buildChildView(t,e,i);return this._updateIndices(r,!0,n),this.triggerMethod("before:add:child",r),this._addChildView(r,n),this.triggerMethod("add:child",r),r._parent=this,r},_updateIndices:function(t,e,n){this.getOption("sort")&&(e&&(t._index=n),this.children.each(function(n){n._index>=t._index&&(n._index+=e?1:-1)}))},_addChildView:function(t,e){var n,i=this._isShown&&!this.isBuffering&&o.isNodeAttached(this.el);this.proxyChildEvents(t),t.once("render",function(){this._isShown&&!this.isBuffering&&o.triggerMethodOn(t,"before:show",t),i&&this._triggerBeforeAttach&&(n=this._getViewAndNested(t),this._triggerMethodMany(n,this,"before:attach"))},this),this.children.add(t),this.renderChildView(t,e),i&&this._triggerAttach&&(n=this._getViewAndNested(t),this._triggerMethodMany(n,this,"attach")),this._isShown&&!this.isBuffering&&o.triggerMethodOn(t,"show",t)},renderChildView:function(t,e){return t.supportsRenderLifecycle||o.triggerMethodOn(t,"before:render",t),t.render(),t.supportsRenderLifecycle||o.triggerMethodOn(t,"render",t),this.attachHtml(this,t,e),t},buildChildView:function(t,e,i){var r=n.extend({model:t},i),s=new e(r);return o.MonitorDOMRefresh(s),s},removeChildView:function(t){return t?(this.triggerMethod("before:remove:child",t),t.supportsDestroyLifecycle||o.triggerMethodOn(t,"before:destroy",t),t.destroy?t.destroy():t.remove(),t.supportsDestroyLifecycle||o.triggerMethodOn(t,"destroy",t),delete t._parent,this.stopListening(t),this.children.remove(t),this.triggerMethod("remove:child",t),this._updateIndices(t,!1),t):t},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},attachBuffer:function(t,e){t.$el.append(e)},_createBuffer:function(){var t=document.createDocumentFragment();return n.each(this._bufferedChildren,function(e){t.appendChild(e.el)}),t},attachHtml:function(t,e,n){t.isBuffering?t._bufferedChildren.splice(n,0,e):t._insertBefore(e,n)||t._insertAfter(e)},_insertBefore:function(t,e){var n,i=this.getOption("sort")&&e<this.children.length-1;return i&&(n=this.children.find(function(t){return t._index===e+1})),!!n&&(n.$el.before(t.el),!0)},_insertAfter:function(t){this.$el.append(t.el)},_initChildViewStorage:function(){this.children=new e.ChildViewContainer},destroy:function(){return this.isDestroyed?this:(this.triggerMethod("before:destroy:collection"),this.destroyChildren({checkEmpty:!1}),this.triggerMethod("destroy:collection"),o.View.prototype.destroy.apply(this,arguments))},destroyChildren:function(t){var e=t||{},i=!0,r=this.children.map(n.identity);return n.isUndefined(e.checkEmpty)||(i=e.checkEmpty),this.children.each(this.removeChildView,this),i&&this.checkEmpty(),r},_shouldAddChild:function(t,e){var i=this.getOption("filter");return!n.isFunction(i)||i.call(this,t,e,this.collection)},proxyChildEvents:function(t){var e=this.getOption("childViewEventPrefix");this.listenTo(t,"all",function(){var i=n.toArray(arguments),r=i[0],o=this.normalizeMethods(n.result(this,"childEvents"));i[0]=e+":"+r,i.splice(1,0,t),"undefined"!=typeof o&&n.isFunction(o[r])&&o[r].apply(this,i.slice(1)),this.triggerMethod.apply(this,i)})},_getImmediateChildren:function(){return n.values(this.children._views)},_getViewAndNested:function(t){return[t].concat(n.result(t,"_getNestedViews")||[])},getViewComparator:function(){return this.getOption("viewComparator")}}),o.CompositeView=o.CollectionView.extend({constructor:function(){o.CollectionView.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this._renderChildren),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},getChildView:function(t){var e=this.getOption("childView")||this.constructor;return e},serializeData:function(){var t={};return this.model&&(t=n.partial(this.serializeModel,this.model).apply(this,arguments)),t},render:function(){return this._ensureViewIsIntact(),this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this._renderChildren(),this._isRendering=!1,this.isRendered=!0,this.triggerMethod("render",this),this},_renderChildren:function(){(this.isRendered||this._isRendering)&&o.CollectionView.prototype._renderChildren.call(this)},_renderTemplate:function(){var t={};t=this.serializeData(),t=this.mixinTemplateHelpers(t),this.triggerMethod("before:render:template");var e=this.getTemplate(),n=o.Renderer.render(e,t,this);this.attachElContent(n),this.bindUIElements(),this.triggerMethod("render:template")},attachElContent:function(t){return this.$el.html(t),this},attachBuffer:function(t,e){var n=this.getChildViewContainer(t);n.append(e)},_insertAfter:function(t){var e=this.getChildViewContainer(this,t);e.append(t.el)},_appendReorderedChildren:function(t){var e=this.getChildViewContainer(this);e.append(t)},getChildViewContainer:function(t,e){if(t.$childViewContainer)return t.$childViewContainer;var n,i=o.getOption(t,"childViewContainer");if(i){var r=o._getValue(i,t);if(n="@"===r.charAt(0)&&t.ui?t.ui[r.substr(4)]:t.$(r),n.length<=0)throw new o.Error({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+t.childViewContainer})}else n=t.$el;return t.$childViewContainer=n,n},resetChildViewContainer:function(){this.$childViewContainer&&(this.$childViewContainer=void 0)}}),o.LayoutView=o.ItemView.extend({regionClass:o.Region,options:{destroyImmediate:!1},childViewEventPrefix:"childview",constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),o.ItemView.call(this,t)},render:function(){return this._ensureViewIsIntact(),this._firstRender?this._firstRender=!1:this._reInitializeRegions(),o.ItemView.prototype.render.apply(this,arguments)},destroy:function(){return this.isDestroyed?this:(this.getOption("destroyImmediate")===!0&&this.$el.remove(),this.regionManager.destroy(),o.ItemView.prototype.destroy.apply(this,arguments))},showChildView:function(t,e,i){var r=this.getRegion(t);return r.show.apply(r,n.rest(arguments))},getChildView:function(t){return this.getRegion(t).currentView},addRegion:function(t,e){var n={};return n[t]=e,this._buildRegions(n)[t]},addRegions:function(t){return this.regions=n.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},getRegion:function(t){return this.regionManager.get(t)},getRegions:function(){return this.regionManager.getRegions()},_buildRegions:function(t){var e={regionClass:this.getOption("regionClass"),parentEl:n.partial(n.result,this,"el")};return this.regionManager.addRegions(t,e)},_initializeRegions:function(t){var e;this._initRegionManager(),e=o._getValue(this.regions,this,[t])||{};var i=this.getOption.call(t,"regions");i=o._getValue(i,this,[t]),n.extend(e,i),e=this.normalizeUIValues(e,["selector","el"]),this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.invoke("reset")},getRegionManager:function(){return new o.RegionManager},_initRegionManager:function(){this.regionManager=this.getRegionManager(),this.regionManager._parent=this,this.listenTo(this.regionManager,"before:add:region",function(t){this.triggerMethod("before:add:region",t)}),this.listenTo(this.regionManager,"add:region",function(t,e){this[t]=e,this.triggerMethod("add:region",t,e)}),this.listenTo(this.regionManager,"before:remove:region",function(t){this.triggerMethod("before:remove:region",t)}),this.listenTo(this.regionManager,"remove:region",function(t,e){delete this[t],this.triggerMethod("remove:region",t,e)})},_getImmediateChildren:function(){return n.chain(this.regionManager.getRegions()).pluck("currentView").compact().value()}}),o.Behavior=o.Object.extend({constructor:function(t,e){this.view=e,this.defaults=n.result(this,"defaults")||{},this.options=n.extend({},this.defaults,t),this.ui=n.extend({},n.result(e,"ui"),n.result(this,"ui")),o.Object.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this},proxyViewProperties:function(t){this.$el=t.$el,this.el=t.el}}),o.Behaviors=function(t,e){function n(t,i){return e.isObject(t.behaviors)?(i=n.parseBehaviors(t,i||e.result(t,"behaviors")),n.wrap(t,i,e.keys(s)),i):{}}function i(t,e){this._view=t,this._behaviors=e,this._triggers={}}function r(t){return t._uiBindings||t.ui}var o=/^(\S+)\s*(.*)$/,s={behaviorTriggers:function(t,e){var n=new i(this,e);return n.buildBehaviorTriggers()},behaviorEvents:function(n,i){var s={};return e.each(i,function(n,i){var a={},l=e.clone(e.result(n,"events"))||{};l=t.normalizeUIKeys(l,r(n));var c=0;e.each(l,function(t,r){var s=r.match(o),l=s[1]+"."+[this.cid,i,c++," "].join(""),u=s[2],h=l+u,d=e.isFunction(t)?t:n[t];a[h]=e.bind(d,n)},this),s=e.extend(s,a)},this),s}};return e.extend(n,{behaviorsLookup:function(){throw new t.Error({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.html#behaviorslookup"})},getBehaviorClass:function(e,i){return e.behaviorClass?e.behaviorClass:t._getValue(n.behaviorsLookup,this,[e,i])[i]},parseBehaviors:function(t,i){return e.chain(i).map(function(i,r){var o=n.getBehaviorClass(i,r),s=new o(i,t),a=n.parseBehaviors(t,e.result(s,"behaviors"));return[s].concat(a)}).flatten().value()},wrap:function(t,n,i){e.each(i,function(i){t[i]=e.partial(s[i],t[i],n)})}}),e.extend(i.prototype,{buildBehaviorTriggers:function(){return e.each(this._behaviors,this._buildTriggerHandlersForBehavior,this),this._triggers},_buildTriggerHandlersForBehavior:function(n,i){var o=e.clone(e.result(n,"triggers"))||{};o=t.normalizeUIKeys(o,r(n)),e.each(o,e.bind(this._setHandlerForBehavior,this,n,i))},_setHandlerForBehavior:function(t,e,n,i){var r=i.replace(/^\S+/,function(t){return t+".behaviortriggers"+e});this._triggers[r]=this._view._buildViewTrigger(n)}}),n}(o,n),o.AppRouter=e.Router.extend({constructor:function(t){this.options=t||{},e.Router.apply(this,arguments);var n=this.getOption("appRoutes"),i=this._getController();this.processAppRoutes(i,n),this.on("route",this._processOnRoute,this)},appRoute:function(t,e){var n=this._getController();this._addAppRoute(n,t,e)},_processOnRoute:function(t,e){if(n.isFunction(this.onRoute)){var i=n.invert(this.getOption("appRoutes"))[t];this.onRoute(t,i,e)}},processAppRoutes:function(t,e){if(e){var i=n.keys(e).reverse();n.each(i,function(n){this._addAppRoute(t,n,e[n])},this)}},_getController:function(){return this.getOption("controller")},_addAppRoute:function(t,e,i){var r=t[i];if(!r)throw new o.Error('Method "'+i+'" was not found on the controller');this.route(e,i,n.bind(r,t))},mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,triggerMethod:o.triggerMethod,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.Application=o.Object.extend({constructor:function(t){this._initializeRegions(t),this._initCallbacks=new o.Callbacks,this.submodules={},n.extend(this,t),this._initChannel(),o.Object.apply(this,arguments)},execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("before:start",t),this._initCallbacks.run(t,this),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},emptyRegions:function(){return this._regionManager.emptyRegions()},removeRegion:function(t){return this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},getRegions:function(){return this._regionManager.getRegions()},module:function(t,e){var i=o.Module.getClass(e),r=n.toArray(arguments);return r.unshift(this),i.create.apply(i,r)},getRegionManager:function(){return new o.RegionManager},_initializeRegions:function(t){var e=n.isFunction(this.regions)?this.regions(t):this.regions||{};this._initRegionManager();var i=o.getOption(t,"regions");return n.isFunction(i)&&(i=i.call(this,t)),n.extend(e,i),this.addRegions(e),this},_initRegionManager:function(){this._regionManager=this.getRegionManager(),this._regionManager._parent=this,this.listenTo(this._regionManager,"before:add:region",function(){o._triggerMethod(this,"before:add:region",arguments)}),this.listenTo(this._regionManager,"add:region",function(t,e){this[t]=e,o._triggerMethod(this,"add:region",arguments)}),this.listenTo(this._regionManager,"before:remove:region",function(){o._triggerMethod(this,"before:remove:region",arguments)}),this.listenTo(this._regionManager,"remove:region",function(t){delete this[t],o._triggerMethod(this,"remove:region",arguments)})},_initChannel:function(){this.channelName=n.result(this,"channelName")||"global",this.channel=n.result(this,"channel")||e.Wreqr.radio.channel(this.channelName),this.vent=n.result(this,"vent")||this.channel.vent,this.commands=n.result(this,"commands")||this.channel.commands,this.reqres=n.result(this,"reqres")||this.channel.reqres}}),o.Module=function(t,e,i){this.moduleName=t,this.options=n.extend({},this.options,i),this.initialize=i.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,n.isFunction(this.initialize)&&this.initialize(t,e,this.options)},o.Module.extend=o.extend,n.extend(o.Module.prototype,e.Events,{startWithParent:!0,initialize:function(){},addInitializer:function(t){this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(t){this._isInitialized||(n.each(this.submodules,function(e){e.startWithParent&&e.start(t)}),this.triggerMethod("before:start",t),this._initializerCallbacks.run(t,this),this._isInitialized=!0,this.triggerMethod("start",t))},stop:function(){this._isInitialized&&(this._isInitialized=!1,this.triggerMethod("before:stop"),n.invoke(this.submodules,"stop"),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),this.triggerMethod("stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,i){if(t){var r=n.flatten([this,this.app,e,o,e.$,n,i]);t.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new o.Callbacks,this._finalizerCallbacks=new o.Callbacks},triggerMethod:o.triggerMethod}),n.extend(o.Module,{create:function(t,e,i){var r=t,o=n.drop(arguments,3);e=e.split(".");var s=e.length,a=[];return a[s-1]=i,n.each(e,function(e,n){var s=r;r=this._getModule(s,e,t,i),this._addModuleDefinition(s,r,a[n],o)},this),r},_getModule:function(t,e,i,r,o){var s=n.extend({},r),a=this.getClass(r),l=t[e];return l||(l=new a(e,i,s),t[e]=l,t.submodules[e]=l),l},getClass:function(t){var e=o.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,n,i){var r=this._getDefine(n),o=this._getStartWithParent(n,e);r&&e.addDefinition(r,i),this._addStartWithParent(t,e,o)},_getStartWithParent:function(t,e){var i;return n.isFunction(t)&&t.prototype instanceof o.Module?(i=e.constructor.prototype.startWithParent,!!n.isUndefined(i)||i):!n.isObject(t)||(i=t.startWithParent,!!n.isUndefined(i)||i)},_getDefine:function(t){return!n.isFunction(t)||t.prototype instanceof o.Module?n.isObject(t)?t.define:null:t},_addStartWithParent:function(t,e,n){e.startWithParent=e.startWithParent&&n,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}}),o})},function(t,e,n){var i,r;(function(o){!function(s){var a="object"==typeof self&&self.self==self&&self||"object"==typeof o&&o.global==o&&o;i=[n(6),n(5),e],r=function(t,e,n){a.Backbone=s(a,n,t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(function(t,e,n,i){var r=t.Backbone,o=Array.prototype.slice;e.VERSION="1.2.2",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s=function(t,e,i){switch(t){case 1:return function(){return n[e](this[i])};case 2:return function(t){return n[e](this[i],t)};case 3:return function(t,r){return n[e](this[i],l(t,this),r)};case 4:return function(t,r,o){return n[e](this[i],l(t,this),r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),n[e].apply(n,t)}}},a=function(t,e,i){n.each(e,function(e,r){n[r]&&(t.prototype[r]=s(e,r,i))})},l=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?c(t):n.isString(t)?function(e){return e.get(t)}:t},c=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}},u=e.Events={},h=/\s+/,d=function(t,e,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=n.keys(i);a<s.length;a++)e=d(t,e,s[a],i[s[a]],o)}else if(i&&h.test(i))for(s=i.split(h);a<s.length;a++)e=t(e,s[a],r,o);else e=t(e,i,r,o);return e};u.on=function(t,e,n){return f(this,t,e,n)};var f=function(t,e,n,i,r){if(t._events=d(p,t._events||{},e,n,{context:i,ctx:t,listening:r}),r){var o=t._listeners||(t._listeners={});o[r.id]=r}return t};u.listenTo=function(t,e,i){if(!t)return this;var r=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[r];if(!s){var a=this._listenId||(this._listenId=n.uniqueId("l"));s=o[r]={obj:t,objId:r,id:a,listeningTo:o,count:0}}return f(t,e,i,this,s),this};var p=function(t,e,n,i){if(n){var r=t[e]||(t[e]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:o,ctx:o||s,listening:a})}return t};u.off=function(t,e,n){return this._events?(this._events=d(g,this._events,t,e,{context:n,listeners:this._listeners}),this):this},u.stopListening=function(t,e,i){var r=this._listeningTo;if(!r)return this;for(var o=t?[t._listenId]:n.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(e,i,this)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var g=function(t,e,i,r){if(t){var o,s=0,a=r.context,l=r.listeners;if(e||i||a){for(var c=e?[e]:n.keys(t);s<c.length;s++){e=c[s];var u=t[e];if(!u)break;for(var h=[],d=0;d<u.length;d++){var f=u[d];i&&i!==f.callback&&i!==f.callback._callback||a&&a!==f.context?h.push(f):(o=f.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}h.length?t[e]=h:delete t[e]}return n.size(t)?t:void 0}for(var p=n.keys(l);s<p.length;s++)o=l[p[s]],delete l[o.id],delete o.listeningTo[o.objId]}};u.once=function(t,e,i){var r=d(v,{},t,e,n.bind(this.off,this));return this.on(r,void 0,i)},u.listenToOnce=function(t,e,i){var r=d(v,{},e,i,n.bind(this.stopListening,this,t));return this.listenTo(t,r)};var v=function(t,e,i,r){if(i){var o=t[e]=n.once(function(){r(e,o),i.apply(this,arguments)});o._callback=i}return t};u.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;i<e;i++)n[i]=arguments[i+1];return d(m,this._events,t,void 0,n),this};var m=function(t,e,n,i){if(t){var r=t[e],o=t.all;r&&o&&(o=o.slice()),r&&y(r,i),o&&y(o,[e].concat(i))}return t},y=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}};u.bind=u.on,u.unbind=u.off,n.extend(e,u);var E=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(E.prototype,u,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null==t)return this;var r;if("object"==typeof t?(r=t,i=e):(r={})[t]=e,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,h=this._previousAttributes;for(var d in r)e=r[d],n.isEqual(c[d],e)||a.push(d),n.isEqual(h[d],e)?delete u[d]:u[d]=e,o?delete c[d]:c[d]=e;if(this.id=this.get(this.idAttribute),!s){a.length&&(this._pending=i);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,c[a[f]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,i={};for(var r in t){var o=t[r];n.isEqual(e[r],o)||(i[r]=o)}return!!n.size(i)&&i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,i=t.success;return t.success=function(n){var r=t.parse?e.parse(n,t):n;return!!e.set(r,t)&&(i&&i.call(t.context,e,n,t),void e.trigger("sync",e,n,t))},F(this,t),this.sync("read",this,t)},save:function(t,e,i){var r;null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0,parse:!0},i);var o=i.wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(t){s.attributes=l;var e=i.parse?s.parse(t,i):t;return o&&(e=n.extend({},r,e)),!(e&&!s.set(e,i))&&(a&&a.call(i.context,s,t,i),void s.trigger("sync",s,t,i))},F(this,i),r&&o&&(this.attributes=n.extend({},l,r));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){r&&o(),i&&i.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var s=!1;return this.isNew()?n.defer(t.success):(F(this,t),s=this.sync("delete",this,t)),r||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||H();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;
return!i||(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1)}});var w={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};a(E,w,"attributes");var _=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},T={add:!0,remove:!0,merge:!0},b={add:!0,remove:!1},C=function(t,e,n){for(var i=Array(t.length-n),r=e.length,o=0;o<i.length;o++)i[o]=t[o+n];for(o=0;o<r;o++)t[o+n]=e[o];for(o=0;o<i.length;o++)t[o+r+n]=i[o]};n.extend(_.prototype,u,{model:E,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,b))},remove:function(t,e){e=n.extend({},e);var i=!n.isArray(t);t=i?[t]:n.clone(t);var r=this._removeModels(t,e);return!e.silent&&r&&this.trigger("update",this,e),i?r[0]:r},set:function(t,e){if(null!=t){e=n.defaults({},e,T),e.parse&&!this._isModel(t)&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?[t]:t.slice();var r=e.at;null!=r&&(r=+r),r<0&&(r+=this.length+1);for(var o,s=[],a=[],l=[],c={},u=e.add,h=e.merge,d=e.remove,f=!1,p=this.comparator&&null==r&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,v=0;v<t.length;v++){o=t[v];var m=this.get(o);if(m){if(h&&o!==m){var y=this._isModel(o)?o.attributes:o;e.parse&&(y=m.parse(y,e)),m.set(y,e),p&&!f&&(f=m.hasChanged(g))}c[m.cid]||(c[m.cid]=!0,s.push(m)),t[v]=m}else u&&(o=t[v]=this._prepareModel(o,e),o&&(a.push(o),this._addReference(o,e),c[o.cid]=!0,s.push(o)))}if(d){for(v=0;v<this.length;v++)o=this.models[v],c[o.cid]||l.push(o);l.length&&this._removeModels(l,e)}var E=!1,w=!p&&u&&d;if(s.length&&w?(E=this.length!=s.length||n.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,C(this.models,s,0),this.length=this.models.length):a.length&&(p&&(f=!0),C(this.models,a,null==r?this.length:r),this.length=this.models.length),f&&this.sort({silent:!0}),!e.silent){for(v=0;v<a.length;v++)null!=r&&(e.index=r+v),o=a[v],o.trigger("add",o,this,e);(f||E)&&this.trigger("sort",this,e),(a.length||l.length)&&this.trigger("update",this,e)}return i?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var i=e.length;return n.isFunction(e)&&(e=n.bind(e,this)),1===i||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=n.extend({parse:!0},t);var e=t.success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e.call(t.context,i,n,t),i.trigger("sync",i,n,t)},F(this,t),this.sync("read",this,t)},create:function(t,e){e=e?n.clone(e):{};var i=e.wait;if(t=this._prepareModel(t,e),!t)return!1;i||this.add(t,e);var r=this,o=e.success;return e.success=function(t,e,n){i&&r.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=this.get(t[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,e.silent||(e.index=o,r.trigger("remove",r,this,e)),n.push(r),this._removeReference(r,e)}}return!!n.length&&n},_isModel:function(t){return t instanceof E},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){if("add"!==t&&"remove"!==t||n===this){if("destroy"===t&&this.remove(e,i),"change"===t){var r=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}});var S={forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3};a(_,S,"models");var A=e.View=function(t){this.cid=n.uniqueId("view"),n.extend(this,n.pick(t,R)),this._ensureElement(),this.initialize.apply(this,arguments)},O=/^(\S+)\s*(.*)$/,R=["model","collection","el","id","attributes","className","tagName","events"];n.extend(A.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[i]),i){var r=e.match(O);this.delegate(r[1],r[2],n.bind(i,this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,i,r){var o=x[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||H()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,l&&l.call(r.context,t,e,n)};var c=r.xhr=e.ajax(n.extend(s,r));return i.trigger("request",i,c,r),c};var x={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var I=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},N=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,L=/\*\w+/g,M=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(I.prototype,u,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);o.execute(r,s,i)!==!1&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),e.history.trigger("route",o,i,s))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(M,"\\$&").replace(N,"(?:$1)?").replace(k,function(t,e){return e?t:"([^/?]+)"}).replace(L,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var D=e.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,P=/^\/+|\/+$/g,U=/#.*$/;D.started=!1,n.extend(D.prototype,u,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(B,"")},start:function(t){if(D.started)throw new Error("Backbone.history has already been started");if(D.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(P,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),D.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!D.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+t;if(t=this.decodeFragment(t.replace(U,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new D;var V=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};E.extend=_.extend=I.extend=A.extend=D.extend=V;var H=function(){throw new Error('A "url" property or function must be specified')},F=function(t,e){var n=e.error;e.error=function(i){n&&n.call(e.context,t,i,e),t.trigger("error",t,i,e)}};return e})}).call(e,function(){return this}())},function(t,e,n){var i,r;!function(o,s){i=[n(80),n(6)],r=function(t,e){return s(t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(this,function(t,e){"use strict";var n=t.Wreqr,i=t.Wreqr={};return t.Wreqr.VERSION="1.4.0",t.Wreqr.noConflict=function(){return t.Wreqr=n,this},i.Handlers=function(t,e){var n=function(t){this.options=t,this._wreqrHandlers={},e.isFunction(this.initialize)&&this.initialize(t)};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events,{setHandlers:function(t){e.each(t,e.bind(function(t,n){var i=null;e.isObject(t)&&!e.isFunction(t)&&(i=t.context,t=t.callback),this.setHandler(n,t,i)},this))},setHandler:function(t,e,n){var i={callback:e,context:n};this._wreqrHandlers[t]=i,this.trigger("handler:add",t,e,n)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(e)return function(){return e.callback.apply(e.context,arguments)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),n}(t,e),i.CommandStorage=function(){var n=function(t){this.options=t,this._commands={},e.isFunction(this.initialize)&&this.initialize(t)};return e.extend(n.prototype,t.Events,{getCommands:function(t){var e=this._commands[t];return e||(e={command:t,instances:[]},this._commands[t]=e),e},addCommand:function(t,e){var n=this.getCommands(t);n.instances.push(e)},clearCommands:function(t){var e=this.getCommands(t);e.instances=[]}}),n}(),i.Commands=function(t,e){return t.Handlers.extend({storageType:t.CommandStorage,constructor:function(e){this.options=e||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this),t.Handlers.prototype.constructor.apply(this,arguments)},execute:function(t){t=arguments[0];var n=e.rest(arguments);this.hasHandler(t)?this.getHandler(t).apply(this,n):this.storage.addCommand(t,n)},_executeCommands:function(t,n,i){var r=this.storage.getCommands(t);e.each(r.instances,function(t){n.apply(i,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){var n,i=t.storageType||this.storageType;n=e.isFunction(i)?new i:i,this.storage=n}})}(i,e),i.RequestResponse=function(t,e){return t.Handlers.extend({request:function(t){if(this.hasHandler(t))return this.getHandler(t).apply(this,e.rest(arguments))}})}(i,e),i.EventAggregator=function(t,e){var n=function(){};return n.extend=t.Model.extend,e.extend(n.prototype,t.Events),n}(t,e),i.Channel=function(n){var i=function(e){this.vent=new t.Wreqr.EventAggregator,this.reqres=new t.Wreqr.RequestResponse,this.commands=new t.Wreqr.Commands,this.channelName=e};return e.extend(i.prototype,{reset:function(){return this.vent.off(),this.vent.stopListening(),this.reqres.removeAllHandlers(),this.commands.removeAllHandlers(),this},connectEvents:function(t,e){return this._connect("vent",t,e),this},connectCommands:function(t,e){return this._connect("commands",t,e),this},connectRequests:function(t,e){return this._connect("reqres",t,e),this},_connect:function(t,n,i){if(n){i=i||this;var r="vent"===t?"on":"setHandler";e.each(n,e.bind(function(n,o){this[t][r](o,e.bind(n,i))},this))}}}),i}(i),i.radio=function(t,e){var n=function(){this._channels={},this.vent={},this.commands={},this.reqres={},this._proxyMethods()};e.extend(n.prototype,{channel:function(t){if(!t)throw new Error("Channel must receive a name");return this._getChannel(t)},_getChannel:function(e){var n=this._channels[e];return n||(n=new t.Channel(e),this._channels[e]=n),n},_proxyMethods:function(){e.each(["vent","commands","reqres"],e.bind(function(t){e.each(i[t],e.bind(function(e){this[t][e]=r(this,t,e)},this))},this))}});var i={vent:["on","off","trigger","once","stopListening","listenTo","listenToOnce"],commands:["execute","setHandler","setHandlers","removeHandler","removeAllHandlers"],reqres:["request","setHandler","setHandlers","removeHandler","removeAllHandlers"]},r=function(t,n,i){return function(r){var o=t._getChannel(r)[n];return o[i].apply(o,e.rest(arguments))}};return new n}(i,e),t.Wreqr})},function(t,e,n){var i,r;!function(o,s){i=[n(80),n(6)],r=function(t,e){return s(t,e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}(this,function(t,e){"use strict";var n=t.ChildViewContainer;return t.ChildViewContainer=function(t,e){var n=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,this.add,this)};e.extend(n.prototype,{add:function(t,e){var n=t.cid;return this._views[n]=t,t.model&&(this._indexByModel[t.model.cid]=n),e&&(this._indexByCustom[e]=n),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var n=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.any(this._indexByCustom,function(t,e){if(t===n)return delete this._indexByCustom[e],!0},this),delete this._views[n],this._updateLength(),this},call:function(t){this.apply(t,e.tail(arguments))},apply:function(t,n){e.each(this._views,function(i){e.isFunction(i[t])&&i[t].apply(i,n||[])})},_updateLength:function(){this.length=e.size(this._views)}});var i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return e.each(i,function(t){n.prototype[t]=function(){var n=e.values(this._views),i=[n].concat(e.toArray(arguments));return e[t].apply(e,i)}}),n}(t,e),t.ChildViewContainer.VERSION="0.1.11",t.ChildViewContainer.noConflict=function(){return t.ChildViewContainer=n,this},t.ChildViewContainer})},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(80),n(88),n(74),n(90),n(1),n(4),n(84),n(7),n(94),n(97),n(96),n(98)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p){var g=u.PAGE_TITLE_SEPARATOR,v=u.PAGE_TITLE_SUFFIX;return new n.Application({initialize:function(){this.initListeners(),this.initializeCommentsProvider()},MODAL_EVENTS:{SHOW:"show:modal",CLOSE:"close:modal",CONFIRM:"confirm:modal",CANCEL:"cancel:modal"},regions:{ad:"#top-ad",banner:"#content-banner",content:"#content-main",modal:"#content-modal"},initListeners:e.once(function(){this.listenTo(this.getRegion("content"),"show",this.onContentRegionShow),o.tracking.on(o.tracking.TRACK,this.onTrackEvent,this),o.modal.on(o.modal.SHOW,this.onShowModal,this),o.modal.on(o.modal.CLOSE,this.onCloseModal,this),o.modal.on(o.modal.CONFIRM,this.onCloseModal,this),o.app.reply(o.app.CURRENT_MEMBER,this.onCurrentMemberRequest,this),o.cache.on(o.cache.CLEAR,r.clear,this),o.page.on(o.page.TITLE,this.setPageTitle,this),o.lixes.reply(o.lixes.GET_VALUE,this.getLixValue,this),o.lixes.reply(o.lixes.IS_ENABLED,this.isLixEnabled,this)}),initializeCommentsProvider:function(){var t=new h,e=o.lixes.request(o.lixes.IS_ENABLED,u.LIX_KEYS.AGORA_REVAMP);this.commentsProviderInstance=d.create(),commentsProvider.setConfig("renderer",{paths:e?u.COMMENTS_TEMPLATES_V2:u.COMMENTS_TEMPLATES}),e&&commentsProvider.setConfig("mentions",u.MENTIONS_SETUP),commentsProvider.setConfig("translate",t.translate()),commentsProvider.setConfig("global",{newIcons:!0,i18nAdapter:f})},onTrackEvent:function(t,e){a.track(t,e)},onContentRegionShow:function(t,e,n){n=n?n:{},n.showingLoader||a.trackRenderComplete()},onShowModal:function(t){var n;if(e.isUndefined(t)||e.isUndefined(t.view))throw new Error("Modal requires an options argument with a view.");n=new s({titleKey:t.titleKey,i18nTemplate:t.i18nTemplate,view:t.view,modalClass:t.modalClass,showFooter:t.showFooter||!1,events:this.MODAL_EVENTS}),this.getRegion("modal").show(n)},onCloseModal:function(){this.getRegion("modal").empty()},onCurrentMemberRequest:function(){return this.currentMemberModel||(this.currentMemberModel=new c),this.currentMemberModel},setPageKey:function(t,e){var n=this.router.getPageKeyForRoute(t,e);n&&n.anchorKey!==a.getCurrentAnchorPageKey()?(l.setPageKey(n.anchorKey),a.setCurrentAnchorPageKey(n.anchorKey),a.setCurrentPageInstance(n.anchorKey),a.startRumClientAppTransition(n.anchorKey),a.trackPageView(n.anchorKey)):n.anchorKey===n.fullKey&&(a.setCurrentPageInstance(n.anchorKey),a.trackPageView(n.anchorKey)),n&&(l.setPageKey(n.fullKey),window.jet&&jet.conf({pageKey:n.fullKey}),a.setCurrentPageKey(n.fullKey),n.anchorKey!==n.fullKey&&a.trackPageView(),a.trackNavigationEvent())},setPageTitle:function(t){t&&(t=t instanceof Array?t:[t],t.push(v),t=t.join(g)),document.title=t||v},getLixValue:function(t){return p.lixes[t]||null},isLixEnabled:function(t){var e=this.getLixValue(t);return e===!0||"true"===e}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(74),n(80),n(85),n(7)],r=function(t,e,n,i){var r=i.EMBEDDED_MEMBER_JSON_ID,o="totalFollowings",s="totalDrafts",a=t.follow,l=t.services;return e.Model.extend({initialize:function(){var e;try{e=play.getEmbeddedContent(r)}catch(t){e={}}this.set(this.parse(e)),a.on(a.FOLLOW,this.incrementFollowings,this),a.on(a.UNFOLLOW,this.decrementFollowings,this),l.on(t.services.DELETE_ARTICLE_AFTER,this.decrementDraftCount,this)},parse:function(t){return t.id=t&&t.urn?n.getIdFromUrn(t.urn):"",t.isGuest=""===t.id,t},incrementFollowings:function(){this.set(o,this.get(o)+1)},decrementFollowings:function(){this.set(o,this.get(o)-1)},decrementDraftCount:function(t){t.isPublished||this.set(s,this.get(s)-1)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(7),n(86),n(87)],r=function(t,e,n){var i=new e.Resources(n.i18n,n),r=new e.NumberFormatter,o=new e.NameFormatter,s=play.getPageContext().locale;return{getTemplateString:function(t,e,n){var r="";return i.get(t,e,n||{},function(t,e){if(t)throw t;r=e}),r},addHttps:function(t,e){return t&&this.isUrl(t)?["http",e?"":"s","://",t].join(""):null},stripTrailingSlash:function(t){if(!_.isString(t))return t;var e=t.lastIndexOf("/");return e===t.length-1?t.substr(0,e):t},parseAndReplaceUrl:function(t,e){var n=this.parseUrl(t);return n&&this.isNotEmpty(n)&&e&&this.isNotEmpty(e)?t.replace(n,e):t},removeUrl:function(t){var e=this.parseUrl(t);return t.replace(e,"").trim()},formatNumber:function(t,e){return r.format(t,e||s)},formatName:function(t,e,n){return o.format(t,e,n||s)},createUrn:function(t,e){return["urn:li",e,t].join(":")},getIdFromUrn:function(t){return String(t).split(":").pop()},escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e){t.exports=LIModules.requires("t8")},function(t,e){t.exports=LIModules.requires("dust")},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(89)],r=function(t,e){var n={};return t.defaults({exists:function(t){var e=this.find(t);return void 0!==e},find:function(t){var e=n[t];return e&&e._value?e._value:void 0},findOrPersist:function(e,n,i){var r,o=this.find(e);return o?o:(r=t.isFunction(n)?n():n,this.persist(e,r,i))},persist:function(e,i,r){var o=this,s=o.find(e);return t.isUndefined(i)?null:s?s:(n[e]={_value:i},r&&r>0&&(n[e]._timer=setTimeout(function(){o.clear(e)},1e3*r)),i)},update:function(e,n){var i=this.find(e);return!(!i||!t.isFunction(n))&&n(i)},clear:function(t){try{clearTimeout(n[t]._timer),delete n[t]}catch(t){}}},e)}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[],r=function(){return{Feed:{Collection:"Feed.Collection",AuthorModel:"Feed.AuthorModel",StreamView:"Feed.StreamView"},Drafts:{Collection:"Drafts.Collection"},Saved:{Collection:"Saved.Collection"},Published:{Collection:"Published.Collection"},Article:{Author:"Article.Author:",Content:"Article.Content:",Likes:"Article.Likes:",Related:"Article.Related:",Social:"Article.Social:"},Author:{Articles:"Author.Articles:",Followers:"Author.Followers:",Following:"Author.Following:",Profile:"Author.Profile:"},Pivot:{Collection:"Pivot.Collection:",Header:"Pivot.Header:"}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(6),n(91),n(74),n(93),n(7),n(4)],r=function(t,e,n,i,r,o,s,a){var l=a.get$Body(),c=a.get$Document(),u=a.get$Window(),h=s.CLASSES.HAS_MODAL;return e.LayoutView.extend({template:"templates/walter/shared/modal",isOpen:!1,elementNamespace:".dialog-modal",regions:{body:"#modal-body"},ui:{closeButton:".dismiss",confirmButton:".yes-btn",cancelButton:".no-btn",modal:"#modal",modalDialog:".modal-dialog",title:"#modal-title"},className:function(){return this.getOption("modalClass")},triggers:{"click @ui.closeButton":"close:modal","click @ui.confirmButton":"confirm:modal","click @ui.cancelButton":"cancel:modal"},initialize:function(t){r.modal.on(r.modal.CHANGE.TITLE,this.updateHeaderText,this)},onBeforeShow:function(){this.refocusTarget=document.activeElement,this.showChildView("body",this.getOption("view"))},onShow:function(){this._bindGlobalEvents(),this.lastTabbable=this._getLastTabbable(),this.ui.modalDialog.on("keydown",function(t){t.target===t.currentTarget&&t.which===o.TAB&&t.shiftKey&&(t.preventDefault(),this.lastTabbable.focus())}.bind(this)).focus(),t(this.lastTabbable).on("keydown",function(t){t.target!==t.currentTarget||t.which!==o.TAB||t.shiftKey||(t.preventDefault(),this.ui.modalDialog.focus())}.bind(this)),this.ui.modal.click(function(t){t.target===t.currentTarget&&this.onCloseModal()}.bind(this)),l.addClass(h)},onCloseModal:function(){r.modal.trigger(r.modal.CLOSE)},onConfirmModal:function(){r.modal.trigger(r.modal.CONFIRM)},onCancelModal:function(){r.modal.trigger(r.modal.CANCEL)},onDestroy:function(){this.refocusTarget.focus(),r.modal.off(r.modal.CHANGE.TITLE),c.off(this.elementNamespace),u.off(this.elementNamespace),l.off(this.elementNamespace),l.removeClass(h)},templateHelpers:function(){return n.extend({titleKey:this.getOption("titleKey"),i18nTemplate:this.getOption("i18nTemplate"),showFooter:this.getOption("showFooter")},this.getOption("additionalViewProperties")||{})},updateHeaderText:function(t){this.ui.title.text(t)},_bindGlobalEvents:function(){c.on("keyup"+this.elementNamespace,function(e){e.which===o.ESC?this.onCloseModal():e.which!==o.ENTER||t(e.originalEvent.target).is(":button")||this.ui.modalDialog.find("[data-app-primary-action]").click()}.bind(this)),l.on("click"+this.elementNamespace,function(t){"BODY"===t.target.nodeName&&this.onCloseModal()}.bind(this))},_getLastTabbable:function(){for(var e=this.ui.modalDialog.find("*").get(),n=e.pop();!i(n);)n=e.pop();return t(n)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(92)],r=function(t,e){var n=function(n){var i,r,o,s;return n instanceof t?(i=n,r=n[0]):(i=t(n),r=n),o=i.attr("tabindex"),s=isNaN(o),(s||o>=0)&&e(i,!s)};return n}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5)],r=function(t){function e(e){var n=e.is(":visible"),i=!e.parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length;return n&&i}var n=function(n,i){var r,o,s,a=!1;if(n instanceof t?(r=n,o=n[0]):(r=t(n),o=n),o)return s=o.nodeName.toLowerCase(),i=i||!isNaN(r.attr("tabindex")),e(r)&&(/input|select|textarea|button|object/.test(s)?a=!o.disabled:i&&"a"===s&&(a=o.href)),a};return n}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i;i=function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE_BREAK:19,CAPS_LOCK:20,ESCAPE:27,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,LEFT:37,UP_ARROW:38,UP:38,RIGHT_ARROW:39,RIGHT:39,DOWN_ARROW:40,DOWN:40,INSERT:45,DELETE:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,LEFT_WINDOW_KEY:91,RIGHT_WINDOW_KEY:92,SELECT_KEY:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,MULTIPLY:106,ADD:107,SUBTRACT:109,DECIMAL_POINT:110,DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUM_LOCK:144,SCROLL_LOCK:145,SEMI_COLON:186,EQUAL_SIGN:187,COMMA:188,DASH:189,PERIOD:190,FORWARD_SLASH:191,GRAVE_ACCENT:192,OPEN_BRACKET:219,BACKSLASH:220,CLOSE_BRACKET:221,SINGLE_QUOTE:222}}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(96)],r=function(t,e){return t.extend({translate:function(){var t={},n={comments:["delete","recommended","oldest","newest","showMore","notEnoughChars","cancel","comment","saveChanges","commentSettings","allowComments","disableComments","disableCommentsInfo"],commentsDisabled:["commentsDisabledAuthorMessage","commentsDisabledAuthorEnable","commentsDisabledViewerMessage","commentsDisabledCommentsDisabling"],commentsInputDefault:["comment","placeholder"],commentsInputGuest:["signin"],thread:["placeholder","showMore","cancel","reply","viewPrevious","notEnoughChars"],comment:["like","likeGuestTooltip","unlike","reply","replyGuestTooltip","feature","share","getlink","delete","you","flag","commentCount","seeMore","seeLess"],likeModal:["membersWhoLike","dismiss"],
linkModal:["getLink","dismiss","urlOfComment"],mentions:["topInput","bottomInput","comment"],removeCommentModal:["flag","delete","dismiss","confirm","disableCommentsConfirmation","mainMessageDelete","mainMessageFlag","mainMessageDisableComments"],timePrefixes:["second","minute","hour","day","week","month","year"]},i=function(i){var r=n[i];t[i]={},r.forEach(function(n){t[i][n]=e("i18n_"+i+"_"+n)})};for(var r in n)i(r);return t}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(74)],r=function(t,e,n,i){return n.Object.extend({options:{radioChannel:null,radioBeforeEvent:null,radioAfterEvent:null},initialize:function(){this.radioChannel=this.getOption("radioChannel"),this.radioBeforeEvent=this.getOption("radioBeforeEvent"),this.radioAfterEvent=this.getOption("radioAfterEvent")},makeAjaxRequest:function(n){var i=n&&n.data&&n.data.urn,r=t.Deferred();return this.beforeAjaxRequest(i),t.ajax(n).always(e.bind(function(t,e,n){this.afterAjaxRequest(i),r.resolve(t,e,n)},this)),r},urnToData:function(t){var e={};return t instanceof Array?e.urns=t.join():e.urn=t,e},beforeAjaxRequest:function(t){this.radioBeforeEvent&&t&&this.radioChannel.trigger(this.radioBeforeEvent,t)},afterAjaxRequest:function(t){this.radioAfterEvent&&t&&this.radioChannel.trigger(this.radioAfterEvent,t)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(85)],r=function(t){var e="templates/walter/shared/strings/globalStrings";return function(n,i){var r="";n=0!==n.indexOf("i18n_")?"i18n_"+n:n;try{r=t.getTemplateString(n,e,i)}catch(t){}return r}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e){t.exports=require("provider/CommentsProvider")},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(7)],r=function(t){var e;try{e=play.getEmbeddedContent(t.EMBEDDED_CONFIG_JSON_ID)}catch(t){e={}}return e}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(110),n(101),n(111),n(102),n(103),n(106),n(107),n(108),n(109),n(123),n(100),n(114),n(117),n(118),n(120),n(121),n(122)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p,g,v){return{ButtonBookmarkBehavior:t,ButtonCommentBehavior:e,ButtonFollowBehavior:n,ButtonLikeBehavior:i,DropdownBehavior:l,FlagArticleBehavior:r,SocialSharingBehavior:o,StickyBehavior:s,StickyHeaderBehavior:a,ImpressionTrackingBehavior:c,LazyLoadMediaBehavior:u,DeleteArticleBehavior:h,TextSelectionBehavior:d,DwellTimeTrackingBehavior:f,LazyLoadCollectionViewItemsBehavior:p,ArtDecoTooltipBehavior:g,ActionTrackingBehavior:v}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79)],r=function(t,e,n){var i="scroll.showMedia resize.showMedia";return n.Behavior.extend({defaults:{dataSourceAttribute:"data-li-src",threshold:0,scrollableElement:e(window),throttle:0},onLazyLoadMedia:function(){var n=this.getOption("throttle"),i=e.proxy(t.throttle(this._showMedia,n),this),r=this.getOption("dataSourceAttribute"),o=["[",r,"]"].join("");this.$media=this.$el.find(o),this._setScrollEvent(i),i()},_showMedia:function(){var t=this.getOption("threshold"),n=this.getOption("scrollableElement"),i=e.proxy(this._setMediaSource,this);this.$media.filter(function(){var i=e(this),r=i.is(":hidden"),o=n.scrollTop(),s=o+n.height(),a=i.offset().top,l=a+i.height();return l>=o-t&&a<=s+t&&!r}).each(function(){i(e(this))})},_setMediaSource:function(t){var e,n=this.getOption("dataSourceAttribute"),i=t.attr(n);i&&(e=t[0].tagName.toLowerCase(),"img"===e||"iframe"===e?t.attr("src",i):t.css("background-image","url("+i+")")),this._removeFromMediaCollection(t)},_removeFromMediaCollection:function(e){t.each(this.$media,function(t,n){e[0]===t&&this.$media.splice(n,1)}.bind(this)),e.removeAttr(this.getOption("dataSourceAttribute"))},_setScrollEvent:function(t){this._removeScrollEvent(),this._addScrollEvent(t)},_addScrollEvent:function(t){var e=this.getOption("scrollableElement");e.on(i,t)},_removeScrollEvent:function(){var t=this.getOption("scrollableElement");t.off(i)},onDestroy:function(){this._removeScrollEvent()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79)],r=function(t,e){var n=t("html, body"),i=t("#header-banner").outerHeight()+t("#header-navigation").outerHeight()+50;return e.Behavior.extend({defaults:{buttonComment:".button-comment",commentsEl:"#comments",inputEl:".mention-input",duration:400,offsetTop:i},initialize:function(){this.$commentsEl=t(this.getOption("commentsEl")),this.offsetTop=this.getOption("offsetTop"),this.duration=this.getOption("duration")},ui:function(){return{buttonComment:this.getOption("buttonComment")}},events:{"click @ui.buttonComment":"onClick"},onClick:function(t){t.metaKey||(t.preventDefault(),this.scrollToComments(),this.ui.buttonComment.blur())},scrollToComments:function(){n.animate({scrollTop:this.$commentsEl.offset().top-this.offsetTop},this.duration,this.focusInput.bind(this))},focusInput:function(){t(this.getOption("inputEl")).eq(0).focus()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(74),n(79),n(7),n(96)],r=function(t,e,n,i,r,o){var s="isLiked",a=n.services,l=n.app,c=n.guest;return i.Behavior.extend({defaults:{model:null,selector:".button-like",tooltip:".tooltip-like"},initialize:function(){this.model=this.getOption("model"),this.urn=this.model.get("urn"),this.currentMember=l.request(l.CURRENT_MEMBER),this.bindEvents()},bindEvents:function(){this.listenTo(a,a.LIKE_BEFORE,this.addLoading,this),this.listenTo(a,a.LIKE_AFTER,this.removeLoading,this)},ui:function(){return{buttonLike:this.getOption("selector"),tooltipLike:this.getOption("tooltip")}},events:{"click @ui.buttonLike":"onClick"},modelEvents:{"change:isLiked":"onLikeChanged"},onClick:function(t){t.metaKey||this.isLoading||(t.preventDefault(),this.currentMember.get("isGuest")?c.trigger(c.GATED_ACTION,r.GUEST_EVENTS.LIKE,this.urn,this.model.get("feedItemType")?this.model.get("summary").permalink:this.model.get("permalink")):this.model[this.model.get(s)?"unlike":"like"]())},onLikeChanged:function(){this.ui.buttonLike.toggleClass(r.CLASSES.ACTIVE,this.model.get(s)),this.model.get(s)?this.ui.tooltipLike.text(o("i18n_tooltip_unlike")):this.ui.tooltipLike.text(o("i18n_tooltip_like"))},isLoading:!1,addLoading:function(t){this.urn===t&&(this.isLoading=!0)},removeLoading:function(t){this.urn===t&&(this.isLoading=!1)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(74),n(104),n(105)],r=function(t,e,n,i,r){return e.Behavior.extend({ui:{flagArticle:".flag-article"},events:{"click @ui.flagArticle":"clickFlagArticle"},clickFlagArticle:function(t){if(!t.metaKey){t.preventDefault();var e,o,s,a=this.view.model.get("authorUrn"),l=this.view.model.get("contentSource"),c=this.view.model.get("pubArticleUrn")||this.view.model.get("urn");s=a?play.buildUrlSimple(i.external.flagging.semaphoreData,{entityUrn:c,authorUrn:a,contentSource:l}):play.buildUrlSimple(i.external.flagging.semaphoreData,{entityUrn:c,contentSource:l}),e=new r({semaphoreDataUrl:s}),o={view:e,titleKey:"i18n_flagging_semaphore_title",i18nTemplate:"templates/walter/shared/strings/globalStrings",modalClass:"semaphore-flagging"},n.modal.trigger(n.modal.SHOW,o)}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(7)],r=function(t,e){var n={flagging:{flag:"/today/social/flag-article-form",semaphoreData:"/psettings/flagging-menu"}};try{var i=play.getEmbeddedContent(e.ROUTES_JSON_ID)}catch(t){}return{v1:i,external:n}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(80),n(79),n(6),n(4),n(74)],r=function(t,e,n,i,r,o){var s,a=!1;return n.ItemView.extend({successTemplate:"templates/walter/flagging/semaphoreFlaggingSuccess",template:"templates/walter/flagging/semaphoreFlagging",className:"semaphore-body",events:{"click .option-trigger":"onOptionSelect","click .back":"onBackButtonSelect"},modelStack:[],state:{pageCount:1},dialogTrackingCodes:{},initialize:function(e){if(i.isUndefined(e)||i.isUndefined(e.semaphoreDataUrl))throw new Error("SemaphoreView requires a semaphoreDataUrl to be passed in");var n,r;s=window.liTrackClient||null,this.initData().done(function(e){n=t("#modal-title").text(),this.steps=e.numberOfSteps,r=this.createModel(e),this.dialogTrackingCodes=i.extend(this.dialogTrackingCodes,r.get("dialogTrackingCodes")),r.set({title:n}),this.resultScreen=r.get("resultScreen"),this.modelStack.push(r),this.setModelView(r)}.bind(this))},onBeforeDestroy:function(){this._beforeCloseHandler()},initData:function(){return t.ajax(this.getOption("semaphoreDataUrl"))},createModel:function(t){var n=new e.Model(i.extend(t,this.state));return n=this.setPaging(n)},setPaging:function(t){var e,n=this.steps,i=[];for(e=1;e<=n;e++)i.push(e);return t.set({paging:i}),t},onOptionSelect:function(e){var n,r,s=t(e.currentTarget),l=s.data(),c=l.trackingId,u=l.optionIndex,h=s.attr("href")||l.optionUrl,d=l.openLinkUrl,f=i.last(this.modelStack),p=f.get("options");c||jet.error(new Error("Semaphore trackingId is missing")),p&&(f=p[u].section||p[u].action,this.state.pageCount++,f=this.createModel(f),this.modelStack.push(f)),h?(a=!0,n=s.parents().hasClass("additional-actions"),r={url:h,trackingId:c},this.makePost(r),n&&this.destroy()):d?(a=!0,this._openAndTrackUrl({url:d,trackingId:c}),o.modal.trigger(o.modal.CLOSE)):(this._track(c),this.setModelView(f))},onBackButtonSelect:function(){var t;this.modelStack.pop(),this.state.pageCount--,t=i.last(this.modelStack),t.set(this.state),this._track(this.dialogTrackingCodes.dialogBackButton),this.setModelView(t)},setModelView:function(t){this.model=t,o.modal.trigger(o.modal.CHANGE.TITLE,this.model.get("title")),a=!1,this.render()},makePost:function(e){var n=r.readCookie("JSESSIONID").replace(/"/g,""),i=this;t.ajax({url:e.url,data:n,method:"POST",headers:{"X-IsAJAXForm":1}}).done(function(){i._track(e.trackingId),i.onReportSuccess()}).fail(function(t){jet.error(t)})},_track:function(t,e){var n,i=e||{},r="unknown";document.body.id&&(r=document.body.id.substring("pagekey-".length)),n={requestHeader:{pageKey:r},action:"CLICK",sponsoredFlag:"ORGANIC",moduleKey:t,customProperties:i},s&&s.trackUnifiedAction(n)},onReportSuccess:function(){if(this.successTemplate){var t=i.last(this.modelStack);t.set({resultScreen:this.resultScreen}),this.template=this.successTemplate,this.setModelView(t)}},_beforeCloseHandler:function(){var t=a?this.dialogTrackingCodes.dialogClose:this.dialogTrackingCodes.dialogCancel;this._track(t)},_openAndTrackUrl:function(t){window.open(t.url,"_blank"),this._track(t.trackingId)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(79),n(7)],r=function(t,e,n,i,r){return i.Behavior.extend({defaults:{url:"",summary:"",title:"",authorTwitterHandle:"",winParams:"width=550,height=380",selector:".share-button"},ui:function(){return{SocialShare:this.getOption("selector")}},events:{"click @ui.SocialShare":"clickSocialShare"},clickSocialShare:function(e){if(!e.metaKey){var n,i;switch(e.preventDefault(),n=t(e.target).closest("a").data("share-type")){case"linkedin":i=this.linkedinShareUrl();break;case"facebook":i=this.facebookShareUrl();break;case"twitter":i=this.twitterShareUrl()}window.open(i,"_blank",this.defaults.winParams)}},linkedinShareUrl:function(){var t=r.SHARE_URLS.LINKEDIN_SHARE_URL+this.options.url,e=this.options.selectedText;return t+=e?"&text="+encodeURIComponent('"'+e+'"')+"&mention=1":"",t+=this.options.title?"&title="+encodeURIComponent(this.options.title):""},facebookShareUrl:function(){var t=r.SHARE_URLS.FACEBOOK_SHARE_URL+this.options.url;return t+=this.options.text?"&text="+encodeURIComponent(this.options.text):"",t+=this.options.title?"&title="+encodeURIComponent(this.options.title):""},twitterShareUrl:function(){var t=r.SHARE_URLS.TWITTER_SHARE_URL,e=this.options.selectedText||this.options.title;return t+=e?'&text="'+encodeURIComponent(e)+'"':"",t+=" "+this.options.url,t+=this.options.authorTwitterHandle?" by @"+encodeURIComponent(this.options.authorTwitterHandle):"",t+=" on @LinkedIn"}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79)],r=function(t,e,n){return n.Behavior.extend({defaults:{scrollEl:window,stickyEl:null,triggerEl:null,stickyOnClass:"slide-in",stickyOffClass:"slide-out",offsetTop:0,wait:250,callback:null},isSticky:!1,onAttach:function(){this.$scrollEl=t(this.getOption("scrollEl")),this.$stickyEl=t(this.getOption("stickyEl")),this.$triggerEl=t(this.getOption("triggerEl")),this.offsetTop=this.getOption("offsetTop"),this.stickyOnClass=this.getOption("stickyOnClass"),this.stickyOffClass=this.getOption("stickyOffClass"),this.wait=this.getOption("wait"),this.callback=this.getOption("callback"),this.getOffsetMethod=this.$scrollEl[0]instanceof window.constructor?"offset":"position",this.setTriggerElBottom(),this.onScroll(),this.bindEvents()},bindEvents:function(){this.$scrollEl.on("scroll.stickyBehavior",e.bind(e.debounce(this.onScroll,this.wait),this)),this.$scrollEl.on("resize.stickyBehavior",e.bind(e.debounce(this.onResize,this.wait),this))},onScroll:function(){this.$scrollEl.scrollTop()>this.triggerElBottom-this.offsetTop?this.addSticky():this.removeSticky(),"function"==typeof this.callback&&this.callback.call(this)},onResize:function(){this.setTriggerElBottom()},addSticky:function(){this.isSticky||(this.$stickyEl.removeClass(this.stickyOffClass).addClass(this.stickyOnClass),this.isSticky=!0)},removeSticky:function(){this.isSticky&&(this.$stickyEl.removeClass(this.stickyOnClass).addClass(this.stickyOffClass),this.isSticky=!1)},setTriggerElBottom:function(){this.triggerElBottom=this.$triggerEl[this.getOffsetMethod]().top+this.$triggerEl.outerHeight()},onDestroy:function(){this.$scrollEl.off(".stickyBehavior")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(107),n(7)],r=function(t,e,n,i){var r=t(i.HEADER_NAV_SELECTOR).length||t(i.HEADER_BANNER_SELECTOR).length;return r=r&&window.globalNav&&window.globalNav.subNav,n.extend({bindEvents:function(){r&&(n.prototype.bindEvents.call(this),this.offsetTop=this.getOption("offsetTop"),this.offsetSubNavDown=this.getOption("offsetSubNavDown"),r.onDidAnimateUp(e.bind(this.onSubNavUp,this)),r.onDidAnimateDown(e.bind(this.onSubNavDown,this)),this.isSubNavCollapsed()?this.onSubNavUp():this.onSubNavDown())},onSubNavUp:function(){this.$stickyEl.css("top",this.offsetTop)},onSubNavDown:function(){this.$stickyEl.css("top",this.offsetSubNavDown)},isSubNavCollapsed:function(){var t=r.getState();return t.collapsed}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;i=[n(5),n(6),n(80),n(79)],r=function(t,e,n,i){var r=27,o="dropdown";return i.Behavior.extend({initialize:function(){this._openDropdown=null,this._activeClass=this.getOption("activeClass"),this.$doc=t(this.getOption("doc"))},defaults:{activeClass:"active",trigger:".js-dropdown-trigger",content:".js-dropdown-content",dropdown:".js-dropdown",focusSelector:".js-a11y-menu",doc:document},ui:function(){return{trigger:this.getOption("trigger")}},events:{"click @ui.trigger":"_evtTriggerClick"},open:function(t){if(t&&!t.is(this._openDropdown)){var e,i=this.getOption("focusSelector"),r=t.find(this.getOption("content"));this.close(this._openDropdown),this._trigger("before:"+o+":open",t),t.addClass(this._activeClass),i&&(e=r.find(i),e.length&&(r=e)),r.attr("tabIndex",-1).focus(),this._openDropdown=t,this._trigger(o+":open",t),this.$doc.on("click."+o,this._evtDocClick.bind(this)),this.$doc.on("keydown."+o,this._evtKeyDown.bind(this)),this.listenTo(n.history,"route",this._evtRoute.bind(this))}},close:function(t,e){e=e||{},t&&(this._trigger("before:"+o+":close",t),t.removeClass(this._activeClass),this._openDropdown=null,e.focusOnTrigger&&t.find(this.getOption("trigger")).focus(),this._trigger(o+":close",t),this.$doc.off(o),this.stopListening(n.history))},toggle:function(t){this.isOpen(t)?this.close(this._openDropdown):this.open(t)},isOpen:function(t){return t.is(this._openDropdown)},_trigger:function(t,e){this.view.triggerMethod(t,e),e.trigger(t)},_evtRoute:function(){this.close(this._openDropdown)},_evtDocClick:function(e){var n=t(e.target),i=this._openDropdown;!i||i.is(n)||i.has(n).length||this.close(this._openDropdown)},_evtKeyDown:function(t){var e=t.which;switch(e){case r:this.close(this._openDropdown,{focusOnTrigger:!0})}},_evtTriggerClick:function(e){var n=t(e.currentTarget),i=n.closest(this.getOption("dropdown"));this.toggle(i)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(74),n(7)],r=function(t,e,n,i){var r="saved",o=n.services;return e.Behavior.extend({defaults:{model:null},initialize:function(){this.model=this.getOption("model"),this.urn=this.model.get("urn"),this.listenTo(o,o.BOOKMARK_BEFORE,this.addLoading,this),this.listenTo(o,o.BOOKMARK_AFTER,this.removeLoading,this)},ui:{buttonBookmark:".button-bookmark"},events:{"click @ui.buttonBookmark":"onClick"},modelEvents:{"change:saved":"onBookmarkChanged"},onClick:function(t){t.metaKey||this.isLoading||(t.preventDefault(),this.model[this.model.get(r)?"unbookmark":"bookmark"]())},onBookmarkChanged:function(){this.ui.buttonBookmark.toggleClass(i.CLASSES.ACTIVE,this.model.get(r))},isLoading:!1,addLoading:function(t){this.urn===t&&(this.isLoading=!0)},removeLoading:function(t){this.urn===t&&(this.isLoading=!1)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(74),n(7),n(112)],r=function(t,e,n,i,r,o){var s="isFollowing",a=i.services,l=i.app,c=i.guest;return n.Behavior.extend(t.extend({},o,{defaults:{model:null,buttonFollow:".button-follow"},initialize:function(){this.model=this.getOption("model"),this.model&&(this.urn=this.model.get("urn"),this.followType=this.getOption("followType"),this.trackFollow=this.trackFollow.bind(this),this.currentMember=l.request(l.CURRENT_MEMBER),this.bindEvents())},bindEvents:function(){this.listenTo(a,a.FOLLOW_BEFORE,this.addLoading,this),this.listenTo(a,a.FOLLOW_AFTER,this.removeLoading,this),this.listenTo(this.model,r.TRIGGERS.CHANGE_FOLLOW,this.onIsFollowingChange,this)},ui:function(){return{buttonFollow:this.getOption("buttonFollow")}},events:{"click @ui.buttonFollow":"onClick"},onClick:function(t){t.metaKey||this.isLoading||(t.preventDefault(),this.currentMember.get("isGuest")?c.trigger(c.GATED_ACTION,r.GUEST_EVENTS.FOLLOW,this.urn):this.model[this.model.get(s)?"unfollow":"follow"]().done(this.trackFollow))},onIsFollowingChange:function(){this.ui.buttonFollow.toggleClass(r.CLASSES.ACTIVE,this.model.get(s))},isLoading:!1,disableButton:function(t){this.urn===t&&(this.isLoading=!0)},enableButton:function(t){this.urn===t&&(this.isLoading=!1)}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(73),n(1),n(113)],r=function(t,e,n,i){var r=e.ACTION_TYPES.FOLLOW_AUTHOR,o=e.ACTION_TYPES.UNFOLLOW_AUTHOR,s=e.ACTION_TYPES.FOLLOW_CHANNEL,a=e.ACTION_TYPES.UNFOLLOW_CHANNEL,l=e.ACTION_TYPES.FOLLOW_COMPANY,c=e.ACTION_TYPES.UNFOLLOW_COMPANY,u=(e.FOLLOW_TYPES.AUTHOR,e.FOLLOW_TYPES.CHANNEL,e.FOLLOW_TYPES.COMPANY,"FOLLOW"),h="UNFOLLOW",d="isFollowing",f=e.METHOD_TRIGGERS.TRACK_ACTION,p=e.METHOD_TRIGGERS.TRACK_CHILD,g={AUTHOR:{FOLLOW:r,UNFOLLOW:o},CHANNEL:{FOLLOW:s,UNFOLLOW:a},COMPANY:{FOLLOW:l,UNFOLLOW:c}};return t.extend(i,{followType:null,trackFollow:function(){var t,n,i,r=this.model;return this.followType?(t=g[this.followType].FOLLOW,n=g[this.followType].UNFOLLOW,i=this.trackAction(),i.actionCategory=r.get(d)?u:h,i.actionType=i.actionCategory===e.ACTION_CATEGORIES.FOLLOW?t:n,i.controlUrn=e.CONTROL_URN.FOLLOW_BUTTON,i.requestId="",void(this.view&&(this.view.triggerMethod(f,i),this.view.triggerMethod(p,i)))):void console.warn("No followType provided, nothing will be tracked!")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(73),n(1),n(4)],r=function(t,e,n){var i=t.URN;return{trackAction:function(){if(!this.model)return void console.warn("Action Tracking Mixin requires a model to get objectUrn and trackign id for action event");var t={trackablePulseObject:{objectUrn:this.model.get(i),trackingId:this.model.get("trackingId")||e.generateTrackingId()},time:n.getNow()};return t}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(74),n(104),n(4),n(115),n(116)],r=function(t,e,n,i,r,o,s,a){var l=new s;return n.Behavior.extend({events:{"click .delete-item":"confirmDelete"},confirmDelete:function(t){t.preventDefault();var e,n;e=new a({contentKey:"i18n_are_you_sure_delete",i18nTemplate:"templates/walter/shared/strings/globalStrings"}),n={view:e,titleKey:"i18n_delete_your_post",i18nTemplate:"templates/walter/shared/strings/globalStrings",modalClass:"article-delete",showFooter:!0},i.modal.trigger(i.modal.SHOW,n),this.addEventListeners()},onDeleteModalConfirm:function(){var t=this.view.model.get("pubArticleUrn"),e=this.view.model.get("urn"),n=this.view.model.collection;l.delete(t,e).done(function(){this.view.model.destroy().then(function(){n.trigger("sync")}),i.modal.trigger(i.modal.CLOSE)}.bind(this))},onDeleteModalCancel:function(){i.modal.trigger(i.modal.CLOSE)},addEventListeners:function(){this.listenTo(i.modal,i.modal.CONFIRM,this.onDeleteModalConfirm,this),this.listenTo(i.modal,i.modal.CANCEL,this.onDeleteModalCancel,this),this.listenTo(i.modal,i.modal.CLOSE,this.removeEventListeners,this)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7)],r=function(t,e,n,i){var r=e.v1.published.delete,o=i.REQUEST_METHODS.DELETE,s=n.services;return t.extend({options:{radioChannel:s,radioBeforeEvent:s.DELETE_ARTICLE_BEFORE,radioAfterEvent:s.DELETE_ARTICLE_AFTER},delete:function(t,e){var n=this.urnToData(t);return this.isPublished=e,this.makeAjaxRequest({method:o,url:r,data:n})},afterAjaxRequest:function(t){var e={urn:t,isPublished:this.isPublished};this.radioAfterEvent&&t&&this.radioChannel.trigger(this.radioAfterEvent,e)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79)],r=function(t,e,n){return n.ItemView.extend({viewOptions:["contentKey","i18nTemplate"],template:"templates/walter/shared/simpleTextModalBody",tagName:"p",initialize:function(t){this.mergeOptions(t,this.viewOptions)},templateHelpers:function(){return e.extend({contentKey:this.getOption("contentKey"),i18nTemplate:this.getOption("i18nTemplate")})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79)],r=function(t,e){function n(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(t=document.selection.createRange().text),t.trim()}function i(){var t,e,n=document.selection,i=0,r=0,o=0;return n?"Control"!==n.type&&(t=n.createRange(),i=t.boundingLeft,r=t.boundingTop,o=t.boundingHeight):window.getSelection&&(n=window.getSelection(),n.rangeCount&&(t=n.getRangeAt(0).cloneRange(),t.getBoundingClientRect&&(e=t.getBoundingClientRect(),i=e.left,r=e.top,o=e.height))),{x:i,y:r,height:o}}return e.Behavior.extend({selectedText:"",ui:function(){return{textContainer:this.getOption("selector")}},events:{"mouseup @ui.textContainer":"onSelectText"},defaults:{selector:"document"},onSelectText:function(t){var e,r,o=this;t.stopPropagation(),setTimeout(function(){e=n(),r=i(),e?(o.selectedText=e,o.view.triggerMethod("selected:text",t,e,r)):o.view.triggerMethod("deselected:text",t)},0)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(119),n(1),n(7),n(4)],r=function(t,e,n,i,r,o,s){return n.Behavior.extend({onAttach:function(){var n=this.view,a=n.model,l=t.clone(a.get("authorModel").attributes);this.bowtieInstance=new i.default({pageKey:r.getCurrentPageKey()},{urn:a.get("urn"),metadata:{authorUrn:l.urn,publishedTime:a.get("publishedDate"),influencer:l.isInfluencer}},{appId:null},{appId:o.APP_ID,callback:function(t){t.eventBody.trackablePulseObject=n.trackablePulseObject||null,t.eventBody.header={pageInstance:r.getCurrentPageInstance(),time:s.getNow()},e.ajax({type:"POST",url:o.URL_SNIPPETS.MOB_TRACKING,data:JSON.stringify(t),contentType:"application/json"})}}),this.bowtieInstance.startSession()},onDestroy:function(){this.bowtieInstance&&(this.bowtieInstance.endSession(),this.bowtieInstance.destroy())}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,o;!function(n,s){r=[e],i=s,o="function"==typeof i?i.apply(e,r):i,!(void 0!==o&&(t.exports=o))}(this,function(t){"use strict";function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(){function t(){return(Math.random().toString(16)+"000000000").substr(2,8)}for(var e=t()+t()+t()+t(),n=[],i=0;i<e.length;i+=2)n.push(parseInt(e.charAt(i)+e.charAt(i+1),16));return n}function i(){return(new Date).getTime()}function r(){var t,r,f,p,g=arguments.length<=0||void 0===arguments[0]?{pageKey:void 0}:arguments[0],v=arguments.length<=1||void 0===arguments[1]?{urn:void 0}:arguments[1],m=arguments.length<=2||void 0===arguments[2]?{appId:void 0,callback:function(t){}}:arguments[2],y=arguments.length<=3||void 0===arguments[3]?{appId:void 0,callback:function(t){}}:arguments[3],E=this,w=arguments.length<=4||void 0===arguments[4]?function(){return!0}:arguments[4],_=function(t,e){return{eventInfo:{eventName:o,appId:t.appId},eventBody:{requestHeader:E.requestHeader,articleTrackingId:E.sessionId,articleUrn:E.article.urn,articleMetadata:E.article.metadata,dwellTime:e}}}.bind(this),T=function(t,e){C(e),p=setInterval(function(){var t=i();S(t),C(t)},t||l)},b=function(t){p&&(clearInterval(p),S(t),p=null)},C=function(t){r=t},S=function(t){var e=t-r;void 0!==r&&e&&(E.fireEvent(s.BEACON,e),r=void 0)}.bind(this),A=function(t){f=t},O=function(t){void 0!==f&&(E.fireEvent(s.SINGLE,t-f),f=void 0)}.bind(this),R=function(){"function"==typeof w&&w()&&E.startSession()}.bind(this),x=function(t){document[a]?E.endSession():R()}.bind(this),I=R;if(!g.pageKey)throw new Error("DwellTimeTracker: Must specify a pageKey");if(!v.urn)throw new Error("DwellTimeTracker: Must specify an article urn");if(!m.appId&&!y.appId)throw new Error("DwellTimeTracker: Must specify an appId for beacon or single (or both)");Object.defineProperties(this,{article:{value:v},requestHeader:{value:g},options:{value:(t={},e(t,s.BEACON,m),e(t,s.SINGLE,y),t)}}),this.fireEvent=function(t,e){var n,i,r=E.options[t];if(!r.appId)throw new Error("DwellTimeTracker: This instance does not fire events for "+t);n=_.call(E,r,e),i=r.callback,"function"==typeof i&&i(n)},this.endSession=function(){var t=i();b(t),O(t),E.sessionId=null}.bind(this),this.startSession=function(){var t=E.options,e=t[s.BEACON],r=i();E.sessionId&&E.endSession(),E.sessionId=n(),e.appId&&T(e.interval,r),t[s.SINGLE].appId&&A(r)}.bind(this),this.destroy=function(){E.endSession(),document.removeEventListener(d,x),window.removeEventListener(c,E.endSession),window.removeEventListener(u,I),window.removeEventListener(h,E.endSession)}.bind(this),document.addEventListener(d,x),window.addEventListener(c,this.endSession),window.addEventListener(u,I),window.addEventListener(h,this.endSession)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o="ArticleReadEvent";t.ARTICLE_READ_EVENT=o;var s={BEACON:"BEACON",SINGLE:"SINGLE"};t.EVENT_NATURE=s;var a,l=3e3,c="blur",u="focus",h="beforeunload",d="visibilitychange";!function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return void(a="hidden");for(var e=0;e<t.length;e++){var n=t[e],i=n+"Hidden";if(i in document)return a=i,void(d=t[e]+d)}}()})},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(4)],r=function(t,e,n,i){var r="scroll.lazyLoadItems resize.lazyLoadItems";return n.Behavior.extend({defaults:{dataSourceAttribute:"data-li-loaded",threshold:0,scrollableElement:i.get$Window(),throttle:0},onAttach:function(){this.start()},onRefreshLazyLoadViews:function(){this._setUnloadedViews()},start:function(){var n=this.getOption("throttle"),i=e.proxy(t.throttle(this._filterViews,n),this);this.unloadedViews=[],this._setUnloadedViews(),this._setScrollEvent(i),i()},_setUnloadedViews:function(){var t=this.getOption("dataSourceAttribute");this.view.children.each(function(e){e.$el[0].hasAttribute(t)&&this.unloadedViews.push(e)}.bind(this))},_filterViews:function(){var n,i=this.getOption("threshold"),r=this.getOption("scrollableElement"),o=e.proxy(this._triggerLoadEvent,this);n=t.filter(this.unloadedViews,function(t){var e=t.$el,n=e.is(":hidden"),o=r.scrollTop(),s=o+r.height(),a=e.offset().top,l=a+e.height();return l>=o-i&&a<=s+i&&!n}),t.each(n,o)},_triggerLoadEvent:function(t){t.triggerMethod("lazy:load"),this._removeFromUnloadedCollection(t)},_removeFromUnloadedCollection:function(e){t.each(this.unloadedViews,function(t,n){e===t&&this.unloadedViews.splice(n,1)},this),e.$el.removeAttr(this.getOption("dataSourceAttribute"))},_setScrollEvent:function(t){this._removeScrollEvent(),this._addScrollEvent(t)},_addScrollEvent:function(t){var e=this.getOption("scrollableElement");e.on(r,t)},_removeScrollEvent:function(){var t=this.getOption("scrollableElement");t.off(r)},onDestroy:function(){this._removeScrollEvent()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(79),n(7)],r=function(t,e,n,i,r){return i.Behavior.extend({ui:function(){return{tooltipTrigger:this.getOption("selector"),tooltip:r.TOOLTIP}},events:{"mouseenter @ui.tooltipTrigger":"onMouseEnter","mouseleave @ui.tooltipTrigger":"onMouseLeave","click @ui.tooltipTrigger":"onClick"},onMouseEnter:function(e){var n=t(e.target);n.is("button")||(n=n.parent("button")),this.$activeTooltip&&this.$activeTooltip!==n&&this.ui.tooltip.removeClass(r.CLASSES.ACTIVE),this.$activeTooltip=n,this.toggleTooltip(!0)},onMouseLeave:function(t){this.toggleTooltip(!1)},toggleTooltip:function(t){this.$activeTooltip.next(r.TOOLTIP).toggleClass(r.CLASSES.ACTIVE,t)},onClick:function(t){this.ui.tooltipTrigger.hasClass(r.CLASSES.DROPDOWN_TRIGGER)&&this.ui.tooltip.removeClass(r.CLASSES.ACTIVE)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(1),n(7),n(73),n(4)],r=function(t,e,n,i,r,o,s){function a(t){var e=t.actionCategory,n=t.actionType,i=t.controlUrn;
return function(t){this.handleEvent(t,e,n,i)}}var l=o.METHOD_TRIGGERS.TRACK_ACTION,c=o.METHOD_TRIGGERS.TRACK_CHILD,u=o.URN,h=o.TRACKING_ID,d=o.CLIENT_TRACKING_ID;return n.Behavior.extend({defaults:{triggerView:!0,triggerParent:!1,objectUrnAttr:u},initialize:function(e){if(t.isUndefined(e))throw new Error("ActionTrackingBehavior must have options");if(!t.isUndefined(e.events)&&t.isUndefined(e.selectors)||t.isUndefined(e.events)&&!t.isUndefined(e.selectors))throw new Error("ActionTrackingBehavior must have selectors/events if events/selectors are provided");if(t.isUndefined(e.model)&&!t.isUndefined(e.modelEvents))throw new Error("ActionTrackingBehavior must have a model if modelEvents are provided");this.triggerEvents=e.events?e.events.split(","):[],this.selectors=e.selectors||[],this.model=e.model||this.view.model,this.modelEventOptions=e.modelEventOptions||[],this.eventDecorator=e.eventDecorator||null,this.selectors=t.isArray(this.selectors)?this.selectors:[this.selectors],this.view.onChildviewTrackChild=function(t,e){this.view.triggerMethod(l,e)}.bind(this)},events:function(){for(var t={},e=0,n=this.triggerEvents.length;e<n;e++)for(var i=0,r=this.selectors.length;i<r;i++)t[this.triggerEvents[e]+" "+this.selectors[i].value]=a.call(this,this.selectors[i]);return t},modelEvents:function(){for(var t={},e=0,n=this.modelEventOptions.length;e<n;e++)t[this.modelEventOptions[e].eventName]=a.call(this,this.modelEventOptions[e]);return t},getTrackablePulseObject:function(){var t=this.model.get(this.getOption("objectUrnAttr")),e=this.model.get(h)||this.model.get(d)||i.generateTrackingId();return{objectUrn:t,trackingId:e}},handleEvent:function(e,n,i,r){t.isFunction(n)&&(n=n.call(this,this.model)),t.isFunction(i)&&(i=i.call(this,this.model));var o={trackablePulseObject:this.getTrackablePulseObject(),time:s.getNow(),actionType:i,actionCategory:n,controlUrn:r};t.isFunction(this.eventDecorator)&&(o=this.eventDecorator.call(this,o)),this.getOption("triggerParent")?this.view.triggerMethod(c,o):this.getOption("triggerView")?this.view.triggerMethod(l,o):this.triggerMethod(l,o)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(124)],r=function(t,e,n,i){var r="track:impression",o="impression-complete";return n.Behavior.extend({defaults:{elSelector:"",impressionTime:300,impressionPercentage:50,refreshThrottle:20,fullRefresh:!1,viewportOffsetTop:0,viewportOffsetRight:0,viewportOffsetBottom:0,viewportOffsetLeft:0,spanielIdSelector:"impr-trk-id",trackingId:"",trackingAttr:"tracking",windowObject:window},initialize:function(){this.spaniel=i},onAttach:function(){this.setup()},configure:function(){i.configure({IMPRESSION_MILLISECONDS:this.getOption("impressionTime"),IMPRESSION_PERCENTAGE:this.getOption("impressionPercentage"),REFRESH_THROTTLE_MILLISECONDS:this.getOption("refreshThrottle")})},setup:function(){this.configure(),i.setViewportOffset({top:this.getOption("viewportOffsetTop"),right:this.getOption("viewportOffsetRight"),bottom:this.getOption("viewportOffsetBottom"),left:this.getOption("viewportOffsetLeft")}),this.registerViews(),this.getOption("fullRefresh")&&i.fullRefresh(),i.registerHandler(this._handleImpressionEvent.bind(this)),this._attachViewportChangeHandler()},prepareItem:function(e){e=e||this.view;var n=this.getOption("elSelector"),i=n?e.$el.find(n):e.$el,r=this.getItemId(i);i&&!r&&(this.setItemId(i,t.uniqueId("spaniel")),e.on("before:destroy",this.removeItem.bind(this,i)))},registerItem:function(t){t=t||this.view;var e=this.getOption("elSelector"),n=t.cid,r=e?t.$el.find(e):t.$el,o=t.model&&t.model.get(this.getOption("trackingAttr"))||this.getOption("trackingId");if(r.length&&o){var s={width:r.outerWidth(),height:r.outerHeight()},a=this.getItemId(r);i.register(a,{viewId:n,trackingId:o,size:s,gridPosition:{row:r.index(),column:0}},function(){return r[0].getBoundingClientRect()})}},registerViews:function(t){t=t||this.view;var e=t.children;e?(t.on("add:child",function(t){this.registerViews(t)}.bind(this)),e.forEach(function(t,e){this.prepareItem(t),this.registerItem(t)}.bind(this))):(this.prepareItem(t),this.registerItem(t))},getItemId:function(t){return t?t.data(this.getOption("spanielIdSelector")):null},setItemId:function(t,e){t&&t.data(this.getOption("spanielIdSelector"),e)},removeItem:function(t){var e=this.getItemId(t);e&&i.remove(e)},_attachViewportChangeHandler:function(){var n=e(this.getOption("windowObject"));n.scroll(t.debounce(i.refresh.bind(i),200)),n.resize(t.debounce(i.refresh.bind(i),200)),n.unload(function(){i.setAllHidden()}.bind(this))},_handleImpressionEvent:function(t,e,n){t=t||{};var i=this.view.children&&t.viewId?this.view.children.findByCid(t.viewId):this.view,s=i&&i.cid;t.viewId===s&&e===o&&i.triggerMethod(r,{duration:n.duration,visibleTime:n.visibleTime,size:t.size,gridPosition:t.gridPosition,trackingId:t.trackingId})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i,r;i=[e,t,n(1),n(2),n(3)],r=function(t,e,n,i,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var s=o(n),a=o(i);(0,r.polyfillBind)(Function);var l={IMPRESSION_MILLISECONDS:1e3,IMPRESSION_PERCENTAGE:50,REFRESH_THROTTLE_MILLISECONDS:20},c={impressed:"impressed",visible:"visible",exposed:"exposed",impressionComplete:"impression-complete",windowClose:"window-close"},u={},h={init:function(){var t=u.REFRESH_THROTTLE_MILLISECONDS;this.refresh=t>0?(0,r.throttle)(this._refresh,t,!0).bind(this):this._refresh;for(var e=["register","refresh","fullRefresh","registerHandler","onWindowClose","setAllHidden","setViewportOffset"],n=e.length,i=function(t,e){t[e]=t[e].bind(t)},o=0;o<n;o++)i(this,e[o]);return s.default.on("move",this.refresh),s.default.on("resize",this.fullRefresh),s.default.on("destroy",this.onWindowClose),s.default.on("hide",this.setAllHidden),s.default.on("show",this.refresh),this},configure:function(t){"object"!=typeof t&&(t={}),u=(0,r.defaults)(t,l)},fullRefresh:function(){this.refresh({full:!0})},setAllHidden:function(){a.default.forEachVisible(this.handleRecordHidden.bind(this))},removeAll:function(){this.setAllHidden(),a.default.removeAll()},onWindowClose:function(){this.setAllHidden(),this.fireHandlers(null,c.windowClose),a.default.removeAll()},setViewportOffset:function(t){t&&(this._offset={top:t.top||0,bottom:t.bottom||0,left:t.left||0,right:t.right||0})},update:function(t,e){a.default.update(t,{dimensions:e})},register:function(t,e,n,i){var o=this;i=i||{};var l=this.generateGetDimensions(n),u={id:t,segments:[],dimensions:null,context:e,_registeredAt:(new Date).getTime(),_visibleAt:null,state:{},_clear:function(){},_getDimensions:l};u.state[c.impressed]=u.state[c.exposed]=u.state[c.visible]=u.state[c.impressionComplete]=!1,(0,r.defaults)(u,i),a.default.add(t,u),s.default.queue(function(){o.inspect(u,!0)})},registerHandler:function(t){this._handlers.push(t)},_offset:{top:0,bottom:0,left:0,right:0},_impressionHandlers:[],_handlers:[],_refresh:function(t){var e=!(!t||!t.full)&&t.full;a.default.forEach(function(t){this.inspect(t,e)}.bind(this))},fireHandlers:function(t,e,n){this._handlers.forEach(function(i){i.call(this,t,e,n)})},fireRecordHandlers:function(t,e){if(!t.state[e]&&(t.state[e]=!0,this._handlers.length>0)){var n=t.context,i={};"function"==typeof n&&(n=n()),t.state[c.visible]&&(i.duration=(new Date).getTime()-t._visibleAt,i.visibleTime=t._visibleAt),this.fireHandlers(n,e,i)}},buildImpressionCallback:function(t){var e=this;return function(){e.fireRecordHandlers(t,c.impressed)}},buildClearFunction:function(t){return function(){clearTimeout(t)}},setRecordHidden:function(t){t._clear(),a.default.setHidden(t.id),t.state[c.visible]=t.state[c.impressed]=!1},handleRecordHidden:function(t,e){t.state[c.impressed]&&this.fireRecordHandlers(t,c.impressionComplete),setTimeout(function(){this.setRecordHidden.call(this,t),"function"==typeof e&&e.call(this)}.bind(this),0)},setRecordVisible:function(t){var e=this;t.state[c.impressionComplete]=!1,a.default.setVisible(t.id),t._visibleAt=(new Date).getTime(),this.fireRecordHandlers(t,c.visible),t.state[c.impressed]||!function(){var n=e.buildImpressionCallback(t),i=setTimeout(function(){s.default.queue(n)},u.IMPRESSION_MILLISECONDS);t._timeout=i,t._clear=e.buildClearFunction(i)}()},generateGetDimensions:function(t){return function(){return s.default.mapBoundingRectToAbsolute(t())}},updateRecord:function(t,e){t.dimensions=t._getDimensions()},unregister:function(t){var e=a.default.get(t);e&&this.handleRecordHidden(e,function(){e._clear(),a.default.remove(t)})},remove:function(t){this.unregister(t)},inspect:function(t,e){var n=t.state[c.exposed];e&&this.updateRecord(t);var i=this.getViewportStats(t);i.exposed?i.exposed&&!n&&this.fireRecordHandlers(t,c.exposed):t.state[c.exposed]=!1,i.visible?t.state[c.visible]||this.setRecordVisible(t):this.handleRecordHidden(t)},amountHidden:function(t){var e=s.default.getWindowRect(this._offset),n=t.dimensions;if(n.top+n.height<=e.top||n.top>=e.top+e.height||n.left>=e.left+e.width||n.left+n.width<=e.left||0===n.width&&0===n.height)return null;var i=Math.max(e.top-n.top,0),r=Math.max(n.height+n.top-(e.top+e.height),0),o=Math.max(e.left-n.left,0),a=Math.max(n.width+n.left-(e.left+e.width),0);return{percentHiddenTop:i/n.height*100,percentHiddenBottom:r/n.height*100,percentHiddenLeft:o/n.width*100,percentHiddenRight:a/n.width*100,areaHidden:i*n.width+r*n.width+o*n.height+a*n.height-(i*a+i*o+r*a+r*o)}},percentCoveringViewport:function(t,e){var n=e.dimensions,i=s.default.getWindowRect(this._offset),r=(n.width*n.height-t.areaHidden)/(i.width*i.height)*100;return r},percentInViewport:function(t,e){var n,i=Math.max(100-t.percentHiddenBottom-t.percentHiddenTop,0),r=Math.max(100-t.percentHiddenLeft-t.percentHiddenRight,0),o=e.segments,s=0,a=o.length;if(a>0){for(n=o[s];n&&(n.percentHiddenTop+t.percentHiddenBottom>100||t.percentHiddenTop+n.percentHiddenBottom>100)&&s<a;n=o[s])s++;s<a&&(n.percentHiddenTop=Math.min(n.percentHiddenTop,t.percentHiddenTop),n.percentHiddenBottom=Math.min(n.percentHiddenBottom,t.percentHiddenBottom))}else o.push({percentHiddenTop:t.percentHiddenTop,percentHiddenBottom:t.percentHiddenBottom});for(var l=0,c=0;c<o.length;c++)l+=Math.max(100-o[c].percentHiddenBottom-o[c].percentHiddenTop,0);var u=Math.max(i/100*(r/100)*100,l);return u},getViewportStats:function(t){var e=t.IMPRESSION_PERCENTAGE||u.IMPRESSION_PERCENTAGE,n=this.amountHidden(t);if(!n)return{visible:!1,exposed:!1};var i=this.percentInViewport(n,t),r=this.percentCoveringViewport(n,t);return{visible:i>=e||r>=e,exposed:i>0}}};e.exports=h.init()}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e){"use strict";function n(t){return function(){var e=o[t],n=e.length,i=0;for(i=0;i<n;i++)e[i].call(null)}}function i(){for(var t=s.pop();t;)t(),t=s.pop()}function r(t){var e=function e(){var n=h(),r=d(),o=window.innerWidth,s=window.innerHeight;a===n&&l===r||(a=n,l=r,t.move.call(null)),u===s&&c===o||(u=s,c=o,t.resize.call(null)),i(),p(e)};p(e)}Object.defineProperty(e,"__esModule",{value:!0});var o={resize:[],move:[],destroy:[],hide:[],show:[]},s=[],a=0,l=0,c=0,u=0,h=void 0,d=void 0,f="undefined"!=typeof window&&window&&"undefined"!=typeof document&&document,p=f&&window.requestAnimationFrame;if(f){var g="undefined"!=typeof document.scrollingElement;h=g?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},d=g?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX},c=window.innerWidth,u=window.innerHeight;var v=n("move"),m=n("resize");p?r({move:v,resize:m}):console.error("Venana requires requestAnimationFrame()"),window.addEventListener("unload",n("destroy")),document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState?n("show")():n("hide")()})}e.default={on:function(t,e){var n=o[t];if(!n)throw'Ventana does not understand the event "'+t+'"';n.push(e)},off:function(t,e){},queue:function(t){s.push(t)},mapBoundingRectToAbsolute:function(t){var e={};return e.top=t.top+a,e.left=t.left+l,e.width=t.width,e.height=t.height,e},getWindowRect:function(t){return t=t||{top:0,left:0,right:0,bottom:0},{top:a+t.top,left:l+t.left,height:u-t.top-t.bottom,width:c-t.left-t.right}}},t.exports=e.default},function(t,e,n){var i,r;i=[e,t],r=function(t,e){"use strict";var n=function(t){var e=function(){return t()};return e},i=n(function(){var t={};return{get:function(e){return t[e]},set:function(e,n){t[e]=n},forEach:function(e){for(var n in t)e(t[n])},remove:function(e){delete t[e]},removeAll:function(){t={}},all:function(){return t}}}),r={_all:new i,_visible:new i,forEachVisible:function(t){this._visible.forEach(t)},forEach:function(t){this._all.forEach(t)},get:function(t){return this._all.get(t)},add:function(t,e){this.get(t)?this.update(t,e):this._all.set(t,e)},remove:function(t){this._all.remove(t),this._visible.remove(t)},removeAll:function(){this._all.removeAll(),this._visible.removeAll()},update:function(t,e){var n=this.get(t);for(var i in e)n[i]=e[i]},setVisible:function(t){var e=this.get(t);this._visible.set(t,e)},setHidden:function(t){this._visible.remove(t)}};e.exports=r}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;i=[e],r=function(t){"use strict";function e(t){t.prototype.bind||(t.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r})}function n(t){if("object"!=typeof t)return t;for(var e=1,n=arguments.length;e<n;e++){var i=arguments[e];for(var r in i)void 0===t[r]&&(t[r]=i[r])}return t}function i(t,e,n){var i,r,o,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:Date.now(),s=null,o=t.apply(i,r),s||(i=r=null)};return function(){var c=Date.now();a||n.leading!==!1||(a=c);var u=e-(c-a);return i=this,r=arguments,u<=0||u>e?(clearTimeout(s),s=null,a=c,o=t.apply(i,r),s||(i=r=null)):s||n.trailing===!1||(s=setTimeout(l,u)),o}}Object.defineProperty(t,"__esModule",{value:!0}),t.polyfillBind=e,t.defaults=n,t.throttle=i}.apply(e,i),!(void 0!==r&&(t.exports=r))}])})},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(74),n(83),n(7),n(93)],r=function(t,e,n,i,r,o){function s(e){var n=t(e.currentTarget),i=n.data(d.TRACK);u.trigger(u.TRACK,i)}function a(e){e.metaKey||(e.preventDefault(),i.router.navigate(t(e.currentTarget).data(d.SPA_HREF),{trigger:!0}))}function l(e){e.which===o.ENTER&&(e.preventDefault(),i.router.isKeyboardNavigation=!0,i.router.navigate(t(e.currentTarget).data(d.SPA_HREF),{trigger:!0}))}var c=t(document),u=n.tracking,h=r.EVENTS,d=r.DATA;return{init:function(){c.on(h.CLICK,"[data-"+d.TRACK+"]",s),c.on(h.KEYDOWN,"[data-"+d.SPA_HREF+"]",l),c.on(h.CLICK,"[data-"+d.SPA_HREF+"]",a)}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(6),n(127),n(74),n(7)],r=function(t,e,n,i,r,o){return e.AppRouter.extend({controller:new i,appRoutes:{"":"feed","feed/:contentPool(/)(:id)":"pivots","article/:permalink":"article",":permalink":"article"},isKeyboardNavigation:!1,onBeforeRoute:function(t,e){r.router.trigger(r.router.BEFORE,e)},onAfterRoute:function(t,e){r.router.trigger(r.router.AFTER,e)},getAnchorPageKeyHash:function(t){var e=o.APP_ANCHOR_PAGES,n=o.APP_PAGE_KEYS;for(var i in e)if(e[i].indexOf(t)!==-1)return n[i];return""},onRoute:function(){var e;this.isKeyboardNavigation&&r.router.on(r.router.PAGE_RENDERED,function(){e=t(t("[data-li-main-content]")[0]),e.focus(),this.isKeyboardNavigation=!1,r.router.off(r.router.PAGE_RENDERED)},this)},getMatchedPageKeysFromAnchorKeyHash:function(t,e){var n=this.getAnchorPageKeyHash(t),i="";if(!e.length)return i;for(;e.length;)i+=n[e[0]]||"",e.shift();return i},getPageKeyForRoute:function(t,e){var i=this.getAnchorPageKeyHash(t),r=i?i.anchor:"",o=r?i[t]:"";return!o&&e&&(o=n.intersection(n.keys(i),e),o=o.length?this.getMatchedPageKeysFromAnchorKeyHash(t,o):""),{anchorKey:r,fullKey:r+o}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(80),n(83),n(7),n(178),n(208),n(128),n(201),n(152),n(206),n(207),n(74)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f){function p(e,n,i){return t.extend(n,u.processQueryParams(i)),m instanceof e&&e!==s?void m.triggerMethod("route:change",n):(m&&m.triggerMethod("destroy"),y?y=!1:E.showLoading(),void(m=new e(n)))}function g(t,e){var n={state:e};p(l,n,t)}function v(){var t=e(o.SSR_WRAPPER_SELECTOR);return y=t&&"undefined"!=typeof t.data(o.SSR_DATA_ATTR),y&&t.removeData(o.SSR_DATA_ATTR).removeAttr("data-"+o.SSR_DATA_ATTR),y}var m,y,E=r.getRegion("content");return n.Object.extend({article:function(t,e){var n={permalink:t,isSSR:v()};p(s,n,e)},pivots:function(t,e,n){var i={contentPool:t,id:e};p(c,i,n)},feed:t.partial(g,t,o.FEED_STATES.HOME)})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(5),n(6),n(83),n(88),n(74),n(134),n(161),n(164),n(169),n(149),n(129),n(136),n(173),n(174),n(176),n(177),n(7),n(96)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p,g,v,m,y){var E=o.app.request(o.app.CURRENT_MEMBER),w=i.getRegion("content"),_=i.getRegion("banner"),T={},b=!1,C=o.page,S=o.lixes;return T[m.FEED_STATES.DRAFTS]=l,T[m.FEED_STATES.SAVED]=a,T[m.FEED_STATES.PUBLISHED]=c,T[m.FEED_STATES.HOME]=s,t.Object.extend({controllerOptions:["state"],initialize:function(t){this.mergeOptions(t,this.controllerOptions),this.initializeModels(),this.initializeViews(this.state),this.renderViews(),this.childControllers={},this.initializeChildController(this.state),o.cache.on(o.cache.CLEAR_BOOKMARKS,function(){b=!0},this),this.setPageTitle(this.state)},initializeChildController:function(t){var n,i=m.FEED_STATES.HOME,r=m.FEED_STATES.SAVED;!b||t!==i&&t!==r||(delete this.childControllers[i],delete this.childControllers[r],b=!1),this.childControllers[t]?this.childControllers[t].initializeViews():this.childControllers[t]=new T[t],n=this.childControllers[t].collection.length?e.Deferred().resolve():this.childControllers[t].fetchCollection(),n.done(function(){this.showStreamView(this.childControllers[t].streamView),o.router.trigger(o.router.PAGE_RENDERED)}.bind(this))},initializeModels:function(){this.authorModel=E},initializeViews:function(t){this.bannerView=new g({model:this.authorModel||null}),this.feedLayoutView=new h,this.feedActionsHeaderView=new v({model:this.authorModel,state:t,templateHelpers:{removeFeed:S.request(S.IS_ENABLED,m.LIX_KEYS.REMOVE_FEED),removeBookmark:S.request(S.IS_ENABLED,m.LIX_KEYS.REMOVE_BOOKMARK)}}),this.headerView=new f({model:this.authorModel,templateHelpers:{removeAuthorPages:S.request(S.IS_ENABLED,m.LIX_KEYS.REMOVE_AUTHOR_PAGES)}}),this.navView=new p({model:this.authorModel,state:t,templateHelpers:{removeFeed:S.request(S.IS_ENABLED,m.LIX_KEYS.REMOVE_FEED),removeBookmark:S.request(S.IS_ENABLED,m.LIX_KEYS.REMOVE_BOOKMARK)}}),this.feedLayoutView.setRegionViews({header:this.headerView,nav:this.navView,actionsHeader:this.feedActionsHeaderView})},showStreamView:function(t){this.feedLayoutView.getRegion("stream").show(t,{preventDestroy:!0})},renderViews:function(){_.show(this.bannerView),w.show(this.feedLayoutView)},onDestroy:function(){this.feedLayoutView.destroy(),n.each(this.childControllers,function(t){this.stopListening(t),t.destroy()},this),_.empty()},onRouteChange:function(t){var e=t&&t.state;this.feedLayoutView.getRegion("stream").showLoading(),this.initializeChildController(e),this.navView.setActiveState(t.state),this.feedActionsHeaderView.setActiveState(t.state),this.setPageTitle(e)},setPageTitle:function(t){var e;switch(t){case m.FEED_STATES.SAVED:e=y("title_bookmarks");break;case m.FEED_STATES.PUBLISHED:e=y("title_published");break;case m.FEED_STATES.DRAFTS:e=y("title_drafts")}C.trigger(C.TITLE,e)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(80),n(6),n(99),n(130),n(133)],r=function(t,e,n,i,r,o,s){return e.LayoutView.extend(i.extend({},s,{template:"templates/walter/feed/index",attributes:{id:"pulse-feed-wrapper",class:"pulse-content-wrapper"},regions:{stream:"#feed-stream-region",header:"#feed-header-region",nav:"#feed-nav-region",actionsHeader:"#actions-header-feed-region"},behaviors:{Dropdown:{behaviorClass:r.DropdownBehavior,trigger:".filters-trigger",content:".filters-list",dropdown:".filters-dropdown",focusSelector:".filters-menu"},FeedActionTrackingBehavior:{behaviorClass:o.FeedActionTrackingBehavior}},onBeforeShow:function(){this.showRegionViews()}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(131),n(132)],r=function(t,e){return{ArticleActionTrackingBehavior:t,FeedActionTrackingBehavior:e}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(122),n(1),n(73)],r=function(t,e,n,i,r,o){return i.extend({initialize:function(t){i.prototype.initialize.call(this,t),this.view.trackablePulseObject=this.getTrackablePulseObject()},onTrackAction:function(t){t.controlUrn=r.getFullControlUrn(t.controlUrn),r.trackActionEvent(o.EVENTS.ARTICLE.ACTION_EVENT,t),r.trackControlInteractionEvent({time:t.time,controlUrn:t.controlUrn})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(122),n(1),n(73)],r=function(t,e,n,i,r,o){return i.extend({onTrackAction:function(t){t.moduleKey=o.MODULES.FEED,t.controlUrn=r.getFullControlUrn(t.controlUrn),r.trackActionEvent(o.EVENTS.FEED.ACTION_EVENT,t),r.trackControlInteractionEvent({time:t.time,controlUrn:t.controlUrn})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79)],r=function(t,e){return{setRegionView:function(t,e){this._ensureRegionViews(),this._regionViews[t]=e},setRegionViews:function(e){this._ensureRegionViews(),t.extend(this._regionViews,e)},getRegionView:function(t){return this._ensureRegionViews(),this._regionViews[t]},showRegionViews:function(){this._ensureRegionViews(),t.each(this._regionViews,function(t,e){var n=this.getRegion(e);n&&n.show(t)},this)},_ensureRegionViews:function(){this._regionViews=this._regionViews||{}}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(88),n(135),n(149),n(136),n(160)],r=function(t,e,n,i,r){return e.extend({initializeCollection:function(){this.collection=t.findOrPersist(t.Feed.Collection,function(){return new n})},initializeViews:function(){this.streamView=new i({collection:this.collection,endStateView:r})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(5),n(83),n(88),n(149),n(129),n(136),n(7)],r=function(t,e,n,i,r,o,s,a){var l={embedId:a.EMBEDDED_FEED_JSON_ID};return t.Object.extend({initialize:function(t){this.initializeCollection(t),this.initializeViews()},initializeViews:function(){this.streamView=new s({collection:this.collection})},initializeCollection:function(t){},fetchCollection:function(){return this.collection.fetch(l)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80),n(74),n(99),n(138),n(145),n(146),n(137),n(144),n(1),n(7)],r=function(t,e,n,i,r,o,s,a,l,c,u){var h=n.app,d=n.guest,f=n.lixes,p=f.request(f.IS_ENABLED,u.LIX_KEYS.HIDE_SHARE_COUNT_ON_FEED),g=!1;return t.CollectionView.extend({initialize:function(t){this.bindEvents(),this.currentMember=h.request(h.CURRENT_MEMBER),g=this.currentMember.get("isGuest")},childViewOptions:function(t,e){var n,i={whichFeed:u.FEED_TYPES.HOME,isGuest:g};return t&&(n=t.get("feedItemType"),n&&t.set("index",this.collection.indexOf(t)),n===u.FEED_ITEM_TYPES.FOLLOW_RECOMMENDATION&&(i.collection=t.get("followRecommendations"))),t&&t.get("feedItemType")===u.FEED_ITEM_TYPES.FOLLOW_RECOMMENDATION?i.collection=t.get("followRecommendations"):i.lixHideShareCount=p,i},getChildView:function(t){var e=this.getOption("childView");return e?e:t.get("feedItemType")===u.FEED_ITEM_TYPES.FOLLOW_RECOMMENDATION?s:r},bindEvents:function(){this.guestService=new l,this.listenTo(d,d.GATED_ACTION,function(t,e,n){t&&e&&this.guestService.guestRedirect(t,e,n)}.bind(this))},getEmptyView:function(){return this.getOption("emptyView")},tagName:"ul",className:"feed-stream",behaviors:function(){return{InfiniteScroll:{behaviorClass:a,threshold:800,checkOnStart:!1,EndStateView:this.getOption("endStateView")||null},LazyLoadCollectionViewItems:{behaviorClass:i.LazyLoadCollectionViewItemsBehavior,threshold:300}}},onPageNext:function(){var t=this.addChild(null,o),e=this;this.collection.fetch().done(function(t){c.trackPageView(),e.triggerMethod("refresh:lazy:load:views")}).always(function(){t.destroy()})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;i=[n(5),n(6),n(80),n(79)],r=function(t,e,n,i){var r=".li-inf-scroll-behavior",o="scroll",s=i.Behavior.extend({defaults:{throttleMethod:"throttle",throttleDelay:250,scrollSelector:window,threshold:500,checkOnStart:!0,EndStateView:null,endStateModel:null,endStateIfEmpty:!1},initialize:function(){this._$scrollEl=t(),this._pauseListen=!1,this._isStarted=!1,this._isComplete=!1},onAttach:function(){this.start()},onDetach:function(){this.destroy()},bindEvents:function(){var t="debounce"===this.getOption("throttleMethod")?"debounce":"throttle",n=e[t](this._evtScroll.bind(this),this.getOption("throttleDelay"));this._$scrollEl.on(o+r,n),this.listenTo(this.view.collection,{request:this.pause.bind(this),sync:this.resume.bind(this),complete:this.complete.bind(this)})},unbindEvents:function(){this._$scrollEl.off(r)},start:function(){var e=this.getOption("scrollSelector");this._isStarted||this._isComplete||(this._isStarted=!0,this._$scrollEl=e.document&&e.document.body?t(e):this.view.$el.closest(e),this.bindEvents(),this.getOption("checkOnStart")===!0&&this.scroll())},pause:function(){this._pauseListen=!0},resume:function(){this._pauseListen=!1},_appendEndStateView:function(){var t=this.getOption("EndStateView"),n=this.getOption("endStateModel");!this.getOption("endStateIfEmpty")&&e.isFunction(this.view.isEmpty)&&this.view.isEmpty()||e.isFunction(this.view.addChild)&&this.view.addChild(n,t)},complete:function(){this._isComplete=!0,this.getOption("EndStateView")&&this._appendEndStateView(),this.destroy()},destroy:function(){this.unbindEvents(),this.stopListening(),this._isStarted=!1},scroll:function(){this._pauseListen||this.isAtBottom()&&this.view.triggerMethod("page:next")},_evtScroll:function(t){this.scroll()},isAtBottom:function(){var t=this._$scrollEl,e=t[0],n=t.scrollTop(),i=e.innerHeight||e.offsetHeight,r=e.document&&e.document.body?e.document.body.scrollHeight:e.scrollHeight;return n>=r-i-this.getOption("threshold")}});return s}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(99),n(74),n(7),n(73),n(139),n(1)],r=function(t,e,n,i,r,o,s,a,l){var c=r.lixes,u=c.request(c.IS_ENABLED,o.LIX_KEYS.FEED_COMMENTS),h=c.request(c.IS_ENABLED,o.LIX_KEYS.FEED_MPR_IMAGES),d=c.request(c.IS_ENABLED,o.LIX_KEYS.REMOVE_BOOKMARK),f=c.request(c.IS_ENABLED,o.LIX_KEYS.SHOW_TOOLTIPS),p="loading",g="src",v="data-li-src",m="["+v+"]";return n.LayoutView.extend({initialize:function(){this.model.set("whichFeed",this.getOption("whichFeed")||"default"),this.isGuest=this.getOption("isGuest")||!1,this.model.set("lixHideShareCount",this.getOption("lixHideShareCount")||!1),this.configureSummaryDisplay()},template:"templates/walter/feed/feedItem",tagName:"li",whichFeed:o.FEED_TYPES.DEFAULT,className:"feed-item",regions:{comments:"#comments"},attributes:{"data-li-loaded":""},ui:{commentBtn:".button-comment"},events:{"click @ui.commentBtn":"onCommentBtnClick","click .persist-track":"persistTrackingId"},templateHelpers:function(){return{isGuest:this.isGuest,showTooltips:f,feedComments:u,removeBookmark:d,feedMprImages:h}},behaviors:function(){var t=this.getOption("model"),e=t.get("summary");return{ButtonBookmark:{behaviorClass:i.ButtonBookmarkBehavior,model:t},ButtonLike:{behaviorClass:i.ButtonLikeBehavior,model:t},Dropdown:{behaviorClass:i.DropdownBehavior},SocialSharing:{behaviorClass:i.SocialSharingBehavior,url:e.url,title:e.title,text:e.summary,authorTwitterHandle:e.authorTwitterHandle},FlagArticle:{behaviorClass:i.FlagArticleBehavior},ImpressionTrackingBehavior:{behaviorClass:i.ImpressionTrackingBehavior,trackingAttr:"trackingId",fullRefresh:!0},ArtDecoTooltip:{behaviorClass:i.ArtDecoTooltipBehavior,selector:".tooltip-trigger"},ActionTrackingBehavior:{behaviorClass:i.ActionTrackingBehavior,model:t,events:"click",triggerParent:!0,eventDecorator:function(t){return t.requestId=this.model.get("id").toString(),t},modelEventOptions:[{eventName:o.TRIGGERS.CHANGE_LIKED,actionCategory:function(t){return t.get("isLiked")?s.ACTION_CATEGORIES.LIKE:s.ACTION_CATEGORIES.UNLIKE},actionType:function(t){return t.get("isLiked")?s.ACTION_TYPES.LIKE_ARTICLE:s.ACTION_TYPES.UNLIKE_ARTICLE},controlUrn:s.CONTROL_URN.LIKE_TOGGLE},{eventName:o.TRIGGERS.CHANGE_SAVED,actionCategory:function(t){return t.get("saved")?s.ACTION_CATEGORIES.SAVE:s.ACTION_CATEGORIES.UNSAVE},actionType:function(t){return t.get("saved")?s.ACTION_TYPES.SAVE_ARTICLE:s.ACTION_TYPES.UNSAVE_ARTICLE},controlUrn:s.CONTROL_URN.SAVE_TOGGLE}],selectors:[{value:".js-dropdown:not(.active) .button-share",actionCategory:s.ACTION_CATEGORIES.EXPAND,actionType:s.ACTION_TYPES.EXPAND_SHARE,controlUrn:s.CONTROL_URN.SHARE_INTENT},{value:".js-dropdown-content .share-facebook",actionCategory:s.ACTION_CATEGORIES.SHARE,actionType:s.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:s.CONTROL_URN.SHARE_FB},{value:".js-dropdown-content .share-twitter",actionCategory:s.ACTION_CATEGORIES.SHARE,actionType:s.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:s.CONTROL_URN.SHARE_TWITTER},{value:".js-dropdown-content .share-linkedin",actionCategory:s.ACTION_CATEGORIES.SHARE,actionType:s.ACTION_TYPES.SHARE_INTERNAL,controlUrn:s.CONTROL_URN.SHARE_INTERNAL},{value:".dropdown-report-this:not(.active)",actionCategory:s.ACTION_CATEGORIES.EXPAND,actionType:s.ACTION_TYPES.EXPAND_REPORT_ARTICLE,controlUrn:s.CONTROL_URN.REPORT_ARTICLE},{value:".headline",actionCategory:s.ACTION_CATEGORIES.VIEW,actionType:s.ACTION_TYPES.VIEW_ARTICLE,controlUrn:s.CONTROL_URN.VIEW_ARTICLE},{value:".article-img-wrapper",actionCategory:s.ACTION_CATEGORIES.VIEW,actionType:s.ACTION_TYPES.VIEW_ARTICLE,controlUrn:s.CONTROL_URN.VIEW_ARTICLE},{value:".reason a",actionCategory:s.ACTION_CATEGORIES.VIEW,actionType:s.ACTION_TYPES.VIEW_CHANNEL,controlUrn:s.CONTROL_URN.POST_CHANNEL}]}}},persistTrackingId:function(){var t=this.model.get("contentSource");t!==o.FLAGGING_CONTENT_SOURCES.THIRD_PARTY&&l.setPersistedTrackingID(this.model.get("trackingId"))},configureSummaryDisplay:function(){var e,n=this.model.get("summary"),i=n&&n.author&&n.author.isMember,r=n&&n.images,o=r&&t.max(r,function(t){
return t.width}),s=!i&&o;o===-(1/0)&&(s=!1,o=null),e=!o||s,this.model.set({hasThumbnail:s,hasSummary:e,bestImage:o})},onLazyLoad:function(){h&&this.loadImages(),u&&this.whichFeed===o.FEED_TYPES.DEFAULT&&(this.initializeComments(),this.renderComments())},loadImages:function(){var t=e(this.$el.find(m)[0]),n=t.attr(v);t.one("load",function(){t.removeAttr(v).removeClass(p)}),t.attr(g,n)},initializeComments:function(){this.comments=new a({articleModel:this.model})},renderComments:function(){this.showChildView("comments",this.comments.getView())},onCommentBtnClick:function(){this.comments.view.$el.toggleClass("show-comments-form")},onTrackImpression:function(t){t.trackablePulseObject={objectUrn:this.model.get("urn"),trackingId:t.trackingId||l.generateTrackingId()},delete t.trackingId,delete t.gridPosition,t.listPosition={index:this.model.get("index")},l.trackImpressionEvent(s.EVENTS.FEED.IMPRESSION_EVENT,"feedItems",t)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(5),n(74),n(140)],r=function(t,e,n,i){var r=n.app;return t.Object.extend({articleModel:null,socialModel:null,lixes:{},initialize:function(){var t=r.request(r.CURRENT_MEMBER);this.articleModel=this.getOption("articleModel"),this.socialModel=this.getOption("socialModel")||null,this.lixes=this.getOption("lixes"),this.initializeCommentsItemView(t)},initializeCommentsItemView:function(t){this.view=new i({member:t,articleModel:this.articleModel,socialModel:this.socialModel,lixes:this.lixes})},getView:function(){return this.view}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(74),n(104),n(141),n(142),n(144),n(94),n(4),n(1),n(7)],r=function(t,e,n,i,r,o,s,a,l,c,u){var h=n.lixes,d=h.request(h.GET_VALUE,u.LIX_KEYS.COMMENTS_SORT_DEFAULT),f=h.request(h.GET_VALUE,u.LIX_KEYS.COMMENTS_SORT_NEWEST),p=h.request(h.IS_ENABLED,u.LIX_KEYS.ALLOW_DISABLE_COMMENTS);return e.ItemView.extend({el:!1,template:!1,lixes:{},onBeforeShow:function(){var e,n,a=this.getOption("articleModel"),h=this.getOption("socialModel"),g=this.getOption("member"),v=(this.getOption("lixes"),1),m=!!a.get("whichFeed"),y=!!a.get("pubArticleUrn"),E=["delete","flag"],w=a.get("commentsState")||u.COMMENTS_STATE_DEFAULT_OPEN,_=g.get("isGuest"),T=new s,b=p;if(n=d&&t.isArray(d)&&t.contains(d,a.get("articleId"))?u.COMMENT_SORT_DEFAULTS[d[0].toUpperCase()]:f?u.COMMENT_SORT_DEFAULTS.NEWEST:u.COMMENT_SORT_DEFAULTS.RECOMMENDED,e=m?{showMoreOpensReply:!1,scrollOnReply:!1,hideRepliesOnLoad:!0}:{showMoreOpensReply:!1,scrollOnReply:!1},commentsProvider.setConfig("comments",{jumpPadding:20,thread:e,commentsState:w,commentsDisabledAuthorLix:b}),commentsProvider.setConfig("global",{timePlaceholder:"{0}",isGuestMode:_,guestUrls:!_||T.guestCommentUrls(a.get("articleId"),a.get("permalink"))}),commentsProvider.setConfig("mentions",{typeAhead:{endpoints:{get:i.v1.mentions.get}}}),y&&(E.push("getlink"),m)){var C=play.buildPath(document.location.hostname,"pulse",a.attributes.summary.permalink);commentsProvider.setConfig("modal",{subModals:{LinkModal:{baseUrl:C}}})}this.comments=new r({defaultSort:n,pageCount:2,pageNextCount:10,pageNextCountMultiplier:v,memberUrn:g.get("urn"),authorUrn:a.get("authorUrn"),articleUrn:a.get("urn"),author:{profileUrl:_?null:g.get("publicProfileUrl"),image:{url:_?null:g.get("image").url}},callbacks:{flagCommentHook:function(t,e){var n=new o;return n.flag(t,e)},onSave:function(){h.comment()},onCommentsEnable:function(){var t=u.AGORA_TRACKING.COMMENTS_ENABLE.ACTION_EVENT_NAME,e={actionCategory:u.AGORA_TRACKING.COMMENTS_ENABLE.ACTION_CATEGORY,actionType:u.AGORA_TRACKING.COMMENTS_ENABLE.ACTION_TYPE,controlUrn:u.AGORA_TRACKING.COMMENTS_ENABLE.CONTROL_URN,time:l.getNow(),trackablePulseObject:{objectUrn:a.get("urn"),trackingId:a.get("clientTrackingId")||""}},n={controlUrn:u.AGORA_TRACKING.COMMENTS_ENABLE.CONTROL_URN,time:l.getNow()};c.trackActionEvent(t,e),c.trackControlInteractionEvent(n)},onCommentsDisable:function(){var t=u.AGORA_TRACKING.COMMENTS_DISABLE.ACTION_EVENT_NAME,e={actionCategory:u.AGORA_TRACKING.COMMENTS_DISABLE.ACTION_CATEGORY,actionType:u.AGORA_TRACKING.COMMENTS_DISABLE.ACTION_TYPE,controlUrn:u.AGORA_TRACKING.COMMENTS_DISABLE.CONTROL_URN,time:l.getNow(),trackablePulseObject:{objectUrn:a.get("urn"),trackingId:a.get("clientTrackingId")||""}},n={controlUrn:u.AGORA_TRACKING.COMMENTS_DISABLE.CONTROL_URN,time:l.getNow()};c.trackActionEvent(t,e),c.trackControlInteractionEvent(n)},onThreadDelete:function(){h.uncomment()}},comment:{menuItems:E},endpoints:{comments:i.v1.comments.get,nestedComments:i.v1.comments.get,comment:play.addCsrfTokenToUrl(i.v1.comment.post),delete:play.addCsrfTokenToUrl(i.v1.comment.delete),like:play.addCsrfTokenToUrl(i.v1.likes.post),unlike:play.addCsrfTokenToUrl(i.v1.likes.delete),flag:play.addCsrfTokenToUrl(i.v1.flag.post),unflag:play.addCsrfTokenToUrl(i.v1.flag.delete),disableComments:play.addCsrfTokenToUrl(i.v1.enableComments.delete),enableComments:play.addCsrfTokenToUrl(i.v1.enableComments.post)}},this.el)},onBeforeDestroy:function(){this.comments._destroy()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e){t.exports=require("modules/Comments")},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7),n(143)],r=function(t,e,n,i,r){return t.extend({flag:function(t,i){var o,s,a,l=$.Deferred();return a=play.buildUrlSimple(e.external.flagging.semaphoreData,{entityUrn:t,authorUrn:i,contentSource:"USCP_COMMENT"}),o=new r({semaphoreDataUrl:a,flagPromise:l}),s={view:o,titleKey:"i18n_flagging_semaphore_title",i18nTemplate:"templates/walter/shared/strings/globalStrings",modalClass:"semaphore-flagging"},n.modal.trigger(n.modal.SHOW,s),l.promise()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(80),n(79),n(6),n(4),n(74),n(105)],r=function(t,e,n,i,r,o,s){return s.extend({initialize:function(t){s.prototype.initialize.call(this,t)},makePost:function(t){var e=this.options.flagPromise;s.prototype.makePost.call(this,t),e&&e.resolve()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7),n(85),n(98)],r=function(t,e,n,i,r,o){return t.extend({guestCommentUrls:function(t,e){var n=i.GUEST_REDIRECT.COMMENTS;for(var r in n)n[r]=this.guestBuildUrl(i.GUEST_REDIRECT.COMMENTS[r],t,e);return n},guestBuildUrl:function(t,e,n){var i=play.getPageContextValue("csrfToken"),s=window.location.origin,a=r.getIdFromUrn(e),l=t.replace("{token}",i).replace("{targetId}",a).replace("{permalink}",n);return l=o.baseRedirect+s+encodeURIComponent(l)},guestRedirect:function(t,e,n,r){r=r||"ARTICLE",window.location.href=this.guestBuildUrl(i.GUEST_REDIRECT[r][t],e,n)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80)],r=function(t,e){return t.ItemView.extend({tagName:"li",template:"templates/walter/feed/feedLoadingMoreItems",className:"feed-item feed-loading"})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(7),n(147),n(148)],r=function(t,e,n,i){return t.CompositeView.extend({template:"templates/walter/feed/followRecommendations",childViewContainer:".follow-recommendations",tagName:"li",className:"feed-item",getChildView:function(t){var r=t.get("entityType"),o=n;return r===e.FEED_RECOMMENDATION_ENTITY_TYPES.COMPANY&&(o=i),o}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(74),n(99),n(7),n(73)],r=function(t,e,n,i,r){var o=e.lixes,s=o.request(o.IS_ENABLED,i.LIX_KEYS.REMOVE_AUTHOR_PAGES);return t.ItemView.extend({template:"templates/walter/shared/userCard",tagName:"li",className:"connection connection-user",templateHelpers:function(){return{removeAuthorPages:s}},behaviors:function(){return{ButtonFollow:{behaviorClass:n.ButtonFollowBehavior,model:this.getOption("model"),followType:r.FOLLOW_TYPES.AUTHOR}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(99),n(73)],r=function(t,e,n){return t.ItemView.extend({template:"templates/walter/shared/companyCard",tagName:"li",className:"connection connection-company",behaviors:function(){return{ButtonFollow:{behaviorClass:e.ButtonFollowBehavior,model:this.getOption("model"),followType:n.FOLLOW_TYPES.COMPANY}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150)],r=function(t,e,n,i,r){return r.extend({url:i.v1.feed.get})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(151)],r=function(t,e,n,i){return n.Collection.extend({initialize:function(t,n){var i={data:{start:0,count:10,memberToken:null,paginationToken:null,height:250,width:744},remove:!1};n=n||{},n.data&&(i.data=e.defaults(n.data,i.data)),this.fetchOptions=i},model:i,parse:function(t){var e=t,n=e.elements,i={};return e.paginationToken&&(i.paginationToken=e.paginationToken),i.responseLength=n.length,this.setFetchOptions(i,!0),n},fetch:function(i){var r;try{r=play.getEmbeddedContent(i.embedId)}catch(t){r=null}return r?(this.set(this.parse(r)),t.when()):(i=e.extend({data:{},remove:!1},i),i.data=e.extend({},this.fetchOptions.data,i.data),i.data=e.pick(i.data,function(t){return null!==t}),n.Collection.prototype.fetch.call(this,i))},setFetchOptions:function(t,e){!this.fetchOptions.data.paginationToken&&t.paginationToken&&(this.fetchOptions.data.paginationToken=t.paginationToken),t.responseLength||this.trigger("complete"),e&&(this.fetchOptions.data.start+=this.fetchOptions.data.count)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(152),n(157),n(154),n(155),n(7)],r=function(t,e,n,i,r,o,s,a){var l={contentFeedItem:"com.linkedin.pulse.models.ContentFeedItem",followRecommendation:"com.linkedin.pulse.models.FollowRecommendation"},c=a.FLAGGING_CONTENT_SOURCES;return n.Model.extend(e.extend({},r,{constructor:function(t,e){e=e||{},e.parse=!0,n.Model.call(this,t,e)},parse:function(t){var e;switch(t.feedItemType){case a.FEED_ITEM_TYPES.CONTENT:e=t.feedItem[l.contentFeedItem],t.reason&&(t.reason.textWithPivots=i.hydrateReasonsWithPivots(t.reason));for(var r in e.socialStats)t[r]=e.socialStats[r];t.summary=e.contentSummary,t.saved=t.summary.saved,delete t.summary.saved,t.trackingId=e.trackingId,this.setAuthorType(t.summary.author),t.summary.urn&&(t.urn=t.summary.urn,t.id=i.getIdFromUrn(t.urn)),t.summary.pubArticleUrn&&(t.pubArticleUrn=t.summary.pubArticleUrn,t.pubArticleId=i.getIdFromUrn(t.pubArticleUrn)),t.summary.author.isMember?(t.authorUrn=t.summary.author.urn,t.contentSource=t.summary.author.isInfluencer?c.INFLUENCER:c.PONCHO):t.contentSource=c.THIRD_PARTY;break;case a.FEED_ITEM_TYPES.FOLLOW_RECOMMENDATION:e=t.feedItem[l.followRecommendation],t.text=e.text,t.followRecommendations=new n.Collection(e.elements,{model:s})}return delete t.feedItem,t},setAuthorType:function(t){switch(t.entityType){case a.FEED_RECOMMENDATION_ENTITY_TYPES.MEMBER:t.isMember=!0;break;case a.FEED_RECOMMENDATION_ENTITY_TYPES.COMPANY:t.isCompany=!0;break;case a.FEED_RECOMMENDATION_ENTITY_TYPES.NONE:t.isNone=!0}return t}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(7),n(153),n(96)],r=function(t,e,n,i){function r(t,e,n){return t[n]=t[e],delete t[e],t}function o(e){var n={};if(t.isString(e)){var i=e.split("&");t.each(i,function(t){var e=t.split("="),i=decodeURIComponent(e[0]);if(i){var r=e.length>1?decodeURIComponent(e[1]):"";n[i]?n[i].push(r):n[i]=[r]}})}else t.isObject(e)&&(n=e);return n}function s(t){return t.match(/\d+/g)[0]}function a(t,e){return t="channel"===t?"channel":"industry","urn:li:"+t+":"+e}function l(e){var r=e.textWithPivots;return r?(t.each(e.pivots,function(t,e){var o,s=t.entities;o=s.length>1?s.length+" "+i(["multiple",s[0].entityType.toLowerCase()].join("_")):n("templates/walter/feed/pivotEntity",s[0]),r=r.replace("${"+e+"}",o)}),r):e.text}return{renameKey:r,processQueryParams:o,getIdFromUrn:s,createContentPoolUrn:a,hydrateReasonsWithPivots:l}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i;i=function(){return function(t,e){var n="";return dust.render(t,e,function(t,e){if(t)throw t;n=e}),n}}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7)],r=function(t,e,n,i){var r=e.v1.follow.post,o=e.v1.follow.delete,s=i.REQUEST_METHODS.POST,a=i.REQUEST_METHODS.DELETE,l=n.services;return t.extend({options:{radioChannel:l,radioBeforeEvent:l.FOLLOW_BEFORE,radioAfterEvent:l.FOLLOW_AFTER},follow:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:s,url:r,data:e})},unfollow:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:a,url:o,data:e})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(80),n(104),n(156),n(154)],r=function(t,e,n,i){var r="isFollowing",o=new i;return n.extend({initialize:function(){var t=this.get("memberToken"),e=this.get("urn"),n=this.get("vanityName");this.fetchParams={},n?this.fetchParams.vanityName=n:t?this.fetchParams.memberToken=t:e&&(this.fetchParams.urn=e)},follow:function(){o.follow(this.get("urn")).done(function(){this.set(r,!0)}.bind(this))},unfollow:function(){o.unfollow(this.get("urn")).done(function(){this.set(r,!1)}.bind(this))}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(80)],r=function(t,e){return e.Model.extend({fetch:function(n){var i=null;try{i=play.getEmbeddedContent(n.embedId)}catch(t){}return i?(this.set(this.parse(i)),t.Deferred().resolve().promise()):e.Model.prototype.fetch.call(this,n)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(88),n(74),n(158),n(159),n(154)],r=function(t,e,n,i,r){var o=e.app.request(e.app.CURRENT_MEMBER),s=new n,a=new r,l=new i,c="saved",u="isFollowing",h="totalComments",d="totalLikes",f="urn",p=e.cache,g=e.follow,v=t.Feed.Collection,m=t.Saved.Collection,y=t.Article.Likes,E=t.Author.Following+o.get("vanityName");return{follow:function(){return a.follow(this.get(f)).done(function(){this.set(u,!0),p.trigger(p.CLEAR,E),p.trigger(p.CLEAR_FOLLOWING),g.trigger(g.FOLLOW)}.bind(this))},unfollow:function(){return a.unfollow(this.get(f)).done(function(){this.set(u,!1),p.trigger(p.CLEAR,E),p.trigger(p.CLEAR_FOLLOWING),g.trigger(g.UNFOLLOW)}.bind(this))},like:function(){l.like(this.get(f)).done(function(){this.set({isLiked:!0,totalLikes:this.get(d)+1}),p.trigger(p.CLEAR,y+this.get("urn")),p.trigger(p.CLEAR_LIKE),p.trigger(p.CLEAR,v),p.trigger(p.CLEAR,m)}.bind(this))},unlike:function(){l.unlike(this.get(f)).done(function(){this.set({isLiked:!1,totalLikes:this.get(d)-1}),p.trigger(p.CLEAR,y+this.get("urn")),p.trigger(p.CLEAR_LIKE),p.trigger(p.CLEAR,v),p.trigger(p.CLEAR,m)}.bind(this))},bookmark:function(){s.bookmark(this.get(f)).done(function(){this.set(c,!0),p.trigger(p.CLEAR,v),p.trigger(p.CLEAR,m),p.trigger(p.CLEAR_BOOKMARKS)}.bind(this))},unbookmark:function(){s.unbookmark(this.get(f)).done(function(){this.set(c,!1),p.trigger(p.CLEAR,v),p.trigger(p.CLEAR,m),p.trigger(p.CLEAR_BOOKMARKS)}.bind(this))},comment:function(){this.set(h,this.get(h)+1)},uncomment:function(){this.set(h,this.get(h)-1)}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7)],r=function(t,e,n,i){var r=e.v1.bookmarks.post,o=e.v1.bookmarks.delete,s=i.REQUEST_METHODS.POST,a=i.REQUEST_METHODS.DELETE,l=n.services;return t.extend({options:{radioChannel:l,radioBeforeEvent:l.BOOKMARK_BEFORE,radioAfterEvent:l.BOOKMARK_AFTER},bookmark:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:s,url:r,data:e})},unbookmark:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:a,url:o,data:e})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(95),n(104),n(74),n(7)],r=function(t,e,n,i){var r=e.v1.likes.post,o=e.v1.likes.delete,s=i.REQUEST_METHODS.POST,a=i.REQUEST_METHODS.DELETE,l=n.services;return t.extend({options:{radioChannel:l,radioBeforeEvent:l.LIKE_BEFORE,radioAfterEvent:l.LIKE_AFTER},like:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:s,url:r,data:e})},unlike:function(t){var e=this.urnToData(t);return this.makeAjaxRequest({method:a,url:o,data:e})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80)],r=function(t,e){return t.ItemView.extend({tagName:"li",template:"templates/walter/feed/feedEnd",className:"feed-item feed-end"})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(88),n(135),n(162),n(136),n(163)],r=function(t,e,n,i,r,o){return n.extend({initializeCollection:function(){this.collection=e.findOrPersist(e.Saved.Collection,function(){return new i})},initializeViews:function(){this.streamView=new r({collection:this.collection,childView:o,emptyView:t.ItemView.extend({template:"templates/walter/feed/savedEmpty"})})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150)],r=function(t,e,n,i,r){return r.extend({url:i.v1.bookmarks.get})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(138),n(7)],r=function(t,e){return t.extend({template:"templates/walter/feed/savedItem",whichFeed:e.FEED_TYPES.BOOKMARKS})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(88),n(135),n(165),n(136),n(166),n(168)],r=function(t,e,n,i,r,o){return e.extend({initializeCollection:function(){this.collection=t.findOrPersist(t.Drafts.Collection,function(){return new n})},initializeViews:function(){this.streamView=new i({collection:this.collection,childView:o,emptyView:r})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150)],r=function(t,e,n,i,r){return r.extend({url:i.v1.drafts.get})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(167)],r=function(t,e){return t.LayoutView.extend({template:"templates/walter/feed/publishedEmpty",regions:{video:"#video-region"},initialize:function(){this.VideoItemView=new e({template:"templates/walter/shared/janetVideo"})},onBeforeShow:function(){this.showChildView("video",this.VideoItemView)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79)],r=function(t,e,n){return n.ItemView.extend({ui:{overlay:".overlay",play:".play",video:"#video"},className:"video-wrapper",events:{"click @ui.play":"onPlay"},onPlay:function(){this.ui.video.attr("controls",!0),this.ui.overlay.addClass("hide-overlay"),this.ui.video.addClass("show"),this.ui.video.get(0).play()},onPause:function(){this.ui.video.removeAttr("controls"),this.ui.overlay.removeClass("hide-overlay")},onShow:function(){this.ui.video.on("pause",e.bind(this.onPause,this))},getTemplate:function(){return this.getOption("template")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(99),n(138),n(7)],r=function(t,e,n,i,r){return i.extend({template:"templates/walter/feed/draftsItem",tagName:"li",className:"feed-item",whichFeed:r.FEED_TYPES.DRAFTS,templateHelpers:{whichFeed:r.FEED_TYPES.DRAFTS},behaviors:{DeleteArticle:{behaviorClass:n.DeleteArticleBehavior}},initialize:function(e){var n=i.prototype.templateHelpers()||{};this.templateHelpers=t.extend(n,this.templateHelpers),i.prototype.initialize.call(this,e)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(88),n(135),n(170),n(136),n(172),n(166)],r=function(t,e,n,i,r,o){return e.extend({initializeCollection:function(){this.collection=t.findOrPersist(t.Published.Collection,function(){return new n})},initializeViews:function(){this.streamView=new i({collection:this.collection,childView:r,emptyView:o})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150),n(171)],r=function(t,e,n,i,r,o){return r.extend({url:i.v1.published.get,model:o})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(151)],r=function(t){return t.extend({parse:function(e){return e=t.prototype.parse.call(this,e),e.viewStatsUrl=play.url({alias:"com.linkedin.pulse.controllers.AnalyticsController.getAnalytics",arg0:e.pubArticleId}),e.viewStatsUrl=play.addQueryParameter(e.viewStatsUrl,"trk","author-posts-view-stats"),e}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(138),n(99),n(7)],r=function(t,e,n,i){return e.extend({template:"templates/walter/feed/publishedItem",whichFeed:i.FEED_TYPES.PUBLISHED,templateHelpers:{whichFeed:i.FEED_TYPES.PUBLISHED},initialize:function(n){var i=e.prototype.templateHelpers()||{};this.templateHelpers=t.extend(i,this.templateHelpers),e.prototype.initialize.call(this,n)},behaviors:function(){var t=this.getOption("model"),e=t.get("summary");return{Dropdown:{behaviorClass:n.DropdownBehavior},SocialSharing:{behaviorClass:n.SocialSharingBehavior,url:e.url,title:e.title,text:e.summary,authorTwitterHandle:e.authorTwitterHandle},DeleteArticle:{behaviorClass:n.DeleteArticleBehavior}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(80),n(130),n(73),n(74),n(7)],r=function(t,e,n,i,r,o,s){var a=o.lixes,l=a.request(a.IS_ENABLED,s.LIX_KEYS.REMOVE_AUTHOR_PAGES);return e.ItemView.extend({template:"templates/walter/feed/header",tagName:"header",className:"feed-header",attributes:{role:"banner"},modelEvents:{"change:totalFollowings":"render"},behaviors:function(){var e=this.getOption("model"),n={};return l||t.extend(n,{FeedActionTrackingBehavior:{behaviorClass:i.FeedActionTrackingBehavior,model:e,events:"click",eventDecorator:function(t){return t.requestId=this.model.get("id").toString(),t},selectors:[{value:".js-followers",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_FOLLOWERS,controlUrn:r.CONTROL_URN.FOLLOWER},{value:".js-following",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_FOLLOWING,controlUrn:r.CONTROL_URN.FOLLOWING}]}}),n}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(80),n(6),n(99),n(7),n(175),n(4),n(73)],r=function(t,e,n,i,r,o,s,a,l){var c=a.getStickyHeaderOffsets();return e.ItemView.extend(i.extend({},s,{template:"templates/walter/feed/nav",tagName:"nav",className:"feed-nav",ui:{saved:".js-saved",drafts:".js-drafts",published:".js-published",dropdownTrigger:".filters-trigger"},behaviors:function(){var t=this.getOption("model");return{Dropdown:{behaviorClass:r.DropdownBehavior,trigger:".filters-trigger",content:".filters-list",dropdown:".filters-dropdown",focusSelector:".filters-menu"},StickyHeader:{behaviorClass:r.StickyHeaderBehavior,stickyEl:".actions-header",triggerEl:"#feed-nav-region",offsetTop:c.top,offsetSubNav:c.subNav,offsetSubNavDown:c.subNavDown},ImpressionTrackingBehavior:{behaviorClass:r.ImpressionTrackingBehavior,elSelector:".filters-menu"},ActionTrackingBehavior:{behaviorClass:r.ActionTrackingBehavior,triggerParent:!0,model:t,eventDecorator:function(t){return t.requestId=this.model.get("id").toString(),t},events:"click",selectors:[{value:".js-published",actionCategory:l.ACTION_CATEGORIES.SELECT,actionType:l.ACTION_TYPES.CLICK_PUBLISHED,controlUrn:l.CONTROL_URN.PUBLISHED},{value:".js-drafts",actionCategory:l.ACTION_CATEGORIES.SELECT,actionType:l.ACTION_TYPES.CLICK_DRAFTS,controlUrn:l.CONTROL_URN.DRAFTS}]}}},modelEvents:{change:"render"}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(7)],r=function(t,e){return{viewOptions:["state"],initialize:function(t){this.mergeOptions(t,this.viewOptions)},onRender:function(){this.setActiveState(this.state)},setActiveState:function(n){t.each(this.ui,function(t){t.removeClass(e.CLASSES.ACTIVE)}),n in this.ui&&this.ui[n].addClass(e.CLASSES.ACTIVE)}}}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80),n(130),n(73)],r=function(t,e,n,i){return t.ItemView.extend({template:"templates/walter/feed/banner",className:"feed-banner feed-banner-feed",behaviors:function(){var t=this.getOption("model");return{FeedActionTrackingBehavior:{behaviorClass:n.FeedActionTrackingBehavior,model:t,eventDecorator:function(t){return t.requestId=this.model.get("id").toString(),t},events:"click",selectors:[{value:".button-secondary-medium-inverse",actionCategory:i.ACTION_CATEGORIES.VIEW,actionType:i.ACTION_TYPES.VIEW_WRITE_POST,controlUrn:i.CONTROL_URN.WRITE}]}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(175)],r=function(t,e,n){return e.ItemView.extend(t.extend({},n,{template:"templates/walter/feed/actionsHeader",className:"actions-header slider",ui:{saved:".js-saved",drafts:".js-drafts",published:".js-published"},modelEvents:{change:"render"}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(83),n(74),n(180),n(182),n(192),n(193),n(194),n(195),n(200),n(179),n(196),n(184),n(139),n(7),n(98),n(144),n(73),n(4),n(1)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p,g,v,m,y,E,w,_){var T,b=r.lixes,C=r.page,S=r.guest,A=r.app,O=i.getRegion("content"),R=w.get$Document(),x=w.get$Window(),I=w.get$Head(),N=t(v.ARTICLE_WRAPPER),k=v.ARTICLE_META_CLASS,L=v.TRIGGERS.CHANGE_SAVED,M=v.TRIGGERS.CHANGE_LIKED,D=E.TRACKING_ID,B=E.CLIENT_TRACKING_ID,P=!1,U={embedId:v.EMBEDDED_ARTICLE_JSON_ID},V=b.request(b.GET_VALUE,v.LIX_KEYS.ARTICLE_HEADER_ACTIONS),H=b.request(b.IS_ENABLED,v.LIX_KEYS.SHOW_SHARE_PROMPT),F=b.request(b.IS_ENABLED,v.LIX_KEYS.REMOVE_AUTHOR_PAGES),j=b.request(b.IS_ENABLED,v.LIX_KEYS.SHOW_TOOLTIPS),z=b.request(b.GET_VALUE,v.LIX_KEYS.SHOW_RELATED_CONTENT),q=b.request(b.IS_ENABLED,v.LIX_KEYS.CHINA_GEOLOCATION),K=z===v.RELATED_CONTENT.VERTICAL_LIST_NUMBERED_COLUMNS,W=z===v.RELATED_CONTENT.NUMBERED_COLUMNS,G=z===v.RELATED_CONTENT.HORIZONTAL_IMAGES,Y=z===v.RELATED_CONTENT.SIMPLE_VERTICAL_LIST,$=Y||K;return n.Object.extend({initialize:function(e){var n,i;this.isSSR=e.isSSR||!1,this.permalink=e.permalink||"",this.contentType=e.contentType||"",this.currentMember=A.request(A.CURRENT_MEMBER),this.articleModel=new o({permalink:this.permalink}),this.socialModel=new s({permalink:this.permalink}),this.guestService=new y,P=this.currentMember.get("isGuest"),n=this.fetchArticleModel().done(function(){this.initializeArticleLayoutView(),this.renderArticleLayoutView(),H&&this.showSharePrompt(),C.trigger(C.TITLE,[this.articleModel.get("title"),this.articleModel.get("authorModel").get("name")],this),this.isSSR||this.insertMetaData()}.bind(this)),i=this.socialModel.fetch(),t.when(n,i).done(function(){this.syncArticleTracking(),this.trackArticleView(),this.showActionsHeader(),this.showSocialStats(),this.initializeSocialActionsItemView(),this.renderSocialActionsItemView(),this.initializeComments(),this.renderComments(),(G||Y||K)&&this.showRelatedContent(),(W||K)&&this.showTopContent(),this.bindEventsForSharingOnSelection(),this.bindEvents()}.bind(this))},trackArticleView:function(){var t={articleId:this.articleModel.get("pubArticleId"),linkedInArticleUrn:this.articleModel.get("pubArticleUrn"),authorId:this.articleModel.get("authorId")?parseInt(this.articleModel.get("authorId"),10):null,articleUrn:this.articleModel.get(E.URN),trackablePulseObject:{trackingId:this.articleModel.get("trackingId")||this.articleModel.get("clientTrackingId"),objectUrn:this.articleModel.get(E.URN)},totalLikes:this.socialModel.get("totalLikes"),totalShares:this.socialModel.get("totalShares"),totalComments:this.socialModel.get("totalComments")};_.trackArticleView(t)},syncArticleTracking:function(){var t=this.articleModel.get(D),e=this.articleModel.get(B);t?this.socialModel.set(D,t):e&&this.socialModel.set(B,e)},bindEvents:function(){this.listenTo(this.socialModel,L,function(){this.articleModel.set("saved",this.socialModel.get("saved"))}.bind(this)),this.listenTo(this.socialModel,M,function(){this.articleModel.set("isLiked",this.socialModel.get("isLiked"))}.bind(this)),this.listenTo(S,S.GATED_ACTION,function(t,e,n){t&&e&&this.guestService.guestRedirect(t,e,n)}.bind(this))},bindEventsForSharingOnSelection:function(){this.listenTo(this.articleLayoutView,"selected:text",function(t,e,n){this.socialModel.set("selectedText",e),this.shareButtonItemView&&this.shareButtonItemView.destroy(),this.initializeShareButtonItemView(),this.renderShareButtonItemView(n)}),this.listenTo(this.articleLayoutView,"deselected:text",function(t){this.socialModel.set("selectedText",""),this.shareButtonItemView&&this.shareButtonItemView.destroy()}),R.on("mouseup.articleController",e.bind(function(e){var n=t(e.target);this.shareButtonItemView&&!n.closest(this.shareButtonItemView.$el).length&&this.shareButtonItemView.destroy()},this))},fetchArticleModel:function(){return this.articleModel.fetch(U)},initializeArticleLayoutView:function(){var t=this.articleModel;this.articleLayoutView=new a({el:this.isSSR?N:null,model:t,templateHelpers:{author:e.clone(t.get("authorModel").attributes),isGuest:P,removeAuthorPages:F}}),this.articleLayoutView.bindUIElements()},initializeComments:function(){this.comments=new g({articleModel:this.articleModel,socialModel:this.socialModel})},initializeSocialActionsItemView:function(){this.socialActionsItemView=new u({model:this.socialModel,templateHelpers:{removeBookmark:b.request(b.IS_ENABLED,v.LIX_KEYS.REMOVE_BOOKMARK),china:q,isGuest:P,showTooltips:j,commentingDisabled:this.articleModel.get("commentingDisabled")
}})},initializeShareButtonItemView:function(){this.shareButtonItemView=new h({model:this.socialModel,className:"hidden",templateHelpers:{className:"button-primary-large-round",hideFacebook:!0}})},renderArticleLayoutView:function(){this.isSSR?(O.attachViewSSR(this.articleLayoutView),this.articleLayoutView.triggerMethod("attach")):O.show(this.articleLayoutView),r.router.trigger(r.router.PAGE_RENDERED),T=t(v.ARTICLE_SELECTOR)},renderComments:function(){this.articleLayoutView.showChildView("comments",this.comments.getView())},renderSocialActionsItemView:function(){this.articleLayoutView.showChildView("socialActions",this.socialActionsItemView)},renderShareButtonItemView:function(t){var e=this.articleLayoutView.getRegion("shareButton"),n=x.scrollTop(),i=n-T.offset().top+t.y+(t.height/2-v.BUTTON_HEIGHT_MEDIUM/2);this.articleLayoutView.showChildView("shareButton",this.shareButtonItemView),this.shareButtonItemView.$el.removeClass("hidden"),e.$el.css("top",i)},showActionsHeader:function(){var t={articleModel:this.articleModel,socialModel:this.socialModel};this.articleActionsController||(this.articleActionsController=new d({permalink:this.permalink},t)),this.articleActionsController.fetchModels().then(function(){this.articleLayoutView.showChildView("actionsHeader",this.articleActionsController.getView()),V!==v.LIX_VALUES.CONTROL&&this.articleActionsController.showSocialStats()}.bind(this))},showSocialStats:function(){this.socialStatsController||(this.socialStatsController=new p({permalink:this.permalink,isAuthor:this.articleModel.get("originalAuthor"),isEditor:this.articleModel.get("editor"),hasActions:!0,commentingDisabled:this.articleModel.get("commentingDisabled")},this.socialModel)),this.socialStatsController.fetchModel().then(function(){this.articleLayoutView.showChildView("socialStats",this.socialStatsController.getView())}.bind(this))},showRelatedContent:function(){var t,e=$?"relatedContentVerticalList":"relatedContentHorizontalImages";this.relatedContentController||(t=this.articleModel.get("authorModel"),this.relatedContentController=new f({permalink:this.permalink,template:"templates/walter/article/relatedContent",returnCount:3,authorName:t&&t.get("name")})),this.relatedContentController.fetchCollection().then(function(){this.relatedContentController.collection.length&&this.articleLayoutView.showChildView(e,this.relatedContentController.getView())}.bind(this))},showTopContent:function(){this.topContentController||(this.topContentController=new f({permalink:this.permalink,contentType:v.RELATED_CONTENT.TOP_POSTS,template:"templates/walter/article/relatedContentExtension",returnCount:10})),this.topContentController.fetchCollection().then(function(){this.topContentController.collection.length&&this.articleLayoutView.showChildView("topContent",this.topContentController.getView())}.bind(this))},showSharePrompt:function(){var t=!!play.getUrlParameter(window.location.href,"published"),n=this.articleModel.get("originalAuthor"),i=this.articleModel.get("publishedDate"),r=e.now()-i<=v.SHARE_PROMPT.ONE_MIN;t&&n&&r&&this.articleLayoutView.showChildView("sharePrompt",new c({model:this.articleModel}))},onDestroy:function(){this.removeMetaData(),R.off("mouseup.articleController")},insertMetaData:function(){var t=new l({model:this.articleModel});t.render(),I.append(t.$el)},removeMetaData:function(){t(k).remove()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(5),n(79),n(180),n(182),n(183),n(184),n(88),n(74),n(7),n(98)],r=function(t,e,n,i,r,o,s,a,l,c,u){var h=l.lixes,d=l.app,f=h.request(h.GET_VALUE,c.LIX_KEYS.ARTICLE_HEADER_ACTIONS),p=h.request(h.IS_ENABLED,c.LIX_KEYS.REMOVE_FEED),g=h.request(h.IS_ENABLED,c.LIX_KEYS.REMOVE_BOOKMARK),v=h.request(h.IS_ENABLED,c.LIX_KEYS.PUBLISHIN),m=e.Deferred().resolve(),y=!1;return n.Object.extend({initialize:function(e,n){var o=t.has(e,"permalink")?e.permalink:e.urn;this.currentMember=d.request(d.CURRENT_MEMBER),y=this.currentMember.get("isGuest"),this.articleModel=a.findOrPersist(a.Article.Content+o,function(){return n.articleModel||new i(e)}),this.socialModel=a.findOrPersist(a.Article.Author+o,function(){return n.socialModel||new r(e)})},fetchModels:function(){var t=this.articleModel.has("title")?m:this.articleModel.fetch(),n=this.socialModel.has("title")?m:this.socialModel.fetch();return e.when(t,n)},getView:function(){var e,n;return this.view||(e=this.articleModel.get("originalAuthor"),n=this.articleModel.get("editor"),this.view=new o({model:f===c.LIX_VALUES.AUTHOR?this.articleModel:this.socialModel,templateHelpers:{author:t.clone(this.articleModel.get("authorModel").attributes),showWriteButton:!e,showEditButton:n||e,editUrl:this.articleModel.get("editUrl"),articleHeaderActions:f,removeFeed:p,publishIn:v,isGuest:y,removeBookmark:g,commentingDisabled:this.articleModel.get("commentingDisabled")}})),this.view},showSocialStats:function(){this.socialStatsController||(this.socialStatsController=new s({permalink:this.articleModel.get("permalink"),isEditor:this.articleModel.get("editor"),showStats:this.articleModel.get("originalAuthor"),commentingDisabled:this.articleModel.get("commentingDisabled")},this.socialModel)),this.socialStatsController.fetchModel().then(function(){this.view.showChildView("socialStats",this.socialStatsController.getView({buttonSize:"medium",isGuest:y,isSmall:!0}))}.bind(this))}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(152),n(104),n(156),n(181),n(1),n(73)],r=function(t,e,n,i,r,o,s,a,l){var c="744",u="425",h="MEMBER",d="INFLUENCER_ARTICLE",f="PONCHO_ARTICLE",p=l.TRACKING_ID,g=l.CLIENT_TRACKING_ID;return o.extend({url:function(){return play.buildUrlSimple(r.v1.article.get,{permalink:this.get("permalink"),width:c,height:u})},parse:function(t){var e;return t.authorModel=t.author&&new s(t.author),t.author.entityType===h&&(t.authorUrn=t.author.urn,t.contentSource=t.author.isInfluencer?d:f),delete t.author,t.articleContent=t.fullTextWithMarkup,e=a.getPersistedTrackingId(),e?t[p]=e:t[p]||(t[g]=a.generateTrackingId()),t.pubArticleUrn&&(t.pubArticleId=i.getIdFromUrn(t.pubArticleUrn)),t.authorModel.attributes.urn&&(t.authorId=i.getIdFromUrn(t.authorModel.attributes.urn)),t}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(80),n(104),n(156),n(157)],r=function(t,e,n,i,r){return i.extend(t.extend({},t.pick(r,"follow","unfollow"),{initialize:function(){var t=this.get("memberToken"),e=this.get("urn"),n=this.get("vanityName"),i=this.get("channelVanity");this.fetchParams={},n?(this.fetchParams.vanityName=n,i&&(this.fetchParams.channelVanity="true")):t?this.fetchParams.memberToken=t:e&&(this.fetchParams.urn=e)},url:function(){return play.buildUrlSimple(n.v1.author.get,this.fetchParams)}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(104),n(156),n(157),n(152)],r=function(t,e,n,i,r){return n.extend(t.extend({},t.pick(i,"like","unlike","bookmark","unbookmark","comment","uncomment"),{initialize:function(){var t=this.get("permalink"),e=this.get("urn");this.fetchParams={},t?this.fetchParams.permalink=t:e&&(this.fetchParams.urn=e)},url:function(){return play.buildUrlSimple(e.v1.social.get,this.fetchParams)},parse:function(t){if(t&&t.socialStats){for(var e in t.socialStats)t[e]=t.socialStats[e];delete t.socialStats}return t.viewStatsUrl=play.url({alias:"com.linkedin.pulse.controllers.AnalyticsController.getAnalytics",arg0:r.getIdFromUrn(t.pubArticleUrn)}),t.viewStatsUrl=play.addQueryParameter(t.viewStatsUrl,"trk","author-posts-view-stats"),t}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(99),n(7),n(73),n(1),n(130)],r=function(t,e,n,i,r,o,s){return e.LayoutView.extend({template:"templates/walter/article/actionsHeader",className:"layout-container-large",ui:{socialStats:".social-stats-wrapper"},regions:{socialStats:"@ui.socialStats"},behaviors:function(){var t=this.getOption("model");return{ButtonBookmark:{behaviorClass:n.ButtonBookmarkBehavior,model:t},ButtonFollow:{behaviorClass:n.ButtonFollowBehavior,model:t.get("authorModel")||null,followType:r.FOLLOW_TYPES.AUTHOR},ButtonLike:{behaviorClass:n.ButtonLikeBehavior,model:t,ui:{buttonBookmark:".button-bookmark"}},ButtonComments:{behaviorClass:n.ButtonCommentBehavior,buttonComment:".button-comment"},SocialSharing:{behaviorClass:n.SocialSharingBehavior,selector:".article-actions-control .share-button",url:t.get("url"),title:t.get("title"),text:t.get("summary"),authorTwitterHandle:t.get("authorTwitterHandle"),selectedText:t.get("selectedText")},ArtDecoTooltip:{behaviorClass:n.ArtDecoTooltipBehavior,selector:"#actions-header-article .tooltip-trigger"},ActionTrackingBehavior:{behaviorClass:n.ActionTrackingBehavior,model:t,events:"click",triggerParent:!0,selectors:[{value:".js-dropdown:not(.active) .button-share",actionCategory:r.ACTION_CATEGORIES.EXPAND,actionType:r.ACTION_TYPES.EXPAND_SHARE,controlUrn:r.CONTROL_URN.SHARE_INTENT},{value:".js-dropdown-content .share-facebook",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:r.CONTROL_URN.SHARE_FB},{value:".js-dropdown-content .share-twitter",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:r.CONTROL_URN.SHARE_TWITTER},{value:".js-dropdown-content .share-linkedin",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_INTERNAL,controlUrn:r.CONTROL_URN.SHARE_INTERNAL},{value:".button-comment",actionCategory:r.ACTION_CATEGORIES.EXPAND,actionType:r.ACTION_TYPES.EXPAND_COMMENT,controlUrn:r.CONTROL_URN.COMMENT_INTENT},{value:".button-write",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_WRITE_POST,controlUrn:r.CONTROL_URN.WRITE},{value:".button-edit-post",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_EDIT_POST,controlUrn:r.CONTROL_URN.EDIT},{value:".button-stats",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_ANALYTICS,controlUrn:r.CONTROL_URN.ANALYTICS}]}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(88),n(74),n(182),n(185),n(186),n(7),n(98)],r=function(t,e,n,i,r,o,s,a,l,c){var u={buttonSize:"large",isSmall:!1},h=r.cache,d=r.lixes,f=r.modal,p=r.app,g=d.request(d.IS_ENABLED,l.LIX_KEYS.SHOW_TOOLTIPS),v=d.request(d.IS_ENABLED,l.LIX_KEYS.CHINA_GEOLOCATION),m=d.request(d.IS_ENABLED,l.LIX_KEYS.HIDE_SHARE_COUNT_ON_ARTICLE),y=l.TRIGGERS.SHOW_LIKES,E={titleKey:"i18n_likes",i18nTemplate:"templates/walter/shared/strings/globalStrings",showFooter:!1};return n.Object.extend({initialize:function(t,n){var r=e.has(t,"permalink")?t.permalink:t.urn;this.isEditor=!!e.has(t,"isEditor")&&t.isEditor,this.currentMember=p.request(p.CURRENT_MEMBER),this.lixHideShareCount=e.has(t,"lixHideShareCount")?t.lixHideShareCount:m,this.model=i.findOrPersist(i.Article.Social+r,function(){return n||new o(t)})},bindEvents:function(){this.listenTo(this.view,y,this.showLikesModal.bind(this)),h.on(h.CLEAR_LIKE,this.deleteLikesController.bind(this))},fetchModel:function(){return this.model.has("title")?t.Deferred().resolve():this.model.fetch()},getView:function(t){return t=e.defaults(t||{},u),this.view||(this.view=new s({model:this.model,templateHelpers:{showStats:this.getOption("isAuthor"),showViews:this.getOption("isEditor"),lixHideShareCount:this.getOption("lixHideShareCount"),buttonSize:t.buttonSize,hasActions:this.getOption("hasActions"),showTooltips:g,china:v,isGuest:this.currentMember.get("isGuest"),isSmall:t.isSmall,commentingDisabled:this.getOption("commentingDisabled")}}),this.bindEvents()),this.view},showLikesModal:function(){this.likesController||(this.likesController=new a({urn:this.model.get("urn")})),this.likesController.fetchCollection().then(function(){f.trigger(f.SHOW,e.extend({},{view:this.likesController.getView(this.model)},E))}.bind(this))},deleteLikesController:function(){this.likesController&&delete this.likesController},onDestroy:function(){h.off(h.CLEAR_LIKE)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(99),n(74),n(7),n(73)],r=function(t,e,n,i,r){n.lixes;return t.ItemView.extend({initialize:function(){this.model=this.getOption("model")},modelEvents:{"change:totalLikes":"updateLikesCount","change:totalComments":"updateCommentsCount"},template:"templates/walter/shared/socialStatsActions",ui:{countLikes:".count-likes",countComments:".count-comments"},updateLikesCount:function(){this.ui.countLikes.text(this.model.get("totalLikes"))},updateCommentsCount:function(){this.ui.countComments.text(this.model.get("totalComments"))},behaviors:function(){var t=this.getOption("model");return{ButtonBookmark:{behaviorClass:e.ButtonBookmarkBehavior,model:t},ButtonComments:{behaviorClass:e.ButtonCommentBehavior,buttonComment:".button-comment, .trigger-comments"},ButtonLike:{behaviorClass:e.ButtonLikeBehavior,model:t},SocialSharing:{behaviorClass:e.SocialSharingBehavior,url:t.get("url"),title:t.get("title"),text:t.get("summary"),authorTwitterHandle:t.get("authorTwitterHandle"),selectedText:t.get("selectedText")},ArtDecoTooltip:{behaviorClass:e.ArtDecoTooltipBehavior,selector:".social-stats .tooltip-trigger"},ActionTrackingBehavior:{behaviorClass:e.ActionTrackingBehavior,model:t,events:"click",triggerParent:!0,selectors:[{value:".button-comment",actionCategory:r.ACTION_CATEGORIES.EXPAND,actionType:r.ACTION_TYPES.EXPAND_COMMENT,controlUrn:r.CONTROL_URN.COMMENT_INTENT},{value:".js-dropdown:not(.active) .button-share",actionCategory:r.ACTION_CATEGORIES.EXPAND,actionType:r.ACTION_TYPES.EXPAND_SHARE,controlUrn:r.CONTROL_URN.SHARE_INTENT},{value:".js-dropdown-content .share-facebook",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:r.CONTROL_URN.SHARE_FB},{value:".js-dropdown-content .share-twitter",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:r.CONTROL_URN.SHARE_TWITTER},{value:".js-dropdown-content .share-linkedin",actionCategory:r.ACTION_CATEGORIES.SHARE,actionType:r.ACTION_TYPES.SHARE_INTERNAL,controlUrn:r.CONTROL_URN.SHARE_INTERNAL},{value:".button-stats",actionCategory:r.ACTION_CATEGORIES.SELECT,actionType:r.ACTION_TYPES.CLICK_ANALYTICS,controlUrn:r.CONTROL_URN.ANALYTICS}]}}},triggers:{"click .trigger-likes-modal":"show:likes:event"},onShowLikesEvent:function(){this.trigger(i.TRIGGERS.SHOW_LIKES)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(88),n(187),n(189)],r=function(t,e,n,i,r){return e.Object.extend({initialize:function(t){var e={data:{urn:t.urn}};this.collection=new i(null,e)},fetchCollection:function(){return this.collection.fetch()},getView:function(t){return new r({collection:this.collection,emptyViewOptions:{model:t}})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(80),n(188),n(104)],r=function(t,e,n,i){return e.Collection.extend({initialize:function(e,n){var i={data:{start:0,count:20,urn:null},remove:!1};n&&n.data&&(i.data=t.defaults(n.data,i.data)),this.fetchOptions=i},url:play.buildUrlSimple(i.v1.likes.get),model:n,fetch:function(n){return n=t.extend({data:{},remove:!1},n||{}),n.data=t.extend({},this.fetchOptions.data,n.data),n.data=t.pick(n.data,function(t){return null!==t}),e.Collection.prototype.fetch.call(this,n)},parse:function(t){var e=t.elements;return this.setFetchOptions(e.length>0),e},setFetchOptions:function(t){t?this.fetchOptions.data.start+=this.fetchOptions.data.count:this.trigger("complete")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(80)],r=function(t){return t.Model.extend({parse:function(t){return t&&t.liker}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80),n(190),n(191),n(137),n(145)],r=function(t,e,n,i,r,o){return t.CollectionView.extend({tagName:"ul",className:"article-likes",childView:n,emptyView:i,behaviors:{InfiniteScroll:{scrollSelector:"#modal-body",behaviorClass:r,threshold:300}},onPageNext:function(){var t=this.addChild(null,o);this.collection.fetch().always(function(){t.destroy()})}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79)],r=function(t,e){return e.ItemView.extend({template:"templates/walter/shared/userBaseInfo",tagName:"li",className:"article-like"})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(99)],r=function(t,e){return t.ItemView.extend({tagName:"li",className:"no-likes",template:"templates/walter/article/likeFirst",behaviors:function(){var t=this.getOption("model");return{ButtonLike:{behaviorClass:e.ButtonLikeBehavior,model:t}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(80),n(99),n(4),n(1),n(7),n(73),n(130),n(74)],r=function(t,e,n,i,r,o,s,a,l,c){var u=c.lixes,h=r.getStickyHeaderOffsets(),d=u.request(u.IS_ENABLED,s.LIX_KEYS.HIGHLIGHT_TO_SHARE);return e.LayoutView.extend({template:"templates/walter/article/index",attributes:{id:"pulse-article-wrapper",class:"pulse-content-wrapper"},regions:{actionsHeader:"#actions-header-article",socialStats:"#social-stats",comments:"#comments",relatedContentHorizontalImages:"#related-content-horizontal-images",relatedContentVerticalList:"#related-content-vertical-list",socialActions:"#social-actions",shareButton:"#floating-share-button",sharePrompt:"#share-prompt",topContent:"#top-content"},behaviors:function(){var t=this.getOption("model"),e={Dropdown:{behaviorClass:i.DropdownBehavior},FlagArticle:{behaviorClass:i.FlagArticleBehavior},StickyHeader:{behaviorClass:i.StickyHeaderBehavior,stickyEl:"#actions-header-article",triggerEl:"#article-header",offsetTop:h.top,offsetSubNav:h.subNav,offsetSubNavDown:h.subNavDown,wait:10},LazyLoadMedia:{behaviorClass:i.LazyLoadMediaBehavior},DwellTimeTracking:{behaviorClass:i.DwellTimeTrackingBehavior},ButtonFollow:{behaviorClass:i.ButtonFollowBehavior,model:t.get("authorModel"),buttonFollow:".pulse-article .button-follow",followType:a.FOLLOW_TYPES.AUTHOR},ArtDecoTooltip:{behaviorClass:i.ArtDecoTooltipBehavior,selector:".pulse-article .tooltip-trigger"},ArticleActionTrackingBehavior:{behaviorClass:l.ArticleActionTrackingBehavior,model:t,events:"click",selectors:[{value:".article-author-wrapper .entity-image-user",actionCategory:a.ACTION_CATEGORIES.SELECT,actionType:a.ACTION_TYPES.CLICK_USER_PROFILE,controlUrn:a.CONTROL_URN.USER_PROFILE},{value:".article-author-wrapper .entity-name a",actionCategory:a.ACTION_CATEGORIES.SELECT,actionType:a.ACTION_TYPES.CLICK_USER_PROFILE,controlUrn:a.CONTROL_URN.USER_PROFILE},{value:".flag-article",actionCategory:a.ACTION_CATEGORIES.EXPAND,actionType:a.ACTION_TYPES.EXPAND_REPORT_ARTICLE,controlUrn:a.CONTROL_URN.REPORT_ARTICLE},{value:".channel-link",actionCategory:a.ACTION_CATEGORIES.VIEW,actionType:a.ACTION_TYPES.VIEW_INTEREST_FEED,controlUrn:a.CONTROL_URN.INTEREST_FEED}],modelEventOptions:[{eventName:s.TRIGGERS.CHANGE_LIKED,actionCategory:function(t){return t.get("isLiked")?a.ACTION_CATEGORIES.LIKE:a.ACTION_CATEGORIES.UNLIKE},actionType:function(t){return t.get("isLiked")?a.ACTION_TYPES.LIKE_ARTICLE:a.ACTION_TYPES.UNLIKE_ARTICLE},controlUrn:a.CONTROL_URN.LIKE_TOGGLE}]}};return d&&(e.TextSelection={behaviorClass:i.TextSelectionBehavior,selector:s.ARTICLE_CONTENT_SELECTOR}),e},onAttach:function(){window.scrollTo(0,0),this.triggerMethod("lazy:load:media")},onShow:function(){r.resetGlobalNav(),this.triggerMethod("lazy:load:media")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79)],r=function(t,e){return e.ItemView.extend({initialize:function(){this.setBestImage()},template:"templates/walter/article/metaData",setBestImage:function(){var e=this.model.get("images"),n=e&&t.min(e,function(t){return t.width});n===1/0&&(n=null),n&&this.model.set("bestImage",n)},onRender:function(){this.$el=this.$el.children(),this.setElement(this.$el)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(99)],r=function(t,e,n){return e.ItemView.extend({template:"templates/walter/article/sharePrompt",className:"share-prompt",ui:{dismissButton:".dismiss"},events:{"click @ui.dismissButton":"onClickDismiss"},behaviors:function(){var t=this.getOption("model");return{SocialSharing:{behaviorClass:n.SocialSharingBehavior,url:t.get("url"),title:t.get("title"),text:t.get("summary"),authorTwitterHandle:t.get("authorTwitterHandle"),selectedText:t.get("selectedText")}}},onShow:function(){this.$el.delay(500).slideDown(600).fadeIn(750)},onClickDismiss:function(){this.$el.delay(250).slideUp(600).fadeOut(750)},onDestroy:function(){this.$el.remove()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(99),n(7),n(73)],r=function(t,e,n,i){return t.ItemView.extend({template:"templates/walter/shared/socialActions",className:"social-actions-wrapper",behaviors:function(){var t=this.getOption("model");return{ButtonBookmark:{behaviorClass:e.ButtonBookmarkBehavior,model:t},ButtonLike:{behaviorClass:e.ButtonLikeBehavior,model:t},ButtonComments:{behaviorClass:e.ButtonCommentBehavior},SocialSharing:{behaviorClass:e.SocialSharingBehavior,url:t.get("url"),title:t.get("title"),text:t.get("summary"),authorTwitterHandle:t.get("authorTwitterHandle")},ArtDecoTooltip:{behaviorClass:e.ArtDecoTooltipBehavior,selector:".tooltip-trigger"},ActionTrackingBehavior:{behaviorClass:e.ActionTrackingBehavior,model:t,events:"click",triggerParent:!0,selectors:[{value:".js-dropdown:not(.active) .button-share",actionCategory:i.ACTION_CATEGORIES.EXPAND,actionType:i.ACTION_TYPES.EXPAND_SHARE,controlUrn:i.CONTROL_URN.SHARE_INTENT},{value:".js-dropdown-content .share-facebook",actionCategory:i.ACTION_CATEGORIES.SHARE,actionType:i.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:i.CONTROL_URN.SHARE_FB},{value:".js-dropdown-content .share-twitter",actionCategory:i.ACTION_CATEGORIES.SHARE,actionType:i.ACTION_TYPES.SHARE_EXTERNALLY,controlUrn:i.CONTROL_URN.SHARE_TWITTER},{value:".js-dropdown-content .share-linkedin",actionCategory:i.ACTION_CATEGORIES.SHARE,actionType:i.ACTION_TYPES.SHARE_INTERNAL,controlUrn:i.CONTROL_URN.SHARE_INTERNAL},{value:".button-comment",actionCategory:i.ACTION_CATEGORIES.EXPAND,actionType:i.ACTION_TYPES.EXPAND_COMMENT,controlUrn:i.CONTROL_URN.COMMENT_INTENT}]}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(88),n(197),n(198)],r=function(t,e,n,i,r){return e.Object.extend({initialize:function(t){t=t||{};var e={data:{permalink:t.permalink,contentType:t.contentType||null,template:t.template||null,returnCount:t.returnCount||null}};this.collection=n.findOrPersist(n.Article.Related+t.contentType+":"+t.permalink,function(){return new i(null,e)}.bind(this))},fetchCollection:function(){return this.collection.length>0?t.Deferred().resolve():this.collection.fetch()},getView:function(){return this.view||(this.view=new r({collection:this.collection,template:this.options.template,returnCount:this.options.returnCount,authorName:this.options.authorName})),this.view}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(80),n(104)],r=function(t,e,n){return e.Collection.extend({initialize:function(e,n){var i={data:{start:0,count:20,height:120,width:360,media:"t"}};n&&n.data&&(i.data=t.defaults(n.data,i.data)),this.fetchOptions=i},url:n.v1.relatedContent.get,fetch:function(n){return n=t.extend({data:{},remove:!1},n),n.data=t.extend({},this.fetchOptions.data,n.data),n.data=t.pick(n.data,function(t){return null!==t}),e.Collection.prototype.fetch.call(this,n)},parse:function(e){var n=e.elements,i=this.fetchOptions.data.returnCount||null;return this.reason=e.reason||"",n.map(function(t){return t.permalink||(t.source.indexOf("://")>-1?t.source=t.source.split("/")[2]:t.source=t.source.split("/")[0]),t.source=t.source.replace(" on LinkedIn",""),t}),t.first(n,i)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(74),n(199),n(7)],r=function(t,e,n,i){var r=e.lixes,o=r.request(r.GET_VALUE,i.LIX_KEYS.SHOW_RELATED_CONTENT),s=o===i.RELATED_CONTENT.VERTICAL_LIST_NUMBERED_COLUMNS,a=o===i.RELATED_CONTENT.NUMBERED_COLUMNS,l=o===i.RELATED_CONTENT.HORIZONTAL_IMAGES,c=o===i.RELATED_CONTENT.SIMPLE_VERTICAL_LIST,u=r.request(r.IS_ENABLED,i.LIX_KEYS.USE_RELATED_CONTENT_KEYS);return t.CompositeView.extend({template:function(t){return{template:t&&t.template}}(),className:"related-content-inner",templateHelpers:function(){return{authorName:this.options&&this.options.authorName||"",reason:this.collection&&this.collection.reason||"",relatedContent:o,relatedContentKeys:u,showRelatedVerticalListNumberedColumns:s,showRelatedNumberedColumns:a,showRelatedSimpleVerticalList:c,showRelatedHorizontalImages:l}},childViewContainer:".related-content-list",childViewOptions:function(){return{authorName:this.options.authorName}},childView:n})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(73),n(130),n(99),n(1)],r=function(t,e,n,i,r){return t.ItemView.extend({behaviors:function(){var t=this.getOption("model"),r={ArticleActionTrackingBehavior:{behaviorClass:n.ArticleActionTrackingBehavior,model:t,events:"click",selectors:[{value:".related-content-image",actionCategory:e.ACTION_CATEGORIES.SELECT,actionType:e.ACTION_TYPES.CLICK_RELATED,controlUrn:e.CONTROL_URN.RELATED},{value:".related-content-title",actionCategory:e.ACTION_CATEGORIES.SELECT,actionType:e.ACTION_TYPES.CLICK_RELATED,controlUrn:e.CONTROL_URN.RELATED}]},ImpressionTrackingBehavior:{behaviorClass:i.ImpressionTrackingBehavior,trackingAttr:"trackingId",fullRefresh:!0}};return r},tagName:"li",className:"related-content-item",template:"templates/walter/article/relatedContentItem",onTrackImpression:function(t){t.trackablePulseRecObject={objectUrn:this.model.get("urn"),trackingId:t.trackingId||r.generateTrackingId()},delete t.trackingId,delete t.gridPosition,t.listPosition={index:1},r.trackImpressionEvent(e.EVENTS.ARTICLE.REC_STORY_IMPRESSION_EVENT,"entities",t)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(99)],r=function(t,e){return t.LayoutView.extend({template:"templates/walter/shared/buttonShare",behaviors:function(){var t=this.getOption("model");return{SocialSharing:{behaviorClass:e.SocialSharingBehavior,url:t.get("url"),title:t.get("title"),text:t.get("summary"),authorTwitterHandle:t.get("authorTwitterHandle"),selectedText:t.get("selectedText")}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(5),n(6),n(83),n(74),n(88),n(152),n(205),n(202),n(136),n(203),n(204),n(181),n(7)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f){var p=i.getRegion("content"),g=i.getRegion("banner"),v=r.page,m=r.lixes,y=r.app,E={embedId:f.EMBEDDED_AUTHOR_JSON_ID},w={embedId:f.EMBEDDED_FEED_JSON_ID};return t.Object.extend({controllerOptions:["id","contentPool"],initialize:function(t){this.urn=s.createContentPoolUrn(t.contentPool,t.id),this.mergeOptions(t,this.controllerOptions),this.initializeAuthorModel(),this.fetchAuthorModel().then(function(){v.trigger(v.TITLE,this.authorModel.get("name"))}.bind(this)),this.initializeCollection(t),this.initializeViews(),this.renderViews(),this.collection.length?this.showStreamView(this.streamView):this.fetchCollection().then(function(){this.showStreamView(this.streamView)}.bind(this))},initializeAuthorModel:function(){var t={};isNaN(this.id)?(t.vanityName=this.id,t.channelVanity=!0):t.urn=this.urn,this.authorModel=o.findOrPersist(o.Pivot.Header+this.contentPool+(this.id?":"+this.id:""),function(){return new d(t)})},initializeCollection:function(t){var e=o.Pivot.Collection+this.contentPool+(this.id?":"+this.id:""),n={contentPool:this.contentPool,data:{id:t.id}};this.collection=o.findOrPersist(e,function(){return new a(null,n)}.bind(this))},fetchCollection:function(){return this.collection.fetch(w)},initializeViews:function(){this.currentMember=y.request(y.CURRENT_MEMBER),this.actionsHeaderView=new h({model:this.authorModel,templateHelpers:{removeFeed:m.request(m.IS_ENABLED,f.LIX_KEYS.REMOVE_FEED)}}),this.bannerView=new u({model:this.authorModel,templateHelpers:{removeFeed:m.request(m.IS_ENABLED,f.LIX_KEYS.REMOVE_FEED),isGuest:this.currentMember.get("isGuest")}}),this.pivotLayoutView=new l,this.streamView=new c({collection:this.collection}),this.pivotLayoutView.setRegionViews({actionsHeader:this.actionsHeaderView})},showStreamView:function(t){this.pivotLayoutView.getRegion("stream").show(t,{preventDestroy:!0})},fetchAuthorModel:function(){return this.authorModel.fetch(E)},renderViews:function(){g.show(this.bannerView),p.show(this.pivotLayoutView),this.pivotLayoutView.showRegionViews()},onDestroy:function(){g.empty()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(80),n(6),n(99),n(133),n(4),n(130)],r=function(t,e,n,i,r,o,s,a){var l=s.getStickyHeaderOffsets();return e.LayoutView.extend(i.extend({},o,{template:"templates/walter/pivot/index",attributes:{id:"pulse-feed-wrapper",class:"pulse-content-wrapper pivot"},regions:{actionsHeader:"#actions-header-pivot",stream:"#feed-stream-region",header:"#feed-header-region",nav:"#feed-nav-region"},behaviors:{Dropdown:{behaviorClass:r.DropdownBehavior,trigger:".filters-trigger",content:".filters-list",dropdown:".filters-dropdown",focusSelector:".filters-menu"},StickyHeader:{behaviorClass:r.StickyHeaderBehavior,stickyEl:"#actions-header-pivot",triggerEl:"#content-banner",offsetTop:l.top,offsetSubNav:l.subNav,offsetSubNavDown:l.subNavDown},FeedActionTrackingBehavior:{behaviorClass:a.FeedActionTrackingBehavior}}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(99),n(130),n(73)],r=function(t,e,n,i,r){return e.ItemView.extend({template:"templates/walter/pivot/banner",className:"feed-banner feed-banner-pivot",modelEvents:{change:"render"},behaviors:function(){return{ButtonFollow:{behaviorClass:n.ButtonFollowBehavior,model:this.getOption("model"),followType:r.FOLLOW_TYPES.CHANNEL},FeedActionTrackingBehavior:{behaviorClass:i.FeedActionTrackingBehavior}}}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";
i=[n(5),n(79),n(99),n(73)],r=function(t,e,n,i){return e.ItemView.extend({template:"templates/walter/pivot/actionsHeader",behaviors:function(){return{ButtonFollow:{behaviorClass:n.ButtonFollowBehavior,model:this.getOption("model"),followType:i.FOLLOW_TYPES.CHANNEL}}},modelEvents:{sync:"render"}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150)],r=function(t,e,n,i,r){return r.extend({url:function(){return play.buildPath(i.v1.feed.get,this.contentPool)},initialize:function(t,e){this.contentPool=e.contentPool,r.prototype.initialize.call(this,t,e)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(6),n(79),n(74),n(1)],r=function(t,e,n,i,r){return e.ItemView.extend({initialize:function(){this.bindedEmpty=t.bind($.prototype.empty,this.$el),this.bindedUpdateAndRender=t.bind(this.updateAndRender,this),n.router.on(n.router.BEFORE,this.bindedEmpty),n.router.on(n.router.AFTER,this.bindedUpdateAndRender)},template:"templates/walter/shared/topAd",updateAndRender:function(){var t=i.getCurrentPageKey();this.model.set("pageKey",t),this.render(!0)},render:function(t){return!!t&&void e.ItemView.prototype.render.call(this)},onDestroy:function(){n.router.off(n.router.BEFORE,this.bindedEmpty),n.router.off(n.router.AFTER,this.bindedUpdateAndRender)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(80)],r=function(t){return t.Model.extend({defaults:{pageKey:null}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(5),n(6),n(83),n(88),n(74),n(210),n(213),n(220),n(209),n(217),n(218),n(219),n(181),n(7),n(96)],r=function(t,e,n,i,r,o,s,a,l,c,u,h,d,f,p,g){var v,m=i.getRegion("banner"),y=i.getRegion("content"),E={embedId:p.EMBEDDED_AUTHOR_JSON_ID},w={},_=!1,T=e("#pulse-author-wrapper"),b=o.page,C=o.lixes;return w[p.AUTHOR_STATES.POSTS]=s,w[p.AUTHOR_STATES.FOLLOWERS]=a,w[p.AUTHOR_STATES.FOLLOWING]=l,t.Object.extend({controllerOptions:["state","vanityName"],initialize:function(t){v=t&&t.isSSR||!1,this.currentMember=o.app.request(o.app.CURRENT_MEMBER),this.mergeOptions(t,this.controllerOptions),this.initializeAuthorModel(t).then(function(){this.authorName=this.authorModel.get("name"),this.setPageTitle(this.state)}.bind(this)),this.initializeViews(this.state),this.renderViews(),this.childControllers={},this.initializeChildController(t),o.cache.on(o.cache.CLEAR_FOLLOWING,function(){_=!0},this)},initializeChildController:function(t){var n,i=t.state,r=p.AUTHOR_STATES.FOLLOWING;_&&i===r&&(delete this.childControllers[r],_=!1),this.childControllers[i]?this.childControllers[i].initializeViews():this.childControllers[i]=new w[i](t),n=this.childControllers[i].collection.length?e.Deferred().resolve():this.childControllers[i].fetchCollection(),n.done(function(){this.showStreamView(this.childControllers[i].streamView),o.router.trigger(o.router.PAGE_RENDERED)}.bind(this))},initializeAuthorModel:function(t){return this.authorModel=r.findOrPersist(r.Author.Profile+t.vanityName,function(){return new f(t)}),this.fetchAuthorModel(E)},initializeViews:function(t){this.authorLayoutView=new h({el:v?T:null}),this.bannerView=new d({model:this.authorModel,templateHelpers:{removeFeed:C.request(C.IS_ENABLED,p.LIX_KEYS.REMOVE_FEED)}}),this.actionsHeaderView=new c({model:this.authorModel,templateHelpers:{removeFeed:C.request(C.IS_ENABLED,p.LIX_KEYS.REMOVE_FEED)}}),this.headerView=new u({model:this.authorModel,state:t,templateHelpers:{removeAuthorPages:C.request(C.IS_ENABLED,p.LIX_KEYS.REMOVE_AUTHOR_PAGES)}}),this.authorLayoutView.setRegionViews({header:this.headerView,actionsHeader:this.actionsHeaderView})},showStreamView:function(t){this.authorLayoutView.getRegion("content").show(t,{preventDestroy:!0})},fetchAuthorModel:function(){return this.authorModel.fetch(E)},renderViews:function(){m.show(this.bannerView),v?(y.attachViewSSR(this.authorLayoutView),this.authorLayoutView.triggerMethod("attach")):y.show(this.authorLayoutView),this.authorLayoutView.showRegionViews()},onDestroy:function(){this.authorLayoutView.destroy(),n.each(this.childControllers,function(t){this.stopListening(t),t.destroy()},this),m.empty()},onRouteChange:function(t){var e;this.vanityName!==t.vanityName&&(n.each(n.keys(this.childControllers),function(t){delete this.childControllers[t]}.bind(this)),this.initialize(t)),e=t&&t.state,this.authorLayoutView.getRegion("content").showLoading(),this.initializeChildController(t),this.headerView.setActiveState(e),this.setPageTitle(e)},setPageTitle:function(t){var e=this.authorName?[this.authorName]:[];switch(t){case p.AUTHOR_STATES.POSTS:e.push(g("title_posts"));break;case p.AUTHOR_STATES.FOLLOWERS:e.push(g("title_followers"));break;case p.AUTHOR_STATES.FOLLOWING:e.push(g("title_following"))}b.trigger(b.TITLE,e)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(79),n(99),n(73)],r=function(t,e,n,i){return e.ItemView.extend({template:"templates/walter/author/actionsHeader",behaviors:function(){return{ButtonFollow:{behaviorClass:n.ButtonFollowBehavior,model:this.getOption("model"),followType:i.FOLLOW_TYPES.AUTHOR}}},modelEvents:{sync:"render"}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(88),n(135),n(211),n(212),n(7)],r=function(t,e,n,i,r){var o={embedId:r.EMBEDDED_FEED_JSON_ID};return e.extend({initializeCollection:function(e){var i={data:{vanityName:e.vanityName}};this.collection=t.findOrPersist(t.Author.Articles+e.vanityName,function(){return new n(null,i)})},initializeViews:function(){this.streamView=new i({collection:this.collection})},fetchCollection:function(){return this.collection.fetch(o)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(150)],r=function(t,e,n,i,r){return r.extend({url:function(){return play.buildUrlSimple(i.v1.authorArticles.get)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(7),n(136)],r=function(t,e){return e.extend({childViewOptions:{whichFeed:t.FEED_TYPES.AUTHOR}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(88),n(214),n(216),n(7)],r=function(t,e,n,i,r){var o={embedId:r.EMBEDDED_FEED_JSON_ID};return t.Object.extend({initialize:function(t){this.initializeCollection(t),this.initializeViews()},initializeCollection:function(t){var i={data:{vanityName:t.vanityName}};this.collection=e.findOrPersist(e.Author.Followers+t.vanityName,function(){return new n(null,i)})},initializeViews:function(){this.streamView=new i({collection:this.collection})},fetchCollection:function(){return this.collection.fetch(o)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(215)],r=function(t,e,n,i,r){return r.extend({url:play.buildUrlSimple(i.v1.followers.get)})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(181)],r=function(t,e,n,i){return n.Collection.extend({initialize:function(t,n){var i={data:{start:0,count:10,memberToken:null},remove:!1};n&&n.data&&(i.data=e.defaults(n.data,i.data)),this.fetchOptions=e.clone(i)},model:i,parse:function(t){var e=t.elements,n=e.length,i={};return i.responseLength=n,this.setFetchOptions(i,n>0),e},fetch:function(i){var r=null;try{r=play.getEmbeddedContent(i.embedId)}catch(t){}return r?(this.set(this.parse(r)),t.when()):(i=e.extend({data:{},remove:!1},i),i.data=e.extend({},this.fetchOptions.data,i.data),i.data=e.pick(i.data,function(t){return null!==t}),n.Collection.prototype.fetch.call(this,i))},setFetchOptions:function(t,e){e?this.fetchOptions.data.start+=this.fetchOptions.data.count:this.trigger("complete")}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(80),n(147),n(148),n(137),n(7)],r=function(t,e,n,i,r,o){return t.CollectionView.extend({childViewOptions:{whichFeed:o.FEED_TYPES.AUTHOR_CONNECTIONS},tagName:"ul",className:"author-connections",getChildView:function(t){return t.get("entityType")===o.FEED_RECOMMENDATION_ENTITY_TYPES.COMPANY?i:n},behaviors:{InfiniteScroll:{behaviorClass:r,threshold:300,checkOnStart:!1}},onPageNext:function(){this.collection.fetch()}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(99),n(175),n(4),n(73)],r=function(t,e,n,i,r,o,s){var a=o.getStickyHeaderOffsets();return n.ItemView.extend(e.extend({},r,{ui:{posts:".js-posts",followers:".js-followers",following:".js-following"},template:"templates/walter/author/header",tagName:"header",className:"feed-header",attributes:{role:"banner"},behaviors:function(){return{ButtonFollow:{behaviorClass:i.ButtonFollowBehavior,model:this.getOption("model"),followType:s.FOLLOW_TYPES.AUTHOR},StickyHeader:{behaviorClass:i.StickyHeaderBehavior,stickyEl:"#actions-header-author",triggerEl:"#author-header-region",offsetTop:a.top,offsetSubNav:a.subNav,offsetSubNavDown:a.subNavDown}}},modelEvents:{"change:totalFollowings":"render"}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(79),n(80),n(133)],r=function(t,e,n,i,r){return n.LayoutView.extend(e.extend({},r,{template:"templates/walter/author/index",attributes:{id:"pulse-author-wrapper",class:"pulse-content-wrapper"},regions:{actionsHeader:"#actions-header-author",header:"#author-header-region",content:"#author-content-region"}}))}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79)],r=function(t){return t.ItemView.extend({template:"templates/walter/author/banner",className:"feed-banner feed-banner-author"})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(79),n(88),n(221),n(216),n(7)],r=function(t,e,n,i,r){var o={embedId:r.EMBEDDED_FEED_JSON_ID};return t.Object.extend({initialize:function(t){this.initializeCollection(t),this.initializeViews()},initializeCollection:function(t){var i={data:{vanityName:t.vanityName}};this.collection=e.findOrPersist(e.Author.Following+t.vanityName,function(){return new n(null,i)})},initializeViews:function(){this.streamView=new i({collection:this.collection})},fetchCollection:function(){return this.collection.fetch(o)}})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r,i,r;i=[e],r=function(e){"use strict";i=[n(5),n(6),n(80),n(104),n(215)],r=function(t,e,n,i,r){return r.extend({url:play.buildUrlSimple(i.v1.following.get)})}.apply(e,i),!(void 0!==r&&(t.exports=r))}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i,r;i=[n(5)],r=function(t){function e(){this.xhrPool=[],this.isSetup=!1}return e.prototype.setup=function(){if(this.isSetup)throw new Error("Setup has already occurred.");var e=t(document);e.ajaxSend(t.proxy(function(t,e,n){this.xhrPool.push(e)},this)),e.ajaxComplete(t.proxy(function(e,n,i){this.xhrPool=t.grep(this.xhrPool,function(t){return t!==n})},this)),this.isSetup=!0},e.prototype.abortAll=function(){t.each(this.xhrPool,function(t,e){e.abort()})},{getInstance:function(){return this.instance||(this.instance=new e),this.instance}}}.apply(e,i),!(void 0!==r&&(t.exports=r))},function(t,e,n){var i;i=function(){return function(t,e){var n="";return dust.render(t,e,function(t,e){if(t)throw t;n=e}),n}}.call(e,n,e,t),!(void 0!==i&&(t.exports=i))}]);
