(function(z){
'use strict';var z7=function(a){z.L.call(this);this.aa(a)},A7=function(a){z.L.call(this);this.aa(a)},C6a=function(a,b){this.user=a;this.quotes=b},D6a=function(a,b){b=b.g();if(b===Number||b.$isProtoEnum)return a=Number(a),Number.isNaN(a)?void 0:a;if(b===Boolean)return!!a;if(b===String)return String(a)},B7=function(a){return a.$B.best||null},C7=function(a,b){b=b.filter(function(a){return"anon"!=a.mb()});b=z.bb(b,function(a){return a.mb()},a);return z.fb(b).map(function(a){return new C6a(a[0].hc(),a)},
a)},E6a=function(a,b,c,d){return(0,z.Lc)(a.du[b.name]||[],function(a){return a.Fd()==c&&a.De()==d})},D7=function(){this.HH=1},E7=function(a){z.wh.call(this);this.aa(a)},F6a=function(a,b){return z.K(a,"slots",b)},G6a=function(a,b){return z.K(a,"requestContext",b)},F7=function(a){z.L.call(this);this.aa(a)},G7=function(a){return z.J(a,"inResponseToMediaResource")},H7=function(a){return z.J(a,"mediumQuote")},H6a=function(a,b){a.XQ=b;return a},I7=function(a,b){return B7(a)?z.OC(B7(a)).filter(function(a){return this.k6(a)==
b},a):[]},I6a=function(a){a=new Date(a);return Date.UTC(a.getFullYear(),a.getMonth()+1,1)-1},J6a=function(a){var b=z.LM(a.lk.Et,a.lk.Xr(),a.um.Et,a.um.Xr()).Ia().trim();0<a.lk.Xr()&&(b="…"+b);var c=z.zD(a.Cc,a.um.Et);a.um.Xr()<c.Ia().length&&(b+="…");return b},K6a=function(a){var b=z.sB(a.rAa),c=a.lk.Et,d=c?b.indexOf(c):-1,e=(c=a.um.Et)?b.indexOf(c):-1;if(-1==d||-1==e)return"";for(c=[];d<=e;d++)c.push(z.zD(a.Cc,b[d]));b=z.Ma(c);a=z.rt(c.indexOf(c[0]),a.lk.Xr(),c.indexOf(b),a.um.Xr(),!1);return z.oka(new z.et(z.$l,
z.lEa),c,a,!0)},L6a=function(a,b,c){c=c.xy;b=b.getAttribute("name").split(" ");var d=z.qb(b);a=(a.du[c.name]||[]).filter(function(a){return d[a.fj()]});return a.length?z.hwa(a):null},M6a=function(a,b,c,d){b=E6a(a,b,c,d);return C7(a,b)},N6a=function(a,b){var c=0;(a.du[b]||[]).forEach(function(a){"anon"==a.mb()&&(c+=a.Ne())});return c},O6a=function(a,b,c){var d=a.na.la(z.TDa,{postId:b},{filter:c});return z.lD(a,d,function(){return this.Cb.Rl(d)})},P6a=function(a,b){return z.sa(b)in a.KA},Q6a=function(a,
b){z.Ns(a,7);var c=new z.Es("",1,a.Ia());b.forEach(function(a){z.Ls(c,z.vs(a.startOffset,a.endOffset,[a.quoteId],[a.userId]))},a);b=z.bka(c);for(var d=z.cka(c,b),e=0;e<b.length;e++){var g=d[e];if(g.length){for(var k={},l=[],p=0;p<g.length;p++){var r=g[p];k[z.J(r,"creatorIds")]=!0;l.push(r.getName())}g=b[e];p=e<b.length-1?b[e+1]:a.Ia().length;z.Ls(a,z.vs(g,p,l,Object.keys(k)))}}},R6a=function(a,b){var c=a.text,d=a.l,e="";a=""+z.A(z.ei(a));a=(0,z.N)(a);e+=z.A(z.O({s:c,ac:!0,Ye:!0,href:(0,z.M)(""+z.G(b.rq)),
source:a,style:"link.obvious",wa:!0,l:d},b));return(0,z.y)(e)},S6a=function(a,b,c){b="";a.dIa?a=z.n("Top highlight"):(c=""+z.A(z.dP(z.D({s7:!0,Hma:!c.useragent.isMobile},a),c)),1==a.Ki&&a.isActive&&(a=z.n("highlighted"),c+=" "+a),a=(0,z.y)(c));b+=a;return(0,z.y)(b)},J7=function(a,b){this.si=a;this.cua=b;this.Se=(this.Uk=b=z.nB(a.node,b))&&b.getAttribute("name");this.KQ=b?z.gw(a,b):-1},K7=function(a){var b=a.length;a=a.match(T6a);if(!a)return b;for(var c=0;c<a.length;c++)b+=23-a[c].length;return b},
U6a=function(a,b,c){return(0,z.y)(z.OO(z.D({user:c.currentUser,type:"quoteResponses"},a),c))},V6a=function(a,b,c){return(0,z.y)(z.A(z.Wj({icon:(0,z.N)(""+z.A(z.zj())),wa:!0,action:"dismiss-meter",l:"js-dismissMeterButton"},c)))},W6a=function(a){var b,c="";switch(z.qa(b=a.meteringInfo.postIds.length)?b.toString():b){case 0:case 1:a=z.n("Your first three are on the house.");c+=a;break;case 2:a=z.n("That’s two for you...");c+=a;break;default:a=z.n("We like your style."),c+=a}return(0,z.y)(c)},L7=function(a){z.L.call(this);
this.aa(a)},X6a=function(a,b,c){b="\x3cdiv class\x3d'u-marginLeft10'\x3e\x3cdiv class\x3d\"buttonSet u-inlineBlock\"\x3e"+z.A(z.Wj({action:"quote",source:"quote_popover",icon:(0,z.N)(""+z.A(z.eea())),l:(0,z.N)("button--highlightMenu u-sm-height42 u-sm-lineHeight44 u-accentColor--highlightStrong js-quoteAttributions-pileOn"),ac:!0,Vj:!0,XS:"quote",wa:!0,isActive:a.isActive},c))+(c.supportsEdit?z.A(z.Wj({action:"quote-respond",source:"quote_popover",icon:(0,z.N)(""+z.A(z.jea())),l:"button--highlightMenu u-sm-height42 u-sm-lineHeight44",
ac:!0,wa:!0},c)):"")+(a.DW?z.A(z.Wj({action:"twitter",source:"quote_popover",icon:(0,z.N)(""+z.A(z.Fj(null))),l:"button--highlightMenu u-sm-height42 u-sm-lineHeight44",ac:!0,wa:!0},c)):"")+'\x3cdiv class\x3d"buttonSet-separator"\x3e\x3c/div\x3e\x3c/div\x3e';b+='\x3cdiv class\x3d"'+z.F(z.E("js-quoteAttributions-info u-inlineBlock u-verticalAlignTop u-noWrapWithEllipsis u-maxWidth414 u-paddingTop11 u-paddingRight18 u-paddingBottom0 u-paddingLeft10 u-xs-paddingTop13 u-xs-paddingLeft4 u-xs-maxWidth160"))+
'"\x3e'+S6a(a,0,c)+"\x3c/div\x3e\x3c/div\x3e";return(0,z.y)(b)},M7=function(a){z.bm.call(this);var b=z.un();this.lk=b&&new J7(z.Wn(b,!0),a);this.um=b&&new J7(z.Wn(b,!1),a)},N7=function(a,b){var c=new z.fi(z.Zl(b)),c=new z.sd(c.la(z.VCa)),d=new z.sd("https://www.facebook.com/v2.7/dialog/share");z.zd(d,z.Ld({app_id:b.facebook.key,href:a.toString(),display:"popup",redirect_uri:c.toString()}));return d},Y6a=function(a,b,c){function d(a){return a.replace(/“/g,"‘").replace(/”/g,"’").replace(/„/g,"‚").replace(/'/g,
"’")}b.content=d(b.content);b.name&&(b.name=d(b.name));var e=String(a(b,null,c)),g=K7(e)-280;0<g&&(b.content=z.ch(b.content,b.content.length-g),e=String(a(b,null,c)));return e},Z6a=function(a,b){b=new z.fi(b.authBaseUrl);return new z.sd(b.Dl(a))},$6a=function(){var a=z.n("Highlights");return(0,z.y)(""+a)},a7a=function(a,b,c){b=a.post.virtuals.responsesCreatedCount>=c.j.N8&&(a.post.creator.userId==c.currentUser.userId||(null==a.post.homeCollection?null:null==a.post.homeCollection.virtuals?null:null==
a.post.homeCollection.virtuals.permissions?null:a.post.homeCollection.virtuals.permissions.canManageAll));var d=z.D({I9:b},a),d=d||{},d=d.I9;a=""+('\x3cdiv class\x3d"container u-maxWidth740"\x3e\x3cdiv class\x3d"responsesStreamWrapper u-maxWidth640 u-hide js-responsesStreamWrapper"\x3e'+(0,z.y)('\x3cdiv class\x3d"container responsesStream-title u-paddingTop15"\x3e\x3cdiv class\x3d"row"\x3e'+z.A(z.rO({title:(0,z.N)(""+z.A(z.Gk())),ND:!0,Vg:(0,z.N)(""+(c.supportsEdit&&d?z.NNa(null,c):""))},c))+"\x3c/div\x3e\x3c/div\x3e")+
z.LNa(z.D({ue:b},a),c)+(b?z.MNa(a,c):"")+z.KNa(c)+"\x3c/div\x3e\x3c/div\x3e");return(0,z.y)(a)},b7a=function(a,b,c){var d=a.l;b="";var e=c.useragent.isMobile&&!c.useragent.isTablet||1<(null==a.meteringInfo.postIds?null:a.meteringInfo.postIds.length),g;g=(0,z.N)(""+(e?"u-bottom15 u-sm-bottom10":"u-backgroundWhite u-boxShadowTop u-borderBottomLightest u-bottom0"));var k;k=(0,z.N)(""+(e?"u-backgroundWhite u-borderLightest u-boxShadow2px10pxBlackLighter u-borderRadius4":""));d='\x3cdiv class\x3d"postMeterBar u-sizeFullWidth u-fixed '+
z.F(g)+(d?" "+z.F(d):"")+' js-meterBanner" role\x3d"alert" aria-live\x3d"assertive"\x3e\x3cdiv class\x3d"u-borderBox u-maxWidth1040 u-marginAuto u-paddingTop25 u-paddingBottom25 u-paddingLeft20 u-paddingRight20 '+(e?z.F(k):"")+' u-sm-maxWidth740 u-xs-marginLeft10 u-xs-marginRight10 u-xs-paddingTop15 u-xs-paddingBottom15 u-xs-paddingLeft10 u-xs-paddingRight10"\x3e\x3cdiv class\x3d"u-flexCenter"\x3e\x3cdiv class\x3d"u-flex0 u-flexCenter"\x3e'+z.mF(a,c)+'\x3c/div\x3e\x3cdiv class\x3d"u-flex1 u-marginLeft20 u-marginTop8 u-xs-marginLeft10 u-xs-marginTop0"\x3e\x3cdiv class\x3d"'+
z.F(z.El({rb:"regular"}))+' u-xs-hide"\x3e\x3cdiv class\x3d"ui-brand2"\x3e'+W6a(a)+'\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"'+z.F(z.El({rb:"small"}))+' u-xs-show"\x3e\x3cdiv class\x3d"ui-h4"\x3e'+W6a(a)+'\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"u-flex0 u-marginLeft20 u-xs-marginLeft10 js-expandMeterButton"\x3e';g="";k=""+z.A(z.GO(null));k=(0,z.N)(k);if(c.useragent.isMobile)g+=z.A(z.Wj({icon:k,wa:!0,action:"expand-meter"},c));else{var l=z.n("Details");g+=z.A(z.Wj({text:(0,z.N)(""+l),
Sd:!0,icon:k,wa:!0,action:"expand-meter"},c))}g=(0,z.y)(g);var e=d+g+'\x3c/div\x3e\x3cdiv class\x3d"u-flex0 u-marginLeft40 u-flexCenter u-textColorNormal u-xs-marginLeft10 u-xs-hide js-dismissMeterIndicator"\x3e'+(e?(0,z.y)('\x3cfigure class\x3d"circleCountdown"\x3e\x3csvg role\x3d"img" xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3ccircle class\x3d"circleCountdown-fill" cx\x3d"50%" cy\x3d"50%" r\x3d"8px" /\x3e\x3c/svg\x3e\x3c/figure\x3e'):V6a(0,0,c))+'\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"postMeterBar-details u-marginLeft137 u-paddingLeft20 u-paddingRight20 '+
z.F(z.El({rb:"regular"}))+' u-sm-marginLeft137 u-xs-margin0 u-xs-padding0 js-moreInfo"\x3e\x3cp class\x3d"ui-body u-marginVertical10 u-xs-paddingTop10 u-xs-borderTopLight"\x3e',p,d="";g=a.post.lockedPostSource==c.j.cA.aA;if(c.useragent.isMobile)if(g)switch(z.qa(p=a.meteringInfo.postIds.length)?p.toString():p){case 0:case 1:p=z.n("Enjoy daily, ad-free selections from The New York Times, The Atlantic, Fast Company, and more for $5/month.");d+=p;break;default:p=z.n("Access dozens of ad-free selections daily from the world’s leading publications for $5/month."),
d+=p}else switch(z.qa(p=a.meteringInfo.postIds.length)?p.toString():p){case 0:case 1:p=z.n("You can read three exclusive stories per month for free. Upgrade for unlimited access");d+=p;c.isAuthenticated||(p=z.n("sign in"),g=z.n(" or "),d+=g+R6a({text:(0,z.N)(""+p),susiEntry:c.j.Ha.Maa},c));d+=".";break;case 2:p=z.n("You’ve read two of your three free exclusive stories this month.");d+=p;break;default:p=z.n("This is your last free exclusive story for this month. Upgrade for unlimited access."),d+=
p}else if(g)switch(z.qa(p=a.meteringInfo.postIds.length)?p.toString():p){case 0:case 1:p=z.n("Enjoy daily, ad-free selections from The New York Times, The Atlantic, Fast Company, and more, when you upgrade for $5/month.");d+=p;break;default:p=z.n("Unlock the best of {$productName} when you upgrade for $5/month. Access dozens of ad-free selections daily from the world’s leading publications.",{productName:z.A(c.productName)}),d+=p}else switch(z.qa(p=a.meteringInfo.postIds.length)?p.toString():p){case 0:case 1:p=
z.n("Members get exclusive access to the best stories on {$productName} — but you can read three for free each month. Upgrade for $5/month for unlimited access.",{productName:z.A(c.productName)});d+=p;c.isAuthenticated||(p=z.n("Already a member?"),d+='\x3cspan class\x3d"u-block u-marginTop20"\x3e'+p+" "+R6a({text:(0,z.N)("Sign in"),susiEntry:c.j.Ha.Maa},c)+".\x3c/span\x3e");break;default:p=z.n("Unlock the best of {$productName} when you upgrade for $5/month. Access in-depth, insightful stories from top writers and publications.",
{productName:z.A(c.productName)}),d+=p}d=(0,z.y)(d);b+=e+d+'\x3c/p\x3e\x3cdiv class\x3d"u-marginTop20 u-xs-marginTop15"\x3e'+z.A(z.Oy({location:c.j.Id.Kaa,lb:!0,Ba:!0,zd:!0,ei:!0,postId:a.post.id,collectionId:a.post.homeCollectionId,authorId:a.post.creatorId,l:"u-xs-sizeFullWidth"},c))+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";return(0,z.y)(b)},O7=function(a,b,c){z.T.call(this);this.Ae=a.get("quotes-data");var d=this.Ae.tp;d.subscribe("add",this.Jfa,this);d.subscribe("remove",this.Jfa,this);
this.$a=b;this.xe=b.pm;this.zm=c;this.ica=[];this.Ja=a.get("app");this.Ga=a.get("popover");this.na=a.get("route-builder");this.V_=a.get("global-event-bus");this.EAa=a.get("progressive-media-loader")},d7a=function(a,b,c,d){var e=c7a(a,b);if(e){var g=a.$a.isPublished(),k=z.Bwa(a.$a);e.DW=g&&k;if(c=z.XF(z.mC(z.lC(z.nC(z.RE(z.oC(a.Ga).jb(X6a,e),z.SE),c),{b7:!0,Iy:!0,Ba:!0}),"popover--quoteAttributions"),d).ua())c.em("deactivate",function(){this.Fp===b&&P7(this,null)},a),c.mo().ba("quote",a.Zua.bind(a,
c)).ba("quote-respond",a.$ua.bind(a,c)).ba("twitter",a.ava.bind(a))}},c7a=function(a,b){if("anon"==b.mb())return{isActive:!1,dIa:!0};var c=Q7(a,b),d=b.Fd();b=b.De();a=M6a(a.Ae,c,d,b);if(!a||!a.length)return null;a=(0,z.rb)(a,function(a){return a.user});c=(0,z.Lc)(a,function(a){return a.userId!=z.Rp().userId});return{isActive:(0,z.tc)(a,function(a){return a.userId==z.Rp().userId}),social:c,Ki:a.length}},e7a=function(a,b){a=a.xe.querySelectorAll('.markup--quote[name~\x3d"'+b.fj()+'"]');return z.Va(a)},
Q7=function(a,b){b=b.gc()[0].name;return(b=z.gs(a.xe,b))?a.$a.dj(b):null},f7a=function(a,b){var c=z.vn(b);return(c=z.zE(a.zm,c))?L6a(a.Ae,b,c):null},P7=function(a,b){a.Fp!==b&&(a.Fp&&g7a(a,a.Fp,!1),b&&g7a(a,b,!0),a.Fp=b)},g7a=function(a,b,c){e7a(a,b).map(function(a){z.Pc(a,"is-targeted",c)})},R7=function(a,b){(b=h7a(a,b))&&z.xE(a.zk(),b)},h7a=function(a,b){var c=b.gc(),d=z.gs(a.xe,c[0].getName());a=z.gs(a.xe,z.Ma(c).getName());return z.LM(d,b.Fd(),a,b.De())},S7=function(a,b,c,d){a={postId:a.$a.Na(),
quoteId:b,source:d};z.ex(c?z.twa:z.wFa,a)},i7a=function(a){return(0,z.Lc)(z.sB(a),function(a){return 1==z.pB(a)})},j7a=function(a,b){z.rB(a,z.qB,z.Fb(b,z.Cb(!0)),void 0)},k7a=function(a,b,c){z.na(a)||(a=a.toString());var d=window,e={scrollbars:!0,XKa:!0,toolbar:!1,location:!0,width:670,height:690};z.pb(e,c||{});e.left||e.top||(e.width=(0,window.parseInt)(e.width,10),e.height=(0,window.parseInt)(e.height,10),e.left=Math.max(d.screenX+Math.round(d.outerWidth/2-e.width/2),0),e.top=Math.max(d.screenY+
Math.round(d.outerHeight/2-e.height/2),0));var g={scrollbars:"scrollbars",XKa:"resizable",toolbar:"toolbar",location:"location",width:"width",height:"height",left:"left",top:"top"};c=z.pia(e,function(a,b,c){g[c]&&("boolean"==typeof b&&(b=b?"yes":"no"),a.push(g[c]+"\x3d"+b));return a},[]).join();return d.open(a,b,c)},l7a=function(a){var b=z.Hv(z.cya,{cJa:!0});b&&(b=b.split(/\s+/),b=b.filter(function(a){return!z.Aa(a)}),b.length&&z.Kc(a,b))},m7a=function(a){return(0,z.y)(z.A(z.Fk(String(a.content)))+
" — "+z.A(z.Vr(a))+" "+z.A(a.url))},n7a=function(a,b,c){return(0,z.ci)("https://"+z.Dg(c.textshotHost)+"/image")},o7a=function(a,b,c){return(0,z.ci)("https://twitter.com/"+z.Dg(c.currentUser.twitterScreenName)+"/status/"+z.Dg(a.id))},p7a=function(){var a=z.y,b;b=z.n("Failed to load image");b=(0,z.y)(""+b);return a('\x3cspan class\x3d"tweetEditor-imageStatusIcon"\x3e\x26times;\x3c/span\x3e'+z.A(b))},q7a=function(a,b,c){b=z.y;a='\x3cdiv class\x3d"tweetEditor u-sizeFullWidth"\x3e\x3cdiv class\x3d"js-tweetEditor-error tweetEditor-error u-paddingBottom10 u-textAlignCenter u-textColorRed"\x3e\x3c/div\x3e\x3cdiv class\x3d"tweetEditor-avatar"\x3e'+
z.A(z.Vk({user:a.user,Af:!0},c))+'\x3c/div\x3e\x3cdiv class\x3d"tweetEditor-tweetContainer"\x3e\x3cdiv class\x3d"tweetEditor-textContainer"\x3e\x3cdiv class\x3d"js-tweetEditor-text textInput textInput--chromeless u-textAlignLeft"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"tweetEditor-textshot"\x3e\x3cdiv class\x3d"js-tweetEditor-imageStatus tweetEditor-imageStatus"\x3e';var d;d=z.n("Loading image attachment…");d=(0,z.y)(""+d);a=a+z.A(d)+"\x3c/div\x3e";d={};d=(0,z.y)(z.ij(z.D({name:"addCircled",
size:"21px",content:(0,z.N)('\x3csvg class\x3d"svgIcon-use" width\x3d"21" height\x3d"21" viewBox\x3d"0 0 21 21" \x3e\x3cpath d\x3d"M2.286 12.691a8.358 8.358 0 0 0 2.192 3.831A8.298 8.298 0 0 0 8.3 18.715c.73.19 1.462.288 2.192.29a8.363 8.363 0 0 0 2.2-.29 8.286 8.286 0 0 0 3.822-2.193 8.264 8.264 0 0 0 2.201-3.82c.19-.732.285-1.462.285-2.193a8.248 8.248 0 0 0-.285-2.2 8.265 8.265 0 0 0-2.2-3.823 8.258 8.258 0 0 0-3.822-2.2A8.66 8.66 0 0 0 10.5 2a8.188 8.188 0 0 0-2.192.286 8.33 8.33 0 0 0-3.831 2.2 8.298 8.298 0 0 0-2.193 3.822A8.66 8.66 0 0 0 2 10.5c0 .731.095 1.461.286 2.191zm1.557-.413a6.74 6.74 0 0 1-.239-1.773c0-.592.08-1.184.24-1.773a6.77 6.77 0 0 1 1.786-3.09 6.73 6.73 0 0 1 3.085-1.79c.59-.16 1.181-.24 1.777-.24.596 0 1.188.08 1.777.24a6.736 6.736 0 0 1 3.094 1.786 6.801 6.801 0 0 1 1.787 3.094c.16.59.239 1.178.239 1.768 0 .59-.08 1.182-.24 1.778a6.75 6.75 0 0 1-1.786 3.093 6.801 6.801 0 0 1-3.094 1.787 6.707 6.707 0 0 1-3.545 0A6.74 6.74 0 0 1 5.63 15.37a6.746 6.746 0 0 1-1.787-3.093zm2.937-2.055c0-.134.049-.25.148-.345a.494.494 0 0 1 .359-.143H9.23a.478.478 0 0 0 .35-.148.475.475 0 0 0 .147-.35V7.303c0-.141.048-.262.144-.363a.458.458 0 0 1 .345-.152h.562c.134 0 .25.05.35.152a.502.502 0 0 1 .147.363v1.934c0 .135.048.252.143.35a.46.46 0 0 0 .345.148h1.945c.14 0 .26.048.358.143.099.096.148.21.148.345v.562a.476.476 0 0 1-.148.35.486.486 0 0 1-.358.147h-1.945a.472.472 0 0 0-.345.143.47.47 0 0 0-.143.345v1.944c0 .14-.05.262-.148.36a.478.478 0 0 1-.35.147h-.56a.498.498 0 0 1-.489-.507V11.77a.461.461 0 0 0-.148-.345.487.487 0 0 0-.35-.143H7.287a.488.488 0 0 1-.36-.147.476.476 0 0 1-.147-.35v-.562z" fill-rule\x3d"evenodd"/\x3e\x3c/svg\x3e')},
d)));d=(0,z.N)(""+z.A(d));var e;e=z.n("Include quote image");e=(0,z.y)(""+e);a=a+z.A(z.Wj({icon:d,isPrimary:!0,wa:!0,l:"js-tweetEditor-addTextshot u-hide",action:"add-textshot",text:(0,z.N)(""+z.A(e))},c))+'\x3cdiv class\x3d"js-tweetEditor-imageContainer tweetEditor-imageContainer"\x3e';d=(0,z.N)("\x26times;");e=z.n("Remove quote image from tweet");e=(0,z.y)(""+e);return b(a+z.A(z.Uj({s:d,Yc:!0,l:"js-tweetEditor-removeTextshot tweetEditor-removeTextshot",title:(0,z.N)(""+z.A(e)),action:"remove-textshot"},
c))+'\x3cimg class\x3d"js-tweetEditor-image tweetEditor-image" data-action\x3d"toggle-expand-image"\x3e\x3c/img\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'+(c.variants.textshots_userid?'\x3cdiv class\x3d"u-textColorRed"\x3eTweet to test account @fuzzyoctopusfee\x3c/div\x3e':""))},r7a=function(){var a=z.n("An error occurred, and the tweet wasn’t posted to Twitter.");return(0,z.y)(""+a)},s7a=function(a,b,c){var d="";b=z.n("Tweet posted.");a=a.jMa;var e;e=z.n("View the tweet");e=(0,z.y)(""+
e);d+=b+" "+z.A(z.O({xb:!0,href:a,s:(0,z.N)(""+e)},c));return(0,z.y)(d)},t7a=function(a,b,c){a=z.n("Tweet must be {$twitterMaxTweetLength} characters or less.",{twitterMaxTweetLength:z.A(c.j.kMa)});return(0,z.y)(""+a)},u7a=function(a){if(!a)return"";var b=[],c=z.nb(["grafId","noteId","command","startIndex","endIndex"]),d;for(d in a)b[c[d]]=a[d];return b.join("-")},v7a=function(a,b){return a instanceof z.ic?z.u(a.Vc(!0),b,void 0):z.u(z.vc(a),b,void 0)},T7=function(a){z.Fw.call(this);this.Cc=a.get("dom-model-converter");
this.Cea={};this.tda={};this.a2={};this.qa=a;this.sl=a.get("request");this.na=a.get("route-builder");this.Aa=a.get("model-store");this.pb="";this.ffa=z.Ol;this.fca=!1;this.Ih=null},U7=function(a,b){var c=a.Cea[b];c||(c=a.Cea[b]=new z.JC,a.za("new_note_list",c,a));return c},w7a=function(a,b){if(!b)return!1;var c=b.Ia();if(a.content==c.substring(a.startIndex,a.endIndex))return!0;var d=new RegExp(z.taa(a.content),"gi"),c=(b=d.exec(c))&&d.exec(c);return b&&!c?(c=a.endIndex-a.startIndex,a.startIndex=b.index,
a.endIndex=b.index+c,a.content=b[0],!0):!1},V7=function(a,b,c){var d=b.Na(),e=b.Cg(),g=U7(a,b.he()),k=g?g.indexOf(b):-1,l=b.Tu();b.yq(c);"HIDDEN"==c?a.Aa.remove(b):b=z.jC(a.Aa,b);var p=g?g.indexOf(b):-1;return{Il:a.sl.put(a.na.la(z.dDa,{postId:d,noteId:e}),{state:c}),DL:function(){b.yq(l);-1==p&&(-1==k?g.add(b):z.LC(g,b,k))}}},W7=function(a,b,c,d,e,g){var k=z.J(a.Tp(c,e),"replies"),l=z.Na(k,function(a){return a.qy()==b}),p=k[l];"HIDDEN"==g&&z.Ra(k,l);c=a.na.la(z.gDa,{postId:d,noteId:c,replyId:b});
a=a.sl.put(c,{state:g});var r=z.Na(k,function(a){return a.qy()==b});return{Il:a,DL:function(){-1==r&&z.Ya(k,l,0,p)}}},x7a=function(a,b,c){this.range=a;this.anchor=b;this.vC=b.getAttribute("name");this.highlight=c},X7=function(a,b){z.T.call(this);this.fb=a.get("screen-request");this.tBa=b;this.iZ=[];this.kw=null;this.Jn={};this.B2=!1;this.yga=null},Y7=function(a,b,c){z.T.call(this);this.Oa=a.get("screen");this.ri=c;this.Va(b)},Z7=function(a,b){z.T.call(this);this.Kb=a.get("dom-monitor");this.Ib=a.get("element-tracker");
this.Ga=a.get("popover");this.Oa=a.get("screen");this.gw=z.PB(a.get("activity-monitor"),1E4);this.$t=a.get("placements-store");this.$a=b;this.vH=!1},y7a=function(a){var b=a.query(".js-postActionsFooter");return b?(a=z.HB(a.Ib),0>z.fw(b).top-a.height):!1},z7a=function(a){var b=a.query(".js-readNextMetabarRight");a.$t&&b&&z.u(a.$t.Zr(2),function(a){a&&z.P(b,z.pP,{items:a.items,context:2})})},$7=function(a,b,c,d){z.T.call(this);this.Oa=a.get("screen");this.sp=c;this.ri=d;this.aQ=!1;this.jw=this.RB=this.Yea=
null;this.Va(b)},A7a=function(a){return Math.floor((I6a(a)-a)/1E3)},a8=function(a,b,c){z.T.call(this);this.Oa=a.get("screen");this.s2=this.sp=null;this.va=b;this.$a=c;this.pa=a.get("request");this.na=a.get("route-builder")},C7a=function(a){if(B7a(a)){var b=a.na.la(z.$za),c;if(!z.$l.isDnt||z.$l.isAuthenticated||z.ai(z.$l).enable_dnt_butter_bar){c=a.va.id;var d=Date.now(),e=z.J(z.$l,"meterConfig").maxUnlockCount,g=z.nD.get("mpids")?z.nD.get("mpids").split(","):[];g&&-1==g.indexOf(c)&&g.length<e&&(g.push(c),
z.nD.set("mpids",g.join(","),A7a(d),"/"));c={postIds:g}}else c={postIds:[a.va.id]};return a.pa.put(b,c)}return z.vc({})},B7a=function(a){var b=z.Rp();return a.va&&a.va.isSubscriptionLocked&&!z.Zk(b)&&a.va.creatorId!=b.userId&&!(a.va&&3==a.va.lockedPostSource&&!z.Sp())},b8=function(a){z.T.call(this);this.$t=a.get("placements-store")},D7a=function(a){a.$t&&z.u(a.$t.Zr(1),function(b){b&&z.P(a.oa(),z.pP,{items:b.items,context:9})})},c8=function(a){z.T.call(this);this.Ib=a.get("element-tracker");this.zR=
this.au=null;this.$H=[];this.Dr=0;this.b4=E7a;this.k_=this.l_=null},d8=function(a){z.T.call(this);this.$t=a.get("placements-store");this.Ib=a.get("element-tracker");this.au=null;this.$H=[];this.Dr=this.nR=null},F7a=function(a){a.$t&&z.u(z.u(a.$t.Zr(3),function(b){if(b)return z.P(a.oa(),z.pP,{items:b.items,context:44}),z.Hw(a,a.Ib,"refresh",a.Xga.bind(a)),a.Ib.Ym()}),a.Xga,a)},G7a=function(a){var b=z.CB(a.Ib,a.au),c=z.YA(b)+b.Lf()/3,b=i7a(a.au).map(function(b){return[b,z.CB(a.Ib,b)]}).filter(function(a){a=
z.ha(a);var b=a.next().value;return z.YA(a.next().value)<c&&!z.zs(z.yB(b))}),d=a.nR.fd();return(b=b.map(function(a){var b=z.ha(a);a=b.next().value;var c=b.next().value,b=d.clone(),c=z.YA(c);a=z.Rn(a).top||0;b.top=c+a;return b}).find(function(b){return!a.R0(b)}))?b.top:null},e8=function(a,b){z.T.call(this);this.qa=a;this.Ib=a.get("element-tracker");this.$a=b;this.m2=this.$a.pm;this.u2=this.cR=this.aR=null},f8=function(){},H7a=function(a){this.JQ=a},g8=function(a,b){return b?z.gs(a.JQ,b):null},I7a=
function(a,b,c){j7a(a.JQ,function(a){var e=a.getAttribute("name");e&&b.call(c,a,e)})},J7a=function(a,b){return z.Sf(a.JQ,b)?a.JQ:null},h8=function(a,b,c,d,e){z.TW.call(this,a,b);this.cb(new z.lW(c));this.cb(new z.gX(!1));this.cb(new z.jX(a));this.cb(new z.UW);this.cb(new z.mX(a,!1,!1));this.cb(new z.mU(d,!0));this.ml=!0;this.ym=d;this.sl=a.get("request");this.Ea=a.get("dialog");this.E1=e;this.ua()},K7a=function(){var a=z.n("Saving failed. You may be having connectivity issues or notes might be disabled on this post. Please try again.");
return(0,z.y)(""+a)},L7a=function(){var a=z.n("Yikes! Something happened and we couldn’t dismiss this note.");return(0,z.y)(""+a)},M7a=function(){var a=z.n("Yikes! Something happened and we couldn’t delete this note.");return(0,z.y)(""+a)},N7a=function(){var a=z.n("Yikes! Something happened and we couldn’t delete this reply.");return(0,z.y)(""+a)},O7a=function(){var a=z.n("The note has been dismissed.");return(0,z.y)(""+a)},P7a=function(){var a=z.n("The note has been deleted.");return(0,z.y)(""+a)},
Q7a=function(){var a=z.n("The reply has been deleted.");return(0,z.y)(""+a)},R7a=function(){var a=z.n("Write a note…");return(0,z.y)(""+a)},S7a=function(){var a=z.n("Cancel");return(0,z.y)(""+a)},i8=function(a,b,c,d,e){h8.call(this,a,b,e||"Leave a note",400,d||null);this.pb=c;this.na=a.get("route-builder");this.yf=a.get("notes-data")},j8=function(a,b,c,d,e,g){h8.call(this,a,b,"Leave a reply…",200,d);this.na=a.get("route-builder");this.yf=a.get("notes-data");this.pb=c;this.Ffa=g||null;this.Se=e},U7a=
function(a,b,c){var d='\x3cdiv class\x3d"quoteResponses js-quoteResponses"\x3e',e=a.quotes.length,g=a.responses.length||a.k$;b=a.notes.length||a.yW;if(e||g||b){if(e){var e='\x3cdiv class\x3d"quoteResponses-section"\x3e'+z.A(z.Jy({title:(0,z.N)(z.A($6a())+" ("+z.A(a.quotes.length)+")"),Yf:!0},c)),k;k={Qla:a.quotes,HMa:!0};var l='\x3cdiv class\x3d"js-quotesList"\x3e';if(!k.HMa)var p=z.n("Learn more"),l=l+z.A(z.Jy({title:(0,z.N)(""+z.A($6a())),Yf:!0,Vg:(0,z.N)(""+z.A(z.Iy({href:(0,z.M)(""+z.G((0,z.ci)("https://medium.com/the-story/introducing-highlights-a4df69e8ed43"))),
moreText:(0,z.N)(""+p),wb:!0},c)))},c));for(var p="list u-marginTop5 u-marginBottom15"+(k.Qla.length?"":" u-hide"),p=(0,z.N)(p),l=l+('\x3cul class\x3d"'+z.F(p)+'"\x3e'),p=k.Qla,r=p.length,t=0;t<r;t++){for(var w=p[t],B="",H=w.quotes,Q=H.length,R=0;R<Q;R++)B+=""+H[R].quoteId+(R!=Q-1?",":"");B=z.E(B);l+='\x3cli class\x3d"list-item list-item--inline u-border0" data-quote-ids\x3d"'+z.F(B)+'" data-quote-creator-id\x3d"'+z.F(w.user.userId)+'" data-action\x3d"highlight-quote" data-action-type\x3d"hover"\x3e'+
z.A(z.Tk(z.D({user:w.user,Ie:!0},k),c))+"\x3c/li\x3e"}k=(0,z.y)(l+"\x3c/ul\x3e\x3c/div\x3e");e=e+z.A(k)+"\x3c/div\x3e"}else e="";g?(g='\x3cdiv class\x3d"quoteResponses-section'+(a.k$?" is-withEditor":"")+'"\x3e'+z.A(z.Jy({title:(0,z.N)(""+z.A(z.Gk())),Yf:!0},c)),a.k$&&c.supportsEdit&&c.isAuthenticated?(k={},k=(0,z.y)('\x3cdiv class\x3d"js-inlineNewPostControl inlineNewPostControl inlineNewPostControl--quoteResponses"\x3e'+z.OO(z.D({user:c.currentUser,isCollapsed:!0,FD:!0,type:"quoteResponses",rv:(0,z.N)(""+
z.A(z.Yfa()))},k),c)+"\x3c/div\x3e"),k=z.A(k)):k="",g=g+k+T7a(a,0,c)+"\x3c/div\x3e"):g="";d+=e+g;if(a.iKa&&b){g=z.n("Who can see this?");d+='\x3cdiv class\x3d"quoteResponses-section quoteResponses-section--fullBleed u-paddingLeft0 u-paddingRight0"\x3e';e=b="";k=a.post.homeCollection;k=a.post.creator.userId!=c.currentUser.userId?k?z.n("Private notes are visible to you, the author, and the editors of {$name}.",{name:z.A(k.name)}):z.n("Private notes are visible to you, the author, and the editors of any publication this story is added to."):
k?z.n("Private notes are visible to you and the editors of {$name}.",{name:z.A(k.name)}):z.n("Private notes are visible to you and the editors of any publication this story is added to.");e+=k;e=(0,z.y)(e);e=""+z.A(e);e=(0,z.N)(e);b+='\x3cspan data-tooltip\x3d"'+z.F(e)+'"\x3e'+g+"\x3c/span\x3e";g={};g=(0,z.y)(z.ij(z.D({name:"lock",size:"19px",content:(0,z.N)('\x3csvg class\x3d"svgIcon-use" width\x3d"19" height\x3d"19" viewBox\x3d"0 0 19 19" \x3e\x3cpath d\x3d"M14 14.052a1 1 0 0 1-.992.998H5.992A.99.99 0 0 1 5 14.052v-4.004a1 1 0 0 1 .992-.998h7.016a.99.99 0 0 1 .992.998v4.004zM7 5.445C7 4.187 8.114 3.15 9.5 3.15c1.385 0 2.5 1.04 2.5 2.295V8.05H7V5.445zm6.008 2.605H13V5.445c0-1.822-1.578-3.295-3.5-3.295C7.577 2.15 6 3.618 6 5.445V8.05h-.008A2 2 0 0 0 4 10.048v4.004a1.99 1.99 0 0 0 1.992 1.998h7.016A2 2 0 0 0 15 14.052v-4.004a1.99 1.99 0 0 0-1.992-1.998z" fill-rule\x3d"evenodd"/\x3e\x3c/svg\x3e')},
g)));g=(0,z.N)(""+z.A(g));e=z.n("Private notes");e=(0,z.y)(""+e);b={dMa:g,title:(0,z.N)(""+z.A(e)),Yf:!0,Vg:(0,z.N)(b),l:"heading--privateNotes"};b=(0,z.y)(z.Gy(z.D({Yi:(0,z.N)(""+z.Hy(b,c)),WIa:!0},b)));b=d+=z.A(b);d=""+('\x3cdiv class\x3d"privateNotes-list js-notesList'+(a.yW?" is-showingNoteEditor":"")+(0==a.notes.length?" is-empty":"")+'"\x3e');g=a.notes;e=g.length;for(k=0;k<e;k++)d+=k8({note:g[k],post:a.post,kM:a.kM},0,c);a.yW?(g=a.post.creator,a="",g=c.currentUser.userId==g.userId?z.n("Leave yourself a note"):
z.n("Send {$name} a private note…",{name:z.A(g.name)}),a+=g,a=(0,z.y)(a),a='\x3cdiv class\x3d"privateNotes-actions js-noteActions"\x3e'+z.A(z.Vj({action:"show-note-editor",text:(0,z.N)(""+z.A(a)),l:"privateNotes-prompt"},0,c)),g=z.y,e='\x3cdiv class\x3d"privateNotes-editor"\x3e'+z.A(z.Uk({user:c.currentUser,Af:!0},c))+'\x3cdiv class\x3d"js-noteEditor"\x3e\x3c/div\x3e\x3cdiv class\x3d"buttonSet"\x3e',k=z.n("Send"),k=(0,z.y)(""+k),c=g(e+z.A(z.Vj({action:"save-note",isPrimary:!0,l:"js-saveNoteButton",
text:(0,z.N)(""+z.A(k))},0,c))+z.A(z.Vj({action:"hide-note-editor",text:(0,z.N)(""+z.A(S7a()))},0,c))+"\x3c/div\x3e\x3c/div\x3e"),c=a+c+"\x3c/div\x3e"):c="";c=(0,z.y)(d+("\x3c/div\x3e"+c));d=b+('\x3cdiv class\x3d"quoteResponses-inner privateNotes"\x3e'+c+"\x3c/div\x3e\x3c/div\x3e")}}else 0<a.zE&&(a=z.n("Show next tip"),b=z.n("Show previous tip"),d+='\x3cdiv class\x3d"quoteResponses-section quoteResponses-section--fullBleed quoteResponses-section--tips u-textAlignCenter u-paddingLeft0 u-paddingRight0"\x3e\x3cdiv class\x3d"quoteResponses-section--tipsInner u-alignMiddle"\x3e'+
z.A(z.Wj({Fb:!0,Yc:!0,wa:!0,action:"previous-highlight-tip",icon:(0,z.N)(""+z.A(z.Vda())),title:(0,z.N)(""+b)},c))+"\x3cdiv class\x3d'u-alignBlock quoteResponses-section--tipsContent u-paddingLeft20 u-paddingRight20 js-highlightTip'\x3e\x3c/div\x3e"+z.A(z.Wj({Fb:!0,Yc:!0,wa:!0,action:"next-highlight-tip",icon:(0,z.N)(""+z.A(z.Wda())),title:(0,z.N)(""+a)},c))+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e");return(0,z.y)(d+"\x3c/div\x3e")},T7a=function(a,b,c){return(0,z.y)(z.A(z.tP({posts:a.responses,source:"quoteResponses",
BU:!0},0,c)))},k8=function(a,b,c){var d,e=null==a.note.replies?null:a.note.replies.length,g=null==a.note.replyId,k=a.post.creator.userId==c.currentUser.userId,l=a.post.creator.userId==a.note.author.userId;d=a.note.author.userId==c.currentUser.userId;b=k||(null==a.post.homeCollection?null:a.post.homeCollection.virtuals.permissions.canEditPosts);var p=""+(g?"js-note-item"+(a.note.noteId?" js-note-"+a.note.noteId:""):"js-reply-item"+(a.note.replyId?" js-reply-"+a.note.replyId:"")),p=z.E(p),p='\x3cdiv class\x3d"privateNotes-item '+
z.F(p)+' js-note" data-note-id\x3d"'+z.F(a.note.noteId)+'"\x3e'+(g?z.A(z.Tk({user:a.note.author},c)):z.A(z.MN({user:a.note.author},c)))+'\x3cdiv class\x3d"privateNotes-authorLockup"\x3e\x3cdiv class\x3d"privateNotes-author"\x3e'+z.A(z.nk({user:a.note.author},c));g||!(k||d||(null==a.post.homeCollection?0:a.post.homeCollection.virtuals.permissions.canEditPosts))||l||a.ska?k="":(k=z.n("(Editor)"),k=(0,z.y)(""+k),k='\x3cspan class\x3d"privateNotes-author--supplemental"\x3e '+z.A(k)+"\x3c/span\x3e");p=
p+k+'\x3c/div\x3e\x3cdiv class\x3d"privateNotes-supplemental"\x3e'+z.A(z.$g(Number(a.note.createdAt),c))+'\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"privateNotes-content js-privateNotesContent"\x3e';k=z.A(z.Gt(String(a.note.content),c));l=String(k).replace(/(\r\n|\r|\n)/g,"\x3cbr\x3e");k=z.cg(k,z.eg)?(0,z.y)(l,z.Eca(k)):l;d=""+(p+k+"\x3c/div\x3e"+(d?V7a({note:a.note,isPrimary:g},c):""));if(g){d+='\x3cdiv class\x3d"privateNotes-replies'+(e?"":" is-empty")+' js-repliesList"\x3e';if(e)for(e=a.note.replies,
g=e.length,p=0;p<g;p++)k=e[p],d+=k8({note:k,post:a.post,ska:a.note.author.userId==k.author.userId},0,c);e=d;a.kM?(g=z.y,d='\x3cdiv class\x3d"privateNotes-editor privateNotes-editor--reply"\x3e'+z.A(z.AP({user:c.currentUser,Af:!0},c))+'\x3cdiv class\x3d"js-replyEditor"\x3e\x3c/div\x3e\x3cdiv class\x3d"buttonSet"\x3e',p=z.n("Send"),p=(0,z.y)(""+p),g=g(d+z.A(z.Vj({action:"save-reply",isPrimary:!0,text:(0,z.N)(""+z.A(p))},0,c))+z.A(z.Vj({action:"hide-reply-editor",text:(0,z.N)(""+z.A(S7a()))},0,c))+"\x3c/div\x3e\x3c/div\x3e")):
g="";g="\x3c/div\x3e"+g+'\x3cdiv class\x3d"privateNotes-actions'+(b?" privateNotes-actions--withDismiss":"")+' u-clearfix"\x3e';a.kM?(d=z.y,p=z.n("Reply"),p=(0,z.y)(""+p),d='\x3cdiv class\x3d"u-floatLeft"\x3e'+d(z.A(z.Vj({isPrimary:!0,action:"show-reply-editor",l:"privateNotes-prompt",text:(0,z.N)(""+z.A(p))},0,c)))+"\x3c/div\x3e"):d="";d=e+(g+d+(b?'\x3cdiv class\x3d"u-floatRight"\x3e'+V7a({note:a.note,isPrimary:!0,$ja:!0},c)+"\x3c/div\x3e":"")+"\x3c/div\x3e")}return(0,z.y)(d+"\x3c/div\x3e")},V7a=
function(a,b){var c=z.y,d=a.isPrimary?a.note.noteId:a.note.replyId,e=a.$ja?"dismiss-note":a.isPrimary?"delete-note":"delete-reply";a=a.$ja?z.n("Dismiss note"):z.n("Delete");a=(0,z.y)(""+a);a=z.A(a);return c(z.A(z.Vj({actionValue:d,action:e,l:"privateNotes-delete js-deleteNote",text:(0,z.N)(""+a)},0,b)))},W7a=function(a,b,c){b="";if(0==a.W9)a=1==a.zE?z.n("People highlighted this passage. You can click on an existing highlight to add to it, like below:"):z.n("{$topQuoteCount} people highlighted this passage. You can click on an existing highlight to add to it, like below:",
{topQuoteCount:z.A(a.zE)}),b+=a,b+='\x3cimg class\x3d"quoteResponses-tipAnimation" src\x3d"'+z.F(z.Gg(z.Zi({imageId:"1*SyXCciYXeNpx4-GUAuh0XQ.gif"},0,c)))+'"\x3e';else if(1==a.W9)a=z.n("Or, select any passage to create your own highlight and tell the author and others what resonated with you:"),b+=a+'\x3cimg class\x3d"quoteResponses-tipAnimation" src\x3d"'+z.F(z.Gg(z.Zi({imageId:"1*dEp02HXMKtAeKxsV5MWqGg.gif"},0,c)))+'"\x3e';else if(2==a.W9){a=z.n("so that you can save your highlights and share them with others.");
var d=z.n("Sign up and create a profile");b+=z.A(z.Vj({text:(0,z.N)(""+d),ac:!0,source:(0,z.N)(""+z.A(z.ei({name:c.j.oc.Loa,susiEntry:c.j.Ha.jF}))),l:"u-textUnderline"},0,c))+" "+a}return(0,z.y)(b)},l8=function(a,b,c,d,e,g,k,l){z.T.call(this);this.qa=a;this.xa=a.get("butter-bar");this.$a=b;this.Se=c;this.fk=e;this.Ae=a.get("quotes-data");this.yf=a.get("notes-data");this.Dj=a.get("responses-data");this.nf=g;this.E1=d;this.K2=(this.xI=k)?k.fj():null;this.Pf=this.Kc=null;this.hk={};this.Fda=!!z.Sp();
this.Gda=!!z.Up();this.sB=this.Fda&&this.Gda&&z.JE(b);this.cr=null;this.LP=0;this.Nga=N6a(this.Ae,this.Se);this.Ow=l;this.Va(this.Tq());this.Gea=z.Sp()?2:3},X7a=function(a){a.ob(".js-block").forEach(function(a){this.Ta(a,"mouseenter",this.Ava,this);this.Ta(a,"mouseleave",this.c4,this)},a)},Y7a=function(a){a.ob(".js-note").forEach(function(a){this.Ta(a,"mouseenter",this.yva,this);this.Ta(a,"mouseleave",this.c4,this)},a)},Z7a=function(a,b){var c=a.query(".js-note-"+b);a.hk[b]||(a.hk[b]=new j8(a.qa,
c.querySelector(".js-replyEditor"),a.$a.Na(),b,a.Se),z.Hw(a,a.hk[b],"saving",a.Uya,a),z.Hw(a,a.hk[b],"save",a.Pya,a),z.Hw(a,a.hk[b],"fail",a.Nxa,a));z.Jc(c,"is-noteEditorVisible");a.hk[b].focus()},$7a=function(a,b){var c=a.hk[b];c&&(c.ib()&&c.jd(""),a=a.query(".js-note-"+b),z.Nc(a,"is-noteEditorVisible"))},a8a=function(a,b,c){var d=g8(a.nf,a.Se);if(d){var e=[];a.Ow&&(e=a.Ow.quotes.map(function(a){return a.fj()}));(0,z.rb)(d.querySelectorAll(".markup--quote"),function(a){var d=a.getAttribute("data-creator-ids").split(" "),
d=z.Qa(d,b);if(this.Ow)var l=a.getAttribute("name").split(" "),d=d&&(0,z.tc)(l,z.Qa.bind(null,e));z.Pc(a,"is-selected",c&&d)},a)}},m8=function(a){return(a=z.ds(a,function(a){return z.Ic(a,"js-note-item")}))&&a.getAttribute("data-note-id")},b8a=function(a,b,c,d){b=new z.pE(b,300);b.Va(c);b.subscribe("dismiss",d,a);b.ua();return b},n8=function(a){var b=a.gc(),c=a.Fd();a=a.De();1<b.length&&(a=b[0].Ia().length);var d=new z.Pr;d.uq(b[0].getName());d.Kg(c);z.K(d,"endIndex",a);d.jd(b[0].Ia().substring(c,
a));return d},o8=function(a,b){b%=a.Gea;0>b&&(b=a.Gea-1);a.LP=b;(b=a.query(".js-highlightTip"))&&z.P(b,W7a,{W9:a.LP,zE:a.Nga})},p8=function(a,b,c,d){z.T.call(this);this.Va(this.Tq(d));this.Kb=a.get("dom-monitor");this.$a=b;this.Lda=!b.Za().Wr()||b.Pb();this.pb=b.Na();this.nf=c;this.Ae=a.get("quotes-data");this.Dj=a.get("responses-data");this.yf=a.get("notes-data");this.tw=null;this.Lh={}},c8a=function(a,b){b.forEach(function(a){a&&q8(this,a)},a)},q8=function(a,b){if(!a.tw)if(g8(a.nf,b)){var c=d8a(a,
b),c=e8a(a,c),c=f8a(a,c),c=g8a(a,c);a.Lh[b]=c;h8a(a,b)}else delete a.Lh[b]},i8a=function(a,b){if(!a.tw){var c=a.Lh[b];if(c){var d=c.length,c=f8a(a,c),c=g8a(a,c);a.Lh[b]=c;d!=c.length?h8a(a,b):c.forEach(function(a){a.Xa&&a.offsetTop&&(a.Xa.style.top=a.offsetTop+"px")})}}},j8a=function(a,b,c){return z.Oa(a.Lh[b]||[],function(a){return a.Xa==c})},d8a=function(a,b){var c=[];U7(a.yf,b).Yg(function(a){var e=a.bD(),g;e?(g=this.yf.$T(e),e=g.kb(),g=z.J(g,"endIndex")):(e=0,g=a.ib().length);c.push({anchor:b,
startIndex:e,endIndex:g,notes:[a],quotes:[],responses:[]})},a);if(a.Lda)return c;(a.Ae.du[b]||[]).forEach(function(a){var e=k8a(a);c.push({anchor:b,startIndex:e.startIndex,endIndex:e.endIndex,notes:[],quotes:[a],responses:[]})},a);I7(a.Dj,b).forEach(function(a){var e=G7(a);e&&(e=H7(e)&&H7(e).lo())&&(e=k8a(e),c.push({anchor:b,startIndex:e.startIndex,endIndex:e.endIndex,notes:[],quotes:[],responses:[a]}))},a);return c},e8a=function(a,b){var c=[];b.sort(function(a,b){return a.startIndex-b.startIndex});
b.forEach(function(a){var b=z.Na(c,function(b){return b.endIndex>=a.startIndex-1&&b.startIndex<=a.endIndex+1});0<=b?this.VH(c[b],a):c.push(a)},a);return c},g8a=function(a,b){var c=[];b.forEach(function(a){if(a.offsetTop){var b=z.Na(c,function(b){return 30>=Math.abs(b.offsetTop-a.offsetTop)});0<=b?this.VH(c[b],a):c.push(a)}},a);return c},h8a=function(a,b){a.ob(".js-paragraphControl-"+b).forEach(z.Lf);a.Lh[b]=a.Lh[b].map(function(a){var b=l8a(this,a),b=z.Iv(m8a,b);b.style.top=a.offsetTop+"px";a.Xa=
b;this.oa().appendChild(a.Xa);z.Jc(b,"is-visible");return a},a)},l8a=function(a,b){var c=b.notes,d=b.responses,e=C7(a.Ae,b.quotes),g=d?d.length:0,k=c?c.length:0,l=0,p=0,r=0,t=!1,w=!1,B={},H={},Q=z.Rp().userId,R=a.$a.Za().Cf().mb();c.forEach(function(a){var b=a.bK();b&&((a=z.J(a,"replies"))&&a.forEach(function(a){k++;a.author&&(a.author.userId==Q&&l++,a.author.social&&a.author.social.isFollowing&&(B[a.author.userId]=a.author),H[a.author.userId]=!0)}),H[b.userId]=!0,b.userId==Q&&l++,b.userId==R?p++:
r++,b.social&&b.social.isFollowing&&(B[b.userId]=b))});e.forEach(function(a){a=a.user;H[a.userId]=!0;a.userId==Q&&(t=!0);a.social&&a.social.isFollowing&&(B[a.userId]=a)});d.forEach(function(a){a=a.Cf();H[a.userId]=!0;a.userId==Q&&(w=!0);a.social&&a.social.isFollowing&&(B[a.userId]=a)});c=b.quotes.filter(function(a){return"anon"==a.mb()});return{postId:a.pb,vC:b.anchor,gKa:k,YKa:g,cz:w,Uy:l,lla:p,hKa:r,g3a:e.length,bz:t,Oja:Object.keys(H).length,VHa:z.fb(B),zE:c.length}},k8a=function(a){var b=a.Fd(),
c=a.De();1<a.paragraphs.length&&(c=a.paragraphs[0].text.length);return{startIndex:b,endIndex:c}},f8a=function(a,b){var c=z.cw();return b.map(function(a){var b=this.nf.get(a.anchor),g=this.$a.dj(b);if(!g)return a;var k;4==g.type&&(g.Ia()&&(k=b.querySelector("figcaption")),k||(k=b));if(!k){g=a.startIndex+1;b=[b];k=0;for(var l=null;0<b.length&&k<g;)if(l=b.pop(),!(l.nodeName in z.HKa))if(3==l.nodeType){var p=l.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");k+=p.length}else if(l.nodeName in z.WQ)k+=
z.WQ[l.nodeName].length;else for(p=l.childNodes.length-1;0<=p;p--)b.push(l.childNodes[p]);k=l}g=z.fw(k,!0);a.offsetTop=Math.round(g.top+c.top);return a},a)},m8a=function(a,b,c){b=z.y;var d='\x3cdiv class\x3d"paragraphControls js-paragraphControl js-paragraphControl-'+z.F(a.vC)+' u-noUserSelect"\x3e',e=z.y,g;if(a.gKa||a.YKa){g='\x3cdiv class\x3d"notesMarker u-noUserSelect" data-action\x3d"select-anchor" data-action-value\x3d"'+z.F(a.vC)+'"\x3e';var k;k={};k=(0,z.y)(z.ij(z.D({name:"asteriskFilled",
size:"19px",content:(0,z.N)('\x3csvg class\x3d"svgIcon-use" width\x3d"19" height\x3d"19" viewBox\x3d"0 0 19 19" \x3e\x3cpath d\x3d"M14.78 8.07a8.681 8.681 0 0 0-.427-1.383.478.478 0 0 0-.584-.27l-3.12.77V4.034c0-.247-.19-.48-.43-.5a7.23 7.23 0 0 0-1.38 0c-.24.02-.43.253-.43.5V7.19L5.3 6.415a.48.48 0 0 0-.583.27c-.18.448-.324.91-.426 1.383-.05.24.1.5.32.58l3.06.754-1.98 2.956c-.14.196-.13.502.04.67.34.332.7.632 1.09.896.2.136.49.077.63-.117l2.09-3.114 2.09 3.112c.15.193.43.252.63.116.39-.26.75-.56 1.09-.89.17-.17.19-.47.04-.67L11.4 9.41l3.06-.76a.517.517 0 0 0 .32-.58" fill-rule\x3d"evenodd"/\x3e\x3c/svg\x3e')},
k)));g=g+z.A(k)+"\x3c/div\x3e"}else g="";var l=k="",p="",r=1==a.Uy?z.n("a note"):z.n("notes"),p=p+(""+r),p=z.E(p);1==a.Oja&&(0<a.Uy||a.bz||a.cz)&&(0<a.Uy&&a.bz&&a.cz?(p=z.n("highlighted, responded, and left {$noteCountText}",{noteCountText:""+p}),l+=" "+p):0<a.Uy&&a.cz?(p=z.n("responded and left {$noteCountText}",{noteCountText:""+p}),l+=" "+p):0<a.Uy&&a.bz?(p=z.n("highlighted and left {$noteCountText}",{noteCountText:""+p}),l+=" "+p):a.bz&&a.cz?(p=z.n("highlighted and responded"),l+=" "+p):a.bz?
(p=z.n("highlighted"),l+=" "+p):0<a.Uy?(p=z.n("left {$noteCountText}",{noteCountText:""+p}),l+=" "+p):a.cz&&(p=z.n("responded"),l+=" "+p));l=z.E(l);k+='\x3cspan class\x3d"paragraphControls-itemText"\x3e';p="";if(0<a.lla&&0==a.hKa&&!a.bz&&!a.cz)c=1==a.lla?z.n("Note to self"):z.n("Notes to self"),p+=c;else{r="";if(0<a.zE)var t=z.n("Top highlight"),r=r+t;p+=z.A(z.dP(z.D({social:a.VHa,isActive:0<a.Uy||a.bz||a.cz,Ki:a.Oja,s7:!0,tKa:!0,lia:(0,z.N)(r)},a),c));p+=z.A(l)}p=(0,z.N)(p);k+=z.A(z.ZIa(z.D({text:p},
a)))+"\x3c/span\x3e";a=(0,z.y)(k);a=e(g+a);return b(d+a+"\x3c/div\x3e")},r8=function(a,b,c){z.T.call(this);this.qa=a;this.Ja=a.get("app");this.gua=a.get("floating-components");this.Oa=a.get("screen");this.ub=a.get("screen-service");this.Kb=a.get("dom-monitor");this.$a=b;this.xe=b.xe;this.pm=this.xe.querySelector(".js-postField");this.Zea=this.Oa.oa().querySelector(".js-notesPositionContainer");this.Ae=a.get("quotes-data");this.yf=a.get("notes-data");this.yf.subscribe("new_note_list",this.kya,this);
this.Dj=a.get("responses-data");this.mm=null;this.nf=new H7a(this.xe.querySelector(".js-notesSource"));this.RH=this.Lh=this.DR=null;this.Lh=new p8(a,b,this.nf,this.Zea);this.track(this.Lh);this.RH=this.Lh.oa();this.nm=this.e1=null;this.Ue=c},t8=function(a,b){if(a.isActive()){var c=(b=b||a.e1)&&b.tU,d=b&&b.noteId;c&&(a.px(c),d&&a.yf.Tp(d,c)&&a.nm&&z.u(a.nm,function(){return s8(a,c,null,d)}));z.yoa(a.Ja,"")}else a.e1=b||null},s8=function(a,b,c,d,e,g){var k={Wl:!0,i7:z.Mv()};a.S2();c=new l8(a.qa,a.$a,
b,d||"",c||null,a.nf,e||null,g||null);c.subscribe("set-active-highlight",a.Vfa,a);c.subscribe("reset-highlight",a.BBa,a);c.subscribe("close",a.S2,a);b=g&&g.Xa?g.Xa:a.nf.get(b);g=z.Fya(a.gua);g.Rn=b;b=g.LE(c);b.lJ=k;k=b.hX(a.Mn.bind(a));k.tR=!0;a.mm=k.ua()},n8a=function(a,b,c){var d=a.$a.dj(g8(a.nf,b));if(d&&4!=d.type){z.Ns(d,4);if(c){if(!w7a(c,d))return;z.Ls(d,z.us(c.startIndex,c.endIndex,c.id))}c=a.$a.Pb();var e=a.$a.Za();c={mode:c?"edit":"view",Rj:z.$s(e),media:null,am:null,sections:!0,Jk:!1,Gk:!1,
Fl:!1,Tf:!1,postId:e.id};a.nf.get(b).innerHTML=z.wt(d,z.$l,c)}},o8a=function(a,b){var c=z.un();if(!c||c.isCollapsed())if(b&&(c=b),!c||c.isCollapsed())return null;b=c.Wf();var d=J7a(a.nf,b);if(!d)return null;a=(b=z.ds(b,z.qB,d))&&a.$a.dj(b);if(!b)return null;var d=z.hw(c,b,!0),e=z.hw(c,b,!1);return-1==d||-1==e?null:new x7a(c,b,new z.Pr({anchor:b.getAttribute("name"),startIndex:d,endIndex:e,content:a.Ia().substring(d,e)}))},p8a=function(){},u8=function(a,b){z.T.call(this);this.Qh=b||a7a;this.fb=a.get("screen-request");
this.va=null;this.m4=a.get("screen-view-state");this.qa=a;this.hga=this.r3=!1;this.Y1=this.Kc=null},v8=function(a){z.Fw.call(this);this.Bz=a},q8a=function(a,b,c){a=z.na(a)?new z.sd(a):a;(a=k7a(a,b,c||{}))&&(new v8(a)).focus()},r8a=function(a){this.pa=a.get("request");this.na=a.get("route-builder")},w8=function(a){z.bm.call(this);this.qa=a;this.wG=a.get("dialog");this.pa=a.get("request");this.na=a.get("route-builder");this.xa=a.get("butter-bar");this.sJ=this.Ea=this.Gx=this.va=null;this.SP=!1},t8a=
function(a){var b=a.Ea.query(".js-tweetEditor-image"),c=a.Ea.query(".js-tweetEditor-imageContainer"),d=a.Ea.query(".js-tweetEditor-imageStatus");z.Jc(c,"u-hide");var e=s8a(a);e.base64=!0;z.v(z.u(a.pa.post(z.Hv(n7a),e,{wC:!1,withCredentials:!1}),function(a){b.src="data:image/png;base64,"+a;z.Nc(c,"u-hide");z.Jc(d,"u-hide");this.SP=!0},a),function(a){z.Bw(a);z.P(d,p7a)},a)},u8a=function(a,b){return 280>=K7(b)?!0:(b=a.Ea.query(".js-tweetEditor-text"),(new z.lz(b,{name:"shimmy-shake",duration:400})).start(),
a=a.Ea.query(".js-tweetEditor-error"),z.P(a,t7a),!1)},s8a=function(a){var b=a.va,c=a.Gx.aMa;a=a.Gx.$La;var d=b.creator,e=b.approvedHomeCollection,g=z.$l,k=null;e&&(k=e.image);var l=null;e&&e.logo&&e.logo.imageId&&(l=e.logo.imageId);var p=null;e&&e.tintColor&&2==e.colorBehavior&&e.logo&&e.logo.imageId&&(p=e.tintColor);var r=null;e&&e.tintColor&&(r=z.yKa(e.tintColor),r=z.Br(r,.6).color);return new L7({content:c,altText:a,title:b.title,author:d&&d.name,date:z.Zg(b.createdAt,g),authorAvatarId:d&&d.imageId,
collection:e&&e.name,collectionAvatarId:k?k.imageId:null,collectionLogoId:l,collectionBackgroundColor:p,collectionHighlightColor:r,version:2})},v8a=function(a){this.pa=a.get("request");this.na=a.get("route-builder");this.qa=a},w8a={kTa:1,mTa:2,lTa:3,nTa:4,oTa:5,jTa:6,$isProtoEnum:!0};z.q(z7,z.L);z.f=z7.prototype;z.f.ca=function(){return""};z.f.ea=function(){return""};z.f.Av=z.h(314);z.f.Ed=z.h(440);z.f.Sb=z.h(444);z.f.ha=function(){return z7.prototype};
z.f.fa={name:"PlacementSlot",ia:!1,fields:{location:{name:"location",g:function(){return w8a},h:1},index:{name:"index",g:z.X,h:2}},ka:{}};z.f.Sb=z.Y(444,function(a){return z.K(this,"index",a)});z.f.Ed=z.Y(440,function(){return z.J(this,"index")});z.q(A7,z.L);z.f=A7.prototype;z.f.ca=function(){return""};z.f.ea=function(){return"Placement"};z.f.tf=function(){return z.J(this,"items")};z.f.Nc=z.h(394);z.f.Av=z.h(313);z.f.Ed=z.h(439);z.f.Sb=z.h(443);z.f.ha=function(){return A7.prototype};
z.f.fa={name:"Placement",ia:!1,fields:{items:{name:"items",g:function(){return z.PL},ra:z.V,h:1},location:{name:"location",g:function(){return w8a},h:2},index:{name:"index",g:z.X,h:3}},ka:{}};z.f.Sb=z.Y(443,function(a){return z.K(this,"index",a)});z.f.Ed=z.Y(439,function(){return z.J(this,"index")});z.f.Nc=z.Y(394,function(a){return z.K(this,"items",a)});z.m(D7,z.Zd);D7.prototype.yk=function(a){var b={};z.jD(this,b,a.Ub(),"");return b};
D7.prototype.Jb=function(a,b){if(!a||!b)return null;var c=new a;Object.keys(b).forEach(function(a){for(var e=a.split(/[[\]]+/).filter(function(a){return!!a}),g=c,k=e.shift();k;){var l=z.uh(g,k);if(!l)break;var p=l.g();if(l.ra()){var r=z.qh(g,k)||[],t=e.shift(),w=Number(t);if(void 0===t||!Number.isInteger(w)||0>w)break;if(p.prototype instanceof z.gh)l=r[w],l||(l=new p,r[w]=l),z.K(g,k,r),g=l;else{if(void 0!==e.shift())break;p=D6a(b[a],l);r[w]=p;z.K(g,k,r)}}else if(p.prototype instanceof z.gh)r=z.qh(g,
k),r||(r=new p,z.K(g,k,r)),g=r;else{if(void 0!==e.shift())break;p=D6a(b[a],l);z.K(g,k,p)}k=e.shift()}});return c};z.q(E7,z.wh);z.f=E7.prototype;z.f.ca=function(){return""};z.f.ea=function(){return""};z.f.Zr=z.h(582);z.f.vW=z.h(435);z.f.ha=function(){return E7.prototype};z.f.fa={name:"PlacementsResponse",ia:!1,fields:{placements:{name:"placements",g:function(){return A7},ra:z.V,h:1},stateParams:{name:"stateParams",g:function(){return z.GM},h:2}},ka:{}};z.q(F7,z.L);z.f=F7.prototype;z.f.ca=function(){return""};
z.f.ea=function(){return""};z.f.vW=z.h(436);z.f.ha=function(){return F7.prototype};z.f.fa={name:"PlacementsRequestQuery",ia:!1,fields:{requestContext:{name:"requestContext",g:function(){return z.hq},h:1},slots:{name:"slots",g:function(){return z7},ra:z.V,h:2},stateParams:{name:"stateParams",g:function(){return z.GM},h:3}},ka:{}};z.TW.prototype.qW=z.Y(597,function(a){a!=this.cQ&&this.Ab&&(this.Ab.ji.contentEditable=a);this.cQ=a});z.RF.prototype.hX=z.Y(588,function(a){this.Mn=a;return this});
z.WF.prototype.hX=z.Y(587,function(a){this.Mn=a;return this});z.CF.prototype.k6=z.Y(586,function(a){a=G7(a);if(!a)return null;a=H7(a)&&H7(a).lo();return a?(a=a.gc())&&a.length?a[0].getName():null:null});E7.prototype.Zr=z.Y(582,function(){return z.J(this,"placements")});
z.kD.prototype.Zr=z.Y(581,function(a,b,c){var d=this;a=F6a(G6a(new F7,a),b);c&&a.vW(c);c=(new D7).yk(a);var e=this.na.la(z.aAa,{},c);return z.lD(this,e,function(){return z.u(d.pa.get(e,{background:!0}),function(a){a=d.Ka.lc(E7,a);d.Aa.sc(a);return a})})});z.$w.prototype.Tp=z.Y(498,function(){return z.J(this,"note")});z.eD.prototype.Tp=z.Y(497,function(a){return this.kc("Note",a)});z.Or.prototype.qy=z.Y(471,function(){return z.J(this,"replyId")});
z.$w.prototype.qy=z.Y(470,function(){return z.J(this,"replyId")});z.Mr.prototype.jz=z.Y(469,function(a){return z.K(this,"highlight",a)});z.Mr.prototype.$T=z.Y(468,function(){return z.J(this,"highlight")});z.Mr.prototype.vv=z.Y(467,function(a){return z.K(this,"author",a)});z.Or.prototype.vv=z.Y(466,function(a){return z.K(this,"author",a)});z.Mr.prototype.bK=z.Y(465,function(){return z.J(this,"author")});z.Or.prototype.bK=z.Y(464,function(){return z.J(this,"author")});
z.Mr.prototype.bD=z.Y(463,function(){return z.J(this,"highlightId")});z.Mr.prototype.yq=z.Y(462,function(a){return z.K(this,"state",a)});z.Or.prototype.yq=z.Y(461,function(a){return z.K(this,"state",a)});z.Uw.prototype.yq=z.Y(460,function(a){return z.K(this,"state",a)});z.Mr.prototype.Cg=z.Y(459,function(){return z.J(this,"noteId")});z.Or.prototype.Cg=z.Y(458,function(){return z.J(this,"noteId")});z.$w.prototype.Cg=z.Y(457,function(){return z.J(this,"noteId")});
z.gr.prototype.wv=z.Y(456,function(a){return z.K(this,"authorId",a)});z.Mr.prototype.wv=z.Y(455,function(a){return z.K(this,"authorId",a)});z.Or.prototype.wv=z.Y(454,function(a){return z.K(this,"authorId",a)});F7.prototype.vW=z.Y(436,function(a){return z.K(this,"stateParams",a)});E7.prototype.vW=z.Y(435,function(a){return z.K(this,"stateParams",a)});z.Gp.prototype.hf=z.Y(356,function(){return z.J(this,"catalogId")});z.$J.prototype.hf=z.Y(355,function(){return z.J(this,"catalogId")});
z.RJ.prototype.hf=z.Y(354,function(){return z.J(this,"catalogId")});z.PL.prototype.hf=z.Y(353,function(){return z.J(this,"catalogId")});z.xJ.prototype.hf=z.Y(352,function(){return z.J(this,"catalogId")});z.uL.prototype.hf=z.Y(351,function(){return z.J(this,"catalogId")});z.oK.prototype.hf=z.Y(350,function(){return z.J(this,"catalogId")});z.mL.prototype.hf=z.Y(349,function(){return z.J(this,"catalogId")});z.lL.prototype.hf=z.Y(348,function(){return z.J(this,"catalogId")});
z.kL.prototype.hf=z.Y(347,function(){return z.J(this,"catalogId")});z.gr.prototype.hf=z.Y(346,function(){return z.J(this,"catalogId")});z.$w.prototype.hf=z.Y(345,function(){return z.J(this,"catalogId")});z.xG.prototype.hf=z.Y(344,function(){return z.J(this,"catalogId")});z.xp.prototype.Av=z.Y(316,function(a){return z.K(this,"location",a)});z.cq.prototype.Av=z.Y(315,function(a){return z.K(this,"location",a)});z7.prototype.Av=z.Y(314,function(a){return z.K(this,"location",a)});
A7.prototype.Av=z.Y(313,function(a){return z.K(this,"location",a)});z.mo.prototype.jU=z.Y(83,function(){return z.J(this,"point")});var T6a=/(?:https?:\/\/|www\.)\w[\w~#-@![\]]*/g;J7.prototype.jU=function(){var a=window.document.body;return z.Sf(a,this.si.node)?this.si:this.Uk&&z.Sf(a,this.Uk)?z.BM(this.KQ,this.Uk):this.Se&&(a=z.gs(this.cua,this.Se))?z.BM(this.KQ,a):null};z.q(L7,z.L);z.f=L7.prototype;z.f.ca=function(){return""};z.f.ea=function(){return""};z.f.ib=function(){return z.J(this,"content")};
z.f.jd=function(a){return z.K(this,"content",a)};z.f.Eb=function(){return z.J(this,"title")};z.f.Hc=function(a){return z.K(this,"title",a)};z.f.bK=function(){return z.J(this,"author")};z.f.vv=function(a){return z.K(this,"author",a)};z.f.getDate=function(){return z.J(this,"date")};z.f.setDate=function(a){return z.K(this,"date",a)};z.f.Lb=function(){return z.J(this,"collection")};z.f.setVersion=function(a){return z.K(this,"version",a)};z.f.gM=function(a){return z.K(this,"template",a)};
z.f.Qd=function(){return z.J(this,"subtitle")};z.f.vf=function(a){return z.K(this,"subtitle",a)};z.f.ha=function(){return L7.prototype};
z.f.fa={name:"TextshotInfo",ia:!1,fields:{content:{name:"content",g:z.W,h:1},altText:{name:"altText",g:z.W,h:2},title:{name:"title",g:z.W,h:3},author:{name:"author",g:z.W,h:4},date:{name:"date",g:z.W,h:5},authorAvatarId:{name:"authorAvatarId",g:z.W,h:6},collection:{name:"collection",g:z.W,h:7},collectionAvatarId:{name:"collectionAvatarId",g:z.W,h:8},collectionLogoId:{name:"collectionLogoId",g:z.W,h:9},collectionBackgroundColor:{name:"collectionBackgroundColor",g:z.W,h:10},collectionHighlightColor:{name:"collectionHighlightColor",
g:z.W,h:11},version:{name:"version",g:z.X,h:12},base64:{name:"base64",g:z.vH,h:13},template:{name:"template",g:z.W,h:14},mainStat:{name:"mainStat",g:z.W,h:15},mainStatTitle:{name:"mainStatTitle",g:z.W,h:16},subtitle:{name:"subtitle",g:z.W,h:17},icon:{name:"icon",g:z.W,h:18},imgKey:{name:"imgKey",g:z.W,h:19}},ka:{}};z.q(M7,z.mm);M7.prototype.yL=function(){if(!this.lk)return null;var a=this.lk.jU();if(!a)return null;var b=this.um.jU();return b?z.gn(a.node,a.offset,b.node,b.offset):null};var x8a={sUa:"quote-respond"};
z.q(O7,z.T);z.f=O7.prototype;z.f.zk=function(){return this.zm.zk()};z.f.ma=function(){O7.ya.ma.call(this);z.Hw(this,this.V_,"data-redirect-type-quote",this.uxa,this);this.Ta(this.xe,"click",this.Fw,this);z.KE(this.$a)&&z.Kv()&&this.Ta(this.xe,"mouseover",this.Sua,this);this.$a.Za().Wr()&&!this.$a.Pb()&&z.v(this.Ae.load(this.$a.Na()),z.Bw);var a=this.zk();a&&(z.Hw(this,a,"quote",this.Pua,this),z.Hw(this,a,"quote-respond",this.Qua,this),z.Hw(this,a,"show",this.e4,this),z.Hw(this,a,"hide",this.Oxa,this))};
z.f.uxa=function(a){var b=z.zE(this.zm,this.zk().Cx);b&&(a.url=new z.sd(this.na.la(z.jDa,{postId:this.$a.Na()},{paragraphs:JSON.stringify([b.xy.Jb().Ub()]),startOffset:b.start,endOffset:b.end})))};z.f.Fw=function(a){z.ds(a.target,function(a){if(a===this.xe)return!0;var c=z.zB(a);if(3==c)return!0;if(7==c){if(c=f7a(this,a))if(P7(this,c),z.Kv())R7(this,c);else{var d=new z.nE;d7a(this,c,a,d)}return!0}return!1}.bind(this))};
z.f.Sua=function(a){z.ds(a.target,function(a){if(a===this.xe)return!0;var c=z.zB(a);if(3==c)return!0;if(7==c){c=z.un();if(!(c&&!c.isCollapsed()||this.zk()&&this.zk().jq())&&(c=f7a(this,a))){var d=this.xe.querySelector('.markup--quote[name~\x3d"'+c.fj()+'"]');a=new z.pE(a,100);d7a(this,c,d,a);P7(this,c)}return!0}return!1}.bind(this))};
z.f.e4=function(){var a=z.un();a&&!a.isCollapsed()&&P7(this,null);if(z.KE(this.$a)&&(a=z.zE(this.zm,this.zk().Cx))){var a=z.fwa(this.Ae,a.xy,a.start,a.end),b=this.zk().Sa().querySelector(".js-highlightMenuQuoteButton");z.Pc(b,"is-active",!!a)}};z.f.Oxa=function(){this.Fp&&P7(this,null)};
z.f.Pua=function(){if(z.KE(this.$a)){var a=z.uE(this.zk());if(a){var b=a.range,c=a.rJa,a=this.zk().Sa().querySelector(".js-highlightMenuQuoteButton"),d=z.Ic(a,"is-active"),b=z.zE(this.zm,b);z.v(z.u(this.Ae.toggle(b.xy,b.start,b.end,!c),function(a){z.CKa();d?z.wE(this.zk()):R7(this,a);var b=c?"selection_menu":"quote_click_menu";S7(this,a.fj(),!d,b)},this),z.Bw)}}};
z.f.Qua=function(){if(z.KE(this.$a)&&z.$l.supportsEdit){var a=z.uE(this.zk());if(a){var b=z.zE(this.zm,a.range);z.v(z.u(this.Ae.create(b.xy,b.start,b.end,1,!0),function(a){S7(this,a.fj(),!0,"selection_menu_quote_respond");this.za("quote-respond",a,b.xy.name)},this),z.Bw)}}};
z.f.Zua=function(a){var b=this.Fp,c=Q7(this,b),d=b.Fd(),e=b.De(),b=a.query(".js-quoteAttributions-pileOn"),g=z.Ic(b,"is-active");z.v(z.u(this.Ae.toggle(c,d,e,!0),function(b){var l=a.query(".js-quoteAttributions-pileOn");z.Qc(l,"is-active");if(l=z.lE(this.Ae,c,d,e)){var p=c7a(this,l),r=a.query(".js-quoteAttributions-info");z.P(r,S6a,p)}else a.Oc();!g&&z.Kv()&&(a.Oc(),R7(this,l));l=z.Kv()?"quote_hover":"quote_click_mobile";S7(this,b.fj(),!g,l)},this),z.Bw)};
z.f.$ua=function(){if(z.KE(this.$a)&&z.$l.supportsEdit){var a=Q7(this,this.Fp),b=this.Fp.Fd(),c=this.Fp.De();z.v(z.u(this.Ae.create(a,b,c,1,!0),function(b){S7(this,b.fj(),!0,"quote_respond");this.za("quote-respond",b,a.name)},this),z.Bw)}};z.f.ava=function(){var a=h7a(this,this.Fp);a&&z.uwa(this.zm,a)};
z.f.Jfa=function(){var a=new M7(this.xe),b=this.Ae.du,c=Object.keys(b).concat(this.ica);z.Za(c);c.forEach(function(a){var c=b[a]||[],g=this.$a;if(g=(a=g.xe&&z.gs(g.xe,a))&&this.$a.dj(a))Q6a(g,c),a.innerHTML=z.wt(g,z.$l,z.Awa(this.$a)),z.Sya(this.EAa,a)},this);this.ica=Object.keys(b);(a=a.restore())&&a.select()};z.q(T7,z.Fw);z.f=T7.prototype;
z.f.load=function(a){if(!z.Sp())return z.vc([]);this.pb=a;this.Ih||(this.Ih=z.v(z.u(this.sl.get(this.na.la(z.bDa,{postId:a}),{background:!0}),this.CAa,this),z.Bw));return this.Ih.Vc()};z.f.cq=function(){return this.fca};z.f.ej=function(){return this.ffa};z.f.$T=function(a){return this.tda[a]||null};z.f.Tp=function(a,b){return z.lN(U7(this,b),a)};z.f.jz=function(a,b){this.tda[a]=b};z.f.Na=function(){return this.pb};
z.f.CAa=function(a){var b=a.references.User;this.ffa=a.post.visibility;var c=a.value;if(c)for(var d=0;d<c.length;d++){var e=c[d];if("HIDDEN"!=e.state){var g=e.replies,k=b;if(g)for(var l=0;l<g.length;l++){var p=g[l],r=p.authorId||null;p.author=r&&k[r]||null}g=e.anchor;k=e.authorId||null;e.author=k&&b[k]||null;g=U7(this,g);e=z.Nr(e);g.add(z.jC(this.Aa,e))}}if(a=a.highlights)for(b=0;b<a.length;b++)this.jz(a[b].id,z.co.Jb(z.Pr,a[b]));this.fca=!0};z.m(X7,z.T);X7.prototype.Zr=function(a){var b=this;if(this.B2){var c=new z.ic;(0,window.setTimeout)(function(){return c.callback()},y8a);return v7a(c,function(){return b.Zr(a)})}if(this.Jn[a])throw Error("Requesting multiple placements for the same location ("+a+") is not supported.");this.iZ.push((new z7).Av(a).Sb(0));var d=new z.ic;this.Jn[a]=d;this.kw||(this.kw=(0,window.setTimeout)(this.BAa.bind(this),z8a));return d};
X7.prototype.BAa=function(){var a=this;this.B2=!0;z.qc(z.v(z.u(this.fb.Zr(this.tBa,this.iZ,this.yga),function(b){var c=b.placements;b=b.stateParams;if(!c)return z.fb(a.Jn).forEach(function(a){return a.callback(null)});c.forEach(function(b){a.Jn[b.location].callback(b)});a.yga=b}),function(b){z.fb(a.Jn).forEach(function(a){return a.Zg(b)})}),function(){var b=a.iZ;if(!z.la(b))for(var c=b.length-1;0<=c;c--)delete b[c];b.length=0;z.lb(a.Jn);(0,window.clearTimeout)(a.kw);a.kw=null;a.B2=!1})};
var y8a=20,z8a=500;z.m(Y7,z.T);Y7.prototype.ma=function(){z.T.prototype.ma.call(this);z.u(z.im(300),this.bsa,this)};
Y7.prototype.bsa=function(){if(this.ri&&this.ri.postIds&&this.ri.postIds.length){for(var a=this.ob(".js-meterThumbnail"),b=new z.ic,c=0;c<this.ri.postIds.length;c++){var d=a[c],e=d.querySelector(".js-thumbnailImage"),g=z.Hv(z.Zi,{imageId:this.ri.previewImageIds[c]?this.ri.previewImageIds[c]:"1*gqOHypRwp9HBuHaiSx6kWQ.png",strategy:"crop-fixed",width:40,height:40});z.Gn(e,"background-image",'url("'+g+'"');z.u(b,this.aZ.bind(this,d,c==a.length-1))}b.callback()}};
Y7.prototype.aZ=function(a,b){b=new z.lz(a,{name:b?"pulse-grow-50-110":"pulse-grow-50-105",duration:800+(b?200:0)});var c=z.u(new z.lz(a.querySelector(".js-thumbnailImage"),{name:"fade-in",duration:800}),function(){z.Jc(a,"is-read")}),d=new z.lz(a.querySelector(".js-thumbnailText"),{name:"color-light-to-white",duration:800});return new z.am([b.start(),c.start(),d.start()])};z.m(Z7,z.T);Z7.prototype.ma=function(){z.T.prototype.ma.call(this);var a=this.Oa.query(".js-postActionsBar");a&&(this.Va(a),(a=this.Oa.qx)?(z.Hw(this,a,"show",this.hC.bind(this,!0)),z.Hw(this,a,"dock",this.hC.bind(this,!0))):z.Hw(this,this.Kb,"scroll-up",this.hC.bind(this,!0)),z.Hw(this,this.Kb,"scroll-down",this.hC.bind(this,!1)),this.hC(!0),z.js(this.Oa.query(".js-openInAppButton")),z7a(this),z.Jv()||this.Ta(this.Oa.oa(),"mousemove",z.gm(200,this.jI,this)))};Z7.prototype.Ca=function(){z.T.prototype.Ca.call(this)};
Z7.prototype.jI=function(a){if(!this.vH){var b=z.HB(this.Ib);a.clientY>b.height-100&&this.hC(!0)}};Z7.prototype.hC=function(a){if(this.$a.isPublished()&&!(this.vH===a||a&&y7a(this))&&(a||z.Sp()||y7a(this))){var b=this.Ga.Wc(),c;b&&(c=b.he())&&z.ag(c,"js-postActionsBarContent")&&b.Oc();(this.vH=a)?this.za(A8a):this.za(B8a);z.Pc(this.oa(),"is-visible",this.vH)}};var A8a="show",B8a="hide";z.m($7,z.T);z.f=$7.prototype;
z.f.ma=function(){var a=this;z.T.prototype.ma.call(this);this.sp&&(z.Hw(this,this.sp,A8a,function(){z.Jc(a.oa(),"is-abovePostActions");a.aQ=!0}),z.Hw(this,this.sp,B8a,function(){z.Nc(a.oa(),"is-abovePostActions");a.aQ=!1}));z.U(this.oa()).ba("dismiss-meter",this.ut,this).ba("expand-meter",this.Xta,this);var b=this.ri.postIds&&1<this.ri.postIds.length,c=z.Ip().isMobile&&!z.Ip().isTablet;if(b||c)this.jw=(0,window.setTimeout)(this.ut.bind(this),C8a);z.u(z.im(300),this.cBa,this)};
z.f.Ca=function(){this.RB&&(this.RB.cancel(),this.RB=null);this.jw&&((0,window.clearTimeout)(this.jw),this.jw=null);z.T.prototype.Ca.call(this)};z.f.ut=function(){var a=this;this.RB=new z.lz(this.oa(),{name:this.aQ?z.Ip().isMobile?"pop-shift-down-35":"pop-shift-down-44":"pop-shift-down-0",duration:550,timing:"ease-in-out"});z.u(this.RB,function(){z.is(a.oa());a.za(D8a)});this.RB.start()};
z.f.Xta=function(){var a=this.query(E8a),b=this.query(F8a),c=this.query(G8a);z.is(a);z.Jc(b,"is-visible");this.jw&&((0,window.clearTimeout)(this.jw),this.jw=null);z.P(c,V6a);z.Nc(c,"u-xs-hide");z.ex(z.TGa,{unlockCount:this.ri.postIds.length})};
z.f.cBa=function(){var a=this;this.Oa.oa().appendChild(this.oa());this.Yea=new z.lz(this.oa(),{name:this.aQ?z.Ip().isMobile?"pop-shift-up-35":"pop-shift-up-44":"pop-shift-up-0",duration:800,timing:"ease-in-out"});z.u(this.Yea.start(),function(){if(a.ri&&a.ri.postIds&&a.ri.postIds.length){for(var b=a.ob(".js-meterThumbnail"),c=new z.ic,d=0;d<a.ri.postIds.length;d++)z.u(c,a.aZ.bind(a,b[d],d==b.length-1));c.callback()}})};
z.f.aZ=function(a,b){b=new z.lz(a,{name:b?"pulse-grow-50-110":"pulse-grow-50-105",duration:800+(b?200:0)});var c=z.u(new z.lz(a.querySelector(".js-thumbnailImage"),{name:"fade-in",duration:800}),function(){z.Jc(a,"is-read")}),d=new z.lz(a.querySelector(".js-thumbnailText"),{name:"color-light-to-white",duration:800});return new z.am([b.start(),c.start(),d.start()])};var C8a=6E3,G8a=".js-dismissMeterIndicator",E8a=".js-expandMeterButton",F8a=".js-moreInfo",D8a="dismissed";z.m(a8,z.T);a8.prototype.ma=function(){var a=this;z.T.prototype.ma.call(this);return z.u(z.v(C7a(this),z.Bw),function(b){b=b.meteringInfo;var c=a.Oa.Da();a.sp=new Z7(c,a.$a);if(b&&0<=b.postIds.indexOf(a.va.id)){var d=z.Iv(b7a,{post:a.va,meteringInfo:b});a.s2=new $7(c,d,a.sp,b);a.Oa.track(a.s2);z.Hw(a,a.s2,D8a,function(){!z.Sp()&&z.$l.useragent.isMobile&&(P6a(a.Oa,a.sp)||a.Oa.track(a.sp))})}else(d=a.Oa.query(".js-paywall"))&&a.Oa.track(new Y7(c,d,b));if(!B7a(a)||z.Sp())P6a(a.Oa,a.sp)||a.Oa.track(a.sp)})};z.m(b8,z.T);b8.prototype.ma=function(){z.T.prototype.ma.call(this);D7a(this)};z.m(c8,z.T);z.f=c8.prototype;z.f.ma=function(){z.T.prototype.ma.call(this);this.$H=this.T_();this.zR=z.CB(this.Ib,this.oa(),"fixed");z.Hw(this,this.Ib,"refresh",this.d$.bind(this));var a=this.oa();z.Kc(a,["u-fixed","u-transition--fadeOut300"]);z.Gn(a,"transform","translateY("+this.b4+"px)");this.vJ();this.d$()};z.f.p9=function(a){this.au=a;return this};z.f.d$=function(){this.j1();this.n1()};
z.f.j1=function(){this.vJ();var a=this.zR.fd(),a=a.top+a.height;if(z.HB(this.Ib).top+this.b4<=this.l_)return this.a4();if(a>=this.k_)return this.bB()};z.f.n1=function(){var a=this.zR.fd(),b=z.HB(this.Ib);return b.height<H8a||this.Dr>b.top||this.R0(a)?this.j0():this.aS()};z.f.R0=function(a){return(0,z.tc)(this.$H,function(b){return z.FN(a,b.fd())})};z.f.aS=function(){z.UR(this.oa(),"u-transition--fadeOut300","u-transition--fadeIn300")};z.f.j0=function(){z.UR(this.oa(),"u-transition--fadeIn300","u-transition--fadeOut300")};
z.f.bB=function(){var a=this.oa();z.UR(a,"u-fixed","u-absolute");z.Gn(a,"transform","translateY("+this.l_+"px)")};z.f.a4=function(){var a=this.oa();z.UR(a,"u-absolute","u-fixed");z.Gn(a,"transform","translateY("+this.b4+"px)")};z.f.vJ=function(){var a=z.CB(this.Ib,this.au);this.k_=z.YA(a)+a.Lf();this.l_=this.k_-this.zR.Lf()};z.f.T_=function(){var a=this;return z.jR(this.au).map(function(b){return z.CB(a.Ib,b)})};var E7a=150,H8a=400;z.m(d8,z.T);z.f=d8.prototype;z.f.ma=function(){z.T.prototype.ma.call(this);this.nR=z.CB(this.Ib,this.oa());this.$H=this.T_();F7a(this)};z.f.p9=function(a){this.au=a;return this};z.f.Xga=function(){if(0==this.nR.Lf())this.za(x8,!1,0,0);else{var a=this.oa(),b=G7a(this);this.Dr!=b&&((this.Dr=b)?(z.Gn(this.oa(),"transform","translateY("+b+"px)"),a&&z.Nc(a,"u-invisible")):a&&z.Jc(a,"u-invisible"),this.za(x8,!z.Ic(a,"u-invisible"),b||0,this.nR.Lf()))}};
z.f.R0=function(a){return this.$H.some(function(b){return z.FN(a,b.fd())})};z.f.T_=function(){var a=this;return z.jR(this.au).map(function(b){return z.CB(a.Ib,b)})};var x8="positioned";z.m(e8,z.T);e8.prototype.ma=function(){z.T.prototype.ma.call(this);this.aR=z.CB(this.Ib,this.m2);if(this.$a.isPublished()&&this.aR.Lf()>I8a){var a=z.Gw(this,".js-postShareWidget"),a=(new c8(this.qa)).Va(a).p9(this.m2);a.Dr=z.YA(this.aR);this.cR=a;this.track(this.cR);z.$l.variants.enable_related_reads_discovery&&(a=z.Gw(this,".js-sidebarRecirc"),this.u2=(new d8(this.qa)).Va(a).p9(this.m2),z.Hw(this,this.u2,x8,this.LEa.bind(this)),this.track(this.u2))}};
e8.prototype.LEa=function(a,b,c){this.cR.Dr=a?b+c:z.YA(this.aR);this.cR.d$()};var I8a=300;f8.prototype.oT=function(a,b,c){return new O7(a,b,c)};f8.prototype.bs=function(){return x8a};H7a.prototype.get=function(a){return g8(this,a)};z.q(h8,z.TW);z.f=h8.prototype;z.f.UI=!1;z.f.oB="";z.f.WI=0;z.f.rs=z.V;z.f.Cg=function(){return this.E1};z.f.save=function(){this.ib().length<=this.ym&&this.vl()};z.f.Gb=function(){(0,window.clearTimeout)(this.WI);h8.ya.Gb.call(this)};
z.f.ma=function(){function a(a){a.stopPropagation()}h8.ya.ma.call(this);this.oB=this.ib();this.jd(this.oB);this.Qx(13,this.J1,this);this.Qx(27,this.K1,this);this.Ab.Ta("blur",this.I1,!1,this);var b=this.Ab.Sa();z.Vv(b,"keydown",a);z.Vv(b,"keyup",a);z.Vv(b,"keypress",a)};z.f.x8=function(a){return a};
z.f.vl=function(){if(this.isEnabled()){var a=this.ib().trim();if(a){this.qW(!1);var b=this.aja(),a=this.$ia(a);this.za("saving",a);z.pc(z.v(z.u(this.sl.post(b,a.Ub()),this.oya,this),this.mya.bind(this,a)),this.qW.bind(this,!0))}}};z.f.oya=function(a){this.za("save",this.x8(a.value))};z.f.mya=function(a,b){this.za("fail",a);this.Ea.error(K7a());z.Bw(b)};z.f.J1=function(a){if(this.Gr&&z.vX(this.Gr))return!1;a.shiftKey||(a.preventDefault(),this.save());return!0};
z.f.K1=function(a){if(this.Gr&&z.vX(this.Gr))return!1;a.preventDefault();this.jd(this.oB);this.za("cancel");return!1};z.f.I1=function(){this.UI&&(this.ib().length>=this.ym?(0,window.confirm)(this.eja())?(this.jd(this.oB),this.za("cancel")):this.focus():this.WI=(0,window.setTimeout)(this.vl.bind(this),100))};z.q(i8,h8);z.f=i8.prototype;z.f.YY=null;z.f.Aba=null;z.f.ZY=null;z.f.fk=null;z.f.p0=null;z.f.o0=null;z.f.sda=null;z.f.jz=function(a){this.fk=a;this.p0=a.startIndex;this.o0=a.endIndex;this.sda=a.content;return this};z.f.eja=function(){var a=z.n("Your note is too long; do you want to abandon your changes?");return(0,z.y)(""+a)};z.f.x8=function(a){var b=z.Fv();a=z.Nr(a).vv(b).wv(b.mb());this.fk&&a.bD()&&this.yf.jz(a.bD(),this.fk);var b=this.yf,c;c=z.jC(b.Aa,a);U7(b,c.he()).add(c);return a};
z.f.aja=function(){return this.Cg()?this.na.la(z.cDa,{postId:this.pb,noteId:this.Cg()}):this.na.la(z.aDa,{postId:this.pb})};z.f.$ia=function(a){var b=z.Fv();a=(new z.Mr({content:a,anchor:this.YY,anchorContent:this.Aba,anchorImage:this.ZY?this.ZY.Ub():null,replies:[],createdAt:Date.now()})).vv(b);null!=this.p0&&null!=this.o0&&(b=new z.Pr({anchor:this.YY,startIndex:this.p0,endIndex:this.o0,content:this.sda}),a.jz(b));return a};z.q(j8,h8);j8.prototype.eja=function(){var a=z.n("Your reply is too long; do you want to abandon your changes?");return(0,z.y)(""+a)};j8.prototype.x8=function(a){var b=z.Fv();a=z.Lja(a).vv(b).wv(b.mb());z.J(this.yf.Tp(a.Cg(),this.Se),"replies").push(a);return a};j8.prototype.aja=function(){return this.Ffa?this.na.la(z.fDa,{postId:this.pb,noteId:this.Cg(),replyId:this.Ffa}):this.na.la(z.eDa,{postId:this.pb,noteId:this.Cg()})};
j8.prototype.$ia=function(a){var b=z.Fv();return(new z.Or({replyId:"",postId:this.pb,noteId:this.Cg(),content:a,createdAt:Date.now()})).vv(b)};z.q(l8,z.T);z.f=l8.prototype;
z.f.ma=function(){l8.ya.ma.call(this);z.U(this.oa()).ba("show-note-editor",this.w3,this).ba("hide-note-editor",this.l0.bind(this,!0)).ba("show-reply-editor",this.oDa,this).ba("hide-reply-editor",this.wva,this).ba("save-note",this.VBa,this).ba("save-reply",this.WBa,this).ba("highlight-quote",this.zva,this).ba("dismiss-note",this.mca.bind(this,!0),this).ba("delete-note",this.mca.bind(this,!1),this).ba("delete-reply",this.lta,this).ba("previous-highlight-tip",this.zAa,this).ba("next-highlight-tip",this.Xwa,
this);Y7a(this);this.Dj&&B7(this.Dj)&&(X7a(this),z.Hw(this,B7(this.Dj),"add",this.lya,this));if(this.K2&&this.Fda&&this.Gda){var a=this.query(".js-inlineNewPostControl"),b=this.K2,c=this.$a.Na(),d=new z.PS(this.qa);d.XL("web-inline-quote-responses");d.Va(a);d.yG=!0;d.f_=!0;d.c_=!0;d.gM(U6a);d.nB=b;d.bM(c);z.QS(d,!0);this.Kc=d;this.Kc.ua();a=n8(this.xI);this.za("set-active-highlight",this.Se,a)}this.fk&&(this.w3(),this.Pf&&this.Pf.focus());o8(this,0)};
z.f.Ca=function(){this.cr&&this.cr.x5();(this.fk||this.xI)&&this.za("reset-highlight",this.Se,null);l8.ya.Ca.call(this)};z.f.Gb=function(){z.lx(this.oa());z.Lf(this.oa());z.dm(this.Kc);z.dm(this.Pf);z.dm(this.cr);z.em(z.fb(this.hk));this.cr=this.hk=this.Pf=this.Kc=null;l8.ya.Gb.call(this)};z.f.qo=function(){if(this.Pf&&this.Pf.ib())return!0;for(var a=z.fb(this.hk),b=0;b<a.length;b++)if(a[b]&&a[b].ib())return!0;return this.Kc&&!this.Kc.isDismissable()?!0:!1};
z.f.Tq=function(){var a=[],b=[],c=[],d=this.sB&&(this.fk||this.xI);d||(this.Ow?(a=this.Ae?C7(this.Ae,this.Ow.quotes):[],b=this.Ow.notes,c=this.Ow.responses):(b=this.yf?z.OC(U7(this.yf,this.Se)):[],this.E1||(this.Ae?(a=this.Ae,a=C7(a,a.du[this.Se]||[])):a=[],c=this.Dj?I7(this.Dj,this.Se):[])));return z.Iv(U7a,{post:this.$a.Za(),quotes:a,notes:b,responses:c,k$:!!this.K2,yW:d,kM:this.sB,zE:this.Nga,iKa:z.JE(this.$a)})};
z.f.lya=function(){var a=this.query(".js-postList"),b=z.Iv(T7a,{responses:I7(this.Dj,this.Se)});z.Mf(b,a);X7a(this)};
z.f.w3=function(){if(this.sB){if(!this.Pf){var a=this.query(".js-noteEditor"),b=z.Hv(R7a),a=this.Pf=new i8(this.qa,a,this.$a.Na(),null,b),b=this.Se,c=this.$a.dj(this.nf.get(this.Se)),d=c.Ia(),c=4==c.type?c.Ee():null;a.YY=b;a.Aba=d;a.ZY=c;(a=this.fk)&&this.Pf.jz(a);z.Hw(this,this.Pf,"saving",this.Tya,this);z.Hw(this,this.Pf,"fail",this.Mxa,this);z.Hw(this,this.Pf,"save",this.Oya,this)}z.Jc(this.query(".js-noteActions"),"is-noteEditorVisible");this.Pf&&this.Pf.focus()}};
z.f.VBa=function(){this.Pf&&this.Pf.save()};z.f.Tya=function(a){this.Pf.jd("");var b=this.query(".js-notesList");a={note:a,post:this.$a.Za(),yW:this.sB,kM:this.sB};a=z.Iv(k8,a);b.appendChild(a);z.Nc(b,"is-empty");Y7a(this);this.l0()};z.f.Oya=function(a){var b=this.query(".js-notesList").lastChild;a=a.Cg();z.Jc(b,"js-note-"+a);b.setAttribute("data-note-id",a);(b=b.querySelector(".js-deleteNote"))&&b.setAttribute("data-action-value",a)};
z.f.Mxa=function(){var a=this.query(".js-notesList");a.removeChild(a.lastChild);z.Jc(a,"is-empty");this.w3()};z.f.l0=function(a){a?this.za("close"):this.Pf&&(this.Pf.ib()&&this.Pf.jd(""),z.Nc(this.query(".js-noteActions"),"is-noteEditorVisible"))};z.f.oDa=function(a){(a=m8(a.target))&&this.sB&&Z7a(this,a)};z.f.WBa=function(a){a=m8(a.target);(a=this.hk[a])&&a.save()};
z.f.Uya=function(a){var b=a.Cg();this.hk[b]&&this.hk[b].jd("");var c=this.yf.Tp(b,this.Se).author.userId==a.author.userId,d=this.query(".js-note-"+a.Cg()+" .js-repliesList");a={note:a,post:this.$a.Za(),ska:c};a=z.Iv(k8,a);d.appendChild(a);z.Nc(d,"is-empty");$7a(this,b)};z.f.Pya=function(a){var b=this.query(".js-note-"+a.Cg()).querySelector(".js-repliesList").lastChild;a=a.qy();z.Jc(b,"js-reply-"+a);(b=b.querySelector(".js-deleteNote"))&&b.setAttribute("data-action-value",a)};
z.f.Nxa=function(a){var b=this.query(".js-note-"+a.Cg()+" .js-repliesList");b.removeChild(b.lastChild);z.Jc(b,"is-empty");Z7a(this,a.Cg())};z.f.wva=function(a){(a=m8(a.target))&&$7a(this,a)};z.f.zva=function(a){a=a.target;var b=a.getAttribute("data-quote-creator-id"),c=g8(this.nf,this.Se);c&&(this.cr&&this.cr.x5(),this.cr=b8a(this,c,a,function(){a8a(this,b,!1);z.dm(this.cr);this.cr=null}),a8a(this,b,!0))};
z.f.yva=function(a){var b=g8(this.nf,this.Se);(a=this.yf.Tp(a.target.getAttribute("data-note-id"),this.Se))&&b&&(b=(b=a.bD())?this.yf.$T(b):null,this.za("set-active-highlight",this.Se,b))};z.f.Ava=function(a){var b=g8(this.nf,this.Se),c;c=this.Dj;a=a.target.getAttribute("data-post-id");c=B7(c)?z.lN(B7(c),a):null;b&&c&&(b=G7(c))&&(b=H7(b)&&H7(b).lo())&&(c=b.gc())&&c.length&&(b=n8(b),this.za("set-active-highlight",this.Se,b))};
z.f.c4=function(){var a=null;this.xI&&(a=n8(this.xI));this.fk&&(a=this.fk);this.za("reset-highlight",this.Se,a)};
z.f.mca=function(a,b){b=b.value;var c=this.yf.Tp(b,this.Se),d=this.query(".js-note-"+b);if(c&&d){z.is(d);this.c4();this.ob(".js-note-item").every(function(a){return z.Ic(a,"u-hide")})&&this.l0(!0);var e=V7(this.yf,c,"HIDDEN");z.v(e.Il,function(b){this.xa.ua(a?L7a():M7a(),"error");e.DL();z.js(d);(400>b.status||499<b.status)&&V7(this.yf,c,"NEW")},this);z.u(this.xa.ua(a?O7a():P7a(),{type:"success",CE:!0}),function(){this.xa.Oc();e.DL();V7(this.yf,c,"NEW");z.js(d)},this)}};
z.f.lta=function(a){var b=a.value,c=this.query(".js-reply-"+b),d=m8(a.target);if(d&&c){z.is(c);var e=W7(this.yf,b,d,this.$a.Na(),this.Se,"HIDDEN");z.v(e.Il,function(){this.xa.ua(N7a(),"error");e.DL();z.js(c);W7(this.yf,b,d,this.$a.Na(),this.Se,"")},this);z.u(this.xa.ua(Q7a(),{type:"success",CE:!0}),function(){this.xa.Oc();e.DL();W7(this.yf,b,d,this.$a.Na(),this.Se,"");z.js(c)},this)}};z.f.zAa=function(){o8(this,this.LP-1)};z.f.Xwa=function(){o8(this,this.LP+1)};z.q(p8,z.T);z.f=p8.prototype;z.f.ma=function(){p8.ya.ma.call(this);var a=[];z.JE(this.$a)&&a.push(this.yf.load(this.pb));this.Lda||(a.push(this.Ae.load(this.pb)),a.push(this.Dj.load(this.pb)));this.tw=z.u(z.u(z.u(z.CR(a),function(){this.tw=null},this),this.render,this),this.hsa,this);z.Hw(this,this.Kb,"resize-end",this.Zf,this)};z.f.Ca=function(){this.tw&&this.tw.cancel();p8.ya.Ca.call(this)};z.f.Gb=function(){this.tw=null;p8.ya.Gb.call(this)};
z.f.render=function(){I7a(this.nf,function(a,b){q8(this,b)},this)};z.f.Zf=function(){I7a(this.nf,function(a,b){i8a(this,b)},this)};z.f.hsa=function(){var a=this.Ae.tp;z.Hw(this,a,"add",this.Oea,this);z.Hw(this,a,"remove",this.Oea,this);(a=B7(this.Dj))&&z.Hw(this,a,"add",this.Lya,this)};z.f.Oea=function(a){c8a(this,Object.keys(z.jwa(this.Ae,a instanceof Array?a:[a])))};z.f.Lya=function(a){c8a(this,(a instanceof Array?a:[a]).map(this.Dj.k6,this.Dj))};
z.f.Tq=function(a){var b=window.document.createElement("div");b.className="notesMarkers";a.appendChild(b);return b};z.f.VH=function(a,b){z.pb(a,{startIndex:Math.min(a.startIndex,b.startIndex),endIndex:Math.max(a.endIndex,b.endIndex),notes:a.notes.concat(b.notes),quotes:a.quotes.concat(b.quotes),responses:a.responses.concat(b.responses)})};z.q(r8,z.T);z.f=r8.prototype;
z.f.ma=function(){r8.ya.ma.call(this);this.Ta(this.Oa.oa(),"click",this.Awa,this,!0);z.U(this.RH).ba("select-anchor",this.$ya,this);var a=this.$a.Za();if(a.Wr()&&!this.$a.Pb()){var b=z.zp(a),b=2==a.visibility&&b&&!z.J(b.Pj(),"memberOfMembershipPlanId");a.allowResponses&&!b&&z.v(this.Dj.load(this.$a.Na(),"best"),z.Bw);z.v(this.Ae.load(this.$a.Na()),z.Bw)}a.Pj().aK()&&(this.HQ=z.u(this.yf.load(this.$a.Na()),this.pya,this));this.e1&&t8(this,null);z.Hw(this,this.ub,"historyUpdate",function(){t8(this,
z.AE())},this);this.Ue&&z.Hw(this,this.Ue,"highlight",this.nya,this)};z.f.Gb=function(){z.dm(this.Lh);this.Lh=null;z.dm(this.mm);this.mm=null;this.RH&&z.U(this.RH).clear("select-anchor");this.HQ&&this.HQ.cancel();this.HQ=null;r8.ya.Gb.call(this)};z.f.pKa=function(a,b){s8(this,b,null,null,a)};z.f.qMa=function(){this.Lh&&this.Lh.Zf()};z.f.qo=function(){if(!this.mm)return!1;var a=this.mm.ib();return a?a.qo():!1};z.f.kya=function(a){a.subscribe("add",this.Wga,this);a.subscribe("remove",this.Wga,this)};
z.f.Wga=function(a){(z.la(a)?a:[a]).forEach(function(a){q8(this.Lh,a.he())},this)};z.f.pya=function(){var a=(0,z.Ea)();this.HQ=null;t8(this,z.AE());this.Ta(this.pm,z.$H,this.U1,this);z.Zx(z.vFa,(0,z.Ea)()-a)};z.f.U1=function(a){(a=a.target.getAttribute("name"))&&g8(this.nf,a)&&i8a(this.Lh,a)};z.f.nya=function(){if(this.Ue){var a=o8a(this,this.Ue.Cx);z.wE(this.Ue);a&&(a=a.highlight,this.Vfa(a.anchor,a),s8(this,a.anchor,a))}};
z.f.Awa=function(a){if(this.mm){var b=a.target;if(!z.Sf(this.mm.oa(),b)){var c=this.mm.ib(),d;if(!(d=!c)){a:if(c.Pf&&c.Pf.ib())c=!0;else{d=z.fb(c.hk);for(var e=0;e<d.length;e++)if(d[e]&&d[e].ib()){c=!0;break a}c=c.Kc&&!c.Kc.hj()?!0:!1}d=!c}d&&(c=this.mm&&this.mm.Rn,d="select-anchor"==b.getAttribute("data-action"),this.S2(),c&&d&&z.Sf(c,b)&&a.stopPropagation())}}};
z.f.Mn=function(a){if(!z.Mv()){var b=a.Rn,c=z.fw(b);a.Nl();a=a.oa();var d=z.fw(a),e=window.innerHeight,g=window.innerWidth,k=this.Oa.query(".js-metabar"),l=0;k&&(l=z.fw(k).height);d.height>=e-l?l7a(a):(z.bw(b),b=c.top+d.height>=e?z.cw().top+e-d.height-10:z.bw(b),c=z.fw(this.RH).left+10,c+d.width>=g&&(c=g-d.width-10),a.style.top=b+"px",a.style.left=c+"px")}};z.f.S2=function(){z.dm(this.mm);this.mm=null};
z.f.$ya=function(a){var b=z.ds(a.target,function(a){return z.Ic(a,"js-paragraphControl")},this.Zea),b=j8a(this.Lh,a.value,b);s8(this,a.value,null,null,null,b)};z.f.Vfa=function(a,b){if(this.$a.Pb()){var c=z.un();this.DR=(c=c&&J7a(this.nf,c.Wf()))&&new M7(c)}n8a(this,a,b)};z.f.BBa=function(a,b){n8a(this,a,b);this.$a.Pb()&&this.DR&&(a=this.DR.restore())&&a.select();this.DR=null};
z.f.px=function(a){if(this.nf&&(a=g8(this.nf,a))){a=Math.max(z.bw(a),0);var b=window.document.body;this.nm&&this.nm.cancel();this.nm=new z.ao(b,"scrollTop",600,a)}};p8a.prototype.oT=function(a,b,c){return new r8(a,b,c)};z.m(u8,z.T);z.f=u8.prototype;z.f.rc=function(a){this.va=a};z.f.gM=function(a){this.Qh=a};z.f.tLa=function(a){this.r3=a};z.f.uLa=function(a){this.hga=a};
z.f.ma=function(){this.oa()?(z.T.prototype.ma.call(this),z.U(this.oa()).ba("show-responses-stream-editor",this.lza,this).ba("show-other-responses",this.nga,this),z.P(this.oa(),this.Qh,{post:this.va}),this.va.Wr()&&z.v(z.u(z.u(z.u(O6a(this.fb,this.va.Bb(),"best"),this.Dfa.bind(this,"best")),this.iBa,this),function(){this.m4.F9&&this.nga()},this),z.Bw)):z.Bw("Attempted to initialize ResponsesStreamControl without root element.")};z.f.Ca=function(){z.U(this.oa()).clear("show-other-responses");z.T.prototype.Ca.call(this)};
z.f.Dfa=function(a,b){this.isActive()&&(b=b.Qe,"best"==a?(a=this.query(".js-responsesStream"),z.Hw(this,b,"add",this.oea.bind(this,b)),this.oea(b)):a=this.query(".js-responsesStreamOther"),b&&(z.Up()||0<b.Ne())&&a&&(z.P(a,z.pP,{items:z.OC(b),context:2}),b=new z.sS(this.qa,b),b.Va(a),b.Bd(2),this.track(b),z.js(this.query(".js-responsesStreamWrapper"))),this.hga&&(a=z.bw(a),z.Zv(window.document.body,0,a)))};
z.f.iBa=function(){var a=this.query(".js-inlineNewPostControl"),b=this.query(".js-responsesLoggedOutPrompt");z.Up()?a?(this.Kc=z.QS(H6a((new z.PS(this.qa)).XL("web-inline-post-response").bM(this.va.Bb()),z.Gv(z.gi,{post:this.va,iW:!0})),this.r3).Va(a),this.track(this.Kc)):b&&this.r3&&(a=z.aw(b),b=z.bw(b),z.Zv(a,0,b)):b&&z.Jc(b,"u-hide")};
z.f.nga=function(){this.Y1||(this.Y1=z.pc(z.u(z.u(O6a(this.fb,this.va.Bb(),"other"),this.Dfa.bind(this,"other")),function(){z.is(this.query(".js-showOtherResponses"));this.m4.F9=!0},this),function(){this.Y1=null},this))};z.f.oea=function(a){(a=a.kl)&&a.next&&"other"==a.next.filter&&!this.m4.F9&&(z.js(this.query(".js-responsesStreamWrapper")),z.js(this.query(".js-showOtherResponses")))};z.f.ey=function(){this.Kc&&(z.pR(this.Kc.oa(),new z.An(60,0,200,0)),this.Kc.ey())};
z.f.lza=function(){var a=this.query(".js-responsesStreamEditor"),b=this.query(".js-showResponsesStreamEditorButton");z.ks(a)&&(z.js(a),z.is(b),this.ey())};z.q(v8,z.Fw);v8.prototype.focus=function(){this.isActive&&this.Bz.focus()};v8.prototype.close=function(){this.Bz&&!this.Bz.closed&&this.Bz.close();this.za("close");this.hg()};v8.prototype.isActive=function(){return this.Bz?!this.Bz.closed:!1};v8.prototype.Wa=function(){this.Bz=null;v8.ya.Wa.call(this)};z.f=r8a.prototype;z.f.oE=function(a,b,c){var d;d=z.$l;var e=new z.fi(z.Zl(d)),e=new z.sd(e.Dl(a));d=N7(e,d);this.Xw(d);z.ex(z.KI,{postId:a.id,type:b,source:c,dest:"facebook",dialogType:"native"})};z.f.y9=function(a){var b;b=z.$l;var c=new z.fi(z.Zl(b));a=new z.sd(c.la(z.xu,{catalogSlug:a.hf(),username:a.Cf().Dk()}));b=N7(a,b);this.Xw(b)};z.f.z9=function(a){var b;b=z.$l;var c=new z.fi(z.Zl(b));a=new z.sd(c.la(z.ou,{sequenceSlug:a.td()}));b=N7(a,b);this.Xw(b)};
z.f.f6=function(){var a=this.na.la(z.ICa);return this.pa.get(a)};z.f.Xw=function(a){q8a(a,"facebook-share",{width:550,height:320})};z.q(w8,z.bm);
w8.prototype.open=function(a,b){this.va=a;this.Gx=b;this.Ea=this.wG.open({bodyHtml:z.Gv(q7a,this.Gx),type:"tweet"},!0);a=this.Ea.query(".js-tweetEditor-text");b=this.qa;var c=String,d;d=z.n("Enter tweet text.");d=(0,z.y)(""+d);this.sJ=new z.RX(b,a,c(d),!0);a=new z.mU(280,!0);a.aca=K7;this.sJ.cb(a);a=Y6a(m7a,this.Gx,z.$l);this.sJ.jd(a);this.sJ.focus();t8a(this);z.U(this.Ea.cc).ba("remove-textshot",this.$fa.bind(this,!1),this).ba("add-textshot",this.$fa.bind(this,!0),this).ba("toggle-expand-image",this.hEa,
this);this.Ea.subscribe(z.zy,this.UEa.bind(this))};w8.prototype.UEa=function(){var a=this.sJ.ib();if(u8a(this,a)){var b=this.SP?s8a(this):null;z.v(z.u(this.pa.post(this.na.la(z.GCa),{tweet:a,textshotInfo:b}),function(a){a=z.Hv(o7a,{id:a.value});a=z.Gv(s7a,{jMa:a});this.xa.ua(a,{type:"success",Pk:1E4})},this),function(a){z.Bw(a);this.xa.ua(r7a(),"error")},this);z.Tx(z.kFa,{postId:this.va.id,type:this.Gx.shareType,source:this.Gx.xLa,dest:"twitter",style:this.SP?"textshot":null});this.Ea.close()}};
w8.prototype.$fa=function(a){this.SP=a;z.Pc(this.Ea.query(".js-tweetEditor-imageContainer"),"u-hide",!a);z.Pc(this.Ea.query(".js-tweetEditor-addTextshot"),"u-hide",a)};w8.prototype.hEa=function(){var a=this.Ea.query(".js-tweetEditor-image");z.Qc(a,"tweetEditor-image--expanded")};z.f=v8a.prototype;z.f.wLa=function(a,b){var c=z.Rp(),d=a.creator||{},e=K6a(b),g=J6a(b),k=Z6a(a,z.$l);(b=u7a(b.h6()))&&z.Ad(k,b||"");var l={name:d.name||"",username:d.username||"",twitterScreenName:d.twitterScreenName||"",url:k.toString(),content:a.title,user:c,aMa:e,$La:g,shareType:"highlight",xLa:"highlight_menu"};z.v(z.u(this.qa.load("tweet-dialog"),function(b){b.open(a,l)}),z.Bw);z.Tx(z.KI,{postId:a.id,type:"highlight",source:"highlight_menu",dest:"twitter",dialogType:"inapp"});return!0};
z.f.oE=function(a,b,c,d,e){var g=z.Rp().userId,k="highlight"==c?m7a:z.Rja,l=z.$l,p=a.creator||{};b={content:b,name:p.name||"",username:p.username||"",twitterScreenName:p.twitterScreenName||"",Fha:p.userId==g,url:Z6a(a,l).toString(),collaborators:d||[]};d=d&&d.length?String(k(b,null,l)):Y6a(k,b,l);k=new z.sd("https://twitter.com/intent/tweet");z.Ed(k,"text",d);this.Xw(k);z.ex(z.KI,{postId:a.id,type:c,source:e,dest:"twitter",dialogType:"native"})};
z.f.y9=function(a){var b=z.$l,c=new z.fi(z.Zl(b)),c=(new z.sd(c.la(z.xu,{catalogSlug:a.hf(),username:a.Cf().Dk()}))).toString();a=z.C(""+z.Fk(String(a.name))+((null==a.creator?null:a.creator.userId)!=b.currentUser.userId?" — "+z.Vr({twitterScreenName:null==a.creator?null:a.creator.twitterScreenName,name:null==a.creator?null:a.creator.name}):"")+" "+(""+c));b=new z.sd("https://twitter.com/intent/tweet");z.Ed(b,"text",a);this.Xw(b)};
z.f.z9=function(a){var b=new z.fi(z.Zl(z.$l)),b=(new z.sd(b.la(z.ou,{sequenceSlug:a.td()}))).toString();a=z.C(""+z.Fk(String(a.title))+" "+(""+b));b=new z.sd("https://twitter.com/intent/tweet");z.Ed(b,"text",a);this.Xw(b)};z.f.Xw=function(a){q8a(a,"twitter-share",{width:670,height:420})};var J8a=z.Bx,K8a=J8a.Da();z.Ex(z.Ex(z.Ex(z.Ex(z.Ex(K8a.scope("screen").add("quotes",f8).add("quote-responses",p8a).add("responses-stream-control",u8).add("notes-data",T7),"PlacementsStore",X7),"Meter",a8),"PostMeterBar",$7),"PostFooterReadNext",b8),"PostSidebar",e8);K8a.scope("app").add("twitter",v8a).add("facebook",r8a).add("tweet-dialog",w8);z.mN(J8a,"notes");}).call(this, _mdm);
