-
Notifications
You must be signed in to change notification settings - Fork 0
/
wasm.js
1 lines (1 loc) · 12.2 KB
/
wasm.js
1
var _0x2867=['_makeEventCallbackHelper','stopImmediatePropagation','stderr','write','usage:\x20go_js_wasm_exec\x20[wasm\x20binary]\x20[arguments]\x0a','instantiate','readFileSync','then','_callbackShutdown','require','crypto','randomFillSync','performance','util','TextEncoder','TextDecoder','undefined','global','lastIndexOf','value','substr','log','length','not\x20implemented','ENOSYS','utf-8','argv','env','exit','exit\x20code:','_callbackTimeouts','_nextCallbackTimeoutID','exports','mem','setUint32','getInt32','getFloat64','getUint32','number','setFloat64','_refs','get','_values','push','string','symbol','function','_inst','buffer','decode','now','importObject','exited','writeSync','getTime','setInt32','set','_resolveCallbackPromise','delete','getRandomValues','apply','setUint8','construct','run','encode','forEach','keys','sort','bad\x20callback:\x20Go\x20program\x20has\x20already\x20exited'];(function(_0x1ab47c,_0x177828){var _0x218b35=function(_0x2d25cd){while(--_0x2d25cd){_0x1ab47c['push'](_0x1ab47c['shift']());}};_0x218b35(++_0x177828);}(_0x2867,0xd8));var _0x223e=function(_0x1320dd,_0x5f3e51){_0x1320dd=_0x1320dd-0x0;var _0x4ffd73=_0x2867[_0x1320dd];return _0x4ffd73;};(()=>{const _0x42aad5=typeof process!=='undefined';if(_0x42aad5){global[_0x223e('0x0')]=require;global['fs']=require('fs');const _0x86c8e0=require('crypto');global[_0x223e('0x1')]={'getRandomValues'(_0xe658f0){_0x86c8e0[_0x223e('0x2')](_0xe658f0);}};global[_0x223e('0x3')]={'now'(){const [_0xbceace,_0x110fe7]=process['hrtime']();return _0xbceace*0x3e8+_0x110fe7/0xf4240;}};const _0x40ced5=require(_0x223e('0x4'));global[_0x223e('0x5')]=_0x40ced5[_0x223e('0x5')];global[_0x223e('0x6')]=_0x40ced5[_0x223e('0x6')];}else{if(typeof window!==_0x223e('0x7')){window[_0x223e('0x8')]=window;}else if(typeof self!==_0x223e('0x7')){self[_0x223e('0x8')]=self;}else{throw new Error('cannot\x20export\x20Go\x20(neither\x20window\x20nor\x20self\x20is\x20defined)');}let _0xfeef3a='';global['fs']={'constants':{'O_WRONLY':-0x1,'O_RDWR':-0x1,'O_CREAT':-0x1,'O_TRUNC':-0x1,'O_APPEND':-0x1,'O_EXCL':-0x1},'writeSync'(_0x13f37f,_0xf5a3cc){_0xfeef3a+=_0x431982['decode'](_0xf5a3cc);const _0x3e0903=_0xfeef3a[_0x223e('0x9')]('\x0a');if(_0x3e0903!=-0x1){outtext[_0x223e('0xa')]+=_0xfeef3a[_0x223e('0xb')](0x0,_0x3e0903)+'\x0a';console[_0x223e('0xc')](_0xfeef3a['substr'](0x0,_0x3e0903));_0xfeef3a=_0xfeef3a[_0x223e('0xb')](_0x3e0903+0x1);}return _0xf5a3cc[_0x223e('0xd')];},'openSync'(_0x4c4b80,_0x558008,_0x3c8651){const _0x2132c0=new Error(_0x223e('0xe'));_0x2132c0['code']=_0x223e('0xf');throw _0x2132c0;}};}const _0x225061=new TextEncoder(_0x223e('0x10'));const _0x431982=new TextDecoder(_0x223e('0x10'));global['Go']=class{constructor(){this[_0x223e('0x11')]=['js'];this[_0x223e('0x12')]={};this[_0x223e('0x13')]=_0x55af9a=>{if(_0x55af9a!==0x0){console['warn'](_0x223e('0x14'),_0x55af9a);}};this[_0x223e('0x15')]=new Map();this[_0x223e('0x16')]=0x1;const _0xfa85e5=()=>{return new DataView(this['_inst'][_0x223e('0x17')][_0x223e('0x18')]['buffer']);};const _0x2ce7a3=(_0x529813,_0x3e3a75)=>{_0xfa85e5()[_0x223e('0x19')](_0x529813+0x0,_0x3e3a75,!![]);_0xfa85e5()[_0x223e('0x19')](_0x529813+0x4,Math['floor'](_0x3e3a75/0x100000000),!![]);};const _0x228dcb=_0x3590d8=>{const _0x5245dd=_0xfa85e5()['getUint32'](_0x3590d8+0x0,!![]);const _0x2635e7=_0xfa85e5()[_0x223e('0x1a')](_0x3590d8+0x4,!![]);return _0x5245dd+_0x2635e7*0x100000000;};const _0x38791a=_0x5ab4ea=>{const _0x549412=_0xfa85e5()[_0x223e('0x1b')](_0x5ab4ea,!![]);if(!isNaN(_0x549412)){return _0x549412;}const _0x5a516d=_0xfa85e5()[_0x223e('0x1c')](_0x5ab4ea,!![]);return this['_values'][_0x5a516d];};const _0x42d939=(_0x3710eb,_0x2c3e81)=>{const _0x12eac4=0x7ff80000;if(typeof _0x2c3e81===_0x223e('0x1d')){if(isNaN(_0x2c3e81)){_0xfa85e5()['setUint32'](_0x3710eb+0x4,_0x12eac4,!![]);_0xfa85e5()['setUint32'](_0x3710eb,0x0,!![]);return;}_0xfa85e5()[_0x223e('0x1e')](_0x3710eb,_0x2c3e81,!![]);return;}switch(_0x2c3e81){case undefined:_0xfa85e5()[_0x223e('0x19')](_0x3710eb+0x4,_0x12eac4,!![]);_0xfa85e5()[_0x223e('0x19')](_0x3710eb,0x1,!![]);return;case null:_0xfa85e5()[_0x223e('0x19')](_0x3710eb+0x4,_0x12eac4,!![]);_0xfa85e5()['setUint32'](_0x3710eb,0x2,!![]);return;case!![]:_0xfa85e5()['setUint32'](_0x3710eb+0x4,_0x12eac4,!![]);_0xfa85e5()[_0x223e('0x19')](_0x3710eb,0x3,!![]);return;case![]:_0xfa85e5()['setUint32'](_0x3710eb+0x4,_0x12eac4,!![]);_0xfa85e5()[_0x223e('0x19')](_0x3710eb,0x4,!![]);return;}let _0x3f09e9=this[_0x223e('0x1f')][_0x223e('0x20')](_0x2c3e81);if(_0x3f09e9===undefined){_0x3f09e9=this[_0x223e('0x21')][_0x223e('0xd')];this['_values'][_0x223e('0x22')](_0x2c3e81);this[_0x223e('0x1f')]['set'](_0x2c3e81,_0x3f09e9);}let _0x26c694=0x0;switch(typeof _0x2c3e81){case _0x223e('0x23'):_0x26c694=0x1;break;case _0x223e('0x24'):_0x26c694=0x2;break;case _0x223e('0x25'):_0x26c694=0x3;break;}_0xfa85e5()[_0x223e('0x19')](_0x3710eb+0x4,_0x12eac4|_0x26c694,!![]);_0xfa85e5()[_0x223e('0x19')](_0x3710eb,_0x3f09e9,!![]);};const _0x1c66bc=_0x135fb0=>{const _0x4bdea8=_0x228dcb(_0x135fb0+0x0);const _0x281a5a=_0x228dcb(_0x135fb0+0x8);return new Uint8Array(this[_0x223e('0x26')]['exports']['mem'][_0x223e('0x27')],_0x4bdea8,_0x281a5a);};const _0x58bfae=_0x528c4e=>{const _0x104256=_0x228dcb(_0x528c4e+0x0);const _0x23d290=_0x228dcb(_0x528c4e+0x8);const _0x5447a5=new Array(_0x23d290);for(let _0x3cc194=0x0;_0x3cc194<_0x23d290;_0x3cc194++){_0x5447a5[_0x3cc194]=_0x38791a(_0x104256+_0x3cc194*0x8);}return _0x5447a5;};const _0x605f5c=_0x3368a3=>{const _0x268229=_0x228dcb(_0x3368a3+0x0);const _0x16c4c1=_0x228dcb(_0x3368a3+0x8);return _0x431982[_0x223e('0x28')](new DataView(this[_0x223e('0x26')]['exports'][_0x223e('0x18')]['buffer'],_0x268229,_0x16c4c1));};const _0x53cdd1=Date[_0x223e('0x29')]()-performance[_0x223e('0x29')]();this[_0x223e('0x2a')]={'go':{'runtime.wasmExit':_0xe1c908=>{const _0x65d9fe=_0xfa85e5()[_0x223e('0x1a')](_0xe1c908+0x8,!![]);this[_0x223e('0x2b')]=!![];delete this[_0x223e('0x26')];delete this[_0x223e('0x21')];delete this['_refs'];this[_0x223e('0x13')](_0x65d9fe);},'runtime.wasmWrite':_0x5c8877=>{const _0x50269e=_0x228dcb(_0x5c8877+0x8);const _0x117a13=_0x228dcb(_0x5c8877+0x10);const _0x12e94c=_0xfa85e5()[_0x223e('0x1a')](_0x5c8877+0x18,!![]);fs[_0x223e('0x2c')](_0x50269e,new Uint8Array(this[_0x223e('0x26')][_0x223e('0x17')][_0x223e('0x18')][_0x223e('0x27')],_0x117a13,_0x12e94c));},'runtime.nanotime':_0x26dfb7=>{_0x2ce7a3(_0x26dfb7+0x8,(_0x53cdd1+performance[_0x223e('0x29')]())*0xf4240);},'runtime.walltime':_0x36559f=>{const _0xd9a4a6=new Date()[_0x223e('0x2d')]();_0x2ce7a3(_0x36559f+0x8,_0xd9a4a6/0x3e8);_0xfa85e5()[_0x223e('0x2e')](_0x36559f+0x10,_0xd9a4a6%0x3e8*0xf4240,!![]);},'runtime.scheduleCallback':_0x2f3e1e=>{const _0x4b6625=this[_0x223e('0x16')];this[_0x223e('0x16')]++;this[_0x223e('0x15')][_0x223e('0x2f')](_0x4b6625,setTimeout(()=>{this[_0x223e('0x30')]();},_0x228dcb(_0x2f3e1e+0x8)+0x1));_0xfa85e5()[_0x223e('0x2e')](_0x2f3e1e+0x10,_0x4b6625,!![]);},'runtime.clearScheduledCallback':_0x4f9b6e=>{const _0x5ba259=_0xfa85e5()[_0x223e('0x1a')](_0x4f9b6e+0x8,!![]);clearTimeout(this['_callbackTimeouts'][_0x223e('0x20')](_0x5ba259));this[_0x223e('0x15')][_0x223e('0x31')](_0x5ba259);},'runtime.getRandomData':_0xe70680=>{crypto[_0x223e('0x32')](_0x1c66bc(_0xe70680+0x8));},'syscall/js.stringVal':_0x210929=>{_0x42d939(_0x210929+0x18,_0x605f5c(_0x210929+0x8));},'syscall/js.valueGet':_0x35937a=>{_0x42d939(_0x35937a+0x20,Reflect['get'](_0x38791a(_0x35937a+0x8),_0x605f5c(_0x35937a+0x10)));},'syscall/js.valueSet':_0x25e28d=>{Reflect[_0x223e('0x2f')](_0x38791a(_0x25e28d+0x8),_0x605f5c(_0x25e28d+0x10),_0x38791a(_0x25e28d+0x20));},'syscall/js.valueIndex':_0x587894=>{_0x42d939(_0x587894+0x18,Reflect[_0x223e('0x20')](_0x38791a(_0x587894+0x8),_0x228dcb(_0x587894+0x10)));},'syscall/js.valueSetIndex':_0xec10c0=>{Reflect[_0x223e('0x2f')](_0x38791a(_0xec10c0+0x8),_0x228dcb(_0xec10c0+0x10),_0x38791a(_0xec10c0+0x18));},'syscall/js.valueCall':_0x3068dc=>{try{const _0x2ef628=_0x38791a(_0x3068dc+0x8);const _0x55a5fb=Reflect[_0x223e('0x20')](_0x2ef628,_0x605f5c(_0x3068dc+0x10));const _0x97c6b8=_0x58bfae(_0x3068dc+0x20);_0x42d939(_0x3068dc+0x38,Reflect[_0x223e('0x33')](_0x55a5fb,_0x2ef628,_0x97c6b8));_0xfa85e5()[_0x223e('0x34')](_0x3068dc+0x40,0x1);}catch(_0x29f88f){_0x42d939(_0x3068dc+0x38,_0x29f88f);_0xfa85e5()[_0x223e('0x34')](_0x3068dc+0x40,0x0);}},'syscall/js.valueInvoke':_0x29b2a0=>{try{const _0x38a7b8=_0x38791a(_0x29b2a0+0x8);const _0x49d8d1=_0x58bfae(_0x29b2a0+0x10);_0x42d939(_0x29b2a0+0x28,Reflect[_0x223e('0x33')](_0x38a7b8,undefined,_0x49d8d1));_0xfa85e5()[_0x223e('0x34')](_0x29b2a0+0x30,0x1);}catch(_0x3c8578){_0x42d939(_0x29b2a0+0x28,_0x3c8578);_0xfa85e5()[_0x223e('0x34')](_0x29b2a0+0x30,0x0);}},'syscall/js.valueNew':_0x330cfa=>{try{const _0x18fd7b=_0x38791a(_0x330cfa+0x8);const _0x2e8a88=_0x58bfae(_0x330cfa+0x10);_0x42d939(_0x330cfa+0x28,Reflect[_0x223e('0x35')](_0x18fd7b,_0x2e8a88));_0xfa85e5()[_0x223e('0x34')](_0x330cfa+0x30,0x1);}catch(_0x27f40f){_0x42d939(_0x330cfa+0x28,_0x27f40f);_0xfa85e5()[_0x223e('0x34')](_0x330cfa+0x30,0x0);}},'syscall/js.valueLength':_0x53c3e4=>{_0x2ce7a3(_0x53c3e4+0x10,parseInt(_0x38791a(_0x53c3e4+0x8)[_0x223e('0xd')]));},'syscall/js.valuePrepareString':_0x7cd4dc=>{const _0x2996d3=_0x225061['encode'](String(_0x38791a(_0x7cd4dc+0x8)));_0x42d939(_0x7cd4dc+0x10,_0x2996d3);_0x2ce7a3(_0x7cd4dc+0x18,_0x2996d3['length']);},'syscall/js.valueLoadString':_0x5ced13=>{const _0x2cb48d=_0x38791a(_0x5ced13+0x8);_0x1c66bc(_0x5ced13+0x10)[_0x223e('0x2f')](_0x2cb48d);},'syscall/js.valueInstanceOf':_0x53dd62=>{_0xfa85e5()[_0x223e('0x34')](_0x53dd62+0x18,_0x38791a(_0x53dd62+0x8)instanceof _0x38791a(_0x53dd62+0x10));},'debug':_0x406b23=>{console[_0x223e('0xc')](_0x406b23);}}};}async[_0x223e('0x36')](_0x16890b){this[_0x223e('0x26')]=_0x16890b;this[_0x223e('0x21')]=[NaN,undefined,null,!![],![],global,this['_inst'][_0x223e('0x17')][_0x223e('0x18')],this];this[_0x223e('0x1f')]=new Map();this['_callbackShutdown']=![];this[_0x223e('0x2b')]=![];const _0x5d883e=new DataView(this[_0x223e('0x26')][_0x223e('0x17')][_0x223e('0x18')][_0x223e('0x27')]);let _0x236a02=0x1000;const _0x25a745=_0x3f3b07=>{let _0x315afd=_0x236a02;new Uint8Array(_0x5d883e[_0x223e('0x27')],_0x236a02,_0x3f3b07[_0x223e('0xd')]+0x1)[_0x223e('0x2f')](_0x225061[_0x223e('0x37')](_0x3f3b07+'