hzwl-easy-player
Version:
基于Vue 3的视频播放器组件,支持单屏和多屏播放模式
1 lines • 477 kB
JavaScript
!function(e){"function"==typeof define&&define.amd?define(["crypto-js"],e):e()}((function(){"use strict";var e,t=(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-simd-mt.js",document.baseURI).href,async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,i,n;(n=t).ready=new Promise(((e,t)=>{r=e,i=t})),(n=void 0!==n?n:{}).locateFile=function(e){return"decoder-pro-simd-mt-worker.wasm"==e&&"undefined"!=typeof EASYPLAYER_PRO_SIMD_MT_WORKER_WASM_URL&&""!=EASYPLAYER_PRO_SIMD_MT_WORKER_WASM_URL?EASYPLAYER_PRO_SIMD_MT_WORKER_WASM_URL:e};var s,a,o,d=Object.assign({},n),l=(e,t)=>{throw t},u="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h=n.ENVIRONMENT_IS_PTHREAD||!1,p="";function m(e){return n.locateFile?n.locateFile(e,p):p+e}if(f){const{createRequire:e}=await import("module");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-simd-mt.js",document.baseURI).href),g=_("fs"),y=_("path");let t;p=c?y.dirname(p)+"/":_("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-simd-mt.js",document.baseURI).href)),s=(e,t)=>(e=X(e)?new URL(e):y.normalize(e),g.readFileSync(e,t?void 0:"utf8")),o=e=>{var t=s(e,!0);return t.buffer||(t=new Uint8Array(t)),t},a=function(e,t,r){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=X(e)?new URL(e):y.normalize(e),g.readFile(e,i?void 0:"utf8",((e,n)=>{e?r(e):t(i?n.buffer:n)}))},!n.thisProgram&&process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),l=(e,t)=>{throw process.exitCode=e,t},n.inspect=()=>"[Emscripten Module object]";try{t=_("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=t.Worker}else(u||c)&&(c?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),e&&(p=e),p=0!==p.indexOf("blob:")?p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):"",f||(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},c&&(o=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),a=(e,t,r)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)}));f&&"undefined"==typeof performance&&(global.performance=_("perf_hooks").performance);var v=console.log.bind(console),b=console.error.bind(console);f&&(v=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return g.writeSync(1,t.join(" ")+"\n")},b=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return g.writeSync(2,t.join(" ")+"\n")});var w,S,E,A=n.print||v,U=n.printErr||b;Object.assign(n,d),d=null,n.arguments&&n.arguments,n.thisProgram&&n.thisProgram,n.quit&&(l=n.quit),n.wasmBinary&&(w=n.wasmBinary),"object"!=typeof WebAssembly&&q("no native wasm support detected");var T,x,B,k,C,P,D,I,F,L,M=!1,R=n.INITIAL_MEMORY||536870912;if(h)S=n.wasmMemory;else if(n.wasmMemory)S=n.wasmMemory;else if(!((S=new WebAssembly.Memory({initial:R/65536,maximum:R/65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw U("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"),f&&U("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");L=S.buffer,n.HEAP8=x=new Int8Array(L),n.HEAP16=k=new Int16Array(L),n.HEAPU8=B=new Uint8Array(L),n.HEAPU16=C=new Uint16Array(L),n.HEAP32=P=new Int32Array(L),n.HEAPU32=D=new Uint32Array(L),n.HEAPF32=I=new Float32Array(L),n.HEAPF64=F=new Float64Array(L),R=S.buffer.byteLength;var N=[],z=[],O=[];function $(){h||he(z)}function G(e){N.unshift(e)}var H=0,V=null;function W(e){H++,n.monitorRunDependencies&&n.monitorRunDependencies(H)}function j(e){if(H--,n.monitorRunDependencies&&n.monitorRunDependencies(H),0==H&&V){var t=V;V=null,t()}}function q(e){n.onAbort&&n.onAbort(e),U(e="Aborted("+e+")"),M=!0,T=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw i(t),t}var Y,K=e=>e.startsWith("data:application/octet-stream;base64,"),X=e=>e.startsWith("file://");function Z(e){if(e==Y&&w)return new Uint8Array(w);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}function J(e,t,r){return function(e){if(!w&&(u||c)){if("function"==typeof fetch&&!X(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>Z(e)));if(a)return new Promise(((t,r)=>{a(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>Z(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{U(`failed to asynchronously prepare wasm: ${e}`),q(e)}))}function Q(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}n.locateFile?K(Y="decoder-pro-simd-mt-worker.wasm")||(Y=m(Y)):Y=new URL("decoder-pro-simd-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-simd-mt.js",document.baseURI).href).href;var ee=e=>{e.terminate(),e.onmessage=e=>{}},te=e=>{var t=fe.pthreads[e];fe.returnWorkerToPool(t)},re=e=>{var t=fe.getNewWorker();if(!t)return 6;fe.runningWorkers.push(t),fe.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return f&&t.unref(),t.postMessage(r,e.transferList),0},ie=0,ne=()=>ye||ie>0,se="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ae=(e,t,r)=>{for(var i=t+r,n=t;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&se)return se.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,n):e.subarray(t,n));for(var s="";t<n;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var d=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|d:(7&a)<<18|o<<12|d<<6|63&e[t++])<65536)s+=String.fromCharCode(a);else{var l=a-65536;s+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s},oe=(e,t)=>e?ae(B,e,t):"",de=function(e,t){var r=arguments.length-2,i=arguments;return(e=>{var t=or(),r=e();return dr(t),r})((()=>{for(var n=r,s=lr(8*n),a=s>>3,o=0;o<r;o++){var d=i[2+o];F[a+o]=d}return rr(e,n,s,t)}))};function le(e){if(h)return de(0,1,e);T=e,ne()||(fe.terminateAllThreads(),n.onExit&&n.onExit(e),M=!0),l(e,new Q(e))}var ue=(e,t)=>{if(T=e,h)throw pe(e),"unwind";le(e)},ce=e=>{if(e instanceof Q||"unwind"==e)return T;l(1,e)},fe={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){h?fe.initWorker():fe.initMainThread()},initMainThread(){for(var e=8;e--;)fe.allocateUnusedWorker();G((()=>{W(),fe.loadWasmModuleToAllWorkers((()=>j()))}))},initWorker(){ye=!1},setExitStatus:e=>{T=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of fe.runningWorkers)ee(e);for(var e of fe.unusedWorkers)ee(e);fe.unusedWorkers=[],fe.runningWorkers=[],fe.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete fe.pthreads[t],fe.unusedWorkers.push(e),fe.runningWorkers.splice(fe.runningWorkers.indexOf(e),1),e.pthread_ptr=0,ir(t)},receiveObjectTransfer(e){},threadInitTLS(){fe.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var i=r.data,s=i.cmd;if(i.targetThread&&i.targetThread!=Jt()){var a=fe.pthreads[i.targetThread];a?a.postMessage(i,i.transferList):U(`Internal error! Worker sent a message "${s}" to target pthread ${i.targetThread}, but that thread no longer exists!`)}else{var o;"checkMailbox"===s?Ft():"spawnThread"===s?re(i):"cleanupThread"===s?te(i.thread):"killThread"===s?(e=>{var t=fe.pthreads[e];delete fe.pthreads[e],ee(t),ir(e),fe.runningWorkers.splice(fe.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(i.thread):"cancelThread"===s?(o=i.thread,fe.pthreads[o].postMessage({cmd:"cancel"})):"loaded"===s?(e.loaded=!0,f&&!e.pthread_ptr&&e.unref(),t(e)):"alert"===s?alert(`Thread ${i.threadId}: ${i.text}`):"setimmediate"===i.target?e.postMessage(i):"callHandler"===s?n[i.handler](...i.args):s&&U(`worker sent an unknown command ${s}`)}},e.onerror=e=>{throw U(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},f&&(e.on("message",(t=>e.onmessage({data:t}))),e.on("error",(t=>e.onerror(t))));var r=[];for(var i of["onExit","onAbort","print","printErr"])n.hasOwnProperty(i)&&r.push(i);e.postMessage({cmd:"load",handlers:r,urlOrBlob:n.mainScriptUrlOrBlob,wasmMemory:S,wasmModule:E})})),loadWasmModuleToAllWorkers(e){if(h)return e();Promise.all(fe.unusedWorkers.map(fe.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(n.locateFile){var t=m("decoder-pro-simd-mt-worker.worker.js");e=new Worker(t,{type:"module"})}else e=new Worker(new URL("decoder-pro-simd-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-simd-mt.js",document.baseURI).href),{type:"module"});fe.unusedWorkers.push(e)},getNewWorker:()=>(0==fe.unusedWorkers.length&&(fe.allocateUnusedWorker(),fe.loadWasmModuleToWorker(fe.unusedWorkers[0])),fe.unusedWorkers.pop())};n.PThread=fe;var he=e=>{for(;e.length>0;)e.shift()(n)};function pe(e){if(h)return de(1,0,e);ue(e)}n.establishStackSpace=()=>{var e=Jt(),t=D[e+52>>2],r=D[e+56>>2];ar(t,t-r),dr(t)};var me,_e=[],ge=e=>{var t=_e[e];return t||(e>=_e.length&&(_e.length=e+1),_e[e]=t=me.get(e)),t};n.invokeEntryPoint=(e,t)=>{!function(e){ne()?fe.setExitStatus(e):nr(e)}(ge(e)(t))};var ye=n.noExitRuntime||!0,ve=e=>{fe.tlsInitFunctions.push(e)};function be(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){D[this.ptr+4>>2]=e},this.get_type=function(){return D[this.ptr+4>>2]},this.set_destructor=function(e){D[this.ptr+8>>2]=e},this.get_destructor=function(){return D[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,x[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=x[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,x[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=x[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){D[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return D[this.ptr+16>>2]},this.get_exception_ptr=function(){if(ur(this.get_type()))return D[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}function we(e,t,r,i){return h?de(2,1,e,t,r,i):Ue(e,t,r,i)}var Se,Ee,Ae,Ue=(e,t,r,i)=>{if("undefined"==typeof SharedArrayBuffer)return U("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var n=[];if(h&&0===n.length)return we(e,t,r,i);var s={startRoutine:r,pthread_ptr:e,arg:i,transferList:n};return h?(s.cmd="spawnThread",postMessage(s,n),0):re(s)},Te=e=>{for(var t="",r=e;B[r];)t+=Se[B[r++]];return t},xe={},Be={},ke={},Ce=e=>{throw new Ee(e)},Pe=e=>{throw new Ae(e)},De=(e,t,r)=>{function i(t){var i=r(t);i.length!==e.length&&Pe("Mismatched type converter count");for(var n=0;n<e.length;++n)Ie(e[n],i[n])}e.forEach((function(e){ke[e]=t}));var n=new Array(t.length),s=[],a=0;t.forEach(((e,t)=>{Be.hasOwnProperty(e)?n[t]=Be[e]:(s.push(e),xe.hasOwnProperty(e)||(xe[e]=[]),xe[e].push((()=>{n[t]=Be[e],++a===s.length&&i(n)})))})),0===s.length&&i(n)};function Ie(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i=t.name;if(e||Ce(`type "${i}" must have a positive integer typeid pointer`),Be.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Ce(`Cannot register type '${i}' twice`)}if(Be[e]=t,delete ke[e],xe.hasOwnProperty(e)){var n=xe[e];delete xe[e],n.forEach((e=>e()))}}(e,t,r)}var Fe,Le=e=>{Ce(e.$$.ptrType.registeredClass.name+" instance already deleted")},Me=!1,Re=e=>{},Ne=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},ze=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var i=ze(e,t,r.baseClass);return null===i?null:r.downcast(i)},Oe={},$e=()=>Object.keys(je).length,Ge=()=>{var e=[];for(var t in je)je.hasOwnProperty(t)&&e.push(je[t]);return e},He=[],Ve=()=>{for(;He.length;){var e=He.pop();e.$$.deleteScheduled=!1,e.delete()}},We=e=>{Fe=e,He.length&&Fe&&Fe(Ve)},je={},qe=(e,t)=>(t=((e,t)=>{for(void 0===t&&Ce("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),je[t]),Ye=(e,t)=>(t.ptrType&&t.ptr||Pe("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Pe("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Xe(Object.create(e,{$$:{value:t}})));function Ke(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=qe(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var i=r.clone();return this.destructor(e),i}function n(){return this.isSmartPointer?Ye(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ye(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var s,a=this.registeredClass.getActualType(t),o=Oe[a];if(!o)return n.call(this);s=this.isConst?o.constPointerType:o.pointerType;var d=ze(t,this.registeredClass,s.registeredClass);return null===d?n.call(this):this.isSmartPointer?Ye(s.registeredClass.instancePrototype,{ptrType:s,ptr:d,smartPtrType:this,smartPtr:e}):Ye(s.registeredClass.instancePrototype,{ptrType:s,ptr:d})}var Xe=e=>"undefined"==typeof FinalizationRegistry?(Xe=e=>e,e):(Me=new FinalizationRegistry((e=>{Ne(e.$$)})),Xe=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Me.register(e,r,e)}return e},Re=e=>Me.unregister(e),Xe(e));function Ze(){}var Je=(e,t)=>Object.defineProperty(t,"name",{value:e}),Qe=(e,t,r)=>{if(void 0===e[t].overloadTable){var i=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Ce(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[i.argCount]=i}};function et(e,t,r,i,n,s,a,o){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=n,this.getActualType=s,this.upcast=a,this.downcast=o,this.pureVirtualFunctions=[]}var tt=(e,t,r)=>{for(;t!==r;)t.upcast||Ce(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function rt(e,t){if(null===t)return this.isReference&&Ce(`null is not a valid ${this.name}`),0;t.$$||Ce(`Cannot pass "${St(t)}" as a ${this.name}`),t.$$.ptr||Ce(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return tt(t.$$.ptr,r,this.registeredClass)}function it(e,t){var r;if(null===t)return this.isReference&&Ce(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Ce(`Cannot pass "${St(t)}" as a ${this.name}`),t.$$.ptr||Ce(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&Ce(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var i=t.$$.ptrType.registeredClass;if(r=tt(t.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Ce("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Ce(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var n=t.clone();r=this.rawShare(r,bt.toHandle((()=>n.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:Ce("Unsupporting sharing policy")}return r}function nt(e,t){if(null===t)return this.isReference&&Ce(`null is not a valid ${this.name}`),0;t.$$||Ce(`Cannot pass "${St(t)}" as a ${this.name}`),t.$$.ptr||Ce(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&Ce(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return tt(t.$$.ptr,r,this.registeredClass)}function st(e){return this.fromWireType(D[e>>2])}function at(e,t,r,i,n,s,a,o,d,l,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=i,this.isSmartPointer=n,this.pointeeType=s,this.sharingPolicy=a,this.rawGetPointee=o,this.rawConstructor=d,this.rawShare=l,this.rawDestructor=u,n||void 0!==t.baseClass?this.toWireType=it:i?(this.toWireType=rt,this.destructorFunction=null):(this.toWireType=nt,this.destructorFunction=null)}var ot,dt=(e,t,r)=>e.includes("j")?((e,t,r)=>{var i=n["dynCall_"+e];return r&&r.length?i.apply(null,[t].concat(r)):i.call(null,t)})(e,t,r):ge(t).apply(null,r),lt=(e,t)=>{var r,i,n,s=(e=Te(e)).includes("j")?(r=e,i=t,n=[],function(){return n.length=0,Object.assign(n,arguments),dt(r,i,n)}):ge(t);return"function"!=typeof s&&Ce(`unknown function pointer with signature ${e}: ${t}`),s},ut=e=>{var t=Qt(e),r=Te(t);return Xt(t),r},ct=(e,t)=>{var r=[],i={};throw t.forEach((function e(t){i[t]||Be[t]||(ke[t]?ke[t].forEach(e):(r.push(t),i[t]=!0))})),new ot(`${e}: `+r.map(ut).join([", "]))},ft=(e,t)=>{for(var r=[],i=0;i<e;i++)r.push(D[t+4*i>>2]);return r},ht=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function pt(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Je(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var i=new r,n=e.apply(i,t);return n instanceof Object?n:i}function mt(e,t,r,i,n,s){var a=t.length;a<2&&Ce("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==t[1]&&null!==r,d=!1,l=1;l<t.length;++l)if(null!==t[l]&&void 0===t[l].destructorFunction){d=!0;break}var u="void"!==t[0].name,c="",f="";for(l=0;l<a-2;++l)c+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var h=`\n return function (${c}) {\n if (arguments.length !== ${a-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${a-2}');\n }`;d&&(h+="var destructors = [];\n");var p=d?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],_=[Ce,i,n,ht,t[0],t[1]];for(o&&(h+="var thisWired = classParam.toWireType("+p+", this);\n"),l=0;l<a-2;++l)h+="var arg"+l+"Wired = argType"+l+".toWireType("+p+", arg"+l+"); // "+t[l+2].name+"\n",m.push("argType"+l),_.push(t[l+2]);if(o&&(f="thisWired"+(f.length>0?", ":"")+f),h+=(u||s?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",d)h+="runDestructors(destructors);\n";else for(l=o?1:2;l<t.length;++l){var g=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==t[l].destructorFunction&&(h+=g+"_dtor("+g+"); // "+t[l].name+"\n",m.push(g+"_dtor"),_.push(t[l].destructorFunction))}u&&(h+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),h+="}\n",m.push(h);var y=pt(Function,m).apply(null,_);return Je(e,y)}function _t(){this.allocated=[void 0],this.freelist=[]}var gt=new _t,yt=e=>{e>=gt.reserved&&0==--gt.get(e).refcount&>.free(e)},vt=()=>{for(var e=0,t=gt.reserved;t<gt.allocated.length;++t)void 0!==gt.allocated[t]&&++e;return e},bt={toValue:e=>(e||Ce("Cannot use deleted val. handle = "+e),gt.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 gt.allocate({refcount:1,value:e})}}};function wt(e){return this.fromWireType(P[e>>2])}var St=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Et=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(I[e>>2])};case 8:return function(e){return this.fromWireType(F[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},At=(e,t,r)=>{switch(t){case 1:return r?e=>x[e>>0]:e=>B[e>>0];case 2:return r?e=>k[e>>1]:e=>C[e>>1];case 4:return r?e=>P[e>>2]:e=>D[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ut="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tt=(e,t)=>{for(var r=e,i=r>>1,n=i+t/2;!(i>=n)&&C[i];)++i;if((r=i<<1)-e>32&&Ut)return Ut.decode(B.slice(e,r));for(var s="",a=0;!(a>=t/2);++a){var o=k[e+2*a>>1];if(0==o)break;s+=String.fromCharCode(o)}return s},xt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var i=t,n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var a=e.charCodeAt(s);k[t>>1]=a,t+=2}return k[t>>1]=0,t-i},Bt=e=>2*e.length,kt=(e,t)=>{for(var r=0,i="";!(r>=t/4);){var n=P[e+4*r>>2];if(0==n)break;if(++r,n>=65536){var s=n-65536;i+=String.fromCharCode(55296|s>>10,56320|1023&s)}else i+=String.fromCharCode(n)}return i},Ct=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var i=t,n=i+r-4,s=0;s<e.length;++s){var a=e.charCodeAt(s);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++s)),P[t>>2]=a,(t+=4)+4>n)break}return P[t>>2]=0,t-i},Pt=e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i>=55296&&i<=57343&&++r,t+=4}return t},Dt=e=>{if(!M)try{e(),(()=>{if(!ne())try{h?nr(T):ue(T)}catch(e){ce(e)}})()}catch(e){ce(e)}},It=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(P,e>>2,e).value.then(Ft);var t=e+128;Atomics.store(P,t>>2,1)}};n.__emscripten_thread_mailbox_await=It;var Ft=()=>{var e=Jt();e&&(It(e),Dt(sr))};n.checkMailbox=Ft;var Lt,Mt=[],Rt={},Nt=e=>{var t=Rt[e];return void 0===t?Te(e):t},zt=[],Ot=(e,t)=>{var r=Be[e];return void 0===r&&Ce(t+" has unknown type "+ut(e)),r},$t=(e,t,r)=>{var i=[],n=e.toWireType(i,r);return i.length&&(D[t>>2]=bt.toHandle(i)),n};Lt=()=>performance.timeOrigin+performance.now();var Gt,Ht,Vt,Wt=[null,[],[]];function jt(e,t,r,i){if(h)return de(3,1,e,t,r,i);for(var n,s,a,o=0,d=0;d<r;d++){var l=D[t>>2],u=D[t+4>>2];t+=8;for(var c=0;c<u;c++)n=e,s=B[l+c],a=void 0,a=Wt[n],0===s||10===s?((1===n?A:U)(ae(a,0)),a.length=0):a.push(s);o+=u}return D[i>>2]=o,0}fe.init(),(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Se=e})(),Ee=n.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ae=n.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(Ze.prototype,{isAliasOf(e){if(!(this instanceof Ze))return!1;if(!(e instanceof Ze))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var i=e.$$.ptrType.registeredClass,n=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;i.baseClass;)n=i.upcast(n),i=i.baseClass;return t===i&&r===n},clone(){if(this.$$.ptr||Le(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Xe(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Le(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ce("Object already scheduled for deletion"),Re(this),Ne(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Le(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ce("Object already scheduled for deletion"),He.push(this),1===He.length&&Fe&&Fe(Ve),this.$$.deleteScheduled=!0,this}}),n.getInheritedInstanceCount=$e,n.getLiveInheritedInstances=Ge,n.flushPendingDeletes=Ve,n.setDelayFunction=We,Object.assign(at.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:st,deleteObject(e){null!==e&&e.delete()},fromWireType:Ke}),ot=n.UnboundTypeError=(Gt=Error,(Vt=Je(Ht="UnboundTypeError",(function(e){this.name=Ht,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Gt.prototype),Vt.prototype.constructor=Vt,Vt.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Vt),Object.assign(_t.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),gt.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),gt.reserved=gt.allocated.length,n.count_emval_handles=vt;var qt=[le,pe,we,jt],Yt={e:(e,t,r,i)=>{q(`Assertion failed: ${oe(e)}, at: `+[t?oe(t):"unknown filename",r,i?oe(i):"unknown function"])},s:(e,t,r)=>{throw new be(e).init(t,r),e},D:e=>{er(e,!c,1,!u,65536,!1),fe.threadInitTLS()},m:e=>{h?postMessage({cmd:"cleanupThread",thread:e}):te(e)},A:Ue,v:(e,t,r,i,n)=>{},J:(e,t,r,i)=>{Ie(e,{name:t=Te(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(B[e])},destructorFunction:null})},u:(e,t,r,i,s,a,o,d,l,u,c,f,h)=>{c=Te(c),a=lt(s,a),d&&(d=lt(o,d)),u&&(u=lt(l,u)),h=lt(f,h);var p=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(c);((e,t,r)=>{n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&Ce(`Cannot register public name '${e}' twice`),Qe(n,e,e),n.hasOwnProperty(r)&&Ce(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))})(p,(function(){ct(`Cannot construct ${c} due to unbound types`,[i])})),De([e,t,r],i?[i]:[],(function(t){var r,s;t=t[0],s=i?(r=t.registeredClass).instancePrototype:Ze.prototype;var o=Je(c,(function(){if(Object.getPrototypeOf(this)!==l)throw new Ee("Use 'new' to construct "+c);if(void 0===f.constructor_body)throw new Ee(c+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Ee(`Tried to invoke ctor of ${c} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)})),l=Object.create(s,{constructor:{value:o}});o.prototype=l;var f=new et(c,o,l,h,r,a,d,u);f.baseClass&&(void 0===f.baseClass.__derivedClasses&&(f.baseClass.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new at(c,f,!0,!1,!1),_=new at(c+"*",f,!1,!1,!1),g=new at(c+" const*",f,!1,!0,!1);return Oe[e]={pointerType:_,constPointerType:g},((e,t,r)=>{n.hasOwnProperty(e)||Pe("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)})(p,o),[m,_,g]}))},t:(e,t,r,i,n,s)=>{var a=ft(t,r);n=lt(i,n),De([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Ee(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{ct(`Cannot construct ${e.name} due to unbound types`,a)},De([],a,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[t-1]=mt(r,i,null,n,s),[]))),[]}))},i:(e,t,r,i,n,s,a,o,d)=>{var l=ft(r,i);t=(e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e})(t=Te(t)),s=lt(n,s),De([],[e],(function(e){var i=`${(e=e[0]).name}.${t}`;function n(){ct(`Cannot call ${i} due to unbound types`,l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),o&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,c=u[t];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===r-2?(n.argCount=r-2,n.className=e.name,u[t]=n):(Qe(u,t,i),u[t].overloadTable[r-2]=n),De([],l,(function(n){var o=mt(i,n,e,s,a,d);return void 0===u[t].overloadTable?(o.argCount=r-2,u[t]=o):u[t].overloadTable[r-2]=o,[]})),[]}))},I:(e,t)=>{Ie(e,{name:t=Te(t),fromWireType:e=>{var t=bt.toValue(e);return yt(e),t},toWireType:(e,t)=>bt.toHandle(t),argPackAdvance:8,readValueFromPointer:wt,destructorFunction:null})},o:(e,t,r)=>{Ie(e,{name:t=Te(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:Et(t,r),destructorFunction:null})},c:(e,t,r,i,n)=>{t=Te(t);var s=e=>e;if(0===i){var a=32-8*r;s=e=>e<<a>>>a}var o=t.includes("unsigned");Ie(e,{name:t,fromWireType:s,toWireType:o?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:At(t,r,0!==i),destructorFunction:null})},b:(e,t,r)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function n(e){var t=D[e>>2],r=D[e+4>>2];return new i(x.buffer,r,t)}Ie(e,{name:r=Te(r),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{ignoreDuplicateRegistrations:!0})},p:(e,t)=>{var r="std::string"===(t=Te(t));Ie(e,{name:t,fromWireType(e){var t,i=D[e>>2],n=e+4;if(r)for(var s=n,a=0;a<=i;++a){var o=n+a;if(a==i||0==B[o]){var d=oe(s,o-s);void 0===t?t=d:(t+=String.fromCharCode(0),t+=d),s=o+1}}else{var l=new Array(i);for(a=0;a<i;++a)l[a]=String.fromCharCode(B[n+a]);t=l.join("")}return Xt(e),t},toWireType(e,t){var i;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Ce("Cannot pass non-string to std::string"),i=r&&n?(e=>{for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i<=127?t++:i<=2047?t+=2:i>=55296&&i<=57343?(t+=4,++r):t+=3}return t})(t):t.length;var s=Zt(4+i+1),a=s+4;if(D[s>>2]=i,r&&n)((e,t,r,i)=>{if(!(i>0))return 0;for(var n=r+i-1,s=0;s<e.length;++s){var a=e.charCodeAt(s);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++s)),a<=127){if(r>=n)break;t[r++]=a}else if(a<=2047){if(r+1>=n)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=n)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}t[r]=0})(t,B,a,i+1);else if(n)for(var o=0;o<i;++o){var d=t.charCodeAt(o);d>255&&(Xt(a),Ce("String has UTF-16 code units that do not fit in 8 bits")),B[a+o]=d}else for(o=0;o<i;++o)B[a+o]=t[o];return null!==e&&e.push(Xt,s),s},argPackAdvance:8,readValueFromPointer:st,destructorFunction(e){Xt(e)}})},j:(e,t,r)=>{var i,n,s,a,o;r=Te(r),2===t?(i=Tt,n=xt,a=Bt,s=()=>C,o=1):4===t&&(i=kt,n=Ct,a=Pt,s=()=>D,o=2),Ie(e,{name:r,fromWireType:e=>{for(var r,n=D[e>>2],a=s(),d=e+4,l=0;l<=n;++l){var u=e+4+l*t;if(l==n||0==a[u>>o]){var c=i(d,u-d);void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),d=u+t}}return Xt(e),r},toWireType:(e,i)=>{"string"!=typeof i&&Ce(`Cannot pass non-string to C++ string type ${r}`);var s=a(i),d=Zt(4+s+t);return D[d>>2]=s>>o,n(i,d+4,s+t),null!==e&&e.push(Xt,d),d},argPackAdvance:8,readValueFromPointer:wt,destructorFunction(e){Xt(e)}})},K:(e,t)=>{Ie(e,{isVoid:!0,name:t=Te(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},x:(e,t,r)=>{if(e==t)setTimeout((()=>Ft()));else if(h)postMessage({targetThread:e,cmd:"checkMailbox"});else{var i=fe.pthreads[e];if(!i)return;i.postMessage({cmd:"checkMailbox"})}},E:(e,t,r,i)=>{Mt.length=r;for(var n=i>>3,s=0;s<r;s++)Mt[s]=F[n+s];var a=qt[e];fe.currentProxiedOperationCallerThread=t;var o=a.apply(null,Mt);return fe.currentProxiedOperationCallerThread=0,o},C:It,G:e=>{f&&fe.pthreads[e].ref()},h:(e,t,r,i,n)=>(e=zt[e])(t=bt.toValue(t),t[r=Nt(r)],i,n),d:yt,g:(e,t,r)=>{var i=((e,t)=>{for(var r=new Array(e),i=0;i<e;++i)r[i]=Ot(D[t+4*i>>2],"parameter "+i);return r})(e,t),n=i.shift();e--;var s="return function (obj, func, destructorsRef, args) {\n",a=0,o=[];0===r&&o.push("obj");for(var d=["retType"],l=[n],u=0;u<e;++u)o.push("arg"+u),d.push("argType"+u),l.push(i[u]),s+=` var arg${u} = argType${u}.readValueFromPointer(args${a?"+"+a:""});\n`,a+=i[u].argPackAdvance;for(s+=` var rv = ${1===r?"new func":"func.call"}(${o.join(", ")});\n`,u=0;u<e;++u)i[u].deleteObject&&(s+=` argType${u}.deleteObject(arg${u});\n`);n.isVoid||(d.push("emval_returnValue"),l.push($t),s+=" return emval_returnValue(retType, destructorsRef, rv);\n"),s+="};\n",d.push(s);var c,f,h=pt(Function,d).apply(null,l),p=`methodCaller<(${i.map((e=>e.name)).join(", ")}) => ${n.name}>`;return c=Je(p,h),f=zt.length,zt.push(c),f},L:e=>{e>4&&(gt.get(e).refcount+=1)},q:e=>bt.toHandle(Nt(e)),H:()=>bt.toHandle({}),B:e=>bt.toHandle(oe(e)),k:e=>{var t=bt.toValue(e);ht(t),yt(e)},r:(e,t,r)=>{e=bt.toValue(e),t=bt.toValue(t),r=bt.toValue(r),e[t]=r},M:(e,t)=>{var r=(e=Ot(e,"_emval_take_value")).readValueFromPointer(t);return bt.toHandle(r)},l:()=>{q("")},n:()=>{},F:()=>{throw ie+=1,"unwind"},f:Lt,w:e=>{B.length,q("OOM")},z:ue,y:jt,a:S||n.wasmMemory},Kt=function(){var e,t,r,s,a={a:Yt};function o(e,t){var r;return Kt=e.exports,ve(Kt.R),me=Kt.V,r=Kt.N,z.unshift(r),E=t,j(),Kt}if(W(),n.instantiateWasm)try{return n.instantiateWasm(a,o)}catch(e){U(`Module.instantiateWasm callback failed with error: ${e}`),i(e)}return(e=w,t=Y,r=a,s=function(e){o(e.instance,e.module)},e||"function"!=typeof WebAssembly.instantiateStreaming||K(t)||X(t)||f||"function"!=typeof fetch?J(t,r,s):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(s,(function(e){return U(`wasm streaming compile failed: ${e}`),U("falling back to ArrayBuffer instantiation"),J(t,r,s)}))))).catch(i),{}}(),Xt=e=>(Xt=Kt.O)(e),Zt=e=>(Zt=Kt.P)(e),Jt=n._pthread_self=()=>(Jt=n._pthread_self=Kt.Q)();n.__emscripten_tls_init=()=>(n.__emscripten_tls_init=Kt.R)();var Qt=e=>(Qt=Kt.S)(e);n.__embind_initialize_bindings=()=>(n.__embind_initialize_bindings=Kt.T)();var er=n.__emscripten_thread_init=(e,t,r,i,s,a)=>(er=n.__emscripten_thread_init=Kt.U)(e,t,r,i,s,a);n.__emscripten_thread_crashed=()=>(n.__emscripten_thread_crashed=Kt.W)();var tr,rr=(e,t,r,i)=>(rr=Kt.X)(e,t,r,i),ir=e=>(ir=Kt.Y)(e),nr=n.__emscripten_thread_exit=e=>(nr=n.__emscripten_thread_exit=Kt.Z)(e),sr=()=>(sr=Kt._)(),ar=(e,t)=>(ar=Kt.$)(e,t),or=()=>(or=Kt.aa)(),dr=e=>(dr=Kt.ba)(e),lr=e=>(lr=Kt.ca)(e),ur=e=>(ur=Kt.da)(e);function cr(){if(!(H>0)){if(h)return r(n),$(),void startWorker(n);!function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)G(n.preRun.shift());he(N)}(),H>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e())}function e(){tr||(tr=!0,n.calledRun=!0,M||($(),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(!h){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),O.unshift(e);var e;he(O)}}()))}}if(n.dynCall_jiji=(e,t,r,i,s)=>(n.dynCall_jiji=Kt.ea)(e,t,r,i,s),n.___start_em_js=143500,n.___stop_em_js=143557,n.wasmMemory=S,n.keepRuntimeAlive=ne,n.ExitStatus=Q,n.PThread=fe,V=function e(){tr||cr(),tr||(V=e)},n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return cr(),t.ready}),r=(()=>{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-simd-mt.js",document.baseURI).href;return function(t){var r,i;(t=void 0!==(t=t||{})?t:{}).ready=new Promise((function(e,t){r=e,i=t})),(t=void 0!==t?t:{}).locateFile=function(e){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof EASYPLAYER_PRO_AUDIO_WASM_URL&&""!=EASYPLAYER_PRO_AUDIO_WASM_URL?EASYPLAYER_PRO_AUDIO_WASM_URL:e};var n,s,a,o,d,l,u=Object.assign({},t),c="./this.program",f="object"==typeof window,h="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";p?(m=h?require("path").dirname(m)+"/":__dirname+"/",l=()=>{d||(o=require("fs"),d=require("path"))},n=function(e,t){return l(),e=d.normalize(e),o.readFileSync(e,t?void 0:"utf8")},a=e=>{var t=n(e,!0);return t.buffer||(t=new Uint8Array(t)),t},s=(e,t,r)=>{l(),e=d.normalize(e),o.readFile(e,(function(e,i){e?r(e):t(i.buffer)}))},process.argv.length>1&&(c=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof ee))throw e})),process.on("unhandledRejection",(function(e){throw e})),t.inspect=function(){return"[Emscripten Module object]"}):(f||h)&&(h?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):"",n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},h&&(a=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),s=(e,t,r)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{200==i.status||0==i.status&&i.response?t(i.response):r()},i.onerror=r,i.send(null)});var _=t.print||console.log.bind(console),g=t.printErr||console.warn.bind(console);Object.assign(t,u),u=null,t.arguments&&t.arguments,t.thisProgram&&(c=t.thisProgram),t.quit&&t.quit;var y,v,b=4;t.wasmBinary&&(y=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&W("no native wasm support detected");var w=!1;function S(e,t){e||W(t)}var E,A,U,T,x,B,k,C,P,D,I="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function F(e,t,r){for(var i=t+r,n=t;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&I)return I.decode(e.subarray(t,n));for(var s="";t<n;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var d=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|d:(7&a)<<18|o<<12|d<<6|63&e[t++])<65536)s+=String.fromCharCode(a);else{var l=a-65536;s+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s}function L(e,t){return e?F(U,e,t):""}function M(e,t,r,i){if(!(i>0))return 0;for(var n=r,s=r+i-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a);if(o<=127){if(r>=s)break;t[r++]=o}else if(o<=2047){if(r+1>=s)break;t[r++]=192|o>>6,t[r++]=128|63&o}else if(o<=65535){if(r+2>=s)break;t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o}else{if(r+3>=s)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o}}return t[r]=0,r-n}function R(e){for(var t=0,r=0;r<e.length;++r){var i=e.charCodeAt(r);i<=127?t++:i<=2047?t+=2:i>=55296&&i<=57343?(t+=4,++r):t+=3}return t}t.INITIAL_MEMORY;var N=[],z=[],O=[];var $=0,G=null;function H(e){$++,t.monitorRunDependencies&&t.monitorRunDependencies($)}function V(e){if($--,t.monitorRunDependencies&&t.monitorRunDependencies($),0==$&&G){var r=G;G=null,r()}}function W(e){t.onAbort&&t.onAbort(e),g(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw i(r),r}var j,q,Y,K,X="data:application/octet-stream;base64,";function Z(e){return e.startsWith(X)}function J(e){return e.startsWith("file://")}function Q(e){try{if(e==j&&y)return new Uint8Array(y);if(a)return a(e);throw"both async and sync fetching of the wasm failed"}catch(e){W(e)}}function ee(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function te(e){for(;e.length>0;)e.shift()(t)}function re(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){k[this.ptr+4>>2]=e},this.get_type=function(){return k[this.ptr+4>>2]},this.set_destructor=function(e){k[this.ptr+8>>2]=e},this.get_destructor=function(){return k[this.ptr+8>>2]},this.set_refcount=function(e){B[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,A[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=A[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,A[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=A[this.ptr+13>>0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=B[this.ptr>>2];B[this.ptr>>2]=e+1},this.release_ref=function(){var e=B[this.ptr>>2];return B[this.ptr>>2]=e-1,1===e},this.set_adjusted_ptr=function(e){k[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return k[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Xt(this.get_type()))return k[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}t.locateFile?Z(j="decoder-pro-audio.wasm")||(q=j,j=t.locateFile?t.locateFile(q,m):m+q):j=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-simd-mt.js",document.baseURI).href).toString();var ie={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,i=e.length-1;i>=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ie.isAbs(e),r="/"===e.substr(-1);return(e=ie.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ie.splitPath(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ie.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments,0);return ie.normalize(e.join("/"))},join2:(e,t)=>ie.normalize(e+"/"+t)};var ne={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var i=r>=0?arguments[r]:le.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";e=i+"/"+e,t=ie.isAbs(i)}return(t?"/":"")+(e=ie.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ne.resolve(e).substr(1),t=ne.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),s=Math.min(i.length,n.length),a=s,o=0;o<s;o++)if(i[o]!==n[o]){a=o;break}var d=[];for(o=a;o<i.length;o++)d.push("..");return(d=d.concat(n.slice(a))).join("/")}};function se(e,t,r){var i=r>0?r:R(e)+1,n=new Array(i),s=M(e,n,0,n.length);return t&&(n.length=s),n}var ae={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){ae.ttys[e]={input:[],output:[],ops:t},le.registerDevice(e,ae.stream_ops)},stream_ops:{open:function(e){var t=ae.ttys[e.node.rdev];if(!t)throw new le.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,t,r,i,n){if(!e.tty||!e.tty.ops.get_char)throw new le.ErrnoError(60);for(var s=0,a=0;a<i;a++){var o;try{o=e.tty.ops.get_char(e.tty)}catch(e){throw new le.ErrnoError(29)}if(void 0===o&&0===s)throw new le.ErrnoError(6);if(null==o)break;s++,t[r+a]=o}return s&&(e.node.timestamp=Date.now()),s},write:function(e,t,r,i,n){if(!e.tty||!e.tty.ops.put_char)throw new le.ErrnoError(60);try{for(var s=0;s<i;s++)e.tty.ops.put_char(e.tty,t[r+s])}catch(e){throw new le.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),s}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if(p){var r=Buffer.alloc(256),i=0;try{i=o.readSync(process.stdin.fd,r,0,256,-1)}catch(e){if(!e.toString().includes("EOF"))throw e;i=0}t=i>0?r.slice(0,i).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;e.input=se(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(_(F(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(_(F(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(g(F(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(g(F(e.output,0)),e.output=[])}}};function oe(e){e=function(e,t){return Math.ceil(e/t)*t}(e,65536);var t=Kt(65536,e);return t?(function(e,t){U.fill(0,e,e+t)}(t,e),t):0}var de={ops_table:null,mount:function(e){return de.createNode(null,"/",16895,0)},createNode:function(e,t,r,i){if(le.isBlkdev(r)||le.isFIFO(r))throw new le.ErrnoError(63);de.ops_table||(de.ops_table={dir:{node:{getattr:de.node_ops.getattr,setattr:de.node_ops.setattr,lookup:de.node_ops.lookup,mknod:de.node_ops.mknod,rename:de.node_ops.rename,unlink:de.node_ops.unlink,rmdir:de.node_ops.rmdir,readdir:de.node_ops.readdir,symlink:de.node_ops.symlink},stream:{llseek:de.stream_ops.llseek}},file:{node:{getattr:de.node_ops.getattr,setattr:de.node_ops.setattr},stream:{llseek:de.stream_ops.llseek,read:de.stream_ops.read,write:de.stream_ops.write,allocate:de.stream_ops.allocate,mmap:de.stream_ops.mmap,msync:de.stream_ops.msync}},link:{node:{getattr:de.node_ops.getattr,setattr:de.node_ops.setattr,readlink:de.node_ops.readlink},stream:{}},chrdev:{node:{getattr:de.node_ops.getattr,setattr:de.node_ops.setattr},stream:le.chrdev_stream_ops}});var n=le.createNode(e,t,r,i);return le.isDir(n.mode)?(n.node_ops=de.ops_table.dir.node,n.stream_ops=de.ops_table.dir.stream,n.contents={}):le.isFile(n.mode)?(n.node_ops=de.ops_table.file.node,n.stream_ops=de.ops_table.file.stream,n.usedBytes=0,n.contents=null):le.isLink(n.mode)?(n.node_ops=de.ops_table.link.node,n.stream_ops=de.ops_table.link.stream):le.isChrdev(n.mode)&&(n.node_ops=de.ops_table.chrdev.node,n.stream_ops=de.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n,e.timestamp=n.timestamp),n},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var i=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=le.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,le.isDir(e.mode)?t.size=4096:le.isFile(e.mode)?t.size=e.usedBytes:le.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&de.resizeFileStorage(e,t.size)},lookup:function(e,t){throw le.genericErrors[44]},mknod:function(e,t,r,i){return de.createNode(e,t,r,i)},rename:function(e,t,r){if(le.isDir(e.mode)){var i;try{i=le.lookupNode(t,r)}catch(e){}if(i)for(var n in i.contents)throw new le.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=le.lookupNode(e,t);for(var i in r.contents)throw new le.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var i=de.createNode(e,t,41471,0);return i.link=r,i},readlink:function(e){if(!le.isLink(e.mode))throw new le.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,i,n){var s=e.node.contents;if(n>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-n,i);if(a>8&&s.subarray)t.set(s.subarray(n,n+a),r);else for(var o=0;o<a;o++)t[r+o]=s[n+o];return a},write:function(e,t,r,i,n,s){if(!i)return 0;var a=e.node;if(a.timestamp=Date.now(),t.subarray&&(!a.contents||a.contents.subarray)){if(s)return a.contents=t.subarray(r,r+i),a.usedBytes=i,i;if(0===a.usedBytes&&0===n)return a.contents=t.slice(r,r+i),a.usedBytes=i,i;if(n+i<=a.usedBytes)return a.contents.set(t.subarray(r,r+i),n),i}if(de.expandFileStorage(a,n+i),a.contents.subarray&&t.