function be(a,b){B.assert(window.console&&window.console.log,"Safari console logger not installed");be.EY||(be.EY=B.ef,B.ef=be.W8);this.Init(a,b)}v("AdfSafariLogWriter",be);z.l(be,sa);be.prototype.Init=function(a,b){be.f.Init.call(this,a,b);this.Rm=b};z.a("AdfSafariLogWriter.prototype.Init",{Init:be.prototype.Init});
be.prototype.Yc=function(a){this.ng();B.assert(a,"null logRecord");try{var b=a[Bc.Mv],d=window.console,e=a[Bc.ht],f=e>=D.SEVERE?d.error:e>=D.WARNING?d.warn:e>=D.INFO?d.info:d.debug,g=a[Bc.$v],h=this.Pv(a[Bc.mw]);b?f.call(d,"Message:"+g+"\nError:"+b+"\nWhen: "+h):f.call(d,"Message:"+g+"\nWhen:"+h)}catch(m){this.bH(m,"Error publishing AdfLogRecord")}};z.a("AdfSafariLogWriter.prototype.PublishImpl",{Yc:be.prototype.Yc});be.prototype.bH=function(a,b){B.J(a,Error);this.Rm.jg(new Bc(D.WARNING,b,a))};
be.prototype.flush=function(){be.f.flush.call(this)};z.a("AdfSafariLogWriter.prototype.flush",{flush:be.prototype.flush});be.prototype.close=function(){be.f.close.call(this)};z.a("AdfSafariLogWriter.prototype.close",{close:be.prototype.close});
be.W8=function(a,b,d){try{var e=window.console;if(e&&e.group&&e.groupEnd&&e.trace){var f=a,f=f==n?"":f+" ",g="Assertion %sfailed ",f=[n,f];d!=n&&(g+=" because %s ",f[2]=d);f[0]=g+"at:";e.group.apply(e,f);e.trace();e.groupEnd()}}catch(h){}return be.EY(a,b+1,d)};