!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MediaInfo=e()}(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,e=function(){return(e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&(f=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Pe))throw t})),process.on("unhandledRejection",J),e.inspect=function(){return"[Emscripten Module object]"}):(l||p)&&(p?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.lastIndexOf("/")+1):"",a=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(u=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),e.print||console.log.bind(console);var y,m,v=e.printErr||console.warn.bind(console);for(o in i)i.hasOwnProperty(o)&&(e[o]=i[o]);i=null,e.arguments&&e.arguments,e.thisProgram&&(f=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&(y=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&J("no native wasm support detected");var g=!1;function w(t,e){t||J("Assertion failed: "+e)}var b="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function _(t,e){return t?function(t,e,n){for(var r=e+n,o=e;t[o]&&!(o>=r);)++o;if(o-e>16&&t.subarray&&b)return b.decode(t.subarray(e,o));for(var i="";e>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|u)}else i+=String.fromCharCode(a)}return i}(A,t,e):""}function C(t,e,n,r){if(!(r>0))return 0;for(var o=n,i=n+r-1,a=0;a=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&t.charCodeAt(++a)),u<=127){if(n>=i)break;e[n++]=u}else if(u<=2047){if(n+1>=i)break;e[n++]=192|u>>6,e[n++]=128|63&u}else if(u<=65535){if(n+2>=i)break;e[n++]=224|u>>12,e[n++]=128|u>>6&63,e[n++]=128|63&u}else{if(n+3>=i)break;e[n++]=240|u>>18,e[n++]=128|u>>12&63,e[n++]=128|u>>6&63,e[n++]=128|63&u}}return e[n]=0,n-o}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}var $,P,A,D,S,F,E,O,j,M,W="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function I(t,e){for(var n=t,r=n>>1,o=r+e/2;!(r>=o)&&S[r];)++r;if((n=r<<1)-t>32&&W)return W.decode(A.subarray(t,n));for(var i="",a=0;!(a>=e/2);++a){var u=D[t+2*a>>1];if(0==u)break;i+=String.fromCharCode(u)}return i}function k(t,e,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=e,o=(n-=2)<2*t.length?n/2:t.length,i=0;i>1]=a,e+=2}return D[e>>1]=0,e-r}function R(t){return 2*t.length}function U(t,e){for(var n=0,r="";!(n>=e/4);){var o=F[t+4*n>>2];if(0==o)break;if(++n,o>=65536){var i=o-65536;r+=String.fromCharCode(55296|i>>10,56320|1023&i)}else r+=String.fromCharCode(o)}return r}function x(t,e,n){if(void 0===n&&(n=2147483647),n<4)return 0;for(var r=e,o=r+n-4,i=0;i=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),F[e>>2]=a,(e+=4)+4>o)break}return F[e>>2]=0,e-r}function Y(t){for(var e=0,n=0;n=55296&&r<=57343&&++n,e+=4}return e}function B(t){$=t,e.HEAP8=P=new Int8Array(t),e.HEAP16=D=new Int16Array(t),e.HEAP32=F=new Int32Array(t),e.HEAPU8=A=new Uint8Array(t),e.HEAPU16=S=new Uint16Array(t),e.HEAPU32=E=new Uint32Array(t),e.HEAPF32=O=new Float32Array(t),e.HEAPF64=j=new Float64Array(t)}e.INITIAL_MEMORY;var H,z,G=[],V=[],N=[],q=0,L=null;function J(t){e.onAbort&&e.onAbort(t),v(t+=""),g=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.";var n=new WebAssembly.RuntimeError(t);throw r(n),n}function X(t){return t.startsWith("data:application/octet-stream;base64,")}function Z(t){try{if(t==H&&y)return new Uint8Array(y);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){J(t)}}function K(t){for(;t.length>0;){var n=t.shift();if("function"!=typeof n){var r=n.func;"number"==typeof r?void 0===n.arg?M.get(r)():M.get(r)(n.arg):r(void 0===n.arg?null:n.arg)}else n(e)}}function Q(t){this.excPtr=t,this.ptr=t-16,this.set_type=function(t){F[this.ptr+4>>2]=t},this.get_type=function(){return F[this.ptr+4>>2]},this.set_destructor=function(t){F[this.ptr+8>>2]=t},this.get_destructor=function(){return F[this.ptr+8>>2]},this.set_refcount=function(t){F[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,P[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=P[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,P[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=P[this.ptr+13>>0]},this.init=function(t,e){this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=F[this.ptr>>2];F[this.ptr>>2]=t+1},this.release_ref=function(){var t=F[this.ptr>>2];return F[this.ptr>>2]=t-1,1===t}}function tt(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)}}e.preloadedImages={},e.preloadedAudios={},X(H="MediaInfoModule.wasm")||(z=H,H=e.locateFile?e.locateFile(z,d):d+z);var et=void 0;function nt(t){for(var e="",n=t;A[n];)e+=et[A[n++]];return e}var rt={},ot={},it={};function at(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function ut(t,e){return t=at(t),new Function("body","return function "+t+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(e)}function st(t,e){var n=ut(e,(function(t){this.name=e,this.message=t;var n=new Error(t).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},n}var ct=void 0;function ft(t){throw new ct(t)}var lt=void 0;function pt(t){throw new lt(t)}function ht(t,e,n){function r(e){var r=n(e);r.length!==t.length&&pt("Mismatched type converter count");for(var o=0;o>2])}function Rt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Ut(t){this.rawDestructor&&this.rawDestructor(t)}function xt(t){null!==t&&t.delete()}function Yt(t,e,n){if(e===n)return t;if(void 0===n.baseClass)return null;var r=Yt(t,e,n.baseClass);return null===r?null:n.downcast(r)}function Bt(){return Object.keys(Gt).length}function Ht(){var t=[];for(var e in Gt)Gt.hasOwnProperty(e)&&t.push(Gt[e]);return t}function zt(t){$t=t,Pt.length&&$t&&$t(At)}var Gt={};function Vt(t,e){return e=function(t,e){for(void 0===e&&ft("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),Gt[e]}function Nt(t,e){return e.ptrType&&e.ptr||pt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&pt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},bt(Object.create(t,{$$:{value:e}}))}function qt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var n=Vt(this.registeredClass,e);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=e,n.$$.smartPtr=t,n.clone();var r=n.clone();return this.destructor(t),r}function o(){return this.isSmartPointer?Nt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Nt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),u=Ft[a];if(!u)return o.call(this);i=this.isConst?u.constPointerType:u.pointerType;var s=Yt(e,this.registeredClass,i.registeredClass);return null===s?o.call(this):this.isSmartPointer?Nt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:t}):Nt(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})}function Lt(t,e,n,r,o,i,a,u,s,c,f){this.name=t,this.registeredClass=e,this.isReference=n,this.isConst=r,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=u,this.rawConstructor=s,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Wt:r?(this.toWireType=Mt,this.destructorFunction=null):(this.toWireType=It,this.destructorFunction=null)}function Jt(t,n,r){return t.includes("j")?function(t,n,r){var o=e["dynCall_"+t];return r&&r.length?o.apply(null,[n].concat(r)):o.call(null,n)}(t,n,r):M.get(n).apply(null,r)}function Xt(t,e){var n,r,o,i=(t=nt(t)).includes("j")?(n=t,r=e,o=[],function(){o.length=arguments.length;for(var t=0;t>2)+r]);return n}function ee(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function ne(t,e,n,r,o){var i=e.length;i<2&&ft("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==n,u=!1,s=1;s0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",u)p+="runDestructors(destructors);\n";else for(s=a?1:2;s>2])};case 3:return function(t){return this.fromWireType(j[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function fe(t,e,n){switch(e){case 0:return n?function(t){return P[t]}:function(t){return A[t]};case 1:return n?function(t){return D[t>>1]}:function(t){return S[t>>1]};case 2:return n?function(t){return F[t>>2]}:function(t){return E[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function le(t){try{return m.grow(t-$.byteLength+65535>>>16),B(m.buffer),1}catch(t){}}var pe={};function he(){if(!he.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",_:f||"./this.program"};for(var e in pe)void 0===pe[e]?delete t[e]:t[e]=pe[e];var n=[];for(var e in t)n.push(e+"="+t[e]);he.strings=n}return he.strings}function de(t){return t%4==0&&(t%100!=0||t%400==0)}function ye(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var me=[31,29,31,30,31,30,31,31,30,31,30,31],ve=[31,28,31,30,31,30,31,31,30,31,30,31];function ge(t,e){for(var n=new Date(t.getTime());e>0;){var r=de(n.getFullYear()),o=n.getMonth(),i=(r?me:ve)[o];if(!(e>i-n.getDate()))return n.setDate(n.getDate()+e),n;e-=i-n.getDate()+1,n.setDate(1),o<11?n.setMonth(o+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function we(t,e,n,r){var o=F[r+40>>2],i={tm_sec:F[r>>2],tm_min:F[r+4>>2],tm_hour:F[r+8>>2],tm_mday:F[r+12>>2],tm_mon:F[r+16>>2],tm_year:F[r+20>>2],tm_wday:F[r+24>>2],tm_yday:F[r+28>>2],tm_isdst:F[r+32>>2],tm_gmtoff:F[r+36>>2],tm_zone:o?_(o):""},a=_(n),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)a=a.replace(new RegExp(s,"g"),u[s]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function d(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 y(t){var e=ge(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),o=d(n),i=d(r);return h(o,e)<=0?h(i,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return f[t.tm_mon].substring(0,3)},"%B":function(t){return f[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 l(t.tm_mday,2," ")},"%g":function(t){return y(t).toString().substring(2)},"%G":function(t){return y(t)},"%H":function(t){return p(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),p(e,2)},"%j":function(t){return p(t.tm_mday+ye(de(t.tm_year+1900)?me:ve,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 e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:ge(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(h(n,r)<0){var o=ye(de(r.getFullYear())?me:ve,r.getMonth()-1)-31,i=31-n.getDate()+o+r.getDate();return p(Math.ceil(i/7),2)}return 0===h(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),o=d(n),i=d(r),a=ge(new Date(t.tm_year+1900,0,1),t.tm_yday);return h(a,o)<0?"53":h(i,a)<=0?"01":(e=o.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var s in m)a.includes(s)&&(a=a.replace(new RegExp(s,"g"),m[s](i)));var v,g,w,b,$,A,D=(v=a,g=!1,b=w>0?w:T(v)+1,$=new Array(b),A=C(v,$,0,$.length),g&&($.length=A),$);return D.length>e?0:(function(t,e){P.set(t,e)}(D,t),D.length-1)}!function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);et=t}(),ct=e.BindingError=st(Error,"BindingError"),lt=e.InternalError=st(Error,"InternalError"),St.prototype.isAliasOf=yt,St.prototype.clone=_t,St.prototype.delete=Ct,St.prototype.isDeleted=Tt,St.prototype.deleteLater=Dt,Lt.prototype.getPointee=Rt,Lt.prototype.destructor=Ut,Lt.prototype.argPackAdvance=8,Lt.prototype.readValueFromPointer=kt,Lt.prototype.deleteObject=xt,Lt.prototype.fromWireType=qt,e.getInheritedInstanceCount=Bt,e.getLiveInheritedInstances=Ht,e.flushPendingDeletes=At,e.setDelayFunction=zt,Zt=e.UnboundTypeError=st(Error,"UnboundTypeError"),e.count_emval_handles=ie,e.get_first_emval=ae;var be={h:function(t){return Ce(t+16)+16},g:function(t,e,n){throw new Q(t).init(e,n),t},n:function(t,e,n,r,o){},k:function(t,e,n,r,o){var i=tt(n);dt(t,{name:e=nt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:o},argPackAdvance:8,readValueFromPointer:function(t){var r;if(1===n)r=P;else if(2===n)r=D;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+e);r=F}return this.fromWireType(r[t>>i])},destructorFunction:null})},u:function(t,n,r,o,i,a,u,s,c,f,l,p,h){l=nt(l),a=Xt(i,a),s&&(s=Xt(u,s)),f&&(f=Xt(c,f)),h=Xt(p,h);var d=at(l);!function(t,n,r){e.hasOwnProperty(t)?((void 0===r||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[r])&&ft("Cannot register public name '"+t+"' twice"),Et(e,t,t),e.hasOwnProperty(r)&&ft("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),e[t].overloadTable[r]=n):(e[t]=n,void 0!==r&&(e[t].numArguments=r))}(d,(function(){Qt("Cannot construct "+l+" due to unbound types",[o])})),ht([t,n,r],o?[o]:[],(function(n){var r,i;n=n[0],i=o?(r=n.registeredClass).instancePrototype:St.prototype;var u=ut(d,(function(){if(Object.getPrototypeOf(this)!==c)throw new ct("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new ct(l+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new ct("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),c=Object.create(i,{constructor:{value:u}});u.prototype=c;var p=new Ot(l,u,c,h,r,a,s,f),y=new Lt(l,p,!0,!1,!1),m=new Lt(l+"*",p,!1,!1,!1),v=new Lt(l+" const*",p,!1,!0,!1);return Ft[t]={pointerType:m,constPointerType:v},function(t,n,r){e.hasOwnProperty(t)||pt("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==r?e[t].overloadTable[r]=n:(e[t]=n,e[t].argCount=r)}(d,u),[y,m,v]}))},t:function(t,e,n,r,o,i){w(e>0);var a=te(e,n);o=Xt(r,o),ht([],[t],(function(t){var n="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new ct("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=function(){Qt("Cannot construct "+t.name+" due to unbound types",a)},ht([],a,(function(r){return r.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ne(n,r,null,o,i),[]})),[]}))},d:function(t,e,n,r,o,i,a,u){var s=te(n,r);e=nt(e),i=Xt(o,i),ht([],[t],(function(t){var r=(t=t[0]).name+"."+e;function o(){Qt("Cannot call "+r+" due to unbound types",s)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),u&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===n-2?(o.argCount=n-2,o.className=t.name,c[e]=o):(Et(c,e,r),c[e].overloadTable[n-2]=o),ht([],s,(function(o){var u=ne(r,o,t,i,a);return void 0===c[e].overloadTable?(u.argCount=n-2,c[e]=u):c[e].overloadTable[n-2]=u,[]})),[]}))},s:function(t,e){dt(t,{name:e=nt(e),fromWireType:function(t){var e=oe[t].value;return function(t){t>4&&0==--oe[t].refcount&&(oe[t]=void 0,re.push(t))}(t),e},toWireType:function(t,e){return ue(e)},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:null})},j:function(t,e,n){var r=tt(n);dt(t,{name:e=nt(e),fromWireType:function(t){return t},toWireType:function(t,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+se(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:ce(e,r),destructorFunction:null})},b:function(t,e,n,r,o){e=nt(e),-1===o&&(o=4294967295);var i=tt(n),a=function(t){return t};if(0===r){var u=32-8*n;a=function(t){return t<>>u}}var s=e.includes("unsigned");dt(t,{name:e,fromWireType:a,toWireType:function(t,n){if("number"!=typeof n&&"boolean"!=typeof n)throw new TypeError('Cannot convert "'+se(n)+'" to '+this.name);if(no)throw new TypeError('Passing a number "'+se(n)+'" from JS side to C/C++ side to an argument of type "'+e+'", which is outside the valid range ['+r+", "+o+"]!");return s?n>>>0:0|n},argPackAdvance:8,readValueFromPointer:fe(e,i,0!==r),destructorFunction:null})},a:function(t,e,n){var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=E,n=e[t>>=2],o=e[t+1];return new r($,o,n)}dt(t,{name:n=nt(n),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},f:function(t,e){var n="std::string"===(e=nt(e));dt(t,{name:e,fromWireType:function(t){var e,r=E[t>>2];if(n)for(var o=t+4,i=0;i<=r;++i){var a=t+4+i;if(i==r||0==A[a]){var u=_(o,a-o);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),o=a+1}}else{var s=new Array(r);for(i=0;i>2]=o,n&&r)C(e,A,i+4,o+1);else if(r)for(var a=0;a255&&(Te(i),ft("String has UTF-16 code units that do not fit in 8 bits")),A[i+4+a]=u}else for(a=0;a>2],a=i(),s=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>u]){var l=r(s,f-s);void 0===n?n=l:(n+=String.fromCharCode(0),n+=l),s=f+e}}return Te(t),n},toWireType:function(t,r){"string"!=typeof r&&ft("Cannot pass non-string to C++ string type "+n);var i=a(r),s=Ce(4+i+e);return E[s>>2]=i>>u,o(r,s+4,i+e),null!==t&&t.push(Te,s),s},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:function(t){Te(t)}})},l:function(t,e){dt(t,{isVoid:!0,name:e=nt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},i:function(){J()},o:function(t){var e,n,r=A.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=r*(1+.2/i);if(a=Math.min(a,t+100663296),le(Math.min(o,((e=Math.max(t,a))%(n=65536)>0&&(e+=n-e%n),e))))return!0}return!1},q:function(t,e){var n=0;return he().forEach((function(r,o){var i=e+n;F[t+4*o>>2]=i,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);n||(P[e>>0]=0)}(r,i),n+=r.length+1})),0},r:function(t,e){var n=he();F[t>>2]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),F[e>>2]=r,0},m:function t(e,n){var r=new Date(1e3*F[e>>2]);F[n>>2]=r.getUTCSeconds(),F[n+4>>2]=r.getUTCMinutes(),F[n+8>>2]=r.getUTCHours(),F[n+12>>2]=r.getUTCDate(),F[n+16>>2]=r.getUTCMonth(),F[n+20>>2]=r.getUTCFullYear()-1900,F[n+24>>2]=r.getUTCDay(),F[n+36>>2]=0,F[n+32>>2]=0;var o,i,a,u=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),s=(r.getTime()-u)/864e5|0;return F[n+28>>2]=s,t.GMTString||(t.GMTString=(i=T(o="GMT")+1,(a=Ce(i))&&C(o,P,a,i),a)),F[n+40>>2]=t.GMTString,n},p:function(t,e,n,r){return we(t,e,n,r)},c:function(t){var e=Date.now()/1e3|0;return t&&(F[t>>2]=e),e}};!function(){var t={a:be};function n(t,n){var r,o=t.exports;e.asm=o,B((m=e.asm.v).buffer),M=e.asm.y,r=e.asm.w,V.unshift(r),function(t){if(q--,e.monitorRunDependencies&&e.monitorRunDependencies(q),0==q&&L){var n=L;L=null,n()}}()}function o(t){n(t.instance)}function i(e){return(y||!l&&!p||"function"!=typeof fetch?Promise.resolve().then((function(){return Z(H)})):fetch(H,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+H+"'";return t.arrayBuffer()})).catch((function(){return Z(H)}))).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){v("failed to asynchronously prepare wasm: "+t),J(t)}))}if(q++,e.monitorRunDependencies&&e.monitorRunDependencies(q),e.instantiateWasm)try{return e.instantiateWasm(t,n)}catch(t){return v("Module.instantiateWasm callback failed with error: "+t),!1}(y||"function"!=typeof WebAssembly.instantiateStreaming||X(H)||"function"!=typeof fetch?i(o):fetch(H,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(o,(function(t){return v("wasm streaming compile failed: "+t),v("falling back to ArrayBuffer instantiation"),i(o)}))}))).catch(r)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.w).apply(null,arguments)};var _e,Ce=e._malloc=function(){return(Ce=e._malloc=e.asm.x).apply(null,arguments)},Te=e._free=function(){return(Te=e._free=e.asm.z).apply(null,arguments)},$e=e.___getTypeName=function(){return($e=e.___getTypeName=e.asm.A).apply(null,arguments)};function Pe(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Ae(t){function r(){_e||(_e=!0,e.calledRun=!0,g||(K(V),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)t=e.postRun.shift(),N.unshift(t);var t;K(N)}()))}q>0||(function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)t=e.preRun.shift(),G.unshift(t);var t;K(G)}(),q>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),r()}),1)):r()))}if(e.___embind_register_native_and_builtin_types=function(){return(e.___embind_register_native_and_builtin_types=e.asm.B).apply(null,arguments)},e.dynCall_iiijj=function(){return(e.dynCall_iiijj=e.asm.C).apply(null,arguments)},e.dynCall_viijii=function(){return(e.dynCall_viijii=e.asm.D).apply(null,arguments)},e.dynCall_iiiiij=function(){return(e.dynCall_iiiiij=e.asm.E).apply(null,arguments)},e.dynCall_iiiiijj=function(){return(e.dynCall_iiiiijj=e.asm.F).apply(null,arguments)},e.dynCall_iiiiiijj=function(){return(e.dynCall_iiiiiijj=e.asm.G).apply(null,arguments)},L=function t(){_e||Ae(),_e||(L=t)},e.run=Ae,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Ae(),e.ready}),r={coverData:!1,chunkSize:262144,format:"object",full:!1},o=function(){},i=function(){function t(t,e){this.wasmInstance=t,this.options=e}return t.prototype.analyzeData=function(t,e,n){var o=this,i=0;if(void 0===n)return new Promise((function(n,r){return o.analyzeData(t,e,(function(t,e){return e?r(e):n(t)}))}));var a=function(t){var a=function(){var c,f,l=function(t){u(t)?a():s()};try{var p=Math.min(null!==(c=o.options.chunkSize)&&void 0!==c?c:r.chunkSize,t-i);f=e(p,i)}catch(t){if(t instanceof Error)return n("",t);if("string"==typeof t)return n("",new Error(t))}f instanceof Promise?f.then(l).catch((function(t){return n("",t)})):void 0!==f&&l(f)},u=function(e){if(0===e.length||o.openBufferContinue(e,e.length))return!1;var n=o.openBufferContinueGotoGet();return-1===n?i+=e.length:(i=n,o.openBufferInit(t,n)),!0},s=function(){o.openBufferFinalize();var t=o.inform();n("object"===o.options.format?JSON.parse(t):t)};o.openBufferInit(t,i),a()},u=t();u instanceof Promise?u.then(a):a(u)},t.prototype.close=function(){this.wasmInstance.close()},t.prototype.inform=function(){return this.wasmInstance.inform()},t.prototype.openBufferContinue=function(t,e){return!!(8&this.wasmInstance.open_buffer_continue(t,e))},t.prototype.openBufferContinueGotoGet=function(){var t=this.wasmInstance.open_buffer_continue_goto_get_lower(),e=this.wasmInstance.open_buffer_continue_goto_get_upper();return-1==t&&-1==e?-1:t<0?t+4294967296+4294967296*e:t+4294967296*e},t.prototype.openBufferFinalize=function(){this.wasmInstance.open_buffer_finalize()},t.prototype.openBufferInit=function(t,e){this.wasmInstance.open_buffer_init(t,e)},t}();return function t(a,u,s){if(void 0===a&&(a={}),void 0===u)return new Promise((function(e,n){return t(a,e,n)}));var c=e(e({},r),a),f={};f.print=o,f.printErr=o,f.onAbort=function(t){s&&s(t)},c.locateFile&&(f.locateFile=c.locateFile,delete c.locateFile),n(f).then((function(t){var e,n,o="object"===c.format?"JSON":c.format,a=new t.MediaInfo(null!=o?o:r.format,null!==(e=c.coverData)&&void 0!==e?e:r.coverData,null!==(n=c.full)&&void 0!==n?n:r.full);u(new i(a,c))})).catch((function(t){s&&s(t)}))}})); //# sourceMappingURL=mediainfo.min.js.map //https://github.com/buzz/mediainfo.js 2022.11.28