Tweet
","",""].join("");this.document.write(t),this.document.close()}},t(u)})}),provide("sandbox/minimal",function(t){using("sandbox/baseframe","util/env","util/promise","util/util",function(e,n,r,i){function o(t,e){t&&(this._frame=t,this._win=t.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=e)}i.aug(o.prototype,{createElement:function(t){return this._doc.createElement(t)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(t){return this.layout(i.bind(function(){return this._body.appendChild(t)},this))},setBaseTarget:function(t){var e=this._doc.createElement("base");return e.target=t,this.layout(i.bind(function(){return this._head.appendChild(e)},this))},setTitle:function(t){t&&(this._frame.title=t)},element:function(){return this._frame},document:function(){return this._doc}}),o.createSandbox=function(t,n,r,i){var u=new e(t,n,r,i);return u.ready().then(function(t){return new o(t.frame,t.layout)})},t(o)})}),provide("dom/delegate",function(t){using("util/util",function(e){function n(t){var e=t.getAttribute("data-twitter-event-id");return e?e:(t.setAttribute("data-twitter-event-id",++g),g)}function r(t,e,n){var r=0,i=t&&t.length||0;for(r=0;i>r;r++)t[r].call(e,n)}function i(t,e,n){for(var o=n||t.target||t.srcElement,u=o.className.split(" "),a=0,c=u.length;c>a;a++)r(e["."+u[a]],o,t);r(e[o.tagName],o,t),t.cease||o!==this&&i.call(this,t,e,o.parentElement||o.parentNode)}function o(t,e,n,r){function o(r){i.call(t,r,n[e])}function a(){i.call(t,t.ownerDocument.parentWindow.event,n[e])}return t.addEventListener?(u(t,o,e,r),void t.addEventListener(e,o,!1)):void(t.attachEvent&&(u(t,a,e,r),t.attachEvent("on"+e,a)))}function u(t,e,n,r){t.id&&(v[t.id]=v[t.id]||[],v[t.id].push({el:t,listener:e,type:n,rootId:r}))}function a(t){var n=v[t];n&&(e.forEach(n,function(t){c(t.el,t.type,t.listener),delete m[t.rootId]}),delete v[t])}function c(t,e,n){t&&t.removeEventListener&&t.removeEventListener(e,n),t&&t.detachEvent&&t.detachEvent(e,n)}function s(t,e,r,i){var u=n(t);m[u]=m[u]||{},m[u][e]||(m[u][e]={},o(t,e,m[u],u)),m[u][e][r]=m[u][e][r]||[],m[u][e][r].push(i)}function f(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,function(){n(window.event)})}function l(t,e,r){var o=n(e),u=m[o]&&m[o];i.call(e,{target:r},u[t])}function d(t){return h(t),p(t),!1}function p(t){t&&t.preventDefault?t.preventDefault():t.returnValue=!1}function h(t){t&&(t.cease=!0)&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}var m={},g=-1,v={};t({stop:d,stopPropagation:h,preventDefault:p,delegate:s,on:f,simulate:l,removeDelegatesForWidget:a,off:c})})}),provide("dom/cookie",function(t){using("util/util",function(e){t(function(t,n,r){var i,o,u,a,c=e.aug({},r);return arguments.length>1&&"[object Object]"!==String(n)?((null===n||void 0===n)&&(c.expires=-1),"number"==typeof c.expires&&(i=c.expires,o=new Date((new Date).getTime()+60*i*1e3),c.expires=o),n=String(n),document.cookie=[encodeURIComponent(t),"=",c.raw?n:encodeURIComponent(n),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")):(c=n||{},a=c.raw?function(t){return t}:decodeURIComponent,(u=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?a(u[1]):null)})})}),provide("tfw/util/tracking",function(t){var e="3b8b35c298c308d5929861124acca0d86c839730:1414619355";using("dom/cookie","dom/delegate","sandbox/minimal","util/donottrack","util/promise","util/querystring","util/tld","tfw/util/env","util/iframe","util/util","xd/json2",function(n,r,i,o,u,a,c,s,f,l){function d(){return M?F:(i.createSandbox({id:"rufous-sandbox"},{display:"none"}).then(l.bind(function(t){D=t,A=N(),R=k(),L.fulfill([A,R])},this)),M=!0,F)}function p(t,e,n,r){return h(t,e,n,r,2)}function h(t,e,n,r,i){var o=!l.isObject(t),u=e?!l.isObject(e):!1;o||u||w(S(t),O(e,n,r,i),!0)}function m(t,e,n,r,i){var o=g(t.target||t.srcElement);o.action=i||"click",h(o,e,n,r)}function g(t,e){var n;return e=e||{},t&&1===t.nodeType?((n=t.getAttribute("data-scribe"))&&l.forEach(n.split(" "),function(t){var n=l.trim(t).split(":"),r=n[0],i=n[1];r&&i&&!e[r]&&(e[r]=i)}),g(t.parentNode,e)):e}function v(t,e,n){var r,i;n&&l.isObject(t)&&l.isObject(e)&&(r=l.aug({},e,{event_namespace:t}),i={l:P(r)},r.dnt&&(i.dnt=1),I(a.url(n,i)))}function w(t,e,n){var r,i,o,u;l.isObject(t)&&l.isObject(e)&&(n?v(t,e,B):(o=l.aug({},e,{event_namespace:t}),r=A.firstChild,r.value=+(+r.value||o.dnt||0),u=P(o),i=D.createElement("input"),i.type="hidden",i.name="l",i.value=u,A.appendChild(i)))}function y(t,e,n,r){var i=!l.isObject(t),o=e?!l.isObject(e):!1;i||o||F.then(function(){w(S(t),O(e,n,r))})}function b(t){_("tweet",t)}function E(t){_("timeline",t)}function _(t,e){c.isHostPageSensitive()||J[t]||(J[t]=!0,v(S({page:t,action:"impression"}),T(e),H))}function j(){return F.then(function(){if(A.children.length<=2)return u.reject();var t=u.every(D.appendChild(A),D.appendChild(R)).then(function(t){var e=t[0],n=t[1];return r.on(n,"load",function(){x(e,n)(),twttr.events.trigger("logFlushed")}),e.submit(),t});return A=N(),R=k(),t})}function x(t,e){return function(){var n=t.parentNode;n&&(n.removeChild(t),n.removeChild(e))}}function S(t){return l.aug({client:"tfw"},t||{})}function O(t,n,r,i){var u=t&&t.widget_origin||document.referrer;return t=C("tfw_client_event",t,r||o(u)),t.client_version=e,t.format_version=void 0!==i?i:1,n||(t.widget_origin=u),t}function T(t){return C("syndicated_impression",{},t)}function C(t,e,n){return e=e||{},l.aug(e,{_category_:t,triggered_on:e.triggered_on||+new Date,dnt:!!n})}function N(){var t=D.createElement("form"),e=D.createElement("input"),n=D.createElement("input");return U++,t.action=B,t.method="POST",t.target="rufous-frame-"+U,t.id="rufous-form-"+U,e.type="hidden",e.name="dnt",e.value=0,n.type="hidden",n.name="tfw_redirect",n.value=z,t.appendChild(e),t.appendChild(n),t}function k(){var t="rufous-frame-"+U;return f({id:t,name:t,width:0,height:0,border:0},{display:"none"},D.document())}function I(t){var e=new Image;e.src=t}function P(t){var e,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,e=JSON.stringify(t),n&&(Array.prototype.toJSON=n),e}var A,R,D,L,U=0,M=!1,F=new u(function(t){L=t}),J={},B="https://syndication.twitter.com/i/jot",H="https://syndication.twitter.com/i/jot/syndication",z="https://platform.twitter.com/jot.html";twttr.widgets&&twttr.widgets.endpoints&&(B=twttr.widgets.endpoints.rufous||B,H=twttr.widgets.endpoints.rufous||H,z=twttr.widgets.endpoints.rufousRedirect||z),t({enqueue:y,flush:j,initPostLogging:d,scribeInteraction:m,extractTermsFromDOM:g,addPixel:h,addPixel2:p,scribeTweetAudienceImpression:b,scribeTimelineAudienceImpression:E})})}),using("util/domready","util/util","util/querystring","util/params","tfw/util/tracking","util/widgetrpc","util/twitter","i18n/languages",function(t,e,n,r,i,o,u,a){function c(t){return t=t||window.event,t&&t.preventDefault?t.preventDefault():t.returnValue=!1,t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,!1}function s(t){return t.replace(/(<)|(>)/g,function(t){var e;return e="<"===t[0]?"<":">"})}function f(t){for(var e=0,n=t.length;n>e;e++)t[e]=s(t[e]);return t}function l(t,e){t.className+=" "+e}function d(){var t=N.getElementById("l");N.title=_("Tweet Button"),t.innerHTML=m()}function p(t){C=t,k.innerHTML=w(C)}function h(){t(function(){if(P.url&&"none"!==P.count){var t=N.createElement("script");t.type="text/javascript",t.src=twttr.config.countURL+"?url="+n.encodePart(b)+"&callback=twttr.receiveCount",N.body.appendChild(t)}})}function m(){switch(P.type){case"hashtag":return _("Tweet %{hashtag}",{hashtag:"#"+P.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+P.screen_name+""});default:return _("Tweet")}}function g(t,e){var n=t.id+"-desc",r=document.createElement("p");r.id=n,r.className="aria",r.innerHTML=e,N.body.appendChild(r),t.setAttribute("aria-describedby",n)}function v(t){var e="scrollbars=yes,resizable=yes,toolbar=no,location=yes",n=550,r=420,i=screen.height,o=screen.width,u=Math.round(o/2-n/2),a=0;return i>r&&(a=Math.round(i/2-r/2)),window.open(t,null,e+",width="+n+",height="+r+",left="+u+",top="+a)}function w(t){var e,n,r=parseInt(t,10),i=new RegExp("^\\"+_(",")),o={ja:1,ko:1};return isNaN(r)?"":1e4>r?r.toString().split("").reverse().join("").replace(/(\d{3})/g,"$1"+_(",")).split("").reverse().join("").replace(i,""):1e5>r?o[P.lang]?(n=(Math.floor(r/100)/100).toString(),n+_("10k unit")):(e=(Math.round(r/100)/10).toString(),e.replace(/\./,_("."))+_("K")):_("100K+")}twttr.config=e.aug({countURL:"http://cdn.syndication.twitter.com/widgets/tweetbutton/count.json",intentURL:"https://twitter.com/intent/tweet"},twttr.config||{});var y,b,E,j,x,S,O,T,C=0,N=document,k=N.getElementById("count"),I=N.getElementById("b"),P=f(r.combined(N.location)),A={vertical:"vcount",horizontal:"hcount",none:"ncount"},R={l:"xl",m:"regular"},D=["share","mention","hashtag"],L=[];P.lang=P.lang&&P.lang.toLowerCase(),N.body.parentNode.lang=twttr.lang=P.lang=~e.indexOf(a,P.lang)?P.lang:"en",T=_("ltr"),twttr.receiveCount=function(t){"number"==typeof t.count&&(p(t.count),l(N.body,"count-ready"),t.count>0&&(k.title=_("This page has been shared %{tweets} times. View these Tweets.",{tweets:t.count}),g(k,k.title)))},P.type=~e.indexOf(D,P.type)?P.type:"share",P.size=R[P.size]?P.size:"m",l(N.documentElement,R[P.size]||""),"right"==P.align&&l(N.body,"right"),("mention"==P.type||P.screen_name)&&((O=u.screenName(P.screen_name))?P.screen_name=O:(delete P.screen_name,"mention"==P.type&&(P.type="share",P.count="none"))),"hashtag"==P.type||P.button_hashtag?((S=u.hashTag(P.button_hashtag,!1))?(P.button_hashtag=S,P.hashtags=P.button_hashtag+","+(P.hashtags||"")):(delete P.button_hashtag,P.type="share"),P.count="none"):"share"==P.type?(P.url=P.url||N.referrer,b=P.counturl||P.url,E=b&&"http://twitter.com/search?q="+n.encodePart(b),"l"==P.size&&"vertical"==P.count&&(P.count="none"),L.push(A[P.count]||"hcount"),h()):P.count="none",L.push(T),l(N.body,L.join(" ")),N.body.setAttribute("data-scribe","section:"+P.type),d(),l(N.body,"ready"),y={text:P.text,screen_name:P.screen_name,hashtags:P.hashtags,url:P.url,via:P.via,related:P.related,share_with_retweet:P.share_with_retweet,placeid:P.placeid,original_referer:N.referrer,partner:P.partner,tw_p:"tweetbutton"},j=twttr.config.intentURL+"?"+n.encode(y),x=P.dnt&&"true"===P.dnt.toLowerCase(),i.addPixel({page:"button",section:P.type,action:"impression"},{language:P.lang,message:[,P.size,"none"!=P.count?"withcount":"nocount"].join(":")+":",widget_origin:N.referrer},!1,x),k.href=E,I.href=j,I.onclick=function(t){return t=t||window.event,i.scribeInteraction(t,{},!1,x),o.withHub({nohub:function(){v(j,P.id)},timeout:function(){v(j,P.id)},success:function(t){t.openIntent(j,P.id),t.trigger("click",{region:"tweet"},P.id)}}),c(t)},"disabled"!=P.searchlink?(l(k.parentNode,"enabled"),k.onclick=function(t){return t=t||window.event,i.scribeInteraction(t,{},!1,x),o.withHub(function(t){t.trigger("click",{region:"tweetcount"},P.id)}),t.altKey||t.shiftKey||t.metaKey?void 0:(window.open(E),c(t))}):k.onclick=function(t){c(t)}})}();;