async function tts_update_tracks_list(){const K={'eGXUQ':function(Y,g){return Y(g);},'siNac':'#tts-audio'+'-track','HfNsf':function(Y,g){return Y(g);},'qLClL':function(Y,g){return Y>=g;},'MFwkk':function(Y,g){return Y-g;},'pBEOj':function(Y,g){return Y(g);}};K['eGXUQ']($,K['siNac'])['focus']();const n=parseInt(await K['eGXUQ'](jsxExecute,'app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));let M=parseInt(K['HfNsf']($,K['siNac'])['find'](':selected')['val']());(K['eGXUQ'](isNaN,M)||K['qLClL'](M,n))&&(M=K['MFwkk'](n,0x19*-0x3d+0x115f*-0x1+-0xb*-0x21f)),K['pBEOj']($,K['siNac'])['html'](Array['from']({'length':n},(Y,g)=>'<option\x20'+(g===M?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+g+'\x22>A'+(g+(0xb1b+0x1858+-0x2372))+'</option>')['join'](''));}async function create_tts_audio_track(){const K={'lHUuL':function(M,Y){return M(Y);},'eGpLC':'#tts-audio'+'-track','pXQhc':function(M,Y){return M-Y;}};let n=parseInt(await K['lHUuL'](jsxExecute,'app.projec'+'t.activeSe'+'quence.aud'+'ioTracks.l'+'ength'));return await jsxExecute('qe.project'+'.getActive'+'Sequence()'+'.addTracks'+'(0,\x200,\x201,\x20'+'1,\x20'+n+')'),n+=0x5f9+0x1084+-0x167c,$(K['eGpLC'])['html'](Array['from']({'length':n},(M,Y)=>'<option\x20'+(Y===n-(-0x42a+-0x1*0x245f+-0x288a*-0x1)?'selected=\x22'+'selected\x22':'')+'\x20value=\x22'+Y+'\x22>A'+(Y+(-0x24cc+-0x41c+0x28e9))+'</option>')['join']('')),K['pXQhc'](n,0x1080+0x1*-0xc25+0x2*-0x22d);}async function set_tts_audio_track_listeners(){const K={'EcaLR':function(n){return n();},'KuYcP':function(n,M){return n(M);},'Npgsq':'#tts-add-t'+'rack','RshDX':'click'};K['KuYcP']($,K['Npgsq'])['off']('click')['on'](K['RshDX'],async function(){await K['EcaLR'](create_tts_audio_track);});}function estimateAudioLength(K,n){const M={'vnVpk':function(P,w){return P/w;},'zILCk':function(P,w){return P/w;},'dKLAb':function(P,w){return P/w;},'IOyad':function(P,w){return P%w;},'uqUar':function(P,w){return P===w;}},Y=Math['round'](M['vnVpk'](M['zILCk'](K,0x211*0x11+0x1d8a+0x1*-0x3d8b)*(0xfb1+0x24d6+-0x344b),n)),g=Math['floor'](M['dKLAb'](Y,0x1*-0x188a+0x2490+-0xbca)),h=M['IOyad'](Y,-0x7cb+-0x1*-0x1a2c+-0x1225);return M['uqUar'](g,0xf79+-0x13e2+0x469)?h+'s':g+':'+String(h)['padStart'](-0x7cd*-0x1+0x2433+0x15ff*-0x2,'0')+'min';}function numberWithCommas(K){return K['toString']()['replace'](/\B(?=(\d{3})+(?!\d))/g,',');}function validateTTSInput(){const K={'atppk':function(g,h){return g(h);},'OapDU':'#tts-text-'+'input'},n=['@','#','$','%','^','*','(',')','_','+','=','{','}','[',']','|','\x5c',':',';','\x22','<','>','/','`','~'],M=K['atppk']($,K['OapDU'])['val'](),Y=[];return n['forEach'](g=>{M['includes'](g)&&Y['push'](g);}),Y;}