YUI.add("event-focus",function(v,t){var e,n,s=v.Event,o=v.Lang.isString,y=v.Array.indexOf,u=(e=!1,(n=v.config.doc)&&((n=n.createElement("p")).setAttribute("onbeforeactivate",";"),e=n.onbeforeactivate!==undefined),e);function a(a,r,f){var b="_"+a+"Notifiers";v.Event.define(a,{_useActivate:u,_attach:function(t,e,n){return v.DOM.isWindow(t)?s._attach([a,function(t){e.fire(t)},t]):s._attach([r,this._proxy,t,this,e,n],{capture:!0})},_proxy:function(t,e,n){var a=t.target,r=t.currentTarget,o=a.getData(b),c=v.stamp(r._node),i=u||a!==r;e.currentTarget=n?a:r,e.container=n?r:null,o?i=!0:(a.setData(b,o={}),i&&(s._attach([f,this._notify,a._node]).sub.once=!0)),o[c]||(o[c]=[]),o[c].push(e),i||this._notify(t)},_notify:function(t,e){var n,a,r,o,c,i,f,s,u,d=t.currentTarget,h=d.getData(b),l=d.ancestors(),p=d.get("ownerDocument"),g=[],_=h?v.Object.keys(h).length:0;for(d.clearData(b),l.push(d),p&&l.unshift(p),l._nodes.reverse(),_&&(d=_,l.some(function(t){var e,n,t=v.stamp(t),a=h[t];if(a)for(_--,e=0,n=a.length;e<n;++e)a[e].handle.sub.filter&&g.push(a[e]);return!_}),_=d);_&&(n=l.shift());){if(o=v.stamp(n),a=h[o]){for(i=0,f=a.length;i<f&&(s=(r=a[i]).handle.sub,c=!0,t.currentTarget=n,s.filter&&(c=s.filter.apply(n,[n,t].concat(s.args||[])),g.splice(y(g,r),1)),c&&(t.container=r.container,u=r.fire(t)),!1!==u&&2!==t.stopped);++i);delete a[o],_--}if(2!==t.stopped)for(i=0,f=g.length;i<f&&((s=(r=g[i]).handle.sub).filter.apply(n,[n,t].concat(s.args||[]))&&(t.container=r.container,t.currentTarget=n,u=r.fire(t)),!(!1===u||2===t.stopped||t.stopped&&g[i+1]&&g[i+1].container!==r.container));++i);if(t.stopped)break}},on:function(t,e,n){e.handle=this._attach(t._node,n)},detach:function(t,e){e.handle.detach()},delegate:function(e,t,n,a){o(a)&&(t.filter=function(t){return v.Selector.test(t._node,a,e===t?null:e._node)}),t.handle=this._attach(e._node,n,!0)},detachDelegate:function(t,e){e.handle.detach()}},!0)}u?(a("focus","beforeactivate","focusin"),a("blur","beforedeactivate","focusout")):(a("focus","focus","focus"),a("blur","blur","blur"))},"patched-v3.18.7",{requires:["event-synthetic"]});