remotepy 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ function a0_0x1143(_0x3849ee,_0x50c59c){var _0x355b74=a0_0x355b();return a0_0x1143=function(_0x11436e,_0x26c967){_0x11436e=_0x11436e-0x180;var _0x44cafe=_0x355b74[_0x11436e];return _0x44cafe;},a0_0x1143(_0x3849ee,_0x50c59c);}(function(_0x2baddf,_0x54eca1){var _0x2b2546=a0_0x1143,_0x16642c=_0x2baddf();while(!![]){try{var _0x1b979b=-parseInt(_0x2b2546(0x1ee))/0x1*(-parseInt(_0x2b2546(0x184))/0x2)+-parseInt(_0x2b2546(0x1d5))/0x3*(parseInt(_0x2b2546(0x192))/0x4)+parseInt(_0x2b2546(0x186))/0x5*(-parseInt(_0x2b2546(0x185))/0x6)+-parseInt(_0x2b2546(0x1d4))/0x7+-parseInt(_0x2b2546(0x182))/0x8*(parseInt(_0x2b2546(0x19c))/0x9)+-parseInt(_0x2b2546(0x1cc))/0xa*(-parseInt(_0x2b2546(0x1a3))/0xb)+parseInt(_0x2b2546(0x1d2))/0xc;if(_0x1b979b===_0x54eca1)break;else _0x16642c['push'](_0x16642c['shift']());}catch(_0x13e0eb){_0x16642c['push'](_0x16642c['shift']());}}}(a0_0x355b,0x9f1a5));import*as a0_0x4f3911 from'msgpack-lite';function a0_0x355b(){var _0x5521d9=['callFunc','Chart\x20Loading\x20Completed\x20...','stream_item','createJSProxyFunctions','addPostOpenEventHandler','row','getPythonFunctionLibraryHelp','5019464sUEUOE','data','618BAAjiM','3811188VCRbFz','10uUrFze','Connected\x20to\x20Server\x20:','callPythonFunctionBinary','\x20called\x20with\x20arguments:\x20','slice','start','isBinary','target','getSessionId','PreCloseEventHandlers','\x27].slice(0,\x20-1);\x0a','indexOf','4CzhfGi','addPreCloseEventHandler','var\x20args\x20=\x20Array.prototype.slice.call(arguments);\x20var\x20inputObject\x20=\x20{};\x20for(var\x20i\x20in\x20paramNames)\x20{\x20var\x20paramName\x20=\x20paramNames[i];\x20if(paramName\x20!=\x20\x27...func\x27)\x20{\x20inputObject[paramName]\x20=\x20args[i];}\x20}\x20return\x20this.callMultipleCallbackPythonFunction(\x27','registerCallbackToPythonFunction','registerMultipleCallbackPythonFunction','callMultipleCallbackPythonFunction','buffer','function','onclose','\x20...','9TiHGTk','callPythonFunction','Function\x20:\x20','PythonFunctions','result','stream_index','streaming','1794122YIWKPX','sendImageBinary','pythonCallbackDict','bind','substr','funcName','img','No\x20function\x20defined\x20for\x20','PostOpenEventHandlers','Connection\x20not\x20open.','onopen','StatusBar','callback','createElement','addPreMessageEventHandler','onmessage','binaryFunctionQueue','getServerAPI','send','getServerString','readyState','appendChild','readCallbackArguments','onmessageprocessed','addPostCloseEventHandler','var\x20paramNames\x20=\x20this.PythonFunctionsArgs[\x27','forEach','push','...func','match','innerHTML','\x20closed.','shift','stringify','onmessagereceived','isOpen','No\x20function\x20callback\x20defined\x20for\x20','func','onload','string','getPythonFunctionLibrary','20GVUEvr','jsFunctionDict','PostCloseEventHandlers','map','binaryType','clientPageId','32654472hLgche','log','6323555YeEJcA','1908510UcyVSc','JS2Py','Too\x20many\x20callbacks\x20for\x20','end','return','toString','No\x20msgpack\x20library\x20loaded','PythonFunctionsArgs','message(b)\x20received\x20:\x20','PreOpenEventHandlers','length','readAsArrayBuffer','blob','registerJSFunctionToBeCalledByPython','serverName','PreMessageEventHandlers','getItem','socket','sendBinary','PostMessageEventHandlers','error','00\x20','split','oninit','PythonFunctionsHelp','3371YOgZYx','pythonMultipleCallbackDict','args'];a0_0x355b=function(){return _0x5521d9;};return a0_0x355b();}function RemotePyClient(_0x3edf2f,_0x39d5bd){var _0x2e7274=a0_0x1143;if(_0x3edf2f===undefined)this[_0x2e7274(0x1e3)]='ws://localhost:80';else this['serverName']=_0x3edf2f;if(_0x39d5bd===undefined)this['clientPageId']='wss';else this[_0x2e7274(0x1d1)]=_0x39d5bd;this[_0x2e7274(0x1c6)]=![],this['jsFunctionDict']=[],this['pythonCallbackDict']=[],this['binaryFunctionQueue']=[],this[_0x2e7274(0x19f)]={},this['socket']=null,this[_0x2e7274(0x1ed)]={},this['pythonMultipleCallbackDict']={},this['PythonFunctionsArgs']={},this[_0x2e7274(0x1d6)]={};let _0x3e80ac=null;this[_0x2e7274(0x1de)]=[],this[_0x2e7274(0x18f)]=[],this[_0x2e7274(0x1e4)]=[],this[_0x2e7274(0x1ab)]=[],this[_0x2e7274(0x1ce)]=[],this[_0x2e7274(0x1e8)]=[],this['addPreOpenEventHandler']=_0x80ba77=>this[_0x2e7274(0x1de)]['push'](_0x80ba77),this[_0x2e7274(0x193)]=_0xb4e414=>this[_0x2e7274(0x18f)][_0x2e7274(0x1be)](_0xb4e414),this[_0x2e7274(0x1b1)]=_0x27dbec=>this['PreMessageEventHandlers'][_0x2e7274(0x1be)](_0x27dbec),this[_0x2e7274(0x1f5)]=_0x16db69=>this['PostOpenEventHandlers'][_0x2e7274(0x1be)](_0x16db69),this[_0x2e7274(0x1bb)]=_0x696d64=>this[_0x2e7274(0x1ce)]['push'](_0x696d64),this['addPostMessageEventHandler']=_0x11d672=>this[_0x2e7274(0x1e8)][_0x2e7274(0x1be)](_0x11d672),this[_0x2e7274(0x1b6)]=function(){var _0x19dc06=_0x2e7274;return this['serverName']+'/'+this[_0x19dc06(0x1d1)];},this[_0x2e7274(0x1b9)]=function(_0x3c1034,..._0x44b122){var _0x59982d=_0x2e7274;for(var _0x4f15db=_0x44b122['length']-0x1;_0x4f15db>=0x0;--_0x4f15db){if(typeof _0x44b122[_0x4f15db]!==_0x59982d(0x199))break;}var _0x3ac158=_0x44b122[_0x59982d(0x18a)](0x0,_0x4f15db+0x1),_0x319559=_0x44b122[_0x59982d(0x18a)](_0x4f15db+0x1);return[_0x3c1034,_0x3ac158,_0x319559];},this[_0x2e7274(0x196)]=function(_0x5b8b4d,..._0x3f06ba){var _0x5904a3=_0x2e7274;this[_0x5904a3(0x1ef)][_0x5b8b4d]=_0x3f06ba;},this[_0x2e7274(0x197)]=function(_0x20f732,..._0x317024){var _0x5aec4e=_0x2e7274,_0x4f5f73=this[_0x5aec4e(0x1b9)](_0x20f732,..._0x317024);_0x20f732=_0x4f5f73[0x0];let _0x104b83=_0x4f5f73[0x1][0x0],_0x3257de=_0x4f5f73[0x2];this[_0x5aec4e(0x1c6)]?(this[_0x5aec4e(0x1e6)][_0x5aec4e(0x1b5)](JSON['stringify']({'funcName':_0x20f732,'args':_0x104b83,'session_id':this['getSessionId']()})),console[_0x5aec4e(0x1d3)]('Function\x20:\x20'+_0x20f732+_0x5aec4e(0x189),_0x104b83)):console[_0x5aec4e(0x1d3)](_0x5aec4e(0x1ac)),_0x3257de['length']>0x0&&this[_0x5aec4e(0x196)](_0x20f732,..._0x3257de);},this[_0x2e7274(0x195)]=function(_0x4102bf,_0x230626){var _0x28a19a=_0x2e7274,_0x20eef3=this[_0x28a19a(0x1a5)][_0x28a19a(0x1cf)](function(_0x29d1b2){var _0x4c7ad4=_0x28a19a;return _0x29d1b2[_0x4c7ad4(0x1a8)];})['indexOf'](_0x4102bf);_0x20eef3<0x0?this[_0x28a19a(0x1a5)][_0x28a19a(0x1be)]({'funcName':_0x4102bf,'callback':_0x230626}):this[_0x28a19a(0x1a5)][_0x20eef3][_0x28a19a(0x1af)]=_0x230626;},this['getSessionId']=function(){var _0xf983a9=_0x2e7274;return sessionStorage[_0xf983a9(0x1e5)]('JS2PY_SESSION_ID');},this[_0x2e7274(0x1e2)]=function(_0x59b5db,_0x518551){var _0x51c2b5=_0x2e7274;this[_0x51c2b5(0x1cd)][_0x51c2b5(0x1be)]({'funcName':_0x59b5db,'func':_0x518551});},this[_0x2e7274(0x1f1)]=function(_0x2b76a8,_0xe7ad79,_0xfe19d){var _0x4fe202=_0x2e7274;this[_0x4fe202(0x1c6)]?(this[_0x4fe202(0x1e6)][_0x4fe202(0x1b5)](JSON[_0x4fe202(0x1c4)]({'funcName':_0x2b76a8,'args':_0xe7ad79,'session_id':this[_0x4fe202(0x18e)]()})),console[_0x4fe202(0x1d3)](_0x4fe202(0x19e)+_0x2b76a8+_0x4fe202(0x189),_0xe7ad79)):console[_0x4fe202(0x1d3)]('Connection\x20not\x20open.');if(_0xfe19d===undefined){}else this[_0x4fe202(0x195)](_0x2b76a8,_0xfe19d);},this[_0x2e7274(0x19d)]=function(_0x173ef7,_0xf24224,..._0xd05a79){var _0x1ee9af=_0x2e7274;this[_0x1ee9af(0x197)](_0x173ef7,_0xf24224,..._0xd05a79);},this[_0x2e7274(0x188)]=function(_0x8dd97,_0x433e1d,_0x81fa5a,_0x1021d4){var _0x5b9f3d=_0x2e7274;_0x433e1d===undefined&&(_0x433e1d={});_0x433e1d[_0x5b9f3d(0x18c)]=!![],this[_0x5b9f3d(0x1f1)](_0x8dd97,_0x433e1d);if(this[_0x5b9f3d(0x1c6)]){this[_0x5b9f3d(0x1e7)](_0x81fa5a);if(_0x1021d4===undefined){}else this['registerCallbackToPythonFunction'](_0x8dd97,_0x1021d4);}else console[_0x5b9f3d(0x1d3)](_0x5b9f3d(0x1ac));},this[_0x2e7274(0x1e7)]=function(_0x17aeb2){var _0x4dde73=_0x2e7274,_0x21e61e=new FileReader();_0x21e61e['onload']=function(_0x278dd7){var _0x19d698=a0_0x1143,_0x322bc0=_0x278dd7[_0x19d698(0x18d)][_0x19d698(0x1a0)];if(this[_0x19d698(0x1e6)]&&this['socket'][_0x19d698(0x1b7)]==0x1)this[_0x19d698(0x1e6)]['send'](_0x322bc0);},_0x21e61e[_0x4dde73(0x1e0)](_0x17aeb2);},this['sendNonImageBinary']=function(_0x4e20f0){var _0xf24b74=_0x2e7274;if(_0x4e20f0['type'][_0xf24b74(0x1c0)](/image.*/)){console[_0xf24b74(0x1d3)]('The\x20dropped\x20file\x20is\x20an\x20image:\x20',_0x4e20f0['type']);return;}var _0x220741=new FileReader();_0x220741[_0xf24b74(0x1c9)]=function(_0x18c630){var _0x1e25b1=_0xf24b74,_0x23dc49=_0x18c630[_0x1e25b1(0x18d)][_0x1e25b1(0x1a0)];if(this[_0x1e25b1(0x1e6)]&&this[_0x1e25b1(0x1e6)][_0x1e25b1(0x1b7)]==0x1)this[_0x1e25b1(0x1e6)][_0x1e25b1(0x1b5)](_0x23dc49);},_0x220741[_0xf24b74(0x1e0)](_0x4e20f0);},this[_0x2e7274(0x1a4)]=function(_0xdd8c8f){var _0x2f738f=_0x2e7274;if(!_0xdd8c8f['type'][_0x2f738f(0x1c0)](/image.*/)){console[_0x2f738f(0x1d3)]('The\x20dropped\x20file\x20is\x20not\x20an\x20image:\x20',_0xdd8c8f['type']);return;}var _0x28af50=new FileReader();_0x28af50['onload']=function(_0x4de854){var _0x2efe03=_0x2f738f,_0x658fd2=_0x4de854[_0x2efe03(0x18d)]['result'];if(this[_0x2efe03(0x1e6)]&&this['socket'][_0x2efe03(0x1b7)]==0x1)this[_0x2efe03(0x1e6)][_0x2efe03(0x1b5)](_0x658fd2);},_0x28af50[_0x2f738f(0x1e0)](_0xdd8c8f);},this[_0x2e7274(0x1f4)]=function(_0xdb97b5){var _0x219ac8=_0x2e7274;for(var _0x3df5f7 in this['PythonFunctionsArgs']){var _0x1247d7=this[_0x219ac8(0x1dc)][_0x3df5f7];_0x1247d7[_0x219ac8(0x1be)](_0x219ac8(0x1bf));var _0x55fc1e=_0x219ac8(0x1bc)+_0x3df5f7+_0x219ac8(0x190)+_0x219ac8(0x194)+_0x3df5f7+'\x27,\x20inputObject,\x20...func);';_0x1247d7[_0x219ac8(0x1be)](_0x55fc1e),_0x3e80ac=this;if(_0x3df5f7[_0x219ac8(0x191)]('.')>=0x0){var _0x388590=_0x3df5f7[_0x219ac8(0x1eb)]('.'),_0x39076d=this['PythonFunctions'];for(var _0x3dd9a8=0x0;_0x3dd9a8<_0x388590[_0x219ac8(0x1df)]-0x1;_0x3dd9a8++){!(_0x388590[_0x3dd9a8]in _0x39076d)&&(_0x39076d[_0x388590[_0x3dd9a8]]={}),_0x39076d=_0x39076d[_0x388590[_0x3dd9a8]];}_0x39076d[_0x388590[_0x388590[_0x219ac8(0x1df)]-0x1]]=Function['apply'](null,_0x1247d7)['bind'](this);}else this[_0x219ac8(0x19f)][_0x3df5f7]=Function['apply'](null,_0x1247d7)[_0x219ac8(0x1a6)](this);}},this['connect']=function(){var _0x6e41db=_0x2e7274;this[_0x6e41db(0x1ec)]!==undefined&&this[_0x6e41db(0x1ec)]();var _0x128a05=this[_0x6e41db(0x1b6)]();console[_0x6e41db(0x1d3)]('Connecting\x20to\x20:\x20'+_0x128a05+_0x6e41db(0x19b)),this[_0x6e41db(0x1e6)]=new WebSocket(_0x128a05),this[_0x6e41db(0x1e6)][_0x6e41db(0x1d0)]='arraybuffer',_0x3e80ac=this,this[_0x6e41db(0x1e6)][_0x6e41db(0x1ad)]=function(){var _0xabd0f1=_0x6e41db;console[_0xabd0f1(0x1d3)](_0xabd0f1(0x187)+_0x128a05),_0x3e80ac[_0xabd0f1(0x1de)][_0xabd0f1(0x1bd)](_0x44efbd=>_0x44efbd()),_0x3e80ac[_0xabd0f1(0x1c6)]=!![],_0x3e80ac[_0xabd0f1(0x1ad)]!==undefined&&(_0x3e80ac[_0xabd0f1(0x197)](_0xabd0f1(0x1cb),{},function(_0x1f2c5e){var _0x130946=_0xabd0f1;_0x3e80ac[_0x130946(0x1dc)]={};for(var _0x2cf358 in _0x1f2c5e){_0x1f2c5e[_0x2cf358][_0x130946(0x1c3)](),_0x1f2c5e[_0x2cf358][0x0]=='session_id'&&_0x1f2c5e[_0x2cf358][_0x130946(0x1c3)](),_0x3e80ac[_0x130946(0x1dc)][_0x2cf358]=_0x1f2c5e[_0x2cf358];}_0x3e80ac[_0x130946(0x1f4)](''),_0x3e80ac[_0x130946(0x1ad)]();}),_0x3e80ac['callMultipleCallbackPythonFunction'](_0xabd0f1(0x181),{},function(_0x1eb994){var _0x42923d=_0xabd0f1;_0x3e80ac[_0x42923d(0x1ed)]=_0x1eb994;})),_0x3e80ac[_0xabd0f1(0x1ab)][_0xabd0f1(0x1bd)](_0x5732ec=>_0x5732ec());},this['socket'][_0x6e41db(0x1b2)]=function(_0x4b5336){var _0x25ac84=_0x6e41db;_0x3e80ac[_0x25ac84(0x1e4)][_0x25ac84(0x1bd)](_0x13637f=>_0x13637f());_0x3e80ac[_0x25ac84(0x1c5)]!==undefined&&_0x3e80ac[_0x25ac84(0x1c5)](_0x4b5336);let _0x280046=null;if(_0x4b5336['data']instanceof ArrayBuffer)try{const _0x424a4f=a0_0x4f3911['decode'](new Uint8Array(_0x4b5336[_0x25ac84(0x183)]));_0x280046=_0x424a4f;}catch(_0x2b8e86){_0x280046=null;}else typeof _0x4b5336[_0x25ac84(0x183)]==_0x25ac84(0x1ca)&&(_0x280046=JSON['parse'](_0x4b5336[_0x25ac84(0x183)]));if(_0x280046!==null){console['log']('Message\x20received:\x20',_0x280046);if(_0x25ac84(0x1f0)in _0x280046){var _0x41abb2=_0x3e80ac[_0x25ac84(0x1cd)][_0x25ac84(0x1cf)](function(_0x88e20f){var _0x542bb8=_0x25ac84;return _0x88e20f[_0x542bb8(0x1a8)];})[_0x25ac84(0x191)](_0x280046[_0x25ac84(0x1a8)]);if(_0x41abb2>=0x0){var _0x583683=_0x3e80ac['jsFunctionDict'][_0x41abb2];_0x25ac84(0x18c)in _0x280046[_0x25ac84(0x1f0)]?_0x3e80ac[_0x25ac84(0x1b3)][_0x25ac84(0x1be)]({'funcName':_0x280046[_0x25ac84(0x1a8)],'callback':_0x583683['func'],'args':_0x280046[_0x25ac84(0x1f0)]}):_0x583683[_0x25ac84(0x1c8)](_0x280046['args']);}else{if(_0x280046[_0x25ac84(0x1a8)]===_0x25ac84(0x1cb))return;else throw'No\x20function\x20defined\x20for\x20'+_0x280046['funcName'];}}else{if(_0x25ac84(0x1a2)in _0x280046){if(_0x280046[_0x25ac84(0x1a8)]in _0x3e80ac[_0x25ac84(0x1ef)]){var _0x41a5fb=_0x3e80ac[_0x25ac84(0x1ef)][_0x280046[_0x25ac84(0x1a8)]];switch(_0x41a5fb[_0x25ac84(0x1df)]){case 0x0:break;case 0x1:if(_0x25ac84(0x1e9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1e9)],![]);if(_0x25ac84(0x1d9)in _0x280046)_0x41a5fb[0x0](_0x280046['streaming'],_0x280046[_0x25ac84(0x1d9)],![]);break;case 0x2:if(_0x25ac84(0x1e9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1e9)],![]);if(_0x25ac84(0x1d9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1a2)],_0x280046[_0x25ac84(0x1d9)],![]);if(_0x280046[_0x25ac84(0x1a2)]==_0x25ac84(0x180))_0x41a5fb[0x1](_0x280046[_0x25ac84(0x1a1)],_0x280046[_0x25ac84(0x1f3)],![]);break;case 0x3:if(_0x25ac84(0x1e9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1e9)],![]);if(_0x280046[_0x25ac84(0x1a2)]=='start')_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1d9)],![]);if(_0x280046[_0x25ac84(0x1a2)]==_0x25ac84(0x180))_0x41a5fb[0x1](_0x280046[_0x25ac84(0x1a1)],_0x280046[_0x25ac84(0x1f3)],![]);if(_0x280046[_0x25ac84(0x1a2)]==_0x25ac84(0x1d8))_0x41a5fb[0x2](_0x280046['stream_empty'],![]);break;case 0x4:if('error'in _0x280046)_0x41a5fb[0x4](_0x280046['error'],![]);if(_0x280046[_0x25ac84(0x1a2)]==_0x25ac84(0x18b))_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1d9)],![]);if(_0x280046[_0x25ac84(0x1a2)]==_0x25ac84(0x180))_0x41a5fb[0x1](_0x280046['stream_index'],_0x280046[_0x25ac84(0x1f3)],![]);if(_0x280046['streaming']=='end')_0x41a5fb[0x2](_0x280046['stream_empty'],![]);break;default:throw _0x25ac84(0x1d7)+_0x280046[_0x25ac84(0x1a8)];}}else throw _0x25ac84(0x1c7)+_0x280046[_0x25ac84(0x1a8)];}else{if(_0x280046[_0x25ac84(0x1a8)]in _0x3e80ac[_0x25ac84(0x1ef)]){var _0x41a5fb=_0x3e80ac[_0x25ac84(0x1ef)][_0x280046[_0x25ac84(0x1a8)]];switch(_0x41a5fb['length']){case 0x0:break;case 0x1:if(_0x25ac84(0x1e9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1e9)],![]);if(_0x25ac84(0x1d9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1d9)],![]);break;case 0x2:if(_0x25ac84(0x1e9)in _0x280046)_0x41a5fb[0x1](_0x280046[_0x25ac84(0x1e9)],![]);if(_0x25ac84(0x1d9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1d9)],![]);break;case 0x3:if('error'in _0x280046)_0x41a5fb[0x0](_0x280046['error'],![]);if(_0x25ac84(0x1d9)in _0x280046)_0x41a5fb[0x0](_0x280046[_0x25ac84(0x1d9)],![]);break;default:throw _0x25ac84(0x1d7)+_0x280046[_0x25ac84(0x1a8)];}}else{var _0x41abb2=_0x3e80ac[_0x25ac84(0x1a5)][_0x25ac84(0x1cf)](function(_0xf10787){var _0x19dfc7=_0x25ac84;return _0xf10787[_0x19dfc7(0x1a8)];})[_0x25ac84(0x191)](_0x280046[_0x25ac84(0x1a8)]);if(_0x41abb2>=0x0){var _0x583683=_0x3e80ac[_0x25ac84(0x1a5)][_0x41abb2];_0x280046[_0x25ac84(0x1d9)]===undefined?_0x280046[_0x25ac84(0x1e9)]!==undefined&&_0x583683[_0x25ac84(0x1af)](_0x280046[_0x25ac84(0x1e9)],![]):_0x583683['callback'](_0x280046[_0x25ac84(0x1d9)],!![]);}else throw _0x25ac84(0x1aa)+_0x280046[_0x25ac84(0x1a8)];}}}}else{console[_0x25ac84(0x1d3)](_0x25ac84(0x1db));var _0xa43016=new Uint8Array(_0x4b5336[_0x25ac84(0x183)]),_0x32c00b='\x20';for(var _0x23612d=0x0;_0x23612d<_0xa43016[_0x25ac84(0x1df)];_0x23612d++){_0x32c00b+=(_0x25ac84(0x1ea)+_0xa43016[_0x23612d][_0x25ac84(0x1da)](0x10))[_0x25ac84(0x1a7)](-0x2);}var _0x22e87f=_0x4b5336['data'],_0x3ea486=new Uint8Array(_0x22e87f),_0x43fff0=new Blob([_0x3ea486[_0x25ac84(0x198)]]);if(_0x3e80ac[_0x25ac84(0x1b3)][_0x25ac84(0x1df)]>0x0){var _0x5d509d=_0x3e80ac[_0x25ac84(0x1b3)]['shift']();_0x5d509d['args'][_0x25ac84(0x1e1)]=_0x43fff0,_0x5d509d[_0x25ac84(0x1af)](_0x5d509d['args']);}else{var _0x17467f=new FileReader();_0x17467f[_0x25ac84(0x1c9)]=function(_0x29b88a){var _0x3d7176=_0x25ac84,_0x2635f5=document[_0x3d7176(0x1b0)](_0x3d7176(0x1a9));_0x2635f5['src']=_0x29b88a[_0x3d7176(0x18d)][_0x3d7176(0x1a0)],document['body'][_0x3d7176(0x1b8)](_0x2635f5);},_0x17467f['readAsDataURL'](_0x43fff0),document['getElementById'](_0x25ac84(0x1ae))[_0x25ac84(0x1c1)]=_0x25ac84(0x1f2);}console[_0x25ac84(0x1d3)](_0x25ac84(0x1dd),_0x32c00b);}_0x3e80ac[_0x25ac84(0x1ba)]!==undefined&&_0x3e80ac['onmessageprocessed'](),_0x3e80ac[_0x25ac84(0x1e8)][_0x25ac84(0x1bd)](_0xf2209e=>_0xf2209e());},this[_0x6e41db(0x1e6)][_0x6e41db(0x19a)]=function(_0x1e60e4){var _0x431859=_0x6e41db;console[_0x431859(0x1d3)]('Connection\x20to\x20'+_0x128a05+_0x431859(0x1c2)),_0x3e80ac[_0x431859(0x18f)][_0x431859(0x1bd)](_0x425f2e=>_0x425f2e(_0x1e60e4)),_0x3e80ac['isOpen']=![],this[_0x431859(0x1e6)]=null,_0x3e80ac[_0x431859(0x19a)]!==undefined&&_0x3e80ac[_0x431859(0x19a)](_0x1e60e4),_0x3e80ac[_0x431859(0x1ce)][_0x431859(0x1bd)](_0x2a6f8b=>_0x2a6f8b(_0x1e60e4));};},this[_0x2e7274(0x1b4)]=function(){var _0x5cb857=_0x2e7274;return this[_0x5cb857(0x19f)];},this['getService']=function(_0x558171){var _0x1962b1=_0x2e7274;return this[_0x1962b1(0x19f)][_0x558171];};}export{RemotePyClient};
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "remotepy",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "JavaScript library to connect to RemotePy server. Allows you to call python functions on server from JavaScript.",
5
- "main": "dist/RemotePyClient.common.js",
6
- "module": "dist/RemotePyClient.esm.js",
5
+ "main": "dist/RemotePyClient.js",
6
+ "module": "dist/RemotePyClient.js",
7
7
  "scripts": {
8
8
  "dev-build": "mkdirp dist && cp-cli src/RemotePyClient.js dist/RemotePyClient.dev.js",
9
9
  "prod-build": "mkdirp dist && npx uglify-js src/RemotePyClient.js --compress --mangle --output dist/RemotePyClient.min.js && npx javascript-obfuscator dist/RemotePyClient.min.js --output dist/RemotePyClient.obfuscated.js && cp-cli dist/RemotePyClient.obfuscated.js dist/RemotePyClient.common.js && echo export default RemotePyClient; >> dist/RemotePyClient.common.js && npx rename-cli dist/RemotePyClient.common.js dist/RemotePyClient.esm.js",
@@ -14,7 +14,7 @@
14
14
  "update-file": "echo export default RemotePyClient; >> RemotePyClient.common.js",
15
15
  "rename-file": "rename RemotePyClient.common.js RemotePyClient.esm.js || mv RemotePyClient.common.js RemotePyClient.esm.js",
16
16
  "test": "cross-env NODE_ENV=test mocha test/RemotePyClient.test.js",
17
- "publish_to_npm": "npm run build && cp-cli dist/RemotePyClient.esm.js ./RemotePyClient.js && npm publish && ( del ./RemotePyClient.js || rm ./RemotePyClient.js)"
17
+ "publish_to_npm": "npm run build && cp-cli dist/RemotePyClient.esm.js dist/RemotePyClient.js && npm publish && ( del dist/RemotePyClient.js || rm dist/RemotePyClient.js)"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "webpack-cli": "^5.1.4"
56
56
  },
