1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t="undefined"!=typeof globalThis?globalThis:t||self).MediaInfo=n()}(this,(function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t,n=function(){return(n=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},e=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(t=t||__filename),function(n){n=void 0!==(n=n||{})?n:{};var e,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);var i,a,o,u="./this.program";i="object"==typeof window,a="function"==typeof importScripts,o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;var s,l,c,f,p="";o?(p=a?require("path").dirname(p)+"/":__dirname+"/",s=function(t,n){return c||(c=require("fs")),f||(f=require("path")),t=f.normalize(t),c.readFileSync(t,n?null:"utf8")},l=function(t){var n=s(t,!0);return n.buffer||(n=new Uint8Array(n)),_(n.buffer),n},process.argv.length>1&&(u=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Mn))throw t})),process.on("unhandledRejection",Q),n.inspect=function(){return"[Emscripten Module object]"}):(i||a)&&(a?p=self.location.href:document.currentScript&&(p=document.currentScript.src),t&&(p=t),p=0!==p.indexOf("blob:")?p.substr(0,p.lastIndexOf("/")+1):"",s=function(t){var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(null),n.responseText},a&&(l=function(t){var n=new XMLHttpRequest;return n.open("GET",t,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}));var d,y,h=n.print||console.log.bind(console),m=n.printErr||console.warn.bind(console);for(e in r)r.hasOwnProperty(e)&&(n[e]=r[e]);r=null,n.arguments&&n.arguments,n.thisProgram&&(u=n.thisProgram),n.quit&&n.quit,n.wasmBinary&&(d=n.wasmBinary),n.noExitRuntime&&n.noExitRuntime,"object"!=typeof WebAssembly&&m("no native wasm support detected");var v=new WebAssembly.Table({initial:1614,maximum:1614,element:"anyfunc"}),g=!1;function _(t,n){t||Q("Assertion failed: "+n)}var w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(t,n,e){for(var r=n+e,i=n;t[i]&&!(i>=r);)++i;if(i-n>16&&t.subarray&&w)return w.decode(t.subarray(n,i));for(var a="";n<i;){var o=t[n++];if(128&o){var u=63&t[n++];if(192!=(224&o)){var s=63&t[n++];if((o=224==(240&o)?(15&o)<<12|u<<6|s:(7&o)<<18|u<<12|s<<6|63&t[n++])<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&o)<<6|u)}else a+=String.fromCharCode(o)}return a}function b(t,n){return t?C(F,t,n):""}function T(t,n,e,r){if(!(r>0))return 0;for(var i=e,a=e+r-1,o=0;o<t.length;++o){var u=t.charCodeAt(o);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&t.charCodeAt(++o)),u<=127){if(e>=a)break;n[e++]=u}else if(u<=2047){if(e+1>=a)break;n[e++]=192|u>>6,n[e++]=128|63&u}else if(u<=65535){if(e+2>=a)break;n[e++]=224|u>>12,n[e++]=128|u>>6&63,n[e++]=128|63&u}else{if(e+3>=a)break;n[e++]=240|u>>18,n[e++]=128|u>>12&63,n[e++]=128|u>>6&63,n[e++]=128|63&u}}return n[e]=0,e-i}function $(t,n,e){return T(t,F,n,e)}function P(t){for(var n=0,e=0;e<t.length;++e){var r=t.charCodeAt(e);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++e)),r<=127?++n:n+=r<=2047?2:r<=65535?3:4}return n}var A,D,F,S,E,O,j,W,M,I="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function R(t){for(var n=t,e=n>>1;S[e];)++e;if((n=e<<1)-t>32&&I)return I.decode(F.subarray(t,n));for(var r=0,i="";;){var a=S[t+2*r>>1];if(0==a)return i;++r,i+=String.fromCharCode(a)}}function k(t,n,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var r=n,i=(e-=2)<2*t.length?e/2:t.length,a=0;a<i;++a){var o=t.charCodeAt(a);S[n>>1]=o,n+=2}return S[n>>1]=0,n-r}function U(t){return 2*t.length}function x(t){for(var n=0,e="";;){var r=O[t+4*n>>2];if(0==r)return e;if(++n,r>=65536){var i=r-65536;e+=String.fromCharCode(55296|i>>10,56320|1023&i)}else e+=String.fromCharCode(r)}}function Y(t,n,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var r=n,i=r+e-4,a=0;a<t.length;++a){var o=t.charCodeAt(a);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++a)),O[n>>2]=o,(n+=4)+4>i)break}return O[n>>2]=0,n-r}function H(t){for(var n=0,e=0;e<t.length;++e){var r=t.charCodeAt(e);r>=55296&&r<=57343&&++e,n+=4}return n}function z(t){A=t,n.HEAP8=D=new Int8Array(t),n.HEAP16=S=new Int16Array(t),n.HEAP32=O=new Int32Array(t),n.HEAPU8=F=new Uint8Array(t),n.HEAPU16=E=new Uint16Array(t),n.HEAPU32=j=new Uint32Array(t),n.HEAPF32=W=new Float32Array(t),n.HEAPF64=M=new Float64Array(t)}var B=n.INITIAL_MEMORY||16777216;function G(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?n.dynCall_v(r):n.dynCall_vi(r,e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}(y=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:B/65536,maximum:32768}))&&(A=y.buffer),B=A.byteLength,z(A),O[184448]=5980832;var V=[],N=[],q=[],L=[],J=Math.ceil,X=Math.floor,Z=0,K=null;function Q(t){throw n.onAbort&&n.onAbort(t),h(t+=""),m(t),g=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function tt(t){return n=t,e="data:application/octet-stream;base64,",String.prototype.startsWith?n.startsWith(e):0===n.indexOf(e);var n,e}n.preloadedImages={},n.preloadedAudios={};var nt,et="MediaInfoModule.wasm";function rt(){try{if(d)return new Uint8Array(d);if(l)return l(et);throw"both async and sync fetching of the wasm failed"}catch(t){Q(t)}}tt(et)||(nt=et,et=n.locateFile?n.locateFile(nt,p):p+nt),N.push({func:function(){Sn()}});var it={mappings:{},buffers:[null,[],[]],printChar:function(t,n){var e=it.buffers[t];0===n||10===n?((1===t?h:m)(C(e,0)),e.length=0):e.push(n)},varargs:void 0,get:function(){return it.varargs+=4,O[it.varargs-4>>2]},getStr:function(t){return b(t)},get64:function(t,n){return t}};function at(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var ot=void 0;function ut(t){for(var n="",e=t;F[e];)n+=ot[F[e++]];return n}var st={},lt={},ct={};function ft(t){if(void 0===t)return"_unknown";var n=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return n>=48&&n<=57?"_"+t:t}function pt(t,n){return t=ft(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(n)}function dt(t,n){var e=pt(n,(function(t){this.name=n,this.message=t;var e=new Error(t).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var yt=void 0;function ht(t){throw new yt(t)}var mt=void 0;function vt(t){throw new mt(t)}function gt(t,n,e){function r(n){var r=e(n);r.length!==t.length&&vt("Mismatched type converter count");for(var i=0;i<t.length;++i)_t(t[i],r[i])}t.forEach((function(t){ct[t]=n}));var i=new Array(n.length),a=[],o=0;n.forEach((function(t,n){lt.hasOwnProperty(t)?i[n]=lt[t]:(a.push(t),st.hasOwnProperty(t)||(st[t]=[]),st[t].push((function(){i[n]=lt[t],++o===a.length&&r(i)})))})),0===a.length&&r(i)}function _t(t,n,e){if(e=e||{},!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var r=n.name;if(t||ht('type "'+r+'" must have a positive integer typeid pointer'),lt.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;ht("Cannot register type '"+r+"' twice")}if(lt[t]=n,delete ct[t],st.hasOwnProperty(t)){var i=st[t];delete st[t],i.forEach((function(t){t()}))}}function wt(t){if(!(this instanceof Wt))return!1;if(!(t instanceof Wt))return!1;for(var n=this.$$.ptrType.registeredClass,e=this.$$.ptr,r=t.$$.ptrType.registeredClass,i=t.$$.ptr;n.baseClass;)e=n.upcast(e),n=n.baseClass;for(;r.baseClass;)i=r.upcast(i),r=r.baseClass;return n===r&&e===i}function Ct(t){ht(t.$$.ptrType.registeredClass.name+" instance already deleted")}var bt=!1;function Tt(t){}function $t(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function Pt(t){return"undefined"==typeof FinalizationGroup?(Pt=function(t){return t},t):(bt=new FinalizationGroup((function(t){for(var n=t.next();!n.done;n=t.next()){var e=n.value;e.ptr?$t(e):console.warn("object already deleted: "+e.ptr)}})),Tt=function(t){bt.unregister(t.$$)},(Pt=function(t){return bt.register(t,t.$$,t.$$),t})(t))}function At(){if(this.$$.ptr||Ct(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,n=Pt(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return n.$$.count.value+=1,n.$$.deleteScheduled=!1,n}function Dt(){this.$$.ptr||Ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ht("Object already scheduled for deletion"),Tt(this),$t(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ft(){return!this.$$.ptr}var St=void 0,Et=[];function Ot(){for(;Et.length;){var t=Et.pop();t.$$.deleteScheduled=!1,t.delete()}}function jt(){return this.$$.ptr||Ct(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ht("Object already scheduled for deletion"),Et.push(this),1===Et.length&&St&&St(Ot),this.$$.deleteScheduled=!0,this}function Wt(){}var Mt={};function It(t,n,e){if(void 0===t[n].overloadTable){var r=t[n];t[n]=function(){return t[n].overloadTable.hasOwnProperty(arguments.length)||ht("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[n].overloadTable+")!"),t[n].overloadTable[arguments.length].apply(this,arguments)},t[n].overloadTable=[],t[n].overloadTable[r.argCount]=r}}function Rt(t,n,e,r,i,a,o,u){this.name=t,this.constructor=n,this.instancePrototype=e,this.rawDestructor=r,this.baseClass=i,this.getActualType=a,this.upcast=o,this.downcast=u,this.pureVirtualFunctions=[]}function kt(t,n,e){for(;n!==e;)n.upcast||ht("Expected null or instance of "+e.name+", got an instance of "+n.name),t=n.upcast(t),n=n.baseClass;return t}function Ut(t,n){if(null===n)return this.isReference&&ht("null is not a valid "+this.name),0;n.$$||ht('Cannot pass "'+dn(n)+'" as a '+this.name),n.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name);var e=n.$$.ptrType.registeredClass;return kt(n.$$.ptr,e,this.registeredClass)}function xt(t,n){var e;if(null===n)return this.isReference&&ht("null is not a valid "+this.name),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;n.$$||ht('Cannot pass "'+dn(n)+'" as a '+this.name),n.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&n.$$.ptrType.isConst&&ht("Cannot convert argument of type "+(n.$$.smartPtrType?n.$$.smartPtrType.name:n.$$.ptrType.name)+" to parameter type "+this.name);var r=n.$$.ptrType.registeredClass;if(e=kt(n.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(void 0===n.$$.smartPtr&&ht("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:n.$$.smartPtrType===this?e=n.$$.smartPtr:ht("Cannot convert argument of type "+(n.$$.smartPtrType?n.$$.smartPtrType.name:n.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:e=n.$$.smartPtr;break;case 2:if(n.$$.smartPtrType===this)e=n.$$.smartPtr;else{var i=n.clone();e=this.rawShare(e,pn((function(){i.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:ht("Unsupporting sharing policy")}return e}function Yt(t,n){if(null===n)return this.isReference&&ht("null is not a valid "+this.name),0;n.$$||ht('Cannot pass "'+dn(n)+'" as a '+this.name),n.$$.ptr||ht("Cannot pass deleted object as a pointer of type "+this.name),n.$$.ptrType.isConst&&ht("Cannot convert argument of type "+n.$$.ptrType.name+" to parameter type "+this.name);var e=n.$$.ptrType.registeredClass;return kt(n.$$.ptr,e,this.registeredClass)}function Ht(t){return this.fromWireType(j[t>>2])}function zt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Bt(t){this.rawDestructor&&this.rawDestructor(t)}function Gt(t){null!==t&&t.delete()}function Vt(t,n,e){if(n===e)return t;if(void 0===e.baseClass)return null;var r=Vt(t,n,e.baseClass);return null===r?null:e.downcast(r)}function Nt(){return Object.keys(Jt).length}function qt(){var t=[];for(var n in Jt)Jt.hasOwnProperty(n)&&t.push(Jt[n]);return t}function Lt(t){St=t,Et.length&&St&&St(Ot)}var Jt={};function Xt(t,n){return n=function(t,n){for(void 0===n&&ht("ptr should not be undefined");t.baseClass;)n=t.upcast(n),t=t.baseClass;return n}(t,n),Jt[n]}function Zt(t,n){return n.ptrType&&n.ptr||vt("makeClassHandle requires ptr and ptrType"),!!n.smartPtrType!=!!n.smartPtr&&vt("Both smartPtrType and smartPtr must be specified"),n.count={value:1},Pt(Object.create(t,{$$:{value:n}}))}function Kt(t){var n=this.getPointee(t);if(!n)return this.destructor(t),null;var e=Xt(this.registeredClass,n);if(void 0!==e){if(0===e.$$.count.value)return e.$$.ptr=n,e.$$.smartPtr=t,e.clone();var r=e.clone();return this.destructor(t),r}function i(){return this.isSmartPointer?Zt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:n,smartPtrType:this,smartPtr:t}):Zt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var a,o=this.registeredClass.getActualType(n),u=Mt[o];if(!u)return i.call(this);a=this.isConst?u.constPointerType:u.pointerType;var s=Vt(n,this.registeredClass,a.registeredClass);return null===s?i.call(this):this.isSmartPointer?Zt(a.registeredClass.instancePrototype,{ptrType:a,ptr:s,smartPtrType:this,smartPtr:t}):Zt(a.registeredClass.instancePrototype,{ptrType:a,ptr:s})}function Qt(t,n,e,r,i,a,o,u,s,l,c){this.name=t,this.registeredClass=n,this.isReference=e,this.isConst=r,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=o,this.rawGetPointee=u,this.rawConstructor=s,this.rawShare=l,this.rawDestructor=c,i||void 0!==n.baseClass?this.toWireType=xt:r?(this.toWireType=Ut,this.destructorFunction=null):(this.toWireType=Yt,this.destructorFunction=null)}function tn(t,e){t=ut(t);var r=function(n){for(var r=[],i=1;i<t.length;++i)r.push("a"+i);var a="return function dynCall_"+t+"_"+e+"("+r.join(", ")+") {\n";return a+=" return dynCall(rawFunction"+(r.length?", ":"")+r.join(", ")+");\n",a+="};\n",new Function("dynCall","rawFunction",a)(n,e)}(n["dynCall_"+t]);return"function"!=typeof r&&ht("unknown function pointer with signature "+t+": "+e),r}var nn=void 0;function en(t){var n=Wn(t),e=ut(n);return On(n),e}function rn(t,n){var e=[],r={};throw n.forEach((function t(n){r[n]||lt[n]||(ct[n]?ct[n].forEach(t):(e.push(n),r[n]=!0))})),new nn(t+": "+e.map(en).join([", "]))}function an(t,n){for(var e=[],r=0;r<t;r++)e.push(O[(n>>2)+r]);return e}function on(t){for(;t.length;){var n=t.pop();t.pop()(n)}}function un(t,n,e,r,i){var a=n.length;a<2&&ht("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==n[1]&&null!==e,u=!1,s=1;s<n.length;++s)if(null!==n[s]&&void 0===n[s].destructorFunction){u=!0;break}var l="void"!==n[0].name,c="",f="";for(s=0;s<a-2;++s)c+=(0!==s?", ":"")+"arg"+s,f+=(0!==s?", ":"")+"arg"+s+"Wired";var p="return function "+ft(t)+"("+c+") {\nif (arguments.length !== "+(a-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(a-2)+" args!');\n}\n";u&&(p+="var destructors = [];\n");var d=u?"destructors":"null",y=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[ht,r,i,on,n[0],n[1]];for(o&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),s=0;s<a-2;++s)p+="var arg"+s+"Wired = argType"+s+".toWireType("+d+", arg"+s+"); // "+n[s+2].name+"\n",y.push("argType"+s),h.push(n[s+2]);if(o&&(f="thisWired"+(f.length>0?", ":"")+f),p+=(l?"var rv = ":"")+"invoker(fn"+(f.length>0?", ":"")+f+");\n",u)p+="runDestructors(destructors);\n";else for(s=o?1:2;s<n.length;++s){var m=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==n[s].destructorFunction&&(p+=m+"_dtor("+m+"); // "+n[s].name+"\n",y.push(m+"_dtor"),h.push(n[s].destructorFunction))}return l&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",y.push(p),function(t,n){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var e=pt(t.name||"unknownFunctionName",(function(){}));e.prototype=t.prototype;var r=new e,i=t.apply(r,n);return i instanceof Object?i:r}(Function,y).apply(null,h)}var sn=[],ln=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function cn(){for(var t=0,n=5;n<ln.length;++n)void 0!==ln[n]&&++t;return t}function fn(){for(var t=5;t<ln.length;++t)if(void 0!==ln[t])return ln[t];return null}function pn(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var n=sn.length?sn.pop():ln.length;return ln[n]={refcount:1,value:t},n}}function dn(t){if(null===t)return"null";var n=typeof t;return"object"===n||"array"===n||"function"===n?t.toString():""+t}function yn(t,n){switch(n){case 2:return function(t){return this.fromWireType(W[t>>2])};case 3:return function(t){return this.fromWireType(M[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function hn(t,n,e){switch(n){case 0:return e?function(t){return D[t]}:function(t){return F[t]};case 1:return e?function(t){return S[t>>1]}:function(t){return E[t>>1]};case 2:return e?function(t){return O[t>>2]}:function(t){return j[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function mn(t){try{return y.grow(t-A.byteLength+65535>>>16),z(y.buffer),1}catch(t){}}var vn={};function gn(){if(!gn.strings){var t={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",_:u||"./this.program"};for(var n in vn)t[n]=vn[n];var e=[];for(var n in t)e.push(n+"="+t[n]);gn.strings=e}return gn.strings}var _n=($("GMT",737856,4),737856);function wn(t){return t%4==0&&(t%100!=0||t%400==0)}function Cn(t,n){for(var e=0,r=0;r<=n;e+=t[r++]);return e}var bn=[31,29,31,30,31,30,31,31,30,31,30,31],Tn=[31,28,31,30,31,30,31,31,30,31,30,31];function $n(t,n){for(var e=new Date(t.getTime());n>0;){var r=wn(e.getFullYear()),i=e.getMonth(),a=(r?bn:Tn)[i];if(!(n>a-e.getDate()))return e.setDate(e.getDate()+n),e;n-=a-e.getDate()+1,e.setDate(1),i<11?e.setMonth(i+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e}function Pn(t,n,e,r){var i=O[r+40>>2],a={tm_sec:O[r>>2],tm_min:O[r+4>>2],tm_hour:O[r+8>>2],tm_mday:O[r+12>>2],tm_mon:O[r+16>>2],tm_year:O[r+20>>2],tm_wday:O[r+24>>2],tm_yday:O[r+28>>2],tm_isdst:O[r+32>>2],tm_gmtoff:O[r+36>>2],tm_zone:i?b(i):""},o=b(e),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)o=o.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(t,n,e){for(var r="number"==typeof t?t.toString():t||"";r.length<n;)r=e[0]+r;return r}function p(t,n){return f(t,n,"0")}function d(t,n){function e(t){return t<0?-1:t>0?1:0}var r;return 0===(r=e(t.getFullYear()-n.getFullYear()))&&0===(r=e(t.getMonth()-n.getMonth()))&&(r=e(t.getDate()-n.getDate())),r}function y(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function h(t){var n=$n(new Date(t.tm_year+1900,0,1),t.tm_yday),e=new Date(n.getFullYear(),0,4),r=new Date(n.getFullYear()+1,0,4),i=y(e),a=y(r);return d(i,n)<=0?d(a,n)<=0?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var m={"%a":function(t){return l[t.tm_wday].substring(0,3)},"%A":function(t){return l[t.tm_wday]},"%b":function(t){return c[t.tm_mon].substring(0,3)},"%B":function(t){return c[t.tm_mon]},"%C":function(t){return p((t.tm_year+1900)/100|0,2)},"%d":function(t){return p(t.tm_mday,2)},"%e":function(t){return f(t.tm_mday,2," ")},"%g":function(t){return h(t).toString().substring(2)},"%G":function(t){return h(t)},"%H":function(t){return p(t.tm_hour,2)},"%I":function(t){var n=t.tm_hour;return 0==n?n=12:n>12&&(n-=12),p(n,2)},"%j":function(t){return p(t.tm_mday+Cn(wn(t.tm_year+1900)?bn:Tn,t.tm_mon-1),3)},"%m":function(t){return p(t.tm_mon+1,2)},"%M":function(t){return p(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return p(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var n=new Date(t.tm_year+1900,0,1),e=0===n.getDay()?n:$n(n,7-n.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(e,r)<0){var i=Cn(wn(r.getFullYear())?bn:Tn,r.getMonth()-1)-31,a=31-e.getDate()+i+r.getDate();return p(Math.ceil(a/7),2)}return 0===d(e,n)?"01":"00"},"%V":function(t){var n,e=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=y(e),a=y(r),o=$n(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(o,i)<0?"53":d(a,o)<=0?"01":(n=i.getFullYear()<t.tm_year+1900?t.tm_yday+32-i.getDate():t.tm_yday+1-i.getDate(),p(Math.ceil(n/7),2))},"%w":function(t){return t.tm_wday},"%W":function(t){var n=new Date(t.tm_year,0,1),e=1===n.getDay()?n:$n(n,0===n.getDay()?1:7-n.getDay()+1),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(e,r)<0){var i=Cn(wn(r.getFullYear())?bn:Tn,r.getMonth()-1)-31,a=31-e.getDate()+i+r.getDate();return p(Math.ceil(a/7),2)}return 0===d(e,n)?"01":"00"},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var n=t.tm_gmtoff,e=n>=0;return n=(n=Math.abs(n)/60)/60*100+n%60,(e?"+":"-")+String("0000"+n).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var s in m)o.indexOf(s)>=0&&(o=o.replace(new RegExp(s,"g"),m[s](a)));var v,g,_,w,C,$,A=(v=o,g=!1,w=_>0?_:P(v)+1,C=new Array(w),$=T(v,C,0,C.length),g&&(C.length=$),C);return A.length>n?0:(function(t,n){D.set(t,n)}(A,t),A.length-1)}!function(){for(var t=new Array(256),n=0;n<256;++n)t[n]=String.fromCharCode(n);ot=t}(),yt=n.BindingError=dt(Error,"BindingError"),mt=n.InternalError=dt(Error,"InternalError"),Wt.prototype.isAliasOf=wt,Wt.prototype.clone=At,Wt.prototype.delete=Dt,Wt.prototype.isDeleted=Ft,Wt.prototype.deleteLater=jt,Qt.prototype.getPointee=zt,Qt.prototype.destructor=Bt,Qt.prototype.argPackAdvance=8,Qt.prototype.readValueFromPointer=Ht,Qt.prototype.deleteObject=Gt,Qt.prototype.fromWireType=Kt,n.getInheritedInstanceCount=Nt,n.getLiveInheritedInstances=qt,n.flushPendingDeletes=Ot,n.setDelayFunction=Lt,nn=n.UnboundTypeError=dt(Error,"UnboundTypeError"),n.count_emval_handles=cn,n.get_first_emval=fn;var An={f:function(t){return En(t)},e:function(t,n,e){throw t},y:function(t,n){var e;return e=63,O[jn()>>2]=e,-1},x:function(t,n){return function(t,n){if(-1==(0|t)||0===n)return-28;var e=it.mappings[t];return e?(n===e.len&&(it.mappings[t]=null,e.allocated&&On(e.malloc)),0):0}(t,n)},u:function(t,n,e,r,i){var a=at(e);_t(t,{name:n=ut(n),fromWireType:function(t){return!!t},toWireType:function(t,n){return n?r:i},argPackAdvance:8,readValueFromPointer:function(t){var r;if(1===e)r=D;else if(2===e)r=S;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+n);r=O}return this.fromWireType(r[t>>a])},destructorFunction:null})},E:function(t,e,r,i,a,o,u,s,l,c,f,p,d){f=ut(f),o=tn(a,o),s&&(s=tn(u,s)),c&&(c=tn(l,c)),d=tn(p,d);var y=ft(f);!function(t,e,r){n.hasOwnProperty(t)?((void 0===r||void 0!==n[t].overloadTable&&void 0!==n[t].overloadTable[r])&&ht("Cannot register public name '"+t+"' twice"),It(n,t,t),n.hasOwnProperty(r)&&ht("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),n[t].overloadTable[r]=e):(n[t]=e,void 0!==r&&(n[t].numArguments=r))}(y,(function(){rn("Cannot construct "+f+" due to unbound types",[i])})),gt([t,e,r],i?[i]:[],(function(e){var r,a;e=e[0],a=i?(r=e.registeredClass).instancePrototype:Wt.prototype;var u=pt(y,(function(){if(Object.getPrototypeOf(this)!==l)throw new yt("Use 'new' to construct "+f);if(void 0===p.constructor_body)throw new yt(f+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new yt("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),l=Object.create(a,{constructor:{value:u}});u.prototype=l;var p=new Rt(f,u,l,d,r,o,s,c),h=new Qt(f,p,!0,!1,!1),m=new Qt(f+"*",p,!1,!1,!1),v=new Qt(f+" const*",p,!1,!0,!1);return Mt[t]={pointerType:m,constPointerType:v},function(t,e,r){n.hasOwnProperty(t)||vt("Replacing nonexistant public symbol"),void 0!==n[t].overloadTable&&void 0!==r?n[t].overloadTable[r]=e:(n[t]=e,n[t].argCount=r)}(y,u),[h,m,v]}))},D:function(t,n,e,r,i,a){_(n>0);var o=an(n,e);i=tn(r,i);var u=[a],s=[];gt([],[t],(function(t){var e="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[n-1])throw new yt("Cannot register multiple constructors with identical number of parameters ("+(n-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[n-1]=function(){rn("Cannot construct "+t.name+" due to unbound types",o)},gt([],o,(function(r){return t.registeredClass.constructor_body[n-1]=function(){arguments.length!==n-1&&ht(e+" called with "+arguments.length+" arguments, expected "+(n-1)),s.length=0,u.length=n;for(var t=1;t<n;++t)u[t]=r[t].toWireType(s,arguments[t-1]);var a=i.apply(null,u);return on(s),r[0].fromWireType(a)},[]})),[]}))},d:function(t,n,e,r,i,a,o,u){var s=an(e,r);n=ut(n),a=tn(i,a),gt([],[t],(function(t){var r=(t=t[0]).name+"."+n;function i(){rn("Cannot call "+r+" due to unbound types",s)}u&&t.registeredClass.pureVirtualFunctions.push(n);var l=t.registeredClass.instancePrototype,c=l[n];return void 0===c||void 0===c.overloadTable&&c.className!==t.name&&c.argCount===e-2?(i.argCount=e-2,i.className=t.name,l[n]=i):(It(l,n,r),l[n].overloadTable[e-2]=i),gt([],s,(function(i){var u=un(r,i,t,a,o);return void 0===l[n].overloadTable?(u.argCount=e-2,l[n]=u):l[n].overloadTable[e-2]=u,[]})),[]}))},t:function(t,n){_t(t,{name:n=ut(n),fromWireType:function(t){var n=ln[t].value;return function(t){t>4&&0==--ln[t].refcount&&(ln[t]=void 0,sn.push(t))}(t),n},toWireType:function(t,n){return pn(n)},argPackAdvance:8,readValueFromPointer:Ht,destructorFunction:null})},j:function(t,n,e){var r=at(e);_t(t,{name:n=ut(n),fromWireType:function(t){return t},toWireType:function(t,n){if("number"!=typeof n&&"boolean"!=typeof n)throw new TypeError('Cannot convert "'+dn(n)+'" to '+this.name);return n},argPackAdvance:8,readValueFromPointer:yn(n,r),destructorFunction:null})},b:function(t,n,e,r,i){n=ut(n),-1===i&&(i=4294967295);var a=at(e),o=function(t){return t};if(0===r){var u=32-8*e;o=function(t){return t<<u>>>u}}var s=-1!=n.indexOf("unsigned");_t(t,{name:n,fromWireType:o,toWireType:function(t,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+dn(e)+'" to '+this.name);if(e<r||e>i)throw new TypeError('Passing a number "'+dn(e)+'" from JS side to C/C++ side to an argument of type "'+n+'", which is outside the valid range ['+r+", "+i+"]!");return s?e>>>0:0|e},argPackAdvance:8,readValueFromPointer:hn(n,a,0!==r),destructorFunction:null})},a:function(t,n,e){var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];function i(t){var n=j,e=n[t>>=2],i=n[t+1];return new r(A,i,e)}_t(t,{name:e=ut(e),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},k:function(t,n){var e="std::string"===(n=ut(n));_t(t,{name:n,fromWireType:function(t){var n,r=j[t>>2];if(e){var i=F[t+4+r],a=0;0!=i&&(a=i,F[t+4+r]=0);for(var o=t+4,u=0;u<=r;++u){var s=t+4+u;if(0==F[s]){var l=b(o);void 0===n?n=l:(n+=String.fromCharCode(0),n+=l),o=s+1}}0!=a&&(F[t+4+r]=a)}else{var c=new Array(r);for(u=0;u<r;++u)c[u]=String.fromCharCode(F[t+4+u]);n=c.join("")}return On(t),n},toWireType:function(t,n){n instanceof ArrayBuffer&&(n=new Uint8Array(n));var r="string"==typeof n;r||n instanceof Uint8Array||n instanceof Uint8ClampedArray||n instanceof Int8Array||ht("Cannot pass non-string to std::string");var i=(e&&r?function(){return P(n)}:function(){return n.length})(),a=En(4+i+1);if(j[a>>2]=i,e&&r)$(n,a+4,i+1);else if(r)for(var o=0;o<i;++o){var u=n.charCodeAt(o);u>255&&(On(a),ht("String has UTF-16 code units that do not fit in 8 bits")),F[a+4+o]=u}else for(o=0;o<i;++o)F[a+4+o]=n[o];return null!==t&&t.push(On,a),a},argPackAdvance:8,readValueFromPointer:Ht,destructorFunction:function(t){On(t)}})},g:function(t,n,e){var r,i,a,o,u;e=ut(e),2===n?(r=R,i=k,o=U,a=function(){return E},u=1):4===n&&(r=x,i=Y,o=H,a=function(){return j},u=2),_t(t,{name:e,fromWireType:function(t){var e,i=j[t>>2],o=a(),s=o[t+4+i*n>>u],l=0;0!=s&&(l=s,o[t+4+i*n>>u]=0);for(var c=t+4,f=0;f<=i;++f){var p=t+4+f*n;if(0==o[p>>u]){var d=r(c);void 0===e?e=d:(e+=String.fromCharCode(0),e+=d),c=p+n}}return 0!=l&&(o[t+4+i*n>>u]=l),On(t),e},toWireType:function(t,r){"string"!=typeof r&&ht("Cannot pass non-string to C++ string type "+e);var a=o(r),s=En(4+a+n);return j[s>>2]=a>>u,i(r,s+4,a+n),null!==t&&t.push(On,s),s},argPackAdvance:8,readValueFromPointer:Ht,destructorFunction:function(t){On(t)}})},v:function(t,n){_t(t,{isVoid:!0,name:n=ut(n),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,n){}})},h:function(){Q()},r:function(t,n,e){F.copyWithin(t,n,n+e)},s:function(t){t>>>=0;var n=F.length,e=2147483648;if(t>e)return!1;for(var r,i,a=1;a<=4;a*=2){var o=n*(1+.2/a);if(o=Math.min(o,t+100663296),mn(Math.min(e,((r=Math.max(16777216,t,o))%(i=65536)>0&&(r+=i-r%i),r))))return!0}return!1},z:function(t,n){var e=0;return gn().forEach((function(r,i){var a=n+e;O[t+4*i>>2]=a,function(t,n,e){for(var r=0;r<t.length;++r)D[n++>>0]=t.charCodeAt(r);e||(D[n>>0]=0)}(r,a),e+=r.length+1})),0},A:function(t,n){var e=gn();O[t>>2]=e.length;var r=0;return e.forEach((function(t){r+=t.length+1})),O[n>>2]=r,0},B:function(t){return 0},p:function(t,n,e,r,i){},l:function(t,n,e,r){for(var i=0,a=0;a<e;a++){for(var o=O[n+8*a>>2],u=O[n+(8*a+4)>>2],s=0;s<u;s++)it.printChar(t,F[o+s]);i+=u}return O[r>>2]=i,0},C:function(t){return function(t,n){var e=new Date(1e3*O[t>>2]);O[n>>2]=e.getUTCSeconds(),O[n+4>>2]=e.getUTCMinutes(),O[n+8>>2]=e.getUTCHours(),O[n+12>>2]=e.getUTCDate(),O[n+16>>2]=e.getUTCMonth(),O[n+20>>2]=e.getUTCFullYear()-1900,O[n+24>>2]=e.getUTCDay(),O[n+36>>2]=0,O[n+32>>2]=0;var r=Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0),i=(e.getTime()-r)/864e5|0;return O[n+28>>2]=i,O[n+40>>2]=_n,n}(t,737808)},memory:y,o:function(t){return 0},n:function(){},m:function(){return 6},i:function(t){return(t=+t)>=0?+X(t+.5):+J(t-.5)},q:function(t){},w:function(t,n,e,r){return Pn(t,n,e,r)},table:v,c:function(t){var n=Date.now()/1e3|0;return t&&(O[t>>2]=n),n}},Dn=function(){var t={a:An};function e(t,e){var r=t.exports;n.asm=r,function(t){if(Z--,n.monitorRunDependencies&&n.monitorRunDependencies(Z),0==Z&&K){var e=K;K=null,e()}}()}function r(t){e(t.instance)}function o(n){return(d||!i&&!a||"function"!=typeof fetch?new Promise((function(t,n){t(rt())})):fetch(et,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+et+"'";return t.arrayBuffer()})).catch((function(){return rt()}))).then((function(n){return WebAssembly.instantiate(n,t)})).then(n,(function(t){m("failed to asynchronously prepare wasm: "+t),Q(t)}))}if(Z++,n.monitorRunDependencies&&n.monitorRunDependencies(Z),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return m("Module.instantiateWasm callback failed with error: "+t),!1}return function(){if(d||"function"!=typeof WebAssembly.instantiateStreaming||tt(et)||"function"!=typeof fetch)return o(r);fetch(et,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,t).then(r,(function(t){m("wasm streaming compile failed: "+t),m("falling back to ArrayBuffer instantiation"),o(r)}))}))}(),{}}();n.asm=Dn;var Fn,Sn=n.___wasm_call_ctors=function(){return(Sn=n.___wasm_call_ctors=n.asm.F).apply(null,arguments)},En=n._malloc=function(){return(En=n._malloc=n.asm.G).apply(null,arguments)},On=n._free=function(){return(On=n._free=n.asm.H).apply(null,arguments)},jn=n.___errno_location=function(){return(jn=n.___errno_location=n.asm.I).apply(null,arguments)},Wn=n.___getTypeName=function(){return(Wn=n.___getTypeName=n.asm.J).apply(null,arguments)};function Mn(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function In(t){function e(){Fn||(Fn=!0,n.calledRun=!0,g||(G(N),G(q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),L.unshift(t);var t;G(L)}()))}Z>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),V.unshift(t);var t;G(V)}(),Z>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}if(n.___embind_register_native_and_builtin_types=function(){return(n.___embind_register_native_and_builtin_types=n.asm.K).apply(null,arguments)},n.dynCall_ii=function(){return(n.dynCall_ii=n.asm.L).apply(null,arguments)},n.dynCall_vi=function(){return(n.dynCall_vi=n.asm.M).apply(null,arguments)},n.dynCall_iii=function(){return(n.dynCall_iii=n.asm.N).apply(null,arguments)},n.dynCall_iiid=function(){return(n.dynCall_iiid=n.asm.O).apply(null,arguments)},n.dynCall_iidd=function(){return(n.dynCall_iidd=n.asm.P).apply(null,arguments)},n.dynCall_vii=function(){return(n.dynCall_vii=n.asm.Q).apply(null,arguments)},n.dynCall_iiii=function(){return(n.dynCall_iiii=n.asm.R).apply(null,arguments)},n.dynCall_iiiid=function(){return(n.dynCall_iiiid=n.asm.S).apply(null,arguments)},n.dynCall_iiidd=function(){return(n.dynCall_iiidd=n.asm.T).apply(null,arguments)},n.dynCall_iiiiiii=function(){return(n.dynCall_iiiiiii=n.asm.U).apply(null,arguments)},n.dynCall_iiijj=function(){return(n.dynCall_iiijj=n.asm.V).apply(null,arguments)},n.dynCall_viii=function(){return(n.dynCall_viii=n.asm.W).apply(null,arguments)},n.dynCall_viijii=function(){return(n.dynCall_viijii=n.asm.X).apply(null,arguments)},n.dynCall_viiii=function(){return(n.dynCall_viiii=n.asm.Y).apply(null,arguments)},n.dynCall_v=function(){return(n.dynCall_v=n.asm.Z).apply(null,arguments)},n.dynCall_iiiii=function(){return(n.dynCall_iiiii=n.asm._).apply(null,arguments)},n.dynCall_iidiiii=function(){return(n.dynCall_iidiiii=n.asm.$).apply(null,arguments)},n.dynCall_iiiiii=function(){return(n.dynCall_iiiiii=n.asm.aa).apply(null,arguments)},n.dynCall_iiiiiiiii=function(){return(n.dynCall_iiiiiiiii=n.asm.ba).apply(null,arguments)},n.dynCall_iiiiij=function(){return(n.dynCall_iiiiij=n.asm.ca).apply(null,arguments)},n.dynCall_iiiiid=function(){return(n.dynCall_iiiiid=n.asm.da).apply(null,arguments)},n.dynCall_iiiiijj=function(){return(n.dynCall_iiiiijj=n.asm.ea).apply(null,arguments)},n.dynCall_iiiiiiii=function(){return(n.dynCall_iiiiiiii=n.asm.fa).apply(null,arguments)},n.dynCall_iiiiiijj=function(){return(n.dynCall_iiiiiijj=n.asm.ga).apply(null,arguments)},n.dynCall_viiiiii=function(){return(n.dynCall_viiiiii=n.asm.ha).apply(null,arguments)},n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.ia).apply(null,arguments)},n.dynCall_viiiii=function(){return(n.dynCall_viiiii=n.asm.ja).apply(null,arguments)},n.asm=Dn,n.then=function(t){if(Fn)t(n);else{var e=n.onRuntimeInitialized;n.onRuntimeInitialized=function(){e&&e(),t(n)}}return n},K=function t(){Fn||In(),Fn||(K=t)},n.run=In,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return In(),n}),r={coverData:!1,chunkSize:262144,format:"object"},i=function(){},a=function(){function t(t,n){this.wasmInstance=t,this.options=n}return t.prototype.analyzeData=function(t,n,e){var r=this,i=0;if(void 0===e)return new Promise((function(e,i){return r.analyzeData(t,n,(function(t,n){return n?i(n):e(t)}))}));var a=function(t){var a=function(){var s,l=function(t){o(t)?a():u()};try{var c=Math.min(r.options.chunkSize,t-i);s=n(c,i)}catch(t){return e("",t)}s instanceof Promise?s.then(l).catch((function(t){return e("",t)})):l(s)},o=function(n){if(0===n.length||r.openBufferContinue(n,n.length))return!1;var e=r.openBufferContinueGotoGet();return-1===e?i+=n.length:(i=e,r.openBufferInit(t,e)),!0},u=function(){r.openBufferFinalize();var t=r.inform();e("object"===r.options.format?JSON.parse(t):t)};r.openBufferInit(t,i),a()},o=t();o instanceof Promise?o.then(a):a(o)},t.prototype.close=function(){this.wasmInstance.close()},t.prototype.inform=function(){return this.wasmInstance.inform()},t.prototype.openBufferContinue=function(t,n){return!!(8&this.wasmInstance.open_buffer_continue(t,n))},t.prototype.openBufferContinueGotoGet=function(){var t=this.wasmInstance.open_buffer_continue_goto_get_lower(),n=this.wasmInstance.open_buffer_continue_goto_get_upper();return-1==t&&-1==n?-1:t<0?t+4294967296+4294967296*n:t+4294967296*n},t.prototype.openBufferFinalize=function(){this.wasmInstance.open_buffer_finalize()},t.prototype.openBufferInit=function(t,n){this.wasmInstance.open_buffer_init(t,n)},t}();return function t(o,u,s){if(void 0===o&&(o={}),void 0===u)return new Promise((function(n,e){return t(o,n,e)}));var l=n(n({},r),o),c={};c.print=i,c.printErr=i,c.onAbort=function(t){s&&s(t)},l.locateFile&&(c.locateFile=l.locateFile,delete l.locateFile),e(c).then((function(t){var n="object"===l.format?"JSON":l.format,e=new t.MediaInfo(n,l.coverData);u(new a(e,l))}))}}));
//# sourceMappingURL=mediainfo.min.js.map
|