Tweet
","",""].join("");this.document.write(a),this.document.close()},a(h)})});provide("sandbox/minimal",function(a){using("sandbox/baseframe","util/env","util/promise","util/util",function(b,c,d,e){function f(a,b){if(!a)return;this._frame=a,this._win=a.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=b}e.aug(f.prototype,{createElement:function(a){return this._doc.createElement(a)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(a){return this.layout(e.bind(function(){return this._body.appendChild(a)},this))},setBaseTarget:function(a){var b=this._doc.createElement("base");return b.target=a,this.layout(e.bind(function(){return this._head.appendChild(b)},this))},setTitle:function(a){if(!a)return;this._frame.title=a},element:function(){return this._frame},document:function(){return this._doc}}),f.createSandbox=function(a,c,d,e){var g=new b(a,c,d,e);return g.ready().then(function(a){return new f(a.frame,a.layout)})},a(f)})});provide("dom/delegate",function(a){using("util/env",function(b){function e(a){var b=a.getAttribute("data-twitter-event-id");return b?b:(a.setAttribute("data-twitter-event-id",++d),d)}function f(a,b,c){var d=0,e=a&&a.length||0;for(d=0;d#"+o.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+o.screen_name+""});default:return _("Tweet")}}function E(){var a=l.getElementById("l");l.title=_("Tweet Button"),a.innerHTML=D()}function F(a,b){var c=a.id+"-desc",d=document.createElement("p");d.id=c,d.className="aria",d.innerHTML=b,l.body.appendChild(d),a.setAttribute("aria-describedby",c)}function G(a){var b="scrollbars=yes,resizable=yes,toolbar=no,location=yes",c=550,d=420,e=screen.height,f=screen.width,g=Math.round(f/2-c/2),h=0;return e>d&&(h=Math.round(e/2-d/2)),window.open(a,null,b+",width="+c+",height="+d+",left="+g+",top="+h)}function H(a){var b,c,d=parseInt(a,10),e=new RegExp("^\\"+_(",")),f={ja:1,ko:1};return isNaN(d)?"":d<1e4?d.toString().split("").reverse().join("").replace(/(\d{3})/g,"$1"+_(",")).split("").reverse().join("").replace(e,""):d<1e5?f[o.lang]?(c=(Math.floor(d/100)/100).toString(),c+_("10k unit")):(b=(Math.round(d/100)/10).toString(),b.replace(/\./,_("."))+_("K")):_("100K+")}function I(a){return a=a||window.event,a&&a.preventDefault?a.preventDefault():a.returnValue=!1,a&&a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,!1}function J(a){return a.replace(/(<)|(>)/g,function(a){var b;return a[0]==="<"?b="<":b=">",b})}function K(a){for(var b=0,c=a.length;b0&&(m.title=_("This page has been shared %{tweets} times. View these Tweets.",{tweets:a.count}),F(m,m.title)))},o.type=~b.indexOf(r,o.type)?o.type:"share",o.size=q[o.size]?o.size:"m",L(l.documentElement,q[o.size]||""),o.align=="right"&&L(l.body,"right");if(o.type=="mention"||o.screen_name)(z=h.screenName(o.screen_name))?o.screen_name=z:(delete o.screen_name,o.type=="mention"&&(o.type="share",o.count="none"));o.type=="hashtag"||o.button_hashtag?((y=h.hashTag(o.button_hashtag,!1))?(o.button_hashtag=y,o.hashtags=o.button_hashtag+","+(o.hashtags||"")):(delete o.button_hashtag,o.type="share"),o.count="none"):o.type=="share"?(o.url=o.url||l.referrer,u=o.counturl||o.url,v=u&&"http://twitter.com/search?q="+c.encodePart(u),o.size=="l"&&o.count=="vertical"&&(o.count="none"),s.push(p[o.count]||"hcount"),C()):o.count="none",s.push(A),L(l.body,s.join(" ")),l.body.setAttribute("data-scribe","section:"+o.type),E(),L(l.body,"ready"),t={text:o.text,screen_name:o.screen_name,hashtags:o.hashtags,url:o.url,via:o.via,related:o.related,placeid:o.placeid,original_referer:l.referrer,partner:o.partner,tw_p:"tweetbutton"},w=twttr.config.intentURL+"?"+c.encode(t),x=o.dnt&&o.dnt.toLowerCase()==="true",e.addLegacyPixel(o,"tweetbutton",!1,x),e.addPixel({page:"button",section:o.type,action:"impression"},{language:o.lang,client_version:j+":"+o.size+(o.count!=="none"?":c":""),widget_origin:l.referrer},!1,x),m.href=v,n.href=w,n.onclick=function(a){return a=a||window.event,e.scribeInteraction(a,{},!1,x),g.withHub({nohub:function(){G(w,o.id)},timeout:function(){G(w,o.id)},success:function(a){a.openIntent(w,o.id),a.trigger("click",{region:"tweet"},o.id)}}),I(a)},o.searchlink!="disabled"?(L(m.parentNode,"enabled"),m.onclick=function(a){a=a||window.event,e.scribeInteraction(a,{},!1,x),g.withHub(function(a){a.trigger("click",{region:"tweetcount"},o.id)});if(a.altKey||a.shiftKey||a.metaKey)return;return window.open(v),I(a)}):m.onclick=function(a){I(a)}})});;