function vah(a){this.a=a}
function aah(a,b){this.a=a;this.b=b}
function cah(a,b){this.a=a;this.b=b}
function eah(a,b){this.a=a;this.b=b}
function W9g(a,b){this.a=a;this.b=b}
function Y9g(a,b,d){this.a=a;this.b=b;this.c=d}
function $9g(a,b,d){this.a=a;this.b=b;this.c=d}
function fuk(a){pah((this.a.A,this.b),false)}
function oah(a){R9g(a.c,_6j);R9g(a.c,b7j);R9g(a.c,d7j)}
function $gh(a){var b;if(!a.d){b=new tah;a.d=b}return a.d}
function T9g(a,b,d,e){vGd.call(this,a,b,d);this.b=e;this.a=new g1i(k3b)}
function mah(a,b){JPd(b,_6j)&&S9g(a.c,b);JPd(b,b7j)&&S9g(a.c,b);JPd(b,d7j)&&S9g(a.c,b)}
function lah(a,b){JPd(b,_6j)&&Q9g(a.c,b,a7j,true);JPd(b,b7j)&&Q9g(a.c,b,c7j,true);JPd(b,d7j)&&O9g(a.c,b,MAj,null)}
function rah(a,b){b||(EYd(),Vee(Lfe(Pce(CYd.a)),new xee('Removal of Logger '+a+e7j,(Nee(),Lee))))}
function qah(a,b){b||(EYd(),Vee(Lfe(Pce(CYd.a)),new xee('Addition of Logger '+a+e7j,(Nee(),Lee))))}
function pah(a,b){b||(EYd(),Vee(Lfe(Pce(CYd.a)),new xee('Addition Logging handler '+a+e7j,(Nee(),Lee))))}
function tah(){this.a=new Mjd('Enable Audit Logging');this.b=new Mjd('Enable Command Logging');this.d=new Mjd('Enable Trace Logging')}
function R9g(a,b){var d,e;d=eff();B8i(f8i(d),BIj,NFj);B8i(f8i(d),zUj,b);e=new P8i;A8i(r8i(e,kHj),e0j);F8i(r8i(e,mHj),d);noj(new Gnj(e),new W9g(a,b))}
function S9g(a,b){var d,e;d=eff();B8i(f8i(d),BIj,NFj);B8i(f8i(d),zUj,b);e=new P8i;A8i(r8i(e,kHj),g1j);F8i(r8i(e,mHj),d);noj(new Gnj(e),new eah(a,b))}
function P9g(a,b,d){var e,g;e=eff();B8i(f8i(e),BIj,NFj);B8i(f8i(e),zUj,b);g=new P8i;A8i(r8i(g,kHj),e0j);F8i(r8i(g,mHj),e);noj(new Gnj(g),new $9g(a,d,b))}
function Q9g(a,b,d,e){var g,i;g=eff();B8i(f8i(g),BIj,NFj);e?(B8i(f8i(g),ZIj,d),g):(B8i(f8i(g),xVj,d),g);i=new P8i;A8i(r8i(i,kHj),e0j);F8i(r8i(i,mHj),g);noj(new Gnj(i),new Y9g(a,b,e))}
function O9g(a,b,d,e){var g,i;g=eff();B8i(f8i(g),BIj,NFj);B8i(f8i(g),zUj,b);i=new P8i;A8i(r8i(i,kHj),e1j);F8i(r8i(i,mHj),g);F8i(r8i(i,SIj),A8i(new P8i,d));e!=null&&m8i(r8i(i,PIj),A8i(new P8i,e));noj(new Gnj(i),new cah(a,b))}
function Zgh(a){var b;if(!a.c){b=new T9g(FFd(Cce(a.a)),$gh(a),Ygh(a),(Roj(iee(a.a)),U1i(gee(a.a)),IMg(wde(a.a))));RFd((Dce(a.a),b),OGd(Dce(a.a)));a.c=b}return a.c}
function V9g(a,b){var d,e;e=hoj(b);if(e.b.iN(HHj)&&r8i(e,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(e,HHj).b.cf(),IHj)){if(r8i(e,tHj).b.b!=(Kmj(),Jmj)){d=Y0i(a.a.a,r8i(e,tHj));sah(a.a.A,a.b,d)}}else{sah(a.a.A,a.b,null)}}
function sah(a,b,d){JPd(_6j,b)&&(!!d&&JPd(d.NA(),NAj)?Jjd(a.a,(FNd(),ENd)):Jjd(a.a,(FNd(),DNd)));JPd(b7j,b)&&(!!d&&JPd(d.NA(),NAj)?Jjd(a.b,(FNd(),ENd)):Jjd(a.b,(FNd(),DNd)));JPd(d7j,b)&&(!!d&&JPd(d.NA(),MAj)?Jjd(a.d,(FNd(),ENd)):Jjd(a.d,(FNd(),DNd)))}
function nah(a,b,d,e){if(e){JPd(b,_6j)&&O9g(a.c,b,NAj,a7j);JPd(b,b7j)&&O9g(a.c,b,NAj,c7j)}else{if(d){JPd(b,_6j)&&Q9g(a.c,b,a7j,false);JPd(b,b7j)&&Q9g(a.c,b,c7j,false)}else{if(JPd(b,_6j)){N9g(a.c,a7j,'teiid-audit.log');O9g(a.c,b,NAj,a7j)}if(JPd(b,b7j)){N9g(a.c,c7j,'teiid-command.log');O9g(a.c,b,NAj,c7j)}}}}
function N9g(a,b,d){var e,g,i;e=eff();B8i(f8i(e),BIj,NFj);B8i(f8i(e),xVj,b);i=new P8i;A8i(r8i(i,kHj),e1j);F8i(r8i(i,mHj),e);F8i(r8i(i,aSj),A8i(new P8i,DBj));F8i(r8i(i,hLj),A8i(new P8i,DBj));F8i(r8i(i,SIj),A8i(new P8i,NAj));F8i(r8i(i,vVj),A8i(new P8i,'.yyyy-MM-dd'));F8i(r8i(i,$Kj),A8i(new P8i,'%d{HH:mm:ss,SSS} %-5p [%c] (%t) %X{teiid-session} %s%E%n'));g=new P8i;F8i(r8i(g,MGj),A8i(new P8i,d));F8i(r8i(g,wNj),A8i(new P8i,$Rj));F8i(r8i(i,__j),g);noj(new Gnj(i),new aah(a,b))}
var e7j=' failed',a7j='TEIID_AUDIT_LOG',c7j='TEIID_COMMAND_LOG',d7j='org.teiid',_6j='org.teiid.AUDIT_LOG',b7j='org.teiid.COMMAND_LOG';I3c(4502,1008,izj,T9g);_.Si=function(){this.A.c=this};_.Xi=function(){oah(this.A)};_._i=function(){Ovf(this.b,this)};I3c(4503,1295,{},W9g);_.td=function(a){sah(this.a.A,this.b,null)};_.fh=function(a){V9g(this,a)};I3c(4504,1295,{},Y9g);_.td=function(a){nah(this.a.A,this.b,this.c,false)};_.fh=function(a){var b;b=hoj(a);b.b.iN(HHj)&&r8i(b,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(b,HHj).b.cf(),IHj)&&nah(this.a.A,this.b,this.c,true)};_.c=false;I3c(4505,1295,{},$9g);_.td=function(a){this.b&&lah(this.a.A,this.c)};_.fh=function(a){var b;b=hoj(a);b.b.iN(HHj)&&r8i(b,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(b,HHj).b.cf(),IHj)?r8i(b,tHj).b.b!=(Kmj(),Jmj)&&(this.b||mah(this.a.A,this.c)):this.b&&lah(this.a.A,this.c)};_.b=false;I3c(4506,1295,{},aah);_.td=fuk;_.fh=function(a){var b;b=hoj(a);pah((this.a.A,this.b),b.b.iN(HHj)&&r8i(b,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(b,HHj).b.cf(),IHj))};I3c(4507,1295,{},cah);_.td=fuk;_.fh=function(a){var b;b=hoj(a);qah((this.a.A,this.b),b.b.iN(HHj)&&r8i(b,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(b,HHj).b.cf(),IHj))};I3c(4508,1295,{},eah);_.td=function(a){KYd('Failed to remove logger '+this.b,a._b())};_.fh=function(a){var b;b=hoj(a);rah((this.a.A,this.b),b.b.iN(HHj)&&r8i(b,HHj).b.b!=(Kmj(),Jmj)&&JPd(r8i(b,HHj).b.cf(),IHj))};I3c(4511,1412,hzj,tah);_.Ch=function(){var a,b,d,e;a=LCe(OCe(PCe(SCe(new UCe,'Audit Logging'),'Audit/Command Logging'),'Turn On/Off Audit/Command Logging. By default file handler(s) will be added. Alternatively, add TEIID_COMMAND_LOG/TEIID_AUDIT_LOG handlers to override the default handlers'),'Audit/Command Logging for Teiid Subsystem',(b=new sjd('Select Logging Type'),d=new Zvh(f7j,new vah(this)),e=new Zwd,Wwd(e,this.a),Wwd(e,this.b),Wwd(e,this.d),Wwd(e,d),yjd(e,this.a,(mod(),jod)),yjd(e,this.b,jod),yjd(e,this.d,jod),fs(b.ab,e),(jgd(),b.gb).style[kDj]=g7j,Fz(b.gb,OBj,h7j),b));return MCe(a)};I3c(4512,1,wyj,vah);_.me=function(a){P9g(this.a.c,_6j,Fjd(this.a.a).a);P9g(this.a.c,b7j,Fjd(this.a.b).a);P9g(this.a.c,d7j,Fjd(this.a.d).a)};I3c(4584,1,Qzj);_.ud=function(){nHd(this.b,Zgh(this.a.a))};var X1b=lOd(4502),P1b=lOd(4503),Q1b=lOd(4504),R1b=lOd(4505),S1b=lOd(4506),T1b=lOd(4507),U1b=lOd(4508),Z1b=lOd(4511),Y1b=lOd(4512);CAj(mp)(16);