(function(C){var G="string",J="head",S="body",u="script",o="readyState",r="preloaddone",c="loadtrigger",k="srcuri",g="preload",T="complete",E="done",B="which",U="preserve",N="onreadystatechange",l="onload",i="hasOwnProperty",d="script/cache",F="[object ",m=F+"Function]",e=F+"Array]",X=null,f=true,Y=false,M=C.document,n=C.location,s=C.ActiveXObject,D=C.setTimeout,b=C.clearTimeout,t=function(v){return M.getElementsByTagName(v)},Q=Object.prototype.toString,R=function(){},V={},Z={},A=/^[^?#]*\//.exec(n.href)[0],W=/^\w+\:\/\/\/?[^\/]+/.exec(A)[0],q=t(u),O=C.opera&&Q.call(C.opera)==F+"Opera]",P=(function(v){v[v]=v+"";return v[v]!=v+""})(new String("__count__")),L={cache:!(P||O),order:P||O,xhr:f,dupe:f,base:"",which:J};L[U]=Y;L[g]=f;V[J]=t(J);V[S]=t(S);function p(v){return Q.call(v)===m}function a(y,x){var w=/^\w+\:\/\//,v;if(typeof y!==G){y=""}if(typeof x!==G){x=""}v=(w.test(y)?"":x)+y;return((w.test(v)?"":(v.charAt(0)==="/"?W:A))+v)}function j(v){return(a(v).indexOf(W)===0)}function H(x){var w,v=-1;while(w=q[++v]){if(typeof w.src===G&&x===a(w.src)&&w.type!==d){return f}}return Y}function K(AY,AN){AY=!(!AY);if(AN==X){AN=L}var AM=Y,AG=AY&&AN[g],AT=AG&&AN.cache,AV=AG&&AN.order,z=AG&&AN.xhr,AW=AN[U],y=AN.which,AQ=AN.base,AA=R,AP=Y,AJ,AD=f,AE={},AU=[],AH=X;AG=AT||z||AV;function AX(Aa,AZ){if((Aa[o]&&Aa[o]!==T&&Aa[o]!=="loaded")||AZ[E]){return Y}Aa[l]=Aa[N]=X;return f}function x(Ab,Aa,Ac){Ac=!(!Ac);if(!Ac&&!(AX(Ab,Aa))){return }Aa[E]=f;for(var AZ in AE){if(AE[i](AZ)&&!(AE[AZ][E])){return }}AM=f;AA()}function AI(AZ){if(p(AZ[c])){AZ[c]();AZ[c]=X}}function AF(Aa,AZ){if(!AX(Aa,AZ)){return }AZ[r]=f;D(function(){V[AZ[B]].removeChild(Aa);AI(AZ)},0)}function v(Aa,AZ){if(Aa[o]===4){Aa[N]=R;AZ[r]=f;D(function(){AI(AZ)},0)}}function AS(Ab,Ae,Ac,Af,Ad,AZ){var Aa=Ab[B];D(function(){if("item" in V[Aa]){if(!V[Aa][0]){D(arguments.callee,25);return }V[Aa]=V[Aa][0]}var Ag=M.createElement(u);Ag.type=Ac;if(typeof Af===G){Ag.charset=Af}if(p(Ad)){Ag[l]=Ag[N]=function(){Ad(Ag,Ab)};Ag.src=Ae}V[Aa].insertBefore(Ag,(Aa===J?V[Aa].firstChild:X));if(typeof AZ===G){Ag.text=AZ;x(Ag,Ab,f)}},0)}function AL(AZ,Ab,Aa,Ac){Z[AZ[k]]=f;AS(AZ,Ab,Aa,Ac,x)}function AR(Aa,Ac,Ab,Ad){var AZ=arguments;if(AD&&Aa[r]==X){Aa[r]=Y;AS(Aa,Ac,d,Ad,AF)}else{if(!AD&&Aa[r]!=X&&!Aa[r]){Aa[c]=function(){AR.apply(X,AZ)}}else{if(!AD){AL.apply(X,AZ)}}}}function w(Aa,Ad,Ab,Ae){var AZ=arguments,Ac;if(AD&&Aa[r]==X){Aa[r]=Y;Ac=Aa.xhr=(s?new s("Microsoft.XMLHTTP"):new C.XMLHttpRequest());Ac[N]=function(){v(Ac,Aa)};Ac.open("GET",Ad);Ac.send("")}else{if(!AD&&Aa[r]!=X&&!Aa[r]){Aa[c]=function(){w.apply(X,AZ)}}else{if(!AD){Z[Aa[k]]=f;AS(Aa,Ad,Ab,Ae,X,Aa.xhr.responseText);Aa.xhr=X}}}}function AK(Af){if(Af.allowDup==X){Af.allowDup=AN.dupe}var Ae=Af.src,Ac=Af.type,Ag=Af.charset,Aa=Af.allowDup,AZ=a(Ae,AQ),Ab,Ad=j(AZ);if(typeof Ac!==G){Ac="text/javascript"}if(typeof Ag!==G){Ag=X}Aa=!(!Aa);if(!Aa&&((Z[AZ]!=X)||(AD&&AE[AZ])||H(AZ))){if(AE[AZ]!=X&&AE[AZ][r]&&!AE[AZ][E]&&Ad){x(X,AE[AZ],f)}return }if(AE[AZ]==X){AE[AZ]={}}Ab=AE[AZ];if(Ab[B]==X){Ab[B]=y}Ab[E]=Y;Ab[k]=AZ;AP=f;if(!AV&&z&&Ad){w(Ab,AZ,Ac,Ag)}else{if(!AV&&AT){AR(Ab,AZ,Ac,Ag)}else{AL(Ab,AZ,Ac,Ag)}}}function AC(AZ){AU.push(AZ)}function AB(AZ){if(AY&&!AV){AC(AZ)}if(!AY||AG){AZ()}}function AO(Ab){var Aa=[],AZ;for(AZ=-1;++AZ<Ab.length;){if(Q.call(Ab[AZ])===e){Aa=Aa.concat(AO(Ab[AZ]))}else{Aa[Aa.length]=Ab[AZ]}}return Aa}AJ={script:function(){b(AH);var Ab=AO(arguments),Aa=AJ,AZ;if(AW){for(AZ=-1;++AZ<Ab.length;){if(AZ===0){AB(function(){AK((typeof Ab[0]===G)?{src:Ab[0]}:Ab[0])})}else{Aa=Aa.script(Ab[AZ])}Aa=Aa.wait()}}else{AB(function(){for(AZ=-1;++AZ<Ab.length;){AK((typeof Ab[AZ]===G)?{src:Ab[AZ]}:Ab[AZ])}})}AH=D(function(){AD=Y},5);return Aa},wait:function(Ac){b(AH);AD=Y;if(!p(Ac)){Ac=R}var Ad=K(f,AN),AZ=Ad.trigger,Ab=function(){try{Ac()}catch(Ae){if(window&&window.console&&window.console.log){window.console.log(Ae);if(Ae.stack){window.console.log(Ae.stack)}}}AZ()};delete Ad.trigger;var Aa=function(){if(AP&&!AM){AA=Ab}else{Ab()}};if(AY&&!AP){AC(Aa)}else{AB(Aa)}return Ad}};AJ.block=AJ.wait;if(AY){AJ.trigger=function(){var Aa,AZ=-1;while(Aa=AU[++AZ]){Aa()}AU=[]}}return AJ}function I(z){var v,x={},w={UseCachePreload:"cache",UseLocalXHR:"xhr",UsePreloading:g,AlwaysPreserveOrder:U,AllowDuplicates:"dupe"},y={AppendTo:B,BasePath:"base"};for(v in w){y[v]=w[v]}x.order=!(!L.order);for(v in y){if(y[i](v)&&L[y[v]]!=X){x[y[v]]=(z[v]!=X)?z[v]:L[y[v]]}}for(v in w){if(w[i](v)){x[w[v]]=!(!x[w[v]])}}if(!x[g]){x.cache=x.order=x.xhr=Y}x.which=(x.which===J||x.which===S)?x.which:J;return x}C.$LAB={setGlobalDefaults:function(v){L=I(v)},setOptions:function(v){return K(Y,I(v))},script:function(){return K().script.apply(X,arguments)},wait:function(){return K().wait.apply(X,arguments)}};C.$LAB.block=C.$LAB.wait;(function(x,v,w){if(M[o]==X&&M[x]){M[o]="loading";M[x](v,w=function(){M.removeEventListener(v,w,Y);M[o]=T},Y)}})("addEventListener","DOMContentLoaded")})(window);if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());var Mustache=function(){var A=function(){};A.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented:{"IMPLICIT-ITERATOR":true,"TRANSLATION-HINT":true},context:{},render:function(E,D,C,F){if(!F){this.context=D;this.buffer=[]}if(!this.includes("",E)){if(F){return E}else{this.send(E);return }}if(this.pragmas["TRANSLATION-HINT"]){D._mode=this.pragmas["TRANSLATION-HINT"]["mode"]}this.pragmas={};E=this.render_pragmas(E);var B=this.render_section(E,D,C);B=this.render_i18n(B,D,C);if(F){return this.render_tags(B,D,C,F)}this.render_tags(B,D,C,F)},send:function(B){if(B!=""){this.buffer.push(B)}},render_pragmas:function(B){if(!this.includes("%",B)){return B}var D=this;var C=new RegExp(this.otag+"%([\\w-]+) ?([\\w]+=[\\w]+)?"+this.ctag);return B.replace(C,function(G,E,F){if(!D.pragmas_implemented[E]){throw ({message:"This implementation of mustache doesn't understand the '"+E+"' pragma"})}D.pragmas[E]={};if(F){var H=F.split("=");D.pragmas[E][H[0]]=H[1]}return""})},render_partial:function(B,D,C){B=this.trim(B);if(!C||!C[B]){throw ({message:"unknown_partial '"+B+"'"})}if(typeof (D[B])!="object"){return this.render(C[B],D,C,true)}return this.render(C[B],D[B],C,true)},render_i18n:function(D,C,B){if(D.indexOf(this.otag+"_i")==-1){return D}var F=this;var E=new RegExp(this.otag+"\\_i"+this.ctag+"\\s*([\\s\\S]+?)"+this.otag+"\\/i"+this.ctag+"\\s*","mg");return D.replace(E,function(G,H){var I=undefined;if(F.pragmas&&F.pragmas["TRANSLATION-HINT"]&&F.pragmas["TRANSLATION-HINT"]["mode"]){I={_mode:F.pragmas["TRANSLATION-HINT"]["mode"]}}else{if(C._mode){I={_mode:C._mode}}}return F.render(_(H,I),C,B,true)})},render_section:function(D,C,B){if(!this.includes("#",D)&&!this.includes("^",D)){return D}var F=this;var E=new RegExp(this.otag+"(\\^|\\#)\\s*(.+)\\s*"+this.ctag+"\\s*([\\s\\S]+?)"+this.otag+"\\/\\s*\\2\\s*"+this.ctag+"\\s*","mg");return D.replace(E,function(H,I,G,J){var K=F.find(G,C);if(I=="^"){if(!K||F.is_array(K)&&K.length===0){return F.render(J,C,B,true)}else{return""}}else{if(I=="#"){if(F.is_array(K)){return F.map(K,function(L){return F.render(J,F.create_context(L),B,true)}).join("")}else{if(F.is_object(K)){return F.render(J,F.create_context(K),B,true)}else{if(typeof K==="function"){return K.call(C,J,function(L){return F.render(L,C,B,true)})}else{if(K){return F.render(J,C,B,true)}else{return""}}}}}}})},render_tags:function(J,B,D,F){var E=this;var I=function(){return new RegExp(E.otag+"(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?"+E.ctag+"+","g")};var G=I();var H=function(N,L,M){switch(L){case"!":return"";case"=":E.set_delimiters(M);G=I();return"";case">":return E.render_partial(M,B,D);case"{":return E.find(M,B);default:return E.escape(E.find(M,B))}};var K=J.split("\n");for(var C=0;C<K.length;C++){K[C]=K[C].replace(G,H,this);if(!F){this.send(K[C])}}if(F){return K.join("\n")}},set_delimiters:function(C){var B=C.split(" ");this.otag=this.escape_regex(B[0]);this.ctag=this.escape_regex(B[1])},escape_regex:function(C){if(!arguments.callee.sRE){var B=["/",".","*","+","?","|","(",")","[","]","{","}","\\"];arguments.callee.sRE=new RegExp("(\\"+B.join("|\\")+")","g")}return C.replace(arguments.callee.sRE,"\\$1")},find:function(C,D){C=this.trim(C);function B(F){return F===false||F===0||F}var E;if(B(D[C])){E=D[C]}else{if(B(this.context[C])){E=this.context[C]}}if(typeof E==="function"){return E.apply(D)}if(E!==undefined){return E}return""},includes:function(C,B){return B.indexOf(this.otag+C)!=-1},escape:function(B){B=String(B===null?"":B);return B.replace(/&(?!\w+;)|["<>\\]/g,function(C){switch(C){case"&":return"&amp;";case"\\":return"\\\\";case'"':return'"';case"<":return"&lt;";case">":return"&gt;";default:return C}})},create_context:function(C){if(this.is_object(C)){return C}else{if(this.pragmas["IMPLICIT-ITERATOR"]){var D=this.pragmas["IMPLICIT-ITERATOR"].iterator||".";var B={};B[D]=C;return B}}},is_object:function(B){return B&&typeof B=="object"},is_array:function(B){return Object.prototype.toString.call(B)==="[object Array]"},trim:function(B){return B.replace(/^\s*|\s*$/g,"")},map:function(F,D){if(typeof F.map=="function"){return F.map(D)}else{var E=[];var B=F.length;for(var C=0;C<B;C++){E.push(D(F[C]))}return E}}};return({name:"mustache.js",version:"0.3.0-dev",to_html:function(D,B,C,F){var E=new A();if(F){E.send=F}E.render(D,B||{},C);if(!F){return E.buffer.join("\n")}}})}();window.twttr=window.twttr||{};var h=function(A){var C=$("<div/>");function B(D){return D?C.text(D).html().replace(/\"/gi,"&quot;"):D}h=function(D){return B(D)};return B(A)};function _(A,C){var B=C&&C._mode;A=twttr.util.getTranslation(A,B);if(C==null){return A}return Mustache.to_html(A,C)}var _scribbler={scribeHost:function(){return top.location.hostname},toScribeParams:function(A){var B=[];for(var C in A){B[B.length]=encodeURIComponent(C)+"="+encodeURIComponent(A[C])}return B.join("&")},scribePrefix:function(B){B=B||{};var A="/scribe?";if(B.host){A="http://"+B.host+A}else{if(!/[\/\.]twitter\.com/.test(_scribbler.scribeHost())&&!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/.test(_scribbler.scribeHost())&&_scribbler.scribeHost()!="localhost"){A="http://twitter.com"+A}}return A},newHostPrefix:function(){return _scribbler.scribePrefix()+"r="+(""+(new Date).getTime()).slice(-4)},scribeUrl:function(B,A){return _scribbler.scribePrefix(B,A)+_scribbler.toScribeParams(B)},_scribe:function(B,A){A=A||{};if(A.xhr){$.ajax({url:B,async:twttr.defaulted(A.async,true)})}else{(new Image()).src=B}}};twttr.scribble=(function(){var B=_scribbler.newHostPrefix(),F=2083-B.length,D=B,E=true;function A(){return B.length===D.length}function C(){B=_scribbler.newHostPrefix();D=B}var G=function(I,L,K){if(!twttr.decider.isAvailable("phoenix_scribe")){return }var J,H;L=L||{};L.page=twttr.app.currentPageName();L.category=K||"webclient";L.event_name=I;L.ts=(new Date()).getTime();J="log%5B%5D="+encodeURIComponent(JSON.stringify(L));if((B.length+J.length)>F){throw"You can't scribe that much stuff in a single call!"}if(!E||(D.length+J.length)>F){_scribbler._scribe(D);C()}D+="&"+J};G.clearBuffer=function(){C()};G.forceScribe=function(H){H=H||{};if(!A()){_scribbler._scribe(D,H);C()}};return G}());var scribble=twttr.scribble;function inspect(B){var A="\n";for(key in B){A+=key+": "+B[key]+"\n"}return A}if(!window.console){(function(){var B=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var A=0;A<B.length;++A){window.console[B[A]]=function(){}}}())}(function(){function A(E,F){for(var D in F){E[D]=F[D]}return E}function C(J,H,F){var I=window;var G=J.split(".");for(var E=0,D=G.length;E<D;++E){if(F){I=twttr.is.def(G[E+1])?(I[G[E]]||{}):(I[G[E]]=H)}else{I=I[G[E]]=I[G[E]]||(twttr.is.def(G[E+1])?{}:H)}}return I}function B(D,G){for(var F=0,E=D.length;F<E;++F){G.call(window,D[F],F,D)}}A(twttr,{create:function(D){var E=function(){};E.prototype=D;E.constructor=E;return new E()},defaulted:function(E,D){return twttr.is.def(E)?E:D},is:{element:function(D){return !!(D&&(this.def(D.nodeType)||(D.document&&D.document.nodeType)))},bool:function(D){return typeof D==="boolean"},nil:function(D){return D===null},def:function(D){return typeof D!=="undefined"},number:function(D){return typeof D==="number"&&isFinite(D)},fn:function(D){return typeof D==="function"},array:function(D){return D?this.number(D.length)&&this.fn(D.splice):false},string:function(D){return typeof D==="string"},blank:(function(){var D="";return function(E){return E===D}}()),falsy:function(D){return !D},object:function(D){return !!(D&&(typeof D==="object"||this.fn(D)))},regex:function(D){return Object.prototype.toString.apply(D)==="[object RegExp]"}},inArray:function(F,E){var D=E.length,G=0;for(G=0;G<D;G++){if(E[G]===F){return true}}return false}});A(twttr,{augmentObject:A,aug:A,augString:C,augmentString:C,each:B,filter:function(E,I,J){var H=J||window;var D=[];for(var G=0,F=E.length;G<F;++G){if(!I.call(H,E[G],G,E)){continue}D.push(E[G])}return D},map:function(G,F,H){var D=twttr.is.array(G)?[]:{};for(var E in G){D[E]=F.call(H||null,G[E],E)}return D},every:function(D,H,I){var G=I||window;for(var F=0,E=D.length;F<E;++F){if(!H.call(G,D[F],F,D)){return false}}return true},provide:function(D){var E=window;twttr.each(D.split("."),function(F){if(!twttr.is.def(E[F])){E[F]={}}E=E[F]});return E},batchObject:function(G,F){var D=[];for(var E in G){D.push(F(E,G[E]))}return D},inject:function(){return this.reduce.apply(this,arguments)},reduce:function(F,D,E){if(arguments.length!==3){throw"Exception: Wrong number of arguments, 3 required"}$.each(F,function(G,H){D=E(D,G,H)});return D},trace:function(){try{throw new Error()}catch(D){return D.stack}},attempt:function(F,G,E){try{G.call(F)}catch(D){twttr.trace.log();E.call(F,D);throw D}},namespaceOf:function(D){return twttr.is.object(D)?D:window},supplant:function(){var D=/\{([^\{\}]*)\}/g;return function(E,F){return E.replace(D,function(H,G){var I=F[G];return twttr.is.string(I)||twttr.is.number(I)?I:H})}}(),memoizing:function(E,F){if(arguments.length===1){F=E;E=undefined}var D,G;return function(){if(!G){D=F.apply(E,arguments);G=true}return D}},merge:function(){var D=jQuery.makeArray(arguments);if(D.length===1){return D[0]}if(twttr.is.bool(D[D.length-1])){D.unshift(D.pop())}return jQuery.extend.apply(null,D)},extend:function(E,G){var D=function(){};D.prototype=G.prototype;E.prototype=new D();E.prototype.constructor=E;E.uber=G.prototype;if(G.prototype.constructor==Object.prototype.constructor){G.prototype.constructor=G}},method:function(D,E){this.prototype[D]=E;return this},methods:function(E){this.prototype._namespace=this._namespace;for(var D in E){this.prototype[D]=E[D];if(twttr.is.fn(E[D])){this.prototype[D]._methodName=D}}return this},statics:function(D){return A(this,D)},klass:function(D,E){var F=function(){if(!(this instanceof arguments.callee)){throw ("Subclassing error")}E.apply(this,arguments)};twttr.magic(D,F);F.method=twttr.method;F.methods=twttr.methods;F.statics=twttr.statics;F._namespace=D;F._name=D.split(".").pop();F._isKlass=true;E._methodName="constructor";F.superclass=function(G){if(!G._isKlass){throw ("You should not be subclassing something that is not a twttr.klass")}twttr.extend(F,G);F.uberclass=G;return F};F.mixin=function(){for(var H=0;H<arguments.length;H++){var G=arguments[H];G.call({},F)}return F};return F},magic:function(D,E){if(twttr.is.string(D)){return C(D,E)}else{return A(D,E)}},inspect:function(E){console.clear();var F=$(E);var K=F.data("events");var D=0;var J=0;var H=[];var G=[];for(key in K){H.push(key);D++;G.push("\n*******************\n");G.push("Events for "+key+"\n\n");for(fn in K[key]){var I=K[key][fn];J++;G.push(I.toSource()+"\n")}}console.log("************* Summary *************");console.log("for target",F);console.log(D+" types of events",H);console.log(J,"Total Event Listeners");console.log("Event listeners assigned to target");console.log(G.join(" "))},bind:function(E,D){return function(){return D.apply(E,arguments)}},wait:(function(){var D={};twttr.clearWait=function(E){if(twttr.is.def(D[E])){clearTimeout(E);delete D[E]}};return function(H,F){var E="TIMER_"+(new Date()).getTime();var G=setTimeout(function(){if(!twttr.is.def(D[E])){return }H()},F);D[E]=G;return E}}())});twttr.trace.log=function(){console.log("current stack:",twttr.trace())};twttr.klass.mixin=function(E,D){return twttr.magic(E,D)};twttr.magic("twttr.util",{params:function(){var E={};var D=window.location.search;if(!D){return E}twttr.each(D.slice(1).split("&"),function(H){H=H.split("=");var G=H[0];var F=decodeURIComponent(H[1]);E[G]=F});return E},underscore:function(D){if(D.toUpperCase()===D){return D}return D.replace(/([a-zA-Z0-9])([A-Z])/g,function(E,G,F){return(G+"_"+F)}).toLowerCase()},camelize:function(D){return D.replace(/_(.)/g,function(E,F){return F.toUpperCase()})},camelizeObject:function(E){if(!twttr.is.object(E)){throw new Error("The carmelizeObject() method only accepts apples.")}var D={};for(var F in E){D[twttr.util.camelize(F)]=E[F]}return D},capitalize:function(D){return D.charAt(0).toUpperCase()+D.substr(1)},addCommas:function(E,D){D=D?D:",";return parseInt(E,10).toString().replace(/(.)(?=(.{3})+$)/g,"$1"+D)},trim:function(D){return D.replace(/(^\s*|\s*$)/g,"")},getTranslation:function(F,E){if(twttr.i18n){var D=undefined;if(E){D=(twttr.i18n[E+":"+F]||twttr.i18n[F])}else{D=twttr.i18n[F]}if(D){F=D}else{}}return F}});C("twttr.EventProvider",{events:null,_provider:function(){if(!this._eventProvider){this._eventProvider=$("<div/>")}return this._eventProvider},_createEvent:function(D){if(!this.events){this.events={}}if(!this.events[D]){this.events[D]=new $.Event(D)}},trigger:function(){this._createEvent(arguments[0]);var D=this._provider();D.trigger.apply(D,arguments)},bind:function(){this._createEvent(arguments[0]);var D=this._provider();D.bind.apply(D,arguments)},one:function(){this._createEvent(arguments[0]);var D=this._provider();D.one.apply(D,arguments)},unbind:function(){var D=this._provider();D.unbind.apply(D,arguments)}});(function(){var N,F=false;try{N=("localStorage" in window)&&window.localStorage!==null;F=true}catch(Q){N=false;F=false}if(document.documentElement.addBehavior){F=false;N=true;var T=document.documentElement;T.addBehavior("#default#userData");T.load("phoenix");var G=T.xmlDocument;var L=G.documentElement;function S(W){var a=L.childNodes,Z,Y=null;for(var X=0,V=a.length;X<V;X++){Z=a.item(X);if(Z.getAttribute("key")==W){Y=Z;break}}return Y}function E(V){var X=S(V);var W=null;if(X){W=X.getAttribute("value")}return W}function K(V,X){var W=S(V);if(!W){W=G.createNode(1,"item","");W.setAttribute("key",V);W.setAttribute("value",X);L.appendChild(W)}else{W.setAttribute("value",X)}T.save("phoenix");return X}function M(V){var W=S(V);if(W){L.removeChild(W)}T.save("phoenix")}function I(){while(L.firstChild){L.removeChild(L.firstChild)}T.save("phoenix")}}function J(V){return window.localStorage.getItem(V)}function O(W,V){return window.localStorage.setItem(W,V)}function U(V){return window.localStorage.removeItem(V)}var H=F?O:K;var P=F?J:E;var D=F?U:M;var R=F?U:I;twttr.klass("twttr.LocalProvider",function(V){this._namespace=V;this._cache=JSON.parse(P(V)||"{}")}).statics({hasLocalStorage:N}).methods({_getTime:function(){return(new Date()).getTime()},set:function(X,W,V){var Z={value:W,expire:twttr.is.number(V)?this._getTime()+V:null};this._cache[X]=Z;try{this._writeThrough()}catch(Y){delete this._cache[X];if(Y.name=="QUOTA_EXCEEDED_ERR"){return W}else{throw Y}}return W},get:function(W){var V=this._cache[W];if(twttr.is.falsy(V)){return undefined}var X=this._getTime();if(V.expire&&V.expire<X){this.remove(W);return undefined}else{return V.value}},remove:function(V){delete this._cache[V];this._writeThrough()},clear:function(){this._cache={};this._writeThrough()},_writeThrough:function(){H(this._namespace,JSON.stringify(this._cache))}})}());twttr.klass("twttr.caches.local.User",function(D){this.name=D;this.cache=new twttr.LocalProvider(":USER:");this.user=this.cache.get(D)||this.cache.set(D,{login:(new Date()).getTime(),store:{}});this.clean()}).methods({_getTime:function(){return(new Date()).getTime()},clean:function(){this.user.login=(new Date()).getTime();var I=0;var H=(new Date).getTime();var G=null;for(var F in this.cache._cache){I++;var E=this.cache._cache[F];var D=E.value.login;if(D<H){H=D;G=F}}if(I>3){this.cache.remove(G)}},remove:function(D){delete this.user.store[D];this.save()},get:function(D){var F=this.user.store[D];if(!twttr.is.def(F)){return undefined}var E=this._getTime();if(F.expire&&F.expire<E){return undefined}else{return F.value}},set:function(F,E,D){var G={value:E,expire:twttr.is.number(D)?this._getTime()+D:null};this.user.store[F]=G;this.save();return E},save:function(){this.cache.set(this.name,this.user)}});twttr.klass("twttr.CacheProvider",function(){this._cache={};this.clear()}).methods({clear:function(){this._cache={}},_getTime:function(){return(new Date()).getTime()},set:function(F,E,D){this._cache[F]={value:E,expire:twttr.is.number(D)?this._getTime()+D:null};return E},get:function(D){this._checkExpirey(D);return this._cache[D]?this._cache[D].value:undefined},remove:function(D){delete this._cache[D]},_checkExpirey:function(D){if(this._cache[D]&&this._cache[D].expire&&this._cache[D].expire<this._getTime()){this.remove(D)}}});twttr.klass("twttr.LimitedStore",function(D){D=D||{};this.limit=D.limit;twttr.CacheProvider.apply(this,arguments)}).superclass(twttr.CacheProvider).methods({clear:function(){this.size=0;this._uses={};this._oldSide={};this._newSide={};this._oldSide.newer=this._newSide;this._newSide.older=this._oldSide;return twttr.CacheProvider.prototype.clear.apply(this)},set:function(F,E,G){G=twttr.is.number(G)?{expire:G}:G||{};if(!this._cache[F]){this.size++}if(this._uses[F]){this._removeUse(F)}var D=twttr.CacheProvider.prototype.set.call(this,F,E,G.expire);if(this._cache[F]){this._appendUse(F)}this._appendUse(F);this._evict();return D},get:function(D){if(this._cache[D]){if(this._uses[D]){this._removeUse(D)}this._appendUse(D)}return twttr.CacheProvider.prototype.get.call(this,D)},remove:function(D){if(this._cache[D]){this.size--;this._removeUse(D)}return twttr.CacheProvider.prototype.remove.call(this,D)},_evict:function(){if(twttr.is.number(this.limit)){while(this.limit<this.size){this.remove(this._oldSide.newer.key)}}},_appendUse:function(E){var D={key:E,newer:this._newSide,older:this._newSide.older};D.older.newer=D;D.newer.older=D;this._uses[E]=D},_removeUse:function(E){var D=this._uses[E];D.older.newer=D.newer;D.newer.older=D.older;delete this._uses[E]}});A(twttr,{actionsTillReady:["tweetStreamLoaded","canTweet","baseNav","listsLoaded","savedSearchesLoaded"]});C("twttr.benchmark",function(E,D,J){if(twttr.is.number(E)){D=E;E=""}var H,G;if(twttr.is.fn(J)){H=J;G=null}else{H=J.run;G=J.onComplete||null}if(!H){throw"If you are using benchmark with options, must at least use the block option"}function F(L,K){console.info("Benchmark results for: ",E);console.log("------------------------------------");console.log("start: "+L);console.log("end: "+K);console.log("running time: "+(K.getTime()-L.getTime())+"ms");console.log("\n")}function I(){if(!(--D)){if(G){G(E,this.startTime,new Date)}else{F(this.startTime,new Date)}}}H({startTime:new Date,done:I})})}());
