async function translate_captions(Y,Q,g){const N=Y;return tracker['event']('translate_'+'captions'),tracker['event']('translate_'+'captions:\x20'+'from\x20'+Q+'\x20-\x20to\x20'+g),g_translate['load_capti'+'ons'](Y,Q,g),g_translate['segments_t'+'o_translat'+'e_text'](),await g_translate['translate_'+'text'](),N['segments']=g_translate['translated'+'_text_to_s'+'egments'](),N['words']=g_translate['fake_word_'+'level_accu'+'racy'](),N['text']=g_translate['get_transl'+'ated_text'](),N;}class CaptionsTranslate{['marker']='<t/>';['captions']=null;['original_t'+'ext']=null;['translated'+'_text']=null;['translated'+'_text_segm'+'ented']=null;['original_l'+'anguage']=null;['translate_'+'language']=null;['load_capti'+'ons'](Y,Q,g){this['captions']=Y,this['original_l'+'anguage']=Q,this['translate_'+'language']=g;}['segments_t'+'o_translat'+'e_text'](){let Y='';this['captions']['segments']['forEach'](Q=>{Y+=''+this['marker']+Q['text'];}),this['original_t'+'ext']=Y;}async['translate_'+'text'](){const Y={'OzYys':function(V,h){return V+h;},'oXRYT':function(V,h,L,C,c,m){return V(h,L,C,c,m);},'WLtGB':function(V,h){return V*h;},'GIrHp':function(V,h){return V*h;}},Q=Y['OzYys'](API_URL,'api/transl'+'ate/'),g={'license_key':apiKey_editai,'app_version':app_version,'text':this['original_t'+'ext'],'original_language':this['original_l'+'anguage'],'translate_language':this['translate_'+'language']},N=await Y['oXRYT'](retryFetch,Q,{'method':'POST','body':JSON['stringify'](g),'headers':{'Content-type':'applicatio'+'n/json;\x20ch'+'arset=UTF-'+'8'}},0x2657+-0x6d*0x11+0xa5d*-0x3,0x9*0x409+0x1355+-0x33be,Y['WLtGB'](Y['GIrHp'](-0x5a7*0x4+0xa*0x251+-0x8b,-0x21dd*-0x1+0x9a*0x11+-0x2bdb),0x1adf+-0x2*-0x997+0x2a25*-0x1));this['translated'+'_text']=N['data']['translated'+'_text'];}['translated'+'_text_to_s'+'egments'](){return this['translated'+'_text_segm'+'ented']=this['translated'+'_text']['split'](this['marker'])['filter'](Y=>!!Y)['map'](Y=>Y['trim']()),this['translated'+'_text_segm'+'ented']['forEach']((Y,Q)=>{this['captions']['segments'][Q]['text']=Y;}),this['captions']['segments'];}['fake_word_'+'level_accu'+'racy'](){const Y={'TIfMT':function(g,N){return g/N;},'HsrHU':function(g,N){return g-N;},'FgSxR':function(g,N){return g!=N;},'bcOJF':function(g,N){return g*N;},'QgFNP':function(g,N){return g+N;}};let Q=[];return this['captions']['segments']['forEach'](g=>{const N=[],V=g['start'],h=g['end'],L=g['text']['split'](''),C=Y['TIfMT'](Y['HsrHU'](h,V),L['length']);let c=null,m=null,M=null;for(let v=-0x5*0x49b+0x1a2*0x17+0x1*-0xe87;v<L['length'];v++){const T=L[v];T==='\x20'?(M=V+v*C,Y['FgSxR'](c,null)&&N['push']({'end':M,'probability':-(0x140f+0x1*0x188a+-0x4*0xb26),'start':m,'started_with_space':!![],'text':c,'word':c}),c=m=M=null):c===null?(c=T,m=V+Y['bcOJF'](v,C)):c+=T;}c!=null&&(M=Y['QgFNP'](V,Y['bcOJF'](L['length'],C)),N['push']({'end':M,'probability':-(-0x5f6+-0x1*-0x1e29+-0x1832),'start':m,'started_with_space':!![],'text':c,'word':c})),g['words']=N,Q['push'](...N);}),Q;}['get_transl'+'ated_text'](){return this['translated'+'_text'];}}g_translate=new CaptionsTranslate();