yui-base-min.js revision 7a758cc3ac6018bdd7a48d686a8725ec13a07b3a
if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanceof g));},d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e(f,YUI))){f=new YUI();}else{f._init();if(YUI.GlobalConfig){f.applyConfig(YUI.GlobalConfig);}if(d){f.applyConfig(d);}if(!a){f._setup();}}if(a){for(;c<a;c++){f.applyConfig(b[c]);}f._setup();}f.instanceOf=e;return f;};(function(){var p,b,q="@VERSION@",h=".",n="http://yui.yahooapis.com/",t="yui3-js-enabled",l=function(){},g=Array.prototype.slice,r={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},f=(typeof window!="undefined"),e=(f)?window:null,v=(f)?e.document:null,d=v&&v.documentElement,a=d&&d.className,c={},i=new Date().getTime(),m=function(z,y,x,w){if(z&&z.addEventListener){z.addEventListener(y,x,w);}else{if(z&&z.attachEvent){z.attachEvent("on"+y,x);}}},u=function(A,z,y,w){if(A&&A.removeEventListener){try{A.removeEventListener(z,y,w);}catch(x){}}else{if(A&&A.detachEvent){A.detachEvent("on"+z,y);}}},s=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(f){u(window,"load",s);}},j=function(y,x){var w=y.Env._loader;if(w){w.ignoreRegistered=false;w.onEnd=null;w.data=null;w.required=[];w.loadType=null;}else{w=new y.Loader(y.config);y.Env._loader=w;}return w;},o=function(y,x){for(var w in x){if(x.hasOwnProperty(w)){y[w]=x[w];}}},k={success:true};if(d&&a.indexOf(t)==-1){if(a){a+=" ";}a+=t;d.className=a;}if(q.indexOf("@")>-1){q="3.2.0";}p={applyConfig:function(D){D=D||l;var y,A,z=this.config,B=z.modules,x=z.groups,C=z.rls,w=this.Env._loader;for(A in D){if(D.hasOwnProperty(A)){y=D[A];if(B&&A=="modules"){o(B,y);}else{if(x&&A=="groups"){o(x,y);}else{if(C&&A=="rls"){o(C,y);}else{if(A=="win"){z[A]=y.contentWindow||y;z.doc=z[A].document;}else{if(A=="_yuid"){}else{z[A]=y;}}}}}}}if(w){w._config(D);}},_config:function(w){this.applyConfig(w);},_init:function(){var y,z=this,w=YUI.Env,x=z.Env,A;z.version=q;if(!x){z.Env={mods:{},versions:{},base:n,cdn:n+q+"/build/",_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{},getBase:w&&w.getBase||function(G,F){var B,C,E,H,D;C=(v&&v.getElementsByTagName("script"))||[];for(E=0;E<C.length;E=E+1){H=C[E].src;if(H){D=H.match(G);B=D&&D[1];if(B){y=D[2];if(y){D=y.indexOf("js");if(D>-1){y=y.substr(0,D);}}D=H.match(F);if(D&&D[3]){B=D[1]+D[3];}break;}}}return B||x.cdn;}};x=z.Env;x._loaded[q]={};if(w&&z!==YUI){x._yidx=++w._yidx;x._guidp=("yui_"+q+"_"+x._yidx+"_"+i).replace(/\./g,"_");}else{if(YUI._YUI){w=YUI._YUI.Env;x._yidx+=w._yidx;x._uidx+=w._uidx;for(A in w){if(!(A in x)){x[A]=w[A];}}delete YUI._YUI;}}z.id=z.stamp(z);c[z.id]=z;}z.constructor=YUI;z.config=z.config||{win:e,doc:v,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,cacheUse:true,fetchCSS:true};z.config.base=YUI.config.base||z.Env.getBase(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/,/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(!y||(!("-min.-debug.").indexOf(y))){y="-min.";}z.config.loaderPath=YUI.config.loaderPath||"loader/loader"+(y||"-min.")+"js";},_setup:function(B){var x,A=this,w=[],z=YUI.Env.mods,y=A.config.core||["get","rls","intl-base","loader","yui-log","yui-later","yui-throttle"];for(x=0;x<y.length;x++){if(z[y[x]]){w.push(y[x]);}}A._attach(["yui-base"]);A._attach(w);},applyTo:function(C,B,y){if(!(B in r)){this.log(B+": applyTo not allowed","warn","yui");return null;}var x=c[C],A,w,z;if(x){A=B.split(".");w=x;for(z=0;z<A.length;z=z+1){w=w[A[z]];if(!w){this.log("applyTo not found: "+B,"warn","yui");}}return w.apply(x,y);}return null;},add:function(x,C,B,w){w=w||{};var A=YUI.Env,D={name:x,fn:C,version:B,details:w},E,z,y=A.versions;A.mods[x]=D;y[B]=y[B]||{};y[B][x]=D;for(z in c){if(c.hasOwnProperty(z)){E=c[z].Env._loader;if(E){if(!E.moduleInfo[x]){E.addModule(w,x);}}}}return this;},_attach:function(w,C){var F,A,J,x,I,y,z,L=YUI.Env.mods,B=this,E,D=B.Env._attached,G=w.length,K;for(F=0;F<G;F++){if(!D[w[F]]){A=w[F];J=L[A];if(!J){K=B.Env._loader;if(!K||!K.moduleInfo[A]){B.message("NOT loaded: "+A,"warn","yui");}}else{D[A]=true;x=J.details;I=x.requires;y=x.use;z=x.after;if(I){for(E=0;E<I.length;E++){if(!D[I[E]]){if(!B._attach(I)){return false;}break;}}}if(z){for(E=0;E<z.length;E++){if(!D[z[E]]){if(!B._attach(z)){return false;}break;}}}if(J.fn){try{J.fn(B,A);}catch(H){B.error("Attach error: "+A,H,A);return false;}}if(y){for(E=0;E<y.length;E++){if(!D[y[E]]){if(!B._attach(y)){return false;}break;}}}}}}return true;},use:function(){var y=g.call(arguments,0),D=y[y.length-1],C=this,A=0,B,x,w=C.Env,z=true;if(C.Lang.isFunction(D)){y.pop();}else{D=null;}if(C.config.cacheUse){while((x=y[A++])){if(!w._attached[x]){z=false;break;}}if(z){C._notify(D,k,y);return C;}}if(C._loading){C._useQueue=C._useQueue||new C.Queue();C._useQueue.add([y,D]);}else{C._use(y,function(F,E){F._notify(D,E,y);});}return C;},_notify:function(z,w,x){if(!w.success&&this.config.loadErrorFn){this.config.loadErrorFn.call(this,this,z,w,x);}else{if(z){try{z(this,w);}catch(y){this.error("use callback error",y,x);}}}},_use:function(y,A){if(!this.Array){this._attach(["yui-base"]);}var L,F,M,x=this,N=YUI.Env,z=N.mods,w=x.Env,C=w._used,J=N._loaderQueue,Q=y[0],E=x.Array,O=x.config,D=O.bootstrap,K=[],H=[],P=true,B=O.fetchCSS,I=function(S,R){if(!S.length){return;}E.each(S,function(V){if(!R){H.push(V);}if(C[V]){return;}var T=z[V],W,U;if(T){C[V]=true;W=T.details.requires;U=T.details.use;}else{if(!N._loaded[q][V]){K.push(V);}else{C[V]=true;}}if(W&&W.length){I(W);}if(U&&U.length){I(U,1);}});},G=function(V){var T=V||{success:true,msg:"not dynamic"},S,R,U=true,W=T.data;x._loading=false;if(W){R=K;K=[];H=[];I(W);S=K.length;if(S){if(K.sort().join()==R.sort().join()){S=false;}}}if(S&&W){x._loading=false;x._use(y,function(){if(x._attach(W)){x._notify(A,T,W);}});}else{if(W){U=x._attach(W);}if(U){x._notify(A,T,y);}}if(x._useQueue&&x._useQueue.size()&&!x._loading){x._use.apply(x,x._useQueue.next());}};if(Q==="*"){P=x._attach(x.Object.keys(z));if(P){G();}return x;}if(D&&x.Loader&&y.length){F=j(x);F.require(y);F.ignoreRegistered=true;
F.calculate(null,(B)?null:"js");y=F.sorted;}I(y);L=K.length;if(L){K=x.Object.keys(E.hash(K));L=K.length;}if(D&&L&&x.Loader){x._loading=true;F=j(x);F.onEnd=G;F.context=x;F.data=y;F.ignoreRegistered=false;F.require(y);F.insert(null,(B)?null:"js");}else{if(L&&x.config.use_rls){x.Get.script(x._rls(y),{onEnd:function(R){G(R);},data:y});}else{if(D&&L&&x.Get&&!w.bootstrapped){x._loading=true;M=function(){x._loading=false;J.running=false;w.bootstrapped=true;if(x._attach(["loader"])){x._use(y,A);}};if(N._bootstrapping){J.add(M);}else{N._bootstrapping=true;x.Get.script(O.base+O.loaderPath,{onEnd:M});}}else{P=x._attach(y);if(P){G();}}}}return x;},namespace:function(){var x=arguments,B=this,z=0,y,A,w;for(;z<x.length;z++){w=x[z];if(w.indexOf(h)){A=w.split(h);for(y=(A[0]=="YAHOO")?1:0;y<A.length;y++){B[A[y]]=B[A[y]]||{};B=B[A[y]];}}else{B[w]=B[w]||{};}}return B;},log:l,message:l,error:function(A,y,x){var z=this,w;if(z.config.errorFn){w=z.config.errorFn.apply(z,arguments);}if(z.config.throwFail&&!w){throw (y||new Error(A));}else{z.message(A,"error");}return z;},guid:function(w){var x=this.Env._guidp+(++this.Env._uidx);return(w)?(w+x):x;},stamp:function(y,z){var w;if(!y){return y;}if(y.uniqueID&&y.nodeType&&y.nodeType!==9){w=y.uniqueID;}else{w=(typeof y==="string")?y:y._yuid;}if(!w){w=this.guid();if(!z){try{y._yuid=w;}catch(x){w=null;}}}return w;},destroy:function(){var w=this;if(w.Event){w.Event._unload();}delete c[w.id];delete w.Env;delete w.config;}};YUI.prototype=p;for(b in p){if(p.hasOwnProperty(b)){YUI[b]=p[b];}}YUI._init();if(f){m(window,"load",s);}else{s();}YUI.Env.add=m;YUI.Env.remove=u;if(typeof exports=="object"){exports.YUI=YUI;}}());YUI.add("yui-base",function(c){c.Lang=c.Lang||{};var l=c.Lang,C="array",q="boolean",f="date",g="error",j="function",u="number",B="null",o="object",z="regexp",s="string",t=String.prototype,n=Object.prototype.toString,E="undefined",b={"undefined":E,"number":u,"boolean":q,"string":s,"[object Function]":j,"[object RegExp]":z,"[object Array]":C,"[object Date]":f,"[object Error]":g},y=/^\s+|\s+$/g,A="",e=/\{\s*([^\|\}]+?)\s*(?:\|([^\}]*))?\s*\}/g;l.isArray=function(F){return l.type(F)===C;};l.isBoolean=function(F){return typeof F===q;};l.isFunction=function(F){return l.type(F)===j;};l.isDate=function(F){return l.type(F)===f&&F.toString()!=="Invalid Date"&&!isNaN(F);};l.isNull=function(F){return F===null;};l.isNumber=function(F){return typeof F===u&&isFinite(F);};l.isObject=function(H,G){var F=typeof H;return(H&&(F===o||(!G&&(F===j||l.isFunction(H)))))||false;};l.isString=function(F){return typeof F===s;};l.isUndefined=function(F){return typeof F===E;};l.trim=t.trim?function(F){return(F&&F.trim)?F.trim():F;}:function(F){try{return F.replace(y,A);}catch(G){return F;}};l.trimLeft=t.trimLeft?function(F){return F.trimLeft();}:function(F){return F.replace(/^\s+/,"");};l.trimRight=t.trimRight?function(F){return F.trimRight();}:function(F){return F.replace(/\s+$/,"");};l.isValue=function(G){var F=l.type(G);switch(F){case u:return isFinite(G);case B:case E:return false;default:return !!(F);}};l.type=function(F){return b[typeof F]||b[n.call(F)]||(F?o:B);};l.sub=function(F,G){return((F.replace)?F.replace(e,function(H,I){return(!l.isUndefined(G[I]))?G[I]:H;}):F);};l.now=Date.now||function(){return new Date().getTime();};var v=Array.prototype,x="length",m=function(L,J,H){var I=(H)?2:m.test(L),G,F,M=J||0;if(I){try{return v.slice.call(L,M);}catch(K){F=[];G=L.length;for(;M<G;M++){F.push(L[M]);}return F;}}else{return[L];}};c.Array=m;m.test=function(H){var F=0;if(c.Lang.isObject(H)){if(c.Lang.isArray(H)){F=1;}else{try{if((x in H)&&!H.tagName&&!H.alert&&!H.apply){F=2;}}catch(G){}}}return F;};m.each=(v.forEach)?function(F,G,H){v.forEach.call(F||[],G,H||c);return c;}:function(G,I,J){var F=(G&&G.length)||0,H;for(H=0;H<F;H=H+1){I.call(J||c,G[H],H,G);}return c;};m.hash=function(H,G){var K={},F=H.length,J=G&&G.length,I;for(I=0;I<F;I=I+1){K[H[I]]=(J&&J>I)?G[I]:true;}return K;};m.indexOf=(v.indexOf)?function(F,G){return v.indexOf.call(F,G);}:function(F,H){for(var G=0;G<F.length;G=G+1){if(F[G]===H){return G;}}return -1;};m.numericSort=function(G,F){return(G-F);};m.some=(v.some)?function(F,G,H){return v.some.call(F,G,H);}:function(G,I,J){var F=G.length,H;for(H=0;H<F;H=H+1){if(I.call(J,G[H],H,G)){return true;}}return false;};function D(){this._init();this.add.apply(this,arguments);}D.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){this._q.push.apply(this._q,arguments);return this;},size:function(){return this._q.length;}};c.Queue=D;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new D();var p="__",i=["toString","valueOf"],a=function(I,H){var F,J,G;for(F=0;F<i.length;F++){J=i[F];G=H[J];if(l.isFunction(G)&&G!=Object.prototype[J]){I[J]=G;}}};c.merge=function(){var G=arguments,I={},H,F=G.length;for(H=0;H<F;H=H+1){c.mix(I,G[H],true);}return I;};c.mix=function(F,O,H,N,K,M){if(!O||!F){return F||c;}if(K){switch(K){case 1:return c.mix(F.prototype,O.prototype,H,N,0,M);case 2:c.mix(F.prototype,O.prototype,H,N,0,M);break;case 3:return c.mix(F,O.prototype,H,N,0,M);case 4:return c.mix(F.prototype,O,H,N,0,M);default:}}var J,I,G,L;if(N&&N.length){for(J=0,I=N.length;J<I;++J){G=N[J];L=c.Lang.type(F[G]);if(O.hasOwnProperty(G)){if(M&&L=="object"){c.mix(F[G],O[G]);}else{if(H||!(G in F)){F[G]=O[G];}}}}}else{for(J in O){if(O.hasOwnProperty(J)){if(M&&c.Lang.isObject(F[J],true)){c.mix(F[J],O[J],H,N,0,true);}else{if(H||!(J in F)){F[J]=O[J];}}}}if(c.UA.ie){a(F,O);}}return F;};c.cached=function(H,F,G){F=F||{};return function(J){var I=(arguments.length>1)?Array.prototype.join.call(arguments,p):J;if(!(I in F)||(G&&F[I]==G)){F[I]=H.apply(H,arguments);}return F[I];};};var r=function(){},h=function(F){r.prototype=F;return new r();},k=function(G,F){return G&&G.hasOwnProperty&&G.hasOwnProperty(F);},w,d=function(J,I){var H=(I===2),F=(H)?0:[],G;for(G in J){if(k(J,G)){if(H){F++;}else{F.push((I)?J[G]:G);}}}return F;};c.Object=h;h.keys=function(F){return d(F);
};h.values=function(F){return d(F,1);};h.size=Object.size||function(F){return d(F,2);};h.hasKey=k;h.hasValue=function(G,F){return(c.Array.indexOf(h.values(G),F)>-1);};h.owns=k;h.each=function(J,I,K,H){var G=K||c,F;for(F in J){if(H||k(J,F)){I.call(G,J[F],F,J);}}return c;};h.some=function(J,I,K,H){var G=K||c,F;for(F in J){if(H||k(J,F)){if(I.call(G,J[F],F,J)){return true;}}}return false;};h.getValue=function(J,I){if(!c.Lang.isObject(J)){return w;}var G,H=c.Array(I),F=H.length;for(G=0;J!==w&&G<F;G++){J=J[H[G]];}return J;};h.setValue=function(L,J,K){var F,I=c.Array(J),H=I.length-1,G=L;if(H>=0){for(F=0;G!==w&&F<H;F++){G=G[I[F]];}if(G!==w){G[I[F]]=K;}else{return w;}}return L;};h.isEmpty=function(G){for(var F in G){if(k(G,F)){return false;}}return true;};YUI.Env.parseUA=function(L){var K=function(O){var P=0;return parseFloat(O.replace(/\./g,function(){return(P++==1)?"":".";}));},N=c.config.win,F=N&&N.navigator,I={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,caja:F&&F.cajaVersion,secure:false,os:null},G=L||F&&F.userAgent,M=N&&N.location,H=M&&M.href,J;I.secure=H&&(H.toLowerCase().indexOf("https")===0);if(G){if((/windows|win32/i).test(G)){I.os="windows";}else{if((/macintosh/i).test(G)){I.os="macintosh";}else{if((/rhino/i).test(G)){I.os="rhino";}}}if((/KHTML/).test(G)){I.webkit=1;}J=G.match(/AppleWebKit\/([^\s]*)/);if(J&&J[1]){I.webkit=K(J[1]);if(/ Mobile\//.test(G)){I.mobile="Apple";J=G.match(/OS ([^\s]*)/);if(J&&J[1]){J=K(J[1].replace("_","."));}I.ios=J;I.ipad=I.ipod=I.iphone=0;J=G.match(/iPad|iPod|iPhone/);if(J&&J[0]){I[J[0].toLowerCase()]=I.ios;}}else{J=G.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(J){I.mobile=J[0];}if(/webOS/.test(G)){I.mobile="WebOS";J=G.match(/webOS\/([^\s]*);/);if(J&&J[1]){I.webos=K(J[1]);}}if(/ Android/.test(G)){I.mobile="Android";J=G.match(/Android ([^\s]*);/);if(J&&J[1]){I.android=K(J[1]);}}}J=G.match(/Chrome\/([^\s]*)/);if(J&&J[1]){I.chrome=K(J[1]);}else{J=G.match(/AdobeAIR\/([^\s]*)/);if(J){I.air=J[0];}}}if(!I.webkit){J=G.match(/Opera[\s\/]([^\s]*)/);if(J&&J[1]){I.opera=K(J[1]);J=G.match(/Opera Mini[^;]*/);if(J){I.mobile=J[0];}}else{J=G.match(/MSIE\s([^;]*)/);if(J&&J[1]){I.ie=K(J[1]);}else{J=G.match(/Gecko\/([^\s]*)/);if(J){I.gecko=1;J=G.match(/rv:([^\s\)]*)/);if(J&&J[1]){I.gecko=K(J[1]);}}}}}}YUI.Env.UA=I;return I;};c.UA=YUI.Env.UA||YUI.Env.parseUA();},"@VERSION@");