function fe(){this.Init()}v("AdfSafariTouchContextMenuManager",fe);z.l(fe,va);fe.Voa=500;fe.prototype.Init=function(){fe.f.Init.call(this)};z.a("AdfSafariTouchContextMenuManager.prototype.Init",{Init:fe.prototype.Init});fe.prototype.Bb=function(){var a=this.af;a&&(F.c.ac(a),delete this.af);delete this.Cr;delete this.kN};z.a("AdfSafariTouchContextMenuManager.prototype.dispose",{Bb:fe.prototype.Bb});
fe.prototype.Rr=function(a){var b;switch(a.getType()){case ma.sj:var d=F.c;this.af&&(d.ac(this.af),delete this.af,this.Cr=p);if(1==a.Gp()){var e=d.fg();this.kN=this.Cr=p;e&&e.j8()?this.af=d.oa(this,this.PYa,n,fe.Voa):this.af=d.oa(this,this.OYa,a,fe.Voa)}break;case ma.iw:case I.Qd:case I.Ve:if(a=this.af)F.c.ac(a),delete this.af;this.Cr=this.kN=p;break;case ma.hw:d=this.Cr;e=this.kN;this.Cr=this.kN=p;this.af?(F.c.ac(this.af),delete this.af):d&&(e=(b=ma.Rr(a))?l:p);e&&a.cancel();break;default:b=n}return b};
z.a("AdfSafariTouchContextMenuManager.prototype.deriveContextMenuEvent",{Rr:fe.prototype.Rr});fe.prototype.PYa=function(){this.Cr=l;delete this.af};fe.prototype.OYa=function(a){this.Cr=p;delete this.af;if(a=ma.Rr(a))this.kN=l,a.getSource().Fg(a)};