var WORKER_ENABLED=!!(window.URL&&window.Blob&&window.Worker);function __GET_FUNC_BODY__(A){return A.trim().match(/^function\s*\w*\s*\([\w\s,]*\)\s*{([\w\W]*?)}$/)[1]}function __GLUE_EXEC__(C){var A="function"==typeof importScripts,B="__CODE_BRIDGE__"+ +new Date;(A?self:window)[B]={onHeader:function(A){C.postMessage({type:"header",data:A})},onMediaInfo:function(A){C.postMessage({type:"mediaInfo",data:A})},onAudioDataSize:function(A){C.audioBufferSize=A.size,C.audioBuffer=C._malloc(C.audioBufferSize),C._codecSetAudioBuffer(C.audioBuffer)},onAudioData:function(A){var I=A.timestamp;C.audioTimestamps.push(I);var B=C.HEAPU8.subarray(C.audioBuffer,C.audioBuffer+C.audioBufferSize),g=new Uint8Array(B);C._free(C.audioBuffer),C.audioBuffer=null,C.postMessage({type:"audio",data:{buffer:g.buffer,timestamp:I}},[g.buffer])},onVideoDataSize:function(A){null==C.videoBuffer&&(C.videoBufferSize=A.size,C.videoBuffer=C._malloc(C.videoBufferSize)),C._codecSetVideoBuffer(C.videoBuffer)},onVideoData:function(A){var I=A.timestamp;C.videoTimestamps.push(I);var B=C.HEAPU8.subarray(C.videoBuffer,C.videoBuffer+C.videoBufferSize),g=new Uint8Array(B);C.postMessage({type:"video",data:{buffer:g.buffer,timestamp:I,width:A.width,height:A.height,stride0:A.stride0,stride1:A.stride1}},[g.buffer])},onComplete:function(){C.postMessage({type:"complete"})}};var I={audioTimestamps:[],videoTimestamps:[],audioBufferSize:0,videoBufferSize:0,audioBuffer:null,videoBuffer:null,postMessage:A?postMessage.bind(self):function(){},onRuntimeInitialized:function(){C._codecInit();var A=B.split("");A=A.map(function(A){return A.charCodeAt(0)}).concat(0);var I=C._malloc(A.length-1);C.HEAPU8.set(A,I),C._codecSetBridgeName(I),C.postMessage({type:"ready"})}};for(var g in C=C||{},I)I.hasOwnProperty(g)&&(C[g]=I[g]);C.onmessage=function(A){switch((B=A.data).type){case"decode":var I=new Uint8Array(B.buffer),B=C._malloc(I.length);C.HEAPU8.set(I,B);var g=+new Date;C.audioTimestamps=[],C.videoTimestamps=[],C._codecDecode(B,I.length);var Q=C.audioTimestamps,E=C.videoTimestamps;C.postMessage({type:"decode",data:{consume:+new Date-g,duration:Math.max(0>2];return(A=I+A+15&-16)>yA()&&CI("failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly"),n[f>>2]=A,I}function S(A){(U=U||{})[A]||(U[A]=1,w(A))}B=null,Object.getOwnPropertyDescriptor(C,"arguments")||Object.defineProperty(C,"arguments",{get:function(){CI("Module.arguments has been replaced with plain arguments_")}}),C.thisProgram&&(D=C.thisProgram),Object.getOwnPropertyDescriptor(C,"thisProgram")||Object.defineProperty(C,"thisProgram",{get:function(){CI("Module.thisProgram has been replaced with plain thisProgram")}}),Object.getOwnPropertyDescriptor(C,"quit")||Object.defineProperty(C,"quit",{get:function(){CI("Module.quit has been replaced with plain quit_")}}),L(void 0===C.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),L(void 0===C.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),L(void 0===C.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),L(void 0===C.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),L(void 0===C.read,"Module.read option was removed (modify read_ in JS)"),L(void 0===C.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),L(void 0===C.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),L(void 0===C.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),Object.getOwnPropertyDescriptor(C,"read")||Object.defineProperty(C,"read",{get:function(){CI("Module.read has been replaced with plain read_")}}),Object.getOwnPropertyDescriptor(C,"readAsync")||Object.defineProperty(C,"readAsync",{get:function(){CI("Module.readAsync has been replaced with plain readAsync")}}),Object.getOwnPropertyDescriptor(C,"readBinary")||Object.defineProperty(C,"readBinary",{get:function(){CI("Module.readBinary has been replaced with plain readBinary")}}),XA=qA=function(){CI("cannot use the stack before compiled code is ready to run, and has provided stack access")};var U,y,s={"f64-rem":function(A,I){return A%I},debugger:function(){}},a=0;C.wasmBinary&&(y=C.wasmBinary),Object.getOwnPropertyDescriptor(C,"wasmBinary")||Object.defineProperty(C,"wasmBinary",{get:function(){CI("Module.wasmBinary has been replaced with plain wasmBinary")}}),Object.getOwnPropertyDescriptor(C,"noExitRuntime")||Object.defineProperty(C,"noExitRuntime",{get:function(){CI("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!=typeof WebAssembly&&CI("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var h,G=!1;function L(A,I){A||CI("Assertion failed: "+I)}var t="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function c(A,I,B){var g=I+B;for(B=I;A[B]&&!(g<=B);)++B;if(16>10,56320|1023&Q))}}else g+=String.fromCharCode(Q)}return g}function M(A){return A?c(H,A,void 0):""}function J(A,I,B,g){if(0>6}else{if(E<=65535){if(g<=B+2)break;I[B++]=224|E>>12}else{if(g<=B+3)break;2097152<=E&&S("Invalid Unicode code point 0x"+E.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),I[B++]=240|E>>18,I[B++]=128|E>>12&63}I[B++]=128|E>>6&63}I[B++]=128|63&E}}I[B]=0}}function N(A){for(var I=0,B=0;B>2]=5273760,n[0]=1668509029,e[1]=25459,115!==H[2]||99!==H[3])throw"Runtime error: expected the system to be little-endian!";function X(A,I){CI("Invalid function pointer "+A+" called with signature '"+I+"'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this). Build with ASSERTIONS=2 for more info.")}function x(A){for(;0>2],I.Gb.push(A),a=g[Q],0|A;return A=n[A>>2],a=B,0|A}function DA(A){return C.___errno_location?n[C.___errno_location()>>2]=A:w("failed to set errno from JS"),A}C.___cxa_find_matching_catch=oA;var FA=[null,[],[]];function wA(A,I){var B=FA[A];L(B),0===I||10===I?((1===A?E:w)(c(B,0)),B.length=0):B.push(I)}var RA=0;function SA(){return n[(RA+=4)-4>>2]}var UA={};function yA(){return Y.length}function sA(){return sA.ub||(sA.ub=[]),sA.ub.push(XA()),sA.ub.length-1}function aA(A){CI("Cannot enlarge memory arrays to size "+A+" bytes (OOM). Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+Y.length+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}function hA(A){return 0==A%4&&(0!=A%100||0==A%400)}function GA(A,I){for(var B=0,g=0;g<=I;B+=A[g++]);return B}var LA=[31,29,31,30,31,30,31,31,30,31,30,31],tA=[31,28,31,30,31,30,31,31,30,31,30,31];function cA(A,I){for(A=new Date(A.getTime());0g-A.getDate())){A.setDate(A.getDate()+I);break}I-=g-A.getDate()+1,A.setDate(1),B<11?A.setMonth(B+1):(A.setMonth(0),A.setFullYear(A.getFullYear()+1))}return A}function MA(A,I,B,g){function Q(A,I,B){for(A="number"==typeof A?A.toString():A||"";A.length>2];for(var F in g={Qb:n[g>>2],Pb:n[g+4>>2],Bb:n[g+8>>2],wb:n[g+12>>2],vb:n[g+16>>2],tb:n[g+20>>2],Cb:n[g+24>>2],Db:n[g+28>>2],fc:n[g+32>>2],Ob:n[g+36>>2],Rb:D?M(D):""},B=M(B),D={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})B=B.replace(new RegExp(F,"g"),D[F]);var w="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),R="January February March April May June July August September October November December".split(" ");for(F in D={"%a":function(A){return w[A.Cb].substring(0,3)},"%A":function(A){return w[A.Cb]},"%b":function(A){return R[A.vb].substring(0,3)},"%B":function(A){return R[A.vb]},"%C":function(A){return E((A.tb+1900)/100|0,2)},"%d":function(A){return E(A.wb,2)},"%e":function(A){return Q(A.wb,2," ")},"%g":function(A){return o(A).toString().substring(2)},"%G":function(A){return o(A)},"%H":function(A){return E(A.Bb,2)},"%I":function(A){return 0==(A=A.Bb)?A=12:12I?0:(function(A,I){L(0<=A.length,"writeArrayToMemory array must have a length (should be an array or typed array)"),Y.set(A,I)}(F,A),F.length-1)}j.push(function(){var A=C._fflush;A&&A(0),FA[1].length&&wA(1,10),FA[2].length&&wA(2,10)});var JA="function"==typeof atob?atob:function(A){var I="",B=0;A=A.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(A.charAt(B++)),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(A.charAt(B++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(A.charAt(B++)),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(A.charAt(B++));g=g<<2|Q>>4,Q=(15&Q)<<4|E>>2;var i=(3&E)<<6|C;I+=String.fromCharCode(g),64!==E&&(I+=String.fromCharCode(Q)),64!==C&&(I+=String.fromCharCode(i))}while(B>2],g=n[B>>2];else A.ub=!0,BA.USER=BA.LOGNAME="web_user",BA.PATH="/",BA.PWD="/",BA.HOME="/home/web_user",BA.LANG=("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",BA._=D,g=V?fA(1024):R(1024),B=V?fA(256):R(256),n[B>>2]=g,n[I>>2]=B;I=[];var Q,E=0;for(Q in BA)if("string"==typeof BA[Q]){var C=Q+"="+BA[Q];I.push(C),E+=C.length}if(1024>0]=E.charCodeAt(o);Y[i>>0]=0,n[B+4*Q>>2]=g,g+=C.length+1}n[B+4*I.length>>2]=0},p:function(A){return fA(A)},r:function(){return function(A,I){j.unshift({Jb:A,yb:I})}.apply(null,arguments)},x:function(A){var I=gA[A];return I&&!I.Hb&&(I.Hb=!0,YA.Fb--),I&&(I.Ab=!1),QA.push(A),(I=EA(A))&&gA[I].zb++,A},A:function(){dA(0);var A=QA.pop();if(A){if(A=EA(A)){var I=gA[A];L(0>2],C=n[g+(8*I+4)>>2],i=0;i