function Ii(a){this.Init(a)}m("AdfToolbarPanel",Ii);r.v(Ii);Ii.ga=function(){this.Y6a="tbr";this.X6a="tbrph"};m("AdfToolbarPanel.InitClass",Ii.ga);Ii.prototype.Init=function(a){Ii.h.Init.call(this);this.nb=a};r.a("AdfToolbarPanel.prototype.Init",{Init:Ii.prototype.Init});Ii.prototype.lH=function(a,b){var d=Ii.c5(a);d&&(b.appendChild(d),this.OMa=this.D(this.ejb),q.b.ba(d,"keydown",this.OMa))};r.a("AdfToolbarPanel.prototype.attach",{lH:Ii.prototype.lH});
Ii.prototype.detach=function(a){var b=document.getElementById(I.la(a.g(),Ii.X6a));b&&(a=Ii.c5(a),b.appendChild(a),q.b.xa(a,"keydown",this.OMa))};r.a("AdfToolbarPanel.prototype.detach",{detach:Ii.prototype.detach});Ii.prototype.PH=function(a,b){var d=this.nb.f(),e=a.na(),d=Ii.c5(d);e==w.tf&&d&&a.X()==b&&!a.U().shiftKey&&(e=J.Ee(d))&&(a.cancel(),J.va(e))};r.a("AdfToolbarPanel.prototype.handleKeyDown",{PH:Ii.prototype.PH});Ii.c5=function(a){a=a.g();return document.getElementById(I.la(a,Ii.Y6a))};
Ii.prototype.ejb=function(a){var b=this.nb,d=b.f(),e=q.b.na(a),f=Ii.c5(d);if(f)if(e==w.tf){if(e=J.Ee(f),f=J.tC(document.activeElement),a.shiftKey?e==document.activeElement:null==f||f==document.body)e=O.da(d,b.i()),a.shiftKey?J.va(e):(J.be(e),b.nd(d,e,!0)),q.b.Ea(a)}else e==w.ub&&(e=J.ym(f),document.activeElement==e&&q.b.Ea(a))};