
var createFFmpegCore = (() => {
  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
  if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
  return (
function(createFFmpegCore = {})  {

var e;e||(e=typeof createFFmpegCore !== 'undefined' ? createFFmpegCore : {});var aa,ca;e.ready=new Promise(function(a,b){aa=a;ca=b});e.quit=function(a){if(e.onExit)e.onExit(a);throw new da(a);};var ea=Object.assign({},e),fa=[],ha="./this.program",ia=(a,b)=>{throw b;},ja="object"==typeof window,ka="function"==typeof importScripts,k="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m=e.ENVIRONMENT_IS_PTHREAD||!1,v="";
function la(a){return e.locateFile?e.locateFile(a,v):v+a}var ma,na,oa;
if(k){var fs=require("fs"),pa=require("path");v=ka?pa.dirname(v)+"/":__dirname+"/";ma=(b,c)=>{b=b.startsWith("file://")?new URL(b):pa.normalize(b);return fs.readFileSync(b,c?void 0:"utf8")};oa=b=>{b=ma(b,!0);b.buffer||(b=new Uint8Array(b));return b};na=(b,c,d)=>{b=b.startsWith("file://")?new URL(b):pa.normalize(b);fs.readFile(b,function(g,f){g?d(g):c(f.buffer)})};1<process.argv.length&&(ha=process.argv[1].replace(/\\/g,"/"));fa=process.argv.slice(2);ia=(b,c)=>{process.exitCode=b;throw c;};e.inspect=
function(){return"[Emscripten Module object]"};let a;try{a=require("worker_threads")}catch(b){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),b;}global.Worker=a.Worker}else if(ja||ka)ka?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),_scriptDir&&(v=_scriptDir),0!==v.indexOf("blob:")?v=v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):v="",k||(ma=a=>{var b=new XMLHttpRequest;
b.open("GET",a,!1);b.send(null);return b.responseText},ka&&(oa=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),na=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)});k&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);
var qa=console.log.bind(console),ra=console.warn.bind(console);k&&(qa=a=>fs.writeSync(1,a+"\n"),ra=a=>fs.writeSync(2,a+"\n"));var sa=e.print||qa,w=e.printErr||ra;Object.assign(e,ea);ea=null;e.arguments&&(fa=e.arguments);e.thisProgram&&(ha=e.thisProgram);e.quit&&(ia=e.quit);var ta;e.wasmBinary&&(ta=e.wasmBinary);var noExitRuntime=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&y("no native wasm support detected");var z,ua,va=!1,wa,xa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;
function ya(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&xa)return xa.decode(a.buffer instanceof SharedArrayBuffer?a.slice(b,c):a.subarray(b,c));for(d="";b<c;){var g=a[b++];if(g&128){var f=a[b++]&63;if(192==(g&224))d+=String.fromCharCode((g&31)<<6|f);else{var h=a[b++]&63;g=224==(g&240)?(g&15)<<12|f<<6|h:(g&7)<<18|f<<12|h<<6|a[b++]&63;65536>g?d+=String.fromCharCode(g):(g-=65536,d+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else d+=String.fromCharCode(g)}return d}
function A(a,b){return a?ya(D,a,b):""}function za(a,b,c,d){if(!(0<d))return 0;var g=c;d=c+d-1;for(var f=0;f<a.length;++f){var h=a.charCodeAt(f);if(55296<=h&&57343>=h){var n=a.charCodeAt(++f);h=65536+((h&1023)<<10)|n&1023}if(127>=h){if(c>=d)break;b[c++]=h}else{if(2047>=h){if(c+1>=d)break;b[c++]=192|h>>6}else{if(65535>=h){if(c+2>=d)break;b[c++]=224|h>>12}else{if(c+3>=d)break;b[c++]=240|h>>18;b[c++]=128|h>>12&63}b[c++]=128|h>>6&63}b[c++]=128|h&63}}b[c]=0;return c-g}
function Aa(a,b,c){return za(a,D,b,c)}function Ba(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b}var E,D,F,Ca,G,H,Da,Ea,Fa=e.INITIAL_MEMORY||1073741824;65536<=Fa||y("INITIAL_MEMORY should be larger than STACK_SIZE, was "+Fa+"! (STACK_SIZE=65536)");
if(m)z=e.wasmMemory;else if(e.wasmMemory)z=e.wasmMemory;else if(z=new WebAssembly.Memory({initial:Fa/65536,maximum:Fa/65536,shared:!0}),!(z.buffer instanceof SharedArrayBuffer))throw w("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),k&&w("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),
Error("bad memory");var J=z.buffer;e.HEAP8=E=new Int8Array(J);e.HEAP16=F=new Int16Array(J);e.HEAP32=G=new Int32Array(J);e.HEAPU8=D=new Uint8Array(J);e.HEAPU16=Ca=new Uint16Array(J);e.HEAPU32=H=new Uint32Array(J);e.HEAPF32=Da=new Float32Array(J);e.HEAPF64=Ea=new Float64Array(J);Fa=z.buffer.byteLength;var Ga,Ha=[],Ia=[],Ja=[],Ka=[],La=[],Ma=!1,Na=0;function Oa(){return noExitRuntime||0<Na}function Pa(){m||(e.noFSInit||K.Wb.Fc||K.Wb(),K.gd=!1,L.root=K.nb(L,{},null),Qa(Ia))}
function Ra(){var a=e.preRun.shift();Ha.unshift(a)}var Sa=0,Ua=null,Va=null;function Wa(){Sa++;e.monitorRunDependencies&&e.monitorRunDependencies(Sa)}function Xa(){Sa--;e.monitorRunDependencies&&e.monitorRunDependencies(Sa);if(0==Sa&&(null!==Ua&&(clearInterval(Ua),Ua=null),Va)){var a=Va;Va=null;a()}}function y(a){if(e.onAbort)e.onAbort(a);a="Aborted("+a+")";w(a);va=!0;wa=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ca(a);throw a;}
function Ya(a){return a.startsWith("data:application/octet-stream;base64,")}var Za;Za="ffmpeg-core.wasm";Ya(Za)||(Za=la(Za));function $a(a){try{if(a==Za&&ta)return new Uint8Array(ta);if(oa)return oa(a);throw"both async and sync fetching of the wasm failed";}catch(b){y(b)}}
function ab(a){if(!ta&&(ja||ka)){if("function"==typeof fetch&&!a.startsWith("file://"))return fetch(a,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(function(){return $a(a)});if(na)return new Promise(function(b,c){na(a,function(d){b(new Uint8Array(d))},c)})}return Promise.resolve().then(function(){return $a(a)})}
function bb(a,b,c){return ab(a).then(function(d){return WebAssembly.instantiate(d,b)}).then(function(d){return d}).then(c,function(d){w("failed to asynchronously prepare wasm: "+d);y(d)})}
function cb(a,b){var c=Za;return ta||"function"!=typeof WebAssembly.instantiateStreaming||Ya(c)||c.startsWith("file://")||k||"function"!=typeof fetch?bb(c,a,b):fetch(c,{credentials:"same-origin"}).then(function(d){return WebAssembly.instantiateStreaming(d,a).then(b,function(g){w("wasm streaming compile failed: "+g);w("falling back to ArrayBuffer instantiation");return bb(c,a,b)})})}var M,N;function da(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}
function db(a){a.terminate();a.onmessage=()=>{}}function eb(a){var b=O.Gb[a];delete O.Gb[a];db(b);fb(a);O.Rb.splice(O.Rb.indexOf(b),1);b.Cb=0}function gb(a){O.Gb[a].postMessage({cmd:"cancel"})}function hb(a){(a=O.Gb[a])||y();O.fe(a)}function ib(a,b){D.fill(0,a,a+b);return a}function jb(a){var b=O.Md();if(!b)return 6;O.Rb.push(b);O.Gb[a.Cb]=b;b.Cb=a.Cb;var c={cmd:"run",start_routine:a.he,arg:a.xd,pthread_ptr:a.Cb};k&&b.ref();b.postMessage(c,a.ne);return 0}
var mb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var g=a[d];"."===g?a.splice(d,1):".."===g?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},P=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=mb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},nb=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},ob=a=>{if("/"===
a)return"/";a=P(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},pb=(a,b)=>P(a+"/"+b);function qb(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var a=new Uint8Array(1);return()=>{crypto.getRandomValues(a);return a[0]}}if(k)try{var b=require("crypto");return()=>b.randomBytes(1)[0]}catch(c){}return()=>y("randomDevice")}
function rb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:K.cwd();if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=mb(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}
var sb=(a,b)=>{function c(h){for(var n=0;n<h.length&&""===h[n];n++);for(var p=h.length-1;0<=p&&""===h[p];p--);return n>p?[]:h.slice(n,p-n+1)}a=rb(a).substr(1);b=rb(b).substr(1);a=c(a.split("/"));b=c(b.split("/"));for(var d=Math.min(a.length,b.length),g=d,f=0;f<d;f++)if(a[f]!==b[f]){g=f;break}d=[];for(f=g;f<a.length;f++)d.push("..");d=d.concat(b.slice(g));return d.join("/")};function tb(a,b){var c=Array(Ba(a)+1);a=za(a,c,0,c.length);b&&(c.length=a);return c}var ub=[];
function vb(a,b){ub[a]={input:[],output:[],Zb:b};K.Nc(a,wb)}
var wb={open:function(a){var b=ub[a.node.rdev];if(!b)throw new K.gb(43);a.tty=b;a.seekable=!1},close:function(a){a.tty.Zb.fsync(a.tty)},fsync:function(a){a.tty.Zb.fsync(a.tty)},read:function(a,b,c,d){if(!a.tty||!a.tty.Zb.bd)throw new K.gb(60);for(var g=0,f=0;f<d;f++){try{var h=a.tty.Zb.bd(a.tty)}catch(n){throw new K.gb(29);}if(void 0===h&&0===g)throw new K.gb(6);if(null===h||void 0===h)break;g++;b[c+f]=h}g&&(a.node.timestamp=Date.now());return g},write:function(a,b,c,d){if(!a.tty||!a.tty.Zb.Kc)throw new K.gb(60);
try{for(var g=0;g<d;g++)a.tty.Zb.Kc(a.tty,b[c+g])}catch(f){throw new K.gb(29);}d&&(a.node.timestamp=Date.now());return g}},xb={bd:function(a){if(!a.input.length){var b=null;if(k){var c=Buffer.alloc(256),d=0;try{d=fs.readSync(process.stdin.fd,c,0,256,-1)}catch(g){if(g.toString().includes("EOF"))d=0;else throw g;}0<d?b=c.slice(0,d).toString("utf-8"):b=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&(b=
readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=tb(b,!0)}return a.input.shift()},Kc:function(a,b){null===b||10===b?(sa(ya(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync:function(a){a.output&&0<a.output.length&&(sa(ya(a.output,0)),a.output=[])}},yb={Kc:function(a,b){null===b||10===b?(w(ya(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync:function(a){a.output&&0<a.output.length&&(w(ya(a.output,0)),a.output=[])}};
function zb(a){a=65536*Math.ceil(a/65536);var b=Ab(65536,a);return b?ib(b,a):0}
var S={Bb:null,nb:function(){return S.createNode(null,"/",16895,0)},createNode:function(a,b,c,d){if(K.Rd(c)||K.isFIFO(c))throw new K.gb(63);S.Bb||(S.Bb={dir:{node:{yb:S.hb.yb,rb:S.hb.rb,lookup:S.hb.lookup,Fb:S.hb.Fb,rename:S.hb.rename,unlink:S.hb.unlink,rmdir:S.hb.rmdir,readdir:S.hb.readdir,symlink:S.hb.symlink},stream:{ub:S.ib.ub}},file:{node:{yb:S.hb.yb,rb:S.hb.rb},stream:{ub:S.ib.ub,read:S.ib.read,write:S.ib.write,dc:S.ib.dc,Pb:S.ib.Pb,Yb:S.ib.Yb}},link:{node:{yb:S.hb.yb,rb:S.hb.rb,readlink:S.hb.readlink},
stream:{}},Uc:{node:{yb:S.hb.yb,rb:S.hb.rb},stream:K.Ad}});c=K.createNode(a,b,c,d);K.pb(c.mode)?(c.hb=S.Bb.dir.node,c.ib=S.Bb.dir.stream,c.jb={}):K.isFile(c.mode)?(c.hb=S.Bb.file.node,c.ib=S.Bb.file.stream,c.mb=0,c.jb=null):K.Mb(c.mode)?(c.hb=S.Bb.link.node,c.ib=S.Bb.link.stream):K.ec(c.mode)&&(c.hb=S.Bb.Uc.node,c.ib=S.Bb.Uc.stream);c.timestamp=Date.now();a&&(a.jb[b]=c,a.timestamp=c.timestamp);return c},we:function(a){return a.jb?a.jb.subarray?a.jb.subarray(0,a.mb):new Uint8Array(a.jb):new Uint8Array(0)},
Zc:function(a,b){var c=a.jb?a.jb.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.jb,a.jb=new Uint8Array(b),0<a.mb&&a.jb.set(c.subarray(0,a.mb),0))},ee:function(a,b){if(a.mb!=b)if(0==b)a.jb=null,a.mb=0;else{var c=a.jb;a.jb=new Uint8Array(b);c&&a.jb.set(c.subarray(0,Math.min(b,a.mb)));a.mb=b}},hb:{yb:function(a){var b={};b.dev=K.ec(a.mode)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;K.pb(a.mode)?b.size=4096:K.isFile(a.mode)?b.size=a.mb:
K.Mb(a.mode)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.yd=4096;b.blocks=Math.ceil(b.size/b.yd);return b},rb:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&S.ee(a,b.size)},lookup:function(){throw K.Cc[44];},Fb:function(a,b,c,d){return S.createNode(a,b,c,d)},rename:function(a,b,c){if(K.pb(a.mode)){try{var d=K.zb(b,c)}catch(f){}if(d)for(var g in d.jb)throw new K.gb(55);
}delete a.parent.jb[a.name];a.parent.timestamp=Date.now();a.name=c;b.jb[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink:function(a,b){delete a.jb[b];a.timestamp=Date.now()},rmdir:function(a,b){var c=K.zb(a,b),d;for(d in c.jb)throw new K.gb(55);delete a.jb[b];a.timestamp=Date.now()},readdir:function(a){var b=[".",".."],c;for(c in a.jb)a.jb.hasOwnProperty(c)&&b.push(c);return b},symlink:function(a,b,c){a=S.createNode(a,b,41471,0);a.link=c;return a},readlink:function(a){if(!K.Mb(a.mode))throw new K.gb(28);
return a.link}},ib:{read:function(a,b,c,d,g){var f=a.node.jb;if(g>=a.node.mb)return 0;a=Math.min(a.node.mb-g,d);if(8<a&&f.subarray)b.set(f.subarray(g,g+a),c);else for(d=0;d<a;d++)b[c+d]=f[g+d];return a},write:function(a,b,c,d,g,f){if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.jb||a.jb.subarray)){if(f)return a.jb=b.subarray(c,c+d),a.mb=d;if(0===a.mb&&0===g)return a.jb=b.slice(c,c+d),a.mb=d;if(g+d<=a.mb)return a.jb.set(b.subarray(c,c+d),g),d}S.Zc(a,g+d);if(a.jb.subarray&&b.subarray)a.jb.set(b.subarray(c,
c+d),g);else for(f=0;f<d;f++)a.jb[g+f]=b[c+f];a.mb=Math.max(a.mb,g+d);return d},ub:function(a,b,c){1===c?b+=a.position:2===c&&K.isFile(a.node.mode)&&(b+=a.node.mb);if(0>b)throw new K.gb(28);return b},dc:function(a,b,c){S.Zc(a.node,b+c);a.node.mb=Math.max(a.node.mb,b+c)},Pb:function(a,b,c,d,g){if(!K.isFile(a.node.mode))throw new K.gb(43);a=a.node.jb;if(g&2||a.buffer!==E.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;b=zb(b);if(!b)throw new K.gb(48);
E.set(a,b)}else c=!1,b=a.byteOffset;return{jd:b,Sc:c}},Yb:function(a,b,c,d){S.ib.write(a,b,0,d,c,!1);return 0}}};function Bb(a,b,c){var d="al "+a;na(a,g=>{g||y('Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(g));d&&Xa()},()=>{if(c)c();else throw'Loading data file "'+a+'" failed.';});d&&Wa()}
var K={root:null,ic:[],Xc:{},streams:[],Yd:1,Ab:null,Wc:"/",Fc:!1,gd:!0,gb:null,Cc:{},Jd:null,tc:0,lb:(a,b={})=>{a=rb(a);if(!a)return{path:"",node:null};b=Object.assign({Ac:!0,Mc:0},b);if(8<b.Mc)throw new K.gb(32);a=a.split("/").filter(h=>!!h);for(var c=K.root,d="/",g=0;g<a.length;g++){var f=g===a.length-1;if(f&&b.parent)break;c=K.zb(c,a[g]);d=P(d+"/"+a[g]);K.Nb(c)&&(!f||f&&b.Ac)&&(c=c.hc.root);if(!f||b.xb)for(f=0;K.Mb(c.mode);)if(c=K.readlink(d),d=rb(nb(d),c),c=K.lb(d,{Mc:b.Mc+1}).node,40<f++)throw new K.gb(32);
}return{path:d,node:c}},Ib:a=>{for(var b;;){if(K.oc(a))return a=a.nb.hd,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}},Ec:(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%K.Ab.length},dd:a=>{var b=K.Ec(a.parent.id,a.name);a.Qb=K.Ab[b];K.Ab[b]=a},ed:a=>{var b=K.Ec(a.parent.id,a.name);if(K.Ab[b]===a)K.Ab[b]=a.Qb;else for(b=K.Ab[b];b;){if(b.Qb===a){b.Qb=a.Qb;break}b=b.Qb}},zb:(a,b)=>{var c=K.Vd(a);if(c)throw new K.gb(c,a);for(c=K.Ab[K.Ec(a.id,
b)];c;c=c.Qb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return K.lookup(a,b)},createNode:(a,b,c,d)=>{a=new K.sd(a,b,c,d);K.dd(a);return a},zc:a=>{K.ed(a)},oc:a=>a===a.parent,Nb:a=>!!a.hc,isFile:a=>32768===(a&61440),pb:a=>16384===(a&61440),Mb:a=>40960===(a&61440),ec:a=>8192===(a&61440),Rd:a=>24576===(a&61440),isFIFO:a=>4096===(a&61440),isSocket:a=>49152===(a&49152),Kd:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},Xd:a=>{var b=K.Kd[a];if("undefined"==typeof b)throw Error("Unknown file open mode: "+
a);return b},$c:a=>{var b=["r","w","rw"][a&3];a&512&&(b+="w");return b},Jb:(a,b)=>{if(K.gd)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},Vd:a=>{var b=K.Jb(a,"x");return b?b:a.hb.lookup?0:2},Jc:(a,b)=>{try{return K.zb(a,b),20}catch(c){}return K.Jb(a,"wx")},pc:(a,b,c)=>{try{var d=K.zb(a,b)}catch(g){return g.kb}if(a=K.Jb(a,"wx"))return a;if(c){if(!K.pb(d.mode))return 54;if(K.oc(d)||K.Ib(d)===K.cwd())return 10}else if(K.pb(d.mode))return 31;
return 0},Wd:(a,b)=>a?K.Mb(a.mode)?32:K.pb(a.mode)&&("r"!==K.$c(b)||b&512)?31:K.Jb(a,K.$c(b)):44,td:4096,Zd:(a=0,b=K.td)=>{for(;a<=b;a++)if(!K.streams[a])return a;throw new K.gb(33);},Kb:a=>K.streams[a],yc:(a,b,c)=>{K.kc||(K.kc=function(){this.Eb={}},K.kc.prototype={},Object.defineProperties(K.kc.prototype,{object:{get:function(){return this.node},set:function(d){this.node=d}},flags:{get:function(){return this.Eb.flags},set:function(d){this.Eb.flags=d}},position:{get:function(){return this.Eb.position},
set:function(d){this.Eb.position=d}}}));a=Object.assign(new K.kc,a);b=K.Zd(b,c);a.fd=b;return K.streams[b]=a},Bd:a=>{K.streams[a]=null},Ad:{open:a=>{a.ib=K.Ld(a.node.rdev).ib;a.ib.open&&a.ib.open(a)},ub:()=>{throw new K.gb(70);}},Ic:a=>a>>8,Be:a=>a&255,Ob:(a,b)=>a<<8|b,Nc:(a,b)=>{K.Xc[a]={ib:b}},Ld:a=>K.Xc[a],ad:a=>{var b=[];for(a=[a];a.length;){var c=a.pop();b.push(c);a.push.apply(a,c.ic)}return b},od:(a,b)=>{function c(h){K.tc--;return b(h)}function d(h){if(h){if(!d.Id)return d.Id=!0,c(h)}else++f>=
g.length&&c(null)}"function"==typeof a&&(b=a,a=!1);K.tc++;1<K.tc&&w("warning: "+K.tc+" FS.syncfs operations in flight at once, probably just doing extra work");var g=K.ad(K.root.nb),f=0;g.forEach(h=>{if(!h.type.od)return d(null);h.type.od(h,a,d)})},nb:(a,b,c)=>{var d="/"===c,g=!c;if(d&&K.root)throw new K.gb(10);if(!d&&!g){var f=K.lb(c,{Ac:!1});c=f.path;f=f.node;if(K.Nb(f))throw new K.gb(10);if(!K.pb(f.mode))throw new K.gb(54);}b={type:a,Ee:b,hd:c,ic:[]};a=a.nb(b);a.nb=b;b.root=a;d?K.root=a:f&&(f.hc=
b,f.nb&&f.nb.ic.push(b));return a},Ke:a=>{a=K.lb(a,{Ac:!1});if(!K.Nb(a.node))throw new K.gb(28);a=a.node;var b=a.hc,c=K.ad(b);Object.keys(K.Ab).forEach(d=>{for(d=K.Ab[d];d;){var g=d.Qb;c.includes(d.nb)&&K.zc(d);d=g}});a.hc=null;a.nb.ic.splice(a.nb.ic.indexOf(b),1)},lookup:(a,b)=>a.hb.lookup(a,b),Fb:(a,b,c)=>{var d=K.lb(a,{parent:!0}).node;a=ob(a);if(!a||"."===a||".."===a)throw new K.gb(28);var g=K.Jc(d,a);if(g)throw new K.gb(g);if(!d.hb.Fb)throw new K.gb(63);return d.hb.Fb(d,a,b,c)},create:(a,b)=>
K.Fb(a,(void 0!==b?b:438)&4095|32768,0),mkdir:(a,b)=>K.Fb(a,(void 0!==b?b:511)&1023|16384,0),Ce:(a,b)=>{a=a.split("/");for(var c="",d=0;d<a.length;++d)if(a[d]){c+="/"+a[d];try{K.mkdir(c,b)}catch(g){if(20!=g.kb)throw g;}}},qc:(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);return K.Fb(a,b|8192,c)},symlink:(a,b)=>{if(!rb(a))throw new K.gb(44);var c=K.lb(b,{parent:!0}).node;if(!c)throw new K.gb(44);b=ob(b);var d=K.Jc(c,b);if(d)throw new K.gb(d);if(!c.hb.symlink)throw new K.gb(63);return c.hb.symlink(c,
b,a)},rename:(a,b)=>{var c=nb(a),d=nb(b),g=ob(a),f=ob(b);var h=K.lb(a,{parent:!0});var n=h.node;h=K.lb(b,{parent:!0});h=h.node;if(!n||!h)throw new K.gb(44);if(n.nb!==h.nb)throw new K.gb(75);var p=K.zb(n,g);a=sb(a,d);if("."!==a.charAt(0))throw new K.gb(28);a=sb(b,c);if("."!==a.charAt(0))throw new K.gb(55);try{var r=K.zb(h,f)}catch(q){}if(p!==r){b=K.pb(p.mode);if(g=K.pc(n,g,b))throw new K.gb(g);if(g=r?K.pc(h,f,b):K.Jc(h,f))throw new K.gb(g);if(!n.hb.rename)throw new K.gb(63);if(K.Nb(p)||r&&K.Nb(r))throw new K.gb(10);
if(h!==n&&(g=K.Jb(n,"w")))throw new K.gb(g);K.ed(p);try{n.hb.rename(p,h,f)}catch(q){throw q;}finally{K.dd(p)}}},rmdir:a=>{var b=K.lb(a,{parent:!0}).node;a=ob(a);var c=K.zb(b,a),d=K.pc(b,a,!0);if(d)throw new K.gb(d);if(!b.hb.rmdir)throw new K.gb(63);if(K.Nb(c))throw new K.gb(10);b.hb.rmdir(b,a);K.zc(c)},readdir:a=>{a=K.lb(a,{xb:!0}).node;if(!a.hb.readdir)throw new K.gb(54);return a.hb.readdir(a)},unlink:a=>{var b=K.lb(a,{parent:!0}).node;if(!b)throw new K.gb(44);a=ob(a);var c=K.zb(b,a),d=K.pc(b,a,
!1);if(d)throw new K.gb(d);if(!b.hb.unlink)throw new K.gb(63);if(K.Nb(c))throw new K.gb(10);b.hb.unlink(b,a);K.zc(c)},readlink:a=>{a=K.lb(a).node;if(!a)throw new K.gb(44);if(!a.hb.readlink)throw new K.gb(28);return rb(K.Ib(a.parent),a.hb.readlink(a))},stat:(a,b)=>{a=K.lb(a,{xb:!b}).node;if(!a)throw new K.gb(44);if(!a.hb.yb)throw new K.gb(63);return a.hb.yb(a)},lstat:a=>K.stat(a,!0),chmod:(a,b,c)=>{a="string"==typeof a?K.lb(a,{xb:!c}).node:a;if(!a.hb.rb)throw new K.gb(63);a.hb.rb(a,{mode:b&4095|a.mode&
-4096,timestamp:Date.now()})},lchmod:(a,b)=>{K.chmod(a,b,!0)},fchmod:(a,b)=>{a=K.Kb(a);if(!a)throw new K.gb(8);K.chmod(a.node,b)},chown:(a,b,c,d)=>{a="string"==typeof a?K.lb(a,{xb:!d}).node:a;if(!a.hb.rb)throw new K.gb(63);a.hb.rb(a,{timestamp:Date.now()})},lchown:(a,b,c)=>{K.chown(a,b,c,!0)},fchown:(a,b,c)=>{a=K.Kb(a);if(!a)throw new K.gb(8);K.chown(a.node,b,c)},truncate:(a,b)=>{if(0>b)throw new K.gb(28);a="string"==typeof a?K.lb(a,{xb:!0}).node:a;if(!a.hb.rb)throw new K.gb(63);if(K.pb(a.mode))throw new K.gb(31);
if(!K.isFile(a.mode))throw new K.gb(28);var c=K.Jb(a,"w");if(c)throw new K.gb(c);a.hb.rb(a,{size:b,timestamp:Date.now()})},ve:(a,b)=>{a=K.Kb(a);if(!a)throw new K.gb(8);if(0===(a.flags&2097155))throw new K.gb(28);K.truncate(a.node,b)},Le:(a,b,c)=>{a=K.lb(a,{xb:!0}).node;a.hb.rb(a,{timestamp:Math.max(b,c)})},open:(a,b,c)=>{if(""===a)throw new K.gb(44);b="string"==typeof b?K.Xd(b):b;c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var d=a;else{a=P(a);try{d=K.lb(a,{xb:!(b&131072)}).node}catch(f){}}var g=
!1;if(b&64)if(d){if(b&128)throw new K.gb(20);}else d=K.Fb(a,c,0),g=!0;if(!d)throw new K.gb(44);K.ec(d.mode)&&(b&=-513);if(b&65536&&!K.pb(d.mode))throw new K.gb(54);if(!g&&(c=K.Wd(d,b)))throw new K.gb(c);b&512&&!g&&K.truncate(d,0);b&=-131713;d=K.yc({node:d,path:K.Ib(d),flags:b,seekable:!0,position:0,ib:d.ib,oe:[],error:!1});d.ib.open&&d.ib.open(d);!e.logReadFiles||b&1||(K.Lc||(K.Lc={}),a in K.Lc||(K.Lc[a]=1));return d},close:a=>{if(K.fc(a))throw new K.gb(8);a.Lb&&(a.Lb=null);try{a.ib.close&&a.ib.close(a)}catch(b){throw b;
}finally{K.Bd(a.fd)}a.fd=null},fc:a=>null===a.fd,ub:(a,b,c)=>{if(K.fc(a))throw new K.gb(8);if(!a.seekable||!a.ib.ub)throw new K.gb(70);if(0!=c&&1!=c&&2!=c)throw new K.gb(28);a.position=a.ib.ub(a,b,c);a.oe=[];return a.position},read:(a,b,c,d,g)=>{if(0>d||0>g)throw new K.gb(28);if(K.fc(a))throw new K.gb(8);if(1===(a.flags&2097155))throw new K.gb(8);if(K.pb(a.node.mode))throw new K.gb(31);if(!a.ib.read)throw new K.gb(28);var f="undefined"!=typeof g;if(!f)g=a.position;else if(!a.seekable)throw new K.gb(70);
b=a.ib.read(a,b,c,d,g);f||(a.position+=b);return b},write:(a,b,c,d,g,f)=>{if(0>d||0>g)throw new K.gb(28);if(K.fc(a))throw new K.gb(8);if(0===(a.flags&2097155))throw new K.gb(8);if(K.pb(a.node.mode))throw new K.gb(31);if(!a.ib.write)throw new K.gb(28);a.seekable&&a.flags&1024&&K.ub(a,0,2);var h="undefined"!=typeof g;if(!h)g=a.position;else if(!a.seekable)throw new K.gb(70);b=a.ib.write(a,b,c,d,g,f);h||(a.position+=b);return b},dc:(a,b,c)=>{if(K.fc(a))throw new K.gb(8);if(0>b||0>=c)throw new K.gb(28);
if(0===(a.flags&2097155))throw new K.gb(8);if(!K.isFile(a.node.mode)&&!K.pb(a.node.mode))throw new K.gb(43);if(!a.ib.dc)throw new K.gb(138);a.ib.dc(a,b,c)},Pb:(a,b,c,d,g)=>{if(0!==(d&2)&&0===(g&2)&&2!==(a.flags&2097155))throw new K.gb(2);if(1===(a.flags&2097155))throw new K.gb(2);if(!a.ib.Pb)throw new K.gb(43);return a.ib.Pb(a,b,c,d,g)},Yb:(a,b,c,d,g)=>a.ib.Yb?a.ib.Yb(a,b,c,d,g):0,De:()=>0,Xb:(a,b,c)=>{if(!a.ib.Xb)throw new K.gb(59);return a.ib.Xb(a,b,c)},readFile:(a,b={})=>{b.flags=b.flags||0;b.encoding=
b.encoding||"binary";if("utf8"!==b.encoding&&"binary"!==b.encoding)throw Error('Invalid encoding type "'+b.encoding+'"');var c,d=K.open(a,b.flags);a=K.stat(a).size;var g=new Uint8Array(a);K.read(d,g,0,a,0);"utf8"===b.encoding?c=ya(g,0):"binary"===b.encoding&&(c=g);K.close(d);return c},writeFile:(a,b,c={})=>{c.flags=c.flags||577;a=K.open(a,c.flags,c.mode);if("string"==typeof b){var d=new Uint8Array(Ba(b)+1);b=za(b,d,0,d.length);K.write(a,d,0,b,void 0,c.zd)}else if(ArrayBuffer.isView(b))K.write(a,b,
0,b.byteLength,void 0,c.zd);else throw Error("Unsupported data type");K.close(a)},cwd:()=>K.Wc,chdir:a=>{a=K.lb(a,{xb:!0});if(null===a.node)throw new K.gb(44);if(!K.pb(a.node.mode))throw new K.gb(54);var b=K.Jb(a.node,"x");if(b)throw new K.gb(b);K.Wc=a.path},Dd:()=>{K.mkdir("/tmp");K.mkdir("/home");K.mkdir("/home/web_user")},Cd:()=>{K.mkdir("/dev");K.Nc(K.Ob(1,3),{read:()=>0,write:(b,c,d,g)=>g});K.qc("/dev/null",K.Ob(1,3));vb(K.Ob(5,0),xb);vb(K.Ob(6,0),yb);K.qc("/dev/tty",K.Ob(5,0));K.qc("/dev/tty1",
K.Ob(6,0));var a=qb();K.Hb("/dev","random",a);K.Hb("/dev","urandom",a);K.mkdir("/dev/shm");K.mkdir("/dev/shm/tmp")},Fd:()=>{K.mkdir("/proc");var a=K.mkdir("/proc/self");K.mkdir("/proc/self/fd");K.nb({nb:()=>{var b=K.createNode(a,"fd",16895,73);b.hb={lookup:(c,d)=>{var g=K.Kb(+d);if(!g)throw new K.gb(8);c={parent:null,nb:{hd:"fake"},hb:{readlink:()=>g.path}};return c.parent=c}};return b}},{},"/proc/self/fd")},Gd:()=>{e.stdin?K.Hb("/dev","stdin",e.stdin):K.symlink("/dev/tty","/dev/stdin");e.stdout?
K.Hb("/dev","stdout",null,e.stdout):K.symlink("/dev/tty","/dev/stdout");e.stderr?K.Hb("/dev","stderr",null,e.stderr):K.symlink("/dev/tty1","/dev/stderr");K.open("/dev/stdin",0);K.open("/dev/stdout",1);K.open("/dev/stderr",1)},Yc:()=>{K.gb||(K.gb=function(a,b){this.name="ErrnoError";this.node=b;this.ge=function(c){this.kb=c};this.ge(a);this.message="FS error"},K.gb.prototype=Error(),K.gb.prototype.constructor=K.gb,[44].forEach(a=>{K.Cc[a]=new K.gb(a);K.Cc[a].stack="<generic error, no stack>"}))},ie:()=>
{K.Yc();K.Ab=Array(4096);K.nb(S,{},"/");K.Dd();K.Cd();K.Fd();K.Jd={MEMFS:S}},Wb:(a,b,c)=>{K.Wb.Fc=!0;K.Yc();e.stdin=a||e.stdin;e.stdout=b||e.stdout;e.stderr=c||e.stderr;K.Gd()},ce:()=>{K.Wb.Fc=!1;Cb(0);for(var a=0;a<K.streams.length;a++){var b=K.streams[a];b&&K.close(b)}},Dc:(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ue:(a,b)=>{a=K.xc(a,b);return a.exists?a.object:null},xc:(a,b)=>{try{var c=K.lb(a,{xb:!b});a=c.path}catch(g){}var d={oc:!1,exists:!1,error:0,name:null,path:null,object:null,$d:!1,
be:null,ae:null};try{c=K.lb(a,{parent:!0}),d.$d=!0,d.be=c.path,d.ae=c.node,d.name=ob(a),c=K.lb(a,{xb:!b}),d.exists=!0,d.path=c.path,d.object=c.node,d.name=c.node.name,d.oc="/"===c.path}catch(g){d.error=g.kb}return d},se:(a,b)=>{a="string"==typeof a?a:K.Ib(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=P(a+"/"+c);try{K.mkdir(d)}catch(g){}a=d}}return d},Ed:(a,b,c,d,g)=>{a="string"==typeof a?a:K.Ib(a);b=P(a+"/"+b);return K.create(b,K.Dc(d,g))},Vc:(a,b,c,d,g,f)=>{var h=b;a&&(a="string"==
typeof a?a:K.Ib(a),h=b?P(a+"/"+b):a);a=K.Dc(d,g);h=K.create(h,a);if(c){if("string"==typeof c){b=Array(c.length);d=0;for(g=c.length;d<g;++d)b[d]=c.charCodeAt(d);c=b}K.chmod(h,a|146);b=K.open(h,577);K.write(b,c,0,c.length,0,f);K.close(b);K.chmod(h,a)}return h},Hb:(a,b,c,d)=>{a=pb("string"==typeof a?a:K.Ib(a),b);b=K.Dc(!!c,!!d);K.Hb.Ic||(K.Hb.Ic=64);var g=K.Ob(K.Hb.Ic++,0);K.Nc(g,{open:f=>{f.seekable=!1},close:()=>{d&&d.buffer&&d.buffer.length&&d(10)},read:(f,h,n,p)=>{for(var r=0,q=0;q<p;q++){try{var t=
c()}catch(B){throw new K.gb(29);}if(void 0===t&&0===r)throw new K.gb(6);if(null===t||void 0===t)break;r++;h[n+q]=t}r&&(f.node.timestamp=Date.now());return r},write:(f,h,n,p)=>{for(var r=0;r<p;r++)try{d(h[n+r])}catch(q){throw new K.gb(29);}p&&(f.node.timestamp=Date.now());return r}});return K.qc(a,b,g)},Bc:a=>{if(a.Gc||a.Sd||a.link||a.jb)return!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
if(ma)try{a.jb=tb(ma(a.url),!0),a.mb=a.jb.length}catch(b){throw new K.gb(29);}else throw Error("Cannot load without read() or XMLHttpRequest.");},re:(a,b,c,d,g)=>{function f(){this.Hc=!1;this.Eb=[]}function h(q,t,B,l,x){q=q.node.jb;if(x>=q.length)return 0;l=Math.min(q.length-x,l);if(q.slice)for(var u=0;u<l;u++)t[B+u]=q[x+u];else for(u=0;u<l;u++)t[B+u]=q.get(x+u);return l}f.prototype.get=function(q){if(!(q>this.length-1||0>q)){var t=q%this.chunkSize;return this.cd(q/this.chunkSize|0)[t]}};f.prototype.Pd=
function(q){this.cd=q};f.prototype.Tc=function(){var q=new XMLHttpRequest;q.open("HEAD",c,!1);q.send(null);if(!(200<=q.status&&300>q.status||304===q.status))throw Error("Couldn't load "+c+". Status: "+q.status);var t=Number(q.getResponseHeader("Content-length")),B,l=(B=q.getResponseHeader("Accept-Ranges"))&&"bytes"===B;q=(B=q.getResponseHeader("Content-Encoding"))&&"gzip"===B;var x=1048576;l||(x=t);var u=this;u.Pd(I=>{var Q=I*x,ba=(I+1)*x-1;ba=Math.min(ba,t-1);if("undefined"==typeof u.Eb[I]){var R=
u.Eb;if(Q>ba)throw Error("invalid range ("+Q+", "+ba+") or no bytes requested!");if(ba>t-1)throw Error("only "+t+" bytes available! programmer error!");var C=new XMLHttpRequest;C.open("GET",c,!1);t!==x&&C.setRequestHeader("Range","bytes="+Q+"-"+ba);C.responseType="arraybuffer";C.overrideMimeType&&C.overrideMimeType("text/plain; charset=x-user-defined");C.send(null);if(!(200<=C.status&&300>C.status||304===C.status))throw Error("Couldn't load "+c+". Status: "+C.status);Q=void 0!==C.response?new Uint8Array(C.response||
[]):tb(C.responseText||"",!0);R[I]=Q}if("undefined"==typeof u.Eb[I])throw Error("doXHR failed!");return u.Eb[I]});if(q||!t)x=t=1,x=t=this.cd(0).length,sa("LazyFiles on gzip forces download of the whole file when length is accessed");this.vd=t;this.ud=x;this.Hc=!0};if("undefined"!=typeof XMLHttpRequest){if(!ka)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var n=new f;Object.defineProperties(n,{length:{get:function(){this.Hc||
this.Tc();return this.vd}},chunkSize:{get:function(){this.Hc||this.Tc();return this.ud}}});n={Gc:!1,jb:n}}else n={Gc:!1,url:c};var p=K.Ed(a,b,n,d,g);n.jb?p.jb=n.jb:n.url&&(p.jb=null,p.url=n.url);Object.defineProperties(p,{mb:{get:function(){return this.jb.length}}});var r={};Object.keys(p.ib).forEach(q=>{var t=p.ib[q];r[q]=function(){K.Bc(p);return t.apply(null,arguments)}});r.read=(q,t,B,l,x)=>{K.Bc(p);return h(q,t,B,l,x)};r.Pb=(q,t,B)=>{K.Bc(p);var l=zb(t);if(!l)throw new K.gb(48);h(q,E,l,t,B);
return{jd:l,Sc:!0}};p.ib=r;return p},te:(a,b,c,d,g,f,h,n,p,r)=>{function q(B){function l(x){r&&r();n||K.Vc(a,b,x,d,g,p);f&&f();Xa()}Db.ye(B,t,l,()=>{h&&h();Xa()})||l(B)}var t=b?rb(P(a+"/"+b)):a;Wa();"string"==typeof c?Bb(c,B=>q(B),h):q(c)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,Pc:()=>"EM_FS_"+window.location.pathname,Qc:20,cc:"FILE_DATA",Fe:(a,b=()=>{},c=()=>{})=>{var d=K.indexedDB();try{var g=d.open(K.Pc(),K.Qc)}catch(f){return c(f)}g.onupgradeneeded=
()=>{sa("creating db");g.result.createObjectStore(K.cc)};g.onsuccess=()=>{var f=g.result.transaction([K.cc],"readwrite"),h=f.objectStore(K.cc),n=0,p=0,r=a.length;a.forEach(q=>{q=h.put(K.xc(q).object.jb,q);q.onsuccess=()=>{n++;n+p==r&&(0==p?b():c())};q.onerror=()=>{p++;n+p==r&&(0==p?b():c())}});f.onerror=c};g.onerror=c},Ae:(a,b=()=>{},c=()=>{})=>{var d=K.indexedDB();try{var g=d.open(K.Pc(),K.Qc)}catch(f){return c(f)}g.onupgradeneeded=c;g.onsuccess=()=>{var f=g.result;try{var h=f.transaction([K.cc],
"readonly")}catch(t){c(t);return}var n=h.objectStore(K.cc),p=0,r=0,q=a.length;a.forEach(t=>{var B=n.get(t);B.onsuccess=()=>{K.xc(t).exists&&K.unlink(t);K.Vc(nb(t),ob(t),B.result,!0,!0,!0);p++;p+r==q&&(0==r?b():c())};B.onerror=()=>{r++;p+r==q&&(0==r?b():c())}});h.onerror=c};g.onerror=c}};function Eb(a,b,c){if("/"===b.charAt(0))return b;a=-100===a?K.cwd():T(a).path;if(0==b.length){if(!c)throw new K.gb(44);return a}return P(a+"/"+b)}
function Fb(a,b,c){try{var d=a(b)}catch(f){if(f&&f.node&&P(b)!==P(K.Ib(f.node)))return-54;throw f;}G[c>>2]=d.dev;G[c+8>>2]=d.ino;G[c+12>>2]=d.mode;H[c+16>>2]=d.nlink;G[c+20>>2]=d.uid;G[c+24>>2]=d.gid;G[c+28>>2]=d.rdev;N=[d.size>>>0,(M=d.size,1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[c+40>>2]=N[0];G[c+44>>2]=N[1];G[c+48>>2]=4096;G[c+52>>2]=d.blocks;a=d.atime.getTime();b=d.mtime.getTime();var g=d.ctime.getTime();N=[Math.floor(a/
1E3)>>>0,(M=Math.floor(a/1E3),1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[c+56>>2]=N[0];G[c+60>>2]=N[1];H[c+64>>2]=a%1E3*1E3;N=[Math.floor(b/1E3)>>>0,(M=Math.floor(b/1E3),1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[c+72>>2]=N[0];G[c+76>>2]=N[1];H[c+80>>2]=b%1E3*1E3;N=[Math.floor(g/1E3)>>>0,(M=Math.floor(g/1E3),1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/
4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[c+88>>2]=N[0];G[c+92>>2]=N[1];H[c+96>>2]=g%1E3*1E3;N=[d.ino>>>0,(M=d.ino,1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[c+104>>2]=N[0];G[c+108>>2]=N[1];return 0}var Gb=void 0;function Hb(){Gb+=4;return G[Gb-4>>2]}function T(a){a=K.Kb(a);if(!a)throw new K.gb(8);return a}
function Ib(a){if(m)return U(1,1,a);wa=a;if(!Oa()){O.pd();if(e.onExit)e.onExit(a);va=!0}ia(a,new da(a))}function Jb(a){wa=a;if(m)throw Kb(a),"unwind";Oa()||m||(Lb(),Qa(Ka),K.ce(),O.pd(),Ma=!0);Ib(a)}function Mb(a){a instanceof da||"unwind"==a||ia(1,a)}
var O={Vb:[],Rb:[],rd:[],Gb:{},Wb:function(){m&&O.Qd()},ze:function(){},Qd:function(){O.receiveObjectTransfer=O.de;O.threadInitTLS=O.qd;O.setExitStatus=O.nd;noExitRuntime=!1},nd:function(a){wa=a},He:["$terminateWorker"],pd:function(){for(var a of O.Rb)db(a);for(a of O.Vb)db(a);O.Vb=[];O.Rb=[];O.Gb=[]},fe:function(a){var b=a.Cb;delete O.Gb[b];O.Vb.push(a);O.Rb.splice(O.Rb.indexOf(a),1);a.Cb=0;k&&a.unref();fb(b)},de:function(){},qd:function(){O.rd.forEach(a=>a())},Ud:a=>new Promise(b=>{a.onmessage=
f=>{f=f.data;var h=f.cmd;a.Cb&&(O.Hd=a.Cb);if(f.targetThread&&f.targetThread!=Nb()){var n=O.Gb[f.Ge];n?n.postMessage(f,f.transferList):w('Internal error! Worker sent a message "'+h+'" to target pthread '+f.targetThread+", but that thread no longer exists!")}else if("checkMailbox"===h)Ob();else if("spawnThread"===h)jb(f);else if("cleanupThread"===h)hb(f.thread);else if("killThread"===h)eb(f.thread);else if("cancelThread"===h)gb(f.thread);else if("loaded"===h)a.loaded=!0,k&&!a.Cb&&a.unref(),b(a);else if("print"===
h)sa("Thread "+f.threadId+": "+f.text);else if("printErr"===h)w("Thread "+f.threadId+": "+f.text);else if("alert"===h)alert("Thread "+f.threadId+": "+f.text);else if("setimmediate"===f.target)a.postMessage(f);else if("callHandler"===h)e[f.handler](...f.args);else h&&w("worker sent an unknown command "+h);O.Hd=void 0};a.onerror=f=>{w("worker sent an error! "+f.filename+":"+f.lineno+": "+f.message);throw f;};k&&(a.on("message",function(f){a.onmessage({data:f})}),a.on("error",function(f){a.onerror(f)}),
a.on("detachedExit",function(){}));var c=[],d=["onExit","onAbort","print","printErr"],g;for(g of d)e.hasOwnProperty(g)&&c.push(g);a.postMessage({cmd:"load",handlers:c,urlOrBlob:e.mainScriptUrlOrBlob||_scriptDir,wasmMemory:z,wasmModule:ua})}),Td:function(a){a()},wd:function(){var a=la("ffmpeg-core.worker.js");a=new Worker(a);O.Vb.push(a)},Md:function(){0==O.Vb.length&&(O.wd(),O.Ud(O.Vb[0]));return O.Vb.pop()}};e.PThread=O;function Qa(a){for(;0<a.length;)a.shift()(e)}var Pb=[];
function V(a){var b=Pb[a];b||(a>=Pb.length&&(Pb.length=a+1),Pb[a]=b=Ga.get(a));return b}e.establishStackSpace=function(){var a=Nb(),b=G[a+52>>2];Qb(b,b-G[a+56>>2]);W(b)};function Kb(a){if(m)return U(2,0,a);--Na;Jb(a)}e.invokeEntryPoint=function(a,b){Na=0;a=V(a)(b);Oa()?O.nd(a):Rb(a)};function Sb(a,b,c,d){return m?U(3,1,a,b,c,d):Tb(a,b,c,d)}
function Tb(a,b,c,d){if("undefined"==typeof SharedArrayBuffer)return w("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var g=[];if(m&&0===g.length)return Sb(a,b,c,d);a={he:c,Cb:a,xd:d,ne:g};return m?(a.qe="spawnThread",postMessage(a,g),0):jb(a)}
function Ub(a,b,c,d,g){if(m)return U(4,1,a,b,c,d,g);try{g=0;for(var f=b?G[b>>2]:0,h=b?G[b+4>>2]:0,n=c?G[c>>2]:0,p=c?G[c+4>>2]:0,r=d?G[d>>2]:0,q=d?G[d+4>>2]:0,t=0,B=0,l=0,x=0,u=0,I=0,Q=(b?G[b>>2]:0)|(c?G[c>>2]:0)|(d?G[d>>2]:0),ba=(b?G[b+4>>2]:0)|(c?G[c+4>>2]:0)|(d?G[d+4>>2]:0),R=0;R<a;R++){var C=1<<R%32;if(32>R?Q&C:ba&C){var kb=T(R),Ta=5;kb.ib.$b&&(Ta=kb.ib.$b(kb));Ta&1&&(32>R?f&C:h&C)&&(32>R?t|=C:B|=C,g++);Ta&4&&(32>R?n&C:p&C)&&(32>R?l|=C:x|=C,g++);Ta&2&&(32>R?r&C:q&C)&&(32>R?u|=C:I|=C,g++)}}b&&(G[b>>
2]=t,G[b+4>>2]=B);c&&(G[c>>2]=l,G[c+4>>2]=x);d&&(G[d>>2]=u,G[d+4>>2]=I);return g}catch(lb){if("undefined"==typeof K||"ErrnoError"!==lb.name)throw lb;return-lb.kb}}
var L={nb:function(){e.websocket=e.websocket&&"object"===typeof e.websocket?e.websocket:{};e.websocket.wc={};e.websocket.on=function(a,b){"function"===typeof b&&(this.wc[a]=b);return this};e.websocket.emit=function(a,b){"function"===typeof this.wc[a]&&this.wc[a].call(this,b)};return K.createNode(null,"/",16895,0)},createSocket:function(a,b,c){b&=-526337;if(1==b&&c&&6!=c)throw new K.gb(66);a={family:a,type:b,protocol:c,qb:null,error:null,jc:{},pending:[],ac:[],vb:L.sb};b=L.rc();c=K.createNode(L.root,
b,49152,0);c.bc=a;b=K.yc({path:b,node:c,flags:2,seekable:!1,ib:L.ib});a.stream=b;return a},Nd:function(a){return(a=K.Kb(a))&&K.isSocket(a.node.mode)?a.node.bc:null},ib:{$b:function(a){a=a.node.bc;return a.vb.$b(a)},Xb:function(a,b,c){a=a.node.bc;return a.vb.Xb(a,b,c)},read:function(a,b,c,d){a=a.node.bc;d=a.vb.kd(a,d);if(!d)return 0;b.set(d.buffer,c);return d.buffer.length},write:function(a,b,c,d){a=a.node.bc;return a.vb.md(a,b,c,d)},close:function(a){a=a.node.bc;a.vb.close(a)}},rc:function(){L.rc.current||
(L.rc.current=0);return"socket["+L.rc.current++ +"]"},sb:{lc:function(a,b,c){if("object"==typeof b){var d=b;c=b=null}if(d)if(d._socket)b=d._socket.remoteAddress,c=d._socket.remotePort;else{c=/ws[s]?:\/\/([^:]+):(\d+)/.exec(d.url);if(!c)throw Error("WebSocket URL must be in the format ws(s)://address:port");b=c[1];c=parseInt(c[2],10)}else try{var g=e.websocket&&"object"===typeof e.websocket,f="ws://";g&&"string"===typeof e.websocket.url&&(f=e.websocket.url);if("ws://"===f||"wss://"===f){var h=b.split("/");
f=f+h[0]+":"+c+"/"+h.slice(1).join("/")}h="binary";g&&"string"===typeof e.websocket.subprotocol&&(h=e.websocket.subprotocol);var n=void 0;"null"!==h&&(n=h=h.replace(/^ +| +$/g,"").split(/ *, */));g&&null===e.websocket.subprotocol&&(n=void 0);d=new (k?require("ws"):WebSocket)(f,n);d.binaryType="arraybuffer"}catch(p){throw new K.gb(23);}b={ob:b,port:c,socket:d,mc:[]};L.sb.Rc(a,b);L.sb.Od(a,b);2===a.type&&"undefined"!=typeof a.Sb&&b.mc.push(new Uint8Array([255,255,255,255,112,111,114,116,(a.Sb&65280)>>
8,a.Sb&255]));return b},nc:function(a,b,c){return a.jc[b+":"+c]},Rc:function(a,b){a.jc[b.ob+":"+b.port]=b},ld:function(a,b){delete a.jc[b.ob+":"+b.port]},Od:function(a,b){function c(){e.websocket.emit("open",a.stream.fd);try{for(var f=b.mc.shift();f;)b.socket.send(f),f=b.mc.shift()}catch(h){b.socket.close()}}function d(f){if("string"==typeof f)f=(new TextEncoder).encode(f);else{void 0!==f.byteLength||y();if(0==f.byteLength)return;f=new Uint8Array(f)}var h=g;g=!1;h&&10===f.length&&255===f[0]&&255===
f[1]&&255===f[2]&&255===f[3]&&112===f[4]&&111===f[5]&&114===f[6]&&116===f[7]?(f=f[8]<<8|f[9],L.sb.ld(a,b),b.port=f,L.sb.Rc(a,b)):(a.ac.push({ob:b.ob,port:b.port,data:f}),e.websocket.emit("message",a.stream.fd))}var g=!0;k?(b.socket.on("open",c),b.socket.on("message",function(f,h){h&&d((new Uint8Array(f)).buffer)}),b.socket.on("close",function(){e.websocket.emit("close",a.stream.fd)}),b.socket.on("error",function(){a.error=14;e.websocket.emit("error",[a.stream.fd,a.error,"ECONNREFUSED: Connection refused"])})):
(b.socket.onopen=c,b.socket.onclose=function(){e.websocket.emit("close",a.stream.fd)},b.socket.onmessage=function(f){d(f.data)},b.socket.onerror=function(){a.error=14;e.websocket.emit("error",[a.stream.fd,a.error,"ECONNREFUSED: Connection refused"])})},$b:function(a){if(1===a.type&&a.qb)return a.pending.length?65:0;var b=0,c=1===a.type?L.sb.nc(a,a.tb,a.wb):null;if(a.ac.length||!c||c&&c.socket.readyState===c.socket.CLOSING||c&&c.socket.readyState===c.socket.CLOSED)b|=65;if(!c||c&&c.socket.readyState===
c.socket.OPEN)b|=4;if(c&&c.socket.readyState===c.socket.CLOSING||c&&c.socket.readyState===c.socket.CLOSED)b|=16;return b},Xb:function(a,b,c){switch(b){case 21531:return b=0,a.ac.length&&(b=a.ac[0].data.length),G[c>>2]=b,0;default:return 28}},close:function(a){if(a.qb){try{a.qb.close()}catch(g){}a.qb=null}for(var b=Object.keys(a.jc),c=0;c<b.length;c++){var d=a.jc[b[c]];try{d.socket.close()}catch(g){}L.sb.ld(a,d)}return 0},bind:function(a,b,c){if("undefined"!=typeof a.sc||"undefined"!=typeof a.Sb)throw new K.gb(28);
a.sc=b;a.Sb=c;if(2===a.type){a.qb&&(a.qb.close(),a.qb=null);try{a.vb.listen(a,0)}catch(d){if("ErrnoError"!==d.name)throw d;if(138!==d.kb)throw d;}}},connect:function(a,b,c){if(a.qb)throw new K.gb(138);if("undefined"!=typeof a.tb&&"undefined"!=typeof a.wb){var d=L.sb.nc(a,a.tb,a.wb);if(d){if(d.socket.readyState===d.socket.CONNECTING)throw new K.gb(7);throw new K.gb(30);}}b=L.sb.lc(a,b,c);a.tb=b.ob;a.wb=b.port;throw new K.gb(26);},listen:function(a){if(!k)throw new K.gb(138);if(a.qb)throw new K.gb(28);
var b=require("ws").Server;a.qb=new b({host:a.sc,port:a.Sb});e.websocket.emit("listen",a.stream.fd);a.qb.on("connection",function(c){if(1===a.type){var d=L.createSocket(a.family,a.type,a.protocol);c=L.sb.lc(d,c);d.tb=c.ob;d.wb=c.port;a.pending.push(d);e.websocket.emit("connection",d.stream.fd)}else L.sb.lc(a,c),e.websocket.emit("connection",a.stream.fd)});a.qb.on("close",function(){e.websocket.emit("close",a.stream.fd);a.qb=null});a.qb.on("error",function(){a.error=23;e.websocket.emit("error",[a.stream.fd,
a.error,"EHOSTUNREACH: Host is unreachable"])})},accept:function(a){if(!a.qb||!a.pending.length)throw new K.gb(28);var b=a.pending.shift();b.stream.flags=a.stream.flags;return b},xe:function(a,b){if(b){if(void 0===a.tb||void 0===a.wb)throw new K.gb(53);b=a.tb;a=a.wb}else b=a.sc||0,a=a.Sb||0;return{ob:b,port:a}},md:function(a,b,c,d,g,f){if(2===a.type){if(void 0===g||void 0===f)g=a.tb,f=a.wb;if(void 0===g||void 0===f)throw new K.gb(17);}else g=a.tb,f=a.wb;var h=L.sb.nc(a,g,f);if(1===a.type){if(!h||
h.socket.readyState===h.socket.CLOSING||h.socket.readyState===h.socket.CLOSED)throw new K.gb(53);if(h.socket.readyState===h.socket.CONNECTING)throw new K.gb(6);}ArrayBuffer.isView(b)&&(c+=b.byteOffset,b=b.buffer);var n;b instanceof SharedArrayBuffer?n=(new Uint8Array(new Uint8Array(b.slice(c,c+d)))).buffer:n=b.slice(c,c+d);if(2===a.type&&(!h||h.socket.readyState!==h.socket.OPEN))return h&&h.socket.readyState!==h.socket.CLOSING&&h.socket.readyState!==h.socket.CLOSED||(h=L.sb.lc(a,g,f)),h.mc.push(n),
d;try{return h.socket.send(n),d}catch(p){throw new K.gb(28);}},kd:function(a,b){if(1===a.type&&a.qb)throw new K.gb(53);var c=a.ac.shift();if(!c){if(1===a.type){a=L.sb.nc(a,a.tb,a.wb);if(!a)throw new K.gb(53);if(a.socket.readyState===a.socket.CLOSING||a.socket.readyState===a.socket.CLOSED)return null}throw new K.gb(6);}var d=c.data.byteLength||c.data.length,g=c.data.byteOffset||0,f=c.data.buffer||c.data;b=Math.min(b,d);var h={buffer:new Uint8Array(f,g,b),ob:c.ob,port:c.port};1===a.type&&b<d&&(c.data=
new Uint8Array(f,g+b,d-b),a.ac.unshift(c));return h}}};function X(a){a=L.Nd(a);if(!a)throw new K.gb(8);return a}function Vb(a){a=a.split(".");for(var b=0;4>b;b++){var c=Number(a[b]);if(isNaN(c))return null;a[b]=c}return(a[0]|a[1]<<8|a[2]<<16|a[3]<<24)>>>0}
function Wb(a){var b,c,d=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(a))return null;if("::"===a)return[0,0,0,0,0,0,0,0];a=a.startsWith("::")?a.replace("::","Z:"):a.replace("::",":Z:");0<a.indexOf(".")?(a=a.replace(RegExp("[.]","g"),":"),a=a.split(":"),a[a.length-4]=parseInt(a[a.length-4])+256*parseInt(a[a.length-3]),a[a.length-3]=parseInt(a[a.length-2])+256*parseInt(a[a.length-
1]),a=a.slice(0,a.length-2)):a=a.split(":");for(b=c=0;b<a.length;b++)if("string"==typeof a[b])if("Z"===a[b]){for(c=0;c<8-a.length+1;c++)d[b+c]=0;--c}else d[b+c]=Xb(parseInt(a[b],16));else d[b+c]=a[b];return[d[1]<<16|d[0],d[3]<<16|d[2],d[5]<<16|d[4],d[7]<<16|d[6]]}
function Yb(a,b,c,d,g){switch(b){case 2:c=Vb(c);ib(a,16);g&&(G[g>>2]=16);F[a>>1]=b;G[a+4>>2]=c;F[a+2>>1]=Xb(d);break;case 10:c=Wb(c);ib(a,28);g&&(G[g>>2]=28);G[a>>2]=b;G[a+8>>2]=c[0];G[a+12>>2]=c[1];G[a+16>>2]=c[2];G[a+20>>2]=c[3];F[a+2>>1]=Xb(d);break;default:return 5}return 0}var Zb=1,$b={},ac={};
function bc(a){var b=Vb(a);if(null!==b)return a;b=Wb(a);if(null!==b)return a;$b[a]?b=$b[a]:(b=Zb++,65535>b||y("exceeded max address mappings of 65535"),b="172.29."+(b&255)+"."+(b&65280),ac[b]=a,$b[a]=b);return b}function cc(a,b,c,d){if(m)return U(5,1,a,b,c,d);try{var g=X(a),f=g.vb.accept(g);b&&Yb(b,f.family,bc(f.tb),f.wb,c);return f.stream.fd}catch(h){if("undefined"==typeof K||"ErrnoError"!==h.name)throw h;return-h.kb}}function dc(a){return(a&255)+"."+(a>>8&255)+"."+(a>>16&255)+"."+(a>>24&255)}
function ec(a){var b="",c,d=0,g=0,f=0,h=0;a=[a[0]&65535,a[0]>>16,a[1]&65535,a[1]>>16,a[2]&65535,a[2]>>16,a[3]&65535,a[3]>>16];var n=!0;for(c=0;5>c;c++)if(0!==a[c]){n=!1;break}if(n){c=dc(a[6]|a[7]<<16);if(-1===a[5])return"::ffff:"+c;if(0===a[5])return"0.0.0.0"===c&&(c=""),"0.0.0.1"===c&&(c="1"),"::"+c}for(c=0;8>c;c++)0===a[c]&&(1<c-g&&(h=0),g=c,h++),h>d&&(d=h,f=c-d+1);for(c=0;8>c;c++)1<d&&0===a[c]&&c>=f&&c<f+d?c===f&&(b+=":",0===f&&(b+=":")):(b+=Number(fc(a[c]&65535)).toString(16),b+=7>c?":":"");return b}
function gc(a,b){var c=F[a>>1],d=fc(Ca[a+2>>1]);switch(c){case 2:if(16!==b)return{kb:28};a=G[a+4>>2];a=dc(a);break;case 10:if(28!==b)return{kb:28};a=[G[a+8>>2],G[a+12>>2],G[a+16>>2],G[a+20>>2]];a=ec(a);break;default:return{kb:5}}return{family:c,ob:a,port:d}}function hc(a,b,c){if(c&&0===a)return null;a=gc(a,b);if(a.kb)throw new K.gb(a.kb);b=a.ob;a.ob=(ac[b]?ac[b]:null)||a.ob;return a}
function ic(a,b,c){if(m)return U(6,1,a,b,c);try{var d=X(a),g=hc(b,c);d.vb.bind(d,g.ob,g.port);return 0}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}function jc(a,b,c){if(m)return U(7,1,a,b,c);try{var d=X(a),g=hc(b,c);d.vb.connect(d,g.ob,g.port);return 0}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}
function kc(a,b,c,d){if(m)return U(8,1,a,b,c,d);try{b=A(b);b=Eb(a,b);if(c&-8)return-28;var g=K.lb(b,{xb:!0}).node;if(!g)return-44;a="";c&4&&(a+="r");c&2&&(a+="w");c&1&&(a+="x");return a&&K.Jb(g,a)?-2:0}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}
function lc(a,b,c){if(m)return U(9,1,a,b,c);Gb=c;try{var d=T(a);switch(b){case 0:var g=Hb();return 0>g?-28:K.yc(d,g).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return g=Hb(),d.flags|=g,0;case 5:return g=Hb(),F[g+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return G[mc()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}
function nc(a,b){if(m)return U(10,1,a,b);try{var c=T(a);return Fb(K.stat,c.path,b)}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return-d.kb}}
function oc(a,b,c){if(m)return U(11,1,a,b,c);try{var d=T(a);d.Lb||(d.Lb=K.readdir(d.path));a=0;for(var g=K.ub(d,0,1),f=Math.floor(g/280);f<d.Lb.length&&a+280<=c;){var h=d.Lb[f];if("."===h){var n=d.node.id;var p=4}else if(".."===h)n=K.lb(d.path,{parent:!0}).node.id,p=4;else{var r=K.zb(d.node,h);n=r.id;p=K.ec(r.mode)?2:K.pb(r.mode)?4:K.Mb(r.mode)?10:8}N=[n>>>0,(M=n,1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[b+a>>2]=N[0];
G[b+a+4>>2]=N[1];N=[280*(f+1)>>>0,(M=280*(f+1),1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[b+a+8>>2]=N[0];G[b+a+12>>2]=N[1];F[b+a+16>>1]=280;E[b+a+18>>0]=p;Aa(h,b+a+19,256);a+=280;f+=1}K.ub(d,280*f,0);return a}catch(q){if("undefined"==typeof K||"ErrnoError"!==q.name)throw q;return-q.kb}}
function pc(a,b,c){if(m)return U(12,1,a,b,c);try{var d=X(a);if(!d.tb)return-53;Yb(b,d.family,bc(d.tb),d.wb,c);return 0}catch(g){if("undefined"==typeof K||"ErrnoError"!==g.name)throw g;return-g.kb}}function qc(a,b,c){if(m)return U(13,1,a,b,c);try{w("__syscall_getsockname "+a);var d=X(a);Yb(b,d.family,bc(d.sc||"0.0.0.0"),d.Sb,c);return 0}catch(g){if("undefined"==typeof K||"ErrnoError"!==g.name)throw g;return-g.kb}}
function rc(a,b,c,d,g){if(m)return U(14,1,a,b,c,d,g);try{var f=X(a);return 1===b&&4===c?(G[d>>2]=f.error,G[g>>2]=4,f.error=null,0):-50}catch(h){if("undefined"==typeof K||"ErrnoError"!==h.name)throw h;return-h.kb}}
function sc(a,b,c){if(m)return U(15,1,a,b,c);Gb=c;try{var d=T(a);switch(b){case 21509:case 21505:return d.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.tty?0:-59;case 21519:if(!d.tty)return-59;var g=Hb();return G[g>>2]=0;case 21520:return d.tty?-28:-59;case 21531:return g=Hb(),K.Xb(d,b,g);case 21523:return d.tty?0:-59;case 21524:return d.tty?0:-59;default:return-28}}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}
function tc(a,b){if(m)return U(16,1,a,b);try{var c=X(a);c.vb.listen(c,b);return 0}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return-d.kb}}function uc(a,b){if(m)return U(17,1,a,b);try{return a=A(a),Fb(K.lstat,a,b)}catch(c){if("undefined"==typeof K||"ErrnoError"!==c.name)throw c;return-c.kb}}
function vc(a,b,c){if(m)return U(18,1,a,b,c);try{return b=A(b),b=Eb(a,b),b=P(b),"/"===b[b.length-1]&&(b=b.substr(0,b.length-1)),K.mkdir(b,c,0),0}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return-d.kb}}function wc(a,b,c,d){if(m)return U(19,1,a,b,c,d);try{b=A(b);var g=d&256;b=Eb(a,b,d&4096);return Fb(g?K.lstat:K.stat,b,c)}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}
function xc(a,b,c,d){if(m)return U(20,1,a,b,c,d);Gb=d;try{b=A(b);b=Eb(a,b);var g=d?Hb():0;return K.open(b,c,g).fd}catch(f){if("undefined"==typeof K||"ErrnoError"!==f.name)throw f;return-f.kb}}function yc(a,b,c){if(m)return U(21,1,a,b,c);try{for(var d=c=0;d<b;d++){var g=a+8*d,f=F[g+4>>1],h=32,n=K.Kb(G[g>>2]);n&&(h=5,n.ib.$b&&(h=n.ib.$b(n)));(h&=f|24)&&c++;F[g+6>>1]=h}return c}catch(p){if("undefined"==typeof K||"ErrnoError"!==p.name)throw p;return-p.kb}}
function zc(a,b,c,d,g,f){if(m)return U(22,1,a,b,c,d,g,f);try{var h=X(a),n=h.vb.kd(h,c);if(!n)return 0;g&&Yb(g,h.family,bc(n.ob),n.port,f);D.set(n.buffer,b);return n.buffer.byteLength}catch(p){if("undefined"==typeof K||"ErrnoError"!==p.name)throw p;return-p.kb}}function Ac(a,b,c,d){if(m)return U(23,1,a,b,c,d);try{return b=A(b),d=A(d),b=Eb(a,b),d=Eb(c,d),K.rename(b,d),0}catch(g){if("undefined"==typeof K||"ErrnoError"!==g.name)throw g;return-g.kb}}
function Bc(a){if(m)return U(24,1,a);try{return a=A(a),K.rmdir(a),0}catch(b){if("undefined"==typeof K||"ErrnoError"!==b.name)throw b;return-b.kb}}function Cc(a,b,c,d,g,f){if(m)return U(25,1,a,b,c,d,g,f);try{var h=X(a),n=hc(g,f,!0);return n?h.vb.md(h,E,b,c,n.ob,n.port):K.write(h.stream,E,b,c)}catch(p){if("undefined"==typeof K||"ErrnoError"!==p.name)throw p;return-p.kb}}
function Dc(a,b,c){if(m)return U(26,1,a,b,c);try{return L.createSocket(a,b,c).stream.fd}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return-d.kb}}function Ec(a,b){if(m)return U(27,1,a,b);try{return a=A(a),Fb(K.stat,a,b)}catch(c){if("undefined"==typeof K||"ErrnoError"!==c.name)throw c;return-c.kb}}
function Fc(a,b,c){if(m)return U(28,1,a,b,c);try{return b=A(b),b=Eb(a,b),0===c?K.unlink(b):512===c?K.rmdir(b):y("Invalid flags passed to unlinkat"),0}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return-d.kb}}function Gc(a){if(!Ma&&!va)try{if(a(),!Ma&&!Oa())try{m?Rb(wa):Jb(wa)}catch(b){Mb(b)}}catch(b){Mb(b)}}function Hc(a){"function"===typeof Atomics.pe&&(Atomics.pe(G,a>>2,a).value.then(Ob),Atomics.store(G,a+128>>2,1))}e.__emscripten_thread_mailbox_await=Hc;
function Ob(){var a=Nb();a&&(Hc(a),Gc(()=>Ic()))}e.checkMailbox=Ob;function Jc(a){return 0===a%4&&(0!==a%100||0===a%400)}var Kc=[0,31,60,91,121,152,182,213,244,274,305,335],Lc=[0,31,59,90,120,151,181,212,243,273,304,334];function Mc(a){return(Jc(a.getFullYear())?Kc:Lc)[a.getMonth()]+a.getDate()-1}
function Nc(a,b,c,d,g,f,h){if(m)return U(29,1,a,b,c,d,g,f,h);try{var n=T(d),p=K.Pb(n,a,g,b,c),r=p.jd;G[f>>2]=p.Sc;H[h>>2]=r;return 0}catch(q){if("undefined"==typeof K||"ErrnoError"!==q.name)throw q;return-q.kb}}function Oc(a,b,c,d,g,f){if(m)return U(30,1,a,b,c,d,g,f);try{var h=T(g);if(c&2){if(!K.isFile(h.node.mode))throw new K.gb(43);if(!(d&2)){var n=D.slice(a,a+b);K.Yb(h,n,f,b,d)}}}catch(p){if("undefined"==typeof K||"ErrnoError"!==p.name)throw p;return-p.kb}}var Pc={},Qc;
Qc=k?()=>{var a=process.hrtime();return 1E3*a[0]+a[1]/1E6}:()=>performance.timeOrigin+performance.now();function Rc(a,b){if(m)return U(31,1,a,b);Pc[a]&&(clearTimeout(Pc[a].id),delete Pc[a]);if(!b)return 0;var c=setTimeout(()=>{delete Pc[a];Gc(()=>Sc(a,Qc()))},b);Pc[a]={id:c,Ie:b};return 0}function Tc(a){var b=Ba(a)+1,c=Uc(b);c&&za(a,E,c,b);return c}function Vc(a){var b=Y();a=a();W(b);return a}
function U(a,b){var c=arguments.length-2,d=arguments;return Vc(()=>{for(var g=Wc(8*c),f=g>>3,h=0;h<c;h++)Ea[f+h]=d[2+h];return Xc(a,c,g,b)})}var Yc=[],Zc={};function $c(){if(!ad){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ha||"./this.program"},b;for(b in Zc)void 0===Zc[b]?delete a[b]:a[b]=Zc[b];var c=[];for(b in a)c.push(b+"="+a[b]);ad=c}return ad}var ad;
function bd(a,b,c){for(var d=0;d<a.length;++d)E[b++>>0]=a.charCodeAt(d);c||(E[b>>0]=0)}function cd(a,b){if(m)return U(32,1,a,b);var c=0;$c().forEach(function(d,g){var f=b+c;H[a+4*g>>2]=f;bd(d,f);c+=d.length+1});return 0}function dd(a,b){if(m)return U(33,1,a,b);var c=$c();H[a>>2]=c.length;var d=0;c.forEach(function(g){d+=g.length+1});H[b>>2]=d;return 0}
function ed(a){if(m)return U(34,1,a);try{var b=T(a);K.close(b);return 0}catch(c){if("undefined"==typeof K||"ErrnoError"!==c.name)throw c;return c.kb}}function fd(a,b){if(m)return U(35,1,a,b);try{var c=T(a);E[b>>0]=c.tty?2:K.pb(c.mode)?3:K.Mb(c.mode)?7:4;return 0}catch(d){if("undefined"==typeof K||"ErrnoError"!==d.name)throw d;return d.kb}}
function gd(a,b,c,d){if(m)return U(36,1,a,b,c,d);try{a:{var g=T(a);a=b;for(var f,h=b=0;h<c;h++){var n=H[a>>2],p=H[a+4>>2];a+=8;var r=K.read(g,E,n,p,f);if(0>r){var q=-1;break a}b+=r;if(r<p)break;"undefined"!==typeof f&&(f+=r)}q=b}H[d>>2]=q;return 0}catch(t){if("undefined"==typeof K||"ErrnoError"!==t.name)throw t;return t.kb}}
function hd(a,b,c,d,g){if(m)return U(37,1,a,b,c,d,g);try{b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(b))return 61;var f=T(a);K.ub(f,b,d);N=[f.position>>>0,(M=f.position,1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[g>>2]=N[0];G[g+4>>2]=N[1];f.Lb&&0===b&&0===d&&(f.Lb=null);return 0}catch(h){if("undefined"==typeof K||"ErrnoError"!==h.name)throw h;return h.kb}}
function jd(a,b,c,d){if(m)return U(38,1,a,b,c,d);try{a:{var g=T(a);a=b;for(var f,h=b=0;h<c;h++){var n=H[a>>2],p=H[a+4>>2];a+=8;var r=K.write(g,E,n,p,f);if(0>r){var q=-1;break a}b+=r;"undefined"!==typeof f&&(f+=r)}q=b}H[d>>2]=q;return 0}catch(t){if("undefined"==typeof K||"ErrnoError"!==t.name)throw t;return t.kb}}
function kd(a,b,c,d){function g(t,B,l,x,u,I){var Q=10===t?28:16;u=10===t?ec(u):dc(u);Q=Uc(Q);!Yb(Q,t,u,I)||y();u=Uc(32);G[u+4>>2]=t;G[u+8>>2]=B;G[u+12>>2]=l;G[u+24>>2]=x;H[u+20>>2]=Q;G[u+16>>2]=10===t?28:16;G[u+28>>2]=0;return u}if(m)return U(39,1,a,b,c,d);var f=0,h=0,n=0,p=0,r=0,q=0;c&&(n=G[c>>2],p=G[c+4>>2],r=G[c+8>>2],q=G[c+12>>2]);r&&!q&&(q=2===r?17:6);!r&&q&&(r=17===q?2:1);0===q&&(q=6);0===r&&(r=1);if(!a&&!b)return-2;if(n&-1088||0!==c&&G[c>>2]&2&&!a)return-1;if(n&32)return-2;if(0!==r&&1!==r&&
2!==r)return-7;if(0!==p&&2!==p&&10!==p)return-6;if(b&&(b=A(b),h=parseInt(b,10),isNaN(h)))return n&1024?-2:-8;if(!a)return 0===p&&(p=2),0===(n&1)&&(2===p?f=ld(2130706433):f=[0,0,0,1]),a=g(p,r,q,null,f,h),H[d>>2]=a,0;a=A(a);f=Vb(a);if(null!==f)if(0===p||2===p)p=2;else if(10===p&&n&8)f=[0,0,ld(65535),f],p=10;else return-2;else if(f=Wb(a),null!==f)if(0===p||10===p)p=10;else return-2;if(null!=f)return a=g(p,r,q,a,f,h),H[d>>2]=a,0;if(n&4)return-2;a=bc(a);f=Vb(a);0===p?p=2:10===p&&(f=[0,0,ld(65535),f]);
a=g(p,r,q,null,f,h);H[d>>2]=a;return 0}var md=[31,29,31,30,31,30,31,31,30,31,30,31],nd=[31,28,31,30,31,30,31,31,30,31,30,31];
function od(a,b,c,d){var g={string:r=>{var q=0;if(null!==r&&void 0!==r&&0!==r){var t=(r.length<<2)+1;q=Wc(t);Aa(r,q,t)}return q},array:r=>{var q=Wc(r.length);E.set(r,q);return q}};a=e["_"+a];var f=[],h=0;if(d)for(var n=0;n<d.length;n++){var p=g[c[n]];p?(0===h&&(h=Y()),f[n]=p(d[n])):f[n]=d[n]}c=a.apply(null,f);return c=function(r){0!==h&&W(h);return"string"===b?A(r):"boolean"===b?!!r:r}(c)}O.Wb();
function pd(a,b,c,d){a||(a=this);this.parent=a;this.nb=a.nb;this.hc=null;this.id=K.Yd++;this.name=b;this.mode=c;this.hb={};this.ib={};this.rdev=d}Object.defineProperties(pd.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},Sd:{get:function(){return K.pb(this.mode)}},Gc:{get:function(){return K.ec(this.mode)}}});K.sd=pd;K.ie();
var Db,qd=[null,Ib,Kb,Sb,Ub,cc,ic,jc,kc,lc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc,xc,yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Nc,Oc,Rc,cd,dd,ed,fd,gd,hd,jd,kd],Id={c:function(a,b,c,d){y("Assertion failed: "+A(a)+", at: "+[b?A(b):"unknown filename",c,d?A(d):"unknown function"])},J:function(a,b){V(a)(b)},Ca:function(){y("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},pa:function(a){rd(a,!ka,1,!ja);O.qd()},x:function(a){m?postMessage({cmd:"cleanupThread",thread:a}):
hb(a)},fa:Tb,da:function(a,b){33===b?m?postMessage({cmd:"cancelThread",thread:a}):gb(a):m?postMessage({cmd:"killThread",thread:a}):eb(a);return 0},$:Ub,T:cc,S:ic,R:jc,Da:kc,j:lc,ya:nc,ca:oc,Q:pc,P:qc,O:rc,B:sc,N:tc,va:uc,na:vc,wa:wc,z:xc,ha:yc,M:zc,ba:Ac,aa:Bc,L:Cc,w:Dc,xa:Ec,W:Fc,ga:function(){return 65536},Aa:function(){return!0},Y:function(a,b){a==b?setTimeout(()=>Ob()):m?postMessage({targetThread:a,cmd:"checkMailbox"}):(a=O.Gb[a])&&a.postMessage({cmd:"checkMailbox"})},ra:function(){return-1},
oa:Hc,U:function(){throw Infinity;},ka:function(a,b){a=new Date(1E3*(H[a>>2]+4294967296*G[a+4>>2]));G[b>>2]=a.getUTCSeconds();G[b+4>>2]=a.getUTCMinutes();G[b+8>>2]=a.getUTCHours();G[b+12>>2]=a.getUTCDate();G[b+16>>2]=a.getUTCMonth();G[b+20>>2]=a.getUTCFullYear()-1900;G[b+24>>2]=a.getUTCDay();G[b+28>>2]=(a.getTime()-Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0))/864E5|0},la:function(a,b){a=new Date(1E3*(H[a>>2]+4294967296*G[a+4>>2]));G[b>>2]=a.getSeconds();G[b+4>>2]=a.getMinutes();G[b+8>>2]=a.getHours();
G[b+12>>2]=a.getDate();G[b+16>>2]=a.getMonth();G[b+20>>2]=a.getFullYear()-1900;G[b+24>>2]=a.getDay();G[b+28>>2]=Mc(a)|0;G[b+36>>2]=-(60*a.getTimezoneOffset());var c=(new Date(a.getFullYear(),6,1)).getTimezoneOffset(),d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();G[b+32>>2]=(c!=d&&a.getTimezoneOffset()==Math.min(d,c))|0},ma:function(a){var b=new Date(G[a+20>>2]+1900,G[a+16>>2],G[a+12>>2],G[a+8>>2],G[a+4>>2],G[a>>2],0),c=G[a+32>>2],d=b.getTimezoneOffset(),g=(new Date(b.getFullYear(),6,1)).getTimezoneOffset(),
f=(new Date(b.getFullYear(),0,1)).getTimezoneOffset(),h=Math.min(f,g);0>c?G[a+32>>2]=Number(g!=f&&h==d):0<c!=(h==d)&&(g=Math.max(f,g),b.setTime(b.getTime()+6E4*((0<c?h:g)-d)));G[a+24>>2]=b.getDay();G[a+28>>2]=Mc(b)|0;G[a>>2]=b.getSeconds();G[a+4>>2]=b.getMinutes();G[a+8>>2]=b.getHours();G[a+12>>2]=b.getDate();G[a+16>>2]=b.getMonth();G[a+20>>2]=b.getYear();return b.getTime()/1E3|0},ia:Nc,ja:Oc,K:Rc,X:function(a,b,c){function d(p){return(p=p.toTimeString().match(/\(([A-Za-z ]+)\)$/))?p[1]:"GMT"}var g=
(new Date).getFullYear(),f=new Date(g,0,1),h=new Date(g,6,1);g=f.getTimezoneOffset();var n=h.getTimezoneOffset();H[a>>2]=60*Math.max(g,n);G[b>>2]=Number(g!=n);a=d(f);b=d(h);a=Tc(a);b=Tc(b);n<g?(H[c>>2]=a,H[c+4>>2]=b):(H[c>>2]=b,H[c+4>>2]=a)},b:function(){y("")},E:function(){y("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},y:function(){},p:function(){return Date.now()},za:function(){Na+=1;throw"unwind";},Z:function(){return D.length},
i:Qc,Ba:function(a,b,c){D.copyWithin(a,b,b+c)},_:function(){return k?require("os").cpus().length:navigator.hardwareConcurrency},qa:function(a,b,c){Yc.length=b;c>>=3;for(var d=0;d<b;d++)Yc[d]=Ea[c+d];return qd[a].apply(null,Yc)},V:function(){y("OOM")},Ea:function(){return Oa()},ea:function(){throw"unwind";},ta:cd,ua:dd,n:Jb,q:ed,sa:fd,A:gd,G:hd,t:jd,m:kd,l:function(a,b,c,d,g,f,h){b=gc(a,b);if(b.kb)return-6;a=b.port;var n=b.ob;b=!1;if(c&&d){var p;if(h&1||!(p=ac[n]?ac[n]:null)){if(h&8)return-2}else n=
p;c=Aa(n,c,d);c+1>=d&&(b=!0)}g&&f&&(c=Aa(""+a,g,f),c+1>=f&&(b=!0));return b?-12:0},F:sd,h:td,e:ud,o:vd,s:wd,C:xd,v:yd,I:zd,H:Ad,f:Bd,k:Cd,r:Dd,d:Ed,u:Fd,Fa:Gd,D:Hd,a:z||e.wasmMemory,g:function(a,b,c,d){function g(l,x,u){for(l="number"==typeof l?l.toString():l||"";l.length<x;)l=u[0]+l;return l}function f(l,x){return g(l,x,"0")}function h(l,x){function u(Q){return 0>Q?-1:0<Q?1:0}var I;0===(I=u(l.getFullYear()-x.getFullYear()))&&0===(I=u(l.getMonth()-x.getMonth()))&&(I=u(l.getDate()-x.getDate()));return I}
function n(l){switch(l.getDay()){case 0:return new Date(l.getFullYear()-1,11,29);case 1:return l;case 2:return new Date(l.getFullYear(),0,3);case 3:return new Date(l.getFullYear(),0,2);case 4:return new Date(l.getFullYear(),0,1);case 5:return new Date(l.getFullYear()-1,11,31);case 6:return new Date(l.getFullYear()-1,11,30)}}function p(l){var x=l.Tb;for(l=new Date((new Date(l.Ub+1900,0,1)).getTime());0<x;){var u=l.getMonth(),I=(Jc(l.getFullYear())?md:nd)[u];if(x>I-l.getDate())x-=I-l.getDate()+1,l.setDate(1),
11>u?l.setMonth(u+1):(l.setMonth(0),l.setFullYear(l.getFullYear()+1));else{l.setDate(l.getDate()+x);break}}u=new Date(l.getFullYear()+1,0,4);x=n(new Date(l.getFullYear(),0,4));u=n(u);return 0>=h(x,l)?0>=h(u,l)?l.getFullYear()+1:l.getFullYear():l.getFullYear()-1}var r=G[d+40>>2];d={le:G[d>>2],ke:G[d+4>>2],uc:G[d+8>>2],Oc:G[d+12>>2],vc:G[d+16>>2],Ub:G[d+20>>2],Db:G[d+24>>2],Tb:G[d+28>>2],Je:G[d+32>>2],je:G[d+36>>2],me:r?A(r):""};c=A(c);r={"%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"};for(var q in r)c=c.replace(new RegExp(q,"g"),r[q]);var t="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),B="January February March April May June July August September October November December".split(" ");
r={"%a":function(l){return t[l.Db].substring(0,3)},"%A":function(l){return t[l.Db]},"%b":function(l){return B[l.vc].substring(0,3)},"%B":function(l){return B[l.vc]},"%C":function(l){return f((l.Ub+1900)/100|0,2)},"%d":function(l){return f(l.Oc,2)},"%e":function(l){return g(l.Oc,2," ")},"%g":function(l){return p(l).toString().substring(2)},"%G":function(l){return p(l)},"%H":function(l){return f(l.uc,2)},"%I":function(l){l=l.uc;0==l?l=12:12<l&&(l-=12);return f(l,2)},"%j":function(l){for(var x=0,u=0;u<=
l.vc-1;x+=(Jc(l.Ub+1900)?md:nd)[u++]);return f(l.Oc+x,3)},"%m":function(l){return f(l.vc+1,2)},"%M":function(l){return f(l.ke,2)},"%n":function(){return"\n"},"%p":function(l){return 0<=l.uc&&12>l.uc?"AM":"PM"},"%S":function(l){return f(l.le,2)},"%t":function(){return"\t"},"%u":function(l){return l.Db||7},"%U":function(l){return f(Math.floor((l.Tb+7-l.Db)/7),2)},"%V":function(l){var x=Math.floor((l.Tb+7-(l.Db+6)%7)/7);2>=(l.Db+371-l.Tb-2)%7&&x++;if(x)53==x&&(u=(l.Db+371-l.Tb)%7,4==u||3==u&&Jc(l.Ub)||
(x=1));else{x=52;var u=(l.Db+7-l.Tb-1)%7;(4==u||5==u&&Jc(l.Ub%400-1))&&x++}return f(x,2)},"%w":function(l){return l.Db},"%W":function(l){return f(Math.floor((l.Tb+7-(l.Db+6)%7)/7),2)},"%y":function(l){return(l.Ub+1900).toString().substring(2)},"%Y":function(l){return l.Ub+1900},"%z":function(l){l=l.je;var x=0<=l;l=Math.abs(l)/60;return(x?"+":"-")+String("0000"+(l/60*100+l%60)).slice(-4)},"%Z":function(l){return l.me},"%%":function(){return"%"}};c=c.replace(/%%/g,"\x00\x00");for(q in r)c.includes(q)&&
(c=c.replace(new RegExp(q,"g"),r[q](d)));c=c.replace(/\0\0/g,"%");q=tb(c,!1);if(q.length>b)return 0;E.set(q,a);return q.length-1}};(function(){function a(c,d){c=c.exports;e.asm=c;O.rd.push(e.asm.Oa);Ga=e.asm.Ia;Ia.unshift(e.asm.Ga);ua=d;O.Td(()=>Xa());return c}var b={a:Id};Wa();if(e.instantiateWasm)try{return e.instantiateWasm(b,a)}catch(c){w("Module.instantiateWasm callback failed with error: "+c),ca(c)}cb(b,function(c){a(c.instance,c.module)}).catch(ca);return{}})();
var Uc=e._malloc=function(){return(Uc=e._malloc=e.asm.Ha).apply(null,arguments)};function mc(){return(mc=e.asm.Ja).apply(null,arguments)}var Cb=e._fflush=function(){return(Cb=e._fflush=e.asm.Ka).apply(null,arguments)};function fc(){return(fc=e.asm.La).apply(null,arguments)}function Xb(){return(Xb=e.asm.Ma).apply(null,arguments)}e._main=function(){return(e._main=e.asm.Na).apply(null,arguments)};e.__emscripten_tls_init=function(){return(e.__emscripten_tls_init=e.asm.Oa).apply(null,arguments)};
var Nb=e._pthread_self=function(){return(Nb=e._pthread_self=e.asm.Pa).apply(null,arguments)};function Ab(){return(Ab=e.asm.Qa).apply(null,arguments)}var Jd=e.__emscripten_proxy_main=function(){return(Jd=e.__emscripten_proxy_main=e.asm.Ra).apply(null,arguments)};function Lb(){return(Lb=e.asm.Sa).apply(null,arguments)}var rd=e.__emscripten_thread_init=function(){return(rd=e.__emscripten_thread_init=e.asm.Ta).apply(null,arguments)};
e.__emscripten_thread_crashed=function(){return(e.__emscripten_thread_crashed=e.asm.Ua).apply(null,arguments)};function ld(){return(ld=e.asm.Va).apply(null,arguments)}function Xc(){return(Xc=e.asm.Wa).apply(null,arguments)}function fb(){return(fb=e.asm.Xa).apply(null,arguments)}var Rb=e.__emscripten_thread_exit=function(){return(Rb=e.__emscripten_thread_exit=e.asm.Ya).apply(null,arguments)};function Sc(){return(Sc=e.asm.Za).apply(null,arguments)}
var Ic=e.__emscripten_check_mailbox=function(){return(Ic=e.__emscripten_check_mailbox=e.asm._a).apply(null,arguments)};function Z(){return(Z=e.asm.$a).apply(null,arguments)}function Qb(){return(Qb=e.asm.ab).apply(null,arguments)}function Y(){return(Y=e.asm.bb).apply(null,arguments)}function W(){return(W=e.asm.cb).apply(null,arguments)}function Wc(){return(Wc=e.asm.db).apply(null,arguments)}
var Kd=e.dynCall_iiiijj=function(){return(Kd=e.dynCall_iiiijj=e.asm.eb).apply(null,arguments)},Ld=e.dynCall_iij=function(){return(Ld=e.dynCall_iij=e.asm.fb).apply(null,arguments)};e._ff_h264_cabac_tables=2550636;function ud(a,b,c){var d=Y();try{return V(a)(b,c)}catch(g){W(d);if(g!==g+0)throw g;Z(1,0)}}function Bd(a,b){var c=Y();try{V(a)(b)}catch(d){W(c);if(d!==d+0)throw d;Z(1,0)}}function Ed(a,b,c,d,g){var f=Y();try{V(a)(b,c,d,g)}catch(h){W(f);if(h!==h+0)throw h;Z(1,0)}}
function Cd(a,b,c){var d=Y();try{V(a)(b,c)}catch(g){W(d);if(g!==g+0)throw g;Z(1,0)}}function td(a,b){var c=Y();try{return V(a)(b)}catch(d){W(c);if(d!==d+0)throw d;Z(1,0)}}function wd(a,b,c,d,g){var f=Y();try{return V(a)(b,c,d,g)}catch(h){W(f);if(h!==h+0)throw h;Z(1,0)}}function yd(a,b,c,d,g,f,h,n,p){var r=Y();try{return V(a)(b,c,d,g,f,h,n,p)}catch(q){W(r);if(q!==q+0)throw q;Z(1,0)}}function Dd(a,b,c,d){var g=Y();try{V(a)(b,c,d)}catch(f){W(g);if(f!==f+0)throw f;Z(1,0)}}
function sd(a){var b=Y();try{return V(a)()}catch(c){W(b);if(c!==c+0)throw c;Z(1,0)}}function Fd(a,b,c,d,g,f){var h=Y();try{V(a)(b,c,d,g,f)}catch(n){W(h);if(n!==n+0)throw n;Z(1,0)}}function vd(a,b,c,d){var g=Y();try{return V(a)(b,c,d)}catch(f){W(g);if(f!==f+0)throw f;Z(1,0)}}function Hd(a,b,c,d,g,f,h,n,p){var r=Y();try{V(a)(b,c,d,g,f,h,n,p)}catch(q){W(r);if(q!==q+0)throw q;Z(1,0)}}function xd(a,b,c,d,g,f){var h=Y();try{return V(a)(b,c,d,g,f)}catch(n){W(h);if(n!==n+0)throw n;Z(1,0)}}
function Gd(a,b,c,d,g,f,h){var n=Y();try{V(a)(b,c,d,g,f,h)}catch(p){W(n);if(p!==p+0)throw p;Z(1,0)}}function zd(a,b,c,d,g,f,h,n){var p=Y();try{return Kd(a,b,c,d,g,f,h,n)}catch(r){W(p);if(r!==r+0)throw r;Z(1,0)}}function Ad(a,b,c,d){var g=Y();try{return Ld(a,b,c,d)}catch(f){W(g);if(f!==f+0)throw f;Z(1,0)}}e.UTF8ToString=A;e.stringToUTF8=Aa;e.lengthBytesUTF8=Ba;e.keepRuntimeAlive=Oa;e.wasmMemory=z;e.ccall=od;
e.cwrap=function(a,b,c,d){var g=!c||c.every(f=>"number"===f||"boolean"===f);return"string"!==b&&g&&!d?e["_"+a]:function(){return od(a,b,c,arguments,d)}};
e.setValue=function(a,b,c="i8"){c.endsWith("*")&&(c="*");switch(c){case "i1":E[a>>0]=b;break;case "i8":E[a>>0]=b;break;case "i16":F[a>>1]=b;break;case "i32":G[a>>2]=b;break;case "i64":N=[b>>>0,(M=b,1<=+Math.abs(M)?0<M?(Math.min(+Math.floor(M/4294967296),4294967295)|0)>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)];G[a>>2]=N[0];G[a+4>>2]=N[1];break;case "float":Da[a>>2]=b;break;case "double":Ea[a>>3]=b;break;case "*":H[a>>2]=b;break;default:y("invalid type for setValue: "+c)}};
e.writeAsciiToMemory=bd;e.ExitStatus=da;e.FS=K;e.PThread=O;var Md;Va=function Nd(){Md||Od();Md||(Va=Nd)};function Pd(a=[]){var b=Jd;Na+=1;a.unshift(ha);var c=a.length,d=Wc(4*(c+1)),g=d>>2;a.forEach(h=>{var n=g++,p=Ba(h)+1,r=Wc(p);za(h,E,r,p);G[n]=r});G[g]=0;try{var f=b(c,d);Jb(f,!0)}catch(h){Mb(h)}}
function Od(){var a=fa;function b(){if(!Md&&(Md=!0,e.calledRun=!0,!va)){Pa();m||Qa(Ja);aa(e);if(e.onRuntimeInitialized)e.onRuntimeInitialized();Qd&&Pd(a);if(!m){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var c=e.postRun.shift();La.unshift(c)}Qa(La)}}}if(!(0<Sa))if(m)aa(e),Pa(),startWorker(e);else{if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)Ra();Qa(Ha);0<Sa||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},
1);b()},1)):b())}}if(e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var Qd=!1;e.noInitialRun&&(Qd=!1);Od();e.exit=function(a){noExitRuntime=!1;Jb(a)};


  return createFFmpegCore.ready
}

);
})();
if (typeof exports === 'object' && typeof module === 'object')
  module.exports = createFFmpegCore;
else if (typeof define === 'function' && define['amd'])
  define([], function() { return createFFmpegCore; });
else if (typeof exports === 'object')
  exports["createFFmpegCore"] = createFFmpegCore;
