remotepy 1.0.3 → 1.0.4
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.
- package/build/remotepy.minobs.js +1 -1
- package/package.json +3 -2
package/build/remotepy.minobs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x1a16(){var _0x1c4ad0=['callMultipleCallbackPythonFunction','end','45CINvhR','addPostCloseEventHandler','push','\x27].slice(0,\x20-1);\x0a','JS2PY_SESSION_ID','addPreMessageEventHandler','bind','isOpen','onclose','PythonFunctionsHelp','length','The\x20dropped\x20file\x20is\x20an\x20image:\x20','oninit','7355qAMKkV','jsFunctionDict','slice','1624360yffUkE','getSessionId','onload','map','blob','args','error','var\x20paramNames\x20=\x20this.PythonFunctionsArgs[\x27','1866ANfFed','getServerString','getServerAPI','sendNonImageBinary','PostMessageEventHandlers','match','createJSProxyFunctions','substr','parse','Connection\x20not\x20open.','callFunc','...func','serverName','func','pythonCallbackDict','onopen','readAsDataURL','registerCallbackToPythonFunction','result','PythonFunctionsArgs','1LSCJNy','clientPageId','3576iQLVAl','getPythonFunctionLibrary','stream_index','\x20closed.','onmessageprocessed','PostOpenEventHandlers','data','readAsArrayBuffer','4gxGddC','target','wss','1225yCSBRN','getElementById','onmessage','isBinary','shift','callback','type','Too\x20many\x20callbacks\x20for\x20','9328980iYXrlZ','readCallbackArguments','stringify','binaryFunctionQueue','PreMessageEventHandlers','1407975AGIvNI','Message\x20received:\x20','PreCloseEventHandlers','addPostMessageEventHandler','sendBinary','pythonMultipleCallbackDict','forEach','PostCloseEventHandlers','row','\x20...','504486CAHuqa','1526580FToEQt','streaming','No\x20function\x20callback\x20defined\x20for\x20','funcName','onmessagereceived','buffer','indexOf','sendImageBinary','log','00\x20','src','socket','function','StatusBar','Function\x20:\x20','PreOpenEventHandlers','send','apply','toString','callPythonFunction','registerJSFunctionToBeCalledByPython','PythonFunctions','readyState','\x27,\x20inputObject,\x20...func);','\x20called\x20with\x20arguments:\x20','stream_item','stream_empty','The\x20dropped\x20file\x20is\x20not\x20an\x20image:\x20','return','getPythonFunctionLibraryHelp','registerMultipleCallbackPythonFunction','addPreCloseEventHandler','ws://localhost:80','No\x20function\x20defined\x20for\x20'];a0_0x1a16=function(){return _0x1c4ad0;};return a0_0x1a16();}(function(_0x4046ed,_0x84ce67){var _0x3b0906=a0_0xc711,_0x4764f8=_0x4046ed();while(!![]){try{var _0xa93900=-parseInt(_0x3b0906(0xa0))/0x1*(parseInt(_0x3b0906(0xc4))/0x2)+parseInt(_0x3b0906(0xba))/0x3*(-parseInt(_0x3b0906(0xaa))/0x4)+parseInt(_0x3b0906(0x81))/0x5*(-parseInt(_0x3b0906(0x8c))/0x6)+parseInt(_0x3b0906(0xad))/0x7*(parseInt(_0x3b0906(0xa2))/0x8)+parseInt(_0x3b0906(0x74))/0x9*(parseInt(_0x3b0906(0x84))/0xa)+parseInt(_0x3b0906(0xc5))/0xb+parseInt(_0x3b0906(0xb5))/0xc;if(_0xa93900===_0x84ce67)break;else _0x4764f8['push'](_0x4764f8['shift']());}catch(_0x306987){_0x4764f8['push'](_0x4764f8['shift']());}}}(a0_0x1a16,0x9935f));function RemotePyClient(_0x2a1cf3,_0x523f1f){var _0x152d02=a0_0xc711;if(_0x2a1cf3===undefined)this[_0x152d02(0x98)]=_0x152d02(0xe5);else this[_0x152d02(0x98)]=_0x2a1cf3;if(_0x523f1f===undefined)this[_0x152d02(0xa1)]=_0x152d02(0xac);else this[_0x152d02(0xa1)]=_0x523f1f;this[_0x152d02(0x7b)]=![],this[_0x152d02(0x82)]=[],this[_0x152d02(0x9a)]=[],this['binaryFunctionQueue']=[],this[_0x152d02(0xda)]={},this[_0x152d02(0xd0)]=null,this[_0x152d02(0x7d)]={},this[_0x152d02(0xbf)]={},this['PythonFunctionsArgs']={},this['JS2Py']={};let _0x31614d=null;this[_0x152d02(0xd4)]=[],this[_0x152d02(0xbc)]=[],this[_0x152d02(0xb9)]=[],this[_0x152d02(0xa7)]=[],this[_0x152d02(0xc1)]=[],this[_0x152d02(0x90)]=[],this['addPreOpenEventHandler']=_0x413908=>this[_0x152d02(0xd4)][_0x152d02(0x76)](_0x413908),this[_0x152d02(0xe4)]=_0x14d6df=>this[_0x152d02(0xbc)][_0x152d02(0x76)](_0x14d6df),this[_0x152d02(0x79)]=_0x47027d=>this[_0x152d02(0xb9)][_0x152d02(0x76)](_0x47027d),this['addPostOpenEventHandler']=_0x342454=>this[_0x152d02(0xa7)][_0x152d02(0x76)](_0x342454),this[_0x152d02(0x75)]=_0x2d76b5=>this[_0x152d02(0xc1)]['push'](_0x2d76b5),this[_0x152d02(0xbd)]=_0x580857=>this[_0x152d02(0x90)]['push'](_0x580857),this[_0x152d02(0x8d)]=function(){var _0x141442=_0x152d02;return this[_0x141442(0x98)]+'/'+this[_0x141442(0xa1)];},this[_0x152d02(0xb6)]=function(_0x16894a,..._0x760de5){var _0xf2776c=_0x152d02;for(var _0x343e73=_0x760de5['length']-0x1;_0x343e73>=0x0;--_0x343e73){if(typeof _0x760de5[_0x343e73]!==_0xf2776c(0xd1))break;}var _0x2ddb06=_0x760de5['slice'](0x0,_0x343e73+0x1),_0x31ef09=_0x760de5[_0xf2776c(0x83)](_0x343e73+0x1);return[_0x16894a,_0x2ddb06,_0x31ef09];},this[_0x152d02(0xe3)]=function(_0x47d3b1,..._0x5e4f2d){var _0x4efd0e=_0x152d02;this[_0x4efd0e(0xbf)][_0x47d3b1]=_0x5e4f2d;},this['callMultipleCallbackPythonFunction']=function(_0x5aebc1,..._0x226360){var _0x234520=_0x152d02,_0x3fcd9a=this[_0x234520(0xb6)](_0x5aebc1,..._0x226360);_0x5aebc1=_0x3fcd9a[0x0];let _0x3b4273=_0x3fcd9a[0x1][0x0],_0x3fb3e0=_0x3fcd9a[0x2];this['isOpen']?(this[_0x234520(0xd0)]['send'](JSON[_0x234520(0xb7)]({'funcName':_0x5aebc1,'args':_0x3b4273,'session_id':this[_0x234520(0x85)]()})),console[_0x234520(0xcd)](_0x234520(0xd3)+_0x5aebc1+_0x234520(0xdd),_0x3b4273)):console[_0x234520(0xcd)](_0x234520(0x95)),_0x3fb3e0[_0x234520(0x7e)]>0x0&&this[_0x234520(0xe3)](_0x5aebc1,..._0x3fb3e0);},this['registerCallbackToPythonFunction']=function(_0x148f3a,_0x3b4614){var _0x48bee5=_0x152d02,_0x472d49=this[_0x48bee5(0x9a)][_0x48bee5(0x87)](function(_0x2b9e8b){return _0x2b9e8b['funcName'];})[_0x48bee5(0xcb)](_0x148f3a);_0x472d49<0x0?this[_0x48bee5(0x9a)][_0x48bee5(0x76)]({'funcName':_0x148f3a,'callback':_0x3b4614}):this['pythonCallbackDict'][_0x472d49][_0x48bee5(0xb2)]=_0x3b4614;},this[_0x152d02(0x85)]=function(){var _0xd514a4=_0x152d02;return sessionStorage['getItem'](_0xd514a4(0x78));},this[_0x152d02(0xd9)]=function(_0x154f18,_0x4703f9){var _0xd580e=_0x152d02;this[_0xd580e(0x82)]['push']({'funcName':_0x154f18,'func':_0x4703f9});},this['callFunc']=function(_0xbb1e0b,_0x5ecd8f,_0x47cfb9){var _0x58dac2=_0x152d02;this['isOpen']?(this[_0x58dac2(0xd0)]['send'](JSON[_0x58dac2(0xb7)]({'funcName':_0xbb1e0b,'args':_0x5ecd8f,'session_id':this[_0x58dac2(0x85)]()})),console[_0x58dac2(0xcd)](_0x58dac2(0xd3)+_0xbb1e0b+_0x58dac2(0xdd),_0x5ecd8f)):console[_0x58dac2(0xcd)](_0x58dac2(0x95));if(_0x47cfb9===undefined){}else this[_0x58dac2(0x9d)](_0xbb1e0b,_0x47cfb9);},this[_0x152d02(0xd8)]=function(_0x360bf0,_0x52f963,..._0x17fd1c){var _0x36b740=_0x152d02;this[_0x36b740(0xe7)](_0x360bf0,_0x52f963,..._0x17fd1c);},this['callPythonFunctionBinary']=function(_0xdf6ed,_0x372561,_0x512541,_0x477357){var _0x347f7c=_0x152d02;_0x372561===undefined&&(_0x372561={});_0x372561[_0x347f7c(0xb0)]=!![],this[_0x347f7c(0x96)](_0xdf6ed,_0x372561);if(this[_0x347f7c(0x7b)]){this[_0x347f7c(0xbe)](_0x512541);if(_0x477357===undefined){}else this[_0x347f7c(0x9d)](_0xdf6ed,_0x477357);}else console[_0x347f7c(0xcd)](_0x347f7c(0x95));},this[_0x152d02(0xbe)]=function(_0x50c322){var _0x4fc9e6=_0x152d02,_0x1ab128=new FileReader();_0x1ab128[_0x4fc9e6(0x86)]=function(_0x149936){var _0x477e0b=_0x4fc9e6,_0x4391d0=_0x149936['target'][_0x477e0b(0x9e)];if(this['socket']&&this[_0x477e0b(0xd0)][_0x477e0b(0xdb)]==0x1)this['socket'][_0x477e0b(0xd5)](_0x4391d0);},_0x1ab128[_0x4fc9e6(0xa9)](_0x50c322);},this[_0x152d02(0x8f)]=function(_0x4b52d0){var _0x8c8f1d=_0x152d02;if(_0x4b52d0[_0x8c8f1d(0xb3)][_0x8c8f1d(0x91)](/image.*/)){console[_0x8c8f1d(0xcd)](_0x8c8f1d(0x7f),_0x4b52d0[_0x8c8f1d(0xb3)]);return;}var _0x33fbd3=new FileReader();_0x33fbd3[_0x8c8f1d(0x86)]=function(_0x45350d){var _0x8edb9c=_0x8c8f1d,_0xbb1e04=_0x45350d[_0x8edb9c(0xab)][_0x8edb9c(0x9e)];if(this['socket']&&this['socket'][_0x8edb9c(0xdb)]==0x1)this[_0x8edb9c(0xd0)][_0x8edb9c(0xd5)](_0xbb1e04);},_0x33fbd3[_0x8c8f1d(0xa9)](_0x4b52d0);},this[_0x152d02(0xcc)]=function(_0x2949ed){var _0x14cbf8=_0x152d02;if(!_0x2949ed['type'][_0x14cbf8(0x91)](/image.*/)){console[_0x14cbf8(0xcd)](_0x14cbf8(0xe0),_0x2949ed['type']);return;}var _0x7afe0f=new FileReader();_0x7afe0f[_0x14cbf8(0x86)]=function(_0x7a7e25){var _0x56e321=_0x14cbf8,_0x69ce26=_0x7a7e25[_0x56e321(0xab)][_0x56e321(0x9e)];if(this[_0x56e321(0xd0)]&&this['socket'][_0x56e321(0xdb)]==0x1)this[_0x56e321(0xd0)][_0x56e321(0xd5)](_0x69ce26);},_0x7afe0f[_0x14cbf8(0xa9)](_0x2949ed);},this[_0x152d02(0x92)]=function(_0x291041){var _0x49399e=_0x152d02;for(var _0x21222a in this['PythonFunctionsArgs']){var _0x159466=this[_0x49399e(0x9f)][_0x21222a];_0x159466[_0x49399e(0x76)](_0x49399e(0x97));var _0x271889=_0x49399e(0x8b)+_0x21222a+_0x49399e(0x77)+'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'+_0x21222a+_0x49399e(0xdc);_0x159466[_0x49399e(0x76)](_0x271889),_0x31614d=this;if(_0x21222a['indexOf']('.')>=0x0){var _0xdbda75=_0x21222a['split']('.'),_0x65bc5e=this[_0x49399e(0xda)];for(var _0x4b5c21=0x0;_0x4b5c21<_0xdbda75[_0x49399e(0x7e)]-0x1;_0x4b5c21++){!(_0xdbda75[_0x4b5c21]in _0x65bc5e)&&(_0x65bc5e[_0xdbda75[_0x4b5c21]]={}),_0x65bc5e=_0x65bc5e[_0xdbda75[_0x4b5c21]];}_0x65bc5e[_0xdbda75[_0xdbda75['length']-0x1]]=Function[_0x49399e(0xd6)](null,_0x159466)[_0x49399e(0x7a)](this);}else this[_0x49399e(0xda)][_0x21222a]=Function['apply'](null,_0x159466)[_0x49399e(0x7a)](this);}},this['connect']=function(){var _0x4a85c0=_0x152d02;this['oninit']!==undefined&&this[_0x4a85c0(0x80)]();var _0x11e1bb=this[_0x4a85c0(0x8d)]();console[_0x4a85c0(0xcd)]('Connecting\x20to\x20:\x20'+_0x11e1bb+_0x4a85c0(0xc3)),this[_0x4a85c0(0xd0)]=new WebSocket(_0x11e1bb),this[_0x4a85c0(0xd0)]['binaryType']='arraybuffer',_0x31614d=this,this['socket'][_0x4a85c0(0x9b)]=function(){var _0x2c8120=_0x4a85c0;console[_0x2c8120(0xcd)]('Connected\x20to\x20Server\x20:'+_0x11e1bb),_0x31614d['PreOpenEventHandlers'][_0x2c8120(0xc0)](_0x3c4818=>_0x3c4818()),_0x31614d[_0x2c8120(0x7b)]=!![],_0x31614d[_0x2c8120(0x9b)]!==undefined&&(_0x31614d[_0x2c8120(0xe7)](_0x2c8120(0xa3),{},function(_0x81ce1){var _0x1cbbd3=_0x2c8120;_0x31614d['PythonFunctionsArgs']={};for(var _0x879c26 in _0x81ce1){_0x81ce1[_0x879c26][_0x1cbbd3(0xb1)](),_0x81ce1[_0x879c26][0x0]=='session_id'&&_0x81ce1[_0x879c26][_0x1cbbd3(0xb1)](),_0x31614d[_0x1cbbd3(0x9f)][_0x879c26]=_0x81ce1[_0x879c26];}_0x31614d[_0x1cbbd3(0x92)](''),_0x31614d['onopen']();}),_0x31614d[_0x2c8120(0xe7)](_0x2c8120(0xe2),{},function(_0x2d156d){_0x31614d['PythonFunctionsHelp']=_0x2d156d;})),_0x31614d[_0x2c8120(0xa7)][_0x2c8120(0xc0)](_0x4a44a4=>_0x4a44a4());},this['socket'][_0x4a85c0(0xaf)]=function(_0x573649){var _0x5e8a91=_0x4a85c0;_0x31614d[_0x5e8a91(0xb9)]['forEach'](_0x477b9e=>_0x477b9e());_0x31614d['onmessagereceived']!==undefined&&_0x31614d[_0x5e8a91(0xc9)](_0x573649);if(typeof _0x573649[_0x5e8a91(0xa8)]=='string'){var _0x2cb4f3=JSON[_0x5e8a91(0x94)](_0x573649[_0x5e8a91(0xa8)]);console[_0x5e8a91(0xcd)](_0x5e8a91(0xbb),_0x2cb4f3);if(_0x5e8a91(0x89)in _0x2cb4f3){var _0x53164a=_0x31614d[_0x5e8a91(0x82)][_0x5e8a91(0x87)](function(_0x369bdf){return _0x369bdf['funcName'];})[_0x5e8a91(0xcb)](_0x2cb4f3['funcName']);if(_0x53164a>=0x0){var _0x33d414=_0x31614d[_0x5e8a91(0x82)][_0x53164a];_0x5e8a91(0xb0)in _0x2cb4f3[_0x5e8a91(0x89)]?_0x31614d[_0x5e8a91(0xb8)][_0x5e8a91(0x76)]({'funcName':_0x2cb4f3[_0x5e8a91(0xc8)],'callback':_0x33d414['func'],'args':_0x2cb4f3['args']}):_0x33d414[_0x5e8a91(0x99)](_0x2cb4f3['args']);}else{if(_0x2cb4f3[_0x5e8a91(0xc8)]===_0x5e8a91(0xa3))return;else throw _0x5e8a91(0xe6)+_0x2cb4f3[_0x5e8a91(0xc8)];}}else{if(_0x5e8a91(0xc6)in _0x2cb4f3){if(_0x2cb4f3[_0x5e8a91(0xc8)]in _0x31614d['pythonMultipleCallbackDict']){var _0x1c1a2e=_0x31614d[_0x5e8a91(0xbf)][_0x2cb4f3['funcName']];switch(_0x1c1a2e['length']){case 0x0:break;case 0x1:if(_0x5e8a91(0x8a)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3['error'],![]);if('return'in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xc6)],_0x2cb4f3[_0x5e8a91(0xe1)],![]);break;case 0x2:if('error'in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0x8a)],![]);if('return'in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xc6)],_0x2cb4f3[_0x5e8a91(0xe1)],![]);if(_0x2cb4f3[_0x5e8a91(0xc6)]==_0x5e8a91(0xc2))_0x1c1a2e[0x1](_0x2cb4f3[_0x5e8a91(0xa4)],_0x2cb4f3[_0x5e8a91(0xde)],![]);break;case 0x3:if(_0x5e8a91(0x8a)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0x8a)],![]);if(_0x2cb4f3[_0x5e8a91(0xc6)]=='start')_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xe1)],![]);if(_0x2cb4f3[_0x5e8a91(0xc6)]==_0x5e8a91(0xc2))_0x1c1a2e[0x1](_0x2cb4f3[_0x5e8a91(0xa4)],_0x2cb4f3['stream_item'],![]);if(_0x2cb4f3['streaming']=='end')_0x1c1a2e[0x2](_0x2cb4f3[_0x5e8a91(0xdf)],![]);break;case 0x4:if(_0x5e8a91(0x8a)in _0x2cb4f3)_0x1c1a2e[0x4](_0x2cb4f3[_0x5e8a91(0x8a)],![]);if(_0x2cb4f3[_0x5e8a91(0xc6)]=='start')_0x1c1a2e[0x0](_0x2cb4f3['return'],![]);if(_0x2cb4f3['streaming']==_0x5e8a91(0xc2))_0x1c1a2e[0x1](_0x2cb4f3['stream_index'],_0x2cb4f3['stream_item'],![]);if(_0x2cb4f3[_0x5e8a91(0xc6)]==_0x5e8a91(0xe8))_0x1c1a2e[0x2](_0x2cb4f3[_0x5e8a91(0xdf)],![]);break;default:throw _0x5e8a91(0xb4)+_0x2cb4f3['funcName'];}}else throw _0x5e8a91(0xc7)+_0x2cb4f3[_0x5e8a91(0xc8)];}else{if(_0x2cb4f3[_0x5e8a91(0xc8)]in _0x31614d[_0x5e8a91(0xbf)]){var _0x1c1a2e=_0x31614d[_0x5e8a91(0xbf)][_0x2cb4f3[_0x5e8a91(0xc8)]];switch(_0x1c1a2e[_0x5e8a91(0x7e)]){case 0x0:break;case 0x1:if(_0x5e8a91(0x8a)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0x8a)],![]);if('return'in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xe1)],![]);break;case 0x2:if('error'in _0x2cb4f3)_0x1c1a2e[0x1](_0x2cb4f3[_0x5e8a91(0x8a)],![]);if(_0x5e8a91(0xe1)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xe1)],![]);break;case 0x3:if(_0x5e8a91(0x8a)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3['error'],![]);if(_0x5e8a91(0xe1)in _0x2cb4f3)_0x1c1a2e[0x0](_0x2cb4f3[_0x5e8a91(0xe1)],![]);break;default:throw'Too\x20many\x20callbacks\x20for\x20'+_0x2cb4f3[_0x5e8a91(0xc8)];}}else{var _0x53164a=_0x31614d[_0x5e8a91(0x9a)][_0x5e8a91(0x87)](function(_0x12204b){var _0x41995c=_0x5e8a91;return _0x12204b[_0x41995c(0xc8)];})[_0x5e8a91(0xcb)](_0x2cb4f3['funcName']);if(_0x53164a>=0x0){var _0x33d414=_0x31614d[_0x5e8a91(0x9a)][_0x53164a];_0x2cb4f3[_0x5e8a91(0xe1)]===undefined?_0x2cb4f3[_0x5e8a91(0x8a)]!==undefined&&_0x33d414[_0x5e8a91(0xb2)](_0x2cb4f3[_0x5e8a91(0x8a)],![]):_0x33d414[_0x5e8a91(0xb2)](_0x2cb4f3[_0x5e8a91(0xe1)],!![]);}else throw _0x5e8a91(0xe6)+_0x2cb4f3[_0x5e8a91(0xc8)];}}}}else{var _0x53708d=new Uint8Array(_0x573649[_0x5e8a91(0xa8)]),_0x58ad62='\x20';for(var _0x55f8d8=0x0;_0x55f8d8<_0x53708d[_0x5e8a91(0x7e)];_0x55f8d8++){_0x58ad62+=(_0x5e8a91(0xce)+_0x53708d[_0x55f8d8][_0x5e8a91(0xd7)](0x10))[_0x5e8a91(0x93)](-0x2);}var _0x5d9043=_0x573649['data'],_0x4992f8=new Uint8Array(_0x5d9043),_0x52fe27=new Blob([_0x4992f8[_0x5e8a91(0xca)]]);if(_0x31614d[_0x5e8a91(0xb8)][_0x5e8a91(0x7e)]>0x0){var _0x398d71=_0x31614d[_0x5e8a91(0xb8)][_0x5e8a91(0xb1)]();_0x398d71[_0x5e8a91(0x89)][_0x5e8a91(0x88)]=_0x52fe27,_0x398d71[_0x5e8a91(0xb2)](_0x398d71[_0x5e8a91(0x89)]);}else{var _0x57216c=new FileReader();_0x57216c[_0x5e8a91(0x86)]=function(_0xb6b5e){var _0x22a422=_0x5e8a91;imgFig[_0x22a422(0xcf)]=_0xb6b5e[_0x22a422(0xab)][_0x22a422(0x9e)];},_0x57216c[_0x5e8a91(0x9c)](_0x52fe27),document[_0x5e8a91(0xae)](_0x5e8a91(0xd2))['innerHTML']='Chart\x20Loading\x20Completed\x20...';}console['log']('message(b)\x20received\x20:\x20',_0x58ad62);}_0x31614d[_0x5e8a91(0xa6)]!==undefined&&_0x31614d['onmessageprocessed'](),_0x31614d[_0x5e8a91(0x90)][_0x5e8a91(0xc0)](_0x4c274c=>_0x4c274c());},this[_0x4a85c0(0xd0)][_0x4a85c0(0x7c)]=function(_0x433b4e){var _0xa13775=_0x4a85c0;console[_0xa13775(0xcd)]('Connection\x20to\x20'+_0x11e1bb+_0xa13775(0xa5)),_0x31614d[_0xa13775(0xbc)]['forEach'](_0x5a071e=>_0x5a071e(_0x433b4e)),_0x31614d[_0xa13775(0x7b)]=![],this[_0xa13775(0xd0)]=null,_0x31614d['onclose']!==undefined&&_0x31614d[_0xa13775(0x7c)](_0x433b4e),_0x31614d[_0xa13775(0xc1)][_0xa13775(0xc0)](_0x15026a=>_0x15026a(_0x433b4e));};},this[_0x152d02(0x8e)]=function(){var _0x1fc47c=_0x152d02;return this[_0x1fc47c(0xda)];},this['getService']=function(_0x7a7f2f){var _0x5cb893=_0x152d02;return this[_0x5cb893(0xda)][_0x7a7f2f];};}function a0_0xc711(_0x22a324,_0x41f0b0){var _0x1a165f=a0_0x1a16();return a0_0xc711=function(_0xc71166,_0x5703da){_0xc71166=_0xc71166-0x74;var _0x35e44c=_0x1a165f[_0xc71166];return _0x35e44c;},a0_0xc711(_0x22a324,_0x41f0b0);}export{RemotePyClient};
|
|
1
|
+
(function(_0x5c8132,_0x77533b){var _0x2ff038=a0_0x422f,_0x27e4ab=_0x5c8132();while(!![]){try{var _0x193c62=parseInt(_0x2ff038(0x90))/0x1+parseInt(_0x2ff038(0x96))/0x2+-parseInt(_0x2ff038(0x83))/0x3+parseInt(_0x2ff038(0xae))/0x4*(parseInt(_0x2ff038(0xbb))/0x5)+parseInt(_0x2ff038(0x91))/0x6*(parseInt(_0x2ff038(0xad))/0x7)+parseInt(_0x2ff038(0x8d))/0x8*(-parseInt(_0x2ff038(0xc7))/0x9)+parseInt(_0x2ff038(0x7d))/0xa;if(_0x193c62===_0x77533b)break;else _0x27e4ab['push'](_0x27e4ab['shift']());}catch(_0x4995ee){_0x27e4ab['push'](_0x27e4ab['shift']());}}}(a0_0x2a17,0x32cce));import*as a0_0x30bf0c from'msgpack-lite';function a0_0x2a17(){var _0x5b7ade=['slice','bind','PreCloseEventHandlers','PreMessageEventHandlers','src','addPreOpenEventHandler','connect','PostCloseEventHandlers','type','registerJSFunctionToBeCalledByPython','1746ZpXepB','getServerAPI','PreOpenEventHandlers','map','\x20...','00\x20','PythonFunctionsArgs','readAsDataURL','PythonFunctions','addPostOpenEventHandler','serverName','getSessionId','callFunc','apply','StatusBar','img','streaming','message(b)\x20received\x20:\x20','split','registerMultipleCallbackPythonFunction','addPostMessageEventHandler','createJSProxyFunctions','pythonMultipleCallbackDict','indexOf','send','stream_empty','arraybuffer','parse','Connection\x20not\x20open.','log','getPythonFunctionLibrary','binaryType','oninit','end','stream_item','JS2PY_SESSION_ID','shift','Message\x20received:\x20','Connection\x20to\x20','innerHTML','wss','data','No\x20function\x20callback\x20defined\x20for\x20','onclose','onload','target','Too\x20many\x20callbacks\x20for\x20','registerCallbackToPythonFunction','PostOpenEventHandlers','1700940AvPeIu','binaryFunctionQueue','readCallbackArguments','stream_index','callPythonFunctionBinary','toString','437763gfstfP','clientPageId','start','...func','No\x20function\x20defined\x20for\x20','jsFunctionDict','\x20called\x20with\x20arguments:\x20','readyState','sendNonImageBinary','match','16232TFrTrf','session_id','callPythonFunction','35256tDFKQO','719160hsPXgR','Function\x20:\x20','push','callMultipleCallbackPythonFunction','onmessage','275180ajoPet','onmessageprocessed','func','socket','ws://localhost:80','isOpen','stringify','length','addPostCloseEventHandler','No\x20msgpack\x20library\x20loaded','JS2Py','args','appendChild','\x27,\x20inputObject,\x20...func);','result','PostMessageEventHandlers','callback','error','decode','onopen','funcName','pythonCallbackDict','Chart\x20Loading\x20Completed\x20...','14BDuFrG','20Bemvrq','sendImageBinary','isBinary','return','readAsArrayBuffer','PythonFunctionsHelp','row','onmessagereceived','function','\x27].slice(0,\x20-1);\x0a','sendBinary','forEach','body','164965OlgpKn','getService'];a0_0x2a17=function(){return _0x5b7ade;};return a0_0x2a17();}function a0_0x422f(_0x4f4c11,_0x4bee14){var _0x2a17b4=a0_0x2a17();return a0_0x422f=function(_0x422ffb,_0x599f61){_0x422ffb=_0x422ffb-0x73;var _0x166f72=_0x2a17b4[_0x422ffb];return _0x166f72;},a0_0x422f(_0x4f4c11,_0x4bee14);}function RemotePyClient(_0x400441,_0x2a0bf9){var _0xb5855f=a0_0x422f;if(_0x400441===undefined)this[_0xb5855f(0xd1)]=_0xb5855f(0x9a);else this[_0xb5855f(0xd1)]=_0x400441;if(_0x2a0bf9===undefined)this[_0xb5855f(0x84)]=_0xb5855f(0x74);else this[_0xb5855f(0x84)]=_0x2a0bf9;this[_0xb5855f(0x9b)]=![],this['jsFunctionDict']=[],this[_0xb5855f(0xab)]=[],this[_0xb5855f(0x7e)]=[],this[_0xb5855f(0xcf)]={},this[_0xb5855f(0x99)]=null,this[_0xb5855f(0xb3)]={},this[_0xb5855f(0xdd)]={},this[_0xb5855f(0xcd)]={},this[_0xb5855f(0xa0)]={};let _0x18a796=null;this['PreOpenEventHandlers']=[],this[_0xb5855f(0xbf)]=[],this[_0xb5855f(0xc0)]=[],this[_0xb5855f(0x7c)]=[],this[_0xb5855f(0xc4)]=[],this[_0xb5855f(0xa5)]=[],this[_0xb5855f(0xc2)]=_0x2fc52e=>this['PreOpenEventHandlers']['push'](_0x2fc52e),this['addPreCloseEventHandler']=_0x552762=>this['PreCloseEventHandlers']['push'](_0x552762),this['addPreMessageEventHandler']=_0x3f1da2=>this[_0xb5855f(0xc0)]['push'](_0x3f1da2),this[_0xb5855f(0xd0)]=_0x4e091c=>this[_0xb5855f(0x7c)][_0xb5855f(0x93)](_0x4e091c),this[_0xb5855f(0x9e)]=_0x352db0=>this['PostCloseEventHandlers'][_0xb5855f(0x93)](_0x352db0),this[_0xb5855f(0xdb)]=_0x34a287=>this[_0xb5855f(0xa5)][_0xb5855f(0x93)](_0x34a287),this['getServerString']=function(){var _0x4c0550=_0xb5855f;return this[_0x4c0550(0xd1)]+'/'+this['clientPageId'];},this[_0xb5855f(0x7f)]=function(_0xc28167,..._0xe4e528){var _0x7af7=_0xb5855f;for(var _0x40f7aa=_0xe4e528[_0x7af7(0x9d)]-0x1;_0x40f7aa>=0x0;--_0x40f7aa){if(typeof _0xe4e528[_0x40f7aa]!==_0x7af7(0xb6))break;}var _0x2f910b=_0xe4e528['slice'](0x0,_0x40f7aa+0x1),_0x508f47=_0xe4e528[_0x7af7(0xbd)](_0x40f7aa+0x1);return[_0xc28167,_0x2f910b,_0x508f47];},this[_0xb5855f(0xda)]=function(_0xb7aa3,..._0x56d812){this['pythonMultipleCallbackDict'][_0xb7aa3]=_0x56d812;},this[_0xb5855f(0x94)]=function(_0x3f7f97,..._0x58f7df){var _0x5ceabb=_0xb5855f,_0x4c062e=this[_0x5ceabb(0x7f)](_0x3f7f97,..._0x58f7df);_0x3f7f97=_0x4c062e[0x0];let _0x29f5b2=_0x4c062e[0x1][0x0],_0x46b07f=_0x4c062e[0x2];this['isOpen']?(this[_0x5ceabb(0x99)][_0x5ceabb(0xdf)](JSON[_0x5ceabb(0x9c)]({'funcName':_0x3f7f97,'args':_0x29f5b2,'session_id':this[_0x5ceabb(0xd2)]()})),console['log'](_0x5ceabb(0x92)+_0x3f7f97+_0x5ceabb(0x89),_0x29f5b2)):console['log'](_0x5ceabb(0xe3)),_0x46b07f[_0x5ceabb(0x9d)]>0x0&&this['registerMultipleCallbackPythonFunction'](_0x3f7f97,..._0x46b07f);},this['registerCallbackToPythonFunction']=function(_0x323f53,_0x287543){var _0x3922cf=_0xb5855f,_0x157a05=this[_0x3922cf(0xab)][_0x3922cf(0xca)](function(_0xd3f607){var _0x218fea=_0x3922cf;return _0xd3f607[_0x218fea(0xaa)];})[_0x3922cf(0xde)](_0x323f53);_0x157a05<0x0?this[_0x3922cf(0xab)][_0x3922cf(0x93)]({'funcName':_0x323f53,'callback':_0x287543}):this[_0x3922cf(0xab)][_0x157a05][_0x3922cf(0xa6)]=_0x287543;},this[_0xb5855f(0xd2)]=function(){var _0x49163d=_0xb5855f;return sessionStorage['getItem'](_0x49163d(0xea));},this[_0xb5855f(0xc6)]=function(_0x489cf7,_0x5cdfca){var _0xe673a=_0xb5855f;this[_0xe673a(0x88)][_0xe673a(0x93)]({'funcName':_0x489cf7,'func':_0x5cdfca});},this['callFunc']=function(_0x3e1f22,_0x3e4b3c,_0x521dd8){var _0x2e95dd=_0xb5855f;this[_0x2e95dd(0x9b)]?(this[_0x2e95dd(0x99)][_0x2e95dd(0xdf)](JSON[_0x2e95dd(0x9c)]({'funcName':_0x3e1f22,'args':_0x3e4b3c,'session_id':this[_0x2e95dd(0xd2)]()})),console['log'](_0x2e95dd(0x92)+_0x3e1f22+_0x2e95dd(0x89),_0x3e4b3c)):console[_0x2e95dd(0xe4)]('Connection\x20not\x20open.');if(_0x521dd8===undefined){}else this[_0x2e95dd(0x7b)](_0x3e1f22,_0x521dd8);},this[_0xb5855f(0x8f)]=function(_0x217da3,_0x46102f,..._0x4e4c6a){var _0x1609cc=_0xb5855f;this[_0x1609cc(0x94)](_0x217da3,_0x46102f,..._0x4e4c6a);},this[_0xb5855f(0x81)]=function(_0x125bc0,_0x5180f1,_0x1cbe7b,_0x4d787c){var _0x4a18f8=_0xb5855f;_0x5180f1===undefined&&(_0x5180f1={});_0x5180f1[_0x4a18f8(0xb0)]=!![],this[_0x4a18f8(0xd3)](_0x125bc0,_0x5180f1);if(this[_0x4a18f8(0x9b)]){this[_0x4a18f8(0xb8)](_0x1cbe7b);if(_0x4d787c===undefined){}else this['registerCallbackToPythonFunction'](_0x125bc0,_0x4d787c);}else console[_0x4a18f8(0xe4)](_0x4a18f8(0xe3));},this['sendBinary']=function(_0xb6e0be){var _0xeb1999=_0xb5855f,_0xe69965=new FileReader();_0xe69965[_0xeb1999(0x78)]=function(_0x7a4aaf){var _0x1cd7b7=_0xeb1999,_0x1529ff=_0x7a4aaf['target'][_0x1cd7b7(0xa4)];if(this[_0x1cd7b7(0x99)]&&this[_0x1cd7b7(0x99)][_0x1cd7b7(0x8a)]==0x1)this[_0x1cd7b7(0x99)]['send'](_0x1529ff);},_0xe69965[_0xeb1999(0xb2)](_0xb6e0be);},this[_0xb5855f(0x8b)]=function(_0x1e002d){var _0x43f96b=_0xb5855f;if(_0x1e002d[_0x43f96b(0xc5)][_0x43f96b(0x8c)](/image.*/)){console[_0x43f96b(0xe4)]('The\x20dropped\x20file\x20is\x20an\x20image:\x20',_0x1e002d[_0x43f96b(0xc5)]);return;}var _0x4a0708=new FileReader();_0x4a0708['onload']=function(_0x7e9ce1){var _0x2f0d6a=_0x43f96b,_0x55fab0=_0x7e9ce1[_0x2f0d6a(0x79)][_0x2f0d6a(0xa4)];if(this['socket']&&this[_0x2f0d6a(0x99)]['readyState']==0x1)this[_0x2f0d6a(0x99)][_0x2f0d6a(0xdf)](_0x55fab0);},_0x4a0708[_0x43f96b(0xb2)](_0x1e002d);},this[_0xb5855f(0xaf)]=function(_0x5771fe){var _0x5eb92f=_0xb5855f;if(!_0x5771fe[_0x5eb92f(0xc5)][_0x5eb92f(0x8c)](/image.*/)){console[_0x5eb92f(0xe4)]('The\x20dropped\x20file\x20is\x20not\x20an\x20image:\x20',_0x5771fe[_0x5eb92f(0xc5)]);return;}var _0x4f7132=new FileReader();_0x4f7132[_0x5eb92f(0x78)]=function(_0x446393){var _0x4dc916=_0x5eb92f,_0x38c9c3=_0x446393[_0x4dc916(0x79)][_0x4dc916(0xa4)];if(this[_0x4dc916(0x99)]&&this[_0x4dc916(0x99)][_0x4dc916(0x8a)]==0x1)this[_0x4dc916(0x99)]['send'](_0x38c9c3);},_0x4f7132[_0x5eb92f(0xb2)](_0x5771fe);},this[_0xb5855f(0xdc)]=function(_0x120903){var _0x4d7ef9=_0xb5855f;for(var _0xabb58f in this[_0x4d7ef9(0xcd)]){var _0x22b82c=this[_0x4d7ef9(0xcd)][_0xabb58f];_0x22b82c[_0x4d7ef9(0x93)](_0x4d7ef9(0x86));var _0x24163c='var\x20paramNames\x20=\x20this.PythonFunctionsArgs[\x27'+_0xabb58f+_0x4d7ef9(0xb7)+'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'+_0xabb58f+_0x4d7ef9(0xa3);_0x22b82c[_0x4d7ef9(0x93)](_0x24163c),_0x18a796=this;if(_0xabb58f['indexOf']('.')>=0x0){var _0x5c53cd=_0xabb58f[_0x4d7ef9(0xd9)]('.'),_0x1b50b5=this[_0x4d7ef9(0xcf)];for(var _0x1c0de6=0x0;_0x1c0de6<_0x5c53cd[_0x4d7ef9(0x9d)]-0x1;_0x1c0de6++){!(_0x5c53cd[_0x1c0de6]in _0x1b50b5)&&(_0x1b50b5[_0x5c53cd[_0x1c0de6]]={}),_0x1b50b5=_0x1b50b5[_0x5c53cd[_0x1c0de6]];}_0x1b50b5[_0x5c53cd[_0x5c53cd[_0x4d7ef9(0x9d)]-0x1]]=Function[_0x4d7ef9(0xd4)](null,_0x22b82c)[_0x4d7ef9(0xbe)](this);}else this['PythonFunctions'][_0xabb58f]=Function['apply'](null,_0x22b82c)[_0x4d7ef9(0xbe)](this);}},this[_0xb5855f(0xc3)]=function(){var _0x2fed3a=_0xb5855f;this[_0x2fed3a(0xe7)]!==undefined&&this[_0x2fed3a(0xe7)]();var _0x4c6fc8=this['getServerString']();console[_0x2fed3a(0xe4)]('Connecting\x20to\x20:\x20'+_0x4c6fc8+_0x2fed3a(0xcb)),this[_0x2fed3a(0x99)]=new WebSocket(_0x4c6fc8),this[_0x2fed3a(0x99)][_0x2fed3a(0xe6)]=_0x2fed3a(0xe1),_0x18a796=this,this[_0x2fed3a(0x99)][_0x2fed3a(0xa9)]=function(){var _0x1c6181=_0x2fed3a;console[_0x1c6181(0xe4)]('Connected\x20to\x20Server\x20:'+_0x4c6fc8),_0x18a796[_0x1c6181(0xc9)][_0x1c6181(0xb9)](_0x13df8e=>_0x13df8e()),_0x18a796[_0x1c6181(0x9b)]=!![],_0x18a796['onopen']!==undefined&&(_0x18a796[_0x1c6181(0x94)](_0x1c6181(0xe5),{},function(_0x2eb219){var _0x2cc5dc=_0x1c6181;_0x18a796[_0x2cc5dc(0xcd)]={};for(var _0x2a77b7 in _0x2eb219){_0x2eb219[_0x2a77b7]['shift'](),_0x2eb219[_0x2a77b7][0x0]==_0x2cc5dc(0x8e)&&_0x2eb219[_0x2a77b7][_0x2cc5dc(0xeb)](),_0x18a796['PythonFunctionsArgs'][_0x2a77b7]=_0x2eb219[_0x2a77b7];}_0x18a796['createJSProxyFunctions'](''),_0x18a796[_0x2cc5dc(0xa9)]();}),_0x18a796[_0x1c6181(0x94)]('getPythonFunctionLibraryHelp',{},function(_0x56f804){var _0x31c913=_0x1c6181;_0x18a796[_0x31c913(0xb3)]=_0x56f804;})),_0x18a796[_0x1c6181(0x7c)][_0x1c6181(0xb9)](_0x55f12b=>_0x55f12b());},this[_0x2fed3a(0x99)][_0x2fed3a(0x95)]=function(_0x2ff686){var _0x29d05b=_0x2fed3a;_0x18a796[_0x29d05b(0xc0)]['forEach'](_0x5c62d0=>_0x5c62d0());_0x18a796[_0x29d05b(0xb5)]!==undefined&&_0x18a796[_0x29d05b(0xb5)](_0x2ff686);let _0x5a95c7=null;if(_0x2ff686[_0x29d05b(0x75)]instanceof ArrayBuffer)try{const _0x43242b=a0_0x30bf0c[_0x29d05b(0xa8)](new Uint8Array(_0x2ff686[_0x29d05b(0x75)]));_0x5a95c7=_0x43242b;}catch(_0x3d70cc){_0x5a95c7=null;}else typeof _0x2ff686[_0x29d05b(0x75)]=='string'&&(_0x5a95c7=JSON[_0x29d05b(0xe2)](_0x2ff686['data']));if(_0x5a95c7!==null){console[_0x29d05b(0xe4)](_0x29d05b(0xec),_0x5a95c7);if('args'in _0x5a95c7){var _0x14627e=_0x18a796[_0x29d05b(0x88)]['map'](function(_0x3bcf16){var _0x34c9ed=_0x29d05b;return _0x3bcf16[_0x34c9ed(0xaa)];})[_0x29d05b(0xde)](_0x5a95c7[_0x29d05b(0xaa)]);if(_0x14627e>=0x0){var _0x37ba07=_0x18a796[_0x29d05b(0x88)][_0x14627e];_0x29d05b(0xb0)in _0x5a95c7[_0x29d05b(0xa1)]?_0x18a796[_0x29d05b(0x7e)][_0x29d05b(0x93)]({'funcName':_0x5a95c7[_0x29d05b(0xaa)],'callback':_0x37ba07[_0x29d05b(0x98)],'args':_0x5a95c7[_0x29d05b(0xa1)]}):_0x37ba07['func'](_0x5a95c7[_0x29d05b(0xa1)]);}else{if(_0x5a95c7[_0x29d05b(0xaa)]===_0x29d05b(0xe5))return;else throw _0x29d05b(0x87)+_0x5a95c7['funcName'];}}else{if(_0x29d05b(0xd7)in _0x5a95c7){if(_0x5a95c7[_0x29d05b(0xaa)]in _0x18a796[_0x29d05b(0xdd)]){var _0x4c753b=_0x18a796['pythonMultipleCallbackDict'][_0x5a95c7[_0x29d05b(0xaa)]];switch(_0x4c753b[_0x29d05b(0x9d)]){case 0x0:break;case 0x1:if('error'in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xa7)],![]);if('return'in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xd7)],_0x5a95c7[_0x29d05b(0xb1)],![]);break;case 0x2:if('error'in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xa7)],![]);if(_0x29d05b(0xb1)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xd7)],_0x5a95c7[_0x29d05b(0xb1)],![]);if(_0x5a95c7[_0x29d05b(0xd7)]==_0x29d05b(0xb4))_0x4c753b[0x1](_0x5a95c7[_0x29d05b(0x80)],_0x5a95c7[_0x29d05b(0xe9)],![]);break;case 0x3:if('error'in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xa7)],![]);if(_0x5a95c7[_0x29d05b(0xd7)]==_0x29d05b(0x85))_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xb1)],![]);if(_0x5a95c7[_0x29d05b(0xd7)]==_0x29d05b(0xb4))_0x4c753b[0x1](_0x5a95c7['stream_index'],_0x5a95c7['stream_item'],![]);if(_0x5a95c7[_0x29d05b(0xd7)]==_0x29d05b(0xe8))_0x4c753b[0x2](_0x5a95c7[_0x29d05b(0xe0)],![]);break;case 0x4:if(_0x29d05b(0xa7)in _0x5a95c7)_0x4c753b[0x4](_0x5a95c7[_0x29d05b(0xa7)],![]);if(_0x5a95c7['streaming']==_0x29d05b(0x85))_0x4c753b[0x0](_0x5a95c7['return'],![]);if(_0x5a95c7[_0x29d05b(0xd7)]==_0x29d05b(0xb4))_0x4c753b[0x1](_0x5a95c7['stream_index'],_0x5a95c7[_0x29d05b(0xe9)],![]);if(_0x5a95c7['streaming']==_0x29d05b(0xe8))_0x4c753b[0x2](_0x5a95c7[_0x29d05b(0xe0)],![]);break;default:throw'Too\x20many\x20callbacks\x20for\x20'+_0x5a95c7[_0x29d05b(0xaa)];}}else throw _0x29d05b(0x76)+_0x5a95c7[_0x29d05b(0xaa)];}else{if(_0x5a95c7['funcName']in _0x18a796[_0x29d05b(0xdd)]){var _0x4c753b=_0x18a796[_0x29d05b(0xdd)][_0x5a95c7[_0x29d05b(0xaa)]];switch(_0x4c753b[_0x29d05b(0x9d)]){case 0x0:break;case 0x1:if(_0x29d05b(0xa7)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xa7)],![]);if(_0x29d05b(0xb1)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xb1)],![]);break;case 0x2:if(_0x29d05b(0xa7)in _0x5a95c7)_0x4c753b[0x1](_0x5a95c7[_0x29d05b(0xa7)],![]);if(_0x29d05b(0xb1)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xb1)],![]);break;case 0x3:if(_0x29d05b(0xa7)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7['error'],![]);if(_0x29d05b(0xb1)in _0x5a95c7)_0x4c753b[0x0](_0x5a95c7[_0x29d05b(0xb1)],![]);break;default:throw _0x29d05b(0x7a)+_0x5a95c7['funcName'];}}else{var _0x14627e=_0x18a796['pythonCallbackDict'][_0x29d05b(0xca)](function(_0x5afa1a){var _0x401251=_0x29d05b;return _0x5afa1a[_0x401251(0xaa)];})['indexOf'](_0x5a95c7[_0x29d05b(0xaa)]);if(_0x14627e>=0x0){var _0x37ba07=_0x18a796[_0x29d05b(0xab)][_0x14627e];_0x5a95c7['return']===undefined?_0x5a95c7['error']!==undefined&&_0x37ba07[_0x29d05b(0xa6)](_0x5a95c7[_0x29d05b(0xa7)],![]):_0x37ba07['callback'](_0x5a95c7['return'],!![]);}else throw _0x29d05b(0x87)+_0x5a95c7[_0x29d05b(0xaa)];}}}}else{console[_0x29d05b(0xe4)](_0x29d05b(0x9f));var _0x2f7840=new Uint8Array(_0x2ff686[_0x29d05b(0x75)]),_0x149d7b='\x20';for(var _0x955409=0x0;_0x955409<_0x2f7840[_0x29d05b(0x9d)];_0x955409++){_0x149d7b+=(_0x29d05b(0xcc)+_0x2f7840[_0x955409][_0x29d05b(0x82)](0x10))['substr'](-0x2);}var _0xe18f71=_0x2ff686['data'],_0x5c5495=new Uint8Array(_0xe18f71),_0x408c52=new Blob([_0x5c5495['buffer']]);if(_0x18a796[_0x29d05b(0x7e)]['length']>0x0){var _0x5cac54=_0x18a796[_0x29d05b(0x7e)][_0x29d05b(0xeb)]();_0x5cac54['args']['blob']=_0x408c52,_0x5cac54[_0x29d05b(0xa6)](_0x5cac54['args']);}else{var _0x3d2845=new FileReader();_0x3d2845[_0x29d05b(0x78)]=function(_0xfe950c){var _0x3ce43b=_0x29d05b,_0x3ef2b8=document['createElement'](_0x3ce43b(0xd6));_0x3ef2b8[_0x3ce43b(0xc1)]=_0xfe950c[_0x3ce43b(0x79)][_0x3ce43b(0xa4)],document[_0x3ce43b(0xba)][_0x3ce43b(0xa2)](_0x3ef2b8);},_0x3d2845[_0x29d05b(0xce)](_0x408c52),document['getElementById'](_0x29d05b(0xd5))[_0x29d05b(0x73)]=_0x29d05b(0xac);}console[_0x29d05b(0xe4)](_0x29d05b(0xd8),_0x149d7b);}_0x18a796[_0x29d05b(0x97)]!==undefined&&_0x18a796[_0x29d05b(0x97)](),_0x18a796[_0x29d05b(0xa5)][_0x29d05b(0xb9)](_0x1094f4=>_0x1094f4());},this[_0x2fed3a(0x99)]['onclose']=function(_0x362692){var _0x45e82d=_0x2fed3a;console[_0x45e82d(0xe4)](_0x45e82d(0xed)+_0x4c6fc8+'\x20closed.'),_0x18a796[_0x45e82d(0xbf)][_0x45e82d(0xb9)](_0x493f6b=>_0x493f6b(_0x362692)),_0x18a796['isOpen']=![],this[_0x45e82d(0x99)]=null,_0x18a796['onclose']!==undefined&&_0x18a796[_0x45e82d(0x77)](_0x362692),_0x18a796[_0x45e82d(0xc4)][_0x45e82d(0xb9)](_0x231153=>_0x231153(_0x362692));};},this[_0xb5855f(0xc8)]=function(){var _0xdc941e=_0xb5855f;return this[_0xdc941e(0xcf)];},this[_0xb5855f(0xbc)]=function(_0x15b8ed){var _0xd41156=_0xb5855f;return this[_0xd41156(0xcf)][_0x15b8ed];};}export{RemotePyClient};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotepy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "JavaScript library to connect to RemotePy server. Allows you to call python functions on server from JavaScript.",
|
|
5
5
|
"main": "build/remotepy.minobs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"remotepy": "^1.0.0",
|
|
43
|
-
"ws": "^8.13.0"
|
|
43
|
+
"ws": "^8.13.0",
|
|
44
|
+
"msgpack-lite": "^0.1.26"
|
|
44
45
|
}
|
|
45
46
|
}
|