57
57
  "files": [
58
- "build/remotepy.minobs.js"
58
+ "dist/RemotePyClient.js"
59
59
  ],
60
60
  "dependencies": {
61
61
  "cpx": "^1.2.1",
@@ -1 +0,0 @@
1
- (function(_0x2db585,_0x41f4ea){var _0x33db29=a0_0x37d9,_0x333bf1=_0x2db585();while(!![]){try{var _0x4d69e8=-parseInt(_0x33db29(0x1c1))/0x1+parseInt(_0x33db29(0x1c6))/0x2*(parseInt(_0x33db29(0x1cd))/0x3)+-parseInt(_0x33db29(0x198))/0x4+-parseInt(_0x33db29(0x1cf))/0x5+parseInt(_0x33db29(0x1d9))/0x6*(-parseInt(_0x33db29(0x1da))/0x7)+-parseInt(_0x33db29(0x1ce))/0x8*(parseInt(_0x33db29(0x19b))/0x9)+-parseInt(_0x33db29(0x176))/0xa*(-parseInt(_0x33db29(0x1b3))/0xb);if(_0x4d69e8===_0x41f4ea)break;else _0x333bf1['push'](_0x333bf1['shift']());}catch(_0xcdd6db){_0x333bf1['push'](_0x333bf1['shift']());}}}(a0_0x5a1c,0x9d7fc));function a0_0x37d9(_0x541d0f,_0x4caf62){var _0x5a1c1e=a0_0x5a1c();return a0_0x37d9=function(_0x37d9dd,_0x5c2375){_0x37d9dd=_0x37d9dd-0x16e;var _0xd05bf3=_0x5a1c1e[_0x37d9dd];return _0xd05bf3;},a0_0x37d9(_0x541d0f,_0x4caf62);}import*as a0_0x12a9f0 from'https://cdn.jsdelivr.net/npm/msgpack-lite@0.1.26';function a0_0x5a1c(){var _0x10fdf4=['data','connect','start','apply','socket','row','function','isBinary','\x27,\x20inputObject,\x20...func);','The\x20dropped\x20file\x20is\x20an\x20image:\x20','Too\x20many\x20callbacks\x20for\x20','createElement','763920yHajst','target','args','169407FbNXuO','wss','No\x20function\x20callback\x20defined\x20for\x20','stream_empty','result','PythonFunctionsHelp','PostOpenEventHandlers','buffer','Function\x20:\x20','...func','callPythonFunctionBinary','arraybuffer','slice','end','readAsArrayBuffer','Connecting\x20to\x20:\x20','error','No\x20function\x20defined\x20for\x20','\x20closed.','getService','JS2PY_SESSION_ID','registerCallbackToPythonFunction','stream_item','getSessionId','29194KgmKtS','getElementById','callPythonFunction','indexOf','createJSProxyFunctions','\x27].slice(0,\x20-1);\x0a','substr','PreOpenEventHandlers','readyState','onload','length','isOpen','\x20...','getPythonFunctionLibraryHelp','1203964UhUEGa','No\x20msgpack\x20library\x20loaded','decode','match','split','91928GzMsfm','callback','streaming','onmessageprocessed','map','getPythonFunctionLibrary','Connected\x20to\x20Server\x20:','3kVQXua','120uRxxiz','3422400kWEVEh','pythonCallbackDict','addPostOpenEventHandler','forEach','\x20called\x20with\x20arguments:\x20','shift','registerMultipleCallbackPythonFunction','binaryFunctionQueue','sendNonImageBinary','Connection\x20not\x20open.','186qcrTqO','250117NosjeJ','var\x20args\x20=\x20Array.prototype.slice.call(arguments);\x20var\x20inputObject\x20=\x20{};\x20for(var\x20i\x20in\x20paramNames)\x20{\x20var\x20paramName\x20=\x20paramNames[i];\x20if(paramName\x20!=\x20\x27...func\x27)\x20{\x20inputObject[paramName]\x20=\x20args[i];}\x20}\x20return\x20this.callMultipleCallbackPythonFunction(\x27','body','addPreCloseEventHandler','onmessagereceived','stringify','stream_index','innerHTML','toString','PostCloseEventHandlers','addPostCloseEventHandler','blob','img','return','funcName','Chart\x20Loading\x20Completed\x20...','clientPageId','serverName','log','callFunc','JS2Py','type','func','push','string','callMultipleCallbackPythonFunction','PythonFunctions','getItem','sendBinary','15330yJBfzB','onmessage','sendImageBinary','session_id','readAsDataURL','oninit','onopen','message(b)\x20received\x20:\x20','Connection\x20to\x20','getServerString','00\x20','registerJSFunctionToBeCalledByPython','onclose','PythonFunctionsArgs','PostMessageEventHandlers','PreMessageEventHandlers','parse','bind','StatusBar','pythonMultipleCallbackDict','jsFunctionDict','send'];a0_0x5a1c=function(){return _0x10fdf4;};return a0_0x5a1c();}function RemotePyClient(_0x49230f,_0x2c3688){var _0x5a344f=a0_0x37d9;if(_0x49230f===undefined)this[_0x5a344f(0x1eb)]='ws://localhost:80';else this[_0x5a344f(0x1eb)]=_0x49230f;if(_0x2c3688===undefined)this[_0x5a344f(0x1ea)]=_0x5a344f(0x19c);else this[_0x5a344f(0x1ea)]=_0x2c3688;this[_0x5a344f(0x1be)]=![],this[_0x5a344f(0x18a)]=[],this[_0x5a344f(0x1d0)]=[],this[_0x5a344f(0x1d6)]=[],this[_0x5a344f(0x173)]={},this['socket']=null,this[_0x5a344f(0x1a0)]={},this[_0x5a344f(0x189)]={},this[_0x5a344f(0x183)]={},this[_0x5a344f(0x1ee)]={};let _0x59759b=null;this[_0x5a344f(0x1ba)]=[],this['PreCloseEventHandlers']=[],this['PreMessageEventHandlers']=[],this[_0x5a344f(0x1a1)]=[],this[_0x5a344f(0x1e3)]=[],this[_0x5a344f(0x184)]=[],this['addPreOpenEventHandler']=_0x103b7f=>this[_0x5a344f(0x1ba)][_0x5a344f(0x170)](_0x103b7f),this[_0x5a344f(0x1dd)]=_0x3e2e70=>this['PreCloseEventHandlers'][_0x5a344f(0x170)](_0x3e2e70),this['addPreMessageEventHandler']=_0xd95a5a=>this[_0x5a344f(0x185)][_0x5a344f(0x170)](_0xd95a5a),this[_0x5a344f(0x1d1)]=_0x3266fa=>this['PostOpenEventHandlers'][_0x5a344f(0x170)](_0x3266fa),this[_0x5a344f(0x1e4)]=_0xbfbe77=>this[_0x5a344f(0x1e3)][_0x5a344f(0x170)](_0xbfbe77),this['addPostMessageEventHandler']=_0x3b210c=>this[_0x5a344f(0x184)][_0x5a344f(0x170)](_0x3b210c),this[_0x5a344f(0x17f)]=function(){var _0xad675b=_0x5a344f;return this[_0xad675b(0x1eb)]+'/'+this['clientPageId'];},this['readCallbackArguments']=function(_0x5b7233,..._0x40692f){var _0x17b7b5=_0x5a344f;for(var _0x43a33a=_0x40692f[_0x17b7b5(0x1bd)]-0x1;_0x43a33a>=0x0;--_0x43a33a){if(typeof _0x40692f[_0x43a33a]!==_0x17b7b5(0x192))break;}var _0x4b8311=_0x40692f[_0x17b7b5(0x1a7)](0x0,_0x43a33a+0x1),_0x86f8da=_0x40692f['slice'](_0x43a33a+0x1);return[_0x5b7233,_0x4b8311,_0x86f8da];},this[_0x5a344f(0x1d5)]=function(_0x2f00e3,..._0x4d0393){var _0x5dccda=_0x5a344f;this[_0x5dccda(0x189)][_0x2f00e3]=_0x4d0393;},this[_0x5a344f(0x172)]=function(_0x28b487,..._0x4684b9){var _0x303aa3=_0x5a344f,_0x120b9e=this['readCallbackArguments'](_0x28b487,..._0x4684b9);_0x28b487=_0x120b9e[0x0];let _0x11dafd=_0x120b9e[0x1][0x0],_0x46d71b=_0x120b9e[0x2];this[_0x303aa3(0x1be)]?(this[_0x303aa3(0x190)][_0x303aa3(0x18b)](JSON['stringify']({'funcName':_0x28b487,'args':_0x11dafd,'session_id':this[_0x303aa3(0x1b2)]()})),console[_0x303aa3(0x1ec)](_0x303aa3(0x1a3)+_0x28b487+_0x303aa3(0x1d3),_0x11dafd)):console[_0x303aa3(0x1ec)](_0x303aa3(0x1d8)),_0x46d71b[_0x303aa3(0x1bd)]>0x0&&this[_0x303aa3(0x1d5)](_0x28b487,..._0x46d71b);},this[_0x5a344f(0x1b0)]=function(_0x22a613,_0x23097f){var _0x220431=_0x5a344f,_0x1452c9=this[_0x220431(0x1d0)][_0x220431(0x1ca)](function(_0x5a1585){var _0x3653c4=_0x220431;return _0x5a1585[_0x3653c4(0x1e8)];})[_0x220431(0x1b6)](_0x22a613);_0x1452c9<0x0?this[_0x220431(0x1d0)][_0x220431(0x170)]({'funcName':_0x22a613,'callback':_0x23097f}):this[_0x220431(0x1d0)][_0x1452c9][_0x220431(0x1c7)]=_0x23097f;},this[_0x5a344f(0x1b2)]=function(){var _0x2c6d40=_0x5a344f;return sessionStorage[_0x2c6d40(0x174)](_0x2c6d40(0x1af));},this[_0x5a344f(0x181)]=function(_0x3b1bcf,_0x544939){var _0xd32484=_0x5a344f;this['jsFunctionDict'][_0xd32484(0x170)]({'funcName':_0x3b1bcf,'func':_0x544939});},this[_0x5a344f(0x1ed)]=function(_0x406bff,_0x11f731,_0x22db6a){var _0x5c60ff=_0x5a344f;this[_0x5c60ff(0x1be)]?(this[_0x5c60ff(0x190)][_0x5c60ff(0x18b)](JSON[_0x5c60ff(0x1df)]({'funcName':_0x406bff,'args':_0x11f731,'session_id':this[_0x5c60ff(0x1b2)]()})),console[_0x5c60ff(0x1ec)](_0x5c60ff(0x1a3)+_0x406bff+_0x5c60ff(0x1d3),_0x11f731)):console['log'](_0x5c60ff(0x1d8));if(_0x22db6a===undefined){}else this[_0x5c60ff(0x1b0)](_0x406bff,_0x22db6a);},this[_0x5a344f(0x1b5)]=function(_0x57aabb,_0x2ef030,..._0x1eb21f){this['callMultipleCallbackPythonFunction'](_0x57aabb,_0x2ef030,..._0x1eb21f);},this[_0x5a344f(0x1a5)]=function(_0x3d52d4,_0x1893e7,_0x5b6104,_0x21a9af){var _0x3830e2=_0x5a344f;_0x1893e7===undefined&&(_0x1893e7={});_0x1893e7[_0x3830e2(0x193)]=!![],this['callFunc'](_0x3d52d4,_0x1893e7);if(this[_0x3830e2(0x1be)]){this[_0x3830e2(0x175)](_0x5b6104);if(_0x21a9af===undefined){}else this[_0x3830e2(0x1b0)](_0x3d52d4,_0x21a9af);}else console['log'](_0x3830e2(0x1d8));},this[_0x5a344f(0x175)]=function(_0x524f33){var _0x18a123=_0x5a344f,_0x58d93d=new FileReader();_0x58d93d[_0x18a123(0x1bc)]=function(_0x2cdf99){var _0x24d763=_0x18a123,_0x572eca=_0x2cdf99[_0x24d763(0x199)][_0x24d763(0x19f)];if(this['socket']&&this[_0x24d763(0x190)][_0x24d763(0x1bb)]==0x1)this['socket'][_0x24d763(0x18b)](_0x572eca);},_0x58d93d[_0x18a123(0x1a9)](_0x524f33);},this[_0x5a344f(0x1d7)]=function(_0x391367){var _0x414ca7=_0x5a344f;if(_0x391367[_0x414ca7(0x16e)][_0x414ca7(0x1c4)](/image.*/)){console[_0x414ca7(0x1ec)](_0x414ca7(0x195),_0x391367[_0x414ca7(0x16e)]);return;}var _0x39bc48=new FileReader();_0x39bc48['onload']=function(_0x5265b0){var _0x4a43a0=_0x414ca7,_0x21a09f=_0x5265b0[_0x4a43a0(0x199)]['result'];if(this[_0x4a43a0(0x190)]&&this[_0x4a43a0(0x190)][_0x4a43a0(0x1bb)]==0x1)this[_0x4a43a0(0x190)]['send'](_0x21a09f);},_0x39bc48['readAsArrayBuffer'](_0x391367);},this[_0x5a344f(0x178)]=function(_0x38f936){var _0x3219b2=_0x5a344f;if(!_0x38f936['type'][_0x3219b2(0x1c4)](/image.*/)){console[_0x3219b2(0x1ec)]('The\x20dropped\x20file\x20is\x20not\x20an\x20image:\x20',_0x38f936[_0x3219b2(0x16e)]);return;}var _0x3b0e0d=new FileReader();_0x3b0e0d['onload']=function(_0x540738){var _0x5e274a=_0x3219b2,_0x39895e=_0x540738[_0x5e274a(0x199)][_0x5e274a(0x19f)];if(this[_0x5e274a(0x190)]&&this[_0x5e274a(0x190)][_0x5e274a(0x1bb)]==0x1)this[_0x5e274a(0x190)][_0x5e274a(0x18b)](_0x39895e);},_0x3b0e0d[_0x3219b2(0x1a9)](_0x38f936);},this[_0x5a344f(0x1b7)]=function(_0x59a8e1){var _0x53a03b=_0x5a344f;for(var _0x3b4d5d in this[_0x53a03b(0x183)]){var _0x3c066a=this[_0x53a03b(0x183)][_0x3b4d5d];_0x3c066a[_0x53a03b(0x170)](_0x53a03b(0x1a4));var _0x5315f1='var\x20paramNames\x20=\x20this.PythonFunctionsArgs[\x27'+_0x3b4d5d+_0x53a03b(0x1b8)+_0x53a03b(0x1db)+_0x3b4d5d+_0x53a03b(0x194);_0x3c066a[_0x53a03b(0x170)](_0x5315f1),_0x59759b=this;if(_0x3b4d5d[_0x53a03b(0x1b6)]('.')>=0x0){var _0x3cf7da=_0x3b4d5d[_0x53a03b(0x1c5)]('.'),_0x1110e8=this[_0x53a03b(0x173)];for(var _0x156d45=0x0;_0x156d45<_0x3cf7da[_0x53a03b(0x1bd)]-0x1;_0x156d45++){!(_0x3cf7da[_0x156d45]in _0x1110e8)&&(_0x1110e8[_0x3cf7da[_0x156d45]]={}),_0x1110e8=_0x1110e8[_0x3cf7da[_0x156d45]];}_0x1110e8[_0x3cf7da[_0x3cf7da[_0x53a03b(0x1bd)]-0x1]]=Function[_0x53a03b(0x18f)](null,_0x3c066a)[_0x53a03b(0x187)](this);}else this['PythonFunctions'][_0x3b4d5d]=Function[_0x53a03b(0x18f)](null,_0x3c066a)[_0x53a03b(0x187)](this);}},this[_0x5a344f(0x18d)]=function(){var _0xef2a5=_0x5a344f;this[_0xef2a5(0x17b)]!==undefined&&this['oninit']();var _0x5db62b=this[_0xef2a5(0x17f)]();console['log'](_0xef2a5(0x1aa)+_0x5db62b+_0xef2a5(0x1bf)),this[_0xef2a5(0x190)]=new WebSocket(_0x5db62b),this[_0xef2a5(0x190)]['binaryType']=_0xef2a5(0x1a6),_0x59759b=this,this[_0xef2a5(0x190)][_0xef2a5(0x17c)]=function(){var _0x4b53b2=_0xef2a5;console[_0x4b53b2(0x1ec)](_0x4b53b2(0x1cc)+_0x5db62b),_0x59759b[_0x4b53b2(0x1ba)]['forEach'](_0x364d32=>_0x364d32()),_0x59759b['isOpen']=!![],_0x59759b['onopen']!==undefined&&(_0x59759b[_0x4b53b2(0x172)]('getPythonFunctionLibrary',{},function(_0x16313a){var _0x105775=_0x4b53b2;_0x59759b[_0x105775(0x183)]={};for(var _0xec3b1 in _0x16313a){_0x16313a[_0xec3b1][_0x105775(0x1d4)](),_0x16313a[_0xec3b1][0x0]==_0x105775(0x179)&&_0x16313a[_0xec3b1][_0x105775(0x1d4)](),_0x59759b[_0x105775(0x183)][_0xec3b1]=_0x16313a[_0xec3b1];}_0x59759b['createJSProxyFunctions'](''),_0x59759b[_0x105775(0x17c)]();}),_0x59759b[_0x4b53b2(0x172)](_0x4b53b2(0x1c0),{},function(_0x518806){var _0x283994=_0x4b53b2;_0x59759b[_0x283994(0x1a0)]=_0x518806;})),_0x59759b[_0x4b53b2(0x1a1)][_0x4b53b2(0x1d2)](_0x4368da=>_0x4368da());},this['socket'][_0xef2a5(0x177)]=function(_0x3ffc9b){var _0x1173ec=_0xef2a5;_0x59759b['PreMessageEventHandlers'][_0x1173ec(0x1d2)](_0x620a3c=>_0x620a3c());_0x59759b[_0x1173ec(0x1de)]!==undefined&&_0x59759b[_0x1173ec(0x1de)](_0x3ffc9b);let _0x17009c=null;if(_0x3ffc9b['data']instanceof ArrayBuffer)try{const _0x11cd78=a0_0x12a9f0[_0x1173ec(0x1c3)](new Uint8Array(_0x3ffc9b[_0x1173ec(0x18c)]));_0x17009c=_0x11cd78;}catch(_0x53c66e){_0x17009c=null;}else typeof _0x3ffc9b['data']==_0x1173ec(0x171)&&(_0x17009c=JSON[_0x1173ec(0x186)](_0x3ffc9b[_0x1173ec(0x18c)]));if(_0x17009c!==null){console[_0x1173ec(0x1ec)]('Message\x20received:\x20',_0x17009c);if('args'in _0x17009c){var _0x5caa34=_0x59759b[_0x1173ec(0x18a)][_0x1173ec(0x1ca)](function(_0x4f1e67){var _0x364c63=_0x1173ec;return _0x4f1e67[_0x364c63(0x1e8)];})[_0x1173ec(0x1b6)](_0x17009c[_0x1173ec(0x1e8)]);if(_0x5caa34>=0x0){var _0x2cc6e9=_0x59759b[_0x1173ec(0x18a)][_0x5caa34];_0x1173ec(0x193)in _0x17009c[_0x1173ec(0x19a)]?_0x59759b[_0x1173ec(0x1d6)][_0x1173ec(0x170)]({'funcName':_0x17009c[_0x1173ec(0x1e8)],'callback':_0x2cc6e9[_0x1173ec(0x16f)],'args':_0x17009c[_0x1173ec(0x19a)]}):_0x2cc6e9[_0x1173ec(0x16f)](_0x17009c[_0x1173ec(0x19a)]);}else{if(_0x17009c['funcName']===_0x1173ec(0x1cb))return;else throw _0x1173ec(0x1ac)+_0x17009c[_0x1173ec(0x1e8)];}}else{if(_0x1173ec(0x1c8)in _0x17009c){if(_0x17009c[_0x1173ec(0x1e8)]in _0x59759b[_0x1173ec(0x189)]){var _0x47c297=_0x59759b[_0x1173ec(0x189)][_0x17009c[_0x1173ec(0x1e8)]];switch(_0x47c297[_0x1173ec(0x1bd)]){case 0x0:break;case 0x1:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1ab)],![]);if(_0x1173ec(0x1e7)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1c8)],_0x17009c[_0x1173ec(0x1e7)],![]);break;case 0x2:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1ab)],![]);if('return'in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1c8)],_0x17009c[_0x1173ec(0x1e7)],![]);if(_0x17009c[_0x1173ec(0x1c8)]=='row')_0x47c297[0x1](_0x17009c['stream_index'],_0x17009c[_0x1173ec(0x1b1)],![]);break;case 0x3:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1ab)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x18e))_0x47c297[0x0](_0x17009c[_0x1173ec(0x1e7)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x191))_0x47c297[0x1](_0x17009c['stream_index'],_0x17009c[_0x1173ec(0x1b1)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x1a8))_0x47c297[0x2](_0x17009c[_0x1173ec(0x19e)],![]);break;case 0x4:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x4](_0x17009c[_0x1173ec(0x1ab)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x18e))_0x47c297[0x0](_0x17009c[_0x1173ec(0x1e7)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x191))_0x47c297[0x1](_0x17009c[_0x1173ec(0x1e0)],_0x17009c[_0x1173ec(0x1b1)],![]);if(_0x17009c[_0x1173ec(0x1c8)]==_0x1173ec(0x1a8))_0x47c297[0x2](_0x17009c[_0x1173ec(0x19e)],![]);break;default:throw _0x1173ec(0x196)+_0x17009c[_0x1173ec(0x1e8)];}}else throw _0x1173ec(0x19d)+_0x17009c['funcName'];}else{if(_0x17009c[_0x1173ec(0x1e8)]in _0x59759b[_0x1173ec(0x189)]){var _0x47c297=_0x59759b[_0x1173ec(0x189)][_0x17009c[_0x1173ec(0x1e8)]];switch(_0x47c297[_0x1173ec(0x1bd)]){case 0x0:break;case 0x1:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x0](_0x17009c['error'],![]);if(_0x1173ec(0x1e7)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1e7)],![]);break;case 0x2:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x1](_0x17009c[_0x1173ec(0x1ab)],![]);if('return'in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1e7)],![]);break;case 0x3:if(_0x1173ec(0x1ab)in _0x17009c)_0x47c297[0x0](_0x17009c[_0x1173ec(0x1ab)],![]);if(_0x1173ec(0x1e7)in _0x17009c)_0x47c297[0x0](_0x17009c['return'],![]);break;default:throw _0x1173ec(0x196)+_0x17009c[_0x1173ec(0x1e8)];}}else{var _0x5caa34=_0x59759b[_0x1173ec(0x1d0)][_0x1173ec(0x1ca)](function(_0x37e9f6){return _0x37e9f6['funcName'];})[_0x1173ec(0x1b6)](_0x17009c['funcName']);if(_0x5caa34>=0x0){var _0x2cc6e9=_0x59759b['pythonCallbackDict'][_0x5caa34];_0x17009c[_0x1173ec(0x1e7)]===undefined?_0x17009c['error']!==undefined&&_0x2cc6e9[_0x1173ec(0x1c7)](_0x17009c[_0x1173ec(0x1ab)],![]):_0x2cc6e9[_0x1173ec(0x1c7)](_0x17009c[_0x1173ec(0x1e7)],!![]);}else throw _0x1173ec(0x1ac)+_0x17009c[_0x1173ec(0x1e8)];}}}}else{console[_0x1173ec(0x1ec)](_0x1173ec(0x1c2));var _0x6ab46d=new Uint8Array(_0x3ffc9b[_0x1173ec(0x18c)]),_0x5e1d0d='\x20';for(var _0x4f47ca=0x0;_0x4f47ca<_0x6ab46d[_0x1173ec(0x1bd)];_0x4f47ca++){_0x5e1d0d+=(_0x1173ec(0x180)+_0x6ab46d[_0x4f47ca][_0x1173ec(0x1e2)](0x10))[_0x1173ec(0x1b9)](-0x2);}var _0x5bf4a5=_0x3ffc9b[_0x1173ec(0x18c)],_0x92c89a=new Uint8Array(_0x5bf4a5),_0x7b8a8c=new Blob([_0x92c89a[_0x1173ec(0x1a2)]]);if(_0x59759b[_0x1173ec(0x1d6)][_0x1173ec(0x1bd)]>0x0){var _0x4124c9=_0x59759b['binaryFunctionQueue'][_0x1173ec(0x1d4)]();_0x4124c9[_0x1173ec(0x19a)][_0x1173ec(0x1e5)]=_0x7b8a8c,_0x4124c9[_0x1173ec(0x1c7)](_0x4124c9[_0x1173ec(0x19a)]);}else{var _0x1910e5=new FileReader();_0x1910e5[_0x1173ec(0x1bc)]=function(_0x4e4bda){var _0x500d82=_0x1173ec,_0x42c979=document[_0x500d82(0x197)](_0x500d82(0x1e6));_0x42c979['src']=_0x4e4bda[_0x500d82(0x199)][_0x500d82(0x19f)],document[_0x500d82(0x1dc)]['appendChild'](_0x42c979);},_0x1910e5[_0x1173ec(0x17a)](_0x7b8a8c),document[_0x1173ec(0x1b4)](_0x1173ec(0x188))[_0x1173ec(0x1e1)]=_0x1173ec(0x1e9);}console[_0x1173ec(0x1ec)](_0x1173ec(0x17d),_0x5e1d0d);}_0x59759b['onmessageprocessed']!==undefined&&_0x59759b[_0x1173ec(0x1c9)](),_0x59759b['PostMessageEventHandlers'][_0x1173ec(0x1d2)](_0x5f076c=>_0x5f076c());},this['socket'][_0xef2a5(0x182)]=function(_0x30c9f6){var _0x8e3ba7=_0xef2a5;console[_0x8e3ba7(0x1ec)](_0x8e3ba7(0x17e)+_0x5db62b+_0x8e3ba7(0x1ad)),_0x59759b['PreCloseEventHandlers'][_0x8e3ba7(0x1d2)](_0x1a39db=>_0x1a39db(_0x30c9f6)),_0x59759b[_0x8e3ba7(0x1be)]=![],this[_0x8e3ba7(0x190)]=null,_0x59759b[_0x8e3ba7(0x182)]!==undefined&&_0x59759b[_0x8e3ba7(0x182)](_0x30c9f6),_0x59759b[_0x8e3ba7(0x1e3)][_0x8e3ba7(0x1d2)](_0x42d88a=>_0x42d88a(_0x30c9f6));};},this['getServerAPI']=function(){var _0x57e0bf=_0x5a344f;return this[_0x57e0bf(0x173)];},this[_0x5a344f(0x1ae)]=function(_0x1cecfc){var _0x34f8cc=_0x5a344f;return this[_0x34f8cc(0x173)][_0x1cecfc];};}export{RemotePyClient as RemotePy};
@@ -1 +0,0 @@
1
- function a0_0x3c5b(_0x3e61b8,_0x3b21ee){var _0x141f5e=a0_0x141f();return a0_0x3c5b=function(_0x3c5bab,_0x5423e3){_0x3c5bab=_0x3c5bab-0x1df;var _0x2fcad3=_0x141f5e[_0x3c5bab];return _0x2fcad3;},a0_0x3c5b(_0x3e61b8,_0x3b21ee);}(function(_0x38269f,_0x1fc73a){var _0x2e8159=a0_0x3c5b,_0x3ded4c=_0x38269f();while(!![]){try{var _0x2394e0=parseInt(_0x2e8159(0x24f))/0x1+-parseInt(_0x2e8159(0x1e4))/0x2+parseInt(_0x2e8159(0x1ff))/0x3+-parseInt(_0x2e8159(0x22a))/0x4*(-parseInt(_0x2e8159(0x216))/0x5)+parseInt(_0x2e8159(0x25a))/0x6*(-parseInt(_0x2e8159(0x1f4))/0x7)+-parseInt(_0x2e8159(0x21a))/0x8*(parseInt(_0x2e8159(0x1e9))/0x9)+-parseInt(_0x2e8159(0x222))/0xa;if(_0x2394e0===_0x1fc73a)break;else _0x3ded4c['push'](_0x3ded4c['shift']());}catch(_0x51aad6){_0x3ded4c['push'](_0x3ded4c['shift']());}}}(a0_0x141f,0x953e4));import*as a0_0x349d04 from'msgpack-lite';function a0_0x141f(){var _0xa42263=['type','onload','registerCallbackToPythonFunction','decode','1964bylaoN','\x20closed.','\x20called\x20with\x20arguments:\x20','Connected\x20to\x20Server\x20:','indexOf','Message\x20received:\x20','split','connect','PreMessageEventHandlers','No\x20function\x20defined\x20for\x20','getServerString','\x27,\x20inputObject,\x20...func);','No\x20msgpack\x20library\x20loaded','PreOpenEventHandlers','pythonCallbackDict','onmessageprocessed','socket','JS2PY_SESSION_ID','message(b)\x20received\x20:\x20','substr','shift','binaryType','push','stream_empty','getService','innerHTML','data','end','jsFunctionDict','session_id','Connection\x20not\x20open.','log','parse','pythonMultipleCallbackDict','callFunc','stream_item','return','766105iOyGbo','row','isBinary','sendNonImageBinary','getItem','arraybuffer','\x20...','getPythonFunctionLibraryHelp','result','PostOpenEventHandlers','readyState','6PVMfgs','onmessagereceived','ws://localhost:80','sendImageBinary','PythonFunctions','forEach','slice','PythonFunctionsArgs','Connecting\x20to\x20:\x20','797876mYMMNr','\x27].slice(0,\x20-1);\x0a','onopen','PostCloseEventHandlers','readAsArrayBuffer','603DXIkyH','args','createElement','sendBinary','addPreOpenEventHandler','getPythonFunctionLibrary','JS2Py','registerMultipleCallbackPythonFunction','wss','body','error','8450813vHlHXF','length','registerJSFunctionToBeCalledByPython','Too\x20many\x20callbacks\x20for\x20','readCallbackArguments','getSessionId','blob','string','function','addPostMessageEventHandler','isOpen','2030583zwXIal','onclose','appendChild','callback','streaming','target','The\x20dropped\x20file\x20is\x20not\x20an\x20image:\x20','img','start','Chart\x20Loading\x20Completed\x20...','addPostOpenEventHandler','src','PostMessageEventHandlers','apply','getServerAPI','addPreMessageEventHandler','serverName','bind','func','binaryFunctionQueue','readAsDataURL','stream_index','stringify','11595rsDtzQ','callMultipleCallbackPythonFunction','funcName','00\x20','40408fXKbao','createJSProxyFunctions','PreCloseEventHandlers','oninit','send','addPostCloseEventHandler','clientPageId','map','256810PhNJGc','Function\x20:\x20','var\x20args\x20=\x20Array.prototype.slice.call(arguments);\x20var\x20inputObject\x20=\x20{};\x20for(var\x20i\x20in\x20paramNames)\x20{\x20var\x20paramName\x20=\x20paramNames[i];\x20if(paramName\x20!=\x20\x27...func\x27)\x20{\x20inputObject[paramName]\x20=\x20args[i];}\x20}\x20return\x20this.callMultipleCallbackPythonFunction(\x27','The\x20dropped\x20file\x20is\x20an\x20image:\x20'];a0_0x141f=function(){return _0xa42263;};return a0_0x141f();}function RemotePyClient(_0x33b0db,_0x104dbb){var _0x522c79=a0_0x3c5b;if(_0x33b0db===undefined)this['serverName']=_0x522c79(0x25c);else this['serverName']=_0x33b0db;if(_0x104dbb===undefined)this['clientPageId']=_0x522c79(0x1f1);else this[_0x522c79(0x220)]=_0x104dbb;this[_0x522c79(0x1fe)]=![],this[_0x522c79(0x246)]=[],this[_0x522c79(0x238)]=[],this[_0x522c79(0x212)]=[],this[_0x522c79(0x1df)]={},this['socket']=null,this['PythonFunctionsHelp']={},this[_0x522c79(0x24b)]={},this[_0x522c79(0x1e2)]={},this[_0x522c79(0x1ef)]={};let _0x445793=null;this[_0x522c79(0x237)]=[],this[_0x522c79(0x21c)]=[],this['PreMessageEventHandlers']=[],this[_0x522c79(0x258)]=[],this[_0x522c79(0x1e7)]=[],this[_0x522c79(0x20b)]=[],this[_0x522c79(0x1ed)]=_0x2b05a8=>this['PreOpenEventHandlers'][_0x522c79(0x240)](_0x2b05a8),this['addPreCloseEventHandler']=_0x1d618f=>this[_0x522c79(0x21c)]['push'](_0x1d618f),this[_0x522c79(0x20e)]=_0x5e9522=>this[_0x522c79(0x232)]['push'](_0x5e9522),this[_0x522c79(0x209)]=_0x46cc07=>this[_0x522c79(0x258)][_0x522c79(0x240)](_0x46cc07),this[_0x522c79(0x21f)]=_0x322d43=>this[_0x522c79(0x1e7)][_0x522c79(0x240)](_0x322d43),this[_0x522c79(0x1fd)]=_0x492b0e=>this[_0x522c79(0x20b)]['push'](_0x492b0e),this[_0x522c79(0x234)]=function(){var _0x14fece=_0x522c79;return this[_0x14fece(0x20f)]+'/'+this[_0x14fece(0x220)];},this['readCallbackArguments']=function(_0x1f1683,..._0x45d2e5){var _0x2cde40=_0x522c79;for(var _0x33e9d6=_0x45d2e5['length']-0x1;_0x33e9d6>=0x0;--_0x33e9d6){if(typeof _0x45d2e5[_0x33e9d6]!==_0x2cde40(0x1fc))break;}var _0x44c797=_0x45d2e5[_0x2cde40(0x1e1)](0x0,_0x33e9d6+0x1),_0x737fd5=_0x45d2e5[_0x2cde40(0x1e1)](_0x33e9d6+0x1);return[_0x1f1683,_0x44c797,_0x737fd5];},this[_0x522c79(0x1f0)]=function(_0x1a34d4,..._0x4fda02){this['pythonMultipleCallbackDict'][_0x1a34d4]=_0x4fda02;},this['callMultipleCallbackPythonFunction']=function(_0x22ee37,..._0x3390c1){var _0x12702d=_0x522c79,_0x40fe5f=this[_0x12702d(0x1f8)](_0x22ee37,..._0x3390c1);_0x22ee37=_0x40fe5f[0x0];let _0x483567=_0x40fe5f[0x1][0x0],_0x1de85c=_0x40fe5f[0x2];this[_0x12702d(0x1fe)]?(this[_0x12702d(0x23a)][_0x12702d(0x21e)](JSON[_0x12702d(0x215)]({'funcName':_0x22ee37,'args':_0x483567,'session_id':this[_0x12702d(0x1f9)]()})),console['log'](_0x12702d(0x223)+_0x22ee37+_0x12702d(0x22c),_0x483567)):console[_0x12702d(0x249)](_0x12702d(0x248)),_0x1de85c['length']>0x0&&this['registerMultipleCallbackPythonFunction'](_0x22ee37,..._0x1de85c);},this[_0x522c79(0x228)]=function(_0x3f1eb3,_0x6ef1f1){var _0x357125=_0x522c79,_0x42bbdd=this[_0x357125(0x238)][_0x357125(0x221)](function(_0x4b5ea){var _0x470b40=_0x357125;return _0x4b5ea[_0x470b40(0x218)];})[_0x357125(0x22e)](_0x3f1eb3);_0x42bbdd<0x0?this['pythonCallbackDict'][_0x357125(0x240)]({'funcName':_0x3f1eb3,'callback':_0x6ef1f1}):this[_0x357125(0x238)][_0x42bbdd]['callback']=_0x6ef1f1;},this['getSessionId']=function(){var _0x1b6b68=_0x522c79;return sessionStorage[_0x1b6b68(0x253)](_0x1b6b68(0x23b));},this[_0x522c79(0x1f6)]=function(_0x3927b7,_0x3a7da6){var _0x512de7=_0x522c79;this[_0x512de7(0x246)][_0x512de7(0x240)]({'funcName':_0x3927b7,'func':_0x3a7da6});},this['callFunc']=function(_0x4030b4,_0x1c21f8,_0x106df9){var _0x4be295=_0x522c79;this['isOpen']?(this[_0x4be295(0x23a)][_0x4be295(0x21e)](JSON[_0x4be295(0x215)]({'funcName':_0x4030b4,'args':_0x1c21f8,'session_id':this[_0x4be295(0x1f9)]()})),console['log'](_0x4be295(0x223)+_0x4030b4+_0x4be295(0x22c),_0x1c21f8)):console['log'](_0x4be295(0x248));if(_0x106df9===undefined){}else this['registerCallbackToPythonFunction'](_0x4030b4,_0x106df9);},this['callPythonFunction']=function(_0x2672fa,_0x6f245b,..._0x13f8b){this['callMultipleCallbackPythonFunction'](_0x2672fa,_0x6f245b,..._0x13f8b);},this['callPythonFunctionBinary']=function(_0x2a3a11,_0x30c792,_0x585746,_0x2d8570){var _0x56ebb1=_0x522c79;_0x30c792===undefined&&(_0x30c792={});_0x30c792[_0x56ebb1(0x251)]=!![],this[_0x56ebb1(0x24c)](_0x2a3a11,_0x30c792);if(this[_0x56ebb1(0x1fe)]){this[_0x56ebb1(0x1ec)](_0x585746);if(_0x2d8570===undefined){}else this[_0x56ebb1(0x228)](_0x2a3a11,_0x2d8570);}else console['log'](_0x56ebb1(0x248));},this[_0x522c79(0x1ec)]=function(_0x2b8faf){var _0x2bdfb9=_0x522c79,_0x408922=new FileReader();_0x408922[_0x2bdfb9(0x227)]=function(_0x490171){var _0x8204fe=_0x2bdfb9,_0x3f6ad6=_0x490171[_0x8204fe(0x204)][_0x8204fe(0x257)];if(this[_0x8204fe(0x23a)]&&this[_0x8204fe(0x23a)][_0x8204fe(0x259)]==0x1)this[_0x8204fe(0x23a)][_0x8204fe(0x21e)](_0x3f6ad6);},_0x408922[_0x2bdfb9(0x1e8)](_0x2b8faf);},this[_0x522c79(0x252)]=function(_0x13e516){var _0x3a07fc=_0x522c79;if(_0x13e516['type']['match'](/image.*/)){console[_0x3a07fc(0x249)](_0x3a07fc(0x225),_0x13e516['type']);return;}var _0x53f2f8=new FileReader();_0x53f2f8[_0x3a07fc(0x227)]=function(_0x69435a){var _0x5736be=_0x3a07fc,_0x25c778=_0x69435a[_0x5736be(0x204)][_0x5736be(0x257)];if(this['socket']&&this['socket'][_0x5736be(0x259)]==0x1)this[_0x5736be(0x23a)][_0x5736be(0x21e)](_0x25c778);},_0x53f2f8[_0x3a07fc(0x1e8)](_0x13e516);},this[_0x522c79(0x25d)]=function(_0x39569e){var _0x48d500=_0x522c79;if(!_0x39569e[_0x48d500(0x226)]['match'](/image.*/)){console[_0x48d500(0x249)](_0x48d500(0x205),_0x39569e[_0x48d500(0x226)]);return;}var _0x4984d7=new FileReader();_0x4984d7[_0x48d500(0x227)]=function(_0x5d5ea1){var _0x3c5513=_0x48d500,_0x47b09e=_0x5d5ea1[_0x3c5513(0x204)][_0x3c5513(0x257)];if(this[_0x3c5513(0x23a)]&&this[_0x3c5513(0x23a)][_0x3c5513(0x259)]==0x1)this[_0x3c5513(0x23a)]['send'](_0x47b09e);},_0x4984d7[_0x48d500(0x1e8)](_0x39569e);},this['createJSProxyFunctions']=function(_0x275cef){var _0x13af02=_0x522c79;for(var _0xc5c01d in this['PythonFunctionsArgs']){var _0x144996=this[_0x13af02(0x1e2)][_0xc5c01d];_0x144996[_0x13af02(0x240)]('...func');var _0x18cff1='var\x20paramNames\x20=\x20this.PythonFunctionsArgs[\x27'+_0xc5c01d+_0x13af02(0x1e5)+_0x13af02(0x224)+_0xc5c01d+_0x13af02(0x235);_0x144996['push'](_0x18cff1),_0x445793=this;if(_0xc5c01d[_0x13af02(0x22e)]('.')>=0x0){var _0x267ccd=_0xc5c01d[_0x13af02(0x230)]('.'),_0x567f80=this[_0x13af02(0x1df)];for(var _0x4b6947=0x0;_0x4b6947<_0x267ccd[_0x13af02(0x1f5)]-0x1;_0x4b6947++){!(_0x267ccd[_0x4b6947]in _0x567f80)&&(_0x567f80[_0x267ccd[_0x4b6947]]={}),_0x567f80=_0x567f80[_0x267ccd[_0x4b6947]];}_0x567f80[_0x267ccd[_0x267ccd['length']-0x1]]=Function[_0x13af02(0x20c)](null,_0x144996)[_0x13af02(0x210)](this);}else this[_0x13af02(0x1df)][_0xc5c01d]=Function['apply'](null,_0x144996)['bind'](this);}},this[_0x522c79(0x231)]=function(){var _0x8f44ca=_0x522c79;this[_0x8f44ca(0x21d)]!==undefined&&this[_0x8f44ca(0x21d)]();var _0x408158=this[_0x8f44ca(0x234)]();console[_0x8f44ca(0x249)](_0x8f44ca(0x1e3)+_0x408158+_0x8f44ca(0x255)),this['socket']=new WebSocket(_0x408158),this[_0x8f44ca(0x23a)][_0x8f44ca(0x23f)]=_0x8f44ca(0x254),_0x445793=this,this['socket'][_0x8f44ca(0x1e6)]=function(){var _0x52d078=_0x8f44ca;console[_0x52d078(0x249)](_0x52d078(0x22d)+_0x408158),_0x445793[_0x52d078(0x237)][_0x52d078(0x1e0)](_0x33d8fd=>_0x33d8fd()),_0x445793[_0x52d078(0x1fe)]=!![],_0x445793[_0x52d078(0x1e6)]!==undefined&&(_0x445793[_0x52d078(0x217)](_0x52d078(0x1ee),{},function(_0x47e434){var _0x553413=_0x52d078;_0x445793[_0x553413(0x1e2)]={};for(var _0x2e9ea6 in _0x47e434){_0x47e434[_0x2e9ea6][_0x553413(0x23e)](),_0x47e434[_0x2e9ea6][0x0]==_0x553413(0x247)&&_0x47e434[_0x2e9ea6][_0x553413(0x23e)](),_0x445793['PythonFunctionsArgs'][_0x2e9ea6]=_0x47e434[_0x2e9ea6];}_0x445793[_0x553413(0x21b)](''),_0x445793[_0x553413(0x1e6)]();}),_0x445793[_0x52d078(0x217)](_0x52d078(0x256),{},function(_0x1e8e11){_0x445793['PythonFunctionsHelp']=_0x1e8e11;})),_0x445793['PostOpenEventHandlers']['forEach'](_0xf3a2e6=>_0xf3a2e6());},this[_0x8f44ca(0x23a)]['onmessage']=function(_0x3d8757){var _0x3ec709=_0x8f44ca;_0x445793['PreMessageEventHandlers'][_0x3ec709(0x1e0)](_0x3bb064=>_0x3bb064());_0x445793[_0x3ec709(0x25b)]!==undefined&&_0x445793[_0x3ec709(0x25b)](_0x3d8757);let _0x431a56=null;if(_0x3d8757[_0x3ec709(0x244)]instanceof ArrayBuffer)try{const _0x4623fa=a0_0x349d04[_0x3ec709(0x229)](new Uint8Array(_0x3d8757[_0x3ec709(0x244)]));_0x431a56=_0x4623fa;}catch(_0x2f16f4){_0x431a56=null;}else typeof _0x3d8757[_0x3ec709(0x244)]==_0x3ec709(0x1fb)&&(_0x431a56=JSON[_0x3ec709(0x24a)](_0x3d8757['data']));if(_0x431a56!==null){console[_0x3ec709(0x249)](_0x3ec709(0x22f),_0x431a56);if('args'in _0x431a56){var _0x3f05c0=_0x445793[_0x3ec709(0x246)]['map'](function(_0x384c09){var _0x43b294=_0x3ec709;return _0x384c09[_0x43b294(0x218)];})['indexOf'](_0x431a56[_0x3ec709(0x218)]);if(_0x3f05c0>=0x0){var _0x2473a4=_0x445793['jsFunctionDict'][_0x3f05c0];'isBinary'in _0x431a56[_0x3ec709(0x1ea)]?_0x445793['binaryFunctionQueue']['push']({'funcName':_0x431a56[_0x3ec709(0x218)],'callback':_0x2473a4[_0x3ec709(0x211)],'args':_0x431a56[_0x3ec709(0x1ea)]}):_0x2473a4[_0x3ec709(0x211)](_0x431a56[_0x3ec709(0x1ea)]);}else{if(_0x431a56['funcName']==='getPythonFunctionLibrary')return;else throw _0x3ec709(0x233)+_0x431a56[_0x3ec709(0x218)];}}else{if(_0x3ec709(0x203)in _0x431a56){if(_0x431a56['funcName']in _0x445793['pythonMultipleCallbackDict']){var _0x210638=_0x445793['pythonMultipleCallbackDict'][_0x431a56[_0x3ec709(0x218)]];switch(_0x210638[_0x3ec709(0x1f5)]){case 0x0:break;case 0x1:if('error'in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x1f3)],![]);if('return'in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x203)],_0x431a56[_0x3ec709(0x24e)],![]);break;case 0x2:if(_0x3ec709(0x1f3)in _0x431a56)_0x210638[0x0](_0x431a56['error'],![]);if(_0x3ec709(0x24e)in _0x431a56)_0x210638[0x0](_0x431a56['streaming'],_0x431a56[_0x3ec709(0x24e)],![]);if(_0x431a56[_0x3ec709(0x203)]==_0x3ec709(0x250))_0x210638[0x1](_0x431a56[_0x3ec709(0x214)],_0x431a56[_0x3ec709(0x24d)],![]);break;case 0x3:if('error'in _0x431a56)_0x210638[0x0](_0x431a56['error'],![]);if(_0x431a56[_0x3ec709(0x203)]==_0x3ec709(0x207))_0x210638[0x0](_0x431a56['return'],![]);if(_0x431a56[_0x3ec709(0x203)]=='row')_0x210638[0x1](_0x431a56['stream_index'],_0x431a56[_0x3ec709(0x24d)],![]);if(_0x431a56[_0x3ec709(0x203)]==_0x3ec709(0x245))_0x210638[0x2](_0x431a56[_0x3ec709(0x241)],![]);break;case 0x4:if(_0x3ec709(0x1f3)in _0x431a56)_0x210638[0x4](_0x431a56[_0x3ec709(0x1f3)],![]);if(_0x431a56[_0x3ec709(0x203)]==_0x3ec709(0x207))_0x210638[0x0](_0x431a56['return'],![]);if(_0x431a56[_0x3ec709(0x203)]==_0x3ec709(0x250))_0x210638[0x1](_0x431a56[_0x3ec709(0x214)],_0x431a56[_0x3ec709(0x24d)],![]);if(_0x431a56['streaming']=='end')_0x210638[0x2](_0x431a56['stream_empty'],![]);break;default:throw _0x3ec709(0x1f7)+_0x431a56[_0x3ec709(0x218)];}}else throw'No\x20function\x20callback\x20defined\x20for\x20'+_0x431a56['funcName'];}else{if(_0x431a56['funcName']in _0x445793[_0x3ec709(0x24b)]){var _0x210638=_0x445793['pythonMultipleCallbackDict'][_0x431a56['funcName']];switch(_0x210638[_0x3ec709(0x1f5)]){case 0x0:break;case 0x1:if(_0x3ec709(0x1f3)in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x1f3)],![]);if('return'in _0x431a56)_0x210638[0x0](_0x431a56['return'],![]);break;case 0x2:if(_0x3ec709(0x1f3)in _0x431a56)_0x210638[0x1](_0x431a56[_0x3ec709(0x1f3)],![]);if(_0x3ec709(0x24e)in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x24e)],![]);break;case 0x3:if(_0x3ec709(0x1f3)in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x1f3)],![]);if(_0x3ec709(0x24e)in _0x431a56)_0x210638[0x0](_0x431a56[_0x3ec709(0x24e)],![]);break;default:throw _0x3ec709(0x1f7)+_0x431a56[_0x3ec709(0x218)];}}else{var _0x3f05c0=_0x445793['pythonCallbackDict'][_0x3ec709(0x221)](function(_0x172817){var _0x37e98e=_0x3ec709;return _0x172817[_0x37e98e(0x218)];})[_0x3ec709(0x22e)](_0x431a56[_0x3ec709(0x218)]);if(_0x3f05c0>=0x0){var _0x2473a4=_0x445793[_0x3ec709(0x238)][_0x3f05c0];_0x431a56['return']===undefined?_0x431a56[_0x3ec709(0x1f3)]!==undefined&&_0x2473a4['callback'](_0x431a56[_0x3ec709(0x1f3)],![]):_0x2473a4[_0x3ec709(0x202)](_0x431a56[_0x3ec709(0x24e)],!![]);}else throw _0x3ec709(0x233)+_0x431a56[_0x3ec709(0x218)];}}}}else{console[_0x3ec709(0x249)](_0x3ec709(0x236));var _0x16d93e=new Uint8Array(_0x3d8757[_0x3ec709(0x244)]),_0x3638bf='\x20';for(var _0x2955e5=0x0;_0x2955e5<_0x16d93e[_0x3ec709(0x1f5)];_0x2955e5++){_0x3638bf+=(_0x3ec709(0x219)+_0x16d93e[_0x2955e5]['toString'](0x10))[_0x3ec709(0x23d)](-0x2);}var _0x2b459e=_0x3d8757[_0x3ec709(0x244)],_0x3b481=new Uint8Array(_0x2b459e),_0x2cee4a=new Blob([_0x3b481['buffer']]);if(_0x445793[_0x3ec709(0x212)][_0x3ec709(0x1f5)]>0x0){var _0x20819b=_0x445793[_0x3ec709(0x212)][_0x3ec709(0x23e)]();_0x20819b[_0x3ec709(0x1ea)][_0x3ec709(0x1fa)]=_0x2cee4a,_0x20819b[_0x3ec709(0x202)](_0x20819b[_0x3ec709(0x1ea)]);}else{var _0x18effa=new FileReader();_0x18effa['onload']=function(_0x3e8338){var _0x177632=_0x3ec709,_0x5b0426=document[_0x177632(0x1eb)](_0x177632(0x206));_0x5b0426[_0x177632(0x20a)]=_0x3e8338['target'][_0x177632(0x257)],document[_0x177632(0x1f2)][_0x177632(0x201)](_0x5b0426);},_0x18effa[_0x3ec709(0x213)](_0x2cee4a),document['getElementById']('StatusBar')[_0x3ec709(0x243)]=_0x3ec709(0x208);}console['log'](_0x3ec709(0x23c),_0x3638bf);}_0x445793[_0x3ec709(0x239)]!==undefined&&_0x445793[_0x3ec709(0x239)](),_0x445793[_0x3ec709(0x20b)][_0x3ec709(0x1e0)](_0x1efa3f=>_0x1efa3f());},this[_0x8f44ca(0x23a)][_0x8f44ca(0x200)]=function(_0x51e1cf){var _0x51f485=_0x8f44ca;console[_0x51f485(0x249)]('Connection\x20to\x20'+_0x408158+_0x51f485(0x22b)),_0x445793['PreCloseEventHandlers'][_0x51f485(0x1e0)](_0x2d0ac1=>_0x2d0ac1(_0x51e1cf)),_0x445793['isOpen']=![],this[_0x51f485(0x23a)]=null,_0x445793[_0x51f485(0x200)]!==undefined&&_0x445793[_0x51f485(0x200)](_0x51e1cf),_0x445793['PostCloseEventHandlers']['forEach'](_0x10c6ad=>_0x10c6ad(_0x51e1cf));};},this[_0x522c79(0x20d)]=function(){var _0x23dc5b=_0x522c79;return this[_0x23dc5b(0x1df)];},this[_0x522c79(0x242)]=function(_0x10051b){return this['PythonFunctions'][_0x10051b];};}module['exports']=RemotePyClient;