decoder-pro-mt.js 149 KB
!function(e){"function"==typeof define&&define.amd?define(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-mt.js",document.baseURI).href,async function(t={}){function r(){return $.buffer!=M.buffer&&H(),M}function n(){return $.buffer!=M.buffer&&H(),W}function a(){return $.buffer!=M.buffer&&H(),U}function i(){return $.buffer!=M.buffer&&H(),x}function o(){return $.buffer!=M.buffer&&H(),V}function s(){return $.buffer!=M.buffer&&H(),O}function c(){return $.buffer!=M.buffer&&H(),j}var l,u,d;(d=t).ready=new Promise((e,t)=>{l=e,u=t}),(d=void 0!==d?d:{}).locateFile=function(e,t){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:t+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:t+e};var f,p,h,m=Object.assign({},d),g="./this.program",y=(e,t)=>{throw t},v="object"==typeof window,b="function"==typeof importScripts,w="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_=d.ENVIRONMENT_IS_PTHREAD||!1,A="";function C(e){return d.locateFile?d.locateFile(e,A):A+e}if(w){const{createRequire:e}=await import("module");var S=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),E=S("fs"),T=S("path");let t;A=b?T.dirname(A)+"/":S("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)),f=(e,t)=>(e=se(e)?new URL(e):T.normalize(e),E.readFileSync(e,t?void 0:"utf8")),h=e=>{var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),t},p=(e,t,r,n=!0)=>{e=se(e)?new URL(e):T.normalize(e),E.readFile(e,n?void 0:"utf8",(e,a)=>{e?r(e):t(n?a.buffer:a)})},!d.thisProgram&&process.argv.length>1&&(g=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),y=(e,t)=>{throw process.exitCode=e,t},d.inspect=()=>"[Emscripten Module object]";try{t=S("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(v||b)&&(b?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),e&&(A=e),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",w||(f=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},b&&(h=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),p=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}));w&&"undefined"==typeof performance&&(global.performance=S("perf_hooks").performance);var I=console.log.bind(console),k=console.error.bind(console);w&&(I=(...e)=>E.writeSync(1,e.join(" ")+"\n"),k=(...e)=>E.writeSync(2,e.join(" ")+"\n"));var P,$,D,F=d.print||I,R=d.printErr||k;Object.assign(d,m),m=null,d.arguments&&d.arguments,d.thisProgram&&(g=d.thisProgram),d.quit&&(y=d.quit),d.wasmBinary&&(P=d.wasmBinary),"object"!=typeof WebAssembly&&re("no native wasm support detected");var B,M,W,U,x,V,O,L,j,G=!1;function H(){var e=$.buffer;d.HEAP8=M=new Int8Array(e),d.HEAP16=U=new Int16Array(e),d.HEAPU8=W=new Uint8Array(e),d.HEAPU16=x=new Uint16Array(e),d.HEAP32=V=new Int32Array(e),d.HEAPU32=O=new Uint32Array(e),d.HEAPF32=L=new Float32Array(e),d.HEAPF64=j=new Float64Array(e)}var N=d.INITIAL_MEMORY||67108864;if(_)$=d.wasmMemory;else if(d.wasmMemory)$=d.wasmMemory;else if(!(($=new WebAssembly.Memory({initial:N/65536,maximum:8192,shared:!0})).buffer instanceof SharedArrayBuffer))throw R("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"),w&&R("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");H(),N=$.buffer.byteLength;var z=[],q=[],J=[];function X(){_||Se(q)}function K(e){z.unshift(e)}function Y(e){J.unshift(e)}var Z=0,Q=null;function ee(e){Z++,d.monitorRunDependencies&&d.monitorRunDependencies(Z)}function te(e){if(Z--,d.monitorRunDependencies&&d.monitorRunDependencies(Z),0==Z&&Q){var t=Q;Q=null,t()}}function re(e){d.onAbort&&d.onAbort(e),R(e="Aborted("+e+")"),G=!0,B=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}var ne,ae,ie,oe=e=>e.startsWith("data:application/octet-stream;base64,"),se=e=>e.startsWith("file://");function ce(e){if(e==ne&&P)return new Uint8Array(P);if(h)return h(e);throw"both async and sync fetching of the wasm failed"}function le(e,t,r){return function(e){if(!P&&(v||b)){if("function"==typeof fetch&&!se(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(()=>ce(e));if(p)return new Promise((t,r)=>{p(e,e=>t(new Uint8Array(e)),r)})}return Promise.resolve().then(()=>ce(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{R(`failed to asynchronously prepare wasm: ${e}`),re(e)})}function ue(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}d.locateFile?oe(ne="decoder-pro-mt-worker.wasm")||(ne=C(ne)):ne=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 de=e=>{e.terminate(),e.onmessage=e=>{}},fe=e=>{var t=Ce.pthreads[e];Ce.returnWorkerToPool(t)},pe=e=>{var t=Ce.getNewWorker();if(!t)return 6;Ce.runningWorkers.push(t),Ce.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 w&&t.unref(),t.postMessage(r,e.transferList),0},he=0,me=()=>Pe||he>0,ge="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ye=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&ge)return ge.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,a):e.subarray(t,a));for(var i="";t<a;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i},ve=(e,t)=>e?ye(n(),e,t):"",be=function(e,t){var r,n,a,i=arguments.length-2,o=arguments;return r=()=>{for(var r=i,n=Wr(8*r),a=n>>3,s=0;s<i;s++){var l=o[2+s];c()[a+s]=l}return Pr(e,r,n,t)},n=Br(),a=r(),Mr(n),a};function we(e){if(_)return be(0,1,e);B=e,me()||(Ce.terminateAllThreads(),d.onExit&&d.onExit(e),G=!0),y(e,new ue(e))}var _e=(e,t)=>{if(B=e,_)throw Ee(e),"unwind";we(e)},Ae=e=>{if(e instanceof ue||"unwind"==e)return B;y(1,e)},Ce={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){_?Ce.initWorker():Ce.initMainThread()},initMainThread(){for(var e=4;e--;)Ce.allocateUnusedWorker();K(()=>{ee(),Ce.loadWasmModuleToAllWorkers(()=>te())})},initWorker(){Pe=!1},setExitStatus:e=>{B=e},terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of Ce.runningWorkers)de(e);for(var e of Ce.unusedWorkers)de(e);Ce.unusedWorkers=[],Ce.runningWorkers=[],Ce.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete Ce.pthreads[t],Ce.unusedWorkers.push(e),Ce.runningWorkers.splice(Ce.runningWorkers.indexOf(e),1),e.pthread_ptr=0,$r(t)},receiveObjectTransfer(e){},threadInitTLS(){Ce.tlsInitFunctions.forEach(e=>e())},loadWasmModuleToWorker:e=>new Promise(t=>{e.onmessage=r=>{var n=r.data,a=n.cmd;if(n.targetThread&&n.targetThread!=Er()){var i=Ce.pthreads[n.targetThread];i?i.postMessage(n,n.transferList):R(`Internal error! Worker sent a message "${a}" to target pthread ${n.targetThread}, but that thread no longer exists!`)}else{var o;"checkMailbox"===a?Xt():"spawnThread"===a?pe(n):"cleanupThread"===a?fe(n.thread):"killThread"===a?(e=>{var t=Ce.pthreads[e];delete Ce.pthreads[e],de(t),$r(e),Ce.runningWorkers.splice(Ce.runningWorkers.indexOf(t),1),t.pthread_ptr=0})(n.thread):"cancelThread"===a?(o=n.thread,Ce.pthreads[o].postMessage({cmd:"cancel"})):"loaded"===a?(e.loaded=!0,w&&!e.pthread_ptr&&e.unref(),t(e)):"alert"===a?alert(`Thread ${n.threadId}: ${n.text}`):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?d[n.handler](...n.args):a&&R(`worker sent an unknown command ${a}`)}},e.onerror=e=>{throw R(`worker sent an error! ${e.filename}:${e.lineno}: ${e.message}`),e},w&&(e.on("message",t=>e.onmessage({data:t})),e.on("error",t=>e.onerror(t)));var r=[];for(var n of["onExit","onAbort","print","printErr"])d.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:d.mainScriptUrlOrBlob,wasmMemory:$,wasmModule:D})}),loadWasmModuleToAllWorkers(e){if(_)return e();Promise.all(Ce.unusedWorkers.map(Ce.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e;if(d.locateFile){var t=C("decoder-pro-mt-worker.worker.js");e=new Worker(t,{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"});Ce.unusedWorkers.push(e)},getNewWorker:()=>(0==Ce.unusedWorkers.length&&(Ce.allocateUnusedWorker(),Ce.loadWasmModuleToWorker(Ce.unusedWorkers[0])),Ce.unusedWorkers.pop())};d.PThread=Ce;var Se=e=>{for(;e.length>0;)e.shift()(d)};function Ee(e){if(_)return be(1,0,e);_e(e)}d.establishStackSpace=()=>{var e=Er(),t=s()[e+52>>2],r=s()[e+56>>2];Rr(t,t-r),Mr(t)};var Te,Ie=[],ke=e=>{var t=Ie[e];return t||(e>=Ie.length&&(Ie.length=e+1),Ie[e]=t=Te.get(e)),t};d.invokeEntryPoint=(e,t)=>{!function(e){me()?Ce.setExitStatus(e):Dr(e)}(ke(e)(t))};var Pe=d.noExitRuntime||!0,$e=e=>{Ce.tlsInitFunctions.push(e)};function De(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){s()[this.ptr+4>>2]=e},this.get_type=function(){return s()[this.ptr+4>>2]},this.set_destructor=function(e){s()[this.ptr+8>>2]=e},this.get_destructor=function(){return s()[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,r()[this.ptr+12|0]=e},this.get_caught=function(){return 0!=r()[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,r()[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=r()[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){s()[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return s()[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ur(this.get_type()))return s()[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}function Fe(e,t,r,n){return _?be(2,1,e,t,r,n):Re(e,t,r,n)}var Re=(e,t,r,n)=>{if("undefined"==typeof SharedArrayBuffer)return R("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(_&&0===a.length)return Fe(e,t,r,n);var i={startRoutine:r,pthread_ptr:e,arg:n,transferList:a};return _?(i.cmd="spawnThread",postMessage(i,a),0):pe(i)};function Be(e,t,r){return _?be(3,1,e,t,r):0}function Me(e,t,r,n){if(_)return be(4,1,e,t,r,n)}var We,Ue,xe,Ve=e=>{for(var t="",r=e;n()[r];)t+=We[n()[r++]];return t},Oe={},Le={},je={},Ge=e=>{throw new Ue(e)},He=e=>{throw new xe(e)},Ne=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&He("Mismatched type converter count");for(var a=0;a<e.length;++a)ze(e[a],n[a])}e.forEach(function(e){je[e]=t});var a=new Array(t.length),i=[],o=0;t.forEach((e,t)=>{Le.hasOwnProperty(e)?a[t]=Le[e]:(i.push(e),Oe.hasOwnProperty(e)||(Oe[e]=[]),Oe[e].push(()=>{a[t]=Le[e],++o===i.length&&n(a)}))}),0===i.length&&n(a)};function ze(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||Ge(`type "${n}" must have a positive integer typeid pointer`),Le.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Ge(`Cannot register type '${n}' twice`)}if(Le[e]=t,delete je[e],Oe.hasOwnProperty(e)){var a=Oe[e];delete Oe[e],a.forEach(e=>e())}}(e,t,r)}var qe,Je=e=>{Ge(e.$$.ptrType.registeredClass.name+" instance already deleted")},Xe=!1,Ke=e=>{},Ye=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 n=Ze(e,t,r.baseClass);return null===n?null:r.downcast(n)},Qe={},et=()=>Object.keys(it).length,tt=()=>{var e=[];for(var t in it)it.hasOwnProperty(t)&&e.push(it[t]);return e},rt=[],nt=()=>{for(;rt.length;){var e=rt.pop();e.$$.deleteScheduled=!1,e.delete()}},at=e=>{qe=e,rt.length&&qe&&qe(nt)},it={},ot=(e,t)=>(t=((e,t)=>{for(void 0===t&&Ge("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),it[t]),st=(e,t)=>(t.ptrType&&t.ptr||He("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&He("Both smartPtrType and smartPtr must be specified"),t.count={value:1},lt(Object.create(e,{$$:{value:t}})));function ct(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=ot(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?st(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):st(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,o=this.registeredClass.getActualType(t),s=Qe[o];if(!s)return a.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=Ze(t,this.registeredClass,i.registeredClass);return null===c?a.call(this):this.isSmartPointer?st(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):st(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}var lt=e=>"undefined"==typeof FinalizationRegistry?(lt=e=>e,e):(Xe=new FinalizationRegistry(e=>{Ye(e.$$)}),lt=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Xe.register(e,r,e)}return e},Ke=e=>Xe.unregister(e),lt(e));function ut(){}var dt=(e,t)=>Object.defineProperty(t,"name",{value:e}),ft=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Ge(`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[n.argCount]=n}};function pt(e,t,r,n,a,i,o,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var ht=(e,t,r)=>{for(;t!==r;)t.upcast||Ge(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function mt(e,t){if(null===t)return this.isReference&&Ge(`null is not a valid ${this.name}`),0;t.$$||Ge(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||Ge(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return ht(t.$$.ptr,r,this.registeredClass)}function gt(e,t){var r;if(null===t)return this.isReference&&Ge(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Ge(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||Ge(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&Ge(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=ht(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Ge("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Ge(`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 a=t.clone();r=this.rawShare(r,Rt.toHandle(()=>a.delete())),null!==e&&e.push(this.rawDestructor,r)}break;default:Ge("Unsupporting sharing policy")}return r}function yt(e,t){if(null===t)return this.isReference&&Ge(`null is not a valid ${this.name}`),0;t.$$||Ge(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||Ge(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&Ge(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return ht(t.$$.ptr,r,this.registeredClass)}function vt(e){return this.fromWireType(s()[e>>2])}function bt(e,t,r,n,a,i,o,s,c,l,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=u,a||void 0!==t.baseClass?this.toWireType=gt:n?(this.toWireType=mt,this.destructorFunction=null):(this.toWireType=yt,this.destructorFunction=null)}var wt,_t=(e,t,r)=>e.includes("j")?((e,t,r)=>{var n=d["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):ke(t).apply(null,r),At=(e,t)=>{var r,n,a,i=(e=Ve(e)).includes("j")?(r=e,n=t,a=[],function(){return a.length=0,Object.assign(a,arguments),_t(r,n,a)}):ke(t);return"function"!=typeof i&&Ge(`unknown function pointer with signature ${e}: ${t}`),i},Ct=e=>{var t=Tr(e),r=Ve(t);return Cr(t),r},St=(e,t)=>{var r=[],n={};throw t.forEach(function e(t){n[t]||Le[t]||(je[t]?je[t].forEach(e):(r.push(t),n[t]=!0))}),new wt(`${e}: `+r.map(Ct).join([", "]))},Et=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(s()[t+4*n>>2]);return r},Tt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function It(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=dt(e.name||"unknownFunctionName",function(){});r.prototype=e.prototype;var n=new r,a=e.apply(n,t);return a instanceof Object?a:n}function kt(e,t,r,n,a,i){var o=t.length;o<2&&Ge("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,c=!1,l=1;l<t.length;++l)if(null!==t[l]&&void 0===t[l].destructorFunction){c=!0;break}var u="void"!==t[0].name,d="",f="";for(l=0;l<o-2;++l)d+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n        return function (${d}) {\n        if (arguments.length !== ${o-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${o-2}');\n        }`;c&&(p+="var destructors = [];\n");var h=c?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Ge,n,a,Tt,t[0],t[1]];for(s&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),l=0;l<o-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+h+", arg"+l+"); // "+t[l+2].name+"\n",m.push("argType"+l),g.push(t[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),p+=(u||i?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",c)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<t.length;++l){var y=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==t[l].destructorFunction&&(p+=y+"_dtor("+y+"); // "+t[l].name+"\n",m.push(y+"_dtor"),g.push(t[l].destructorFunction))}u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p);var v=It(Function,m).apply(null,g);return dt(e,v)}function Pt(){this.allocated=[void 0],this.freelist=[]}var $t=new Pt,Dt=e=>{e>=$t.reserved&&0===--$t.get(e).refcount&&$t.free(e)},Ft=()=>{for(var e=0,t=$t.reserved;t<$t.allocated.length;++t)void 0!==$t.allocated[t]&&++e;return e},Rt={toValue:e=>(e||Ge("Cannot use deleted val. handle = "+e),$t.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 $t.allocate({refcount:1,value:e})}}};function Bt(e){return this.fromWireType(o()[e>>2])}var Mt=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Wt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(($.buffer!=M.buffer&&H(),L)[e>>2])};case 8:return function(e){return this.fromWireType(c()[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ut=(e,t,c)=>{switch(t){case 1:return c?e=>r()[0|e]:e=>n()[0|e];case 2:return c?e=>a()[e>>1]:e=>i()[e>>1];case 4:return c?e=>o()[e>>2]:e=>s()[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},xt=(e,t,r)=>((e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,i=r+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a})(e,n(),t,r),Vt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},Ot="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Lt=(e,t)=>{for(var r=e,o=r>>1,s=o+t/2;!(o>=s)&&i()[o];)++o;if((r=o<<1)-e>32&&Ot)return Ot.decode(n().slice(e,r));for(var c="",l=0;!(l>=t/2);++l){var u=a()[e+2*l>>1];if(0==u)break;c+=String.fromCharCode(u)}return c},jt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);a()[t>>1]=s,t+=2}return a()[t>>1]=0,t-n},Gt=e=>2*e.length,Ht=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=o()[e+4*r>>2];if(0==a)break;if(++r,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n},Nt=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,a=n+r-4,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)),o()[t>>2]=s,(t+=4)+4>a)break}return o()[t>>2]=0,t-n},zt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},qt=e=>{if(!G)try{e(),(()=>{if(!me())try{_?Dr(B):_e(B)}catch(e){Ae(e)}})()}catch(e){Ae(e)}},Jt=e=>{if("function"==typeof Atomics.waitAsync){Atomics.waitAsync(o(),e>>2,e).value.then(Xt);var t=e+128;Atomics.store(o(),t>>2,1)}};d.__emscripten_thread_mailbox_await=Jt;var Xt=()=>{var e=Er();e&&(Jt(e),qt(Fr))};d.checkMailbox=Xt;var Kt,Yt=[],Zt={},Qt=[],er=(e,t)=>{var r=Le[e];return void 0===r&&Ge(t+" has unknown type "+Ct(e)),r},tr=(e,t,r)=>{var n=[],a=e.toWireType(n,r);return n.length&&(s()[t>>2]=Rt.toHandle(n)),a},rr=[0,31,60,91,121,152,182,213,244,274,305,335],nr=[0,31,59,90,120,151,181,212,243,273,304,334],ar=e=>{var t=Vt(e)+1,r=Sr(t);return r&&xt(e,r,t),r};Kt=()=>performance.timeOrigin+performance.now();var ir=e=>{var t=(e-$.buffer.byteLength+65535)/65536;try{return $.grow(t),H(),1}catch(e){}},or={},sr=()=>{if(!sr.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",_:g||"./this.program"};for(var t in or)void 0===or[t]?delete e[t]:e[t]=or[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);sr.strings=r}return sr.strings},cr=function(e,t){if(_)return be(5,1,e,t);var n=0;return sr().forEach((a,i)=>{var o=t+n;s()[e+4*i>>2]=o,((e,t)=>{for(var n=0;n<e.length;++n)r()[0|t++]=e.charCodeAt(n);r()[0|t]=0})(a,o),n+=a.length+1}),0},lr=function(e,t){if(_)return be(6,1,e,t);var r=sr();s()[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),s()[t>>2]=n,0};function ur(e){return _?be(7,1,e):52}function dr(e,t){if(_)return be(8,1,e,t);var n=0;return 0==e?n=2:1!=e&&2!=e||(n=64),r()[0|t]=2,a()[t+2>>1]=1,ie=[n>>>0,(ae=n,+Math.abs(ae)>=1?ae>0?+Math.floor(ae/4294967296)>>>0:~~+Math.ceil((ae-+(~~ae>>>0))/4294967296)>>>0:0)],o()[t+8>>2]=ie[0],o()[t+12>>2]=ie[1],ie=[0,(ae=0,+Math.abs(ae)>=1?ae>0?+Math.floor(ae/4294967296)>>>0:~~+Math.ceil((ae-+(~~ae>>>0))/4294967296)>>>0:0)],o()[t+16>>2]=ie[0],o()[t+20>>2]=ie[1],0}function fr(e,t,r,n){return _?be(9,1,e,t,r,n):52}function pr(e,t,r,n,a){return _?be(10,1,e,t,r,n,a):70}var hr,mr,gr,yr=[null,[],[]],vr=(e,t)=>{var r=yr[e];0===t||10===t?((1===e?F:R)(ye(r,0)),r.length=0):r.push(t)};function br(e,t,r,a){if(_)return be(11,1,e,t,r,a);for(var i=0,o=0;o<r;o++){var c=s()[t>>2],l=s()[t+4>>2];t+=8;for(var u=0;u<l;u++)vr(e,n()[c+u]);i+=l}return s()[a>>2]=i,0}Ce.init(),(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);We=e})(),Ue=d.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},xe=d.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(ut.prototype,{isAliasOf(e){if(!(this instanceof ut))return!1;if(!(e instanceof ut))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return t===n&&r===a},clone(){if(this.$$.ptr||Je(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=lt(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||Je(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ge("Object already scheduled for deletion"),Ke(this),Ye(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Je(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ge("Object already scheduled for deletion"),rt.push(this),1===rt.length&&qe&&qe(nt),this.$$.deleteScheduled=!0,this}}),d.getInheritedInstanceCount=et,d.getLiveInheritedInstances=tt,d.flushPendingDeletes=nt,d.setDelayFunction=at,Object.assign(bt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:vt,deleteObject(e){null!==e&&e.delete()},fromWireType:ct}),wt=d.UnboundTypeError=(hr=Error,(gr=dt(mr="UnboundTypeError",function(e){this.name=mr,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(hr.prototype),gr.prototype.constructor=gr,gr.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},gr),Object.assign(Pt.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)}}),$t.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),$t.reserved=$t.allocated.length,d.count_emval_handles=Ft;var wr=[we,Ee,Fe,Be,Me,cr,lr,ur,dr,fr,pr,br],_r={g:(e,t,r,n)=>{re(`Assertion failed: ${ve(e)}, at: `+[t?ve(t):"unknown filename",r,n?ve(n):"unknown function"])},s:(e,t,r)=>{throw new De(e).init(t,r),e},G:e=>{Ir(e,!b,1,!v,8388608,!1),Ce.threadInitTLS()},m:e=>{_?postMessage({cmd:"cleanupThread",thread:e}):fe(e)},B:Re,P:Be,D:Me,v:(e,t,r,n,a)=>{},R:(e,t,r,a)=>{ze(e,{name:t=Ve(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:a},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(n()[e])},destructorFunction:null})},O:(e,t,r,n,a,i,o,s,c,l,u,f,p)=>{u=Ve(u),i=At(a,i),s&&(s=At(o,s)),l&&(l=At(c,l)),p=At(f,p);var h=(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})(u);((e,t,r)=>{d.hasOwnProperty(e)?((void 0===r||void 0!==d[e].overloadTable&&void 0!==d[e].overloadTable[r])&&Ge(`Cannot register public name '${e}' twice`),ft(d,e,e),d.hasOwnProperty(r)&&Ge(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),d[e].overloadTable[r]=t):(d[e]=t,void 0!==r&&(d[e].numArguments=r))})(h,function(){St(`Cannot construct ${u} due to unbound types`,[n])}),Ne([e,t,r],n?[n]:[],function(t){var r,a;t=t[0],a=n?(r=t.registeredClass).instancePrototype:ut.prototype;var o=dt(u,function(){if(Object.getPrototypeOf(this)!==c)throw new Ue("Use 'new' to construct "+u);if(void 0===f.constructor_body)throw new Ue(u+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Ue(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),c=Object.create(a,{constructor:{value:o}});o.prototype=c;var f=new pt(u,o,c,p,r,i,s,l);f.baseClass&&(void 0===f.baseClass.__derivedClasses&&(f.baseClass.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new bt(u,f,!0,!1,!1),g=new bt(u+"*",f,!1,!1,!1),y=new bt(u+" const*",f,!1,!0,!1);return Qe[e]={pointerType:g,constPointerType:y},((e,t,r)=>{d.hasOwnProperty(e)||He("Replacing nonexistant public symbol"),void 0!==d[e].overloadTable&&void 0!==r?d[e].overloadTable[r]=t:(d[e]=t,d[e].argCount=r)})(h,o),[m,g,y]})},F:(e,t,r,n,a,i)=>{var o=Et(t,r);a=At(n,a),Ne([],[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 Ue(`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]=()=>{St(`Cannot construct ${e.name} due to unbound types`,o)},Ne([],o,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=kt(r,n,null,a,i),[])),[]})},k:(e,t,r,n,a,i,o,s,c)=>{var l=Et(r,n);t=(e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e})(t=Ve(t)),i=At(a,i),Ne([],[e],function(e){var n=`${(e=e[0]).name}.${t}`;function a(){St(`Cannot call ${n} due to unbound types`,l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,d=u[t];return void 0===d||void 0===d.overloadTable&&d.className!==e.name&&d.argCount===r-2?(a.argCount=r-2,a.className=e.name,u[t]=a):(ft(u,t,n),u[t].overloadTable[r-2]=a),Ne([],l,function(a){var s=kt(n,a,e,i,o,c);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]}),[]})},Q:(e,t)=>{ze(e,{name:t=Ve(t),fromWireType:e=>{var t=Rt.toValue(e);return Dt(e),t},toWireType:(e,t)=>Rt.toHandle(t),argPackAdvance:8,readValueFromPointer:Bt,destructorFunction:null})},p:(e,t,r)=>{ze(e,{name:t=Ve(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:Wt(t,r),destructorFunction:null})},d:(e,t,r,n,a)=>{t=Ve(t);var i=e=>e;if(0===n){var o=32-8*r;i=e=>e<<o>>>o}var s=t.includes("unsigned");ze(e,{name:t,fromWireType:i,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:Ut(t,r,0!==n),destructorFunction:null})},c:(e,t,n)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=s()[e>>2],n=s()[e+4>>2];return new a(r().buffer,n,t)}ze(e,{name:n=Ve(n),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},q:(e,t)=>{var r="std::string"===(t=Ve(t));ze(e,{name:t,fromWireType(e){var t,a=s()[e>>2],i=e+4;if(r)for(var o=i,c=0;c<=a;++c){var l=i+c;if(c==a||0==n()[l]){var u=ve(o,l-o);void 0===t?t=u:(t+=String.fromCharCode(0),t+=u),o=l+1}}else{var d=new Array(a);for(c=0;c<a;++c)d[c]=String.fromCharCode(n()[i+c]);t=d.join("")}return Cr(e),t},toWireType(e,t){var a;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var i="string"==typeof t;i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Ge("Cannot pass non-string to std::string"),a=r&&i?Vt(t):t.length;var o=Sr(4+a+1),c=o+4;if(s()[o>>2]=a,r&&i)xt(t,c,a+1);else if(i)for(var l=0;l<a;++l){var u=t.charCodeAt(l);u>255&&(Cr(c),Ge("String has UTF-16 code units that do not fit in 8 bits")),n()[c+l]=u}else for(l=0;l<a;++l)n()[c+l]=t[l];return null!==e&&e.push(Cr,o),o},argPackAdvance:8,readValueFromPointer:vt,destructorFunction(e){Cr(e)}})},l:(e,t,r)=>{var n,a,o,c,l;r=Ve(r),2===t?(n=Lt,a=jt,c=Gt,o=()=>i(),l=1):4===t&&(n=Ht,a=Nt,c=zt,o=()=>s(),l=2),ze(e,{name:r,fromWireType:e=>{for(var r,a=s()[e>>2],i=o(),c=e+4,u=0;u<=a;++u){var d=e+4+u*t;if(u==a||0==i[d>>l]){var f=n(c,d-c);void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),c=d+t}}return Cr(e),r},toWireType:(e,n)=>{"string"!=typeof n&&Ge(`Cannot pass non-string to C++ string type ${r}`);var i=c(n),o=Sr(4+i+t);return s()[o>>2]=i>>l,a(n,o+4,i+t),null!==e&&e.push(Cr,o),o},argPackAdvance:8,readValueFromPointer:Bt,destructorFunction(e){Cr(e)}})},S:(e,t)=>{ze(e,{isVoid:!0,name:t=Ve(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},y:(e,t,r)=>{if(e==t)setTimeout(()=>Xt());else if(_)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=Ce.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}},C:(e,t,r,n)=>{Yt.length=r;for(var a=n>>3,i=0;i<r;i++)Yt[i]=c()[a+i];var o=wr[e];Ce.currentProxiedOperationCallerThread=t;var s=o.apply(null,Yt);return Ce.currentProxiedOperationCallerThread=0,s},E:Jt,L:e=>{w&&Ce.pthreads[e].ref()},j:(e,t,r,n,a)=>{var i,o;return(e=Qt[e])(t=Rt.toValue(t),t[r=void 0===(o=Zt[i=r])?Ve(i):o],n,a)},r:Dt,i:(e,t,r)=>{var n=((e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=er(s()[t+4*n>>2],"parameter "+n);return r})(e,t),a=n.shift();e--;var i="return function (obj, func, destructorsRef, args) {\n",o=0,c=[];0===r&&c.push("obj");for(var l=["retType"],u=[a],d=0;d<e;++d)c.push("arg"+d),l.push("argType"+d),u.push(n[d]),i+=`  var arg${d} = argType${d}.readValueFromPointer(args${o?"+"+o:""});\n`,o+=n[d].argPackAdvance;for(i+=`  var rv = ${1===r?"new func":"func.call"}(${c.join(", ")});\n`,d=0;d<e;++d)n[d].deleteObject&&(i+=`  argType${d}.deleteObject(arg${d});\n`);a.isVoid||(l.push("emval_returnValue"),u.push(tr),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",l.push(i);var f,p,h=It(Function,l).apply(null,u),m=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${a.name}>`;return f=dt(m,h),p=Qt.length,Qt.push(f),p},h:e=>{var t=Rt.toValue(e);Tt(t),Dt(e)},t:function(e,t,r){var n,a,i=(a=t)+2097152>>>0<4194305-!!(n=e)?(n>>>0)+4294967296*a:NaN,s=new Date(1e3*i);o()[r>>2]=s.getSeconds(),o()[r+4>>2]=s.getMinutes(),o()[r+8>>2]=s.getHours(),o()[r+12>>2]=s.getDate(),o()[r+16>>2]=s.getMonth(),o()[r+20>>2]=s.getFullYear()-1900,o()[r+24>>2]=s.getDay();var c=0|(e=>{var t;return((t=e.getFullYear())%4!=0||t%100==0&&t%400!=0?nr:rr)[e.getMonth()]+e.getDate()-1})(s);o()[r+28>>2]=c,o()[r+36>>2]=-60*s.getTimezoneOffset();var l=new Date(s.getFullYear(),0,1),u=new Date(s.getFullYear(),6,1).getTimezoneOffset(),d=l.getTimezoneOffset(),f=0|(u!=d&&s.getTimezoneOffset()==Math.min(d,u));o()[r+32>>2]=f},x:(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),i=new Date(n,6,1),c=a.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(c,l);function d(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}s()[e>>2]=60*u,o()[t>>2]=Number(c!=l);var f=d(a),p=d(i),h=ar(f),m=ar(p);l<c?(s()[r>>2]=h,s()[r+4>>2]=m):(s()[r>>2]=m,s()[r+4>>2]=h)},b:()=>{re("")},n:()=>{},f:()=>Date.now(),K:()=>{throw he+=1,"unwind"},e:Kt,z:()=>w?S("os").cpus().length:navigator.hardwareConcurrency,w:e=>{var t=n().length;if((e>>>=0)<=t)return!1;var r=536870912;if(e>r)return!1;for(var a=(e,t)=>e+(t-e%t)%t,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var s=Math.min(r,a(Math.max(e,o),65536));if(ir(s))return!0}return!1},I:cr,J:lr,A:_e,o:ur,H:dr,N:fr,u:pr,M:br,a:$||d.wasmMemory},Ar=function(){var e,t,r,n,a={a:_r};function i(e,t){var r;return Ar=e.exports,$e(Ar.X),Te=Ar._,r=Ar.T,q.unshift(r),D=t,te(),Ar}if(ee(),d.instantiateWasm)try{return d.instantiateWasm(a,i)}catch(e){R(`Module.instantiateWasm callback failed with error: ${e}`),u(e)}return(e=P,t=ne,r=a,n=function(e){i(e.instance,e.module)},e||"function"!=typeof WebAssembly.instantiateStreaming||oe(t)||se(t)||w||"function"!=typeof fetch?le(t,r,n):fetch(t,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,r).then(n,function(e){return R(`wasm streaming compile failed: ${e}`),R("falling back to ArrayBuffer instantiation"),le(t,r,n)}))).catch(u),{}}(),Cr=e=>(Cr=Ar.U)(e),Sr=e=>(Sr=Ar.V)(e),Er=d._pthread_self=()=>(Er=d._pthread_self=Ar.W)();d.__emscripten_tls_init=()=>(d.__emscripten_tls_init=Ar.X)();var Tr=e=>(Tr=Ar.Y)(e);d.__embind_initialize_bindings=()=>(d.__embind_initialize_bindings=Ar.Z)();var Ir=d.__emscripten_thread_init=(e,t,r,n,a,i)=>(Ir=d.__emscripten_thread_init=Ar.$)(e,t,r,n,a,i);d.__emscripten_thread_crashed=()=>(d.__emscripten_thread_crashed=Ar.aa)();var kr,Pr=(e,t,r,n)=>(Pr=Ar.ba)(e,t,r,n),$r=e=>($r=Ar.ca)(e),Dr=d.__emscripten_thread_exit=e=>(Dr=d.__emscripten_thread_exit=Ar.da)(e),Fr=()=>(Fr=Ar.ea)(),Rr=(e,t)=>(Rr=Ar.fa)(e,t),Br=()=>(Br=Ar.ga)(),Mr=e=>(Mr=Ar.ha)(e),Wr=e=>(Wr=Ar.ia)(e),Ur=e=>(Ur=Ar.ja)(e);function xr(){if(!(Z>0)){if(_)return l(d),X(),void startWorker(d);!function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)K(d.preRun.shift());Se(z)}(),Z>0||(d.setStatus?(d.setStatus("Running..."),setTimeout(function(){setTimeout(function(){d.setStatus("")},1),e()},1)):e())}function e(){kr||(kr=!0,d.calledRun=!0,G||(X(),l(d),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(!_){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)Y(d.postRun.shift());Se(J)}}()))}}if(d.dynCall_jiji=(e,t,r,n,a)=>(d.dynCall_jiji=Ar.ka)(e,t,r,n,a),d._ff_h264_cabac_tables=99061,d.wasmMemory=$,d.keepRuntimeAlive=me,d.ExitStatus=ue,d.PThread=Ce,Q=function e(){kr||xr(),kr||(Q=e)},d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();return xr(),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-mt.js",document.baseURI).href;return async function(t={}){var r,n,a;(a=t).ready=new Promise((e,t)=>{r=e,n=t}),(a=void 0!==a?a:{}).locateFile=function(e,t){return"decoder-pro-audio.wasm"==e&&"undefined"!=typeof JESSIBUCA_PRO_AUDIO_WASM_URL&&""!=JESSIBUCA_PRO_AUDIO_WASM_URL?JESSIBUCA_PRO_AUDIO_WASM_URL:t+e};var i,o,s,c=Object.assign({},a),l="./this.program",u="object"==typeof window,d="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,p="";if(f){const{createRequire:e}=await import("module");var h=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),m=h("fs"),g=h("path");p=d?g.dirname(p)+"/":h("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)),i=(e,t)=>(e=H(e)?new URL(e):g.normalize(e),m.readFileSync(e,t?void 0:"utf8")),s=e=>{var t=i(e,!0);return t.buffer||(t=new Uint8Array(t)),t},o=(e,t,r,n=!0)=>{e=H(e)?new URL(e):g.normalize(e),m.readFile(e,n?void 0:"utf8",(e,a)=>{e?r(e):t(n?a.buffer:a)})},!a.thisProgram&&process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),a.inspect=()=>"[Emscripten Module object]"}else(u||d)&&(d?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):"",i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},d&&(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var y,v,b=a.print||console.log.bind(console),w=a.printErr||console.error.bind(console);Object.assign(a,c),c=null,a.arguments&&a.arguments,a.thisProgram&&(l=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(y=a.wasmBinary),"object"!=typeof WebAssembly&&x("no native wasm support detected");var _,A,C,S,E,T,I,k,P=!1;function $(){var e=v.buffer;a.HEAP8=_=new Int8Array(e),a.HEAP16=C=new Int16Array(e),a.HEAPU8=A=new Uint8Array(e),a.HEAPU16=S=new Uint16Array(e),a.HEAP32=E=new Int32Array(e),a.HEAPU32=T=new Uint32Array(e),a.HEAPF32=I=new Float32Array(e),a.HEAPF64=k=new Float64Array(e)}var D=[],F=[],R=[];function B(e){D.unshift(e)}function M(e){R.unshift(e)}var W=0,U=null;function x(e){a.onAbort&&a.onAbort(e),w(e="Aborted("+e+")"),P=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var V,O,L,j,G=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function N(e){if(e==V&&y)return new Uint8Array(y);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function z(e,t,r){return function(e){if(!y&&(u||d)){if("function"==typeof fetch&&!H(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(()=>N(e));if(o)return new Promise((t,r)=>{o(e,e=>t(new Uint8Array(e)),r)})}return Promise.resolve().then(()=>N(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(r,e=>{w(`failed to asynchronously prepare wasm: ${e}`),x(e)})}a.locateFile?G(V="decoder-pro-audio.wasm")||(O=V,V=a.locateFile?a.locateFile(O,p):p+O):V=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 q=e=>{for(;e.length>0;)e.shift()(a)};function J(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){T[this.ptr+4>>2]=e},this.get_type=function(){return T[this.ptr+4>>2]},this.set_destructor=function(e){T[this.ptr+8>>2]=e},this.get_destructor=function(){return T[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,_[this.ptr+12|0]=e},this.get_caught=function(){return 0!=_[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,_[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=_[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){T[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return T[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Rt(this.get_type()))return T[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}a.noExitRuntime;var X="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,K=(e,t,r)=>{for(var n=t+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&X)return X.decode(e.subarray(t,a));for(var i="";t<a;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i},Y=(e,t)=>e?K(A,e,t):"";var Z,Q,ee,te=e=>{for(var t="",r=e;A[r];)t+=Z[A[r++]];return t},re={},ne={},ae={},ie=e=>{throw new Q(e)},oe=e=>{throw new ee(e)},se=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&oe("Mismatched type converter count");for(var a=0;a<e.length;++a)ce(e[a],n[a])}e.forEach(function(e){ae[e]=t});var a=new Array(t.length),i=[],o=0;t.forEach((e,t)=>{ne.hasOwnProperty(e)?a[t]=ne[e]:(i.push(e),re.hasOwnProperty(e)||(re[e]=[]),re[e].push(()=>{a[t]=ne[e],++o===i.length&&n(a)}))}),0===i.length&&n(a)};function ce(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t,r={}){var n=t.name;if(e||ie(`type "${n}" must have a positive integer typeid pointer`),ne.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ie(`Cannot register type '${n}' twice`)}if(ne[e]=t,delete ae[e],re.hasOwnProperty(e)){var a=re[e];delete re[e],a.forEach(e=>e())}}(e,t,r)}var le,ue=e=>{ie(e.$$.ptrType.registeredClass.name+" instance already deleted")},de=!1,fe=e=>{},pe=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},he=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=he(e,t,r.baseClass);return null===n?null:r.downcast(n)},me={},ge=()=>Object.keys(_e).length,ye=()=>{var e=[];for(var t in _e)_e.hasOwnProperty(t)&&e.push(_e[t]);return e},ve=[],be=()=>{for(;ve.length;){var e=ve.pop();e.$$.deleteScheduled=!1,e.delete()}},we=e=>{le=e,ve.length&&le&&le(be)},_e={},Ae=(e,t)=>(t=((e,t)=>{for(void 0===t&&ie("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),_e[t]),Ce=(e,t)=>(t.ptrType&&t.ptr||oe("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&oe("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ee(Object.create(e,{$$:{value:t}})));function Se(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Ae(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?Ce(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ce(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,o=this.registeredClass.getActualType(t),s=me[o];if(!s)return a.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=he(t,this.registeredClass,i.registeredClass);return null===c?a.call(this):this.isSmartPointer?Ce(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):Ce(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}var Ee=e=>"undefined"==typeof FinalizationRegistry?(Ee=e=>e,e):(de=new FinalizationRegistry(e=>{pe(e.$$)}),Ee=e=>{var t=e.$$;if(!!t.smartPtr){var r={$$:t};de.register(e,r,e)}return e},fe=e=>de.unregister(e),Ee(e));function Te(){}var Ie=(e,t)=>Object.defineProperty(t,"name",{value:e}),ke=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ie(`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[n.argCount]=n}};function Pe(e,t,r,n,a,i,o,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var $e=(e,t,r)=>{for(;t!==r;)t.upcast||ie(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function De(e,t){if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return $e(t.$$.ptr,r,this.registeredClass)}function Fe(e,t){var r;if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ie(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;if(r=$e(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ie("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ie(`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 a=t.clone();r=this.rawShare(r,Ze.toHandle(()=>a.delete())),null!==e&&e.push(this.rawDestructor,r)}break;default:ie("Unsupporting sharing policy")}return r}function Re(e,t){if(null===t)return this.isReference&&ie(`null is not a valid ${this.name}`),0;t.$$||ie(`Cannot pass "${et(t)}" as a ${this.name}`),t.$$.ptr||ie(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ie(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return $e(t.$$.ptr,r,this.registeredClass)}function Be(e){return this.fromWireType(T[e>>2])}function Me(e,t,r,n,a,i,o,s,c,l,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=u,a||void 0!==t.baseClass?this.toWireType=Fe:n?(this.toWireType=De,this.destructorFunction=null):(this.toWireType=Re,this.destructorFunction=null)}var We,Ue,xe=[],Ve=e=>{var t=xe[e];return t||(e>=xe.length&&(xe.length=e+1),xe[e]=t=We.get(e)),t},Oe=(e,t,r)=>e.includes("j")?((e,t,r)=>{var n=a["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)})(e,t,r):Ve(t).apply(null,r),Le=(e,t)=>{var r,n,a,i=(e=te(e)).includes("j")?(r=e,n=t,a=[],function(){return a.length=0,Object.assign(a,arguments),Oe(r,n,a)}):Ve(t);return"function"!=typeof i&&ie(`unknown function pointer with signature ${e}: ${t}`),i},je=e=>{var t=Dt(e),r=te(t);return $t(t),r},Ge=(e,t)=>{var r=[],n={};throw t.forEach(function e(t){n[t]||ne[t]||(ae[t]?ae[t].forEach(e):(r.push(t),n[t]=!0))}),new Ue(`${e}: `+r.map(je).join([", "]))},He=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(T[t+4*n>>2]);return r},Ne=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function ze(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Ie(e.name||"unknownFunctionName",function(){});r.prototype=e.prototype;var n=new r,a=e.apply(n,t);return a instanceof Object?a:n}function qe(e,t,r,n,a,i){var o=t.length;o<2&&ie("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,c=!1,l=1;l<t.length;++l)if(null!==t[l]&&void 0===t[l].destructorFunction){c=!0;break}var u="void"!==t[0].name,d="",f="";for(l=0;l<o-2;++l)d+=(0!==l?", ":"")+"arg"+l,f+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n        return function (${d}) {\n        if (arguments.length !== ${o-2}) {\n          throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${o-2}');\n        }`;c&&(p+="var destructors = [];\n");var h=c?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[ie,n,a,Ne,t[0],t[1]];s&&(p+="var thisWired = classParam.toWireType("+h+", this);\n");for(l=0;l<o-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+h+", arg"+l+"); // "+t[l+2].name+"\n",m.push("argType"+l),g.push(t[l+2]);if(s&&(f="thisWired"+(f.length>0?", ":"")+f),p+=(u||i?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",c)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<t.length;++l){var y=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==t[l].destructorFunction&&(p+=y+"_dtor("+y+"); // "+t[l].name+"\n",m.push(y+"_dtor"),g.push(t[l].destructorFunction))}u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p);var v=ze(Function,m).apply(null,g);return Ie(e,v)}function Je(){this.allocated=[void 0],this.freelist=[]}var Xe=new Je,Ke=e=>{e>=Xe.reserved&&0===--Xe.get(e).refcount&&Xe.free(e)},Ye=()=>{for(var e=0,t=Xe.reserved;t<Xe.allocated.length;++t)void 0!==Xe.allocated[t]&&++e;return e},Ze={toValue:e=>(e||ie("Cannot use deleted val. handle = "+e),Xe.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 Xe.allocate({refcount:1,value:e})}}};function Qe(e){return this.fromWireType(E[e>>2])}var et=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},tt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(I[e>>2])};case 8:return function(e){return this.fromWireType(k[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rt=(e,t,r)=>{switch(t){case 1:return r?e=>_[e|0]:e=>A[e|0];case 2:return r?e=>C[e>>1]:e=>S[e>>1];case 4:return r?e=>E[e>>2]:e=>T[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},nt=(e,t,r)=>((e,t,r,n)=>{if(!(n>0))return 0;for(var a=r,i=r+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-a})(e,A,t,r),at=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},it="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ot=(e,t)=>{for(var r=e,n=r>>1,a=n+t/2;!(n>=a)&&S[n];)++n;if((r=n<<1)-e>32&&it)return it.decode(A.subarray(e,r));for(var i="",o=0;!(o>=t/2);++o){var s=C[e+2*o>>1];if(0==s)break;i+=String.fromCharCode(s)}return i},st=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,a=(r-=2)<2*e.length?r/2:e.length,i=0;i<a;++i){var o=e.charCodeAt(i);C[t>>1]=o,t+=2}return C[t>>1]=0,t-n},ct=e=>2*e.length,lt=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=E[e+4*r>>2];if(0==a)break;if(++r,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n},ut=(e,t,r)=>{if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,a=n+r-4,i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i);if(E[t>>2]=o,(t+=4)+4>a)break}return E[t>>2]=0,t-n},dt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t},ft={},pt=[],ht=(e,t)=>{var r=ne[e];return void 0===r&&ie(t+" has unknown type "+je(e)),r},mt=(e,t,r)=>{var n=[],a=e.toWireType(n,r);return n.length&&(T[t>>2]=Ze.toHandle(n)),a},gt=[0,31,60,91,121,152,182,213,244,274,305,335],yt=[0,31,59,90,120,151,181,212,243,273,304,334];var vt=e=>{var t=at(e)+1,r=Ft(t);return r&&nt(e,r,t),r},bt=e=>{var t=(e-v.buffer.byteLength+65535)/65536;try{return v.grow(t),$(),1}catch(e){}},wt={},_t=()=>{if(!_t.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",_:l||"./this.program"};for(var t in wt)void 0===wt[t]?delete e[t]:e[t]=wt[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);_t.strings=r}return _t.strings};var At,Ct,St,Et=[null,[],[]],Tt=(e,t)=>{var r=Et[e];0===t||10===t?((1===e?b:w)(K(r,0)),r.length=0):r.push(t)};(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Z=e})(),Q=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},ee=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(Te.prototype,{isAliasOf(e){if(!(this instanceof Te))return!1;if(!(e instanceof Te))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return t===n&&r===a},clone(){if(this.$$.ptr||ue(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=Ee(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||ue(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ie("Object already scheduled for deletion"),fe(this),pe(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ue(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ie("Object already scheduled for deletion"),ve.push(this),1===ve.length&&le&&le(be),this.$$.deleteScheduled=!0,this}}),a.getInheritedInstanceCount=ge,a.getLiveInheritedInstances=ye,a.flushPendingDeletes=be,a.setDelayFunction=we,Object.assign(Me.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Be,deleteObject(e){null!==e&&e.delete()},fromWireType:Se}),Ue=a.UnboundTypeError=(At=Error,(St=Ie(Ct="UnboundTypeError",function(e){this.name=Ct,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(At.prototype),St.prototype.constructor=St,St.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},St),Object.assign(Je.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)}}),Xe.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Xe.reserved=Xe.allocated.length,a.count_emval_handles=Ye;var It,kt={o:(e,t,r)=>{throw new J(e).init(t,r),e},C:function(e,t,r){return 0},u:function(e,t,r,n){},r:(e,t,r,n,a)=>{},E:(e,t,r,n)=>{ce(e,{name:t=te(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(A[e])},destructorFunction:null})},F:(e,t,r,n,i,o,s,c,l,u,d,f,p)=>{d=te(d),o=Le(i,o),c&&(c=Le(s,c)),u&&(u=Le(l,u)),p=Le(f,p);var h=(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})(d);((e,t,r)=>{a.hasOwnProperty(e)?((void 0===r||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[r])&&ie(`Cannot register public name '${e}' twice`),ke(a,e,e),a.hasOwnProperty(r)&&ie(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[e].overloadTable[r]=t):(a[e]=t,void 0!==r&&(a[e].numArguments=r))})(h,function(){Ge(`Cannot construct ${d} due to unbound types`,[n])}),se([e,t,r],n?[n]:[],function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:Te.prototype;var s=Ie(d,function(){if(Object.getPrototypeOf(this)!==l)throw new Q("Use 'new' to construct "+d);if(void 0===f.constructor_body)throw new Q(d+" has no accessible constructor");var e=f.constructor_body[arguments.length];if(void 0===e)throw new Q(`Tried to invoke ctor of ${d} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(f.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),l=Object.create(i,{constructor:{value:s}});s.prototype=l;var f=new Pe(d,s,l,p,r,o,c,u);f.baseClass&&(void 0===f.baseClass.__derivedClasses&&(f.baseClass.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new Me(d,f,!0,!1,!1),g=new Me(d+"*",f,!1,!1,!1),y=new Me(d+" const*",f,!1,!0,!1);return me[e]={pointerType:g,constPointerType:y},((e,t,r)=>{a.hasOwnProperty(e)||oe("Replacing nonexistant public symbol"),void 0!==a[e].overloadTable&&void 0!==r?a[e].overloadTable[r]=t:(a[e]=t,a[e].argCount=r)})(h,s),[m,g,y]})},A:(e,t,r,n,a,i)=>{var o=He(t,r);a=Le(n,a),se([],[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 Q(`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]=()=>{Ge(`Cannot construct ${e.name} due to unbound types`,o)},se([],o,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=qe(r,n,null,a,i),[])),[]})},h:(e,t,r,n,a,i,o,s,c)=>{var l=He(r,n);t=(e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e})(t=te(t)),i=Le(a,i),se([],[e],function(e){var n=`${(e=e[0]).name}.${t}`;function a(){Ge(`Cannot call ${n} due to unbound types`,l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,d=u[t];return void 0===d||void 0===d.overloadTable&&d.className!==e.name&&d.argCount===r-2?(a.argCount=r-2,a.className=e.name,u[t]=a):(ke(u,t,n),u[t].overloadTable[r-2]=a),se([],l,function(a){var s=qe(n,a,e,i,o,c);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]}),[]})},D:(e,t)=>{ce(e,{name:t=te(t),fromWireType:e=>{var t=Ze.toValue(e);return Ke(e),t},toWireType:(e,t)=>Ze.toHandle(t),argPackAdvance:8,readValueFromPointer:Qe,destructorFunction:null})},l:(e,t,r)=>{ce(e,{name:t=te(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:tt(t,r),destructorFunction:null})},c:(e,t,r,n,a)=>{t=te(t);var i=e=>e;if(0===n){var o=32-8*r;i=e=>e<<o>>>o}var s=t.includes("unsigned");ce(e,{name:t,fromWireType:i,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:rt(t,r,0!==n),destructorFunction:null})},b:(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function a(e){var t=T[e>>2],r=T[e+4>>2];return new n(_.buffer,r,t)}ce(e,{name:r=te(r),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},m:(e,t)=>{var r="std::string"===(t=te(t));ce(e,{name:t,fromWireType(e){var t,n=T[e>>2],a=e+4;if(r)for(var i=a,o=0;o<=n;++o){var s=a+o;if(o==n||0==A[s]){var c=Y(i,s-i);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),i=s+1}}else{var l=new Array(n);for(o=0;o<n;++o)l[o]=String.fromCharCode(A[a+o]);t=l.join("")}return $t(e),t},toWireType(e,t){var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var a="string"==typeof t;a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ie("Cannot pass non-string to std::string"),n=r&&a?at(t):t.length;var i=Ft(4+n+1),o=i+4;if(T[i>>2]=n,r&&a)nt(t,o,n+1);else if(a)for(var s=0;s<n;++s){var c=t.charCodeAt(s);c>255&&($t(o),ie("String has UTF-16 code units that do not fit in 8 bits")),A[o+s]=c}else for(s=0;s<n;++s)A[o+s]=t[s];return null!==e&&e.push($t,i),i},argPackAdvance:8,readValueFromPointer:Be,destructorFunction(e){$t(e)}})},i:(e,t,r)=>{var n,a,i,o,s;r=te(r),2===t?(n=ot,a=st,o=ct,i=()=>S,s=1):4===t&&(n=lt,a=ut,o=dt,i=()=>T,s=2),ce(e,{name:r,fromWireType:e=>{for(var r,a=T[e>>2],o=i(),c=e+4,l=0;l<=a;++l){var u=e+4+l*t;if(l==a||0==o[u>>s]){var d=n(c,u-c);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),c=u+t}}return $t(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ie(`Cannot pass non-string to C++ string type ${r}`);var i=o(n),c=Ft(4+i+t);return T[c>>2]=i>>s,a(n,c+4,i+t),null!==e&&e.push($t,c),c},argPackAdvance:8,readValueFromPointer:Qe,destructorFunction(e){$t(e)}})},n:(e,t)=>{ce(e,{isVoid:!0,name:t=te(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},f:(e,t,r,n,a)=>{var i,o;return(e=pt[e])(t=Ze.toValue(t),t[r=void 0===(o=ft[i=r])?te(i):o],n,a)},j:Ke,e:(e,t,r)=>{var n=((e,t)=>{for(var r=new Array(e),n=0;n<e;++n)r[n]=ht(T[t+4*n>>2],"parameter "+n);return r})(e,t),a=n.shift();e--;var i="return function (obj, func, destructorsRef, args) {\n",o=0,s=[];0===r&&s.push("obj");for(var c=["retType"],l=[a],u=0;u<e;++u)s.push("arg"+u),c.push("argType"+u),l.push(n[u]),i+=`  var arg${u} = argType${u}.readValueFromPointer(args${o?"+"+o:""});\n`,o+=n[u].argPackAdvance;i+=`  var rv = ${1===r?"new func":"func.call"}(${s.join(", ")});\n`;for(u=0;u<e;++u)n[u].deleteObject&&(i+=`  argType${u}.deleteObject(arg${u});\n`);a.isVoid||(c.push("emval_returnValue"),l.push(mt),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",c.push(i);var d,f,p=ze(Function,c).apply(null,l),h=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${a.name}>`;return d=Ie(h,p),f=pt.length,pt.push(d),f},d:e=>{var t=Ze.toValue(e);Ne(t),Ke(e)},p:function(e,t,r){var n,a,i=(a=t)+2097152>>>0<4194305-!!(n=e)?(n>>>0)+4294967296*a:NaN,o=new Date(1e3*i);E[r>>2]=o.getSeconds(),E[r+4>>2]=o.getMinutes(),E[r+8>>2]=o.getHours(),E[r+12>>2]=o.getDate(),E[r+16>>2]=o.getMonth(),E[r+20>>2]=o.getFullYear()-1900,E[r+24>>2]=o.getDay();var s=0|(e=>{var t;return((t=e.getFullYear())%4!=0||t%100==0&&t%400!=0?yt:gt)[e.getMonth()]+e.getDate()-1})(o);E[r+28>>2]=s,E[r+36>>2]=-60*o.getTimezoneOffset();var c=new Date(o.getFullYear(),0,1),l=new Date(o.getFullYear(),6,1).getTimezoneOffset(),u=c.getTimezoneOffset(),d=0|(l!=u&&o.getTimezoneOffset()==Math.min(u,l));E[r+32>>2]=d},t:(e,t,r)=>{var n=(new Date).getFullYear(),a=new Date(n,0,1),i=new Date(n,6,1),o=a.getTimezoneOffset(),s=i.getTimezoneOffset(),c=Math.max(o,s);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}T[e>>2]=60*c,E[t>>2]=Number(o!=s);var u=l(a),d=l(i),f=vt(u),p=vt(d);s<o?(T[r>>2]=f,T[r+4>>2]=p):(T[r>>2]=p,T[r+4>>2]=f)},a:()=>{x("")},g:()=>Date.now(),y:(e,t,r)=>A.copyWithin(e,t,t+r),s:e=>{var t=A.length,r=33554432;if((e>>>=0)>r)return!1;for(var n=(e,t)=>e+(t-e%t)%t,a=1;a<=4;a*=2){var i=t*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(r,n(Math.max(e,i),65536));if(bt(o))return!0}return!1},w:(e,t)=>{var r=0;return _t().forEach((n,a)=>{var i=t+r;T[e+4*a>>2]=i,((e,t)=>{for(var r=0;r<e.length;++r)_[0|t++]=e.charCodeAt(r);_[0|t]=0})(n,i),r+=n.length+1}),0},x:(e,t)=>{var r=_t();T[e>>2]=r.length;var n=0;return r.forEach(e=>n+=e.length+1),T[t>>2]=n,0},k:e=>52,v:(e,t)=>{var r=0;return 0==e?r=2:1!=e&&2!=e||(r=64),_[t|0]=2,C[t+2>>1]=1,j=[r>>>0,(L=r,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+8>>2]=j[0],E[t+12>>2]=j[1],j=[0,(L=0,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+16>>2]=j[0],E[t+20>>2]=j[1],0},B:(e,t,r,n)=>52,q:function(e,t,r,n,a){return 70},z:(e,t,r,n)=>{for(var a=0,i=0;i<r;i++){var o=T[t>>2],s=T[t+4>>2];t+=8;for(var c=0;c<s;c++)Tt(e,A[o+c]);a+=s}return T[n>>2]=a,0}},Pt=function(){var e,t,r,i,o={a:kt};function s(e,t){var r;return Pt=e.exports,v=Pt.G,$(),We=Pt.K,r=Pt.H,F.unshift(r),function(){if(W--,a.monitorRunDependencies&&a.monitorRunDependencies(W),0==W&&U){var e=U;U=null,e()}}(),Pt}if(W++,a.monitorRunDependencies&&a.monitorRunDependencies(W),a.instantiateWasm)try{return a.instantiateWasm(o,s)}catch(e){w(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return(e=y,t=V,r=o,i=function(e){s(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||G(t)||H(t)||f||"function"!=typeof fetch?z(t,r,i):fetch(t,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,r).then(i,function(e){return w(`wasm streaming compile failed: ${e}`),w("falling back to ArrayBuffer instantiation"),z(t,r,i)}))).catch(n),{}}(),$t=e=>($t=Pt.I)(e),Dt=e=>(Dt=Pt.J)(e),Ft=e=>(Ft=Pt.L)(e),Rt=e=>(Rt=Pt.M)(e);function Bt(){function e(){It||(It=!0,a.calledRun=!0,P||(q(F),r(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)M(a.postRun.shift());q(R)}()))}W>0||(!function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)B(a.preRun.shift());q(D)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),e()},1)):e()))}if(a.dynCall_jij=(e,t,r,n)=>(a.dynCall_jij=Pt.N)(e,t,r,n),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=Pt.O)(e,t,r),a.dynCall_viiijj=(e,t,r,n,i,o,s,c)=>(a.dynCall_viiijj=Pt.P)(e,t,r,n,i,o,s,c),a.dynCall_jiji=(e,t,r,n,i)=>(a.dynCall_jiji=Pt.Q)(e,t,r,n,i),U=function e(){It||Bt(),It||(U=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Bt(),t.ready}})();const n=s;!function(e){const t=s,r=e();for(;;)try{if(556550===-parseInt(t(173))/1*(parseInt(t(640))/2)+-parseInt(t(420))/3+-parseInt(t(615))/4+parseInt(t(172))/5*(parseInt(t(296))/6)+parseInt(t(606))/7+parseInt(t(368))/8+-parseInt(t(564))/9*(-parseInt(t(412))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(I);const a={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};n(593),n(608),n(501),n(190),n(608),n(285),n(593),n(501),n(441),n(192);const i={player:n(672),playerAudio:n(222),playbackTF:n(390),talk:n(681),playVod:n(216)},o="mp4";n(502),n(340),n(667);function s(e,t){const r=I();return(s=function(e,t){return r[e-=124]})(e,t)}const c={flv:n(340),m7s:n(145),hls:n(285),webrtc:n(501),webTransport:n(190),nakedFlow:"nakedFlow",fmp4:n(160),mpeg4:"mpeg4",aliyunRtc:n(441),ts:"ts",g711:n(234),pcm:"pcm",ps:"ps",dhav:n(156)};n(665),n(664),n(315),n(406),n(198),n(675),n(154),n(384),n(636);const l={mse:n(604),wcs:n(569),offscreen:n(425),wasm:"wasm",simd:n(133),simdFFmpeg:n(570),mt:"mt",webrtc:n(501),hls:n(285),aliyunRtc:n(441),browser:"browser"},u={canvas:n(458),video:"video"},d={debug:n(537),warn:"warn"},f={click:n(362),mouseDownAndUp:n(579)},p={normal:"normal",simple:n(385)},h={normal:n(252),small:n(415)},m={drop:n(184),accelerate:"accelerate"};n(428),n(253);const g=n(343),y=4080;n(679),n(344);n(167),n(454);const v={average:n(333),all:n(126)};n(179),n(561),n(214),n(403),n(186),n(541),n(306),n(142),n(162),n(162),n(566),n(566),n(376),n(242),n(566),n(162),n(142),n(587),n(282),n(429),n(566),n(200),n(476),n(356),n(453),n(453),n(453),n(493),n(200),n(617),n(153),n(588),n(588),n(153),n(241),n(433),n(453),n(566),n(438),n(163),n(558),n(527),n(457),n(250);n(672),n(537),n(252),n(491),n(188),n(391),n(226),n(181),n(312),n(252),n(608),n(294),n(362),n(652),n(324),n(184),n(126);n(481),n(377),n(223),n(473),n(581),n(598),n(639),n(316),n(286),n(532),n(210),n(576),n(273),n(506),n(318),n(470),n(165),n(571),n(451),n(514),n(568),n(218),n(292),n(301);const b={init:"init",initVideo:"initVideo",render:"render",playAudio:n(480),initAudio:n(421),kBps:n(136),decode:n(599),audioCode:n(522),audioNalu:"audioNalu",audioAACSequenceHeader:n(227),videoCode:"videoCode",videoCodec:n(305),videoNalu:n(396),videoPayload:n(465),audioPayload:n(580),wasmError:n(346),workerFetch:n(402),iframeIntervalTs:n(148),isDropping:n(614),workerEnd:n(199),networkDelay:n(271),playbackStreamVideoFps:n(308),wasmWidthOrHeightChange:"wasmWidthOrHeightChange",simdDecodeError:"simdDecodeError",simdH264DecodeVideoWidthIsTooLarge:n(620),simdDecodeDelayTimeout:n(182),websocketOpen:n(677),websocketStringMsg:n(531),closeEnd:n(662),tempStream:n(583),videoSEI:n(137),flvScriptData:n(642),aacSequenceHeader:n(280),videoSequenceHeader:n(369),flvBufferData:n(648),checkFirstIFrame:n(321),mseHandle:n(244),mseFirstRenderTime:"mseFirstRenderTime",mseError:n(513),notSupportNewWasm:n(548),outOfMemoryWasm:"outOfMemoryWasm",failedToAsynchronouslyPrepareWasm:"failedToAsynchronouslyPrepareWasm",mtStreamStats:"mtStreamStats",videoStreamStats:n(553),audioStreamStats:"audioStreamStats",tsError:n(618),tsPrivateData:n(317),videoInitedAndNotFirstVideoIFrame:"videoInitedAndNotFirstVideoIFrame"};n(293),n(599),n(619),n(464),n(486),n(638),n(572),n(325),n(643),n(134),n(625),n(592),n(304),n(257),n(424),n(219),n(487),n(608),n(386),n(147),n(233),n(680),n(364),n(371),n(293),n(497),n(577),n(407),n(386),n(497),n(605),n(677),n(531),n(293);const w={fullscreenInner:n(129),fullscreen:n(678),fullscreenEndInner:n(647),fullScreenByStart:n(542),webFullscreen:"webFullscreen",decoderWorkerInit:n(205),play:n(277),playing:"playing",pause:n(595),mute:n(379),load:n(440),loading:n(649),zooming:n(621),drawingRect:n(536),drawingRectInfo:n(255),videoInfo:n(645),timeUpdate:"timeUpdate",audioInfo:"audioInfo",log:n(243),error:n(409),kBps:n(136),timeout:n(568),delayTimeout:n(613),delayTimeoutRetryEnd:"delayTimeoutRetryEnd",loadingTimeout:"loadingTimeout",loadingTimeoutRetryEnd:n(628),stats:"stats",performance:"performance",videoSmooth:n(448),faceDetectActive:n(544),objectDetectActive:n(610),occlusionDetectActive:n(239),imageDetectActive:n(281),licensePlateDetectActive:"licensePlateDetectActive",record:n(545),recording:n(347),recordingTimestamp:n(203),recordStart:"recordStart",recordEnd:n(254),recordCreateError:"recordCreateError",recordBlob:n(602),recordCancel:n(383),buffer:n(147),videoFrame:"videoFrame",videoSEI:n(137),videoSEISyncPts:n(492),start:n(335),startInner:n(432),metadata:n(656),resize:n(594),volumechange:n(623),volume:n(228),destroy:n(407),beforeDestroy:n(633),streamEnd:n(676),streamRate:n(650),streamAbps:n(668),streamVbps:"streamVbps",streamDts:"streamDts",streamSuccess:n(663),streamMessage:n(221),streamError:n(578),streamStats:n(166),streamEndInner:n(507),mseSourceOpen:"mseSourceOpen",mseSourceClose:n(355),mseSourceended:"mseSourceended",mseSourceStartStreaming:"mseSourceStartStreaming",mseSourceEndStreaming:"mseSourceEndStreaming",mseSourceBufferError:n(418),mseAddSourceBufferError:n(348),mseWorkerAddSourceBufferError:n(230),mseSourceBufferBusy:"mseSourceBufferBusy",mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:n(489),videoTimeUpdate:n(171),videoSyncAudio:n(444),playToRenderTimes:"playToRenderTimes",playbackTime:n(401),playbackTimestamp:n(635),playbackTimeScroll:n(646),playbackPrecision:n(562),playbackShowPrecisionChange:n(525),playbackJustTime:n(289),playbackStats:n(674),playbackSeek:"playbackSeek",playbackPause:n(374),playbackPauseOrResume:n(630),playbackRateChange:"playbackRateChange",playbackPreRateChange:n(559),playbackEndInner:n(596),playbackEnd:n(264),playbackEndedAndReplay:n(349),playbackNextFrame:n(624),playbackNextIFrame:"playbackNextIFrame",playVodStats:n(528),playVodPause:n(439),playVodPauseOrResume:n(201),playVodRateChange:n(266),playVodTime:n(526),playVodBufferedTime:n(669),playVodTimeCache:n(295),playVodSeek:n(238),playVodSeeking:"playVodSeeking",playVodSeekEnd:"playVodSeekEnd",playVodVideoSeekingByMse:"playVodVideoSeekingByMse",playVodVideoSeekedByMse:n(215),playVodCanplay:n(582),playVodWaiting:n(591),playVodEndedAndReplay:n(529),playVodEndedInner:"playVodEndedInner",playVodEnded:n(196),playVodNextFrame:n(424),playVodNextIFrame:"playVodNextIFrame",playVodDuration:"playVodDuration",ptz:n(284),streamQualityChange:n(232),visibilityChange:n(567),netBuf:n(185),close:n(638),networkDelayTimeout:"networkDelayTimeout",togglePerformancePanel:n(600),viewResizeChange:n(631),flvDemuxBufferSizeTooLarge:n(278),talkGetUserMediaSuccess:n(131),talkGetUserMediaFail:n(462),talkGetUserMediaTimeout:n(534),talkStreamStart:n(616),talkStreamOpen:n(326),talkStreamClose:"talkStreamClose",talkStreamError:"talkStreamError",talkStreamInactive:"talkStreamInactive",talkStreamMsg:n(637),webrtcDisconnect:n(146),webrtcFailed:n(539),webrtcClosed:"webrtcClosed",webrtcChecking:n(563),webrtcConnected:"webrtcConnected",webrtcCompleted:n(461),webrtcOnConnectionStateChange:n(504),webrtcOnIceConnectionStateChange:"webrtcOnIceConnectionStateChange",webrtcLowFps:n(556),webrtcIceCandidate:n(395),webrtcDataChannelOpen:n(427),webrtcDataChannelMsg:n(367),crashLog:n(549),focus:n(584),blur:n(519),inView:n(437),visibilityHiddenTimeout:n(124),websocketOpen:n(677),websocketClose:n(555),websocketError:n(605),websocketStringMsg:"websocketStringMsg",aiObjectDetectorInfo:n(189),aiFaceDetectorInfo:n(338),aiOcclusionDetectResult:n(408),aiImageDetectResult:n(666),playFailedAndPaused:n(143),audioResumeState:n(212),webrtcStreamH265:n(447),flvMetaData:"flvMetaData",talkFailedAndStop:n(274),removeLoadingBgImage:"removeLoadingBgImage",memoryLog:"memoryLog",downloadMemoryLog:n(372),pressureObserverCpu:n(523),currentPts:n(575),online:"online",offline:n(611),networkState:n(345),clickInitPlayer:n(207),audioSplitBuffer:n(603),tsPrivateData:n(317),videoRectContentClick:n(235),hls264UseOldDemuxer:n(417),hlsTsVideoTrackPidList:n(574),tsVideoTrackPidList:n(191)};n(440),n(197),n(381),n(409),n(136),n(335),n(568),n(218),n(628),n(613),n(419),n(143),n(678),n(375),n(379),n(323),n(671),n(268),n(254),n(602),n(383),n(150),n(284),n(232),n(621),n(549),n(584),n(519),n(124),n(677),n(555),n(279),n(504),n(395),n(427),n(137),n(492),n(676),n(575),n(437),n(345),n(228),n(207),n(317),n(255),n(235),n(338),n(666),n(299),n(635),n(630),n(525),n(404),n(196),n(201),n(266),n(526),n(669),n(422),n(339),n(191),n(573),n(267),n(534),n(274),n(637),n(409),n(136),n(568),n(218),n(419),n(379),n(323),n(549),n(143),n(212);const _={talkStreamError:w.talkStreamError,talkStreamClose:w[n(350)]};n(322),n(233),n(605),n(140),n(495),n(314),n(565),n(659),n(459),n(488),n(627),n(455),n(262),n(456),n(521),n(418),n(348),n(230),n(670),n(547),n(209),n(159),n(354),n(361),n(620),n(182),n(337),n(500),n(245),n(382),n(202),n(467),n(278),n(320),n(540),n(632),n(682),n(676),n(388),n(613),n(218),n(503),n(357),n(660),n(644),n(548),n(164),n(313),n(139),n(193),n(626),n(482),n(370),n(157),n(158),n(258),n(270);n(233),n(533),n(225),n(409),n(303),n(169),n(554),n(607),n(510),n(607),n(276),n(329),n(149),n(198);const A={h264:7,h265:12,av1:13,mpeg4:99};n(329);const C={PCM:1,AAC:10,ALAW:7,MULAW:8,MP3:2,OPUS:13,G711A:7,G711U:8,G722_1:12};n(508),n(673),n(135),n(311),n(297),n(135);n(634),n(373),n(425),n(501),n(458),n(446),n(180),n(516),n(217),n(183),n(450),n(683),n(653),n(538),n(310),n(472),n(463),n(261),n(287),n(414),n(249),n(494),n(213),n(251),n(394),n(249),n(494),n(187),n(141),n(657),n(290),n(138),n(471),n(331),n(490),n(260),n(622),n(307),n(590),n(288),n(151),n(256),n(341);n(435),n(641),n(612);n(380),n(211),n(431),n(231),n(654),n(397),n(661),n(291),n(155),n(224),n(168),n(543),n(327),n(359),n(595),n(277),n(300),n(247),n(434),n(511),n(623),n(393);const S={h264:n(378),h265:n(585),av1:n(334)};n(398),n(237),n(442),n(265),n(597),n(144),n(283),n(649),n(300),n(407);const E={sequenceHeader:0,nalu:1},T={keyFrame:1,interFrame:2};n(303),n(469),n(272);n(208),n(246),n(225),n(638),n(366);n(302),n(319);function I(){const e=["alaw","image/webp","startInner","音频通道错误","seeking","g711u","remote-candidate","inView","初始化解码worker超时","playVodPause","load","aliyunRtc","Unsupported configuration","Failed to send audio packet for decoding","videoSyncAudio","退出全屏","key","webrtcStreamH265","videoSmooth","receiver",'video/mp4; codecs="av01.0.05M.08"',"defaultStreamQuality","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","请求失败","NV12","mediaSourceH265NotSupport","mediaSourceAudioNoDataTimeout","点播解码器异常","canvas","webcodecsAudioInitTimeout","#FFCC00","webrtcCompleted","talkGetUserMediaFail","five-min","initAudioCodec","videoPayload","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","tallWebsocketClosedByError","multiMouseout","rtp","isTs","fiStop","ten-min","pauseAndNextPlayUseLastFrameShow","电子放大","webrtc-connected","不支持该分辨率的视频","物品识别激活","Momibuca","hls-manifest-loaded","playAudio","playbackForwardMaxRateDecodeIFrame","playVodFlvError","g711a","subtitle-playlist","video decoder initialization failed","initVideoCodec","updateForwardMaxRateDecodeIFrame","webcodecsAudioNoDataTimeout","videoWaiting","zoomNarrow","decoder-pro.js","videoSEISyncPts","wasm解码失败","down","webtransportError","global","bufferByteLength","multiDrop","Wasm","webrtcError","webrtc","webm","fullscreenError","webrtcOnConnectionStateChange","active","isWebrtcForOthers","streamEndInner","ALAW(g711a)","mp3","base64","suspend","warn","mseError","videoRenderSupportScale","self",'video/mp4;codecs="hev1.1.6.L120.90"',"candidate-pair","Media failed to decode","blur","ZLMediaKit","mediaSourceDecoderConfigurationError","audioCode","pressureObserverCpu","memory access out of bounds","playbackShowPrecisionChange","playVodTime","点播FLV文件异常","playVodStats","playVodEndedAndReplay","ttfb","websocketStringMsg","isHls","notConnect","talkGetUserMediaTimeout","peer-connection","drawingRect","debug","one-hour","webrtcFailed","webglContextLostError","Webgl 渲染失败","fullScreenByStart","ended","faceDetectActive","record","0000000000","mediaSourceTsIsMaxDiff","notSupportNewWasm","crashLog","Failed to send video packet for decoding","stream-parsed","遮挡物检查激活","videoStreamStats","full","websocketClose","webrtcLowFps","container","点播MP4文件格式异常","playbackPreRateChange","metadata-parsed","G711 not supported","playbackPrecision","webrtcChecking","2573901EJUbTZ","webcodecsUnsupportedConfigurationError","流异常","visibilityChange","timeout","wcs","simdFFmpeg","dynamicWatermarkConfig","updateConfig","talkStreamError","hlsTsVideoTrackPidList","currentPts","isWebrtcForZLM","sendMessage","streamError","mouseDownAndUp","audioPayload","controlSize","playVodCanplay","tempStream","focus","hevc","created","初始化音频解码器失败","加载超时重播失败","multiMouseover","focusNear","playVodWaiting","mseUpdateVideoTimestamp","websocket","resize","pause","playbackEndInner","HEVC decoding is not supported","multiIndex","decode","togglePerformancePanel","阿里云","recordBlob","audioSplitBuffer","mse","websocketError","182077LBKXCO","download","fetch","track","objectDetectActive","offline","opus","delayTimeout","isDropping","3375228yGWPyn","talkStreamStart","解析视频分辨率失败","tsError","videoDecode","simdH264DecodeVideoWidthIsTooLarge","zooming","apertureNear","volumechange","playbackNextFrame","sendWsMessage","playVodMp4UseSrcVideoError","webcodecsAudioDecodeError","loadingTimeoutRetryEnd","MEDIA_ERR_SRC_NOT_SUPPORTED","playbackPauseOrResume","viewResizeChange","decoderWorkerInitError","beforeDestroy","webgl","playbackTimestamp","MPEG-PS","talkStreamMsg","close","isFlv","6sFJCYy","pcm","flvScriptData","resetAudioDecode","initDecoderWorkerTimeout","videoInfo","playbackTimeScroll","fullscreenEndInner","flvBufferData","loading","streamRate","multiDragenter","video","fiveMin","sourceended","MEDIA_ERR_DECODE","metadata","rightUp","idle","webcodecsDecodeConfigureError","mseWaitVideoCanplayTimeout","endstreaming","closeEnd","streamSuccess","M7S","FLV","aiImageDetectResult","mov","streamAbps","playVodBufferedTime","mediaSourceAppendBufferError","performance","player","MULAW(g711u)","playbackStats","Webrtc","streamEnd","websocketOpen","fullscreen","jbprov","fetchErrorWorker","talk","videoInfoError","oneHour","visibilityHiddenTimeout","webrtc-completed","all","media-source","complete","fullscreen$2","Unsupported audio format","talkGetUserMediaSuccess","load-complete","simd","fetchStream","MP3","kBps","videoSEI","stop","playVodMp4Error","websocketOpenTimeout","leftDown","解码失败","playFailedAndPaused","The user aborted a request","m7s","webrtcDisconnect","buffer","iframeIntervalTs","AV1","recordCreateError","fogOpen","inbound-rtp","播放超时重播失败","WebTransport","waiting","dhav","playVodCalcFpsError","tsPacketSizeError","mediaSourceBufferedIsZeroError","fmp4","mseDecodeError","初始化解码器失败","wasm初始化异常","outOfMemoryWasm","ghostWatermarkConfig","streamStats","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAIAAABKoV4MAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAO0lEQVRYhe3NIQEAMAgAsHNLAPp3JMAFDW4wW4FFVZ0l3X237qHX6/V6vV6v1+v1er1er9frP0RmLvYPXx0DlQ6vy9kAAAAASUVORK5CYII=","canplaythrough","buffering","multiMouseup","videoTimeUpdate","9445GGrSEX","334757QmubEH","DECODER_ERROR_NOT_SUPPORTED","play() failed because the user didn't interact with the document first","certificate","codec","local-candidate","HEVC not supported",'video/mp4; codecs="hvc1.1.6.L120.90"',"none","simdDecodeDelayTimeout",'video/mp4;codecs="hvc1.1.6.L120.90"',"drop","netBuf","播放地址不能为空","leftUp","decoder-pro-audio.js","aiObjectDetectorInfo","webTransport","tsVideoTrackPidList","mp4Vod","playVodMp4NotMoovError","遮挡物检查","人脸识别激活","playVodEnded","timeUpdate","MPEG4","workerEnd","video自动渲染失败","playVodPauseOrResume","widthOrHeightChange","recordingTimestamp","outbound-rtp","decoderWorkerInit","multiDragleave","clickInitPlayer","stream","mediaSourceUseCanvasRenderPlayFailed","isWebrtc","image/jpeg","audioResumeState","left","Audio Decode Failed","playVodVideoSeekedByMse","playVod",'video/mp4;codecs="hev1.3.E.L120.90"',"loadingTimeout","playVodNextIFrame","connecting","streamMessage","playerAudio","isM7sCrypto","progress","open","jessibuca-pro-mp4-recorder-decoder.js","audioAACSequenceHeader","volume","no-audio-track","mseWorkerAddSourceBufferError","sourceclose","streamQualityChange","fetchError","g711","videoRectContentClick","demuxed-track","Cannot call 'decode' on a closed codec","playVodSeek","occlusionDetectActive","multiMousemove","FLV待解封装buffer过大","MediaSource解码使用canvas渲染失败","log","mseHandle","webrtcIceCandidateError","playback","seeked","webrtc-failed","right","TS流包大小异常","right-up","normal","highQuality","recordEnd","drawingRectInfo","wiperOpen","playVodFps","hlsM3u8Empty","sei-in-time","apertureFar","30min","mediaSourceAudioG711NotSupport","3-1","playbackEnd","Decoder failure","playVodRateChange","talkStreamInactive","recordStart","remote-inbound-rtp","hlsM3u8Error","networkDelay","jtt","isWebrtcForSRS","talkFailedAndStop","subtitle-segments","blob","play","flvDemuxBufferSizeTooLarge","networkDelayTimeout","aacSequenceHeader","imageDetectActive","等待音频数据超时","AbortError","ptz","hls","isNakedFlow","10min","cruiseStart","playbackJustTime","rightDown","canplay","heartTimeout","init","wasm","playVodTimeCache","1584BNxsSZ","ALAW","audio packet","playbackSeek","playing","waitingCheckFirstIframeTimeoutAutoWasmAndNoCheck","worklet","empty","playbackNextIFrame","videoCodec","缓冲区已满","focusFar","playbackStreamVideoFps","wcsDecodeError","half-hour","AAC","default","failedToAsynchronouslyPrepareWasm","webcodecsDecodeError","HLS","isFmp4","tsPrivateData","isAliyunRtc","script","audioChannelError","checkFirstIFrame","playFailedError","stats","white","resetDecode","talkStreamOpen","loadeddata","NotAllowedError","H264(AVC)","关闭电子放大","zoomExpand","停止录制","average","av1","start","wifi","hlsError","aiFaceDetectorInfo","playVodSeekEnd","flv","wiperClose","window","20251202","jbprovm","networkState","wasmError","recording","mseAddSourceBufferError","playbackEndedAndReplay","talkStreamClose","sei","object","decoder-pro-audio-player.js","wasmDecodeError","mseSourceClose","网络超时重播失败","aliyunRtcError","sender","loadstart","MEDIA_ERR_ABORTED","wasmUseVideoRenderError","click","flv-script-data","fetchClose","remove-buffer","message","webrtcDataChannelMsg","7923872hgYFuP","videoSequenceHeader","playVodMseDecodeVideoError","fetchSuccess","downloadMemoryLog","webgl2","playbackPause","webFullscreen","硬解码不支持G711a/u音频格式","isMulti","avc","mute","image/png","audioInfo","wasmWidthOrHeightChange","recordCancel","AliyunRtc","simple","destroyEnd","人脸识别","websocket1006Error","物品识别","playbackTF","decoder-pro-hard.js","ws1006","readystatechange","right-down","webrtcIceCandidate","videoNalu","startstreaming","A key frame is required after configure() or flush()","3-4","buffereos","playbackTime","workerFetch","Video Decode Failed","playVodDuration","Dji","FMP4","destroy","aiOcclusionDetectResult","error","multiSelected","tcp","70nNCjgD","七牛云","5min","small","MEDIA_ERR_NETWORK","hls264UseOldDemuxer","mseSourceBufferError","delayTimeoutRetryEnd","3337458JByNqg","initAudio","playVodSeeking","webrtc-closed","playVodNextFrame","offscreen","Error Domain=NSOSStatusErrorDomain","webrtcDataChannelOpen","lowNetwork","首帧解码超时"];return(I=function(){return e})()}n(483),n(411),n(546),n(512),n(302),n(302),n(319),n(505),n(460),n(410),n(589),n(468),n(170),n(240),n(651),n(206),n(498),n(263),n(399),n(557),n(652),n(222),n(512),n(608),n(340),n(353),n(275),n(479),n(236),n(363),n(560),n(530),n(132),n(351),n(259),n(229),n(365),n(400),n(484),n(551),n(658),n(220),n(169),n(128),n(360),n(416),n(655),n(629),n(485),n(174),n(298),n(130),n(175),n(518),n(426),n(550),n(443),n(328),n(524),n(517),n(176),n(177),n(152),n(178),n(204),n(535),n(449),n(436),n(269),n(358),n(208),n(609),n(127),n(392),n(161),n(309),n(626),n(430),n(509),n(612),n(475),n(125),n(248),n(423),n(586),n(649),n(300);const k="object"==typeof window&&window[n(342)]===window?window:typeof self===n(352)&&self[n(515)]===self?self:typeof global===n(352)&&global[n(496)]===global?global:void 0;n(409),n(445),n(332),n(474),n(330),n(387),n(195),n(389),n(477),n(194),n(552);const P={wasm:n(499),simd:"Simd",fSimd:"FSimd"};n(520),n(478),n(413),n(405),n(601),n(336),n(466),n(452);var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=Object.freeze({__proto__:null,commonjsGlobal:$,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,t){return e(t={exports:{}},t.exports),t.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}}),F=R;function R(e,t){var r=B();return(R=function(e,t){return r[e-=177]})(e,t)}function B(){var e=["error","mozRequestFullScreen","webkitRequestFullScreen","documentElement","554860rEGxdN","off","msExitFullscreen","mozFullScreenElement","422493PWaPbh","requestFullscreen","mozFullScreenEnabled","msRequestFullscreen","13590128aBEBst","webkitCurrentFullScreenElement","3083814AYAqJW","227437MKCRhL","defineProperties","exit","exitFullscreen","change","undefined","length","exports","isFullscreen","webkitfullscreenchange","catch","webkitFullscreenEnabled","821464LwdOAp","fullscreenEnabled","fullscreenElement","2300304mDzhSW","webkitfullscreenerror","mozCancelFullScreen","bind","then","object","createCommonjsModule","addEventListener","webkitRequestFullscreen","screenfull","fullscreenchange","2tmNJhQ","mozfullscreenerror","request","fullscreenerror","webkitCancelFullScreen"];return(B=function(){return e})()}function M(e,t){const r=x();return(M=function(e,t){return r[e-=425]})(e,t)}!function(e){for(var t=R,r=e();;)try{if(469777===-parseInt(t(204))/1*(parseInt(t(184))/2)+-parseInt(t(197))/3+-parseInt(t(219))/4+parseInt(t(193))/5+-parseInt(t(203))/6+parseInt(t(216))/7+parseInt(t(201))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(B),D[F(179)](function(e){var t,r,n,a,i,o;t=R,r="undefined"!=typeof window&&typeof window.document!==t(209)?window.document:{},n=t(178)!==t(209)&&e[t(211)],a=function(){for(var e,n=t,a=[[n(198),n(207),n(218),n(217),n(183),"fullscreenerror"],[n(181),"webkitExitFullscreen","webkitFullscreenElement",n(215),n(213),n(220)],[n(191),n(188),n(202),n(188),"webkitfullscreenchange",n(220)],[n(190),n(221),n(196),n(199),"mozfullscreenchange",n(185)],[n(200),n(195),"msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,o=a[n(210)],s={};i<o;i++)if((e=a[i])&&e[1]in r){for(i=0;i<e[n(210)];i++)s[a[0][i]]=e[i];return s}return!1}(),i={change:a[t(183)],error:a[t(187)]},o={request:function(e,t){return new Promise(function(n,i){var o=R,s=function(){var e=R;this[e(194)](e(208),s),n()}[o(222)](this);this.on(o(208),s);var c=(e=e||r[o(192)])[a[o(198)]](t);c instanceof Promise&&c[o(177)](s)[o(214)](i)}.bind(this))},exit:function(){return new Promise(function(e,t){var n=R;if(this.isFullscreen){var i=function(){var t=R;this[t(194)](t(208),i),e()}[n(222)](this);this.on(n(208),i);var o=r[a[n(207)]]();o instanceof Promise&&o[n(177)](i)[n(214)](t)}else e()}[t(222)](this))},toggle:function(e,r){var n=t;return this[n(212)]?this[n(206)]():this[n(186)](e,r)},onchange:function(e){var r=t;this.on(r(208),e)},onerror:function(e){var r=t;this.on(r(189),e)},on:function(e,n){var a=i[e];a&&r[t(180)](a,n,!1)},off:function(e,t){var n=i[e];n&&r.removeEventListener(n,t,!1)},raw:a},a?(Object[t(205)](o,{isFullscreen:{get:function(){return Boolean(r[a.fullscreenElement])}},element:{enumerable:!0,get:function(){return r[a.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(r[a.fullscreenEnabled])}}}),n?e[t(211)]=o:window[t(182)]=o):n?e[t(211)]={isEnabled:!1}:window.screenfull={isEnabled:!1}}).isEnabled;const W=M;!function(e){const t=M,r=e();for(;;)try{if(503705===-parseInt(t(445))/1+-parseInt(t(427))/2+parseInt(t(451))/3+-parseInt(t(436))/4+-parseInt(t(437))/5*(-parseInt(t(454))/6)+parseInt(t(450))/7*(-parseInt(t(449))/8)+parseInt(t(447))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(x);class U{constructor(e){const t=M;this[t(434)]=e,this[t(426)]=0,this[t(435)]=e[t(438)],this[t(440)]=8*e.byteLength,this._current_word=0,this[t(431)]=0}[W(439)](){this[W(434)]=null}[W(441)](){const e=W;let t=this[e(435)]-this._buffer_index;if(t<=0)return void console[e(443)](e(429),this[e(435)],this[e(426)]);let r=Math[e(448)](4,t),n=new Uint8Array(4);n[e(425)](this._buffer[e(430)](this._buffer_index,this[e(426)]+r)),this._current_word=new DataView(n.buffer)[e(444)](0,!1),this[e(426)]+=r,this[e(431)]=8*r}[W(432)](e){const t=W;if(e>32&&console[t(443)]("ExpGolomb: readBits() bits exceeded max 32bits!"),e<=this[t(431)]){let r=this[t(428)]>>>32-e;return this[t(428)]<<=e,this[t(431)]-=e,r}let r=this[t(431)]?this[t(428)]:0;r>>>=32-this[t(431)];let n=e-this[t(431)];this[t(441)]();let a=Math[t(448)](n,this._current_word_bits_left),i=this[t(428)]>>>32-a;return this[t(428)]<<=a,this[t(431)]-=a,r=r<<a|i,r}[W(452)](){return 1===this[W(432)](1)}[W(433)](){return this.readBits(8)}_skipLeadingZero(){const e=W;let t;for(t=0;t<this[e(431)];t++)if(this._current_word&2147483648>>>t)return this[e(428)]<<=t,this._current_word_bits_left-=t,t;return this._fillCurrentWord(),t+this[e(446)]()}[W(442)](){const e=W;let t=this[e(446)]();return this[e(432)](t+1)-1}[W(453)](){let e=this[W(442)]();return 1&e?e+1>>>1:-1*(e>>>1)}}function x(){const e=["readSEG","31782prZxrT","set","_buffer_index","1008622hsmNCG","_current_word","ExpGolomb: _fillCurrentWord() but no bytes available","subarray","_current_word_bits_left","readBits","readByte","_buffer","_total_bytes","3522848WvGxNZ","85BXmvQr","byteLength","destroy","_total_bits","_fillCurrentWord","readUEG","error","getUint32","44645uUJEBe","_skipLeadingZero","10758114OAwPaP","min","7792mMKcQK","1526BpuCGD","2580930UhnopF","readBool"];return(x=function(){return e})()}const V=G;!function(e){const t=G,r=e();for(;;)try{if(588269===-parseInt(t(395))/1+parseInt(t(370))/2*(-parseInt(t(365))/3)+parseInt(t(338))/4+parseInt(t(341))/5*(-parseInt(t(361))/6)+-parseInt(t(385))/7+parseInt(t(345))/8*(-parseInt(t(398))/9)+parseInt(t(379))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(L);function O(e){const t=G;return function(e){const t=G;return e[0]>>4===C[t(343)]}(e)&&e[1]===E[t(350)]}function L(){const e=["bufoff","168XAiVSB","slice","indexOf","StreamMuxConfig Missing","channels","40846GOkgnG","sample_rate","unshift","Invalid sampling index: ","current_syncword_offset_","sampling_index","findNextSyncwordOffset","allStreamsSameTimeFraming zero is Not Supported","subarray","40456840oXQPjK","readNextAACFrame","read_golomb","other_data_present","log","length","4366656AomHVL","push","mp4a.40.2","audioMuxVersionA is Not Supported","hasIncompleteData","data","ext_object_type","Flv: AAC invalid sampling frequency index!","look","data_","115916CRAFSb","readBool","aac","3321SflFlx","readBits","android","chan_config","bufpos","warn","profile: ","destroy","sbr","error","getIncompleteData","channel_config","has_last_incomplete_data","eof_flag_","493088RsnauM","buffer","more than 2 numProgram Not Supported","2915lDUXyo","Could not found ADTS syncword until payload end","AAC","aacEncoderConfigurationRecord","23096yLlZTL","audio_object_type","iserro","channel: ","sampling_freq_index","sequenceHeader","getLATMValue","byteLength","buflen","sampling_frequency","more than 2 numSubFrames Not Supported","mp4a.40.","read","readByte","userAgent","object_type","6504EAXdxv",". Only frameLengthType = 0 Supported","set"];return(L=function(){return e})()}const j=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];function G(e,t){const r=L();return(G=function(e,t){return r[e-=332]})(e,t)}V(357),V(393),V(381);V(376),V(389),V(334);V(376),V(351),V(380);function H(e,t){const r=N();return(H=function(e,t){return r[e-=121]})(e,t)}function N(){const e=["length","byteLength","3163795orkcbb","slice","14951224lmNEkc","subarray","data","sps","setUint32","5019160PJUUmG","2083224WXfHlU","6dLjsxO","Error writing parameter set: buffer overflow","pps","set","toString","3302537OnycLI","shift","854775ogXcBq","Error writing NALU from AVCC: buffer overflow","push","2170856jemEWw","padStart"];return(N=function(){return e})()}!function(e){const t=H,r=e();for(;;)try{if(792650===parseInt(t(128))/1+parseInt(t(131))/2+-parseInt(t(143))/3+parseInt(t(142))/4+parseInt(t(135))/5*(parseInt(t(121))/6)+-parseInt(t(126))/7+-parseInt(t(137))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(N);const z=Y;function q(){return Date[Y(332)]()}!function(e){const t=Y,r=e();for(;;)try{if(163614===parseInt(t(571))/1*(-parseInt(t(534))/2)+-parseInt(t(459))/3+parseInt(t(298))/4*(-parseInt(t(608))/5)+-parseInt(t(436))/6+-parseInt(t(414))/7+parseInt(t(458))/8*(parseInt(t(433))/9)+parseInt(t(374))/10*(parseInt(t(241))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(K),(()=>{const e=Y;try{if(typeof WebAssembly===e(352)&&typeof WebAssembly[e(598)]===e(382)){const t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly[e(301)])return new WebAssembly.Instance(t)instanceof WebAssembly[e(250)]}}catch(e){}})();const J=z(526);z(394),z(366),z(526);const X=J===z(500);z(434);function K(){const e=["fmt ","intel","hev5","isFullscreen","initEvent","element","nvidia","VideoEncoder.isConfigSupported is not a function","getSeconds","-moz-user-select","onload","canvas","291DUvBRS","kSliceRSV_IRAP_VCL23","EB/s","craNut","useMThreading","download","setInt8","supported","data-","ZB/s","kSliceBLA_N_LP","requestVideoFrameCallback","absolute","copyToChannel","pageX","high","height","push","Bytes","illegal icc","byteLength","visibility","hour","copyright","documentElement","style","hev3","instantiate","VideoEncoder.isConfigSupported() result is not supported","xxxx","userAgent","slice","setInt32","substring","prototype","win64","webgl","22380inpQft","join","application/360softmgrplugin","getContext","target","createImageBitmap","application/mozilla-npqihooquicklogin","keyFrame","webgl2","performance","useSIMD","pathname","hev1.1.6.L120.90","2156DKqPBx","isConfigSupported","text","AudioData","atob","green yuv","endsWith","Edg","VideoDecoder","Instance","ySpace","true","getUint8","wow32","mediaDevices","kSliceBLA_W_LP","-ms-user-select","buffer","getMonth","setHours","document","split","audioWorklet","mouseup","reduce","imageSmoothingQuality","origin","getExtension","stringify","restore","application/vnd.chromium.remoting-viewer","application/asx","connect","host","getHours","pointer-events: none !important; display: block !important","localhost","match","setUint32","charCodeAt","MediaStreamTrackGenerator","createObjectURL","setAttribute","-webkit-user-select","MULAW","scrollTop","repeat","webkitFullscreenElement","file","fullscreenElement","save","PressureObserver","fontFamily","xxxxxxxxxxxx4xxx","Worker","protocol","textAlign","112BStLMJ","f32-planar","playbackRate","Module","transferControlToOffscreen","ManagedMediaSource","touchend","fontSize","strokeStyle","noteOn","removeChild","imageSmoothingEnabled","min","start","getDay","result","wheel","toLocaleLowerCase","isArray","chrome","application/vnd.apple.mpegurl","toLowerCase","h265","getPropertyValue","data:","out of memory","keys",";base64","floor","error","charAt","apply","createElement","application/hwepass2001.installepass2001","now","backgroundColor","none","createBuffer","moz-webgl","numberOfFrames","unknown","clientX","setUint16","destination","webkitConnection","mozConnection","-webkit-text-size-adjust","div","amd","[object Exception]","GB/s","left","substr","VideoFrame","object","green","-webkit-touch-callout","Edge","ArkWeb","onerror","version","experimental-webgl","getFullYear","log","image","insertBefore","Firefox","showModalDialog",'"development"',"sps","Reserved SBR extensions is not implemented","kSliceRSV_IRAP_VCL22","location","firefox","setInt16","0 Bytes","43390kqBHff","[object DOMException]","hvc","clientY","Opera","revokeObjectURL","encTypeCode","pageY","function","AAC","edge","borderStyle","mousedown","text/javascript","isTypeSupported","win32","isEnabled","round","nettype/","AudioDecoder",'"2.1.13"',"connection","top","search","script","html","toString","100%","360EE","href","container","status","https:","quality","readAsArrayBuffer","mozGetUserMedia","If you want to help, upload a sample of this file to","width","line","getImageData","2251844iqEQPk","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","useOffscreen","findLast","opacity","not compiled with thread support","touches","dataset","hev","QQBrowser","hev2","block","set","useWCS","readyState","Chrome","click","filter","contain","1412127RSbGuZ",'"2046-2-1"',"subarray","963942HmEpmm","useWasm","avc1.","useMSE","strokeRect","navigator","touchmove","memory","lineWidth","PB/s","MB/s","h264","application/javascript","isView","vps","getElementById","KB/s","call","px Arial","safari","borderWidth","webm","8mYYKgV","78735pYElpL","URL","9999999","video","pps","length","fillText","hev4","hardwareConcurrency","appendChild","message","UNMASKED_RENDERER_WEBGL","hasAudio","hidden","getMinutes","pow","close","setUint8","string","max","QihooBrowser","solid","image/png","WebGLRenderingContext","right","rgba(0,0,0,0)","sequenceHeader","MediaSource","hash","ALAW","attachShadow","iFrame","scrollLeft","data","{y}-{m}-{d} {h}:{i}:{s}","getDate","msFullscreenElement","wcsDecodeAudio","port","random","test",'"delaytime"',"undefined","demuxUseWorker","xSpace","toDataURL","TB/s","vendor","src","dispatchEvent","zIndex","getParameter","fillStyle","type","#000","nLp","ActiveXObject","assign","children","objectFit","0 KB/s","mousemove","100","NetType/other","getMilliseconds","canConstructInDedicatedWorker","fromCharCode",'"production"',"content","createBufferSource","forEach","second","replace","renderer","getUserMedia","1442Mzsyre","failed to asynchronously prepare wasm","font","not compiled with thread support, using thread emulation","drawImage","then","VideoEncoder is not supported","webkitGetUserMedia","bottom","getTime","rect","format","trim","360SE","validate","crossOrigin","apple","shadowRoot","-o-user-select","indexOf","Safari","NaN","color","toFixed","body"];return(K=function(){return e})()}function Y(e,t){const r=K();return(Y=function(e,t){return r[e-=231]})(e,t)}function Z(e){return e&&"function"==typeof e}function Q(e){const t=z;return e[0]>>4===T[t(235)]&&e[1]===E[t(485)]}function ee(e){return!0!==e&&e!==z(252)}function te(){const e=["533872arDFHg","7467720MwQeMb","23435ObKGXx","6219598JKNzQs","1614qFgncq","2330gkZefb","off","slice","forEach","length","89370aPweWM","ctx","8qoTxkT","push","51786ZVpNsy","once","1270401XdsfaT","keys"];return(te=function(){return e})()}const re=ne;function ne(e,t){const r=te();return(ne=function(e,t){return r[e-=355]})(e,t)}!function(e){const t=ne,r=e();for(;;)try{if(802769===parseInt(t(357))/1+parseInt(t(359))/2+parseInt(t(355))/3*(parseInt(t(371))/4)+parseInt(t(361))/5*(-parseInt(t(363))/6)+-parseInt(t(362))/7+-parseInt(t(360))/8+-parseInt(t(369))/9*(-parseInt(t(364))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(te);class ae{on(e,t,r){const n=ne,a=this.e||(this.e={});return(a[e]||(a[e]=[]))[n(372)]({fn:t,ctx:r}),this}[re(356)](e,t,r){const n=this;function a(...i){n[ne(365)](e,a),t.apply(r,i)}return a._=t,this.on(e,a,r)}emit(e,...t){const r=re,n=((this.e||(this.e={}))[e]||[])[r(366)]();for(let e=0;e<n.length;e+=1)n[e].fn.apply(n[e][r(370)],t);return this}[re(365)](e,t){const r=re,n=this.e||(this.e={});if(!e)return Object[r(358)](n)[r(367)](e=>{delete n[e]}),void delete this.e;const a=n[e],i=[];if(a&&t)for(let e=0,n=a[r(368)];e<n;e+=1)a[e].fn!==t&&a[e].fn._!==t&&i.push(a[e]);return i[r(368)]?n[e]=i:delete n[e],this}}const ie=oe;function oe(e,t){const r=se();return(oe=function(e,t){return r[e-=108]})(e,t)}function se(){const e=["state","66hEoZyg","119056lWkDUR","set","secondStartCodeOffset","versionLayer","off","tempBuffer","1551737BSUSfo","TAG_NAME","8477ZRLDLf","emit","data","357591AxPEyX","dispatch","223821JALThU","146592nyKMBO","40JSfSvl","length","findFirstStartCode","fisrtStartCodeOffset","init","Mp3Demux","5yAaYVh","player","destroy","isDestroyed","10dMnBcy","debugLog","parsedOffset","542764AzRRCS","slice"];return(se=function(){return e})()}!function(e){const t=oe,r=e();for(;;)try{if(218302===-parseInt(t(119))/1*(parseInt(t(126))/2)+-parseInt(t(122))/3+parseInt(t(139))/4*(parseInt(t(132))/5)+parseInt(t(110))/6*(parseInt(t(111))/7)+parseInt(t(125))/8+-parseInt(t(124))/9*(-parseInt(t(136))/10)+parseInt(t(117))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(se);const ce={init:0,findFirstStartCode:1,findSecondStartCode:2};class le extends ae{constructor(e){const t=oe;super(),this[t(133)]=e,this[t(118)]=t(131),this.isDestroyed=!1,this.reset(),this[t(116)]=new Uint8Array(0),this[t(133)][t(137)](this[t(118)],t(130))}[ie(134)](){const e=ie;this[e(135)]=!0,this[e(115)](),this.reset(),this[e(133)][e(137)](this.TAG_NAME,"destroy")}reset(){const e=ie;this.stats=ce.init,this[e(116)]=null,this[e(138)]=0,this[e(114)]=0}[ie(123)](e,t){const r=ie;let n=new Uint8Array(this[r(116)][r(127)]+e.length);for(n[r(112)](this[r(116)],0),n[r(112)](e,this.tempBuffer[r(127)]),this[r(116)]=n;!this.isDestroyed;){if(this.state==ce.Init){let e=!1;for(;this[r(116)][r(127)]-this[r(138)]>=2&&!this[r(135)];)if(255==this[r(116)][this[r(138)]]){if(!(!1&this[r(116)][this.parsedOffset+1])){this[r(114)]=this.tempBuffer[this.parsedOffset+1],this[r(109)]=ce[r(128)],this.fisrtStartCodeOffset=this.parsedOffset,this.parsedOffset+=2,e=!0;break}this[r(138)]++}else this[r(138)]++;if(e)continue;break}if(this.state==ce[r(128)]){let e=!1;for(;this[r(116)][r(127)]-this[r(138)]>=2&&!this[r(135)];)if(255==this[r(116)][this[r(138)]]){if(this[r(116)][this[r(138)]+1]==this[r(114)]){this[r(109)]=ce.findSecondStartCode,this[r(113)]=this.parsedOffset,this[r(138)]+=2,e=!0;break}this[r(138)]++}else this[r(138)]++;if(e)continue;break}if(this.state==ce.findSecondStartCode){let e=this.tempBuffer.slice(this[r(129)],this[r(113)]);this[r(120)](r(121),e,t),this.tempBuffer=this[r(116)][r(108)](this[r(113)]),this[r(129)]=0,this[r(138)]=2,this[r(109)]=ce[r(128)]}}}}const ue=de;function de(e,t){const r=pe();return(de=function(e,t){return r[e-=138]})(e,t)}!function(e){const t=de,r=e();for(;;)try{if(194775===parseInt(t(155))/1*(parseInt(t(172))/2)+-parseInt(t(140))/3+-parseInt(t(166))/4+parseInt(t(163))/5*(-parseInt(t(178))/6)+parseInt(t(138))/7+parseInt(t(153))/8*(-parseInt(t(164))/9)+-parseInt(t(174))/10*(-parseInt(t(173))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(pe);class fe{static _ebsp2rbsp(e){let t=e,r=t[de(141)],n=new Uint8Array(r),a=0;for(let e=0;e<r;e++)e>=2&&3===t[e]&&0===t[e-1]&&0===t[e-2]||(n[a]=t[e],a++);return new Uint8Array(n.buffer,0,a)}static[ue(162)](e){const t=ue;let r=fe[t(152)](e),n=new U(r);n[t(171)]();let a=n[t(171)]();n.readByte();let i=n[t(171)]();n[t(147)]();let o=fe[t(139)](a),s=fe[t(167)](i),c=1,l=420,u=[0,420,422,444],d=8;if((100===a||110===a||122===a||244===a||44===a||83===a||86===a||118===a||128===a||138===a||144===a)&&(c=n[t(147)](),3===c&&n[t(150)](1),c<=3&&(l=u[c]),d=n.readUEG()+8,n[t(147)](),n[t(150)](1),n[t(148)]())){let e=3!==c?8:12;for(let r=0;r<e;r++)n[t(148)]()&&(r<6?fe[t(170)](n,16):fe[t(170)](n,64))}n[t(147)]();let f=n[t(147)]();if(0===f)n[t(147)]();else if(1===f){n[t(150)](1),n[t(144)](),n.readSEG();let e=n[t(147)]();for(let r=0;r<e;r++)n[t(144)]()}let p=n[t(147)]();n.readBits(1);let h=n.readUEG(),m=n[t(147)](),g=n[t(150)](1);0===g&&n.readBits(1),n[t(150)](1);let y=0,v=0,b=0,w=0;n[t(148)]()&&(y=n[t(147)](),v=n[t(147)](),b=n[t(147)](),w=n.readUEG());let _=1,A=1,C=0,S=!0,E=0,T=0;if(n[t(148)]()){if(n[t(148)]()){let e=n[t(171)]();e>0&&e<16?(_=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],A=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(_=n[t(171)]()<<8|n[t(171)](),A=n[t(171)]()<<8|n[t(171)]())}if(n.readBool()&&n[t(148)](),n[t(148)]()&&(n[t(150)](4),n.readBool()&&n[t(150)](24)),n[t(148)]()&&(n[t(147)](),n[t(147)]()),n[t(148)]()){let e=n[t(150)](32),r=n[t(150)](32);S=n.readBool(),E=r,T=2*e,C=E/T}}let I=1;(1!==_||1!==A)&&(I=_/A);let k=0,P=0;if(0===c)k=1,P=2-g;else{k=3===c?1:2,P=(1===c?2:1)*(2-g)}let $=16*(h+1),D=16*(m+1)*(2-g);$-=(y+v)*k,D-=(b+w)*P;let F=Math[t(169)]($*I);return n[t(176)](),n=null,{profile_string:o,level_string:s,bit_depth:d,ref_frames:p,chroma_format:l,chroma_format_string:fe[t(165)](l),frame_rate:{fixed:S,fps:C,fps_den:T,fps_num:E},sar_ratio:{width:_,height:A},codec_size:{width:$,height:D},present_size:{width:F,height:D}}}static[ue(159)](e){const t=ue;let r=e[t(175)](1,4),n=t(142);for(let e=0;e<3;e++){let a=r[e][t(149)](16);a[t(157)]<2&&(a="0"+a),n+=a}let a=fe._ebsp2rbsp(e),i=new U(a);i[t(171)]();let o=i[t(171)]();i.readByte();let s=i.readByte();i.readUEG();let c=fe[t(139)](o),l=fe.getLevelString(s),u=1,d=420,f=[0,420,422,444],p=8,h=8;if((100===o||110===o||122===o||244===o||44===o||83===o||86===o||118===o||128===o||138===o||144===o)&&(u=i[t(147)](),3===u&&i.readBits(1),u<=3&&(d=f[u]),p=i[t(147)]()+8,h=i.readUEG()+8,i[t(150)](1),i[t(148)]())){let e=3!==u?8:12;for(let r=0;r<e;r++)i[t(148)]()&&(r<6?fe._skipScalingList(i,16):fe[t(170)](i,64))}i[t(147)]();let m=i[t(147)]();if(0===m)i[t(147)]();else if(1===m){i[t(150)](1),i[t(144)](),i[t(144)]();let e=i.readUEG();for(let r=0;r<e;r++)i[t(144)]()}let g=i.readUEG();i[t(150)](1);let y=i[t(147)](),v=i.readUEG(),b=i[t(150)](1);0===b&&i[t(150)](1),i[t(150)](1);let w=0,_=0,A=0,C=0;i.readBool()&&(w=i[t(147)](),_=i[t(147)](),A=i[t(147)](),C=i[t(147)]());let S=1,E=1,T=0,I=!0,k=0,P=0;if(i.readBool()){if(i.readBool()){let e=i[t(171)]();e>0&&e<16?(S=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],E=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(S=i[t(171)]()<<8|i.readByte(),E=i[t(171)]()<<8|i[t(171)]())}if(i[t(148)]()&&i.readBool(),i[t(148)]()&&(i.readBits(4),i.readBool()&&i[t(150)](24)),i[t(148)]()&&(i[t(147)](),i[t(147)]()),i[t(148)]()){let e=i[t(150)](32),r=i[t(150)](32);I=i[t(148)](),k=r,P=2*e,T=k/P}}let $=1;(1!==S||1!==E)&&($=S/E);let D=0,F=0;if(0===u)D=1,F=2-b;else{D=3===u?1:2,F=(1===u?2:1)*(2-b)}let R=16*(y+1),B=16*(v+1)*(2-b);R-=(w+_)*D,B-=(A+C)*F;let M=Math.ceil(R*$);return i.destroy(),i=null,{codec_mimetype:n,profile_idc:o,level_idc:s,profile_string:c,level_string:l,chroma_format_idc:u,bit_depth:p,bit_depth_luma:p,bit_depth_chroma:h,ref_frames:g,chroma_format:d,chroma_format_string:fe[t(165)](d),frame_rate:{fixed:I,fps:T,fps_den:P,fps_num:k},sar_ratio:{width:S,height:E},codec_size:{width:R,height:B},present_size:{width:M,height:B}}}static[ue(170)](e,t){const r=ue;let n=8,a=8,i=0;for(let o=0;o<t;o++)0!==a&&(i=e[r(144)](),a=(n+i+256)%256),n=0===a?n:a}static[ue(139)](e){const t=ue;switch(e){case 66:return t(160);case 77:return t(151);case 88:return"Extended";case 100:return t(146);case 110:return t(143);case 122:return t(156);case 244:return t(177);default:return t(145)}}static[ue(167)](e){return(e/10)[ue(168)](1)}static[ue(165)](e){const t=ue;switch(e){case 420:return t(161);case 422:return t(158);case 444:return t(154);default:return"Unknown"}}}function pe(){const e=["readBool","toString","readBits","Main","_ebsp2rbsp","17680mNWgTO","4:4:4","28485hcnank","High422","length","4:2:2","parseSPS$2","Baseline","4:2:0","parseSPS","93425jZGKAJ","270yteerT","getChromaFormatString","870804HfRkTn","getLevelString","toFixed","ceil","_skipScalingList","readByte","14CkVBlz","897006FXgXUh","20ZCDpUt","subarray","destroy","High444","30pBpeyg","2492469LAZfAI","getProfileString","439059gEhOpj","byteLength","avc1.","High10","readSEG","Unknown","High","readUEG"];return(pe=function(){return e})()}function he(e,t){const r=me();return(he=function(e,t){return r[e-=321]})(e,t)}function me(){const e=["read","buflen","10002ekWPEa","4992152ySlXND","8JEXhwp","3316mYXeXJ","409LvUTTm","4666904tGrsrI","iserro","2852171TGXxpj","473430SEeBjs","look","buffer","read_golomb","905dYJcXq","70344FrPBmf","bufpos","bufoff","length","710xOdggZ","36UOGNUu"];return(me=function(){return e})()}const ge=he;!function(e){const t=he,r=e();for(;;)try{if(569875===-parseInt(t(326))/1*(parseInt(t(325))/2)+parseInt(t(330))/3*(parseInt(t(324))/4)+-parseInt(t(334))/5*(-parseInt(t(322))/6)+parseInt(t(329))/7+-parseInt(t(327))/8+-parseInt(t(335))/9*(parseInt(t(339))/10)+-parseInt(t(323))/11*(-parseInt(t(340))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(me);ge(341),ge(331),ge(333);const ye=ve;function ve(e,t){const r=be();return(ve=function(e,t){return r[e-=332]})(e,t)}function be(){const e=["4mkwUWg","4949144qfjLlA","min","_bitsAvailable","518003BDeCGC","skipLZ","readBits","skipScalingList","152537HgqIEZ","275zZDeBe","_bytesAvailable","_loadWord","readEG","readUEG","_word","getUint32","140850sbxtJS","_data","84xQiQWk","readUByte","skipUEG","1186242Ciabdg","floor","2024469bSFxcH","subarray","2vOCHst","byteLength","1849340DXaWvv","skipBits"];return(be=function(){return e})()}!function(e){const t=ve,r=e();for(;;)try{if(347086===-parseInt(t(354))/1*(parseInt(t(346))/2)+-parseInt(t(342))/3+parseInt(t(350))/4*(parseInt(t(348))/5)+-parseInt(t(339))/6*(parseInt(t(358))/7)+parseInt(t(351))/8+parseInt(t(344))/9+-parseInt(t(337))/10*(-parseInt(t(359))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(be);ye(332),ye(356),ye(355),ye(341),ye(333),ye(340),ye(357);const we=Ae;function _e(e,t={}){const r=Ae,n={};let a=function(){const e=Ae;let t=new ArrayBuffer(2);return new DataView(t)[e(350)](0,256,!0),256===new Int16Array(t)[0]}();const i=new DataView(e[r(316)]);let o=i[r(342)](0),s=i[r(342)](1);if(i[r(342)](2),i.getUint8(3),1!==o){if(!t[r(311)])return console[r(312)](r(369)+o+r(359)),{};{console[r(332)]("JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] invalid version "+o+r(392));let e=252&i.getUint8(0)|1;i[r(309)](0,e)}}if(0===s){if(!t[r(338)])return console.error(r(314)),{};console[r(332)](r(371)),i.setUint8(1,66)}const c=1+(3&i[r(342)](4));if(3!==c&&4!==c)return{};let l=31&i.getUint8(5);if(0===l)return{};let u=6;for(let t=0;t<l;t++){let o=i.getUint16(u,!a);if(u+=2,0===o)continue;let s=new Uint8Array(e[r(316)],u,o);u+=o;let c=fe[r(394)](s);if(0!==t)continue;n[r(367)]=s,n[r(301)]=1e3,n.codecWidth=c.codec_size[r(308)],n[r(333)]=c[r(397)].height,n[r(363)]=c[r(361)].width,n.presentHeight=c[r(361)][r(351)],n[r(300)]=c[r(358)],n[r(368)]=c.level_string,n[r(315)]=c[r(395)],n[r(304)]=c[r(328)],n[r(349)]=c[r(321)],n[r(357)]=c[r(340)],(!1===c[r(340)][r(384)]||0===c[r(340)].fps_num||0===c.frame_rate.fps_den)&&(n.frameRate={fixed:!0,fps:25,fps_num:25e3,fps_den:1e3});let l=n[r(357)].fps_den,d=n[r(357)][r(322)];n.refSampleDuration=n.timescale*(l/d);let f=s.subarray(1,4),p=r(344);for(let e=0;e<3;e++){let t=f[e][r(329)](16);t[r(325)]<2&&(t="0"+t),p+=t}n[r(396)]=p}let d=i[r(342)](u);if(0===d)return{};u++;for(let t=0;t<d;t++){let t=i[r(302)](u,!a);if(u+=2,0===t)continue;let o=new Uint8Array(e[r(316)],u,t);u+=t,n[r(319)]=o}if(n[r(324)]=S[r(339)],n[r(367)]){const e=n[r(367)][r(303)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),a=new Uint8Array(e+4);a[r(307)](t,0),a.set(n[r(367)],4),n[r(367)]=a}if(n[r(319)]){const e=n[r(319)][r(303)],t=new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e]),a=new Uint8Array(e+4);a[r(307)](t,0),a[r(307)](n[r(319)],4),n[r(319)]=a}return n}function Ae(e,t){const r=Ce();return(Ae=function(e,t){return r[e-=300]})(e,t)}function Ce(){const e=["codec_size","kSliceNonIDR","profile","timescale","getUint16","byteLength","chromaFormat","readUE","10087600qltBCr","set","width","setUint8","avc_ref_frames","correctionConfigurationVersion","error","165hInAtf","JbPro[xxx][❌❌❌][parseAVCDecoderConfigurationRecord] invalid AVC profile (0) detected, and return","bitDepth","buffer","207516vBCtJG","Error parsing slice header:","pps","Invalid AVCDecoderConfigurationRecord: No PPS'","sar_ratio","fps_num","Invalid AVCDecoderConfigurationRecord, lack of data!","videoType","length","Invalid AVCDecoderConfigurationRecord: No SPS","Invalid AVCDecoderConfigurationRecord version !== 1 || avcProfile === 0","chroma_format","toString","478sQJGDi","bit","log","codecHeight","bit_depth_chroma","pos","read_golomb","parseSPS$2","correctionConfigurationProfileIndication","h264","frame_rate","nalu","getUint8","ceil","avc1.","7324650miBSKK","eofFlag","2548470Bvuvsw","codecWidth","sarRatio","setInt16","height","6jxYfkY","fps_den","readUByte","197515vhbwIs","compat","frameRate","profile_string",", valid version is 1 and return","type","present_size","skipBits","presentWidth","readUEG","shift","skipScalingList","sps","level","JbPro[xxx][❌❌❌][parseAVCDecoderConfigurationRecord] invalid version ","read","JbPro[xxx][✅✅✅][parseAVCDecoderConfigurationRecord] AVC profile (0) detected, correct to Baseline Profile (66)","nb_sps","push","Strange AVCDecoderConfigurationRecord: PPS Count = ","refSampleDuration","readBits","readNextNaluPayload","Could not find H264 startcode until payload end!","chroma_format_idc","avcc","4916219kBFtns","findNextStartCodeOffset","data","fixed","3712HWBKeq","kSliceSEI","currentStartcodeOffset","skipUEG","readBit","57poDymJ","readBool",", correct to 1","subarray","parseSPS","bit_depth","codec"];return(Ce=function(){return e})()}!function(e){const t=Ae,r=e();for(;;)try{if(760916===parseInt(t(330))/1*(-parseInt(t(385))/2)+-parseInt(t(390))/3*(parseInt(t(317))/4)+-parseInt(t(355))/5+parseInt(t(352))/6*(-parseInt(t(381))/7)+-parseInt(t(306))/8+parseInt(t(345))/9+parseInt(t(347))/10*(parseInt(t(313))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ce);we(376),we(305);we(382),we(377);function Se(){const e=["585942EqIKIX","132656nYXyiC","length","m_byte","m_bits","147370OLREQi","2814572dhqdeB","m_len","927cGSIYW","GetBYTE","697799gmQAzK","GetSE","16576aUXcgf","m_data","3390udnVFg","GetWord","m_idx","GetUE","GetBit","72xGmXKf","m_zeros","1806xcHpAm"];return(Se=function(){return e})()}function Ee(e,t){const r=Se();return(Ee=function(e,t){return r[e-=443]})(e,t)}const Te=Ee;!function(e){const t=Ee,r=e();for(;;)try{if(401769===parseInt(t(448))/1+parseInt(t(461))/2+parseInt(t(460))/3+-parseInt(t(444))/4+-parseInt(t(443))/5*(parseInt(t(457))/6)+parseInt(t(459))/7*(parseInt(t(450))/8)+parseInt(t(446))/9*(-parseInt(t(452))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Se);Te(447),Te(456),Te(453),Te(455),Te(449);function Ie(){const e=["byteLength","402384OrOSkC","10004778djsqCb","450504bldmgn","10VcWvVg","1065dZUnEd","GetUE","3024cpEXrz","469652BOdGvl","buffer","SPSParser sps_seq_parameter_set_id > 15","SPSParser sps_max_sub_layers_minus1 > 6","GetWord","29379WczGcI","29287621jTyYVc","5762GnlhrJ","warn","SPSParser chroma_format_idc > 3","20kRRzwV","_ebsp2rbsp"];return(Ie=function(){return e})()}function ke(e,t){const r=Ie();return(ke=function(e,t){return r[e-=104]})(e,t)}function Pe(){const e=["readBits","9622140WdpfGj","push","byteLength","1034436emPqKj","20TYexAV","4715755edEWKM","min","hvc1.","toFixed","110661nfpIcD","readSEG","4:4:4","readByte","destroy","14rvSfVJ","1946168tyhbIH","4:2:2",".B0","690lmXWUj",".1.L","buffer","4:2:0","readBool","5RpmEsW","36azkeMX","readUEG","325536QKviRd","61971TymOoX"];return(Pe=function(){return e})()}function $e(e,t){const r=Pe();return($e=function(e,t){return r[e-=222]})(e,t)}!function(e){const t=ke,r=e();for(;;)try{if(939242===-parseInt(t(109))/1+parseInt(t(121))/2*(parseInt(t(111))/3)+parseInt(t(114))/4*(parseInt(t(104))/5)+-parseInt(t(107))/6+-parseInt(t(119))/7*(parseInt(t(113))/8)+-parseInt(t(108))/9+-parseInt(t(110))/10*(-parseInt(t(120))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ie),function(e){const t=$e,r=e();for(;;)try{if(919401===-parseInt(t(235))/1+-parseInt(t(246))/2*(-parseInt(t(241))/3)+-parseInt(t(229))/4*(-parseInt(t(226))/5)+parseInt(t(250))/6*(-parseInt(t(230))/7)+-parseInt(t(247))/8*(-parseInt(t(227))/9)+-parseInt(t(236))/10*(-parseInt(t(237))/11)+parseInt(t(232))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pe);const De=Re;function Fe(){const e=["4:2:0","toFixed","parseSPS","getChromaFormatString","hvc1.","_ebsp2rbsp","1941270CTaxkG",".1.L","Main","readUEG","4:2:2","byteLength","getProfileString","readByte","parsePPS","MainSP","push","readBits","3669992olJKMw","Main10","min","6251JyAIfj","4:4:4",".B0","70297qGuUDH","Rext","destroy","80ZHPSEg","9FgszTv","4695wxJLvK","2262XGacyG","readSEG","readBool","parseVPS","Unknown","1876316LPbAKy","1351933GfAoqI","buffer","90KLKSIY","SCC","4:0:0"];return(Fe=function(){return e})()}function Re(e,t){const r=Fe();return(Re=function(e,t){return r[e-=293]})(e,t)}!function(e){const t=Re,r=e();for(;;)try{if(258645===-parseInt(t(319))/1+parseInt(t(322))/2*(-parseInt(t(324))/3)+parseInt(t(330))/4+-parseInt(t(301))/5+parseInt(t(325))/6*(-parseInt(t(316))/7)+-parseInt(t(313))/8*(parseInt(t(323))/9)+parseInt(t(333))/10*(parseInt(t(331))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Fe);class Be{static[De(300)](e){const t=De;let r=e,n=r[t(306)],a=new Uint8Array(n),i=0;for(let e=0;e<n;e++)e>=2&&3===r[e]&&0===r[e-1]&&0===r[e-2]||(a[i]=r[e],i++);return new Uint8Array(a[t(332)],0,i)}static[De(328)](e){const t=De;let r=Be[t(300)](e),n=new U(r);return n.readByte(),n[t(308)](),n[t(312)](4),n[t(312)](2),n[t(312)](6),{num_temporal_layers:n[t(312)](3)+1,temporal_id_nested:n[t(327)]()}}static[De(297)](e){const t=De;let r=Be[t(300)](e),n=new U(r);n[t(308)](),n[t(308)]();let a=0,i=0,o=0,s=0;n[t(312)](4);let c=n[t(312)](3);n[t(327)]();let l=n[t(312)](2),u=n[t(327)](),d=n[t(312)](5),f=n[t(308)](),p=n[t(308)](),h=n[t(308)](),m=n[t(308)](),g=n[t(308)](),y=n[t(308)](),v=n[t(308)](),b=n[t(308)](),w=n.readByte(),_=n[t(308)](),A=n[t(308)](),C=[],S=[];for(let e=0;e<c;e++)C[t(311)](n.readBool()),S[t(311)](n[t(327)]());if(c>0)for(let e=c;e<8;e++)n[t(312)](2);for(let e=0;e<c;e++)C[e]&&(n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n[t(308)](),n.readByte(),n[t(308)]()),S[e]&&n[t(308)]();n[t(304)]();let E=n[t(304)]();3==E&&n[t(312)](1);let T=n[t(304)](),I=n[t(304)]();n[t(327)]()&&(a+=n[t(304)](),i+=n[t(304)](),o+=n[t(304)](),s+=n[t(304)]());let k=n.readUEG(),P=n[t(304)](),$=n[t(304)]();for(let e=n.readBool()?0:c;e<=c;e++)n[t(304)](),n.readUEG(),n[t(304)]();if(n[t(304)](),n.readUEG(),n[t(304)](),n[t(304)](),n[t(304)](),n[t(304)](),n[t(327)]()){if(n.readBool())for(let e=0;e<4;e++)for(let r=0;r<(3===e?2:6);r++){if(n[t(327)]()){let r=Math[t(315)](64,1<<4+(e<<1));e>1&&n.readSEG();for(let e=0;e<r;e++)n[t(326)]()}else n[t(304)]()}}n[t(327)](),n[t(327)](),n[t(327)]()&&(n[t(308)](),n[t(304)](),n.readUEG(),n[t(327)]());let D=n[t(304)](),F=0;for(let e=0;e<D;e++){let r=!1;if(0!==e&&(r=n[t(327)]()),r){e===D&&n[t(304)](),n[t(327)](),n[t(304)]();let r=0;for(let e=0;e<=F;e++){let e=n[t(327)](),a=!1;!e&&(a=n[t(327)]()),(e||a)&&r++}F=r}else{let e=n[t(304)](),r=n[t(304)]();F=e+r;for(let r=0;r<e;r++)n[t(304)](),n.readBool();for(let e=0;e<r;e++)n[t(304)](),n[t(327)]()}}if(n[t(327)]()){let e=n[t(304)]();for(let r=0;r<e;r++){for(let e=0;e<$+4;e++)n[t(312)](1);n.readBits(1)}}let R=!1,B=0,M=1,W=1,x=!1,V=1,O=1;if(n[t(327)](),n.readBool(),n[t(327)]()){if(n[t(327)]()){let e=n.readByte();e>0&&e<=16?(M=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],W=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(M=n[t(312)](16),W=n[t(312)](16))}if(n[t(327)]()&&n.readBool(),n[t(327)]()){n[t(312)](3),n[t(327)](),n[t(327)]()&&(n[t(308)](),n.readByte(),n[t(308)]())}if(n.readBool()&&(n[t(304)](),n[t(304)]()),n[t(327)](),n.readBool(),n[t(327)](),R=n.readBool(),R&&(n[t(304)](),n[t(304)](),n.readUEG(),n[t(304)]()),n[t(327)]()){if(V=n.readBits(32),O=n[t(312)](32),n.readBool()&&n[t(304)](),n.readBool()){let e=!1,r=!1,a=!1;e=n[t(327)](),r=n.readBool(),(e||r)&&(a=n.readBool(),a&&(n[t(308)](),n[t(312)](5),n[t(327)](),n[t(312)](5)),n[t(312)](4),n[t(312)](4),a&&n.readBits(4),n[t(312)](5),n[t(312)](5),n[t(312)](5));for(let i=0;i<=c;i++){let i=n[t(327)]();x=i;let o=!0,s=1;!i&&(o=n[t(327)]());let c=!1;if(o?n[t(304)]():c=n[t(327)](),!c&&(s=n[t(304)]()+1),e){for(let e=0;e<s;e++)n[t(304)](),n.readUEG(),a&&(n[t(304)](),n[t(304)]());n.readBool()}if(r){for(let e=0;e<s;e++)n[t(304)](),n.readUEG(),a&&(n.readUEG(),n.readUEG());n[t(327)]()}}}}n.readBool()&&(n[t(327)](),n[t(327)](),n[t(327)](),B=n[t(304)](),n[t(304)](),n[t(304)](),n.readUEG(),n.readUEG())}n[t(327)]();let L=t(299)+d+t(302)+A+t(318),j=T-(a+i)*(1===E||2===E?2:1),G=I-(o+s)*(1===E?2:1),H=1;return 1!==M&&1!==W&&(H=M/W),n[t(321)](),n=null,{codec_mimetype:L,profile_string:Be[t(307)](d),level_string:Be.getLevelString(A),profile_idc:d,bit_depth:k+8,ref_frames:1,chroma_format:E,chroma_format_string:Be[t(298)](E),general_level_idc:A,general_profile_space:l,general_tier_flag:u,general_profile_idc:d,general_profile_compatibility_flags_1:f,general_profile_compatibility_flags_2:p,general_profile_compatibility_flags_3:h,general_profile_compatibility_flags_4:m,general_constraint_indicator_flags_1:g,general_constraint_indicator_flags_2:y,general_constraint_indicator_flags_3:v,general_constraint_indicator_flags_4:b,general_constraint_indicator_flags_5:w,general_constraint_indicator_flags_6:_,min_spatial_segmentation_idc:B,constant_frame_rate:0,chroma_format_idc:E,bit_depth_luma_minus8:k,bit_depth_chroma_minus8:P,frame_rate:{fixed:x,fps:O/V,fps_den:V,fps_num:O},sar_ratio:{width:M,height:W},codec_size:{width:j,height:G},present_size:{width:j*H,height:G}}}static[De(309)](e){const t=De;let r=Be._ebsp2rbsp(e),n=new U(r);n[t(308)](),n[t(308)](),n[t(304)](),n[t(304)](),n[t(327)](),n[t(327)](),n[t(312)](3),n[t(327)](),n[t(327)](),n[t(304)](),n[t(304)](),n[t(326)](),n[t(327)](),n[t(327)](),n[t(327)]()&&n[t(304)](),n[t(326)](),n[t(326)](),n.readBool(),n.readBool(),n[t(327)](),n[t(327)]();let a=n[t(327)](),i=n[t(327)](),o=1;return i&&a?o=0:i?o=3:a&&(o=2),{parallelismType:o}}static[De(298)](e){const t=De;switch(e){case 0:return t(294);case 1:return t(295);case 2:return t(305);case 3:return t(317);default:return t(329)}}static[De(307)](e){const t=De;switch(e){case 1:return t(303);case 2:return t(314);case 3:return t(310);case 4:return t(320);case 9:return t(293);default:return"Unknown"}}static getLevelString(e){return(e/30)[De(296)](1)}}function Me(){const e=["sub_layer_frame_only_constraint_flag","sub_layer_interlaced_source_flag","conformance_window_flag","1243132pBjDCZ","codecHeight","set","conf_win_left_offset","frame_rate","chroma_format_idc","correctionConfigurationVersion","general_profile_compatibility_flags_3","avgFrameRate","sub_layer_tier_flag","6232kDhqCR","parseSPS","frameRate","sei","setUint32","11872080uGpbNJ","numTemporalLayers","warn","generalTierFlag","chromaFormatIdc","tier_flag","conf_win_right_offset","getUint8","eofFlag","log","getUint16","generalProfileSpace","min_spatial_segmentation_idc","general_level_idc"," < 22","presentWidth","subarray",", valid hevc profile is Main Profile (1), Main 10 Profile (2),Main Still Picture Profile (3)","lengthSizeMinusOne","general_progressive_source_flag","sps","bit_depth",", valid version is 1 or 0","general_frame_only_constraint_flag","h265","assign","temporalIdNested","general_profile_idc","sub_layer_level_present_flag","setUint8","buffer","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] Invalid, lack of data! ","bitDepthChromaMinus8","present_size","vps","level","general_constraint_indicator_flags","byteLength","sar_ratio","fixed","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid version ","10skHEXa","fps_num","from","fps_den","general_profile_space","sub_layer_non_packed_constraint_flag",", correct to 1","sub_layer_profile_idc","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] invalid version ","look","conf_win_top_offset","sub_layer_profile_present_flag","general_profile_compatibility_flags_2","level_idc","JbPro[xxx][✅✅✅][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","general_tier_flag","pic_width_in_luma_samples","readBits","codec_size","conf_win_bottom_offset","parseHEVCDecoderVPSAndSPSAndPPS and vpsTag is ","height","7715172YzOqLx","separate_colour_plane_flag","55mYGgJy","codec","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord], invalid Strange NaluLengthSizeMinusOne: ","chromaFormat","sps_max_sub_layers_minus1","num_temporal_layers","generalProfileIdc","7511PAotVv"," and naluLengthSize is ","general_constraint_indicator_flags_4","presentHeight","profile_space","refSampleDuration","configurationVersion","level_string","read","profile","general_constraint_indicator_flags_5","general_constraint_indicator_flags_6","general_constraint_indicator_flags_1",", correct to Main Profile (1)","codec_mimetype","sub_layer_progressive_source_flag","slice","bit_depth_luma_minus8","sps_temporal_id_nesting_flag","pic_height_in_luma_samples","sarRatio","2376vdBSCZ","setInt16","parseHEVCDecoderConfigurationRecord$3","general_constraint_indicator_flags_3","arrayBuffer.length ","pps","type","findNextStartCodeOffset","length","generalLevelIdc","1139030uCABzj","psps","max","parallelismType","error","JbPro[xxx][❌❌❌][parseHEVCDecoderConfigurationRecord] invalid HEVC profile ","width","profile_string","bitDepth","5IHQqYe","readUByte","timescale","read_golomb","push","temporal_id_nested","general_constraint_indicator_flags_2","sub_layer_level_idc","bitDepthLumaMinus8","constant_frame_rate","profile_tier_level","general_profile_compatibility_flags","codecWidth","readUEG","correctionConfigurationProfileIndication","sps_video_parameter_set_id","206742ztObsV","chroma_format","currentStartcodeOffset","sub_layer_profile_space","general_profile_compatibility_flags_1","data","hev1.1.6.L93.B0"];return(Me=function(){return e})()}function We(e,t){const r=Me();return(We=function(e,t){return r[e-=118]})(e,t)}!function(e){const t=We,r=e();for(;;)try{if(667427===parseInt(t(187))/1*(-parseInt(t(239))/2)+parseInt(t(121))/3+parseInt(t(131))/4*(parseInt(t(258))/5)+-parseInt(t(209))/6+parseInt(t(218))/7*(parseInt(t(141))/8)+parseInt(t(146))/9+parseInt(t(249))/10*(-parseInt(t(211))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Me);const Ue=xe;function xe(e,t){const r=Ve();return(xe=function(e,t){return r[e-=372]})(e,t)}function Ve(){const e=["audioDecoder","setCodec","decodeVideo: simd decode delay timeout, and return","worker","h265","decodeAudio, decoder is destroyed and return",", height is ",", new height is ","videoHeight",", old height is ","toFixed","HEAPF32","HEAPU8","debugError"," ","bound","AAC"," and isIFrame is ","decodeVideo and payload is too small , payload length is ","decodeVideo: hasInitVideoCodec is false, codecId is ","audioOriginalSampleRate","prevDecodeVideoFrameLocalTimestamp","isPlayer","MULAW","emit","clear","workerEnd","isDestroyed"," is not H264 or H265","videoInfo","delete"," and maxDiff is ","_handleModuleAudioError","yuvData, decoder is destroyed and return","firstDecodeVideoFrameTimestamp","audioBufferSize","setCodecAudio: is aac and channelCount ","setCodecAudio: hasInitAudioCodec is false, codecId is ","mp3Demuxer","_opt","tempAudioBuffer","iframeIntervalTimestamp","render","isVideoFirstIFrame","sampleRate","init","isSimdDecodeDelayTimeout","isUseSIMDFfmpeg","audioTotalMB","decode","debugLog","1484530rlnooG","off","915024qvDgEI","mtStreamStats","1629708bEbuEx","bind","audioDepth","pcmData, decoder is destroyed and return","validatedFailed, please contact the author to get the correct license","ModuleVideo"," so not support, set has audio false and return","9CwTILY","calcWasmMemoryUsed","_isDestroyed"," more than ","audioInfo","length","_reset","useSIMD","4YCIZbA","490764NwuCLN"," > ","prevDecodedVideoFrameLocalTimestamp","clearBuffer","_updateStreamRateAndStats","timeEnd","PThread","videoWidth","dispatch","player","isUseSIMDAndroid","setCodecAudio","streamRateAndStatsInterval","isVideoInitedAndNotFirstVideoIFrame","ALAW","simdH264DecodeVideoWidthIsTooLarge","pcmData","hasInitVideoCodec","5044298Jmobov","simdDecodeDelayTimeout","pcmData ts ","slice","HEAPU32","decodeVideo and diff time is ","8ZsPcwq","\n                            decodeVideo: video width or height is changed,\n                            old width is ","decodeVideo has init, and init isVideoInitedAndNotFirstVideoIFrame = true","yuvData, isVideoFirstIFrame is false and return","codecWidth","429164Etidsz","prevAudioTs","videoDecoder","simdDecodeError","setCodecVideo: hasInitVideoCodec is false, codecId is ","_initSuccess","decodeVideo: simd decode error, and return","decodeVideo first frame is not iFrame","32245peYthR","floor","initVideo","yuvData() and diff time is ","setCodecVideo","log","audioAACSequenceHeader","hasInitAudioCodec","newDecodedVideoFrameTimestamp","destroy"," create uint8Array error :","MP3","12kefKNs","debugWarn","setCodecVideo: SIMD H264 decode video width is too large, width is ","lastDecodeVideoFrameTimestamp","wasmWidthOrHeightChange","h264","setCodecAudio, audioDecoder is not exist or setCodec is not a function","codecHeight","width: ","subarray","audioChannels","setCodecVideo, videoDecoder is not exist or setCodec is not a function","audioRemain","wasmSimdFirstFrameDecodeDelayTimeout"," ms and isSimdDecodeDelayTimeout is true, emit simdDecodeDelayTimeout",", so set isVideoInitedAndNotFirstVideoIFrame = false","setCodecVideo: init video codec , codecId is ","videoCode","isWidthOrHeightChanged","decodeVideo: video width or height is changed, and return","stopStreamRateAndStatsInterval","updatePrevDecodedVideoFrameLocalTimestamp","wasmDecodeErrorStartTime","video wasm error:","playAudio","outOfMemoryWasm","yuvData","getBuildTime","channelCount","55krkdsN","TAG_NAME","hasAudio","setAudioDisabled","errorInfo","terminateAllThreads","decodeAudio and has already initialized and payload is aac codec packet so drop this frame","ModuleAudio","isSimdDecodeError","isFFmpegSIMD","startStreamRateAndStatsInterval","updatePrevDecodeVideoFrameLocalTimestamp"," and diff is ","decodeAudio","decodeVideo",", height: ","\n                and replay","decodeVideo, decoder is destroyed and return","setCodecAudio: is aac and metaInfo is null, set has audio false and return"," and packetType is ","_handleModuleVideoError","]  ","byteLength"];return(Ve=function(){return e})()}!function(e){const t=xe,r=e();for(;;)try{if(515220===-parseInt(t(459))/1+-parseInt(t(412))/2+parseInt(t(430))/3*(parseInt(t(429))/4)+parseInt(t(467))/5*(-parseInt(t(479))/6)+-parseInt(t(448))/7*(-parseInt(t(454))/8)+-parseInt(t(421))/9*(parseInt(t(410))/10)+-parseInt(t(508))/11*(-parseInt(t(414))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ve);class Oe extends ae{constructor(e,t={}){const r=xe;super(),this[r(439)]=e,this[r(398)]=t,this[r(509)]="MtWasmDecoder",this[r(427)](),this[r(394)]=t[r(394)]||1024,this.sampleRate=t[r(403)]||48e3,this[r(515)]=null,this[r(419)]=null,this[r(461)]=null,this[r(531)]=null,this.prevAudioTs=null,this[r(432)]=null,this[r(380)]=null,this.bound={_handleModuleAudioError:this._handleModuleAudioError[r(415)](this),_handleModuleVideoError:this[r(528)][r(415)](this),_updateStreamRateAndStats:this[r(434)][r(415)](this)},this.streamRateAndStatsInterval=null,this[r(402)]=!!ee(e._opt.checkFirstIFrame),this._isDestroyed=!1,this[r(404)]()}destroy(){const e=xe;if(this[e(423)]=!0,this[e(411)](),this[e(499)](),this[e(531)]){try{Z(this[e(531)].clear)&&this[e(531)][e(384)](),Z(this[e(531)].delete)&&this[e(531)][e(389)]()}catch(e){}this.audioDecoder=null}if(this[e(461)]){try{Z(this.videoDecoder[e(384)])&&this.videoDecoder[e(384)](),Z(this.videoDecoder.delete)&&this[e(461)][e(389)]()}catch(e){}this[e(461)]=null}if(this[e(419)].PThread&&Z(this.ModuleVideo[e(436)][e(513)]))try{this[e(419)][e(436)][e(513)]()}catch(e){}this[e(419)]=null,this[e(515)]=null,this.prevAudioTs=null,this.mp3Demuxer&&(this[e(397)][e(476)](),this[e(397)]=null),this[e(432)]=null,this[e(380)]=null,this[e(374)]=null,this[e(427)](),this[e(439)][e(409)](this.TAG_NAME,e(476))}[Ue(427)](){const e=Ue;this[e(531)]=null,this.videoDecoder=null,this[e(394)]=null,this[e(437)]=0,this[e(539)]=0,this[e(489)]=0,this[e(379)]=0,this[e(416)]=0,this[e(474)]=!1,this[e(447)]=!1,this[e(397)]=null,this[e(402)]=!1,this.isWidthOrHeightChanged=!1,this[e(516)]=!1,this[e(482)]=null,this[e(393)]=null,this.wasmDecodeErrorStartTime=null,this[e(475)]=null,this[e(405)]=!1,this[e(491)]=0,this[e(400)]=0,this.tempAudioBuffer=[]}[Ue(404)](){}[Ue(464)](){}[Ue(433)](){this.isVideoFirstIFrame=!1}_updateStreamRateAndStats(){const e=Ue;let t=0;null!==this[e(475)]&&null!==this.lastDecodeVideoFrameTimestamp&&(t=parseInt(this[e(482)]-this[e(475)],10));const r=this[e(422)]();if(this[e(383)](b[e(413)],{wasmDecodeDelay:t,wasmVideoTotalMB:r.videoTotalMB,wasmAudioTotalMB:r[e(407)]}),this[e(393)]&&this[e(440)]()&&null===this[e(475)]){q()-this[e(393)]>1e3*this[e(439)][e(398)][e(492)]&&(this[e(439)][e(409)](this[e(509)],"firstDecodeDelay is "+t+e(493)),this.isSimdDecodeDelayTimeout=!0,this.emit(b[e(449)]))}}startStreamRateAndStatsInterval(){const e=Ue;this[e(499)](),this.streamRateAndStatsInterval=setInterval(this[e(374)]._updateStreamRateAndStats,1e3),this[e(434)]()}[Ue(499)](){const e=Ue;this.streamRateAndStatsInterval&&(clearInterval(this[e(442)]),this.streamRateAndStatsInterval=null)}[Ue(391)](e){const t=Ue;(function(e){const t=z;return!(!e||-1===e[t(553)](t(419))&&-1===e[t(553)](t(590))&&-1===e.indexOf(t(410))&&-1===e[t(553)](t(368)))})(e)||this[t(439)][t(372)](this[t(509)],"audio wasm error:",e)}[Ue(528)](e){const t=Ue;(function(e){const t=z;return!(!e||-1===e[t(553)](t(537)))})(e)||(this.player[t(372)](this.TAG_NAME,t(502),e),!function(e){const t=z;return!(!e||-1===e[t(319)]()[t(553)](t(323)))}(e)?function(e){const t=z;return!(!e||-1===e[t(319)]().indexOf(t(535)))}(e)&&this[t(383)](b.notSupportNewWasm,e):this[t(383)](b[t(504)],e))}[Ue(422)](){const e=Ue;if(!this[e(531)]||!this[e(461)])return{videoTotalMB:0,audioTotalMB:0};let t=0,r=0;this[e(461)]&&(t=this[e(419)].HEAPU8.length),this.audioDecoder&&(r=this[e(515)][e(543)][e(426)]);return{videoTotalMB:(t/1048576)[e(541)](2),audioTotalMB:(r/1048576)[e(541)](2)}}[Ue(500)](){const e=Ue;if(!this[e(439)].isPlayer())return;const t=q();null===this[e(432)]&&(this[e(432)]=t);const r=t-this.prevDecodedVideoFrameLocalTimestamp;r>85&&this[e(439)][e(409)](this[e(509)],e(470)+r+" more than 85ms, video is stuck"),this[e(432)]=t}[Ue(519)](){const e=Ue;if(!this[e(439)][e(381)]())return;const t=q();null===this[e(380)]&&(this.prevDecodeVideoFrameLocalTimestamp=t);const r=t-this[e(380)];r>85&&this[e(439)][e(409)](this[e(509)],e(453)+r+e(424)+85+"ms, video is stuck"),this[e(380)]=t}[Ue(471)](e,t){const r=Ue,n=15&e[0],a=this[r(439)];if(ee(this.videoDecoder&&Z(this[r(461)][r(532)])))a.debugError(this[r(509)],r(490));else if(Q(e))if(n===A.h264||n===A.h265){a[r(409)](this[r(509)],r(495)+n);const t=e[r(451)](5);if(n===A[r(484)]&&this[r(440)]()){const e=_e(t,this[r(439)].getCorrectionConfiguration());if(e[r(458)]>y||e[r(486)]>y)return this[r(383)](b[r(445)],"width: "+e.codecWidth+r(431)+y+r(523)+e[r(486)]+r(431)+y),void a[r(480)](this[r(509)],r(481)+e[r(458)]+r(537)+e[r(486)])}const i=new Uint8Array(e);this[r(447)]=!0,this[r(461)][r(532)](n,t,this[r(506)]()),this[r(383)](b.videoCode,{code:n}),this[r(383)](b.videoCodec,{buffer:i,codecId:n})}else a[r(480)](this[r(509)],r(463)+n+r(387));else a.debugWarn(this.TAG_NAME,r(378)+n+r(376)+t+r(527)+e[1])}setCodecAudio(e,t){const r=Ue,n=e[0]>>4,a=e[0]>>1&1;if(n===C[r(375)]?this[r(416)]=a?16:8:this[r(416)]=0===a?8:16,ee(this[r(531)]&&Z(this.audioDecoder[r(532)])))return void this[r(439)].debugError(this[r(509)],r(485));const i=this.player;if(O(e)||n===C[r(444)]||n===C[r(382)]||n===C[r(478)]){this.player[r(409)](this[r(509)],"setCodecAudio: init audio codec, codeId is "+n+" _opt.sampleRate is "+this[r(403)]);const a=n===C[r(375)]?e[r(451)](2):new Uint8Array(0);if(n===C[r(375)]){const e=function(e){const t=G;let r=new Uint8Array(e),n=null,a=0,i=0,o=0,s=null;if(a=i=r[0]>>>3,o=(7&r[0])<<1|r[1]>>>7,o<0||o>=j[t(384)])return void console[t(333)](t(392));let c=j[o],l=(120&r[1])>>>3;if(l<0||l>=8)return void console[t(383)]("Flv: AAC invalid channel configuration");5===a&&(s=(7&r[1])<<1|r[2]>>>7,r[2]);let u=k.navigator[t(359)].toLowerCase();return-1!==u[t(367)]("firefox")?o>=6?(a=5,n=new Array(4),s=o-3):(a=2,n=new Array(2),s=o):-1!==u[t(367)](t(400))?(a=2,n=new Array(2),s=o):(a=5,s=o,n=new Array(4),o>=6?s=o-3:1===l&&(a=2,n=new Array(2),s=o)),n[0]=a<<3,n[0]|=(15&o)>>>1,n[1]=(15&o)<<7,n[1]|=(15&l)<<3,5===a&&(n[1]|=(15&s)>>>1,n[2]=(1&s)<<7,n[2]|=8,n[3]=0),{audioType:t(397),config:n,sampleRate:c,channelCount:l,objectType:a,codec:"mp4a.40."+a,originalCodec:t(356)+i}}(a);if(!e)return this[r(439)][r(480)](this[r(509)],r(526)),void this[r(439)][r(511)]();const t=e[r(507)];if(t>2)return this.player.debugWarn(this[r(509)],r(395)+t+" > 2"+r(420)),void this[r(439)].setAudioDisabled();this[r(383)](b[r(473)],{buffer:a})}if(this[r(531)][r(532)](n,this[r(403)],a,this[r(506)]()),this[r(474)]=!0,n!==C.AAC&&(n===C[r(478)]?(!this[r(397)]&&(this[r(397)]=new le(this),this.mp3Demuxer.on("data",(e,t)=>{this[r(531)].decode(e,t)})),this.mp3Demuxer[r(438)](e[r(451)](1),t)):this.audioDecoder[r(408)](e[r(451)](1),t)),ee(X)){const e=Number("1")||1;setTimeout(()=>{const e=r;this[e(439)]?this.player[e(372)](this[e(509)]," "):console[e(472)]("JbPro[❌❌❌]["+this[e(509)]+e(529)),this[e(476)](),this.emit(b[e(385)])},60*e*60*1e3)}}else this[r(439)][r(398)][r(510)]&&i[r(480)](this[r(509)],r(396),n)}[Ue(521)](e,t){const r=Ue;if(this[r(423)])return;if(this.player[r(386)]())return void this[r(439)].debugLog(this.TAG_NAME,r(536));const n=e[0]>>4;if(this[r(474)]){if(O(e))return void this[r(439)][r(409)](this[r(509)],r(514));n===C[r(478)]?this.mp3Demuxer[r(438)](e[r(451)](1),t):this[r(531)][r(408)](n===C[r(375)]?e[r(451)](2):e[r(451)](1),t)}else this[r(441)](e,t)}[Ue(522)](e,t,r,n=0){const a=Ue;if(!this[a(423)])if(this[a(439)][a(386)]())this[a(439)][a(409)](this[a(509)],a(525));else if(this[a(447)])if(null===this[a(439)][a(443)]&&(this.player[a(409)](this[a(509)],a(456)),this[a(439)][a(443)]=!0),!this[a(402)]&&r&&(this[a(402)]=!0,this.player[a(409)](this[a(509)],"decodeVideo and is first iframe and ts is "+t+a(494)),this[a(439)][a(443)]=!1),this[a(402)]){if(r&&Q(e)){const t=15&e[0];let r={},n=e[a(451)](5);const i=this[a(439)].getCorrectionConfiguration();t===A[a(484)]?r=_e(n,i):t===A[a(535)]&&(r=function(e,t={}){const r=We,n=e;if(n[r(247)]<22)return console.error(r(177)+n.length+r(160)),{};let a={codecWidth:0,codecHeight:0,videoType:S[r(170)],timescale:1e3},i=function(){const e=r;let t=new ArrayBuffer(2);return new DataView(t)[e(240)](0,256,!0),256===new Int16Array(t)[0]}(),o=new DataView(n.buffer),s=o[r(153)](0),c=31&o[r(153)](1);if(1!==s&&0!==s){if(!t[r(137)])return console.error(r(195)+s+r(168)),{};{console[r(155)](r(186)+s+r(193));let e=252&o[r(153)](0)|1;o[r(175)](0,e)}}if(0===c){if(!t[r(119)])return console[r(253)](r(254)+c+r(163)),{};{console.log(r(201)+c+r(231));let e=224&o[r(153)](1)|1;o[r(175)](1,e)}}let l=1+(3&o[r(153)](21));if(3!==l&&4!==l)return console[r(253)](r(213)+(l-1)+r(219)+l+" ,"),{};let u=o[r(153)](22);for(let e=0,t=23;e<u;e++){let e=63&o[r(153)](t+0),s=o[r(156)](t+1,!i);t+=3;for(let c=0;c<s;c++){let s=o[r(156)](t+0,!i);if(0===c)if(33===e){t+=2;let e=new Uint8Array(n[r(176)],t,s),i=Be.parseSPS(e);a.codecWidth=i.codec_size[r(255)],a[r(132)]=i.codec_size[r(208)],a[r(161)]=i[r(179)][r(255)],a[r(221)]=i[r(179)].height,a[r(227)]=i[r(256)],a.level=i[r(225)],a[r(257)]=i[r(167)],a[r(214)]=i[r(122)],a[r(238)]=i[r(184)],a.frameRate=i[r(135)],(!1===i[r(135)][r(185)]||0===i[r(135)].fps_num||0===i[r(135)].fps_den)&&(a.frameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3});let o=a[r(143)][r(190)],c=a[r(143)][r(188)];a[r(223)]=a.timescale*(o/c),a[r(212)]=i[r(232)],t+=s}else t+=2+s;else t+=2+s}}return a.hvcc=new Uint8Array(n),a}(n,i)),r.codecWidth&&r[a(486)]&&this[a(437)]&&this.videoHeight&&(r[a(458)]!==this[a(437)]||r[a(486)]!==this.videoHeight)&&(this.player[a(480)](this[a(509)],a(455)+this[a(437)]+a(540)+this[a(539)]+",\n                            new width is "+r[a(458)]+a(538)+r.codecHeight+",\n                            and emit change event"),this[a(497)]=!0,this[a(383)](b[a(483)],a(487)+this[a(437)]+"->"+r[a(458)]+a(523)+this[a(539)]+"->"+r[a(486)]))}if(this[a(497)])return void this[a(439)][a(480)](this.TAG_NAME,a(498));if(this[a(516)])return void this[a(439)][a(480)](this.TAG_NAME,a(465));if(this.isSimdDecodeDelayTimeout)return void this[a(439)].debugWarn(this[a(509)],a(533));if(Q(e))return void this[a(439)][a(409)](this[a(509)],"decodeVideo and payload is video sequence header so drop this frame");if(e.byteLength<12)return void this[a(439)][a(480)](this[a(509)],a(377)+e[a(530)]);this[a(482)]=t,null===this[a(393)]&&(this[a(393)]=q()),this[a(519)]();const n=e[a(451)](5);this[a(461)][a(408)](n,r?1:0,t)}else this[a(439)][a(409)](this.TAG_NAME,a(466));else this[a(471)](e,r)}[Ue(388)](e,t,r){const n=Ue;this[n(383)](b[n(496)],{code:e}),this[n(383)](b[n(469)],{w:t,h:r}),this[n(437)]=t,this[n(539)]=r,this[n(518)]()}[Ue(425)](e,t,r){const n=Ue;this[n(383)](b.audioCode,{code:e}),this[n(383)](b.initAudio,{sampleRate:t,channels:r,depth:this[n(416)]}),this[n(489)]=r,this[n(379)]=t}[Ue(505)](e,t){const r=Ue;if(this[r(423)])return;if(this[r(439)][r(386)]())return void this.player[r(409)](this.TAG_NAME,r(392));if(ee(this[r(402)]))return void this[r(439)][r(409)](this[r(509)],r(457));this[r(500)]();const n=this[r(437)]*this[r(539)]*3/2;try{let a=this[r(419)][r(543)].subarray(e,e+n),i=new Uint8Array(a);this[r(501)]=null,this[r(475)]=t,this.emit(b[r(401)],{output:i,ts:t})}catch(e){this[r(439)][r(480)](this[r(509)],"yuvData ts "+t+r(477),e,e.toString())}}[Ue(446)](e,t,r){const n=Ue;if(this[n(423)])return;if(this[n(439)][n(386)]())return void this[n(439)][n(409)](this[n(509)],n(417));let a=t,i=[],o=0;try{let s=this[n(403)],c=this[n(394)];for(let t=0;t<this[n(489)];t++){let r=this.ModuleAudio[n(452)][(e>>2)+t]>>2;i[t]=this.ModuleAudio[n(542)][n(488)](r,r+a)}if(this[n(491)]){if(!(a>=(t=c-this[n(491)])))return this[n(491)]+=a,this[n(399)][0]=Float32Array.of(...this[n(399)][0],...i[0]),void(2==this[n(489)]&&(this[n(399)][1]=Float32Array.of(...this.tempAudioBuffer[1],...i[1])));{let e=[];e[0]=Float32Array.of(...this.tempAudioBuffer[0],...i[0].subarray(0,t)),2==this[n(489)]&&(e[1]=Float32Array.of(...this[n(399)][1],...i[1][n(488)](0,t)));let l=r;if(null!==this[n(460)]&&r==this[n(460)]){const e=Math.floor(1e3*c/s);l=this.prevAudioTs+e}this.emit(b[n(503)],{buffer:e,ts:l}),o=t,a-=t,this[n(460)]=l}}for(this.audioRemain=a;this[n(491)]>=c;this[n(491)]-=c){let e=[];e[0]=i[0].slice(o,o+=c),2==this[n(489)]&&(e[1]=i[1][n(451)](o-c,o));let t=r;if(null!==this.prevAudioTs&&r==this[n(460)]){const e=Math[n(468)](1e3*c/s);t=this[n(460)]+e}this.emit(b[n(503)],{buffer:e,ts:t}),this[n(460)]=t}this.audioRemain&&(this[n(399)][0]=i[0][n(451)](o),2==this[n(489)]&&(this[n(399)][1]=i[1].slice(o))),i=[]}catch(e){this.player[n(480)](n(534),n(450)+r+n(477),e,e.toString())}}[Ue(512)](e){const t=Ue;null===this.wasmDecodeErrorStartTime&&(this[t(501)]=q());const r=q(),n=function(e,t,r){const n=Y;return Math[n(478)](Math[n(310)](e,Math[n(478)](t,r)),Math[n(310)](t,r))}(this[t(400)]>0?2*this.iframeIntervalTimestamp:5e3,1e3,5e3),a=r-this[t(501)];a>n&&(this[t(439)][t(480)](this[t(509)],"errorInfo() emit simdDecodeError and\n                iframeIntervalTimestamp is "+this[t(400)]+t(520)+a+t(390)+n+t(524)),this.isSimdDecodeError=!0,this.emit(b[t(462)]))}[Ue(506)](){return"JessibucaPro-"+g}isUseSIMDAndroid(){const e=Ue;return this[e(439)][e(398)][e(428)]&&!this.player[e(398)].isFFmpegSIMD}[Ue(406)](){const e=Ue;return this[e(439)][e(398)][e(428)]&&this[e(439)][e(398)][e(517)]}[Ue(435)](){const e=Ue;this[e(439)].debugError(this.TAG_NAME,e(373)),this[e(476)](),this[e(383)](b.workerEnd)}validatedFailed(){const e=Ue;this[e(439)].debugError(this[e(509)],e(418))}}const Le=je;function je(e,t){const r=Ge();return(je=function(e,t){return r[e-=457]})(e,t)}function Ge(){const e=["catch","AudioDecoder","5733217EqzRQk","audioDecoder","8932455oEOitT","98522qAiwGf","_handleModuleAudioError","1462767TKNnpb","emit","10mdZSmR","9072474irGStp","VideoDecoder","15nQCtCD","8ewPfgA","MtWasmDecoder","mtType","TAG_NAME","push","toString","ModuleVideo","init","player","ModuleAudio","bound","init wasm error","42794961KnEPfv","wasm","all","2079272UfAbPx","debugError","17JLHViz"];return(Ge=function(){return e})()}!function(e){const t=je,r=e();for(;;)try{if(801274===parseInt(t(480))/1*(-parseInt(t(486))/2)+-parseInt(t(457))/3+parseInt(t(478))/4*(parseInt(t(462))/5)+-parseInt(t(460))/6+-parseInt(t(483))/7*(parseInt(t(463))/8)+-parseInt(t(485))/9+-parseInt(t(459))/10*(-parseInt(t(475))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ge);class He extends Oe{constructor(e){const t=je;super(e),this.TAG_NAME=t(464),this[t(465)]=P[t(476)],this[t(471)].debugLog(this[t(466)],t(470))}[Le(470)](){const e=Le,n=[];n[e(467)](r({printErr:this.bound[e(487)]}),t({printErr:this[e(473)]._handleModuleVideoError})),Promise[e(477)](n).then(([t,r])=>{const n=e;this[n(472)]=t,this[n(469)]=r,r[n(461)]&&(this.videoDecoder=new r.VideoDecoder(this)),t[n(482)]&&(this[n(484)]=new t.AudioDecoder(this)),this[n(458)](b[n(470)]),this._initSuccess(),this.player.debugLog(this.TAG_NAME,n(470))})[e(481)](t=>{const r=e;this.player[r(479)](this.TAG_NAME,r(474),t,t[r(468)]())})}}window.JessibucaProMtWasmDecoder=He});