AUI.add("aui-selector",function(D){var G=D.Lang,C=G.isString,I=D.Selector,E=D.ClassNameManager.getClassName,B=D.ClassNameManager.getClassName("helper","hidden"),H=new RegExp(B);I._isNodeHidden=function(M){var L=M.offsetWidth;var A=M.offsetHeight;var O=M.nodeName.toLowerCase()=="tr";var K=M.className;var J=M.style;var N=false;if(!O){if(L==0&&A==0){N=true;}else{if(L>0&&A>0){N=false;}}}N=N||(J.display=="none"||J.visibility=="hidden")||H.test(K);return N;};var F=function(A){return function(J){return J.type==A;};};D.mix(I.pseudos,{button:function(A){return A.type==="button"||A.nodeName.toLowerCase()==="button";},checkbox:F("checkbox"),checked:function(A){return A.checked===true;},disabled:function(A){return A.disabled===true;},empty:function(A){return !A.firstChild;},enabled:function(A){return A.disabled===false&&A.type!=="hidden";},file:F("file"),header:function(A){return/h\d/i.test(A.nodeName);},hidden:function(A){return I._isNodeHidden(A);},image:F("image"),input:function(A){return/input|select|textarea|button/i.test(A.nodeName);},parent:function(A){return !!A.firstChild;},password:F("password"),radio:F("radio"),reset:F("reset"),selected:function(A){A.parentNode.selectedIndex;return A.selected===true;},submit:F("submit"),text:F("text"),visible:function(A){return !I._isNodeHidden(A);}});},"1.0.1",{skinnable:false,requires:["selector"]});