yui-base-min.js revision 620e1cb97d3e8b1b9adae25b0f970778229d82fe
if(typeof YUI==="undefined"){var YUI=function(F,E,D,C,A){var B=this,J=arguments,I,G=J.length,H=(typeof YUI_config!=="undefined")&&YUI_config;if(!(B instanceof YUI)){return new YUI(F,E,D,C,A);}else{B._init();if(H){B._config(H);}for(I=0;I<G;I++){B._config(J[I]);}B._setup();return B;}};}(function(){var D,I,Q="@VERSION@",C="yui3-js-enabled",O=function(){},E={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},J=Array.prototype.slice,B=(typeof window!="undefined"),K=(B)?window:null,N=(B)?K.document:null,F=N&&N.documentElement,M=F&&F.className,A={},G=new Date().getTime(),P=function(U,T,S,R){if(U&&U.addEventListener){U.addEventListener(T,S,R);}else{if(U&&U.attachEvent){U.attachEvent("on"+T,S);}}},H=function(U,T,S,R){if(U&&U.removeEventListener){U.removeEventListener(T,S,R);}else{if(U&&U.detachEvent){U.detachEvent("on"+T,S);}}},L=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(B){H(window,"load",L);}};if(F&&M.indexOf(C)==-1){if(M){M+=" ";}M+=C;F.className=M;}if(Q.indexOf("@")>-1){Q="test";}YUI.prototype={_config:function(W){W=W||{};var T=this.config,U,S,R,V=T.modules;for(U in W){if(V&&U=="modules"){R=W[U];for(S in R){if(R.hasOwnProperty(S)){V[S]=R[S];}}}else{if(U=="win"){T[U]=W[U].contentWindow||W[U];T.doc=T[U].document;}else{T[U]=W[U];}}}},_init:function(){var S,T=this,R=YUI.Env;T.version=Q;T.gallery="gallery-2010.02.10-01";if(!T.Env){T.Env={mods:{},cdn:"http://yui.yahooapis.com/"+Q+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{}};T.Env._loaded[Q]={};if(R&&T!==YUI){T.Env._yidx=++R._yidx;T.Env._guidp=("yui_"+Q+"_"+T.Env._yidx+"_"+G).replace(/\./g,"_");}T.id=T.stamp(T);A[T.id]=T;}T.constructor=YUI;T.config=T.config||{win:K,doc:N,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(YUI.config&&YUI.config.base)||function(){var U,V,X,Y,W;V=(N&&N.getElementsByTagName("script"))||[];for(X=0;X<V.length;X=X+1){Y=V[X].src;if(Y){W=Y.match(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/);U=W&&W[1];if(U){S=W[2];W=Y.match(/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(W&&W[3]){U=W[1]+W[3];}break;}}}return U||T.Env.cdn;}(),loaderPath:(YUI.config&&YUI.config.loaderPath)||"loader/loader"+(S||"-min.")+"js"};},_setup:function(V){var U=this,R=[],T=YUI.Env.mods,S=U.config.core||["get","intl-base","loader","yui-log","yui-later","yui-throttle"];for(I=0;I<S.length;I++){if(T[S[I]]){R.push(S[I]);}}U.use("yui-base");U.use.apply(U,R);console.log(U.id+" initialized","info","yui");},applyTo:function(X,W,T){if(!(W in E)){this.log(W+": applyTo not allowed","warn","yui");return null;}var S=A[X],V,R,U;if(S){V=W.split(".");R=S;for(U=0;U<V.length;U=U+1){R=R[V[U]];if(!R){this.log("applyTo not found: "+W,"warn","yui");}}return R.apply(S,T);}return null;},add:function(S,X,U,R){var Z,T=this,W=YUI.Env,a=W[Q],V=a&&a.modules;W.mods[S]={name:S,fn:X,version:U,details:R||{}};if(V){if(V[S]&&V[S].requires){Z=T.Array.hash(V[S].requires);}else{V[S]=R;}if(Z&&R&&R.requires){T.mix(Z,R.requires);V[S].requires=T.Object.keys(Z);}}return this;},_attach:function(R,V){var X,U,a,S,Z,T,b=YUI.Env.mods,W=this.Env._attached,Y=R.length;for(X=0;X<Y;X++){U=R[X];a=b[U];if(!W[U]&&a){W[U]=true;S=a.details;Z=S.requires;T=S.use;if(Z){this._attach(this.Array(Z));}if(a.fn){a.fn(this,U);}if(T){this._attach(this.Array(T));}}}},use:function(){var f,h,j,a,l,R=this,m=YUI.Env,S=J.call(arguments,0),U=m.mods,X=R.Env._used,e=m._loaderQueue,o=S[0],T=false,V=S[S.length-1],n=R.config,Z=n.bootstrap,g=[],c=[],W=n.fetchCSS,d=function(p){if(X[p]){return;}var Y=U[p],k,q,i;if(Y){X[p]=true;q=Y.details.requires;i=Y.details.use;}else{if(!m._loaded[Q][p]){g.push(p);}else{X[p]=true;}}if(q){if(typeof q=="string"){d(q);}else{for(k=0;k<q.length;k=k+1){d(q[k]);}}}c.push(p);},b=function(Y){Y=Y||{success:true,msg:"not dynamic"};if(V){V(R,Y);}if(R.fire){R.fire("yui:load",R,Y);}R._loading=false;if(R._useQueue&&R._useQueue.size()&&!R._loading){R.use.apply(R,R._useQueue.next());}};if(this._loading){this._useQueue=this._useQueue||new this.Queue();this._useQueue.add(S);return this;}if(typeof V==="function"){S.pop();}else{V=null;}if(o==="*"){S=[];for(f in U){if(U.hasOwnProperty(f)){S.push(f);}}if(V){S.push(V);}return R.use.apply(R,S);}if(R.Loader){T=true;a=new R.Loader(n);a.require(S);a.ignoreRegistered=true;a.allowRollup=false;a.calculate(null,(W)?null:"js");S=a.sorted;}j=S.length;for(h=0;h<j;h++){d(S[h]);}j=g.length;if(j){g=R.Object.keys(R.Array.hash(g));}if(Z&&j&&R.Loader){R._loading=true;a=new R.Loader(n);a.onEnd=b;a.context=R;a.attaching=S;a.require((W)?g:S);a.insert(null,(W)?null:"js");}else{if(Z&&j&&R.Get&&!R.Env.bootstrapped){R._loading=true;S=R.Array(arguments,0,true);l=function(){R._loading=false;e.running=false;R.Env.bootstrapped=true;R._attach(["loader"]);R.use.apply(R,S);};if(m._bootstrapping){e.add(l);}else{m._bootstrapping=true;R.Get.script(n.base+n.loaderPath,{onEnd:l});}return R;}else{if(j){R.message("Requirement NOT loaded: "+g,"warn","yui");}R._attach(c);b();}}return R;},namespace:function(){var R=arguments,V=null,T,S,U;for(T=0;T<R.length;T=T+1){U=(""+R[T]).split(".");V=this;for(S=(U[0]=="YAHOO")?1:0;S<U.length;S=S+1){V[U[S]]=V[U[S]]||{};V=V[U[S]];}}return V;},log:O,message:O,error:function(S,R){if(this.config.throwFail){throw (R||new Error(S));}else{this.message(S,"error");}return this;},guid:function(R){var S=this.Env._guidp+(++this.Env._uidx);return(R)?(R+S):S;},stamp:function(T,U){if(!T){return T;}var R=(typeof T==="string")?T:T._yuid;if(!R){R=this.guid();if(!U){try{T._yuid=R;}catch(S){R=null;}}}return R;}};D=YUI.prototype;for(I in D){if(1){YUI[I]=D[I];}}YUI._init();setTimeout(function(){YUI._attach(["yui-base"]);},0);if(B){P(window,"load",L);}else{L();}YUI.Env.add=P;YUI.Env.remove=H;if(typeof exports=="object"){exports.YUI=YUI;}})();YUI.add("yui-base",function(B){(function(){B.Lang=B.Lang||{};var R=B.Lang,G="array",I="boolean",D="date",M="error",S="function",H="number",K="null",F="object",O="regexp",N="string",C=Object.prototype.toString,P="undefined",E={"undefined":P,"number":H,"boolean":I,"string":N,"[object Function]":S,"[object RegExp]":O,"[object Array]":G,"[object Date]":D,"[object Error]":M},J=/^\s+|\s+$/g,Q="";
R.isArray=function(L){return R.type(L)===G;};R.isBoolean=function(L){return typeof L===I;};R.isFunction=function(L){return R.type(L)===S;};R.isDate=function(L){return R.type(L)===D&&L.toString()!=="Invalid Date"&&!isNaN(L);};R.isNull=function(L){return L===null;};R.isNumber=function(L){return typeof L===H&&isFinite(L);};R.isObject=function(U,T){var L=typeof U;return(U&&(L===F||(!T&&(L===S||R.isFunction(U)))))||false;};R.isString=function(L){return typeof L===N;};R.isUndefined=function(L){return typeof L===P;};R.trim=function(L){try{return L.replace(J,Q);}catch(T){return L;}};R.isValue=function(T){var L=R.type(T);switch(L){case H:return isFinite(T);case K:case P:return false;default:return !!(L);}};R.type=function(L){return E[typeof L]||E[C.call(L)]||(L?F:K);};})();(function(){var C=B.Lang,D=Array.prototype,E="length",F=function(M,K,I){var J=(I)?2:F.test(M),H,G,N=K||0;if(J){try{return D.slice.call(M,N);}catch(L){G=[];H=M.length;for(;N<H;N++){G.push(M[N]);}return G;}}else{return[M];}};B.Array=F;F.test=function(I){var G=0;if(C.isObject(I)){if(C.isArray(I)){G=1;}else{try{if((E in I)&&!I.tagName&&!I.alert&&!I.apply){G=2;}}catch(H){}}}return G;};F.each=(D.forEach)?function(G,H,I){D.forEach.call(G||[],H,I||B);return B;}:function(H,J,K){var G=(H&&H.length)||0,I;for(I=0;I<G;I=I+1){J.call(K||B,H[I],I,H);}return B;};F.hash=function(I,H){var L={},G=I.length,K=H&&H.length,J;for(J=0;J<G;J=J+1){L[I[J]]=(K&&K>J)?H[J]:true;}return L;};F.indexOf=(D.indexOf)?function(G,H){return D.indexOf.call(G,H);}:function(G,I){for(var H=0;H<G.length;H=H+1){if(G[H]===I){return H;}}return -1;};F.numericSort=function(H,G){return(H-G);};F.some=(D.some)?function(G,H,I){return D.some.call(G,H,I);}:function(H,J,K){var G=H.length,I;for(I=0;I<G;I=I+1){if(J.call(K,H[I],I,H)){return true;}}return false;};})();function A(){this._init();this.add.apply(this,arguments);}A.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){B.Array.each(B.Array(arguments,0,true),function(C){this._q.push(C);},this);return this;},size:function(){return this._q.length;}};B.Queue=A;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new A();(function(){var D=B.Lang,C="__",E=function(H,G){var F=G.toString;if(D.isFunction(F)&&F!=Object.prototype.toString){H.toString=F;}};B.merge=function(){var G=arguments,I={},H,F=G.length;for(H=0;H<F;H=H+1){B.mix(I,G[H],true);}return I;};B.mix=function(F,O,H,N,L,M){if(!O||!F){return F||B;}if(L){switch(L){case 1:return B.mix(F.prototype,O.prototype,H,N,0,M);case 2:B.mix(F.prototype,O.prototype,H,N,0,M);break;case 3:return B.mix(F,O.prototype,H,N,0,M);case 4:return B.mix(F.prototype,O,H,N,0,M);default:}}var K=M&&D.isArray(F),J,I,G;if(N&&N.length){for(J=0,I=N.length;J<I;++J){G=N[J];if(O.hasOwnProperty(G)){if(M&&D.isObject(F[G],true)){B.mix(F[G],O[G]);}else{if(!K&&(H||!(G in F))){F[G]=O[G];}else{if(K){F.push(O[G]);}}}}}}else{for(J in O){if(O.hasOwnProperty(J)){if(M&&D.isObject(F[J],true)){B.mix(F[J],O[J],H,N,0,true);}else{if(!K&&(H||!(J in F))){F[J]=O[J];}else{if(K){F.push(O[J]);}}}}}if(B.UA.ie){E(F,O);}}return F;};B.cached=function(H,F,G){F=F||{};return function(K,J){var I=(J)?Array.prototype.join.call(arguments,C):K;if(!(I in F)||(G&&F[I]==G)){F[I]=H.apply(H,arguments);}return F[I];};};})();(function(){B.Object=function(H){var G=function(){};G.prototype=H;return new G();};var E=B.Object,F=function(H,G){return H&&H.hasOwnProperty&&H.hasOwnProperty(G);},D=undefined,C=function(K,J){var I=(J===2),G=(I)?0:[],H;for(H in K){if(F(K,H)){if(I){G++;}else{G.push((J)?K[H]:H);}}}return G;};E.keys=function(G){return C(G);};E.values=function(G){return C(G,1);};E.size=function(G){return C(G,2);};E.hasKey=F;E.hasValue=function(H,G){return(B.Array.indexOf(E.values(H),G)>-1);};E.owns=F;E.each=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){J.call(H,K[G],G,K);}}return B;};E.some=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){if(J.call(H,K[G],G,K)){return true;}}}return false;};E.getValue=function(K,J){if(!B.Lang.isObject(K)){return D;}var I=B.Array(J),G=I.length,H;for(H=0;K!==D&&H<G;H=H+1){K=K[I[H]];}return K;};E.setValue=function(M,K,L){var J=B.Array(K),I=J.length-1,G,H=M;if(I>=0){for(G=0;H!==D&&G<I;G=G+1){H=H[J[G]];}if(H!==D){H[J[G]]=L;}else{return D;}}return M;};})();B.UA=function(){var F=function(K){var L=0;return parseFloat(K.replace(/\./g,function(){return(L++==1)?"":".";}));},G=B.config.win,J=G&&G.navigator,I={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,caja:J&&J.cajaVersion,secure:false,os:null},E=J&&J.userAgent,H=G&&G.location,D=H&&H.href,C;I.secure=D&&(D.toLowerCase().indexOf("https")===0);if(E){if((/windows|win32/i).test(E)){I.os="windows";}else{if((/macintosh/i).test(E)){I.os="macintosh";}else{if((/rhino/i).test(E)){I.os="rhino";}}}if((/KHTML/).test(E)){I.webkit=1;}C=E.match(/AppleWebKit\/([^\s]*)/);if(C&&C[1]){I.webkit=F(C[1]);if(/ Mobile\//.test(E)){I.mobile="Apple";}else{C=E.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(C){I.mobile=C[0];}}C=E.match(/Chrome\/([^\s]*)/);if(C&&C[1]){I.chrome=F(C[1]);}else{C=E.match(/AdobeAIR\/([^\s]*)/);if(C){I.air=C[0];}}}if(!I.webkit){C=E.match(/Opera[\s\/]([^\s]*)/);if(C&&C[1]){I.opera=F(C[1]);C=E.match(/Opera Mini[^;]*/);if(C){I.mobile=C[0];}}else{C=E.match(/MSIE\s([^;]*)/);if(C&&C[1]){I.ie=F(C[1]);}else{C=E.match(/Gecko\/([^\s]*)/);if(C){I.gecko=1;C=E.match(/rv:([^\s\)]*)/);if(C&&C[1]){I.gecko=F(C[1]);}}}}}}return I;}();},"@VERSION@");