var OGVDecoderVideoVP9W = (function() { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; return ( function(OGVDecoderVideoVP9W) { OGVDecoderVideoVP9W = OGVDecoderVideoVP9W || {}; var a;a||(a=typeof OGVDecoderVideoVP9W !== 'undefined' ? OGVDecoderVideoVP9W : {});var n=a;a.memoryLimit&&(a.TOTAL_MEMORY=n.memoryLimit);var p={},q;for(q in a)a.hasOwnProperty(q)&&(p[q]=a[q]);a.arguments=[];a.thisProgram="./this.program";a.quit=function(b,c){throw c;};a.preRun=[];a.postRun=[];var r=!1,t=!1,u=!1,aa=!1;r="object"===typeof window;t="function"===typeof importScripts;u="object"===typeof process&&"function"===typeof require&&!r&&!t;aa=!r&&!u&&!t;var w=""; if(u){w=__dirname+"/";var x,y;a.read=function(b,c){x||(x=require("fs"));y||(y=require("path"));b=y.normalize(b);b=x.readFileSync(b);return c?b:b.toString()};a.readBinary=function(b){b=a.read(b,!0);b.buffer||(b=new Uint8Array(b));b.buffer||z("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[8768]=5277984; function H(b){for(;0>2]=b);return b},r:za,q:function(b,c,d){D.set(D.subarray(c, c+d),b)},p: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";},o:function(b,c,d,e,f,h,k,l,m,E,I,J,U,V,pa,qa){function W(b,c,d,e,f,h,k,l){b=La.subarray(b,b+c*d);var g=b.buffer;"function"===typeof g.slice?(b=g.slice(b.byteOffset,b.byteOffset+b.byteLength),b=new Uint8Array(b)):b=new Uint8Array(b);var m,v;for(m=v=0;m=c||(X&&a._free(X),Y=c,X=a._malloc(Y));var d=X;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(h);c(b)}var e=a._ogv_video_decoder_async(),f=b.byteLength,h=a._malloc(f);e&&a.M.push(d);var k=Z(function(){a.HEAPU8.set(new Uint8Array(b),h);return a._ogv_video_decoder_process_frame(h,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 OGVDecoderVideoVP9W } ); })(); if (typeof exports === 'object' && typeof module === 'object') module.exports = OGVDecoderVideoVP9W; else if (typeof define === 'function' && define['amd']) define([], function() { return OGVDecoderVideoVP9W; }); else if (typeof exports === 'object') exports["OGVDecoderVideoVP9W"] = OGVDecoderVideoVP9W;