~ted/lazr-js/annoying-debug-message

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/simpleyui/simpleyui-min.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-09-09 14:20:30 UTC
  • mfrom: (182.1.3 yui-3.2)
  • Revision ID: launchpad@pqm.canonical.com-20100909142030-13w6vo0ixfysxc15
[r=beuno] Update lazr-js to yui-3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
 
3
Code licensed under the BSD License:
 
4
http://developer.yahoo.com/yui/license.html
 
5
version: 3.2.0
 
6
build: 2676
 
7
*/
 
8
if(typeof YUI!="undefined"){var _YUI=YUI;}var YUI=function(){var c=0,e=this,b=arguments,a=b.length,d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e instanceof YUI)){e=new YUI();}else{e._init();if(d){e.applyConfig(d);}if(!a){e._setup();}}if(a){for(;c<a;c++){e.applyConfig(b[c]);}e._setup();}return e;};(function(){var n,b,o="3.2.0",l="http://yui.yahooapis.com/",r="yui3-js-enabled",j=function(){},g=Array.prototype.slice,p={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},f=(typeof window!="undefined"),e=(f)?window:null,t=(f)?e.document:null,d=t&&t.documentElement,a=d&&d.className,c={},h=new Date().getTime(),k=function(x,w,v,u){if(x&&x.addEventListener){x.addEventListener(w,v,u);}else{if(x&&x.attachEvent){x.attachEvent("on"+w,v);}}},s=function(y,x,w,u){if(y&&y.removeEventListener){try{y.removeEventListener(x,w,u);}catch(v){}}else{if(y&&y.detachEvent){y.detachEvent("on"+x,w);}}},q=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(f){s(window,"load",q);}},i=function(w,v){var u=w.Env._loader;if(u){u.ignoreRegistered=false;u.onEnd=null;u.data=null;u.required=[];u.loadType=null;}else{u=new w.Loader(w.config);w.Env._loader=u;}return u;},m=function(w,v){for(var u in v){if(v.hasOwnProperty(u)){w[u]=v[u];}}};if(d&&a.indexOf(r)==-1){if(a){a+=" ";}a+=r;d.className=a;}if(o.indexOf("@")>-1){o="3.2.0pr1";}n={applyConfig:function(B){B=B||j;var w,y,x=this.config,z=x.modules,v=x.groups,A=x.rls,u=this.Env._loader;for(y in B){if(B.hasOwnProperty(y)){w=B[y];if(z&&y=="modules"){m(z,w);}else{if(v&&y=="groups"){m(v,w);}else{if(A&&y=="rls"){m(A,w);}else{if(y=="win"){x[y]=w.contentWindow||w;x.doc=x[y].document;}else{if(y=="_yuid"){}else{x[y]=w;}}}}}}}if(u){u._config(B);}},_config:function(u){this.applyConfig(u);},_init:function(){var x,y=this,u=YUI.Env,v=y.Env,z,w;y.version=o;if(!v){y.Env={mods:{},versions:{},base:l,cdn:l+o+"/build/",_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{},getBase:u&&u.getBase||function(F,E){var A,B,D,G,C;B=(t&&t.getElementsByTagName("script"))||[];for(D=0;D<B.length;D=D+1){G=B[D].src;if(G){C=G.match(F);A=C&&C[1];if(A){x=C[2];if(x){C=x.indexOf("js");if(C>-1){x=x.substr(0,C);}}C=G.match(E);if(C&&C[3]){A=C[1]+C[3];}break;}}}return A||v.cdn;}};v=y.Env;v._loaded[o]={};if(u&&y!==YUI){v._yidx=++u._yidx;v._guidp=("yui_"+o+"_"+v._yidx+"_"+h).replace(/\./g,"_");}else{if(typeof _YUI!="undefined"){u=_YUI.Env;v._yidx+=u._yidx;v._uidx+=u._uidx;for(z in u){if(!(z in v)){v[z]=u[z];}}}}y.id=y.stamp(y);c[y.id]=y;}y.constructor=YUI;y.config=y.config||{win:e,doc:t,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true};w=y.config;w.base=YUI.config.base||y.Env.getBase(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/,/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);w.loaderPath=YUI.config.loaderPath||"loader/loader"+(x||"-min.")+"js";},_setup:function(z){var v,y=this,u=[],x=YUI.Env.mods,w=y.config.core||["get","rls","intl-base","loader","yui-log","yui-later","yui-throttle"];for(v=0;v<w.length;v++){if(x[w[v]]){u.push(w[v]);}}y._attach(["yui-base"]);y._attach(u);},applyTo:function(A,z,w){if(!(z in p)){this.log(z+": applyTo not allowed","warn","yui");return null;}var v=c[A],y,u,x;if(v){y=z.split(".");u=v;for(x=0;x<y.length;x=x+1){u=u[y[x]];if(!u){this.log("applyTo not found: "+z,"warn","yui");}}return u.apply(v,w);}return null;},add:function(w,B,v,z){z=z||{};var A=YUI.Env,y={name:w,fn:B,version:v,details:z},u,x;A.mods[w]=y;A.versions[v]=A.versions[v]||{};A.versions[v][w]=y;for(x in c){if(c.hasOwnProperty(x)){u=c[x].Env._loader;if(u){if(!u.moduleInfo[w]){u.addModule(z,w);}}}}return this;},_attach:function(u,z){var B,x,F,v,E,w,G=YUI.Env.mods,y=this,A=y.Env._attached,C=u.length;for(B=0;B<C;B++){x=u[B];F=G[x];if(!A[x]&&F){A[x]=true;v=F.details;E=v.requires;w=v.use;if(E&&E.length){if(!y._attach(E)){return false;}}if(F.fn){try{F.fn(y,x);}catch(D){y.error("Attach error: "+x,D,x);return false;}}if(w&&w.length){if(!y._attach(w)){return false;}}}}return true;},use:function(){if(!this.Array){this._attach(["yui-base"]);}var K,D,L,v=this,M=YUI.Env,w=g.call(arguments,0),x=M.mods,u=v.Env,A=u._used,I=M._loaderQueue,Q=w[0],y=w[w.length-1],C=v.Array,O=v.config,B=O.bootstrap,J=[],G=[],N,P=true,z=O.fetchCSS,H=function(S,R){if(!S.length){return;}C.each(S,function(V){if(!R){G.push(V);}if(A[V]){return;}var T=x[V],W,U;if(T){A[V]=true;W=T.details.requires;U=T.details.use;}else{if(!M._loaded[o][V]){J.push(V);}else{A[V]=true;}}if(W&&W.length){H(W);}if(U&&U.length){H(U,1);}});},F=function(R){if(y){try{y(v,R);}catch(S){v.error("use callback error",S,w);}}},E=function(W){var T=W||{success:true,msg:"not dynamic"},V,S,R,U=true,X=T.data;v._loading=false;if(X){R=J.concat();J=[];G=[];H(X);S=J.length;if(S){if(J.sort().join()==R.sort().join()){S=false;}}}if(S&&X){V=w.concat();V.push(function(){if(v._attach(X)){F(T);}});v._loading=false;v.use.apply(v,V);}else{if(X){U=v._attach(X);}if(U){F(T);}}if(v._useQueue&&v._useQueue.size()&&!v._loading){v.use.apply(v,v._useQueue.next());}};if(v._loading){v._useQueue=v._useQueue||new v.Queue();v._useQueue.add(w);return v;}if(typeof y==="function"){w.pop();}else{y=null;}if(Q==="*"){N=true;w=v.Object.keys(x);}if(B&&!N&&v.Loader&&w.length){D=i(v);D.require(w);D.ignoreRegistered=true;D.calculate(null,(z)?null:"js");w=D.sorted;}H(w);K=J.length;if(K){J=v.Object.keys(C.hash(J));K=J.length;}if(B&&K&&v.Loader){v._loading=true;D=i(v);D.onEnd=E;D.context=v;D.data=w;D.require((z)?J:w);D.insert(null,(z)?null:"js");}else{if(K&&v.config.use_rls){v.Get.script(v._rls(w),{onEnd:function(R){E(R);},data:w});}else{if(B&&K&&v.Get&&!u.bootstrapped){v._loading=true;w=C(arguments,0,true);L=function(){v._loading=false;I.running=false;u.bootstrapped=true;if(v._attach(["loader"])){v.use.apply(v,w);}};if(M._bootstrapping){I.add(L);}else{M._bootstrapping=true;v.Get.script(O.base+O.loaderPath,{onEnd:L});}}else{if(K){v.message("Requirement NOT loaded: "+J,"warn","yui");}P=v._attach(w);if(P){E();}}}}return v;},namespace:function(){var u=arguments,y=null,w,v,x;for(w=0;w<u.length;w=w+1){x=(""+u[w]).split(".");
 
9
y=this;for(v=(x[0]=="YAHOO")?1:0;v<x.length;v=v+1){y[x[v]]=y[x[v]]||{};y=y[x[v]];}}return y;},log:j,message:j,error:function(x,v){var w=this,u;if(w.config.errorFn){u=w.config.errorFn.apply(w,arguments);}if(w.config.throwFail&&!u){throw (v||new Error(x));}else{w.message(x,"error");}return w;},guid:function(u){var v=this.Env._guidp+(++this.Env._uidx);return(u)?(u+v):v;},stamp:function(w,x){var u;if(!w){return w;}if(w.uniqueID&&w.nodeType&&w.nodeType!==9){u=w.uniqueID;}else{u=(typeof w==="string")?w:w._yuid;}if(!u){u=this.guid();if(!x){try{w._yuid=u;}catch(v){u=null;}}}return u;}};YUI.prototype=n;for(b in n){if(n.hasOwnProperty(b)){YUI[b]=n[b];}}YUI._init();if(f){k(window,"load",q);}else{q();}YUI.Env.add=k;YUI.Env.remove=s;if(typeof exports=="object"){exports.YUI=YUI;}})();YUI.add("yui-base",function(b){b.Lang=b.Lang||{};var g=b.Lang,q="array",j="boolean",d="date",e="error",f="function",l="number",p="null",i="object",n="regexp",k="string",h=Object.prototype.toString,s="undefined",a={"undefined":s,"number":l,"boolean":j,"string":k,"[object Function]":f,"[object RegExp]":n,"[object Array]":q,"[object Date]":d,"[object Error]":e},m=/^\s+|\s+$/g,o="",c=/\{\s*([^\|\}]+?)\s*(?:\|([^\}]*))?\s*\}/g;g.isArray=function(t){return g.type(t)===q;};g.isBoolean=function(t){return typeof t===j;};g.isFunction=function(t){return g.type(t)===f;};g.isDate=function(t){return g.type(t)===d&&t.toString()!=="Invalid Date"&&!isNaN(t);};g.isNull=function(t){return t===null;};g.isNumber=function(t){return typeof t===l&&isFinite(t);};g.isObject=function(w,v){var u=typeof w;return(w&&(u===i||(!v&&(u===f||g.isFunction(w)))))||false;};g.isString=function(t){return typeof t===k;};g.isUndefined=function(t){return typeof t===s;};g.trim=function(t){try{return t.replace(m,o);}catch(u){return t;}};g.isValue=function(v){var u=g.type(v);switch(u){case l:return isFinite(v);case p:case s:return false;default:return !!(u);}};g.type=function(t){return a[typeof t]||a[h.call(t)]||(t?i:p);};g.sub=function(t,u){return((t.replace)?t.replace(c,function(v,w){return(!g.isUndefined(u[w]))?u[w]:v;}):t);};(function(){var t=b.Lang,u=Array.prototype,v="length",w=function(D,B,z){var A=(z)?2:w.test(D),y,x,E=B||0;if(A){try{return u.slice.call(D,E);}catch(C){x=[];y=D.length;for(;E<y;E++){x.push(D[E]);}return x;}}else{return[D];}};b.Array=w;w.test=function(z){var x=0;if(t.isObject(z)){if(t.isArray(z)){x=1;}else{try{if((v in z)&&!z.tagName&&!z.alert&&!z.apply){x=2;}}catch(y){}}}return x;};w.each=(u.forEach)?function(x,y,z){u.forEach.call(x||[],y,z||b);return b;}:function(y,A,B){var x=(y&&y.length)||0,z;for(z=0;z<x;z=z+1){A.call(B||b,y[z],z,y);}return b;};w.hash=function(z,y){var C={},x=z.length,B=y&&y.length,A;for(A=0;A<x;A=A+1){C[z[A]]=(B&&B>A)?y[A]:true;}return C;};w.indexOf=(u.indexOf)?function(x,y){return u.indexOf.call(x,y);}:function(x,z){for(var y=0;y<x.length;y=y+1){if(x[y]===z){return y;}}return -1;};w.numericSort=function(y,x){return(y-x);};w.some=(u.some)?function(x,y,z){return u.some.call(x,y,z);}:function(y,A,B){var x=y.length,z;for(z=0;z<x;z=z+1){if(A.call(B,y[z],z,y)){return true;}}return false;};})();function r(){this._init();this.add.apply(this,arguments);}r.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(t){this._q.push(t);},this);return this;},size:function(){return this._q.length;}};b.Queue=r;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new r();(function(){var u=b.Lang,t="__",v=function(y,x){var w=x.toString;if(u.isFunction(w)&&w!=Object.prototype.toString){y.toString=w;}};b.merge=function(){var x=arguments,z={},y,w=x.length;for(y=0;y<w;y=y+1){b.mix(z,x[y],true);}return z;};b.mix=function(w,F,y,E,B,D){if(!F||!w){return w||b;}if(B){switch(B){case 1:return b.mix(w.prototype,F.prototype,y,E,0,D);case 2:b.mix(w.prototype,F.prototype,y,E,0,D);break;case 3:return b.mix(w,F.prototype,y,E,0,D);case 4:return b.mix(w.prototype,F,y,E,0,D);default:}}var A,z,x,C;if(E&&E.length){for(A=0,z=E.length;A<z;++A){x=E[A];C=u.type(w[x]);if(F.hasOwnProperty(x)){if(D&&C=="object"){b.mix(w[x],F[x]);}else{if(y||!(x in w)){w[x]=F[x];}}}}}else{for(A in F){if(F.hasOwnProperty(A)){if(D&&u.isObject(w[A],true)){b.mix(w[A],F[A],y,E,0,true);}else{if(y||!(A in w)){w[A]=F[A];}}}}if(b.UA.ie){v(w,F);}}return w;};b.cached=function(y,w,x){w=w||{};return function(A){var z=(arguments.length>1)?Array.prototype.join.call(arguments,t):A;if(!(z in w)||(x&&w[z]==x)){w[z]=y.apply(y,arguments);}return w[z];};};})();(function(){b.Object=function(y){var x=function(){};x.prototype=y;return new x();};var v=b.Object,w=function(y,x){return y&&y.hasOwnProperty&&y.hasOwnProperty(x);},u,t=function(B,A){var z=(A===2),x=(z)?0:[],y;for(y in B){if(w(B,y)){if(z){x++;}else{x.push((A)?B[y]:y);}}}return x;};v.keys=function(x){return t(x);};v.values=function(x){return t(x,1);};v.size=function(x){return t(x,2);};v.hasKey=w;v.hasValue=function(y,x){return(b.Array.indexOf(v.values(y),x)>-1);};v.owns=w;v.each=function(B,A,C,z){var y=C||b,x;for(x in B){if(z||w(B,x)){A.call(y,B[x],x,B);}}return b;};v.some=function(B,A,C,z){var y=C||b,x;for(x in B){if(z||w(B,x)){if(A.call(y,B[x],x,B)){return true;}}}return false;};v.getValue=function(B,A){if(!b.Lang.isObject(B)){return u;}var y,z=b.Array(A),x=z.length;for(y=0;B!==u&&y<x;y++){B=B[z[y]];}return B;};v.setValue=function(D,B,C){var x,A=b.Array(B),z=A.length-1,y=D;if(z>=0){for(x=0;y!==u&&x<z;x++){y=y[A[x]];}if(y!==u){y[A[x]]=C;}else{return u;}}return D;};v.isEmpty=function(y){for(var x in y){if(w(y,x)){return false;}}return true;};})();b.UA=YUI.Env.UA||function(){var w=function(B){var C=0;return parseFloat(B.replace(/\./g,function(){return(C++==1)?"":".";}));},x=b.config.win,A=x&&x.navigator,z={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,caja:A&&A.cajaVersion,secure:false,os:null},v=A&&A.userAgent,y=x&&x.location,u=y&&y.href,t;z.secure=u&&(u.toLowerCase().indexOf("https")===0);
 
10
if(v){if((/windows|win32/i).test(v)){z.os="windows";}else{if((/macintosh/i).test(v)){z.os="macintosh";}else{if((/rhino/i).test(v)){z.os="rhino";}}}if((/KHTML/).test(v)){z.webkit=1;}t=v.match(/AppleWebKit\/([^\s]*)/);if(t&&t[1]){z.webkit=w(t[1]);if(/ Mobile\//.test(v)){z.mobile="Apple";t=v.match(/OS ([^\s]*)/);if(t&&t[1]){t=w(t[1].replace("_","."));}z.ipad=(navigator.platform=="iPad")?t:0;z.ipod=(navigator.platform=="iPod")?t:0;z.iphone=(navigator.platform=="iPhone")?t:0;z.ios=z.ipad||z.iphone||z.ipod;}else{t=v.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(t){z.mobile=t[0];}if(/ Android/.test(v)){z.mobile="Android";t=v.match(/Android ([^\s]*);/);if(t&&t[1]){z.android=w(t[1]);}}}t=v.match(/Chrome\/([^\s]*)/);if(t&&t[1]){z.chrome=w(t[1]);}else{t=v.match(/AdobeAIR\/([^\s]*)/);if(t){z.air=t[0];}}}if(!z.webkit){t=v.match(/Opera[\s\/]([^\s]*)/);if(t&&t[1]){z.opera=w(t[1]);t=v.match(/Opera Mini[^;]*/);if(t){z.mobile=t[0];}}else{t=v.match(/MSIE\s([^;]*)/);if(t&&t[1]){z.ie=w(t[1]);}else{t=v.match(/Gecko\/([^\s]*)/);if(t){z.gecko=1;t=v.match(/rv:([^\s\)]*)/);if(t&&t[1]){z.gecko=w(t[1]);}}}}}}YUI.Env.UA=z;return z;}();},"3.2.0");YUI.add("get",function(a){(function(){var c=a.UA,b=a.Lang,e="text/javascript",f="text/css",d="stylesheet";a.Get=function(){var m,n,j,l={},k=0,u,w=function(A,x,B){var y=B||a.config.win,C=y.document,D=C.createElement(A),z;for(z in x){if(x[z]&&x.hasOwnProperty(z)){D.setAttribute(z,x[z]);}}return D;},t=function(y,z,x){var A={id:a.guid(),type:f,rel:d,href:y};if(x){a.mix(A,x);}return w("link",A,z);},s=function(y,z,x){var A={id:a.guid(),type:e};if(x){a.mix(A,x);}A.src=y;return w("script",A,z);},p=function(y,z,x){return{tId:y.tId,win:y.win,data:y.data,nodes:y.nodes,msg:z,statusText:x,purge:function(){n(this.tId);}};},o=function(B,A,x){var y=l[B],z;if(y&&y.onEnd){z=y.context||y;y.onEnd.call(z,p(y,A,x));}},v=function(A,z){var x=l[A],y;if(x.timer){clearTimeout(x.timer);}if(x.onFailure){y=x.context||x;x.onFailure.call(y,p(x,z));}o(A,z,"failure");},i=function(A){var x=l[A],z,y;if(x.timer){clearTimeout(x.timer);}x.finished=true;if(x.aborted){z="transaction "+A+" was aborted";v(A,z);return;}if(x.onSuccess){y=x.context||x;x.onSuccess.call(y,p(x));}o(A,z,"OK");},q=function(z){var x=l[z],y;if(x.onTimeout){y=x.context||x;x.onTimeout.call(y,p(x));}o(z,"timeout","timeout");},h=function(z,C){var y=l[z],B,G,F,D,A,x,H,E;if(y.timer){clearTimeout(y.timer);}if(y.aborted){B="transaction "+z+" was aborted";v(z,B);return;}if(C){y.url.shift();if(y.varName){y.varName.shift();}}else{y.url=(b.isString(y.url))?[y.url]:y.url;if(y.varName){y.varName=(b.isString(y.varName))?[y.varName]:y.varName;}}G=y.win;F=G.document;D=F.getElementsByTagName("head")[0];if(y.url.length===0){i(z);return;}x=y.url[0];if(!x){y.url.shift();return h(z);}if(y.timeout){y.timer=setTimeout(function(){q(z);},y.timeout);}if(y.type==="script"){A=s(x,G,y.attributes);}else{A=t(x,G,y.attributes);}j(y.type,A,z,x,G,y.url.length);y.nodes.push(A);E=y.insertBefore||F.getElementsByTagName("base")[0];if(E){H=m(E,z);if(H){H.parentNode.insertBefore(A,H);}}else{D.appendChild(A);}if((c.webkit||c.gecko)&&y.type==="css"){h(z,x);}},g=function(){if(u){return;}u=true;var x,y;for(x in l){if(l.hasOwnProperty(x)){y=l[x];if(y.autopurge&&y.finished){n(y.tId);delete l[x];}}}u=false;},r=function(y,x,z){z=z||{};var C="q"+(k++),A,B=z.purgethreshold||a.Get.PURGE_THRESH;if(k%B===0){g();}l[C]=a.merge(z,{tId:C,type:y,url:x,finished:false,nodes:[]});A=l[C];A.win=A.win||a.config.win;A.context=A.context||A;A.autopurge=("autopurge" in A)?A.autopurge:(y==="script")?true:false;A.attributes=A.attributes||{};A.attributes.charset=z.charset||A.attributes.charset||"utf-8";h(C);return{tId:C};};j=function(z,E,D,y,C,B,x){var A=x||h;if(c.ie){E.onreadystatechange=function(){var F=this.readyState;if("loaded"===F||"complete"===F){E.onreadystatechange=null;A(D,y);}};}else{if(c.webkit){if(z==="script"){E.addEventListener("load",function(){A(D,y);});}}else{E.onload=function(){A(D,y);};E.onerror=function(F){v(D,F+": "+y);};}}};m=function(x,A){var y=l[A],z=(b.isString(x))?y.win.document.getElementById(x):x;if(!z){v(A,"target node not found: "+x);}return z;};n=function(C){var y,A,G,D,H,B,z,F,E,x=l[C];if(x){y=x.nodes;A=y.length;G=x.win.document;D=G.getElementsByTagName("head")[0];E=x.insertBefore||G.getElementsByTagName("base")[0];if(E){H=m(E,C);if(H){D=H.parentNode;}}for(B=0;B<A;B=B+1){z=y[B];if(z.clearAttributes){z.clearAttributes();}else{for(F in z){if(z.hasOwnProperty(F)){delete z[F];}}}D.removeChild(z);}}x.nodes=[];};return{PURGE_THRESH:20,_finalize:function(x){setTimeout(function(){i(x);},0);},abort:function(y){var z=(b.isString(y))?y:y.tId,x=l[z];if(x){x.aborted=true;}},script:function(x,y){return r("script",x,y);},css:function(x,y){return r("css",x,y);}};}();})();},"3.2.0");YUI.add("features",function(c){var a={};c.mix(c.namespace("Features"),{tests:a,add:function(d,e,f){a[d]=a[d]||{};a[d][e]=f;},all:function(e,f){var g=a[e],d="";if(g){c.Object.each(g,function(i,h){d+=h+":"+(c.Features.test(e,h,f)?1:0)+";";});}return d;},test:function(e,g,f){var d,i,k,j=a[e],h=j&&j[g];if(!h){}else{d=h.result;if(c.Lang.isUndefined(d)){i=h.ua;if(i){d=(c.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(c,f);}h.result=d;}}return d;}});var b=c.Features.add;b("load","0",{"trigger":"dom-style","ua":"ie"});b("load","1",{"test":function(e){var d=e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});b("load","2",{"test":function(d){return(d.config.win&&("ontouchstart" in d.config.win&&!d.UA.chrome));},"trigger":"dd-drag"});},"3.2.0",{requires:["yui-base"]});YUI.add("rls",function(a){a._rls=function(g){var d=a.config,f=d.rls||{m:1,v:a.version,gv:d.gallery,env:1,lang:d.lang,"2in3v":d["2in3"],"2v":d.yui2,filt:d.filter,filts:d.filters,tests:1},b=d.rls_base||"load?",e=d.rls_tmpl||function(){var h="",i;for(i in f){if(i in f&&f[i]){h+=i+"={"+i+"}&";}}return h;}(),c;f.m=g;f.env=a.Object.keys(YUI.Env.mods);f.tests=a.Features.all("load",[a]);c=a.Lang.sub(b+e,f);
 
11
d.rls=f;d.rls_tmpl=e;return c;};},"3.2.0",{requires:["yui-base","get","features"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"3.2.0",{requires:["yui-base"]});YUI.add("yui-log",function(a){(function(){var d=a,e="yui:log",b="undefined",c={debug:1,info:1,warn:1,error:1};d.log=function(j,s,g,q){var l,p,n,k,o,i=d,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(p&&(g in p)){l=1;}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=b&&console.log){o=(s&&console[s]&&(s in c))?s:"log";console[o](k);}else{if(typeof opera!=b){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};d.message=function(){return d.log.apply(d,arguments);};})();},"3.2.0",{requires:["yui-base"]});YUI.add("yui-later",function(a){(function(){var b=a.Lang,c=function(e,k,g,j,i){e=e||0;var d=g,h,l;if(k&&b.isString(g)){d=k[g];}h=!b.isUndefined(j)?function(){d.apply(k,a.Array(j));}:function(){d.call(k);};l=(i)?setInterval(h,e):setTimeout(h,e);return{id:l,interval:i,cancel:function(){if(this.interval){clearInterval(l);}else{clearTimeout(l);}}};};a.later=c;b.later=c;})();},"3.2.0",{requires:["yui-base"]});YUI.add("yui-throttle",function(b){
 
12
/*! Based on work by Simon Willison: http://gist.github.com/292562 */
 
13
var a=function(d,c){c=(c)?c:(b.config.throttleTime||150);if(c===-1){return(function(){d.apply(null,arguments);});}var e=(new Date()).getTime();return(function(){var f=(new Date()).getTime();if(f-e>c){e=f;d.apply(null,arguments);}});};b.throttle=a;},"3.2.0",{requires:["yui-base"]});YUI.add("yui",function(a){},"3.2.0",{use:["yui-base","get","features","rls","intl-base","yui-log","yui-later","yui-throttle"]});YUI.add("oop",function(h){var d=h.Lang,c=h.Array,b=Object.prototype,a="_~yuim~_",e="each",g="some",f=function(l,k,m,i,j){if(l&&l[j]&&l!==h){return l[j].call(l,k,m);}else{switch(c.test(l)){case 1:return c[j](l,k,m);case 2:return c[j](h.Array(l,0,true),k,m);default:return h.Object[j](l,k,m,i);}}};h.augment=function(i,x,l,v,p){var n=x.prototype,t=null,w=x,q=(p)?h.Array(p):[],k=i.prototype,o=k||i,u=false,j,m;if(k&&w){j={};m={};t={};h.Object.each(n,function(s,r){m[r]=function(){for(var y in j){if(j.hasOwnProperty(y)&&(this[y]===m[y])){this[y]=j[y];}}w.apply(this,q);return j[r].apply(this,arguments);};if((!v||(r in v))&&(l||!(r in this))){if(d.isFunction(s)){j[r]=s;this[r]=m[r];}else{this[r]=s;}}},t,true);}else{u=true;}h.mix(o,t||n,l,v);if(u){x.apply(o,q);}return i;};h.aggregate=function(k,j,i,l){return h.mix(k,j,i,l,0,true);};h.extend=function(l,k,i,n){if(!k||!l){h.error("extend failed, verify dependencies");}var m=k.prototype,j=h.Object(m);l.prototype=j;j.constructor=l;l.superclass=m;if(k!=Object&&m.constructor==b.constructor){m.constructor=k;}if(i){h.mix(j,i,true);}if(n){h.mix(l,n,true);}return l;};h.each=function(k,j,l,i){return f(k,j,l,i,e);};h.some=function(k,j,l,i){return f(k,j,l,i,g);};h.clone=function(l,m,q,r,k,p){if(!d.isObject(l)){return l;}if(l instanceof YUI){return l;}var n,j=p||{},i,s=h.each||h.Object.each;switch(d.type(l)){case"date":return new Date(l);case"regexp":return l;case"function":return l;case"array":n=[];break;default:if(l[a]){return j[l[a]];}i=h.guid();n=(m)?{}:h.Object(l);l[a]=i;j[i]=l;}if(!l.addEventListener&&!l.attachEvent){s(l,function(t,o){if(!q||(q.call(r||this,t,o,this,l)!==false)){if(o!==a){if(o=="prototype"){}else{this[o]=h.clone(t,m,q,r,k||l,j);}}}},n);}if(!p){h.Object.each(j,function(t,o){delete t[a];});j=null;}return n;};h.bind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?j.concat(h.Array(arguments,0,true)):arguments;return m.apply(k||m,l);};};h.rbind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?h.Array(arguments,0,true).concat(j):arguments;return m.apply(k||m,l);};};},"3.2.0");YUI.add("dom-base",function(d){(function(j){var t="nodeType",g="ownerDocument",f="documentElement",e="defaultView",l="parentWindow",o="tagName",q="parentNode",s="firstChild",n="previousSibling",r="nextSibling",m="contains",i="compareDocumentPosition",h="",p=j.config.doc.documentElement,k=/<([a-z]+)/i;j.DOM={byId:function(v,u){return j.DOM.allById(v,u)[0]||null;},children:function(w,u){var v=[];if(w){u=u||"*";v=j.Selector.query("> "+u,w);}return v;},firstByTag:function(u,v){var w;v=v||j.config.doc;if(u&&v.getElementsByTagName){w=v.getElementsByTagName(u)[0];}return w||null;},getText:(p.textContent!==undefined)?function(v){var u="";if(v){u=v.textContent;}return u||"";}:function(v){var u="";if(v){u=v.innerText;}return u||"";},setText:(p.textContent!==undefined)?function(u,v){if(u){u.textContent=v;}}:function(u,v){if(u){u.innerText=v;}},previous:function(u,w,v){return j.DOM.elementByAxis(u,n,w,v);},next:function(u,w,v){return j.DOM.elementByAxis(u,r,w,v);},ancestor:function(v,w,x){var u=null;if(x){u=(!w||w(v))?v:null;}return u||j.DOM.elementByAxis(v,q,w,null);},elementByAxis:function(u,x,w,v){while(u&&(u=u[x])){if((v||u[o])&&(!w||w(u))){return u;}}return null;},contains:function(v,w){var u=false;if(!w||!v||!w[t]||!v[t]){u=false;}else{if(v[m]){if(j.UA.opera||w[t]===1){u=v[m](w);}else{u=j.DOM._bruteContains(v,w);}}else{if(v[i]){if(v===w||!!(v[i](w)&16)){u=true;}}}}return u;},inDoc:function(w,x){var v=false,u;if(w&&w.nodeType){(x)||(x=w[g]);u=x[f];if(u&&u.contains&&w.tagName){v=u.contains(w);
 
14
}else{v=j.DOM.contains(u,w);}}return v;},allById:function(z,u){u=u||j.config.doc;var v=[],w=[],x,y;if(u.querySelectorAll){w=u.querySelectorAll('[id="'+z+'"]');}else{if(u.all){v=u.all(z);if(v&&v.nodeType){v=[v];}if(v&&v.length){for(x=0;y=v[x++];){if(y.attributes&&y.attributes.id&&y.attributes.id.value===z){w.push(y);}}}}else{w=[j.DOM._getDoc(u).getElementById(z)];}}return w;},create:function(z,B){if(typeof z==="string"){z=j.Lang.trim(z);}B=B||j.config.doc;var v=k.exec(z),y=j.DOM._create,A=j.DOM.creators,x=null,u,w;if(z!=undefined){if(v&&A[v[1]]){if(typeof A[v[1]]==="function"){y=A[v[1]];}else{u=A[v[1]];}}w=y(z,B,u).childNodes;if(w.length===1){x=w[0].parentNode.removeChild(w[0]);}else{if(w[0]&&w[0].className==="yui3-big-dummy"){if(w.length===2){x=w[0].nextSibling;}else{w[0].parentNode.removeChild(w[0]);x=j.DOM._nl2frag(w,B);}}else{x=j.DOM._nl2frag(w,B);}}}return x;},_nl2frag:function(v,y){var w=null,x,u;if(v&&(v.push||v.item)&&v[0]){y=y||v[0].ownerDocument;w=y.createDocumentFragment();if(v.item){v=j.Array(v,0,true);}for(x=0,u=v.length;x<u;x++){w.appendChild(v[x]);}}return w;},CUSTOM_ATTRIBUTES:(!p.hasAttribute)?{"for":"htmlFor","class":"className"}:{"htmlFor":"for","className":"class"},setAttribute:function(w,u,x,v){if(w&&w.setAttribute){u=j.DOM.CUSTOM_ATTRIBUTES[u]||u;w.setAttribute(u,x,v);}},getAttribute:function(x,u,w){w=(w!==undefined)?w:2;var v="";if(x&&x.getAttribute){u=j.DOM.CUSTOM_ATTRIBUTES[u]||u;v=x.getAttribute(u,w);if(v===null){v="";}}return v;},isWindow:function(u){return u.alert&&u.document;},_fragClones:{},_create:function(v,w,u){u=u||"div";var x=j.DOM._fragClones[u];if(x){x=x.cloneNode(false);}else{x=j.DOM._fragClones[u]=w.createElement(u);}x.innerHTML=v;return x;},_removeChildNodes:function(u){while(u.firstChild){u.removeChild(u.firstChild);}},addHTML:function(y,x,v){var u=y.parentNode,w;if(x!==undefined&&x!==null){if(x.nodeType){w=x;}else{w=j.DOM.create(x);}}if(v){if(v.nodeType){v.parentNode.insertBefore(w,v);}else{switch(v){case"replace":while(y.firstChild){y.removeChild(y.firstChild);}if(w){y.appendChild(w);}break;case"before":u.insertBefore(w,y);break;case"after":if(y.nextSibling){u.insertBefore(w,y.nextSibling);}else{u.appendChild(w);}break;default:y.appendChild(w);}}}else{y.appendChild(w);}return w;},VALUE_SETTERS:{},VALUE_GETTERS:{},getValue:function(w){var v="",u;if(w&&w[o]){u=j.DOM.VALUE_GETTERS[w[o].toLowerCase()];if(u){v=u(w);}else{v=w.value;}}if(v===h){v=h;}return(typeof v==="string")?v:"";},setValue:function(u,v){var w;if(u&&u[o]){w=j.DOM.VALUE_SETTERS[u[o].toLowerCase()];if(w){w(u,v);}else{u.value=v;}}},siblings:function(x,w){var u=[],v=x;while((v=v[n])){if(v[o]&&(!w||w(v))){u.unshift(v);}}v=x;while((v=v[r])){if(v[o]&&(!w||w(v))){u.push(v);}}return u;},_bruteContains:function(u,v){while(v){if(u===v){return true;}v=v.parentNode;}return false;},_getRegExp:function(v,u){u=u||"";j.DOM._regexCache=j.DOM._regexCache||{};if(!j.DOM._regexCache[v+u]){j.DOM._regexCache[v+u]=new RegExp(v,u);}return j.DOM._regexCache[v+u];},_getDoc:function(u){var v=j.config.doc;if(u){v=(u[t]===9)?u:u[g]||u.document||j.config.doc;}return v;},_getWin:function(u){var v=j.DOM._getDoc(u);return v[e]||v[l]||j.config.win;},_batch:function(x,B,A,w,v,z){B=(typeof name==="string")?j.DOM[B]:B;var u,y=[];if(B&&x){j.each(x,function(C){if((u=B.call(j.DOM,C,A,w,v,z))!==undefined){y[y.length]=u;}});}return y.length?y:x;},creators:{},_IESimpleCreate:function(u,v){v=v||j.config.doc;return v.createElement(u);}};(function(y){var z=y.DOM.creators,u=y.DOM.create,x=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*<tbody/,w="<table>",v="</table>";if(y.UA.ie){y.mix(z,{tbody:function(B,C){var D=u(w+B+v,C),A=D.children.tags("tbody")[0];if(D.children.length>1&&A&&!x.test(B)){A[q].removeChild(A);}return D;},script:function(A,B){var C=B.createElement("div");C.innerHTML="-"+A;C.removeChild(C[s]);return C;}},true);y.mix(y.DOM.VALUE_GETTERS,{button:function(A){return(A.attributes&&A.attributes.value)?A.attributes.value.value:"";}});y.mix(y.DOM.VALUE_SETTERS,{button:function(B,C){var A=B.attributes.value;if(!A){A=B[g].createAttribute("value");B.setAttributeNode(A);}A.value=C;},select:function(D,E){for(var B=0,A=D.getElementsByTagName("option"),C;C=A[B++];){if(y.DOM.getValue(C)===E){y.DOM.setAttribute(C,"selected",true);break;}}}});y.DOM.creators.style=y.DOM.creators.script;}if(y.UA.gecko||y.UA.ie){y.mix(z,{option:function(A,B){return u('<select><option class="yui3-big-dummy" selected></option>'+A+"</select>",B);},tr:function(A,B){return u("<tbody>"+A+"</tbody>",B);},td:function(A,B){return u("<tr>"+A+"</tr>",B);},tbody:function(A,B){return u(w+A+v,B);}});y.mix(z,{legend:"fieldset",th:z.td,thead:z.tbody,tfoot:z.tbody,caption:z.tbody,colgroup:z.tbody,col:z.tbody,optgroup:z.option});}y.mix(y.DOM.VALUE_GETTERS,{option:function(B){var A=B.attributes;return(A.value&&A.value.specified)?B.value:B.text;},select:function(B){var C=B.value,A=B.options;if(A&&A.length&&C===""){if(B.multiple){}else{C=y.DOM.getValue(A[B.selectedIndex]);}}return C;}});})(j);})(d);var b,a,c;d.mix(d.DOM,{hasClass:function(g,f){var e=d.DOM._getRegExp("(?:^|\\s+)"+f+"(?:\\s+|$)");return e.test(g.className);},addClass:function(f,e){if(!d.DOM.hasClass(f,e)){f.className=d.Lang.trim([f.className,e].join(" "));}},removeClass:function(f,e){if(e&&a(f,e)){f.className=d.Lang.trim(f.className.replace(d.DOM._getRegExp("(?:^|\\s+)"+e+"(?:\\s+|$)")," "));if(a(f,e)){c(f,e);}}},replaceClass:function(f,e,g){c(f,e);b(f,g);},toggleClass:function(f,e,g){var h=(g!==undefined)?g:!(a(f,e));if(h){b(f,e);}else{c(f,e);}}});a=d.DOM.hasClass;c=d.DOM.removeClass;b=d.DOM.addClass;d.mix(d.DOM,{setWidth:function(f,e){d.DOM._setSize(f,"width",e);},setHeight:function(f,e){d.DOM._setSize(f,"height",e);},_setSize:function(f,h,g){g=(g>0)?g:0;var e=0;f.style[h]=g+"px";e=(h==="height")?f.offsetHeight:f.offsetWidth;if(e>g){g=g-(e-g);if(g<0){g=0;}f.style[h]=g+"px";}}});},"3.2.0",{requires:["oop"]});YUI.add("dom-style",function(a){(function(e){var o="documentElement",b="defaultView",n="ownerDocument",h="style",i="float",q="cssFloat",r="styleFloat",k="transparent",d="getComputedStyle",c="getBoundingClientRect",g=e.config.doc,s=undefined,p=e.DOM,f="transform",l=["WebkitTransform","MozTransform","OTransform"],m=/color$/i,j=/width|height|top|left|right|bottom|margin|padding/i;
 
15
e.Array.each(l,function(t){if(t in g[o].style){f=t;}});e.mix(p,{DEFAULT_UNIT:"px",CUSTOM_STYLES:{},setStyle:function(w,t,y,v){v=v||w.style;var u=p.CUSTOM_STYLES,x;if(v){if(y===null||y===""){y="";}else{if(!isNaN(new Number(y))&&j.test(t)){y+=p.DEFAULT_UNIT;}}if(t in u){if(u[t].set){u[t].set(w,y,v);return;}else{if(typeof u[t]==="string"){t=u[t];}}}v[t]=y;}},getStyle:function(w,t,v){v=v||w.style;var u=p.CUSTOM_STYLES,x="";if(v){if(t in u){if(u[t].get){return u[t].get(w,t,v);}else{if(typeof u[t]==="string"){t=u[t];}}}x=v[t];if(x===""){x=p[d](w,t);}}return x;},setStyles:function(u,v){var t=u.style;e.each(v,function(w,x){p.setStyle(u,x,w,t);},p);},getComputedStyle:function(u,t){var w="",v=u[n];if(u[h]){w=v[b][d](u,null)[t];}return w;}});if(g[o][h][q]!==s){p.CUSTOM_STYLES[i]=q;}else{if(g[o][h][r]!==s){p.CUSTOM_STYLES[i]=r;}}if(e.UA.opera){p[d]=function(v,u){var t=v[n][b],w=t[d](v,"")[u];if(m.test(u)){w=e.Color.toRGB(w);}return w;};}if(e.UA.webkit){p[d]=function(v,u){var t=v[n][b],w=t[d](v,"")[u];if(w==="rgba(0, 0, 0, 0)"){w=k;}return w;};}e.DOM._getAttrOffset=function(x,u){var z=e.DOM[d](x,u),w=x.offsetParent,t,v,y;if(z==="auto"){t=e.DOM.getStyle(x,"position");if(t==="static"||t==="relative"){z=0;}else{if(w&&w[c]){v=w[c]()[u];y=x[c]()[u];if(u==="left"||u==="top"){z=y-v;}else{z=v-x[c]()[u];}}}}return z;};e.DOM._getOffset=function(t){var v,u=null;if(t){v=p.getStyle(t,"position");u=[parseInt(p[d](t,"left"),10),parseInt(p[d](t,"top"),10)];if(isNaN(u[0])){u[0]=parseInt(p.getStyle(t,"left"),10);if(isNaN(u[0])){u[0]=(v==="relative")?0:t.offsetLeft||0;}}if(isNaN(u[1])){u[1]=parseInt(p.getStyle(t,"top"),10);if(isNaN(u[1])){u[1]=(v==="relative")?0:t.offsetTop||0;}}}return u;};p.CUSTOM_STYLES.transform={set:function(u,v,t){t[f]=v;},get:function(u,t){return p[d](u,f);}};})(a);(function(d){var b=parseInt,c=RegExp;d.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){if(!d.Color.re_RGB.test(e)){e=d.Color.toHex(e);}if(d.Color.re_hex.exec(e)){e="rgb("+[b(c.$1,16),b(c.$2,16),b(c.$3,16)].join(", ")+")";}return e;},toHex:function(f){f=d.Color.KEYWORDS[f]||f;if(d.Color.re_RGB.exec(f)){f=[Number(c.$1).toString(16),Number(c.$2).toString(16),Number(c.$3).toString(16)];for(var e=0;e<f.length;e++){if(f[e].length<2){f[e]="0"+f[e];}}f=f.join("");}if(f.length<6){f=f.replace(d.Color.re_hex3,"$1$1");}if(f!=="transparent"&&f.indexOf("#")<0){f="#"+f;}return f.toUpperCase();}};})(a);},"3.2.0",{requires:["dom-base"]});YUI.add("dom-screen",function(a){(function(f){var d="documentElement",q="compatMode",o="position",c="fixed",m="relative",g="left",h="top",i="BackCompat",p="medium",e="borderLeftWidth",b="borderTopWidth",r="getBoundingClientRect",k="getComputedStyle",l=f.DOM,n=/^t(?:able|d|h)$/i,j;if(f.UA.ie){if(f.config.doc[q]!=="quirks"){j=d;}else{j="body";}}f.mix(l,{winHeight:function(t){var s=l._getWinSize(t).height;return s;},winWidth:function(t){var s=l._getWinSize(t).width;return s;},docHeight:function(t){var s=l._getDocSize(t).height;return Math.max(s,l._getWinSize(t).height);},docWidth:function(t){var s=l._getDocSize(t).width;return Math.max(s,l._getWinSize(t).width);},docScrollX:function(u,v){v=v||(u)?l._getDoc(u):f.config.doc;var t=v.defaultView,s=(t)?t.pageXOffset:0;return Math.max(v[d].scrollLeft,v.body.scrollLeft,s);},docScrollY:function(u,v){v=v||(u)?l._getDoc(u):f.config.doc;var t=v.defaultView,s=(t)?t.pageYOffset:0;return Math.max(v[d].scrollTop,v.body.scrollTop,s);},getXY:function(){if(f.config.doc[d][r]){return function(w){var D=null,x,t,y,B,A,s,v,z,C,u;if(w&&w.tagName){C=w.ownerDocument;u=C[d];if(u.contains){inDoc=u.contains(w);}else{inDoc=f.DOM.contains(u,w);}if(inDoc){x=(j)?C[j].scrollLeft:l.docScrollX(w,C);t=(j)?C[j].scrollTop:l.docScrollY(w,C);y=w[r]();D=[y.left,y.top];if(f.UA.ie){B=2;A=2;z=C[q];s=l[k](C[d],e);v=l[k](C[d],b);if(f.UA.ie===6){if(z!==i){B=0;A=0;}}if((z==i)){if(s!==p){B=parseInt(s,10);}if(v!==p){A=parseInt(v,10);}}D[0]-=B;D[1]-=A;}if((t||x)){if(!f.UA.ios){D[0]+=x;D[1]+=t;}}}else{D=l._getOffset(w);}}return D;};}else{return function(t){var w=null,v,s,y,u,x;if(t){if(l.inDoc(t)){w=[t.offsetLeft,t.offsetTop];v=t.ownerDocument;s=t;y=((f.UA.gecko||f.UA.webkit>519)?true:false);while((s=s.offsetParent)){w[0]+=s.offsetLeft;w[1]+=s.offsetTop;if(y){w=l._calcBorders(s,w);}}if(l.getStyle(t,o)!=c){s=t;while((s=s.parentNode)){u=s.scrollTop;x=s.scrollLeft;if(f.UA.gecko&&(l.getStyle(s,"overflow")!=="visible")){w=l._calcBorders(s,w);}if(u||x){w[0]-=x;w[1]-=u;}}w[0]+=l.docScrollX(t,v);w[1]+=l.docScrollY(t,v);}else{w[0]+=l.docScrollX(t,v);w[1]+=l.docScrollY(t,v);}}else{w=l._getOffset(t);}}return w;};}}(),getX:function(s){return l.getXY(s)[0];},getY:function(s){return l.getXY(s)[1];},setXY:function(t,w,z){var u=l.setStyle,y,x,s,v;if(t&&w){y=l.getStyle(t,o);x=l._getOffset(t);if(y=="static"){y=m;u(t,o,y);}v=l.getXY(t);if(w[0]!==null){u(t,g,w[0]-v[0]+x[0]+"px");}if(w[1]!==null){u(t,h,w[1]-v[1]+x[1]+"px");}if(!z){s=l.getXY(t);if(s[0]!==w[0]||s[1]!==w[1]){l.setXY(t,w,true);}}}else{}},setX:function(t,s){return l.setXY(t,[s,null]);},setY:function(s,t){return l.setXY(s,[null,t]);},swapXY:function(t,s){var u=l.getXY(t);l.setXY(t,l.getXY(s));l.setXY(s,u);},_calcBorders:function(v,w){var u=parseInt(l[k](v,b),10)||0,s=parseInt(l[k](v,e),10)||0;if(f.UA.gecko){if(n.test(v.tagName)){u=0;s=0;}}w[0]+=s;w[1]+=u;return w;},_getWinSize:function(v,y){y=y||(v)?l._getDoc(v):f.config.doc;var x=y.defaultView||y.parentWindow,z=y[q],u=x.innerHeight,t=x.innerWidth,s=y[d];if(z&&!f.UA.opera){if(z!="CSS1Compat"){s=y.body;}u=s.clientHeight;t=s.clientWidth;}return{height:u,width:t};},_getDocSize:function(t){var u=(t)?l._getDoc(t):f.config.doc,s=u[d];if(u[q]!="CSS1Compat"){s=u.body;}return{height:s.scrollHeight,width:s.scrollWidth};
 
16
}});})(a);(function(g){var d="top",c="right",h="bottom",b="left",f=function(m,k){var o=Math.max(m[d],k[d]),p=Math.min(m[c],k[c]),i=Math.min(m[h],k[h]),j=Math.max(m[b],k[b]),n={};n[d]=o;n[c]=p;n[h]=i;n[b]=j;return n;},e=g.DOM;g.mix(e,{region:function(j){var k=e.getXY(j),i=false;if(j&&k){i=e._getRegion(k[1],k[0]+j.offsetWidth,k[1]+j.offsetHeight,k[0]);}return i;},intersect:function(k,i,m){var j=m||e.region(k),l={},p=i,o;if(p.tagName){l=e.region(p);}else{if(g.Lang.isObject(i)){l=i;}else{return false;}}o=f(l,j);return{top:o[d],right:o[c],bottom:o[h],left:o[b],area:((o[h]-o[d])*(o[c]-o[b])),yoff:((o[h]-o[d])),xoff:(o[c]-o[b]),inRegion:e.inRegion(k,i,false,m)};},inRegion:function(l,i,j,o){var m={},k=o||e.region(l),q=i,p;if(q.tagName){m=e.region(q);}else{if(g.Lang.isObject(i)){m=i;}else{return false;}}if(j){return(k[b]>=m[b]&&k[c]<=m[c]&&k[d]>=m[d]&&k[h]<=m[h]);}else{p=f(m,k);if(p[h]>=p[d]&&p[c]>=p[b]){return true;}else{return false;}}},inViewportRegion:function(j,i,k){return e.inRegion(j,e.viewportRegion(j),i,k);},_getRegion:function(k,m,i,j){var n={};n[d]=n[1]=k;n[b]=n[0]=j;n[h]=i;n[c]=m;n.width=n[c]-n[b];n.height=n[h]-n[d];return n;},viewportRegion:function(j){j=j||g.config.doc.documentElement;var i=false,l,k;if(j){l=e.docScrollX(j);k=e.docScrollY(j);i=e._getRegion(k,e.winWidth(j)+l,k+e.winHeight(j),l);}return i;}});})(a);},"3.2.0",{requires:["dom-base","dom-style","event-base"]});YUI.add("selector-native",function(a){(function(e){e.namespace("Selector");var c="compareDocumentPosition",d="ownerDocument";var b={_foundCache:[],useNative:true,_compare:("sourceIndex" in e.config.doc.documentElement)?function(i,h){var g=i.sourceIndex,f=h.sourceIndex;if(g===f){return 0;}else{if(g>f){return 1;}}return -1;}:(e.config.doc.documentElement[c]?function(g,f){if(g[c](f)&4){return -1;}else{return 1;}}:function(j,i){var h,f,g;if(j&&i){h=j[d].createRange();h.setStart(j,0);f=i[d].createRange();f.setStart(i,0);g=h.compareBoundaryPoints(1,f);}return g;}),_sort:function(f){if(f){f=e.Array(f,0,true);if(f.sort){f.sort(b._compare);}}return f;},_deDupe:function(f){var g=[],h,j;for(h=0;(j=f[h++]);){if(!j._found){g[g.length]=j;j._found=true;}}for(h=0;(j=g[h++]);){j._found=null;j.removeAttribute("_found");}return g;},query:function(g,o,p,f){o=o||e.config.doc;var l=[],h=(e.Selector.useNative&&e.config.doc.querySelector&&!f),k=[[g,o]],m,q,j,n=(h)?e.Selector._nativeQuery:e.Selector._bruteQuery;if(g&&n){if(!f&&(!h||o.tagName)){k=b._splitQueries(g,o);}for(j=0;(m=k[j++]);){q=n(m[0],m[1],p);if(!p){q=e.Array(q,0,true);}if(q){l=l.concat(q);}}if(k.length>1){l=b._sort(b._deDupe(l));}}return(p)?(l[0]||null):l;},_splitQueries:function(h,l){var g=h.split(","),j=[],m="",k,f;if(l){if(l.tagName){l.id=l.id||e.guid();m='[id="'+l.id+'"] ';}for(k=0,f=g.length;k<f;++k){h=m+g[k];j.push([h,l]);}}return j;},_nativeQuery:function(f,g,h){if(e.UA.webkit&&f.indexOf(":checked")>-1&&(e.Selector.pseudos&&e.Selector.pseudos.checked)){return e.Selector.query(f,g,h,true);}try{return g["querySelector"+(h?"":"All")](f);}catch(i){return e.Selector.query(f,g,h,true);}},filter:function(g,f){var h=[],j,k;if(g&&f){for(j=0;(k=g[j++]);){if(e.Selector.test(k,f)){h[h.length]=k;}}}else{}return h;},test:function(h,k,p){var n=false,g=k.split(","),f=false,q,t,o,s,m,l,r;if(h&&h.tagName){if(!p&&!e.DOM.inDoc(h)){q=h.parentNode;if(q){p=q;}else{s=h[d].createDocumentFragment();s.appendChild(h);p=s;f=true;}}p=p||h[d];if(!h.id){h.id=e.guid();}for(m=0;(r=g[m++]);){r+='[id="'+h.id+'"]';o=e.Selector.query(r,p);for(l=0;t=o[l++];){if(t===h){n=true;break;}}if(n){break;}}if(f){s.removeChild(h);}}return n;},ancestor:function(g,f,h){return e.DOM.ancestor(g,function(i){return e.Selector.test(i,f);},h);}};e.mix(e.Selector,b,true);})(a);},"3.2.0",{requires:["dom-base"]});YUI.add("selector-css2",function(g){var h="parentNode",d="tagName",e="attributes",a="combinator",f="pseudos",c=g.Selector,b={_reRegExpTokens:/([\^\$\?\[\]\*\+\-\.\(\)\|\\])/,SORT_RESULTS:true,_children:function(n,j){var k=n.children,m,l=[],o,p;if(n.children&&j&&n.children.tags){l=n.children.tags(j);}else{if((!k&&n[d])||(k&&j)){o=k||n.childNodes;k=[];for(m=0;(p=o[m++]);){if(p.tagName){if(!j||j===p.tagName){k.push(p);}}}}}return k||[];},_re:{attr:/(\[[^\]]*\])/g,pseudos:/:([\-\w]+(?:\(?:['"]?(.+)['"]?\)))*/i},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[className~=$1]"},operators:{"":function(j,i){return g.DOM.getAttribute(j,i)!=="";},"~=":"(?:^|\\s+){val}(?:\\s+|$)","|=":"^{val}-?"},pseudos:{"first-child":function(i){return g.Selector._children(i[h])[0]===i;}},_bruteQuery:function(n,r,t){var o=[],i=[],q=c._tokenize(n),m=q[q.length-1],s=g.DOM._getDoc(r),k,j,p,l;if(m){j=m.id;p=m.className;l=m.tagName||"*";if(r.getElementsByTagName){if(j&&(r.all||(r.nodeType===9||g.DOM.inDoc(r)))){i=g.DOM.allById(j,r);}else{if(p){i=r.getElementsByClassName(p);}else{i=r.getElementsByTagName(l);}}}else{k=r.firstChild;while(k){if(k.tagName){i.push(k);}k=k.nextSilbing||k.firstChild;}}if(i.length){o=c._filterNodes(i,q,t);}}return o;},_filterNodes:function(u,q,s){var z=0,y,A=q.length,t=A-1,p=[],w=u[0],D=w,B=g.Selector.getters,o,x,m,r,k,v,l,C;for(z=0;(D=w=u[z++]);){t=A-1;r=null;testLoop:while(D&&D.tagName){m=q[t];l=m.tests;y=l.length;if(y&&!k){while((C=l[--y])){o=C[1];if(B[C[0]]){v=B[C[0]](D,C[0]);}else{v=D[C[0]];if(v===undefined&&D.getAttribute){v=D.getAttribute(C[0]);}}if((o==="="&&v!==C[2])||(typeof o!=="string"&&o.test&&!o.test(v))||(!o.test&&typeof o==="function"&&!o(D,C[0]))){if((D=D[r])){while(D&&(!D.tagName||(m.tagName&&m.tagName!==D.tagName))){D=D[r];}}continue testLoop;}}}t--;if(!k&&(x=m.combinator)){r=x.axis;D=D[r];while(D&&!D.tagName){D=D[r];}if(x.direct){r=null;}}else{p.push(w);if(s){return p;}break;}}}w=D=null;return p;},combinators:{" ":{axis:"parentNode"},">":{axis:"parentNode",direct:true},"+":{axis:"previousSibling",direct:true}},_parsers:[{name:e,re:/^\[(-?[a-z]+[\w\-]*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,fn:function(k,l){var j=k[2]||"",i=g.Selector.operators,m;if((k[1]==="id"&&j==="=")||(k[1]==="className"&&g.config.doc.documentElement.getElementsByClassName&&(j==="~="||j==="="))){l.prefilter=k[1];
 
17
l[k[1]]=k[3];}if(j in i){m=i[j];if(typeof m==="string"){k[3]=k[3].replace(g.Selector._reRegExpTokens,"\\$1");m=g.DOM._getRegExp(m.replace("{val}",k[3]));}k[2]=m;}if(!l.last||l.prefilter!==k[1]){return k.slice(1);}}},{name:d,re:/^((?:-?[_a-z]+[\w-]*)|\*)/i,fn:function(j,k){var i=j[1].toUpperCase();k.tagName=i;if(i!=="*"&&(!k.last||k.prefilter)){return[d,"=",i];}if(!k.prefilter){k.prefilter="tagName";}}},{name:a,re:/^\s*([>+~]|\s)\s*/,fn:function(i,j){}},{name:f,re:/^:([\-\w]+)(?:\(['"]?(.+)['"]?\))*/i,fn:function(i,j){var k=c[f][i[1]];if(k){return[i[2],k];}else{return false;}}}],_getToken:function(i){return{tagName:null,id:null,className:null,attributes:{},combinator:null,tests:[]};},_tokenize:function(l){l=l||"";l=c._replaceShorthand(g.Lang.trim(l));var k=c._getToken(),q=l,p=[],r=false,n,o,m,j;outer:do{r=false;for(m=0;(j=c._parsers[m++]);){if((n=j.re.exec(l))){if(j.name!==a){k.selector=l;}l=l.replace(n[0],"");if(!l.length){k.last=true;}if(c._attrFilters[n[1]]){n[1]=c._attrFilters[n[1]];}o=j.fn(n,k);if(o===false){r=false;break outer;}else{if(o){k.tests.push(o);}}if(!l.length||j.name===a){p.push(k);k=c._getToken(k);if(j.name===a){k.combinator=g.Selector.combinators[n[1]];}}r=true;}}}while(r&&l.length);if(!r||l.length){p=[];}return p;},_replaceShorthand:function(k){var l=c.shorthand,m=k.match(c._re.attr),p=k.match(c._re.pseudos),o,n,j;if(p){k=k.replace(c._re.pseudos,"!!REPLACED_PSEUDO!!");}if(m){k=k.replace(c._re.attr,"!!REPLACED_ATTRIBUTE!!");}for(o in l){if(l.hasOwnProperty(o)){k=k.replace(g.DOM._getRegExp(o,"gi"),l[o]);}}if(m){for(n=0,j=m.length;n<j;++n){k=k.replace("!!REPLACED_ATTRIBUTE!!",m[n]);}}if(p){for(n=0,j=p.length;n<j;++n){k=k.replace("!!REPLACED_PSEUDO!!",p[n]);}}return k;},_attrFilters:{"class":"className","for":"htmlFor"},getters:{href:function(j,i){return g.DOM.getAttribute(j,i);}}};g.mix(g.Selector,b,true);g.Selector.getters.src=g.Selector.getters.rel=g.Selector.getters.href;if(g.Selector.useNative&&g.config.doc.querySelector){g.Selector.shorthand["\\.(-?[_a-z]+[-\\w]*)"]="[class~=$1]";}},"3.2.0",{requires:["selector-native"]});YUI.add("selector",function(a){},"3.2.0",{use:["selector-native","selector-css2"]});YUI.add("dom",function(a){},"3.2.0",{use:["dom-base","dom-style","dom-screen","selector"]});YUI.add("event-custom-base",function(e){e.Env.evt={handles:{},plugins:{}};(function(){var f=0,g=1;e.Do={objs:{},before:function(i,k,l,m){var j=i,h;if(m){h=[i,m].concat(e.Array(arguments,4,true));j=e.rbind.apply(e,h);}return this._inject(f,j,k,l);},after:function(i,k,l,m){var j=i,h;if(m){h=[i,m].concat(e.Array(arguments,4,true));j=e.rbind.apply(e,h);}return this._inject(g,j,k,l);},_inject:function(h,j,k,m){var n=e.stamp(k),l,i;if(!this.objs[n]){this.objs[n]={};}l=this.objs[n];if(!l[m]){l[m]=new e.Do.Method(k,m);k[m]=function(){return l[m].exec.apply(l[m],arguments);};}i=n+e.stamp(j)+m;l[m].register(i,j,h);return new e.EventHandle(l[m],i);},detach:function(h){if(h.detach){h.detach();}},_unload:function(i,h){}};e.Do.Method=function(h,i){this.obj=h;this.methodName=i;this.method=h[i];this.before={};this.after={};};e.Do.Method.prototype.register=function(i,j,h){if(h){this.after[i]=j;}else{this.before[i]=j;}};e.Do.Method.prototype._delete=function(h){delete this.before[h];delete this.after[h];};e.Do.Method.prototype.exec=function(){var k=e.Array(arguments,0,true),l,j,o,m=this.before,h=this.after,n=false;for(l in m){if(m.hasOwnProperty(l)){j=m[l].apply(this.obj,k);if(j){switch(j.constructor){case e.Do.Halt:return j.retVal;case e.Do.AlterArgs:k=j.newArgs;break;case e.Do.Prevent:n=true;break;default:}}}}if(!n){j=this.method.apply(this.obj,k);}for(l in h){if(h.hasOwnProperty(l)){o=h[l].apply(this.obj,k);if(o&&o.constructor==e.Do.Halt){return o.retVal;}else{if(o&&o.constructor==e.Do.AlterReturn){j=o.newRetVal;}}}}return j;};e.Do.AlterArgs=function(i,h){this.msg=i;this.newArgs=h;};e.Do.AlterReturn=function(i,h){this.msg=i;this.newRetVal=h;};e.Do.Halt=function(i,h){this.msg=i;this.retVal=h;};e.Do.Prevent=function(h){this.msg=h;};e.Do.Error=e.Do.Halt;})();var d="after",b=["broadcast","monitored","bubbles","context","contextFn","currentTarget","defaultFn","defaultTargetOnly","details","emitFacade","fireOnce","async","host","preventable","preventedFn","queuable","silent","stoppedFn","target","type"],c=9,a="yui:log";e.EventHandle=function(f,g){this.evt=f;this.sub=g;};e.EventHandle.prototype={each:function(g){g(this);if(e.Lang.isArray(this.evt)){e.Array.each(this.evt,function(f){f.each(g);});}},detach:function(){var f=this.evt,h=0,g;if(f){if(e.Lang.isArray(f)){for(g=0;g<f.length;g++){h+=f[g].detach();}}else{f._delete(this.sub);h=1;}}return h;},monitor:function(f){return this.evt.monitor.apply(this.evt,arguments);}};e.CustomEvent=function(f,g){g=g||{};this.id=e.stamp(this);this.type=f;this.context=e;this.logSystem=(f==a);this.silent=this.logSystem;this.subscribers={};this.afters={};this.preventable=true;this.bubbles=true;this.signature=c;this.subCount=0;this.afterCount=0;this.applyConfig(g,true);};e.CustomEvent.prototype={hasSubs:function(f){var i=this.subCount,g=this.afterCount,h=this.sibling;if(h){i+=h.subCount;g+=h.afterCount;}if(f){return(f=="after")?g:i;}return(i+g);},monitor:function(h){this.monitored=true;var g=this.id+"|"+this.type+"_"+h,f=e.Array(arguments,0,true);f[0]=g;return this.host.on.apply(this.host,f);},getSubs:function(){var h=e.merge(this.subscribers),f=e.merge(this.afters),g=this.sibling;if(g){e.mix(h,g.subscribers);e.mix(f,g.afters);}return[h,f];},applyConfig:function(g,f){if(g){e.mix(this,g,f,b);}},_on:function(j,h,g,f){if(!j){this.log("Invalid callback for CE: "+this.type);}var i=new e.Subscriber(j,h,g,f);if(this.fireOnce&&this.fired){if(this.async){setTimeout(e.bind(this._notify,this,i,this.firedWith),0);}else{this._notify(i,this.firedWith);}}if(f==d){this.afters[i.id]=i;this.afterCount++;}else{this.subscribers[i.id]=i;this.subCount++;}return new e.EventHandle(this,i);},subscribe:function(h,g){var f=(arguments.length>2)?e.Array(arguments,2,true):null;return this._on(h,g,f,true);
 
18
},on:function(h,g){var f=(arguments.length>2)?e.Array(arguments,2,true):null;if(this.host){this.host._monitor("attach",this.type,{args:arguments});}return this._on(h,g,f,true);},after:function(h,g){var f=(arguments.length>2)?e.Array(arguments,2,true):null;return this._on(h,g,f,d);},detach:function(k,h){if(k&&k.detach){return k.detach();}var g,j,l=0,f=e.merge(this.subscribers,this.afters);for(g in f){if(f.hasOwnProperty(g)){j=f[g];if(j&&(!k||k===j.fn)){this._delete(j);l++;}}}return l;},unsubscribe:function(){return this.detach.apply(this,arguments);},_notify:function(i,h,f){this.log(this.type+"->"+"sub: "+i.id);var g;g=i.notify(h,this);if(false===g||this.stopped>1){this.log(this.type+" cancelled by subscriber");return false;}return true;},log:function(g,f){if(!this.silent){}},fire:function(){if(this.fireOnce&&this.fired){this.log("fireOnce event: "+this.type+" already fired");return true;}else{var f=e.Array(arguments,0,true);this.fired=true;this.firedWith=f;if(this.emitFacade){return this.fireComplex(f);}else{return this.fireSimple(f);}}},fireSimple:function(f){this.stopped=0;this.prevented=0;if(this.hasSubs()){var g=this.getSubs();this._procSubs(g[0],f);this._procSubs(g[1],f);}this._broadcast(f);return this.stopped?false:true;},fireComplex:function(f){f[0]=f[0]||{};return this.fireSimple(f);},_procSubs:function(j,g,f){var k,h;for(h in j){if(j.hasOwnProperty(h)){k=j[h];if(k&&k.fn){if(false===this._notify(k,g,f)){this.stopped=2;}if(this.stopped==2){return false;}}}}return true;},_broadcast:function(g){if(!this.stopped&&this.broadcast){var f=e.Array(g);f.unshift(this.type);if(this.host!==e){e.fire.apply(e,f);}if(this.broadcast==2){e.Global.fire.apply(e.Global,f);}}},unsubscribeAll:function(){return this.detachAll.apply(this,arguments);},detachAll:function(){return this.detach();},_delete:function(f){if(f){if(this.subscribers[f.id]){delete this.subscribers[f.id];this.subCount--;}if(this.afters[f.id]){delete this.afters[f.id];this.afterCount--;}}if(this.host){this.host._monitor("detach",this.type,{ce:this,sub:f});}if(f){delete f.fn;delete f.context;}}};e.Subscriber=function(h,g,f){this.fn=h;this.context=g;this.id=e.stamp(this);this.args=f;};e.Subscriber.prototype={_notify:function(j,h,i){var f=this.args,g;switch(i.signature){case 0:g=this.fn.call(j,i.type,h,j);break;case 1:g=this.fn.call(j,h[0]||null,j);break;default:if(f||h){h=h||[];f=(f)?h.concat(f):h;g=this.fn.apply(j,f);}else{g=this.fn.call(j);}}if(this.once){i._delete(this);}return g;},notify:function(g,i){var j=this.context,f=true;if(!j){j=(i.contextFn)?i.contextFn():i.context;}if(e.config.throwFail){f=this._notify(j,g,i);}else{try{f=this._notify(j,g,i);}catch(h){e.error(this+" failed: "+h.message,h);}}return f;},contains:function(g,f){if(f){return((this.fn==g)&&this.context==f);}else{return(this.fn==g);}}};(function(){var k=e.Lang,j=":",h="|",m="~AFTER~",l=e.Array,f=e.cached(function(o){return o.replace(/(.*)(:)(.*)/,"*$2$3");}),n=e.cached(function(o,p){if(!p||!k.isString(o)||o.indexOf(j)>-1){return o;}return p+j+o;}),i=e.cached(function(q,s){var p=q,r,u,o;if(!k.isString(p)){return p;}o=p.indexOf(m);if(o>-1){u=true;p=p.substr(m.length);}o=p.indexOf(h);if(o>-1){r=p.substr(0,(o));p=p.substr(o+1);if(p=="*"){p=null;}}return[r,(s)?n(p,s):p,u,p];}),g=function(p){var q=(k.isObject(p))?p:{};this._yuievt=this._yuievt||{id:e.guid(),events:{},targets:{},config:q,chain:("chain" in q)?q.chain:e.config.chain,bubbling:false,defaults:{context:q.context||this,host:this,emitFacade:q.emitFacade,fireOnce:q.fireOnce,queuable:q.queuable,monitored:q.monitored,broadcast:q.broadcast,defaultTargetOnly:q.defaultTargetOnly,bubbles:("bubbles" in q)?q.bubbles:true}};};g.prototype={once:function(){var o=this.on.apply(this,arguments);o.each(function(p){if(p.sub){p.sub.once=true;}});return o;},on:function(s,x,q){var A=i(s,this._yuievt.config.prefix),C,D,p,G,z,y,E,u=e.Env.evt.handles,r,o,v,F=e.Node,B,w,t;this._monitor("attach",A[1],{args:arguments,category:A[0],after:A[2]});if(k.isObject(s)){if(k.isFunction(s)){return e.Do.before.apply(e.Do,arguments);}C=x;D=q;p=l(arguments,0,true);G=[];if(k.isArray(s)){t=true;}r=s._after;delete s._after;e.each(s,function(J,I){if(k.isObject(J)){C=J.fn||((k.isFunction(J))?J:C);D=J.context||D;}var H=(r)?m:"";p[0]=H+((t)?J:I);p[1]=C;p[2]=D;G.push(this.on.apply(this,p));},this);return(this._yuievt.chain)?this:new e.EventHandle(G);}y=A[0];r=A[2];v=A[3];if(F&&(this instanceof F)&&(v in F.DOM_EVENTS)){p=l(arguments,0,true);p.splice(2,0,F.getDOMNode(this));return e.on.apply(e,p);}s=A[1];if(this instanceof YUI){o=e.Env.evt.plugins[s];p=l(arguments,0,true);p[0]=v;if(F){B=p[2];if(B instanceof e.NodeList){B=e.NodeList.getDOMNodes(B);}else{if(B instanceof F){B=F.getDOMNode(B);}}w=(v in F.DOM_EVENTS);if(w){p[2]=B;}}if(o){E=o.on.apply(e,p);}else{if((!s)||w){E=e.Event._attach(p);}}}if(!E){z=this._yuievt.events[s]||this.publish(s);E=z._on(x,q,(arguments.length>3)?l(arguments,3,true):null,(r)?"after":true);}if(y){u[y]=u[y]||{};u[y][s]=u[y][s]||[];u[y][s].push(E);}return(this._yuievt.chain)?this:E;},subscribe:function(){return this.on.apply(this,arguments);},detach:function(x,z,o){var D=this._yuievt.events,s,u=e.Node,B=u&&(this instanceof u);if(!x&&(this!==e)){for(s in D){if(D.hasOwnProperty(s)){D[s].detach(z,o);}}if(B){e.Event.purgeElement(u.getDOMNode(this));}return this;}var r=i(x,this._yuievt.config.prefix),w=k.isArray(r)?r[0]:null,E=(r)?r[3]:null,t,A=e.Env.evt.handles,C,y,v,q,p=function(J,H,I){var G=J[H],K,F;if(G){for(F=G.length-1;F>=0;--F){K=G[F].evt;if(K.host===I||K.el===I){G[F].detach();}}}};if(w){y=A[w];x=r[1];C=(B)?e.Node.getDOMNode(this):this;if(y){if(x){p(y,x,C);}else{for(s in y){if(y.hasOwnProperty(s)){p(y,s,C);}}}return this;}}else{if(k.isObject(x)&&x.detach){x.detach();return this;}else{if(B&&((!E)||(E in u.DOM_EVENTS))){v=l(arguments,0,true);v[2]=u.getDOMNode(this);e.detach.apply(e,v);return this;}}}t=e.Env.evt.plugins[E];if(this instanceof YUI){v=l(arguments,0,true);if(t&&t.detach){t.detach.apply(e,v);return this;}else{if(!x||(!t&&u&&(x in u.DOM_EVENTS))){v[0]=x;
 
19
e.Event.detach.apply(e.Event,v);return this;}}}q=D[r[1]];if(q){q.detach(z,o);}return this;},unsubscribe:function(){return this.detach.apply(this,arguments);},detachAll:function(o){return this.detach(o);},unsubscribeAll:function(){return this.detachAll.apply(this,arguments);},publish:function(q,r){var p,v,o,u,t=this._yuievt,s=t.config.prefix;q=(s)?n(q,s):q;this._monitor("publish",q,{args:arguments});if(k.isObject(q)){o={};e.each(q,function(x,w){o[w]=this.publish(w,x||r);},this);return o;}p=t.events;v=p[q];if(v){if(r){v.applyConfig(r,true);}}else{u=t.defaults;v=new e.CustomEvent(q,(r)?e.merge(u,r):u);p[q]=v;}return p[q];},_monitor:function(s,p,t){var q,r=this.getEvent(p);if((this._yuievt.config.monitored&&(!r||r.monitored))||(r&&r.monitored)){q=p+"_"+s;t.monitored=s;this.fire.call(this,q,t);}},fire:function(r){var w=k.isString(r),q=(w)?r:(r&&r.type),v,p,u=this._yuievt.config.prefix,s,o=(w)?l(arguments,1,true):arguments;q=(u)?n(q,u):q;this._monitor("fire",q,{args:o});v=this.getEvent(q,true);s=this.getSibling(q,v);if(s&&!v){v=this.publish(q);}if(!v){if(this._yuievt.hasTargets){return this.bubble({type:q},o,this);}p=true;}else{v.sibling=s;p=v.fire.apply(v,o);}return(this._yuievt.chain)?this:p;},getSibling:function(o,q){var p;if(o.indexOf(j)>-1){o=f(o);p=this.getEvent(o,true);if(p){p.applyConfig(q);p.bubbles=false;p.broadcast=0;}}return p;},getEvent:function(p,o){var r,q;if(!o){r=this._yuievt.config.prefix;p=(r)?n(p,r):p;}q=this._yuievt.events;return q[p]||null;},after:function(q,p){var o=l(arguments,0,true);switch(k.type(q)){case"function":return e.Do.after.apply(e.Do,arguments);case"array":case"object":o[0]._after=true;break;default:o[0]=m+q;}return this.on.apply(this,o);},before:function(){return this.on.apply(this,arguments);}};e.EventTarget=g;e.mix(e,g.prototype,false,false,{bubbles:false});g.call(e);YUI.Env.globalEvents=YUI.Env.globalEvents||new g();e.Global=YUI.Env.globalEvents;})();},"3.2.0",{requires:["oop"]});(function(){var d,b=YUI.Env,c=YUI.config,h=c.doc,e=h&&h.documentElement,i=e&&e.doScroll,k=YUI.Env.add,f=YUI.Env.remove,g=(i)?"onreadystatechange":"DOMContentLoaded",a=c.pollInterval||40,j=function(l){b._ready();};if(!b._ready){b._ready=function(){if(!b.DOMReady){b.DOMReady=true;f(h,g,j);}};
 
20
/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
 
21
if(i){if(self!==self.top){d=function(){if(h.readyState=="complete"){f(h,g,d);j();}};k(h,g,d);}else{b._dri=setInterval(function(){try{e.doScroll("left");clearInterval(b._dri);b._dri=null;j();}catch(l){}},a);}}else{k(h,g,j);}}})();YUI.add("event-base",function(a){(function(){var c=YUI.Env,b=function(){a.fire("domready");};a.publish("domready",{fireOnce:true,async:true});if(c.DOMReady){b();}else{a.before(b,c,"_ready");}})();(function(){var c=a.UA,b={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9,63272:46,63273:36,63275:35},d=function(g){try{if(g&&3==g.nodeType){g=g.parentNode;}}catch(f){return null;}return a.one(g);};a.DOMEventFacade=function(m,g,f){f=f||{};var i=m,h=g,j=a.config.doc,n=j.body,o=i.pageX,l=i.pageY,k,r,p=j.documentElement,q=f.overrides||{};this.altKey=i.altKey;this.ctrlKey=i.ctrlKey;this.metaKey=i.metaKey;this.shiftKey=i.shiftKey;this.type=q.type||i.type;this.clientX=i.clientX;this.clientY=i.clientY;if(("clientX" in i)&&(!o)&&(0!==o)){o=i.clientX;l=i.clientY;if(c.ie){o+=(p.scrollLeft||n.scrollLeft||0);l+=(p.scrollTop||n.scrollTop||0);}}this._yuifacade=true;this._event=i;this.pageX=o;this.pageY=l;k=i.keyCode||i.charCode||0;if(c.webkit&&(k in b)){k=b[k];}this.keyCode=k;this.charCode=k;this.button=i.which||i.button;this.which=this.button;this.target=d(i.target||i.srcElement);this.currentTarget=d(h);r=i.relatedTarget;if(!r){if(i.type=="mouseout"){r=i.toElement;}else{if(i.type=="mouseover"){r=i.fromElement;}}}this.relatedTarget=d(r);if(i.type=="mousewheel"||i.type=="DOMMouseScroll"){this.wheelDelta=(i.detail)?(i.detail*-1):Math.round(i.wheelDelta/80)||((i.wheelDelta<0)?-1:1);}this.stopPropagation=function(){if(i.stopPropagation){i.stopPropagation();}else{i.cancelBubble=true;}f.stopped=1;this.stopped=1;};this.stopImmediatePropagation=function(){if(i.stopImmediatePropagation){i.stopImmediatePropagation();}else{this.stopPropagation();}f.stopped=2;this.stopped=2;};this.preventDefault=function(e){if(i.preventDefault){i.preventDefault();}i.returnValue=e||false;f.prevented=1;this.prevented=1;};this.halt=function(e){if(e){this.stopImmediatePropagation();}else{this.stopPropagation();}this.preventDefault();};if(this._touch){this._touch(i,g,f);}};})();(function(){a.Env.evt.dom_wrappers={};a.Env.evt.dom_map={};var j=a.Env.evt,c=a.config,g=c.win,l=YUI.Env.add,e=YUI.Env.remove,i=function(){YUI.Env.windowLoaded=true;a.Event._load();e(g,"load",i);},b=function(){a.Event._unload();e(g,"unload",b);},d="domready",f="~yui|2|compat~",h=function(n){try{return(n&&typeof n!=="string"&&a.Lang.isNumber(n.length)&&!n.tagName&&!n.alert);}catch(m){return false;}},k=function(){var o=false,p=0,n=[],q=j.dom_wrappers,m=null,r=j.dom_map;return{POLL_RETRYS:1000,POLL_INTERVAL:40,lastError:null,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!k._interval){k._interval=setInterval(a.bind(k._poll,k),k.POLL_INTERVAL);}},onAvailable:function(s,w,A,t,x,z){var y=a.Array(s),u,v;for(u=0;u<y.length;u=u+1){n.push({id:y[u],fn:w,obj:A,override:t,checkReady:x,compat:z});}p=this.POLL_RETRYS;setTimeout(a.bind(k._poll,k),0);v=new a.EventHandle({_delete:function(){if(v.handle){v.handle.detach();return;}var C,B;for(C=0;C<y.length;C++){for(B=0;B<n.length;B++){if(y[C]===n[B].id){n.splice(B,1);}}}}});return v;},onContentReady:function(w,t,v,u,s){return this.onAvailable(w,t,v,u,true,s);},attach:function(v,u,t,s){return k._attach(a.Array(arguments,0,true));},_createWrapper:function(y,x,s,t,w){var v,z=a.stamp(y),u="event:"+z+x;if(false===w){u+="native";}if(s){u+="capture";}v=q[u];if(!v){v=a.publish(u,{silent:true,bubbles:false,contextFn:function(){if(t){return v.el;}else{v.nodeRef=v.nodeRef||a.one(v.el);return v.nodeRef;}}});v.overrides={};
 
22
v.el=y;v.key=u;v.domkey=z;v.type=x;v.fn=function(A){v.fire(k.getEvent(A,y,(t||(false===w))));};v.capture=s;if(y==g&&x=="load"){v.fireOnce=true;m=u;}q[u]=v;r[z]=r[z]||{};r[z][u]=v;l(y,x,v.fn,s);}return v;},_attach:function(y,x){var D,F,v,C,s,u=false,w,z=y[0],A=y[1],t=y[2]||g,G=x&&x.facade,E=x&&x.capture,B=x&&x.overrides;if(y[y.length-1]===f){D=true;}if(!A||!A.call){return false;}if(h(t)){F=[];a.each(t,function(I,H){y[2]=I;F.push(k._attach(y,x));});return new a.EventHandle(F);}else{if(a.Lang.isString(t)){if(D){v=a.DOM.byId(t);}else{v=a.Selector.query(t);switch(v.length){case 0:v=null;break;case 1:v=v[0];break;default:y[2]=v;return k._attach(y,x);}}if(v){t=v;}else{w=this.onAvailable(t,function(){w.handle=k._attach(y,x);},k,true,false,D);return w;}}}if(!t){return false;}if(a.Node&&t instanceof a.Node){t=a.Node.getDOMNode(t);}C=this._createWrapper(t,z,E,D,G);if(B){a.mix(C.overrides,B);}if(t==g&&z=="load"){if(YUI.Env.windowLoaded){u=true;}}if(D){y.pop();}s=y[3];w=C._on(A,s,(y.length>4)?y.slice(4):null);if(u){C.fire();}return w;},detach:function(z,A,u,x){var y=a.Array(arguments,0,true),C,v,B,w,s,t;if(y[y.length-1]===f){C=true;}if(z&&z.detach){return z.detach();}if(typeof u=="string"){if(C){u=a.DOM.byId(u);}else{u=a.Selector.query(u);v=u.length;if(v<1){u=null;}else{if(v==1){u=u[0];}}}}if(!u){return false;}if(u.detach){y.splice(2,1);return u.detach.apply(u,y);}else{if(h(u)){B=true;for(w=0,v=u.length;w<v;++w){y[2]=u[w];B=(a.Event.detach.apply(a.Event,y)&&B);}return B;}}if(!z||!A||!A.call){return this.purgeElement(u,false,z);}s="event:"+a.stamp(u)+z;t=q[s];if(t){return t.detach(A);}else{return false;}},getEvent:function(v,t,s){var u=v||g.event;return(s)?u:new a.DOMEventFacade(u,t,q["event:"+a.stamp(t)+v.type]);},generateId:function(s){var t=s.id;if(!t){t=a.stamp(s);s.id=t;}return t;},_isValidCollection:h,_load:function(s){if(!o){o=true;if(a.fire){a.fire(d);}k._poll();}},_poll:function(){if(this.locked){return;}if(a.UA.ie&&!YUI.Env.DOMReady){this.startInterval();return;}this.locked=true;var t,s,x,u,w,y,v=!o;if(!v){v=(p>0);}w=[];y=function(B,C){var A,z=C.override;if(C.compat){if(C.override){if(z===true){A=C.obj;}else{A=z;}}else{A=B;}C.fn.call(A,C.obj);}else{A=C.obj||a.one(B);C.fn.apply(A,(a.Lang.isArray(z))?z:[]);}};for(t=0,s=n.length;t<s;++t){x=n[t];if(x&&!x.checkReady){u=(x.compat)?a.DOM.byId(x.id):a.Selector.query(x.id,null,true);if(u){y(u,x);n[t]=null;}else{w.push(x);}}}for(t=0,s=n.length;t<s;++t){x=n[t];if(x&&x.checkReady){u=(x.compat)?a.DOM.byId(x.id):a.Selector.query(x.id,null,true);if(u){if(o||(u.get&&u.get("nextSibling"))||u.nextSibling){y(u,x);n[t]=null;}}else{w.push(x);}}}p=(w.length===0)?0:p-1;if(v){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;return;},purgeElement:function(v,s,z){var x=(a.Lang.isString(v))?a.Selector.query(v,null,true):v,B=this.getListeners(x,z),w,y,A,u,t;if(s&&x){B=B||[];u=a.Selector.query("*",x);w=0;y=u.length;for(;w<y;++w){t=this.getListeners(u[w],z);if(t){B=B.concat(t);}}}if(B){w=0;y=B.length;for(;w<y;++w){A=B[w];A.detachAll();e(A.el,A.type,A.fn,A.capture);delete q[A.key];delete r[A.domkey][A.key];}}},getListeners:function(w,v){var x=a.stamp(w,true),s=r[x],u=[],t=(v)?"event:"+x+v:null,y=j.plugins;if(!s){return null;}if(t){if(y[v]&&y[v].eventDef){t+="_synth";}if(s[t]){u.push(s[t]);}t+="native";if(s[t]){u.push(s[t]);}}else{a.each(s,function(A,z){u.push(A);});}return(u.length)?u:null;},_unload:function(s){a.each(q,function(u,t){u.detachAll();e(u.el,u.type,u.fn,u.capture);delete q[t];delete r[u.domkey][t];});},nativeAdd:l,nativeRemove:e};}();a.Event=k;if(c.injected||YUI.Env.windowLoaded){i();}else{l(g,"load",i);}if(a.UA.ie){a.on(d,k._poll,k,true);}a.on("unload",b);k.Custom=a.CustomEvent;k.Subscriber=a.Subscriber;k.Target=a.EventTarget;k.Handle=a.EventHandle;k.Facade=a.EventFacade;k._poll();})();a.Env.evt.plugins.available={on:function(d,c,f,e){var b=arguments.length>4?a.Array(arguments,4,true):[];return a.Event.onAvailable.call(a.Event,f,c,e,b);}};a.Env.evt.plugins.contentready={on:function(d,c,f,e){var b=arguments.length>4?a.Array(arguments,4,true):[];return a.Event.onContentReady.call(a.Event,f,c,e,b);}};},"3.2.0",{requires:["event-custom-base"]});YUI.add("pluginhost",function(c){var a=c.Lang;function b(){this._plugins={};}b.prototype={plug:function(g,d){if(g){if(a.isFunction(g)){this._plug(g,d);}else{if(a.isArray(g)){for(var e=0,f=g.length;e<f;e++){this.plug(g[e]);}}else{this._plug(g.fn,g.cfg);}}}return this;},unplug:function(e){if(e){this._unplug(e);}else{var d;for(d in this._plugins){if(this._plugins.hasOwnProperty(d)){this._unplug(d);}}}return this;},hasPlugin:function(d){return(this._plugins[d]&&this[d]);},_initPlugins:function(e){this._plugins=this._plugins||{};var g=(this._getClasses)?this._getClasses():[this.constructor],d=[],h={},f,j,l,m,k;for(j=g.length-1;j>=0;j--){f=g[j];m=f._UNPLUG;if(m){c.mix(h,m,true);}l=f._PLUG;if(l){c.mix(d,l,true);}}for(k in d){if(d.hasOwnProperty(k)){if(!h[k]){this.plug(d[k]);}}}if(e&&e.plugins){this.plug(e.plugins);}},_destroyPlugins:function(){this.unplug();},_plug:function(f,d){if(f&&f.NS){var e=f.NS;d=d||{};d.host=this;if(this.hasPlugin(e)){this[e].setAttrs(d);}else{this[e]=new f(d);this._plugins[e]=f;}}},_unplug:function(f){var e=f,d=this._plugins;if(a.isFunction(f)){e=f.NS;if(e&&(!d[e]||d[e]!==f)){e=null;}}if(e){if(this[e]){this[e].destroy();delete this[e];}if(d[e]){delete d[e];}}}};b.plug=function(e,j,g){var k,h,d,f;if(e!==c.Base){e._PLUG=e._PLUG||{};if(!a.isArray(j)){if(g){j={fn:j,cfg:g};}j=[j];}for(h=0,d=j.length;h<d;h++){k=j[h];f=k.NAME||k.fn.NAME;e._PLUG[f]=k;}}};b.unplug=function(e,h){var j,g,d,f;if(e!==c.Base){e._UNPLUG=e._UNPLUG||{};if(!a.isArray(h)){h=[h];}for(g=0,d=h.length;g<d;g++){j=h[g];f=j.NAME;if(!e._PLUG[f]){e._UNPLUG[f]=j;}else{delete e._PLUG[f];}}}};c.namespace("Plugin").Host=b;},"3.2.0",{requires:["yui-base"]});YUI.add("node-base",function(c){var g=".",e="nodeName",j="nodeType",b="ownerDocument",i="tagName",d="_yuid",f=c.DOM,h=function(m){var l=(m.nodeType!==9)?m.uniqueID:m[d];
 
23
if(l&&h._instances[l]&&h._instances[l]._node!==m){m[d]=null;}l=l||c.stamp(m);if(!l){l=c.guid();}this[d]=l;this._node=m;h._instances[l]=this;this._stateProxy=m;c.EventTarget.call(this,{emitFacade:true});if(this._initPlugins){this._initPlugins();}},k=function(m){var l=null;if(m){l=(typeof m==="string")?function(o){return c.Selector.test(o,m);}:function(o){return m(c.one(o));};}return l;};h.NAME="node";h.re_aria=/^(?:role$|aria-)/;h.DOM_EVENTS={abort:1,beforeunload:1,blur:1,change:1,click:1,close:1,command:1,contextmenu:1,dblclick:1,DOMMouseScroll:1,drag:1,dragstart:1,dragenter:1,dragover:1,dragleave:1,dragend:1,drop:1,error:1,focus:1,key:1,keydown:1,keypress:1,keyup:1,load:1,message:1,mousedown:1,mouseenter:1,mouseleave:1,mousemove:1,mousemultiwheel:1,mouseout:1,mouseover:1,mouseup:1,mousewheel:1,reset:1,resize:1,select:1,selectstart:1,submit:1,scroll:1,textInput:1,unload:1};c.mix(h.DOM_EVENTS,c.Env.evt.plugins);h._instances={};h.getDOMNode=function(l){if(l){return(l.nodeType)?l:l._node||null;}return null;};h.scrubVal=function(m,l){if(l&&m){if(typeof m==="object"||typeof m==="function"){if(j in m||f.isWindow(m)){m=c.one(m);}else{if((m.item&&!m._nodes)||(m[0]&&m[0][j])){m=c.all(m);}}}}else{if(m===undefined){m=l;}else{if(m===null){m=null;}}}return m;};h.addMethod=function(l,n,m){if(l&&n&&typeof n==="function"){h.prototype[l]=function(){m=m||this;var p=c.Array(arguments,0,true),o;if(p[0]&&p[0] instanceof h){p[0]=p[0]._node;}if(p[1]&&p[1] instanceof h){p[1]=p[1]._node;}p.unshift(this._node);o=h.scrubVal(n.apply(m,p),this);return o;};}else{}};h.importMethod=function(n,l,m){if(typeof l==="string"){m=m||l;h.addMethod(m,n[l],n);}else{c.Array.each(l,function(o){h.importMethod(n,o);});}};h.one=function(o){var l=null,n,m;if(o){if(typeof o==="string"){if(o.indexOf("doc")===0){o=c.config.doc;}else{if(o.indexOf("win")===0){o=c.config.win;}else{o=c.Selector.query(o,null,true);}}if(!o){return null;}}else{if(o instanceof h){return o;}}if(o.nodeType||c.DOM.isWindow(o)){m=(o.uniqueID&&o.nodeType!==9)?o.uniqueID:o._yuid;l=h._instances[m];n=l?l._node:null;if(!l||(n&&o!==n)){l=new h(o);}}}return l;};h.get=function(){return h.one.apply(h,arguments);};h.create=function(){return c.one(f.create.apply(f,arguments));};h.ATTRS={text:{getter:function(){return f.getText(this._node);},setter:function(l){f.setText(this._node,l);return l;}},"options":{getter:function(){return this._node.getElementsByTagName("option");}},"children":{getter:function(){var o=this._node,n=o.children,p,m,l;if(!n){p=o.childNodes;n=[];for(m=0,l=p.length;m<l;++m){if(p[m][i]){n[n.length]=p[m];}}}return c.all(n);}},value:{getter:function(){return f.getValue(this._node);},setter:function(l){f.setValue(this._node,l);return l;}},data:{getter:function(){return this._dataVal;},setter:function(l){this._dataVal=l;return l;},value:null}};h.DEFAULT_SETTER=function(l,n){var m=this._stateProxy,o;if(l.indexOf(g)>-1){o=l;l=l.split(g);c.Object.setValue(m,l,n);}else{if(m[l]!==undefined){m[l]=n;}}return n;};h.DEFAULT_GETTER=function(l){var m=this._stateProxy,n;if(l.indexOf&&l.indexOf(g)>-1){n=c.Object.getValue(m,l.split(g));}else{if(m[l]!==undefined){n=m[l];}}return n;};c.mix(h,c.EventTarget,false,null,1);c.mix(h.prototype,{toString:function(){var o=this[d]+": not bound to a node",n=this._node,l,p,m;if(n){l=n.attributes;p=(l&&l.id)?n.getAttribute("id"):null;m=(l&&l.className)?n.getAttribute("className"):null;o=n[e];if(p){o+="#"+p;}if(m){o+="."+m.replace(" ",".");}o+=" "+this[d];}return o;},get:function(l){var m;if(this._getAttr){m=this._getAttr(l);}else{m=this._get(l);}if(m){m=h.scrubVal(m,this);}else{if(m===null){m=null;}}return m;},_get:function(l){var m=h.ATTRS[l],n;if(m&&m.getter){n=m.getter.call(this);}else{if(h.re_aria.test(l)){n=this._node.getAttribute(l,2);}else{n=h.DEFAULT_GETTER.apply(this,arguments);}}return n;},set:function(l,n){var m=h.ATTRS[l];if(this._setAttr){this._setAttr.apply(this,arguments);}else{if(m&&m.setter){m.setter.call(this,n);}else{if(h.re_aria.test(l)){this._node.setAttribute(l,n);}else{h.DEFAULT_SETTER.apply(this,arguments);}}}return this;},setAttrs:function(l){if(this._setAttrs){this._setAttrs(l);}else{c.Object.each(l,function(m,o){this.set(o,m);},this);}return this;},getAttrs:function(m){var l={};if(this._getAttrs){this._getAttrs(m);}else{c.Array.each(m,function(o,p){l[o]=this.get(o);},this);}return l;},create:h.create,compareTo:function(l){var m=this._node;if(l instanceof h){l=l._node;}return m===l;},inDoc:function(m){var l=this._node;m=(m)?m._node||m:l[b];if(m.documentElement){return f.contains(m.documentElement,l);}},getById:function(n){var m=this._node,l=f.byId(n,m[b]);if(l&&f.contains(m,l)){l=c.one(l);}else{l=null;}return l;},ancestor:function(l,m){return c.one(f.ancestor(this._node,k(l),m));},previous:function(m,l){return c.one(f.elementByAxis(this._node,"previousSibling",k(m),l));},next:function(m,l){return c.one(f.elementByAxis(this._node,"nextSibling",k(m),l));},siblings:function(l){return c.all(f.siblings(this._node,k(l)));},one:function(l){return c.one(c.Selector.query(l,this._node,true));},query:function(l){return this.one(l);},all:function(l){var m=c.all(c.Selector.query(l,this._node));m._query=l;m._queryRoot=this._node;return m;},queryAll:function(l){return this.all(l);},test:function(l){return c.Selector.test(this._node,l);},remove:function(m){var n=this._node,l=n.parentNode;if(l){l.removeChild(n);}if(m){this.destroy(true);}return this;},replace:function(l){var m=this._node;m.parentNode.replaceChild(h.getDOMNode(l),m);return this;},purge:function(m,l){c.Event.purgeElement(this._node,m,l);return this;},destroy:function(l){delete h._instances[this[d]];this.purge(l);if(this.unplug){this.unplug();}this._node._yuid=null;this._node=null;this._stateProxy=null;},invoke:function(s,m,l,r,q,p){var o=this._node,n;if(m&&m instanceof h){m=m._node;}if(l&&l instanceof h){l=l._node;}n=o[s](m,l,r,q,p);return h.scrubVal(n,this);},each:function(m,l){l=l||this;return m.call(l,this);},item:function(l){return this;},size:function(){return this._node?1:0;
 
24
},insert:function(n,l){var m=this._node;if(n){if(typeof l==="number"){l=this._node.childNodes[l];}else{if(l&&l._node){l=l._node;}}if(typeof n!=="string"){if(n._node){n=n._node;}else{if(n._nodes||(!n.nodeType&&n.length)){n=c.all(n);c.each(n._nodes,function(o){f.addHTML(m,o,l);});return this;}}}f.addHTML(m,n,l);}else{}return this;},prepend:function(l){return this.insert(l,0);},append:function(l){return this.insert(l,null);},setContent:function(l){if(l){if(l._node){l=l._node;}else{if(l._nodes){l=f._nl2frag(l._nodes);}}}f.addHTML(this._node,l,"replace");return this;},swap:c.config.doc.documentElement.swapNode?function(l){this._node.swapNode(h.getDOMNode(l));}:function(l){l=h.getDOMNode(l);var n=this._node,m=l.parentNode,o=l.nextSibling;if(o===n){m.insertBefore(n,l);}else{if(l===n.nextSibling){m.insertBefore(l,n);}else{n.parentNode.replaceChild(l,n);f.addHTML(m,n,o);}}return this;},getData:function(m){var l;this._data=this._data||{};if(arguments.length){l=this._data[m];}else{l=this._data;}return l;},setData:function(l,m){this._data=this._data||{};if(arguments.length>1){this._data[l]=m;}else{this._data=l;}return this;},clearData:function(l){if(this._data&&arguments.length){delete this._data[l];}else{this._data={};}return this;},hasMethod:function(m){var l=this._node;return !!(l&&m in l&&typeof l[m]!=="unknown"&&(typeof l[m]==="function"||String(l[m]).indexOf("function")===1));}},true);c.Node=h;c.get=c.Node.get;c.one=c.Node.one;var a=function(l){var m=[];if(typeof l==="string"){this._query=l;l=c.Selector.query(l);}else{if(l.nodeType||f.isWindow(l)){l=[l];}else{if(l instanceof c.Node){l=[l._node];}else{if(l[0] instanceof c.Node){c.Array.each(l,function(n){if(n._node){m.push(n._node);}});l=m;}else{l=c.Array(l,0,true);}}}}this._nodes=l;};a.NAME="NodeList";a.getDOMNodes=function(l){return l._nodes;};a.each=function(l,o,n){var m=l._nodes;if(m&&m.length){c.Array.each(m,o,n||l);}else{}};a.addMethod=function(l,n,m){if(l&&n){a.prototype[l]=function(){var p=[],o=arguments;c.Array.each(this._nodes,function(u){var t=(u.uniqueID&&u.nodeType!==9)?"uniqueID":"_yuid",r=c.Node._instances[u[t]],s,q;if(!r){r=a._getTempNode(u);}s=m||r;q=n.apply(s,o);if(q!==undefined&&q!==r){p[p.length]=q;}});return p.length?p:this;};}else{}};a.importMethod=function(n,l,m){if(typeof l==="string"){m=m||l;a.addMethod(l,n[l]);}else{c.Array.each(l,function(o){a.importMethod(n,o);});}};a._getTempNode=function(m){var l=a._tempNode;if(!l){l=c.Node.create("<div></div>");a._tempNode=l;}l._node=m;l._stateProxy=m;return l;};c.mix(a.prototype,{item:function(l){return c.one((this._nodes||[])[l]);},each:function(n,m){var l=this;c.Array.each(this._nodes,function(p,o){p=c.one(p);return n.call(m||p,p,o,l);});return l;},batch:function(m,l){var n=this;c.Array.each(this._nodes,function(q,p){var o=c.Node._instances[q[d]];if(!o){o=a._getTempNode(q);}return m.call(l||o,o,p,n);});return n;},some:function(n,m){var l=this;return c.Array.some(this._nodes,function(p,o){p=c.one(p);m=m||p;return n.call(m,p,o,l);});},toFrag:function(){return c.one(c.DOM._nl2frag(this._nodes));},indexOf:function(l){return c.Array.indexOf(this._nodes,c.Node.getDOMNode(l));},filter:function(l){return c.all(c.Selector.filter(this._nodes,l));},modulus:function(o,m){m=m||0;var l=[];a.each(this,function(p,n){if(n%o===m){l.push(p);}});return c.all(l);},odd:function(){return this.modulus(2,1);},even:function(){return this.modulus(2);},destructor:function(){},refresh:function(){var o,m=this._nodes,n=this._query,l=this._queryRoot;if(n){if(!l){if(m&&m[0]&&m[0].ownerDocument){l=m[0].ownerDocument;}}this._nodes=c.Selector.query(n,l);}return this;},_prepEvtArgs:function(o,n,m){var l=c.Array(arguments,0,true);if(l.length<2){l[2]=this._nodes;}else{l.splice(2,0,this._nodes);}l[3]=m||this;return l;},on:function(n,m,l){return c.on.apply(c,this._prepEvtArgs.apply(this,arguments));},after:function(n,m,l){return c.after.apply(c,this._prepEvtArgs.apply(this,arguments));},size:function(){return this._nodes.length;},isEmpty:function(){return this._nodes.length<1;},toString:function(){var o="",n=this[d]+": not bound to any nodes",l=this._nodes,m;if(l&&l[0]){m=l[0];o+=m[e];if(m.id){o+="#"+m.id;}if(m.className){o+="."+m.className.replace(" ",".");}if(l.length>1){o+="...["+l.length+" items]";}}return o||n;}},true);a.importMethod(c.Node.prototype,["append","detach","detachAll","insert","prepend","remove","set","setContent"]);a.prototype.get=function(m){var p=[],o=this._nodes,n=false,q=a._getTempNode,l,r;if(o[0]){l=c.Node._instances[o[0]._yuid]||q(o[0]);r=l._get(m);if(r&&r.nodeType){n=true;}}c.Array.each(o,function(s){l=c.Node._instances[s._yuid];if(!l){l=q(s);}r=l._get(m);if(!n){r=c.Node.scrubVal(r,l);}p.push(r);});return(n)?c.all(p):p;};c.NodeList=a;c.all=function(l){return new a(l);};c.Node.all=c.all;c.Array.each(["replaceChild","appendChild","insertBefore","removeChild","hasChildNodes","cloneNode","hasAttribute","removeAttribute","scrollIntoView","getElementsByTagName","focus","blur","submit","reset","select"],function(l){c.Node.prototype[l]=function(p,n,m){var o=this.invoke(l,p,n,m);return o;};});c.Node.importMethod(c.DOM,["contains","setAttribute","getAttribute"]);c.NodeList.importMethod(c.Node.prototype,["getAttribute","setAttribute","removeAttribute"]);(function(m){var l=["hasClass","addClass","removeClass","replaceClass","toggleClass"];m.Node.importMethod(m.DOM,l);m.NodeList.importMethod(m.Node.prototype,l);})(c);if(!c.config.doc.documentElement.hasAttribute){c.Node.prototype.hasAttribute=function(l){if(l==="value"){if(this.get("value")!==""){return true;}}return !!(this._node.attributes[l]&&this._node.attributes[l].specified);};}c.Node.ATTRS.type={setter:function(m){if(m==="hidden"){try{this._node.type="hidden";}catch(l){this.setStyle("display","none");this._inputType="hidden";}}else{try{this._node.type=m;}catch(l){}}return m;},getter:function(){return this._inputType||this._node.type;},_bypassProxy:true};if(c.config.doc.createElement("form").elements.nodeType){c.Node.ATTRS.elements={getter:function(){return this.all("input, textarea, button, select");
 
25
}};}c.mix(c.Node.ATTRS,{offsetHeight:{setter:function(l){c.DOM.setHeight(this._node,l);return l;},getter:function(){return this._node.offsetHeight;}},offsetWidth:{setter:function(l){c.DOM.setWidth(this._node,l);return l;},getter:function(){return this._node.offsetWidth;}}});c.mix(c.Node.prototype,{sizeTo:function(l,m){var n;if(arguments.length<2){n=c.one(l);l=n.get("offsetWidth");m=n.get("offsetHeight");}this.setAttrs({offsetWidth:l,offsetHeight:m});}});},"3.2.0",{requires:["dom-base","selector-css2","event-base"]});YUI.add("node-style",function(a){(function(c){var b=["getStyle","getComputedStyle","setStyle","setStyles"];c.Node.importMethod(c.DOM,b);c.NodeList.importMethod(c.Node.prototype,b);})(a);},"3.2.0",{requires:["dom-style","node-base"]});YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);c.unshift(a.Node.getDOMNode(this));return a.DOM[b].apply(this,c);}};});a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return("scrollLeft" in b)?b.scrollLeft:a.DOM.docScrollX(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollLeft" in b){b.scrollLeft=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(c,a.DOM.docScrollY(b));}}}else{}}};a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return("scrollTop" in b)?b.scrollTop:a.DOM.docScrollY(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollTop" in b){b.scrollTop=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(a.DOM.docScrollX(b),c);}}}else{}}};a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]);a.Node.ATTRS.region={getter:function(){var b=a.Node.getDOMNode(this),c;if(b&&!b.tagName){if(b.nodeType===9){b=b.documentElement;}}if(b.alert){c=a.DOM.viewportRegion(b);}else{c=a.DOM.region(b);}return c;}};a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this));}};a.Node.importMethod(a.DOM,"inViewportRegion");a.Node.prototype.intersect=function(b,d){var c=a.Node.getDOMNode(this);if(b instanceof a.Node){b=a.Node.getDOMNode(b);}return a.DOM.intersect(c,b,d);};a.Node.prototype.inRegion=function(b,d,e){var c=a.Node.getDOMNode(this);if(b instanceof a.Node){b=a.Node.getDOMNode(b);}return a.DOM.inRegion(c,b,d,e);};},"3.2.0",{requires:["dom-screen"]});YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.plug.apply(a.Base,b);return a.Node;};a.Node.unplug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.unplug.apply(a.Base,b);return a.Node;};a.mix(a.Node,a.Plugin.Host,false,null,1);a.NodeList.prototype.plug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b);});};a.NodeList.prototype.unplug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b);});};},"3.2.0",{requires:["node-base","pluginhost"]});YUI.add("node-event-delegate",function(a){a.Node.prototype.delegate=function(e,d,b){var c=a.Array(arguments,0,true);c.splice(2,0,this._node);return a.delegate.apply(a,c);};},"3.2.0",{requires:["node-base","event-delegate"]});YUI.add("node",function(a){},"3.2.0",{requires:["dom","event-base","event-delegate","pluginhost"],use:["node-base","node-style","node-screen","node-pluginhost","node-event-delegate"],skinnable:false});YUI.add("event-delegate",function(g){var d=g.Array,b=g.Lang,a=b.isString,f=g.Selector.test,c=g.Env.evt.handles;function e(q,s,j,i){var o=d(arguments,0,true),p=a(j)?j:null,n=q.split(/\|/),l,h,k,r,m;if(n.length>1){r=n.shift();q=n.shift();}l=g.Node.DOM_EVENTS[q];if(b.isObject(l)&&l.delegate){m=l.delegate.apply(l,arguments);}if(!m){if(!q||!s||!j||!i){return;}h=(p)?g.Selector.query(p,null,true):j;if(!h&&a(j)){m=g.on("available",function(){g.mix(m,g.delegate.apply(g,o),true);},j);}if(!m&&h){o.splice(2,2,h);if(a(i)){i=g.delegate.compileFilter(i);}m=g.on.apply(g,o);m.sub.filter=i;m.sub._notify=e.notifySub;}}if(m&&r){k=c[r]||(c[r]={});k=k[q]||(k[q]=[]);k.push(m);}return m;}e.notifySub=function(l,q,j){q=q.slice();if(this.args){q.push.apply(q,this.args);}var o=q[0],k=e._applyFilter(this.filter,q),h=o.currentTarget,m,p,n;if(k){k=d(k);for(m=k.length-1;m>=0;--m){n=k[m];q[0]=new g.DOMEventFacade(o,n,j);q[0].container=h;l=this.context||n;p=this.fn.apply(l,q);if(p===false){break;}}return p;}};e.compileFilter=g.cached(function(h){return function(j,i){return f(j._node,h,i.currentTarget._node);};});e._applyFilter=function(k,j){var m=j[0],h=m.currentTarget,l=m.target,i=[];j.unshift(l);while(l&&l!==h){if(k.apply(l,j)){i.push(l);}j[0]=l=l.get("parentNode");}if(i.length<=1){i=i[0];}j.shift();return i;};g.delegate=g.Event.delegate=e;},"3.2.0",{requires:["node-base"]});YUI.add("io-base",function(d){var D="io:start",p="io:complete",b="io:success",f="io:failure",E="io:end",y=0,o={"X-Requested-With":"XMLHttpRequest"},z={},k=d.config.win;function l(){return k.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");}function e(){var w=y;y++;return w;}function x(G,w){var F={};F.id=d.Lang.isNumber(w)?w:e();G=G||{};if(!G.use&&!G.upload){F.c=l();}else{if(G.use){if(G.use==="native"){if(k.XDomainRequest){F.c=new XDomainRequest();F.t=G.use;}else{F.c=l();}}else{F.c=d.io._transport[G.use];F.t=G.use;}}else{F.c={};}}return F;}function i(w){if(k&&k.XMLHttpRequest){if(w.c){w.c.onreadystatechange=null;}}w.c=null;w=null;}function q(H,I){var G=new d.EventTarget().publish("transaction:"+H),w=I.arguments,F=I.context||d;if(w){G.on(I.on[H],F,w);}else{G.on(I.on[H],F);}return G;}function u(G,F){var w=F.arguments;if(w){d.fire(D,G,w);}else{d.fire(D,G);}if(F.on&&F.on.start){q("start",F).fire(G);}}function g(G,H){var F=G.e?{status:0,statusText:G.e}:G.c,w=H.arguments;if(w){d.fire(p,G.id,F,w);}else{d.fire(p,G.id,F);}if(H.on&&H.on.complete){q("complete",H).fire(G.id,F);
 
26
}}function j(F,G){var w=G.arguments;if(w){d.fire(E,F.id,w);}else{d.fire(E,F.id);}if(G.on&&G.on.end){q("end",G).fire(F.id);}i(F);}function t(F,G){var w=G.arguments;if(w){d.fire(b,F.id,F.c,w);}else{d.fire(b,F.id,F.c);}if(G.on&&G.on.success){q("success",G).fire(F.id,F.c);}j(F,G);}function h(G,H){var F=G.e?{status:0,statusText:G.e}:G.c,w=H.arguments;if(w){d.fire(f,G.id,F,w);}else{d.fire(f,G.id,F);}if(H.on&&H.on.failure){q("failure",H).fire(G.id,F);}j(G,H);}function a(G,w,H,F){i(G);H.xdr.use="flash";H.data=H.form&&F?F:null;return d.io(w,H,G.id);}function r(w,F){w+=((w.indexOf("?")==-1)?"?":"&")+F;return w;}function v(w,F){if(F){o[w]=F;}else{delete o[w];}}function c(G,w){var F;w=w||{};for(F in o){if(o.hasOwnProperty(F)){if(w[F]){continue;}else{w[F]=o[F];}}}for(F in w){if(w.hasOwnProperty(F)){G.setRequestHeader(F,w[F]);}}}function n(F,w){if(F&&F.c){F.e=w;F.c.abort();}}function s(F,w){z[F.id]=k.setTimeout(function(){n(F,"timeout");},w);}function m(w){k.clearTimeout(z[w]);delete z[w];}function B(G,H){var w;try{if(G.c.status&&G.c.status!==0){w=G.c.status;}else{w=0;}}catch(F){w=0;}if(w>=200&&w<300||w===1223){t(G,H);}else{h(G,H);}}function C(w,F){if(w.c.readyState===4){if(F.timeout){m(w.id);}k.setTimeout(function(){g(w,F);B(w,F);},0);}}function A(G,O,K){var L,F,M,H,w,S,J,Q,I,R=G;O=d.Object(O);F=x(O.xdr||O.form,K);H=O.method?O.method=O.method.toUpperCase():O.method="GET";S=O.sync;J=O.data;if(d.Lang.isObject(O.data)&&d.QueryString){O.data=d.QueryString.stringify(O.data);}if(O.form){if(O.form.upload){return d.io.upload(F,G,O);}else{L=d.io._serialize(O.form,O.data);if(H==="POST"||H==="PUT"){O.data=L;}else{if(H==="GET"){G=r(G,L);}}}}if(O.data&&H==="GET"){G=r(G,O.data);}if(O.data&&H==="POST"){O.headers=d.merge({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},O.headers);}if(F.t){return d.io.xdr(G,F,O);}if(!S){F.c.onreadystatechange=function(){C(F,O);};}try{F.c.open(H,G,S?false:true);if(O.xdr&&O.xdr.credentials){F.c.withCredentials=true;}}catch(P){if(O.xdr){return a(F,R,O,J);}}c(F.c,O.headers);u(F.id,O);try{F.c.send(O.data||"");if(S){M=F.c;Q=["status","statusText","responseText","responseXML"];w=O.arguments?{id:F.id,arguments:O.arguments}:{id:F.id};for(I=0;I<4;I++){w[Q[I]]=F.c[Q[I]];}w.getAllResponseHeaders=function(){return M.getAllResponseHeaders();};w.getResponseHeader=function(T){return M.getResponseHeader(T);};g(F,O);B(F,O);return w;}}catch(N){if(O.xdr){return a(F,R,O,J);}}if(O.timeout){s(F,O.timeout);}return{id:F.id,abort:function(){return F.c?n(F,"abort"):false;},isInProgress:function(){return F.c?F.c.readyState!==4&&F.c.readyState!==0:false;}};}A.start=u;A.complete=g;A.success=t;A.failure=h;A.end=j;A._id=e;A._timeout=z;A.header=v;d.io=A;d.io.http=A;},"3.2.0",{optional:["querystring-stringify-simple"],requires:["event-custom-base"]});YUI.add("json-parse",function(b){function l(e){return(b.config.win||this||{})[e];}var j=l("JSON"),k=l("eval"),m=(Object.prototype.toString.call(j)==="[object JSON]"&&j),f=!!m,p=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,d=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g=/(?:^|:|,)(?:\s*\[)+/g,q=/[^\],:{}\s]/,o=function(e){return"\\u"+("0000"+(+(e.charCodeAt(0))).toString(16)).slice(-4);},c=function(s,e){var r=function(y,w){var u,t,x=y[w];if(x&&typeof x==="object"){for(u in x){if(x.hasOwnProperty(u)){t=r(x,u);if(t===undefined){delete x[u];}else{x[u]=t;}}}}return e.call(y,w,x);};return typeof e==="function"?r({"":s},""):s;},h=function(r,e){r=r.replace(p,o);if(!q.test(r.replace(n,"@").replace(d,"]").replace(g,""))){return c(k("("+r+")"),e);}throw new SyntaxError("JSON.parse");};b.namespace("JSON").parse=function(r,e){if(typeof r!=="string"){r+="";}return m&&b.JSON.useNativeParse?m.parse(r,e):h(r,e);};function a(r,e){return r==="ok"?true:e;}if(m){try{f=(m.parse('{"ok":false}',a)).ok;}catch(i){f=false;}}b.JSON.useNativeParse=f;},"3.2.0");YUI.add("transition-native",function(b){var i="-webkit-transition",g="WebkitTransition",c="-webkit-transition-property",f="-webkit-transition-duration",a="-webkit-transition-timing-function",d="-webkit-transition-delay",j="webkitTransitionEnd",k="WebkitTransform",h={},e=function(){this.init.apply(this,arguments);};e._toCamel=function(l){l=l.replace(/-([a-z])/gi,function(n,m){return m.toUpperCase();});return l;};e._toHyphen=function(l){l=l.replace(/([A-Z]?)([a-z]+)([A-Z]?)/g,function(p,o,n,m){var q="";if(o){q+="-"+o.toLowerCase();}q+=n;if(m){q+="-"+m.toLowerCase();}return q;});return l;};e._reKeywords=/^(?:node|duration|iterations|easing|delay)$/;e.useNative=false;if(i in b.config.doc.documentElement.style){e.useNative=true;e.supported=true;}b.Node.DOM_EVENTS[j]=1;e.NAME="transition";e.DEFAULT_EASING="ease";e.DEFAULT_DURATION=0.5;e.DEFAULT_DELAY=0;e._nodeAttrs={};e.prototype={constructor:e,init:function(m,l){var n=this;if(!n._running){n._node=m;n._config=l;m._transition=n;n._duration=("duration" in l)?l.duration:n.constructor.DEFAULT_DURATION;n._delay=("delay" in l)?l.delay:n.constructor.DEFAULT_DELAY;n._easing=l.easing||n.constructor.DEFAULT_EASING;n._count=0;n._running=false;n.initAttrs(l);}return n;},addProperty:function(s,n){var q=this,p=this._node,o=b.stamp(p),m=e._nodeAttrs[o],l,r;if(!m){m=e._nodeAttrs[o]={};}l=m[s];if(n&&n.value!==undefined){r=n.value;}else{if(n!==undefined){r=n;n=h;}}if(typeof r==="function"){r=r.call(p,p);}if(l&&l.transition&&l.transition!==q){l.transition._count--;}q._count++;m[s]={value:r,duration:((typeof n.duration!=="undefined")?n.duration:q._duration)||0.0001,delay:(typeof n.delay!=="undefined")?n.delay:q._delay,easing:n.easing||q._easing,transition:q};},removeProperty:function(n){var m=this,l=e._nodeAttrs[b.stamp(m._node)];if(l&&l[n]){delete l[n];m._count--;}},initAttrs:function(m){var l;if(m.transform&&!m[k]){m[k]=m.transform;delete m.transform;}for(l in m){if(m.hasOwnProperty(l)&&!e._reKeywords.test(l)){this.addProperty(l,m[l]);}}},run:function(m){var l=this;if(!l._running){l._running=true;
 
27
l._node.fire("transition:start",{type:"transition:start",config:l._config});l._start();l._callback=m;}return l;},_start:function(){this._runNative();},_prepDur:function(l){l=parseFloat(l);return l+"s";},_runNative:function(o){var t=this,p=t._node,w=b.stamp(p),u=p._node,m=u.style,r=getComputedStyle(u),A=e._nodeAttrs[w],n="",B=r[c],z=c+": ",s=f+": ",y=a+": ",v=d+": ",q,x,l;if(B!=="all"){z+=B+",";s+=r[f]+",";y+=r[a]+",";v+=r[d]+",";}for(l in A){q=e._toHyphen(l);x=A[l];if(A.hasOwnProperty(l)&&x.transition===t){if(l in u.style){s+=t._prepDur(x.duration)+",";v+=t._prepDur(x.delay)+",";y+=(x.easing)+",";z+=q+",";n+=q+": "+x.value+"; ";}else{this.removeProperty(l);}}}z=z.replace(/,$/,";");s=s.replace(/,$/,";");y=y.replace(/,$/,";");v=v.replace(/,$/,";");if(!p._hasTransitionEnd){t._detach=p.on(j,t._onNativeEnd);p._hasTransitionEnd=true;}m.cssText+=z+s+y+v+n;},_end:function(l){var o=this,m=o._node,p=o._callback,n={type:"transition:end",config:o._config,elapsedTime:l};o._running=false;if(p){o._callback=null;setTimeout(function(){p.call(m,n);},1);}m.fire("transition:end",n);},_endNative:function(l){var m=this._node,n=m.getComputedStyle(c);if(typeof n==="string"){n=n.replace(new RegExp("(?:^|,\\s)"+l+",?"),",");n=n.replace(/^,|,$/,"");m.setStyle(g,n);}},_onNativeEnd:function(q){var n=this,p=b.stamp(n),l=q._event,m=e._toCamel(l.propertyName),t=l.elapsedTime,s=e._nodeAttrs[p],r=s[m],o=(r)?r.transition:null;if(o){o.removeProperty(m);o._endNative(m);n.fire("transition:propertyEnd",{type:"propertyEnd",propertyName:m,elapsedTime:t});if(o._count<=0){o._end(t);}}},destroy:function(){var l=this;if(l._detach){l._detach.detach();}l._node=null;}};b.Transition=e;b.TransitionNative=e;b.Node.prototype.transition=function(l,n){var m=this._transition;if(m&&!m._running){m.init(this,l);}else{m=new e(this,l);}m.run(n);return this;};b.NodeList.prototype.transition=function(l,m){this.each(function(n){n.transition(l,m);});return this;};},"3.2.0",{requires:["node-base"]});YUI.add("transition-timer",function(b){var a=b.Transition;b.mix(a.prototype,{_start:function(){if(a.useNative){this._runNative();}else{this._runTimer();}},_runTimer:function(){var c=this;c._initAttrs();a._running[b.stamp(c)]=c;c._startTime=new Date();a._startTimer();},_endTimer:function(){var c=this;delete a._running[b.stamp(c)];c._startTime=null;},_runFrame:function(){var c=new Date()-this._startTime;this._runAttrs(c);},_runAttrs:function(h){var l=this,j=l._node,p=b.stamp(j),s=a._nodeAttrs[p],g=a.behaviors,m=false,e=false,c,f,k,r,o,q,u,n;for(c in s){f=s[c];if((f&&f.transition===l)){q=f.duration;o=f.delay;r=(h-o)/1000;u=h;k=(n in g&&"set" in g[n])?g[n].set:a.DEFAULT_SETTER;m=(u>=q);if(u>q){u=q;}if(!o||h>=o){k(l,c,f.from,f.to,u-o,q-o,f.easing,f.unit);if(m){delete s[c];l._count--;j.fire("transition:propertyEnd",{type:"propertyEnd",propertyName:c,config:l._config,elapsedTime:r});if(!e&&l._count<=0){e=true;l._end(r);l._endTimer();}}}}}},_initAttrs:function(){var j=this,e=a.behaviors,l=b.stamp(j._node),q=a._nodeAttrs[l],d,i,k,n,g,c,m,o,p,f,h;for(c in q){d=q[c];if(q.hasOwnProperty(c)&&(d&&d.transition===j)){i=d.duration*1000;k=d.delay*1000;n=d.easing;g=d.value;if(c in j._node._node.style||c in b.DOM.CUSTOM_STYLES){f=(c in e&&"get" in e[c])?e[c].get(j,c):a.DEFAULT_GETTER(j,c);o=a.RE_UNITS.exec(f);m=a.RE_UNITS.exec(g);f=o?o[1]:f;h=m?m[1]:g;p=m?m[2]:o?o[2]:"";if(!p&&a.RE_DEFAULT_UNIT.test(c)){p=a.DEFAULT_UNIT;}if(typeof n==="string"){if(n.indexOf("cubic-bezier")>-1){n=n.substring(13,n.length-1).split(",");}else{if(a.easings[n]){n=a.easings[n];}}}d.from=Number(f);d.to=Number(h);d.unit=p;d.easing=n;d.duration=i+k;d.delay=k;}else{delete q[c];j._count--;}}}},destroy:function(){this.detachAll();this._node=null;}},true);b.mix(b.Transition,{_runtimeAttrs:{},RE_DEFAULT_UNIT:/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,DEFAULT_UNIT:"px",intervalTime:20,behaviors:{left:{get:function(d,c){return b.DOM._getAttrOffset(d._node._node,c);}}},DEFAULT_SETTER:function(f,g,i,j,l,e,h,k){i=Number(i);j=Number(j);var d=f._node,c=a.cubicBezier(h,l/e);c=i+c[0]*(j-i);if(g in d._node.style||g in b.DOM.CUSTOM_STYLES){k=k||"";d.setStyle(g,c+k);}else{if(d._node.attributes[g]){d.setAttribute(g,c);}else{d.set(g,c);}}},DEFAULT_GETTER:function(e,c){var d=e._node,f="";if(c in d._node.style||c in b.DOM.CUSTOM_STYLES){f=d.getComputedStyle(c);}else{if(d._node.attributes[c]){f=d.getAttribute(c);}else{f=d.get(c);}}return f;},_startTimer:function(){if(!a._timer){a._timer=setInterval(a._runFrame,a.intervalTime);}},_stopTimer:function(){clearInterval(a._timer);a._timer=null;},_runFrame:function(){var c=true,d;for(d in a._running){if(a._running[d]._runFrame){c=false;a._running[d]._runFrame();}}if(c){a._stopTimer();}},cubicBezier:function(s,m){var z=0,f=0,w=s[0],e=s[1],v=s[2],d=s[3],u=1,c=0,r=u-3*v+3*w-z,q=3*v-6*w+3*z,o=3*w-3*z,n=z,l=c-3*d+3*e-f,k=3*d-6*e+3*f,j=3*e-3*f,i=f,h=(((r*m)+q)*m+o)*m+n,g=(((l*m)+k)*m+j)*m+i;return[h,g];},easings:{ease:[0.25,0,1,0.25],linear:[0,0,1,1],"ease-in":[0.42,0,1,1],"ease-out":[0,0,0.58,1],"ease-in-out":[0.42,0,0.58,1]},_running:{},_timer:null,RE_UNITS:/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/},true);a.behaviors.top=a.behaviors.bottom=a.behaviors.right=a.behaviors.left;b.Transition=a;},"3.2.0",{requires:["transition-native","node-style"]});YUI.add("transition",function(a){},"3.2.0",{use:["transition-native","transition-timer"]});YUI.add("selector-css3",function(a){a.Selector._reNth=/^(?:([\-]?\d*)(n){1}|(odd|even)$)*([\-+]?\d*)$/;a.Selector._getNth=function(d,o,q,h){a.Selector._reNth.test(o);var m=parseInt(RegExp.$1,10),c=RegExp.$2,j=RegExp.$3,k=parseInt(RegExp.$4,10)||0,p=[],l=a.Selector._children(d.parentNode,q),f;if(j){m=2;f="+";c="n";k=(j==="odd")?1:0;}else{if(isNaN(m)){m=(c)?1:0;}}if(m===0){if(h){k=l.length-k+1;}if(l[k-1]===d){return true;}else{return false;}}else{if(m<0){h=!!h;m=Math.abs(m);}}if(!h){for(var e=k-1,g=l.length;e<g;e+=m){if(e>=0&&l[e]===d){return true;}}}else{for(var e=l.length-k,g=l.length;e>=0;e-=m){if(e<g&&l[e]===d){return true;
 
28
}}}return false;};a.mix(a.Selector.pseudos,{"root":function(b){return b===b.ownerDocument.documentElement;},"nth-child":function(b,c){return a.Selector._getNth(b,c);},"nth-last-child":function(b,c){return a.Selector._getNth(b,c,null,true);},"nth-of-type":function(b,c){return a.Selector._getNth(b,c,b.tagName);},"nth-last-of-type":function(b,c){return a.Selector._getNth(b,c,b.tagName,true);},"last-child":function(c){var b=a.Selector._children(c.parentNode);return b[b.length-1]===c;},"first-of-type":function(b){return a.Selector._children(b.parentNode,b.tagName)[0]===b;},"last-of-type":function(c){var b=a.Selector._children(c.parentNode,c.tagName);return b[b.length-1]===c;},"only-child":function(c){var b=a.Selector._children(c.parentNode);return b.length===1&&b[0]===c;},"only-of-type":function(c){var b=a.Selector._children(c.parentNode,c.tagName);return b.length===1&&b[0]===c;},"empty":function(b){return b.childNodes.length===0;},"not":function(b,c){return !a.Selector.test(b,c);},"contains":function(b,c){var d=b.innerText||b.textContent||"";return d.indexOf(c)>-1;},"checked":function(b){return(b.checked===true||b.selected===true);},enabled:function(b){return(b.disabled!==undefined&&!b.disabled);},disabled:function(b){return(b.disabled);}});a.mix(a.Selector.operators,{"^=":"^{val}","$=":"{val}$","*=":"{val}"});a.Selector.combinators["~"]={axis:"previousSibling"};},"3.2.0",{requires:["dom-base","selector-native","selector-css2"]});YUI.add("dom-style-ie",function(a){(function(d){var y="hasLayout",l="px",m="filter",b="filters",v="opacity",o="auto",h="borderWidth",k="borderTopWidth",s="borderRightWidth",x="borderBottomWidth",i="borderLeftWidth",j="width",q="height",t="transparent",u="visible",c="getComputedStyle",A=undefined,z=d.config.doc.documentElement,r=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,n=(d.UA.ie>=8),f=function(e){return e.currentStyle||e.style;},p={CUSTOM_STYLES:{},get:function(e,C){var B="",D;if(e){D=f(e)[C];if(C===v&&d.DOM.CUSTOM_STYLES[v]){B=d.DOM.CUSTOM_STYLES[v].get(e);}else{if(!D||(D.indexOf&&D.indexOf(l)>-1)){B=D;}else{if(d.DOM.IE.COMPUTED[C]){B=d.DOM.IE.COMPUTED[C](e,C);}else{if(r.test(D)){B=p.getPixel(e,C)+l;}else{B=D;}}}}}return B;},sizeOffsets:{width:["Left","Right"],height:["Top","Bottom"],top:["Top"],bottom:["Bottom"]},getOffset:function(C,e){var G=f(C)[e],H=e.charAt(0).toUpperCase()+e.substr(1),D="offset"+H,B="pixel"+H,F=p.sizeOffsets[e],E=C.ownerDocument.compatMode,I="";if(G===o||G.indexOf("%")>-1){I=C["offset"+H];if(E!=="BackCompat"){if(F[0]){I-=p.getPixel(C,"padding"+F[0]);I-=p.getBorderWidth(C,"border"+F[0]+"Width",1);}if(F[1]){I-=p.getPixel(C,"padding"+F[1]);I-=p.getBorderWidth(C,"border"+F[1]+"Width",1);}}}else{if(!C.style[B]&&!C.style[e]){C.style[e]=G;}I=C.style[B];}return I+l;},borderMap:{thin:(n)?"1px":"2px",medium:(n)?"3px":"4px",thick:(n)?"5px":"6px"},getBorderWidth:function(B,D,e){var C=e?"":l,E=B.currentStyle[D];if(E.indexOf(l)<0){if(p.borderMap[E]&&B.currentStyle.borderStyle!=="none"){E=p.borderMap[E];}else{E=0;}}return(e)?parseFloat(E):E;},getPixel:function(C,e){var E=null,B=f(C),F=B.right,D=B[e];C.style.right=D;E=C.style.pixelRight;C.style.right=F;return E;},getMargin:function(C,e){var D,B=f(C);if(B[e]==o){D=0;}else{D=p.getPixel(C,e);}return D+l;},getVisibility:function(B,e){var C;while((C=B.currentStyle)&&C[e]=="inherit"){B=B.parentNode;}return(C)?C[e]:u;},getColor:function(B,e){var C=f(B)[e];if(!C||C===t){d.DOM.elementByAxis(B,"parentNode",null,function(D){C=f(D)[e];if(C&&C!==t){B=D;return true;}});}return d.Color.toRGB(C);},getBorderColor:function(B,e){var C=f(B),D=C[e]||C.color;return d.Color.toRGB(d.Color.toHex(D));}},g={};if(d.UA.ie&&d.UA.ie<9){d.DOM.CUSTOM_STYLES[v]={get:function(C){var E=100;try{E=C[b]["DXImageTransform.Microsoft.Alpha"][v];}catch(D){try{E=C[b]("alpha")[v];}catch(B){}}return E/100;},set:function(B,E,e){var D,C;if(E===""){C=f(B);D=(v in C)?C[v]:1;E=D;}if(typeof e[m]=="string"){e[m]="alpha("+v+"="+E*100+")";if(!B.currentStyle||!B.currentStyle[y]){e.zoom=1;}}}};}try{d.config.doc.createElement("div").style.height="-1px";}catch(w){d.DOM.CUSTOM_STYLES.height={set:function(C,D,B){var e=parseFloat(D);if(isNaN(e)||e>=0){B.height=D;}else{}}};d.DOM.CUSTOM_STYLES.width={set:function(C,D,B){var e=parseFloat(D);if(isNaN(e)||e>=0){B.width=D;}else{}}};}g[j]=g[q]=p.getOffset;g.color=g.backgroundColor=p.getColor;g[h]=g[k]=g[s]=g[x]=g[i]=p.getBorderWidth;g.marginTop=g.marginRight=g.marginBottom=g.marginLeft=p.getMargin;g.visibility=p.getVisibility;g.borderColor=g.borderTopColor=g.borderRightColor=g.borderBottomColor=g.borderLeftColor=p.getBorderColor;if(!d.config.win[c]){d.DOM[c]=p.get;}d.namespace("DOM.IE");d.DOM.IE.COMPUTED=g;d.DOM.IE.ComputedStyle=p;})(a);},"3.2.0",{requires:["dom-style"]});YUI.add("simpleyui",function(a){},"3.2.0",{use:["yui","oop","dom","event-custom-base","event-base","pluginhost","node","event-delegate","io-base","json-parse","transition","selector-css3","dom-style-ie"]});var Y=YUI().use("*");
 
 
b'\\ No newline at end of file'