var Module = (function() { var _scriptDir = import.meta.url; return ( function(Module) { Module = Module || {}; var e;e||(e=typeof Module !== 'undefined' ? Module : {});var aa,r;e.ready=new Promise(function(a,b){aa=a;r=b});var t={},u;for(u in e)e.hasOwnProperty(u)&&(t[u]=e[u]);var v="",x;v=self.location.href;_scriptDir&&(v=_scriptDir);0!==v.indexOf("blob:")?v=v.substr(0,v.lastIndexOf("/")+1):v="";x=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)};var y=e.printErr||console.warn.bind(console); for(u in t)t.hasOwnProperty(u)&&(e[u]=t[u]);t=null;var z;e.wasmBinary&&(z=e.wasmBinary);var noExitRuntime=e.noExitRuntime||!0;"object"!==typeof WebAssembly&&B("no native wasm support detected");var C,ba=!1,ca=new TextDecoder("utf8"); function da(a,b,c){var d=D;if(0=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}if(127>=g){if(b>=c)break;d[b++]=g}else{if(2047>=g){if(b+1>=c)break;d[b++]=192|g>>6}else{if(65535>=g){if(b+2>=c)break;d[b++]=224|g>>12}else{if(b+3>=c)break;d[b++]=240|g>>18;d[b++]=128|g>>12&63}d[b++]=128|g>>6&63}d[b++]=128|g&63}}d[b]=0}}var ea=new TextDecoder("utf-16le"); function fa(a,b){var c=a>>1;for(b=c+b/2;!(c>=b)&&E[c];)++c;return ea.decode(D.subarray(a,c<<1))}function ha(a,b,c){void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var f=0;f>1]=a.charCodeAt(f),b+=2;F[b>>1]=0;return b-d}function ia(a){return 2*a.length}function ja(a,b){for(var c=0,d="";!(c>=b/4);){var f=G[a+4*c>>2];if(0==f)break;++c;65536<=f?(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023)):d+=String.fromCharCode(f)}return d} function ka(a,b,c){void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var f=0;f=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}G[b>>2]=g;b+=4;if(b+4>c)break}G[b>>2]=0;return b-d}function la(a){for(var b=0,c=0;c=d&&++c;b+=4}return b}var I,ma,D,F,E,G,K,na,oa; function pa(){var a=C.buffer;I=a;e.HEAP8=ma=new Int8Array(a);e.HEAP16=F=new Int16Array(a);e.HEAP32=G=new Int32Array(a);e.HEAPU8=D=new Uint8Array(a);e.HEAPU16=E=new Uint16Array(a);e.HEAPU32=K=new Uint32Array(a);e.HEAPF32=na=new Float32Array(a);e.HEAPF64=oa=new Float64Array(a)}var L,qa=[],ra=[],sa=[];function ta(){var a=e.preRun.shift();qa.unshift(a)}var M=0,ua=null,N=null;e.preloadedImages={};e.preloadedAudios={}; function B(a){if(e.onAbort)e.onAbort(a);y(a);ba=!0;a=new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");r(a);throw a;}var O=(new URL("webp_dec.wasm",import.meta.url)).toString();function va(){try{if(O==O&&z)return new Uint8Array(z);if(x)return x(O);throw"both async and sync fetching of the wasm failed";}catch(a){B(a)}} function wa(){return z||"function"!==typeof fetch?Promise.resolve().then(function(){return va()}):fetch(O,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+O+"'";return a.arrayBuffer()}).catch(function(){return va()})}function xa(a){for(;0=b?"_"+a:a} function Ba(a,b){a=Aa(a);return(new Function("body","return function "+a+'() {\n "use strict"; return body.apply(this, arguments);\n};\n'))(b)}function Ca(a){var b=Error,c=Ba(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message};return c} var Da=void 0;function T(a){throw new Da(a);}var Ea=void 0;function Fa(a,b){function c(h){h=b(h);if(h.length!==d.length)throw new Ea("Mismatched type converter count");for(var p=0;p>2])}function La(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a} function Ma(a,b){switch(b){case 2:return function(c){return this.fromWireType(na[c>>2])};case 3:return function(c){return this.fromWireType(oa[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}function Na(a){var b=Function;if(!(b instanceof Function))throw new TypeError("new_ called with constructor type "+typeof b+" which is not a function");var c=Ba(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c} function Oa(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Pa(a,b){var c=e;if(void 0===c[a].A){var d=c[a];c[a]=function(){c[a].A.hasOwnProperty(arguments.length)||T("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[a].A+")!");return c[a].A[arguments.length].apply(this,arguments)};c[a].A=[];c[a].A[d.F]=d}} function Qa(a,b,c){e.hasOwnProperty(a)?((void 0===c||void 0!==e[a].A&&void 0!==e[a].A[c])&&T("Cannot register public name '"+a+"' twice"),Pa(a,a),e.hasOwnProperty(c)&&T("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),e[a].A[c]=b):(e[a]=b,void 0!==c&&(e[a].J=c))}function Ra(a,b){for(var c=[],d=0;d>2)+d]);return c} function Sa(a,b){var c=[];return function(){c.length=arguments.length;for(var d=0;d>1]}:function(d){return E[d>>1]};case 2:return c?function(d){return G[d>>2]}:function(d){return K[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}var Za={}; function $a(){return"object"===typeof globalThis?globalThis:Function("return this")()}function ab(a,b){var c=R[a];void 0===c&&T(b+" has unknown type "+Va(a));return c}for(var bb={},cb=Array(256),Y=0;256>Y;++Y)cb[Y]=String.fromCharCode(Y);za=cb;Da=e.BindingError=Ca("BindingError");Ea=e.InternalError=Ca("InternalError");e.count_emval_handles=function(){for(var a=0,b=5;b>g])},B:null})},r:function(a,b){b=P(b);U(a,{name:b,fromWireType:function(c){var d=V[c].value;Ja(c);return d},toWireType:function(c,d){return W(d)}, argPackAdvance:8,readValueFromPointer:Ka,B:null})},m:function(a,b,c){c=ya(c);b=P(b);U(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,f){if("number"!==typeof f&&"boolean"!==typeof f)throw new TypeError('Cannot convert "'+La(f)+'" to '+this.name);return f},argPackAdvance:8,readValueFromPointer:Ma(b,c),B:null})},i:function(a,b,c,d,f,g){var k=Ra(b,c);a=P(a);f=Ta(d,f);Qa(a,function(){Xa("Cannot call "+a+" due to unbound types",k)},b-1);Fa(k,function(h){var p=a,m=a;h=[h[0],null].concat(h.slice(1)); var n=f,q=h.length;2>q&&T("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var w=null!==h[1]&&!1,A=!1,l=1;l>>h}}var p=b.includes("unsigned");U(a,{name:b,fromWireType:g,toWireType:function(m,n){if("number"!==typeof n&&"boolean"!==typeof n)throw new TypeError('Cannot convert "'+La(n)+'" to '+this.name);if(nf)throw new TypeError('Passing a number "'+La(n)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is outside the valid range ['+d+", "+f+"]!");return p?n>>>0:n|0},argPackAdvance:8,readValueFromPointer:Ya(b,k,0!==d),B:null})},a:function(a, b,c){function d(g){g>>=2;var k=K;return new f(I,k[g+1],k[g])}var f=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=P(c);U(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{G:!0})},h:function(a,b){b=P(b);var c="std::string"===b;U(a,{name:b,fromWireType:function(d){var f=K[d>>2];if(c)for(var g=d+4,k=0;k<=f;++k){var h=d+4+k;if(k==f||0==D[h]){if(g){for(var p=g+(h-g),m=g;!(m>=p)&&D[m];)++m;g=ca.decode(D.subarray(g,m))}else g="";if(void 0=== n)var n=g;else n+=String.fromCharCode(0),n+=g;g=h+1}}else{n=Array(f);for(k=0;k=q&&(q=65536+((q&1023)<<10)|f.charCodeAt(++n)& 1023);127>=q?++m:m=2047>=q?m+2:65535>=q?m+3:m+4}return m}:function(){return f.length})(),h=db(4+k+1);K[h>>2]=k;if(c&&g)da(f,h+4,k+1);else if(g)for(g=0;g>2],n=k(),q,w=p+4,A=0;A<=m;++A){var l=p+4+A*b;if(A==m||0==n[l>>h])w=d(w,l-w),void 0===q?q=w:(q+=String.fromCharCode(0),q+=w),w=l+b}X(p);return q},toWireType:function(p,m){"string"!==typeof m&&T("Cannot pass non-string to C++ string type "+c);var n=g(m),q=db(4+n+b);K[q>>2]=n>>h;f(m,q+4,n+b);null!==p&&p.push(X,q);return q},argPackAdvance:8,readValueFromPointer:Ka,B:function(p){X(p)}})},o:function(a,b){b= P(b);U(a,{I:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},c:Ja,d:function(a){if(0===a)return W($a());var b=Za[a];a=void 0===b?P(a):b;return W($a()[a])},j:function(a){4>> 2) + "+ g+'], "parameter '+g+'");\nvar arg'+g+" = argType"+g+".readValueFromPointer(args);\nargs += argType"+g+"['argPackAdvance'];\n";f=(new Function("requireRegisteredType","Module","__emval_register",k+("var obj = new constructor("+f+");\nreturn __emval_register(obj);\n}\n")))(ab,e,W);bb[b]=f}return f(a,c,d)},l:function(){B()},q:function(a,b,c){D.copyWithin(a,b,b+c)},g:function(a){var b=D.length;a>>>=0;if(2147483648=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);d=Math.max(a, d);0>>16);pa();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1}}; (function(){function a(f){e.asm=f.exports;C=e.asm.s;pa();L=e.asm.y;ra.unshift(e.asm.t);M--;e.monitorRunDependencies&&e.monitorRunDependencies(M);0==M&&(null!==ua&&(clearInterval(ua),ua=null),N&&(f=N,N=null,f()))}function b(f){a(f.instance)}function c(f){return wa().then(function(g){return WebAssembly.instantiate(g,d)}).then(f,function(g){y("failed to asynchronously prepare wasm: "+g);B(g)})}var d={a:eb};M++;e.monitorRunDependencies&&e.monitorRunDependencies(M);if(e.instantiateWasm)try{return e.instantiateWasm(d, a)}catch(f){return y("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return z||"function"!==typeof WebAssembly.instantiateStreaming||O.startsWith("data:application/octet-stream;base64,")||"function"!==typeof fetch?c(b):fetch(O,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(g){y("wasm streaming compile failed: "+g);y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(r);return{}})(); e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.t).apply(null,arguments)};var db=e._malloc=function(){return(db=e._malloc=e.asm.u).apply(null,arguments)},X=e._free=function(){return(X=e._free=e.asm.v).apply(null,arguments)},Wa=e.___getTypeName=function(){return(Wa=e.___getTypeName=e.asm.w).apply(null,arguments)};e.___embind_register_native_and_builtin_types=function(){return(e.___embind_register_native_and_builtin_types=e.asm.x).apply(null,arguments)};var Z; N=function fb(){Z||gb();Z||(N=fb)}; function gb(){function a(){if(!Z&&(Z=!0,e.calledRun=!0,!ba)){xa(ra);aa(e);if(e.onRuntimeInitialized)e.onRuntimeInitialized();if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var b=e.postRun.shift();sa.unshift(b)}xa(sa)}}if(!(0