YUI.add("base-build",function(p,t){var u,n=p.BaseCore,y=p.Base,o=p.Lang,A="initializer",C="destructor",e=["_PLUG","_UNPLUG"];function i(t,e,r){r[t]&&(e[t]=(e[t]||[]).concat(r[t]))}function r(t,e,r){r._ATTR_CFG&&(e._ATTR_CFG_HASH=null,i.apply(null,arguments))}function s(t,e,r){n.modifyAttrs(e,r.ATTRS)}y._build=function(t,e,r,n,i,u){for(var s,a,c,o,l=y._build,g=l._ctor(e,u),_=l._cfg(e,u,r),f=l._mixCust,u=g._yuibuild.dynamic,m=0,d=r.length;m<d;m++)c=(a=(s=r[m]).prototype)[A],o=a[C],delete a[A],delete a[C],p.mix(g,s,!0,null,1),f(g,s,_),c&&(a[A]=c),o&&(a[C]=o),g._yuibuild.exts.push(s);return n&&p.mix(g.prototype,n,!0),i&&(p.mix(g,l._clean(i,_),!0),f(g,i,_)),g.prototype.hasImpl=l._impl,u&&(g.NAME=t,(g.prototype.constructor=g).modifyAttrs=e.modifyAttrs),g},u=y._build,p.mix(u,{_mixCust:function(t,e,r){var n,i,u,s,a,c;if(r&&(n=r.aggregates,i=r.custom,u=r.statics),u&&p.mix(t,e,!0,u),n)for(c=0,a=n.length;c<a;c++)s=n[c],!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&(t[s]=o.isArray(e[s])?[]:{}),p.aggregate(t,e,!0,[s]);if(i)for(c in i)i.hasOwnProperty(c)&&i[c](c,t,e)},_tmpl:function(t){function e(){e.superclass.constructor.apply(this,arguments)}return p.extend(e,t),e},_impl:function(t){for(var e,r,n,i,u=this._getClasses(),s=0,a=u.length;s<a;s++)if((e=u[s])._yuibuild)for(n=(r=e._yuibuild.exts).length,i=0;i<n;i++)if(r[i]===t)return!0;return!1},_ctor:function(t,e){var e=!e||!1!==e.dynamic,t=e?u._tmpl(t):t,r=t._yuibuild;return(r=r||(t._yuibuild={})).id=r.id||null,r.exts=r.exts||[],r.dynamic=e,t},_cfg:function(t,e,r){for(var n,i,u,s=[],a={},c=[],o=e&&e.aggregates,l=e&&e.custom,g=e&&e.statics,_=t;_&&_.prototype;)(n=_._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics)&&(c=c.concat(n.statics)),_=_.superclass?_.superclass.constructor:null;if(r)for(i=0,u=r.length;i<u;i++)(n=(_=r[i])._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics)&&(c=c.concat(n.statics));return o&&(s=s.concat(o)),l&&p.mix(a,e.cfgBuild,!0),{aggregates:s,custom:a,statics:c=g?c.concat(g):c}},_clean:function(t,e){var r,n,i,u=p.merge(t),s=e.aggregates;for(r in e.custom)u.hasOwnProperty(r)&&delete u[r];for(n=0,i=s.length;n<i;n++)r=s[n],u.hasOwnProperty(r)&&delete u[r];return u}}),y.build=function(t,e,r,n){return u(t,e,r,null,null,n)},y.create=function(t,e,r,n,i){return u(t,e,r,n,i)},y.mix=function(t,e){return t._CACHED_CLASS_DATA&&(t._CACHED_CLASS_DATA=null),u(null,t,e,null,null,{dynamic:!1})},n._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}},y._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}}},"patched-v3.18.7",{requires:["base-base"]});