text: define("./static/c/wp2_enc_mt_simd-04246b1e.js",["module","exports"],(function(r,n){var e,t=(e=new URL("/c/wp2_enc_mt_simd-04246b1e.js",location).href,function(r){function n(){return A.buffer!=T&&J(A.buffer),x}function t(){return A.buffer!=T&&J(A.buffer),C}function a(){return A.buffer!=T&&J(A.buffer),k}function i(){return A.buffer!=T&&J(A.buffer),S}function o(){return A.buffer!=T&&J(A.buffer),I}function u(){return A.buffer!=T&&J(A.buffer),W}function s(){return A.buffer!=T&&J(A.buffer),O}var c,f,l;r=r||{},c||(c=void 0!==r?r:{}),c.ready=new Promise((function(r,n){f=r,l=n}));var d,_={};for(d in c)c.hasOwnProperty(d)&&(_[d]=c[d]);var p=c.ENVIRONMENT_IS_PTHREAD||!1;p&&(T=c.buffer);var h,m="";function v(r){return c.locateFile?c.locateFile(r,m):m+r}m=self.location.href,e&&(m=e),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",h=function(r){var n=new XMLHttpRequest;return n.open("GET",r,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)};var y,b,g=c.print||console.log.bind(console),w=c.printErr||console.warn.bind(console);for(d in _)_.hasOwnProperty(d)&&(c[d]=_[d]);_=null,c.wasmBinary&&(y=c.wasmBinary),c.noExitRuntime&&(b=c.noExitRuntime),"object"!=typeof WebAssembly&&tr("no native wasm support detected");var A,E,T,x,C,k,S,I,W,P,O,M=0,j=0,R=!1;function B(r,n){r||tr("Assertion failed: "+n)}function F(r,n,e){e=n+e;for(var t="";!(n>=e);){var a=r[n++];if(!a)break;if(128&a){var i=63&r[n++];if(192==(224&a))t+=String.fromCharCode((31&a)<<6|i);else{var o=63&r[n++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&r[n++])?t+=String.fromCharCode(a):(a-=65536,t+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else t+=String.fromCharCode(a)}return t}function G(r,n){return r?F(t(),r,n):""}function L(r,n,e){var a=t();if(0<e){e=n+e-1;for(var i=0;i<r.length;++i){var o=r.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&r.charCodeAt(++i)),127>=o){if(n>=e)break;a[n++]=o}else{if(2047>=o){if(n+1>=e)break;a[n++]=192|o>>6}else{if(65535>=o){if(n+2>=e)break;a[n++]=224|o>>12}else{if(n+3>=e)break;a[n++]=240|o>>18,a[n++]=128|o>>12&63}a[n++]=128|o>>6&63}a[n++]=128|63&o}}a[n]=0}}function D(r){for(var n=0,e=0;e<r.length;++e){var t=r.charCodeAt(e);55296<=t&&57343>=t&&(t=65536+((1023&t)<<10)|1023&r.charCodeAt(++e)),127>=t?++n:n=2047>=t?n+2:65535>=t?n+3:n+4}return n}function U(r,n){for(var e=0,t="";;){var i=a()[r+2*e>>1];if(0==i||e==n/2)return t;++e,t+=String.fromCharCode(i)}}function N(r,n,e){if(void 0===e&&(e=2147483647),2>e)return 0;var t=n;e=(e-=2)<2*r.length?e/2:r.length;for(var i=0;i<e;++i){var o=r.charCodeAt(i);a()[n>>1]=o,n+=2}return a()[n>>1]=0,n-t}function H(r){return 2*r.length}function V(r,n){for(var e=0,t="";!(e>=n/4);){var a=o()[r+4*e>>2];if(0==a)break;++e,65536<=a?(a-=65536,t+=String.fromCharCode(55296|a>>10,56320|1023&a)):t+=String.fromCharCode(a)}return t}function q(r,n,e){if(void 0===e&&(e=2147483647),4>e)return 0;var t=n;e=t+e-4;for(var a=0;a<r.length;++a){var i=r.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++a)),o()[n>>2]=i,(n+=4)+4>e)break}return o()[n>>2]=0,n-t}function X(r){for(var n=0,e=0;e<r.length;++e){var t=r.charCodeAt(e);55296<=t&&57343>=t&&++e,n+=4}return n}function J(r){T=r,c.HEAP8=x=new Int8Array(r),c.HEAP16=k=new Int16Array(r),c.HEAP32=I=new Int32Array(r),c.HEAPU8=C=new Uint8Array(r),c.HEAPU16=S=new Uint16Array(r),c.HEAPU32=W=new Uint32Array(r),c.HEAPF32=P=new Float32Array(r),c.HEAPF64=O=new Float64Array(r)}var Q=c.INITIAL_MEMORY||16777216;if(p)A=c.wasmMemory,T=c.buffer;else if(c.wasmMemory)A=c.wasmMemory;else if(!((A=new WebAssembly.Memory({initial:Q/65536,maximum:32768,shared:!0})).buffer instanceof SharedArrayBuffer))throw w("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"),Error("bad memory");A&&(T=A.buffer),Q=T.byteLength,J(T);var z,K=[],Y=[],Z=[],$=[];function rr(){var r=c.preRun.shift();K.unshift(r)}var nr=0,er=null;function tr(r){throw c.onAbort&&c.onAbort(r),p&&console.error("Pthread aborting at "+Error().stack),w(r),R=!0,r=new WebAssembly.RuntimeError("abort("+r+"). Build with -s ASSERTIONS=1 for more info."),l(r),r}function ar(){var r=ir;return String.prototype.startsWith?r.startsWith("data:application/octet-stream;base64,"):0===r.indexOf("data:application/octet-stream;base64,")}c.preloadedImages={},c.preloadedAudios={};var ir="wp2_enc_mt_simd.wasm";function or(){try{if(y)return new Uint8Array(y);if(h)return h(ir);throw"both async and sync fetching of the wasm failed"}catch(r){tr(r)}}ar()||(ir=v(ir));var ur={109469:function(r,n){setTimeout((function(){Wn(r,n)}),0)},109547:function(){throw"Canceled!"}};function sr(r){for(;0<r.length;){var n=r.shift();if("function"==typeof n)n(c);else{var e=n.ob;"number"==typeof e?void 0===n.Ma?z.get(e)():z.get(e)(n.Ma):e(void 0===n.Ma?null:n.Ma)}}}function cr(r,n,e){return-1!=r.indexOf("j")?e&&e.length?c["dynCall_"+r].apply(null,[n].concat(e)):c["dynCall_"+r].call(null,n):z.get(n).apply(null,e)}c.dynCall=cr;var fr=0,lr=0,dr=0;function _r(r,n,e){fr=0|r,dr=0|n,lr=0|e}function pr(r,e){if(0>=r||r>n().length||1&r||0>e)return-28;if(0==e)return 0;2147483647<=e&&(e=1/0);var t=Atomics.load(o(),vr.eb>>2),a=0;if(t==r&&Atomics.compareExchange(o(),vr.eb>>2,t,0)==t&&(a=1,0>=--e))return 1;if(0<=(r=Atomics.notify(o(),r>>2,e)))return r+a;throw"Atomics.notify returned an unexpected value "+r}function hr(r){if(p)throw"Internal Error! cleanupThread() can only ever be called from main application thread!";if(!r)throw"Internal Error! Null pthread_ptr in cleanupThread!";o()[r+12>>2]=0,(r=vr.Ga[r])&&vr.Sa(r.worker)}c.registerPthreadPtr=_r,c._emscripten_futex_wake=pr;var mr,vr={Rb:1,Yb:{hb:0,ib:0},Ea:[],Ia:[],wb:function(){for(var r=navigator.hardwareConcurrency,n=0;n<r;++n)vr.Ya()},xb:function(){vr.Ca=gn(232);for(var r=0;58>r;++r)u()[vr.Ca/4+r]=0;o()[vr.Ca+12>>2]=vr.Ca,r=vr.Ca+156,o()[r>>2]=r;var n=gn(512);for(r=0;128>r;++r)u()[n/4+r]=0;Atomics.store(u(),vr.Ca+104>>2,n),Atomics.store(u(),vr.Ca+40>>2,vr.Ca),Atomics.store(u(),vr.Ca+44>>2,42),vr.bb(),_r(vr.Ca,!1,1),In(vr.Ca)},yb:function(){vr.bb(),f(c),vr.receiveObjectTransfer=vr.Db,vr.setThreadStatus=vr.Eb,vr.threadCancel=vr.Ob,vr.threadExit=vr.Pb},bb:function(){vr.eb=Rn},Ga:{},Xa:[],Eb:function(){},gb:function(){for(;0<vr.Xa.length;)vr.Xa.pop()();p&&M&&kn()},Pb:function(r){var n=0|fr;n&&(Atomics.store(u(),n+4>>2,r),Atomics.store(u(),n+0>>2,1),Atomics.store(u(),n+60>>2,1),Atomics.store(u(),n+64>>2,0),vr.gb(),pr(n+0,2147483647),_r(0,0,0),M=0,p&&postMessage({cmd:"exit"}))},Ob:function(){vr.gb(),Atomics.store(u(),M+4>>2,-1),Atomics.store(u(),M+0>>2,1),pr(M+0,2147483647),M=j=0,_r(0,0,0),postMessage({cmd:"cancelDone"})},ec:function(){for(var r in vr.Ga){var n=vr.Ga[r];n&&n.worker&&vr.Sa(n.worker)}for(vr.Ga={},r=0;r<vr.Ea.length;++r){var e=vr.Ea[r];e.terminate()}for(vr.Ea=[],r=0;r<vr.Ia.length;++r)n=(e=vr.Ia[r]).Da,vr.Va(n),e.terminate();vr.Ia=[]},Va:function(r){if(r){if(r.threadInfoStruct){var n=o()[r.threadInfoStruct+104>>2];o()[r.threadInfoStruct+104>>2]=0,bn(n),bn(r.threadInfoStruct)}r.threadInfoStruct=0,r.Ta&&r.Ja&&bn(r.Ja),r.Ja=0,r.worker&&(r.worker.Da=null)}},Sa:function(r){delete vr.Ga[r.Da.jb],vr.Ea.push(r),vr.Ia.splice(vr.Ia.indexOf(r),1),vr.Va(r.Da),r.Da=void 0},Db:function(){},cb:function(r,n){r.onmessage=function(e){var t=e.data,a=t.cmd;if(r.Da&&(vr.Ua=r.Da.threadInfoStruct),t.targetThread&&t.targetThread!=(0|fr)){var i=vr.Ga[t.dc];i?i.worker.postMessage(e.data,t.transferList):console.error('Internal error! Worker sent a message "'+a+'" to target pthread '+t.targetThread+", but that thread no longer exists!")}else if("processQueuedMainThreadWork"===a)Sn();else if("spawnThread"===a)dn(e.data);else if("cleanupThread"===a)hr(t.thread);else if("killThread"===a){if(e=t.thread,p)throw"Internal Error! killThread() can only ever be called from main application thread!";if(!e)throw"Internal Error! Null pthread_ptr in killThread!";o()[e+12>>2]=0,(e=vr.Ga[e]).worker.terminate(),vr.Va(e),vr.Ia.splice(vr.Ia.indexOf(e.worker),1),e.worker.Da=void 0}else if("cancelThread"===a){if(e=t.thread,p)throw"Internal Error! cancelThread() can only ever be called from main application thread!";if(!e)throw"Internal Error! Null pthread_ptr in cancelThread!";vr.Ga[e].worker.postMessage({cmd:"cancel"})}else"loaded"===a?(r.loaded=!0,n&&n(r),r.Oa&&(r.Oa(),delete r.Oa)):"print"===a?g("Thread "+t.threadId+": "+t.text):"printErr"===a?w("Thread "+t.threadId+": "+t.text):"alert"===a?alert("Thread "+t.threadId+": "+t.text):"exit"===a?r.Da&&Atomics.load(u(),r.Da.jb+68>>2)&&vr.Sa(r):"cancelDone"===a?vr.Sa(r):"objectTransfer"!==a&&("setimmediate"===e.data.target?r.postMessage(e.data):w("worker sent an unknown command "+a));vr.Ua=void 0},r.onerror=function(r){w("pthread sent an error! "+r.filename+":"+r.lineno+": "+r.message)},r.postMessage({cmd:"load",urlOrBlob:c.mainScriptUrlOrBlob||e,wasmMemory:A,wasmModule:E})},Ya:function(){var r=v("wp2_enc_mt_simd.worker.js");vr.Ea.push(new Worker(r))},pb:function(){return 0==vr.Ea.length&&(vr.Ya(),vr.cb(vr.Ea[0])),0<vr.Ea.length?vr.Ea.pop():null},Sb:function(r){for(r=performance.now()+r;performance.now()<r;);}};function yr(r,n){vr.Xa.push((function(){z.get(r)(n)}))}function br(r){this.Na=r-16,this.Jb=function(r){o()[this.Na+8>>2]=r},this.Gb=function(r){o()[this.Na+0>>2]=r},this.Hb=function(){o()[this.Na+4>>2]=0},this.Fb=function(){n()[this.Na+12>>0]=0},this.Ib=function(){n()[this.Na+13>>0]=0},this.ub=function(r,n){this.Jb(r),this.Gb(n),this.Hb(),this.Fb(),this.Ib()}}c.establishStackSpace=function(r){Tn(r)},c.getNoExitRuntime=function(){return b},mr=p?function(){return performance.now()-c.__performance_now_clock_drift}:function(){return performance.now()};var gr={};function wr(r){for(;r.length;){var n=r.pop();r.pop()(n)}}function Ar(r){return this.fromWireType(u()[r>>2])}var Er={},Tr={},xr={};function Cr(r){if(void 0===r)return"_unknown";var n=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=n&&57>=n?"_"+r:r}function kr(r,n){return r=Cr(r),new Function("body","return function "+r+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(n)}function Sr(r){var n=Error,e=kr(r,(function(n){this.name=r,this.message=n,void 0!==(n=Error(n).stack)&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var Ir=void 0;function Wr(r,n,e){function t(n){if((n=e(n)).length!==r.length)throw new Ir("Mismatched type converter count");for(var t=0;t<r.length;++t)Br(r[t],n[t])}r.forEach((function(r){xr[r]=n}));var a=Array(n.length),i=[],o=0;n.forEach((function(r,n){Tr.hasOwnProperty(r)?a[n]=Tr[r]:(i.push(r),Er.hasOwnProperty(r)||(Er[r]=[]),Er[r].push((function(){a[n]=Tr[r],++o===i.length&&t(a)})))})),0===i.length&&t(a)}function Pr(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}var Or=void 0;function Mr(r){for(var n="";t()[r];)n+=Or[t()[r++]];return n}var jr=void 0;function Rr(r){throw new jr(r)}function Br(r,n,e){if(e=e||{},!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=n.name;if(r||Rr('type "'+t+'" must have a positive integer typeid pointer'),Tr.hasOwnProperty(r)){if(e.tb)return;Rr("Cannot register type '"+t+"' twice")}Tr[r]=n,delete xr[r],Er.hasOwnProperty(r)&&(n=Er[r],delete Er[r],n.forEach((function(r){r()})))}var Fr=[],Gr=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Lr(r){4<r&&0==--Gr[r].Wa&&(Gr[r]=void 0,Fr.push(r))}function Dr(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var n=Fr.length?Fr.pop():Gr.length;return Gr[n]={Wa:1,value:r},n}}function Ur(r){if(null===r)return"null";var n=typeof r;return"object"===n||"array"===n||"function"===n?r.toString():""+r}function Nr(r,n){switch(n){case 2:return function(r){return this.fromWireType((A.buffer!=T&&J(A.buffer),P)[r>>2])};case 3:return function(r){return this.fromWireType(s()[r>>3])};default:throw new TypeError("Unknown float type: "+r)}}function Hr(r,n,e){c.hasOwnProperty(r)?((void 0===e||void 0!==c[r].Fa&&void 0!==c[r].Fa[e])&&Rr("Cannot register public name '"+r+"' twice"),function(r,n){var e=c;if(void 0===e[r].Fa){var t=e[r];e[r]=function(){return e[r].Fa.hasOwnProperty(arguments.length)||Rr("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[r].Fa+")!"),e[r].Fa[arguments.length].apply(this,arguments)},e[r].Fa=[],e[r].Fa[t.lb]=t}}(r,r),c.hasOwnProperty(e)&&Rr("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),c[r].Fa[e]=n):(c[r]=n,void 0!==e&&(c[r].ac=e))}function Vr(r,n){var e=-1!=(r=Mr(r)).indexOf("j")?function(r,n){B(0<=r.indexOf("j"),"getDynCaller should only be called with i64 sigs");var e=[];return function(){e.length=arguments.length;for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return cr(r,n,e)}}(r,n):z.get(n);return"function"!=typeof e&&Rr("unknown function pointer with signature "+r+": "+n),e}var qr=void 0;function Xr(r){var n=Mr(r=wn(r));return bn(r),n}function Jr(r,e,s){switch(e){case 0:return s?function(r){return n()[r]}:function(r){return t()[r]};case 1:return s?function(r){return a()[r>>1]}:function(r){return i()[r>>1]};case 2:return s?function(r){return o()[r>>2]}:function(r){return u()[r>>2]};default:throw new TypeError("Unknown integer type: "+r)}}var Qr={};function zr(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Kr(r,n){var e=Tr[r];return void 0===e&&Rr(n+" has unknown type "+Xr(r)),e}var Yr={};function Zr(r,e,t){if(0>=r||r>n().length||1&r)return-28;if("timed-out"===(r=Atomics.wait(o(),r>>2,e,t)))return-73;if("not-equal"===r)return-6;if("ok"===r)return 0;throw"Atomics.wait returned an unexpected value "+r}function $r(r,n){for(var e=arguments.length-2,t=En(),a=xn(8*e),i=a>>3,o=0;o<e;o++)s()[i+o]=arguments[2+o];return e=On(r,e,a,n),Tn(t),e}var rn=[],nn=[],en=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0];function tn(r){return r=2<r?G(r):r,en[r]||("undefined"!=typeof document?document.querySelector(r):void 0)}function an(r,n,e){var t=tn(r);if(!t)return-4;if(t.Ra&&(o()[t.Ra>>2]=n,o()[t.Ra+4>>2]=e),!t.fb&&t.Ub){if(t.Ra){t=o()[t.Ra+8>>2],r=r?G(r):"";var a=En(),i=xn(12),u=0;if(r){u=D(r)+1;var s=gn(u);L(r,s,u),u=s}return o()[i>>2]=u,o()[i+4>>2]=n,o()[i+8>>2]=e,Mn(0,t,657457152,0,u,i),Tn(a),1}return-4}return t.fb&&(t=t.fb),r=!1,t.Qa&&t.Qa.Pa&&(r=0===(r=t.Qa.Pa.getParameter(2978))[0]&&0===r[1]&&r[2]===t.width&&r[3]===t.height),t.width=n,t.height=e,r&&t.Qa.Pa.viewport(0,0,n,e),0}function on(r,n,e){return p?$r(1,1,r,n,e):an(r,n,e)}var un=["default","low-power","high-performance"],sn=[null,[],[]];function cn(r){return p?$r(2,1,r):0}function fn(r,n,e,t,a){if(p)return $r(3,1,r,n,e,t,a)}function ln(r,n,e,a){if(p)return $r(4,1,r,n,e,a);for(var i=0,u=0;u<e;u++){for(var s=o()[n+8*u>>2],c=o()[n+(8*u+4)>>2],f=0;f<c;f++){var l=t()[s+f],d=sn[r];0===l||10===l?((1===r?g:w)(F(d,0)),d.length=0):d.push(l)}i+=c}return o()[a>>2]=i,0}function dn(r){if(p)throw"Internal Error! spawnThread() can only ever be called from main application thread!";var n=vr.pb();if(void 0!==n.Da)throw"Internal error!";if(!r.Ka)throw"Internal error, no pthread ptr!";vr.Ia.push(n);for(var e=gn(512),t=0;128>t;++t)o()[e+4*t>>2]=0;var a=r.Ja+r.La,i=(t=vr.Ga[r.Ka]={worker:n,Ja:r.Ja,La:r.La,Ta:r.Ta,jb:r.Ka,threadInfoStruct:r.Ka}).threadInfoStruct>>2;Atomics.store(u(),i,0),Atomics.store(u(),i+1,0),Atomics.store(u(),i+2,0),Atomics.store(u(),i+17,r.Za),Atomics.store(u(),i+26,e),Atomics.store(u(),i+12,0),Atomics.store(u(),i+10,t.threadInfoStruct),Atomics.store(u(),i+11,42),Atomics.store(u(),i+27,r.La),Atomics.store(u(),i+21,r.La),Atomics.store(u(),i+20,a),Atomics.store(u(),i+29,a),Atomics.store(u(),i+30,r.Za),Atomics.store(u(),i+32,r.hb),Atomics.store(u(),i+33,r.ib),e=An()+40,Atomics.store(u(),i+44,e),n.Da=t;var s={cmd:"run",start_routine:r.Nb,arg:r.Ma,threadInfoStruct:r.Ka,selfThreadId:r.Ka,parentThreadId:r.Ab,stackBase:r.Ja,stackSize:r.La};n.Oa=function(){s.time=performance.now(),n.postMessage(s,r.Qb)},n.loaded&&(n.Oa(),delete n.Oa)}function _n(){return 0|fr}c._pthread_self=_n,p||vr.wb(),Ir=c.InternalError=Sr("InternalError");for(var pn=Array(256),hn=0;256>hn;++hn)pn[hn]=String.fromCharCode(hn);Or=pn,jr=c.BindingError=Sr("BindingError"),c.count_emval_handles=function(){for(var r=0,n=5;n<Gr.length;++n)void 0!==Gr[n]&&++r;return r},c.get_first_emval=function(){for(var r=5;r<Gr.length;++r)if(void 0!==Gr[r])return Gr[r];return null},qr=c.UnboundTypeError=Sr("UnboundTypeError");var mn=[null,on,cn,fn,ln];p||Y.push({ob:function(){yn()}});var vn={h:function(r,n,e,t){tr("Assertion failed: "+G(r)+", at: "+[n?G(n):"unknown filename",e,t?G(t):"unknown function"])},Q:function(r){return gn(r+16)+16},U:function(r,n){return yr(r,n)},P:function(r,n,e){throw new br(r).ub(n,e),r},y:function(r){var n=gr[r];delete gr[r];var e=n.Bb,t=n.Cb,a=n.ab;Wr([r],a.map((function(r){return r.sb})).concat(a.map((function(r){return r.Lb}))),(function(r){var i={};return a.forEach((function(n,e){var t=r[e],o=n.qb,u=n.rb,s=r[e+a.length],c=n.Kb,f=n.Mb;i[n.nb]={read:function(r){return t.fromWireType(o(u,r))},write:function(r,n){var e=[];c(f,r,s.toWireType(e,n)),wr(e)}}})),[{name:n.name,fromWireType:function(r){var n,e={};for(n in i)e[n]=i[n].read(r);return t(r),e},toWireType:function(r,n){for(var a in i)if(!(a in n))throw new TypeError('Missing field:  "'+a+'"');var o=e();for(a in i)i[a].write(o,n[a]);return null!==r&&r.push(t,o),o},argPackAdvance:8,readValueFromPointer:Ar,Ha:t}]}))},N:function(r,e,t,i,u){var s=Pr(t);Br(r,{name:e=Mr(e),fromWireType:function(r){return!!r},toWireType:function(r,n){return n?i:u},argPackAdvance:8,readValueFromPointer:function(r){if(1===t)var i=n();else if(2===t)i=a();else{if(4!==t)throw new TypeError("Unknown boolean type size: "+e);i=o()}return this.fromWireType(i[r>>s])},Ha:null})},M:function(r,n){Br(r,{name:n=Mr(n),fromWireType:function(r){var n=Gr[r].value;return Lr(r),n},toWireType:function(r,n){return Dr(n)},argPackAdvance:8,readValueFromPointer:Ar,Ha:null})},u:function(r,n,e){e=Pr(e),Br(r,{name:n=Mr(n),fromWireType:function(r){return r},toWireType:function(r,n){if("number"!=typeof n&&"boolean"!=typeof n)throw new TypeError('Cannot convert "'+Ur(n)+'" to '+this.name);return n},argPackAdvance:8,readValueFromPointer:Nr(n,e),Ha:null})},x:function(r,n,e,t,a,i){var u=function(r,n){for(var e=[],t=0;t<r;t++)e.push(o()[(n>>2)+t]);return e}(n,e);r=Mr(r),a=Vr(t,a),Hr(r,(function(){!function(r,n){var e=[],t={};throw n.forEach((function r(n){t[n]||Tr[n]||(xr[n]?xr[n].forEach(r):(e.push(n),t[n]=!0))})),new qr(r+": "+e.map(Xr).join([", "]))}("Cannot call "+r+" due to unbound types",u)}),n-1),Wr([],u,(function(e){var t=r,o=r;e=[e[0],null].concat(e.slice(1));var u=a,s=e.length;2>s&&Rr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var f=null!==e[1]&&!1,l=!1,d=1;d<e.length;++d)if(null!==e[d]&&void 0===e[d].Ha){l=!0;break}var _="void"!==e[0].name,p="",h="";for(d=0;d<s-2;++d)p+=(0!==d?", ":"")+"arg"+d,h+=(0!==d?", ":"")+"arg"+d+"Wired";o="return function "+Cr(o)+"("+p+") {\nif (arguments.length !== "+(s-2)+") {\nthrowBindingError('function "+o+" called with ' + arguments.length + ' arguments, expected "+(s-2)+" args!');\n}\n",l&&(o+="var destructors = [];\n");var m=l?"destructors":"null";for(p="throwBindingError invoker fn runDestructors retType classParam".split(" "),u=[Rr,u,i,wr,e[0],e[1]],f&&(o+="var thisWired = classParam.toWireType("+m+", this);\n"),d=0;d<s-2;++d)o+="var arg"+d+"Wired = argType"+d+".toWireType("+m+", arg"+d+"); // "+e[d+2].name+"\n",p.push("argType"+d),u.push(e[d+2]);if(f&&(h="thisWired"+(0<h.length?", ":"")+h),o+=(_?"var rv = ":"")+"invoker(fn"+(0<h.length?", ":"")+h+");\n",l)o+="runDestructors(destructors);\n";else for(d=f?1:2;d<e.length;++d)s=1===d?"thisWired":"arg"+(d-2)+"Wired",null!==e[d].Ha&&(o+=s+"_dtor("+s+"); // "+e[d].name+"\n",p.push(s+"_dtor"),u.push(e[d].Ha));if(_&&(o+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p.push(o+"}\n"),e=function(r){var n=Function;if(!(n instanceof Function))throw new TypeError("new_ called with constructor type "+typeof n+" which is not a function");var e=kr(n.name||"unknownFunctionName",(function(){}));return e.prototype=n.prototype,e=new e,(r=n.apply(e,r))instanceof Object?r:e}(p).apply(null,u),d=n-1,!c.hasOwnProperty(t))throw new Ir("Replacing nonexistant public symbol");return void 0!==c[t].Fa&&void 0!==d?c[t].Fa[d]=e:(c[t]=e,c[t].lb=d),[]}))},j:function(r,n,e,t,a){function i(r){return r}n=Mr(n),-1===a&&(a=4294967295);var o=Pr(e);if(0===t){var u=32-8*e;i=function(r){return r<<u>>>u}}var s=-1!=n.indexOf("unsigned");Br(r,{name:n,fromWireType:i,toWireType:function(r,e){if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+Ur(e)+'" to '+this.name);if(e<t||e>a)throw new TypeError('Passing a number "'+Ur(e)+'" from JS side to C/C++ side to an argument of type "'+n+'", which is outside the valid range ['+t+", "+a+"]!");return s?e>>>0:0|e},argPackAdvance:8,readValueFromPointer:Jr(n,o,0!==t),Ha:null})},g:function(r,n,e){function t(r){r>>=2;var n=u();return new a(T,n[r+1],n[r])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];Br(r,{name:e=Mr(e),fromWireType:t,argPackAdvance:8,readValueFromPointer:t},{tb:!0})},v:function(r,n){var e="std::string"===(n=Mr(n));Br(r,{name:n,fromWireType:function(r){var n=u()[r>>2];if(e)for(var a=r+4,i=0;i<=n;++i){var o=r+4+i;if(i==n||0==t()[o]){if(a=G(a,o-a),void 0===s)var s=a;else s+=String.fromCharCode(0),s+=a;a=o+1}}else{for(s=Array(n),i=0;i<n;++i)s[i]=String.fromCharCode(t()[r+4+i]);s=s.join("")}return bn(r),s},toWireType:function(r,n){n instanceof ArrayBuffer&&(n=new Uint8Array(n));var a="string"==typeof n;a||n instanceof Uint8Array||n instanceof Uint8ClampedArray||n instanceof Int8Array||Rr("Cannot pass non-string to std::string");var i=(e&&a?function(){return D(n)}:function(){return n.length})(),o=gn(4+i+1);if(u()[o>>2]=i,e&&a)L(n,o+4,i+1);else if(a)for(a=0;a<i;++a){var s=n.charCodeAt(a);255<s&&(bn(o),Rr("String has UTF-16 code units that do not fit in 8 bits")),t()[o+4+a]=s}else for(a=0;a<i;++a)t()[o+4+a]=n[a];return null!==r&&r.push(bn,o),o},argPackAdvance:8,readValueFromPointer:Ar,Ha:function(r){bn(r)}})},p:function(r,n,e){if(e=Mr(e),2===n)var t=U,a=N,o=H,s=function(){return i()},c=1;else 4===n&&(t=V,a=q,o=X,s=function(){return u()},c=2);Br(r,{name:e,fromWireType:function(r){for(var e,a=u()[r>>2],i=s(),o=r+4,f=0;f<=a;++f){var l=r+4+f*n;f!=a&&0!=i[l>>c]||(o=t(o,l-o),void 0===e?e=o:(e+=String.fromCharCode(0),e+=o),o=l+n)}return bn(r),e},toWireType:function(r,t){"string"!=typeof t&&Rr("Cannot pass non-string to C++ string type "+e);var i=o(t),s=gn(4+i+n);return u()[s>>2]=i>>c,a(t,s+4,i+n),null!==r&&r.push(bn,s),s},argPackAdvance:8,readValueFromPointer:Ar,Ha:function(r){bn(r)}})},z:function(r,n,e,t,a,i){gr[r]={name:Mr(n),Bb:Vr(e,t),Cb:Vr(a,i),ab:[]}},i:function(r,n,e,t,a,i,o,u,s,c){gr[r].ab.push({nb:Mr(n),sb:e,qb:Vr(t,a),rb:i,Lb:o,Kb:Vr(u,s),Mb:c})},O:function(r,n){Br(r,{Xb:!0,name:n=Mr(n),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},I:function(r,n){if(r==n)postMessage({cmd:"processQueuedMainThreadWork"});else if(p)postMessage({targetThread:r,cmd:"processThreadQueue"});else{if(!(r=(r=vr.Ga[r])&&r.worker))return;r.postMessage({cmd:"processThreadQueue"})}return 1},r:Lr,L:function(r){if(0===r)return Dr(zr());var n=Qr[r];return r=void 0===n?Mr(r):n,Dr(zr()[r])},S:function(r){4<r&&(Gr[r].Wa+=1)},A:function(r,n,e,t){r||Rr("Cannot use deleted val. handle = "+r),r=Gr[r].value;var a=Yr[n];if(!a){a="";for(var i=0;i<n;++i)a+=(0!==i?", ":"")+"arg"+i;var o="return function emval_allocator_"+n+"(constructor, argTypes, args) {\n";for(i=0;i<n;++i)o+="var argType"+i+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+i+'], "parameter '+i+'");\nvar arg'+i+" = argType"+i+".readValueFromPointer(args);\nargs += argType"+i+"['argPackAdvance'];\n";a=new Function("requireRegisteredType","Module","__emval_register",o+"var obj = new constructor("+a+");\nreturn __emval_register(obj);\n}\n")(Kr,c,Dr),Yr[n]=a}return a(r,e,t)},s:function(){tr()},l:function(r,n,e){var a;for(nn.length=0,e>>=2;a=t()[n++];)(a=105>a)&&1&e&&e++,nn.push(a?s()[e++>>1]:o()[e]),++e;return ur[r].apply(null,nn)},J:function(){},q:function(){},e:Zr,f:pr,b:mr,n:function(){return 0|dr},m:function(){return 0|lr},D:function(r,n,e){t().copyWithin(r,n,n+e)},T:function(){return navigator.hardwareConcurrency},F:function(r,n,e){rn.length=n,e>>=3;for(var t=0;t<n;t++)rn[t]=s()[e+t];return(0>r?ur[-r-1]:mn[r]).apply(null,rn)},k:function(r){r>>>=0;var n=t().length;if(r<=n||2147483648<r)return!1;for(var e=1;4>=e;e*=2){var a=n*(1+.2/e);a=Math.min(a,r+100663296),0<(a=Math.max(16777216,r,a))%65536&&(a+=65536-a%65536);r:{try{A.grow(Math.min(2147483648,a)-T.byteLength+65535>>>16),J(A.buffer);var i=1;break r}catch(r){}i=void 0}if(i)return!0}return!1},G:function(r,n,e){return tn(r)?an(r,n,e):on(r,n,e)},d:function(){},H:function(r,n){var e={};n>>=2,e.alpha=!!o()[n],e.depth=!!o()[n+1],e.stencil=!!o()[n+2],e.antialias=!!o()[n+3],e.premultipliedAlpha=!!o()[n+4],e.preserveDrawingBuffer=!!o()[n+5];var t=o()[n+6];return e.powerPreference=un[t],e.failIfMajorPerformanceCaveat=!!o()[n+7],e.zb=o()[n+8],e.Zb=o()[n+9],e.$a=o()[n+10],e.mb=o()[n+11],e.bc=o()[n+12],e.cc=o()[n+13],!(r=tn(r))||e.mb?e=0:(r=r.getContext("webgl",e))?(n=gn(8),o()[n+4>>2]=0|fr,t={Wb:n,attributes:e,version:e.zb,Pa:r},r.canvas&&(r.canvas.Qa=t),(void 0===e.$a||e.$a)&&function(r){if(r||(r=void 0),!r.vb){r.vb=!0;var n=r.Pa;!function(r){var n=r.getExtension("ANGLE_instanced_arrays");n&&(r.vertexAttribDivisor=function(r,e){n.vertexAttribDivisorANGLE(r,e)},r.drawArraysInstanced=function(r,e,t,a){n.drawArraysInstancedANGLE(r,e,t,a)},r.drawElementsInstanced=function(r,e,t,a,i){n.drawElementsInstancedANGLE(r,e,t,a,i)})}(n),function(r){var n=r.getExtension("OES_vertex_array_object");n&&(r.createVertexArray=function(){return n.createVertexArrayOES()},r.deleteVertexArray=function(r){n.deleteVertexArrayOES(r)},r.bindVertexArray=function(r){n.bindVertexArrayOES(r)},r.isVertexArray=function(r){return n.isVertexArrayOES(r)})}(n),function(r){var n=r.getExtension("WEBGL_draw_buffers");n&&(r.drawBuffers=function(r,e){n.drawBuffersWEBGL(r,e)})}(n),n.Vb=n.getExtension("EXT_disjoint_timer_query"),n.$b=n.getExtension("WEBGL_multi_draw");var e="OES_texture_float OES_texture_half_float OES_standard_derivatives OES_vertex_array_object WEBGL_compressed_texture_s3tc WEBGL_depth_texture OES_element_index_uint EXT_texture_filter_anisotropic EXT_frag_depth WEBGL_draw_buffers ANGLE_instanced_arrays OES_texture_float_linear OES_texture_half_float_linear EXT_blend_minmax EXT_shader_texture_lod EXT_texture_norm16 WEBGL_compressed_texture_pvrtc EXT_color_buffer_half_float WEBGL_color_buffer_float EXT_sRGB WEBGL_compressed_texture_etc1 EXT_disjoint_timer_query WEBGL_compressed_texture_etc WEBGL_compressed_texture_astc EXT_color_buffer_float WEBGL_compressed_texture_s3tc_srgb EXT_disjoint_timer_query_webgl2 WEBKIT_WEBGL_compressed_texture_pvrtc".split(" ");(n.getSupportedExtensions()||[]).forEach((function(r){-1!=e.indexOf(r)&&n.getExtension(r)}))}}(t),e=n):e=0,e},K:cn,B:fn,t:ln,C:function(){vr.xb()},a:A||c.wasmMemory,E:yr,w:function(r,n,e,t){if("undefined"==typeof SharedArrayBuffer)return w("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;if(!r)return w("pthread_create called with a null thread pointer!"),28;var a=[];if(p&&0===a.length)return Pn(687865856,r,n,e,t);var i=0,s=0,c=0,f=0;if(n){var l=o()[n>>2];if(l+=81920,i=o()[n+8>>2],s=0!==o()[n+12>>2],0===o()[n+16>>2]){var d=o()[n+20>>2],_=o()[n+24>>2];c=n+20,f=n+24;var h=vr.Ua?vr.Ua:0|fr;if(c||f)if(h)if(o()[h+12>>2]!==h)w("pthread_getschedparam attempted on thread "+h+", which does not point to a valid thread, or does not exist anymore!");else{var m=Atomics.load(u(),h+108+20>>2);h=Atomics.load(u(),h+108+24>>2),c&&(o()[c>>2]=m),f&&(o()[f>>2]=h)}else w("pthread_getschedparam called with a null thread pointer!");c=o()[n+20>>2],f=o()[n+24>>2],o()[n+20>>2]=d,o()[n+24>>2]=_}else c=o()[n+20>>2],f=o()[n+24>>2]}else l=2097152;for((n=0==i)?i=Cn(16,l):B(0<(i-=l)),d=gn(232),_=0;58>_;++_)u()[(d>>2)+_]=0;return o()[r>>2]=d,o()[d+12>>2]=d,r=d+156,o()[r>>2]=r,e={Ja:i,La:l,Ta:n,hb:c,ib:f,Za:s,Nb:e,Ka:d,Ab:0|fr,Ma:t,Qb:a},p?(e.Tb="spawnThread",postMessage(e,a)):dn(e),0},R:function(r,n){return function(r,n){if(!r)return w("pthread_join attempted on a null thread pointer!"),71;if(p&&j==r)return w("PThread "+r+" is attempting to join to itself!"),16;if(!p&&vr.Ca==r)return w("Main thread "+r+" is attempting to join to itself!"),16;if(o()[r+12>>2]!==r)return w("pthread_join attempted on thread "+r+", which does not point to a valid thread, or does not exist anymore!"),71;if(Atomics.load(u(),r+68>>2))return w("Attempted to join thread "+r+", which was already detached!"),28;for(;;){var e=Atomics.load(u(),r+0>>2);if(1==e)return e=Atomics.load(u(),r+4>>2),n&&(o()[n>>2]=e),Atomics.store(u(),r+68>>2,1),p?postMessage({cmd:"cleanupThread",thread:r}):hr(r),0;if(p&&M&&!Atomics.load(u(),M+60>>2)&&2==Atomics.load(u(),M+0>>2))throw"Canceled!";p||Sn(),Zr(r+0,e,p?100:1)}}(r,n)},c:_n,o:function(){}};!function(){function r(r,n){if(c.asm=r.exports,z=c.asm.V,E=n,!p){var e=vr.Ea.length;vr.Ea.forEach((function(r){vr.cb(r,(function(){if(!--e&&(nr--,c.monitorRunDependencies&&c.monitorRunDependencies(nr),0==nr&&er)){var r=er;er=null,r()}}))}))}}function n(n){r(n.instance,n.module)}function e(r){return(y||"function"!=typeof fetch?Promise.resolve().then(or):fetch(ir,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+ir+"'";return r.arrayBuffer()})).catch((function(){return or()}))).then((function(r){return WebAssembly.instantiate(r,t)})).then(r,(function(r){w("failed to asynchronously prepare wasm: "+r),tr(r)}))}var t={a:vn};if(p||(B(!p,"addRunDependency cannot be used in a pthread worker"),nr++,c.monitorRunDependencies&&c.monitorRunDependencies(nr)),c.instantiateWasm)try{return c.instantiateWasm(t,r)}catch(r){return w("Module.instantiateWasm callback failed with error: "+r),!1}(y||"function"!=typeof WebAssembly.instantiateStreaming||ar()||"function"!=typeof fetch?e(n):fetch(ir,{credentials:"same-origin"}).then((function(r){return WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return w("wasm streaming compile failed: "+r),w("falling back to ArrayBuffer instantiation"),e(n)}))}))).catch(l)}();var yn=c.___wasm_call_ctors=function(){return(yn=c.___wasm_call_ctors=c.asm.W).apply(null,arguments)},bn=c._free=function(){return(bn=c._free=c.asm.X).apply(null,arguments)},gn=c._malloc=function(){return(gn=c._malloc=c.asm.Y).apply(null,arguments)},wn=c.___getTypeName=function(){return(wn=c.___getTypeName=c.asm.Z).apply(null,arguments)};c.___embind_register_native_and_builtin_types=function(){return(c.___embind_register_native_and_builtin_types=c.asm._).apply(null,arguments)};var An=c._emscripten_get_global_libc=function(){return(An=c._emscripten_get_global_libc=c.asm.$).apply(null,arguments)};c.___em_js__initPthreadsJS=function(){return(c.___em_js__initPthreadsJS=c.asm.aa).apply(null,arguments)};var En=c.stackSave=function(){return(En=c.stackSave=c.asm.ba).apply(null,arguments)},Tn=c.stackRestore=function(){return(Tn=c.stackRestore=c.asm.ca).apply(null,arguments)},xn=c.stackAlloc=function(){return(xn=c.stackAlloc=c.asm.da).apply(null,arguments)},Cn=c._memalign=function(){return(Cn=c._memalign=c.asm.ea).apply(null,arguments)};c._emscripten_main_browser_thread_id=function(){return(c._emscripten_main_browser_thread_id=c.asm.fa).apply(null,arguments)};var kn=c.___pthread_tsd_run_dtors=function(){return(kn=c.___pthread_tsd_run_dtors=c.asm.ga).apply(null,arguments)},Sn=c._emscripten_main_thread_process_queued_calls=function(){return(Sn=c._emscripten_main_thread_process_queued_calls=c.asm.ha).apply(null,arguments)};c._emscripten_current_thread_process_queued_calls=function(){return(c._emscripten_current_thread_process_queued_calls=c.asm.ia).apply(null,arguments)};var In=c._emscripten_register_main_browser_thread_id=function(){return(In=c._emscripten_register_main_browser_thread_id=c.asm.ja).apply(null,arguments)},Wn=c._do_emscripten_dispatch_to_thread=function(){return(Wn=c._do_emscripten_dispatch_to_thread=c.asm.ka).apply(null,arguments)};c._emscripten_async_run_in_main_thread=function(){return(c._emscripten_async_run_in_main_thread=c.asm.la).apply(null,arguments)},c._emscripten_sync_run_in_main_thread=function(){return(c._emscripten_sync_run_in_main_thread=c.asm.ma).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_0=function(){return(c._emscripten_sync_run_in_main_thread_0=c.asm.na).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_1=function(){return(c._emscripten_sync_run_in_main_thread_1=c.asm.oa).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_2=function(){return(c._emscripten_sync_run_in_main_thread_2=c.asm.pa).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_xprintf_varargs=function(){return(c._emscripten_sync_run_in_main_thread_xprintf_varargs=c.asm.qa).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_3=function(){return(c._emscripten_sync_run_in_main_thread_3=c.asm.ra).apply(null,arguments)};var Pn=c._emscripten_sync_run_in_main_thread_4=function(){return(Pn=c._emscripten_sync_run_in_main_thread_4=c.asm.sa).apply(null,arguments)};c._emscripten_sync_run_in_main_thread_5=function(){return(c._emscripten_sync_run_in_main_thread_5=c.asm.ta).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_6=function(){return(c._emscripten_sync_run_in_main_thread_6=c.asm.ua).apply(null,arguments)},c._emscripten_sync_run_in_main_thread_7=function(){return(c._emscripten_sync_run_in_main_thread_7=c.asm.va).apply(null,arguments)};var On=c._emscripten_run_in_main_runtime_thread_js=function(){return(On=c._emscripten_run_in_main_runtime_thread_js=c.asm.wa).apply(null,arguments)},Mn=c.__emscripten_call_on_thread=function(){return(Mn=c.__emscripten_call_on_thread=c.asm.xa).apply(null,arguments)};c._emscripten_tls_init=function(){return(c._emscripten_tls_init=c.asm.ya).apply(null,arguments)},c.dynCall_jiii=function(){return(c.dynCall_jiii=c.asm.za).apply(null,arguments)},c.dynCall_jiiiiii=function(){return(c.dynCall_jiiiiii=c.asm.Aa).apply(null,arguments)},c.dynCall_jiji=function(){return(c.dynCall_jiji=c.asm.Ba).apply(null,arguments)};var jn,Rn=c._main_thread_futex=124172;function Bn(){function r(){if(!jn&&(jn=!0,c.calledRun=!0,!R)&&(sr(Y),p||sr(Z),f(c),c.onRuntimeInitialized&&c.onRuntimeInitialized(),!p)){if(c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var r=c.postRun.shift();$.unshift(r)}sr($)}}if(!(0<nr)){if(!p){if(c.preRun)for("function"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)rr();sr(K)}0<nr||(c.setStatus?(c.setStatus("Running..."),setTimeout((function(){setTimeout((function(){c.setStatus("")}),1),r()}),1)):r())}}if(c.PThread=vr,c.PThread=vr,c._pthread_self=_n,c.wasmMemory=A,c.ExitStatus=function(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r},er=function r(){jn||Bn(),jn||(er=r)},c.run=Bn,c.preInit)for("function"==typeof c.preInit&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();return p||(b=!0),p?vr.yb():Bn(),r.ready});n.default=t}));
  