var OGVDecoderVideoVP8W = (function() { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; return ( function(OGVDecoderVideoVP8W) { OGVDecoderVideoVP8W = OGVDecoderVideoVP8W || {}; var a;a||(a=typeof OGVDecoderVideoVP8W !== 'undefined' ? OGVDecoderVideoVP8W : {});var m=a;a.memoryLimit&&(a.TOTAL_MEMORY=m.memoryLimit);var n={},p;for(p in a)a.hasOwnProperty(p)&&(n[p]=a[p]);a.arguments=[];a.thisProgram="./this.program";a.quit=function(b,c){throw c;};a.preRun=[];a.postRun=[];var q=!1,r=!1,t=!1,aa=!1;q="object"===typeof window;r="function"===typeof importScripts;t="object"===typeof process&&"function"===typeof require&&!q&&!r;aa=!q&&!t&&!r;var v=""; if(t){v=__dirname+"/";var w,x;a.read=function(b,c){w||(w=require("fs"));x||(x=require("path"));b=x.normalize(b);b=w.readFileSync(b);return c?b:b.toString()};a.readBinary=function(b){b=a.read(b,!0);b.buffer||(b=new Uint8Array(b));b.buffer||y("Assertion failed: undefined");return b};1G&&A("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+G+"! (TOTAL_STACK=5242880)");a.buffer?buffer=a.buffer:"object"===typeof WebAssembly&&"function"===typeof WebAssembly.Memory?(B=new WebAssembly.Memory({initial:G/65536}),buffer=B.buffer):buffer=new ArrayBuffer(G);ha();F[2380]=5252432; function H(b){for(;0>2]=b);return b},s:za,r:function(b,c,d){D.set(D.subarray(c, c+d),b)},q:function(b){if(2147418112=c?c=C(2*c):c=Math.min(C((3*c+2147483648)/4),2147418112);if(!Aa(c))return!1;ha();return!0},d:function(b,c){R(b,c||1);throw"longjmp";},p:function(b,c,d,e,f,g,k,l,U,E,I,J,V,W,qa,ra){function X(b,c,e,d,f,g,k,l){b=Ma.subarray(b,b+c*e);var h=b.buffer;"function"===typeof h.slice?(b=h.slice(b.byteOffset,b.byteOffset+b.byteLength),b=new Uint8Array(b)):b=new Uint8Array(b);var z,u;for(z=u=0;z=c||(Y&&a._free(Y),La=c,Y=a._malloc(La));var d=Y;a.HEAPU8.set(new Uint8Array(b),d);return a._ogv_video_decoder_process_header(d,c)});c(d)}; a.M=[];a.processFrame=function(b,c){function d(b){a._free(g);c(b)}var e=a._ogv_video_decoder_async(),f=b.byteLength,g=a._malloc(f);e&&a.M.push(d);var k=Z(function(){a.HEAPU8.set(new Uint8Array(b),g);return a._ogv_video_decoder_process_frame(g,f)});e||d(k)};a.close=function(){};a.sync=function(){a._ogv_video_decoder_async()&&(a.M.push(function(){}),Z(function(){a._ogv_video_decoder_process_frame(0,0)}))}; return OGVDecoderVideoVP8W } ); })(); if (typeof exports === 'object' && typeof module === 'object') module.exports = OGVDecoderVideoVP8W; else if (typeof define === 'function' && define['amd']) define([], function() { return OGVDecoderVideoVP8W; }); else if (typeof exports === 'object') exports["OGVDecoderVideoVP8W"] = OGVDecoderVideoVP8W;