let g_wiggle_animation_running=![];function applyWiggleAnimationToPreview(N,l){const L={'gDwJm':function(P,t){return P(t);},'WfQRZ':function(P,t){return P/t;},'xQQMR':'captions-c'+'anvas-wigg'+'le-contain'+'er-canvas','MdztX':function(P,t){return P!==t;},'KBdWL':function(P,t){return P!==t;},'ylhnr':'Wiggle\x20can'+'vas\x20dimens'+'ions\x20chang'+'ed\x20from','OpYCE':function(P,t){return P>t;},'zHKxV':'Wiggle\x20buf'+'fer\x20canvas'+'\x20not\x20ready'+',\x20skipping'+'\x20frame'};if(!L['gDwJm']($,'#checkbox-'+'captions-g'+'raphics-wi'+'ggle')['is'](':checked')){g_wiggle_animation_running=![];return;}const {dx:y,dy:p}=g_captions_styled['wiggleOffs'+'et'](L['WfQRZ'](l,0x1*-0x15ea+0x183f+0x193)),M=document['getElement'+'ById'](L['xQQMR']);(L['MdztX'](M['width'],window['g_wiggle_o'+'riginal_wi'+'dth'])||L['KBdWL'](M['height'],window['g_wiggle_o'+'riginal_he'+'ight']))&&(console['log'](L['ylhnr'],M['width'],'x',M['height'],'to',window['g_wiggle_o'+'riginal_wi'+'dth'],'x',window['g_wiggle_o'+'riginal_he'+'ight']),M['width']=window['g_wiggle_o'+'riginal_wi'+'dth'],M['height']=window['g_wiggle_o'+'riginal_he'+'ight']);const O=M['getContext']('2d');O['clearRect'](0xb*0x277+-0x4b1*-0x1+-0x1fce,0x2354+-0x36*-0x37+-0x2eee,M['width'],M['height']);if(window['g_wiggle_b'+'uffer_canv'+'as']&&g_wiggle_buffer_canvas['width']>0x1e65+-0xd0b+-0x8ad*0x2&&L['OpYCE'](g_wiggle_buffer_canvas['height'],0x7df+0x8*0x1ae+0x1*-0x154f))O['drawImage'](g_wiggle_buffer_canvas,y,p);else{console['warn'](L['zHKxV']),g_wiggle_animation_running=![];return;}L['gDwJm'](requestAnimationFrame,P=>applyWiggleAnimationToPreview(N,P));}async function startWiggleAnimation(){const N={'NKARd':'#checkbox-'+'captions-g'+'raphics-wi'+'ggle','lbvVF':':checked','Svabs':'captions-c'+'anvas-cont'+'ainer-canv'+'as','sWGsw':'captions-c'+'anvas-wigg'+'le-contain'+'er-canvas','gaRwo':'Wiggle\x20can'+'vas\x20initia'+'lized\x20with'+'\x20dimension'+'s:','mBDmP':function(R){return R();},'rSEsy':'canvas','KKfPR':'Creating\x20w'+'iggle\x20buff'+'er\x20canvas:','fKCZL':function(R,Q,H,a,c,Y){return R(Q,H,a,c,Y);},'IAXdS':'all','UYxwO':'Wiggle\x20buf'+'fer\x20render'+'\x20result:','sLxLx':'Wiggle\x20buf'+'fer\x20has\x20co'+'ntent:','VAjpt':function(R,Q,H){return R(Q,H);}};if(!$(N['NKARd'])['is'](N['lbvVF'])||g_wiggle_animation_running)return;g_wiggle_animation_running=!![];const l=await jsxProject['sequenceWi'+'dth'](),L=document['getElement'+'ById'](N['Svabs']),y=document['getElement'+'ById'](N['sWGsw']);y['width']=L['width'],y['height']=L['height'],window['g_wiggle_o'+'riginal_wi'+'dth']=y['width'],window['g_wiggle_o'+'riginal_he'+'ight']=y['height'],console['log'](N['gaRwo'],y['width'],'x',y['height']);const p=N['mBDmP'](test_76_get_caption_render_params);window['g_wiggle_b'+'uffer_canv'+'as']=document['createElem'+'ent'](N['rSEsy']),g_wiggle_buffer_canvas['width']=y['width'],g_wiggle_buffer_canvas['height']=y['height'],console['log'](N['KKfPR'],g_wiggle_buffer_canvas['width'],'x',g_wiggle_buffer_canvas['height']);const M=N['fKCZL'](test_74_render_captions_by_index,g_wiggle_buffer_canvas,-0x29a+0xf45*0x1+-0xcab,-0xe21+0x1*0xf58+-0x137,p,N['IAXdS']);console['log'](N['UYxwO'],M);const O=g_wiggle_buffer_canvas['getContext']('2d'),P=O['getImageDa'+'ta'](0x1888+0x1*0x709+0x1f91*-0x1,-0x56*-0x21+0x746+-0x125c,g_wiggle_buffer_canvas['width'],g_wiggle_buffer_canvas['height']),t=P['data']['some'](R=>R!==0xd3*-0xc+0x4*-0x173+0x7d8*0x2);console['log'](N['sLxLx'],t),N['VAjpt'](applyWiggleAnimationToPreview,l,performance['now']());}function updateWiggleBuffer(){const N={'DvEhR':'Updating\x20w'+'iggle\x20buff'+'er\x20due\x20to\x20'+'position\x20c'+'hange','guxjY':function(y){return y();},'onaeC':function(y,p,M,O,P,t){return y(p,M,O,P,t);},'weDYo':'all'};if(!g_wiggle_animation_running||!window['g_wiggle_b'+'uffer_canv'+'as'])return;console['log'](N['DvEhR']);const l=N['guxjY'](test_76_get_caption_render_params),L=g_wiggle_buffer_canvas['getContext']('2d');L['clearRect'](-0x115*0x1+0x27*-0x88+-0x15cd*-0x1,-0x2337+-0x1*-0x1efb+0x43c,g_wiggle_buffer_canvas['width'],g_wiggle_buffer_canvas['height']),N['onaeC'](test_74_render_captions_by_index,g_wiggle_buffer_canvas,-0x24*-0xb+-0x1084+0xef8,0x48c+0x5*-0x3a4+0xda8,l,N['weDYo']);}