Newer
Older
safe_production_front / public / js-bak / decoder-pro-mt.js
dutingting on 8 Apr 212 KB 暂存
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,r=(e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href,async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o;(o=r).ready=new Promise(((e,r)=>{t=e,n=r})),(o=void 0!==o?o:{}).locateFile=function(e,r){return"decoder-pro-mt-worker.wasm"==e?"undefined"!=typeof JESSIBUCA_PRO_MT_WORKER_WASM_URL&&""!=JESSIBUCA_PRO_MT_WORKER_WASM_URL?JESSIBUCA_PRO_MT_WORKER_WASM_URL:r+e:"decoder-pro-mt-worker.worker.js"==e&&"undefined"!=typeof JESSIBUCA_PRO_MT_WORKER_JS_URL&&""!=JESSIBUCA_PRO_MT_WORKER_JS_URL?JESSIBUCA_PRO_MT_WORKER_JS_URL:r+e};var a,i,s,d=Object.assign({},o),l="./this.program",u=(e,r)=>{throw r},c="object"==typeof window,f="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p=o.ENVIRONMENT_IS_PTHREAD||!1,m="";function g(e){return o.locateFile?o.locateFile(e,m):m+e}if(h){const{createRequire:e}=await import("module");var v=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href),y=v("fs"),w=v("path");let r;m=f?w.dirname(m)+"/":v("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href)),a=(e,r)=>(e=ae(e)?new URL(e):w.normalize(e),y.readFileSync(e,r?void 0:"utf8")),s=e=>{var r=a(e,!0);return r.buffer||(r=new Uint8Array(r)),r},i=function(e,r,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=ae(e)?new URL(e):w.normalize(e),y.readFile(e,n?void 0:"utf8",((e,o)=>{e?t(e):r(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),u=(e,r)=>{throw process.exitCode=e,r},o.inspect=()=>"[Emscripten Module object]";try{r=v("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=r.Worker}else(c||f)&&(f?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h||(a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},f&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)}));h&&"undefined"==typeof performance&&(global.performance=v("perf_hooks").performance);var b=console.log.bind(console),_=console.error.bind(console);h&&(b=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.writeSync(1,r.join(" ")+"\n")},_=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.writeSync(2,r.join(" ")+"\n")});var E,k,S,C=o.print||b,A=o.printErr||_;Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&(u=o.quit),o.wasmBinary&&(E=o.wasmBinary),"object"!=typeof WebAssembly&&Z("no native wasm support detected");var P,T,D,I,F,$,M,R,B,U=!1;function x(e,r){e||Z(r)}function O(){var e=k.buffer;o.HEAP8=T=new Int8Array(e),o.HEAP16=I=new Int16Array(e),o.HEAPU8=D=new Uint8Array(e),o.HEAPU16=F=new Uint16Array(e),o.HEAP32=$=new Int32Array(e),o.HEAPU32=M=new Uint32Array(e),o.HEAPF32=R=new Float32Array(e),o.HEAPF64=B=new Float64Array(e)}var W=o.INITIAL_MEMORY||536870912;if(p)k=o.wasmMemory;else if(o.wasmMemory)k=o.wasmMemory;else if(!((k=new WebAssembly.Memory({initial:W/65536,maximum:W/65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw A("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"),h&&A("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");O(),W=k.buffer.byteLength;var j=[],L=[],V=[];function z(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)G(o.preRun.shift());Ye(j)}function N(){p||(o.noFSInit||je.init.initialized||je.init(),je.ignorePermissions=!1,Ye(L))}function H(){if(!p){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)X(o.postRun.shift());Ye(V)}}function G(e){j.unshift(e)}function q(e){L.unshift(e)}function X(e){V.unshift(e)}var K=0,J=null;function Y(e){K++,o.monitorRunDependencies&&o.monitorRunDependencies(K)}function Q(e){if(K--,o.monitorRunDependencies&&o.monitorRunDependencies(K),0==K&&J){var r=J;J=null,r()}}function Z(e){o.onAbort&&o.onAbort(e),A(e="Aborted("+e+")"),U=!0,P=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var ee,re,te,ne="data:application/octet-stream;base64,",oe=e=>e.startsWith(ne),ae=e=>e.startsWith("file://");function ie(e){if(e==ee&&E)return new Uint8Array(E);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function se(e){if(!E&&(c||f)){if("function"==typeof fetch&&!ae(e))return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>ie(e)));if(i)return new Promise(((r,t)=>{i(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>ie(e)))}function de(e,r,t){return se(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{A(`failed to asynchronously prepare wasm: ${e}`),Z(e)}))}function le(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||oe(r)||ae(r)||h||"function"!=typeof fetch?de(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return A(`wasm streaming compile failed: ${e}`),A("falling back to ArrayBuffer instantiation"),de(r,t,n)}))))}function ue(){var e={a:to};function r(e,r){return no=e.exports,ar(no.Y),er=no.$,q(no.T),S=r,Q(),no}if(Y(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){A(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return le(E,ee,e,(function(e){r(e.instance,e.module)})).catch(n),{}}function ce(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}o.locateFile?oe(ee="decoder-pro-mt-worker.wasm")||(ee=g(ee)):ee=new URL("decoder-pro-mt-worker.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href).href;var fe=e=>{e.terminate(),e.onmessage=e=>{}},he=e=>{var r=Je.pthreads[e];delete Je.pthreads[e],fe(r),ho(e),Je.runningWorkers.splice(Je.runningWorkers.indexOf(r),1),r.pthread_ptr=0},pe=e=>{Je.pthreads[e].postMessage({cmd:"cancel"})},me=e=>{var r=Je.pthreads[e];Je.returnWorkerToPool(r)},ge=e=>{var r=Je.getNewWorker();if(!r)return 6;Je.runningWorkers.push(r),Je.pthreads[e.pthread_ptr]=r,r.pthread_ptr=e.pthread_ptr;var t={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return h&&r.unref(),r.postMessage(t,e.transferList),0},ve=0,ye=()=>or||ve>0,we={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=we.isAbs(e),t="/"===e.substr(-1);return(e=we.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=we.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=we.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return we.normalize(e.join("/"))},join2:(e,r)=>we.normalize(e+"/"+r)},be=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(h)try{var e=v("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}Z("initRandomDevice")},_e=e=>(_e=be())(e),Ee={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:je.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=we.isAbs(n)}return(r?"/":"")+(e=we.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=Ee.resolve(e).substr(1),r=Ee.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var d=[];for(s=i;s<n.length;s++)d.push("..");return(d=d.concat(o.slice(i))).join("/")}},ke="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Se=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&ke)return ke.decode(e.buffer instanceof SharedArrayBuffer?e.slice(r,o):e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var d=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Ce=[],Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Pe=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function Te(e,r,t){var n=t>0?t:Ae(e)+1,o=new Array(n),a=Pe(e,o,0,o.length);return r&&(o.length=a),o}var De=()=>{if(!Ce.length){var e=null;if(h){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=y.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;Ce=Te(e,!0)}return Ce.shift()},Ie={ttys:[],init(){},shutdown(){},register(e,r){Ie.ttys[e]={input:[],output:[],ops:r},je.registerDevice(e,Ie.stream_ops)},stream_ops:{open(e){var r=Ie.ttys[e.node.rdev];if(!r)throw new je.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new je.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new je.ErrnoError(29)}if(void 0===s&&0===a)throw new je.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new je.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new je.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>De(),put_char(e,r){null===r||10===r?(C(Se(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(C(Se(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(A(Se(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(A(Se(e.output,0)),e.output=[])}}},Fe=e=>{Z()},$e={ops_table:null,mount:e=>$e.createNode(null,"/",16895,0),createNode(e,r,t,n){if(je.isBlkdev(t)||je.isFIFO(t))throw new je.ErrnoError(63);$e.ops_table||($e.ops_table={dir:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr,lookup:$e.node_ops.lookup,mknod:$e.node_ops.mknod,rename:$e.node_ops.rename,unlink:$e.node_ops.unlink,rmdir:$e.node_ops.rmdir,readdir:$e.node_ops.readdir,symlink:$e.node_ops.symlink},stream:{llseek:$e.stream_ops.llseek}},file:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr},stream:{llseek:$e.stream_ops.llseek,read:$e.stream_ops.read,write:$e.stream_ops.write,allocate:$e.stream_ops.allocate,mmap:$e.stream_ops.mmap,msync:$e.stream_ops.msync}},link:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr,readlink:$e.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$e.node_ops.getattr,setattr:$e.node_ops.setattr},stream:je.chrdev_stream_ops}});var o=je.createNode(e,r,t,n);return je.isDir(o.mode)?(o.node_ops=$e.ops_table.dir.node,o.stream_ops=$e.ops_table.dir.stream,o.contents={}):je.isFile(o.mode)?(o.node_ops=$e.ops_table.file.node,o.stream_ops=$e.ops_table.file.stream,o.usedBytes=0,o.contents=null):je.isLink(o.mode)?(o.node_ops=$e.ops_table.link.node,o.stream_ops=$e.ops_table.link.stream):je.isChrdev(o.mode)&&(o.node_ops=$e.ops_table.chrdev.node,o.stream_ops=$e.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=je.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,je.isDir(e.mode)?r.size=4096:je.isFile(e.mode)?r.size=e.usedBytes:je.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&$e.resizeFileStorage(e,r.size)},lookup(e,r){throw je.genericErrors[44]},mknod:(e,r,t,n)=>$e.createNode(e,r,t,n),rename(e,r,t){if(je.isDir(e.mode)){var n;try{n=je.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new je.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=je.lookupNode(e,r);for(var n in t.contents)throw new je.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=$e.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!je.isLink(e.mode))throw new je.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if($e.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&je.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new je.ErrnoError(28);return n},allocate(e,r,t){$e.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!je.isFile(e.node.mode))throw new je.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==T.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=Fe()))throw new je.ErrnoError(48);T.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>($e.stream_ops.write(e,r,0,n,t,!1),0)}},Me=(e,r,t,n)=>{var o=n?"":`al ${e}`;i(e,(t=>{x(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&Q()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&Y()},Re=(e,r,t,n,o,a)=>{je.createDataFile(e,r,t,n,o,a)},Be=o.preloadPlugins||[],Ue=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Be.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},xe=(e,r,t,n,o,a,i,s,d,l)=>{var u=r?Ee.resolve(we.join2(e,r)):e;function c(t){function c(t){l&&l(),s||Re(e,r,t,n,o,d),a&&a(),Q()}Ue(t,u,c,(()=>{i&&i(),Q()}))||c(t)}Y(),"string"==typeof t?Me(t,(e=>c(e)),i):c(t)},Oe=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},We=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},je={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=Ee.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new je.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=je.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=je.lookupNode(n,t[a]),o=we.join2(o,t[a]),je.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;je.isLink(n.mode);){var d=je.readlink(o);if(o=Ee.resolve(we.dirname(o),d),n=je.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new je.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(je.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%je.nameTable.length},hashAddNode(e){var r=je.hashName(e.parent.id,e.name);e.name_next=je.nameTable[r],je.nameTable[r]=e},hashRemoveNode(e){var r=je.hashName(e.parent.id,e.name);if(je.nameTable[r]===e)je.nameTable[r]=e.name_next;else for(var t=je.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=je.mayLookup(e);if(t)throw new je.ErrnoError(t,e);for(var n=je.hashName(e.id,r),o=je.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return je.lookup(e,r)},createNode(e,r,t,n){var o=new je.FSNode(e,r,t,n);return je.hashAddNode(o),o},destroyNode(e){je.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>je.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=je.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{return je.lookupNode(e,r),20}catch(e){}return je.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=je.lookupNode(e,r)}catch(e){return e.errno}var o=je.nodePermissions(e,"wx");if(o)return o;if(t){if(!je.isDir(n.mode))return 54;if(je.isRoot(n)||je.getPath(n)===je.cwd())return 10}else if(je.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?je.isLink(e.mode)?32:je.isDir(e.mode)&&("r"!==je.flagsToPermissionString(r)||512&r)?31:je.nodePermissions(e,je.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=je.MAX_OPEN_FDS;e++)if(!je.streams[e])return e;throw new je.ErrnoError(33)},getStreamChecked(e){var r=je.getStream(e);if(!r)throw new je.ErrnoError(8);return r},getStream:e=>je.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return je.FSStream||(je.FSStream=function(){this.shared={}},je.FSStream.prototype={},Object.defineProperties(je.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new je.FSStream,e),-1==r&&(r=je.nextfd()),e.fd=r,je.streams[r]=e,e},closeStream(e){je.streams[e]=null},chrdev_stream_ops:{open(e){var r=je.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new je.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){je.devices[e]={stream_ops:r}},getDevice:e=>je.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),je.syncFSRequests++,je.syncFSRequests>1&&A(`warning: ${je.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=je.getMounts(je.root.mount),n=0;function o(e){return je.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&je.root)throw new je.ErrnoError(10);if(!o&&!a){var i=je.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,je.isMountpoint(n))throw new je.ErrnoError(10);if(!je.isDir(n.mode))throw new je.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},d=e.mount(s);return d.mount=s,s.root=d,o?je.root=d:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),d},unmount(e){var r=je.lookupPath(e,{follow_mount:!1});if(!je.isMountpoint(r.node))throw new je.ErrnoError(28);var t=r.node,n=t.mounted,o=je.getMounts(n);Object.keys(je.nameTable).forEach((e=>{for(var r=je.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&je.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=je.lookupPath(e,{parent:!0}).node,o=we.basename(e);if(!o||"."===o||".."===o)throw new je.ErrnoError(28);var a=je.mayCreate(n,o);if(a)throw new je.ErrnoError(a);if(!n.node_ops.mknod)throw new je.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,je.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,je.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{je.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,je.mknod(e,r,t)),symlink(e,r){if(!Ee.resolve(e))throw new je.ErrnoError(44);var t=je.lookupPath(r,{parent:!0}).node;if(!t)throw new je.ErrnoError(44);var n=we.basename(r),o=je.mayCreate(t,n);if(o)throw new je.ErrnoError(o);if(!t.node_ops.symlink)throw new je.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=we.dirname(e),a=we.dirname(r),i=we.basename(e),s=we.basename(r);if(t=je.lookupPath(e,{parent:!0}).node,n=je.lookupPath(r,{parent:!0}).node,!t||!n)throw new je.ErrnoError(44);if(t.mount!==n.mount)throw new je.ErrnoError(75);var d,l=je.lookupNode(t,i),u=Ee.relative(e,a);if("."!==u.charAt(0))throw new je.ErrnoError(28);if("."!==(u=Ee.relative(r,o)).charAt(0))throw new je.ErrnoError(55);try{d=je.lookupNode(n,s)}catch(e){}if(l!==d){var c=je.isDir(l.mode),f=je.mayDelete(t,i,c);if(f)throw new je.ErrnoError(f);if(f=d?je.mayDelete(n,s,c):je.mayCreate(n,s))throw new je.ErrnoError(f);if(!t.node_ops.rename)throw new je.ErrnoError(63);if(je.isMountpoint(l)||d&&je.isMountpoint(d))throw new je.ErrnoError(10);if(n!==t&&(f=je.nodePermissions(t,"w")))throw new je.ErrnoError(f);je.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{je.hashAddNode(l)}}},rmdir(e){var r=je.lookupPath(e,{parent:!0}).node,t=we.basename(e),n=je.lookupNode(r,t),o=je.mayDelete(r,t,!0);if(o)throw new je.ErrnoError(o);if(!r.node_ops.rmdir)throw new je.ErrnoError(63);if(je.isMountpoint(n))throw new je.ErrnoError(10);r.node_ops.rmdir(r,t),je.destroyNode(n)},readdir(e){var r=je.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new je.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=je.lookupPath(e,{parent:!0}).node;if(!r)throw new je.ErrnoError(44);var t=we.basename(e),n=je.lookupNode(r,t),o=je.mayDelete(r,t,!1);if(o)throw new je.ErrnoError(o);if(!r.node_ops.unlink)throw new je.ErrnoError(63);if(je.isMountpoint(n))throw new je.ErrnoError(10);r.node_ops.unlink(r,t),je.destroyNode(n)},readlink(e){var r=je.lookupPath(e).node;if(!r)throw new je.ErrnoError(44);if(!r.node_ops.readlink)throw new je.ErrnoError(28);return Ee.resolve(je.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=je.lookupPath(e,{follow:!r}).node;if(!t)throw new je.ErrnoError(44);if(!t.node_ops.getattr)throw new je.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>je.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?je.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new je.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){je.chmod(e,r,!0)},fchmod(e,r){var t=je.getStreamChecked(e);je.chmod(t.node,r)},chown(e,r,t,n){var o;if(!(o="string"==typeof e?je.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new je.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){je.chown(e,r,t,!0)},fchown(e,r,t){var n=je.getStreamChecked(e);je.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new je.ErrnoError(28);var t;if(!(t="string"==typeof e?je.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new je.ErrnoError(63);if(je.isDir(t.mode))throw new je.ErrnoError(31);if(!je.isFile(t.mode))throw new je.ErrnoError(28);var n=je.nodePermissions(t,"w");if(n)throw new je.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=je.getStreamChecked(e);if(0==(2097155&t.flags))throw new je.ErrnoError(28);je.truncate(t.node,r)},utime(e,r,t){var n=je.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new je.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Oe(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=we.normalize(e);try{n=je.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new je.ErrnoError(20)}else n=je.mknod(e,t,0),a=!0;if(!n)throw new je.ErrnoError(44);if(je.isChrdev(n.mode)&&(r&=-513),65536&r&&!je.isDir(n.mode))throw new je.ErrnoError(54);if(!a){var i=je.mayOpen(n,r);if(i)throw new je.ErrnoError(i)}512&r&&!a&&je.truncate(n,0),r&=-131713;var s=je.createStream({node:n,path:je.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(je.readFiles||(je.readFiles={}),e in je.readFiles||(je.readFiles[e]=1)),s},close(e){if(je.isClosed(e))throw new je.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{je.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(je.isClosed(e))throw new je.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new je.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new je.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(1==(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.read)throw new je.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new je.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new je.ErrnoError(28);if(je.isClosed(e))throw new je.ErrnoError(8);if(0==(2097155&e.flags))throw new je.ErrnoError(8);if(je.isDir(e.node.mode))throw new je.ErrnoError(31);if(!e.stream_ops.write)throw new je.ErrnoError(28);e.seekable&&1024&e.flags&&je.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new je.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(je.isClosed(e))throw new je.ErrnoError(8);if(r<0||t<=0)throw new je.ErrnoError(28);if(0==(2097155&e.flags))throw new je.ErrnoError(8);if(!je.isFile(e.node.mode)&&!je.isDir(e.node.mode))throw new je.ErrnoError(43);if(!e.stream_ops.allocate)throw new je.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new je.ErrnoError(2);if(1==(2097155&e.flags))throw new je.ErrnoError(2);if(!e.stream_ops.mmap)throw new je.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new je.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=je.open(e,r.flags),o=je.stat(e).size,a=new Uint8Array(o);return je.read(n,a,0,o,0),"utf8"===r.encoding?t=Se(a,0):"binary"===r.encoding&&(t=a),je.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=je.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(Ae(r)+1),a=Pe(r,o,0,o.length);je.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");je.write(n,r,0,r.byteLength,void 0,t.canOwn)}je.close(n)},cwd:()=>je.currentPath,chdir(e){var r=je.lookupPath(e,{follow:!0});if(null===r.node)throw new je.ErrnoError(44);if(!je.isDir(r.node.mode))throw new je.ErrnoError(54);var t=je.nodePermissions(r.node,"x");if(t)throw new je.ErrnoError(t);je.currentPath=r.path},createDefaultDirectories(){je.mkdir("/tmp"),je.mkdir("/home"),je.mkdir("/home/web_user")},createDefaultDevices(){je.mkdir("/dev"),je.registerDevice(je.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),je.mkdev("/dev/null",je.makedev(1,3)),Ie.register(je.makedev(5,0),Ie.default_tty_ops),Ie.register(je.makedev(6,0),Ie.default_tty1_ops),je.mkdev("/dev/tty",je.makedev(5,0)),je.mkdev("/dev/tty1",je.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=_e(e).byteLength),e[--r]);je.createDevice("/dev","random",t),je.createDevice("/dev","urandom",t),je.mkdir("/dev/shm"),je.mkdir("/dev/shm/tmp")},createSpecialDirectories(){je.mkdir("/proc");var e=je.mkdir("/proc/self");je.mkdir("/proc/self/fd"),je.mount({mount(){var r=je.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=je.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?je.createDevice("/dev","stdin",o.stdin):je.symlink("/dev/tty","/dev/stdin"),o.stdout?je.createDevice("/dev","stdout",null,o.stdout):je.symlink("/dev/tty","/dev/stdout"),o.stderr?je.createDevice("/dev","stderr",null,o.stderr):je.symlink("/dev/tty1","/dev/stderr"),je.open("/dev/stdin",0),je.open("/dev/stdout",1),je.open("/dev/stderr",1)},ensureErrnoError(){je.ErrnoError||(je.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},je.ErrnoError.prototype=new Error,je.ErrnoError.prototype.constructor=je.ErrnoError,[44].forEach((e=>{je.genericErrors[e]=new je.ErrnoError(e),je.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){je.ensureErrnoError(),je.nameTable=new Array(4096),je.mount($e,{},"/"),je.createDefaultDirectories(),je.createDefaultDevices(),je.createSpecialDirectories(),je.filesystems={MEMFS:$e}},init(e,r,t){je.init.initialized=!0,je.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,je.createStandardStreams()},quit(){je.init.initialized=!1;for(var e=0;e<je.streams.length;e++){var r=je.streams[e];r&&je.close(r)}},findObject(e,r){var t=je.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=je.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=je.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=we.basename(e),n=je.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:je.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=we.join2(e,a);try{je.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=we.join2("string"==typeof e?e:je.getPath(e),r),i=We(n,o);return je.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:je.getPath(e),i=r?we.join2(e,r):e);var s=We(n,o),d=je.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),u=0,c=t.length;u<c;++u)l[u]=t.charCodeAt(u);t=l}je.chmod(d,146|s);var f=je.open(d,577);je.write(f,t,0,t.length,0,a),je.close(f),je.chmod(d,s)}},createDevice(e,r,t,n){var o=we.join2("string"==typeof e?e:je.getPath(e),r),a=We(!!t,!!n);je.createDevice.major||(je.createDevice.major=64);var i=je.makedev(je.createDevice.major++,0);return je.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var d;try{d=t()}catch(e){throw new je.ErrnoError(29)}if(void 0===d&&0===i)throw new je.ErrnoError(6);if(null==d)break;i++,r[n+s]=d}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new je.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),je.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new 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(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Te(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new je.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Te(o.responseText||"",!0)})(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,C("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!f)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var d=je.createFile(e,r,s,n,o);s.contents?d.contents=s.contents:s.url&&(d.contents=null,d.url=s.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function u(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var r=d.stream_ops[e];l[e]=function(){return je.forceLoadFile(d),r.apply(null,arguments)}})),l.read=(e,r,t,n,o)=>(je.forceLoadFile(d),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{je.forceLoadFile(d);var a=Fe();if(!a)throw new je.ErrnoError(48);return u(e,T,a,r,t),{ptr:a,allocated:!0}},d.stream_ops=l,d}},Le=(e,r)=>e?Se(D,e,r):"",Ve={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(we.isAbs(r))return r;var n;if(n=-100===e?je.cwd():Ve.getStreamFromFD(e).path,0==r.length){if(!t)throw new je.ErrnoError(44);return n}return we.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&we.normalize(r)!==we.normalize(je.getPath(e.node)))return-54;throw e}$[t>>2]=n.dev,$[t+4>>2]=n.mode,M[t+8>>2]=n.nlink,$[t+12>>2]=n.uid,$[t+16>>2]=n.gid,$[t+20>>2]=n.rdev,te=[n.size>>>0,(re=n.size,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+24>>2]=te[0],$[t+28>>2]=te[1],$[t+32>>2]=4096,$[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return te=[Math.floor(o/1e3)>>>0,(re=Math.floor(o/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+40>>2]=te[0],$[t+44>>2]=te[1],M[t+48>>2]=o%1e3*1e3,te=[Math.floor(a/1e3)>>>0,(re=Math.floor(a/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+56>>2]=te[0],$[t+60>>2]=te[1],M[t+64>>2]=a%1e3*1e3,te=[Math.floor(i/1e3)>>>0,(re=Math.floor(i/1e3),+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+72>>2]=te[0],$[t+76>>2]=te[1],M[t+80>>2]=i%1e3*1e3,te=[n.ino>>>0,(re=n.ino,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[t+88>>2]=te[0],$[t+92>>2]=te[1],0},doMsync(e,r,t,n,o){if(!je.isFile(r.node.mode))throw new je.ErrnoError(43);if(2&n)return 0;var a=D.slice(e,e+t);je.msync(r,a,o,t,n)},varargs:void 0,get(){var e=$[+Ve.varargs>>2];return Ve.varargs+=4,e},getp:()=>Ve.get(),getStr:e=>Le(e),getStreamFromFD:e=>je.getStreamChecked(e)},ze=e=>{var r=vo(),t=e();return yo(r),t},Ne=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,He=function(e,r){var t=arguments.length-2,n=arguments;return ze((()=>{for(var o=t,a=wo(8*o),i=a>>3,s=0;s<t;s++){var d=n[2+s];B[i+s]=d}return fo(e,o,a,r)}))};function Ge(e){if(p)return He(0,1,e);P=e,ye()||(Je.terminateAllThreads(),o.onExit&&o.onExit(e),U=!0),u(e,new ce(e))}var qe=(e,r)=>{if(P=e,p)throw Ze(e),"unwind";Ge(e)},Xe=qe,Ke=e=>{if(e instanceof ce||"unwind"==e)return P;u(1,e)},Je={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){p?Je.initWorker():Je.initMainThread()},initMainThread(){for(var e=4;e--;)Je.allocateUnusedWorker();G((()=>{Y(),Je.loadWasmModuleToAllWorkers((()=>Q()))}))},initWorker(){or=!1},setExitStatus:e=>{P=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Je.runningWorkers)fe(e);for(var e of Je.unusedWorkers)fe(e);Je.unusedWorkers=[],Je.runningWorkers=[],Je.pthreads=[]},returnWorkerToPool:e=>{var r=e.pthread_ptr;delete Je.pthreads[r],Je.unusedWorkers.push(e),Je.runningWorkers.splice(Je.runningWorkers.indexOf(e),1),e.pthread_ptr=0,ho(r)},receiveObjectTransfer(e){},threadInitTLS(){Je.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((r=>{e.onmessage=t=>{var n=t.data,a=n.cmd;if(n.targetThread&&n.targetThread!=io()){var i=Je.pthreads[n.targetThread];i?i.postMessage(n,n.transferList):A(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else"checkMailbox"===a?dn():"spawnThread"===a?ge(n):"cleanupThread"===a?me(n.thread):"killThread"===a?he(n.thread):"cancelThread"===a?pe(n.thread):"loaded"===a?(e.loaded=!0,h&&!e.pthread_ptr&&e.unref(),r(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?o[n.handler](...n.args):a&&A(`worker sent an unknown command ${a}`)},e.onerror=e=>{throw A(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},h&&(e.on("message",(r=>e.onmessage({data:r}))),e.on("error",(r=>e.onerror(r))));var t=[];for(var n of["onExit","onAbort","print","printErr"])o.hasOwnProperty(n)&&t.push(n);e.postMessage({cmd:"load",handlers:t,urlOrBlob:o.mainScriptUrlOrBlob,wasmMemory:k,wasmModule:S})})),loadWasmModuleToAllWorkers(e){if(p)return e();Promise.all(Je.unusedWorkers.map(Je.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(o.locateFile){var r=g("decoder-pro-mt-worker.worker.js");e=new Worker(r,{type:"module"})}else e=new Worker(new URL("decoder-pro-mt-worker.worker.js","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href),{type:"module"});Je.unusedWorkers.push(e)},getNewWorker:()=>(0==Je.unusedWorkers.length&&(Je.allocateUnusedWorker(),Je.loadWasmModuleToWorker(Je.unusedWorkers[0])),Je.unusedWorkers.pop())};o.PThread=Je;var Ye=e=>{for(;e.length>0;)e.shift()(o)},Qe=()=>{var e=io(),r=M[e+52>>2],t=M[e+56>>2];go(r,r-t),yo(r)};function Ze(e){if(p)return He(1,0,e);Xe(e)}o.establishStackSpace=Qe;var er,rr=[],tr=e=>{var r=rr[e];return r||(e>=rr.length&&(rr.length=e+1),rr[e]=r=er.get(e)),r},nr=(e,r)=>{!function(e){ye()?Je.setExitStatus(e):po(e)}(tr(e)(r))};o.invokeEntryPoint=nr;var or=o.noExitRuntime||!0,ar=e=>{Je.tlsInitFunctions.push(e)},ir=(e,r,t,n)=>{Z(`Assertion failed: ${Le(e)}, at: `+[r?Le(r):"unknown filename",t,n?Le(n):"unknown function"])};function sr(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){M[this.ptr+4>>2]=e},this.get_type=function(){return M[this.ptr+4>>2]},this.set_destructor=function(e){M[this.ptr+8>>2]=e},this.get_destructor=function(){return M[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,T[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=T[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,T[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=T[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){M[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return M[this.ptr+16>>2]},this.get_exception_ptr=function(){if(bo(this.get_type()))return M[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var dr=(e,r,t)=>{throw new sr(e).init(r,t),e},lr=e=>{uo(e,!f,1,!c,2097152,!1),Je.threadInitTLS()},ur=e=>{p?postMessage({cmd:"cleanupThread",thread:e}):me(e)};function cr(e,r,t,n){return p?He(2,1,e,r,t,n):fr(e,r,t,n)}var fr=(e,r,t,n)=>{if("undefined"==typeof SharedArrayBuffer)return A("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];if(p&&0===o.length)return cr(e,r,t,n);var a={startRoutine:t,pthread_ptr:e,arg:n,transferList:o};return p?(a.cmd="spawnThread",postMessage(a,o),0):ge(a)},hr=e=>($[so()>>2]=e,e);function pr(e,r,t){if(p)return He(3,1,e,r,t);Ve.varargs=t;try{var n=Ve.getStreamFromFD(e);switch(r){case 0:if((o=Ve.get())<0)return-28;for(;je.streams[o];)o++;return je.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Ve.get();return n.flags|=o,0;case 5:return o=Ve.getp(),I[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return hr(28),-1}}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}}function mr(e,r,t,n){if(p)return He(4,1,e,r,t,n);Ve.varargs=n;try{r=Ve.getStr(r),r=Ve.calculateAt(e,r);var o=n?Ve.get():0;return je.open(r,t,o).fd}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return-e.errno}}var gr,vr,yr,wr=(e,r,t,n,o)=>{},br=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);gr=e},_r=e=>{for(var r="",t=e;D[t];)r+=gr[D[t++]];return r},Er={},kr={},Sr={},Cr=e=>{throw new vr(e)},Ar=e=>{throw new yr(e)},Pr=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ar("Mismatched type converter count");for(var o=0;o<e.length;++o)Dr(e[o],n[o])}e.forEach((function(e){Sr[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{kr.hasOwnProperty(e)?o[r]=kr[e]:(a.push(e),Er.hasOwnProperty(e)||(Er[e]=[]),Er[e].push((()=>{o[r]=kr[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Tr(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||Cr(`type "${n}" must have a positive integer typeid pointer`),kr.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Cr(`Cannot register type '${n}' twice`)}if(kr[e]=r,delete Sr[e],Er.hasOwnProperty(e)){var o=Er[e];delete Er[e],o.forEach((e=>e()))}}function Dr(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Tr(e,r,t)}var Ir,Fr=8,$r=(e,r,t,n)=>{Dr(e,{name:r=_r(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Fr,readValueFromPointer:function(e){return this.fromWireType(D[e])},destructorFunction:null})},Mr=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Rr=e=>{Cr(e.$$.ptrType.registeredClass.name+" instance already deleted")},Br=!1,Ur=e=>{},xr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Or=e=>{e.count.value-=1,0===e.count.value&&xr(e)},Wr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=Wr(e,r,t.baseClass);return null===n?null:t.downcast(n)},jr={},Lr=()=>Object.keys(qr).length,Vr=()=>{var e=[];for(var r in qr)qr.hasOwnProperty(r)&&e.push(qr[r]);return e},zr=[],Nr=()=>{for(;zr.length;){var e=zr.pop();e.$$.deleteScheduled=!1,e.delete()}},Hr=e=>{Ir=e,zr.length&&Ir&&Ir(Nr)},Gr=()=>{o.getInheritedInstanceCount=Lr,o.getLiveInheritedInstances=Vr,o.flushPendingDeletes=Nr,o.setDelayFunction=Hr},qr={},Xr=(e,r)=>{for(void 0===r&&Cr("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},Kr=(e,r)=>(r=Xr(e,r),qr[r]),Jr=(e,r)=>(r.ptrType&&r.ptr||Ar("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&Ar("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Qr(Object.create(e,{$$:{value:r}})));function Yr(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=Kr(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?Jr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):Jr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=jr[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=Wr(r,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?Jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):Jr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var Qr=e=>"undefined"==typeof FinalizationRegistry?(Qr=e=>e,e):(Br=new FinalizationRegistry((e=>{Or(e.$$)})),Qr=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Br.register(e,t,e)}return e},Ur=e=>Br.unregister(e),Qr(e)),Zr=()=>{Object.assign(et.prototype,{isAliasOf(e){if(!(this instanceof et))return!1;if(!(e instanceof et))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||Rr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Qr(Object.create(Object.getPrototypeOf(this),{$$:{value:Mr(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Rr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Cr("Object already scheduled for deletion"),Ur(this),Or(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Rr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Cr("Object already scheduled for deletion"),zr.push(this),1===zr.length&&Ir&&Ir(Nr),this.$$.deleteScheduled=!0,this}})};function et(){}var rt=(e,r)=>Object.defineProperty(r,"name",{value:e}),tt=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Cr(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},nt=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Cr(`Cannot register public name '${e}' twice`),tt(o,e,e),o.hasOwnProperty(t)&&Cr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},ot=48,at=57,it=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=ot&&r<=at?`_${e}`:e};function st(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var dt=(e,r,t)=>{for(;r!==t;)r.upcast||Cr(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function lt(e,r){if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return dt(r.$$.ptr,t,this.registeredClass)}function ut(e,r){var t;if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Cr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=dt(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Cr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Cr(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,Ot.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:Cr("Unsupporting sharing policy")}return t}function ct(e,r){if(null===r)return this.isReference&&Cr(`null is not a valid ${this.name}`),0;r.$$||Cr(`Cannot pass "${Lt(r)}" as a ${this.name}`),r.$$.ptr||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Cr(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return dt(r.$$.ptr,t,this.registeredClass)}function ft(e){return this.fromWireType(M[e>>2])}var ht=()=>{Object.assign(pt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Fr,readValueFromPointer:ft,deleteObject(e){null!==e&&e.delete()},fromWireType:Yr})};function pt(e,r,t,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=ut:n?(this.toWireType=lt,this.destructorFunction=null):(this.toWireType=ct,this.destructorFunction=null)}var mt,gt=(e,r,t)=>{o.hasOwnProperty(e)||Ar("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},vt=(e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},yt=(e,r,t)=>e.includes("j")?vt(e,r,t):tr(r).apply(null,t),wt=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),yt(e,r,t)}},bt=(e,r)=>{var t=(e=_r(e)).includes("j")?wt(e,r):tr(r);return"function"!=typeof t&&Cr(`unknown function pointer with signature ${e}: ${r}`),t},_t=(e,r)=>{var t=rt(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Et=e=>{var r=lo(e),t=_r(r);return oo(r),t},kt=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||kr[r]||(Sr[r]?Sr[r].forEach(e):(t.push(r),n[r]=!0))})),new mt(`${e}: `+t.map(Et).join([", "]))},St=(e,r,t,n,o,a,i,s,d,l,u,c,f)=>{u=_r(u),a=bt(o,a),s&&(s=bt(i,s)),l&&(l=bt(d,l)),f=bt(c,f);var h=it(u);nt(h,(function(){kt(`Cannot construct ${u} due to unbound types`,[n])})),Pr([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:et.prototype;var i=rt(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new vr("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new vr(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new vr(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new st(u,i,d,f,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new pt(u,c,!0,!1,!1),m=new pt(u+"*",c,!1,!1,!1),g=new pt(u+" const*",c,!1,!0,!1);return jr[e]={pointerType:m,constPointerType:g},gt(h,i),[p,m,g]}))},Ct=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(M[r+4*n>>2]);return t},At=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Pt(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=rt(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Tt(e,r,t,n,o,a){var i=r.length;i<2&&Cr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,d=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){d=!0;break}var u="void"!==r[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(h+="var destructors = [];\n");var p=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Cr,n,o,At,r[0],r[1]];for(s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n"),l=0;l<i-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+p+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),g.push(r[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)h+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[l].name+"\n",m.push(v+"_dtor"),g.push(r[l].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Pt(Function,m).apply(null,g);return rt(e,y)}var Dt=(e,r,t,n,o,a)=>{var i=Ct(r,t);o=bt(n,o),Pr([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new vr(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{kt(`Cannot construct ${e.name} due to unbound types`,i)},Pr([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Tt(t,n,null,o,a),[]))),[]}))},It=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Ft=(e,r,t,n,o,a,i,s,d)=>{var l=Ct(t,n);r=_r(r),r=It(r),a=bt(o,a),Pr([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){kt(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(tt(u,r,n),u[r].overloadTable[t-2]=o),Pr([],l,(function(o){var s=Tt(n,o,e,a,i,d);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function $t(){Object.assign(Mt.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Mt(){this.allocated=[void 0],this.freelist=[]}var Rt=new Mt,Bt=e=>{e>=Rt.reserved&&0==--Rt.get(e).refcount&&Rt.free(e)},Ut=()=>{for(var e=0,r=Rt.reserved;r<Rt.allocated.length;++r)void 0!==Rt.allocated[r]&&++e;return e},xt=()=>{Rt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Rt.reserved=Rt.allocated.length,o.count_emval_handles=Ut},Ot={toValue:e=>(e||Cr("Cannot use deleted val. handle = "+e),Rt.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Rt.allocate({refcount:1,value:e})}}};function Wt(e){return this.fromWireType($[e>>2])}var jt=(e,r)=>{Dr(e,{name:r=_r(r),fromWireType:e=>{var r=Ot.toValue(e);return Bt(e),r},toWireType:(e,r)=>Ot.toHandle(r),argPackAdvance:Fr,readValueFromPointer:Wt,destructorFunction:null})},Lt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Vt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(R[e>>2])};case 8:return function(e){return this.fromWireType(B[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},zt=(e,r,t)=>{Dr(e,{name:r=_r(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Fr,readValueFromPointer:Vt(r,t),destructorFunction:null})},Nt=(e,r,t)=>{switch(r){case 1:return t?e=>T[e>>0]:e=>D[e>>0];case 2:return t?e=>I[e>>1]:e=>F[e>>1];case 4:return t?e=>$[e>>2]:e=>M[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Ht=(e,r,t,n,o)=>{r=_r(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");Dr(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:Fr,readValueFromPointer:Nt(r,t,0!==n),destructorFunction:null})},Gt=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=M[e>>2],t=M[e+4>>2];return new n(T.buffer,t,r)}Dr(e,{name:t=_r(t),fromWireType:o,argPackAdvance:Fr,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},qt=(e,r,t)=>Pe(e,D,r,t),Xt=(e,r)=>{var t="std::string"===(r=_r(r));Dr(e,{name:r,fromWireType(e){var r,n=M[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==D[s]){var d=Le(a,s-a);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(D[o+i]);r=l.join("")}return oo(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Cr("Cannot pass non-string to std::string"),n=t&&o?Ae(r):r.length;var a=ao(4+n+1),i=a+4;if(M[a>>2]=n,t&&o)qt(r,i,n+1);else if(o)for(var s=0;s<n;++s){var d=r.charCodeAt(s);d>255&&(oo(i),Cr("String has UTF-16 code units that do not fit in 8 bits")),D[i+s]=d}else for(s=0;s<n;++s)D[i+s]=r[s];return null!==e&&e.push(oo,a),a},argPackAdvance:Fr,readValueFromPointer:ft,destructorFunction(e){oo(e)}})},Kt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Jt=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&F[n];)++n;if((t=n<<1)-e>32&&Kt)return Kt.decode(D.slice(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=I[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Yt=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);I[r>>1]=i,r+=2}return I[r>>1]=0,r-n},Qt=e=>2*e.length,Zt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=$[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},en=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),$[r>>2]=i,(r+=4)+4>o)break}return $[r>>2]=0,r-n},rn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},tn=(e,r,t)=>{var n,o,a,i,s;t=_r(t),2===r?(n=Jt,o=Yt,i=Qt,a=()=>F,s=1):4===r&&(n=Zt,o=en,i=rn,a=()=>M,s=2),Dr(e,{name:t,fromWireType:e=>{for(var t,o=M[e>>2],i=a(),d=e+4,l=0;l<=o;++l){var u=e+4+l*r;if(l==o||0==i[u>>s]){var c=n(d,u-d);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),d=u+r}}return oo(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Cr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),d=ao(4+a+r);return M[d>>2]=a>>s,o(n,d+4,a+r),null!==e&&e.push(oo,d),d},argPackAdvance:Fr,readValueFromPointer:Wt,destructorFunction(e){oo(e)}})},nn=(e,r)=>{Dr(e,{isVoid:!0,name:r=_r(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},on=()=>{if(!ye())try{p?po(P):Xe(P)}catch(e){Ke(e)}},an=e=>{if(!U)try{e(),on()}catch(e){Ke(e)}},sn=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync($,e>>2,e).value.then(dn);var r=e+128;Atomics.store($,r>>2,1)}};o.__emscripten_thread_mailbox_await=sn;var dn=()=>{var e=io();e&&(sn(e),an(mo))};o.checkMailbox=dn;var ln=(e,r,t)=>{if(e==r)setTimeout((()=>dn()));else if(p)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=Je.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},un=[],cn=(e,r,t,n)=>{un.length=t;for(var o=n>>3,a=0;a<t;a++)un[a]=B[o+a];var i=ro[e];Je.currentProxiedOperationCallerThread=r;var s=i.apply(null,un);return Je.currentProxiedOperationCallerThread=0,s},fn=e=>{h&&Je.pthreads[e].ref()},hn={},pn=e=>{var r=hn[e];return void 0===r?_r(e):r},mn=[],gn=(e,r,t,n,o)=>(e=mn[e])(r=Ot.toValue(r),r[t=pn(t)],n,o),vn=e=>{var r=mn.length;return mn.push(e),r},yn=(e,r)=>{var t=kr[e];return void 0===t&&Cr(r+" has unknown type "+Et(e)),t},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=yn(M[r+4*n>>2],"parameter "+n);return t},bn=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(M[r>>2]=Ot.toHandle(n)),o},_n=(e,r,t)=>{var n=wn(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;for(a+=`  var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push(bn),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=Pt(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return vn(rt(f,c))},En=e=>{var r=Ot.toValue(e);At(r),Bt(e)},kn=e=>e%4==0&&(e%100!=0||e%400==0),Sn=[0,31,60,91,121,152,182,213,244,274,305,335],Cn=[0,31,59,90,120,151,181,212,243,273,304,334],An=e=>(kn(e.getFullYear())?Sn:Cn)[e.getMonth()]+e.getDate()-1;function Pn(e,r,t){var n=Ne(e,r),o=new Date(1e3*n);$[t>>2]=o.getSeconds(),$[t+4>>2]=o.getMinutes(),$[t+8>>2]=o.getHours(),$[t+12>>2]=o.getDate(),$[t+16>>2]=o.getMonth(),$[t+20>>2]=o.getFullYear()-1900,$[t+24>>2]=o.getDay();var a=0|An(o);$[t+28>>2]=a,$[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=i.getTimezoneOffset(),l=0|(s!=d&&o.getTimezoneOffset()==Math.min(d,s));$[t+32>>2]=l}var Tn,Dn=e=>{var r=Ae(e)+1,t=ao(r);return t&&qt(e,t,r),t},In=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),d=Math.max(i,s);function l(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}M[e>>2]=60*d,$[r>>2]=Number(i!=s);var u=l(o),c=l(a),f=Dn(u),h=Dn(c);s<i?(M[t>>2]=f,M[t+4>>2]=h):(M[t>>2]=h,M[t+4>>2]=f)},Fn=()=>{Z("")},$n=()=>{},Mn=()=>Date.now(),Rn=()=>{ve+=1},Bn=()=>{throw Rn(),"unwind"};Tn=()=>performance.timeOrigin+performance.now();var Un=()=>h?v("os").cpus().length:navigator.hardwareConcurrency,xn=e=>{Z("OOM")},On=e=>{D.length,xn()},Wn={},jn=()=>l||"./this.program",Ln=()=>{if(!Ln.strings){var e={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",_:jn()};for(var r in Wn)void 0===Wn[r]?delete e[r]:e[r]=Wn[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Ln.strings=t}return Ln.strings},Vn=(e,r)=>{for(var t=0;t<e.length;++t)T[r++>>0]=e.charCodeAt(t);T[r>>0]=0},zn=function(e,r){if(p)return He(5,1,e,r);var t=0;return Ln().forEach(((n,o)=>{var a=r+t;M[e+4*o>>2]=a,Vn(n,a),t+=n.length+1})),0},Nn=function(e,r){if(p)return He(6,1,e,r);var t=Ln();M[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),M[r>>2]=n,0};function Hn(e){if(p)return He(7,1,e);try{var r=Ve.getStreamFromFD(e);return je.close(r),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}function Gn(e,r){if(p)return He(8,1,e,r);try{var t=Ve.getStreamFromFD(e),n=t.tty?2:je.isDir(t.mode)?3:je.isLink(t.mode)?7:4;return T[r>>0]=n,I[r+2>>1]=0,te=[0,(re=0,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[r+8>>2]=te[0],$[r+12>>2]=te[1],te=[0,(re=0,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[r+16>>2]=te[0],$[r+20>>2]=te[1],0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}var qn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=M[r>>2],s=M[r+4>>2];r+=8;var d=je.read(e,T,i,s,n);if(d<0)return-1;if(o+=d,d<s)break;void 0!==n&&(n+=d)}return o};function Xn(e,r,t,n){if(p)return He(9,1,e,r,t,n);try{var o=Ve.getStreamFromFD(e),a=qn(o,r,t);return M[n>>2]=a,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}function Kn(e,r,t,n,o){if(p)return He(10,1,e,r,t,n,o);var a=Ne(r,t);try{if(isNaN(a))return 61;var i=Ve.getStreamFromFD(e);return je.llseek(i,a,n),te=[i.position>>>0,(re=i.position,+Math.abs(re)>=1?re>0?+Math.floor(re/4294967296)>>>0:~~+Math.ceil((re-+(~~re>>>0))/4294967296)>>>0:0)],$[o>>2]=te[0],$[o+4>>2]=te[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}var Jn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=M[r>>2],s=M[r+4>>2];r+=8;var d=je.write(e,T,i,s,n);if(d<0)return-1;o+=d,void 0!==n&&(n+=d)}return o};function Yn(e,r,t,n){if(p)return He(11,1,e,r,t,n);try{var o=Ve.getStreamFromFD(e),a=Jn(o,r,t);return M[n>>2]=a,0}catch(e){if(void 0===je||"ErrnoError"!==e.name)throw e;return e.errno}}Je.init();var Qn=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=je.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},Zn=365,eo=146;Object.defineProperties(Qn.prototype,{read:{get:function(){return(this.mode&Zn)===Zn},set:function(e){e?this.mode|=Zn:this.mode&=~Zn}},write:{get:function(){return(this.mode&eo)===eo},set:function(e){e?this.mode|=eo:this.mode&=~eo}},isFolder:{get:function(){return je.isDir(this.mode)}},isDevice:{get:function(){return je.isChrdev(this.mode)}}}),je.FSNode=Qn,je.createPreloadedFile=xe,je.staticInit(),br(),vr=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},yr=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Zr(),Gr(),ht(),mt=o.UnboundTypeError=_t(Error,"UnboundTypeError"),$t(),xt();var ro=[Ge,Ze,cr,pr,mr,zn,Nn,Hn,Gn,Xn,Kn,Yn],to={g:ir,s:dr,G:lr,m:ur,B:fr,P:pr,D:mr,v:wr,R:$r,O:St,F:Dt,k:Ft,Q:jt,p:zt,d:Ht,c:Gt,q:Xt,l:tn,S:nn,y:ln,C:cn,E:sn,L:fn,j:gn,r:Bt,i:_n,h:En,t:Pn,x:In,b:Fn,n:$n,f:Mn,K:Bn,e:Tn,z:Un,w:On,I:zn,J:Nn,A:Xe,o:Hn,H:Gn,N:Xn,u:Kn,M:Yn,a:k||o.wasmMemory},no=ue(),oo=e=>(oo=no.U)(e),ao=e=>(ao=no.V)(e),io=o._pthread_self=()=>(io=o._pthread_self=no.W)(),so=()=>(so=no.X)();o.__emscripten_tls_init=()=>(o.__emscripten_tls_init=no.Y)();var lo=e=>(lo=no.Z)(e);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=no._)();var uo=o.__emscripten_thread_init=(e,r,t,n,a,i)=>(uo=o.__emscripten_thread_init=no.aa)(e,r,t,n,a,i);o.__emscripten_thread_crashed=()=>(o.__emscripten_thread_crashed=no.ba)();var co,fo=(e,r,t,n)=>(fo=no.ca)(e,r,t,n),ho=e=>(ho=no.da)(e),po=o.__emscripten_thread_exit=e=>(po=o.__emscripten_thread_exit=no.ea)(e),mo=()=>(mo=no.fa)(),go=(e,r)=>(go=no.ga)(e,r),vo=()=>(vo=no.ha)(),yo=e=>(yo=no.ia)(e),wo=e=>(wo=no.ja)(e),bo=e=>(bo=no.ka)(e);function _o(){if(!(K>0)){if(p)return t(o),N(),void startWorker(o);z(),K>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e())}function e(){co||(co=!0,o.calledRun=!0,U||(N(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),H()))}}if(o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=no.la)(e,r,t,n,a),o._ff_h264_cabac_tables=98997,o.wasmMemory=k,o.keepRuntimeAlive=ye,o.ExitStatus=ce,o.PThread=Je,J=function e(){co||_o(),co||(J=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return _o(),r.ready}),t=(()=>{var e="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href;return async function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,o;(o=r).ready=new Promise(((e,r)=>{t=e,n=r})),(o=void 0!==o?o:{}).locateFile=function(e,r){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:r+e};var a,i,s,d=Object.assign({},o),l="./this.program",u="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h="";function p(e){return o.locateFile?o.locateFile(e,h):h+e}if(f){const{createRequire:e}=await import("module");var m=e("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href),g=m("fs"),v=m("path");h=c?v.dirname(h)+"/":m("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href)),a=(e,r)=>(e=Q(e)?new URL(e):v.normalize(e),g.readFileSync(e,r?void 0:"utf8")),s=e=>{var r=a(e,!0);return r.buffer||(r=new Uint8Array(r)),r},i=function(e,r,t){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=Q(e)?new URL(e):v.normalize(e),g.readFile(e,n?void 0:"utf8",((e,o)=>{e?t(e):r(n?o.buffer:o)}))},!o.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),o.inspect=()=>"[Emscripten Module object]"}else(u||c)&&(c?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),e&&(h=e),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},c&&(s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)});var y,w,b=o.print||console.log.bind(console),_=o.printErr||console.error.bind(console);Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(y=o.wasmBinary),"object"!=typeof WebAssembly&&G("no native wasm support detected");var E,k,S,C,A,P,T,D,I=!1;function F(e,r){e||G(r)}function $(){var e=w.buffer;o.HEAP8=E=new Int8Array(e),o.HEAP16=S=new Int16Array(e),o.HEAPU8=k=new Uint8Array(e),o.HEAPU16=C=new Uint16Array(e),o.HEAP32=A=new Int32Array(e),o.HEAPU32=P=new Uint32Array(e),o.HEAPF32=T=new Float32Array(e),o.HEAPF64=D=new Float64Array(e)}var M=[],R=[],B=[];function U(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)W(o.preRun.shift());oe(M)}function x(){o.noFSInit||De.init.initialized||De.init(),De.ignorePermissions=!1,oe(R)}function O(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)L(o.postRun.shift());oe(B)}function W(e){M.unshift(e)}function j(e){R.unshift(e)}function L(e){B.unshift(e)}var V=0,z=null;function N(e){V++,o.monitorRunDependencies&&o.monitorRunDependencies(V)}function H(e){if(V--,o.monitorRunDependencies&&o.monitorRunDependencies(V),0==V&&z){var r=z;z=null,r()}}function G(e){o.onAbort&&o.onAbort(e),_(e="Aborted("+e+")"),I=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}var q,X,K,J="data:application/octet-stream;base64,",Y=e=>e.startsWith(J),Q=e=>e.startsWith("file://");function Z(e){if(e==q&&y)return new Uint8Array(y);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function ee(e){if(!y&&(u||c)){if("function"==typeof fetch&&!Q(e))return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()})).catch((()=>Z(e)));if(i)return new Promise(((r,t)=>{i(e,(e=>r(new Uint8Array(e))),t)}))}return Promise.resolve().then((()=>Z(e)))}function re(e,r,t){return ee(e).then((e=>WebAssembly.instantiate(e,r))).then((e=>e)).then(t,(e=>{_(`failed to asynchronously prepare wasm: ${e}`),G(e)}))}function te(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||Y(r)||Q(r)||f||"function"!=typeof fetch?re(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return _(`wasm streaming compile failed: ${e}`),_("falling back to ArrayBuffer instantiation"),re(r,t,n)}))))}function ne(){var e={a:hn};function r(e,r){return pn=e.exports,w=pn.G,$(),Mr=pn.L,j(pn.H),H(),pn}if(N(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){_(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return te(y,q,e,(function(e){r(e.instance)})).catch(n),{}}o.locateFile?Y(q="decoder-pro-audio.wasm")||(q=p(q)):q=new URL("decoder-pro-audio.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("decoder-pro-mt.js",document.baseURI).href).href;var oe=e=>{for(;e.length>0;)e.shift()(o)};function ae(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){P[this.ptr+4>>2]=e},this.get_type=function(){return P[this.ptr+4>>2]},this.set_destructor=function(e){P[this.ptr+8>>2]=e},this.get_destructor=function(){return P[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,E[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=E[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,E[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=E[this.ptr+13>>0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){P[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return P[this.ptr+16>>2]},this.get_exception_ptr=function(){if(wn(this.get_type()))return P[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}o.noExitRuntime;var ie=(e,r,t)=>{throw new ae(e).init(r,t),e},se=e=>(A[gn()>>2]=e,e),de={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=de.isAbs(e),t="/"===e.substr(-1);return(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=de.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=de.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return de.normalize(e.join("/"))},join2:(e,r)=>de.normalize(e+"/"+r)},le=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(f)try{var e=m("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}G("initRandomDevice")},ue=e=>(ue=le())(e),ce={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:De.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=de.isAbs(n)}return(r?"/":"")+(e=de.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=ce.resolve(e).substr(1),r=ce.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var d=[];for(s=i;s<n.length;s++)d.push("..");return(d=d.concat(o.slice(i))).join("/")}},fe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,he=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&fe)return fe.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var d=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|d:(7&i)<<18|s<<12|d<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},pe=[],me=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ge=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function ve(e,r,t){var n=t>0?t:me(e)+1,o=new Array(n),a=ge(e,o,0,o.length);return r&&(o.length=a),o}var ye=()=>{if(!pe.length){var e=null;if(f){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=g.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;pe=ve(e,!0)}return pe.shift()},we={ttys:[],init(){},shutdown(){},register(e,r){we.ttys[e]={input:[],output:[],ops:r},De.registerDevice(e,we.stream_ops)},stream_ops:{open(e){var r=we.ttys[e.node.rdev];if(!r)throw new De.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new De.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new De.ErrnoError(29)}if(void 0===s&&0===a)throw new De.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new De.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new De.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>ye(),put_char(e,r){null===r||10===r?(b(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(b(he(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(_(he(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(_(he(e.output,0)),e.output=[])}}},be=e=>{G()},_e={ops_table:null,mount:e=>_e.createNode(null,"/",16895,0),createNode(e,r,t,n){if(De.isBlkdev(t)||De.isFIFO(t))throw new De.ErrnoError(63);_e.ops_table||(_e.ops_table={dir:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,lookup:_e.node_ops.lookup,mknod:_e.node_ops.mknod,rename:_e.node_ops.rename,unlink:_e.node_ops.unlink,rmdir:_e.node_ops.rmdir,readdir:_e.node_ops.readdir,symlink:_e.node_ops.symlink},stream:{llseek:_e.stream_ops.llseek}},file:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:{llseek:_e.stream_ops.llseek,read:_e.stream_ops.read,write:_e.stream_ops.write,allocate:_e.stream_ops.allocate,mmap:_e.stream_ops.mmap,msync:_e.stream_ops.msync}},link:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,readlink:_e.node_ops.readlink},stream:{}},chrdev:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:De.chrdev_stream_ops}});var o=De.createNode(e,r,t,n);return De.isDir(o.mode)?(o.node_ops=_e.ops_table.dir.node,o.stream_ops=_e.ops_table.dir.stream,o.contents={}):De.isFile(o.mode)?(o.node_ops=_e.ops_table.file.node,o.stream_ops=_e.ops_table.file.stream,o.usedBytes=0,o.contents=null):De.isLink(o.mode)?(o.node_ops=_e.ops_table.link.node,o.stream_ops=_e.ops_table.link.stream):De.isChrdev(o.mode)&&(o.node_ops=_e.ops_table.chrdev.node,o.stream_ops=_e.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=De.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,De.isDir(e.mode)?r.size=4096:De.isFile(e.mode)?r.size=e.usedBytes:De.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&_e.resizeFileStorage(e,r.size)},lookup(e,r){throw De.genericErrors[44]},mknod:(e,r,t,n)=>_e.createNode(e,r,t,n),rename(e,r,t){if(De.isDir(e.mode)){var n;try{n=De.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new De.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=De.lookupNode(e,r);for(var n in t.contents)throw new De.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=_e.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!De.isLink(e.mode))throw new De.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===E.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(_e.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&De.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new De.ErrnoError(28);return n},allocate(e,r,t){_e.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!De.isFile(e.node.mode))throw new De.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==E.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=be()))throw new De.ErrnoError(48);E.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(_e.stream_ops.write(e,r,0,n,t,!1),0)}},Ee=(e,r,t,n)=>{var o=n?"":`al ${e}`;i(e,(t=>{F(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&H()}),(r=>{if(!t)throw`Loading data file "${e}" failed.`;t()})),o&&N()},ke=(e,r,t,n,o,a)=>{De.createDataFile(e,r,t,n,o,a)},Se=o.preloadPlugins||[],Ce=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return Se.forEach((a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)})),o},Ae=(e,r,t,n,o,a,i,s,d,l)=>{var u=r?ce.resolve(de.join2(e,r)):e;function c(t){function c(t){l&&l(),s||ke(e,r,t,n,o,d),a&&a(),H()}Ce(t,u,c,(()=>{i&&i(),H()}))||c(t)}N(),"string"==typeof t?Ee(t,(e=>c(e)),i):c(t)},Pe=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},Te=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},De={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(e=ce.resolve(e)))return{path:"",node:null};if(r=Object.assign({follow_mount:!0,recurse_count:0},r),r.recurse_count>8)throw new De.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=De.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=De.lookupNode(n,t[a]),o=de.join2(o,t[a]),De.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;De.isLink(n.mode);){var d=De.readlink(o);if(o=ce.resolve(de.dirname(o),d),n=De.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new De.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(De.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%De.nameTable.length},hashAddNode(e){var r=De.hashName(e.parent.id,e.name);e.name_next=De.nameTable[r],De.nameTable[r]=e},hashRemoveNode(e){var r=De.hashName(e.parent.id,e.name);if(De.nameTable[r]===e)De.nameTable[r]=e.name_next;else for(var t=De.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=De.mayLookup(e);if(t)throw new De.ErrnoError(t,e);for(var n=De.hashName(e.id,r),o=De.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return De.lookup(e,r)},createNode(e,r,t,n){var o=new De.FSNode(e,r,t,n);return De.hashAddNode(o),o},destroyNode(e){De.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>De.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){var r=De.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){try{De.lookupNode(e,r);return 20}catch(e){}return De.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=De.lookupNode(e,r)}catch(e){return e.errno}var o=De.nodePermissions(e,"wx");if(o)return o;if(t){if(!De.isDir(n.mode))return 54;if(De.isRoot(n)||De.getPath(n)===De.cwd())return 10}else if(De.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?De.isLink(e.mode)?32:De.isDir(e.mode)&&("r"!==De.flagsToPermissionString(r)||512&r)?31:De.nodePermissions(e,De.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=De.MAX_OPEN_FDS;e++)if(!De.streams[e])return e;throw new De.ErrnoError(33)},getStreamChecked(e){var r=De.getStream(e);if(!r)throw new De.ErrnoError(8);return r},getStream:e=>De.streams[e],createStream(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return De.FSStream||(De.FSStream=function(){this.shared={}},De.FSStream.prototype={},Object.defineProperties(De.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return 0!=(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new De.FSStream,e),-1==r&&(r=De.nextfd()),e.fd=r,De.streams[r]=e,e},closeStream(e){De.streams[e]=null},chrdev_stream_ops:{open(e){var r=De.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new De.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){De.devices[e]={stream_ops:r}},getDevice:e=>De.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),De.syncFSRequests++,De.syncFSRequests>1&&_(`warning: ${De.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=De.getMounts(De.root.mount),n=0;function o(e){return De.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach((r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)}))},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&De.root)throw new De.ErrnoError(10);if(!o&&!a){var i=De.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,De.isMountpoint(n))throw new De.ErrnoError(10);if(!De.isDir(n.mode))throw new De.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},d=e.mount(s);return d.mount=s,s.root=d,o?De.root=d:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),d},unmount(e){var r=De.lookupPath(e,{follow_mount:!1});if(!De.isMountpoint(r.node))throw new De.ErrnoError(28);var t=r.node,n=t.mounted,o=De.getMounts(n);Object.keys(De.nameTable).forEach((e=>{for(var r=De.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&De.destroyNode(r),r=t}})),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=De.lookupPath(e,{parent:!0}).node,o=de.basename(e);if(!o||"."===o||".."===o)throw new De.ErrnoError(28);var a=De.mayCreate(n,o);if(a)throw new De.ErrnoError(a);if(!n.node_ops.mknod)throw new De.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,De.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,De.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{De.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,De.mknod(e,r,t)),symlink(e,r){if(!ce.resolve(e))throw new De.ErrnoError(44);var t=De.lookupPath(r,{parent:!0}).node;if(!t)throw new De.ErrnoError(44);var n=de.basename(r),o=De.mayCreate(t,n);if(o)throw new De.ErrnoError(o);if(!t.node_ops.symlink)throw new De.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=de.dirname(e),a=de.dirname(r),i=de.basename(e),s=de.basename(r);if(t=De.lookupPath(e,{parent:!0}).node,n=De.lookupPath(r,{parent:!0}).node,!t||!n)throw new De.ErrnoError(44);if(t.mount!==n.mount)throw new De.ErrnoError(75);var d,l=De.lookupNode(t,i),u=ce.relative(e,a);if("."!==u.charAt(0))throw new De.ErrnoError(28);if("."!==(u=ce.relative(r,o)).charAt(0))throw new De.ErrnoError(55);try{d=De.lookupNode(n,s)}catch(e){}if(l!==d){var c=De.isDir(l.mode),f=De.mayDelete(t,i,c);if(f)throw new De.ErrnoError(f);if(f=d?De.mayDelete(n,s,c):De.mayCreate(n,s))throw new De.ErrnoError(f);if(!t.node_ops.rename)throw new De.ErrnoError(63);if(De.isMountpoint(l)||d&&De.isMountpoint(d))throw new De.ErrnoError(10);if(n!==t&&(f=De.nodePermissions(t,"w")))throw new De.ErrnoError(f);De.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{De.hashAddNode(l)}}},rmdir(e){var r=De.lookupPath(e,{parent:!0}).node,t=de.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!0);if(o)throw new De.ErrnoError(o);if(!r.node_ops.rmdir)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.rmdir(r,t),De.destroyNode(n)},readdir(e){var r=De.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new De.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=De.lookupPath(e,{parent:!0}).node;if(!r)throw new De.ErrnoError(44);var t=de.basename(e),n=De.lookupNode(r,t),o=De.mayDelete(r,t,!1);if(o)throw new De.ErrnoError(o);if(!r.node_ops.unlink)throw new De.ErrnoError(63);if(De.isMountpoint(n))throw new De.ErrnoError(10);r.node_ops.unlink(r,t),De.destroyNode(n)},readlink(e){var r=De.lookupPath(e).node;if(!r)throw new De.ErrnoError(44);if(!r.node_ops.readlink)throw new De.ErrnoError(28);return ce.resolve(De.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=De.lookupPath(e,{follow:!r}).node;if(!t)throw new De.ErrnoError(44);if(!t.node_ops.getattr)throw new De.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>De.stat(e,!0),chmod(e,r,t){var n;"string"==typeof e?n=De.lookupPath(e,{follow:!t}).node:n=e;if(!n.node_ops.setattr)throw new De.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){De.chmod(e,r,!0)},fchmod(e,r){var t=De.getStreamChecked(e);De.chmod(t.node,r)},chown(e,r,t,n){var o;"string"==typeof e?o=De.lookupPath(e,{follow:!n}).node:o=e;if(!o.node_ops.setattr)throw new De.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){De.chown(e,r,t,!0)},fchown(e,r,t){var n=De.getStreamChecked(e);De.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new De.ErrnoError(28);var t;"string"==typeof e?t=De.lookupPath(e,{follow:!0}).node:t=e;if(!t.node_ops.setattr)throw new De.ErrnoError(63);if(De.isDir(t.mode))throw new De.ErrnoError(31);if(!De.isFile(t.mode))throw new De.ErrnoError(28);var n=De.nodePermissions(t,"w");if(n)throw new De.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=De.getStreamChecked(e);if(0==(2097155&t.flags))throw new De.ErrnoError(28);De.truncate(t.node,r)},utime(e,r,t){var n=De.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new De.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?Pe(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=de.normalize(e);try{n=De.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new De.ErrnoError(20)}else n=De.mknod(e,t,0),a=!0;if(!n)throw new De.ErrnoError(44);if(De.isChrdev(n.mode)&&(r&=-513),65536&r&&!De.isDir(n.mode))throw new De.ErrnoError(54);if(!a){var i=De.mayOpen(n,r);if(i)throw new De.ErrnoError(i)}512&r&&!a&&De.truncate(n,0),r&=-131713;var s=De.createStream({node:n,path:De.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(De.readFiles||(De.readFiles={}),e in De.readFiles||(De.readFiles[e]=1)),s},close(e){if(De.isClosed(e))throw new De.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{De.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new De.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new De.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(1==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.read)throw new De.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new De.ErrnoError(28);if(De.isClosed(e))throw new De.ErrnoError(8);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(De.isDir(e.node.mode))throw new De.ErrnoError(31);if(!e.stream_ops.write)throw new De.ErrnoError(28);e.seekable&&1024&e.flags&&De.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new De.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(De.isClosed(e))throw new De.ErrnoError(8);if(r<0||t<=0)throw new De.ErrnoError(28);if(0==(2097155&e.flags))throw new De.ErrnoError(8);if(!De.isFile(e.node.mode)&&!De.isDir(e.node.mode))throw new De.ErrnoError(43);if(!e.stream_ops.allocate)throw new De.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&e.flags))throw new De.ErrnoError(2);if(1==(2097155&e.flags))throw new De.ErrnoError(2);if(!e.stream_ops.mmap)throw new De.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new De.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=De.open(e,r.flags),o=De.stat(e).size,a=new Uint8Array(o);return De.read(n,a,0,o,0),"utf8"===r.encoding?t=he(a,0):"binary"===r.encoding&&(t=a),De.close(n),t},writeFile(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=De.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(me(r)+1),a=ge(r,o,0,o.length);De.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");De.write(n,r,0,r.byteLength,void 0,t.canOwn)}De.close(n)},cwd:()=>De.currentPath,chdir(e){var r=De.lookupPath(e,{follow:!0});if(null===r.node)throw new De.ErrnoError(44);if(!De.isDir(r.node.mode))throw new De.ErrnoError(54);var t=De.nodePermissions(r.node,"x");if(t)throw new De.ErrnoError(t);De.currentPath=r.path},createDefaultDirectories(){De.mkdir("/tmp"),De.mkdir("/home"),De.mkdir("/home/web_user")},createDefaultDevices(){De.mkdir("/dev"),De.registerDevice(De.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),De.mkdev("/dev/null",De.makedev(1,3)),we.register(De.makedev(5,0),we.default_tty_ops),we.register(De.makedev(6,0),we.default_tty1_ops),De.mkdev("/dev/tty",De.makedev(5,0)),De.mkdev("/dev/tty1",De.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=ue(e).byteLength),e[--r]);De.createDevice("/dev","random",t),De.createDevice("/dev","urandom",t),De.mkdir("/dev/shm"),De.mkdir("/dev/shm/tmp")},createSpecialDirectories(){De.mkdir("/proc");var e=De.mkdir("/proc/self");De.mkdir("/proc/self/fd"),De.mount({mount(){var r=De.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=De.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?De.createDevice("/dev","stdin",o.stdin):De.symlink("/dev/tty","/dev/stdin"),o.stdout?De.createDevice("/dev","stdout",null,o.stdout):De.symlink("/dev/tty","/dev/stdout"),o.stderr?De.createDevice("/dev","stderr",null,o.stderr):De.symlink("/dev/tty1","/dev/stderr"),De.open("/dev/stdin",0),De.open("/dev/stdout",1),De.open("/dev/stderr",1)},ensureErrnoError(){De.ErrnoError||(De.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},De.ErrnoError.prototype=new Error,De.ErrnoError.prototype.constructor=De.ErrnoError,[44].forEach((e=>{De.genericErrors[e]=new De.ErrnoError(e),De.genericErrors[e].stack="<generic error, no stack>"})))},staticInit(){De.ensureErrnoError(),De.nameTable=new Array(4096),De.mount(_e,{},"/"),De.createDefaultDirectories(),De.createDefaultDevices(),De.createSpecialDirectories(),De.filesystems={MEMFS:_e}},init(e,r,t){De.init.initialized=!0,De.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,De.createStandardStreams()},quit(){De.init.initialized=!1;for(var e=0;e<De.streams.length;e++){var r=De.streams[e];r&&De.close(r)}},findObject(e,r){var t=De.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=De.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=De.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=de.basename(e),n=De.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:De.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=de.join2(e,a);try{De.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=de.join2("string"==typeof e?e:De.getPath(e),r),i=Te(n,o);return De.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:De.getPath(e),i=r?de.join2(e,r):e);var s=Te(n,o),d=De.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),u=0,c=t.length;u<c;++u)l[u]=t.charCodeAt(u);t=l}De.chmod(d,146|s);var f=De.open(d,577);De.write(f,t,0,t.length,0,a),De.close(f),De.chmod(d,s)}},createDevice(e,r,t,n){var o=de.join2("string"==typeof e?e:De.getPath(e),r),a=Te(!!t,!!n);De.createDevice.major||(De.createDevice.major=64);var i=De.makedev(De.createDevice.major++,0);return De.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var d;try{d=t()}catch(e){throw new De.ErrnoError(29)}if(void 0===d&&0===i)throw new De.ErrnoError(6);if(null==d)break;i++,r[n+s]=d}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new De.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),De.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new 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(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=ve(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new De.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var r=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):ve(o.responseText||"",!0)})(r,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,b("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var d=De.createFile(e,r,s,n,o);s.contents?d.contents=s.contents:s.url&&(d.contents=null,d.url=s.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var l={};function u(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(d.stream_ops).forEach((e=>{var r=d.stream_ops[e];l[e]=function(){return De.forceLoadFile(d),r.apply(null,arguments)}})),l.read=(e,r,t,n,o)=>(De.forceLoadFile(d),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{De.forceLoadFile(d);var a=be();if(!a)throw new De.ErrnoError(48);return u(e,E,a,r,t),{ptr:a,allocated:!0}},d.stream_ops=l,d}},Ie=(e,r)=>e?he(k,e,r):"",Fe={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(de.isAbs(r))return r;var n;-100===e?n=De.cwd():n=Fe.getStreamFromFD(e).path;if(0==r.length){if(!t)throw new De.ErrnoError(44);return n}return de.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&de.normalize(r)!==de.normalize(De.getPath(e.node)))return-54;throw e}A[t>>2]=n.dev,A[t+4>>2]=n.mode,P[t+8>>2]=n.nlink,A[t+12>>2]=n.uid,A[t+16>>2]=n.gid,A[t+20>>2]=n.rdev,K=[n.size>>>0,(X=n.size,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+24>>2]=K[0],A[t+28>>2]=K[1],A[t+32>>2]=4096,A[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return K=[Math.floor(o/1e3)>>>0,(X=Math.floor(o/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+40>>2]=K[0],A[t+44>>2]=K[1],P[t+48>>2]=o%1e3*1e3,K=[Math.floor(a/1e3)>>>0,(X=Math.floor(a/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+56>>2]=K[0],A[t+60>>2]=K[1],P[t+64>>2]=a%1e3*1e3,K=[Math.floor(i/1e3)>>>0,(X=Math.floor(i/1e3),+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+72>>2]=K[0],A[t+76>>2]=K[1],P[t+80>>2]=i%1e3*1e3,K=[n.ino>>>0,(X=n.ino,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[t+88>>2]=K[0],A[t+92>>2]=K[1],0},doMsync(e,r,t,n,o){if(!De.isFile(r.node.mode))throw new De.ErrnoError(43);if(2&n)return 0;var a=k.slice(e,e+t);De.msync(r,a,o,t,n)},varargs:void 0,get(){var e=A[+Fe.varargs>>2];return Fe.varargs+=4,e},getp:()=>Fe.get(),getStr:e=>Ie(e),getStreamFromFD:e=>De.getStreamChecked(e)};function $e(e,r,t){Fe.varargs=t;try{var n=Fe.getStreamFromFD(e);switch(r){case 0:if((o=Fe.get())<0)return-28;for(;De.streams[o];)o++;return De.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Fe.get();return n.flags|=o,0;case 5:o=Fe.getp();return S[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return se(28),-1}}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}function Me(e,r,t,n){Fe.varargs=n;try{r=Fe.getStr(r),r=Fe.calculateAt(e,r);var o=n?Fe.get():0;return De.open(r,t,o).fd}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return-e.errno}}var Re,Be,Ue,xe=(e,r,t,n,o)=>{},Oe=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Re=e},We=e=>{for(var r="",t=e;k[t];)r+=Re[k[t++]];return r},je={},Le={},Ve={},ze=e=>{throw new Be(e)},Ne=e=>{throw new Ue(e)},He=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ne("Mismatched type converter count");for(var o=0;o<e.length;++o)qe(e[o],n[o])}e.forEach((function(e){Ve[e]=r}));var o=new Array(r.length),a=[],i=0;r.forEach(((e,r)=>{Le.hasOwnProperty(e)?o[r]=Le[e]:(a.push(e),je.hasOwnProperty(e)||(je[e]=[]),je[e].push((()=>{o[r]=Le[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Ge(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=r.name;if(e||ze(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;ze(`Cannot register type '${n}' twice`)}if(Le[e]=r,delete Ve[e],je.hasOwnProperty(e)){var o=je[e];delete je[e],o.forEach((e=>e()))}}function qe(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ge(e,r,t)}var Xe,Ke=8,Je=(e,r,t,n)=>{qe(e,{name:r=We(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Ke,readValueFromPointer:function(e){return this.fromWireType(k[e])},destructorFunction:null})},Ye=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Qe=e=>{ze(e.$$.ptrType.registeredClass.name+" instance already deleted")},Ze=!1,er=e=>{},rr=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},tr=e=>{e.count.value-=1,0===e.count.value&&rr(e)},nr=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=nr(e,r,t.baseClass);return null===n?null:t.downcast(n)},or={},ar=()=>Object.keys(cr).length,ir=()=>{var e=[];for(var r in cr)cr.hasOwnProperty(r)&&e.push(cr[r]);return e},sr=[],dr=()=>{for(;sr.length;){var e=sr.pop();e.$$.deleteScheduled=!1,e.delete()}},lr=e=>{Xe=e,sr.length&&Xe&&Xe(dr)},ur=()=>{o.getInheritedInstanceCount=ar,o.getLiveInheritedInstances=ir,o.flushPendingDeletes=dr,o.setDelayFunction=lr},cr={},fr=(e,r)=>{for(void 0===r&&ze("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},hr=(e,r)=>(r=fr(e,r),cr[r]),pr=(e,r)=>(r.ptrType&&r.ptr||Ne("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!==!!r.smartPtr&&Ne("Both smartPtrType and smartPtr must be specified"),r.count={value:1},gr(Object.create(e,{$$:{value:r}})));function mr(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=hr(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?pr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):pr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=or[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var d=nr(r,this.registeredClass,a.registeredClass);return null===d?o.call(this):this.isSmartPointer?pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d,smartPtrType:this,smartPtr:e}):pr(a.registeredClass.instancePrototype,{ptrType:a,ptr:d})}var gr=e=>"undefined"==typeof FinalizationRegistry?(gr=e=>e,e):(Ze=new FinalizationRegistry((e=>{tr(e.$$)})),gr=e=>{var r=e.$$;if(!!r.smartPtr){var t={$$:r};Ze.register(e,t,e)}return e},er=e=>Ze.unregister(e),gr(e)),vr=()=>{Object.assign(yr.prototype,{isAliasOf(e){if(!(this instanceof yr))return!1;if(!(e instanceof yr))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||Qe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=gr(Object.create(Object.getPrototypeOf(this),{$$:{value:Ye(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Qe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ze("Object already scheduled for deletion"),er(this),tr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Qe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ze("Object already scheduled for deletion"),sr.push(this),1===sr.length&&Xe&&Xe(dr),this.$$.deleteScheduled=!0,this}})};function yr(){}var wr=(e,r)=>Object.defineProperty(r,"name",{value:e}),br=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||ze(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},_r=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&ze(`Cannot register public name '${e}' twice`),br(o,e,e),o.hasOwnProperty(t)&&ze(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))},Er=48,kr=57,Sr=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=Er&&r<=kr?`_${e}`:e};function Cr(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Ar=(e,r,t)=>{for(;r!==t;)r.upcast||ze(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Pr(e,r){if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Ar(r.$$.ptr,t,this.registeredClass)}function Tr(e,r){var t;if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&ze(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Ar(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&ze("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:ze(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,at.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:ze("Unsupporting sharing policy")}return t}function Dr(e,r){if(null===r)return this.isReference&&ze(`null is not a valid ${this.name}`),0;r.$$||ze(`Cannot pass "${dt(r)}" as a ${this.name}`),r.$$.ptr||ze(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&ze(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Ar(r.$$.ptr,t,this.registeredClass)}function Ir(e){return this.fromWireType(P[e>>2])}var Fr=()=>{Object.assign($r.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:Ke,readValueFromPointer:Ir,deleteObject(e){null!==e&&e.delete()},fromWireType:mr})};function $r(e,r,t,n,o,a,i,s,d,l,u){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,o||void 0!==r.baseClass?this.toWireType=Tr:n?(this.toWireType=Pr,this.destructorFunction=null):(this.toWireType=Dr,this.destructorFunction=null)}var Mr,Rr,Br=(e,r,t)=>{o.hasOwnProperty(e)||Ne("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},Ur=(e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},xr=[],Or=e=>{var r=xr[e];return r||(e>=xr.length&&(xr.length=e+1),xr[e]=r=Mr.get(e)),r},Wr=(e,r,t)=>e.includes("j")?Ur(e,r,t):Or(r).apply(null,t),jr=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),Wr(e,r,t)}},Lr=(e,r)=>{var t=(e=We(e)).includes("j")?jr(e,r):Or(r);return"function"!=typeof t&&ze(`unknown function pointer with signature ${e}: ${r}`),t},Vr=(e,r)=>{var t=wr(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},zr=e=>{var r=vn(e),t=We(r);return mn(r),t},Nr=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){n[r]||Le[r]||(Ve[r]?Ve[r].forEach(e):(t.push(r),n[r]=!0))})),new Rr(`${e}: `+t.map(zr).join([", "]))},Hr=(e,r,t,n,o,a,i,s,d,l,u,c,f)=>{u=We(u),a=Lr(o,a),s&&(s=Lr(i,s)),l&&(l=Lr(d,l)),f=Lr(c,f);var h=Sr(u);_r(h,(function(){Nr(`Cannot construct ${u} due to unbound types`,[n])})),He([e,r,t],n?[n]:[],(function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:yr.prototype;var i=wr(u,(function(){if(Object.getPrototypeOf(this)!==d)throw new Be("Use 'new' to construct "+u);if(void 0===c.constructor_body)throw new Be(u+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new Be(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),d=Object.create(o,{constructor:{value:i}});i.prototype=d;var c=new Cr(u,i,d,f,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var p=new $r(u,c,!0,!1,!1),m=new $r(u+"*",c,!1,!1,!1),g=new $r(u+" const*",c,!1,!0,!1);return or[e]={pointerType:m,constPointerType:g},Br(h,i),[p,m,g]}))},Gr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(P[r+4*n>>2]);return t},qr=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Xr(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=wr(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function Kr(e,r,t,n,o,a){var i=r.length;i<2&&ze("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,d=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){d=!0;break}var u="void"!==r[0].name,c="",f="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h=`\n        return function (${c}) {\n        if (arguments.length !== ${i-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n        }`;d&&(h+="var destructors = [];\n");var p=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[ze,n,o,qr,r[0],r[1]];s&&(h+="var thisWired = classParam.toWireType("+p+", this);\n");for(l=0;l<i-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+p+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),g.push(r[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||a?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)h+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var v=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(h+=v+"_dtor("+v+"); // "+r[l].name+"\n",m.push(v+"_dtor"),g.push(r[l].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=Xr(Function,m).apply(null,g);return wr(e,y)}var Jr=(e,r,t,n,o,a)=>{var i=Gr(r,t);o=Lr(n,o),He([],[e],(function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new Be(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{Nr(`Cannot construct ${e.name} due to unbound types`,i)},He([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Kr(t,n,null,o,a),[]))),[]}))},Yr=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},Qr=(e,r,t,n,o,a,i,s,d)=>{var l=Gr(t,n);r=We(r),r=Yr(r),a=Lr(o,a),He([],[e],(function(e){var n=`${(e=e[0]).name}.${r}`;function o(){Nr(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var u=e.registeredClass.instancePrototype,c=u[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,u[r]=o):(br(u,r,n),u[r].overloadTable[t-2]=o),He([],l,(function(o){var s=Kr(n,o,e,a,i,d);return void 0===u[r].overloadTable?(s.argCount=t-2,u[r]=s):u[r].overloadTable[t-2]=s,[]})),[]}))};function Zr(){Object.assign(et.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function et(){this.allocated=[void 0],this.freelist=[]}var rt=new et,tt=e=>{e>=rt.reserved&&0==--rt.get(e).refcount&&rt.free(e)},nt=()=>{for(var e=0,r=rt.reserved;r<rt.allocated.length;++r)void 0!==rt.allocated[r]&&++e;return e},ot=()=>{rt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),rt.reserved=rt.allocated.length,o.count_emval_handles=nt},at={toValue:e=>(e||ze("Cannot use deleted val. handle = "+e),rt.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return rt.allocate({refcount:1,value:e})}}};function it(e){return this.fromWireType(A[e>>2])}var st=(e,r)=>{qe(e,{name:r=We(r),fromWireType:e=>{var r=at.toValue(e);return tt(e),r},toWireType:(e,r)=>at.toHandle(r),argPackAdvance:Ke,readValueFromPointer:it,destructorFunction:null})},dt=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},lt=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(T[e>>2])};case 8:return function(e){return this.fromWireType(D[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},ut=(e,r,t)=>{qe(e,{name:r=We(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Ke,readValueFromPointer:lt(r,t),destructorFunction:null})},ct=(e,r,t)=>{switch(r){case 1:return t?e=>E[e>>0]:e=>k[e>>0];case 2:return t?e=>S[e>>1]:e=>C[e>>1];case 4:return t?e=>A[e>>2]:e=>P[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},ft=(e,r,t,n,o)=>{r=We(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");qe(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:Ke,readValueFromPointer:ct(r,t,0!==n),destructorFunction:null})},ht=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=P[e>>2],t=P[e+4>>2];return new n(E.buffer,t,r)}qe(e,{name:t=We(t),fromWireType:o,argPackAdvance:Ke,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},pt=(e,r,t)=>ge(e,k,r,t),mt=(e,r)=>{var t="std::string"===(r=We(r));qe(e,{name:r,fromWireType(e){var r,n=P[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==k[s]){var d=Ie(a,s-a);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(k[o+i]);r=l.join("")}return mn(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||ze("Cannot pass non-string to std::string"),n=t&&o?me(r):r.length;var a=yn(4+n+1),i=a+4;if(P[a>>2]=n,t&&o)pt(r,i,n+1);else if(o)for(var s=0;s<n;++s){var d=r.charCodeAt(s);d>255&&(mn(i),ze("String has UTF-16 code units that do not fit in 8 bits")),k[i+s]=d}else for(s=0;s<n;++s)k[i+s]=r[s];return null!==e&&e.push(mn,a),a},argPackAdvance:Ke,readValueFromPointer:Ir,destructorFunction(e){mn(e)}})},gt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,vt=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&C[n];)++n;if((t=n<<1)-e>32&&gt)return gt.decode(k.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=S[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},yt=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);S[r>>1]=i,r+=2}return S[r>>1]=0,r-n},wt=e=>2*e.length,bt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=A[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},_t=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(A[r>>2]=i,(r+=4)+4>o)break}return A[r>>2]=0,r-n},Et=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},kt=(e,r,t)=>{var n,o,a,i,s;t=We(t),2===r?(n=vt,o=yt,i=wt,a=()=>C,s=1):4===r&&(n=bt,o=_t,i=Et,a=()=>P,s=2),qe(e,{name:t,fromWireType:e=>{for(var t,o=P[e>>2],i=a(),d=e+4,l=0;l<=o;++l){var u=e+4+l*r;if(l==o||0==i[u>>s]){var c=n(d,u-d);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),d=u+r}}return mn(e),t},toWireType:(e,n)=>{"string"!=typeof n&&ze(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),d=yn(4+a+r);return P[d>>2]=a>>s,o(n,d+4,a+r),null!==e&&e.push(mn,d),d},argPackAdvance:Ke,readValueFromPointer:it,destructorFunction(e){mn(e)}})},St=(e,r)=>{qe(e,{isVoid:!0,name:r=We(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},Ct={},At=e=>{var r=Ct[e];return void 0===r?We(e):r},Pt=[],Tt=(e,r,t,n,o)=>(e=Pt[e])(r=at.toValue(r),r[t=At(t)],n,o),Dt=e=>{var r=Pt.length;return Pt.push(e),r},It=(e,r)=>{var t=Le[e];return void 0===t&&ze(r+" has unknown type "+zr(e)),t},Ft=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=It(P[r+4*n>>2],"parameter "+n);return t},$t=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(P[r>>2]=at.toHandle(n)),o},Mt=(e,r,t)=>{var n=Ft(e,r),o=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var d=["retType"],l=[o],u=0;u<e;++u)s.push("arg"+u),d.push("argType"+u),l.push(n[u]),a+=`  var arg${u} = argType${u}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[u].argPackAdvance;a+=`  var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`;for(u=0;u<e;++u)n[u].deleteObject&&(a+=`  argType${u}.deleteObject(arg${u});\n`);o.isVoid||(d.push("emval_returnValue"),l.push($t),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",d.push(a);var c=Xr(Function,d).apply(null,l),f=`methodCaller<(${n.map((e=>e.name)).join(", ")}) => ${o.name}>`;return Dt(wr(f,c))},Rt=e=>{var r=at.toValue(e);qr(r),tt(e)},Bt=e=>e%4==0&&(e%100!=0||e%400==0),Ut=[0,31,60,91,121,152,182,213,244,274,305,335],xt=[0,31,59,90,120,151,181,212,243,273,304,334],Ot=e=>(Bt(e.getFullYear())?Ut:xt)[e.getMonth()]+e.getDate()-1,Wt=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN;function jt(e,r,t){var n=Wt(e,r),o=new Date(1e3*n);A[t>>2]=o.getSeconds(),A[t+4>>2]=o.getMinutes(),A[t+8>>2]=o.getHours(),A[t+12>>2]=o.getDate(),A[t+16>>2]=o.getMonth(),A[t+20>>2]=o.getFullYear()-1900,A[t+24>>2]=o.getDay();var a=0|Ot(o);A[t+28>>2]=a,A[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),d=i.getTimezoneOffset(),l=0|(s!=d&&o.getTimezoneOffset()==Math.min(d,s));A[t+32>>2]=l}var Lt=e=>{var r=me(e)+1,t=yn(r);return t&&pt(e,t,r),t},Vt=(e,r,t)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),d=Math.max(i,s);function l(e){var r=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return r?r[1]:"GMT"}P[e>>2]=60*d,A[r>>2]=Number(i!=s);var u=l(o),c=l(a),f=Lt(u),h=Lt(c);s<i?(P[t>>2]=f,P[t+4>>2]=h):(P[t>>2]=h,P[t+4>>2]=f)},zt=()=>{G("")},Nt=()=>Date.now(),Ht=(e,r,t)=>k.copyWithin(e,r,r+t),Gt=()=>134217728,qt=e=>{var r=(e-w.buffer.byteLength+65535)/65536;try{return w.grow(r),$(),1}catch(e){}},Xt=e=>{var r=k.length;e>>>=0;var t=Gt();if(e>t)return!1;for(var n,o,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(t,(n=Math.max(e,i))+((o=65536)-n%o)%o);if(qt(s))return!0}return!1},Kt={},Jt=()=>l||"./this.program",Yt=()=>{if(!Yt.strings){var e={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",_:Jt()};for(var r in Kt)void 0===Kt[r]?delete e[r]:e[r]=Kt[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Yt.strings=t}return Yt.strings},Qt=(e,r)=>{for(var t=0;t<e.length;++t)E[r++>>0]=e.charCodeAt(t);E[r>>0]=0},Zt=(e,r)=>{var t=0;return Yt().forEach(((n,o)=>{var a=r+t;P[e+4*o>>2]=a,Qt(n,a),t+=n.length+1})),0},en=(e,r)=>{var t=Yt();P[e>>2]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),P[r>>2]=n,0};function rn(e){try{var r=Fe.getStreamFromFD(e);return De.close(r),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function tn(e,r){try{var t=Fe.getStreamFromFD(e),n=t.tty?2:De.isDir(t.mode)?3:De.isLink(t.mode)?7:4;return E[r>>0]=n,S[r+2>>1]=0,K=[0,(X=0,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[r+8>>2]=K[0],A[r+12>>2]=K[1],K=[0,(X=0,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[r+16>>2]=K[0],A[r+20>>2]=K[1],0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var nn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=P[r>>2],s=P[r+4>>2];r+=8;var d=De.read(e,E,i,s,n);if(d<0)return-1;if(o+=d,d<s)break;void 0!==n&&(n+=d)}return o};function on(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=nn(o,r,t);return P[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}function an(e,r,t,n,o){var a=Wt(r,t);try{if(isNaN(a))return 61;var i=Fe.getStreamFromFD(e);return De.llseek(i,a,n),K=[i.position>>>0,(X=i.position,+Math.abs(X)>=1?X>0?+Math.floor(X/4294967296)>>>0:~~+Math.ceil((X-+(~~X>>>0))/4294967296)>>>0:0)],A[o>>2]=K[0],A[o+4>>2]=K[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var sn=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=P[r>>2],s=P[r+4>>2];r+=8;var d=De.write(e,E,i,s,n);if(d<0)return-1;o+=d,void 0!==n&&(n+=d)}return o};function dn(e,r,t,n){try{var o=Fe.getStreamFromFD(e),a=sn(o,r,t);return P[n>>2]=a,0}catch(e){if(void 0===De||"ErrnoError"!==e.name)throw e;return e.errno}}var ln=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=De.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},un=365,cn=146;Object.defineProperties(ln.prototype,{read:{get:function(){return(this.mode&un)===un},set:function(e){e?this.mode|=un:this.mode&=~un}},write:{get:function(){return(this.mode&cn)===cn},set:function(e){e?this.mode|=cn:this.mode&=~cn}},isFolder:{get:function(){return De.isDir(this.mode)}},isDevice:{get:function(){return De.isChrdev(this.mode)}}}),De.FSNode=ln,De.createPreloadedFile=Ae,De.staticInit(),Oe(),Be=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ue=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},vr(),ur(),Fr(),Rr=o.UnboundTypeError=Vr(Error,"UnboundTypeError"),Zr(),ot();var fn,hn={o:ie,C:$e,u:Me,r:xe,E:Je,F:Hr,A:Jr,h:Qr,D:st,l:ut,c:ft,b:ht,m:mt,i:kt,n:St,f:Tt,j:tt,e:Mt,d:Rt,p:jt,t:Vt,a:zt,g:Nt,y:Ht,s:Xt,w:Zt,x:en,k:rn,v:tn,B:on,q:an,z:dn},pn=ne(),mn=e=>(mn=pn.I)(e),gn=()=>(gn=pn.J)(),vn=e=>(vn=pn.K)(e),yn=e=>(yn=pn.M)(e),wn=e=>(wn=pn.N)(e);function bn(){function e(){fn||(fn=!0,o.calledRun=!0,I||(x(),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),O()))}V>0||(U(),V>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),e()}),1)):e()))}if(o.dynCall_jij=(e,r,t,n)=>(o.dynCall_jij=pn.O)(e,r,t,n),o.dynCall_jii=(e,r,t)=>(o.dynCall_jii=pn.P)(e,r,t),o.dynCall_viiijj=(e,r,t,n,a,i,s,d)=>(o.dynCall_viiijj=pn.Q)(e,r,t,n,a,i,s,d),o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=pn.R)(e,r,t,n,a),z=function e(){fn||bn(),fn||(z=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return bn(),r.ready}})();const n=P;function o(){const e=["音频通道错误","sendMessage","aiFaceDetectorInfo","Simd","退出全屏","播放超时重播失败","HEVC decoding is not supported","fogOpen","playbackShowPrecisionChange","物品识别","fiveMin","paused","playVodMseDecodeVideoError","18700730tehhOW","mtStreamStats","multiDblSelected","webrtc-completed","complete","supportHls265","Decoding error","red","sourceended","playbackJustTime","audioInfo","mediaSourceBufferedIsZeroError","FMP4","right-up","message","durationchange","flv","性能面板激活","websocketClose","metadata-parsed","playVodBufferedTime","switch-url-failed","load-retry","初始化音频解码器失败","webrtcError","/crypto/","videoPayload","destroyEnd","empty","click","record","multiMousemove","webrtc-checking","物品识别激活","init","videoSEISyncPts","AbortError","6115aUxyaA","1101588AbNvQO","play","The user aborted a request","isHls","loadstart","simdDecodeDelayTimeout","oneHour","downloadMemoryLog","MEDIA_ERR_DECODE","解析视频分辨率失败","playVodSeeking","flvDemuxBufferSizeTooLarge","playbackTimestamp","drawingRect","streamStats","remove-buffer","base64","drawingRectInfo","default","aiImageDetectResult","保存日志","playVodFlvError","m7s","webcodecsAudioInitTimeout","speed","不支持该分辨率的视频","fullscreen$2","playIsNotPauseOrUrlIsNull","streamError","webrtcFailed","playVodPauseOrResume","widthOrHeightChange","2826306PsTRQa","faceDetectActive","videoCode","opus","zoomNarrow","playType","multiDragenter","avc","playbackTF","blur","hls-manifest-loaded","talkStreamClose","decode","none","remote-candidate","streamSuccess","websocketError","playVodSeek","请求失败","webTransport","decoderWorkerInit","pcm","networkState","removeLoadingBgImage",'video/mp4;codecs="hev1.1.6.L120.90"',"talkStreamError","stalled","csrc","不支持硬解码H265","websocketOpen","subtitle-playlist","webm","talkStreamInactive","webrtc-failed","videoSmooth","halfHour","mseFirstRenderTime","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","webcodecs","resize","fetchError","sourceopen","webrtcConnected","aliyunRtc","suspend","videoInfo","rightUp","playbackPauseOrResume","left","canplaythrough","right-down","normal","流异常","3-4","decoder-pro-hard.js","Invalid NAL unit size","播放地址不能为空","visibilityChange","解码失败","netBuf","mov","webgpu","jbprov","5min","mediaSourceAudioInitTimeout","电子放大",'video/mp4;codecs="hev1.4.10.L120.90"',"volumechange","mse","left-down","initDecoderWorkerTimeout","created","tempStream","fetchStream","Webrtc","tenMin","timeout","recordingTimestamp","recordCancel","demuxed-track","mseSourceOpen","idle","buffer","talkStreamOpen","webrtc不支持H265","loadedmetadata","script","warn","videoRenderSupportScale","fullscreen","multiMouseover","image/webp","hevc","readystatechange","playbackSeek","fullScreenByStart","tallWebsocketClosedByError","udp","switch-url-success","playbackPreRateChange","websocketStringMsg","performance","tcp","audioCode","mediaSourceTsIsMaxDiff","wasm","websocket1006Error","jessibuca-pro-mp4-recorder-decoder.js","webrtcIceCandidateError","aliyunRtcError","notConnect","Cannot call 'decode' on a closed codec","初始化解码器失败","delayTimeoutRetryEnd","webrtcClosed","playbackRateChange","ALAW(g711a)","timeUpdate","updateConfig","AAC","MULAW","rightDown","stream","load-complete","mseSourceended","videoSEI","fetch","codec","rtp","streamRate","人脸识别","wasmDecodeError","simdFFmpeg","mseAddSourceBufferError","sei","playVodRateChange","cruiseStart","H265(HEVC)","alaw","initVideo","sourceclose","webrtcDisconnect","webcodecsH265NotSupport","Decoder error","mp3","networkDelayTimeout","ended","zooming","blob","multiDrop","togglePerformancePanel","delta","buffereos","ceil","worklet","mediaSourceUseCanvasRenderPlayFailed","35444nXDeOQ","streamEnd","recordBlob","decoder-pro-hard-not-wasm.js","mediaSourceDecoderConfigurationError","mediaSourceAudioG711NotSupport","#343434","playbackEnd","fetchClose","人脸识别激活","videoElementPlayingFailed","nakedFlow","canvas","videoInfoError","FLV待解封装buffer过大","crashLog","hls","isMulti","mseUpdateVideoTimestamp","decoder-pro-audio-player.js","local-candidate","mseSourceBufferError","isMpeg4","30min","video","stream-parsed","videoTimeUpdate","receiver","isFmp4","audioNalu","fullscreenError","remote-outbound-rtp","20251201","#FFCC00","talkFailedAndStop","ulaw","fetchErrorWorker","流异常结束","fogClose","load","currentPts","loadeddata","loadingTimeout","playVodTime","object","defaultStreamQuality","closed","delayTimeout","inbound-rtp","MediaSource解码使用canvas渲染失败","playFailedAndPaused","audioSplitBuffer","playVodMp4Error","loadingTimeoutRetryEnd","talkGetUserMediaFail","MPEG4","webgl2","mute","one-hour","objectDetectActive","data-channel","playVodStats","playbackStreamVideoFps","cruiseStop","wcsWidthOrHeightChange","webcodecsUnsupportedConfigurationError","audioPayload","videoSyncAudio","memoryLog","mseDecodeError","streamQualityChange","decoder-pro-audio.js",'video/mp4;codecs="hev1.3.E.L120.90"',"talkStreamStart","playVod","download","等待音频数据超时","play() failed because the user didn't interact with the document first","3-1","recordCreateError","ghostWatermarkConfig","simple","flvMetaData","flv-script-data","硬解码不支持G711a/u音频格式","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","stats",'video/mp4; codecs="hev1.1.6.L123.b0"',"mseWorkerAddSourceBufferError","initAudioCodec","global","WebTransport",'video/mp4;codecs="hev1.2.4.L120.90"',"widthOrHeightChangeReplayDelayTime","webrtcOnConnectionStateChange","sei-in-time","hlsError","streamVbps","M7S","error","playing","focusNear","webrtcOnIceConnectionStateChange","viewResizeChange","failedToAsynchronouslyPrepareWasm","playbackIsPause","five-min","ALAW","aiObjectDetectorInfo","outbound-rtp","emptied","streamMessage","webrtc-connected","wiperOpen","multiFullscreen","waiting","ratechange","10RmclvM","HLS","streamDts","white","videoWaiting","#000","player","10min","canplay","playVodCanplay","sendWsMessage","streamAbps","性能面板","progress","fmp4","jtt","Unsupported audio format","playVodSeekEnd","endstreaming","Webgl 渲染失败","FLV","simd","mp4","subtitle-segments","dynamicWatermarkConfig","ptz","destroy","open","media-source","audioChannelError","resetAudioDecode","wcs","start","sender","resetVideoDecode","stop","leftDown","videoNalu","loading","mouseDownAndUp","peer-connection","g711a","MP3","Wasm","MULAW(g711u)","decoderWorkerInitError","webcodecsAudioNoDataTimeout","webglContextLostError","active","mseError","playToRenderTimes","simdH264DecodeVideoWidthIsTooLarge","right","full","g711u","audioResumeState","left-up","checkFirstIFrame","804489dupBDY","image/jpeg","connecting","MEDIA_ERR_NETWORK","playerAudio","debug","webrtc","playbackForwardMaxRateDecodeIFrame","inView","clickInitPlayer","talkGetUserMediaSuccess","no-audio-track","mediaSourceAppendBufferError","webFullscreen","decoder-pro-old.js","small","candidate-pair","playVodEndedAndReplay","mseSourceEndStreaming","playbackStats","resetDecode","停止录制","volume","playbackTime","multiSelected","mediaSourceAudioNoDataTimeout","audioDecode","multiDragleave","Unsupported configuration","multiMouseout","timeupdate","initVideoCodec","playVodWaiting","offline","ten-min","render","JessibucaPro","mseSourceStartStreaming","certificate","talkGetUserMediaTimeout","closeEnd","wasmWidthOrHeightChange","notSupportNewWasm","key","0000000000","iframeIntervalTs","加载超时重播失败","isWebrtcForSRS","fiStop","recordEnd","watermarkConfig","webcodecsDecodeError","recording","2118aNOvoO","webrtcChecking","av1","kBps","pause","playbackTimeScroll","initAudio","23336meqZhO","visibilityHiddenTimeout","offscreen","pressureObserverCpu","mseHandle","playVodEnded","focusFar","isAliyunRtc","video自动渲染失败","metadata","container","AliyunRtc","recordStart","networkDelay","multiMouseup","4-1","117zqBDyh","wasmError","关闭电子放大","首帧解码超时","isM7sCrypto","aacSequenceHeader","flvScriptData","videoFrame"];return(o=function(){return e})()}!function(e,r){const t=P,n=e();for(;;)try{if(275895===parseInt(t(476))/1*(-parseInt(t(359))/2)+-parseInt(t(534))/3+-parseInt(t(669))/4+parseInt(t(668))/5*(-parseInt(t(587))/6)+-parseInt(t(701))/7+-parseInt(t(594))/8*(parseInt(t(610))/9)+parseInt(t(631))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(o);const a={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(329),n(375),n(540),n(720),n(744),n(329),n(540),n(720),n(744),n(498),n(647);const i={player:n(482),playerAudio:"playerAudio",playbackTF:n(709),talk:"talk",playVod:n(433)},s={mp4:n(498),webm:n(732),flv:n(647),mov:n(761)},d="flv";n(691),n(375),n(540),n(720),n(370),n(490),n(722);n(496),n(457),n(477),n(643),n(414),n(775),n(450),n(605);const l={mse:n(769),wcs:n(507),offscreen:n(596),wasm:n(308),simd:n(497),simdFFmpeg:n(335),mt:"mt",webrtc:n(540),hls:n(375),aliyunRtc:n(744)},u=(n(371),"video"),c={debug:n(539),warn:n(788)},f={click:n(660),mouseDownAndUp:n(515)},h={normal:"normal",simple:n(440)},p={normal:n(752),small:n(549)},m=n(570),g=n(391),v=4080;n(656),n(763);const y={playIsNotPauseOrUrlIsNull:n(757),webglAlignmentError:n(495),webglContextLostError:"webgl 上下文丢失",mediaSourceH265NotSupport:n(729),mseSourceBufferFull:"缓冲区已满",mediaSourceAppendBufferError:n(315),mseSourceBufferError:n(759),mseAddSourceBufferError:"初始化解码器失败",mseWorkerAddSourceBufferError:"初始化解码器失败",mediaSourceDecoderConfigurationError:n(315),mediaSourceTsIsMaxDiff:n(753),mseWidthOrHeightChange:n(753),mediaSourceAudioG711NotSupport:n(443),mediaSourceAudioInitTimeout:n(654),mediaSourceAudioNoDataTimeout:n(435),mediaSourceUseCanvasRenderPlayFailed:n(408),mediaSourceBufferedIsZeroError:n(753),webcodecsH265NotSupport:n(729),webcodecsUnsupportedConfigurationError:n(315),webcodecsDecodeConfigureError:"初始化解码器失败",webcodecsDecodeError:"解码失败",webcodecsAudioInitTimeout:"初始化音频解码器失败",webcodecsAudioNoDataTimeout:n(435),wcsWidthOrHeightChange:n(759),wasmDecodeError:"解码失败",simdDecodeError:n(759),simdDecodeDelayTimeout:n(613),wasmWidthOrHeightChange:n(753),wasmUseVideoRenderError:n(602),videoElementPlayingFailed:"video自动渲染失败",simdH264DecodeVideoWidthIsTooLarge:n(694),networkDelayTimeout:"网络超时重播失败",fetchError:n(719),streamEnd:"请求结束",websocket1006Error:n(396),websocketError:n(719),webrtcError:n(719),hlsError:n(719),decoderWorkerInitError:"初始化worker失败",decoderWorkerWasmError:"wasm解码失败",videoElementPlayingFailedForWebrtc:"video自动渲染失败",videoInfoError:n(678),webrtcStreamH265:n(785),delayTimeout:n(623),loadingTimeout:n(580),loadingTimeoutRetryEnd:n(580),delayTimeoutRetryEnd:"播放超时重播失败",flvDemuxBufferSizeTooLarge:n(373),audioChannelError:n(618),aliyunRtcError:n(719),mseWaitVideoCanplayTimeout:n(753),initDecoderWorkerTimeout:"初始化解码worker超时"};n(482),n(752),n(548),n(430),n(755),n(362),n(310),n(714),n(687),n(752),n(329),n(498),n(660),n(479),n(479),n(638);n(706),n(541),n(376),n(614),n(636),n(452),n(387),n(381),n(672),n(581),n(601),n(439),n(500),n(584),n(404),n(789),n(777),n(401);const w={init:n(665),initVideo:n(342),render:n(569),playAudio:"playAudio",initAudio:n(593),kBps:n(590),decode:"decode",audioCode:n(306),audioNalu:n(388),audioAACSequenceHeader:"audioAACSequenceHeader",videoCode:n(703),videoCodec:"videoCodec",videoNalu:n(513),videoPayload:n(657),audioPayload:n(425),wasmError:n(611),workerFetch:"workerFetch",iframeIntervalTs:n(579),isDropping:"isDropping",workerEnd:"workerEnd",networkDelay:n(607),playbackStreamVideoFps:n(421),wasmWidthOrHeightChange:"wasmWidthOrHeightChange",simdDecodeError:"simdDecodeError",simdH264DecodeVideoWidthIsTooLarge:"simdH264DecodeVideoWidthIsTooLarge",simdDecodeDelayTimeout:n(674),websocketOpen:"websocketOpen",websocketStringMsg:n(303),closeEnd:n(574),tempStream:n(773),videoSEI:n(328),flvScriptData:n(616),aacSequenceHeader:n(615),videoSequenceHeader:"videoSequenceHeader",flvBufferData:"flvBufferData",checkFirstIFrame:n(533),mseHandle:n(598),mseFirstRenderTime:n(737),mseError:n(525),notSupportNewWasm:n(576),failedToAsynchronouslyPrepareWasm:n(463),mtStreamStats:n(632)};n(756),n(665),n(713),n(560),n(448),n(565),n(321),n(554),n(506),n(510),n(774),n(486),n(377),n(464),n(329),n(658),n(395),n(367),n(619),n(502),n(783),n(649),n(730),n(303),n(665);const b={fullscreen:n(695),fullScreenByStart:n(298),webFullscreen:n(547),decoderWorkerInit:n(721),play:n(670),playing:n(459),pause:n(591),mute:"mute",load:n(398),loading:n(514),zooming:"zooming",drawingRect:n(682),drawingRectInfo:n(686),videoInfo:"videoInfo",timeUpdate:n(320),audioInfo:"audioInfo",log:"log",error:n(458),kBps:n(590),timeout:n(777),delayTimeout:n(406),delayTimeoutRetryEnd:"delayTimeoutRetryEnd",loadingTimeout:n(401),loadingTimeoutRetryEnd:n(412),stats:n(445),performance:n(304),videoSmooth:n(735),faceDetectActive:n(702),objectDetectActive:n(418),occlusionDetectActive:"occlusionDetectActive",imageDetectActive:"imageDetectActive",record:n(661),recording:n(586),recordingTimestamp:"recordingTimestamp",recordStart:n(606),recordEnd:"recordEnd",recordCreateError:n(438),recordBlob:n(361),recordCancel:n(779),buffer:"buffer",videoFrame:n(617),videoSEI:"videoSEI",videoSEISyncPts:n(666),start:"start",metadata:n(603),resize:n(740),volumechange:"volumechange",volume:"volume",destroy:n(502),beforeDestroy:"beforeDestroy",streamEnd:n(360),streamRate:n(332),streamAbps:n(487),streamVbps:n(456),streamDts:n(478),streamSuccess:n(716),streamMessage:n(470),streamError:n(697),streamStats:n(683),streamEndInner:"streamEndInner",mseSourceOpen:n(781),mseSourceClose:"mseSourceClose",mseSourceended:n(327),mseSourceStartStreaming:n(571),mseSourceEndStreaming:n(552),mseSourceBufferError:"mseSourceBufferError",mseAddSourceBufferError:n(336),mseWorkerAddSourceBufferError:n(447),mseSourceBufferBusy:"mseSourceBufferBusy",mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:n(480),videoTimeUpdate:n(385),videoSyncAudio:n(426),playToRenderTimes:"playToRenderTimes",playbackTime:n(557),playbackTimestamp:n(681),playbackTimeScroll:n(592),playbackPrecision:"playbackPrecision",playbackShowPrecisionChange:n(626),playbackJustTime:n(640),playbackStats:n(553),playbackSeek:n(297),playbackPause:"playbackPause",playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:"playbackRateChange",playbackPreRateChange:n(302),playbackEndInner:"playbackEndInner",playbackEnd:n(366),playVodStats:n(420),playVodPause:"playVodPause",playVodPauseOrResume:"playVodPauseOrResume",playVodRateChange:"playVodRateChange",playVodTime:n(402),playVodBufferedTime:n(651),playVodTimeCache:"playVodTimeCache",playVodSeek:"playVodSeek",playVodSeeking:n(679),playVodSeekEnd:n(493),playVodVideoSeekingByMse:"playVodVideoSeekingByMse",playVodVideoSeekedByMse:"playVodVideoSeekedByMse",playVodCanplay:n(485),playVodWaiting:n(566),playVodEndedAndReplay:n(551),playVodEnded:n(599),ptz:n(501),streamQualityChange:n(429),visibilityChange:n(758),netBuf:n(760),close:"close",networkDelayTimeout:n(348),togglePerformancePanel:n(353),viewResizeChange:n(462),flvDemuxBufferSizeTooLarge:n(680),talkGetUserMediaSuccess:n(544),talkGetUserMediaFail:n(413),talkGetUserMediaTimeout:n(573),talkStreamStart:n(432),talkStreamOpen:n(784),talkStreamClose:n(712),talkStreamError:"talkStreamError",talkStreamInactive:n(733),talkStreamMsg:"talkStreamMsg",webrtcDisconnect:n(344),webrtcFailed:n(698),webrtcClosed:n(317),webrtcChecking:n(588),webrtcConnected:n(743),webrtcCompleted:"webrtcCompleted",webrtcOnConnectionStateChange:"webrtcOnConnectionStateChange",webrtcOnIceConnectionStateChange:"webrtcOnIceConnectionStateChange",crashLog:"crashLog",focus:"focus",blur:n(710),inView:n(542),visibilityHiddenTimeout:n(595),websocketOpen:n(730),websocketClose:"websocketClose",websocketError:n(717),websocketStringMsg:"websocketStringMsg",aiObjectDetectorInfo:n(467),aiFaceDetectorInfo:"aiFaceDetectorInfo",aiOcclusionDetectResult:"aiOcclusionDetectResult",aiImageDetectResult:n(688),playFailedAndPaused:n(409),audioResumeState:n(531),webrtcStreamH265:"webrtcStreamH265",flvMetaData:n(441),talkFailedAndStop:"talkFailedAndStop",removeLoadingBgImage:n(724),memoryLog:n(427),downloadMemoryLog:n(676),pressureObserverCpu:n(597),currentPts:"currentPts",online:"online",offline:n(567),networkState:n(723),clickInitPlayer:n(543),audioSplitBuffer:n(410)};n(398),n(746),n(641),n(590),n(508),n(777),n(401),n(406),n(316),n(790),n(547),n(670),n(416),n(445),n(304),n(778),n(606),n(438),n(583),n(526),n(297),n(553),n(748),n(302),n(318),n(626),n(366),n(599),n(699),n(338),n(402),n(651),n(718),n(679),n(493),n(501),n(429),n(350),n(374),n(710),n(595),n(758),n(649),n(303),n(348),n(620),n(688),n(360),n(531),n(328),n(666),n(441),n(453),n(461),n(399),n(556),n(686),n(712),n(726),n(393),n(398),n(320),n(458),n(590),n(508),n(777),n(401),n(412),n(406),n(316),n(670),n(591),n(445),n(374),n(730),n(531);n(726),n(712);n(696),n(741),n(717),n(345),n(585),n(424),n(692),n(522),n(364),n(765),n(559),n(363),n(380),n(447),n(546),n(307),n(358),n(642),n(334),n(527),n(674),n(455),n(655),n(317),n(311),n(575),n(423),n(700),n(299),n(680),n(505),n(523),n(369),n(521),n(372),n(360),n(309),n(406),n(401),n(348),n(389),n(312),n(771),n(463),n(411),n(690),n(630),n(313),n(458),n(659),n(529),n(685),n(351),n(434),n(340),n(414);const _={h264:7,h265:12,mpeg4:99},E={AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8};n(319),n(520),n(518),n(322),n(466),n(323),n(518);const k={sps:7,pps:8,iFrame:5,kUnspecified:0,kSliceNonIDR:1,kSliceDPA:2,kSliceDPB:3,kSliceDPC:4,kSliceIDR:5,kSliceSEI:6,kSliceSPS:7,kSlicePPS:8,kSliceAUD:9,kEndOfSequence:10,kEndOfStream:11,kFiller:12,kSPSExt:13,kReserved0:14};n(739),n(415),n(762),n(769),n(375),n(577),n(354),n(446),n(725),n(451),n(431),n(767),n(349),n(503),n(405),Math[n(356)](40),n(675),n(736),n(776),n(628),n(417),n(568),n(465),n(382),n(483),n(764),n(675),n(776),n(628),n(749),n(532),n(644),n(770),n(751),n(528),n(749),n(512),n(747),n(324),n(511),n(582),n(705),n(600),n(460),n(339),n(422),n(625),n(397),n(472);n(517),n(530),n(722),n(704);n(535),n(294),n(343),n(742),n(639),n(494),n(474),n(564),n(475),n(727),n(489),n(786);const S={h264:n(708),h265:n(295),av1:n(589)};n(314),n(562),n(637),n(346),n(624),n(671),n(667),n(667),n(514),n(459),n(629),n(502);const C={sequenceHeader:0,nalu:1},A={keyFrame:1,interFrame:2};n(331),n(491),n(305),n(300);n(503),n(458),n(645);function P(e,r){const t=o();return(P=function(e,r){return t[e-=294]})(e,r)}n(517),n(331),n(578),n(788),n(357),n(787),n(524),n(365),n(392),n(481),n(473),n(633),n(558),n(791),n(563),n(608),n(662),n(707),n(561),n(352),n(437),n(609),n(754),n(604),n(383),n(538),n(788),n(378),n(499),n(711),n(780),n(442),n(650),n(653),n(693),n(326),n(337),n(454),n(545),n(684),n(355),n(652),n(301),n(731),n(384),n(782),n(536),n(458),n(635),n(537),n(677),n(492),n(436),n(550),n(572),n(330),n(728),n(419),n(407),n(379),n(468),n(516),n(386),n(715),n(390),n(509),n(325),n(504),n(428),n(697),n(394),n(341),n(347),n(704),n(663),n(471),n(634),n(734),n(772),n(514),typeof window===n(403)&&window.window===window?window:typeof self===n(403)&&self.self===self?self:typeof global===n(403)&&global[n(449)]===global&&global,n(484),n(750),n(646),n(469),n(349),n(458),n(400),n(786),n(673),n(670),n(459),n(475),n(727),n(745),n(564),n(768),n(474),n(296),n(622),n(555),n(766),n(612),n(488),n(648),n(333),n(368),n(627),n(664),n(689);const T={wasm:n(519),simd:n(621),fSimd:"FSimd"};n(738),n(444);var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var I=Object.freeze({__proto__:null,commonjsGlobal:D,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},createCommonjsModule:function(e,r){return e(r={exports:{}},r.exports),r.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}});function F(){var e=["webkitFullscreenElement","mozRequestFullScreen","webkitRequestFullScreen","off","mozfullscreenerror","10743OcyLcE","5926232NksBFA","webkitfullscreenerror","webkitExitFullscreen","webkitRequestFullscreen","object","defineProperties","fullscreenEnabled","undefined","274548WALAvt","createCommonjsModule","MSFullscreenChange","2199440yINyxk","catch","requestFullscreen","exports","mozfullscreenchange","msFullscreenEnabled","error","webkitfullscreenchange","screenfull","webkitCancelFullScreen","length","change","fullscreenchange","16452DScCmK","msFullscreenElement","isFullscreen","addEventListener","fullscreenElement","removeEventListener","isEnabled","fullscreenerror","324eOirdR","then","bind","335889tigtAH","mozFullScreenEnabled","4052293RbQoMx","webkitFullscreenEnabled","document","25qDpRNA","webkitCurrentFullScreenElement","9160tsgJuT"];return(F=function(){return e})()}var $=M;function M(e,r){var t=F();return(M=function(e,r){return t[e-=356]})(e,r)}!function(e,r){for(var t=M,n=e();;)try{if(489685===parseInt(t(381))/1+-parseInt(t(378))/2*(parseInt(t(394))/3)+-parseInt(t(357))/4+parseInt(t(386))/5*(-parseInt(t(403))/6)+parseInt(t(383))/7+-parseInt(t(395))/8+parseInt(t(370))/9*(parseInt(t(388))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(F),I[$(404)]((function(e){var r,t,n,o,a,i;r=M,t=typeof window!==r(402)&&typeof window.document!==r(402)?window[r(385)]:{},n=r(399)!==r(402)&&e.exports,o=function(){for(var e,n=r,o=[[n(359),"exitFullscreen","fullscreenElement",n(401),n(369),n(377)],[n(398),n(397),n(389),n(384),n(364),n(396)],[n(391),n(366),n(387),n(366),n(364),n(396)],[n(390),"mozCancelFullScreen","mozFullScreenElement",n(382),n(361),n(393)],["msRequestFullscreen","msExitFullscreen",n(371),n(362),n(356),"MSFullscreenError"]],a=0,i=o[n(367)],s={};a<i;a++)if((e=o[a])&&e[1]in t){for(a=0;a<e[n(367)];a++)s[o[0][a]]=e[a];return s}return!1}(),a={change:o[r(369)],error:o.fullscreenerror},i={request:function(e,n){return new Promise(function(r,a){var i=M,s=function(){var e=M;this[e(392)](e(368),s),r()}[i(380)](this);this.on(i(368),s);var d=(e=e||t.documentElement)[o[i(359)]](n);d instanceof Promise&&d.then(s)[i(358)](a)}[r(380)](this))},exit:function(){return new Promise(function(e,r){var n=M;if(this.isFullscreen){var a=function(){this[M(392)]("change",a),e()}[n(380)](this);this.on(n(368),a);var i=t[o.exitFullscreen]();i instanceof Promise&&i[n(379)](a)[n(358)](r)}else e()}[r(380)](this))},toggle:function(e,t){return this[r(372)]?this.exit():this.request(e,t)},onchange:function(e){var t=r;this.on(t(368),e)},onerror:function(e){var t=r;this.on(t(363),e)},on:function(e,n){var o=a[e];o&&t[r(373)](o,n,!1)},off:function(e,n){var o=a[e];o&&t[r(375)](o,n,!1)},raw:o},o?(Object[r(400)](i,{isFullscreen:{get:function(){return Boolean(t[o[r(374)]])}},element:{enumerable:!0,get:function(){return t[o[r(374)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[o[r(401)]])}}}),n?e.exports=i:window[r(365)]=i):n?e[r(360)]={isEnabled:!1}:window[r(365)]={isEnabled:!1}}))[$(376)];const R=x;!function(e,r){const t=x,n=e();for(;;)try{if(309196===-parseInt(t(334))/1+-parseInt(t(326))/2*(-parseInt(t(333))/3)+parseInt(t(328))/4*(-parseInt(t(341))/5)+parseInt(t(335))/6+parseInt(t(315))/7*(-parseInt(t(323))/8)+parseInt(t(318))/9+parseInt(t(331))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(U);class B{constructor(e){const r=x;this._buffer=e,this[r(320)]=0,this[r(319)]=e[r(317)],this._total_bits=8*e[r(317)],this[r(324)]=0,this._current_word_bits_left=0}destroy(){this[x(343)]=null}[R(314)](){const e=R;let r=this[e(319)]-this._buffer_index;if(r<=0)return void console[e(322)](e(336),this[e(319)],this[e(320)]);let t=Math[e(332)](4,r),n=new Uint8Array(4);n[e(327)](this._buffer[e(329)](this[e(320)],this[e(320)]+t)),this[e(324)]=new DataView(n[e(325)])[e(337)](0,!1),this[e(320)]+=t,this[e(316)]=8*t}[R(342)](e){const r=R;if(e>32&&console[r(322)](r(340)),e<=this[r(316)]){let t=this._current_word>>>32-e;return this[r(324)]<<=e,this._current_word_bits_left-=e,t}let t=this._current_word_bits_left?this._current_word:0;t>>>=32-this[r(316)];let n=e-this[r(316)];this[r(314)]();let o=Math.min(n,this._current_word_bits_left),a=this._current_word>>>32-o;return this[r(324)]<<=o,this[r(316)]-=o,t=t<<o|a,t}[R(338)](){return 1===this[R(342)](1)}[R(321)](){return this[R(342)](8)}[R(339)](){const e=R;let r;for(r=0;r<this[e(316)];r++)if(0!=(this[e(324)]&2147483648>>>r))return this[e(324)]<<=r,this._current_word_bits_left-=r,r;return this[e(314)](),r+this[e(339)]()}readUEG(){const e=R;let r=this[e(339)]();return this[e(342)](r+1)-1}[R(313)](){let e=this[R(330)]();return 1&e?e+1>>>1:-1*(e>>>1)}}function U(){const e=["324673DsMRkF","433260ZLQcfR","ExpGolomb: _fillCurrentWord() but no bytes available","getUint32","readBool","_skipLeadingZero","ExpGolomb: readBits() bits exceeded max 32bits!","5mvgMUx","readBits","_buffer","readSEG","_fillCurrentWord","447853xaljjj","_current_word_bits_left","byteLength","2512314LkbSAT","_total_bytes","_buffer_index","readByte","error","56pNOjRg","_current_word","buffer","817678jPtThj","set","2192488CdKunP","subarray","readUEG","8696490mSmVYz","min","3QMnpDx"];return(U=function(){return e})()}function x(e,r){const t=U();return(x=function(e,r){return t[e-=313]})(e,r)}const O=L;!function(e,r){const t=L,n=e();for(;;)try{if(484800===parseInt(t(485))/1*(-parseInt(t(464))/2)+-parseInt(t(505))/3+parseInt(t(510))/4*(-parseInt(t(454))/5)+parseInt(t(470))/6*(parseInt(t(459))/7)+-parseInt(t(493))/8*(-parseInt(t(466))/9)+-parseInt(t(468))/10+parseInt(t(446))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(j);const W=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1];function j(){const e=["iserro","error","profile: ","4VJFOqw","read","more than 2 numLayer Not Supported","set","byteLength","frameLengthType = ","hasIncompleteData","21879924tZNUpR","Could not found ADTS syncword until payload end","allStreamsSameTimeFraming zero is Not Supported","bufoff","sbr","getLATMValue","object_type","aacEncoderConfigurationRecord","2395290buAAWP","sequenceHeader","Invalid sampling index: ","subarray","navigator","3010861yTpium","buffer","Flv: AAC invalid channel configuration","sampling_freq_index","mp4a.40.2","619138vGWUsj","length","123561UJtmcH","AAC","7023190UspQMp","destroy","6WQLuLd","indexOf","readByte","buflen","getIncompleteData","data","chan_config","log","slice","mp4a.40.","readNextAACFrame","sampling_frequency","channel_config","sample_rate","current_syncword_offset_","1SjWKoD","userAgent","audio_object_type","channels","android","readBits","more than 2 numProgram Not Supported","read_golomb","24yvbMPN","push","data_","eof_flag_","has_last_incomplete_data","findNextSyncwordOffset","ext_object_type","bufpos","more than 2 numSubFrames Not Supported","firefox","sampling_index","readBool","1453944MYlqLM","look"];return(j=function(){return e})()}function L(e,r){const t=j();return(L=function(e,r){return t[e-=441]})(e,r)}function V(e){const r=L;return function(e){const r=L;return e[0]>>4===E[r(467)]}(e)&&e[1]===C[r(455)]}O(511),O(506),O(492);O(480),O(445),O(474);O(498),O(451),O(480),O(445);function z(e,r){const t=N();return(z=function(e,r){return t[e-=473]})(e,r)}function N(){const e=["87534GQJPcd","shift","set","76580NTHDCd","800xBvBrr","196khCLiS","push","subarray","2445ehlkYc","buffer","length","7aJzKLC","3770760iVnTys","byteLength","5009712oSXAxc","762XuIRTh","6624630tBAcok"];return(N=function(){return e})()}!function(e,r){const t=z,n=e();for(;;)try{if(524266===parseInt(t(482))/1*(parseInt(t(489))/2)+-parseInt(t(474))/3+parseInt(t(479))/4*(-parseInt(t(477))/5)+parseInt(t(488))/6*(-parseInt(t(485))/7)+parseInt(t(486))/8+parseInt(t(473))/9+-parseInt(t(478))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(N);const H=J;function G(){const e=J;return(new Date)[e(590)]()}!function(e,r){const t=J,n=e();for(;;)try{if(726491===parseInt(t(544))/1+-parseInt(t(635))/2+-parseInt(t(502))/3+parseInt(t(789))/4*(-parseInt(t(526))/5)+parseInt(t(695))/6+parseInt(t(571))/7+parseInt(t(555))/8)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Z),(()=>{const e=J;try{if("object"==typeof WebAssembly&&"function"==typeof WebAssembly[e(704)]){const r=new(WebAssembly[e(573)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(r instanceof WebAssembly[e(573)])return new(WebAssembly[e(724)])(r)instanceof WebAssembly[e(724)]}}catch(e){}})();const q=H(612);H(553),H(708),H(612);const X=q===H(595);H(707),H(628);function K(e){return e&&"function"==typeof e}function J(e,r){const t=Z();return(J=function(e,r){return t[e-=492]})(e,r)}function Y(e){const r=H;return e[0]>>4===A[r(802)]&&e[1]===C.sequenceHeader}function Q(e){return!0!==e&&e!==H(791)}function Z(){const e=["KB/s","setHours","start","charAt","indexOf","host","MediaSource","360","isConfigSupported","open","replace","error","useMSE","fillText","28hIGqgp","getUint8","true","assign","createBuffer","webm","left","attachShadow","getFullYear","scrollLeft","solid","match","Edg","keyFrame","target","body","borderWidth","QihooBrowser","dataset","supported","file","numberOfChannels","test","content","top","canvas","fmt ","color","hev5","isTypeSupported","pageY","webgl","substr","mousedown","ActiveXObject","-webkit-user-select","then","h265","createObjectURL","getElementById","WAVE","360EE","pathname","right","VideoEncoder.isConfigSupported is not a function","rgba(0,0,0,0)","rect","paused","angle","round","createImageBitmap","hev3","container","hasAudio","mozGetUserMedia","0 Bytes","3302385RKioun","MB/s","touchend","high","getMinutes","VideoFrame","-ms-user-select","Edge","-webkit-text-size-adjust","map","moz-webgl","EB/s","repeat","zIndex","subarray","img","format","wheel","status","overflow","100%","removeChild","h264","hash","595915cqkcKf","mouseup","none","object","keys","length","localhost","demuxUseWorker","kSliceBLA_W_RADL","block","location","fontFamily","appendChild","getDate","div","memory","opacity","If you want to help, upload a sample of this file to","83324JzgUPr","webkitGetUserMedia","xxxxxxxxxxxx4xxx","min","ALAW","createElement","isFullscreen","createBufferSource","MediaStream",'"2.1.4"',"Bytes","21734520fIkhXI","MouseEvents","documentElement","data-","hev1.1.6.L120.90","href","wcsDecodeAudio","canPlayType","setInt16","scrollTop","image","onerror","kSliceBLA_W_LP","kSliceRSV_IRAP_VCL22","navigator","audioWorklet","1336839mBAbuB","style","Module","useWCS","readyState","toLowerCase","fontSize","insertBefore","message","hidden","backgroundColor","px 宋体","wow64","atob","forEach","apply","getParameter","not compiled with thread support","toDataURL","getTime","win32","webkit-3d","revokeObjectURL","getImageData",'"delaytime"',"ManagedMediaSource","join","getUserMedia","AudioDecoder","PressureObserver","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","save","data","getPropertyValue","not compiled with thread support, using thread emulation","position","performance","application/vnd.chromium.remoting-viewer","absolute","split","setAttribute",'"production"',"search","restore","craNut","userAgent","stringify","Worker","contain","event","-webkit-tap-highlight-color","destination","setUint32","innerHTML","MediaStreamTrackGenerator","data:","xxxx","1743436800000","validate","application/javascript","toString","failed to asynchronously prepare wasm","px Arial","createTextNode","2567506CyDuME","safari","charCodeAt","YB/s","line","removeAttribute","noteOn","sps","Opera","pageX","vps","setInt32","filter","imageSmoothingQuality","hostname","illegal icc","VideoEncoder.isConfigSupported() result is not supported","experimental-webgl","fromCharCode","quality","text/javascript","font","now","fillStyle","string","drawImage","mediaDevices","[object DOMException]","lineWidth","chrome","max","mousemove","URL","application/360softmgrplugin","AudioData","protocol","avc1.","https:","firefox","numberOfFrames","getSeconds","-moz-user-select","100","children","onload","canConstructInDedicatedWorker","Chrome","mimeTypes","result","clientX","setUint16","green","touches","random","copyToChannel","trim","textAlign","bottom","endsWith","origin","5725224GQSiFN","connect","user-select","close","edge","iFrame","strokeRect","gpu","getHours","instantiate","src","-webkit-touch-callout",'"2025-4-1"','"development"',"version","#000","parse","MULAW","useOffscreen","playbackRate","TB/s","text","push","log","borderColor","floor",";base64","putImageData","document","Instance","VideoDecoder","hev4","isView","360SE","byteLength","download","slice","msGetUserMedia","{y}-{m}-{d} {h}:{i}:{s}","function","pps","getAttribute","hev","0 KB/s","webkitFullscreenElement","B/s","prototype","application/hwepass2001.installepass2001","getContext","width","call","html","substring","application/mozilla-npqihooquicklogin","-o-user-select","fullscreenElement","toFixed","hour","[object Exception]","type",'video/mp4; codecs="',"imageSmoothingEnabled","set","kSliceBLA_N_LP","webgl2","application/vnd.apple.mpegurl","undefined","click","clientY","borderStyle","setUint8","AAC","setInt8","height","shadowRoot","initEvent","hev2","copyright","getDay","ended"];return(Z=function(){return e})()}function ee(e,r){const t=te();return(ee=function(e,r){return t[e-=333]})(e,r)}const re=ee;function te(){const e=["forEach","825ZduwsT","8VeJETa","366570tkHPcR","3139717hYGrsh","apply","213832AZxrOi","84mKqvMT","ctx","6812379NkBjmZ","once","57430mnXpnr","keys","off","push","105fWuNdE","58634sYZkCw","length","202961eATiXj"];return(te=function(){return e})()}!function(e,r){const t=ee,n=e();for(;;)try{if(589321===-parseInt(t(333))/1+parseInt(t(350))/2*(parseInt(t(349))/3)+parseInt(t(340))/4+-parseInt(t(337))/5*(parseInt(t(341))/6)+-parseInt(t(338))/7*(parseInt(t(336))/8)+parseInt(t(343))/9+parseInt(t(345))/10*(parseInt(t(335))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(te);class ne{on(e,r,t){const n=ee,o=this.e||(this.e={});return(o[e]||(o[e]=[]))[n(348)]({fn:r,ctx:t}),this}[re(344)](e,r,t){const n=this;function o(){n.off(e,o);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];r.apply(t,i)}return o._=r,this.on(e,o,t)}emit(e){const r=re,t=((this.e||(this.e={}))[e]||[]).slice();for(var n=arguments[r(351)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(let e=0;e<t[r(351)];e+=1)t[e].fn[r(339)](t[e][r(342)],o);return this}[re(347)](e,r){const t=re,n=this.e||(this.e={});if(!e)return Object[t(346)](n)[t(334)]((e=>{delete n[e]})),void delete this.e;const o=n[e],a=[];if(o&&r)for(let e=0,n=o[t(351)];e<n;e+=1)o[e].fn!==r&&o[e].fn._!==r&&a.push(o[e]);return a.length?n[e]=a:delete n[e],this}}const oe=ae;function ae(e,r){const t=ie();return(ae=function(e,r){return t[e-=428]})(e,r)}function ie(){const e=["33930684zmFjwv","set","findSecondStartCode","versionLayer","tempBuffer","1796991QUzpAa","reset","4289056voLgKp","length","isDestroyed","parsedOffset","stats","off","30onkHZe","secondStartCodeOffset","7639130uUdRcC","3586596YmzRXm","91aeXndR","25958SlKdnn","slice","state","fisrtStartCodeOffset","Init","dispatch","2156452srzMnA","init","findFirstStartCode"];return(ie=function(){return e})()}!function(e,r){const t=ae,n=e();for(;;)try{if(947223===parseInt(t(436))/1*(parseInt(t(437))/2)+-parseInt(t(435))/3+parseInt(t(443))/4+-parseInt(t(434))/5+parseInt(t(432))/6*(-parseInt(t(451))/7)+-parseInt(t(453))/8+parseInt(t(446))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ie);const se={init:0,findFirstStartCode:1,findSecondStartCode:2};class de extends ne{constructor(e){const r=ae;super(),this.player=e,this[r(428)]=!1,this.reset()}destroy(){const e=ae;this.isDestroyed=!1,this[e(431)](),this[e(452)]()}reset(){const e=ae;this[e(430)]=se[e(444)],this.tempBuffer=new Uint8Array(0),this[e(429)]=0,this[e(449)]=0}[oe(442)](e,r){const t=oe;let n=new Uint8Array(this[t(450)].length+e[t(454)]);for(n[t(447)](this[t(450)],0),n[t(447)](e,this[t(450)][t(454)]),this[t(450)]=n;!this[t(428)];){if(this.state==se[t(441)]){let e=!1;for(;this[t(450)][t(454)]-this[t(429)]>=2&&!this[t(428)];)if(255==this[t(450)][this[t(429)]]){if(!(!1&this.tempBuffer[this.parsedOffset+1])){this[t(449)]=this[t(450)][this[t(429)]+1],this[t(439)]=se[t(445)],this[t(440)]=this.parsedOffset,this[t(429)]+=2,e=!0;break}this.parsedOffset++}else this[t(429)]++;if(e)continue;break}if(this[t(439)]==se.findFirstStartCode){let e=!1;for(;this[t(450)][t(454)]-this[t(429)]>=2&&!this[t(428)];)if(255==this.tempBuffer[this.parsedOffset]){if(this[t(450)][this[t(429)]+1]==this[t(449)]){this.state=se[t(448)],this[t(433)]=this[t(429)],this[t(429)]+=2,e=!0;break}this[t(429)]++}else this.parsedOffset++;if(e)continue;break}if(this.state==se.findSecondStartCode){let e=this.tempBuffer[t(438)](this[t(440)],this[t(433)]);this.emit("data",e,r),this[t(450)]=this[t(450)][t(438)](this[t(433)]),this[t(440)]=0,this.parsedOffset=2,this[t(439)]=se.findFirstStartCode}}}}const le=fe;!function(e,r){const t=fe,n=e();for(;;)try{if(997512===-parseInt(t(397))/1+-parseInt(t(391))/2*(parseInt(t(425))/3)+parseInt(t(429))/4+-parseInt(t(423))/5*(-parseInt(t(430))/6)+-parseInt(t(420))/7*(-parseInt(t(412))/8)+-parseInt(t(403))/9*(-parseInt(t(418))/10)+-parseInt(t(414))/11*(parseInt(t(399))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ce);class ue{static[le(408)](e){const r=le;let t=e,n=t[r(405)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(424)],0,a)}static[le(400)](e){const r=le;let t=ue._ebsp2rbsp(e),n=new B(t);n[r(392)]();let o=n[r(392)]();n.readByte();let a=n[r(392)]();n.readUEG();let i=ue[r(409)](o),s=ue[r(411)](a),d=1,l=420,u=[0,420,422,444],c=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(d=n[r(416)](),3===d&&n[r(415)](1),d<=3&&(l=u[d]),c=n[r(416)]()+8,n[r(416)](),n[r(415)](1),n.readBool())){let e=3!==d?8:12;for(let t=0;t<e;t++)n[r(421)]()&&(t<6?ue[r(393)](n,16):ue._skipScalingList(n,64))}n.readUEG();let f=n[r(416)]();if(0===f)n[r(416)]();else if(1===f){n[r(415)](1),n.readSEG(),n.readSEG();let e=n[r(416)]();for(let t=0;t<e;t++)n[r(426)]()}let h=n[r(416)]();n[r(415)](1);let p=n.readUEG(),m=n[r(416)](),g=n[r(415)](1);0===g&&n.readBits(1),n.readBits(1);let v=0,y=0,w=0,b=0;n[r(421)]()&&(v=n.readUEG(),y=n[r(416)](),w=n.readUEG(),b=n[r(416)]());let _=1,E=1,k=0,S=!0,C=0,A=0;if(n[r(421)]()){if(n.readBool()){let e=n[r(392)](),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(_=t[e-1],E=o[e-1]):255===e&&(_=n.readByte()<<8|n[r(392)](),E=n[r(392)]()<<8|n.readByte())}if(n[r(421)]()&&n[r(421)](),n[r(421)]()&&(n[r(415)](4),n[r(421)]()&&n[r(415)](24)),n[r(421)]()&&(n[r(416)](),n[r(416)]()),n[r(421)]()){let e=n[r(415)](32),t=n[r(415)](32);S=n.readBool(),C=t,A=2*e,k=C/A}}let P=1;(1!==_||1!==E)&&(P=_/E);let T=0,D=0;if(0===d)T=1,D=2-g;else{T=3===d?1:2,D=(1===d?2:1)*(2-g)}let I=16*(p+1),F=16*(m+1)*(2-g);I-=(v+y)*T,F-=(w+b)*D;let $=Math[r(398)](I*P);return n[r(428)](),n=null,{profile_string:i,level_string:s,bit_depth:c,ref_frames:h,chroma_format:l,chroma_format_string:ue.getChromaFormatString(l),frame_rate:{fixed:S,fps:k,fps_den:A,fps_num:C},sar_ratio:{width:_,height:E},codec_size:{width:I,height:F},present_size:{width:$,height:F}}}static[le(407)](e){const r=le;let t=e[r(419)](1,4),n=r(396);for(let e=0;e<3;e++){let o=t[e][r(410)](16);o[r(402)]<2&&(o="0"+o),n+=o}let o=ue[r(408)](e),a=new B(o);a[r(392)]();let i=a.readByte();a[r(392)]();let s=a[r(392)]();a[r(416)]();let d=ue.getProfileString(i),l=ue[r(411)](s),u=1,c=420,f=[0,420,422,444],h=8,p=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(u=a[r(416)](),3===u&&a[r(415)](1),u<=3&&(c=f[u]),h=a[r(416)]()+8,p=a[r(416)]()+8,a[r(415)](1),a[r(421)]())){let e=3!==u?8:12;for(let t=0;t<e;t++)a[r(421)]()&&(t<6?ue[r(393)](a,16):ue[r(393)](a,64))}a.readUEG();let m=a[r(416)]();if(0===m)a[r(416)]();else if(1===m){a[r(415)](1),a[r(426)](),a[r(426)]();let e=a.readUEG();for(let t=0;t<e;t++)a[r(426)]()}let g=a.readUEG();a[r(415)](1);let v=a.readUEG(),y=a.readUEG(),w=a.readBits(1);0===w&&a[r(415)](1),a[r(415)](1);let b=0,_=0,E=0,k=0;a[r(421)]()&&(b=a[r(416)](),_=a.readUEG(),E=a[r(416)](),k=a.readUEG());let S=1,C=1,A=0,P=!0,T=0,D=0;if(a[r(421)]()){if(a[r(421)]()){let e=a[r(392)](),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],n=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(S=t[e-1],C=n[e-1]):255===e&&(S=a[r(392)]()<<8|a.readByte(),C=a.readByte()<<8|a[r(392)]())}if(a[r(421)]()&&a[r(421)](),a[r(421)]()&&(a[r(415)](4),a[r(421)]()&&a[r(415)](24)),a[r(421)]()&&(a[r(416)](),a[r(416)]()),a[r(421)]()){let e=a[r(415)](32),t=a.readBits(32);P=a.readBool(),T=t,D=2*e,A=T/D}}let I=1;(1!==S||1!==C)&&(I=S/C);let F=0,$=0;if(0===u)F=1,$=2-w;else{F=3===u?1:2,$=(1===u?2:1)*(2-w)}let M=16*(v+1),R=16*(y+1)*(2-w);M-=(b+_)*F,R-=(E+k)*$;let U=Math.ceil(M*I);return a[r(428)](),a=null,{codec_mimetype:n,profile_idc:i,level_idc:s,profile_string:d,level_string:l,chroma_format_idc:u,bit_depth:h,bit_depth_luma:h,bit_depth_chroma:p,ref_frames:g,chroma_format:c,chroma_format_string:ue[r(413)](c),frame_rate:{fixed:P,fps:A,fps_den:D,fps_num:T},sar_ratio:{width:S,height:C},codec_size:{width:M,height:R},present_size:{width:U,height:R}}}static _skipScalingList(e,r){const t=le;let n=8,o=8,a=0;for(let i=0;i<r;i++)0!==o&&(a=e[t(426)](),o=(n+a+256)%256),n=0===o?n:o}static[le(409)](e){const r=le;switch(e){case 66:return r(404);case 77:return"Main";case 88:return r(395);case 100:return"High";case 110:return"High10";case 122:return r(401);case 244:return r(417);default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static[le(413)](e){const r=le;switch(e){case 420:return r(427);case 422:return r(422);case 444:return r(394);default:return r(406)}}}function ce(){const e=["6123879tQqZaU","Baseline","byteLength","Unknown","parseSPS$2","_ebsp2rbsp","getProfileString","toString","getLevelString","3626216MMDWzy","getChromaFormatString","187EKnvhH","readBits","readUEG","High444","10JZWDLw","subarray","21fpfWfp","readBool","4:2:2","4565KVBuPM","buffer","3LcoCBv","readSEG","4:2:0","destroy","812824VufAqI","11922VrjMBx","768282Prfvja","readByte","_skipScalingList","4:4:4","Extended","avc1.","1523023eGTLEJ","ceil","813828DzifYd","parseSPS","High422","length"];return(ce=function(){return e})()}function fe(e,r){const t=ce();return(fe=function(e,r){return t[e-=391]})(e,r)}function he(e,r){const t=me();return(he=function(e,r){return t[e-=131]})(e,r)}const pe=he;function me(){const e=["10bKqqpk","52479jHWQyi","buffer","read_golomb","bufpos","819066JlDtHT","107673ZDAkZZ","25hUYHat","bufoff","22936265dFwZCa","read","length","1016cfqamF","2679570dhgWRn","5079123nggPzP","iserro","1346348tkKKEc","buflen","9ZyYUhY"];return(me=function(){return e})()}!function(e,r){const t=he,n=e();for(;;)try{if(514539===parseInt(t(143))/1*(parseInt(t(137))/2)+-parseInt(t(136))/3*(-parseInt(t(134))/4)+-parseInt(t(144))/5*(parseInt(t(142))/6)+parseInt(t(132))/7+parseInt(t(149))/8*(parseInt(t(138))/9)+parseInt(t(131))/10+-parseInt(t(146))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(me);pe(147),pe(140);function ge(e,r){const t=ve();return(ge=function(e,r){return t[e-=119]})(e,r)}function ve(){const e=["2132896GUtAJd","readBits","readEG","readBool","min","242185ehhFfl","_bitsAvailable","buffer","72JGHNNG","getUint32","floor","4808020iWJQVj","skipBits","readUEG","ExpGolomb data params is required","_word","skipLZ","2153092DOmzam","6KBssUI","992462kajxvt","_bytesAvailable","2240742wNheuG","_loadWord","30eoBrxD","932922LFuFOn","byteLength","_data","subarray"];return(ve=function(){return e})()}const ye=ge;!function(e,r){const t=ge,n=e();for(;;)try{if(620491===-parseInt(t(142))/1+parseInt(t(140))/2+parseInt(t(141))/3*(parseInt(t(123))/4)+parseInt(t(128))/5*(parseInt(t(146))/6)+-parseInt(t(144))/7+-parseInt(t(131))/8*(parseInt(t(119))/9)+parseInt(t(134))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ve);ye(135),ye(124),ye(139),ye(136),ye(126);const we=be;function be(e,r){const t=Ee();return(be=function(e,r){return t[e-=432]})(e,r)}function _e(e){const r=be;let t=arguments[r(457)]>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let o=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();const a=new DataView(e.buffer);let i=a.getUint8(0),s=a.getUint8(1);if(a[r(481)](2),a[r(481)](3),1!==i){if(!t.correctionConfigurationVersion)return console[r(505)](r(520)+i+r(478)),{};{console[r(450)](r(443)+i+r(454));let e=252&a[r(481)](0)|1;a.setUint8(0,e)}}if(0===s){if(!t[r(472)])return console.error("Invalid parseAVCDecoderConfigurationRecord, AVC profile (0) detected, and return"),{};console[r(450)](r(470)),a[r(487)](1,66)}const d=1+(3&a[r(481)](4));if(3!==d&&4!==d)return{};let l=31&a[r(481)](5);if(0===l)return{};let u=6;for(let t=0;t<l;t++){let i=a[r(518)](u,!o);if(u+=2,0===i)continue;let s=new Uint8Array(e[r(521)],u,i);u+=i;let d=ue[r(447)](s);if(0!==t)continue;n[r(479)]=s,n[r(482)]=1e3,n[r(511)]=d[r(517)][r(513)],n.codecHeight=d[r(517)][r(453)],n[r(492)]=d[r(438)][r(513)],n.presentHeight=d[r(438)][r(453)],n.profile=d[r(519)],n[r(493)]=d[r(503)],n[r(442)]=d.bit_depth,n.chromaFormat=d[r(500)],n[r(476)]=d[r(475)],n[r(464)]=d[r(469)],(!1===d[r(469)][r(455)]||0===d[r(469)][r(463)]||0===d[r(469)][r(435)])&&(n.frameRate={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let l=n[r(464)][r(435)],c=n[r(464)].fps_num;n.refSampleDuration=n[r(482)]*(l/c);let f=s[r(485)](1,4),h="avc1.";for(let e=0;e<3;e++){let t=f[e][r(498)](16);t[r(457)]<2&&(t="0"+t),h+=t}n[r(448)]=h}let c=a.getUint8(u);if(0===c)return{};u++;for(let t=0;t<c;t++){let t=a[r(518)](u,!o);if(u+=2,0===t)continue;let i=new Uint8Array(e[r(521)],u,t);u+=t,n[r(449)]=i}if(n[r(522)]=S[r(460)],n[r(479)]){const e=n[r(479)].byteLength,t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(474)](t,0),o[r(474)](n[r(479)],4),n.sps=o}if(n[r(449)]){const e=n[r(449)][r(486)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),o=new Uint8Array(e+4);o[r(474)](t,0),o[r(474)](n[r(449)],4),n.pps=o}return n}function Ee(){const e=["skipScalingList","type","toString","Invalid AVCDecoderConfigurationRecord: No SPS","chroma_format","kReserved0","41604580LgdpLc","level_string","shift","error","1745150NuERSQ","compat","eofFlag","nb_sps","data","codecWidth"," Strange AVCDecoderConfigurationRecord: SPS Count = ","width","setInt16","readNextNaluPayload","7PUjivg","codec_size","getUint16","profile_string","Invalid AVCDecoderConfigurationRecord, invalid version ","buffer","videoType","kSliceNonIDR","skipUEG","findNextStartCodeOffset","read","fps_den","Strange NaluLengthSizeMinusOne: ","Could not find H264 startcode until payload end!","present_size","136204zpvoST","readUByte","bit_depth","bitDepth","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] invalid version ","readBits","Strange AVCDecoderConfigurationRecord: PPS Count = ","9326jgNGxB","parseSPS","codec","pps","log","skipBits","codecHeight","height",", correct to 1","fixed","kSliceSEI","length","66GTfRQi","Invalid AVCDecoderConfigurationRecord version !== 1 || avcProfile === 0","h264","avc_ref_frames","readUEG","fps_num","frameRate","chroma_format_idc","Invalid AVCDecoderConfigurationRecord, lack of data!","avc1.","push","frame_rate","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] AVC profile (0) detected, correct to Baseline Profile (66)","presentHeight","correctionConfigurationProfileIndication","read_golomb","set","sar_ratio","sarRatio","readBool",", valid version is 1 and return","sps","11611392YrYKHx","getUint8","timescale","currentStartcodeOffset","bit_depth_chroma","subarray","byteLength","setUint8","16563600XiBHqA","parseSPS$2","242VDBacv","5006632swusUC","presentWidth","level","iFrame","nalu"];return(Ee=function(){return e})()}!function(e,r){const t=be,n=e();for(;;)try{if(969357===-parseInt(t(490))/1*(-parseInt(t(446))/2)+-parseInt(t(458))/3*(parseInt(t(439))/4)+parseInt(t(506))/5+parseInt(t(480))/6+parseInt(t(516))/7*(parseInt(t(491))/8)+parseInt(t(488))/9+-parseInt(t(502))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ee);we(433),we(515);function ke(e,r){const t=Ce();return(ke=function(e,r){return t[e-=121]})(e,r)}const Se=ke;function Ce(){const e=["m_idx","GetBit","11EGuxcY","GetBYTE","m_byte","324GTAmhN","1382258LNJcDr","9FzLrKd","m_bits","270UjEvtL","130396vCpQMI","23574252RntOtK","m_data","m_len","14816RNXTYS","4710110MDjeuA","1zmFfkV","4097190HoVqdB","length","GetUE","m_zeros","GetWord","5269256zyWkay"];return(Ce=function(){return e})()}!function(e,r){const t=ke,n=e();for(;;)try{if(565912===-parseInt(t(127))/1*(parseInt(t(140))/2)+-parseInt(t(143))/3*(parseInt(t(125))/4)+parseInt(t(128))/5+parseInt(t(139))/6*(-parseInt(t(121))/7)+parseInt(t(133))/8*(-parseInt(t(141))/9)+parseInt(t(126))/10*(parseInt(t(136))/11)+parseInt(t(122))/12)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ce);class Ae{constructor(e){const r=ke;this[r(134)]=null,this[r(123)]=e,this[r(124)]=e[r(129)],this[r(134)]=0,this[r(142)]=0,this[r(138)]=0,this[r(131)]=0}[Se(137)](){const e=Se;if(this.m_idx>=this[e(124)])return 0;let r=this[e(123)][this.m_idx++];return 0==r?(this[e(131)]++,this[e(134)]<this[e(124)]&&2==this.m_zeros&&3==this[e(123)][this[e(134)]]&&(this[e(134)]++,this.m_zeros=0)):this[e(131)]=0,r}GetBit(){const e=Se;return 0==this[e(142)]&&(this[e(138)]=this[e(137)](),this.m_bits=8),this[e(142)]--,this[e(138)]>>this.m_bits&1}[Se(132)](e){const r=Se;let t=0;for(;e>0;)t<<=1,t|=this[r(135)](),e--;return t}GetUE(){const e=Se;let r=0;for(;this.m_idx<this.m_len&&0==this[e(135)]();)r++;return this[e(132)](r)+((1<<r)-1)}GetSE(){let e=this[Se(130)](),r=e+1>>1;return!(1&e)&&(r=-r),r}}function Pe(){const e=["2664423yoxUoE","SPSParser sps_seq_parameter_set_id > 15","parseSPS","7640cGFsIr","SPSParser bit_depth_luma_minus8 != bit_depth_chroma_minus8","warn","8304010ijlbpK","24bTdWXT","1677SIhVGo","SPSParser chroma_format_idc > 3","19355CEpZxO","_ebsp2rbsp","4233kMlPLh","1507233ZSpEiq","1698YNihDV","SPSParser sps_max_sub_layers_minus1 > 6","GetWord","8440290dQbCdx","byteLength","GetUE","634tXHbQM","buffer"];return(Pe=function(){return e})()}const Te=Ie;!function(e,r){const t=Ie,n=e();for(;;)try{if(818579===parseInt(t(392))/1*(parseInt(t(400))/2)+parseInt(t(410))/3*(parseInt(t(405))/4)+-parseInt(t(390))/5*(parseInt(t(394))/6)+parseInt(t(393))/7+parseInt(t(409))/8*(parseInt(t(402))/9)+-parseInt(t(397))/10+-parseInt(t(408))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Pe);class De{static[Te(391)](e){const r=Te;let t=e,n=t[r(398)],o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(401)],0,a)}static[Te(404)](e){const r=Te;let t=De[r(391)](e);const n=new Ae(t);let o="",a="",i="",s="";n[r(396)](4);let d=n[r(396)](3);if(d>6)return console[r(407)](r(395)),!1;n.GetWord(1),n.GetWord(2),n.GetWord(1),o=n[r(396)](5),n[r(396)](32),n[r(396)](1),n[r(396)](1),n.GetWord(1),n[r(396)](1),n[r(396)](44),a=n[r(396)](8);let l=[],u=[];for(let e=0;e<d;e++)l[e]=n[r(396)](1),u[e]=n[r(396)](1);if(d>0)for(let e=d;e<8;e++)n[r(396)](2);for(let e=0;e<d;e++)l[e]&&(n[r(396)](2),n[r(396)](1),n[r(396)](5),n.GetWord(32),n.GetWord(1),n[r(396)](1),n[r(396)](1),n[r(396)](1),n.GetWord(44)),u[e]&&n[r(396)](8);let c=n[r(399)]();if(c>15)return console[r(407)](r(403),c),!1;let f=n[r(399)]();return f>3?(console[r(407)](r(411),f),!1):(3==f&&n[r(396)](1),i=n.GetUE(),s=n[r(399)](),n.GetWord(1)&&(n[r(399)](),n[r(399)](),n[r(399)](),n[r(399)]()),n[r(399)]()!=n.GetUE()?(console[r(407)](r(406)),!1):{profile_string:o,level_string:a,bit_depth:"",ref_frames:"",chroma_format:"",chroma_format_string:"",frame_rate:{fixed:"",fps:"",fps_den:"",fps_num:""},sar_ratio:{width:"",height:""},codec_size:{width:i,height:s},present_size:{width:"",height:s}})}}function Ie(e,r){const t=Pe();return(Ie=function(e,r){return t[e-=390]})(e,r)}function Fe(){const e=["8770GTnhvT","32jiXGMM","toFixed","readBool","push","min","buffer","1157420cTrZNV","readUEG","3018wONBwB","8289050SWyVsp","readByte","4:0:0",".B0","hvc1.","4:2:0","byteLength","readSEG","Unknown","709804SGBdzO","readBits","8329626YeXGHS",".1.L","9910376BdlNxs","destroy","4:4:4","331842eBwmDe"];return(Fe=function(){return e})()}function $e(e,r){const t=Fe();return($e=function(e,r){return t[e-=456]})(e,r)}!function(e,r){const t=$e,n=e();for(;;)try{if(742423===-parseInt(t(457))/1+parseInt(t(472))/2+parseInt(t(464))/3*(parseInt(t(466))/4)+parseInt(t(465))/5*(-parseInt(t(474))/6)+parseInt(t(475))/7+-parseInt(t(461))/8+parseInt(t(459))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Fe);const Me=Re;function Re(e,r){const t=Ue();return(Re=function(e,r){return t[e-=466]})(e,r)}!function(e,r){const t=Re,n=e();for(;;)try{if(153987===parseInt(t(490))/1+parseInt(t(493))/2*(-parseInt(t(484))/3)+-parseInt(t(491))/4+-parseInt(t(470))/5*(parseInt(t(483))/6)+parseInt(t(492))/7+-parseInt(t(475))/8*(parseInt(t(497))/9)+parseInt(t(477))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ue);class Be{static[Me(479)](e){const r=Me;let t=e,n=t.byteLength,o=new Uint8Array(n),a=0;for(let e=0;e<n;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(o[a]=t[e],a++);return new Uint8Array(o[r(489)],0,a)}static[Me(469)](e){const r=Me;let t=Be[r(479)](e),n=new B(t);return n[r(471)](),n[r(471)](),n[r(468)](4),n[r(468)](2),n[r(468)](6),{num_temporal_layers:n[r(468)](3)+1,temporal_id_nested:n.readBool()}}static parseSPS(e){const r=Me;let t=Be[r(479)](e),n=new B(t);n[r(471)](),n[r(471)]();let o=0,a=0,i=0,s=0;n[r(468)](4);let d=n[r(468)](3);n.readBool();let l=n[r(468)](2),u=n[r(478)](),c=n[r(468)](5),f=n.readByte(),h=n[r(471)](),p=n.readByte(),m=n.readByte(),g=n[r(471)](),v=n[r(471)](),y=n.readByte(),w=n[r(471)](),b=n.readByte(),_=n[r(471)](),E=n[r(471)](),k=[],S=[];for(let e=0;e<d;e++)k[r(488)](n[r(478)]()),S[r(488)](n[r(478)]());if(d>0)for(let e=d;e<8;e++)n[r(468)](2);for(let e=0;e<d;e++)k[e]&&(n[r(471)](),n[r(471)](),n[r(471)](),n[r(471)](),n.readByte(),n.readByte(),n[r(471)](),n[r(471)](),n[r(471)](),n.readByte(),n.readByte()),S[e]&&n[r(471)]();n[r(474)]();let C=n[r(474)]();3==C&&n[r(468)](1);let A=n[r(474)](),P=n[r(474)]();n[r(478)]()&&(o+=n[r(474)](),a+=n[r(474)](),i+=n[r(474)](),s+=n.readUEG());let T=n.readUEG(),D=n.readUEG(),I=n[r(474)]();for(let e=n.readBool()?0:d;e<=d;e++)n[r(474)](),n[r(474)](),n[r(474)]();if(n[r(474)](),n[r(474)](),n[r(474)](),n[r(474)](),n[r(474)](),n[r(474)](),n[r(478)]()){if(n[r(478)]())for(let e=0;e<4;e++)for(let t=0;t<(3===e?2:6);t++){if(n.readBool()){let t=Math[r(496)](64,1<<4+(e<<1));e>1&&n[r(486)]();for(let e=0;e<t;e++)n.readSEG()}else n[r(474)]()}}n[r(478)](),n[r(478)](),n.readBool()&&(n[r(471)](),n.readUEG(),n.readUEG(),n.readBool());let F=n.readUEG(),$=0;for(let e=0;e<F;e++){let t=!1;if(0!==e&&(t=n.readBool()),t){e===F&&n.readUEG(),n[r(478)](),n.readUEG();let t=0;for(let e=0;e<=$;e++){let e=n[r(478)](),o=!1;!e&&(o=n.readBool()),(e||o)&&t++}$=t}else{let e=n.readUEG(),t=n[r(474)]();$=e+t;for(let t=0;t<e;t++)n[r(474)](),n[r(478)]();for(let e=0;e<t;e++)n[r(474)](),n[r(478)]()}}if(n.readBool()){let e=n.readUEG();for(let t=0;t<e;t++){for(let e=0;e<I+4;e++)n[r(468)](1);n[r(468)](1)}}let M=!1,R=0,U=1,x=1,O=!1,W=1,j=1;if(n[r(478)](),n[r(478)](),n.readBool()){if(n[r(478)]()){let e=n[r(471)](),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<=16?(U=t[e-1],x=o[e-1]):255===e&&(U=n.readBits(16),x=n[r(468)](16))}if(n[r(478)]()&&n[r(478)](),n[r(478)]()){n.readBits(3),n[r(478)](),n.readBool()&&(n.readByte(),n[r(471)](),n.readByte())}if(n[r(478)]()&&(n[r(474)](),n.readUEG()),n.readBool(),n[r(478)](),n[r(478)](),M=n.readBool(),M&&(n[r(474)](),n[r(474)](),n[r(474)](),n[r(474)]()),n[r(478)]()){if(W=n[r(468)](32),j=n.readBits(32),n[r(478)]()&&n[r(474)](),n[r(478)]()){let e=!1,t=!1,o=!1;e=n[r(478)](),t=n[r(478)](),(e||t)&&(o=n[r(478)](),o&&(n[r(471)](),n.readBits(5),n[r(478)](),n[r(468)](5)),n[r(468)](4),n[r(468)](4),o&&n.readBits(4),n.readBits(5),n[r(468)](5),n[r(468)](5));for(let a=0;a<=d;a++){let a=n[r(478)]();O=a;let i=!0,s=1;!a&&(i=n[r(478)]());let d=!1;if(i?n[r(474)]():d=n[r(478)](),!d&&(s=n[r(474)]()+1),e){for(let e=0;e<s;e++)n[r(474)](),n[r(474)](),o&&(n[r(474)](),n[r(474)]());n.readBool()}if(t){for(let e=0;e<s;e++)n[r(474)](),n.readUEG(),o&&(n.readUEG(),n[r(474)]());n[r(478)]()}}}}n[r(478)]()&&(n[r(478)](),n.readBool(),n[r(478)](),R=n.readUEG(),n.readUEG(),n[r(474)](),n[r(474)](),n[r(474)]())}n[r(478)]();let L=r(482)+c+r(487)+E+r(466),V=A-(o+a)*(1===C||2===C?2:1),z=P-(i+s)*(1===C?2:1),N=1;return 1!==U&&1!==x&&(N=U/x),n.destroy(),n=null,{codec_mimetype:L,profile_string:Be[r(498)](c),level_string:Be[r(476)](E),profile_idc:c,bit_depth:T+8,ref_frames:1,chroma_format:C,chroma_format_string:Be[r(485)](C),general_level_idc:E,general_profile_space:l,general_tier_flag:u,general_profile_idc:c,general_profile_compatibility_flags_1:f,general_profile_compatibility_flags_2:h,general_profile_compatibility_flags_3:p,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:v,general_constraint_indicator_flags_3:y,general_constraint_indicator_flags_4:w,general_constraint_indicator_flags_5:b,general_constraint_indicator_flags_6:_,min_spatial_segmentation_idc:R,constant_frame_rate:0,chroma_format_idc:C,bit_depth_luma_minus8:T,bit_depth_chroma_minus8:D,frame_rate:{fixed:O,fps:j/W,fps_den:W,fps_num:j},sar_ratio:{width:U,height:x},codec_size:{width:V,height:z},present_size:{width:V*N,height:z}}}static parsePPS(e){const r=Me;let t=Be[r(479)](e),n=new B(t);n[r(471)](),n[r(471)](),n[r(474)](),n[r(474)](),n[r(478)](),n[r(478)](),n[r(468)](3),n[r(478)](),n[r(478)](),n[r(474)](),n[r(474)](),n[r(486)](),n[r(478)](),n[r(478)](),n.readBool()&&n.readUEG(),n[r(486)](),n.readSEG(),n[r(478)](),n.readBool(),n[r(478)](),n[r(478)]();let o=n[r(478)](),a=n[r(478)](),i=1;return a&&o?i=0:a?i=3:o&&(i=2),{parallelismType:i}}static getChromaFormatString(e){const r=Me;switch(e){case 0:return r(499);case 1:return r(495);case 2:return r(481);case 3:return"4:4:4";default:return r(472)}}static getProfileString(e){const r=Me;switch(e){case 1:return r(494);case 2:return"Main10";case 3:return"MainSP";case 4:return r(480);case 9:return r(473);default:return r(472)}}static getLevelString(e){return(e/30)[Me(467)](1)}}function Ue(){const e=["getLevelString","3757670IPeJCQ","readBool","_ebsp2rbsp","Rext","4:2:2","hvc1.","12hkIUYW","182001iwvKhF","getChromaFormatString","readSEG",".1.L","push","buffer","230359mhnqAW","949364ijUTfC","1589791biNmYd","2kFNuYL","Main","4:2:0","min","67959YnioiU","getProfileString","4:0:0",".B0","toFixed","readBits","parseVPS","613315ulVjpL","readByte","Unknown","SCC","readUEG","144ZHBwzl"];return(Ue=function(){return e})()}const xe=We;function Oe(){const e=["generalConstraintIndicatorFlags","chroma_format_idc","generalProfileIdc","Could not find H265 startcode until payload end!"," < 22","codecHeight","read_golomb","sub_layer_profile_space","sar_ratio","refSampleDuration","profile_idc","from","parseHEVCDecoderVPSAndSPSAndPPS and pps tag is ","present_size","9QBoozq","6942yTIILr","parseHEVCDecoderVPSAndSPSAndPPS and sps tag is ","conf_win_bottom_offset","hvcc","bit_depth_chroma_minus8","readUEG","readUByte",", valid hevc profile is Main Profile (1), Main 10 Profile (2),Main Still Picture Profile (3)","parseSPS","generalTierFlag","arrayBuffer.length ","psps","numTemporalLayers","log","Invalid HEVCDecoderConfigurationRecord: invalid HEVC profile ","134922GTxtyN","parallelismType","push","conf_win_left_offset","sub_layer_profile_idc","parseHEVCDecoderVPSAndSPSAndPPS and vpsTag is "," and naluLengthSize is ","conf_win_top_offset","correctionConfigurationProfileIndication","1015eyOoHW"," < 23","general_profile_space","chromaFormat","sub_layer_level_present_flag","eofFlag","vps","sub_layer_level_idc","sub_layer_frame_only_constraint_flag","sarRatio","tier_flag","codec_mimetype","buffer","sub_layer_tier_flag","sps_max_sub_layers_minus1","setUint32","general_frame_only_constraint_flag","general_constraint_indicator_flags_1","general_profile_compatibility_flags_4","constantFrameRate","conformance_window_flag","configurationVersion","codec_size","general_constraint_indicator_flags","Invalid HEVCDecoderConfigurationRecord, lack of data! ","temporal_id_nested","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","timescale","16204kXscgU","slice","sub_layer_profile_compatibility_flag","avgFrameRate","sub_layer_interlaced_source_flag","presentHeight","level","general_progressive_source_flag","4QbECfy","bit_depth","set","setUint8","profile","general_constraint_indicator_flags_3","bitDepthChromaMinus8","chroma_format","general_non_packed_constraint_flag","max","height","look","assign",", correct to 1","level_idc","conf_win_right_offset","setInt16","4940510IDPfwo","level_string",", correct to Main Profile (1)","sub_layer_profile_present_flag","warn","length","sps_temporal_id_nesting_flag","width","getUint16","general_tier_flag","subarray","num_temporal_layers","parseHEVCDecoderConfigurationRecord$3","pic_height_in_luma_samples","readNextNaluPayload","general_constraint_indicator_flags_6",", valid version is 1 or 0","general_interlaced_source_flag","profile_tier_level","general_profile_idc","sub_layer_progressive_source_flag","getUint8","general_constraint_indicator_flags_2","fps_den","bit_depth_luma_minus8","fps_num","min_spatial_segmentation_idc","sub_layer_non_packed_constraint_flag","readBits","Invalid HEVCDecoderConfigurationRecord,invalid version ","generalLevelIdc","sps","profile_string","general_constraint_indicator_flags_4","general_level_idc","data","generalProfileCompatibilityFlags","pps","byteLength","163824sTCjTZ","type","codecWidth","currentStartcodeOffset","separate_colour_plane_flag","temporalIdNested","presentWidth","fixed","bitDepth","1371400xIqarW","lengthSizeMinusOne","parseHEVCDecoderConfigurationRecord$2","read","general_profile_compatibility_flags_3","general_profile_compatibility_flags_1","frameRate","general_profile_compatibility_flags","Invalid HEVCDecoderConfigurationRecord, Strange NaluLengthSizeMinusOne: ","profile_space","findNextStartCodeOffset","273055LtBULf","pic_width_in_luma_samples","h265","bitDepthLumaMinus8","error","frame_rate"];return(Oe=function(){return e})()}function We(e,r){const t=Oe();return(We=function(e,r){return t[e-=337]})(e,r)}!function(e,r){const t=We,n=e();for(;;)try{if(100446===parseInt(t(369))/1+-parseInt(t(462))/2+parseInt(t(425))/3*(parseInt(t(470))/4)+parseInt(t(389))/5+-parseInt(t(410))/6*(-parseInt(t(434))/7)+parseInt(t(378))/8+-parseInt(t(409))/9*(parseInt(t(487))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Oe);xe(344);const je=Ve;function Le(){const e=["audioCode","videoCodec","simdDecodeDelayTimeout","1674WkKQsN","destroy","isUseSIMDAndroid","toString","ModuleAudio",", old height is ","streamRateAndStatsInterval","lastDecodeVideoFrameTimestamp","tempAudioBuffer","validatedFailed","isVideoFirstIFrame","wasmDecodeErrorStartTime","decodeVideo: hasInitVideoCodec is false, codecId is ","audioOriginalSampleRate","audioDecoder","decodeVideo: simd decode delay timeout, and return","debugError","setCodecAudio","video wasm error:","2220450qjXBTn","2647116wtyZoT","ModuleVideo","wasmDecodeDelay is ","decodeVideo, decoder is destroyed and return","MtWasmDecoder","audioBufferSize"," _opt.sampleRate is ","yuvData, decoder is destroyed and return","yuvData ts ","player","MULAW","15wxIBwT","useSIMD"," and isIFrame is ","initVideo","stopStreamRateAndStatsInterval","videoHeight","2661224fXPtdG","setCodecAudio: init audio codec, codeId is ","debugWarn","isDestroyed","decode","setCodecVideo: hasInitVideoCodec is false, codecId is ","decodeVideo and payload is video sequence header so drop this frame","setCodec","codecWidth","byteLength","videoCode","\n                and replay",", height: ","3581760LAVOZz","getCorrectionConfiguration"," and packetType is ","isSimdDecodeDelayTimeout","h265","playAudio","_handleModuleAudioError","getBuildTime","newDecodedVideoFrameTimestamp","isWidthOrHeightChanged","pcmData, decoder is destroyed and return","decodeVideo","1850112IpHWzV","ALAW","codecHeight","debugLog","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","pcmData","428aWCURq","decodeVideo first frame is not iFrame","decodeVideo: simd decode error, and return","_opt","HEAPU32","sampleRate","slice","width: ","_handleModuleVideoError","clear",",\n                            and emit change event",",\n                            new width is ","2314899saNzst","validatedFailed, please contact the author to get the correct license","decodeVideo: video width or height is changed, and return","pcmData ts "," and diff is ","isSimdDecodeError","decodeVideo and payload is too small , payload length is ","setCodecAudio, audioDecoder is not exist or setCodec is not a function","_reset",", height is ","startStreamRateAndStatsInterval","_initSuccess","audioDepth","AAC","bind","setCodecVideo","h264","TAG_NAME","isFFmpegSIMD","hasInitAudioCodec","hasInitVideoCodec","audioRemain","delete"," > ","MP3","videoDecoder","_updateStreamRateAndStats","7nkQabD"," create uint8Array error :","decodeAudio, decoder is destroyed and return","yuvData","iframeIntervalTimestamp","workerEnd","prevAudioTs","HEAPF32","subarray","errorInfo() emit simdDecodeError and\n                iframeIntervalTimestamp is ","yuvData, isVideoFirstIFrame is false and return","dispatch","render","errorInfo","videoWidth","audioChannels","simdH264DecodeVideoWidthIsTooLarge","emit","simdDecodeError","length","audio wasm error:","mp3Demuxer","off","data","Jb pro 体验结束,请刷新页面再次体验(wasm内部会暂停解码),如需要购买商业授权,可以联系微信:bosswancheng",", new height is "];return(Le=function(){return e})()}function Ve(e,r){const t=Le();return(Ve=function(e,r){return t[e-=191]})(e,r)}!function(e,r){const t=Ve,n=e();for(;;)try{if(507111===-parseInt(t(240))/1*(parseInt(t(308))/2)+-parseInt(t(252))/3+parseInt(t(222))/4+-parseInt(t(203))/5*(-parseInt(t(234))/6)+parseInt(t(279))/7*(parseInt(t(209))/8)+-parseInt(t(192))/9+-parseInt(t(191))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Le);class ze extends ne{constructor(e){const r=Ve;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[r(201)]=e,this[r(243)]=t,this[r(269)]=r(196),this[r(260)](),this[r(197)]=t[r(197)]||1024,this[r(245)]=t[r(245)]||48e3,this.ModuleAudio=null,this[r(193)]=null,this[r(277)]=null,this.audioDecoder=null,this[r(285)]=null,this.streamRateAndStatsInterval=null,this[r(318)]=!!Q(e[r(243)].checkFirstIFrame),this.init()}destroy(){const e=Ve;if(this[e(301)](),this.stopStreamRateAndStatsInterval(),this[e(322)]){try{K(this[e(322)][e(249)])&&this[e(322)][e(249)](),K(this[e(322)][e(274)])&&this.audioDecoder[e(274)]()}catch(e){}this.audioDecoder=null}if(this[e(277)]){try{K(this[e(277)].clear)&&this.videoDecoder[e(249)](),K(this[e(277)].delete)&&this[e(277)][e(274)]()}catch(e){}this[e(277)]=null}this.ModuleVideo=null,this.ModuleAudio=null,this[e(285)]=null,this[e(300)]&&(this[e(300)][e(309)](),this.mp3Demuxer=null),this[e(260)](),this.player[e(237)](this[e(269)],e(309))}init(){}[je(263)](){}[je(278)](){const e=je,r=this[e(315)]-this[e(230)];this.emit(w.mtStreamStats,{wasmDecodeDelay:r}),this.isUseSIMDAndroid()&&0===this[e(230)]&&r>5e3&&(this[e(201)][e(237)](this.TAG_NAME,e(194)+r+" ms and isSimdDecodeDelayTimeout is true, emit simdDecodeDelayTimeout"),this[e(225)]=!0,this[e(296)](w[e(307)]))}[je(262)](){const e=je;this.stopStreamRateAndStatsInterval(),this[e(314)]=setInterval(this[e(278)][e(266)](this),1e3),this[e(278)]()}[je(207)](){const e=je;this[e(314)]&&(clearInterval(this.streamRateAndStatsInterval),this[e(314)]=null)}[je(228)](e){const r=je;(function(e){const r=H;return!(!e||-1===e[r(779)](r(588))&&-1===e[r(779)](r(650))&&-1===e[r(779)](r(543))&&-1===e.indexOf("Reserved SBR extensions is not implemented"))})(e)||this[r(201)].debugError(this.TAG_NAME,r(299),e)}[je(248)](e){const r=je;(function(e){const r=H;return!(!e||-1===e[r(779)](r(605)))})(e)||(this.player.debugError(this[r(269)],r(326),e),Q(function(e){const r=H;let t=!0;return e&&-1!==e.indexOf(r(632))&&(t=!1),t}(e))&&this.emit(w.notSupportNewWasm,e))}[je(260)](){const e=je;this[e(322)]=null,this[e(277)]=null,this[e(197)]=null,this[e(293)]=0,this[e(208)]=0,this[e(294)]=0,this[e(321)]=0,this[e(264)]=0,this[e(271)]=!1,this.hasInitVideoCodec=!1,this[e(300)]=null,this[e(318)]=!1,this[e(231)]=!1,this.isSimdDecodeError=!1,this[e(315)]=0,this[e(319)]=null,this[e(230)]=0,this[e(225)]=!1,this.audioRemain=0,this[e(283)]=0,this[e(316)]=[]}[je(267)](e,r){const t=je,n=15&e[0],o=this[t(201)];if(Q(this[t(277)]&&K(this.videoDecoder.setCodec)))o[t(324)](this[t(269)],"setCodecVideo, videoDecoder is not exist or setCodec is not a function");else if(Y(e))if(n===_[t(268)]||n===_.h265){o[t(237)](this[t(269)],"setCodecVideo: init video codec , codecId is "+n);const r=e[t(246)](5);if(n===_[t(268)]&&this[t(310)]()){const e=_e(r,this[t(201)][t(223)]());if(e[t(217)]>v||e.codecHeight>v)return this.emit(w[t(295)],"width: "+e[t(217)]+t(275)+v+t(221)+e[t(236)]+" > "+v),void o.debugWarn(this[t(269)],"setCodecVideo: SIMD H264 decode video width is too large, width is "+e.codecWidth+t(261)+e[t(236)])}const a=new Uint8Array(e);this[t(272)]=!0,this[t(277)][t(216)](n,r,this[t(229)]()),this.emit(w[t(219)],{code:n}),this[t(296)](w[t(306)],{buffer:a,codecId:n})}else o[t(211)](this[t(269)],t(214)+n+" is not H264 or H265");else o[t(211)](this[t(269)],t(320)+n+t(205)+r+t(224)+e[1])}setCodecAudio(e,r){const t=je,n=e[0]>>4,o=e[0]>>1&1;if(this[t(264)]=n===E.AAC?o?16:8:0===o?8:16,Q(this[t(322)]&&K(this.audioDecoder.setCodec)))return void this[t(201)][t(324)](this[t(269)],t(259));const a=this[t(201)];if(V(e)||n===E[t(235)]||n===E[t(202)]||n===E.MP3){this[t(201)].debugLog(this[t(269)],t(210)+n+t(198)+this[t(245)]);const o=n===E[t(265)]?e[t(246)](2):new Uint8Array(0);if(this[t(322)][t(216)](n,this[t(245)],o,this[t(229)]()),n===E.AAC&&this[t(296)](w.audioAACSequenceHeader,{buffer:o}),this.hasInitAudioCodec=!0,n!==E[t(265)]&&(n===E[t(276)]?(!this[t(300)]&&(this[t(300)]=new de(this),this.mp3Demuxer.on(t(302),((e,r)=>{const n=t;this[n(322)][n(213)](e,r)}))),this.mp3Demuxer[t(290)](e[t(246)](1),r)):this[t(322)].decode(e[t(246)](1),r)),Q(X)){const e=Number("1")||1;setTimeout((()=>{const e=t;this[e(201)][e(324)](this[e(269)],e(303)),this[e(309)](),this[e(296)](w[e(284)])}),60*e*60*1e3)}}else a[t(211)](this[t(269)],"setCodecAudio: hasInitAudioCodec is false, codecId is ",n)}decodeAudio(e,r){const t=je;if(this[t(201)].isDestroyed())return void this[t(201)].debugLog(this.TAG_NAME,t(281));const n=e[0]>>4;if(this[t(271)]){if(V(e))return void this.player.debugLog(this[t(269)],t(238));n===E.MP3?this.mp3Demuxer[t(290)](e[t(246)](1),r):this[t(322)][t(213)](n===E[t(265)]?e[t(246)](2):e[t(246)](1),r)}else this[t(325)](e,r)}[je(233)](e,r,t){const n=je;if(n(298),this[n(201)][n(212)]())this[n(201)][n(237)](this[n(269)],n(195));else if(this.hasInitVideoCodec)if(!this[n(318)]&&t&&(this[n(318)]=!0),this[n(318)]){if(t&&Y(e)){const r=15&e[0];let t={},o=e[n(246)](5);const a=this[n(201)][n(223)]();r===_[n(268)]?t=_e(o,a):r===_[n(226)]&&(t=function(e){const r=We;let t=arguments[r(492)]>1&&void 0!==arguments[1]?arguments[1]:{};const n=e;if(n[r(492)]<22)return console.error(r(458)+n[r(492)]+r(399)),{};let o={codecWidth:0,codecHeight:0,videoType:S[r(391)]},a=function(){const e=r;let t=new ArrayBuffer(2);return new DataView(t)[e(486)](0,256,!0),256===new Int16Array(t)[0]}(),i=new DataView(n.buffer),s=i[r(351)](0),d=31&i[r(351)](1);if(1!==s&&0!==s){if(!t.correctionConfigurationVersion)return console[r(393)](r(359)+s+r(346)),{};{console.log("JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid version "+s+r(483));let e=252&i.getUint8(0)|1;i[r(473)](0,e)}}if(0===d){if(!t[r(433)])return console[r(393)](r(424)+d+r(417)),{};{console[r(423)](r(460)+d+r(489));let e=224&i.getUint8(1)|1;i[r(473)](1,e)}}let l=1+(3&i[r(351)](21));if(3!==l&&4!==l)return console[r(393)](r(386)+(l-1)+r(431)+l+" ,"),{};let u=i.getUint8(22);for(let e=0,t=23;e<u;e++){let e=63&i.getUint8(t+0),s=i.getUint16(t+1,!a);t+=3;for(let d=0;d<s;d++){let s=i[r(338)](t+0,!a);if(0===d)if(33===e){t+=2;let e=new Uint8Array(n[r(446)],t,s),a=Be[r(418)](e);o[r(371)]=a[r(456)][r(337)],o[r(400)]=a[r(456)][r(480)],o[r(375)]=a[r(408)][r(337)],o.presentHeight=a[r(408)][r(480)],o.profile=a.profile_string,o[r(468)]=a.level_string,o[r(377)]=a[r(471)],o[r(437)]=a.chroma_format,o[r(443)]=a[r(403)],o[r(384)]=a[r(394)],(!1===a[r(394)][r(376)]||0===a[r(394)][r(355)]||0===a[r(394)][r(353)])&&(o[r(384)]={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3}),o[r(384)][r(353)],o.frameRate[r(355)],o.codec=a[r(445)],t+=s}else t+=2+s;else t+=2+s}}return o[r(413)]=new Uint8Array(n),o}(o,a)),t.codecWidth&&t[n(236)]&&this.videoWidth&&this[n(208)]&&(t.codecWidth!==this[n(293)]||t.codecHeight!==this[n(208)])&&(this[n(201)].debugWarn(this[n(269)],"\n                            decodeVideo: video width or height is changed,\n                            old width is "+this[n(293)]+n(313)+this.videoHeight+n(251)+t.codecWidth+n(304)+t[n(236)]+n(250)),this[n(231)]=!0,this[n(296)](w.wasmWidthOrHeightChange,n(247)+this[n(293)]+"->"+t[n(217)]+", height: "+this.videoHeight+"->"+t[n(236)]))}if(this[n(231)])return void this[n(201)].debugWarn(this[n(269)],n(254));if(this.isSimdDecodeError)return void this[n(201)].debugWarn(this.TAG_NAME,n(242));if(this.isSimdDecodeDelayTimeout)return void this[n(201)][n(211)](this[n(269)],n(323));if(Y(e))return void this[n(201)].debugLog(this[n(269)],n(215));if(e[n(218)]<12)return void this[n(201)][n(211)](this[n(269)],n(258)+e[n(218)]);this.lastDecodeVideoFrameTimestamp=r;const o=e[n(246)](5);this.videoDecoder[n(213)](o,t?1:0,r)}else this[n(201)][n(237)](this[n(269)],n(241));else this[n(267)](e,t)}videoInfo(e,r,t){const n=je;this[n(296)](w[n(219)],{code:e}),this[n(296)](w[n(206)],{w:r,h:t}),this[n(293)]=r,this[n(208)]=t,this.startStreamRateAndStatsInterval()}audioInfo(e,r,t){const n=je;this.emit(w[n(305)],{code:e}),this[n(296)](w.initAudio,{sampleRate:r,channels:t,depth:this[n(264)]}),this[n(294)]=t,this[n(321)]=r}[je(282)](e,r){const t=je;if(this[t(201)][t(212)]())return void this[t(201)][t(237)](this[t(269)],t(199));if(Q(this[t(318)]))return void this.player.debugLog(this[t(269)],t(289));const n=this[t(293)]*this[t(208)]*3/2;try{let o=this.ModuleVideo.HEAPU8.subarray(e,e+n),a=new Uint8Array(o);this.wasmDecodeErrorStartTime=null,this[t(230)]=r,this[t(296)](w[t(291)],{output:a,ts:r})}catch(e){this[t(201)][t(211)](this[t(269)],t(200)+r+t(280),e,e[t(311)]())}}[je(239)](e,r,t){const n=je;if(this[n(201)][n(212)]())return void this[n(201)].debugLog(this[n(269)],n(232));let o=r,a=[],i=0;try{let s=this[n(245)],d=this[n(197)];for(let r=0;r<this.audioChannels;r++){let t=this[n(312)][n(244)][(e>>2)+r]>>2;a[r]=this[n(312)][n(286)].subarray(t,t+o)}if(this[n(273)]){if(!(o>=(r=d-this.audioRemain)))return this[n(273)]+=o,this.tempAudioBuffer[0]=Float32Array.of(...this[n(316)][0],...a[0]),void(2==this[n(294)]&&(this[n(316)][1]=Float32Array.of(...this.tempAudioBuffer[1],...a[1])));{let e=[];e[0]=Float32Array.of(...this.tempAudioBuffer[0],...a[0][n(287)](0,r)),2==this[n(294)]&&(e[1]=Float32Array.of(...this[n(316)][1],...a[1].subarray(0,r)));let l=t;if(null!==this[n(285)]&&t==this[n(285)]){const e=Math.floor(1e3*d/s);l=this.prevAudioTs+e}this[n(296)](w[n(227)],{buffer:e,ts:l}),i=r,o-=r,this.prevAudioTs=l}}for(this[n(273)]=o;this[n(273)]>=d;this.audioRemain-=d){let e=[];e[0]=a[0][n(246)](i,i+=d),2==this[n(294)]&&(e[1]=a[1][n(246)](i-d,i));let r=t;if(null!==this[n(285)]&&t==this.prevAudioTs){const e=Math.floor(1e3*d/s);r=this.prevAudioTs+e}this.emit(w.playAudio,{buffer:e,ts:r}),this[n(285)]=r}this[n(273)]&&(this[n(316)][0]=a[0][n(246)](i),2==this[n(294)]&&(this[n(316)][1]=a[1].slice(i))),a=[]}catch(e){this[n(201)][n(211)]("worker",n(255)+t+n(280),e,e[n(311)]())}}[je(292)](e){const r=je;null===this[r(319)]&&(this.wasmDecodeErrorStartTime=G());const t=G(),n=function(e,r,t){const n=J;return Math[n(665)](Math.min(e,Math.max(r,t)),Math[n(547)](r,t))}(this[r(283)]>0?2*this[r(283)]:5e3,1e3,5e3),o=t-this[r(319)];o>n&&(this.player.debugWarn(this[r(269)],r(288)+this[r(283)]+r(256)+o+" and maxDiff is "+n+r(220)),this[r(257)]=!0,this[r(296)](w[r(297)]))}[je(229)](){return m+"-"+g}isUseSIMDAndroid(){const e=je;return this[e(201)][e(243)].useSIMD&&!this[e(201)][e(243)][e(270)]}isUseSIMDFfmpeg(){const e=je;return this.player[e(243)][e(204)]&&this.player[e(243)][e(270)]}timeEnd(){const e=je;this[e(201)][e(324)](this.TAG_NAME,e(303)),this[e(309)](),this[e(296)](w[e(284)])}[je(317)](){const e=je;this[e(201)][e(324)](this[e(269)],e(253))}}function Ne(){const e=["_initSuccess","wasm","953478NHbHHD","1578608VrDnOr","then","ModuleVideo","_handleModuleVideoError","VideoDecoder","TAG_NAME","_handleModuleAudioError","emit","2053639fRELWO","debugError","all","catch","4130610pKiuUT","init wasm error","5XQzdKm","push","2823GCtMMl","3469048MvFilT","538218wvutlf","videoDecoder","50Okfgrt","AudioDecoder","mtType","MtWasmDecoder","bind","player","JessibucaProMtWasmDecoder","init","toString","audioDecoder"];return(Ne=function(){return e})()}const He=Ge;function Ge(e,r){const t=Ne();return(Ge=function(e,r){return t[e-=255]})(e,r)}!function(e,r){const t=Ge,n=e();for(;;)try{if(400156===-parseInt(t(265))/1+-parseInt(t(267))/2*(-parseInt(t(263))/3)+-parseInt(t(280))/4+parseInt(t(261))/5*(parseInt(t(259))/6)+parseInt(t(255))/7+parseInt(t(264))/8+-parseInt(t(279))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ne);class qe extends ze{constructor(e){const r=Ge;super(e),this[r(285)]=r(270),this[r(269)]=T[r(278)]}[He(274)](){const e=He,n=[];n[e(262)](t({printErr:this[e(286)][e(271)](this)}),r({printErr:this[e(283)].bind(this)})),Promise[e(257)](n)[e(281)]((r=>{const t=e;let[n,o]=r;this.ModuleAudio=n,this[t(282)]=o,o[t(284)]&&(this[t(266)]=new(o[t(284)])(this)),n[t(268)]&&(this[t(276)]=new(n[t(268)])(this)),this[t(287)](w.init),this[t(277)](),this.player.debugLog(this[t(285)],t(274))}))[e(258)]((r=>{const t=e;this[t(272)][t(256)](this.TAG_NAME,t(260),r,r[t(275)]())}))}}window[He(273)]=qe}));