Страница 4 из 4
{array:c,aug:b,compact:d,containsElement:j,filter:f,map:g,indexOf:e,isNative:i,toType:h})});provide("dom/cookie",function(a){using("util/util",function(b){a(function(a,c,d){var e=b.aug({},d);if(arguments.length>1&&String(c)!=="[object Object]"){if(c===null||c===undefined)e.expires=-1;if(typeof e.expires=="number"){var f=e.expires,g=new Date((new Date).getTime()+f*60*1e3);e.expires=g}return c=String(c),document.cookie=[encodeURIComponent(a),"=",e.raw?c:encodeURIComponent(c),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")}e=c||{};var h,i=e.raw?function(a){return a}:decodeURIComponent;return(h=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?i(h[1]):null})})});provide("util/donottrack",function(a){using("dom/cookie",function(b){a(function(a){var c=/\.(gov|mil)(:\d+)?$/i,d=/https?:\/\/([^\/]+).*/i;return a=a||document.referrer,a=d.test(a)&&d.exec(a)[1],b("dnt")?!0:c.test(document.location.host)?!0:a&&c.test(a)?!0:document.navigator?document.navigator["doNotTrack"]==1:navigator?
navigator["doNotTrack"]==1||navigator["msDoNotTrack"]==1:!1})})});provide("tfw/widget/guest_cookie",function(a){using("dom/cookie","util/donottrack","util/decider",function(b,c,d){function f(){var a=b(e)||!1;if(!a)return;a.match(/^v3\:/)||g()}function g(){b(e)&&b(e,null,{domain:".twitter.com",path:"/"})}function h(){c()&&g()}var e="pid";a({set:h,destroy:g,forceNewCookie:f,guest_id_cookie:e})})});provide("$xd/json2.js", function(exports) {window.JSON||(window.JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a)
{var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i)
:"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c')}catch(f){e=document.createElement("iframe"),e.name=a.name}delete a.name}else e=document.createElement("iframe");a.id&&(e.id=a.id,delete a.id);for(c in a)a.hasOwnProperty(c)&&e.setAttribute(c,a[c]);e.allowtransparency="true",e.scrolling="no",e.setAttribute("frameBorder",0);for(d in b||{})b.hasOwnProperty(d)&&(e.style[d]=b[d]);return e}function e(a,b,c,e){var f;this.attrs=b||{},this.styles=c||{},this.appender=e,this.onReady=a,this.sandbox={},f=d(this.attrs,this.styles),f.onreadystatechange=f.onload=this.getCallback(this.onLoad),this.sandbox.frame=f,e?e(f):document.body.appendChild(f)}function f(a,c,d,f){b(function(){new e(a,c,d,f)})}var c=0;window.twttr||(window.twttr={}),window.twttr.sandbox||(window.twttr.sandbox={}),e.prototype.getCallback=function(a){var b=this,c=!1;return function(){c||(c=!0,a.call(b))}},e.prototype.registerCallback=function(a){var b="cb"+c++;return
window.twttr.sandbox[b]=a,b},e.prototype.onLoad=function(){try{this.sandbox.frame.contentWindow.document}catch(a){this.setDocDomain();return}this.sandbox.win=this.sandbox.frame.contentWindow,this.sandbox.doc=this.sandbox.frame.contentWindow.document,this.writeStandardsDoc(),this.sandbox.body=this.sandbox.frame.contentWindow.document.body,this.onReady(this.sandbox)},e.prototype.setDocDomain=function(){var a,b=this.registerCallback(this.getCallback(this.onLoad));a=["javascript:",'document.write("");',"try { window.parent.document; }","catch (e) {",'document.domain="'+document.domain+'";',"}",'window.parent.twttr.sandbox["'+b+'"]();'].join(""),this.sandbox.frame.parentNode.removeChild(this.sandbox.frame),this.sandbox.frame=null,this.sandbox.frame=d(this.attrs,this.styles),this.sandbox.frame.src=a,this.appender?this.appender(this.sandbox.frame):document.body.appendChild(this.sandbox.frame)},e.prototype.writeStandardsDoc=function(){var a=["","","","","try { window.parent.document; }",'catch (e) {document.domain="'+document.domain+'";}',"","","",""].join("");this.sandbox.doc.write(a),this.sandbox.doc.close()},a(f)})});provide("tfw/widget/tracking",function(a){using("dom/cookie","dom/sandbox","util/donottrack","tfw/widget/guest_cookie","tfw/widget/env","util/util","$xd/json2.js",function(b,c,d,e,f,g,h){function u(){function
a(a){t=a.frame,s=a.doc,r=a.doc.body,n=D(),o=E();while(p[0])y.apply(this,p.shift());q&&z()}t=document.getElementById("rufous-sandbox"),t?(s=t.contentWindow.document,r=s.body):c(
a,{id:"rufous-sandbox"},{display:"none"})}function v(a,b,c){var d=i+b;if(!a)return;return a[d]=c,a}function w(a,c,g,h,i){var k=j[g],l,m={},n;if(!k)return;c||(c={}),i=!!i,h=!!h,n=c.original_redirect_referrer||document.referrer,i=i||d(n);for(l in c)m[l]=c[l];h||(v(m,"referrer",n),v(m,"widget",+f.isDynamicWidget()),v(m,"hask",+!!b("k")),v(m,"li",+!!b("twid")),v(m,e.guest_id_cookie,b(e.guest_id_cookie)||"")),i&&(v(m,"dnt",1),G(m)),F(a,k+"?"+C(m)),x(a,c,g,h,i)}function x(a,b,c,d,e){if(/Firefox/.test(navigator.userAgent))return;var f=B(b,c,d,e),g="//r.twimg.com/jot?";if(!f)return;g+=C({l:H(f)}),f.dnt&&(g+="&dnt="+ +f.dnt),F(a,g)}function y(a,b,c,d){var e,f,g,h;if(!r){p.push([a,b,c,d]);return}e=B(a,b,c,d),f=n.firstChild;if(!e)return;g=s.createElement("input"),f.value=+f.value||+e.dnt,h=H(e),g.type="hidden",g.name="l",g.value=h,n.appendChild(g)}function z(){if(!n){q=!0;return}if(n.children.length<=1)return;r.appendChild(n),r.appendChild(o),n.submit(),window.setTimeout(A(n,o),6e4),n=D(),o=E()}function A(a,b){return function(){var c=a.parentNode;c.removeChild(a),c.removeChild(b)}}function B(a,c,h,i)
{var j={_category_:"tfw_widgets"},l,m,n,o,p;c=~g.indexOf(k,c)&&c;if(!c)return;a||(a={}),h=!!h,i=!!i,j.event_name=c+":impression",p=a.original_redirect_referrer||document.referrer,j.dnt=i=i||d(p);for(l in a)a.hasOwnProperty(l)&&(j[l]=a[l]);return h||(j.logged_in=!!b("twid"),j.referrer=p,j.widget=f.isDynamicWidget(),j.pid=b(e.guest_id_cookie)||""),i&&G(j),j}function C(a){var b=[],c,d,e;for(c in a)a.hasOwnProperty(c)&&(d=encodeURIComponent(c),e=encodeURIComponent(a[c]),e=e.replace(/'/g,"%27"),b.push(d+"="+e));return b.join("&")}function D(){var a=s.createElement("form"),b=s.createElement("input");return m++,a.action="//r.twimg.com/jot",a.method="POST",a.target="rufous-frame-"+m,a.id="rufous-form-"+m,b.type="hidden",b.name="dnt",b.value=0,a.appendChild(b),a}function E(){var a,b="rufous-frame-"+m,c=0;try{a=s.createElement("")}catch(d){a=s.createElement("iframe"),a.name=b}return a.id=b,a.style.display="none",a.width=0,a.height=0,a.border=0,a}function F(a,b){var c=a.ownerDocument.createElement("img");c.src=b,c.alt="",c.style.position="absolute",c.style.height="1px",c.style.width="1px",c.style.top="-9999px",c.style.left="-9999px",a.appendChild(c)}function G(a){var b;for(b in a)~g.indexOf(l,b)&&delete a[b]}function H(a){var b=Array.prototype.toJSON,c;return delete Array.prototype.toJSON,c=JSON.stringify(a),Array.prototype.
toJSON=b,c}var i="twttr_",j={tweetbutton:"//p.twitter.com/t.gif",followbutton:"//p.twitter.com/f.gif",tweetembed:"//p.twitter.com/e.gif"},k=["tweetbutton","followbutton","tweetembed","tweetbox","timeline","timeline-poll"],l=["hask","li","logged_in","pid",e.guest_id_cookie,i+"hask",i+"li",i+e.guest_id_cookie],m=0,n,o,p=[],q,r,s,t;e.forceNewCookie(),a(
{enqueue:y,flush:z,initPostLogging:u,addPixel:w,addRufousPixel:x,addVar:v})})});using("util/domready","util/util","util/querystring","util/params","tfw/widget/tracking","tfw/widget/guest_cookie","util/widgetrpc","i18n/languages",function(a,b,c,d,e,f,g,h){function z(a){i=a,k.innerHTML=F(i)}function A(){a(function(){if(n.url&&n.count!=="none"){var a=j.createElement("script");a.type="text/javascript",a.src=twttr.config.countURL+"?url="+c.encodePart(t)+"&callback=twttr.receiveCount",j.body.appendChild(a)}})}function B(){switch(n.type){case"hashtag":return _("Tweet %{hashtag}",{hashtag:"#"+n.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+n.screen_name+""});default:return _("Tweet")}}function C(){var a=j.getElementById("l");j.title=_("Tweet Button"),a.innerHTML=B()}function D(a,b){var c=a.id+"-desc",d=document.createElement("p");d.id=c,d.className="aria",d.innerHTML=b,j.body.appendChild(d),a.setAttribute("aria-describedby",c)}function E(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 F(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[n.lang]?(c=(Math.floor(d/100)/100).toString(),c+_("10k unit")):(b=(Math.round(d/100)/10).toString(),b.replace(/\./,_("."))+_("K")):_("100K+")}function G(a){return a=a||window.event,a&&a.preventDefault?a.preventDefault():a.returnValue=!1,a&&a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,!1}function H(a){return a.replace(/(<)|(>)/g,function(a){var b;return a[0]==="<"?b="<":b=">",b})}function I(a){for(var b=0,c=a.length;b0&&(k.title=_(
"This page has been shared %{tweets} times. View these Tweets.",{tweets:a.count}),D(k,k.title)))},n.type=~b.indexOf(q,n.type)?n.type:"share",n.size=p[n.size]?n.size:"m",J(j.documentElement,p[n.size]||""),n.align=="right"&&J(j.body,"right");if(n.type=="mention"||n.screen_name)(y=(n.screen_name||"").match(/^\s*@?([\w_]{1,20})\s*$/i))?n.screen_name=y[1]:(delete n.screen_name,n.type=="mention"&&(n.type="share",n.count="none"));n.type=="hashtag"||n.button_hashtag?((x=(n.button_hashtag||"").match(/^\s*#?([^.,<>!\s\/#\-\(\)\'\"]+)\s*$/i))?(n.button_hashtag=x[1],n.hashtags=n.button_hashtag+","+(n.hashtags||"")):(delete n.button_hashtag,n.type="share"),n.count="none"):n.type=="share"?(n.url=n.url||j.referrer,t=n.counturl||n.url,u=t&&"http://twitter.com/search?q="+c.encodePart(t),n.size=="l"&&n.count=="vertical"&&(n.count="none"),r.push(o[n.count]||"hcount"),A()):n.count="none",r.push(rtl),J(j.body,r.join(" ")),C(),J(j.body,"ready"),s={text:n.text,screen_name:n.screen_name,hashtags:n.hashtags,url:n.url,via:n.via,related:n.related,placeid:n.placeid,original_referer:j.referrer,source:"tweetbutton"},v=twttr.config.intentURL+"?"+c.encode(s),w=n.dnt&&n.dnt.toLowerCase()==="true",e.addPixel(document.body,n,"tweetbutton",!1,w),k.href=u,l.href=v,l.onclick=function(a){return
g.withHub({nohub:function(){E(v,n.id)},timeout:function(){E(v,n.id)},success:function(a){a.openIntent(v,n.id),a.trigger("click",{region:"tweet"},n.id)}}),G(a)},n.searchlink!="disabled"?(J(k.parentNode,"enabled"),k.onclick=function(a){return window.open(u),g.withHub(function(a){a.trigger("click",{region:"tweetcount"},n.id)}),G(a)}):k.onclick=function(a){G(a)}})});;