@e-techsolutions/e-baas-sdk 1.1.6 → 1.1.8

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/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';(function(stringArrayFunction,comparisonValue){function _0x551f1c(_0x40a4b9,_0x18b019){return _0x6f43(_0x40a4b9-0x21c,_0x18b019);}const stringArray=stringArrayFunction();while(!![]){try{const _0x411a05=-parseInt(_0x551f1c(0x475,0x4de))/0x1*(-parseInt(_0x551f1c(0x4b3,0x3b8))/0x2)+-parseInt(_0x551f1c(0x3e6,0x320))/0x3*(parseInt(_0x551f1c(0x5df,0x56e))/0x4)+-parseInt(_0x551f1c(0x489,0x43c))/0x5*(parseInt(_0x551f1c(0x60a,0x61e))/0x6)+-parseInt(_0x551f1c(0x4dd,0x500))/0x7*(parseInt(_0x551f1c(0x56f,0x55b))/0x8)+parseInt(_0x551f1c(0x5ee,0x50a))/0x9*(-parseInt(_0x551f1c(0x4bd,0x493))/0xa)+-parseInt(_0x551f1c(0x5d9,0x4ed))/0xb+parseInt(_0x551f1c(0x52c,0x60d))/0xc;if(_0x411a05===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x153c38){stringArray['push'](stringArray['shift']());}}}(_0x10f8,0x800bc));var axios=require('axios'),EventEmitter=require(_0x2d7030(0x481,0x41f));function _0x2d7030(_0x46615f,_0x486f23){return _0x6f43(_0x486f23-0x262,_0x46615f);}class EBaaSError extends Error{constructor(_0x30ff62,status=0x0,_0x18ba07){super(_0x30ff62),this['name']=_0x47332f(-0x2,0x2d),this[_0x47332f(0x36,0xd0)]=status,this['details']=_0x18ba07;function _0x47332f(_0x53e2f3,_0x354518){return _0x6f43(_0x354518- -0x199,_0x53e2f3);}Error[_0x47332f(0x2a6,0x20f)]&&Error['captureStackTrace'](this,EBaaSError);}['toJSON'](){function _0x55345a(_0x5e3528,_0x4b14a5){return _0x6f43(_0x4b14a5- -0x3bd,_0x5e3528);}return{'name':this['name'],'message':this['message'],'status':this[_0x55345a(-0xa3,-0x154)],'details':this['details'],'stack':this[_0x55345a(0xc9,-0x51)]};}[_0x2d7030(0x55b,0x5b7)](){function _0x4c1778(_0x1fee32,_0x43fb4e){return _0x6f43(_0x1fee32- -0x163,_0x43fb4e);}return this[_0x4c1778(0x207,0x2ad)]+':\x20'+this['message']+_0x4c1778(0xe1,0x56)+this['status']+')';}}class HttpClient{constructor(config){this['baseURL']=config['url'],this[_0x344ae6(0xa4,0xdf)]=config['apiKey'];function _0x344ae6(_0xe366fc,_0x564861){return _0x6f43(_0x564861- -0x105,_0xe366fc);}this[_0x344ae6(0x32e,0x2b5)]=axios[_0x344ae6(0x1df,0x29d)]({'baseURL':this[_0x344ae6(0x1c0,0x28e)],'timeout':config['timeout']||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config[_0x344ae6(0x92,0x165)]}}),this[_0x344ae6(0x39,0xe1)]();}[_0x2d7030(0x3b4,0x448)](){function _0x5b5511(_0x56cb70,_0x7dc3e7){return _0x6f43(_0x7dc3e7- -0x343,_0x56cb70);}this['client']['interceptors'][_0x5b5511(0x3,-0x1d)]['use'](config=>{return config;},_0x1f0615=>{function _0x3c8e3c(_0x2596d0,_0x36ccbd){return _0x6f43(_0x2596d0- -0x3b7,_0x36ccbd);}return Promise['reject'](new EBaaSError(_0x3c8e3c(-0x1a6,-0xb5),0x0,_0x1f0615));}),this['client']['interceptors'][_0x5b5511(0x6c,-0x36)]['use'](response=>{return response;},_0x5a37a9=>{const status=_0x5a37a9[_0x250437(0x601,0x68c)]?.[_0x250437(0x55d,0x4b4)]||0x0;function _0x250437(_0x5590e7,_0x14ccb2){return _0x6f43(_0x5590e7-0x2f4,_0x14ccb2);}const _0xb2809c=_0x5a37a9[_0x250437(0x601,0x57b)]?.[_0x250437(0x6d7,0x6f5)]?.[_0x250437(0x60f,0x70b)]||_0x5a37a9['message']||_0x250437(0x4b4,0x58d),_0x5b4f6a=_0x5a37a9['response']?.[_0x250437(0x6d7,0x637)]||_0x5a37a9;return Promise['reject'](new EBaaSError(_0xb2809c,status,_0x5b4f6a));});}async[_0x2d7030(0x683,0x579)](_0x14fd71,config){function _0x1585db(_0x329ce2,_0x5a11a9){return _0x6f43(_0x5a11a9- -0x1a5,_0x329ce2);}try{const response=await this['client']['get'](_0x14fd71,config);return{'data':response[_0x1585db(0x279,0x23e)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x1f1973){throw this['handleError'](_0x1f1973);}}async[_0x2d7030(0x323,0x423)](_0x3028f3,data,config){try{const response=await this['client']['post'](_0x3028f3,data,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x3ad9c6){throw this['handleError'](_0x3ad9c6);}}async[_0x2d7030(0x4e1,0x470)](_0x399162,data,config){function _0x5e1946(_0x3a8e61,_0x538fbc){return _0x6f43(_0x3a8e61- -0x3b2,_0x538fbc);}try{const response=await this['client']['put'](_0x399162,data,config);return{'data':response[_0x5e1946(0x31,-0xa4)],'status':response[_0x5e1946(-0x149,-0xdc)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x1ae497){throw this['handleError'](_0x1ae497);}}async['patch'](_0x2e9df7,data,config){function _0x43f0fe(_0x15d63a,_0x40cf21){return _0x6f43(_0x40cf21-0x39c,_0x15d63a);}try{const response=await this['client'][_0x43f0fe(0x512,0x5ea)](_0x2e9df7,data,config);return{'data':response[_0x43f0fe(0x7fc,0x77f)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x3f39d1){throw this[_0x43f0fe(0x5f3,0x64e)](_0x3f39d1);}}async['delete'](_0xa47ae9,config){function _0x484e95(_0x5b3bd9,_0x13b54a){return _0x6f43(_0x13b54a- -0xf2,_0x5b3bd9);}try{const response=await this['client']['delete'](_0xa47ae9,config);return{'data':response[_0x484e95(0x266,0x2f1)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x58c27e){throw this[_0x484e95(0x205,0x1c0)](_0x58c27e);}}['setAuthToken'](_0xd7672e){function _0x282711(_0x5343a5,_0x40c176){return _0x6f43(_0x5343a5- -0x274,_0x40c176);}this[_0x282711(0x146,0x8f)]['defaults'][_0x282711(-0xa,0xbf)]['common']['Authorization']=_0x282711(0x82,0x125)+_0xd7672e;}['removeAuthToken'](){delete this[_0x5ccfd1(0x578,0x5ef)]['defaults']['headers']['common']['Authorization'];function _0x5ccfd1(_0x113878,_0xf9a4f8){return _0x6f43(_0xf9a4f8-0x235,_0x113878);}this[_0x5ccfd1(0x533,0x5ef)]['defaults'][_0x5ccfd1(0x4fd,0x49f)][_0x5ccfd1(0x427,0x4f3)]['Authorization']=_0x5ccfd1(0x44b,0x52b)+this[_0x5ccfd1(0x499,0x419)];}['handleError'](_0x30e4c8){function _0xcac730(_0x28df78,_0x587330){return _0x6f43(_0x587330-0x318,_0x28df78);}if(_0x30e4c8 instanceof EBaaSError)return _0x30e4c8;return new EBaaSError(_0x30e4c8[_0xcac730(0x600,0x633)]||_0xcac730(0x554,0x627),_0x30e4c8['status']||0x0,_0x30e4c8);}}class AuthClient{constructor(_0x4839ac,_0x2c434b){this['currentSession']=null,this['httpClient']=_0x4839ac,this['workspaceId']=_0x2c434b,this['loadSession']();}async['signUp'](data){function _0x3e63bd(_0x30ec9b,_0x433b9a){return _0x6f43(_0x30ec9b- -0x39e,_0x433b9a);}try{const response=await this['httpClient'][_0x3e63bd(-0x1dd,-0x19b)]('/auth/v1/signup',data);return response['data'][_0x3e63bd(0x4a,-0x25)]&&this['setSessionInternal'](response[_0x3e63bd(0x45,-0x8b)][_0x3e63bd(0x4a,0x11d)]),response[_0x3e63bd(0x45,0x32)];}catch(_0x49d5b4){throw this['handleAuthError'](_0x49d5b4);}}async['signIn'](data){function _0xb6d31b(_0x5d331a,_0x5f12c7){return _0x6f43(_0x5f12c7- -0x372,_0x5d331a);}try{const headers={};this[_0xb6d31b(-0x145,-0x197)]&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this['httpClient'][_0xb6d31b(-0x161,-0x1b1)]('/auth/v1/sdk/signin',data,{'headers':headers});return response[_0xb6d31b(0x99,0x71)][_0xb6d31b(0x118,0x76)]&&this['setSessionInternal'](response[_0xb6d31b(-0x1a,0x71)]['session']),response['data'];}catch(_0x52fdfe){throw this[_0xb6d31b(-0x19e,-0x8b)](_0x52fdfe);}}async[_0x2d7030(0x5a5,0x54b)](){function _0x12206b(_0x31550a,_0x3014b6){return _0x6f43(_0x31550a-0x343,_0x3014b6);}try{await this['httpClient']['post'](_0x12206b(0x63a,0x5ab)),this[_0x12206b(0x633,0x5a5)]();}catch(_0x1b0893){this[_0x12206b(0x633,0x640)]();throw this['handleAuthError'](_0x1b0893);}}async[_0x2d7030(0x3d7,0x424)](){function _0x126a41(_0x148769,_0x46287a){return _0x6f43(_0x148769-0x19f,_0x46287a);}if(!this[_0x126a41(0x42a,0x4e9)]?.['access_token'])return null;try{const response=await this['httpClient']['get']('/auth/v1/user');return response[_0x126a41(0x582,0x59a)][_0x126a41(0x4f7,0x41d)];}catch(_0x234350){if(_0x234350 instanceof EBaaSError&&_0x234350[_0x126a41(0x408,0x520)]===0x191)return this['clearSession'](),null;throw this['handleAuthError'](_0x234350);}}async['refreshSession'](){if(!this['currentSession']?.['refresh_token'])return null;function _0x4fcf6a(_0x35cb8b,_0x51c772){return _0x6f43(_0x35cb8b-0x20e,_0x51c772);}try{const response=await this['httpClient']['post'](_0x4fcf6a(0x4b8,0x518),{'refresh_token':this['currentSession']['refresh_token']});if(response['data'][_0x4fcf6a(0x5f6,0x61a)])return this['setSession'](response[_0x4fcf6a(0x5f1,0x575)]['session']),response['data'][_0x4fcf6a(0x5f6,0x676)];return null;}catch(_0x33a16b){this[_0x4fcf6a(0x4fe,0x3f2)]();throw this[_0x4fcf6a(0x4f5,0x451)](_0x33a16b);}}async['resetPassword'](_0x231bea){function _0x18dfa1(_0x1402e7,_0x472202){return _0x6f43(_0x1402e7-0xae,_0x472202);}try{await this['httpClient']['post'](_0x18dfa1(0x3dc,0x40e),{'email':_0x231bea});}catch(_0x43e879){throw this['handleAuthError'](_0x43e879);}}async['updateUser'](data){function _0x10eeeb(_0x1b5ae7,_0x284341){return _0x6f43(_0x284341-0x215,_0x1b5ae7);}try{const response=await this['httpClient']['put']('/auth/v1/user',data);return response[_0x10eeeb(0x6bc,0x5f8)]['user'];}catch(_0x2f4b2f){throw this['handleAuthError'](_0x2f4b2f);}}[_0x2d7030(0x61e,0x5e5)](){return this['currentSession'];}[_0x2d7030(0x4e2,0x4a5)](_0x1839b2){this[_0x39cc1e(0x604,0x591)]=_0x1839b2;function _0x39cc1e(_0x388fc4,_0x479b8a){return _0x6f43(_0x388fc4-0x379,_0x479b8a);}this['httpClient'][_0x39cc1e(0x5b3,0x518)](_0x1839b2['access_token']),typeof localStorage!=='undefined'&&localStorage[_0x39cc1e(0x57d,0x4df)](_0x39cc1e(0x5a2,0x61a),JSON['stringify'](_0x1839b2));}[_0x2d7030(0x5e4,0x5cf)](_0x352769){return()=>{};}['setWorkspaceId'](_0xf80eb8){function _0x21c27a(_0x233ff5,_0x20cb2e){return _0x6f43(_0x233ff5-0x352,_0x20cb2e);}this[_0x21c27a(0x52d,0x535)]=_0xf80eb8;}[_0x2d7030(0x403,0x491)](_0x181fc9){function _0x25bd3c(_0x3ac8b0,_0x446388){return _0x6f43(_0x446388-0x355,_0x3ac8b0);}this['currentSession']=_0x181fc9,this[_0x25bd3c(0x658,0x6ab)][_0x25bd3c(0x67a,0x58f)](_0x181fc9[_0x25bd3c(0x63d,0x692)]),typeof localStorage!==_0x25bd3c(0x4a8,0x58b)&&localStorage[_0x25bd3c(0x59b,0x559)](_0x25bd3c(0x53b,0x57e),JSON['stringify'](_0x181fc9));}['clearSession'](){function _0x4647f0(_0x12cba8,_0x1364e0){return _0x6f43(_0x12cba8- -0x367,_0x1364e0);}this['currentSession']=null,this['httpClient'][_0x4647f0(-0xe8,0x2d)](),typeof localStorage!=='undefined'&&localStorage['removeItem']('ebaas.auth.session');}[_0x2d7030(0x5b8,0x4d3)](){function _0x326d4e(_0x217aa4,_0x1cda69){return _0x6f43(_0x217aa4- -0x120,_0x1cda69);}if(typeof localStorage!==_0x326d4e(0x116,0x5d)){const _0x18fa3f=localStorage[_0x326d4e(0x11f,0x219)]('ebaas.auth.session');if(_0x18fa3f)try{const _0x38137a=JSON['parse'](_0x18fa3f);this[_0x326d4e(0x10f,0x43)](_0x38137a);}catch(_0xda984b){this['clearSession']();}}}['handleAuthError'](_0x144463){function _0x535b1a(_0x9c0495,_0x18d033){return _0x6f43(_0x9c0495- -0x13f,_0x18d033);}if(_0x144463 instanceof EBaaSError)return _0x144463;return new EBaaSError(_0x144463['message']||'Authentication\x20failed',_0x144463[_0x535b1a(0x12a,0xfe)]||0x0,_0x144463);}}class QueryBuilder{constructor(_0x479388,_0x5cdda7,_0x4ebd8f,_0x362950){this[_0x146ad2(0x48,-0x9f)]=_0x479388;function _0x146ad2(_0x5399df,_0x5ecb34){return _0x6f43(_0x5399df- -0x30e,_0x5ecb34);}this['table']=_0x5cdda7,this[_0x146ad2(-0x2a,0x37)]=_0x4ebd8f,this['workspaceId']=_0x362950,this[_0x146ad2(-0x132,-0x1f3)]={'filters':[]};}[_0x2d7030(0x658,0x5f7)](_0x1cbbf0='*',_0xca8002){return this['query']['select']=_0x1cbbf0,this;}['insert'](data,_0x1e4436){function _0x4d85bd(_0x47bb2d,_0x52e832){return _0x6f43(_0x47bb2d-0x105,_0x52e832);}return this['executeQuery']('POST',_0x4d85bd(0x418,0x35e)+this[_0x4d85bd(0x337,0x242)]+_0x4d85bd(0x3a0,0x31e),{'data':data,'options':_0x1e4436});}[_0x2d7030(0x3b3,0x4ae)](data,_0x132e4f){this[_0x5a9520(0x169,0x19a)][_0x5a9520(0x279,0x2f3)]=data,this[_0x5a9520(0x18b,0x19a)][_0x5a9520(0x39b,0x302)]=_0x132e4f;function _0x5a9520(_0x507172,_0x549bd0){return _0x6f43(_0x549bd0- -0x42,_0x507172);}return this;}[_0x2d7030(0x552,0x62a)](data,_0x36505b){function _0x374b04(_0x198919,_0x1dad3f){return _0x6f43(_0x198919-0x3cb,_0x1dad3f);}return this['executeQuery']('POST','/sdk/v1/'+this['table']+_0x374b04(0x70e,0x765),{'data':data,'options':{..._0x36505b,'upsert':!![]}});}[_0x2d7030(0x4f7,0x55c)](_0x15d26e){this['query']['deleteOptions']=_0x15d26e,this[_0x4528cc(-0x43,-0x87)][_0x4528cc(0x235,0x14c)]=!![];function _0x4528cc(_0x480477,_0x5d901b){return _0x6f43(_0x5d901b- -0x263,_0x480477);}return this;}['eq'](_0x3e8ab7,_0x26f920){this['query']['filters'][_0x5185ec(-0x3f,-0x7a)]({'column':_0x3e8ab7,'operator':'eq','value':_0x26f920});function _0x5185ec(_0x31d349,_0x9bcd54){return _0x6f43(_0x31d349- -0x23e,_0x9bcd54);}return this;}[_0x2d7030(0x4b7,0x533)](_0x456af1,_0x4e483b){this['query'][_0x19b3b2(0x3dc,0x3bb)][_0x19b3b2(0x3ea,0x33a)]({'column':_0x456af1,'operator':'neq','value':_0x4e483b});function _0x19b3b2(_0x59b151,_0x572922){return _0x6f43(_0x59b151-0x1eb,_0x572922);}return this;}['gt'](_0x58bd0e,_0xf082f1){this[_0x56377a(0x3aa,0x495)][_0x56377a(0x3fc,0x4aa)][_0x56377a(0x564,0x4b8)]({'column':_0x58bd0e,'operator':'gt','value':_0xf082f1});function _0x56377a(_0x1aadae,_0x3a27f7){return _0x6f43(_0x3a27f7-0x2b9,_0x1aadae);}return this;}['gte'](_0x4ade19,_0x44207f){return this['query']['filters']['push']({'column':_0x4ade19,'operator':'gte','value':_0x44207f}),this;}['lt'](_0x965505,_0x27ea2d){this[_0x1562aa(0x1a6,0x256)][_0x1562aa(0x38d,0x26b)][_0x1562aa(0x23a,0x279)]({'column':_0x965505,'operator':'lt','value':_0x27ea2d});function _0x1562aa(_0x41264b,_0x385d68){return _0x6f43(_0x385d68-0x7a,_0x41264b);}return this;}['lte'](_0x278b16,_0x22302d){this[_0x685412(0x42c,0x3eb)][_0x685412(0x498,0x400)][_0x685412(0x4df,0x40e)]({'column':_0x278b16,'operator':'lte','value':_0x22302d});function _0x685412(_0x30c592,_0x28b376){return _0x6f43(_0x28b376-0x20f,_0x30c592);}return this;}[_0x2d7030(0x533,0x49b)](_0x70419e,_0x4673c1){function _0x10511f(_0x5743ea,_0x9ff0b7){return _0x6f43(_0x9ff0b7- -0x330,_0x5743ea);}return this[_0x10511f(-0x178,-0x154)][_0x10511f(-0x18f,-0x13f)][_0x10511f(-0x2e,-0x131)]({'column':_0x70419e,'operator':_0x10511f(-0x16b,-0xf7),'value':_0x4673c1}),this;}[_0x2d7030(0x72c,0x610)](_0x309e02,_0x432dd0){this[_0x1a9586(0x3e5,0x302)][_0x1a9586(0x3e1,0x317)][_0x1a9586(0x3ea,0x325)]({'column':_0x309e02,'operator':_0x1a9586(0x49a,0x4d4),'value':_0x432dd0});function _0x1a9586(_0x5d7595,_0x2af243){return _0x6f43(_0x2af243-0x126,_0x5d7595);}return this;}['is'](_0x1e8bbe,_0xe2b695){this['query']['filters'][_0x45f600(0x56c,0x54f)]({'column':_0x1e8bbe,'operator':'is','value':_0xe2b695});function _0x45f600(_0x51ba7f,_0x1c492b){return _0x6f43(_0x51ba7f-0x36d,_0x1c492b);}return this;}['in'](_0x4025b1,_0x47697b){function _0x32fb89(_0x47ba3f,_0xab31d1){return _0x6f43(_0x47ba3f- -0x298,_0xab31d1);}return this[_0x32fb89(-0xbc,-0x1a7)][_0x32fb89(-0xa7,-0x93)][_0x32fb89(-0x99,-0x6d)]({'column':_0x4025b1,'operator':'in','value':_0x47697b}),this;}[_0x2d7030(0x3ee,0x475)](_0x255ef1,_0x58c396){this['query'][_0x2f0f55(0x230,0x112)][_0x2f0f55(0xb0,0x120)]({'column':_0x255ef1,'operator':'contains','value':_0x58c396});function _0x2f0f55(_0x56563c,_0x3bcf6b){return _0x6f43(_0x3bcf6b- -0xdf,_0x56563c);}return this;}[_0x2d7030(0x4e1,0x5f4)](_0x29e7fd){return Object['entries'](_0x29e7fd)['forEach'](([_0x41a1e3,_0x60636])=>{this['eq'](_0x41a1e3,_0x60636);}),this;}['order'](_0x58b07a,_0x2e9714){!this[_0x2bd726(0x157,0x143)]['order']&&(this[_0x2bd726(0x157,0x241)][_0x2bd726(0x1a6,0x1d8)]=[]);this[_0x2bd726(0x157,0x1c8)][_0x2bd726(0x1a6,0x2b9)][_0x2bd726(0x17a,0x27d)]({'column':_0x58b07a,'ascending':_0x2e9714?.[_0x2bd726(0x360,0x3d1)]!==![]});function _0x2bd726(_0x3bd77f,_0x4742cc){return _0x6f43(_0x3bd77f- -0x85,_0x4742cc);}return this;}[_0x2d7030(0x516,0x4e6)](count){function _0x56daf5(_0xc5cd7e,_0x341516){return _0x6f43(_0xc5cd7e- -0xb2,_0x341516);}return this[_0x56daf5(0x12a,0x10a)][_0x56daf5(0x1d2,0xd2)]=count,this;}[_0x2d7030(0x465,0x544)](from,_0x5db36a){return this['query']['range']={'from':from,'to':_0x5db36a},this;}async['execute'](){function _0x268daf(_0x53ba3d,_0x4a44d3){return _0x6f43(_0x53ba3d-0x91,_0x4a44d3);}if(this['query'][_0x268daf(0x3c6,0x2cb)])return this[_0x268daf(0x350,0x2f0)]('PATCH','/sdk/v1/'+this['table'],{'data':this['query'][_0x268daf(0x3c6,0x344)],'options':this['query']['updateOptions'],'filters':this['query'][_0x268daf(0x282,0x314)]});else return this['query'][_0x268daf(0x440,0x51b)]?this[_0x268daf(0x350,0x338)]('DELETE','/sdk/v1/'+this['table']+'?operation=delete',{'options':this['query'][_0x268daf(0x395,0x468)],'filters':this['query']['filters']}):this['executeQuery']('GET',_0x268daf(0x3a4,0x302)+this['table']+_0x268daf(0x29c,0x2e5),{'select':this['query']['select'],'filters':this['query']['filters'],'order':this[_0x268daf(0x26d,0x363)][_0x268daf(0x2bc,0x214)],'limit':this[_0x268daf(0x26d,0x2ef)]['limit'],'range':this[_0x268daf(0x26d,0x253)][_0x268daf(0x373,0x368)]});}async['single'](){this['limit'](0x1);function _0x35dcd2(_0x298934,_0x52b47b){return _0x6f43(_0x52b47b-0x31b,_0x298934);}const result=await this['execute']();return{'data':result[_0x35dcd2(0x6a5,0x6fe)]?.[0x0]||null,'error':result[_0x35dcd2(0x6de,0x5cc)]};}async[_0x2d7030(0x59b,0x521)](_0x20afa8,_0x2ef826,_0x217ee8){function _0x491ec1(_0xd90a8a,_0x3727fb){return _0x6f43(_0x3727fb-0x61,_0xd90a8a);}try{let response;const headers={};this['workspaceId']&&(headers['x-workspace-id']=this[_0x491ec1(0x12e,0x23c)]);if(_0x20afa8==='GET'){const _0x3a6977=_0x2ef826[_0x491ec1(0x452,0x3ab)]('?'),_0x2c0bf6=_0x3a6977[0x0],existingParams=new URLSearchParams(_0x3a6977[0x1]||'');if(_0x217ee8['select'])existingParams['append'](_0x491ec1(0x42a,0x3f6),_0x217ee8[_0x491ec1(0x33b,0x3f6)]);_0x217ee8[_0x491ec1(0x35f,0x252)]?.['length']&&_0x217ee8['filters'][_0x491ec1(0x2e5,0x3f1)](filter=>{function _0x1ea8c2(_0x32e0d2,_0x141608){return _0x6f43(_0x32e0d2- -0x8d,_0x141608);}existingParams['append'](filter[_0x1ea8c2(0x364,0x31c)],filter[_0x1ea8c2(0x347,0x392)]+'.'+filter['value']);});if(_0x217ee8[_0x491ec1(0x331,0x28c)]?.['length']){const orderStr=_0x217ee8['order'][_0x491ec1(0x209,0x224)](_0xd1efff=>''+_0xd1efff[_0x491ec1(0x528,0x452)]+(_0xd1efff[_0x491ec1(0x567,0x446)]?'.asc':'.desc'))['join'](',');existingParams['append']('order',orderStr);}if(_0x217ee8[_0x491ec1(0x1ff,0x2e5)])existingParams['append']('limit',_0x217ee8[_0x491ec1(0x343,0x2e5)][_0x491ec1(0x2a1,0x3b6)]());_0x217ee8[_0x491ec1(0x2d5,0x343)]&&(existingParams[_0x491ec1(0x485,0x456)](_0x491ec1(0x509,0x41c),_0x217ee8[_0x491ec1(0x37f,0x343)]['from'][_0x491ec1(0x3e0,0x3b6)]()),existingParams['append']('limit',(_0x217ee8['range']['to']-_0x217ee8[_0x491ec1(0x2ff,0x343)]['from']+0x1)[_0x491ec1(0x3d0,0x3b6)]())),response=await this[_0x491ec1(0x440,0x3b7)][_0x491ec1(0x46c,0x378)](_0x2c0bf6+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x20afa8==='DELETE'){const _0x41cecb=_0x2ef826[_0x491ec1(0x4bb,0x3ab)]('?'),_0x5b2f2b=_0x41cecb[0x0],existingParams=new URLSearchParams(_0x41cecb[0x1]||'');!existingParams[_0x491ec1(0x313,0x35c)]('operation')&&existingParams['append'](_0x491ec1(0x3a9,0x344),_0x491ec1(0x291,0x35b));_0x217ee8[_0x491ec1(0x31f,0x252)]?.['length']&&_0x217ee8['filters'][_0x491ec1(0x382,0x3f1)](filter=>{function _0x619730(_0x4f287e,_0x450443){return _0x6f43(_0x450443- -0xfa,_0x4f287e);}existingParams[_0x619730(0x30d,0x2fb)](filter[_0x619730(0x1f9,0x2f7)],filter['operator']+'.'+filter[_0x619730(0x153,0x1e2)]);});const deleteUrl=_0x5b2f2b+'?'+existingParams['toString']();console['log']('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console[_0x491ec1(0x2d9,0x2ac)]('\uD83D\uDD27 DELETE filtros originais:',_0x217ee8['filters']),response=await this['httpClient']['delete'](deleteUrl,{'headers':headers});}else{if(_0x20afa8==='PATCH'){const _0x18d8c9=_0x2ef826['split']('?'),_0x3411ed=_0x18d8c9[0x0],existingParams=new URLSearchParams(_0x18d8c9[0x1]||'');!existingParams[_0x491ec1(0x38d,0x35c)]('operation')&&existingParams[_0x491ec1(0x3b7,0x456)]('operation','update');_0x217ee8['filters']?.[_0x491ec1(0x336,0x2a6)]&&_0x217ee8[_0x491ec1(0x349,0x252)]['forEach'](filter=>{function _0x5eb6f2(_0x2afd09,_0x5e86d6){return _0x6f43(_0x2afd09-0xce,_0x5e86d6);}existingParams['append'](filter['column'],filter[_0x5eb6f2(0x4a2,0x414)]+'.'+filter['value']);});_0x217ee8['options']?.['prefer']&&(headers['Prefer']=_0x217ee8['options'][_0x491ec1(0x39b,0x384)]);const updateUrl=_0x3411ed+'?'+existingParams[_0x491ec1(0x4b5,0x3b6)]();response=await this['httpClient']['patch'](updateUrl,_0x217ee8[_0x491ec1(0x422,0x444)],{'headers':headers});}else{let _0x1f3e5e=_0x217ee8[_0x491ec1(0x54b,0x444)];!headers['Prefer']&&(headers['Prefer']=_0x491ec1(0x32a,0x36a)),_0x217ee8['options']?.['upsert']&&(headers['Prefer']=_0x491ec1(0x289,0x2bb)),_0x217ee8[_0x491ec1(0x220,0x308)]&&(_0x1f3e5e=_0x217ee8[_0x491ec1(0x33b,0x308)]),response=await this['httpClient'][_0x491ec1(0x107,0x222)](_0x2ef826,_0x1f3e5e,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response['headers']?.['x-total-count']?parseInt(response[_0x491ec1(0x3af,0x2cb)][_0x491ec1(0x403,0x3d9)]):undefined};}catch(_0x1c77a7){return{'data':null,'error':_0x1c77a7 instanceof EBaaSError?_0x1c77a7:new EBaaSError(_0x1c77a7 instanceof Error?_0x1c77a7[_0x491ec1(0x40b,0x37c)]:_0x491ec1(0x33b,0x220),0x0,_0x1c77a7)};}}}class CustomDatabaseManager{constructor(_0x553348,_0x382c5c){function _0x5c8021(_0x2dc87c,_0x5ed9cc){return _0x6f43(_0x2dc87c- -0x86,_0x5ed9cc);}this['httpClient']=_0x553348,this[_0x5c8021(0x155,0x18d)]=_0x382c5c;}async['detectCustomDatabase'](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this['httpClient'][_0x143d5e(0x3ec,0x4d0)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this[_0x143d5e(0x2b0,0x1f2)]}});if(response['status']===0xc8&&response['data']?.['config']){const config=response['data'][_0x143d5e(0x2e2,0x3eb)],_0x2e733b={'host':config[_0x143d5e(0x48e,0x486)],'port':config['postgresPort'],'database':config['postgresDatabase'],'username':config['postgresUsername'],'password':'','schema':config[_0x143d5e(0x3ef,0x488)],'sslEnabled':config['sslEnabled']};return this[_0x143d5e(0x383,0x44b)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x2e733b},this[_0x143d5e(0x383,0x298)];}}catch(_0x25a4cd){if(_0x25a4cd?.['status']===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];console['warn']('Failed to detect custom database configuration:',_0x25a4cd);}function _0x143d5e(_0x6d7517,_0x16d829){return _0x6f43(_0x6d7517-0xd5,_0x16d829);}return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];}async['testConnection'](_0x272583){function _0x345196(_0x3dcfd4,_0x253744){return _0x6f43(_0x253744-0x1d,_0x3dcfd4);}try{const response=await this['httpClient']['post']('/admin/v1/workspace/custom-database/test-connection',_0x272583,{'headers':this['workspaceId']?{'X-Workspace-ID':this['workspaceId']}:{}});return response[_0x345196(0x4bd,0x400)];}catch(_0x746277){return{'success':![],'message':_0x746277?.[_0x345196(0x387,0x338)]||'Failed\x20to\x20test\x20connection'};}}async[_0x2d7030(0x369,0x489)](_0x39052c){if(!this[_0x424b45(-0xe8,-0x17c)])throw new Error('Workspace ID is required to configure custom database');const response=await this[_0x424b45(0x93,-0x8c)][_0x424b45(-0x102,-0xf8)]('/admin/v1/workspace/custom-database',{'workspaceId':this['workspaceId'],..._0x39052c},{'headers':{'X-Workspace-ID':this[_0x424b45(-0xe8,-0x139)]}});function _0x424b45(_0x114d7b,_0x1f3091){return _0x6f43(_0x114d7b- -0x2c3,_0x1f3091);}const config=response['data']['config'];return this[_0x424b45(-0x15,0x19)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x39052c},config;}async['removeCustomDatabase'](){if(!this[_0x46a31a(0xa4,0xf9)])throw new Error('Workspace ID is required to remove custom database');await this[_0x46a31a(0x30d,0x274)]['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x46a31a(0x157,0xf9)]}});function _0x46a31a(_0x1521ae,_0x5780c4){return _0x6f43(_0x5780c4- -0xe2,_0x1521ae);}this[_0x46a31a(0x227,0x1cc)]={'hasCustomDatabase':![]};}['getDetectedConfig'](){function _0x292457(_0x28afdf,_0x4c5065){return _0x6f43(_0x28afdf-0x117,_0x4c5065);}return this[_0x292457(0x3c5,0x4dc)];}['hasCustomDatabase'](){function _0x3b4aeb(_0x5f4f2b,_0x2ea204){return _0x6f43(_0x2ea204- -0x33,_0x5f4f2b);}return this['detectedConfig']?.[_0x3b4aeb(0x13f,0x23f)]??![];}[_0x2d7030(0x432,0x43b)](){function _0x30b2fd(_0x24b005,_0x3603ef){return _0x6f43(_0x3603ef-0x1f5,_0x24b005);}return this[_0x30b2fd(0x55d,0x4a3)]?.['credentials'];}[_0x2d7030(0x613,0x61e)](_0x730be3){this[_0x403fa7(0x2c0,0x38f)]=_0x730be3;function _0x403fa7(_0x2b4769,_0x27bd34){return _0x6f43(_0x27bd34-0x1b4,_0x2b4769);}this['detectedConfig']=undefined;}['getWorkspaceId'](){return this['workspaceId'];}['getStatus'](){function _0x1fc8c4(_0x19f7d8,_0x59e7b0){return _0x6f43(_0x59e7b0- -0x360,_0x19f7d8);}return{'workspaceId':this[_0x1fc8c4(-0x18f,-0x185)],'hasConfig':this[_0x1fc8c4(-0x21,-0xee)](),'configDetails':this['detectedConfig']?.[_0x1fc8c4(-0x5f,-0xd9)]?{'host':this[_0x1fc8c4(0x42,-0xb2)]['credentials'][_0x1fc8c4(0x14,0xe)],'port':this[_0x1fc8c4(0x5f,-0xb2)][_0x1fc8c4(-0xf8,-0xd9)][_0x1fc8c4(-0x6e,0x54)],'database':this[_0x1fc8c4(-0x7b,-0xb2)][_0x1fc8c4(-0x103,-0xd9)][_0x1fc8c4(-0x107,-0x26)],'schema':this[_0x1fc8c4(-0x93,-0xb2)][_0x1fc8c4(-0x8b,-0xd9)]['schema']||_0x1fc8c4(-0x156,-0x82),'sslEnabled':this['detectedConfig']['credentials'][_0x1fc8c4(-0x9,-0x104)]||![]}:undefined};}}class DatabaseClient{constructor(_0x5e7445,_0x38ad4b){function _0x3b3019(_0x28931e,_0x2060fe){return _0x6f43(_0x2060fe- -0xd7,_0x28931e);}this['httpClient']=_0x5e7445,this[_0x3b3019(0x1dd,0x2fe)]=new CustomDatabaseManager(_0x5e7445,_0x38ad4b);}['from'](_0x1a8432){function _0x580258(_0x563196,_0x3fce22){return _0x6f43(_0x563196-0x25c,_0x3fce22);}return new QueryBuilder(this[_0x580258(0x5b2,0x5d6)],_0x1a8432,this[_0x580258(0x568,0x506)],this[_0x580258(0x631,0x5e5)][_0x580258(0x499,0x4b5)]());}['rpc'](_0x45ae89,_0x1f859b){function _0x21e149(_0x57a753,_0x499aed){return _0x6f43(_0x57a753-0x20f,_0x499aed);}return this['httpClient'][_0x21e149(0x3d0,0x37c)](_0x21e149(0x528,0x4b5)+_0x45ae89,_0x1f859b);}[_0x2d7030(0x61e,0x546)](_0x13d8d4){function _0x10758c(_0x4bdf02,_0x52d5f5){return _0x6f43(_0x52d5f5-0x112,_0x4bdf02);}const _0x403e27=new DatabaseClient(this['httpClient'],this['customDatabaseManager']['getWorkspaceId']());return _0x403e27['currentSchema']=_0x13d8d4,_0x403e27['customDatabaseManager']=this[_0x10758c(0x45c,0x4e7)],_0x403e27;}async[_0x2d7030(0x51d,0x5ea)](){function _0x1901f1(_0x2765de,_0x42a645){return _0x6f43(_0x42a645- -0x73,_0x2765de);}return this['customDatabaseManager'][_0x1901f1(0x2a7,0x315)]();}async['testCustomConnection'](_0x5349d5){function _0x51d8ef(_0x267006,_0x482fd5){return _0x6f43(_0x482fd5- -0x223,_0x267006);}return this[_0x51d8ef(0x2ce,0x1b2)]['testConnection'](_0x5349d5);}async['configureCustomDatabase'](_0x3c1abf){return this['customDatabaseManager']['configureCustomDatabase'](_0x3c1abf);}async[_0x2d7030(0x59c,0x593)](){return this['customDatabaseManager']['removeCustomDatabase']();}[_0x2d7030(0x638,0x5ed)](){function _0x2f2757(_0x2f3cf9,_0x5c282e){return _0x6f43(_0x2f3cf9- -0x307,_0x5c282e);}return this[_0x2f2757(0xce,0x1c1)]['hasCustomDatabase']();}[_0x2d7030(0x593,0x656)](){return this['customDatabaseManager']['getStatus']();}['setWorkspaceId'](_0x4ef0f3){function _0x1fb435(_0xc727d,_0x24dc5f){return _0x6f43(_0x24dc5f-0xbe,_0xc727d);}this[_0x1fb435(0x571,0x493)]['setWorkspaceId'](_0x4ef0f3);}async['initialize'](){function _0x2c828a(_0x5fd102,_0x104dee){return _0x6f43(_0x5fd102- -0x1fd,_0x104dee);}try{await this[_0x2c828a(0x1d8,0x146)]['detectCustomDatabase']();}catch(_0x510578){console[_0x2c828a(0x1cc,0x149)]('Failed to initialize custom database detection:',_0x510578);}}}class StorageBucket{constructor(_0x587226,bucketId){this['httpClient']=_0x587226,this['bucketId']=bucketId;}async['upload'](_0x189c1c,_0x5239e1,_0x463fd6){function _0x425e7f(_0x273862,_0x5ba4d4){return _0x6f43(_0x5ba4d4-0xdd,_0x273862);}try{const _0x2ead00=new FormData();if(_0x5239e1 instanceof File)_0x2ead00[_0x425e7f(0x5ec,0x4d2)]('file',_0x5239e1);else{if(_0x5239e1 instanceof Blob)_0x2ead00['append'](_0x425e7f(0x535,0x47d),_0x5239e1,_0x189c1c);else{if(_0x5239e1 instanceof ArrayBuffer)_0x2ead00[_0x425e7f(0x497,0x4d2)](_0x425e7f(0x4b4,0x47d),new Blob([_0x5239e1]),_0x189c1c);else typeof _0x5239e1==='string'&&_0x2ead00[_0x425e7f(0x42c,0x4d2)](_0x425e7f(0x366,0x47d),new Blob([_0x5239e1],{'type':'text/plain'}),_0x189c1c);}}_0x2ead00['append'](_0x425e7f(0x2c4,0x395),_0x189c1c);_0x463fd6?.['cacheControl']&&_0x2ead00[_0x425e7f(0x5d4,0x4d2)]('cacheControl',_0x463fd6['cacheControl']);_0x463fd6?.[_0x425e7f(0x226,0x297)]&&_0x2ead00['append']('contentType',_0x463fd6['contentType']);_0x463fd6?.[_0x425e7f(0x364,0x2d7)]&&_0x2ead00[_0x425e7f(0x431,0x4d2)](_0x425e7f(0x396,0x2d7),JSON[_0x425e7f(0x3a1,0x487)](_0x463fd6['metadata']));const _0x29651f='/storage/buckets/'+this[_0x425e7f(0x486,0x4bf)]+_0x425e7f(0x3ce,0x44d)+(_0x463fd6?.[_0x425e7f(0x586,0x4a5)]?_0x425e7f(0x3ec,0x48d):''),response=await this[_0x425e7f(0x400,0x433)]['post'](_0x29651f,_0x2ead00,{'headers':{'Content-Type':_0x425e7f(0x553,0x444)}});return{'data':response['data'],'error':null};}catch(_0x54ab6a){return{'data':null,'error':_0x54ab6a instanceof EBaaSError?_0x54ab6a:new EBaaSError(_0x54ab6a instanceof Error?_0x54ab6a[_0x425e7f(0x32d,0x3f8)]:'Failed\x20to\x20upload\x20file',0x0,_0x54ab6a)};}}async[_0x2d7030(0x581,0x5e0)](_0x3d62d2,_0x26d27d){function _0x5449d6(_0x4df119,_0x5ac571){return _0x6f43(_0x5ac571- -0x329,_0x4df119);}try{const _0x4eb679=new URLSearchParams();_0x26d27d?.[_0x5449d6(-0x144,-0x15c)]&&Object[_0x5449d6(0xe6,-0x31)](_0x26d27d['transform'])['forEach'](([_0x29d67f,_0x3edacb])=>{_0x3edacb!==undefined&&_0x4eb679['append'](_0x29d67f,String(_0x3edacb));});const _0x4fbf9a='/storage/buckets/'+this['bucketId']+_0x5449d6(0xb3,0xbb)+_0x3d62d2+(_0x4eb679[_0x5449d6(0x12c,0x2c)]()?'?'+_0x4eb679['toString']():''),response=await this[_0x5449d6(0xbb,0x2d)][_0x5449d6(-0x7e,-0x12)](_0x4fbf9a,{'responseType':_0x5449d6(-0x4e,-0x158)});return{'data':response[_0x5449d6(0x2c,0xba)],'error':null};}catch(_0x1bc7f0){return{'data':null,'error':_0x1bc7f0 instanceof EBaaSError?_0x1bc7f0:new EBaaSError(_0x1bc7f0 instanceof Error?_0x1bc7f0[_0x5449d6(-0x9a,-0xe)]:'Failed\x20to\x20download\x20file',0x0,_0x1bc7f0)};}}async[_0x2d7030(0x5b3,0x589)](_0x4d4f18,_0x155614){function _0x4a7ba5(_0x398269,_0x331549){return _0x6f43(_0x398269-0x1a3,_0x331549);}try{const _0x409b1f=new URLSearchParams();_0x4d4f18&&_0x409b1f[_0x4a7ba5(0x598,0x48c)]('prefix',_0x4d4f18);_0x155614?.['limit']&&_0x409b1f['append']('limit',String(_0x155614[_0x4a7ba5(0x427,0x36a)]));_0x155614?.['offset']&&_0x409b1f[_0x4a7ba5(0x598,0x58e)]('offset',String(_0x155614[_0x4a7ba5(0x55e,0x633)]));_0x155614?.[_0x4a7ba5(0x3f4,0x4fa)]&&_0x409b1f[_0x4a7ba5(0x598,0x482)](_0x4a7ba5(0x3f4,0x312),JSON['stringify'](_0x155614['sortBy']));_0x155614?.['search']&&_0x409b1f['append'](_0x4a7ba5(0x442,0x3bc),_0x155614[_0x4a7ba5(0x442,0x349)]);const _0x35e180=_0x4a7ba5(0x522,0x586)+this[_0x4a7ba5(0x585,0x4e4)]+_0x4a7ba5(0x513,0x547)+(_0x409b1f[_0x4a7ba5(0x4f8,0x438)]()?'?'+_0x409b1f[_0x4a7ba5(0x4f8,0x577)]():''),response=await this['httpClient'][_0x4a7ba5(0x4ba,0x4c1)](_0x35e180);return{'data':response[_0x4a7ba5(0x586,0x5cb)],'error':null};}catch(_0x2d899b){return{'data':null,'error':_0x2d899b instanceof EBaaSError?_0x2d899b:new EBaaSError(_0x2d899b instanceof Error?_0x2d899b['message']:'Failed\x20to\x20list\x20files',0x0,_0x2d899b)};}}async[_0x2d7030(0x533,0x55e)](_0xc9aae1){function _0x3e9a48(_0x4ce57a,_0x3b9780){return _0x6f43(_0x3b9780-0x65,_0x4ce57a);}try{const response=await this['httpClient'][_0x3e9a48(0x2d8,0x35f)]('/storage/buckets/'+this[_0x3e9a48(0x4f8,0x447)]+_0x3e9a48(0x303,0x3d5),{'data':{'paths':_0xc9aae1}});return{'data':response[_0x3e9a48(0x47a,0x448)],'error':null};}catch(_0x38f226){return{'data':null,'error':_0x38f226 instanceof EBaaSError?_0x38f226:new EBaaSError(_0x38f226 instanceof Error?_0x38f226['message']:'Failed\x20to\x20remove\x20files',0x0,_0x38f226)};}}async[_0x2d7030(0x528,0x517)](fromPath,_0x207e98){function _0x4d45f1(_0x13ea66,_0x3bcc1d){return _0x6f43(_0x13ea66-0x134,_0x3bcc1d);}try{const response=await this['httpClient']['post'](_0x4d45f1(0x4b3,0x52f)+this[_0x4d45f1(0x516,0x3f3)]+_0x4d45f1(0x340,0x298),{'sourceKey':fromPath,'destinationKey':_0x207e98});return{'data':response['data'],'error':null};}catch(_0x1fe72e){return{'data':null,'error':_0x1fe72e instanceof EBaaSError?_0x1fe72e:new EBaaSError(_0x1fe72e instanceof Error?_0x1fe72e[_0x4d45f1(0x44f,0x41d)]:_0x4d45f1(0x41e,0x48b),0x0,_0x1fe72e)};}}async[_0x2d7030(0x3d7,0x47a)](fromPath,_0xa1c735){function _0x2db3a5(_0x542a73,_0xb951a0){return _0x6f43(_0xb951a0- -0x28e,_0x542a73);}try{const response=await this['httpClient'][_0x2db3a5(-0x49,-0xcd)]('/storage/buckets/'+this['bucketId']+'/files/copy',{'sourceKey':fromPath,'destinationKey':_0xa1c735});return{'data':response['data'],'error':null};}catch(_0x2e813c){return{'data':null,'error':_0x2e813c instanceof EBaaSError?_0x2e813c:new EBaaSError(_0x2e813c instanceof Error?_0x2e813c[_0x2db3a5(0x16f,0x8d)]:_0x2db3a5(0x1ae,0x15b),0x0,_0x2e813c)};}}async[_0x2d7030(0x3d6,0x4d9)](_0x41eae4,_0x350f5d,_0x516a2b){function _0x453cc4(_0x269629,_0x494609){return _0x6f43(_0x494609- -0x1f9,_0x269629);}try{const response=await this['httpClient'][_0x453cc4(0xed,-0x38)](_0x453cc4(0x251,0x186)+this['bucketId']+'/files/'+_0x41eae4+_0x453cc4(0xa1,0x18d),{'expiresIn':_0x350f5d,..._0x516a2b});return{'data':response['data'],'error':null};}catch(_0x17e8ea){return{'data':null,'error':_0x17e8ea instanceof EBaaSError?_0x17e8ea:new EBaaSError(_0x17e8ea instanceof Error?_0x17e8ea['message']:_0x453cc4(0x3c,-0x21),0x0,_0x17e8ea)};}}['getPublicUrl'](_0x4fcac9,_0x5c8a57){const _0x1ca52c=new URLSearchParams();_0x5c8a57?.['transform']&&Object[_0x42c2b0(0x464,0x50c)](_0x5c8a57['transform'])['forEach'](([_0x456417,_0x57687b])=>{function _0x10236c(_0x20eb3c,_0x422315){return _0x6f43(_0x422315-0x137,_0x20eb3c);}_0x57687b!==undefined&&_0x1ca52c[_0x10236c(0x423,0x52c)](_0x456417,String(_0x57687b));});function _0x42c2b0(_0x30bcc9,_0x525335){return _0x6f43(_0x525335-0x214,_0x30bcc9);}const _0x535742=this['httpClient'][_0x42c2b0(0x661,0x5a7)]||'',_0x2a75b5=_0x535742+'/storage/buckets/'+this[_0x42c2b0(0x5ee,0x5f6)]+_0x42c2b0(0x4f7,0x5f8)+_0x4fcac9+(_0x1ca52c['toString']()?'?'+_0x1ca52c[_0x42c2b0(0x68e,0x569)]():'');return{'data':{'publicUrl':_0x2a75b5}};}async['getFileInfo'](_0x12b07b){function _0x23087f(_0xbff7e1,_0x24cfda){return _0x6f43(_0x24cfda- -0x35e,_0xbff7e1);}try{const response=await this[_0x23087f(-0xc5,-0x8)]['get'](_0x23087f(-0x9f,0x21)+this['bucketId']+'/files/'+_0x12b07b+_0x23087f(-0x297,-0x172));return{'data':response[_0x23087f(0x15e,0x85)],'error':null};}catch(_0x3946ea){return{'data':null,'error':_0x3946ea instanceof EBaaSError?_0x3946ea:new EBaaSError(_0x3946ea instanceof Error?_0x3946ea[_0x23087f(-0x4b,-0x43)]:'Failed\x20to\x20get\x20file\x20info',0x0,_0x3946ea)};}}async[_0x2d7030(0x544,0x5f9)](_0x21ea7f,metadata){function _0x3109e9(_0x27a595,_0x357a7d){return _0x6f43(_0x357a7d-0x1eb,_0x27a595);}try{const response=await this['httpClient'][_0x3109e9(0x3fc,0x3f9)](_0x3109e9(0x4ad,0x56a)+this['bucketId']+_0x3109e9(0x626,0x5cf)+_0x21ea7f+_0x3109e9(0x39c,0x49a),{'metadata':metadata});return{'data':response[_0x3109e9(0x61b,0x5ce)],'error':null};}catch(_0x4b6453){return{'data':null,'error':_0x4b6453 instanceof EBaaSError?_0x4b6453:new EBaaSError(_0x4b6453 instanceof Error?_0x4b6453[_0x3109e9(0x4d0,0x506)]:'Failed\x20to\x20update\x20file\x20metadata',0x0,_0x4b6453)};}}}class StorageClient{constructor(_0x48926f){function _0x24880a(_0x4fe44b,_0x40c975){return _0x6f43(_0x40c975-0x328,_0x4fe44b);}this[_0x24880a(0x6f9,0x67e)]=_0x48926f;}[_0x2d7030(0x53d,0x4c9)](bucketId){function _0x59bf25(_0x1ce741,_0x4b5563){return _0x6f43(_0x4b5563- -0x30,_0x1ce741);}return new StorageBucket(this[_0x59bf25(0x352,0x326)],bucketId);}async[_0x2d7030(0x531,0x578)](_0x1bb76f,_0x1bc9f7){function _0x3ca55d(_0x8745dc,_0x359574){return _0x6f43(_0x8745dc-0x203,_0x359574);}try{const response=await this[_0x3ca55d(0x559,0x5c1)][_0x3ca55d(0x3c4,0x36e)](_0x3ca55d(0x3f3,0x306),{'id':_0x1bb76f,..._0x1bc9f7});return{'data':response['data'],'error':null};}catch(_0x391681){return{'data':null,'error':_0x391681 instanceof EBaaSError?_0x391681:new EBaaSError(_0x391681 instanceof Error?_0x391681['message']:'Failed\x20to\x20create\x20bucket',0x0,_0x391681)};}}async[_0x2d7030(0x54e,0x622)](_0x13816f){function _0x4f0916(_0x166a19,_0x1f0b4c){return _0x6f43(_0x166a19- -0x1c0,_0x1f0b4c);}try{const response=await this[_0x4f0916(0x196,0x253)]['get']('/storage/buckets/'+_0x13816f);return{'data':response[_0x4f0916(0x223,0x288)],'error':null};}catch(_0x43fefa){return{'data':null,'error':_0x43fefa instanceof EBaaSError?_0x43fefa:new EBaaSError(_0x43fefa instanceof Error?_0x43fefa[_0x4f0916(0x15b,0x24d)]:_0x4f0916(0xb4,0x7),0x0,_0x43fefa)};}}async[_0x2d7030(0x6d0,0x630)](){function _0x32ce21(_0xc7c6e1,_0x25f1e6){return _0x6f43(_0x25f1e6-0x27b,_0xc7c6e1);}try{const response=await this['httpClient'][_0x32ce21(0x591,0x592)](_0x32ce21(0x36b,0x46b));return{'data':response[_0x32ce21(0x694,0x65e)],'error':null};}catch(_0x580c4f){return{'data':null,'error':_0x580c4f instanceof EBaaSError?_0x580c4f:new EBaaSError(_0x580c4f instanceof Error?_0x580c4f[_0x32ce21(0x66f,0x596)]:_0x32ce21(0x6a9,0x5aa),0x0,_0x580c4f)};}}async['updateBucket'](_0x5ac233,_0x56a603){function _0x3cdea7(_0x32c94,_0x583c36){return _0x6f43(_0x583c36- -0x282,_0x32c94);}try{const response=await this[_0x3cdea7(0x1dd,0xd4)]['put']('/storage/buckets/'+_0x5ac233,_0x56a603);return{'data':response[_0x3cdea7(0x53,0x161)],'error':null};}catch(_0x5beff3){return{'data':null,'error':_0x5beff3 instanceof EBaaSError?_0x5beff3:new EBaaSError(_0x5beff3 instanceof Error?_0x5beff3['message']:'Failed\x20to\x20update\x20bucket',0x0,_0x5beff3)};}}async['deleteBucket'](_0x14e4e0){function _0x4b8885(_0x5f3b17,_0x2d502e){return _0x6f43(_0x5f3b17- -0x77,_0x2d502e);}try{const response=await this[_0x4b8885(0x2df,0x294)][_0x4b8885(0x283,0x27d)]('/storage/buckets/'+_0x14e4e0);return{'data':response['data'],'error':null};}catch(_0x4cd8a5){return{'data':null,'error':_0x4cd8a5 instanceof EBaaSError?_0x4cd8a5:new EBaaSError(_0x4cd8a5 instanceof Error?_0x4cd8a5['message']:'Failed\x20to\x20delete\x20bucket',0x0,_0x4cd8a5)};}}async['getUsage'](){function _0x1d40ce(_0x48f3b4,_0x307f29){return _0x6f43(_0x48f3b4-0x20f,_0x307f29);}try{const response=await this[_0x1d40ce(0x565,0x5c6)][_0x1d40ce(0x526,0x48c)](_0x1d40ce(0x3da,0x4cc));return{'data':response[_0x1d40ce(0x5f2,0x4ec)],'error':null};}catch(_0x337111){return{'data':null,'error':_0x337111 instanceof EBaaSError?_0x337111:new EBaaSError(_0x337111 instanceof Error?_0x337111['message']:_0x1d40ce(0x471,0x580),0x0,_0x337111)};}}}class RealtimeChannel extends EventEmitter{constructor(_0x8b8731,_0x5e6cd2){function _0xfd858d(_0x3bbefc,_0x112956){return _0x6f43(_0x3bbefc- -0x95,_0x112956);}super(),this['joinedOnce']=![],this['state']=_0xfd858d(0x335,0x30c),this[_0xfd858d(0x1d3,0x1d6)]=new Map(),this[_0xfd858d(0x1db,0x2ff)]=_0x8b8731,this['socket']=_0x5e6cd2;}['subscribe'](_0x5c1cb8){!this[_0x4ce795(0x330,0x302)]&&(this['joinedOnce']=!![],this[_0x4ce795(0x427,0x3bb)]());_0x5c1cb8&&this['on']('status',_0x5c1cb8);function _0x4ce795(_0x329001,_0xfadd64){return _0x6f43(_0x329001-0x74,_0xfadd64);}return this;}[_0x2d7030(0x61c,0x569)](filter,_0x17488f){const _0x1b3972='postgres_changes:'+JSON[_0x4bdde1(0x219,0x30e)](filter);function _0x4bdde1(_0x45bb2b,_0x3834d3){return _0x6f43(_0x3834d3- -0x9c,_0x45bb2b);}super['on'](_0x1b3972,_0x17488f);const _0x246322={'unsubscribe':()=>{super['off'](_0x1b3972,_0x17488f);function _0x116a9c(_0x3e2798,_0x3653b1){return _0x6f43(_0x3653b1- -0x29f,_0x3e2798);}this[_0x116a9c(0x83,-0x37)][_0x116a9c(0x3c,0x5b)](_0x1b3972);}};return this['subscriptions'][_0x4bdde1(0xcc,0x194)](_0x1b3972,_0x246322),this['socket']?.[_0x4bdde1(0x121,0x1ad)]&&this[_0x4bdde1(0x1ae,0x1b3)]==='joined'&&this['socket'][_0x4bdde1(0x214,0x1f6)](_0x4bdde1(0xe3,0x14b),{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()}),_0x246322;}[_0x2d7030(0x6c2,0x601)](filter,_0x1d9ff6){const _0x742ef0=_0x2e555f(0x1ee,0x29a)+JSON['stringify'](filter);function _0x2e555f(_0x53a656,_0x79dc85){return _0x6f43(_0x53a656- -0x6,_0x79dc85);}super['on'](_0x742ef0,_0x1d9ff6);const _0x1ec94d={'unsubscribe':()=>{function _0x16300d(_0x13ac3d,_0x35a161){return _0x6f43(_0x13ac3d- -0x2bf,_0x35a161);}super[_0x16300d(-0x6d,-0x79)](_0x742ef0,_0x1d9ff6),this[_0x16300d(-0x57,-0x77)][_0x16300d(0x3b,0xc)](_0x742ef0);}};return this[_0x2e555f(0x262,0x198)]['set'](_0x742ef0,_0x1ec94d),_0x1ec94d;}['onPresence'](filter,_0x4d2af3){const _0x339c8a='presence:'+JSON[_0x2b7926(0x61e,0x577)](filter);super['on'](_0x339c8a,_0x4d2af3);function _0x2b7926(_0x15de31,_0x8b8729){return _0x6f43(_0x15de31-0x274,_0x8b8729);}const _0x366b67={'unsubscribe':()=>{function _0x3f611e(_0x38ef0e,_0x254085){return _0x6f43(_0x38ef0e-0x2d,_0x254085);}super[_0x3f611e(0x27f,0x32d)](_0x339c8a,_0x4d2af3),this[_0x3f611e(0x295,0x37f)]['delete'](_0x339c8a);}};return this['subscriptions'][_0x2b7926(0x4a4,0x574)](_0x339c8a,_0x366b67),_0x366b67;}['send'](_0x36090f){return new Promise(_0x406f49=>{function _0x430f16(_0x474ff7,_0x1ad0b4){return _0x6f43(_0x474ff7-0x84,_0x1ad0b4);}this['socket']?.['connected']&&this[_0x430f16(0x2d3,0x238)]===_0x430f16(0x30d,0x3f5)?(this['socket']['emit'](_0x430f16(0x2b0,0x3c2),{'topic':this[_0x430f16(0x2f4,0x3e9)],'event':_0x36090f[_0x430f16(0x3a3,0x386)],'payload':_0x36090f,'ref':this[_0x430f16(0x465,0x42d)]()}),_0x406f49('ok')):_0x406f49('error');});}[_0x2d7030(0x555,0x57e)](_0x29a492){return new Promise(_0x219377=>{function _0x3626b0(_0x116f08,_0x17f891){return _0x6f43(_0x116f08- -0x99,_0x17f891);}this[_0x3626b0(0x30b,0x227)]?.[_0x3626b0(0x1b0,0x2c8)]&&this['state']==='joined'?(this['socket']['emit'](_0x3626b0(0x356,0x371),{'topic':this['topic'],'event':_0x3626b0(0x283,0x2c9),'payload':_0x29a492,'ref':this['makeRef']()}),_0x219377('ok')):_0x219377('error');});}[_0x2d7030(0x4ef,0x539)](){return new Promise(_0x25a3f4=>{function _0x4b0c03(_0x2b0c8c,_0x2ce867){return _0x6f43(_0x2b0c8c-0xe7,_0x2ce867);}this[_0x4b0c03(0x48b,0x476)]?.['connected']&&this[_0x4b0c03(0x336,0x359)]==='joined'?(this[_0x4b0c03(0x48b,0x451)]['emit']('presence',{'topic':this[_0x4b0c03(0x357,0x376)],'event':_0x4b0c03(0x3be,0x373),'ref':this[_0x4b0c03(0x4c8,0x518)]()}),_0x25a3f4('ok')):_0x25a3f4('error');});}[_0x2d7030(0x657,0x5b6)](){return new Promise(_0x7b4ffa=>{this[_0x3009fc(0x62,-0x31)]=_0x3009fc(0x15,-0x5b),this[_0x3009fc(-0xf6,-0x18)]['forEach'](_0x25429a=>{function _0x1c298c(_0x61297d,_0x17a964){return _0x6f43(_0x17a964- -0x173,_0x61297d);}_0x25429a[_0x1c298c(0x27b,0x1e1)]();}),this[_0x3009fc(-0x126,-0x18)][_0x3009fc(0xe7,0x3a)]();this['socket']?.[_0x3009fc(-0xaa,-0x37)]&&this['socket'][_0x3009fc(0x83,0x12)]('leave',{'topic':this[_0x3009fc(0xce,-0x10)],'ref':this['makeRef']()});this['state']='closed',this[_0x3009fc(-0x13f,-0x77)]();function _0x3009fc(_0x4cbb58,_0x27ad22){return _0x6f43(_0x27ad22- -0x280,_0x4cbb58);}_0x7b4ffa('ok');});}[_0x2d7030(0x543,0x615)](){if(this['state']===_0xd3fab2(-0x149,-0x164))return;this['state']='joining';function _0xd3fab2(_0xeca068,_0x4189a1){return _0x6f43(_0xeca068- -0x36e,_0x4189a1);}this[_0xd3fab2(0x36,0x110)]?.['connected']&&(this[_0xd3fab2(0x36,0xf7)]['emit'](_0xd3fab2(-0x18c,-0x22a),{'topic':this[_0xd3fab2(-0xfe,-0x169)],'ref':this['makeRef']()}),setTimeout(()=>{function _0x361b2b(_0xb840c4,_0x952b67){return _0x6f43(_0x952b67- -0x17d,_0xb840c4);}this['state']===_0x361b2b(0x253,0x204)&&(this['state']='joined',this[_0x361b2b(0x96,0x115)](_0x361b2b(0x1d4,0xec),_0x361b2b(0x11a,0xc9)));},0x64));}[_0x2d7030(0x4a2,0x519)](){function _0x123960(_0x10ff42,_0x309078){return _0x6f43(_0x10ff42-0x18a,_0x309078);}this[_0x123960(0x446,0x4fc)]&&(this[_0x123960(0x53d,0x647)](),this['subscriptions']['forEach']((_0x13d82a,_0x26179e)=>{function _0x3fffac(_0x3c391f,_0x1d643){return _0x6f43(_0x1d643- -0x2cb,_0x3c391f);}if(_0x26179e['startsWith']('postgres_changes:')){const filter=JSON[_0x3fffac(0x7,-0x9e)](_0x26179e['replace'](_0x3fffac(-0x9f,-0x32),''));this[_0x3fffac(0x163,0xd9)]?.[_0x3fffac(0x3e,-0x39)]('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()});}}));}[_0x2d7030(0x6a8,0x633)](_0xcae79c,_0x1d7a8d){function _0xee7212(_0x310f7e,_0x5e8598){return _0x6f43(_0x310f7e-0x32,_0x5e8598);}if(_0xcae79c==='postgres_changes'){const _0x3bf59d='postgres_changes:'+JSON[_0xee7212(0x3dc,0x4cf)](_0x1d7a8d[_0xee7212(0x1f6,0x2b1)]||{});this['emit'](_0x3bf59d,_0x1d7a8d);}else{if(_0xcae79c===_0xee7212(0x25e,0x13c)){const _0x5d8912=_0xee7212(0x226,0x2e0)+JSON[_0xee7212(0x3dc,0x4cf)]({'event':_0x1d7a8d[_0xee7212(0x351,0x318)]});this[_0xee7212(0x2c4,0x3c1)](_0x5d8912,_0x1d7a8d);}else{if(_0xcae79c==='presence'){const _0x201517='presence:'+JSON['stringify']({'event':_0x1d7a8d[_0xee7212(0x351,0x3a1)]});this['emit'](_0x201517,_0x1d7a8d);}}}this[_0xee7212(0x2c4,0x3b4)](_0xcae79c,_0x1d7a8d);}[_0x2d7030(0x60b,0x5db)](_0xabda20){this['state']=_0xabda20;let status;switch(_0xabda20){case _0x5c22a5(-0xd1,-0x7c):status='SUBSCRIBED';break;case _0x5c22a5(-0xaa,-0x2c):status=_0x5c22a5(-0x192,-0x181);break;case'closed':status=_0x5c22a5(0x15,-0xfb);break;default:return;}function _0x5c22a5(_0x17a147,_0x11af72){return _0x6f43(_0x17a147- -0x35a,_0x11af72);}this['emit']('status',status);}[_0x2d7030(0x571,0x643)](){function _0x284852(_0x4e16a9,_0x185e19){return _0x6f43(_0x185e19- -0x1cd,_0x4e16a9);}return Math[_0x284852(0x2f,0xc7)]()['toString'](0x24)[_0x284852(0xce,-0x12)](0x2,0xf);}[_0x2d7030(0x39d,0x443)](){function _0xed82cc(_0xbcc2a7,_0x1e576c){return _0x6f43(_0x1e576c- -0x351,_0xbcc2a7);}return this[_0xed82cc(0x4,-0x102)];}}class WebSocketAdapter{constructor(){function _0x38dcf2(_0x52f5a1,_0x365b35){return _0x6f43(_0x365b35- -0x237,_0x52f5a1);}this[_0x38dcf2(0x197,0x16d)]=null;}async[_0x2d7030(0x4d5,0x42b)](_0x4dd9a1,_0x7fcbee){const {io:_0x3861d8}=await Promise['resolve']()[_0xb88244(0xd9,0x1d5)](function(){return index;});function _0xb88244(_0x4a0ddf,_0x3ccb09){return _0x6f43(_0x4a0ddf- -0x2d8,_0x3ccb09);}return new Promise((_0x287190,_0x1a128b)=>{function _0x51e79d(_0x3f2cd8,_0x2a58a4){return _0x6f43(_0x3f2cd8- -0x158,_0x2a58a4);}this[_0x51e79d(0x24c,0x243)]=_0x3861d8(_0x4dd9a1,_0x7fcbee),this[_0x51e79d(0x24c,0x30e)]['on']('connect',()=>_0x287190()),this['socket']['on']('connect_error',_0x5129a7=>_0x1a128b(_0x5129a7));});}[_0x2d7030(0x5a7,0x5d7)](){function _0x1089c4(_0x5ecccc,_0x151ae7){return _0x6f43(_0x151ae7-0x282,_0x5ecccc);}this['socket']&&(this['socket']['disconnect'](),this[_0x1089c4(0x636,0x626)]=null);}['emit'](_0x259365,data){function _0x195669(_0x2f1f42,_0x2216d9){return _0x6f43(_0x2216d9-0x192,_0x2f1f42);}this[_0x195669(0x439,0x536)]?.[_0x195669(0x382,0x424)](_0x259365,data);}['on'](_0x23c17d,_0x4fa9f2){this['socket']?.['on'](_0x23c17d,_0x4fa9f2);}['off'](_0xe727b6,_0x2e4e6f){function _0x5b29ff(_0x5c4edb,_0x52a26f){return _0x6f43(_0x5c4edb-0x29d,_0x52a26f);}_0x2e4e6f?this[_0x5b29ff(0x641,0x75d)]?.[_0x5b29ff(0x4ef,0x593)](_0xe727b6,_0x2e4e6f):this[_0x5b29ff(0x641,0x752)]?.[_0x5b29ff(0x4ef,0x55b)](_0xe727b6);}get['connected'](){return this['socket']?.['connected']??![];}}class ReactNativeSocketAdapter{constructor(){function _0x45ad8d(_0x4a7569,_0x2dc3df){return _0x6f43(_0x4a7569-0x149,_0x2dc3df);}this[_0x45ad8d(0x4ed,0x4a1)]=null;}async[_0x2d7030(0x369,0x42b)](_0x5f51aa,_0x38e0ab){function _0x3b6b9e(_0x487b6d,_0x4cd0c9){return _0x6f43(_0x487b6d- -0x133,_0x4cd0c9);}try{const {io:_0x3a890f}=await Promise['resolve']()[_0x3b6b9e(0x27e,0x2e4)](function(){return index;});return new Promise((_0x4955c8,_0x3dd629)=>{this[_0x226db3(0x6c2,0x5d6)]=_0x3a890f(_0x5f51aa,{..._0x38e0ab,'transports':['websocket'],'upgrade':![],'autoConnect':!![]}),this[_0x226db3(0x6c2,0x654)]['on'](_0x226db3(0x4e7,0x4a8),()=>_0x4955c8());function _0x226db3(_0x8da941,_0x192542){return _0x6f43(_0x8da941-0x31e,_0x192542);}this[_0x226db3(0x6c2,0x754)]['on'](_0x226db3(0x657,0x634),_0x176aa4=>_0x3dd629(_0x176aa4));});}catch(_0x17af24){throw new Error('Socket.io-client\x20não\x20está\x20disponível\x20neste\x20ambiente.\x20Para\x20React\x20Native,\x20instale\x20as\x20dependências\x20necessárias.');}}['disconnect'](){function _0x3a6c52(_0x12ec7a,_0x3bb5b9){return _0x6f43(_0x3bb5b9-0x2a8,_0x12ec7a);}this[_0x3a6c52(0x5cd,0x64c)]&&(this['socket']['disconnect'](),this['socket']=null);}[_0x2d7030(0x3e8,0x4f4)](_0x5540a1,data){this['socket']?.['emit'](_0x5540a1,data);}['on'](_0x53b466,_0x52488c){function _0x5322ad(_0x27ac71,_0x19a906){return _0x6f43(_0x27ac71-0x15,_0x19a906);}this[_0x5322ad(0x3b9,0x323)]?.['on'](_0x53b466,_0x52488c);}[_0x2d7030(0x494,0x4b4)](_0x5df10f,_0x38e598){function _0x25366b(_0xb4ed82,_0x26de83){return _0x6f43(_0x26de83- -0x318,_0xb4ed82);}_0x38e598?this['socket']?.[_0x25366b(-0x155,-0xc6)](_0x5df10f,_0x38e598):this[_0x25366b(-0x3f,0x8c)]?.[_0x25366b(-0x9e,-0xc6)](_0x5df10f);}get[_0x2d7030(0x3a8,0x4ab)](){return this['socket']?.['connected']??![];}}function createSocketAdapter(){function _0x19dccd(_0x579fe6,_0x8e4ad7){return _0x6f43(_0x8e4ad7-0x252,_0x579fe6);}if(typeof window!==_0x19dccd(0x372,0x488)&&typeof document!=='undefined')return new WebSocketAdapter();else return typeof global!==_0x19dccd(0x5a4,0x488)&&global[_0x19dccd(0x5ed,0x5a0)]?.[_0x19dccd(0x504,0x435)]==='ReactNative'?new ReactNativeSocketAdapter():new WebSocketAdapter();}class RealtimeClient{constructor(_0x5b38a7,_0x4e5e36,_0x24edf2={}){this[_0xacdca7(0x22c,0x1fd)]=null,this['channels']=new Map(),this['connectionState']=_0xacdca7(0x274,0x19d),this['reconnectAttempts']=0x0,this[_0xacdca7(0xa5,0x6e)]=0x5,this[_0xacdca7(0x8d,0x8e)]=_0x5b38a7,this['apiKey']=_0x4e5e36;function _0xacdca7(_0x2fc7d5,_0x27e961){return _0x6f43(_0x2fc7d5- -0x178,_0x27e961);}this[_0xacdca7(0xdd,0x1ba)]={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x24edf2},this['socketAdapter']=createSocketAdapter();}[_0x2d7030(0x3fe,0x42b)](){return new Promise(async(_0x51bfce,_0x17c619)=>{function _0x2c38e3(_0x404e38,_0x8b3f08){return _0x6f43(_0x404e38- -0x268,_0x8b3f08);}if(this['socketAdapter']['connected']){_0x51bfce();return;}this[_0x2c38e3(-0x83,-0xcc)]='connecting';try{await this['socketAdapter']['connect'](this['url'],{'auth':{'apikey':this['apiKey']},'transports':[_0x2c38e3(0x7e,-0x14)],'reconnection':!![],'reconnectionDelay':this['options']['reconnectInterval'],'reconnectionAttempts':this['options'][_0x2c38e3(-0x4b,0x34)],...this[_0x2c38e3(-0x13,-0x113)][_0x2c38e3(0xbd,0x93)]}),this[_0x2c38e3(0x13c,0x61)]=this['socketAdapter'][_0x2c38e3(0x13c,0x15e)],this['socketAdapter']['on'](_0x2c38e3(-0x9f,0x49),()=>{this['connectionState']='connected',this['reconnectAttempts']=0x0;function _0x2b71bc(_0xd40a84,_0x892a0){return _0x6f43(_0xd40a84- -0x1f4,_0x892a0);}this[_0x2b71bc(0xe9,-0x8)](),_0x51bfce();}),this[_0x2c38e3(0x15,0xe2)]['on']('disconnect',()=>{function _0x4f3e9e(_0x3738c7,_0x19d5ec){return _0x6f43(_0x3738c7- -0x119,_0x19d5ec);}this[_0x4f3e9e(0xcc,-0x2c)]='disconnected',this[_0x4f3e9e(0x2c6,0x2f9)]['forEach'](channel=>{function _0x39fd9f(_0xe21359,_0xb67b90){return _0x6f43(_0xb67b90-0x35a,_0xe21359);}channel[_0x39fd9f(0x689,0x6d3)](_0x39fd9f(0x643,0x724));});}),this[_0x2c38e3(0x15,-0x24)]['on']('connect_error',_0x319ee9=>{this[_0x5e5f1d(0x424,0x3eb)]='error',this[_0x5e5f1d(0x3db,0x4da)]++;function _0x5e5f1d(_0x53cd85,_0x38ac30){return _0x6f43(_0x38ac30-0x206,_0x53cd85);}this[_0x5e5f1d(0x47f,0x4da)]>=this['maxReconnectAttempts']&&_0x17c619(new Error(_0x5e5f1d(0x562,0x5d5)+this['maxReconnectAttempts']+'\x20attempts:\x20'+_0x319ee9[_0x5e5f1d(0x5c5,0x521)]));}),this[_0x2c38e3(0x15,-0xd7)]['on'](_0x2c38e3(0xef,0x5e),()=>{this[_0x448ee7(0x29b,0x2f3)]='connected',this['reconnectAttempts']=0x0;function _0x448ee7(_0x194439,_0x1d6569){return _0x6f43(_0x194439-0xb6,_0x1d6569);}this['channels'][_0x448ee7(0x446,0x54b)](channel=>{channel['_rejoin']();});}),this[_0x2c38e3(0x15,0xa9)]['on'](_0x2c38e3(0x14f,0x1b2),_0xf2985b=>{const channel=this['channels']['get'](_0xf2985b[_0x3f7250(0x1b3,0xbc)]);function _0x3f7250(_0x20eb74,_0x567b2a){return _0x6f43(_0x567b2a- -0x1b4,_0x20eb74);}channel&&channel['_trigger']('postgres_changes',_0xf2985b);}),this['socketAdapter']['on']('broadcast',_0xcb6892=>{const channel=this['channels'][_0x14b551(0x66c,0x5b2)](_0xcb6892['topic']);function _0x14b551(_0x4e0908,_0x546d8b){return _0x6f43(_0x4e0908-0x355,_0x546d8b);}channel&&channel['_trigger'](_0x14b551(0x581,0x646),_0xcb6892);}),this[_0x2c38e3(0x15,-0xe8)]['on']('presence',_0x3ab5a5=>{const channel=this['channels'][_0x3dd406(0x39a,0x481)](_0x3ab5a5['topic']);function _0x3dd406(_0x4ee8f3,_0x43d9e5){return _0x6f43(_0x43d9e5-0x16a,_0x4ee8f3);}channel&&channel[_0x3dd406(0x5ad,0x53b)](_0x3dd406(0x5eb,0x559),_0x3ab5a5);});}catch(_0x37244f){this['connectionState']='error',_0x17c619(_0x37244f);}});}['disconnect'](){function _0x113f8b(_0x1d4c11,_0x565215){return _0x6f43(_0x1d4c11- -0x11,_0x565215);}this[_0x113f8b(0x26c,0x37f)]&&(this['socketAdapter'][_0x113f8b(0x364,0x43b)](),this[_0x113f8b(0x393,0x371)]=null),this['connectionState']=_0x113f8b(0x3db,0x4b2),this[_0x113f8b(0x3ce,0x3cc)][_0x113f8b(0x2a9,0x38f)]();}['channel'](_0x53c7d2){if(this['channels']['has'](_0x53c7d2))return this[_0x479ba5(0x6a6,0x7a3)][_0x479ba5(0x5de,0x519)](_0x53c7d2);const channel=new RealtimeChannel(_0x53c7d2,this[_0x479ba5(0x66b,0x562)]);this['channels']['set'](_0x53c7d2,channel);this[_0x479ba5(0x4ac,0x425)]===_0x479ba5(0x510,0x50b)&&channel['_join']();function _0x479ba5(_0x5c407b,_0x57d181){return _0x6f43(_0x5c407b-0x2c7,_0x57d181);}return channel;}[_0x2d7030(0x5b4,0x607)](channel){const _0x418cc5=channel[_0x310bd3(0x35,-0x87)];function _0x310bd3(_0x4a66b6,_0x4c4821){return _0x6f43(_0x4a66b6- -0x23b,_0x4c4821);}this[_0x310bd3(0x1a4,0x8d)]['has'](_0x418cc5)&&(this[_0x310bd3(0x1a4,0x115)][_0x310bd3(0xbf,0xa7)](_0x418cc5),channel[_0x310bd3(0x119,0x1b0)]());}['removeAllChannels'](){function _0x358883(_0x2bb44d,_0x456fdf){return _0x6f43(_0x2bb44d- -0x15f,_0x456fdf);}this[_0x358883(0x280,0x36a)]['forEach'](channel=>{channel['unsubscribe']();}),this['channels'][_0x358883(0x15b,0x3d)]();}['getChannels'](){function _0x4dc566(_0x11780d,_0x580250){return _0x6f43(_0x580250-0x3ab,_0x11780d);}return Array[_0x4dc566(0x64b,0x612)](this[_0x4dc566(0x782,0x78a)][_0x4dc566(0x6ad,0x675)]());}['isConnected'](){function _0x4217ca(_0x456735,_0x19cee2){return _0x6f43(_0x456735- -0x2d5,_0x19cee2);}return this['connectionState']===_0x4217ca(-0x8c,0x8e)&&this['socketAdapter'][_0x4217ca(-0x8c,0x34)];}[_0x2d7030(0x68c,0x5a4)](){return this['connectionState'];}[_0x2d7030(0x3f6,0x4fe)](_0x1ce2ba){const _0x4e839b=()=>_0x1ce2ba(this['connectionState']);this['socketAdapter']&&(this['socketAdapter']['on']('connect',()=>{function _0x2f3ac5(_0x4e5a0c,_0x3e4e73){return _0x6f43(_0x4e5a0c- -0x93,_0x3e4e73);}this[_0x2f3ac5(0x152,0x3c)]=_0x2f3ac5(0x1b6,0x27c),_0x4e839b();}),this[_0x56c493(0x25d,0x1f1)]['on']('disconnect',()=>{this[_0x48ddd6(0x47a,0x51f)]=_0x48ddd6(0x681,0x5c7);function _0x48ddd6(_0x448403,_0x4734af){return _0x6f43(_0x448403-0x295,_0x4734af);}_0x4e839b();}),this['socketAdapter']['on'](_0x56c493(0x2c6,0x2ad),()=>{this[_0x17140d(0x2cf,0x32c)]='error';function _0x17140d(_0xb7fc73,_0x2f5e61){return _0x6f43(_0x2f5e61-0x147,_0xb7fc73);}_0x4e839b();}));function _0x56c493(_0x37d6ff,_0x4c8795){return _0x6f43(_0x4c8795- -0x8c,_0x37d6ff);}return()=>{function _0x4fe04b(_0x5e3990,_0x58537e){return _0x6f43(_0x58537e- -0x3df,_0x5e3990);}this['socketAdapter']&&(this[_0x4fe04b(-0x6a,-0x162)][_0x4fe04b(-0x26b,-0x18d)](_0x4fe04b(-0x1d0,-0x216),_0x4e839b),this[_0x4fe04b(-0x15e,-0x162)][_0x4fe04b(-0x18f,-0x18d)](_0x4fe04b(-0xea,-0x6a),_0x4e839b),this[_0x4fe04b(-0x173,-0x162)][_0x4fe04b(-0x14b,-0x18d)](_0x4fe04b(-0x44,-0xa6),_0x4e839b));};}[_0x2d7030(0x610,0x53f)](){if(!this['options'][_0x29714(0x24e,0x26f)]||!this['socketAdapter'])return;function _0x29714(_0x1d9d17,_0x4f565f){return _0x6f43(_0x1d9d17-0x3a,_0x4f565f);}const interval=setInterval(()=>{function _0x31973f(_0x4c4cea,_0x4cfe38){return _0x6f43(_0x4c4cea- -0x11a,_0x4cfe38);}this['socketAdapter']?.[_0x31973f(0x12f,0x13e)]?this['socketAdapter'][_0x31973f(0x178,0x68)]('heartbeat',{'timestamp':Date['now']()}):clearInterval(interval);},this[_0x29714(0x28f,0x21a)]['heartbeatInterval']);}[_0x2d7030(0x484,0x595)](){function _0x27a3ef(_0xa662c,_0xd4cc7b){return _0x6f43(_0xd4cc7b- -0x235,_0xa662c);}return this[_0x27a3ef(0xd3,0x16f)];}}function _0x6f43(_0x36a43a,_0x3c0af0){const _0x10f846=_0x10f8();return _0x6f43=function(_0x6f43b5,_0x59f26c){_0x6f43b5=_0x6f43b5-0x1ac;let _0x5f4192=_0x10f846[_0x6f43b5];if(_0x6f43['pasYfE']===undefined){var _0x33a531=function(_0x30ff62){const _0x18ba07='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f0615='',_0x5a37a9='';for(let _0xb2809c=0x0,_0x5b4f6a,_0x14fd71,_0x1f1973=0x0;_0x14fd71=_0x30ff62['charAt'](_0x1f1973++);~_0x14fd71&&(_0x5b4f6a=_0xb2809c%0x4?_0x5b4f6a*0x40+_0x14fd71:_0x14fd71,_0xb2809c++%0x4)?_0x1f0615+=String['fromCharCode'](0xff&_0x5b4f6a>>(-0x2*_0xb2809c&0x6)):0x0){_0x14fd71=_0x18ba07['indexOf'](_0x14fd71);}for(let _0x3028f3=0x0,_0x3ad9c6=_0x1f0615['length'];_0x3028f3<_0x3ad9c6;_0x3028f3++){_0x5a37a9+='%'+('00'+_0x1f0615['charCodeAt'](_0x3028f3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a37a9);};_0x6f43['ZkAGmM']=_0x33a531,_0x36a43a=arguments,_0x6f43['pasYfE']=!![];}const _0x5c6bdd=_0x10f846[0x0],_0x4cc7de=_0x6f43b5+_0x5c6bdd,_0xc066de=_0x36a43a[_0x4cc7de];return!_0xc066de?(_0x5f4192=_0x6f43['ZkAGmM'](_0x5f4192),_0x36a43a[_0x4cc7de]=_0x5f4192):_0x5f4192=_0xc066de,_0x5f4192;},_0x6f43(_0x36a43a,_0x3c0af0);}class FunctionsClient{constructor(_0x118b31){function _0x4fe920(_0x211ab0,_0x552f2b){return _0x6f43(_0x211ab0- -0x26b,_0x552f2b);}this[_0x4fe920(0xeb,0xa4)]=_0x118b31;}async['invoke'](_0x3b807b,_0x266a14){function _0x2cf4b2(_0xb37bb,_0x47df32){return _0x6f43(_0xb37bb-0x2da,_0x47df32);}try{const _0x41695a=_0x266a14?.['method']||'POST',headers={'Content-Type':'application/json',..._0x266a14?.[_0x2cf4b2(0x544,0x4e1)]};let response;const _0x164835='/functions/v1/'+_0x3b807b;switch(_0x41695a[_0x2cf4b2(0x606,0x539)]()){case'GET':response=await this['httpClient'][_0x2cf4b2(0x5f1,0x4d2)](_0x164835,{'headers':headers,'params':_0x266a14?.[_0x2cf4b2(0x690,0x605)]});break;case'POST':response=await this[_0x2cf4b2(0x630,0x59f)][_0x2cf4b2(0x49b,0x599)](_0x164835,_0x266a14?.['body'],{'headers':headers});break;case'PUT':response=await this[_0x2cf4b2(0x630,0x680)]['put'](_0x164835,_0x266a14?.['body'],{'headers':headers});break;case'PATCH':response=await this[_0x2cf4b2(0x630,0x607)][_0x2cf4b2(0x528,0x5d8)](_0x164835,_0x266a14?.[_0x2cf4b2(0x690,0x712)],{'headers':headers});break;case'DELETE':response=await this[_0x2cf4b2(0x630,0x615)][_0x2cf4b2(0x5d4,0x574)](_0x164835,{'headers':headers,'data':_0x266a14?.[_0x2cf4b2(0x690,0x6a3)]});break;default:throw new EBaaSError(_0x2cf4b2(0x65f,0x5eb)+_0x41695a,0x190);}return{'data':response['data'],'error':null};}catch(_0xe4648c){return{'data':null,'error':_0xe4648c instanceof EBaaSError?_0xe4648c:new EBaaSError(_0xe4648c instanceof Error?_0xe4648c[_0x2cf4b2(0x5f5,0x548)]:_0x2cf4b2(0x667,0x651),0x0,_0xe4648c)};}}async[_0x2d7030(0x4f3,0x589)](){function _0x362f45(_0x1bed30,_0x1cc1cd){return _0x6f43(_0x1bed30- -0x1a1,_0x1cc1cd);}try{const response=await this[_0x362f45(0x1b5,0xac)][_0x362f45(0x176,0x144)](_0x362f45(0x26,0xf6));return{'data':response[_0x362f45(0x242,0x123)],'error':null};}catch(_0x436c37){return{'data':null,'error':_0x436c37 instanceof EBaaSError?_0x436c37:new EBaaSError(_0x436c37 instanceof Error?_0x436c37['message']:'Failed\x20to\x20list\x20functions',0x0,_0x436c37)};}}async['get'](_0x5dab23){function _0x34094c(_0x34f1ff,_0x40ee85){return _0x6f43(_0x34f1ff-0x9d,_0x40ee85);}try{const response=await this['httpClient'][_0x34094c(0x3b4,0x315)](_0x34094c(0x366,0x3ee)+_0x5dab23+'/info');return{'data':response['data'],'error':null};}catch(_0x1b16bd){return{'data':null,'error':_0x1b16bd instanceof EBaaSError?_0x1b16bd:new EBaaSError(_0x1b16bd instanceof Error?_0x1b16bd[_0x34094c(0x3b8,0x2c1)]:'Failed\x20to\x20get\x20function',0x0,_0x1b16bd)};}}async[_0x2d7030(0x540,0x592)](_0x595619,_0x1de38d){function _0x579e6d(_0xa3dfa7,_0x291618){return _0x6f43(_0xa3dfa7- -0xa6,_0x291618);}try{const _0xd9196=new FormData();if(_0x1de38d['code']instanceof File)_0xd9196[_0x579e6d(0x34f,0x2b9)]('code',_0x1de38d[_0x579e6d(0x134,0x1f2)]);else typeof _0x1de38d[_0x579e6d(0x134,0x60)]===_0x579e6d(0x23b,0x155)&&_0xd9196['append'](_0x579e6d(0x134,0x253),new Blob([_0x1de38d[_0x579e6d(0x134,0x1b)]],{'type':'text/plain'}),'index.ts');_0x1de38d[_0x579e6d(0x30f,0x2f0)]&&_0xd9196[_0x579e6d(0x34f,0x2bd)](_0x579e6d(0x30f,0x417),_0x1de38d['entrypoint']);_0x1de38d['env']&&_0xd9196['append'](_0x579e6d(0x2f7,0x247),JSON[_0x579e6d(0x304,0x2ee)](_0x1de38d[_0x579e6d(0x2f7,0x287)]));_0x1de38d[_0x579e6d(0x284,0x3a9)]&&_0xd9196['append']('importMap',JSON['stringify'](_0x1de38d['importMap']));_0x1de38d['verify']!==undefined&&_0xd9196['append'](_0x579e6d(0x299,0x1c4),String(_0x1de38d['verify']));const response=await this[_0x579e6d(0x2b0,0x373)]['post']('/functions/v1/'+_0x595619+_0x579e6d(0x1dd,0x107),_0xd9196,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response[_0x579e6d(0x33d,0x278)],'error':null};}catch(_0x1e8d4c){return{'data':null,'error':_0x1e8d4c instanceof EBaaSError?_0x1e8d4c:new EBaaSError(_0x1e8d4c instanceof Error?_0x1e8d4c['message']:'Failed\x20to\x20deploy\x20function',0x0,_0x1e8d4c)};}}async[_0x2d7030(0x58e,0x55c)](_0x2e73f2){function _0x3f9eaf(_0x296f1a,_0x35be19){return _0x6f43(_0x296f1a-0x3e3,_0x35be19);}try{const response=await this[_0x3f9eaf(0x739,0x766)]['delete'](_0x3f9eaf(0x6ac,0x72a)+_0x2e73f2);return{'data':response[_0x3f9eaf(0x7c6,0x88b)],'error':null};}catch(_0x1f2b34){return{'data':null,'error':_0x1f2b34 instanceof EBaaSError?_0x1f2b34:new EBaaSError(_0x1f2b34 instanceof Error?_0x1f2b34[_0x3f9eaf(0x6fe,0x72e)]:_0x3f9eaf(0x689,0x5d3),0x0,_0x1f2b34)};}}async[_0x2d7030(0x488,0x598)](_0x2b0806,_0x4c2a02){function _0x324d2c(_0xb513de,_0x270e35){return _0x6f43(_0x270e35-0x3db,_0xb513de);}try{const response=await this['httpClient'][_0x324d2c(0x504,0x5e9)]('/functions/v1/'+_0x2b0806+'/env',{'env':_0x4c2a02});return{'data':response['data'],'error':null};}catch(_0x1a142d){return{'data':null,'error':_0x1a142d instanceof EBaaSError?_0x1a142d:new EBaaSError(_0x1a142d instanceof Error?_0x1a142d['message']:_0x324d2c(0x72e,0x6ae),0x0,_0x1a142d)};}}async[_0x2d7030(0x55f,0x4c3)](_0x59956d,_0x8b89ca){function _0x2ba8c8(_0x21c0ff,_0x145c0a){return _0x6f43(_0x145c0a- -0x4d,_0x21c0ff);}try{const _0x5eb1f1=new URLSearchParams();_0x8b89ca?.[_0x2ba8c8(0x1ca,0x237)]&&_0x5eb1f1['append'](_0x2ba8c8(0x320,0x237),String(_0x8b89ca[_0x2ba8c8(0x140,0x237)]));_0x8b89ca?.[_0x2ba8c8(0x488,0x36e)]&&_0x5eb1f1[_0x2ba8c8(0x4aa,0x3a8)]('offset',String(_0x8b89ca[_0x2ba8c8(0x417,0x36e)]));_0x8b89ca?.['level']&&_0x5eb1f1['append']('level',_0x8b89ca['level']);const _0x51f723=_0x2ba8c8(0x22f,0x27c)+_0x59956d+'/logs'+(_0x5eb1f1[_0x2ba8c8(0x398,0x308)]()?'?'+_0x5eb1f1[_0x2ba8c8(0x2fe,0x308)]():''),response=await this[_0x2ba8c8(0x3ba,0x309)]['get'](_0x51f723);return{'data':response[_0x2ba8c8(0x489,0x396)],'error':null};}catch(_0x5adcbd){return{'data':null,'error':_0x5adcbd instanceof EBaaSError?_0x5adcbd:new EBaaSError(_0x5adcbd instanceof Error?_0x5adcbd['message']:_0x2ba8c8(0x265,0x2f9),0x0,_0x5adcbd)};}}async[_0x2d7030(0x420,0x518)](_0x1e4d81,_0x12dd75){function _0x577002(_0x29a496,_0xa83051){return _0x6f43(_0xa83051- -0xe,_0x29a496);}try{const _0x3a7e1f=new URLSearchParams();_0x12dd75?.['period']&&_0x3a7e1f[_0x577002(0x3ce,0x3e7)](_0x577002(0x244,0x1be),_0x12dd75['period']);const _0x35f034=_0x577002(0x370,0x2bb)+_0x1e4d81+'/metrics'+(_0x3a7e1f['toString']()?'?'+_0x3a7e1f['toString']():''),response=await this['httpClient'][_0x577002(0x1fc,0x309)](_0x35f034);return{'data':response[_0x577002(0x2b7,0x3d5)],'error':null};}catch(_0x2f3b59){return{'data':null,'error':_0x2f3b59 instanceof EBaaSError?_0x2f3b59:new EBaaSError(_0x2f3b59 instanceof Error?_0x2f3b59['message']:'Failed\x20to\x20get\x20function\x20metrics',0x0,_0x2f3b59)};}}}class EBaaSClient{constructor(_0x58e885,_0x2cafb1,_0x63cf80){this[_0x5d159a(-0xd4,0x28)]=_0x63cf80,this[_0x5d159a(0x2f,0x129)]=new HttpClient({'url':_0x58e885,'apiKey':_0x2cafb1,'timeout':0x7530,'headers':_0x63cf80?.['global']?.['headers']}),this[_0x5d159a(0x121,0xb8)]=new AuthClient(this[_0x5d159a(0xf1,0x129)],_0x63cf80?.[_0x5d159a(0x200,0x10d)]?.['workspaceId']),this['database']=new DatabaseClient(this['httpClient'],_0x63cf80?.['database']?.[_0x5d159a(0x1b,-0x52)]);function _0x5d159a(_0x197001,_0x142574){return _0x6f43(_0x142574- -0x22d,_0x197001);}this['storage']=new StorageClient(this[_0x5d159a(0xc2,0x129)]),this['realtime']=new RealtimeClient(_0x58e885,_0x2cafb1,_0x63cf80?.['realtime']),this[_0x5d159a(-0xf6,-0x80)]=new FunctionsClient(this[_0x5d159a(0xbc,0x129)]),this['initializeCustomDatabase']();}[_0x2d7030(0x531,0x4c9)](_0x50aa09){function _0x76c935(_0x43366b,_0x2244fc){return _0x6f43(_0x2244fc- -0x2a9,_0x43366b);}return this[_0x76c935(0x87,0x91)]['from'](_0x50aa09);}['rpc'](_0x4b91ab,_0xe92a41){function _0x20c937(_0x1ddaf8,_0x1e810d){return _0x6f43(_0x1ddaf8- -0x90,_0x1e810d);}return this['database'][_0x20c937(0x1bd,0x12f)](_0x4b91ab,_0xe92a41);}['bucket'](_0x91aec1){function _0x3c0f23(_0x32a875,_0x19b6dc){return _0x6f43(_0x32a875-0x9e,_0x19b6dc);}return this[_0x3c0f23(0x255,0x375)][_0x3c0f23(0x305,0x429)](_0x91aec1);}['channel'](_0x1ab91a){function _0x22a5ce(_0x5427e2,_0x4d42d8){return _0x6f43(_0x4d42d8-0x165,_0x5427e2);}return this[_0x22a5ce(0x1f5,0x314)]['channel'](_0x1ab91a);}[_0x2d7030(0x4dc,0x5e9)](_0x5da5d2,_0x49a096){function _0x266af1(_0x154881,_0x370d2c){return _0x6f43(_0x370d2c- -0x31e,_0x154881);}return this['functions'][_0x266af1(0x11c,0x69)](_0x5da5d2,_0x49a096);}async['initializeCustomDatabase'](){function _0x40081b(_0x5a29f0,_0x50cae1){return _0x6f43(_0x50cae1-0x39b,_0x5a29f0);}if(this[_0x40081b(0x5b1,0x5f0)]?.['database']?.[_0x40081b(0x6da,0x78d)])try{await this[_0x40081b(0x605,0x6d5)]['initialize']();}catch(_0x1dfa78){console['warn']('Failed to initialize custom database detection:',_0x1dfa78);}}async[_0x2d7030(0x738,0x61e)](_0x3c7160){this['auth'][_0x272ffa(0x310,0x278)](_0x3c7160);function _0x272ffa(_0x1de0c4,_0x53d857){return _0x6f43(_0x1de0c4- -0xac,_0x53d857);}this['database'][_0x272ffa(0x310,0x27f)](_0x3c7160),this['options']?.[_0x272ffa(0x28e,0x2ad)]?.[_0x272ffa(0x346,0x314)]&&await this['database']['initialize']();}async['configureCustomDatabase'](_0x4b84b4){await this['database']['configureCustomDatabase'](_0x4b84b4);}['getCustomDatabaseStatus'](){function _0x3bd98e(_0x1dbf95,_0x14009a){return _0x6f43(_0x14009a-0x351,_0x1dbf95);}return this[_0x3bd98e(0x616,0x68b)][_0x3bd98e(0x7b1,0x745)]();}}function createClient(_0x44210e,_0x487314,_0x50889f){return new EBaaSClient(_0x44210e,_0x487314,_0x50889f);}const version=_0x2d7030(0x572,0x4e3),PACKET_TYPES=Object[_0x2d7030(0x661,0x604)](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES[_0x2d7030(0x5c7,0x640)]='2',PACKET_TYPES['pong']='3',PACKET_TYPES[_0x2d7030(0x561,0x57d)]='4',PACKET_TYPES[_0x2d7030(0x450,0x4f5)]='5',PACKET_TYPES[_0x2d7030(0x566,0x5bb)]='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object[_0x2d7030(0x5f8,0x515)](PACKET_TYPES)['forEach'](_0x3880f6=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x3880f6]]=_0x3880f6;});const ERROR_PACKET={'type':'error','data':_0x2d7030(0x428,0x455)},withNativeBlob$1=typeof Blob==='function'||typeof Blob!=='undefined'&&Object[_0x2d7030(0x673,0x567)][_0x2d7030(0x5a2,0x5b7)][_0x2d7030(0x526,0x500)](Blob)==='[object\x20BlobConstructor]',withNativeArrayBuffer$2=typeof ArrayBuffer===_0x2d7030(0x637,0x5cb),isView$1=_0xdbf855=>{function _0x3cf589(_0x492c57,_0x295083){return _0x6f43(_0x295083- -0x37f,_0x492c57);}return typeof ArrayBuffer[_0x3cf589(-0x188,-0xdd)]===_0x3cf589(-0x104,-0x16)?ArrayBuffer[_0x3cf589(-0xef,-0xdd)](_0xdbf855):_0xdbf855&&_0xdbf855['buffer']instanceof ArrayBuffer;},encodePacket=({type:_0x2a1152,data:data},supportsBinary,_0x3f6ac6)=>{if(withNativeBlob$1&&data instanceof Blob)return supportsBinary?_0x3f6ac6(data):encodeBlobAsBase64(data,_0x3f6ac6);else{if(withNativeArrayBuffer$2&&(data instanceof ArrayBuffer||isView$1(data)))return supportsBinary?_0x3f6ac6(data):encodeBlobAsBase64(new Blob([data]),_0x3f6ac6);}return _0x3f6ac6(PACKET_TYPES[_0x2a1152]+(data||''));},encodeBlobAsBase64=(data,_0x126e47)=>{const _0x1ee320=new FileReader();return _0x1ee320['onload']=function(){function _0x5b1e51(_0x40225e,_0x59c4a4){return _0x6f43(_0x59c4a4-0x1e9,_0x40225e);}const _0x49e5d4=_0x1ee320['result'][_0x5b1e51(0x63c,0x533)](',')[0x1];_0x126e47('b'+(_0x49e5d4||''));},_0x1ee320['readAsDataURL'](data);};function toArray(data){function _0x1cf041(_0x3940f3,_0xd08e8b){return _0x6f43(_0xd08e8b-0x309,_0x3940f3);}if(data instanceof Uint8Array)return data;else return data instanceof ArrayBuffer?new Uint8Array(data):new Uint8Array(data[_0x1cf041(0x5ae,0x500)],data['byteOffset'],data['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x29ee8b,_0x22c399){if(withNativeBlob$1&&_0x29ee8b['data']instanceof Blob)return _0x29ee8b[_0x152cfc(0x3aa,0x36b)][_0x152cfc(0x17f,0x1e7)]()[_0x152cfc(0x378,0x30b)](toArray)[_0x152cfc(0x378,0x467)](_0x22c399);else{if(withNativeArrayBuffer$2&&(_0x29ee8b['data']instanceof ArrayBuffer||isView$1(_0x29ee8b[_0x152cfc(0x3aa,0x2e3)])))return _0x22c399(toArray(_0x29ee8b['data']));}function _0x152cfc(_0x15cdd4,_0x5bb73a){return _0x6f43(_0x15cdd4- -0x39,_0x5bb73a);}encodePacket(_0x29ee8b,![],_0x2c6f5d=>{!TEXT_ENCODER&&(TEXT_ENCODER=new TextEncoder());function _0x555b8b(_0x56c77c,_0x5b6a08){return _0x6f43(_0x5b6a08- -0x2e,_0x56c77c);}_0x22c399(TEXT_ENCODER[_0x555b8b(0x1c9,0x25a)](_0x2c6f5d));});}const chars=_0x2d7030(0x55c,0x4b2),lookup$1=typeof Uint8Array==='undefined'?[]:new Uint8Array(0x100);for(let i=0x0;i<chars['length'];i++){lookup$1[chars['charCodeAt'](i)]=i;}const decode$1=_0x5529ef=>{function _0x851b91(_0x351763,_0x40c6d8){return _0x6f43(_0x351763-0x22c,_0x40c6d8);}let bufferLength=_0x5529ef[_0x851b91(0x471,0x498)]*0.75,_0x1accc4=_0x5529ef['length'],_0x317c0f,_0x59c0ad=0x0,_0x2ee8ef,_0x30ddd7,_0x2e2723,_0x5e2e9e;_0x5529ef[_0x5529ef['length']-0x1]==='='&&(bufferLength--,_0x5529ef[_0x5529ef['length']-0x2]==='='&&bufferLength--);const _0x4c5657=new ArrayBuffer(bufferLength),_0x9ba59c=new Uint8Array(_0x4c5657);for(_0x317c0f=0x0;_0x317c0f<_0x1accc4;_0x317c0f+=0x4){_0x2ee8ef=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x3d0)](_0x317c0f)],_0x30ddd7=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x48a)](_0x317c0f+0x1)],_0x2e2723=lookup$1[_0x5529ef[_0x851b91(0x3dd,0x483)](_0x317c0f+0x2)],_0x5e2e9e=lookup$1[_0x5529ef['charCodeAt'](_0x317c0f+0x3)],_0x9ba59c[_0x59c0ad++]=_0x2ee8ef<<0x2|_0x30ddd7>>0x4,_0x9ba59c[_0x59c0ad++]=(_0x30ddd7&0xf)<<0x4|_0x2e2723>>0x2,_0x9ba59c[_0x59c0ad++]=(_0x2e2723&0x3)<<0x6|_0x5e2e9e&0x3f;}return _0x4c5657;},withNativeArrayBuffer$1=typeof ArrayBuffer==='function',decodePacket=(_0x57b1ba,binaryType)=>{if(typeof _0x57b1ba!==_0x304a2b(0x17f,0x1f3))return{'type':'message','data':mapBinary(_0x57b1ba,binaryType)};function _0x304a2b(_0x1380e7,_0x11ee42){return _0x6f43(_0x11ee42- -0xee,_0x1380e7);}const _0x220426=_0x57b1ba[_0x304a2b(0x39b,0x2ef)](0x0);if(_0x220426==='b')return{'type':_0x304a2b(0x160,0x22d),'data':decodeBase64Packet(_0x57b1ba['substring'](0x1),binaryType)};const _0x4a6eb0=PACKET_TYPES_REVERSE[_0x220426];if(!_0x4a6eb0)return ERROR_PACKET;return _0x57b1ba[_0x304a2b(0x104,0x157)]>0x1?{'type':PACKET_TYPES_REVERSE[_0x220426],'data':_0x57b1ba['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x220426]};},decodeBase64Packet=(data,binaryType)=>{if(withNativeArrayBuffer$1){const _0x425990=decode$1(data);return mapBinary(_0x425990,binaryType);}else return{'base64':!![],'data':data};},mapBinary=(data,binaryType)=>{function _0x4a7f82(_0x3fa72b,_0x5e5d34){return _0x6f43(_0x3fa72b-0x4b,_0x5e5d34);}switch(binaryType){case'blob':return data instanceof Blob?data:new Blob([data]);case _0x4a7f82(0x317,0x3c6):default:return data instanceof ArrayBuffer?data:data['buffer'];}},SEPARATOR=String['fromCharCode'](0x1e),encodePayload=(_0x3e9121,_0x31d96f)=>{function _0x26ecfe(_0xeb943b,_0x20e14c){return _0x6f43(_0x20e14c- -0x24e,_0xeb943b);}const length=_0x3e9121['length'],_0x8aec60=new Array(length);let count=0x0;_0x3e9121[_0x26ecfe(0x72,0x142)]((_0x6b31f9,_0x25360f)=>{encodePacket(_0x6b31f9,![],_0x33f561=>{function _0x35b55b(_0x407988,_0x381883){return _0x6f43(_0x407988- -0x8d,_0x381883);}_0x8aec60[_0x25360f]=_0x33f561,++count===length&&_0x31d96f(_0x8aec60[_0x35b55b(0x155,0x1e7)](SEPARATOR));});});},decodePayload=(_0x3b4894,binaryType)=>{const _0x4d20aa=_0x3b4894[_0x545915(-0x124,-0x2f)](SEPARATOR),_0x1ce153=[];function _0x545915(_0x349b45,_0x3ebbc7){return _0x6f43(_0x3ebbc7- -0x379,_0x349b45);}for(let _0x1cfeb8=0x0;_0x1cfeb8<_0x4d20aa[_0x545915(-0xb4,-0x134)];_0x1cfeb8++){const _0x153ea0=decodePacket(_0x4d20aa[_0x1cfeb8],binaryType);_0x1ce153['push'](_0x153ea0);if(_0x153ea0[_0x545915(-0xa6,0x5e)]===_0x545915(-0xac,-0xc8))break;}return _0x1ce153;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x5be898,_0x5c78c7){encodePacketToBinary(_0x5be898,_0x2eb5b4=>{const payloadLength=_0x2eb5b4[_0x2339e9(0x51c,0x44e)];let _0x430e83;if(payloadLength<0x7e)_0x430e83=new Uint8Array(0x1),new DataView(_0x430e83[_0x2339e9(0x392,0x400)])[_0x2339e9(0x412,0x4c4)](0x0,payloadLength);else{if(payloadLength<0x10000){_0x430e83=new Uint8Array(0x3);const _0x53663e=new DataView(_0x430e83[_0x2339e9(0x449,0x400)]);_0x53663e['setUint8'](0x0,0x7e),_0x53663e['setUint16'](0x1,payloadLength);}else{_0x430e83=new Uint8Array(0x9);const _0x22ea42=new DataView(_0x430e83[_0x2339e9(0x3dd,0x400)]);_0x22ea42[_0x2339e9(0x44d,0x4c4)](0x0,0x7f),_0x22ea42['setBigUint64'](0x1,BigInt(payloadLength));}}_0x5be898[_0x2339e9(0x52e,0x5ec)]&&typeof _0x5be898['data']!==_0x2339e9(0x51c,0x4ea)&&(_0x430e83[0x0]|=0x80);_0x5c78c7[_0x2339e9(0x67b,0x5f4)](_0x430e83);function _0x2339e9(_0x1daa68,_0x3fc056){return _0x6f43(_0x3fc056-0x209,_0x1daa68);}_0x5c78c7['enqueue'](_0x2eb5b4);});}});}let TEXT_DECODER;function totalLength(_0x20533d){function _0x3a8acd(_0x2cee95,_0x511a68){return _0x6f43(_0x2cee95-0x61,_0x511a68);}return _0x20533d[_0x3a8acd(0x437,0x54c)]((_0x27e728,_0x451d3c)=>_0x27e728+_0x451d3c['length'],0x0);}function concatChunks(_0x233b3d,_0x1c5997){if(_0x233b3d[0x0][_0x12a494(0x2d9,0x1f5)]===_0x1c5997)return _0x233b3d[_0x12a494(0x244,0x1b2)]();const _0x25938c=new Uint8Array(_0x1c5997);let _0x3cbfdb=0x0;for(let _0x4b027c=0x0;_0x4b027c<_0x1c5997;_0x4b027c++){_0x25938c[_0x4b027c]=_0x233b3d[0x0][_0x3cbfdb++],_0x3cbfdb===_0x233b3d[0x0][_0x12a494(0x2d9,0x1f3)]&&(_0x233b3d[_0x12a494(0x244,0x228)](),_0x3cbfdb=0x0);}_0x233b3d[_0x12a494(0x2d9,0x2b6)]&&_0x3cbfdb<_0x233b3d[0x0][_0x12a494(0x2d9,0x394)]&&(_0x233b3d[0x0]=_0x233b3d[0x0][_0x12a494(0x2de,0x293)](_0x3cbfdb));function _0x12a494(_0x5dc8a6,_0x478565){return _0x6f43(_0x5dc8a6-0x94,_0x478565);}return _0x25938c;}function createPacketDecoderStream(_0x96cf80,binaryType){!TEXT_DECODER&&(TEXT_DECODER=new TextDecoder());const _0x1c11ad=[];let _0x10e6d4=0x0,expectedLength=-0x1,isBinary=![];return new TransformStream({'transform'(_0x1a91e5,_0x2164db){function _0x2b751c(_0x2a7900,_0x57a55e){return _0x6f43(_0x57a55e- -0x27f,_0x2a7900);}_0x1c11ad[_0x2b751c(-0xa4,-0x80)](_0x1a91e5);while(!![]){if(_0x10e6d4===0x0){if(totalLength(_0x1c11ad)<0x1)break;const _0xd50249=concatChunks(_0x1c11ad,0x1);isBinary=(_0xd50249[0x0]&0x80)===0x80,expectedLength=_0xd50249[0x0]&0x7f;if(expectedLength<0x7e)_0x10e6d4=0x3;else expectedLength===0x7e?_0x10e6d4=0x1:_0x10e6d4=0x2;}else{if(_0x10e6d4===0x1){if(totalLength(_0x1c11ad)<0x2)break;const _0x1e1539=concatChunks(_0x1c11ad,0x2);expectedLength=new DataView(_0x1e1539[_0x2b751c(-0x16d,-0x88)],_0x1e1539['byteOffset'],_0x1e1539['length'])[_0x2b751c(0x193,0x171)](0x0),_0x10e6d4=0x3;}else{if(_0x10e6d4===0x2){if(totalLength(_0x1c11ad)<0x8)break;const _0x3e030e=concatChunks(_0x1c11ad,0x8),_0x1edb4d=new DataView(_0x3e030e[_0x2b751c(-0x9a,-0x88)],_0x3e030e['byteOffset'],_0x3e030e[_0x2b751c(0x9b,-0x3a)]),_0x2bedd2=_0x1edb4d[_0x2b751c(-0xe1,0x44)](0x0);if(_0x2bedd2>Math['pow'](0x2,0x35-0x20)-0x1){_0x2164db[_0x2b751c(0x7a,0x16c)](ERROR_PACKET);break;}expectedLength=_0x2bedd2*Math[_0x2b751c(0x12b,0xb)](0x2,0x20)+_0x1edb4d['getUint32'](0x4),_0x10e6d4=0x3;}else{if(totalLength(_0x1c11ad)<expectedLength)break;const data=concatChunks(_0x1c11ad,expectedLength);_0x2164db[_0x2b751c(0x9d,0x16c)](decodePacket(isBinary?data:TEXT_DECODER['decode'](data),binaryType)),_0x10e6d4=0x0;}}}if(expectedLength===0x0||expectedLength>_0x96cf80){_0x2164db['enqueue'](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x3acd1d){if(_0x3acd1d)return mixin(_0x3acd1d);}function mixin(_0x40e43c){function _0x3bde24(_0x143361,_0x430421){return _0x6f43(_0x143361-0x2f1,_0x430421);}for(var _0x34e20e in Emitter['prototype']){_0x40e43c[_0x34e20e]=Emitter[_0x3bde24(0x5f6,0x618)][_0x34e20e];}return _0x40e43c;}Emitter[_0x2d7030(0x4f6,0x567)]['on']=Emitter['prototype'][_0x2d7030(0x3f7,0x4c6)]=function(_0x397242,_0x4c9815){this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x397242]=this[_0x57da4(-0x98,-0x10e)]['$'+_0x397242]||[])[_0x57da4(-0x18c,-0x14a)](_0x4c9815);function _0x57da4(_0x3123cc,_0x8d140e){return _0x6f43(_0x3123cc- -0x38b,_0x8d140e);}return this;},Emitter['prototype'][_0x2d7030(0x699,0x59d)]=function(_0x2a9416,_0x7bbb55){function _0x56f6ae(){this['off'](_0x2a9416,_0x56f6ae);function _0x490352(_0x34bb70,_0x45f6e4){return _0x6f43(_0x45f6e4- -0x166,_0x34bb70);}_0x7bbb55[_0x490352(0xf9,0x19b)](this,arguments);}return _0x56f6ae['fn']=_0x7bbb55,this['on'](_0x2a9416,_0x56f6ae),this;},Emitter[_0x2d7030(0x637,0x567)][_0x2d7030(0x3e2,0x4b4)]=Emitter['prototype'][_0x2d7030(0x4e5,0x605)]=Emitter[_0x2d7030(0x5b6,0x567)][_0x2d7030(0x55e,0x46b)]=Emitter['prototype']['removeEventListener']=function(_0x434dbe,_0xa5a4f5){function _0x5283a8(_0x349ec6,_0x283c52){return _0x6f43(_0x349ec6-0x1d8,_0x283c52);}this['_callbacks']=this[_0x5283a8(0x4cb,0x466)]||{};if(0x0==arguments['length'])return this[_0x5283a8(0x4cb,0x419)]={},this;var _0x5360f5=this[_0x5283a8(0x4cb,0x58e)]['$'+_0x434dbe];if(!_0x5360f5)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x434dbe],this;var _0x46f3bd;for(var _0x14e277=0x0;_0x14e277<_0x5360f5[_0x5283a8(0x41d,0x33a)];_0x14e277++){_0x46f3bd=_0x5360f5[_0x14e277];if(_0x46f3bd===_0xa5a4f5||_0x46f3bd['fn']===_0xa5a4f5){_0x5360f5['splice'](_0x14e277,0x1);break;}}return _0x5360f5[_0x5283a8(0x41d,0x324)]===0x0&&delete this[_0x5283a8(0x4cb,0x5df)]['$'+_0x434dbe],this;},Emitter[_0x2d7030(0x506,0x567)][_0x2d7030(0x4b9,0x4f4)]=function(_0x2677a4){this['_callbacks']=this['_callbacks']||{};function _0x50a8e1(_0x4a220c,_0x56022e){return _0x6f43(_0x4a220c- -0x57,_0x56022e);}var _0x25d0bd=new Array(arguments['length']-0x1),_0x216e89=this['_callbacks']['$'+_0x2677a4];for(var _0x58c5f1=0x1;_0x58c5f1<arguments[_0x50a8e1(0x1ee,0x17d)];_0x58c5f1++){_0x25d0bd[_0x58c5f1-0x1]=arguments[_0x58c5f1];}if(_0x216e89){_0x216e89=_0x216e89['slice'](0x0);for(var _0x58c5f1=0x0,_0xf96edf=_0x216e89['length'];_0x58c5f1<_0xf96edf;++_0x58c5f1){_0x216e89[_0x58c5f1][_0x50a8e1(0x2aa,0x319)](this,_0x25d0bd);}}return this;},Emitter['prototype'][_0x2d7030(0x5e7,0x4db)]=Emitter['prototype']['emit'],Emitter['prototype'][_0x2d7030(0x4ef,0x583)]=function(_0x587b7a){function _0x10c8c6(_0x126d9b,_0x3c3bde){return _0x6f43(_0x126d9b-0x91,_0x3c3bde);}return this['_callbacks']=this['_callbacks']||{},this[_0x10c8c6(0x384,0x2ed)]['$'+_0x587b7a]||[];},Emitter[_0x2d7030(0x484,0x567)][_0x2d7030(0x5e8,0x506)]=function(_0x2428f0){function _0x58f214(_0x6ddabb,_0x22c0ea){return _0x6f43(_0x6ddabb- -0x35d,_0x22c0ea);}return!!this[_0x58f214(-0x3c,-0x54)](_0x2428f0)[_0x58f214(-0x118,-0x1f1)];};const nextTick=((()=>{const isPromiseAvailable=typeof Promise===_0x5b7c83(0x699,0x655)&&typeof Promise['resolve']==='function';function _0x5b7c83(_0x2ffaf9,_0x3c2ba2){return _0x6f43(_0x2ffaf9-0x330,_0x3c2ba2);}return isPromiseAvailable?_0x172eca=>Promise['resolve']()['then'](_0x172eca):(_0x545973,_0x466401)=>_0x466401(_0x545973,0x0);})()),globalThisShim=((()=>{function _0x230b82(_0x493148,_0x44e75a){return _0x6f43(_0x493148- -0x35a,_0x44e75a);}if(typeof self!==_0x230b82(-0x124,-0x20e))return self;else return typeof window!==_0x230b82(-0x124,-0x206)?window:Function(_0x230b82(-0xe5,-0x17))();})()),defaultBinaryType='arraybuffer';function createCookieJar(){}function pick(_0xcda5f4,..._0x44cdbe){function _0x297918(_0x4ce170,_0x63894){return _0x6f43(_0x63894-0x3e8,_0x4ce170);}return _0x44cdbe[_0x297918(0x6d0,0x7be)]((_0x31e963,_0x5a1cb9)=>{return _0xcda5f4['hasOwnProperty'](_0x5a1cb9)&&(_0x31e963[_0x5a1cb9]=_0xcda5f4[_0x5a1cb9]),_0x31e963;},{});}const NATIVE_SET_TIMEOUT=globalThisShim[_0x2d7030(0x61d,0x50a)],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x387a20,_0xd95c3a){function _0x33ee4c(_0x4e2b32,_0x53b72e){return _0x6f43(_0x53b72e-0x45,_0x4e2b32);}_0xd95c3a['useNativeTimers']?(_0x387a20['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x387a20['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x387a20['setTimeoutFn']=globalThisShim[_0x33ee4c(0x3c4,0x2ed)]['bind'](globalThisShim),_0x387a20['clearTimeoutFn']=globalThisShim[_0x33ee4c(0x375,0x32d)]['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x518c67){if(typeof _0x518c67===_0x21d910(0x537,0x413))return utf8Length(_0x518c67);function _0x21d910(_0x685834,_0x399899){return _0x6f43(_0x399899-0x132,_0x685834);}return Math['ceil']((_0x518c67[_0x21d910(0x361,0x31f)]||_0x518c67[_0x21d910(0x37d,0x306)])*BASE64_OVERHEAD);}function utf8Length(_0x52cdfe){let _0x1cccb4=0x0,length=0x0;function _0xb96acc(_0x40e449,_0x425bee){return _0x6f43(_0x40e449-0x87,_0x425bee);}for(let _0x1a05d9=0x0,_0x5122cc=_0x52cdfe[_0xb96acc(0x2cc,0x1b4)];_0x1a05d9<_0x5122cc;_0x1a05d9++){_0x1cccb4=_0x52cdfe['charCodeAt'](_0x1a05d9);if(_0x1cccb4<0x80)length+=0x1;else{if(_0x1cccb4<0x800)length+=0x2;else _0x1cccb4<0xd800||_0x1cccb4>=0xe000?length+=0x3:(_0x1a05d9++,length+=0x4);}}return length;}function randomString(){function _0x10487a(_0x36cbef,_0x3ecd28){return _0x6f43(_0x3ecd28-0x3d9,_0x36cbef);}return Date[_0x10487a(0x7c0,0x79d)]()['toString'](0x24)[_0x10487a(0x6b4,0x594)](0x3)+Math[_0x10487a(0x6bc,0x66d)]()[_0x10487a(0x71c,0x72e)](0x24)['substring'](0x2,0x5);}function encode(_0x1b8b4e){let _0x5d8342='';for(let _0x1de2c0 in _0x1b8b4e){if(_0x1b8b4e['hasOwnProperty'](_0x1de2c0)){if(_0x5d8342[_0x9d35c4(0x570,0x570)])_0x5d8342+='&';_0x5d8342+=encodeURIComponent(_0x1de2c0)+'='+encodeURIComponent(_0x1b8b4e[_0x1de2c0]);}}function _0x9d35c4(_0x417494,_0x283647){return _0x6f43(_0x417494-0x32b,_0x283647);}return _0x5d8342;}function decode(_0x68d5be){let _0x335e80={},_0x284551=_0x68d5be[_0x30f6e2(0x4e7,0x4aa)]('&');for(let _0x210600=0x0,_0x127f21=_0x284551['length'];_0x210600<_0x127f21;_0x210600++){let _0x1a1ea0=_0x284551[_0x210600][_0x30f6e2(0x4e7,0x447)]('=');_0x335e80[decodeURIComponent(_0x1a1ea0[0x0])]=decodeURIComponent(_0x1a1ea0[0x1]);}function _0x30f6e2(_0x3de236,_0x131a48){return _0x6f43(_0x3de236-0x19d,_0x131a48);}return _0x335e80;}class TransportError extends Error{constructor(_0x5bdacb,_0x1fc05f,_0x917d74){super(_0x5bdacb),this[_0x364635(0x3c3,0x4b5)]=_0x1fc05f,this['context']=_0x917d74;function _0x364635(_0x310896,_0x24cda8){return _0x6f43(_0x24cda8-0x1f1,_0x310896);}this[_0x364635(0x4d6,0x5c8)]=_0x364635(0x5da,0x4f1);}}class Transport extends Emitter{constructor(_0x2b0a20){super(),this[_0x3c7cd4(0x297,0x303)]=![];function _0x3c7cd4(_0x53fd3e,_0x3b54c7){return _0x6f43(_0x3b54c7-0xfc,_0x53fd3e);}installTimerFunctions(this,_0x2b0a20),this['opts']=_0x2b0a20,this[_0x3c7cd4(0x315,0x2d8)]=_0x2b0a20[_0x3c7cd4(0x2a2,0x2d8)],this[_0x3c7cd4(0x583,0x4a0)]=_0x2b0a20[_0x3c7cd4(0x427,0x4a0)],this['supportsBinary']=!_0x2b0a20['forceBase64'];}['onError'](_0x25159f,_0x598508,_0x10c9bc){function _0x25eda8(_0x48f499,_0x38efcd){return _0x6f43(_0x48f499-0x1c4,_0x38efcd);}return super[_0x25eda8(0x43d,0x46c)](_0x25eda8(0x475,0x47c),new TransportError(_0x25159f,_0x598508,_0x10c9bc)),this;}[_0x2d7030(0x597,0x529)](){this[_0x2f61ba(-0xda,-0x1d2)]='opening';function _0x2f61ba(_0x4956ce,_0x660bb){return _0x6f43(_0x4956ce- -0x293,_0x660bb);}return this['doOpen'](),this;}[_0x2d7030(0x58d,0x4b8)](){function _0x14b942(_0x5d1370,_0x2cfbe2){return _0x6f43(_0x2cfbe2-0x1de,_0x5d1370);}return(this['readyState']===_0x14b942(0x3ef,0x4d3)||this[_0x14b942(0x437,0x397)]==='open')&&(this['doClose'](),this[_0x14b942(0x27a,0x391)]()),this;}[_0x2d7030(0x4ec,0x483)](_0x23cac7){function _0x39abc7(_0x976133,_0x311a37){return _0x6f43(_0x976133- -0x16f,_0x311a37);}this[_0x39abc7(0x4a,0xb0)]==='open'&&this[_0x39abc7(0x12b,0x7c)](_0x23cac7);}['onOpen'](){function _0x51f18c(_0x412052,_0x49c2ae){return _0x6f43(_0x49c2ae-0x2fb,_0x412052);}this['readyState']='open',this[_0x51f18c(0x540,0x502)]=!![],super['emitReserved']('open');}['onData'](data){function _0x26ad1e(_0x35917e,_0x5154b4){return _0x6f43(_0x35917e-0x2bb,_0x5154b4);}const _0x54a9a8=decodePacket(data,this[_0x26ad1e(0x65f,0x69a)][_0x26ad1e(0x4ad,0x3b9)]);this['onPacket'](_0x54a9a8);}[_0x2d7030(0x596,0x4fa)](_0x277ffd){function _0x1879e9(_0x5ee8ed,_0x4d38c5){return _0x6f43(_0x4d38c5-0x221,_0x5ee8ed);}super[_0x1879e9(0x4f4,0x49a)]('packet',_0x277ffd);}[_0x2d7030(0x318,0x415)](_0x1f74bc){function _0x54b45d(_0x2fddd3,_0x10396e){return _0x6f43(_0x2fddd3-0x1b0,_0x10396e);}this[_0x54b45d(0x369,0x2fe)]=_0x54b45d(0x57a,0x48b),super['emitReserved'](_0x54b45d(0x406,0x416),_0x1f74bc);}[_0x2d7030(0x452,0x47e)](_0x34f84f){}['createUri'](_0x16e6d1,_0x4e8bd0={}){function _0x12c622(_0x2a2ed2,_0x3172a2){return _0x6f43(_0x3172a2-0x3c2,_0x2a2ed2);}return _0x16e6d1+'://'+this[_0x12c622(0x642,0x687)]()+this[_0x12c622(0x66d,0x73e)]()+this['opts']['path']+this['_query'](_0x4e8bd0);}[_0x2d7030(0x5e1,0x527)](){const _0x1c5c59=this['opts'][_0x577d9e(-0x1bb,-0xb9)];function _0x577d9e(_0x55ee62,_0x26625c){return _0x6f43(_0x26625c- -0x2ba,_0x55ee62);}return _0x1c5c59[_0x577d9e(0x223,0x126)](':')===-0x1?_0x1c5c59:'['+_0x1c5c59+']';}['_port'](){function _0x5aa6fc(_0x5bd39e,_0x34dd75){return _0x6f43(_0x34dd75-0x208,_0x5bd39e);}return this[_0x5aa6fc(0x495,0x440)][_0x5aa6fc(0x546,0x5bc)]&&(this[_0x5aa6fc(0x426,0x440)][_0x5aa6fc(0x4b9,0x3ba)]&&Number(this[_0x5aa6fc(0x4bd,0x440)]['port']!==0x1bb)||!this[_0x5aa6fc(0x365,0x440)]['secure']&&Number(this[_0x5aa6fc(0x369,0x440)]['port'])!==0x50)?':'+this[_0x5aa6fc(0x392,0x440)]['port']:'';}['_query'](_0x1efe4b){const _0x5e1ec1=encode(_0x1efe4b);function _0x2eddea(_0x5c65e2,_0x515a3a){return _0x6f43(_0x5c65e2- -0x129,_0x515a3a);}return _0x5e1ec1[_0x2eddea(0x11c,0x208)]?'?'+_0x5e1ec1:'';}}class Polling extends Transport{constructor(){function _0x41264c(_0x1774f2,_0x39eed3){return _0x6f43(_0x1774f2- -0x104,_0x39eed3);}super(...arguments),this[_0x41264c(0x2d7,0x1c7)]=![];}get['name'](){return'polling';}['doOpen'](){function _0x4c3922(_0x532a37,_0x3e7351){return _0x6f43(_0x3e7351- -0x202,_0x532a37);}this[_0x4c3922(0x192,0x162)]();}['pause'](_0x2eac1e){function _0x1026c6(_0x46a7ba,_0x16aab7){return _0x6f43(_0x16aab7-0x361,_0x46a7ba);}this[_0x1026c6(0x558,0x51a)]='pausing';const _0x5c9b01=()=>{function _0x8cb595(_0x1e5209,_0x4a4916){return _0x6f43(_0x1e5209- -0x80,_0x4a4916);}this['readyState']=_0x8cb595(0x22d,0x1a1),_0x2eac1e();};if(this['_polling']||!this[_0x1026c6(0x68a,0x568)]){let _0xe1e256=0x0;this['_polling']&&(_0xe1e256++,this[_0x1026c6(0x63b,0x69c)]('pollComplete',function(){--_0xe1e256||_0x5c9b01();})),!this['writable']&&(_0xe1e256++,this[_0x1026c6(0x6b7,0x69c)]('drain',function(){--_0xe1e256||_0x5c9b01();}));}else _0x5c9b01();}['_poll'](){function _0x2ca001(_0x17b31a,_0x15943a){return _0x6f43(_0x15943a-0x20f,_0x17b31a);}this[_0x2ca001(0x6d2,0x5ea)]=!![],this[_0x2ca001(0x443,0x527)](),this[_0x2ca001(0x479,0x488)]('poll');}[_0x2d7030(0x522,0x603)](data){function _0xdc2e1(_0xb0d95f,_0x56f620){return _0x6f43(_0xb0d95f- -0x28,_0x56f620);}const _0x9c34fa=_0x145050=>{'opening'===this[_0x4f68da(-0x96,-0xbb)]&&_0x145050['type']===_0x4f68da(-0xf,0x53)&&this[_0x4f68da(-0x1a5,-0x89)]();function _0x4f68da(_0x1e4794,_0x36f298){return _0x6f43(_0x36f298- -0x274,_0x1e4794);}if(_0x4f68da(-0xe6,-0x1e)===_0x145050['type'])return this[_0x4f68da(-0xa2,-0xc1)]({'description':'transport\x20closed\x20by\x20the\x20server'}),![];this[_0x4f68da(0x137,0x24)](_0x145050);};decodePayload(data,this['socket'][_0xdc2e1(0x1ca,0x2e6)])[_0xdc2e1(0x368,0x2f5)](_0x9c34fa),_0xdc2e1(0x3a2,0x29a)!==this[_0xdc2e1(0x191,0xf7)]&&(this['_polling']=![],this['emitReserved'](_0xdc2e1(0x24b,0x345)),_0xdc2e1(0x29f,0x1c2)===this['readyState']&&this['_poll']());}['doClose'](){const _0x290738=()=>{this['write']([{'type':'close'}]);};function _0x115c5f(_0x2face1,_0x1480e7){return _0x6f43(_0x1480e7- -0x14d,_0x2face1);}_0x115c5f(0x251,0x17a)===this[_0x115c5f(0xf3,0x6c)]?_0x290738():this['once']('open',_0x290738);}[_0x2d7030(0x43b,0x4fc)](_0x579ebc){this['writable']=![],encodePayload(_0x579ebc,data=>{function _0x42662b(_0xf5831a,_0x54a4df){return _0x6f43(_0x54a4df- -0x154,_0xf5831a);}this[_0x42662b(0x142,0x58)](data,()=>{this['writable']=!![],this['emitReserved']('drain');});});}['uri'](){const _0x291225=this[_0x3aed94(0x1c6,0x2e5)][_0x3aed94(0x140,0x23f)]?'https':'http',_0x511ba4=this[_0x3aed94(0x16a,0xac)]||{};![]!==this[_0x3aed94(0x1c6,0x179)][_0x3aed94(0x2db,0x2d0)]&&(_0x511ba4[this['opts'][_0x3aed94(0x304,0x3fb)]]=randomString());!this['supportsBinary']&&!_0x511ba4[_0x3aed94(0x210,0x2cd)]&&(_0x511ba4[_0x3aed94(0x15d,0x19f)]=0x1);function _0x3aed94(_0x597943,_0x14ba6d){return _0x6f43(_0x597943- -0x72,_0x14ba6d);}return this['createUri'](_0x291225,_0x511ba4);}}let value=![];try{value=typeof XMLHttpRequest!=='undefined'&&'withCredentials'in new XMLHttpRequest();}catch(_0x200fcd){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(_0x3710e7){super(_0x3710e7);function _0x3e51ae(_0x543d3a,_0x348089){return _0x6f43(_0x543d3a-0x15d,_0x348089);}if(typeof location!=='undefined'){const isSSL=_0x3e51ae(0x485,0x431)===location[_0x3e51ae(0x530,0x482)];let _0x4f7e34=location['port'];!_0x4f7e34&&(_0x4f7e34=isSSL?_0x3e51ae(0x402,0x513):'80'),this['xd']=typeof location!==_0x3e51ae(0x393,0x4ab)&&_0x3710e7['hostname']!==location['hostname']||_0x4f7e34!==_0x3710e7['port'];}}[_0x2d7030(0x454,0x40e)](data,_0x355921){const req=this['request']({'method':'POST','data':data});function _0x8b0acf(_0x11a8c0,_0x5a3e00){return _0x6f43(_0x5a3e00-0x2c4,_0x11a8c0);}req['on'](_0x8b0acf(0x5f3,0x53e),_0x355921),req['on'](_0x8b0acf(0x620,0x575),(_0xfd5569,_0x5009c9)=>{function _0x1f2e4b(_0x4b213c,_0x1ceff6){return _0x6f43(_0x4b213c-0x16f,_0x1ceff6);}this[_0x1f2e4b(0x461,0x46f)]('xhr\x20post\x20error',_0xfd5569,_0x5009c9);});}['doPoll'](){const req=this['request']();function _0x19dff8(_0x54045d,_0x445464){return _0x6f43(_0x54045d- -0xd6,_0x445464);}req['on'](_0x19dff8(0x30d,0x3a9),this['onData']['bind'](this)),req['on']('error',(_0x8b9d8,_0xc96f6f)=>{function _0x5efb4b(_0x152eaa,_0xab4602){return _0x6f43(_0x152eaa-0x286,_0xab4602);}this['onError'](_0x5efb4b(0x4bd,0x3af),_0x8b9d8,_0xc96f6f);}),this['pollXhr']=req;}}class Request extends Emitter{constructor(createRequest,_0x29e9ad,_0x6201e1){super(),this[_0x51fb26(0x494,0x3ff)]=createRequest,installTimerFunctions(this,_0x6201e1);function _0x51fb26(_0x1d182e,_0x2bef1e){return _0x6f43(_0x2bef1e-0x1a2,_0x1d182e);}this[_0x51fb26(0x4cc,0x53b)]=_0x6201e1,this[_0x51fb26(0x465,0x4ff)]=_0x6201e1[_0x51fb26(0x2f5,0x3b4)]||'GET',this[_0x51fb26(0x4b8,0x563)]=_0x29e9ad,this[_0x51fb26(0x32f,0x442)]=undefined!==_0x6201e1['data']?_0x6201e1[_0x51fb26(0x5d8,0x585)]:null,this[_0x51fb26(0x532,0x516)]();}['_create'](){var _0x13548a;const _0x3b988c=pick(this[_0x217449(0x3bf,0x3f4)],'agent',_0x217449(0x235,0x1fa),'key','passphrase',_0x217449(0x2b6,0x31b),'ca','ciphers','rejectUnauthorized','autoUnref');_0x3b988c[_0x217449(0x1f9,0x1e1)]=!!this[_0x217449(0x3bf,0x4e3)]['xd'];const _0x37030a=this['_xhr']=this[_0x217449(0x283,0x2fc)](_0x3b988c);try{_0x37030a[_0x217449(0x2ed,0x31b)](this[_0x217449(0x383,0x3b9)],this[_0x217449(0x3e7,0x421)],!![]);try{if(this['_opts']['extraHeaders']){_0x37030a['setDisableHeaderCheck']&&_0x37030a['setDisableHeaderCheck'](!![]);for(let _0x10c321 in this['_opts'][_0x217449(0x2bb,0x307)]){this['_opts'][_0x217449(0x2bb,0x1a1)][_0x217449(0x353,0x376)](_0x10c321)&&_0x37030a['setRequestHeader'](_0x10c321,this['_opts']['extraHeaders'][_0x10c321]);}}}catch(_0x4cfda1){}if('POST'===this[_0x217449(0x383,0x425)])try{_0x37030a['setRequestHeader'](_0x217449(0x2e3,0x3b6),'text/plain;charset=UTF-8');}catch(_0xa82c5e){}try{_0x37030a['setRequestHeader'](_0x217449(0x205,0x31d),'*/*');}catch(_0x2d7a1d){}(_0x13548a=this[_0x217449(0x3bf,0x4e4)]['cookieJar'])===null||_0x13548a===void 0x0?void 0x0:_0x13548a[_0x217449(0x259,0x211)](_0x37030a),'withCredentials'in _0x37030a&&(_0x37030a[_0x217449(0x398,0x45e)]=this[_0x217449(0x3bf,0x2fb)][_0x217449(0x398,0x3d3)]),this[_0x217449(0x3bf,0x455)][_0x217449(0x240,0x122)]&&(_0x37030a['timeout']=this['_opts'][_0x217449(0x240,0x267)]),_0x37030a[_0x217449(0x223,0x143)]=()=>{var _0x2f4ea5;_0x37030a['readyState']===0x3&&((_0x2f4ea5=this['_opts'][_0x37fdb0(0x4aa,0x4f8)])===null||_0x2f4ea5===void 0x0?void 0x0:_0x2f4ea5[_0x37fdb0(0x4e2,0x3d0)](_0x37030a['getResponseHeader']('set-cookie')));if(0x4!==_0x37030a[_0x37fdb0(0x325,0x323)])return;function _0x37fdb0(_0x23e331,_0x59fa14){return _0x6f43(_0x59fa14-0x16a,_0x23e331);}0xc8===_0x37030a[_0x37fdb0(0x3be,0x3d3)]||0x4c7===_0x37030a[_0x37fdb0(0x34c,0x3d3)]?this['_onLoad']():this[_0x37fdb0(0x2de,0x3e6)](()=>{function _0x1939d2(_0x11c010,_0x43f96b){return _0x6f43(_0x43f96b-0xa,_0x11c010);}this['_onError'](typeof _0x37030a['status']===_0x1939d2(0x1e8,0x297)?_0x37030a['status']:0x0);},0x0);},_0x37030a['send'](this[_0x217449(0x2c6,0x351)]);}catch(_0x1c30a6){this[_0x217449(0x2a2,0x272)](()=>{this['_onError'](_0x1c30a6);},0x0);return;}function _0x217449(_0x4cdb48,_0x4e3c99){return _0x6f43(_0x4cdb48-0x26,_0x4e3c99);}typeof document!=='undefined'&&(this['_index']=Request[_0x217449(0x2e6,0x2ae)]++,Request['requests'][this['_index']]=this);}['_onError'](_0x51be40){function _0x128288(_0x1bc9f4,_0x57a4c9){return _0x6f43(_0x57a4c9- -0x253,_0x1bc9f4);}this['emitReserved'](_0x128288(0x152,0x5e),_0x51be40,this[_0x128288(0xd6,0x110)]),this['_cleanup'](!![]);}[_0x2d7030(0x557,0x478)](fromError){if(_0x59a90f(0x244,0x328)===typeof this['_xhr']||null===this[_0x59a90f(0x468,0x455)])return;this['_xhr'][_0x59a90f(0x374,0x2ef)]=empty;function _0x59a90f(_0x2b4b4b,_0x9de1de){return _0x6f43(_0x9de1de-0xf2,_0x2b4b4b);}if(fromError)try{this['_xhr']['abort']();}catch(_0x4f65be){}typeof document!==_0x59a90f(0x252,0x328)&&delete Request[_0x59a90f(0x3ba,0x37e)][this[_0x59a90f(0x32c,0x32e)]],this['_xhr']=null;}[_0x2d7030(0x5fd,0x582)](){const data=this['_xhr']['responseText'];function _0x253b45(_0x24a9d6,_0x13b123){return _0x6f43(_0x24a9d6-0x184,_0x13b123);}data!==null&&(this['emitReserved'](_0x253b45(0x567,0x4b8),data),this[_0x253b45(0x3fd,0x2d9)](_0x253b45(0x3fe,0x309)),this['_cleanup']());}[_0x2d7030(0x373,0x410)](){function _0x128f5f(_0x312bf4,_0x5807c7){return _0x6f43(_0x312bf4- -0x142,_0x5807c7);}this[_0x128f5f(0xd4,0x1f7)]();}}Request[_0x2d7030(0x595,0x522)]=0x0,Request[_0x2d7030(0x4a1,0x4ee)]={};if(typeof document!==_0x2d7030(0x4b0,0x498)){if(typeof attachEvent==='function')attachEvent('onunload',unloadHandler);else{if(typeof addEventListener==='function'){const terminationEvent='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(terminationEvent,unloadHandler,![]);}}}function unloadHandler(){function _0x339709(_0x1616c3,_0x4534b1){return _0x6f43(_0x1616c3- -0x185,_0x4534b1);}for(let _0x43735d in Request[_0x339709(0x107,0x210)]){Request[_0x339709(0x107,0x25)][_0x339709(0x1a8,0x134)](_0x43735d)&&Request['requests'][_0x43735d][_0x339709(0x29,0x5c)]();}}const hasXHR2=(function(){const _0x956838=newRequest({'xdomain':![]});return _0x956838&&_0x956838['responseType']!==null;}());class XHR extends BaseXHR{constructor(_0x542187){super(_0x542187);const _0x3d895f=_0x542187&&_0x542187['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x3d895f;}['request'](_0x1da9c1={}){Object[_0x4e479a(-0xbe,0x4c)](_0x1da9c1,{'xd':this['xd']},this[_0x4e479a(-0xc4,-0x159)]);function _0x4e479a(_0x3cfcca,_0x19069d){return _0x6f43(_0x3cfcca- -0x2fc,_0x19069d);}return new Request(newRequest,this['uri'](),_0x1da9c1);}}function newRequest(_0x2110b2){const xdomain=_0x2110b2[_0x44d274(0x406,0x356)];function _0x44d274(_0x17d0f3,_0x4c637d){return _0x6f43(_0x17d0f3-0x233,_0x4c637d);}try{if('undefined'!==typeof XMLHttpRequest&&(!xdomain||hasCORS))return new XMLHttpRequest();}catch(_0x39fb1f){}if(!xdomain)try{return new globalThisShim[(['Active'][_0x44d274(0x492,0x40c)](_0x44d274(0x46e,0x36c))['join']('X'))](_0x44d274(0x56f,0x5fb));}catch(_0x3ad684){}}const isReactNative=typeof navigator!==_0x2d7030(0x525,0x498)&&typeof navigator['product']==='string'&&navigator['product'][_0x2d7030(0x6e9,0x5c8)]()==='reactnative';class BaseWS extends Transport{get[_0x2d7030(0x6be,0x5cc)](){return'websocket';}['doOpen'](){const _0x3d85cf=this[_0x28be3c(0x64c,0x59d)](),_0x1dcf46=this[_0x28be3c(0x406,0x446)]['protocols'],_0x44e4cb=isReactNative?{}:pick(this['opts'],'agent','perMessageDeflate',_0x28be3c(0x391,0x41d),_0x28be3c(0x642,0x5b9),'passphrase','cert','ca',_0x28be3c(0x5b3,0x4c2),'rejectUnauthorized',_0x28be3c(0x3f9,0x40e),_0x28be3c(0x4e6,0x5ea),_0x28be3c(0x4b0,0x5a8),'maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x44e4cb[_0x28be3c(0x3db,0x478)]=this[_0x28be3c(0x53f,0x446)]['extraHeaders']);function _0x28be3c(_0x18ba47,_0x44db82){return _0x6f43(_0x44db82-0x20e,_0x18ba47);}try{this['ws']=this[_0x28be3c(0x4d2,0x597)](_0x3d85cf,_0x1dcf46,_0x44e4cb);}catch(_0x4169ba){return this[_0x28be3c(0x396,0x487)](_0x28be3c(0x54f,0x4bf),_0x4169ba);}this['ws'][_0x28be3c(0x4fa,0x400)]=this['socket'][_0x28be3c(0x521,0x400)],this['addEventListeners']();}[_0x2d7030(0x345,0x457)](){this['ws']['onopen']=()=>{this['opts'][_0x4d4daa(0x5e6,0x65d)]&&this['ws']['_socket']['unref']();function _0x4d4daa(_0x5409e5,_0x87c907){return _0x6f43(_0x5409e5-0x200,_0x87c907);}this[_0x4d4daa(0x3eb,0x385)]();},this['ws']['onclose']=_0x50c9b3=>this[_0x403cb3(0x313,0x373)]({'description':'websocket\x20connection\x20closed','context':_0x50c9b3});function _0x403cb3(_0x1eae46,_0xf20e67){return _0x6f43(_0x1eae46-0x160,_0xf20e67);}this['ws'][_0x403cb3(0x3bb,0x41f)]=_0x5572d2=>this[_0x403cb3(0x501,0x42e)](_0x5572d2['data']),this['ws']['onerror']=_0x59b939=>this['onError']('websocket\x20error',_0x59b939);}[_0x2d7030(0x3f1,0x4fc)](_0x1a3a6c){this['writable']=![];for(let _0x42bd38=0x0;_0x42bd38<_0x1a3a6c['length'];_0x42bd38++){const _0x5c7ab7=_0x1a3a6c[_0x42bd38],_0x4b13e9=_0x42bd38===_0x1a3a6c['length']-0x1;encodePacket(_0x5c7ab7,this['supportsBinary'],data=>{try{this['doWrite'](_0x5c7ab7,data);}catch(_0xf4365a){}_0x4b13e9&&nextTick(()=>{function _0x2796ac(_0x56e44a,_0x1163d0){return _0x6f43(_0x56e44a-0x289,_0x1163d0);}this['writable']=!![],this['emitReserved'](_0x2796ac(0x55e,0x578));},this['setTimeoutFn']);});}}[_0x2d7030(0x564,0x64f)](){function _0x1e73f8(_0x10efb6,_0x2a74d6){return _0x6f43(_0x2a74d6- -0x350,_0x10efb6);}typeof this['ws']!==_0x1e73f8(-0x1a6,-0x11a)&&(this['ws'][_0x1e73f8(-0x1b3,-0x139)]=()=>{},this['ws'][_0x1e73f8(-0x10,-0xfa)](),this['ws']=null);}[_0x2d7030(0x4d6,0x5f1)](){const _0x52caac=this['opts']['secure']?_0x51a2f6(0x1b2,0xed):'ws',_0x2752f0=this[_0x51a2f6(-0x52,-0x4b)]||{};function _0x51a2f6(_0xf6b80d,_0x81834){return _0x6f43(_0x81834- -0x227,_0xf6b80d);}return this['opts'][_0x51a2f6(0x26,0x126)]&&(_0x2752f0[this['opts']['timestampParam']]=randomString()),!this['supportsBinary']&&(_0x2752f0[_0x51a2f6(0x1c,-0x58)]=0x1),this['createUri'](_0x52caac,_0x2752f0);}}const WebSocketCtor=globalThisShim['WebSocket']||globalThisShim[_0x2d7030(0x568,0x5f8)];class WS extends BaseWS{[_0x2d7030(0x5e7,0x5eb)](_0x3d4de0,_0x2f5b66,_0x245d30){return!isReactNative?_0x2f5b66?new WebSocketCtor(_0x3d4de0,_0x2f5b66):new WebSocketCtor(_0x3d4de0):new WebSocketCtor(_0x3d4de0,_0x2f5b66,_0x245d30);}[_0x2d7030(0x4e9,0x40e)](_0x1b9e70,data){function _0xa3e181(_0x32c65c,_0x1c7bdc){return _0x6f43(_0x1c7bdc- -0x347,_0x32c65c);}this['ws'][_0xa3e181(-0x169,-0x126)](data);}}class WT extends Transport{get['name'](){return'webtransport';}['doOpen'](){function _0x42e24c(_0x73c903,_0x42811f){return _0x6f43(_0x42811f-0x5a,_0x73c903);}try{this['_transport']=new WebTransport(this[_0x42e24c(0x330,0x3a1)](_0x42e24c(0x2c8,0x320)),this['opts']['transportOptions'][this[_0x42e24c(0x309,0x3c4)]]);}catch(_0x34ed72){return this[_0x42e24c(0x1fb,0x2d3)]('error',_0x34ed72);}this[_0x42e24c(0x30d,0x36f)][_0x42e24c(0x45e,0x424)]['then'](()=>{function _0x4acf9d(_0xed1d59,_0x4ec5da){return _0x6f43(_0x4ec5da- -0x29a,_0xed1d59);}this[_0x4acf9d(0xc,-0xe7)]();})['catch'](_0x3b37f7=>{function _0x4d033a(_0x40aaf9,_0x35991d){return _0x6f43(_0x40aaf9-0x3b7,_0x35991d);}this[_0x4d033a(0x6a9,0x632)](_0x4d033a(0x737,0x80b),_0x3b37f7);}),this['_transport'][_0x42e24c(0x2d3,0x2d2)][_0x42e24c(0x34a,0x40b)](()=>{this['_transport']['createBidirectionalStream']()['then'](_0x503147=>{const _0x83bfb7=createPacketDecoderStream(Number[_0x15fa7d(0x5e5,0x63a)],this['socket']['binaryType']),_0x2afe97=_0x503147['readable'][_0x15fa7d(0x637,0x6fd)](_0x83bfb7)['getReader']();function _0x15fa7d(_0x1abfc0,_0x5a9f34){return _0x6f43(_0x1abfc0-0x3e3,_0x5a9f34);}const _0x5aa86b=createPacketEncoderStream();_0x5aa86b['readable']['pipeTo'](_0x503147['writable']),this['_writer']=_0x5aa86b['writable'][_0x15fa7d(0x6cf,0x7ec)]();const _0x2cee4b=()=>{function _0x506612(_0x3df4bc,_0x35c83e){return _0x6f43(_0x35c83e- -0x28b,_0x3df4bc);}_0x2afe97[_0x506612(0x18a,0xd5)]()[_0x506612(0x1c,0x126)](({done:_0x3f7802,value:_0x3704b2})=>{if(_0x3f7802)return;this[_0x3c3b8e(-0x120,-0x33)](_0x3704b2);function _0x3c3b8e(_0x47edda,_0x4c9e26){return _0x6f43(_0x47edda- -0x3b8,_0x4c9e26);}_0x2cee4b();})['catch'](_0x2ee6e6=>{});};_0x2cee4b();const _0x56a525={'type':_0x15fa7d(0x6aa,0x59e)};this[_0x15fa7d(0x5bf,0x5ce)]['sid']&&(_0x56a525['data']='{\x22sid\x22:\x22'+this['query'][_0x15fa7d(0x665,0x6c6)]+'\x22}'),this['_writer']['write'](_0x56a525)[_0x15fa7d(0x794,0x84e)](()=>this['onOpen']());});});}['write'](_0x4e2b6d){function _0x177624(_0x5f585d,_0x162898){return _0x6f43(_0x162898- -0x2b4,_0x5f585d);}this['writable']=![];for(let _0x11f38c=0x0;_0x11f38c<_0x4e2b6d[_0x177624(0x55,-0x6f)];_0x11f38c++){const _0x527b3a=_0x4e2b6d[_0x11f38c],_0x58f9a3=_0x11f38c===_0x4e2b6d[_0x177624(-0x34,-0x6f)]-0x1;this[_0x177624(-0xaf,-0x9)][_0x177624(-0x74,-0x1a)](_0x527b3a)[_0x177624(0x62,0xfd)](()=>{_0x58f9a3&&nextTick(()=>{this['writable']=!![],this['emitReserved']('drain');},this['setTimeoutFn']);});}}[_0x2d7030(0x67c,0x64f)](){var _0x1d04ea;function _0x1b9360(_0x3ce67d,_0x4fd8ce){return _0x6f43(_0x3ce67d- -0x7,_0x4fd8ce);}(_0x1d04ea=this['_transport'])===null||_0x1d04ea===void 0x0?void 0x0:_0x1d04ea[_0x1b9360(0x24f,0x2c1)]();}}const transports={'websocket':WS,'webtransport':WT,'polling':XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=[_0x2d7030(0x602,0x60b),_0x2d7030(0x52c,0x635),_0x2d7030(0x6bd,0x5bd),_0x2d7030(0x37f,0x497),'user',_0x2d7030(0x44d,0x4e0),_0x2d7030(0x5bd,0x5d0),'port','relative',_0x2d7030(0x5d6,0x51a),'directory',_0x2d7030(0x635,0x602),_0x2d7030(0x54c,0x43e),'anchor'];function parse(_0x510a86){if(_0x510a86[_0x1acb7b(0x48c,0x564)]>0x1f40)throw'URI\x20too\x20long';const _0x85bb43=_0x510a86,_0x22d2aa=_0x510a86[_0x1acb7b(0x758,0x6ff)]('['),_0x2320e6=_0x510a86[_0x1acb7b(0x75f,0x6ff)](']');_0x22d2aa!=-0x1&&_0x2320e6!=-0x1&&(_0x510a86=_0x510a86['substring'](0x0,_0x22d2aa)+_0x510a86[_0x1acb7b(0x479,0x4da)](_0x22d2aa,_0x2320e6)['replace'](/:/g,';')+_0x510a86[_0x1acb7b(0x568,0x4da)](_0x2320e6,_0x510a86[_0x1acb7b(0x4d1,0x564)]));let _0x2e6d13=re[_0x1acb7b(0x693,0x5ad)](_0x510a86||''),_0xd32985={},_0x2dadee=0xe;while(_0x2dadee--){_0xd32985[parts[_0x2dadee]]=_0x2e6d13[_0x2dadee]||'';}function _0x1acb7b(_0x534ae7,_0xd41d6a){return _0x6f43(_0xd41d6a-0x31f,_0x534ae7);}return _0x22d2aa!=-0x1&&_0x2320e6!=-0x1&&(_0xd32985[_0x1acb7b(0x5ad,0x6c8)]=_0x85bb43,_0xd32985[_0x1acb7b(0x75b,0x68d)]=_0xd32985[_0x1acb7b(0x6b3,0x68d)][_0x1acb7b(0x50e,0x4da)](0x1,_0xd32985['host']['length']-0x1)[_0x1acb7b(0x570,0x53e)](/;/g,':'),_0xd32985['authority']=_0xd32985['authority'][_0x1acb7b(0x646,0x53e)]('[','')['replace'](']','')['replace'](/;/g,':'),_0xd32985[_0x1acb7b(0x5f9,0x648)]=!![]),_0xd32985[_0x1acb7b(0x57b,0x63c)]=pathNames(_0xd32985,_0xd32985['path']),_0xd32985['queryKey']=queryKey(_0xd32985,_0xd32985[_0x1acb7b(0x3df,0x4fb)]),_0xd32985;}function pathNames(_0x584570,_0x48040e){const _0x2ab106=/\/{2,9}/g,_0x1a860c=_0x48040e['replace'](_0x2ab106,'/')['split']('/');(_0x48040e['slice'](0x0,0x1)=='/'||_0x48040e[_0x44ba33(0x227,0x2a1)]===0x0)&&_0x1a860c[_0x44ba33(0x457,0x35a)](0x0,0x1);_0x48040e[_0x44ba33(0x1ce,0x2a6)](-0x1)=='/'&&_0x1a860c[_0x44ba33(0x3d5,0x35a)](_0x1a860c[_0x44ba33(0x285,0x2a1)]-0x1,0x1);function _0x44ba33(_0xe2aa05,_0x10fe32){return _0x6f43(_0x10fe32-0x5c,_0xe2aa05);}return _0x1a860c;}function queryKey(_0x48452b,_0x19b882){const data={};_0x19b882[_0x28a57b(0x585,0x5fa)](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x42047d,_0x3ed2b5,_0x3ad759){_0x3ed2b5&&(data[_0x3ed2b5]=_0x3ad759);});function _0x28a57b(_0x255e09,_0xd41ecf){return _0x6f43(_0x255e09-0x366,_0xd41ecf);}return data;}const withEventListeners=typeof addEventListener===_0x2d7030(0x671,0x5cb)&&typeof removeEventListener===_0x2d7030(0x4ce,0x5cb),OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener('offline',()=>{OFFLINE_EVENT_LISTENERS['forEach'](listener=>listener());},![]);class SocketWithoutUpgrade extends Emitter{constructor(_0x273f85,_0x24c5cc){super(),this[_0xefc411(0xe9,0x154)]=defaultBinaryType,this[_0xefc411(0x226,0x196)]=[],this[_0xefc411(0x249,0x332)]=0x0,this[_0xefc411(0x3f9,0x327)]=-0x1,this[_0xefc411(0x1f7,0x127)]=-0x1,this['_maxPayload']=-0x1,this[_0xefc411(0x281,0x1a4)]=Infinity;_0x273f85&&_0xefc411(0x21b,0x2c7)===typeof _0x273f85&&(_0x24c5cc=_0x273f85,_0x273f85=null);if(_0x273f85){const parsedUri=parse(_0x273f85);_0x24c5cc[_0xefc411(0x191,0x163)]=parsedUri['host'],_0x24c5cc['secure']=parsedUri[_0xefc411(0x372,0x335)]==='https'||parsedUri[_0xefc411(0x29e,0x335)]===_0xefc411(0x2af,0x276),_0x24c5cc[_0xefc411(0x2bc,0x316)]=parsedUri['port'];if(parsedUri[_0xefc411(0x213,0x13e)])_0x24c5cc[_0xefc411(0x1dc,0x13e)]=parsedUri['query'];}else _0x24c5cc[_0xefc411(0x1b7,0x2d0)]&&(_0x24c5cc['hostname']=parse(_0x24c5cc['host'])['host']);installTimerFunctions(this,_0x24c5cc),this['secure']=null!=_0x24c5cc['secure']?_0x24c5cc[_0xefc411(0x13e,0x114)]:typeof location!=='undefined'&&'https:'===location[_0xefc411(0x331,0x335)];function _0xefc411(_0x5d5dd9,_0x74a6){return _0x6f43(_0x74a6- -0x9e,_0x5d5dd9);}_0x24c5cc[_0xefc411(0x14f,0x163)]&&!_0x24c5cc[_0xefc411(0x3ec,0x316)]&&(_0x24c5cc[_0xefc411(0x2ef,0x316)]=this[_0xefc411(0x17b,0x114)]?_0xefc411(0x124,0x207):'80'),this[_0xefc411(0x204,0x163)]=_0x24c5cc['hostname']||(typeof location!==_0xefc411(0x1f6,0x198)?location[_0xefc411(0x128,0x163)]:'localhost'),this['port']=_0x24c5cc[_0xefc411(0x323,0x316)]||(typeof location!=='undefined'&&location['port']?location[_0xefc411(0x267,0x316)]:this['secure']?_0xefc411(0x102,0x207):'80'),this['transports']=[],this[_0xefc411(0x112,0x16c)]={},_0x24c5cc[_0xefc411(0x2ae,0x1ba)][_0xefc411(0x35a,0x2f2)](_0x319d9c=>{const _0x5040fc=_0x319d9c['prototype'][_0x19fdfa(0x4d3,0x45d)];function _0x19fdfa(_0x1b9938,_0x5d82b2){return _0x6f43(_0x1b9938-0x169,_0x5d82b2);}this[_0x19fdfa(0x3c1,0x4a6)][_0x19fdfa(0x368,0x2ee)](_0x5040fc),this[_0x19fdfa(0x373,0x3a9)][_0x5040fc]=_0x319d9c;}),this['opts']=Object[_0xefc411(0x195,0x1a0)]({'path':'/engine.io','agent':![],'withCredentials':![],'upgrade':!![],'timestampParam':'t','rememberUpgrade':![],'addTrailingSlash':!![],'rejectUnauthorized':!![],'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':![]},_0x24c5cc),this[_0xefc411(0x101,0x19a)][_0xefc411(0x190,0x21a)]=this[_0xefc411(0x19c,0x19a)][_0xefc411(0x217,0x21a)][_0xefc411(0x1f0,0x181)](/\/$/,'')+(this['opts'][_0xefc411(0x3f1,0x2fd)]?'/':''),typeof this[_0xefc411(0x240,0x19a)]['query']==='string'&&(this[_0xefc411(0x25c,0x19a)][_0xefc411(0x225,0x13e)]=decode(this['opts']['query'])),withEventListeners&&(this[_0xefc411(0x1ae,0x19a)][_0xefc411(0x251,0x182)]&&(this[_0xefc411(0x1da,0x15d)]=()=>{function _0x4d9b03(_0x1c07c3,_0x56902a){return _0x6f43(_0x1c07c3-0x209,_0x56902a);}this['transport']&&(this[_0x4d9b03(0x56a,0x554)][_0x4d9b03(0x412,0x522)](),this[_0x4d9b03(0x56a,0x658)][_0x4d9b03(0x45f,0x46c)]());},addEventListener(_0xefc411(0x1da,0x26c),this[_0xefc411(0x8a,0x15d)],![])),this[_0xefc411(0x271,0x163)]!==_0xefc411(0x239,0x23b)&&(this['_offlineEventListener']=()=>{function _0x8049b8(_0x369654,_0x393c75){return _0x6f43(_0x369654-0x23b,_0x393c75);}this[_0x8049b8(0x3ef,0x4b1)]('transport\x20close',{'description':_0x8049b8(0x3f0,0x315)});},OFFLINE_EVENT_LISTENERS['push'](this['_offlineEventListener']))),this['opts'][_0xefc411(0x1df,0x2d4)]&&(this[_0xefc411(0x9d,0x165)]=createCookieJar()),this[_0xefc411(0x1fe,0x2d3)]();}[_0x2d7030(0x5a6,0x553)](_0x568674){const _0x3bd43c=Object['assign']({},this['opts'][_0x53a28c(0x416,0x533)]);_0x3bd43c[_0x53a28c(0x58c,0x689)]=protocol$1,_0x3bd43c[_0x53a28c(0x59b,0x685)]=_0x568674;if(this['id'])_0x3bd43c[_0x53a28c(0x4bc,0x4c2)]=this['id'];function _0x53a28c(_0x549022,_0x5878b3){return _0x6f43(_0x549022-0x23a,_0x5878b3);}const _0xf41cad=Object['assign']({},this['opts'],{'query':_0x3bd43c,'socket':this,'hostname':this[_0x53a28c(0x43b,0x355)],'secure':this[_0x53a28c(0x3ec,0x3bc)],'port':this['port']},this['opts'][_0x53a28c(0x4bf,0x4b3)][_0x568674]);return new this[(_0x53a28c(0x444,0x451))][_0x568674](_0xf41cad);}[_0x2d7030(0x563,0x5d3)](){if(this['transports'][_0x4e05eb(0x4be,0x53b)]===0x0){this[_0x4e05eb(0x63b,0x572)](()=>{function _0x33dbb1(_0x4bf96d,_0x3896ee){return _0x6f43(_0x4bf96d-0x11,_0x3896ee);}this[_0x33dbb1(0x28a,0x27a)](_0x33dbb1(0x2c2,0x3ae),'No\x20transports\x20available');},0x0);return;}const _0x2bc3d7=this[_0x4e05eb(0x5bb,0x52e)][_0x4e05eb(0x625,0x5a2)]&&SocketWithoutUpgrade[_0x4e05eb(0x3fe,0x506)]&&this['transports']['indexOf'](_0x4e05eb(0x52a,0x5dc))!==-0x1?_0x4e05eb(0x6b6,0x5dc):this['transports'][0x0];function _0x4e05eb(_0x17753d,_0x2c1d52){return _0x6f43(_0x2c1d52-0x2f6,_0x17753d);}this['readyState']=_0x4e05eb(0x5e4,0x5eb);const _0x41ce6b=this['createTransport'](_0x2bc3d7);_0x41ce6b['open'](),this[_0x4e05eb(0x726,0x68a)](_0x41ce6b);}['setTransport'](_0x31c78f){this[_0x50e1ce(0x50d,0x5a6)]&&this['transport']['removeAllListeners']();this[_0x50e1ce(0x50d,0x48c)]=_0x31c78f;function _0x50e1ce(_0x2d9b7f,_0x146506){return _0x6f43(_0x2d9b7f-0x1ac,_0x146506);}_0x31c78f['on'](_0x50e1ce(0x481,0x398),this[_0x50e1ce(0x559,0x457)]['bind'](this))['on']('packet',this['_onPacket']['bind'](this))['on'](_0x50e1ce(0x45d,0x3c6),this[_0x50e1ce(0x55e,0x5b9)]['bind'](this))['on']('close',_0x50be95=>this[_0x50e1ce(0x360,0x394)](_0x50e1ce(0x3d4,0x425),_0x50be95));}['onOpen'](){function _0x57591d(_0xda79bf,_0x38a3fd){return _0x6f43(_0x38a3fd-0x20e,_0xda79bf);}this[_0x57591d(0x2f9,0x3c7)]=_0x57591d(0x5ba,0x4d5),SocketWithoutUpgrade[_0x57591d(0x4fb,0x41e)]=_0x57591d(0x521,0x4f4)===this['transport']['name'],this[_0x57591d(0x52c,0x487)]('open'),this[_0x57591d(0x3f4,0x3c4)]();}[_0x2d7030(0x503,0x596)](_0x460cd6){function _0x317892(_0x39689f,_0x4572f8){return _0x6f43(_0x4572f8- -0x1ce,_0x39689f);}if('opening'===this['readyState']||_0x317892(0x5e,0xf9)===this[_0x317892(0x4a,-0x15)]||'closing'===this[_0x317892(-0x11d,-0x15)]){this['emitReserved']('packet',_0x460cd6),this[_0x317892(0x130,0xab)]('heartbeat');switch(_0x460cd6[_0x317892(0x1bf,0x209)]){case _0x317892(0x1da,0xf9):this['onHandshake'](JSON[_0x317892(-0x8f,0x5f)](_0x460cd6['data']));break;case'ping':this['_sendPacket'](_0x317892(0x86,0x4d)),this[_0x317892(0xa4,0xab)](_0x317892(0x1fa,0x210)),this['emitReserved']('pong'),this['_resetPingTimeout']();break;case'error':const _0x180be0=new Error('server\x20error');_0x180be0[_0x317892(-0x22,0xc)]=_0x460cd6['data'],this['_onError'](_0x180be0);break;case'message':this[_0x317892(-0x2e,0xab)](_0x317892(0x22d,0x215),_0x460cd6[_0x317892(0x2e6,0x215)]),this['emitReserved'](_0x317892(0xcb,0x14d),_0x460cd6['data']);break;}}}[_0x2d7030(0x537,0x4b5)](data){function _0x157b6c(_0x17afe0,_0x256b55){return _0x6f43(_0x17afe0- -0x28f,_0x256b55);}this[_0x157b6c(-0x16,0x5f)](_0x157b6c(0x49,0xe3),data),this['id']=data['sid'],this['transport'][_0x157b6c(-0xb3,-0x129)][_0x157b6c(-0xd,-0x62)]=data['sid'],this[_0x157b6c(0x136,0x203)]=data['pingInterval'],this[_0x157b6c(-0xca,-0x1ea)]=data['pingTimeout'],this[_0x157b6c(-0x93,0x5c)]=data['maxPayload'],this['onOpen']();if(_0x157b6c(0x13b,0x118)===this['readyState'])return;this[_0x157b6c(-0x5e,-0x33)]();}['_resetPingTimeout'](){this[_0x1a1ca1(0x5cd,0x5a6)](this['_pingTimeoutTimer']);const _0x77d6e2=this['_pingInterval']+this[_0x1a1ca1(0x595,0x4a0)];this[_0x1a1ca1(0x5f7,0x51d)]=Date['now']()+_0x77d6e2;function _0x1a1ca1(_0x46399c,_0x320db3){return _0x6f43(_0x320db3-0x2db,_0x46399c);}this[_0x1a1ca1(0x52f,0x5c6)]=this['setTimeoutFn'](()=>{function _0x250df6(_0x59f25e,_0x2d1930){return _0x6f43(_0x59f25e-0x89,_0x2d1930);}this[_0x250df6(0x23d,0x2bf)]('ping\x20timeout');},_0x77d6e2),this['opts']['autoUnref']&&this['_pingTimeoutTimer'][_0x1a1ca1(0x623,0x679)]();}[_0x2d7030(0x5fe,0x60f)](){function _0x4da6d3(_0x4ddb99,_0x259f2a){return _0x6f43(_0x259f2a- -0x348,_0x4ddb99);}this[_0x4da6d3(0xc,-0x114)]['splice'](0x0,this['_prevBufferLen']),this[_0x4da6d3(-0x15,0x88)]=0x0,0x0===this[_0x4da6d3(-0x199,-0x114)]['length']?this[_0x4da6d3(-0x5f,-0xcf)](_0x4da6d3(0x9d,-0x73)):this['flush']();}[_0x2d7030(0x3ce,0x418)](){function _0x53637e(_0x1f20ac,_0x226315){return _0x6f43(_0x1f20ac-0x167,_0x226315);}if('closed'!==this[_0x53637e(0x320,0x282)]&&this[_0x53637e(0x4c8,0x58a)]['writable']&&!this['upgrading']&&this['writeBuffer'][_0x53637e(0x3ac,0x3ce)]){const _0x42543d=this['_getWritablePackets']();this['transport'][_0x53637e(0x388,0x3c9)](_0x42543d),this['_prevBufferLen']=_0x42543d['length'],this['emitReserved']('flush');}}[_0x2d7030(0x454,0x4aa)](){const _0x5353db=this[_0x5aa93f(0x347,0x352)]&&this[_0x5aa93f(0x4ac,0x442)][_0x5aa93f(0x4b5,0x5c2)]===_0x5aa93f(0x41d,0x322)&&this[_0x5aa93f(0x37f,0x478)]['length']>0x1;if(!_0x5353db)return this[_0x5aa93f(0x37f,0x468)];let _0x30422b=0x1;function _0x5aa93f(_0x1b1880,_0x9f8182){return _0x6f43(_0x1b1880-0x14b,_0x9f8182);}for(let _0x1ea591=0x0;_0x1ea591<this['writeBuffer'][_0x5aa93f(0x390,0x4a4)];_0x1ea591++){const data=this[_0x5aa93f(0x37f,0x445)][_0x1ea591][_0x5aa93f(0x52e,0x5ba)];data&&(_0x30422b+=byteLength(data));if(_0x1ea591>0x0&&_0x30422b>this[_0x5aa93f(0x347,0x421)])return this['writeBuffer'][_0x5aa93f(0x395,0x2a4)](0x0,_0x1ea591);_0x30422b+=0x2;}return this['writeBuffer'];}[_0x2d7030(0x3ee,0x451)](){if(!this['_pingTimeoutTime'])return!![];const _0x495a73=Date[_0x4a1df3(0x1d4,0xeb)]()>this['_pingTimeoutTime'];_0x495a73&&(this['_pingTimeoutTime']=0x0,nextTick(()=>{this['_onClose']('ping\x20timeout');},this[_0x4a1df3(0x8c,0xcc)]));function _0x4a1df3(_0x17d316,_0x2b97a2){return _0x6f43(_0x17d316- -0x1f0,_0x2b97a2);}return _0x495a73;}[_0x2d7030(0x527,0x4fc)](_0x4b14b1,_0x191929,_0x33c078){function _0x2983f1(_0x1e5475,_0x45fba3){return _0x6f43(_0x45fba3- -0xf3,_0x1e5475);}return this['_sendPacket'](_0x2983f1(0x291,0x228),_0x4b14b1,_0x191929,_0x33c078),this;}[_0x2d7030(0x487,0x483)](_0x44a78d,_0x3b6979,_0x7a6f05){function _0x112a5d(_0x2fc424,_0x3a6ab7){return _0x6f43(_0x2fc424- -0x230,_0x3a6ab7);}return this[_0x112a5d(-0x72,-0x3c)]('message',_0x44a78d,_0x3b6979,_0x7a6f05),this;}[_0x2d7030(0x488,0x420)](_0x3c6af4,data,_0x382877,_0x5b552f){'function'===typeof data&&(_0x5b552f=data,data=undefined);_0x539e27(0x650,0x5c3)===typeof _0x382877&&(_0x5b552f=_0x382877,_0x382877=null);if(_0x539e27(0x55d,0x61c)===this['readyState']||_0x539e27(0x723,0x624)===this[_0x539e27(0x43c,0x413)])return;_0x382877=_0x382877||{},_0x382877['compress']=![]!==_0x382877[_0x539e27(0x44a,0x4d5)];function _0x539e27(_0x481ff2,_0x3cb487){return _0x6f43(_0x3cb487-0x25a,_0x481ff2);}const _0x5e4e7e={'type':_0x3c6af4,'data':data,'options':_0x382877};this['emitReserved'](_0x539e27(0x531,0x5b8),_0x5e4e7e),this[_0x539e27(0x59f,0x48e)]['push'](_0x5e4e7e);if(_0x5b552f)this[_0x539e27(0x5ec,0x595)]('flush',_0x5b552f);this['flush']();}['close'](){const _0x351b87=()=>{function _0x578e49(_0x245dbe,_0x23bb67){return _0x6f43(_0x23bb67- -0x16d,_0x245dbe);}this[_0x578e49(0xe5,0x47)](_0x578e49(0x27e,0x19e)),this['transport'][_0x578e49(0x179,0xe9)]();};function _0x1f5313(_0x2478e5,_0x1ff7c4){return _0x6f43(_0x2478e5- -0x1e4,_0x1ff7c4);}const _0x3e3aec=()=>{this['off'](_0x1a72a5(0x322,0x2a6),_0x3e3aec),this['off']('upgradeError',_0x3e3aec);function _0x1a72a5(_0x461e1a,_0x5e1e7f){return _0x6f43(_0x5e1e7f-0x13,_0x461e1a);}_0x351b87();},_0x5c3db9=()=>{this[_0x47a760(0x58a,0x510)]('upgrade',_0x3e3aec);function _0x47a760(_0xe94225,_0x228e84){return _0x6f43(_0xe94225-0x24f,_0x228e84);}this[_0x47a760(0x58a,0x60f)](_0x47a760(0x5ae,0x4d8),_0x3e3aec);};if(_0x1f5313(0x111,0x1e5)===this['readyState']||'open'===this[_0x1f5313(-0x2b,-0x24)]){this['readyState']='closing';if(this[_0x1f5313(0x50,0x3e)]['length'])this['once'](_0x1f5313(0xf1,-0xa),()=>{function _0x2dce8a(_0x1351ad,_0xd5f103){return _0x6f43(_0x1351ad- -0x36,_0xd5f103);}this[_0x2dce8a(0x2fc,0x305)]?_0x5c3db9():_0x351b87();});else this[_0x1f5313(0x14e,0x23e)]?_0x5c3db9():_0x351b87();}return this;}['_onError'](_0x73e87a){function _0x4af8cf(_0x3e747e,_0x284472){return _0x6f43(_0x284472- -0x3,_0x3e747e);}SocketWithoutUpgrade[_0x4af8cf(0x276,0x20d)]=![];if(this[_0x4af8cf(0x205,0x235)]['tryAllTransports']&&this[_0x4af8cf(0x192,0x255)]['length']>0x1&&this['readyState']===_0x4af8cf(0x288,0x2f2))return this['transports'][_0x4af8cf(0x29d,0x1ad)](),this['_open']();this[_0x4af8cf(0x317,0x276)](_0x4af8cf(0x22f,0x2ae),_0x73e87a),this[_0x4af8cf(0x214,0x1b1)](_0x4af8cf(0x175,0x223),_0x73e87a);}[_0x2d7030(0x516,0x416)](_0x26cf9a,_0x186e6c){function _0x144868(_0x526a98,_0x16aeca){return _0x6f43(_0x16aeca-0x355,_0x526a98);}if(_0x144868(0x627,0x64a)===this[_0x144868(0x46d,0x50e)]||_0x144868(0x667,0x61c)===this['readyState']||'closing'===this[_0x144868(0x4a1,0x50e)]){this[_0x144868(0x61c,0x620)](this[_0x144868(0x70b,0x640)]),this[_0x144868(0x5fd,0x6b6)]['removeAllListeners'](_0x144868(0x4af,0x5ab)),this['transport'][_0x144868(0x526,0x5ab)](),this['transport'][_0x144868(0x585,0x55e)]();if(withEventListeners){this[_0x144868(0x4b8,0x550)]&&removeEventListener(_0x144868(0x739,0x65f),this['_beforeunloadEventListener'],![]);if(this['_offlineEventListener']){const _0x3b856a=OFFLINE_EVENT_LISTENERS[_0x144868(0x62a,0x735)](this['_offlineEventListener']);_0x3b856a!==-0x1&&OFFLINE_EVENT_LISTENERS['splice'](_0x3b856a,0x1);}}this['readyState']='closed',this['id']=null,this[_0x144868(0x5c0,0x5ce)](_0x144868(0x5b1,0x5ab),_0x26cf9a,_0x186e6c),this['writeBuffer']=[],this['_prevBufferLen']=0x0;}}}SocketWithoutUpgrade[_0x2d7030(0x511,0x635)]=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this['_upgrades']=[];}['onOpen'](){super[_0x3f6699(-0xd8,-0x10)]();function _0x3f6699(_0x111682,_0x375fe6){return _0x6f43(_0x111682- -0x2c3,_0x375fe6);}if('open'===this['readyState']&&this[_0x3f6699(-0x8b,-0x17e)]['upgrade'])for(let _0x1b1c40=0x0;_0x1b1c40<this[_0x3f6699(0xce,0x14c)]['length'];_0x1b1c40++){this['_probe'](this['_upgrades'][_0x1b1c40]);}}[_0x2d7030(0x67d,0x5df)](_0x50c726){let _0x4d4e6b=this['createTransport'](_0x50c726),_0x373be6=![];SocketWithoutUpgrade[_0x4dbfb0(0x2e9,0x29b)]=![];const _0x570c5c=()=>{if(_0x373be6)return;_0x4d4e6b['send']([{'type':_0xc29ffd(0x584,0x5a6),'data':'probe'}]);function _0xc29ffd(_0x3d3461,_0x2a5a79){return _0x6f43(_0x2a5a79-0x1c8,_0x3d3461);}_0x4d4e6b[_0xc29ffd(0x4be,0x503)](_0xc29ffd(0x54e,0x4da),_0x64ea58=>{function _0x155635(_0xc019ce,_0x2b6d99){return _0x6f43(_0x2b6d99- -0x125,_0xc019ce);}if(_0x373be6)return;if('pong'===_0x64ea58['type']&&_0x155635(0x25a,0x24e)===_0x64ea58[_0x155635(0x1e6,0x2be)]){this[_0x155635(0x198,0x20d)]=!![],this['emitReserved'](_0x155635(0x2f2,0x20d),_0x4d4e6b);if(!_0x4d4e6b)return;SocketWithoutUpgrade[_0x155635(0x1ed,0xeb)]='websocket'===_0x4d4e6b[_0x155635(0x303,0x245)],this['transport']['pause'](()=>{if(_0x373be6)return;if(_0x4e2fd0(0x41e,0x352)===this[_0x4e2fd0(0x259,0x141)])return;_0x2cb7e9(),this[_0x4e2fd0(0x274,0x31c)](_0x4d4e6b),_0x4d4e6b['send']([{'type':_0x4e2fd0(0x272,0x21b)}]),this['emitReserved']('upgrade',_0x4d4e6b),_0x4d4e6b=null;function _0x4e2fd0(_0x109eeb,_0x5ab584){return _0x6f43(_0x5ab584- -0x78,_0x109eeb);}this['upgrading']=![],this['flush']();});}else{const _0xef8cc0=new Error('probe\x20error');_0xef8cc0[_0x155635(0x128,0x23c)]=_0x4d4e6b['name'],this['emitReserved']('upgradeError',_0xef8cc0);}});};function _0x5bbc7f(){if(_0x373be6)return;_0x373be6=!![],_0x2cb7e9(),_0x4d4e6b['close'](),_0x4d4e6b=null;}const _0x448194=_0xfbcc90=>{const _0x2f1bac=new Error('probe\x20error:\x20'+_0xfbcc90);function _0x44c5de(_0x10ad5c,_0x320285){return _0x6f43(_0x10ad5c-0x34b,_0x320285);}_0x2f1bac['transport']=_0x4d4e6b[_0x44c5de(0x6b5,0x5e2)],_0x5bbc7f(),this[_0x44c5de(0x5c4,0x5ad)](_0x44c5de(0x6aa,0x602),_0x2f1bac);};function _0x31f52b(){_0x448194('transport\x20closed');}function _0x3d35e9(){_0x448194('socket\x20closed');}function _0x3d3f45(_0xf9d3c1){function _0x4acad4(_0x2479c4,_0xf0e594){return _0x6f43(_0x2479c4- -0x2c5,_0xf0e594);}_0x4d4e6b&&_0xf9d3c1[_0x4acad4(0xa5,0x80)]!==_0x4d4e6b[_0x4acad4(0xa5,0x152)]&&_0x5bbc7f();}const _0x2cb7e9=()=>{_0x4d4e6b['removeListener'](_0x32509b(0x1a9,0x1e9),_0x570c5c);function _0x32509b(_0x24ced1,_0x37b71b){return _0x6f43(_0x24ced1- -0x11e,_0x37b71b);}_0x4d4e6b['removeListener']('error',_0x448194),_0x4d4e6b['removeListener'](_0x32509b(0x138,0x9a),_0x31f52b),this[_0x32509b(0x134,0x24f)]('close',_0x3d35e9),this['off']('upgrading',_0x3d3f45);};_0x4d4e6b['once']('open',_0x570c5c),_0x4d4e6b[_0x4dbfb0(0x414,0x3b3)]('error',_0x448194),_0x4d4e6b['once']('close',_0x31f52b),this[_0x4dbfb0(0x414,0x451)]('close',_0x3d35e9);function _0x4dbfb0(_0x58ae3c,_0x206e71){return _0x6f43(_0x58ae3c-0xd9,_0x206e71);}this[_0x4dbfb0(0x414,0x463)]('upgrading',_0x3d3f45),this[_0x4dbfb0(0x46a,0x4ab)][_0x4dbfb0(0x4b9,0x497)](_0x4dbfb0(0x419,0x52d))!==-0x1&&_0x50c726!=='webtransport'?this['setTimeoutFn'](()=>{!_0x373be6&&_0x4d4e6b['open']();},0xc8):_0x4d4e6b['open']();}[_0x2d7030(0x3c0,0x4b5)](data){this[_0x5ac2ce(0x266,0x16d)]=this['_filterUpgrades'](data['upgrades']);function _0x5ac2ce(_0xc7d75c,_0x4edb4b){return _0x6f43(_0x4edb4b- -0x224,_0xc7d75c);}super[_0x5ac2ce(0x2a,0x2f)](data);}['_filterUpgrades'](_0x12e269){const filteredUpgrades=[];for(let _0x5c909f=0x0;_0x5c909f<_0x12e269['length'];_0x5c909f++){if(~this['transports']['indexOf'](_0x12e269[_0x5c909f]))filteredUpgrades['push'](_0x12e269[_0x5c909f]);}return filteredUpgrades;}}let Socket$1=class Socket extends SocketWithUpgrade{constructor(_0xd82df1,_0x3c42d4={}){function _0x528ee9(_0xeeee56,_0x50e4c5){return _0x6f43(_0x50e4c5-0x38f,_0xeeee56);}const _0x5de45b=typeof _0xd82df1===_0x528ee9(0x718,0x6f4)?_0xd82df1:_0x3c42d4;(!_0x5de45b[_0x528ee9(0x58d,0x5e7)]||_0x5de45b[_0x528ee9(0x560,0x5e7)]&&typeof _0x5de45b[_0x528ee9(0x6bb,0x5e7)][0x0]==='string')&&(_0x5de45b[_0x528ee9(0x64b,0x5e7)]=(_0x5de45b['transports']||['polling','websocket','webtransport'])['map'](_0xe2bd9e=>transports[_0xe2bd9e])['filter'](_0x47faab=>!!_0x47faab)),super(_0xd82df1,_0x5de45b);}};function url(_0x4793e0,_0x1e88bb='',_0x302e3c){let _0x4f504e=_0x4793e0;_0x302e3c=_0x302e3c||typeof location!=='undefined'&&location;if(null==_0x4793e0)_0x4793e0=_0x302e3c[_0x2aa99d(0x7f9,0x7ae)]+'//'+_0x302e3c[_0x2aa99d(0x7c3,0x749)];typeof _0x4793e0===_0x2aa99d(0x696,0x6bc)&&('/'===_0x4793e0['charAt'](0x0)&&('/'===_0x4793e0[_0x2aa99d(0x73f,0x7b8)](0x1)?_0x4793e0=_0x302e3c['protocol']+_0x4793e0:_0x4793e0=_0x302e3c[_0x2aa99d(0x810,0x749)]+_0x4793e0),!/^(https?|wss?):\/\//[_0x2aa99d(0x698,0x5e1)](_0x4793e0)&&(_0x2aa99d(0x6f5,0x611)!==typeof _0x302e3c?_0x4793e0=_0x302e3c['protocol']+'//'+_0x4793e0:_0x4793e0=_0x2aa99d(0x6aa,0x712)+_0x4793e0),_0x4f504e=parse(_0x4793e0));if(!_0x4f504e[_0x2aa99d(0x84b,0x78f)]){if(/^(http|ws)$/[_0x2aa99d(0x6a7,0x5e1)](_0x4f504e[_0x2aa99d(0x791,0x7ae)]))_0x4f504e['port']='80';else/^(http|ws)s$/[_0x2aa99d(0x57d,0x5e1)](_0x4f504e['protocol'])&&(_0x4f504e[_0x2aa99d(0x8a5,0x78f)]='443');}_0x4f504e['path']=_0x4f504e[_0x2aa99d(0x59c,0x693)]||'/';function _0x2aa99d(_0x2d07a6,_0x4355e5){return _0x6f43(_0x4355e5-0x3db,_0x2d07a6);}const _0x48c2b6=_0x4f504e['host'][_0x2aa99d(0x85a,0x7bb)](':')!==-0x1,_0x280a31=_0x48c2b6?'['+_0x4f504e[_0x2aa99d(0x6f1,0x749)]+']':_0x4f504e[_0x2aa99d(0x731,0x749)];return _0x4f504e['id']=_0x4f504e[_0x2aa99d(0x878,0x7ae)]+_0x2aa99d(0x6c8,0x735)+_0x280a31+':'+_0x4f504e[_0x2aa99d(0x893,0x78f)]+_0x1e88bb,_0x4f504e['href']=_0x4f504e['protocol']+_0x2aa99d(0x779,0x735)+_0x280a31+(_0x302e3c&&_0x302e3c[_0x2aa99d(0x6af,0x78f)]===_0x4f504e[_0x2aa99d(0x733,0x78f)]?'':':'+_0x4f504e[_0x2aa99d(0x772,0x78f)]),_0x4f504e;}const withNativeArrayBuffer=typeof ArrayBuffer==='function',isView=_0x153bb5=>{function _0x3642f7(_0x1e5045,_0x3b811d){return _0x6f43(_0x3b811d- -0x2e8,_0x1e5045);}return typeof ArrayBuffer['isView']==='function'?ArrayBuffer['isView'](_0x153bb5):_0x153bb5[_0x3642f7(-0x36,-0xf1)]instanceof ArrayBuffer;},toString=Object[_0x2d7030(0x5cc,0x567)][_0x2d7030(0x680,0x5b7)],withNativeBlob=typeof Blob===_0x2d7030(0x656,0x5cb)||typeof Blob!==_0x2d7030(0x534,0x498)&&toString['call'](Blob)==='[object\x20BlobConstructor]',withNativeFile=typeof File===_0x2d7030(0x5c0,0x5cb)||typeof File!==_0x2d7030(0x47d,0x498)&&toString[_0x2d7030(0x48d,0x500)](File)==='[object\x20FileConstructor]';function _0x10f8(){const _0xd8820f=['Ahr0Chm6','Axb2nNvYAq','Aw1WB3j0twfW','zgvJB2rLza','Dg9vChbLCKnHC2u','AgfZt3DUuhjVCgvYDhK','l2f1DgGVDJeVCMvZzxqTCgfZC3DVCMq','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','zgvWBg95','CMvTB3zLq3vZDg9Trgf0ywjHC2u','DxbNCMfKAw5N','x2DLDfnVy2TLDa','x29UugfJA2v0','DxbKyxrLrgf0yq','DxbKyxrLrw52','Ahr0Chm6lY8','B25KyxrH','y29UBMvJDf9LCNjVCG','zgf0ywjHC2u','B25Jzq','twLJCM9ZB2z0lLHnteHuvfa','ywnJzxnZx3rVA2vU','zMXHz3m','DMvYAwz5','D2vIDhjHBNnWB3j0','x2fUEu91DgDVAw5NtgLZDgvUzxjZ','z2v0q29UBMvJDgLVBLn0yxrL','p29WzxjHDgLVBJ11ChnLCNq','DxbKyxrLt3b0Aw9UCW','Dhj5q291BNq','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbSB2DZ','y3jLyxrLvxjP','BNvT','CMvZzxq','C3bSAxq','AwXSzwDHBcbHDhrHy2HTzw50CW','C2v0twLU','DgLTzxn0yw1WuMvXDwvZDhm','BMf2AwDHDg9Y','x3f1zxvL','CMvJB25Uzwn0Aw9U','x3jLy29UBMvJDgLUzW','ruLp','ohrMAKT0tG','Dw5ZDwjZy3jPyMu','Dg9tDhjPBMC','Ahr0CenSAwvUDa','CMvJB25Uzwn0','DxnLCG','BM9VCa','oI8V','yxv0Ag9YAxr5','q3vZDg9Trgf0ywjHC2vnyw5Hz2vY','x21LDgHVza','CgfJA2v0q3jLyxrL','DxbNCMfKzuvYCM9Y','CMvHza','DhjHBNnWB3j0','B25WAw5N','x3HOCG','x3bVBgW','B2jQzwn0','Dg9mB3DLCKnHC2u','BxvSDgLWyxj0l2zVCM0Tzgf0yq','CMvJB25Uzwn0x2zHAwXLza','zNvUy3rPB24','BMfTzq','AxnbCNjHEq','C3rHy2S','B25bDxrOu3rHDgvdAgfUz2u','Ag9ZDa','q0Xpu0ve','l2zPBgvZ','x29Wzw4','D2L0AenYzwrLBNrPywXZ','ChjVyMu','x2nYzwf0zq','zgLZy29UBMvJDa','DgLTzxn0yw1WugfYyw0','Bwf4','Ec10B3rHBc1JB3vUDa','x3nLDfn0yxrL','DgLTzw91Da','C2TPCfjLy29UBMvJDa','x3bVCNq','x3bYB2jL','zg93BMXVywq','l3n0B3jHz2uVyNvJA2v0CY8','D2vIDhjHBNnWB3j0igvYCM9Y','AM9PBMLUzW','zw5JB2rLCG','z2v0u2vZC2LVBG','x3jLy29UBMvJDgLVBKrLBgf5','vw5ZDxbWB3j0zwqGsfruucbTzxrOB2q6ia','l3nPz24','Aw52B2TL','zgv0zwn0q3vZDg9Trgf0ywjHC2u','y3jLyxrLu29JA2v0','rgvJB2rLCG','AxnvC2LUz0n1C3rVBurHDgfIyxnL','CgvUzgLUzW','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','y29VA2LLsMfY','DxjP','zM9YrwfJAa','x3vWz3jHzgvZ','Bwf0y2G','yMfZzvvsta','C2v0vhjHBNnWB3j0','C2vSzwn0','tw96v2vIu29JA2v0','DxbKyxrLrMLSzu1LDgfKyxrH','CgfYC2vY','x29WDhm','B3jPz2LU','ywrKvhjHAwXPBMDtBgfZAa','AML0DgvY','zw52','Dw5Yzwy','B25cCM9HzgnHC3q','zMLSzq','B25eyxrH','y3jLyxrL','CMvTB3zLtgLZDgvUzxi','C29JA2v0','CMvTB3zLq2HHBM5LBa','rvzftLq','B3bLCMf0Aw9UigHHCYb0Aw1LzcbVDxq','y2fWDhvYzvn0ywnRvhjHy2u','C291CMnL','C3rYAw5NAwz5','A2v5','CMvJB25Uzwn0x2vYCM9Y','x29UrhjHAw4','AwXPA2u','AxnezwXLDgu','p3vWC2vYDd10CNvL','DgHLBG','x29UrxjYB3i','x2PVAw4','Cg9YDa','zw50CNLWB2LUDa','yM9KEq','Cg9ZDgDYzxnFy2HHBMDLCW','qKLoqvjzx0fdsW','Cg9ZDgDYzxniB3n0','y2XPzw50','B2zMC2v0','C2v0v29YA3nWywnLswq','nduZmJmZmgLeCNfpBq','Aw8GC2vYDMvYigrPC2nVBM5Ly3q','Dg9ku09o','z2v0qNvJA2v0','x3vYAq','y2XVC2LUzW','mteXndy3nNfoC1z5wa','BM93','x3bPBMDjBNrLCNzHBa','x2rYywLUuxvLDwu','x3jLy29UBMvJDgLVBG','DxbZzxj0','D2fYBG','y2XVC2vK','zw1PDej1zMzLCMvK','yxjNCW','B25KAxnJB25Uzwn0','BgLZDej1y2TLDhm','rMfPBgvKihrVignVBM5Ly3qGywz0zxiG','x3bYzxzcDwzMzxjmzw4','x3rYAwDNzxi','mtK2otj3zvPnAgW','ChjVDg9JB2W','B3bLCMf0B3i','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','CMvKDwnL','DhLWzq','reLtq09otKvdva','C2v0twf4','B25JB25Uzwn0','x3bVBgXPBMC','ChjVDg9JB2XwzxjZAw9U','y2HHCKf0','CgLUzW','y2HHBM5LBhm','Aw5KzxHpzG','BwfRzvjLzG','yNvJA2v0swq','zgf0yq','l2zPBgvZlW','yxnJzw5KAw5N','yxv0B1vUCMvM','zMXVB3i','C2vZC2LVBG','rMfPBgvKihrVignVChKGzMLSzq','x2rLC3rYB3K','zw5XDwv1zq','zgLZy29UBMvJDgvK','zg9dBg9Zzq','nLjhvxjPqW','ChjLC2vUy2u','z2v0vwLUDde2','y29SDw1U','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','x3bSywnLAg9SzgvY','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','yxbWzw5K','zg9xCML0zq','zNvUy3rPB25Z','ywjVCNq','CMvHBhrPBwu','C2HPzNq','y2HHCKnVzgvbDa','C2vJDxjL','B25dBg9Zzq','x29Uq2XVC2u','BMv0D29YAYbJB25Uzwn0Aw9UigXVC3q','zMX1C2G','C3rVCMfNzq','yxjYyxLcDwzMzxi','CMvHzhLtDgf0zq','y29UDgvUDfr5Cgu','C3vIC3rYAw5N','qunl','zxzLBNrLBwL0DgvYmW','x3nLBMrqywnRzxq','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','vw5RBM93BIbLCNjVCG','Cg9ZDa','z2v0vxnLCG','BwfW','zMLSDgvY','x3bPBMDuAw1LB3v0','rujHyvnfCNjVCG','l2z1BMn0Aw9UCY92mq','q0HbtK5ftf9fuLjpuG','y29UBMvJDa','nLPWzuHkva','l3n0B3jHz2uVDxnHz2u','CgvYAw9K','DhjHBNnMB3jT','BM90Awz5t3v0z29PBMDmAxn0zw5LCNm','yJy0','x2XHC3rpzMzZzxq','yMXVyG','C2v0sML0DgvY','EgrVBwfPBG','C2L6zq','q09otKvdva','yxv0B0nVBM5Ly3q','zw5JB2rLqxntDhjPBMC','rMfPBgvKihrVignYzwf0zsbZAwDUzwqGvvjm','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','y29Kzq','D29YA3nWywnLswq','CxvLCNK','zgvJB2rLCG','zw5JB2rLqxncAw5HCNK','qwnJzxb0','Bwf5yMvszwnVBM5Ly3rpBK9Wzw4','z2v0u3rHDgu','AM9PBG','ChjVzhvJDa','yxbPs2v5','y29UBMvJDgLVBLn0yxrL','C2v0DxbjBNrLCMnLChrVCNm','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','y2XLyw51Ca','yxr0zw1WDhm','B25VCgvU','B25pCgvU','l2LUzM8','yNL0zuXLBMD0Aa','yNvMzMvYCW','x2HHC1bPBMDfEhbPCMvK','l3n0B3jHz2uVyNvJA2v0CW','zMLSDgvYCW','yMLUyxj5vhLWzq','CgfYC2vYigvYCM9Y','yNjVywrJyxn0oG','ywrKrxzLBNrmAxn0zw5LCNm','qxv0AenSAwvUDa','yNvMzMvY','zNjLzxPL','zw5NAw5L','Bwv0ywrHDge','x2jLzM9YzxvUBg9Hzev2zw50tgLZDgvUzxi','x21HEfbHEwXVywq','B25YzwfKExn0yxrLy2HHBMDL','CMvJB25qywnR','ChvZAa','Bg9JywXbzgrYzxnZ','Ag9ZDg5HBwu','tufyx1nbrKvFsu5uruDfuG','x2nVB2TPzuPHCG','C2v0sxrLBq','DxjS','DgvZDa','D3jPDgfIBgu','zhvYyxrPB24','CMvTB3zLqwXStgLZDgvUzxjZ','x3rYyw5ZCg9YDhncEu5HBwu','p29WzxjHDgLVBJ1ZzwXLy3q','l2zPBgvZl21VDMu','y29UzMLN','Chv0','Cgz4','ChjPB3jxzwjZB2nRzxrtDwnJzxnZ','uMvXDwvZDcbMywLSzwq','Bwv0Ag9K','y29UDgfPBNm','AgvHCNrIzwf0sw50zxj2ywW','w29IAMvJDcbpyMPLy3rD','x2nSzwfUDxa','B25LCNjVCG','y29WEq','x3bHy2TLDa','CMvXDwvZDfrPBwvVDxq','Cg9UzW','Cgf1C2u','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','BxvSDgLWBgv4','CMvWBgfJzq','y2XVC2vpBKjLzM9YzxvUBg9Hza','C2vUza','CMvJB3zLCMvK','CMvJB25Uzwn0Aw9UrgvSyxLnyxG','CMvJB25Uzwn0Aw9UrgvSyxK','BgvHDMLUzW','DhjHBNnWB3j0igvYCM9Y','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','DhjHBNnWB3j0ignSB3nL','zwjHyxmUyxv0Ac5ZzxnZAw9U','yMLUza','B3jKzxi','yNjVywrJyxn0','CgfYC2u','AxnqyxLSB2fKvMfSAwq','C2v0u2vZC2LVBKLUDgvYBMfS','C2v0','x3jLC2v0ugLUz1rPBwvVDxq','DgfIBgu','ywrKq29VA2LLCW','D3jPDgvcDwzMzxi','DxnLCKLUzM8','Dw5KzwzPBMvK','EgHYihbVBgWGzxjYB3i','B3b0CW','BgLRzq','C2v0qxv0AfrVA2vU','t2jQzwn0','x2LUzgv4','z2v0v29YA3nWywnLswq','yxnZAwDU','z2v0sxrLBq','BNnWCW','B25bBNLpDxrNB2LUzW','x3bPBMDuAw1LB3v0vgLTzq','C2v0u2vZC2LVBG','icHtDgf0Dxm6ia','BgvUz3rO','u1vcu0nssujfra','ywnR','x2DLDfDYAxrHyMXLugfJA2v0CW','y29UBMvJDgvK','C2XPy2u','Bg9N','DxbKyxrL','CNbJ','Cgf0y2G','C3rHDgu','qujdrevgr0HjsKTmtu5puffsu1rvvLDywvPHyMnKzwzNAgLQA2XTBM9WCxjZDhv2D3H5EJaXmJm0nty3odKRlW','C29YDej5','B2zM','B25iyw5KC2HHA2u','CgLWzvrOCM91z2G','B3b0Aw9UCW','y2XVC2u','C2vUzej1zMzLCG','DhjHBNnWB3j0CW','mvbPrLnKsq','CMvZB2X1DgLVBJ1TzxjNzs1KDxbSAwnHDgvZlhjLDhvYBJ1YzxbYzxnLBNrHDgLVBG','B25TzxnZywDL','C3nSrw5HyMXLza','y3jLyxrLuMvXDwvZDa','CMv0CMLLCW','y29Uy2f0','rw5JB2rLCG','z2v0tg9NCW','rMfPBgvKihrVigDLDcbZDg9YywDLihvZywDL','DgfRzujPBMfYEurHDge','ywrKrxzLBNrmAxn0zw5LCG','zM9Yy2vozxC','CgfYC2vdB29RAwvZ','zNjVBq','C3vIC2nYAxb0Aw9UCW','C3rHDhvZ','AgvHzgvYCW','x3bPza','CMvWBgfJzxi','oti4nZq1AMjPAK5X','BMv3tgLZDgvUzxi','CMv2AxzLCG','Dg9WAwm','Bg9HzfnLC3nPB24','AgfZq3vZDg9Trgf0ywjHC2u','Cg9SBenVBxbSzxrL','rMfPBgvKihrVigDLDcbIDwnRzxq','CMv0DxjUihrOAxm','zgLZy29UBMvJDgLUzW','y3jLyxrLu2LNBMvKvxjS','CMvHzhK','zw1PDfjLC2vYDMvK','C3vJy2vZCW','y29TChjLC3m','C2v0vgLTzw91DezU','C29JA2v0qwrHChrLCG','CgfZC3DVCMq','CMvTB3zLqxv0AfrVA2vU','B25JBg9Zzq','ms4WlJa','C2LK','l2rLCgXVEq','BgLTAxq','DhjHBNnWB3j0t3b0Aw9UCW','CgLK','y3jLzgvUDgLHBhm','zw5JB2rL','AM9PBMvK','Cg93','y3vYCMvUDfnLC3nPB24','CMvXDwvZDhm','BNvTyMvY','zxHLyW','CxvLCNLlzxK','y2vYDa','zNjVBvf1zxvL','zw1PDa','DxbNCMfKzq','CMfUzg9T','zxH0CMfizwfKzxjZ','ywnRCW','mty5nJq2ofzptfbnra','B25qywnRzxq','Cg9ZDgDYzxnFy2HHBMDLCZO','D3jPDgu','p29WzxjHDgLVBJ1PBNnLCNq','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','qKLoqvjzx0vwru5u','y2fSBa','C2vHCMnO','x2rHDge','ndaXmhrHAhzQsG','AxnwAwv3','CMvJB25Uzwn0x2f0DgvTChq','AgfZtgLZDgvUzxjZ','ndqZ','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','zgf0yufYCMf5','C2v0vgLTzw91Da','zw1PDev2zw50','l2f1DgGVDJeVCMvMCMvZAa','x3DYAxrLCG','CMvTzw1IzxjvCgDYywrL','Cgf1C2vK','zgv0zwn0zwrdB25MAwC','l21LDgfKyxrH','zxjYB3jLza','zxjYB3i','AgfUzgXLrxjYB3i','A2v5CW','y2LWAgvYCW','Bw92zq','z2v0twv0CMLJCW','x3jLAM9PBG','Cgf0Aa','zw1PDfDPDgHby2S','y2XLyxi','C2v0vwLUDdG','AM9PBMvKt25Jzq','q29UDgvUDc10ExbL','y29TBw9U','zxHLy3v0zvf1zxj5','CMvXDwvZDhndB3vUDa','mZC0nZC5m21eyu5eAq','q09otKvdvf9fuLjpuG','z2v0vwLUDdmY','zgvZy3jPChrPB24','x2HVC3rUyw1L','Ahr0Chm','B3bLBG','x2nSB3nL','l2z1BMn0Aw9UCY92ms8','DMfSDwvZ','y2XLyxjuAw1LB3v0rM4','yxjYyxLIDwzMzxi','zgvJB2rLu3rYAw5N','sxqGC2vLBxmGEw91igfYzsb0CNLPBMCGDg8GCMvHy2GGysbtB2nRzxqUsu8GC2vYDMvYigLUihyYlNGGD2L0AcbHihyZlNGGy2XPzw50lcbIDxqGDgHLEsbHCMuGBM90ignVBxbHDgLIBguGkg1VCMuGAw5MB3jTyxrPB24GAgvYztOGAhr0Chm6lY9ZB2nRzxqUAw8Vzg9JCY92mY9TAwDYyxrPBMCTzNjVBs0YlxGTDg8TmY0WlYK','zMfJDg9Y','x2fUEuXPC3rLBMvYCW','BMvX','Cg9SBgLUzW','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','CMvJB25Uzwn0qxr0zw1WDhm','zhjHAw4','x3rPBwvVDxq','Dw50CMfJAW','AgfUzhnOywTL','Bg9JywXOB3n0','CMfUzg9TAxPHDgLVBKzHy3rVCG','C3vICW','DMfSDwu','C2v0DxbizwfYDgjLyxq','ChvIBgLJ','CMvJB25Uzwn0Aw9Uqxr0zw1WDhm','AwrZ','C3rYAw5N','CMfUz2u','B3bLCMf0Aw9U','C2nOzw1H','yxv0Aa','D2vIC29JA2v0','AgfUzgXLqxv0AevYCM9Y','y2XLyxjuAw1LB3v0','C2LNBK91Da','rMfPBgvKihrVig1VDMuGzMLSzq','x3bPBMDuAw1LB3v0vgLTzxi','z2v0v3jPDgvY','CMvJzwL2zuj1zMzLCG','B25WywnRzxq','ywn0AxzL','y2XLyxjtzxnZAw9U','y3jLyxrLvhjHBNnWB3j0','B25fCNjVCG','x2nHBgXIywnRCW','DM9SyxrPBgu','B3bLBMLUzW','qMvHCMvYia','l2f1DgGVDJeVC2LNBM91Da','zw50CMLLCW','CMvJB25ZDhj1y3rVCG','zgvSzxrL','AgfZ','CMvTB3zL','zMLUAxnOzwrszwnVBNn0CNvJDgLVBG','C3bSAwnL','yxr0ywnOBwvUDhm','vhjHBNnWB3j0rxjYB3i','yxbWBhK','B25Hy2S','Dw5ZAgLMDa','zgvSzxrLt3b0Aw9UCW','ChjVDg90ExbL','C3vIrxzLBNrZ','B25qB3n0z3jLC0nOyw5Nzxm','x3jLywr5u3rHDgu','CMv0DxjUpxjLChjLC2vUDgf0Aw9U','yMvMB3jLDw5SB2fK','zM9Yy2vKignSB3nL','y3vYCMvUDfnJAgvTyq','CMvZCg9UC2u','BNnW','sfruucbYzxf1zxn0igzHAwXLza','mJy5mJK3ntjcCNjjD2m','rNvUy3rPB25Zq2XPzw50','CgfJA2v0','l3nKAY92ms8','D3nZ','x3rYyw5ZCg9YDa','y3jLyxrLqNvJA2v0','z2v0','zg9qB2XS','l3jWyY8','Cg9ZDgDYzxnty2HLBwe','BwvZC2fNzq','DhjHy2S','Cgf0Ae5HBwvZ','yMfJA29MzG','zxzLBNq','x29Utg9Hza','BgLZDgvUzxjZ','Cg9W','ChjLzMvY','u3rVCMfNzunSAwvUDa','C29JA2v0t3b0Aw9UCW','CMvXDwvZDa','BgLZDa'];_0x10f8=function(){return _0xd8820f;};return _0x10f8();}function isBinary(_0x457eb4){return withNativeArrayBuffer&&(_0x457eb4 instanceof ArrayBuffer||isView(_0x457eb4))||withNativeBlob&&_0x457eb4 instanceof Blob||withNativeFile&&_0x457eb4 instanceof File;}function hasBinary(_0x21e319,toJSON){function _0x51845a(_0x29207b,_0x2db400){return _0x6f43(_0x2db400- -0x196,_0x29207b);}if(!_0x21e319||typeof _0x21e319!==_0x51845a(0x130,0x1cf))return![];if(Array[_0x51845a(0x2c8,0x1d5)](_0x21e319)){for(let _0xc0f76d=0x0,_0x4db6cc=_0x21e319[_0x51845a(0x1b3,0xaf)];_0xc0f76d<_0x4db6cc;_0xc0f76d++){if(hasBinary(_0x21e319[_0xc0f76d]))return!![];}return![];}if(isBinary(_0x21e319))return!![];if(_0x21e319[_0x51845a(0x1fc,0x229)]&&typeof _0x21e319[_0x51845a(0x1c3,0x229)]===_0x51845a(0xc5,0x1d3)&&arguments[_0x51845a(0x50,0xaf)]===0x1)return hasBinary(_0x21e319[_0x51845a(0x24d,0x229)](),!![]);for(const _0x13015e in _0x21e319){if(Object['prototype'][_0x51845a(0x1eb,0x197)]['call'](_0x21e319,_0x13015e)&&hasBinary(_0x21e319[_0x13015e]))return!![];}return![];}function deconstructPacket(_0x240626){const _0x3d3ea8=[],_0x43b9c3=_0x240626[_0x83d958(-0x60,0x50)],_0x105179=_0x240626;function _0x83d958(_0x40ab47,_0x3d3e81){return _0x6f43(_0x3d3e81- -0x393,_0x40ab47);}return _0x105179[_0x83d958(-0xc8,0x50)]=_deconstructPacket(_0x43b9c3,_0x3d3ea8),_0x105179['attachments']=_0x3d3ea8['length'],{'packet':_0x105179,'buffers':_0x3d3ea8};}function _deconstructPacket(data,_0x3bbbfa){if(!data)return data;function _0x433a28(_0x3fe1db,_0xa5a6cf){return _0x6f43(_0xa5a6cf- -0x1a,_0x3fe1db);}if(isBinary(data)){const _0x4f37ea={'_placeholder':!![],'num':_0x3bbbfa['length']};return _0x3bbbfa[_0x433a28(0x231,0x1e5)](data),_0x4f37ea;}else{if(Array['isArray'](data)){const _0x3bb7f6=new Array(data['length']);for(let _0x4ff508=0x0;_0x4ff508<data[_0x433a28(0x2a3,0x22b)];_0x4ff508++){_0x3bb7f6[_0x4ff508]=_deconstructPacket(data[_0x4ff508],_0x3bbbfa);}return _0x3bb7f6;}else{if(typeof data===_0x433a28(0x2b0,0x34b)&&!(data instanceof Date)){const _0x3b0ef5={};for(const _0x55d3cb in data){Object[_0x433a28(0x228,0x2eb)][_0x433a28(0x345,0x313)]['call'](data,_0x55d3cb)&&(_0x3b0ef5[_0x55d3cb]=_deconstructPacket(data[_0x55d3cb],_0x3bbbfa));}return _0x3b0ef5;}}}return data;}function reconstructPacket(_0x54f1ae,_0x4ce55a){_0x54f1ae[_0x461de9(0x464,0x481)]=_reconstructPacket(_0x54f1ae['data'],_0x4ce55a);function _0x461de9(_0x5dc509,_0x2fec9e){return _0x6f43(_0x5dc509-0x81,_0x2fec9e);}return delete _0x54f1ae[_0x461de9(0x380,0x326)],_0x54f1ae;}function _reconstructPacket(data,_0x22bd0a){if(!data)return data;if(data&&data[_0x5763ed(0x304,0x306)]===!![]){const isIndexValid=typeof data[_0x5763ed(0x322,0x25b)]===_0x5763ed(0x20e,0x1a0)&&data[_0x5763ed(0x1f7,0x25b)]>=0x0&&data['num']<_0x22bd0a['length'];if(isIndexValid)return _0x22bd0a[data[_0x5763ed(0x22f,0x25b)]];else throw new Error(_0x5763ed(0x240,0x25e));}else{if(Array['isArray'](data))for(let _0x5769b6=0x0;_0x5769b6<data['length'];_0x5769b6++){data[_0x5769b6]=_reconstructPacket(data[_0x5769b6],_0x22bd0a);}else{if(typeof data==='object')for(const _0x50c9ff in data){Object[_0x5763ed(0x33d,0x218)][_0x5763ed(0x226,0x240)]['call'](data,_0x50c9ff)&&(data[_0x50c9ff]=_reconstructPacket(data[_0x50c9ff],_0x22bd0a));}}}function _0x5763ed(_0x44170a,_0xa46920){return _0x6f43(_0xa46920- -0xed,_0x44170a);}return data;}const RESERVED_EVENTS$1=[_0x2d7030(0x36e,0x42b),_0x2d7030(0x609,0x59b),_0x2d7030(0x531,0x5d7),_0x2d7030(0x58d,0x4d8),_0x2d7030(0x549,0x4d0),_0x2d7030(0x6aa,0x605)],protocol=0x5;var PacketType;(function(_0x5e8d60){function _0xcb4fed(_0x56a1e4,_0x2bce78){return _0x6f43(_0x2bce78- -0x379,_0x56a1e4);}_0x5e8d60[_0x5e8d60['CONNECT']=0x0]='CONNECT',_0x5e8d60[_0x5e8d60['DISCONNECT']=0x1]=_0xcb4fed(0xe7,0x5f),_0x5e8d60[_0x5e8d60[_0xcb4fed(0x107,0x2d)]=0x2]=_0xcb4fed(0xf9,0x2d),_0x5e8d60[_0x5e8d60[_0xcb4fed(-0x257,-0x1bd)]=0x3]=_0xcb4fed(-0x143,-0x1bd),_0x5e8d60[_0x5e8d60[_0xcb4fed(0x54,-0xb7)]=0x4]='CONNECT_ERROR',_0x5e8d60[_0x5e8d60['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x5e8d60[_0x5e8d60[_0xcb4fed(0x120,0x3f)]=0x6]=_0xcb4fed(-0x13,0x3f);}(PacketType||(PacketType={})));class Encoder{constructor(_0x7fb042){function _0x38c96b(_0x69ddff,_0x2d7422){return _0x6f43(_0x2d7422- -0x274,_0x69ddff);}this[_0x38c96b(0x89,-0x8)]=_0x7fb042;}['encode'](_0x2cc0db){if(_0x2cc0db['type']===PacketType['EVENT']||_0x2cc0db[_0x1e90ac(0x1b3,0x1f3)]===PacketType[_0x1e90ac(-0x68,-0x11d)]){if(hasBinary(_0x2cc0db))return this[_0x1e90ac(-0x46,0x9f)]({'type':_0x2cc0db['type']===PacketType[_0x1e90ac(0x182,0x259)]?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x2cc0db[_0x1e90ac(0xea,0x1da)],'data':_0x2cc0db['data'],'id':_0x2cc0db['id']});}function _0x1e90ac(_0x1c74ef,_0x4b004f){return _0x6f43(_0x1c74ef- -0x224,_0x4b004f);}return[this[_0x1e90ac(-0x4d,-0xdd)](_0x2cc0db)];}['encodeAsString'](_0x1d0edb){let _0x56522a=''+_0x1d0edb[_0x6c4596(0x1a7,0x253)];(_0x1d0edb['type']===PacketType['BINARY_EVENT']||_0x1d0edb['type']===PacketType['BINARY_ACK'])&&(_0x56522a+=_0x1d0edb['attachments']+'-');_0x1d0edb[_0x6c4596(0xde,0x1d7)]&&'/'!==_0x1d0edb['nsp']&&(_0x56522a+=_0x1d0edb[_0x6c4596(0xde,0xf)]+',');null!=_0x1d0edb['id']&&(_0x56522a+=_0x1d0edb['id']);null!=_0x1d0edb['data']&&(_0x56522a+=JSON[_0x6c4596(0x17a,0x1dd)](_0x1d0edb['data'],this['replacer']));function _0x6c4596(_0x99584e,_0xb6b89f){return _0x6f43(_0x99584e- -0x230,_0xb6b89f);}return _0x56522a;}[_0x2d7030(0x4fa,0x440)](_0x494688){const _0x47762b=deconstructPacket(_0x494688),_0x368816=this['encodeAsString'](_0x47762b[_0x390cd2(0xb7,0xb0)]);function _0x390cd2(_0x349d37,_0x49ccf2){return _0x6f43(_0x349d37- -0x25b,_0x49ccf2);}const _0x54403c=_0x47762b['buffers'];return _0x54403c[_0x390cd2(0xa8,0x16d)](_0x368816),_0x54403c;}}function isObject(_0x760fb8){function _0x40e25f(_0x17dd79,_0x21dbc8){return _0x6f43(_0x17dd79-0x21d,_0x21dbc8);}return Object[_0x40e25f(0x522,0x408)]['toString']['call'](_0x760fb8)===_0x40e25f(0x432,0x4ea);}class Decoder extends Emitter{constructor(_0x365c0a){super();function _0x41b947(_0x1075f9,_0x13686c){return _0x6f43(_0x1075f9-0x1e2,_0x13686c);}this[_0x41b947(0x451,0x32d)]=_0x365c0a;}['add'](_0x5d1349){function _0x2271f6(_0x4b20a3,_0x59dac4){return _0x6f43(_0x4b20a3-0xcd,_0x59dac4);}let _0x5b6a74;if(typeof _0x5d1349==='string'){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x5b6a74=this[_0x2271f6(0x39a,0x43b)](_0x5d1349);const isBinaryEvent=_0x5b6a74[_0x2271f6(0x4a4,0x4b1)]===PacketType['BINARY_EVENT'];isBinaryEvent||_0x5b6a74['type']===PacketType[_0x2271f6(0x485,0x4a7)]?(_0x5b6a74[_0x2271f6(0x4a4,0x4a0)]=isBinaryEvent?PacketType[_0x2271f6(0x473,0x3aa)]:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x5b6a74),_0x5b6a74['attachments']===0x0&&super[_0x2271f6(0x346,0x2fb)]('decoded',_0x5b6a74)):super[_0x2271f6(0x346,0x414)]('decoded',_0x5b6a74);}else{if(isBinary(_0x5d1349)||_0x5d1349['base64']){if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');else _0x5b6a74=this[_0x2271f6(0x3c6,0x351)][_0x2271f6(0x330,0x32c)](_0x5d1349),_0x5b6a74&&(this[_0x2271f6(0x3c6,0x444)]=null,super[_0x2271f6(0x346,0x262)]('decoded',_0x5b6a74));}else throw new Error('Unknown\x20type:\x20'+_0x5d1349);}}['decodeString'](_0x13802b){let _0x4a3811=0x0;const _0x2d20fe={'type':Number(_0x13802b[_0x1529c3(0x2f7,0x40e)](0x0))};if(PacketType[_0x2d20fe[_0x1529c3(0x2f1,0x3dc)]]===undefined)throw new Error('unknown\x20packet\x20type\x20'+_0x2d20fe['type']);if(_0x2d20fe[_0x1529c3(0x2f1,0x277)]===PacketType[_0x1529c3(0x1b7,0x214)]||_0x2d20fe['type']===PacketType['BINARY_ACK']){const _0x25482e=_0x4a3811+0x1;while(_0x13802b['charAt'](++_0x4a3811)!=='-'&&_0x4a3811!=_0x13802b[_0x1529c3(0x15f,0x92)]){}const _0x9eb01f=_0x13802b['substring'](_0x25482e,_0x4a3811);if(_0x9eb01f!=Number(_0x9eb01f)||_0x13802b['charAt'](_0x4a3811)!=='-')throw new Error('Illegal\x20attachments');_0x2d20fe[_0x1529c3(0x219,0x304)]=Number(_0x9eb01f);}function _0x1529c3(_0x2fb6f0,_0xc6e34b){return _0x6f43(_0x2fb6f0- -0xe6,_0xc6e34b);}if('/'===_0x13802b['charAt'](_0x4a3811+0x1)){const _0x2edba6=_0x4a3811+0x1;while(++_0x4a3811){const _0x430bad=_0x13802b[_0x1529c3(0x2f7,0x3a3)](_0x4a3811);if(','===_0x430bad)break;if(_0x4a3811===_0x13802b[_0x1529c3(0x15f,0x13e)])break;}_0x2d20fe['nsp']=_0x13802b[_0x1529c3(0xd5,0x6a)](_0x2edba6,_0x4a3811);}else _0x2d20fe[_0x1529c3(0x228,0x236)]='/';const _0x28894e=_0x13802b['charAt'](_0x4a3811+0x1);if(''!==_0x28894e&&Number(_0x28894e)==_0x28894e){const _0x71d24a=_0x4a3811+0x1;while(++_0x4a3811){const _0x8fc58=_0x13802b[_0x1529c3(0x2f7,0x1fe)](_0x4a3811);if(null==_0x8fc58||Number(_0x8fc58)!=_0x8fc58){--_0x4a3811;break;}if(_0x4a3811===_0x13802b['length'])break;}_0x2d20fe['id']=Number(_0x13802b[_0x1529c3(0xd5,0x1e4)](_0x71d24a,_0x4a3811+0x1));}if(_0x13802b[_0x1529c3(0x2f7,0x28e)](++_0x4a3811)){const _0x2e0b84=this['tryParse'](_0x13802b['substr'](_0x4a3811));if(Decoder[_0x1529c3(0x148,0xf4)](_0x2d20fe['type'],_0x2e0b84))_0x2d20fe[_0x1529c3(0x2fd,0x2af)]=_0x2e0b84;else throw new Error('invalid payload');}return _0x2d20fe;}['tryParse'](_0x49d4d2){function _0xaa700e(_0x45935f,_0x24d706){return _0x6f43(_0x24d706- -0x19c,_0x45935f);}try{return JSON[_0xaa700e(0x173,0x91)](_0x49d4d2,this[_0xaa700e(-0x22,0xd3)]);}catch(_0x16384c){return![];}}static['isPayloadValid'](_0x5b825f,_0x5f54c1){function _0xaf61eb(_0x24fbf1,_0x56c43b){return _0x6f43(_0x24fbf1- -0x35e,_0x56c43b);}switch(_0x5b825f){case PacketType[_0xaf61eb(-0x189,-0x1a9)]:return isObject(_0x5f54c1);case PacketType['DISCONNECT']:return _0x5f54c1===undefined;case PacketType[_0xaf61eb(-0x9c,-0x18d)]:return typeof _0x5f54c1===_0xaf61eb(-0x7d,0x42)||isObject(_0x5f54c1);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array[_0xaf61eb(0xd,0xd2)](_0x5f54c1)&&(typeof _0x5f54c1[0x0]==='number'||typeof _0x5f54c1[0x0]==='string'&&RESERVED_EVENTS$1['indexOf'](_0x5f54c1[0x0])===-0x1);case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array[_0xaf61eb(0xd,0x60)](_0x5f54c1);}}['destroy'](){function _0x54713a(_0x3d576c,_0x3cb663){return _0x6f43(_0x3d576c-0x2dc,_0x3cb663);}this[_0x54713a(0x5d5,0x5e6)]&&(this['reconstructor'][_0x54713a(0x5d9,0x6a3)](),this['reconstructor']=null);}}class BinaryReconstructor{constructor(_0x1f6d52){function _0x159aaa(_0x3c8d78,_0x5a385a){return _0x6f43(_0x5a385a- -0x3dc,_0x3c8d78);}this[_0x159aaa(-0x12e,-0xca)]=_0x1f6d52,this[_0x159aaa(-0x255,-0x1ee)]=[],this[_0x159aaa(-0x102,-0x1de)]=_0x1f6d52;}['takeBinaryData'](binData){this[_0x40bddd(-0x5b,0x8c)]['push'](binData);if(this[_0x40bddd(-0x5b,0x71)][_0x40bddd(-0x4,-0x74)]===this[_0x40bddd(-0x4b,0x42)][_0x40bddd(0xb6,0x110)]){const _0x421bfd=reconstructPacket(this[_0x40bddd(-0x4b,0xb0)],this['buffers']);return this['finishedReconstruction'](),_0x421bfd;}function _0x40bddd(_0x335859,_0x56a360){return _0x6f43(_0x335859- -0x249,_0x56a360);}return null;}[_0x2d7030(0x684,0x55f)](){function _0x2b32a8(_0x2dfba5,_0x2bcb88){return _0x6f43(_0x2bcb88- -0x2af,_0x2dfba5);}this[_0x2b32a8(-0x1c6,-0xb1)]=null,this[_0x2b32a8(-0x16b,-0xc1)]=[];}}var parser=Object['freeze']({'__proto__':null,'Decoder':Decoder,'Encoder':Encoder,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x3483b0,_0x219d54,_0x1779fb){return _0x3483b0['on'](_0x219d54,_0x1779fb),function _0x482ddf(){function _0x55dad4(_0x21020b,_0x358593){return _0x6f43(_0x358593-0x36c,_0x21020b);}_0x3483b0[_0x55dad4(0x4cc,0x5be)](_0x219d54,_0x1779fb);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x4d3d81,_0x4ed57f,_0x128b42){super(),this['connected']=![],this['recovered']=![],this[_0x6d04b9(0x390,0x340)]=[],this[_0x6d04b9(0x2fa,0x3a7)]=[],this[_0x6d04b9(0x3f2,0x2fc)]=[],this['_queueSeq']=0x0,this[_0x6d04b9(0x383,0x46f)]=0x0;function _0x6d04b9(_0x3262a0,_0x55d323){return _0x6f43(_0x3262a0-0xa3,_0x55d323);}this['acks']={},this[_0x6d04b9(0x3e1,0x488)]={},this['io']=_0x4d3d81,this[_0x6d04b9(0x3b1,0x41b)]=_0x4ed57f;_0x128b42&&_0x128b42['auth']&&(this['auth']=_0x128b42['auth']);this[_0x6d04b9(0x43c,0x4ec)]=Object['assign']({},_0x128b42);if(this['io']['_autoConnect'])this['open']();}get['disconnected'](){return!this['connected'];}[_0x2d7030(0x5dc,0x568)](){if(this['subs'])return;function _0x11d8aa(_0x4dc69f,_0x108d53){return _0x6f43(_0x108d53-0x3cf,_0x4dc69f);}const _0x1f8c8f=this['io'];this[_0x11d8aa(0x79a,0x6aa)]=[on(_0x1f8c8f,_0x11d8aa(0x69d,0x696),this['onopen']['bind'](this)),on(_0x1f8c8f,'packet',this['onpacket'][_0x11d8aa(0x510,0x5f9)](this)),on(_0x1f8c8f,_0x11d8aa(0x783,0x680),this['onerror']['bind'](this)),on(_0x1f8c8f,_0x11d8aa(0x698,0x625),this['onclose']['bind'](this))];}get[_0x2d7030(0x5b8,0x551)](){function _0x19aac6(_0x49f676,_0x4cff15){return _0x6f43(_0x49f676- -0x163,_0x4cff15);}return!!this[_0x19aac6(0x178,0x252)];}['connect'](){if(this['connected'])return this;this['subEvents']();if(!this['io']['_reconnecting'])this['io']['open']();function _0x23e68a(_0x30810d,_0x2f94a0){return _0x6f43(_0x30810d- -0x125,_0x2f94a0);}if('open'===this['io'][_0x23e68a(0x1e3,0x1b1)])this[_0x23e68a(0xc5,0x14a)]();return this;}[_0x2d7030(0x444,0x529)](){return this['connect']();}['send'](..._0x5538e4){function _0x421249(_0x260fe6,_0x2f5d50){return _0x6f43(_0x260fe6- -0x289,_0x2f5d50);}return _0x5538e4['unshift']('message'),this['emit'][_0x421249(0x78,-0x1a)](this,_0x5538e4),this;}[_0x2d7030(0x3e7,0x4f4)](_0x21e58b,..._0x1dbe6f){var _0x3addf8,_0x25e9f8,_0x12ff48;if(RESERVED_EVENTS[_0x50c251(0x73e,0x635)](_0x21e58b))throw new Error('\x22'+_0x21e58b['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');_0x1dbe6f['unshift'](_0x21e58b);function _0x50c251(_0x1072e8,_0x45f395){return _0x6f43(_0x45f395-0x308,_0x1072e8);}if(this[_0x50c251(0x612,0x6a1)]['retries']&&!this['flags'][_0x50c251(0x622,0x599)]&&!this['flags']['volatile'])return this['_addToQueue'](_0x1dbe6f),this;const _0x504bb1={'type':PacketType[_0x50c251(0x632,0x6ae)],'data':_0x1dbe6f};_0x504bb1[_0x50c251(0x5e0,0x55d)]={},_0x504bb1['options']['compress']=this[_0x50c251(0x59b,0x646)][_0x50c251(0x521,0x583)]!==![];if('function'===typeof _0x1dbe6f[_0x1dbe6f[_0x50c251(0x47c,0x54d)]-0x1]){const _0x203b58=this[_0x50c251(0x52a,0x5e8)]++,_0x2e4f05=_0x1dbe6f[_0x50c251(0x52a,0x62a)]();this['_registerAckCallback'](_0x203b58,_0x2e4f05),_0x504bb1['id']=_0x203b58;}const isTransportWritable=(_0x25e9f8=(_0x3addf8=this['io'][_0x50c251(0x48b,0x501)])===null||_0x3addf8===void 0x0?void 0x0:_0x3addf8[_0x50c251(0x630,0x669)])===null||_0x25e9f8===void 0x0?void 0x0:_0x25e9f8['writable'],isConnected=this['connected']&&!((_0x12ff48=this['io']['engine'])===null||_0x12ff48===void 0x0?void 0x0:_0x12ff48[_0x50c251(0x5a4,0x4f7)]()),discardPacket=this['flags'][_0x50c251(0x61b,0x5fc)]&&!isTransportWritable;if(discardPacket);else isConnected?(this[_0x50c251(0x4b6,0x4d6)](_0x504bb1),this['packet'](_0x504bb1)):this[_0x50c251(0x569,0x55f)]['push'](_0x504bb1);return this['flags']={},this;}['_registerAckCallback'](_0x37e59f,_0x5840c7){var _0x3d06ed;function _0x2a7e0f(_0x730a02,_0x309b7f){return _0x6f43(_0x309b7f-0x316,_0x730a02);}const _0x435250=(_0x3d06ed=this[_0x2a7e0f(0x550,0x654)]['timeout'])!==null&&_0x3d06ed!==void 0x0?_0x3d06ed:this[_0x2a7e0f(0x5b8,0x6af)]['ackTimeout'];if(_0x435250===undefined){this['acks'][_0x37e59f]=_0x5840c7;return;}const _0x49eff4=this['io'][_0x2a7e0f(0x69a,0x592)](()=>{delete this[_0x1c5a23(0x594,0x48b)][_0x37e59f];for(let _0x2fa881=0x0;_0x2fa881<this['sendBuffer'][_0x1c5a23(0x487,0x43a)];_0x2fa881++){this['sendBuffer'][_0x2fa881]['id']===_0x37e59f&&this['sendBuffer'][_0x1c5a23(0x40e,0x4f3)](_0x2fa881,0x1);}function _0x1c5a23(_0x138cb7,_0xfbb0e4){return _0x6f43(_0xfbb0e4-0x1f5,_0x138cb7);}_0x5840c7['call'](this,new Error(_0x1c5a23(0x4c2,0x59c)));},_0x435250),_0x3309ff=(..._0x4ecd6a)=>{this['io']['clearTimeoutFn'](_0x49eff4),_0x5840c7['apply'](this,_0x4ecd6a);};_0x3309ff['withError']=!![],this['acks'][_0x37e59f]=_0x3309ff;}[_0x2d7030(0x49b,0x51b)](_0x254b24,..._0x4b3dd3){return new Promise((_0x404d12,_0x232d2e)=>{const _0x2ddc72=(_0x45a9b8,_0x4d004c)=>{return _0x45a9b8?_0x232d2e(_0x45a9b8):_0x404d12(_0x4d004c);};_0x2ddc72['withError']=!![];function _0x3c260b(_0x45fb50,_0x4e9d18){return _0x6f43(_0x45fb50-0x12a,_0x4e9d18);}_0x4b3dd3['push'](_0x2ddc72),this[_0x3c260b(0x3bc,0x2f0)](_0x254b24,..._0x4b3dd3);});}['_addToQueue'](_0x2ddc6e){let _0x448fce;typeof _0x2ddc6e[_0x2ddc6e[_0x1ef078(-0x61,0x92)]-0x1]===_0x1ef078(0xda,0x1b6)&&(_0x448fce=_0x2ddc6e[_0x1ef078(0x7b,0x16f)]());const _0x4ab3b8={'id':this['_queueSeq']++,'tryCount':0x0,'pending':![],'args':_0x2ddc6e,'flags':Object[_0x1ef078(0x12b,0x8b)]({'fromQueue':!![]},this['flags'])};_0x2ddc6e[_0x1ef078(-0xf,0x4c)]((_0x10e51c,...responseArgs)=>{if(_0x4ab3b8!==this[_0xe92bea(0x10c,0x11c)][0x0])return;const _0x4fb668=_0x10e51c!==null;_0x4fb668?_0x4ab3b8[_0xe92bea(0x21,0x112)]>this['_opts'][_0xe92bea(-0xc2,0x2b)]&&(this['_queue'][_0xe92bea(-0x126,-0x83)](),_0x448fce&&_0x448fce(_0x10e51c)):(this['_queue'][_0xe92bea(-0xcf,-0x83)](),_0x448fce&&_0x448fce(null,...responseArgs));_0x4ab3b8['pending']=![];function _0xe92bea(_0x2d8577,_0x13faea){return _0x6f43(_0x13faea- -0x233,_0x2d8577);}return this[_0xe92bea(0x253,0x193)]();});function _0x1ef078(_0x5e4227,_0x51682c){return _0x6f43(_0x51682c- -0x1b3,_0x5e4227);}this['_queue'][_0x1ef078(0x147,0x4c)](_0x4ab3b8),this['_drainQueue']();}[_0x2d7030(0x5c8,0x628)](_0x336499=![]){if(!this[_0x820dc3(-0x18d,-0x247)]||this[_0x820dc3(-0x87,0x60)][_0x820dc3(-0x191,-0x1ce)]===0x0)return;const _0x2e2051=this['_queue'][0x0];if(_0x2e2051['pending']&&!_0x336499)return;function _0x820dc3(_0x1b50b1,_0x4d6309){return _0x6f43(_0x1b50b1- -0x3d6,_0x4d6309);}_0x2e2051[_0x820dc3(-0x4a,0x9d)]=!![],_0x2e2051[_0x820dc3(-0x91,-0x104)]++,this[_0x820dc3(-0x98,-0x7)]=_0x2e2051[_0x820dc3(-0x98,-0x113)],this['emit'][_0x820dc3(-0xd5,-0x1ad)](this,_0x2e2051[_0x820dc3(-0xa,0x32)]);}['packet'](_0x2069d9){function _0x5896f0(_0x48be6e,_0x5c75f3){return _0x6f43(_0x5c75f3-0x396,_0x48be6e);}_0x2069d9[_0x5896f0(0x700,0x6a4)]=this[_0x5896f0(0x701,0x6a4)],this['io'][_0x5896f0(0x503,0x5af)](_0x2069d9);}[_0x2d7030(0x4a1,0x44c)](){function _0x57f471(_0x1d6eed,_0x21a4be){return _0x6f43(_0x1d6eed-0x392,_0x21a4be);}typeof this[_0x57f471(0x677,0x756)]==_0x57f471(0x6fb,0x7e5)?this['auth'](data=>{this['_sendConnectPacket'](data);}):this['_sendConnectPacket'](this[_0x57f471(0x677,0x62b)]);}['_sendConnectPacket'](data){function _0x3e7bc5(_0x449f0a,_0x10decc){return _0x6f43(_0x10decc-0x37b,_0x449f0a);}this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this[_0x3e7bc5(0x473,0x54b)]},data):data});}[_0x2d7030(0x39a,0x479)](_0xccebc1){function _0x4f0874(_0x181b69,_0x4ac9bd){return _0x6f43(_0x4ac9bd-0x17f,_0x181b69);}!this[_0x4f0874(0x4dc,0x3c8)]&&this['emitReserved'](_0x4f0874(0x52c,0x4b8),_0xccebc1);}[_0x2d7030(0x52f,0x4e2)](_0x4c5b66,_0x20e6a2){this[_0x2ce1bd(0x367,0x25d)]=![],delete this['id'];function _0x2ce1bd(_0x534846,_0x1895b8){return _0x6f43(_0x534846-0x11e,_0x1895b8);}this['emitReserved'](_0x2ce1bd(0x493,0x571),_0x4c5b66,_0x20e6a2),this['_clearAcks']();}['_clearAcks'](){function _0x2bdb4d(_0x5dee71,_0x4e603b){return _0x6f43(_0x5dee71- -0x21b,_0x4e603b);}Object[_0x2bdb4d(0x98,-0x2b)](this[_0x2bdb4d(0x7b,-0x3a)])['forEach'](_0x9d53f7=>{const isBuffered=this[_0x333add(-0xc0,-0x117)]['some'](_0x52ad8d=>String(_0x52ad8d['id'])===_0x9d53f7);function _0x333add(_0x476536,_0x38dbc6){return _0x6f43(_0x38dbc6- -0x36e,_0x476536);}if(!isBuffered){const _0x191f61=this[_0x333add(-0x14f,-0xd8)][_0x9d53f7];delete this[_0x333add(-0x106,-0xd8)][_0x9d53f7],_0x191f61['withError']&&_0x191f61['call'](this,new Error('socket\x20has\x20been\x20disconnected'));}});}[_0x2d7030(0x511,0x550)](_0x9c8a79){const _0x2ae7a8=_0x9c8a79['nsp']===this['nsp'];function _0x3ebc41(_0x234e41,_0xda7246){return _0x6f43(_0x234e41-0x1f8,_0xda7246);}if(!_0x2ae7a8)return;switch(_0x9c8a79[_0x3ebc41(0x5cf,0x674)]){case PacketType[_0x3ebc41(0x3cd,0x483)]:_0x9c8a79[_0x3ebc41(0x5db,0x514)]&&_0x9c8a79['data'][_0x3ebc41(0x47a,0x4cd)]?this[_0x3ebc41(0x5d2,0x4ec)](_0x9c8a79['data']['sid'],_0x9c8a79['data'][_0x3ebc41(0x47e,0x436)]):this[_0x3ebc41(0x471,0x522)](_0x3ebc41(0x531,0x4ff),new Error(_0x3ebc41(0x4c6,0x461)));break;case PacketType[_0x3ebc41(0x59e,0x69b)]:case PacketType[_0x3ebc41(0x495,0x55f)]:this['onevent'](_0x9c8a79);break;case PacketType['ACK']:case PacketType[_0x3ebc41(0x5b0,0x560)]:this[_0x3ebc41(0x4fa,0x56d)](_0x9c8a79);break;case PacketType['DISCONNECT']:this[_0x3ebc41(0x5c5,0x587)]();break;case PacketType[_0x3ebc41(0x4ba,0x513)]:this['destroy']();const _0x1ccf40=new Error(_0x9c8a79['data']['message']);_0x1ccf40[_0x3ebc41(0x5db,0x4ec)]=_0x9c8a79[_0x3ebc41(0x5db,0x5d7)]['data'],this[_0x3ebc41(0x471,0x54f)](_0x3ebc41(0x531,0x5f2),_0x1ccf40);break;}}['onevent'](_0x72f694){function _0x5f05f5(_0x27d4f1,_0x5e32ba){return _0x6f43(_0x27d4f1- -0x1b2,_0x5e32ba);}const _0x2f34e1=_0x72f694['data']||[];null!=_0x72f694['id']&&_0x2f34e1[_0x5f05f5(0x4d,0x132)](this['ack'](_0x72f694['id'])),this['connected']?this['emitEvent'](_0x2f34e1):this[_0x5f05f5(0x13b,0x1c6)][_0x5f05f5(0x4d,0x126)](Object[_0x5f05f5(0x46,0x143)](_0x2f34e1));}['emitEvent'](_0x10287c){function _0xc51449(_0x2b60de,_0x3dbc5f){return _0x6f43(_0x2b60de- -0x225,_0x3dbc5f);}if(this[_0xc51449(0xab,-0x5e)]&&this[_0xc51449(0xab,0x1a6)][_0xc51449(0x20,0xb)]){const listeners=this[_0xc51449(0xab,-0xb)]['slice']();for(const listener of listeners){listener['apply'](this,_0x10287c);}}super[_0xc51449(0x6d,0x121)]['apply'](this,_0x10287c),this[_0xc51449(0x46,0xb7)]&&_0x10287c[_0xc51449(0x20,0x6b)]&&typeof _0x10287c[_0x10287c[_0xc51449(0x20,0x112)]-0x1]==='string'&&(this[_0xc51449(-0x55,-0x8f)]=_0x10287c[_0x10287c['length']-0x1]);}[_0x2d7030(0x49d,0x4a9)](_0x581ab4){const _0x51ae12=this;let _0x25d721=![];return function(..._0x50fb3a){if(_0x25d721)return;function _0x113d20(_0x11f95b,_0x4b669d){return _0x6f43(_0x11f95b-0x2ca,_0x4b669d);}_0x25d721=!![],_0x51ae12[_0x113d20(0x5dc,0x6b9)]({'type':PacketType['ACK'],'id':_0x581ab4,'data':_0x50fb3a});};}['onack'](_0x177b76){const _0x5325f1=this[_0x32c286(-0xb4,-0x12e)][_0x177b76['id']];if(typeof _0x5325f1!==_0x32c286(0x1f,-0xc5))return;delete this[_0x32c286(-0xb4,-0x9b)][_0x177b76['id']];_0x5325f1['withError']&&_0x177b76[_0x32c286(0x99,0x18b)]['unshift'](null);function _0x32c286(_0x4b784c,_0x8eeb0b){return _0x6f43(_0x4b784c- -0x34a,_0x8eeb0b);}_0x5325f1['apply'](this,_0x177b76['data']);}[_0x2d7030(0x52b,0x63c)](_0x73229c,_0x33398c){this['id']=_0x73229c,this[_0x4692e9(0x58,0x63)]=_0x33398c&&this['_pid']===_0x33398c;function _0x4692e9(_0x45998b,_0x510a97){return _0x6f43(_0x45998b- -0x1ca,_0x510a97);}this['_pid']=_0x33398c,this[_0x4692e9(0x7f,0x115)]=!![],this['emitBuffered'](),this[_0x4692e9(0xaf,0x1ac)]('connect'),this[_0x4692e9(0x1fc,0x11e)](!![]);}[_0x2d7030(0x5c7,0x62d)](){this[_0x3c4a8c(0x1fa,0x31a)][_0x3c4a8c(0x4b7,0x3bd)](_0x1fe040=>this[_0x3c4a8c(0x301,0x2d6)](_0x1fe040));function _0x3c4a8c(_0x17a106,_0x4f09e5){return _0x6f43(_0x4f09e5-0x2d,_0x17a106);}this['receiveBuffer']=[],this['sendBuffer'][_0x3c4a8c(0x481,0x3bd)](_0x471d7a=>{this[_0x5d517b(-0x7f,-0x3c)](_0x471d7a);function _0x5d517b(_0x4d8b12,_0x1728cf){return _0x6f43(_0x1728cf- -0x20a,_0x4d8b12);}this[_0x5d517b(0x196,0x108)](_0x471d7a);}),this['sendBuffer']=[];}[_0x2d7030(0x526,0x62f)](){this['destroy']();function _0x442288(_0x3fa881,_0x3d575f){return _0x6f43(_0x3d575f- -0x17a,_0x3fa881);}this['onclose'](_0x442288(0x1c9,0x244));}['destroy'](){this[_0x4950c7(0x605,0x70a)]&&(this[_0x4950c7(0x605,0x683)]['forEach'](_0x5d138e=>_0x5d138e()),this[_0x4950c7(0x605,0x60c)]=undefined);function _0x4950c7(_0x3c08a6,_0xc31c7e){return _0x6f43(_0x3c08a6-0x32a,_0xc31c7e);}this['io']['_destroy'](this);}['disconnect'](){this['connected']&&this[_0x5601c2(0x584,0x605)]({'type':PacketType['DISCONNECT']});this['destroy']();function _0x5601c2(_0x508362,_0xba9f7f){return _0x6f43(_0xba9f7f-0x2f3,_0x508362);}return this[_0x5601c2(0x529,0x53c)]&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){function _0x118164(_0x5081e6,_0x22423b){return _0x6f43(_0x22423b-0x111,_0x5081e6);}return this[_0x118164(0x4d1,0x486)]();}['compress'](_0x302204){return this['flags']['compress']=_0x302204,this;}get[_0x2d7030(0x676,0x556)](){return this['flags']['volatile']=!![],this;}[_0x2d7030(0x6f1,0x5dc)](_0x1da41d){function _0x4a8e40(_0x49666e,_0xd21964){return _0x6f43(_0xd21964- -0xcd,_0x49666e);}return this[_0x4a8e40(0x24e,0x271)]['timeout']=_0x1da41d,this;}['onAny'](listener){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](listener),this;}['prependAny'](listener){function _0x2ae6c3(_0x3fbd29,_0x13239f){return _0x6f43(_0x3fbd29-0x358,_0x13239f);}return this['_anyListeners']=this[_0x2ae6c3(0x628,0x73d)]||[],this[_0x2ae6c3(0x628,0x70b)][_0x2ae6c3(0x65b,0x623)](listener),this;}['offAny'](listener){if(!this[_0x575a75(0x16c,0x14a)])return this;if(listener){const listeners=this[_0x575a75(0x16c,0x163)];for(let _0x107051=0x0;_0x107051<listeners[_0x575a75(0xe1,0x8f)];_0x107051++){if(listener===listeners[_0x107051])return listeners['splice'](_0x107051,0x1),this;}}else this['_anyListeners']=[];function _0x575a75(_0x1eb2b3,_0x295c56){return _0x6f43(_0x1eb2b3- -0x164,_0x295c56);}return this;}['listenersAny'](){return this['_anyListeners']||[];}[_0x2d7030(0x5b9,0x4a3)](listener){function _0x2a9723(_0x1c1396,_0x97066b){return _0x6f43(_0x1c1396-0x205,_0x97066b);}return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners'][_0x2a9723(0x404,0x410)](listener),this;}['prependAnyOutgoing'](listener){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](listener),this;}['offAnyOutgoing'](listener){if(!this['_anyOutgoingListeners'])return this;function _0x18221b(_0x44fc97,_0x1dd4d6){return _0x6f43(_0x1dd4d6-0x169,_0x44fc97);}if(listener){const listeners=this['_anyOutgoingListeners'];for(let _0x3023a2=0x0;_0x3023a2<listeners[_0x18221b(0x46d,0x3ae)];_0x3023a2++){if(listener===listeners[_0x3023a2])return listeners[_0x18221b(0x440,0x467)](_0x3023a2,0x1),this;}}else this[_0x18221b(0x425,0x4aa)]=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}[_0x2d7030(0x438,0x430)](_0x31206b){function _0x3d1c73(_0x4c2b83,_0x511b6b){return _0x6f43(_0x4c2b83- -0x27d,_0x511b6b);}if(this[_0x3d1c73(0xc4,0x189)]&&this[_0x3d1c73(0xc4,0x122)]['length']){const listeners=this['_anyOutgoingListeners']['slice']();for(const listener of listeners){listener[_0x3d1c73(0x84,0xe7)](this,_0x31206b[_0x3d1c73(0x166,0x129)]);}}}}function Backoff(_0x4a949f){_0x4a949f=_0x4a949f||{},this['ms']=_0x4a949f['min']||0x64,this[_0x1d0c21(0x486,0x3f7)]=_0x4a949f['max']||0x2710,this['factor']=_0x4a949f['factor']||0x2;function _0x1d0c21(_0x29bd4b,_0x40c636){return _0x6f43(_0x29bd4b-0x10f,_0x40c636);}this[_0x1d0c21(0x4ab,0x586)]=_0x4a949f[_0x1d0c21(0x4ab,0x3fd)]>0x0&&_0x4a949f[_0x1d0c21(0x4ab,0x3a1)]<=0x1?_0x4a949f['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype'][_0x2d7030(0x527,0x46a)]=function(){function _0x4953c0(_0x2cde03,_0x3d1132){return _0x6f43(_0x2cde03- -0x5,_0x3d1132);}var _0x266e43=this['ms']*Math['pow'](this[_0x4953c0(0x2ca,0x321)],this[_0x4953c0(0x1e4,0x24b)]++);if(this['jitter']){var _0x131568=Math[_0x4953c0(0x28f,0x1f0)](),_0x4b9a97=Math[_0x4953c0(0x3e2,0x3da)](_0x131568*this['jitter']*_0x266e43);_0x266e43=(Math[_0x4953c0(0x3e2,0x45c)](_0x131568*0xa)&0x1)==0x0?_0x266e43-_0x4b9a97:_0x266e43+_0x4b9a97;}return Math['min'](_0x266e43,this['max'])|0x0;},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(min){this['ms']=min;},Backoff[_0x2d7030(0x56d,0x567)][_0x2d7030(0x736,0x63b)]=function(_0x4547f2){function _0x333117(_0x4c92d7,_0x3b5d0c){return _0x6f43(_0x4c92d7-0x4d,_0x3b5d0c);}this[_0x333117(0x3c4,0x4db)]=_0x4547f2;},Backoff['prototype']['setJitter']=function(_0x5355aa){function _0x460b8a(_0xf85507,_0x2e2758){return _0x6f43(_0x2e2758- -0x288,_0xf85507);}this[_0x460b8a(0xd2,0x114)]=_0x5355aa;};class Manager extends Emitter{constructor(_0x3f7be0,_0x35c468){var _0x7fcdfd;super(),this['nsps']={},this['subs']=[];_0x3f7be0&&'object'===typeof _0x3f7be0&&(_0x35c468=_0x3f7be0,_0x3f7be0=undefined);_0x35c468=_0x35c468||{},_0x35c468[_0x5b2f79(0x4d0,0x3f9)]=_0x35c468[_0x5b2f79(0x446,0x3f9)]||'/socket.io',this['opts']=_0x35c468,installTimerFunctions(this,_0x35c468),this['reconnection'](_0x35c468['reconnection']!==![]),this[_0x5b2f79(0x49f,0x420)](_0x35c468['reconnectionAttempts']||Infinity),this['reconnectionDelay'](_0x35c468[_0x5b2f79(0x43b,0x365)]||0x3e8),this['reconnectionDelayMax'](_0x35c468[_0x5b2f79(0x3e1,0x364)]||0x1388),this[_0x5b2f79(0x505,0x41b)]((_0x7fcdfd=_0x35c468['randomizationFactor'])!==null&&_0x7fcdfd!==void 0x0?_0x7fcdfd:0.5),this[_0x5b2f79(0x4d0,0x45f)]=new Backoff({'min':this['reconnectionDelay'](),'max':this[_0x5b2f79(0x3c3,0x364)](),'jitter':this[_0x5b2f79(0x389,0x41b)]()}),this[_0x5b2f79(0x59c,0x4bb)](null==_0x35c468['timeout']?0x4e20:_0x35c468[_0x5b2f79(0x3d7,0x4bb)]);function _0x5b2f79(_0x5819be,_0x1782d1){return _0x6f43(_0x1782d1-0x141,_0x5819be);}this[_0x5b2f79(0x45b,0x449)]='closed',this[_0x5b2f79(0x5b9,0x4d0)]=_0x3f7be0;const _parser=_0x35c468[_0x5b2f79(0x5ca,0x4d9)]||parser;this['encoder']=new _parser[(_0x5b2f79(0x3f8,0x3a1))](),this['decoder']=new _parser[(_0x5b2f79(0x40a,0x4cb))](),this['_autoConnect']=_0x35c468[_0x5b2f79(0x32b,0x317)]!==![];if(this['_autoConnect'])this[_0x5b2f79(0x3c5,0x408)]();}[_0x2d7030(0x564,0x5b2)](_0x240b29){if(!arguments[_0x458fd0(-0x193,-0x1a8)])return this['_reconnection'];this[_0x458fd0(-0x11,0x10a)]=!!_0x240b29;function _0x458fd0(_0x118fa2,_0x4a45e7){return _0x6f43(_0x118fa2- -0x3d8,_0x4a45e7);}return!_0x240b29&&(this[_0x458fd0(-0x5d,-0xc8)]=!![]),this;}[_0x2d7030(0x490,0x541)](_0x3583dd){if(_0x3583dd===undefined)return this['_reconnectionAttempts'];return this['_reconnectionAttempts']=_0x3583dd,this;}[_0x2d7030(0x4bb,0x486)](_0x356b2e){var _0x21699b;if(_0x356b2e===undefined)return this[_0x5be49b(0x75d,0x657)];this[_0x5be49b(0x5ee,0x657)]=_0x356b2e,(_0x21699b=this[_0x5be49b(0x6f4,0x5f1)])===null||_0x21699b===void 0x0?void 0x0:_0x21699b[_0x5be49b(0x5fe,0x61f)](_0x356b2e);function _0x5be49b(_0x284efa,_0x7ffbd1){return _0x6f43(_0x7ffbd1-0x2d3,_0x284efa);}return this;}[_0x2d7030(0x64d,0x53c)](_0x584e82){function _0x277f8e(_0x53f764,_0x48ba45){return _0x6f43(_0x53f764- -0x238,_0x48ba45);}var _0x571672;if(_0x584e82===undefined)return this['_randomizationFactor'];return this['_randomizationFactor']=_0x584e82,(_0x571672=this[_0x277f8e(0xe6,0x104)])===null||_0x571672===void 0x0?void 0x0:_0x571672[_0x277f8e(-0x66,0x8d)](_0x584e82),this;}['reconnectionDelayMax'](_0x566c54){var _0x7fa628;if(_0x566c54===undefined)return this['_reconnectionDelayMax'];return this['_reconnectionDelayMax']=_0x566c54,(_0x7fa628=this['backoff'])===null||_0x7fa628===void 0x0?void 0x0:_0x7fa628['setMax'](_0x566c54),this;}[_0x2d7030(0x501,0x5dc)](_0xc30dad){if(!arguments['length'])return this[_0x182c98(0x47f,0x4dd)];this[_0x182c98(0x47f,0x4a0)]=_0xc30dad;function _0x182c98(_0x481720,_0x4878c3){return _0x6f43(_0x481720-0x1a9,_0x4878c3);}return this;}['maybeReconnectOnOpen'](){function _0xd8fe2(_0xeaaf9b,_0x5410a8){return _0x6f43(_0xeaaf9b- -0x98,_0x5410a8);}!this[_0xd8fe2(0x2b9,0x215)]&&this['_reconnection']&&this[_0xd8fe2(0x286,0x37f)]['attempts']===0x0&&this['reconnect']();}['open'](_0x44c6d2){if(~this['_readyState']['indexOf'](_0x4cb1cd(0x233,0x34c)))return this;this[_0x4cb1cd(0x2fd,0x27e)]=new Socket$1(this[_0x4cb1cd(0x39c,0x414)],this[_0x4cb1cd(0x1d0,0x2bd)]);const _0x49ac99=this[_0x4cb1cd(0x31b,0x27e)],_0x469ee6=this;function _0x4cb1cd(_0x59936c,_0x189a7f){return _0x6f43(_0x189a7f-0x85,_0x59936c);}this[_0x4cb1cd(0x3dc,0x38d)]=_0x4cb1cd(0x498,0x37a),this[_0x4cb1cd(0x2fc,0x400)]=![];const _0x27d8ee=on(_0x49ac99,_0x4cb1cd(0x39f,0x34c),function(){function _0x108e5b(_0x36a22d,_0x7f48a4){return _0x6f43(_0x7f48a4- -0x13c,_0x36a22d);}_0x469ee6[_0x108e5b(0xa1,0xae)](),_0x44c6d2&&_0x44c6d2();}),_0x540fe3=_0x2354ca=>{this['cleanup'](),this['_readyState']=_0x29e955(0x5f3,0x4e1);function _0x29e955(_0x2460ef,_0x2d240d){return _0x6f43(_0x2d240d-0x117,_0x2460ef);}this[_0x29e955(0x3b8,0x390)]('error',_0x2354ca),_0x44c6d2?_0x44c6d2(_0x2354ca):this[_0x29e955(0x3a0,0x2f7)]();},_0x5f0bb1=on(_0x49ac99,'error',_0x540fe3);if(![]!==this[_0x4cb1cd(0x42c,0x35b)]){const _0x265654=this[_0x4cb1cd(0x2e3,0x35b)],_0x12d471=this[_0x4cb1cd(0x357,0x301)](()=>{function _0x4da506(_0x56314e,_0x3ac6d8){return _0x6f43(_0x56314e-0x9b,_0x3ac6d8);}_0x27d8ee(),_0x540fe3(new Error('timeout')),_0x49ac99[_0x4da506(0x2f1,0x336)]();},_0x265654);this['opts']['autoUnref']&&_0x12d471[_0x4cb1cd(0x4dd,0x423)](),this[_0x4cb1cd(0x43a,0x360)][_0x4cb1cd(0x2bb,0x284)](()=>{function _0x369b8b(_0x4e270a,_0x3ef8e4){return _0x6f43(_0x4e270a- -0x17c,_0x3ef8e4);}this[_0x369b8b(0x14f,0xc7)](_0x12d471);});}return this[_0x4cb1cd(0x345,0x360)][_0x4cb1cd(0x23f,0x284)](_0x27d8ee),this['subs']['push'](_0x5f0bb1),this;}['connect'](_0x54d028){function _0x20fe9c(_0x3cb36d,_0x5c0b33){return _0x6f43(_0x5c0b33-0x33e,_0x3cb36d);}return this[_0x20fe9c(0x543,0x605)](_0x54d028);}['onopen'](){this[_0x58ab60(-0x12f,-0x6f)]();function _0x58ab60(_0x152ca3,_0x49affc){return _0x6f43(_0x49affc- -0x257,_0x152ca3);}this[_0x58ab60(0x107,0xb1)]='open',this['emitReserved'](_0x58ab60(0x66,0x70));const _0x34ac4d=this[_0x58ab60(0x70,-0x5e)];this[_0x58ab60(-0x5e,0x84)]['push'](on(_0x34ac4d,'ping',this['onping'][_0x58ab60(0xb0,-0x2d)](this)),on(_0x34ac4d,_0x58ab60(0xaf,0x18c),this[_0x58ab60(0x139,0xe1)][_0x58ab60(0xe1,-0x2d)](this)),on(_0x34ac4d,_0x58ab60(-0xc3,0x5a),this[_0x58ab60(-0x102,-0x40)][_0x58ab60(-0xc2,-0x2d)](this)),on(_0x34ac4d,'close',this[_0x58ab60(-0xa1,0x29)][_0x58ab60(0xae,-0x2d)](this)),on(this[_0x58ab60(-0x151,-0x7a)],_0x58ab60(-0x1b,0xd4),this['ondecoded'][_0x58ab60(-0xe2,-0x2d)](this)));}[_0x2d7030(0x5f5,0x5c4)](){this['emitReserved']('ping');}[_0x2d7030(0x515,0x59a)](data){function _0xd6aa6f(_0xf92ceb,_0xe06399){return _0x6f43(_0xf92ceb- -0x2cb,_0xe06399);}try{this[_0xd6aa6f(-0xee,-0x82)]['add'](data);}catch(_0x22ea86){this[_0xd6aa6f(-0x4b,-0x71)]('parse\x20error',_0x22ea86);}}['ondecoded'](_0x4bdf39){nextTick(()=>{this['emitReserved']('packet',_0x4bdf39);},this['setTimeoutFn']);}['onerror'](_0x3d492a){this['emitReserved']('error',_0x3d492a);}['socket'](_0x21bb89,_0x25606b){let _0x4e0ccb=this[_0xbfe880(0x286,0x3a6)][_0x21bb89];function _0xbfe880(_0x144977,_0x5a490b){return _0x6f43(_0x144977-0x46,_0x5a490b);}if(!_0x4e0ccb)_0x4e0ccb=new Socket(this,_0x21bb89,_0x25606b),this['nsps'][_0x21bb89]=_0x4e0ccb;else this['_autoConnect']&&!_0x4e0ccb['active']&&_0x4e0ccb['connect']();return _0x4e0ccb;}[_0x2d7030(0x6fd,0x64c)](_0x25ccdf){const _0x3e1c52=Object['keys'](this[_0x179ba7(-0xec,-0x19)]);for(const _0x25aca1 of _0x3e1c52){const _0x5ad987=this[_0x179ba7(-0xec,-0x41)][_0x25aca1];if(_0x5ad987[_0x179ba7(-0x3d,-0x153)])return;}function _0x179ba7(_0x4f6d76,_0x1bd1d7){return _0x6f43(_0x4f6d76- -0x32c,_0x1bd1d7);}this['_close']();}['_packet'](_0x504c17){const _0x6f00a4=this[_0x5357c1(0x424,0x354)][_0x5357c1(0x20e,0x25a)](_0x504c17);function _0x5357c1(_0x295bf6,_0x42fbd1){return _0x6f43(_0x42fbd1- -0x2e,_0x295bf6);}for(let _0x2888a6=0x0;_0x2888a6<_0x6f00a4[_0x5357c1(0x159,0x217)];_0x2888a6++){this['engine'][_0x5357c1(0x1d7,0x26c)](_0x6f00a4[_0x2888a6],_0x504c17[_0x5357c1(0x22f,0x227)]);}}[_0x2d7030(0x4c4,0x44a)](){function _0x225c14(_0x5518b0,_0x236aea){return _0x6f43(_0x5518b0- -0x1b2,_0x236aea);}this['subs']['forEach'](_0x5e53d2=>_0x5e53d2()),this[_0x225c14(0x129,0x10e)][_0x225c14(0x93,0x11e)]=0x0,this['decoder']['destroy']();}[_0x2d7030(0x514,0x52a)](){function _0x1d6eaf(_0x2629ed,_0x3976f6){return _0x6f43(_0x3976f6- -0x10c,_0x2629ed);}this['skipReconnect']=!![],this['_reconnecting']=![],this[_0x1d6eaf(0x1f7,0x174)](_0x1d6eaf(0x2e9,0x1ff));}[_0x2d7030(0x5b8,0x5d7)](){function _0x382f00(_0x57da92,_0x889a40){return _0x6f43(_0x889a40- -0x219,_0x57da92);}return this[_0x382f00(0x60,0xaf)]();}[_0x2d7030(0x4e0,0x4e2)](_0x2538ec,_0x593bae){function _0xd2b8a4(_0x11a846,_0x522c38){return _0x6f43(_0x11a846-0x1f7,_0x522c38);}var _0x41e011;this['cleanup'](),(_0x41e011=this['engine'])===null||_0x41e011===void 0x0?void 0x0:_0x41e011['close'](),this['backoff'][_0xd2b8a4(0x540,0x497)](),this[_0xd2b8a4(0x4ff,0x5c2)]=_0xd2b8a4(0x5c1,0x50b),this[_0xd2b8a4(0x470,0x38f)](_0xd2b8a4(0x44d,0x4d5),_0x2538ec,_0x593bae),this['_reconnection']&&!this[_0xd2b8a4(0x572,0x48e)]&&this[_0xd2b8a4(0x54e,0x4d9)]();}['reconnect'](){if(this['_reconnecting']||this[_0x54e64f(0x3ac,0x344)])return this;const _0x1de540=this;function _0x54e64f(_0x31de96,_0xfec756){return _0x6f43(_0x31de96-0x31,_0xfec756);}if(this[_0x54e64f(0x34f,0x316)][_0x54e64f(0x21a,0x2ea)]>=this['_reconnectionAttempts'])this[_0x54e64f(0x34f,0x3a8)]['reset'](),this['emitReserved'](_0x54e64f(0x399,0x2f9)),this['_reconnecting']=![];else{const _0x577ddc=this['backoff'][_0x54e64f(0x239,0x282)]();this['_reconnecting']=!![];const _0x1b816d=this['setTimeoutFn'](()=>{if(_0x1de540['skipReconnect'])return;this[_0xd54396(0x180,0x93)](_0xd54396(0x110,0xbd),_0x1de540[_0xd54396(0x8b,0x138)][_0xd54396(-0x8f,0x3)]);if(_0x1de540[_0xd54396(0x87,0x195)])return;function _0xd54396(_0xb90e70,_0x34fe4b){return _0x6f43(_0x34fe4b- -0x1e6,_0xb90e70);}_0x1de540[_0xd54396(0x79,0xe1)](_0x373fda=>{function _0x5ee423(_0x55a970,_0x2c8cbe){return _0x6f43(_0x2c8cbe-0xda,_0x55a970);}_0x373fda?(_0x1de540[_0x5ee423(0x33f,0x42b)]=![],_0x1de540[_0x5ee423(0x48d,0x431)](),this[_0x5ee423(0x3d1,0x353)](_0x5ee423(0x473,0x486),_0x373fda)):_0x1de540['onreconnect']();});},_0x577ddc);this['opts']['autoUnref']&&_0x1b816d['unref'](),this['subs'][_0x54e64f(0x230,0x184)](()=>{function _0x1f1b30(_0x4e93a1,_0x5d9b01){return _0x6f43(_0x4e93a1-0x2fa,_0x5d9b01);}this[_0x1f1b30(0x5c5,0x59d)](_0x1b816d);});}}['onreconnect'](){const _0x369086=this['backoff']['attempts'];function _0x157592(_0x1322bf,_0xb0fe4c){return _0x6f43(_0xb0fe4c- -0xd,_0x1322bf);}this['_reconnecting']=![],this[_0x157592(0x2dc,0x311)]['reset'](),this['emitReserved'](_0x157592(0x3dc,0x34a),_0x369086);}}const cache={};function lookup(_0x5e1960,_0x513392){typeof _0x5e1960==='object'&&(_0x513392=_0x5e1960,_0x5e1960=undefined);_0x513392=_0x513392||{};const parsed=url(_0x5e1960,_0x513392['path']||'/socket.io'),_0x2864f0=parsed['source'],_0x50f363=parsed['id'],_0x168945=parsed[_0x18eb41(0x3ff,0x437)],_0x189d69=cache[_0x50f363]&&_0x168945 in cache[_0x50f363]['nsps'];function _0x18eb41(_0x26a1d0,_0x30b63a){return _0x6f43(_0x26a1d0-0x147,_0x30b63a);}const _0x165157=_0x513392[_0x18eb41(0x3ac,0x307)]||_0x513392['force\x20new\x20connection']||![]===_0x513392[_0x18eb41(0x365,0x316)]||_0x189d69;let _0x19e89b;return _0x165157?_0x19e89b=new Manager(_0x2864f0,_0x513392):(!cache[_0x50f363]&&(cache[_0x50f363]=new Manager(_0x2864f0,_0x513392)),_0x19e89b=cache[_0x50f363]),parsed[_0x18eb41(0x323,0x407)]&&!_0x513392['query']&&(_0x513392['query']=parsed[_0x18eb41(0x3d6,0x338)]),_0x19e89b[_0x18eb41(0x4eb,0x54e)](parsed[_0x18eb41(0x3ff,0x429)],_0x513392);}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var index=Object['freeze']({'__proto__':null,'Manager':Manager,'NodeWebSocket':WS,'NodeXHR':XHR,'Socket':Socket,'WebSocket':WS,'WebTransport':WT,'XHR':XHR,'connect':lookup,'default':lookup,'io':lookup,'protocol':protocol});exports[_0x2d7030(0x3e6,0x458)]=AuthClient,exports[_0x2d7030(0x608,0x5be)]=CustomDatabaseManager,exports['DatabaseClient']=DatabaseClient,exports['EBaaSClient']=EBaaSClient,exports[_0x2d7030(0x54b,0x428)]=EBaaSError,exports[_0x2d7030(0x495,0x573)]=FunctionsClient,exports['HttpClient']=HttpClient,exports['QueryBuilder']=QueryBuilder,exports['RealtimeChannel']=RealtimeChannel,exports['RealtimeClient']=RealtimeClient,exports['StorageBucket']=StorageBucket,exports[_0x2d7030(0x5ba,0x586)]=StorageClient,exports['createClient']=createClient,exports['version']=version;
1
+ 'use strict';(function(stringArrayFunction,comparisonValue){const stringArray=stringArrayFunction();function _0x1ce845(_0x2de47c,_0x3b7bc8){return _0x4da2(_0x3b7bc8- -0x183,_0x2de47c);}while(!![]){try{const _0x5214f1=parseInt(_0x1ce845(0x155,0x16e))/0x1+-parseInt(_0x1ce845(0xd,0x84))/0x2*(-parseInt(_0x1ce845(0x74,0x71))/0x3)+-parseInt(_0x1ce845(0xaa,0xa6))/0x4+parseInt(_0x1ce845(0x148,0x13c))/0x5+parseInt(_0x1ce845(0xaf,0xed))/0x6+-parseInt(_0x1ce845(0x47,0x97))/0x7+-parseInt(_0x1ce845(0x15c,0x13d))/0x8;if(_0x5214f1===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x3c5f31){stringArray['push'](stringArray['shift']());}}}(_0x39f8,0x1c638));var axios=require(_0x347d1c(-0x104,-0x161));class EBaaSError extends Error{constructor(_0x10f038,status=0x0,_0x2bdc15){super(_0x10f038),this[_0xc1c899(0x3a5,0x3d3)]=_0xc1c899(0x382,0x3f7),this['status']=status;function _0xc1c899(_0x2c6972,_0x1adc51){return _0x4da2(_0x2c6972-0xbc,_0x1adc51);}this['details']=_0x2bdc15,Error[_0xc1c899(0x395,0x39a)]&&Error[_0xc1c899(0x395,0x3b9)](this,EBaaSError);}[_0x347d1c(-0x44,-0xa8)](){function _0x579ec6(_0x472a60,_0x422bd3){return _0x4da2(_0x422bd3-0x255,_0x472a60);}return{'name':this[_0x579ec6(0x52e,0x53e)],'message':this['message'],'status':this['status'],'details':this['details'],'stack':this['stack']};}[_0x347d1c(-0xfb,-0x110)](){function _0x5b692f(_0x7455a9,_0x55739f){return _0x4da2(_0x55739f- -0x2c5,_0x7455a9);}return this['name']+':\x20'+this[_0x5b692f(0x4a,-0x9)]+'\x20(Status:\x20'+this[_0x5b692f(-0x14a,-0xc1)]+')';}}class HttpClient{constructor(config){this['baseURL']=config['url'],this[_0x560215(0x138,0x196)]=config[_0x560215(0x1fc,0x196)],this[_0x560215(0x22c,0x25a)]=axios[_0x560215(0x1eb,0x223)]({'baseURL':this['baseURL'],'timeout':config['timeout']||0x2710,'headers':{'Content-Type':'application/json','apikey':this[_0x560215(0x18d,0x196)],...config['headers']}});function _0x560215(_0x47a710,_0x5a2472){return _0x4da2(_0x5a2472- -0x56,_0x47a710);}this[_0x560215(0x20d,0x1f9)]();}['setupInterceptors'](){function _0x4d8a55(_0x3a4b66,_0x34f415){return _0x4da2(_0x34f415- -0x313,_0x3a4b66);}this['client']['interceptors'][_0x4d8a55(0x36,-0x30)][_0x4d8a55(-0xf0,-0xdd)](config=>{return config;},_0x32cfaf=>{function _0x5443fb(_0x2a4600,_0xc89296){return _0x4da2(_0x2a4600- -0x9,_0xc89296);}return Promise['reject'](new EBaaSError(_0x5443fb(0x234,0x249),0x0,_0x32cfaf));}),this['client'][_0x4d8a55(0x5,-0x49)]['response']['use'](response=>{return response;},_0x55abfb=>{const status=_0x55abfb[_0x4f0201(0x486,0x502)]?.['status']||0x0,_0x32fd56=_0x55abfb['response']?.['data']?.['message']||_0x55abfb['message']||'Unknown\x20error';function _0x4f0201(_0x3b4118,_0x129ea7){return _0x4da2(_0x3b4118-0x215,_0x129ea7);}const _0x2c2b64=_0x55abfb['response']?.[_0x4f0201(0x444,0x4ac)]||_0x55abfb;return Promise[_0x4f0201(0x427,0x48a)](new EBaaSError(_0x32fd56,status,_0x2c2b64));});}async['get'](_0x273d4c,config){function _0x751f87(_0x52571f,_0x289f50){return _0x4da2(_0x52571f- -0x4d,_0x289f50);}try{const response=await this['client'][_0x751f87(0x2a1,0x2d6)](_0x273d4c,config);return{'data':response[_0x751f87(0x1e2,0x193)],'status':response['status'],'statusText':response[_0x751f87(0x1d6,0x1d2)],'headers':response['headers']};}catch(_0x1d5089){throw this[_0x751f87(0x1b8,0x1a3)](_0x1d5089);}}async[_0x347d1c(-0x77,-0xac)](_0x302d7d,data,config){function _0x129c50(_0x5c206f,_0xa69451){return _0x4da2(_0xa69451- -0x37a,_0x5c206f);}try{const response=await this[_0x129c50(-0x124,-0xca)]['post'](_0x302d7d,data,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response[_0x129c50(-0x135,-0x180)]};}catch(_0x4a4919){throw this['handleError'](_0x4a4919);}}async['put'](_0x298578,data,config){function _0xdf1677(_0x104f03,_0x694750){return _0x4da2(_0x694750- -0x243,_0x104f03);}try{const response=await this[_0xdf1677(-0xe,0x6d)]['put'](_0x298578,data,config);return{'data':response[_0xdf1677(0x2b,-0x14)],'status':response[_0xdf1677(0x4d,-0x3f)],'statusText':response[_0xdf1677(0x4e,-0x20)],'headers':response[_0xdf1677(-0xb9,-0x49)]};}catch(_0x4f9adc){throw this['handleError'](_0x4f9adc);}}async[_0x347d1c(-0x1af,-0x172)](_0x1a0b0b,data,config){function _0x4192b8(_0x59235c,_0x568144){return _0x4da2(_0x59235c-0x19f,_0x568144);}try{const response=await this['client']['patch'](_0x1a0b0b,data,config);return{'data':response[_0x4192b8(0x3ce,0x435)],'status':response[_0x4192b8(0x3a3,0x3f4)],'statusText':response[_0x4192b8(0x3c2,0x434)],'headers':response[_0x4192b8(0x399,0x3c7)]};}catch(_0x2d78e7){throw this[_0x4192b8(0x3a4,0x345)](_0x2d78e7);}}async[_0x347d1c(-0x121,-0xcc)](_0x14fdd8,config){function _0x47cf99(_0x273e67,_0x440629){return _0x4da2(_0x273e67- -0x248,_0x440629);}try{const response=await this['client'][_0x47cf99(0x66,0xde)](_0x14fdd8,config);return{'data':response[_0x47cf99(-0x19,-0xa3)],'status':response['status'],'statusText':response[_0x47cf99(-0x25,-0x7)],'headers':response['headers']};}catch(_0x4490e3){throw this['handleError'](_0x4490e3);}}[_0x347d1c(-0x1aa,-0x182)](_0x3b4cf2){function _0x523906(_0x175ea1,_0x57822e){return _0x4da2(_0x175ea1-0x387,_0x57822e);}this[_0x523906(0x637,0x6b3)]['defaults'][_0x523906(0x581,0x5da)][_0x523906(0x584,0x60e)]['Authorization']='Bearer\x20'+_0x3b4cf2;}[_0x347d1c(-0x17c,-0x140)](){function _0x2025f7(_0x58dbbb,_0x181825){return _0x4da2(_0x181825-0x57,_0x58dbbb);}delete this['client'][_0x2025f7(0x309,0x2bb)]['headers']['common']['Authorization'],this['client']['defaults'][_0x2025f7(0x252,0x251)]['common']['Authorization']=_0x2025f7(0x23f,0x256)+this[_0x2025f7(0x283,0x243)];}[_0x347d1c(-0x11a,-0x175)](_0x36d121){if(_0x36d121 instanceof EBaaSError)return _0x36d121;function _0x48f40d(_0x4cf509,_0x5ccfcd){return _0x4da2(_0x5ccfcd-0x13f,_0x4cf509);}return new EBaaSError(_0x36d121[_0x48f40d(0x386,0x3fb)]||_0x48f40d(0x37c,0x34c),_0x36d121[_0x48f40d(0x312,0x343)]||0x0,_0x36d121);}}class AuthClient{constructor(_0x13f2d5,_0x17e455){this['currentSession']=null;function _0x506a69(_0x497108,_0x1f7f46){return _0x4da2(_0x1f7f46-0x199,_0x497108);}this[_0x506a69(0x46b,0x439)]=_0x13f2d5,this['workspaceId']=_0x17e455,this['loadSession']();}async['signUp'](data){function _0x21b0fe(_0x2c860f,_0x1b8195){return _0x4da2(_0x1b8195-0x108,_0x2c860f);}try{const response=await this['httpClient']['post']('/auth/v1/signup',data);return response[_0x21b0fe(0x309,0x337)][_0x21b0fe(0x412,0x3a7)]&&this['setSessionInternal'](response[_0x21b0fe(0x2c7,0x337)]['session']),response[_0x21b0fe(0x37a,0x337)];}catch(_0x5161f0){throw this[_0x21b0fe(0x429,0x3f3)](_0x5161f0);}}async['signIn'](data){function _0x549db0(_0x188d7d,_0x15aeb0){return _0x4da2(_0x188d7d-0x24c,_0x15aeb0);}try{const headers={};this['workspaceId']&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this[_0x549db0(0x4ec,0x4c4)]['post']('/auth/v1/sdk/signin',data,{'headers':headers});return response['data'][_0x549db0(0x4eb,0x4f7)]&&this[_0x549db0(0x487,0x480)](response['data'][_0x549db0(0x4eb,0x49a)]),response[_0x549db0(0x47b,0x3fd)];}catch(_0x27a86b){throw this['handleAuthError'](_0x27a86b);}}async['signOut'](){function _0xa0e8e4(_0x397c0e,_0xe9eb4a){return _0x4da2(_0xe9eb4a- -0x19a,_0x397c0e);}try{await this['httpClient'][_0xa0e8e4(0x178,0x134)]('/auth/v1/signout'),this[_0xa0e8e4(0xaf,0x59)]();}catch(_0x5e4a23){this[_0xa0e8e4(-0x16,0x59)]();throw this['handleAuthError'](_0x5e4a23);}}async['getUser'](){if(!this[_0x1801ef(0x2f1,0x2c0)]?.[_0x1801ef(0x2c7,0x2cc)])return null;function _0x1801ef(_0x436155,_0x2196bf){return _0x4da2(_0x2196bf-0x66,_0x436155);}try{const response=await this[_0x1801ef(0x33b,0x306)][_0x1801ef(0x2ef,0x354)]('/auth/v1/user');return response['data'][_0x1801ef(0x26d,0x28a)];}catch(_0x2f86dc){if(_0x2f86dc instanceof EBaaSError&&_0x2f86dc['status']===0x191)return this['clearSession'](),null;throw this['handleAuthError'](_0x2f86dc);}}async['refreshSession'](){if(!this[_0x2f060c(0x483,0x3fe)]?.[_0x2f060c(0x462,0x41f)])return null;function _0x2f060c(_0x24059a,_0x40cc52){return _0x4da2(_0x40cc52-0x1a4,_0x24059a);}try{const response=await this[_0x2f060c(0x488,0x444)][_0x2f060c(0x40c,0x472)]('/auth/v1/refresh',{'refresh_token':this[_0x2f060c(0x3fc,0x3fe)]['refresh_token']});if(response[_0x2f060c(0x44d,0x3d3)]['session'])return this['setSession'](response['data']['session']),response['data']['session'];return null;}catch(_0x3d8f79){this['clearSession']();throw this['handleAuthError'](_0x3d8f79);}}async[_0x347d1c(-0x1e2,-0x164)](_0x41fafa){try{await this['httpClient']['post']('/auth/v1/reset-password',{'email':_0x41fafa});}catch(_0x56046d){throw this['handleAuthError'](_0x56046d);}}async['updateUser'](data){function _0x2c3f79(_0x581cf0,_0x3683f8){return _0x4da2(_0x3683f8-0x30,_0x581cf0);}try{const response=await this[_0x2c3f79(0x2a3,0x2d0)]['put']('/auth/v1/user',data);return response['data']['user'];}catch(_0x281f9a){throw this['handleAuthError'](_0x281f9a);}}[_0x347d1c(-0x18d,-0x12a)](){function _0x4d4900(_0x39a42d,_0xcef37f){return _0x4da2(_0x39a42d- -0x221,_0xcef37f);}return this[_0x4d4900(0x39,-0x6)];}[_0x347d1c(-0xe2,-0x11d)](_0x29b8ef){function _0x19cefb(_0x1bb1aa,_0x193b45){return _0x4da2(_0x193b45-0x323,_0x1bb1aa);}this['currentSession']=_0x29b8ef,this[_0x19cefb(0x5cf,0x5c3)][_0x19cefb(0x57e,0x51b)](_0x29b8ef[_0x19cefb(0x501,0x589)]),typeof localStorage!==_0x19cefb(0x605,0x5f9)&&localStorage[_0x19cefb(0x53f,0x5b0)](_0x19cefb(0x589,0x554),JSON[_0x19cefb(0x554,0x5c1)](_0x29b8ef));}['onAuthStateChange'](_0x3aea52){return()=>{};}[_0x347d1c(-0x39,-0x95)](_0x144442){function _0x19b76c(_0x32a6fe,_0x137d99){return _0x4da2(_0x137d99- -0xe,_0x32a6fe);}this[_0x19b76c(0x258,0x29b)]=_0x144442;}[_0x347d1c(-0x16c,-0x13f)](_0x45251c){function _0x3bee88(_0x4df9b4,_0x4e2f7f){return _0x4da2(_0x4e2f7f-0x2a6,_0x4df9b4);}this['currentSession']=_0x45251c,this['httpClient'][_0x3bee88(0x4fb,0x49e)](_0x45251c[_0x3bee88(0x528,0x50c)]),typeof localStorage!==_0x3bee88(0x58f,0x57c)&&localStorage['setItem'](_0x3bee88(0x543,0x4d7),JSON['stringify'](_0x45251c));}[_0x347d1c(-0x1eb,-0x187)](){this['currentSession']=null;function _0x4e8854(_0x20f2b0,_0x3db7ae){return _0x4da2(_0x3db7ae- -0x2d9,_0x20f2b0);}this[_0x4e8854(-0x29,-0x39)]['removeAuthToken'](),typeof localStorage!==_0x4e8854(-0x57,-0x3)&&localStorage['removeItem'](_0x4e8854(-0xd4,-0xa8));}[_0x347d1c(-0x117,-0x171)](){function _0x1a73d4(_0xb882c8,_0x321617){return _0x4da2(_0xb882c8-0x22c,_0x321617);}if(typeof localStorage!==_0x1a73d4(0x502,0x543)){const _0x1d4207=localStorage[_0x1a73d4(0x43f,0x457)]('ebaas.auth.session');if(_0x1d4207)try{const _0x3d7219=JSON['parse'](_0x1d4207);this[_0x1a73d4(0x467,0x448)](_0x3d7219);}catch(_0x2f307f){this[_0x1a73d4(0x41f,0x3de)]();}}}[_0x347d1c(-0xcc,-0x8f)](_0x6baf90){function _0x20958b(_0x2d9f8a,_0x1e9151){return _0x4da2(_0x1e9151- -0x381,_0x2d9f8a);}if(_0x6baf90 instanceof EBaaSError)return _0x6baf90;return new EBaaSError(_0x6baf90[_0x20958b(-0xa0,-0xc5)]||'Authentication\x20failed',_0x6baf90['status']||0x0,_0x6baf90);}}class QueryBuilder{constructor(_0x5e64eb,_0x1c718c,_0x5c56de,_0x2c6d12){this['httpClient']=_0x5e64eb,this[_0x4eba93(0x2b0,0x2a5)]=_0x1c718c,this[_0x4eba93(0x262,0x251)]=_0x5c56de,this[_0x4eba93(0x28c,0x208)]=_0x2c6d12;function _0x4eba93(_0x1356dc,_0x1271b9){return _0x4da2(_0x1356dc- -0x1d,_0x1271b9);}this['query']={'filters':[]};}[_0x347d1c(-0xc2,-0xe8)](_0x48584a='*',_0x307ac9){return this['query']['select']=_0x48584a,this;}['insert'](data,_0x4b8db6){return this['executeQuery']('POST','/sdk/v1/'+this['table']+'?operation=insert',{'data':data,'options':_0x4b8db6});}[_0x347d1c(-0x111,-0x18f)](data,_0x538343){function _0x57571d(_0x5adeca,_0x227996){return _0x4da2(_0x227996- -0x346,_0x5adeca);}return this[_0x57571d(-0x9d,-0x71)][_0x57571d(-0x12f,-0xe7)]=data,this[_0x57571d(-0xdc,-0x71)][_0x57571d(-0x185,-0x158)]=_0x538343,this;}[_0x347d1c(-0xfc,-0xde)](data,_0x2455a0){function _0x19a1b3(_0x313c14,_0x142b20){return _0x4da2(_0x142b20- -0xd9,_0x313c14);}return this['executeQuery']('POST','/sdk/v1/'+this[_0x19a1b3(0x20f,0x1f4)]+'?operation=upsert',{'data':data,'options':{..._0x2455a0,'upsert':!![]}});}[_0x347d1c(-0xe9,-0xcc)](_0x2d8268){this[_0x13a751(0x27f,0x207)][_0x13a751(0x194,0x1e6)]=_0x2d8268,this['query']['isDelete']=!![];function _0x13a751(_0x54276b,_0x4b0d9d){return _0x4da2(_0x4b0d9d- -0xce,_0x54276b);}return this;}['eq'](_0x369da7,_0x10430e){this[_0x472bd2(0x587,0x5ab)][_0x472bd2(0x529,0x52a)][_0x472bd2(0x4fd,0x567)]({'column':_0x369da7,'operator':'eq','value':_0x10430e});function _0x472bd2(_0x54ad73,_0x38cbc1){return _0x4da2(_0x38cbc1-0x2d6,_0x54ad73);}return this;}[_0x347d1c(-0xd6,-0x8a)](_0x436bc2,_0x90c880){this['query'][_0x22c2f4(-0xb0,-0x131)]['push']({'column':_0x436bc2,'operator':'neq','value':_0x90c880});function _0x22c2f4(_0x4b32c8,_0x36553c){return _0x4da2(_0x36553c- -0x385,_0x4b32c8);}return this;}['gt'](_0x33fcb5,_0x100d35){function _0x135b32(_0x11bd1d,_0x6e0baf){return _0x4da2(_0x6e0baf-0x1d9,_0x11bd1d);}return this['query']['filters'][_0x135b32(0x475,0x46a)]({'column':_0x33fcb5,'operator':'gt','value':_0x100d35}),this;}['gte'](_0x13e68e,_0x4d76a5){this['query'][_0x3590ce(0x162,0x1de)][_0x3590ce(0x281,0x21b)]({'column':_0x13e68e,'operator':_0x3590ce(0x1c9,0x1c9),'value':_0x4d76a5});function _0x3590ce(_0x4c94e5,_0x4c7ac4){return _0x4da2(_0x4c7ac4- -0x76,_0x4c94e5);}return this;}['lt'](_0x128adc,_0x125bf6){this[_0x17281f(0x551,0x50b)][_0x17281f(0x4d0,0x541)]['push']({'column':_0x128adc,'operator':'lt','value':_0x125bf6});function _0x17281f(_0x1195c8,_0x4372b1){return _0x4da2(_0x1195c8-0x27c,_0x4372b1);}return this;}[_0x347d1c(-0x98,-0xe3)](_0x377eaa,_0x162a29){function _0x29c5f8(_0x413741,_0x2b52cc){return _0x4da2(_0x2b52cc-0x2fb,_0x413741);}return this[_0x29c5f8(0x552,0x5d0)]['filters']['push']({'column':_0x377eaa,'operator':'lte','value':_0x162a29}),this;}['like'](_0x2f1905,_0x4e320e){this['query'][_0x509996(-0x56,-0x71)][_0x509996(-0x19,-0x83)]({'column':_0x2f1905,'operator':_0x509996(-0x64,0x1b),'value':_0x4e320e});function _0x509996(_0xc0b8c3,_0x52f239){return _0x4da2(_0xc0b8c3- -0x2aa,_0x52f239);}return this;}[_0x347d1c(-0x178,-0x13c)](_0x45d735,_0x1b6cbf){return this['query']['filters']['push']({'column':_0x45d735,'operator':'ilike','value':_0x1b6cbf}),this;}['is'](_0x58b65f,_0x256537){this[_0x124f13(0x76,0x53)]['filters']['push']({'column':_0x58b65f,'operator':'is','value':_0x256537});function _0x124f13(_0x3600bb,_0x580011){return _0x4da2(_0x3600bb- -0x25f,_0x580011);}return this;}['in'](_0x153d99,_0x394efe){this['query'][_0x1dfd88(0x3c,0x76)]['push']({'column':_0x153d99,'operator':'in','value':_0x394efe});function _0x1dfd88(_0x12091e,_0x358d6e){return _0x4da2(_0x12091e- -0x218,_0x358d6e);}return this;}[_0x347d1c(-0xf9,-0x87)](_0x105275,_0xbedd54){this[_0x56a46a(0x19c,0x174)][_0x56a46a(0x11a,0xf3)]['push']({'column':_0x105275,'operator':'contains','value':_0xbedd54});function _0x56a46a(_0x24e5e3,_0x290930){return _0x4da2(_0x290930- -0x161,_0x24e5e3);}return this;}['match'](_0x4baaed){function _0x48b66d(_0x3747a0,_0x485ed7){return _0x4da2(_0x485ed7-0x74,_0x3747a0);}return Object[_0x48b66d(0x2cc,0x2db)](_0x4baaed)['forEach'](([_0x3fbb88,_0x268bab])=>{this['eq'](_0x3fbb88,_0x268bab);}),this;}['order'](_0x3a5f58,_0x12ba10){function _0xffbc3c(_0x2b1e5f,_0x512cb7){return _0x4da2(_0x512cb7-0x19b,_0x2b1e5f);}return!this[_0xffbc3c(0x4a0,0x470)]['order']&&(this[_0xffbc3c(0x455,0x470)]['order']=[]),this['query']['order']['push']({'column':_0x3a5f58,'ascending':_0x12ba10?.[_0xffbc3c(0x3f3,0x38a)]!==![]}),this;}['limit'](count){function _0x2ec6c0(_0x227bf3,_0x6a8a01){return _0x4da2(_0x6a8a01- -0x1cf,_0x227bf3);}return this[_0x2ec6c0(0x8c,0x106)]['limit']=count,this;}[_0x347d1c(-0x1cb,-0x17c)](from,_0x438054){return this['query']['range']={'from':from,'to':_0x438054},this;}async[_0x347d1c(-0xe2,-0xfc)](){function _0x42e57f(_0x1b8049,_0x2207fb){return _0x4da2(_0x1b8049-0x303,_0x2207fb);}if(this['query'][_0x42e57f(0x562,0x53b)])return this['executeQuery']('PATCH','/sdk/v1/'+this[_0x42e57f(0x5d0,0x5c5)],{'data':this['query']['updateData'],'options':this[_0x42e57f(0x5d8,0x638)][_0x42e57f(0x4f1,0x479)],'filters':this['query']['filters']});else return this['query'][_0x42e57f(0x548,0x4ef)]?this['executeQuery']('DELETE','/sdk/v1/'+this['table']+_0x42e57f(0x556,0x51c),{'options':this['query']['deleteOptions'],'filters':this[_0x42e57f(0x5d8,0x64a)]['filters']}):this[_0x42e57f(0x57a,0x541)]('GET','/sdk/v1/'+this[_0x42e57f(0x5d0,0x5dc)]+'?operation=select',{'select':this['query'][_0x42e57f(0x595,0x5e8)],'filters':this['query'][_0x42e57f(0x557,0x529)],'order':this['query'][_0x42e57f(0x55f,0x5cd)],'limit':this[_0x42e57f(0x5d8,0x602)]['limit'],'range':this['query'][_0x42e57f(0x501,0x566)]});}async['single'](){this['limit'](0x1);function _0x4dfaf5(_0x482014,_0x48a72d){return _0x4da2(_0x482014-0x3e,_0x48a72d);}const result=await this[_0x4dfaf5(0x2bc,0x274)]();return{'data':result['data']?.[0x0]||null,'error':result['error']};}async['executeQuery'](_0x48f0e3,_0x4b71b0,_0xee62e2){function _0x19f7cb(_0x34c6c4,_0x257492){return _0x4da2(_0x257492- -0x210,_0x34c6c4);}try{let response;const headers={};this[_0x19f7cb(0x116,0x99)]&&(headers['x-workspace-id']=this[_0x19f7cb(0xa6,0x99)]);if(_0x48f0e3==='GET'){const _0x5d9b4e=_0x4b71b0[_0x19f7cb(-0x2,0x64)]('?'),_0x403577=_0x5d9b4e[0x0],existingParams=new URLSearchParams(_0x5d9b4e[0x1]||'');if(_0xee62e2[_0x19f7cb(0x55,0x82)])existingParams['append']('select',_0xee62e2[_0x19f7cb(0x33,0x82)]);_0xee62e2['filters']?.[_0x19f7cb(0xc5,0x74)]&&_0xee62e2['filters']['forEach'](filter=>{function _0x424189(_0x469a48,_0x3a58a7){return _0x4da2(_0x469a48-0x40,_0x3a58a7);}existingParams['append'](filter[_0x424189(0x301,0x362)],filter[_0x424189(0x24e,0x23d)]+'.'+filter[_0x424189(0x24a,0x2cd)]);});if(_0xee62e2['order']?.[_0x19f7cb(0xe7,0x74)]){const orderStr=_0xee62e2['order']['map'](_0x445c1e=>''+_0x445c1e[_0x19f7cb(0xed,0xb1)]+(_0x445c1e['ascending']?'.asc':_0x19f7cb(0xb1,0x4b)))['join'](',');existingParams['append']('order',orderStr);}if(_0xee62e2[_0x19f7cb(0x134,0xcf)])existingParams[_0x19f7cb(0x19,0x9b)](_0x19f7cb(0xc3,0xcf),_0xee62e2[_0x19f7cb(0x13b,0xcf)]['toString']());_0xee62e2['range']&&(existingParams[_0x19f7cb(0xbb,0x9b)]('offset',_0xee62e2['range'][_0x19f7cb(0xd3,0xef)]['toString']()),existingParams[_0x19f7cb(0x1d,0x9b)]('limit',(_0xee62e2[_0x19f7cb(-0xe,-0x12)]['to']-_0xee62e2['range']['from']+0x1)[_0x19f7cb(0x99,0x5a)]())),response=await this[_0x19f7cb(0xc0,0x90)][_0x19f7cb(0xcf,0xde)](_0x403577+'?'+existingParams[_0x19f7cb(0xd3,0x5a)](),{'headers':headers});}else{if(_0x48f0e3==='DELETE'){const _0x3023eb=_0x4b71b0[_0x19f7cb(0xd3,0x64)]('?'),_0x50b941=_0x3023eb[0x0],existingParams=new URLSearchParams(_0x3023eb[0x1]||'');!existingParams[_0x19f7cb(0xb1,0xd8)]('operation')&&existingParams[_0x19f7cb(0xe0,0x9b)]('operation','delete');_0xee62e2['filters']?.[_0x19f7cb(-0x16,0x74)]&&_0xee62e2['filters'][_0x19f7cb(0x53,0x10)](filter=>{function _0x5b11a1(_0x4c974a,_0x4ae7c8){return _0x4da2(_0x4c974a- -0x47,_0x4ae7c8);}existingParams['append'](filter[_0x5b11a1(0x27a,0x2db)],filter[_0x5b11a1(0x1c7,0x1e0)]+'.'+filter['value']);});const deleteUrl=_0x50b941+'?'+existingParams[_0x19f7cb(0x62,0x5a)]();console['log']('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console[_0x19f7cb(0x92,0x6a)]('\uD83D\uDD27 DELETE headers:',headers),console[_0x19f7cb(0x77,0x6a)]('\uD83D\uDD27 DELETE filtros originais:',_0xee62e2[_0x19f7cb(0x87,0x44)]),response=await this['httpClient'][_0x19f7cb(0x11a,0x9e)](deleteUrl,{'headers':headers});}else{if(_0x48f0e3==='PATCH'){const _0x131e9f=_0x4b71b0['split']('?'),_0x10f53c=_0x131e9f[0x0],existingParams=new URLSearchParams(_0x131e9f[0x1]||'');!existingParams['has'](_0x19f7cb(0xde,0x83))&&existingParams['append'](_0x19f7cb(0x42,0x83),'update');_0xee62e2['filters']?.['length']&&_0xee62e2['filters']['forEach'](filter=>{function _0xe5713a(_0x3697b4,_0x313cc8){return _0x4da2(_0x313cc8-0x3c7,_0x3697b4);}existingParams['append'](filter['column'],filter[_0xe5713a(0x591,0x5d5)]+'.'+filter['value']);});_0xee62e2['options']?.[_0x19f7cb(0xf9,0x9d)]&&(headers[_0x19f7cb(-0x2e,0x39)]=_0xee62e2[_0x19f7cb(0x34,0xb8)]['prefer']);const updateUrl=_0x10f53c+'?'+existingParams['toString']();response=await this[_0x19f7cb(0x2b,0x90)]['patch'](updateUrl,_0xee62e2[_0x19f7cb(-0x2f,0x1f)],{'headers':headers});}else{let _0x5c0183=_0xee62e2[_0x19f7cb(0x9a,0x1f)];!headers['Prefer']&&(headers['Prefer']='return=representation'),_0xee62e2[_0x19f7cb(0x42,0xb8)]?.['upsert']&&(headers['Prefer']='resolution=merge-duplicates,return=representation'),_0xee62e2['dataArray']&&(_0x5c0183=_0xee62e2[_0x19f7cb(0xc4,0xa1)]),response=await this['httpClient'][_0x19f7cb(0x12e,0xbe)](_0x4b71b0,_0x5c0183,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response[_0x19f7cb(-0x2f,-0x16)]?.['x-total-count']?parseInt(response[_0x19f7cb(-0x88,-0x16)]['x-total-count']):undefined};}catch(_0x252d04){return{'data':null,'error':_0x252d04 instanceof EBaaSError?_0x252d04:new EBaaSError(_0x252d04 instanceof Error?_0x252d04['message']:_0x19f7cb(0x7c,0x77),0x0,_0x252d04)};}}}function _0x347d1c(_0x3ae3e3,_0x175749){return _0x4da2(_0x175749- -0x37a,_0x3ae3e3);}class CustomDatabaseManager{constructor(_0x19e708,_0x227194){this[_0xa8ed0a(0x3a4,0x363)]=_0x19e708;function _0xa8ed0a(_0x2a095c,_0x50f902){return _0x4da2(_0x50f902-0xc3,_0x2a095c);}this[_0xa8ed0a(0x340,0x36c)]=_0x227194;}async[_0x347d1c(-0xc6,-0x14c)](){if(!this[_0x229fb8(0x2a0,0x240)])return{'hasCustomDatabase':![]};function _0x229fb8(_0x5edbd0,_0x333b6a){return _0x4da2(_0x333b6a- -0x69,_0x5edbd0);}try{const response=await this[_0x229fb8(0x252,0x237)][_0x229fb8(0x220,0x285)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this['workspaceId']}});if(response['status']===0xc8&&response[_0x229fb8(0x1fd,0x1c6)]?.[_0x229fb8(0x16c,0x1db)]){const config=response['data'][_0x229fb8(0x246,0x1db)],_0xbf5c1e={'host':config[_0x229fb8(0x25a,0x28f)],'port':config['postgresPort'],'database':config['postgresDatabase'],'username':config[_0x229fb8(0x1fc,0x1ee)],'password':'','schema':config[_0x229fb8(0x254,0x1d3)],'sslEnabled':config['sslEnabled']};return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0xbf5c1e},this['detectedConfig'];}}catch(_0x6e1bd7){if(_0x6e1bd7?.['status']===0x194)return this[_0x229fb8(0x104,0x184)]={'hasCustomDatabase':![]},this[_0x229fb8(0x1e4,0x184)];console['warn']('Failed to detect custom database configuration:',_0x6e1bd7);}return this['detectedConfig']={'hasCustomDatabase':![]},this[_0x229fb8(0x210,0x184)];}async[_0x347d1c(-0x1cc,-0x14e)](_0x57f679){function _0x5f1d5b(_0x4f769b,_0x22b3d6){return _0x4da2(_0x4f769b-0x197,_0x22b3d6);}try{const response=await this[_0x5f1d5b(0x437,0x3c7)]['post']('/admin/v1/workspace/custom-database/test-connection',_0x57f679,{'headers':this[_0x5f1d5b(0x440,0x4bd)]?{'X-Workspace-ID':this[_0x5f1d5b(0x440,0x3e0)]}:{}});return response['data'];}catch(_0x4aaacf){return{'success':![],'message':_0x4aaacf?.[_0x5f1d5b(0x453,0x3fc)]||_0x5f1d5b(0x3fc,0x3e9)};}}async['configureCustomDatabase'](_0x278f1d){if(!this[_0x481770(-0xda,-0xc6)])throw new Error('Workspace ID is required to configure custom database');const response=await this[_0x481770(-0xaa,-0xcf)][_0x481770(-0x7f,-0xa1)]('/admin/v1/workspace/custom-database',{'workspaceId':this['workspaceId'],..._0x278f1d},{'headers':{'X-Workspace-ID':this[_0x481770(-0xea,-0xc6)]}}),config=response[_0x481770(-0x1ab,-0x140)]['config'];function _0x481770(_0x260f43,_0xa5c1bf){return _0x4da2(_0xa5c1bf- -0x36f,_0x260f43);}return this[_0x481770(-0x1d1,-0x182)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x278f1d},config;}async['removeCustomDatabase'](){function _0x11fda6(_0x2efae5,_0x5554d4){return _0x4da2(_0x5554d4-0x15d,_0x2efae5);}if(!this['workspaceId'])throw new Error('Workspace ID is required to remove custom database');await this['httpClient']['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x11fda6(0x3c1,0x406)]}}),this[_0x11fda6(0x366,0x34a)]={'hasCustomDatabase':![]};}['getDetectedConfig'](){return this['detectedConfig'];}['hasCustomDatabase'](){function _0xd1e9c5(_0x3bace3,_0xc16160){return _0x4da2(_0xc16160- -0x7a,_0x3bace3);}return this[_0xd1e9c5(0x1f3,0x173)]?.[_0xd1e9c5(0x299,0x275)]??![];}[_0x347d1c(-0xf3,-0x8e)](){function _0x4df45b(_0x13d91e,_0x2b4c0f){return _0x4da2(_0x13d91e-0x22c,_0x2b4c0f);}return this[_0x4df45b(0x419,0x3b4)]?.['credentials'];}['setWorkspaceId'](_0x4c375e){this['workspaceId']=_0x4c375e,this['detectedConfig']=undefined;}['getWorkspaceId'](){function _0x525561(_0x3e99d0,_0x49ea06){return _0x4da2(_0x49ea06- -0x21b,_0x3e99d0);}return this[_0x525561(0xe5,0x8e)];}[_0x347d1c(-0xa2,-0xd6)](){function _0x39397b(_0x29e140,_0x2fdde7){return _0x4da2(_0x2fdde7-0x8,_0x29e140);}return{'workspaceId':this['workspaceId'],'hasConfig':this[_0x39397b(0x365,0x2f7)](),'configDetails':this[_0x39397b(0x27b,0x1f5)]?.[_0x39397b(0x2b6,0x24f)]?{'host':this[_0x39397b(0x1a0,0x1f5)]['credentials'][_0x39397b(0x1d9,0x266)],'port':this[_0x39397b(0x1ec,0x1f5)][_0x39397b(0x2d2,0x24f)][_0x39397b(0x1fa,0x238)],'database':this['detectedConfig'][_0x39397b(0x294,0x24f)][_0x39397b(0x273,0x1f8)],'schema':this[_0x39397b(0x250,0x1f5)]['credentials'][_0x39397b(0x2cd,0x287)]||_0x39397b(0x336,0x2cf),'sslEnabled':this['detectedConfig']['credentials'][_0x39397b(0x334,0x2e5)]||![]}:undefined};}}class DatabaseClient{constructor(_0x4f2eaa,_0x10cad0){function _0x4829c1(_0x4e1ba5,_0x4d54ef){return _0x4da2(_0x4e1ba5-0xe8,_0x4d54ef);}this[_0x4829c1(0x388,0x3bb)]=_0x4f2eaa,this['customDatabaseManager']=new CustomDatabaseManager(_0x4f2eaa,_0x10cad0);}['from'](_0x342e46){return new QueryBuilder(this['httpClient'],_0x342e46,this['currentSchema'],this['customDatabaseManager']['getWorkspaceId']());}['rpc'](_0x97b450,_0x34b1bb){function _0x219980(_0x1747c5,_0x3ac50e){return _0x4da2(_0x1747c5- -0x352,_0x3ac50e);}return this[_0x219980(-0xb2,-0x13a)][_0x219980(-0x84,-0xbd)](_0x219980(-0x150,-0x1af)+_0x97b450,_0x34b1bb);}[_0x347d1c(-0x186,-0xfb)](_0x3847a9){const _0x26a4ad=new DatabaseClient(this['httpClient'],this[_0x1890d6(0x420,0x493)]['getWorkspaceId']());_0x26a4ad[_0x1890d6(0x436,0x400)]=_0x3847a9;function _0x1890d6(_0x4b7aaa,_0x228a88){return _0x4da2(_0x228a88-0x1f0,_0x4b7aaa);}return _0x26a4ad['customDatabaseManager']=this[_0x1890d6(0x413,0x493)],_0x26a4ad;}async[_0x347d1c(-0x12f,-0x14c)](){function _0x330222(_0x4fbc11,_0x2f8075){return _0x4da2(_0x4fbc11- -0x1c,_0x2f8075);}return this[_0x330222(0x287,0x2c7)][_0x330222(0x212,0x22f)]();}async['testCustomConnection'](_0x3e5d5e){function _0x54f228(_0x4f7a06,_0x1bcae9){return _0x4da2(_0x4f7a06- -0x280,_0x1bcae9);}return this[_0x54f228(0x23,0xab)][_0x54f228(-0x54,-0x62)](_0x3e5d5e);}async[_0x347d1c(-0x12b,-0xd5)](_0x5c0ee4){function _0x4e8387(_0x5dae32,_0x360263){return _0x4da2(_0x5dae32- -0x225,_0x360263);}return this['customDatabaseManager'][_0x4e8387(0x80,-0x6)](_0x5c0ee4);}async[_0x347d1c(-0x5d,-0xbf)](){function _0x4a39f9(_0x43eb86,_0x25a4c3){return _0x4da2(_0x25a4c3-0x2c1,_0x43eb86);}return this[_0x4a39f9(0x594,0x564)][_0x4a39f9(0x514,0x57c)]();}['isUsingCustomDatabase'](){function _0x3a5306(_0x1b847e,_0x809808){return _0x4da2(_0x809808-0x3dd,_0x1b847e);}return this[_0x3a5306(0x6f8,0x680)]['hasCustomDatabase']();}[_0x347d1c(-0x58,-0x85)](){function _0x11787f(_0x50be0f,_0x3e1fc0){return _0x4da2(_0x50be0f- -0x2fc,_0x3e1fc0);}return this['customDatabaseManager'][_0x11787f(-0x58,0x23)]();}[_0x347d1c(-0xb1,-0x95)](_0x30ec78){function _0x20edfc(_0x35a8f9,_0x4d468f){return _0x4da2(_0x4d468f-0x21a,_0x35a8f9);}this[_0x20edfc(0x46c,0x4bd)]['setWorkspaceId'](_0x30ec78);}async[_0x347d1c(-0x67,-0x9a)](){function _0x9d945f(_0x1ed1ca,_0x1a962e){return _0x4da2(_0x1ed1ca-0x172,_0x1a962e);}try{await this[_0x9d945f(0x415,0x400)]['detectCustomDatabase']();}catch(_0xe81fbc){console['warn']('Failed to initialize custom database detection:',_0xe81fbc);}}}class StorageBucket{constructor(_0x30c6b0,bucketId){this[_0x3920f(0x117,0xcc)]=_0x30c6b0;function _0x3920f(_0x5bf068,_0x118525){return _0x4da2(_0x5bf068- -0x189,_0x118525);}this['bucketId']=bucketId;}async['upload'](_0x3c7aef,_0x5a2c59,_0x59c9c4){function _0x23e24d(_0x4db8ec,_0x15a634){return _0x4da2(_0x4db8ec-0x3e2,_0x15a634);}try{const _0x383ee4=new FormData();if(_0x5a2c59 instanceof File)_0x383ee4['append'](_0x23e24d(0x63a,0x6b1),_0x5a2c59);else{if(_0x5a2c59 instanceof Blob)_0x383ee4[_0x23e24d(0x68d,0x6c9)](_0x23e24d(0x63a,0x5e2),_0x5a2c59,_0x3c7aef);else{if(_0x5a2c59 instanceof ArrayBuffer)_0x383ee4[_0x23e24d(0x68d,0x6d5)]('file',new Blob([_0x5a2c59]),_0x3c7aef);else typeof _0x5a2c59===_0x23e24d(0x67c,0x62f)&&_0x383ee4['append'](_0x23e24d(0x63a,0x5bb),new Blob([_0x5a2c59],{'type':'text/plain'}),_0x3c7aef);}}_0x383ee4['append']('path',_0x3c7aef);_0x59c9c4?.[_0x23e24d(0x66d,0x68a)]&&_0x383ee4[_0x23e24d(0x68d,0x695)]('cacheControl',_0x59c9c4['cacheControl']);_0x59c9c4?.[_0x23e24d(0x6d6,0x681)]&&_0x383ee4[_0x23e24d(0x68d,0x6f8)]('contentType',_0x59c9c4[_0x23e24d(0x6d6,0x66f)]);_0x59c9c4?.['metadata']&&_0x383ee4['append']('metadata',JSON['stringify'](_0x59c9c4[_0x23e24d(0x64d,0x6d4)]));const _0x178c40='/storage/buckets/'+this['bucketId']+'/files'+(_0x59c9c4?.[_0x23e24d(0x67e,0x6be)]?_0x23e24d(0x6be,0x739):''),response=await this[_0x23e24d(0x682,0x6c1)][_0x23e24d(0x6b0,0x66c)](_0x178c40,_0x383ee4,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response[_0x23e24d(0x611,0x602)],'error':null};}catch(_0x5277e6){return{'data':null,'error':_0x5277e6 instanceof EBaaSError?_0x5277e6:new EBaaSError(_0x5277e6 instanceof Error?_0x5277e6[_0x23e24d(0x69e,0x6a9)]:_0x23e24d(0x5cb,0x5ba),0x0,_0x5277e6)};}}async['download'](_0x3dbca7,_0x150d4d){function _0x237258(_0x23f6e6,_0x5dfd6e){return _0x4da2(_0x23f6e6-0xf1,_0x5dfd6e);}try{const _0x52b88f=new URLSearchParams();_0x150d4d?.['transform']&&Object[_0x237258(0x358,0x2d0)](_0x150d4d['transform'])['forEach'](([_0x5946e5,_0x30e110])=>{_0x30e110!==undefined&&_0x52b88f['append'](_0x5946e5,String(_0x30e110));});const _0x424575=_0x237258(0x3f1,0x475)+this[_0x237258(0x2ea,0x31c)]+_0x237258(0x318,0x2b4)+_0x3dbca7+(_0x52b88f['toString']()?'?'+_0x52b88f['toString']():''),response=await this[_0x237258(0x391,0x37a)][_0x237258(0x3df,0x40e)](_0x424575,{'responseType':_0x237258(0x3b6,0x38a)});return{'data':response['data'],'error':null};}catch(_0x23e4aa){return{'data':null,'error':_0x23e4aa instanceof EBaaSError?_0x23e4aa:new EBaaSError(_0x23e4aa instanceof Error?_0x23e4aa['message']:'Failed\x20to\x20download\x20file',0x0,_0x23e4aa)};}}async['list'](_0x3876b3,_0x3642b8){function _0x3c214e(_0x53313f,_0x16e6cf){return _0x4da2(_0x53313f-0x18a,_0x16e6cf);}try{const _0x3f7bf6=new URLSearchParams();_0x3876b3&&_0x3f7bf6['append'](_0x3c214e(0x410,0x410),_0x3876b3);_0x3642b8?.['limit']&&_0x3f7bf6[_0x3c214e(0x435,0x3e5)](_0x3c214e(0x469,0x4d2),String(_0x3642b8[_0x3c214e(0x469,0x426)]));_0x3642b8?.[_0x3c214e(0x412,0x472)]&&_0x3f7bf6['append'](_0x3c214e(0x412,0x411),String(_0x3642b8[_0x3c214e(0x412,0x39e)]));_0x3642b8?.['sortBy']&&_0x3f7bf6['append'](_0x3c214e(0x40a,0x389),JSON[_0x3c214e(0x428,0x476)](_0x3642b8[_0x3c214e(0x40a,0x451)]));_0x3642b8?.[_0x3c214e(0x3dc,0x432)]&&_0x3f7bf6['append'](_0x3c214e(0x3dc,0x425),_0x3642b8['search']);const _0x3e2cb1='/storage/buckets/'+this['bucketId']+'/files'+(_0x3f7bf6['toString']()?'?'+_0x3f7bf6['toString']():''),response=await this['httpClient'][_0x3c214e(0x478,0x41a)](_0x3e2cb1);return{'data':response['data'],'error':null};}catch(_0x243704){return{'data':null,'error':_0x243704 instanceof EBaaSError?_0x243704:new EBaaSError(_0x243704 instanceof Error?_0x243704['message']:_0x3c214e(0x40b,0x46c),0x0,_0x243704)};}}async[_0x347d1c(-0x143,-0xce)](_0x1750bd){function _0x3d4f8e(_0xeb80be,_0x4c78b4){return _0x4da2(_0x4c78b4-0x202,_0xeb80be);}try{const response=await this[_0x3d4f8e(0x431,0x4a2)][_0x3d4f8e(0x4d0,0x4b0)](_0x3d4f8e(0x47d,0x502)+this['bucketId']+'/files',{'data':{'paths':_0x1750bd}});return{'data':response[_0x3d4f8e(0x461,0x431)],'error':null};}catch(_0x1340e6){return{'data':null,'error':_0x1340e6 instanceof EBaaSError?_0x1340e6:new EBaaSError(_0x1340e6 instanceof Error?_0x1340e6['message']:_0x3d4f8e(0x50c,0x4ce),0x0,_0x1340e6)};}}async[_0x347d1c(-0x74,-0xa0)](fromPath,_0x1ef510){function _0x2cb497(_0x284bd0,_0x1b8bde){return _0x4da2(_0x1b8bde- -0xe0,_0x284bd0);}try{const response=await this[_0x2cb497(0x1f6,0x1c0)]['post'](_0x2cb497(0x2a0,0x220)+this[_0x2cb497(0x12f,0x119)]+'/files/move',{'sourceKey':fromPath,'destinationKey':_0x1ef510});return{'data':response[_0x2cb497(0x1d0,0x14f)],'error':null};}catch(_0x21ec94){return{'data':null,'error':_0x21ec94 instanceof EBaaSError?_0x21ec94:new EBaaSError(_0x21ec94 instanceof Error?_0x21ec94[_0x2cb497(0x1c8,0x1dc)]:'Failed\x20to\x20move\x20file',0x0,_0x21ec94)};}}async[_0x347d1c(-0x125,-0x125)](fromPath,_0x2d8146){function _0x16317a(_0x305a2a,_0x3124fb){return _0x4da2(_0x3124fb- -0x14,_0x305a2a);}try{const response=await this['httpClient'][_0x16317a(0x232,0x2ba)](_0x16317a(0x348,0x2ec)+this['bucketId']+_0x16317a(0x276,0x214),{'sourceKey':fromPath,'destinationKey':_0x2d8146});return{'data':response[_0x16317a(0x243,0x21b)],'error':null};}catch(_0x210295){return{'data':null,'error':_0x210295 instanceof EBaaSError?_0x210295:new EBaaSError(_0x210295 instanceof Error?_0x210295[_0x16317a(0x256,0x2a8)]:_0x16317a(0x1e8,0x217),0x0,_0x210295)};}}async[_0x347d1c(-0xe0,-0x105)](_0xe5b35f,_0xcf9192,_0x2e08b9){function _0x14993e(_0x3ba9f2,_0x269f1a){return _0x4da2(_0x269f1a-0x3c4,_0x3ba9f2);}try{const response=await this[_0x14993e(0x6ab,0x664)]['post']('/storage/buckets/'+this[_0x14993e(0x59c,0x5bd)]+_0x14993e(0x58a,0x5eb)+_0xe5b35f+'/sign',{'expiresIn':_0xcf9192,..._0x2e08b9});return{'data':response[_0x14993e(0x595,0x5f3)],'error':null};}catch(_0x480d4f){return{'data':null,'error':_0x480d4f instanceof EBaaSError?_0x480d4f:new EBaaSError(_0x480d4f instanceof Error?_0x480d4f['message']:'Failed\x20to\x20create\x20signed\x20URL',0x0,_0x480d4f)};}}['getPublicUrl'](_0x513007,_0x5b9104){const _0x4ceeb5=new URLSearchParams();_0x5b9104?.['transform']&&Object[_0x5e5528(0x2c,0x37)](_0x5b9104[_0x5e5528(-0x46,-0x84)])[_0x5e5528(-0x1b,-0x9f)](([_0x18f8eb,_0x18d3f7])=>{function _0x351f55(_0xb6c7ec,_0x379647){return _0x4da2(_0xb6c7ec- -0x34b,_0x379647);}_0x18d3f7!==undefined&&_0x4ceeb5[_0x351f55(-0xa0,-0xba)](_0x18f8eb,String(_0x18d3f7));});function _0x5e5528(_0x20cbea,_0x1173e9){return _0x4da2(_0x20cbea- -0x23b,_0x1173e9);}const _0x5d281e=this['httpClient']['baseURL']||'',_0x37aeb2=_0x5d281e+'/storage/buckets/'+this['bucketId']+'/files/'+_0x513007+(_0x4ceeb5['toString']()?'?'+_0x4ceeb5[_0x5e5528(0x2f,0x5b)]():'');return{'data':{'publicUrl':_0x37aeb2}};}async['getFileInfo'](_0x22a04c){function _0x5e8977(_0x49654e,_0x106c5d){return _0x4da2(_0x106c5d- -0x2b0,_0x49654e);}try{const response=await this[_0x5e8977(-0x2e,-0x10)]['get'](_0x5e8977(0x0,0x50)+this[_0x5e8977(-0xbf,-0xb7)]+'/files/'+_0x22a04c+_0x5e8977(0x34,0x4b));return{'data':response['data'],'error':null};}catch(_0x365878){return{'data':null,'error':_0x365878 instanceof EBaaSError?_0x365878:new EBaaSError(_0x365878 instanceof Error?_0x365878[_0x5e8977(0x2f,0xc)]:_0x5e8977(-0x86,-0xc9),0x0,_0x365878)};}}async['updateFileMetadata'](_0x345b92,metadata){function _0x54d78a(_0x1cf65c,_0x3799dd){return _0x4da2(_0x3799dd-0x34b,_0x1cf65c);}try{const response=await this[_0x54d78a(0x583,0x5eb)]['put']('/storage/buckets/'+this[_0x54d78a(0x569,0x544)]+'/files/'+_0x345b92+_0x54d78a(0x4f3,0x570),{'metadata':metadata});return{'data':response[_0x54d78a(0x5e7,0x57a)],'error':null};}catch(_0x2e335a){return{'data':null,'error':_0x2e335a instanceof EBaaSError?_0x2e335a:new EBaaSError(_0x2e335a instanceof Error?_0x2e335a[_0x54d78a(0x5a5,0x607)]:_0x54d78a(0x5ed,0x5b8),0x0,_0x2e335a)};}}}class StorageClient{constructor(_0x3c500b){this['httpClient']=_0x3c500b;}['from'](bucketId){return new StorageBucket(this['httpClient'],bucketId);}async['createBucket'](_0x3eca50,_0x5ab952){function _0x4e8ed2(_0x15c36b,_0x132cb6){return _0x4da2(_0x132cb6-0x3b4,_0x15c36b);}try{const response=await this[_0x4e8ed2(0x6ba,0x654)]['post']('/storage/buckets',{'id':_0x3eca50,..._0x5ab952});return{'data':response['data'],'error':null};}catch(_0x5c210d){return{'data':null,'error':_0x5c210d instanceof EBaaSError?_0x5c210d:new EBaaSError(_0x5c210d instanceof Error?_0x5c210d['message']:_0x4e8ed2(0x6ba,0x66b),0x0,_0x5c210d)};}}async[_0x347d1c(-0xf0,-0x162)](_0x104ad6){function _0x32dc4d(_0x3565fa,_0x3b88c7){return _0x4da2(_0x3565fa-0x1e6,_0x3b88c7);}try{const response=await this['httpClient']['get']('/storage/buckets/'+_0x104ad6);return{'data':response[_0x32dc4d(0x415,0x41f)],'error':null};}catch(_0x23ada5){return{'data':null,'error':_0x23ada5 instanceof EBaaSError?_0x23ada5:new EBaaSError(_0x23ada5 instanceof Error?_0x23ada5[_0x32dc4d(0x4a2,0x482)]:'Failed\x20to\x20get\x20bucket',0x0,_0x23ada5)};}}async['listBuckets'](){function _0x577e78(_0x27c953,_0x535660){return _0x4da2(_0x535660- -0x1fb,_0x27c953);}try{const response=await this[_0x577e78(0x25,0xa5)]['get']('/storage/buckets');return{'data':response[_0x577e78(0x44,0x34)],'error':null};}catch(_0x43a8f8){return{'data':null,'error':_0x43a8f8 instanceof EBaaSError?_0x43a8f8:new EBaaSError(_0x43a8f8 instanceof Error?_0x43a8f8['message']:_0x577e78(0x104,0xb4),0x0,_0x43a8f8)};}}async[_0x347d1c(-0x139,-0x163)](_0x50b3c7,_0x1fc616){function _0x5c4a2b(_0x1b3add,_0x1f212a){return _0x4da2(_0x1b3add- -0x2cf,_0x1f212a);}try{const response=await this[_0x5c4a2b(-0x2f,0x32)][_0x5c4a2b(-0x52,-0x97)]('/storage/buckets/'+_0x50b3c7,_0x1fc616);return{'data':response['data'],'error':null};}catch(_0x314a2f){return{'data':null,'error':_0x314a2f instanceof EBaaSError?_0x314a2f:new EBaaSError(_0x314a2f instanceof Error?_0x314a2f['message']:_0x5c4a2b(-0xe5,-0xcd),0x0,_0x314a2f)};}}async[_0x347d1c(-0x17e,-0x119)](_0x34a8fa){function _0x22f3bb(_0x2a79c7,_0x3ccc85){return _0x4da2(_0x2a79c7-0x122,_0x3ccc85);}try{const response=await this['httpClient'][_0x22f3bb(0x3d0,0x382)]('/storage/buckets/'+_0x34a8fa);return{'data':response[_0x22f3bb(0x351,0x3c1)],'error':null};}catch(_0x5124ee){return{'data':null,'error':_0x5124ee instanceof EBaaSError?_0x5124ee:new EBaaSError(_0x5124ee instanceof Error?_0x5124ee[_0x22f3bb(0x3de,0x35c)]:_0x22f3bb(0x394,0x314),0x0,_0x5124ee)};}}async['getUsage'](){function _0x2c53c4(_0x3d3b6b,_0x376e7e){return _0x4da2(_0x3d3b6b- -0x24b,_0x376e7e);}try{const response=await this['httpClient'][_0x2c53c4(0xa3,0xda)](_0x2c53c4(-0x12,-0x7f));return{'data':response['data'],'error':null};}catch(_0x61632f){return{'data':null,'error':_0x61632f instanceof EBaaSError?_0x61632f:new EBaaSError(_0x61632f instanceof Error?_0x61632f['message']:'Failed\x20to\x20get\x20storage\x20usage',0x0,_0x61632f)};}}}class EventManager{constructor(){function _0x343b20(_0x16a19e,_0x5e39f7){return _0x4da2(_0x5e39f7- -0x1ac,_0x16a19e);}this[_0x343b20(0x87,0x106)]=new Map(),this['maxListeners']=0xa;}['on'](_0x11ec96,_0x3ead64){function _0x4a27ed(_0x42df3b,_0x15fda9){return _0x4da2(_0x42df3b- -0x25d,_0x15fda9);}!this['events'][_0x4a27ed(0x8b,0x92)](_0x11ec96)&&this[_0x4a27ed(0x55,0x1d)][_0x4a27ed(-0x4e,-0x6a)](_0x11ec96,new Set()),this['events'][_0x4a27ed(0x91,0x52)](_0x11ec96)[_0x4a27ed(0x60,0x18)](_0x3ead64);}['off'](_0x2fd905,_0x43c3ad){if(!this['events']['has'](_0x2fd905))return;function _0x2525a0(_0x3da363,_0x41db0a){return _0x4da2(_0x41db0a- -0x4e,_0x3da363);}const _0x4e1090=this['events']['get'](_0x2fd905);_0x43c3ad?_0x4e1090[_0x2525a0(0x252,0x260)](_0x43c3ad):_0x4e1090['clear'](),_0x4e1090['size']===0x0&&this[_0x2525a0(0x1ec,0x264)]['delete'](_0x2fd905);}[_0x347d1c(-0x16d,-0x137)](_0x20b255,..._0x51e88c){function _0x235c3e(_0x31f278,_0x1c06d2){return _0x4da2(_0x31f278- -0x174,_0x1c06d2);}if(!this['events']['has'](_0x20b255))return![];const _0x4afb03=this['events']['get'](_0x20b255);for(const _0x30434a of _0x4afb03){try{_0x30434a(..._0x51e88c);}catch(_0x31f305){console[_0x235c3e(0xd6,0xb2)]('Error\x20in\x20event\x20listener\x20for\x20\x22'+_0x20b255+'\x22:',_0x31f305);}}return _0x4afb03['size']>0x0;}['removeAllListeners'](_0x3a4684){function _0x716a1b(_0x1133d2,_0x10f994){return _0x4da2(_0x1133d2-0xf2,_0x10f994);}_0x3a4684?this['events'][_0x716a1b(0x3a0,0x394)](_0x3a4684):this['events']['clear']();}[_0x347d1c(-0x1df,-0x179)](_0x2dc678){function _0x13ad6a(_0x559d9c,_0x378077){return _0x4da2(_0x378077- -0x1d3,_0x559d9c);}return this[_0x13ad6a(0x6f,0xdf)][_0x13ad6a(0xf4,0x11b)](_0x2dc678)?.[_0x13ad6a(-0x17,0x1e)]??0x0;}[_0x347d1c(-0xec,-0x147)](){function _0xff7a51(_0x596d6a,_0x176b8f){return _0x4da2(_0x176b8f-0x3bb,_0x596d6a);}return Array[_0xff7a51(0x6ee,0x6ba)](this[_0xff7a51(0x640,0x66d)]['keys']());}[_0x347d1c(-0xb4,-0xe1)](_0x58a6f1){return Array['from'](this['events']['get'](_0x58a6f1)??[]);}[_0x347d1c(-0x17b,-0x16f)](_0x3382d5,_0x3883d9){this['on'](_0x3382d5,_0x3883d9);}[_0x347d1c(-0xb1,-0x118)](_0x52726f,_0x47f14d){this['off'](_0x52726f,_0x47f14d);}[_0x347d1c(-0x175,-0x111)](_0xd9df66,_0x21ef8d){const _0x3a8c2e=(..._0x1d26e0)=>{this[_0xd70c23(-0x118,-0x16b)](_0xd9df66,_0x3a8c2e);function _0xd70c23(_0x2e4fc8,_0x35c908){return _0x4da2(_0x2e4fc8- -0x3db,_0x35c908);}_0x21ef8d(..._0x1d26e0);};this['on'](_0xd9df66,_0x3a8c2e);}[_0x347d1c(-0x99,-0xe6)](_0x3a3f3a,_0x3ee463){this['on'](_0x3a3f3a,_0x3ee463);}['prependOnceListener'](_0x1172b0,_0x66a718){const _0x209977=(..._0xb7a67c)=>{function _0x163700(_0x5b0411,_0x3cb016){return _0x4da2(_0x3cb016-0x259,_0x5b0411);}this[_0x163700(0x543,0x51c)](_0x1172b0,_0x209977),_0x66a718(..._0xb7a67c);};this['on'](_0x1172b0,_0x209977);}['setMaxListeners'](_0x9c4aeb){function _0x250c19(_0x55d53b,_0x25545b){return _0x4da2(_0x25545b- -0x3d8,_0x55d53b);}return this[_0x250c19(-0x1c1,-0x14f)]=_0x9c4aeb,this;}[_0x347d1c(-0x121,-0xc7)](){return this['maxListeners'];}[_0x347d1c(-0x131,-0xa6)](_0x4c2c48){function _0x354972(_0x495b2a,_0x343118){return _0x4da2(_0x343118- -0x2a5,_0x495b2a);}return this[_0x354972(-0x7f,-0xc)](_0x4c2c48);}}class RealtimeChannel extends EventManager{constructor(_0x575625,_0x54995d){super(),this[_0x1458ea(0x44b,0x3d0)]=![],this['state']='closed',this['subscriptions']=new Map();function _0x1458ea(_0x13872d,_0x38e25){return _0x4da2(_0x13872d-0x259,_0x38e25);}this[_0x1458ea(0x478,0x441)]=_0x575625,this[_0x1458ea(0x483,0x475)]=_0x54995d;}['subscribe'](_0x9e8e5d){!this['joinedOnce']&&(this[_0x5b5dde(-0xb0,-0x119)]=!![],this['_join']());_0x9e8e5d&&this['on'](_0x5b5dde(-0xcd,-0x107),_0x9e8e5d);function _0x5b5dde(_0x2fe749,_0x2aa1dc){return _0x4da2(_0x2aa1dc- -0x30b,_0x2fe749);}return this;}[_0x347d1c(-0xed,-0x98)](filter,_0x17b603){const _0x359dea='postgres_changes:'+JSON['stringify'](filter);function _0x2279e7(_0x1ee0c4,_0x18cfd2){return _0x4da2(_0x18cfd2-0x161,_0x1ee0c4);}this['on'](_0x359dea,_0x17b603);const _0x1f764e={'unsubscribe':()=>{this['off'](_0x359dea,_0x17b603),this['subscriptions']['delete'](_0x359dea);}};return this['subscriptions'][_0x2279e7(0x337,0x370)](_0x359dea,_0x1f764e),this['socket']?.['connected']&&this[_0x2279e7(0x3a9,0x3d9)]==='joined'&&this[_0x2279e7(0x3dc,0x38b)][_0x2279e7(0x3f4,0x3a4)]('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()}),_0x1f764e;}[_0x347d1c(-0x13f,-0xd8)](filter,_0x4f5efe){const _0x21e4b3='broadcast:'+JSON[_0x14bbc3(0x24,0xa3)](filter);this['on'](_0x21e4b3,_0x4f5efe);function _0x14bbc3(_0x34551e,_0x5d8cfc){return _0x4da2(_0x34551e- -0x27a,_0x5d8cfc);}const _0x1d5c22={'unsubscribe':()=>{this[_0x16b29f(0x4ed,0x4ba)](_0x21e4b3,_0x4f5efe);function _0x16b29f(_0xca1db5,_0xfc5d18){return _0x4da2(_0xfc5d18-0x1f7,_0xca1db5);}this['subscriptions']['delete'](_0x21e4b3);}};return this['subscriptions'][_0x14bbc3(-0x6b,-0xb4)](_0x21e4b3,_0x1d5c22),_0x1d5c22;}['onPresence'](filter,_0x2b337d){const _0x713e2a=_0x531c78(-0x136,-0xe3)+JSON['stringify'](filter);this['on'](_0x713e2a,_0x2b337d);const _0x1e20e2={'unsubscribe':()=>{function _0x1756b6(_0x38db53,_0xea82fb){return _0x4da2(_0xea82fb- -0x1c,_0x38db53);}this[_0x1756b6(0x21b,0x2a7)](_0x713e2a,_0x2b337d),this[_0x1756b6(0x347,0x2de)]['delete'](_0x713e2a);}};this[_0x531c78(-0x9,0x3)]['set'](_0x713e2a,_0x1e20e2);function _0x531c78(_0x2a4c6d,_0x22b2e7){return _0x4da2(_0x22b2e7- -0x2f7,_0x2a4c6d);}return _0x1e20e2;}[_0x347d1c(-0x9c,-0xd2)](_0x5a0151){return new Promise(_0x3aa59e=>{function _0x4e0d0c(_0x22d898,_0x245439){return _0x4da2(_0x22d898- -0x6c,_0x245439);}this[_0x4e0d0c(0x1be,0x229)]?.[_0x4e0d0c(0x1f7,0x1bc)]&&this['state']==='joined'?(this[_0x4e0d0c(0x1be,0x1bb)]['emit'](_0x4e0d0c(0x1b5,0x148),{'topic':this['topic'],'event':_0x5a0151['event'],'payload':_0x5a0151,'ref':this[_0x4e0d0c(0x25f,0x2a6)]()}),_0x3aa59e('ok')):_0x3aa59e('error');});}['track'](_0x48234d){return new Promise(_0x46898e=>{function _0x3bf963(_0x469698,_0x2e42f0){return _0x4da2(_0x2e42f0-0x391,_0x469698);}this[_0x3bf963(0x5cc,0x5bb)]?.['connected']&&this[_0x3bf963(0x61a,0x609)]===_0x3bf963(0x5cb,0x5f1)?(this[_0x3bf963(0x61d,0x5bb)]['emit']('presence',{'topic':this[_0x3bf963(0x57f,0x5b0)],'event':_0x3bf963(0x5dd,0x5dc),'payload':_0x48234d,'ref':this[_0x3bf963(0x64d,0x65c)]()}),_0x46898e('ok')):_0x46898e('error');});}[_0x347d1c(-0x14e,-0x17e)](){return new Promise(_0x2d49d3=>{function _0x200d06(_0x2782f0,_0x926f0f){return _0x4da2(_0x2782f0- -0x2d6,_0x926f0f);}this['socket']?.[_0x200d06(-0x73,-0xf5)]&&this[_0x200d06(-0x5e,-0x24)]==='joined'?(this['socket'][_0x200d06(-0x93,-0xb6)](_0x200d06(-0x9e,-0xcc),{'topic':this[_0x200d06(-0xb7,-0x6d)],'event':_0x200d06(-0xda,-0x132),'ref':this['makeRef']()}),_0x2d49d3('ok')):_0x2d49d3(_0x200d06(-0x8c,-0x2c));});}['unsubscribe'](){return new Promise(_0x254ade=>{this['state']='leaving',this[_0x46fc3f(0x639,0x602)]['forEach'](_0xbaaad7=>{function _0x2dde19(_0x23bd7f,_0x4fd070){return _0x4da2(_0x23bd7f- -0x1c7,_0x4fd070);}_0xbaaad7[_0x2dde19(0xc8,0x147)]();}),this['subscriptions']['clear']();this['socket']?.[_0x46fc3f(0x5a2,0x517)]&&this[_0x46fc3f(0x569,0x520)]['emit']('leave',{'topic':this[_0x46fc3f(0x55e,0x596)],'ref':this[_0x46fc3f(0x60a,0x64c)]()});function _0x46fc3f(_0x2abf83,_0x497a64){return _0x4da2(_0x2abf83-0x33f,_0x497a64);}this[_0x46fc3f(0x5b7,0x587)]='closed',this['removeAllListeners'](),_0x254ade('ok');});}[_0x347d1c(-0x116,-0x146)](){function _0x35963b(_0x51e7a6,_0x36c2ac){return _0x4da2(_0x36c2ac- -0x1a,_0x51e7a6);}if(this['state']==='leaving')return;this[_0x35963b(0x208,0x25e)]='joining',this['socket']?.['connected']&&(this[_0x35963b(0x1db,0x210)]['emit'](_0x35963b(0x201,0x254),{'topic':this[_0x35963b(0x280,0x205)],'ref':this[_0x35963b(0x319,0x2b1)]()}),setTimeout(()=>{function _0x4d003f(_0x51412f,_0xc14288){return _0x4da2(_0xc14288- -0x1c2,_0x51412f);}this[_0x4d003f(0x75,0xb6)]===_0x4d003f(0x1ba,0x134)&&(this['state']=_0x4d003f(0x10d,0x9e),this['emit']('status',_0x4d003f(0xb5,0x34)));},0x64));}['_rejoin'](){function _0x4a6628(_0x54b427,_0x1903b9){return _0x4da2(_0x1903b9-0xe8,_0x54b427);}this[_0x4a6628(0x33c,0x2da)]&&(this[_0x4a6628(0x2e0,0x31c)](),this['subscriptions'][_0x4a6628(0x35b,0x308)]((_0x44e776,_0x51880a)=>{function _0xb5bb0f(_0x1b5313,_0x59ea5a){return _0x4da2(_0x1b5313- -0x24a,_0x59ea5a);}if(_0x51880a['startsWith'](_0xb5bb0f(0x46,0x64))){const filter=JSON[_0xb5bb0f(0x86,0xef)](_0x51880a[_0xb5bb0f(0x22,0x2f)]('postgres_changes:',''));this[_0xb5bb0f(-0x20,0x61)]?.[_0xb5bb0f(-0x7,-0x24)](_0xb5bb0f(-0x2c,-0x12),{'topic':this[_0xb5bb0f(-0x2b,-0x9b)],'filter':filter,'ref':this[_0xb5bb0f(0x81,0x2)]()});}}));}[_0x347d1c(-0xc7,-0x12c)](_0x337068,_0x586b0f){if(_0x337068==='postgres_changes'){const _0x4b9f25=_0x347775(0x4c5,0x43a)+JSON[_0x347775(0x3bd,0x448)](_0x586b0f[_0x347775(0x422,0x3ad)]||{});this[_0x347775(0x382,0x3ed)](_0x4b9f25,_0x586b0f);}else{if(_0x337068===_0x347775(0x354,0x3cb)){const _0x36c21e=_0x347775(0x497,0x434)+JSON[_0x347775(0x417,0x448)]({'event':_0x586b0f[_0x347775(0x524,0x4a3)]});this[_0x347775(0x398,0x3ed)](_0x36c21e,_0x586b0f);}else{if(_0x337068===_0x347775(0x37d,0x3e2)){const _0x483fea=_0x347775(0x3a4,0x3be)+JSON[_0x347775(0x4b6,0x448)]({'event':_0x586b0f[_0x347775(0x41c,0x4a3)]});this['emit'](_0x483fea,_0x586b0f);}}}function _0x347775(_0x22daac,_0x44b85a){return _0x4da2(_0x44b85a-0x1aa,_0x22daac);}this['emit'](_0x337068,_0x586b0f);}[_0x347d1c(-0x190,-0x183)](_0x8acd49){function _0x4e1f07(_0x23c861,_0x51e2cc){return _0x4da2(_0x23c861-0x52,_0x51e2cc);}this[_0x4e1f07(0x2ca,0x2b1)]=_0x8acd49;let status;switch(_0x8acd49){case _0x4e1f07(0x2b2,0x330):status=_0x4e1f07(0x248,0x1e9);break;case'errored':status='CHANNEL_ERROR';break;case _0x4e1f07(0x310,0x29e):status=_0x4e1f07(0x2ce,0x2d7);break;default:return;}this[_0x4e1f07(0x295,0x259)]('status',status);}[_0x347d1c(-0xd5,-0xaf)](){function _0x485b99(_0x3eede2,_0x2934d0){return _0x4da2(_0x2934d0- -0x234,_0x3eede2);}return Math[_0x485b99(0xed,0x76)]()['toString'](0x24)['substring'](0x2,0xf);}['getState'](){return this['state'];}}function getEnvironment(){if(typeof navigator!==_0x1fb6ad(0x357,0x371)&&navigator['product']==='ReactNative')return _0x1fb6ad(0x381,0x342);function _0x1fb6ad(_0x303173,_0x1f28e0){return _0x4da2(_0x1f28e0-0x9b,_0x303173);}if(typeof window!==_0x1fb6ad(0x327,0x371)&&typeof document!==_0x1fb6ad(0x363,0x371))return _0x1fb6ad(0x2bd,0x2bd);if(typeof global!==_0x1fb6ad(0x346,0x371)&&typeof process!==_0x1fb6ad(0x30f,0x371)&&process['versions']?.['node'])return _0x1fb6ad(0x32b,0x399);return _0x1fb6ad(0x329,0x2bd);}function isSocketIOAvailable(){function _0x34966a(_0x80e11f,_0x119c12){return _0x4da2(_0x119c12-0x3ce,_0x80e11f);}try{const _0x24312f=getEnvironment();switch(_0x24312f){case _0x34966a(0x6c3,0x6cc):return typeof require!=='undefined'&&require[_0x34966a(0x643,0x600)]&&!!require['resolve'](_0x34966a(0x628,0x69f));case'browser':if(typeof globalThis!==_0x34966a(0x704,0x6a4)&&'io'in globalThis)return!![];return typeof require!=='undefined'&&require['resolve']&&!!require[_0x34966a(0x5b6,0x600)]('socket.io-client');case _0x34966a(0x621,0x675):try{return typeof require!==_0x34966a(0x6de,0x6a4)&&!!require('socket.io-client');}catch{return![];}default:return![];}}catch{return![];}}function getSocketIO(){function _0x17a348(_0x3b5efa,_0x79e293){return _0x4da2(_0x3b5efa- -0x3a7,_0x79e293);}try{if(typeof require!==_0x17a348(-0xd1,-0xfb))return require('socket.io-client');if(typeof globalThis!=='undefined'&&'io'in globalThis)return{'io':globalThis['io']};throw new Error('socket.io-client\x20not\x20available');}catch(_0x1435db){throw new Error('Socket.io-client\x20não\x20está\x20disponível\x20neste\x20ambiente.\x20Para\x20usar\x20funcionalidades\x20de\x20realtime,\x20instale:\x20npm\x20install\x20socket.io-client');}}class WebSocketAdapter{constructor(){this['socket']=null;}async['connect'](_0x20c47c,_0x5cae0e){if(!isSocketIOAvailable())throw new Error('Socket.io-client não está disponível. Para usar funcionalidades de realtime, instale: npm install socket.io-client');const {io:_0x542725}=getSocketIO();return new Promise((_0x7632ed,_0x16986b)=>{function _0x87cae2(_0xa2528c,_0x5ee4b7){return _0x4da2(_0x5ee4b7-0x12b,_0xa2528c);}this['socket']=_0x542725(_0x20c47c,_0x5cae0e),this[_0x87cae2(0x3c6,0x355)]['on']('connect',()=>_0x7632ed()),this[_0x87cae2(0x2d7,0x355)]['on'](_0x87cae2(0x31b,0x36b),_0x543c1c=>_0x16986b(_0x543c1c));});}[_0x347d1c(-0xd7,-0x107)](){function _0x216f8a(_0x22fbc8,_0x4d6032){return _0x4da2(_0x22fbc8- -0x1e9,_0x4d6032);}this['socket']&&(this[_0x216f8a(0x41,0x25)][_0x216f8a(0x8a,0xa3)](),this[_0x216f8a(0x41,0x65)]=null);}[_0x347d1c(-0x127,-0x137)](_0x456a6c,data){function _0x203ff7(_0x3be8ad,_0x177440){return _0x4da2(_0x177440- -0x3ab,_0x3be8ad);}this[_0x203ff7(-0x10d,-0x181)]?.[_0x203ff7(-0x1ef,-0x168)](_0x456a6c,data);}['on'](_0xcb918d,_0x4f6061){this['socket']?.['on'](_0xcb918d,_0x4f6061);}['off'](_0x555322,_0x4e144f){function _0x3de8bb(_0x2c3773,_0xef32ab){return _0x4da2(_0xef32ab- -0x35a,_0x2c3773);}_0x4e144f?this['socket']?.[_0x3de8bb(-0xea,-0x97)](_0x555322,_0x4e144f):this[_0x3de8bb(-0xd2,-0x130)]?.[_0x3de8bb(-0x81,-0x97)](_0x555322);}get['connected'](){function _0x348cfb(_0xa9a690,_0x3ec9b3){return _0x4da2(_0xa9a690-0x27f,_0x3ec9b3);}return this[_0x348cfb(0x4a9,0x429)]?.[_0x348cfb(0x4e2,0x4e5)]??![];}}function _0x4da2(_0x18b879,_0x51ab99){const _0x39f818=_0x39f8();return _0x4da2=function(_0x4da231,_0x1895a4){_0x4da231=_0x4da231-0x1e7;let _0x29ef03=_0x39f818[_0x4da231];if(_0x4da2['LbuxWQ']===undefined){var _0x5e845d=function(_0x10f038){const _0x2bdc15='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32cfaf='',_0x55abfb='';for(let _0x32fd56=0x0,_0x2c2b64,_0x273d4c,_0x1d5089=0x0;_0x273d4c=_0x10f038['charAt'](_0x1d5089++);~_0x273d4c&&(_0x2c2b64=_0x32fd56%0x4?_0x2c2b64*0x40+_0x273d4c:_0x273d4c,_0x32fd56++%0x4)?_0x32cfaf+=String['fromCharCode'](0xff&_0x2c2b64>>(-0x2*_0x32fd56&0x6)):0x0){_0x273d4c=_0x2bdc15['indexOf'](_0x273d4c);}for(let _0x302d7d=0x0,_0x4a4919=_0x32cfaf['length'];_0x302d7d<_0x4a4919;_0x302d7d++){_0x55abfb+='%'+('00'+_0x32cfaf['charCodeAt'](_0x302d7d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55abfb);};_0x4da2['zRGOqg']=_0x5e845d,_0x18b879=arguments,_0x4da2['LbuxWQ']=!![];}const _0x54efb9=_0x39f818[0x0],_0x142c16=_0x4da231+_0x54efb9,_0x3b3f6e=_0x18b879[_0x142c16];return!_0x3b3f6e?(_0x29ef03=_0x4da2['zRGOqg'](_0x29ef03),_0x18b879[_0x142c16]=_0x29ef03):_0x29ef03=_0x3b3f6e,_0x29ef03;},_0x4da2(_0x18b879,_0x51ab99);}class ReactNativeSocketAdapter{constructor(){function _0x1be7fd(_0x4c6f11,_0x48ba82){return _0x4da2(_0x4c6f11-0x3c0,_0x48ba82);}this[_0x1be7fd(0x5ea,0x5d4)]=null;}async[_0x347d1c(-0x195,-0x124)](_0x3406ce,_0x57fae4){if(!isSocketIOAvailable())throw new Error(_0x2c9850(-0x108,-0x123));const {io:_0x379c9c}=getSocketIO();function _0x2c9850(_0x20486f,_0x41f064){return _0x4da2(_0x41f064- -0x3c0,_0x20486f);}return new Promise((_0x13721e,_0x43e2d8)=>{this[_0x20adf7(-0x9e,-0x35)]=_0x379c9c(_0x3406ce,{..._0x57fae4,'transports':[_0x20adf7(-0x77,-0x98)],'upgrade':![],'autoConnect':!![]});function _0x20adf7(_0x4e0b65,_0x105bfd){return _0x4da2(_0x4e0b65- -0x2c8,_0x105bfd);}this[_0x20adf7(-0x9e,-0x6c)]['on']('connect',()=>_0x13721e()),this['socket']['on'](_0x20adf7(-0x88,-0x4b),_0x33c344=>_0x43e2d8(_0x33c344));});}[_0x347d1c(-0xda,-0x107)](){function _0x499b11(_0xb9633d,_0x302b47){return _0x4da2(_0x302b47- -0x36,_0xb9633d);}this[_0x499b11(0x205,0x1f4)]&&(this['socket'][_0x499b11(0x21f,0x23d)](),this['socket']=null);}['emit'](_0x7783d6,data){function _0x41fba4(_0x308e6c,_0x162707){return _0x4da2(_0x308e6c-0x197,_0x162707);}this['socket']?.[_0x41fba4(0x3da,0x351)](_0x7783d6,data);}['on'](_0xba8034,_0x85495f){function _0x2ac438(_0x1c21c8,_0x1d3bf8){return _0x4da2(_0x1c21c8- -0x94,_0x1d3bf8);}this[_0x2ac438(0x196,0x124)]?.['on'](_0xba8034,_0x85495f);}['off'](_0x43a0ae,_0x4f46a7){function _0x2cc0ce(_0x48ce67,_0x116c6a){return _0x4da2(_0x116c6a- -0x254,_0x48ce67);}_0x4f46a7?this[_0x2cc0ce(0x2b,-0x2a)]?.['off'](_0x43a0ae,_0x4f46a7):this['socket']?.[_0x2cc0ce(0xc5,0x6f)](_0x43a0ae);}get['connected'](){return this['socket']?.['connected']??![];}}function createSocketAdapter(){function _0x369bf2(_0x48d30e,_0x539748){return _0x4da2(_0x48d30e- -0xb2,_0x539748);}const _0x54b72d=getEnvironment();switch(_0x54b72d){case _0x369bf2(0x1f5,0x185):return new ReactNativeSocketAdapter();case'browser':case _0x369bf2(0x24c,0x275):default:return new WebSocketAdapter();}}class RealtimeClient{constructor(_0x5a7264,_0xbfe535,_0x2ff27e={}){this[_0xeb5974(0x456,0x3d1)]=null,this['channels']=new Map(),this['connectionState']=_0xeb5974(0x459,0x401),this[_0xeb5974(0x4a2,0x4df)]=0x0,this['maxReconnectAttempts']=0x5,this[_0xeb5974(0x441,0x3f6)]=_0x5a7264,this['apiKey']=_0xbfe535;function _0xeb5974(_0x308f3c,_0x43cd2b){return _0x4da2(_0x308f3c-0x22c,_0x43cd2b);}this['options']={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x2ff27e},this['socketAdapter']=createSocketAdapter();}['connect'](){return new Promise(async(_0x53dc0e,_0x12499f)=>{if(this['socketAdapter'][_0x21ff56(0x2cc,0x2e8)]){_0x53dc0e();return;}function _0x21ff56(_0x563dfc,_0x2b9cfe){return _0x4da2(_0x2b9cfe-0x85,_0x563dfc);}this['connectionState']=_0x21ff56(0x31f,0x2f4);try{await this[_0x21ff56(0x2e2,0x307)]['connect'](this['url'],{'auth':{'apikey':this[_0x21ff56(0x1ee,0x271)]},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this['options'][_0x21ff56(0x27f,0x2a0)],'reconnectionAttempts':this['options'][_0x21ff56(0x372,0x33e)],...this[_0x21ff56(0x2d1,0x34d)]['socketOptions']}),this['socket']=this['socketAdapter'][_0x21ff56(0x2e0,0x2af)],this['socketAdapter']['on']('connect',()=>{this[_0x1f4be5(0x92,0xe)]=_0x1f4be5(0x41,-0x44),this[_0x1f4be5(0x3d,-0x31)]=0x0,this['setupHeartbeat']();function _0x1f4be5(_0x52eba9,_0x13956f){return _0x4da2(_0x13956f- -0x2a7,_0x52eba9);}_0x53dc0e();}),this[_0x21ff56(0x292,0x307)]['on']('disconnect',()=>{this[_0x59d019(0x1cb,0x1a6)]=_0x59d019(0x17a,0x11e);function _0x59d019(_0x2c6018,_0x4af7db){return _0x4da2(_0x4af7db- -0x10f,_0x2c6018);}this['channels']['forEach'](channel=>{function _0x30eec6(_0x350fbc,_0x16d9bf){return _0x4da2(_0x16d9bf- -0x23f,_0x350fbc);}channel[_0x30eec6(-0x6f,-0x48)](_0x30eec6(-0x9,0x7f));});}),this[_0x21ff56(0x36a,0x307)]['on'](_0x21ff56(0x288,0x2c5),_0x4a9abc=>{this['connectionState']='error';function _0x511b23(_0x11c0f8,_0x446d91){return _0x4da2(_0x11c0f8-0x8f,_0x446d91);}this[_0x511b23(0x305,0x2f6)]++,this['reconnectAttempts']>=this['maxReconnectAttempts']&&_0x12499f(new Error(_0x511b23(0x2f7,0x36d)+this[_0x511b23(0x348,0x2d4)]+_0x511b23(0x349,0x3bc)+_0x4a9abc[_0x511b23(0x34b,0x3b5)]));}),this['socketAdapter']['on']('reconnect',()=>{function _0x4db117(_0xd183dc,_0x57d48e){return _0x4da2(_0xd183dc-0x3dc,_0x57d48e);}this['connectionState']=_0x4db117(0x63f,0x5d0),this[_0x4db117(0x652,0x6c4)]=0x0,this[_0x4db117(0x6c9,0x6f4)]['forEach'](channel=>{function _0x351ff8(_0x498dbb,_0x3674e7){return _0x4da2(_0x498dbb- -0x3b8,_0x3674e7);}channel[_0x351ff8(-0xce,-0x80)]();});}),this['socketAdapter']['on']('postgres_changes',_0x58188a=>{function _0x503f55(_0x152d04,_0x7c7180){return _0x4da2(_0x152d04- -0x169,_0x7c7180);}const channel=this['channels'][_0x503f55(0x185,0x154)](_0x58188a['topic']);channel&&channel[_0x503f55(0xe5,0xa7)](_0x503f55(0x166,0x17f),_0x58188a);}),this['socketAdapter']['on']('broadcast',_0x4aa59f=>{function _0x1bb306(_0x50e082,_0x45206d){return _0x4da2(_0x45206d- -0x393,_0x50e082);}const channel=this[_0x1bb306(-0x123,-0xa6)]['get'](_0x4aa59f[_0x1bb306(-0x13b,-0x174)]);channel&&channel['_trigger'](_0x1bb306(-0x10a,-0x172),_0x4aa59f);}),this['socketAdapter']['on']('presence',_0x3a66bc=>{const channel=this['channels'][_0x2f09ca(-0x60,-0x15)](_0x3a66bc['topic']);function _0x2f09ca(_0x13769d,_0x246a00){return _0x4da2(_0x246a00- -0x303,_0x13769d);}channel&&channel['_trigger']('presence',_0x3a66bc);});}catch(_0x5d2771){this['connectionState']=_0x21ff56(0x26e,0x2cf),_0x12499f(_0x5d2771);}});}[_0x347d1c(-0x175,-0x107)](){this[_0x100fd1(0x506,0x4f1)]&&(this[_0x100fd1(0x506,0x506)]['disconnect'](),this['socket']=null);this[_0x100fd1(0x539,0x50f)]=_0x100fd1(0x4b1,0x499);function _0x100fd1(_0x2af3f8,_0x199687){return _0x4da2(_0x2af3f8-0x284,_0x199687);}this['channels'][_0x100fd1(0x55c,0x52d)]();}['channel'](_0x347533){if(this[_0x451559(-0x85,-0xf0)][_0x451559(-0xf6,-0xf5)](_0x347533))return this['channels'][_0x451559(-0xe1,-0xef)](_0x347533);const channel=new RealtimeChannel(_0x347533,this[_0x451559(-0x1fc,-0x1b3)]);this[_0x451559(-0x64,-0xf0)][_0x451559(-0x241,-0x1ce)](_0x347533,channel);this['connectionState']==='connected'&&channel[_0x451559(-0x156,-0x1a9)]();function _0x451559(_0x44f189,_0x406cdf){return _0x4da2(_0x406cdf- -0x3dd,_0x44f189);}return channel;}[_0x347d1c(-0xa5,-0xd4)](channel){function _0x3d4a46(_0x47d235,_0x11e586){return _0x4da2(_0x11e586- -0x17e,_0x47d235);}const _0x19a667=channel[_0x3d4a46(0x1e,0xa1)];this['channels'][_0x3d4a46(0x1f5,0x16a)](_0x19a667)&&(this['channels']['delete'](_0x19a667),channel['unsubscribe']());}['removeAllChannels'](){this['channels'][_0x302335(0x1f9,0x221)](channel=>{function _0xa283ab(_0x1db6b6,_0x3967c1){return _0x4da2(_0x3967c1- -0x3cc,_0x1db6b6);}channel[_0xa283ab(-0x188,-0x13d)]();});function _0x302335(_0x5dff10,_0x184466){return _0x4da2(_0x5dff10- -0x27,_0x184466);}this['channels']['clear']();}[_0x347d1c(-0x4b,-0x94)](){function _0x462ecc(_0x34cb2a,_0x20cbb5){return _0x4da2(_0x20cbb5-0x78,_0x34cb2a);}return Array[_0x462ecc(0x313,0x377)](this[_0x462ecc(0x354,0x365)][_0x462ecc(0x3b4,0x341)]());}[_0x347d1c(-0x107,-0xe4)](){function _0x3a8db9(_0x163b3f,_0x4615de){return _0x4da2(_0x4615de- -0x98,_0x163b3f);}return this[_0x3a8db9(0x25e,0x21d)]===_0x3a8db9(0x212,0x1cb)&&this[_0x3a8db9(0x199,0x1ea)][_0x3a8db9(0x155,0x1cb)];}['getConnectionState'](){function _0x37b7f6(_0x3b636f,_0x2e1666){return _0x4da2(_0x3b636f- -0x21a,_0x2e1666);}return this[_0x37b7f6(0x9b,0xcc)];}[_0x347d1c(-0x162,-0xec)](_0x1845fd){function _0x2531f0(_0x29d424,_0x1542f2){return _0x4da2(_0x29d424-0x5b,_0x1542f2);}const _0x3c2af1=()=>_0x1845fd(this[_0x2531f0(0x310,0x377)]);return this[_0x2531f0(0x2dd,0x34f)]&&(this[_0x2531f0(0x2dd,0x33b)]['on']('connect',()=>{this['connectionState']=_0x54c348(0x4f0,0x49f);function _0x54c348(_0x582797,_0x24ee71){return _0x4da2(_0x582797-0x28d,_0x24ee71);}_0x3c2af1();}),this[_0x2531f0(0x2dd,0x28c)]['on']('disconnect',()=>{this['connectionState']='disconnected',_0x3c2af1();}),this['socketAdapter']['on']('connect_error',()=>{function _0x32c184(_0x4178bb,_0x202be2){return _0x4da2(_0x202be2-0x152,_0x4178bb);}this['connectionState']=_0x32c184(0x3e9,0x39c),_0x3c2af1();})),()=>{function _0x4ce9e6(_0xf8f7c0,_0x18fa0b){return _0x4da2(_0x18fa0b-0x312,_0xf8f7c0);}this['socketAdapter']&&(this[_0x4ce9e6(0x612,0x594)]['off']('connect',_0x3c2af1),this['socketAdapter'][_0x4ce9e6(0x565,0x5d5)]('disconnect',_0x3c2af1),this['socketAdapter']['off'](_0x4ce9e6(0x4f0,0x552),_0x3c2af1));};}['setupHeartbeat'](){if(!this['options']['heartbeatInterval']||!this[_0x3a8855(0x445,0x3bd)])return;function _0x3a8855(_0x43aea1,_0xfc161e){return _0x4da2(_0xfc161e-0x13b,_0x43aea1);}const interval=setInterval(()=>{function _0x39cfd0(_0x3cbac0,_0xa611e2){return _0x4da2(_0x3cbac0- -0x1fd,_0xa611e2);}this[_0x39cfd0(0x85,0xa7)]?.[_0x39cfd0(0x66,0x73)]?this['socketAdapter']['emit'](_0x39cfd0(0xff,0x13e),{'timestamp':Date['now']()}):clearInterval(interval);},this[_0x3a8855(0x387,0x403)][_0x3a8855(0x406,0x41f)]);}['_getSocket'](){function _0xeb588b(_0x2e9c5a,_0x4a98df){return _0x4da2(_0x4a98df- -0x65,_0x2e9c5a);}return this[_0xeb588b(0x245,0x1c5)];}}class FunctionsClient{constructor(_0x53d1df){function _0x1bda14(_0x2ccc52,_0x4edf16){return _0x4da2(_0x2ccc52- -0x2,_0x4edf16);}this[_0x1bda14(0x29e,0x261)]=_0x53d1df;}async['invoke'](_0x15f978,_0x2043da){function _0x242407(_0x2f55d9,_0x1a38be){return _0x4da2(_0x1a38be-0x22b,_0x2f55d9);}try{const _0x4d3938=_0x2043da?.['method']||'POST',headers={'Content-Type':'application/json',..._0x2043da?.['headers']};let response;const _0x48f0a9='/functions/v1/'+_0x15f978;switch(_0x4d3938[_0x242407(0x4fa,0x528)]()){case'GET':response=await this[_0x242407(0x4ac,0x4cb)]['get'](_0x48f0a9,{'headers':headers,'params':_0x2043da?.[_0x242407(0x447,0x46d)]});break;case'POST':response=await this['httpClient']['post'](_0x48f0a9,_0x2043da?.['body'],{'headers':headers});break;case'PUT':response=await this[_0x242407(0x54f,0x4cb)][_0x242407(0x523,0x4a8)](_0x48f0a9,_0x2043da?.[_0x242407(0x3ec,0x46d)],{'headers':headers});break;case'PATCH':response=await this[_0x242407(0x4ad,0x4cb)]['patch'](_0x48f0a9,_0x2043da?.['body'],{'headers':headers});break;case'DELETE':response=await this[_0x242407(0x448,0x4cb)][_0x242407(0x4f2,0x4d9)](_0x48f0a9,{'headers':headers,'data':_0x2043da?.[_0x242407(0x4dd,0x46d)]});break;default:throw new EBaaSError(_0x242407(0x456,0x448)+_0x4d3938,0x190);}return{'data':response['data'],'error':null};}catch(_0x53beec){return{'data':null,'error':_0x53beec instanceof EBaaSError?_0x53beec:new EBaaSError(_0x53beec instanceof Error?_0x53beec[_0x242407(0x4b7,0x4e7)]:'Function\x20invocation\x20failed',0x0,_0x53beec)};}}async[_0x347d1c(-0xa6,-0x93)](){function _0x5cf1b3(_0x46f25c,_0x111b5b){return _0x4da2(_0x111b5b- -0x11d,_0x46f25c);}try{const response=await this['httpClient'][_0x5cf1b3(0x156,0x1d1)](_0x5cf1b3(0x85,0xff));return{'data':response[_0x5cf1b3(0x184,0x112)],'error':null};}catch(_0x4eab01){return{'data':null,'error':_0x4eab01 instanceof EBaaSError?_0x4eab01:new EBaaSError(_0x4eab01 instanceof Error?_0x4eab01['message']:'Failed\x20to\x20list\x20functions',0x0,_0x4eab01)};}}async['get'](_0x3b4edd){function _0x129e92(_0x2ebca0,_0x435290){return _0x4da2(_0x2ebca0-0x54,_0x435290);}try{const response=await this['httpClient']['get']('/functions/v1/'+_0x3b4edd+'/info');return{'data':response['data'],'error':null};}catch(_0x19737a){return{'data':null,'error':_0x19737a instanceof EBaaSError?_0x19737a:new EBaaSError(_0x19737a instanceof Error?_0x19737a[_0x129e92(0x310,0x320)]:'Failed\x20to\x20get\x20function',0x0,_0x19737a)};}}async['deploy'](_0xf1b82f,_0xb9e01f){function _0x106736(_0xd7988a,_0x456db2){return _0x4da2(_0x456db2-0x57,_0xd7988a);}try{const _0x4b2ad1=new FormData();if(_0xb9e01f['code']instanceof File)_0x4b2ad1['append']('code',_0xb9e01f[_0x106736(0x2fd,0x29f)]);else typeof _0xb9e01f['code']===_0x106736(0x375,0x2f1)&&_0x4b2ad1['append']('code',new Blob([_0xb9e01f['code']],{'type':_0x106736(0x305,0x2da)}),'index.ts');_0xb9e01f[_0x106736(0x3bd,0x335)]&&_0x4b2ad1['append'](_0x106736(0x315,0x335),_0xb9e01f['entrypoint']);_0xb9e01f['env']&&_0x4b2ad1[_0x106736(0x35c,0x302)](_0x106736(0x260,0x2b0),JSON[_0x106736(0x33d,0x2f5)](_0xb9e01f['env']));_0xb9e01f['importMap']&&_0x4b2ad1['append']('importMap',JSON['stringify'](_0xb9e01f['importMap']));_0xb9e01f[_0x106736(0x267,0x28c)]!==undefined&&_0x4b2ad1[_0x106736(0x29e,0x302)](_0x106736(0x248,0x28c),String(_0xb9e01f[_0x106736(0x317,0x28c)]));const response=await this[_0x106736(0x29c,0x2f7)][_0x106736(0x369,0x325)](_0x106736(0x257,0x2a3)+_0xf1b82f+_0x106736(0x374,0x338),_0x4b2ad1,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response['data'],'error':null};}catch(_0x222651){return{'data':null,'error':_0x222651 instanceof EBaaSError?_0x222651:new EBaaSError(_0x222651 instanceof Error?_0x222651['message']:'Failed\x20to\x20deploy\x20function',0x0,_0x222651)};}}async[_0x347d1c(-0x14e,-0xcc)](_0x48cd8a){function _0x332a17(_0x35cda3,_0x4aabc6){return _0x4da2(_0x35cda3- -0x299,_0x4aabc6);}try{const response=await this[_0x332a17(0x7,-0x1d)]['delete'](_0x332a17(-0x4d,-0xc)+_0x48cd8a);return{'data':response['data'],'error':null};}catch(_0x16522b){return{'data':null,'error':_0x16522b instanceof EBaaSError?_0x16522b:new EBaaSError(_0x16522b instanceof Error?_0x16522b['message']:_0x332a17(-0x1,-0x70),0x0,_0x16522b)};}}async[_0x347d1c(-0x63,-0xc2)](_0x1d3ccc,_0x46de65){function _0x11d3bf(_0x4f0ce7,_0x7c56bc){return _0x4da2(_0x4f0ce7- -0x232,_0x7c56bc);}try{const response=await this[_0x11d3bf(0x6e,0xef)][_0x11d3bf(0x4b,0x3f)](_0x11d3bf(0x1a,0x7)+_0x1d3ccc+'/env',{'env':_0x46de65});return{'data':response[_0x11d3bf(-0x3,0x7a)],'error':null};}catch(_0x20c526){return{'data':null,'error':_0x20c526 instanceof EBaaSError?_0x20c526:new EBaaSError(_0x20c526 instanceof Error?_0x20c526[_0x11d3bf(0x8a,0x103)]:_0x11d3bf(0x84,0x2),0x0,_0x20c526)};}}async[_0x347d1c(-0x1bc,-0x17a)](_0x48324f,_0x2f8c86){function _0x1b1745(_0x29ea76,_0x2aef1b){return _0x4da2(_0x2aef1b- -0x1c2,_0x29ea76);}try{const _0x2fa889=new URLSearchParams();_0x2f8c86?.[_0x1b1745(0x142,0x11d)]&&_0x2fa889[_0x1b1745(0x69,0xe9)]('limit',String(_0x2f8c86[_0x1b1745(0x15c,0x11d)]));_0x2f8c86?.[_0x1b1745(0x151,0xc6)]&&_0x2fa889['append']('offset',String(_0x2f8c86[_0x1b1745(0x130,0xc6)]));_0x2f8c86?.[_0x1b1745(0xa1,0x4f)]&&_0x2fa889[_0x1b1745(0x13b,0xe9)](_0x1b1745(0x72,0x4f),_0x2f8c86['level']);const _0x319fac=_0x1b1745(0xdc,0x8a)+_0x48324f+_0x1b1745(0x156,0x115)+(_0x2fa889[_0x1b1745(0x11d,0xa8)]()?'?'+_0x2fa889[_0x1b1745(0x80,0xa8)]():''),response=await this['httpClient'][_0x1b1745(0xba,0x12c)](_0x319fac);return{'data':response['data'],'error':null};}catch(_0x4caa67){return{'data':null,'error':_0x4caa67 instanceof EBaaSError?_0x4caa67:new EBaaSError(_0x4caa67 instanceof Error?_0x4caa67[_0x1b1745(0x118,0xfa)]:'Failed\x20to\x20get\x20function\x20logs',0x0,_0x4caa67)};}}async['getMetrics'](_0x37b59b,_0x450c46){function _0x4b23ed(_0x1f56fc,_0x57916d){return _0x4da2(_0x57916d- -0xde,_0x1f56fc);}try{const _0xe6ffe3=new URLSearchParams();_0x450c46?.['period']&&_0xe6ffe3['append']('period',_0x450c46['period']);const _0x298c9b=_0x4b23ed(0x132,0x16e)+_0x37b59b+'/metrics'+(_0xe6ffe3['toString']()?'?'+_0xe6ffe3['toString']():''),response=await this['httpClient']['get'](_0x298c9b);return{'data':response['data'],'error':null};}catch(_0x5d64b3){return{'data':null,'error':_0x5d64b3 instanceof EBaaSError?_0x5d64b3:new EBaaSError(_0x5d64b3 instanceof Error?_0x5d64b3['message']:_0x4b23ed(0x288,0x1fd),0x0,_0x5d64b3)};}}}class EBaaSClient{constructor(_0x56c27a,_0x3c785d,_0x744a62){this[_0x55885c(0x7c,0x4d)]=_0x744a62,this['httpClient']=new HttpClient({'url':_0x56c27a,'apiKey':_0x3c785d,'timeout':0x7530,'headers':_0x744a62?.[_0x55885c(-0xb,0x50)]?.['headers']}),this[_0x55885c(0xa6,0x21)]=new AuthClient(this['httpClient'],_0x744a62?.[_0x55885c(-0x5c,-0x44)]?.[_0x55885c(0x5d,0x90)]),this['database']=new DatabaseClient(this['httpClient'],_0x744a62?.['database']?.['workspaceId']),this[_0x55885c(-0x15,-0x10)]=new StorageClient(this['httpClient']),this[_0x55885c(-0x64,-0xa6)]=new RealtimeClient(_0x56c27a,_0x3c785d,_0x744a62?.['realtime']);function _0x55885c(_0x3d64e2,_0x304f4d){return _0x4da2(_0x3d64e2- -0x24c,_0x304f4d);}this[_0x55885c(0x4f,0x4b)]=new FunctionsClient(this[_0x55885c(0x54,0x76)]),this['initializeCustomDatabase']();}[_0x347d1c(-0xc9,-0x7b)](_0x4d3d14){function _0x26f5bc(_0x25227a,_0x607d7a){return _0x4da2(_0x25227a- -0x3a1,_0x607d7a);}return this['database'][_0x26f5bc(-0xa2,-0xad)](_0x4d3d14);}[_0x347d1c(-0x10e,-0xd9)](_0x3a1cd7,_0x7b4d05){function _0x3e23bd(_0x17caf3,_0x2aecff){return _0x4da2(_0x2aecff- -0x199,_0x17caf3);}return this[_0x3e23bd(0xa5,0x57)]['rpc'](_0x3a1cd7,_0x7b4d05);}[_0x347d1c(-0xb8,-0xee)](_0x59e019){function _0x53bfca(_0x5b878d,_0xfbb1e6){return _0x4da2(_0xfbb1e6- -0x171,_0x5b878d);}return this[_0x53bfca(0x70,0xc6)]['from'](_0x59e019);}['channel'](_0x3f091e){function _0x3d122a(_0x4780a8,_0x27397f){return _0x4da2(_0x4780a8- -0x3e1,_0x27397f);}return this['realtime'][_0x3d122a(-0x15c,-0x188)](_0x3f091e);}[_0x347d1c(-0x9f,-0xa7)](_0x32c9b1,_0x102842){return this['functions']['invoke'](_0x32c9b1,_0x102842);}async['initializeCustomDatabase'](){function _0x464cb4(_0x3533da,_0x1068dc){return _0x4da2(_0x3533da- -0x2a8,_0x1068dc);}if(this['options']?.['database']?.[_0x464cb4(0x1c,0x8f)])try{await this['database'][_0x464cb4(0x38,0xb8)]();}catch(_0x1b9d9c){console[_0x464cb4(-0x13,-0x77)]('Failed to initialize custom database detection:',_0x1b9d9c);}}async[_0x347d1c(-0x26,-0x95)](_0x5da533){this['auth'][_0x40f72e(0x131,0xa6)](_0x5da533),this[_0x40f72e(0x3c,0x38)][_0x40f72e(0x131,0x16b)](_0x5da533);function _0x40f72e(_0x4a7e1e,_0xe473e4){return _0x4da2(_0x4a7e1e- -0x1b4,_0xe473e4);}this['options']?.[_0x40f72e(0x3c,0x43)]?.['autoDetectCustomDatabase']&&await this[_0x40f72e(0x3c,0xa)][_0x40f72e(0x12c,0x109)]();}async['configureCustomDatabase'](_0x10b461){function _0x41a493(_0x5f1bb2,_0x3985dd){return _0x4da2(_0x5f1bb2- -0x2b0,_0x3985dd);}await this[_0x41a493(-0xc0,-0x7c)]['configureCustomDatabase'](_0x10b461);}['getCustomDatabaseStatus'](){function _0xf9eae5(_0x46ebe6,_0x114287){return _0x4da2(_0x46ebe6- -0x2b6,_0x114287);}return this[_0xf9eae5(-0xc6,-0x7c)]['getCustomDatabaseStatus']();}}function _0x39f8(){const _0x54a09d=['C3rVCMfNzq','ChjLC2vUy2u','l3n0B3jHz2uVDxnHz2u','CMvTB3zLqxv0AfrVA2vU','C2v0u2vZC2LVBKLUDgvYBMfS','Cg9ZDgDYzxnty2HLBwe','uMvXDwvZDcbMywLSzwq','AwXPA2u','z3rL','y29UBMvJDf9LCNjVCG','z2XVyMfS','yM9KEq','zw1PDa','y29UzMLN','AxnezwXLDgu','BgLRzq','y3jLzgvUDgLHBhm','y29Kzq','uhjLzMvY','zxjYB3i','DhjHy2S','l2z1BMn0Aw9UCY92ms8','shr0CenSAwvUDa','x3rYAwDNzxi','C2v0DxbjBNrLCMnLChrVCNm','z2v0u2vZC2LVBG','D2vIC29JA2v0','C2vHCMnO','p29WzxjHDgLVBJ1KzwXLDgu','zMLSDgvYCW','y29WEq','y29UBMvJDa','Cg9ZDgDYzxnvC2vYBMfTzq','zMLSzq','zw52','y3vYCMvUDfnLC3nPB24','lMrLC2m','B3jKzxi','C2v0u2vZC2LVBG','Ag9ZDa','DxbKyxrLrgf0yq','AM9PBMvK','zgvSzxrLqNvJA2v0','CMvTB3zLtgLZDgvUzxi','y29UBMvJDgvK','zgvMyxvSDhm','rMfPBgvKihrVihrLC3qGy29UBMvJDgLVBG','ywnJzxnZx3rVA2vU','zw50CMLLCW','rMfPBgvKihrVignVBM5Ly3qGywz0zxiG','B25Jzq','Dg9tDhjPBMC','Bwv0ywrHDge','CMvWBgfJzq','rMfPBgvKihrVihvWzgf0zsbMAwXLig1LDgfKyxrH','AM9PBG','y29UBMvJDgLUzW','mtaXmde1ngP0u05hCW','CMvZCg9UC2u','rMfPBgvKihrVigrLBgv0zsbIDwnRzxq','zgLZy29UBMvJDa','C3bSAxq','y3jLyxrLu2LNBMvKvxjS','CMvJB25Uzwn0qxr0zw1WDhm','zxHLy3v0zvf1zxj5','C3rHDgu','y3jLyxrL','Bg9N','CMvMCMvZAf90B2TLBG','q0Xpu0ve','Chv0','zxHLy3v0zq','C2nOzw1H','C29YDej5','rMfPBgvKihrVigXPC3qGzMLSzxm','C29JA2v0qwrHChrLCG','Dgv4Dc9WBgfPBG','BgvUz3rO','y2HHBM5LBa','ChjLzML4','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','B2zMC2v0','Bwf4tgLZDgvUzxjZ','yNjVywrJyxn0oG','y2fJAgvdB250CM9S','yNvJA2v0','C2v0sxrLBq','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','Dw5ZDwjZy3jPyMu','Cg9ZDgDYzxnFy2HHBMDLCZO','ChvZAa','C2vSzwn0','B3bLCMf0Aw9U','ChjLCgvUzeXPC3rLBMvY','D2fYBG','AxndB25Uzwn0zwq','BhrL','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','BgLZDgvUzxjZ','C3rYAw5N','zNvUy3rPB25Z','DxbZzxj0','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSlIbqyxjHifjLywn0ie5HDgL2zsWGAw5ZDgfSztOGBNbTigLUC3rHBgWGC29JA2v0lMLVlwnSAwvUDa','C3rYAw5NAwz5','C2vZC2LVBG','Ahr0CenSAwvUDa','CNbJ','B25cCM9HzgnHC3q','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','z2v0u3rHDhvZ','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','CMvTB3zLq2HHBM5LBa','CMvHy3qTBMf0AxzL','C2vUza','D29YA3nWywnLswq','CMfUzg9T','yxbWzw5K','CMvTB3zL','ChjLzMvY','zgvSzxrL','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','y2XPzw50','zgf0yufYCMf5','zxzLBNrZ','z2v0twf4tgLZDgvUzxjZ','zgvSzxrLt3b0Aw9UCW','y29UBMvJDgLVBLn0yxrL','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','rMfPBgvKihrVignYzwf0zsbIDwnRzxq','DxbKyxrLrw52','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','igf0DgvTChrZoIa','CMvTB3zLq3vZDg9Trgf0ywjHC2u','BwvZC2fNzq','ywrK','y2XVC2vK','mJqWmti1yKv5BLDz','mtK2nduXmMDhrg1RCW','y29SDw1U','rujHyvndBgLLBNq','B2zM','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','yMXVyG','rujHyvnfCNjVCG','ChvIBgLJ','B3b0Aw9UCW','DMfSDwvZ','Aw50zxjJzxb0B3jZ','BwfRzvjLzG','rMfPBgvKihrVihjLBw92zsbMAwXLCW','DgfIBgu','Cg9ZDa','Cg9ZDgDYzxnFy2HHBMDLCW','CgfYC2u','C29JA2v0lMLVlwnSAwvUDa','Dg9ku09o','Aw52B2TL','CMf3tgLZDgvUzxjZ','CxvLCNK','Dw5KzwzPBMvK','l2XVz3m','y2XLyxi','y2fWDhvYzvn0ywnRvhjHy2u','Bw92zq','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbTzxrYAwnZ','p3vWC2vYDd10CNvL','C3nSrw5HyMXLza','zw50CNLWB2LUDa','BgLTAxq','Aw5PDgLHBgL6zq','l2rLCgXVEq','B25qB3n0z3jLC0nOyw5Nzxm','CMvXDwvZDa','AgvHCNrIzwf0sw50zxj2ywW','C2v0v29YA3nWywnLswq','z2v0q2HHBM5LBhm','BgLZDa','AgfZ','BMfTzq','x3jLAM9PBG','AgfUzgXLqxv0AevYCM9Y','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','y2HHBM5LBhm','z2v0','AgfZq3vZDg9Trgf0ywjHC2u','BMvX','mtG2nJm1sKDWAhvP','yxv0Aa','y29UDgfPBNm','y29UDgvUDfr5Cgu','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','AM9PBMLUzW','u3rVCMfNzunSAwvUDa','Cg9ZDgDYzxniB3n0','zxzLBNq','C3vIC2nYAxb0Aw9UCW','l2LUzM8','AgvHCNrIzwf0','Dg9vChbLCKnHC2u','BM9Kzq','zNjVBq','l3n0B3jHz2uVyNvJA2v0CY8','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','CMvHBhrPBwu','rMfPBgvKihrVihvWBg9HzcbMAwXL','rMfPBgvKihrVihvWzgf0zsbIDwnRzxq','DxbKyxrL','yxbPs2v5','zgv0zwn0zwrdB25MAwC','DxbKyxrLt3b0Aw9UCW','yxnJzw5KAw5N','zgf0ywjHC2u','C2L6zq','AM9PBMvKt25Jzq','y2XLyxjtzxnZAw9U','mZe3ndC1Bvboq2DX','DhjHBNnMB3jT','u1vcu0nssujfra','x3nLDfn0yxrL','C2v0qxv0AfrVA2vU','yNvJA2v0swq','AgvHzgvYCW','ms4XlJG','Dw50CMfJAW','y29TBw9U','CMfUz2u','qMvHCMvYia','z2v0tg9NCW','BgLZDgvUzxjdB3vUDa','l3jWyY8','zMLSDgvY','C3rHDhvZ','AgfUzgXLrxjYB3i','qxv0AenSAwvUDa','mKjwENzjsa','Cgf0y2G','Bg9HzfnLC3nPB24','DMfSDwu','ywrKtgLZDgvUzxi','rNvUy3rPB25Zq2XPzw50','sfruucbYzxf1zxn0igzHAwXLza','B3bLCMf0B3i','C2v0','y3vYCMvUDfnJAgvTyq','Bgv2zwW','CMvQzwn0','z2v0sxrLBq','ChjLC2vUy2u6','DxjS','CMvZzxrqyxnZD29Yza','DxbKyxrLqNvJA2v0','z2v0qNvJA2v0','yxHPB3m','ndK2mtq2CwLWDMPA','CMvJB25Uzwn0sw50zxj2ywW','l2z1BMn0Aw9UCY92mq','vw5ZDxbWB3j0zwqGsfruucbTzxrOB2q6ia','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','Dg9WAwm','zM9YrwfJAa','yNjVywrJyxn0','yNjVD3nLCG','C3rHDhvZvgv4Da','DxnLCG','l21LDgfKyxrH','uMvHBhrPBwvdBgLLBNq','l2zPBgvZlW','l2zPBgvZl2nVChK','mZa0ndG4whfSCwTg','C29JA2v0','rMfPBgvKihrVignVChKGzMLSzq','DgvZDenVBM5Ly3rPB24','zgLZy29UBMvJDgvK','zgv0zwn0q3vZDg9Trgf0ywjHC2u','zgf0yq','Cg9YDa','zwjHyxmUyxv0Ac5ZzxnZAw9U','CMvZB2X2zq','zxzLBNroyw1LCW','x2PVAw4','DMvYAwz5','DxnL'];_0x39f8=function(){return _0x54a09d;};return _0x39f8();}function createClient(_0x4a35f7,_0x264c79,_0x2d3309){return new EBaaSClient(_0x4a35f7,_0x264c79,_0x2d3309);}const version=_0x347d1c(-0x1d8,-0x17f);exports[_0x347d1c(-0x18d,-0x174)]=AuthClient,exports['CustomDatabaseManager']=CustomDatabaseManager,exports['DatabaseClient']=DatabaseClient,exports[_0x347d1c(-0x8c,-0xb8)]=EBaaSClient,exports[_0x347d1c(-0x9b,-0xb4)]=EBaaSError,exports[_0x347d1c(-0x1e0,-0x16e)]=FunctionsClient,exports[_0x347d1c(-0x13c,-0x12d)]=HttpClient,exports['QueryBuilder']=QueryBuilder,exports['RealtimeChannel']=RealtimeChannel,exports[_0x347d1c(-0x129,-0x154)]=RealtimeClient,exports['StorageBucket']=StorageBucket,exports[_0x347d1c(-0x81,-0x83)]=StorageClient,exports['createClient']=createClient,exports['version']=version;