@sava-info-systems/api-maker-with-extensions 1.19.4 → 1.19.6
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.
|
@@ -3999,6 +3999,9 @@ export interface IPropertyValidation {
|
|
|
3999
3999
|
max?: number; // Allowed Types : number | date
|
|
4000
4000
|
minLength?: number; // Allowed Types : string
|
|
4001
4001
|
maxLength?: number; // Allowed Types : string
|
|
4002
|
+
/**
|
|
4003
|
+
* @deprecated API Maker maintains unique feature and do not use on table which has frequent updates.
|
|
4004
|
+
*/
|
|
4002
4005
|
unique?: boolean;
|
|
4003
4006
|
email?: boolean; // Allowed Types : string
|
|
4004
4007
|
validatorFun?: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x1cc2(_0x31cd83,_0x1c8a3c){const _0x5b7672=a0_0x5b76();return a0_0x1cc2=function(_0x1cc276,_0x5453e3){_0x1cc276=_0x1cc276-0xbe;let _0x39a3ed=_0x5b7672[_0x1cc276];return _0x39a3ed;},a0_0x1cc2(_0x31cd83,_0x1c8a3c);}(function(_0xd570d8,_0x6cecc2){const _0x78d3cb=a0_0x1cc2,_0x554047=_0xd570d8();while(!![]){try{const _0x3d2ea6=-parseInt(_0x78d3cb(0x209))/0x1+-parseInt(_0x78d3cb(0x108))/0x2+-parseInt(_0x78d3cb(0x111))/0x3*(-parseInt(_0x78d3cb(0x1c5))/0x4)+-parseInt(_0x78d3cb(0x153))/0x5*(parseInt(_0x78d3cb(0x195))/0x6)+parseInt(_0x78d3cb(0xea))/0x7*(-parseInt(_0x78d3cb(0x1bb))/0x8)+-parseInt(_0x78d3cb(0x196))/0x9+parseInt(_0x78d3cb(0x14c))/0xa;if(_0x3d2ea6===_0x6cecc2)break;else _0x554047['push'](_0x554047['shift']());}catch(_0x28fee2){_0x554047['push'](_0x554047['shift']());}}}(a0_0x5b76,0xb3d1e),((()=>{'use strict';var _0x3e7032={0x11f:(_0x1e5d3f,_0x543e5f,_0x115e57)=>{const _0x156d79=a0_0x1cc2;_0x543e5f['_6']=_0x543e5f['EN']=_0x543e5f['Yl']=_0x543e5f['QX']=void 0x0;const _0x1aeabb=_0x115e57(0x3a),_0x42c0b7=_0x115e57(0x2a0),_0x203313=_0x115e57(0x170);var _0x3ddb0b,_0x75061c,_0xaca74a,_0x3eb3ad,_0x2610da,_0xadae41;new class{constructor(){const _0x270332=a0_0x1cc2;this['EL']=!0x1,this[_0x270332(0x19e)]=_0x42c0b7[_0x270332(0x1b3)](''),this[_0x270332(0xc0)]='',this['C']={'localClientPath':_0x270332(0x201),'src':'src','repo':'repo','types':_0x270332(0x12a),'amTypes':'am-types','versions':_0x270332(0x16e),'apis':_0x270332(0x10a),'listeners':_0x270332(0x18d),'postHooks':_0x270332(0x204),'preHooks':_0x270332(0x20c),'dbInterfacesFile':_0x270332(0x1a9),'UtilityClassesReadF':_0x270332(0x197),'CustomApiReadF':_0x270332(0x14b),'SchedulersReadF':'Schedulers','WebSocketEventsReadF':_0x270332(0x11b),'SchemaReadF':_0x270332(0x1f9),'DBMigrationsReadF':_0x270332(0x133),'ProcessInitializersReadF':_0x270332(0x1a6),'ProcessI18NReadF':'i18ns','DBMastersReadF':_0x270332(0xe5),'DBMasterStylesReadF':_0x270332(0x164),'DBMasterUtilsReadF':_0x270332(0xce),'TestCasesReadF':_0x270332(0x1e1),'ThirdPartyApiReadF':_0x270332(0x1b9),'EventsReadF':_0x270332(0x118),'InstanceApiHooksReadF':_0x270332(0x1fd),'SystemApiHooksReadF':_0x270332(0x13a),'CollectionHooksReadF':_0x270332(0x125),'DatabaseHooksReadF':_0x270332(0xfb),'InstanceHooksReadF':_0x270332(0x1e2),'CustomApisWriteF':_0x270332(0x1ba),'SchedulersWriteF':_0x270332(0x1be),'WebSocketEventsWriteF':_0x270332(0x138),'SchemaWriteF':_0x270332(0x169),'DBMigrationsWriteF':_0x270332(0x212),'ProcessInitializersWriteF':_0x270332(0xc3),'ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0x270332(0x142),'DBMasterStylesWriteF':_0x270332(0xcf),'DBMasterUtilsWriteF':_0x270332(0x1e0),'TestCasesWriteF':_0x270332(0x14f),'ThirdPartyApiWriteF':_0x270332(0x174),'EventsWriteF':_0x270332(0x1df),'InstanceApiHooksWriteF':_0x270332(0x1f0),'SystemApiHooksWriteF':_0x270332(0x1e3),'CollectionHooksWriteF':_0x270332(0x1d2),'DatabaseHooksWriteF':_0x270332(0x12e),'InstanceHooksWriteF':_0x270332(0x105)},this['skipWatchInputs']=!0x1,this['skipFileWritingForLocal']={},this[_0x270332(0x1a8)]=!0x1,this[_0x270332(0x10d)]=_0x270332(0xdd),this[_0x270332(0x120)]='\x1b[36m',this['colorEnd']=_0x270332(0x121),this['isWSConnectedFirstTime']=!0x1,this[_0x270332(0x13d)]=this[_0x270332(0x1c4)](this[_0x270332(0xeb)],0x1f4);}async['start'](){const _0x3c2bb3=a0_0x1cc2;this['addProcessHooks'](),this['checkForNodeVersion'](),this[_0x3c2bb3(0x206)](this['C'][_0x3c2bb3(0x171)]+_0x3c2bb3(0x173))||(this[_0x3c2bb3(0x1b2)](),this[_0x3c2bb3(0x16c)](0x1)[_0x3c2bb3(0x1ad)]()),this['config']=require(this['C'][_0x3c2bb3(0x171)])(),await this[_0x3c2bb3(0x187)](),this['removeEmptyDirsSync'](_0x42c0b7[_0x3c2bb3(0xee)](this[_0x3c2bb3(0x19e)],this['C'][_0x3c2bb3(0x186)])),await this[_0x3c2bb3(0x147)](),await this[_0x3c2bb3(0x175)](),await this['connectToServerViaWS']();}[_0x156d79(0x1de)](){const _0xa4aa60=_0x156d79,_0xd71607=process['version'];parseInt(_0xd71607[_0xa4aa60(0x20d)]('.')[0x0][_0xa4aa60(0x143)]('v',''),0xa)<0x16&&(console['error'](this['orangeStart']+'Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20'+_0xd71607+this[_0xa4aa60(0xff)]),this[_0xa4aa60(0x16c)](0x1)[_0xa4aa60(0x1ad)]());}async['printNotes'](){const _0x5add0d=_0x156d79;console[_0x5add0d(0x179)](this['orangeStart']),console[_0x5add0d(0x179)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x5add0d(0x179)](_0x5add0d(0x1fe)),console[_0x5add0d(0x179)]('\x20Current\x20Dir\x20:\x20'+this['appRoot']),console[_0x5add0d(0x179)](_0x5add0d(0x17e)),console[_0x5add0d(0x179)](this[_0x5add0d(0xff)]),console[_0x5add0d(0x179)]('');}[_0x156d79(0x1b2)](){const _0x5e0783=_0x156d79;console[_0x5e0783(0x179)](_0x5e0783(0xdd)),console['log'](_0x5e0783(0x1b7)+this['C']['localClientPath']+_0x5e0783(0x173)),console[_0x5e0783(0x179)]('\x1b[0m'),console[_0x5e0783(0x179)]('');}async[_0x156d79(0x147)](){const _0x29d695=_0x156d79,_0x3256e5=_0x42c0b7[_0x29d695(0x122)](this['appRoot']),_0x1bcd74=_0x42c0b7[_0x29d695(0xee)](this['appRoot'],'..',_0x3256e5+_0x29d695(0x19a));this['projectDirectory']=_0x1bcd74,_0x1aeabb['rmSync'](_0x1bcd74,{'recursive':!0x0,'force':!0x0}),await this[_0x29d695(0x15e)](_0x1bcd74,{'recursive':!0x0});}async[_0x156d79(0x1cc)](_0x2549c1){const _0x5db0ad=_0x156d79;await this[_0x5db0ad(0x147)](),this['fsMkDirSync'](_0x42c0b7[_0x5db0ad(0xee)](this[_0x5db0ad(0xc0)],this['C'][_0x5db0ad(0x186)]),{'recursive':!0x0}),_0x1aeabb[_0x5db0ad(0x1dc)](_0x42c0b7['join'](this[_0x5db0ad(0x19e)],'package.json'),_0x42c0b7[_0x5db0ad(0xee)](this[_0x5db0ad(0xc0)],'package.json')),_0x1aeabb[_0x5db0ad(0x1dc)](_0x42c0b7[_0x5db0ad(0xee)](this['appRoot'],_0x5db0ad(0xf5)),_0x42c0b7[_0x5db0ad(0xee)](this[_0x5db0ad(0xc0)],_0x5db0ad(0xf5)));const _0x4de03a=_0x42c0b7[_0x5db0ad(0xee)](this['appRoot'],_0x5db0ad(0x211)),_0x299d20=JSON['parse'](await this['fsReadFile'](_0x4de03a,{'encoding':'utf8'}));_0x299d20[_0x5db0ad(0xda)]['baseUrl']='./src',_0x299d20[_0x5db0ad(0xda)][_0x5db0ad(0x189)]['*']['push']('*'),await this[_0x5db0ad(0x10f)](_0x42c0b7['join'](this[_0x5db0ad(0xc0)],_0x5db0ad(0x211)),JSON['stringify'](_0x299d20,null,0x4),{'encoding':_0x5db0ad(0x180)}),await _0x1aeabb[_0x5db0ad(0x11c)]['cp'](_0x42c0b7[_0x5db0ad(0xee)](this[_0x5db0ad(0x19e)],this['C'][_0x5db0ad(0x1f2)]),_0x42c0b7[_0x5db0ad(0xee)](this['projectDirectory'],this['C']['src'],this['C']['amTypes']),{'recursive':!0x0}),await _0x1aeabb[_0x5db0ad(0x11c)]['cp'](_0x42c0b7[_0x5db0ad(0xee)](this[_0x5db0ad(0x19e)],this['C'][_0x5db0ad(0x186)],this[_0x5db0ad(0xc5)][_0x5db0ad(0x1f5)],this['C'][_0x5db0ad(0x12a)],this['C'][_0x5db0ad(0x10c)]),_0x42c0b7['join'](this['projectDirectory'],this['C'][_0x5db0ad(0x186)],this['C'][_0x5db0ad(0x1f2)],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x5db0ad(0xe8)](),await this['copySchedulersToAnotherDir'](),await this[_0x5db0ad(0x1ec)](),await this['copyDBMigrationsToAnotherDir'](),await this['copyProcessInitializersToAnotherDir'](),await this[_0x5db0ad(0x1e7)](),await this[_0x5db0ad(0x178)](),await this['copyThirdPartyApisToAnotherDir'](),await this[_0x5db0ad(0x152)](),await this[_0x5db0ad(0x110)](),await this['copySystemApiHooksToAnotherDir'](),await this[_0x5db0ad(0xdc)](),await this[_0x5db0ad(0x20e)](),await this[_0x5db0ad(0xfe)](),await this[_0x5db0ad(0x115)](),await this[_0x5db0ad(0xe3)](),await this['copyDBMasterStylesToAnotherDir'](),await this['copyDBMasterUtilsToAnotherDir'](),_0x2549c1&&(console[_0x5db0ad(0x179)]('⏳\x20node_modules\x20installation\x20process\x20started'),await this[_0x5db0ad(0x104)](_0x5db0ad(0x1da),['install','--force']),console[_0x5db0ad(0x179)](_0x5db0ad(0x172)));try{_0x1aeabb[_0x5db0ad(0x216)](_0x42c0b7[_0x5db0ad(0xee)](this['appRoot'],'node_modules'),_0x42c0b7[_0x5db0ad(0xee)](this['projectDirectory'],_0x5db0ad(0x19b)),_0x5db0ad(0x21c));}catch(_0x2f858f){console[_0x5db0ad(0x179)](_0x5db0ad(0x165)),console[_0x5db0ad(0x179)](_0x2f858f),await this[_0x5db0ad(0x16c)](0x1);}}async['installRequiredPackages'](){const _0x14b173=_0x156d79;console[_0x14b173(0x179)](_0x14b173(0x17c));try{_0x1aeabb[_0x14b173(0x102)](_0x42c0b7[_0x14b173(0xee)](this[_0x14b173(0x19e)],'package-lock.json'));}catch(_0x14f778){}await this['executeNpmRun']('npm',['install',_0x14b173(0x1d4),_0x14b173(0x11e),_0x14b173(0x18a)]),console['log'](_0x14b173(0x140));}async[_0x156d79(0x17f)](){const _0x557faf=_0x156d79,_0x1129dc=this['C']['UtilityClassesReadF'],_0x2a1c8d=_0x42c0b7[_0x557faf(0xee)](this[_0x557faf(0x19e)],this['C'][_0x557faf(0x186)],this[_0x557faf(0xc5)]['adminUserPath'],_0x1129dc),_0x1e3126=await this[_0x557faf(0x11d)](_0x2a1c8d,null);for(const _0x4f5bc5 of _0x1e3126){const _0x7ca76=_0x42c0b7[_0x557faf(0xee)](_0x2a1c8d,_0x4f5bc5,_0x4f5bc5+_0x557faf(0x12d));if(!this[_0x557faf(0x206)](_0x7ca76))continue;const _0x5d1b5b=await this[_0x557faf(0x205)](_0x7ca76,{'encoding':_0x557faf(0x180)}),_0x542efa=await this[_0x557faf(0x148)](_0x5d1b5b);for(const _0x502e90 of _0x542efa['versions']||[])if(!0x0===_0x502e90['isActive']){const _0x30dd3f=_0x42c0b7[_0x557faf(0xee)](_0x2a1c8d,_0x4f5bc5,this['C']['versions'],_0x502e90[_0x557faf(0x1c7)],_0x502e90[_0x557faf(0x162)]+_0x557faf(0x130)),_0x315e12=_0x42c0b7[_0x557faf(0xee)](this[_0x557faf(0xc0)],this['C'][_0x557faf(0x186)],_0x542efa[_0x557faf(0x163)],_0x542efa[_0x557faf(0x162)]+_0x557faf(0x130));await this[_0x557faf(0x15e)](_0x42c0b7[_0x557faf(0xf3)](_0x315e12),{'recursive':!0x0}),await this[_0x557faf(0xd1)](_0x30dd3f,_0x315e12);}}}async[_0x156d79(0xe8)](){const _0x5d6c7f=_0x156d79,_0x45fbe7=this['C'][_0x5d6c7f(0x1d1)],_0x252673=this['C'][_0x5d6c7f(0x1d3)],_0x1e3295=_0x42c0b7[_0x5d6c7f(0xee)](this['appRoot'],this['C']['src'],this[_0x5d6c7f(0xc5)]['adminUserPath'],_0x45fbe7),_0x5a93de=await this[_0x5d6c7f(0x11d)](_0x1e3295,null);for(const _0x6a2902 of _0x5a93de){const _0x4e84a7=_0x42c0b7[_0x5d6c7f(0xee)](_0x1e3295,_0x6a2902,_0x6a2902+'.yaml');if(!this[_0x5d6c7f(0x206)](_0x4e84a7))continue;const _0x2bc4f2=await this['fsReadFile'](_0x4e84a7,{'encoding':_0x5d6c7f(0x180)}),_0x4be389=await this[_0x5d6c7f(0x148)](_0x2bc4f2);for(const _0x5b339e of _0x4be389[_0x5d6c7f(0x16e)]||[])if(!0x0===_0x5b339e[_0x5d6c7f(0x135)]){const _0x42c1e8=_0x42c0b7[_0x5d6c7f(0xee)](_0x1e3295,_0x6a2902,this['C'][_0x5d6c7f(0x16e)],_0x5b339e[_0x5d6c7f(0x1c7)]),_0xc0c03b=_0x42c0b7[_0x5d6c7f(0xee)](_0x42c1e8,_0x5b339e[_0x5d6c7f(0x162)]+'.ts'),_0x703a14=_0x42c0b7['join'](this[_0x5d6c7f(0xc0)],this['C']['src'],_0x252673,_0x4be389[_0x5d6c7f(0x1b5)],_0x4be389[_0x5d6c7f(0x162)]+_0x5d6c7f(0x130));await this['fsMkDir'](_0x42c0b7[_0x5d6c7f(0xf3)](_0x703a14),{'recursive':!0x0}),await this[_0x5d6c7f(0xd1)](_0xc0c03b,_0x703a14);const _0x4eaa63=_0x42c0b7[_0x5d6c7f(0xee)](_0x1e3295,_0x6a2902,_0x6a2902+'.config.ts'),_0x56f157=_0x42c0b7[_0x5d6c7f(0xee)](this[_0x5d6c7f(0xc0)],this['C']['src'],_0x252673,_0x4be389['path'],_0x4be389['name']+_0x5d6c7f(0x158));await this['fsLink'](_0x4eaa63,_0x56f157);for(const _0x4e8bb1 of _0x5b339e[_0x5d6c7f(0xdb)]){const _0x156eb3=_0x42c0b7[_0x5d6c7f(0xee)](_0x42c1e8,this['C'][_0x5d6c7f(0xdb)],_0x4e8bb1[_0x5d6c7f(0x162)]+'.ts'),_0x5a9b27=_0x42c0b7[_0x5d6c7f(0xee)](this['projectDirectory'],this['C'][_0x5d6c7f(0x186)],_0x252673,_0x4be389[_0x5d6c7f(0x1b5)],this['C'][_0x5d6c7f(0xdb)],_0x4e8bb1['name']+_0x5d6c7f(0x130));await this['fsMkDir'](_0x42c0b7[_0x5d6c7f(0xf3)](_0x5a9b27),{'recursive':!0x0}),await this[_0x5d6c7f(0xd1)](_0x156eb3,_0x5a9b27);}for(const _0x33d81b of _0x5b339e[_0x5d6c7f(0x217)]){const _0x53ea87=_0x42c0b7[_0x5d6c7f(0xee)](_0x42c1e8,this['C'][_0x5d6c7f(0x217)],_0x33d81b['name']+'.ts'),_0x3cbcbd=_0x42c0b7['join'](this['projectDirectory'],this['C'][_0x5d6c7f(0x186)],_0x252673,_0x4be389['path'],this['C'][_0x5d6c7f(0x217)],_0x33d81b['name']+_0x5d6c7f(0x130));await this[_0x5d6c7f(0x15e)](_0x42c0b7[_0x5d6c7f(0xf3)](_0x3cbcbd),{'recursive':!0x0}),await this[_0x5d6c7f(0xd1)](_0x53ea87,_0x3cbcbd);}}}}async[_0x156d79(0x123)](){const _0x4405b5=_0x156d79,_0x57724a=this['C'][_0x4405b5(0xed)],_0x61d5e7=this['C'][_0x4405b5(0x146)],_0x4d7efc=_0x42c0b7[_0x4405b5(0xee)](this[_0x4405b5(0x19e)],this['C'][_0x4405b5(0x186)],this[_0x4405b5(0xc5)][_0x4405b5(0x1f5)],_0x57724a),_0x2e08ce=await this[_0x4405b5(0x11d)](_0x4d7efc,null);for(const _0x3b49f3 of _0x2e08ce){const _0x1106eb=_0x42c0b7[_0x4405b5(0xee)](_0x4d7efc,_0x3b49f3,_0x3b49f3+'.yaml');if(!this['fsExistsSync'](_0x1106eb))continue;const _0x2649cb=await this[_0x4405b5(0x205)](_0x1106eb,{'encoding':_0x4405b5(0x180)}),_0x22fa0f=await this[_0x4405b5(0x148)](_0x2649cb);for(const _0xc29ca2 of _0x22fa0f[_0x4405b5(0x16e)]||[])if(!0x0===_0xc29ca2[_0x4405b5(0x135)]){const _0x4a2d0a=_0x42c0b7[_0x4405b5(0xee)](_0x4d7efc,_0x3b49f3,this['C']['versions'],_0xc29ca2[_0x4405b5(0x1c7)],_0xc29ca2[_0x4405b5(0x162)]+'.ts'),_0x101440=_0x42c0b7['join'](this[_0x4405b5(0xc0)],this['C']['src'],_0x61d5e7,_0x22fa0f[_0x4405b5(0x162)]+'.ts');await this['fsMkDir'](_0x42c0b7[_0x4405b5(0xf3)](_0x101440),{'recursive':!0x0}),await this['fsLink'](_0x4a2d0a,_0x101440);}}}async[_0x156d79(0x1ec)](){const _0x126860=_0x156d79,_0x389a71=this['C']['SchemaReadF'],_0x385693=this['C'][_0x126860(0x134)],_0x45a963=_0x42c0b7[_0x126860(0xee)](this[_0x126860(0x19e)],this['C'][_0x126860(0x186)],this[_0x126860(0xc5)]['adminUserPath'],_0x389a71),_0x50cd8b=await this[_0x126860(0x11d)](_0x45a963,null);for(const _0x1e7dcf of _0x50cd8b){const _0x45cf27=_0x42c0b7[_0x126860(0xee)](_0x45a963,_0x1e7dcf,_0x1e7dcf+'.yaml');if(!this['fsExistsSync'](_0x45cf27))continue;const _0x360c94=await this[_0x126860(0x205)](_0x45cf27,{'encoding':'utf8'}),_0x44884d=await this[_0x126860(0x148)](_0x360c94),_0x1e89d8=_0x42c0b7['join'](this[_0x126860(0xc0)],this['C'][_0x126860(0x186)],_0x385693,_0x44884d['instanceName'],_0x44884d[_0x126860(0xe0)]);await this[_0x126860(0x15e)](_0x1e89d8,{'recursive':!0x0});const _0x2d62cb=_0x42c0b7[_0x126860(0xee)](_0x45a963,_0x1e7dcf,_0x44884d[_0x126860(0xf6)]+_0x126860(0x158)),_0x29ffaf=_0x42c0b7[_0x126860(0xee)](_0x1e89d8,_0x44884d[_0x126860(0xf6)]+_0x126860(0x158));await this[_0x126860(0xd1)](_0x2d62cb,_0x29ffaf);}}async[_0x156d79(0x15c)](){const _0x514317=_0x156d79,_0x5369fc=this['C'][_0x514317(0x1d6)],_0x37add6=this['C'][_0x514317(0x215)],_0x3a3a49=_0x42c0b7[_0x514317(0xee)](this[_0x514317(0x19e)],this['C']['src'],this[_0x514317(0xc5)][_0x514317(0x1f5)],_0x5369fc),_0x4c97fa=await this['readDirCustom'](_0x3a3a49,null);for(const _0x3b25b2 of _0x4c97fa){const _0x452d0=_0x42c0b7[_0x514317(0xee)](_0x3a3a49,_0x3b25b2,_0x3b25b2+'.yaml');if(!this['fsExistsSync'](_0x452d0))continue;const _0x1cd282=await this[_0x514317(0x205)](_0x452d0,{'encoding':'utf8'}),_0x595a1a=await this['parseYaml'](_0x1cd282),_0x2b5784=_0x42c0b7[_0x514317(0xee)](this['projectDirectory'],this['C'][_0x514317(0x186)],_0x37add6);await this[_0x514317(0x15e)](_0x2b5784,{'recursive':!0x0});const _0x254c1f=_0x42c0b7[_0x514317(0xee)](_0x3a3a49,_0x3b25b2,_0x595a1a[_0x514317(0x162)]+_0x514317(0x130)),_0x2ad62f=_0x42c0b7[_0x514317(0xee)](_0x2b5784,_0x595a1a[_0x514317(0x162)]+_0x514317(0x130));await this[_0x514317(0xd1)](_0x254c1f,_0x2ad62f);}}async[_0x156d79(0xc2)](){const _0x39b2d4=_0x156d79,_0x345684=this['C'][_0x39b2d4(0x1af)],_0x3fc56b=this['C'][_0x39b2d4(0x100)],_0x451f95=_0x42c0b7['join'](this[_0x39b2d4(0x19e)],this['C']['src'],this[_0x39b2d4(0xc5)][_0x39b2d4(0x1f5)],_0x345684),_0x3a2b49=await this[_0x39b2d4(0x11d)](_0x451f95,null);for(const _0x38f590 of _0x3a2b49){const _0x3d3d51=_0x42c0b7[_0x39b2d4(0xee)](_0x451f95,_0x38f590,_0x38f590+'.yaml');if(!this[_0x39b2d4(0x206)](_0x3d3d51))continue;const _0x48be3b=await this['fsReadFile'](_0x3d3d51,{'encoding':_0x39b2d4(0x180)}),_0x202795=await this[_0x39b2d4(0x148)](_0x48be3b),_0x57d085=_0x42c0b7[_0x39b2d4(0xee)](this[_0x39b2d4(0xc0)],this['C']['src'],_0x3fc56b);await this[_0x39b2d4(0x15e)](_0x57d085,{'recursive':!0x0});const _0x54ecbb=_0x42c0b7[_0x39b2d4(0xee)](_0x451f95,_0x38f590,_0x202795[_0x39b2d4(0x162)]+_0x39b2d4(0x130)),_0x4b327f=_0x42c0b7[_0x39b2d4(0xee)](_0x57d085,_0x202795[_0x39b2d4(0x162)]+_0x39b2d4(0x130));await this['fsLink'](_0x54ecbb,_0x4b327f);}}async['copyI18NToAnotherDir'](){const _0x3b2790=_0x156d79,_0x37c3a8=this['C'][_0x3b2790(0xd5)],_0x1a16c2=this['C'][_0x3b2790(0x155)],_0x4eb31f=_0x42c0b7['join'](this[_0x3b2790(0x19e)],this['C'][_0x3b2790(0x186)],this['config']['adminUserPath'],_0x37c3a8),_0xc76a7a=await this[_0x3b2790(0x11d)](_0x4eb31f,null);for(const _0x4d4ded of _0xc76a7a){const _0x54fb87=_0x42c0b7['join'](_0x4eb31f,_0x4d4ded,_0x4d4ded+_0x3b2790(0x12d));if(!this['fsExistsSync'](_0x54fb87))continue;const _0x476e35=await this[_0x3b2790(0x205)](_0x54fb87,{'encoding':_0x3b2790(0x180)}),_0x4ff192=await this[_0x3b2790(0x148)](_0x476e35),_0x58f3ee=_0x42c0b7['join'](this[_0x3b2790(0xc0)],this['C'][_0x3b2790(0x186)],_0x1a16c2);await this[_0x3b2790(0x15e)](_0x58f3ee,{'recursive':!0x0});const _0x406e5f=_0x42c0b7[_0x3b2790(0xee)](_0x4eb31f,_0x4d4ded,_0x4ff192[_0x3b2790(0x162)]+'.ts'),_0x568f03=_0x42c0b7['join'](_0x58f3ee,_0x4ff192['name']+'.ts');await this[_0x3b2790(0xd1)](_0x406e5f,_0x568f03);}}async[_0x156d79(0xe3)](){const _0x39ec97=_0x156d79,_0x329bd1=this['C'][_0x39ec97(0x128)],_0x1ad3fe=this['C'][_0x39ec97(0xe1)],_0xec23b2=_0x42c0b7['join'](this[_0x39ec97(0x19e)],this['C']['src'],this[_0x39ec97(0xc5)][_0x39ec97(0x1f5)],_0x329bd1),_0x3c44ee=await this[_0x39ec97(0x11d)](_0xec23b2,null);for(const _0x1a45c7 of _0x3c44ee){const _0x3a35ee=_0x42c0b7['join'](_0xec23b2,_0x1a45c7,_0x1a45c7+_0x39ec97(0x12d));if(!this[_0x39ec97(0x206)](_0x3a35ee))continue;const _0x51423d=await this[_0x39ec97(0x205)](_0x3a35ee,{'encoding':_0x39ec97(0x180)}),_0x534895=await this[_0x39ec97(0x148)](_0x51423d),_0x2e4794=_0x42c0b7[_0x39ec97(0xee)](this[_0x39ec97(0xc0)],this['C']['src'],_0x1ad3fe,_0x534895[_0x39ec97(0x162)]);await this[_0x39ec97(0x15e)](_0x2e4794,{'recursive':!0x0});const _0x1d5499=_0x42c0b7[_0x39ec97(0xee)](_0xec23b2,_0x1a45c7,_0x534895[_0x39ec97(0x162)]+'.ts'),_0x129b62=_0x42c0b7[_0x39ec97(0xee)](_0x2e4794,_0x534895[_0x39ec97(0x162)]+_0x39ec97(0x130));await this[_0x39ec97(0xd1)](_0x1d5499,_0x129b62);const _0x37d763=_0x42c0b7['join'](_0xec23b2,_0x1a45c7,_0x534895[_0x39ec97(0x162)]+'.config.ts'),_0x3bbb9d=_0x42c0b7[_0x39ec97(0xee)](_0x2e4794,_0x534895[_0x39ec97(0x162)]+_0x39ec97(0x158));await this['fsLink'](_0x37d763,_0x3bbb9d);}}async['copyDBMasterStylesToAnotherDir'](){const _0x95e80e=_0x156d79,_0x1463ec=this['C'][_0x95e80e(0x1ef)],_0x4d8cb7=this['C']['DBMasterStylesWriteF'],_0x3a0202=_0x42c0b7[_0x95e80e(0xee)](this[_0x95e80e(0x19e)],this['C'][_0x95e80e(0x186)],this[_0x95e80e(0xc5)][_0x95e80e(0x1f5)],_0x1463ec),_0x518b41=await this['readDirCustom'](_0x3a0202,null);for(const _0x16ead2 of _0x518b41){const _0x397c42=_0x42c0b7[_0x95e80e(0xee)](_0x3a0202,_0x16ead2,_0x16ead2+_0x95e80e(0x12d));if(!this[_0x95e80e(0x206)](_0x397c42))continue;const _0x295b5b=await this[_0x95e80e(0x205)](_0x397c42,{'encoding':'utf8'}),_0x193928=await this['parseYaml'](_0x295b5b),_0x4a7975=_0x42c0b7[_0x95e80e(0xee)](this[_0x95e80e(0xc0)],this['C']['src'],_0x4d8cb7);await this['fsMkDir'](_0x4a7975,{'recursive':!0x0});const _0x53c058=_0x42c0b7[_0x95e80e(0xee)](_0x3a0202,_0x16ead2,_0x193928[_0x95e80e(0x162)]+_0x95e80e(0x13e)),_0x113d6a=_0x42c0b7['join'](_0x4a7975,_0x193928[_0x95e80e(0x162)]+_0x95e80e(0x13e));await this[_0x95e80e(0xd1)](_0x53c058,_0x113d6a);}}async[_0x156d79(0x126)](){const _0x4c4228=_0x156d79,_0x164ee8=this['C'][_0x4c4228(0xc7)],_0x3c2467=this['C']['DBMasterUtilsWriteF'],_0x3a4ea8=_0x42c0b7[_0x4c4228(0xee)](this[_0x4c4228(0x19e)],this['C']['src'],this[_0x4c4228(0xc5)][_0x4c4228(0x1f5)],_0x164ee8),_0x19652c=await this[_0x4c4228(0x11d)](_0x3a4ea8,null);for(const _0x61693e of _0x19652c){const _0x2a9b72=_0x42c0b7[_0x4c4228(0xee)](_0x3a4ea8,_0x61693e,_0x61693e+'.yaml');if(!this[_0x4c4228(0x206)](_0x2a9b72))continue;const _0x1f744d=await this[_0x4c4228(0x205)](_0x2a9b72,{'encoding':'utf8'}),_0x17e5e4=await this[_0x4c4228(0x148)](_0x1f744d),_0x27d412=_0x42c0b7[_0x4c4228(0xee)](this[_0x4c4228(0xc0)],this['C'][_0x4c4228(0x186)],_0x3c2467);await this[_0x4c4228(0x15e)](_0x27d412,{'recursive':!0x0});const _0x51f5d0=_0x42c0b7['join'](_0x3a4ea8,_0x61693e,_0x17e5e4[_0x4c4228(0x162)]+'.ts'),_0x12e1cc=_0x42c0b7[_0x4c4228(0xee)](_0x27d412,_0x17e5e4[_0x4c4228(0x162)]+_0x4c4228(0x130));await this[_0x4c4228(0xd1)](_0x51f5d0,_0x12e1cc);}}async[_0x156d79(0x178)](){const _0x1fe913=_0x156d79,_0xbc5ed1=this['C'][_0x1fe913(0x141)],_0x3c884e=this['C'][_0x1fe913(0xcc)],_0x2d68d1=_0x42c0b7['join'](this[_0x1fe913(0x19e)],this['C'][_0x1fe913(0x186)],this['config'][_0x1fe913(0x1f5)],_0xbc5ed1),_0x236916=await this[_0x1fe913(0x11d)](_0x2d68d1,null);for(const _0x1ae54f of _0x236916){const _0x4d234e=_0x42c0b7[_0x1fe913(0xee)](_0x2d68d1,_0x1ae54f,_0x1ae54f+_0x1fe913(0x12d));if(!this['fsExistsSync'](_0x4d234e))continue;const _0x348131=await this[_0x1fe913(0x205)](_0x4d234e,{'encoding':'utf8'}),_0x1c519c=await this[_0x1fe913(0x148)](_0x348131),_0x3c2689=_0x42c0b7[_0x1fe913(0xee)](this[_0x1fe913(0xc0)],this['C'][_0x1fe913(0x186)],_0x3c884e);await this[_0x1fe913(0x15e)](_0x3c2689,{'recursive':!0x0});const _0x12c384=_0x42c0b7['join'](_0x2d68d1,_0x1ae54f,_0x1c519c[_0x1fe913(0x162)]+_0x1fe913(0x130)),_0x4383f5=_0x42c0b7[_0x1fe913(0xee)](_0x3c2689,_0x1c519c[_0x1fe913(0x162)]+_0x1fe913(0x130));await this[_0x1fe913(0xd1)](_0x12c384,_0x4383f5);}}async['copyThirdPartyApisToAnotherDir'](){const _0x28b2ba=_0x156d79,_0x59988e=this['C'][_0x28b2ba(0x1a7)],_0x3b1c67=this['C'][_0x28b2ba(0x1dd)],_0x1273da=_0x42c0b7[_0x28b2ba(0xee)](this[_0x28b2ba(0x19e)],this['C'][_0x28b2ba(0x186)],this[_0x28b2ba(0xc5)][_0x28b2ba(0x1f5)],_0x59988e);if(!this[_0x28b2ba(0x206)](_0x1273da))return;const _0x72c444=await this[_0x28b2ba(0x11d)](_0x1273da,null);for(const _0x33bc8e of _0x72c444){const _0x40336a=_0x42c0b7[_0x28b2ba(0xee)](_0x1273da,_0x33bc8e,this['C'][_0x28b2ba(0x10a)]),_0x24eb59=await this['readDirCustom'](_0x40336a,null);for(const _0x13b9c2 of _0x24eb59){const _0x1d8a09=_0x42c0b7['join'](_0x40336a,_0x13b9c2,_0x13b9c2+_0x28b2ba(0x12d));if(!this['fsExistsSync'](_0x1d8a09))continue;const _0x3b7843=await this[_0x28b2ba(0x205)](_0x1d8a09,{'encoding':_0x28b2ba(0x180)}),_0x5ada5b=await this[_0x28b2ba(0x148)](_0x3b7843);for(const _0x30017f of _0x5ada5b['versions']||[])if(!0x0===_0x30017f[_0x28b2ba(0x135)]){const _0x22afe6=_0x42c0b7[_0x28b2ba(0xee)](_0x40336a,_0x13b9c2,this['C'][_0x28b2ba(0x16e)],_0x30017f[_0x28b2ba(0x1c7)]),_0x407597=_0x42c0b7[_0x28b2ba(0xee)](_0x22afe6,_0x30017f[_0x28b2ba(0x162)]+_0x28b2ba(0x130)),_0x3b702c=_0x42c0b7[_0x28b2ba(0xee)](this[_0x28b2ba(0xc0)],this['C'][_0x28b2ba(0x186)],_0x3b1c67,_0x33bc8e,_0x5ada5b[_0x28b2ba(0x1b5)],_0x5ada5b['name']+_0x28b2ba(0x130));await this['fsMkDir'](_0x42c0b7[_0x28b2ba(0xf3)](_0x3b702c),{'recursive':!0x0}),await this[_0x28b2ba(0xd1)](_0x407597,_0x3b702c);const _0x33806e=_0x42c0b7['join'](_0x40336a,_0x13b9c2,_0x13b9c2+'.config.ts'),_0xb59eb7=_0x42c0b7[_0x28b2ba(0xee)](this[_0x28b2ba(0xc0)],this['C'][_0x28b2ba(0x186)],_0x3b1c67,_0x33bc8e,_0x5ada5b['path'],_0x5ada5b['name']+'.config.ts');await this[_0x28b2ba(0xd1)](_0x33806e,_0xb59eb7);for(const _0x4091b7 of _0x30017f[_0x28b2ba(0xdb)]){const _0x1e22cf=_0x42c0b7[_0x28b2ba(0xee)](_0x22afe6,this['C'][_0x28b2ba(0xdb)],_0x4091b7[_0x28b2ba(0x162)]+_0x28b2ba(0x130)),_0x42b536=_0x42c0b7['join'](this['projectDirectory'],this['C'][_0x28b2ba(0x186)],_0x3b1c67,_0x33bc8e,_0x5ada5b['path'],this['C'][_0x28b2ba(0xdb)],_0x4091b7[_0x28b2ba(0x162)]+_0x28b2ba(0x130));await this[_0x28b2ba(0x15e)](_0x42c0b7[_0x28b2ba(0xf3)](_0x42b536),{'recursive':!0x0}),await this[_0x28b2ba(0xd1)](_0x1e22cf,_0x42b536);}for(const _0x2f13fe of _0x30017f['postHooks']){const _0x5df1ab=_0x42c0b7['join'](_0x22afe6,this['C'][_0x28b2ba(0x217)],_0x2f13fe[_0x28b2ba(0x162)]+'.ts'),_0x5c0447=_0x42c0b7[_0x28b2ba(0xee)](this[_0x28b2ba(0xc0)],this['C'][_0x28b2ba(0x186)],_0x3b1c67,_0x33bc8e,_0x5ada5b[_0x28b2ba(0x1b5)],this['C'][_0x28b2ba(0x217)],_0x2f13fe[_0x28b2ba(0x162)]+'.ts');await this['fsMkDir'](_0x42c0b7['dirname'](_0x5c0447),{'recursive':!0x0}),await this[_0x28b2ba(0xd1)](_0x5df1ab,_0x5c0447);}}}}}async[_0x156d79(0x152)](){const _0x528a02=_0x156d79,_0x218a91=this['C']['EventsReadF'],_0x5d3234=this['C'][_0x528a02(0x1ab)],_0x4f596e=_0x42c0b7[_0x528a02(0xee)](this[_0x528a02(0x19e)],this['C'][_0x528a02(0x186)],this['config'][_0x528a02(0x1f5)],_0x218a91),_0x32e576=await this[_0x528a02(0x11d)](_0x4f596e,null);for(const _0x565950 of _0x32e576){const _0x51272e=_0x42c0b7[_0x528a02(0xee)](_0x4f596e,_0x565950,_0x565950+_0x528a02(0x12d));if(!this[_0x528a02(0x206)](_0x51272e))continue;const _0x4eb0f3=await this[_0x528a02(0x205)](_0x51272e,{'encoding':_0x528a02(0x180)}),_0x56570b=await this[_0x528a02(0x148)](_0x4eb0f3),_0x29219a=_0x42c0b7[_0x528a02(0xee)](_0x4f596e,_0x565950,this['C']['listeners']);for(const _0x226890 of _0x56570b['eventListeners'])for(const _0x1c2913 of _0x226890[_0x528a02(0x16e)]||[])if(!0x0===_0x1c2913[_0x528a02(0x135)]){const _0x159dce=_0x42c0b7[_0x528a02(0xee)](_0x29219a,_0x226890[_0x528a02(0x162)],this['C']['versions'],_0x1c2913[_0x528a02(0x1c7)],_0x1c2913[_0x528a02(0x162)]+_0x528a02(0x130)),_0x4e10e5=_0x42c0b7[_0x528a02(0xee)](this[_0x528a02(0xc0)],this['C'][_0x528a02(0x186)],_0x5d3234,_0x56570b[_0x528a02(0x162)],_0x226890[_0x528a02(0x162)]+_0x528a02(0x130));await this[_0x528a02(0x15e)](_0x42c0b7[_0x528a02(0xf3)](_0x4e10e5),{'recursive':!0x0}),await this[_0x528a02(0xd1)](_0x159dce,_0x4e10e5);}}}async[_0x156d79(0x110)](){const _0x249571=_0x156d79,_0x1f5534=this['C']['InstanceApiHooksReadF'],_0x2f6615=this['C'][_0x249571(0x1ea)],_0x13b2f5=_0x42c0b7[_0x249571(0xee)](this['appRoot'],this['C']['src'],this['config'][_0x249571(0x1f5)],_0x1f5534),_0x381783=await this[_0x249571(0x11d)](_0x13b2f5,null);for(const _0x2f71d2 of _0x381783){const _0x54ee98=_0x42c0b7[_0x249571(0xee)](_0x13b2f5,_0x2f71d2,_0x2f71d2+_0x249571(0x12d));if(!this[_0x249571(0x206)](_0x54ee98))continue;const _0x46bf46=await this[_0x249571(0x205)](_0x54ee98,{'encoding':'utf8'}),_0x5e7457=await this[_0x249571(0x148)](_0x46bf46),_0x1e3015=_0x42c0b7[_0x249571(0xee)](_0x13b2f5,_0x2f71d2),_0x938f48=_0x5e7457[_0x249571(0xd0)]+'/'+_0x5e7457[_0x249571(0xe0)]+'/'+_0x5e7457[_0x249571(0xf6)]+'/'+_0x5e7457['apiId'][_0x249571(0x132)]();for(const _0x5a263e of _0x5e7457['preHooks']){const _0x4cb748=_0x42c0b7['join'](_0x1e3015,this['C'][_0x249571(0xdb)],_0x5a263e[_0x249571(0x162)]+'.ts'),_0x5914ed=_0x42c0b7[_0x249571(0xee)](this[_0x249571(0xc0)],this['C'][_0x249571(0x186)],_0x2f6615,_0x938f48,this['C']['preHooks'],_0x5a263e[_0x249571(0x162)]+_0x249571(0x130));await this['fsMkDir'](_0x42c0b7[_0x249571(0xf3)](_0x5914ed),{'recursive':!0x0}),await this[_0x249571(0xd1)](_0x4cb748,_0x5914ed);}for(const _0x25c209 of _0x5e7457[_0x249571(0x217)]){const _0x30d8e8=_0x42c0b7['join'](_0x1e3015,this['C'][_0x249571(0x217)],_0x25c209[_0x249571(0x162)]+_0x249571(0x130)),_0x56dc47=_0x42c0b7[_0x249571(0xee)](this[_0x249571(0xc0)],this['C']['src'],_0x2f6615,_0x938f48,this['C']['postHooks'],_0x25c209[_0x249571(0x162)]+'.ts');await this[_0x249571(0x15e)](_0x42c0b7[_0x249571(0xf3)](_0x56dc47),{'recursive':!0x0}),await this[_0x249571(0xd1)](_0x30d8e8,_0x56dc47);}}}async[_0x156d79(0x219)](){const _0x2c6c75=_0x156d79,_0xdfcc93=this['C']['SystemApiHooksReadF'],_0x54adf5=this['C'][_0x2c6c75(0x1b8)],_0x498656=_0x42c0b7[_0x2c6c75(0xee)](this['appRoot'],this['C'][_0x2c6c75(0x186)],this[_0x2c6c75(0xc5)][_0x2c6c75(0x1f5)],_0xdfcc93),_0x1c34e9=await this[_0x2c6c75(0x11d)](_0x498656,null);for(const _0x29cee6 of _0x1c34e9){const _0x1aaf21=_0x42c0b7[_0x2c6c75(0xee)](_0x498656,_0x29cee6,_0x29cee6+_0x2c6c75(0x12d));if(!this['fsExistsSync'](_0x1aaf21))continue;const _0x3fb865=await this[_0x2c6c75(0x205)](_0x1aaf21,{'encoding':_0x2c6c75(0x180)}),_0x300343=await this[_0x2c6c75(0x148)](_0x3fb865),_0x1b9753=_0x42c0b7['join'](_0x498656,_0x29cee6),_0x2d2747=_0x300343['apiId'][_0x2c6c75(0x132)]();for(const _0x52e372 of _0x300343[_0x2c6c75(0xdb)]){const _0x5c175e=_0x42c0b7[_0x2c6c75(0xee)](_0x1b9753,this['C']['preHooks'],_0x52e372[_0x2c6c75(0x162)]+_0x2c6c75(0x130)),_0x54c2bb=_0x42c0b7[_0x2c6c75(0xee)](this[_0x2c6c75(0xc0)],this['C'][_0x2c6c75(0x186)],_0x54adf5,_0x2d2747,this['C']['preHooks'],_0x52e372['name']+_0x2c6c75(0x130));await this[_0x2c6c75(0x15e)](_0x42c0b7[_0x2c6c75(0xf3)](_0x54c2bb),{'recursive':!0x0}),await this[_0x2c6c75(0xd1)](_0x5c175e,_0x54c2bb);}for(const _0x5e4891 of _0x300343[_0x2c6c75(0x217)]){const _0x2e684f=_0x42c0b7['join'](_0x1b9753,this['C'][_0x2c6c75(0x217)],_0x5e4891['name']+_0x2c6c75(0x130)),_0x20efa6=_0x42c0b7[_0x2c6c75(0xee)](this['projectDirectory'],this['C'][_0x2c6c75(0x186)],_0x54adf5,_0x2d2747,this['C'][_0x2c6c75(0x217)],_0x5e4891[_0x2c6c75(0x162)]+_0x2c6c75(0x130));await this[_0x2c6c75(0x15e)](_0x42c0b7[_0x2c6c75(0xf3)](_0x20efa6),{'recursive':!0x0}),await this['fsLink'](_0x2e684f,_0x20efa6);}}}async[_0x156d79(0xdc)](){const _0x3aafae=_0x156d79,_0x5ba1f2=this['C'][_0x3aafae(0x1d9)],_0x380e3e=this['C'][_0x3aafae(0x18e)],_0x260b7b=_0x42c0b7['join'](this[_0x3aafae(0x19e)],this['C'][_0x3aafae(0x186)],this[_0x3aafae(0xc5)][_0x3aafae(0x1f5)],_0x5ba1f2),_0x2146b6=await this[_0x3aafae(0x11d)](_0x260b7b,null);for(const _0x16850c of _0x2146b6){const _0x24fb1f=_0x42c0b7[_0x3aafae(0xee)](_0x260b7b,_0x16850c,_0x16850c+_0x3aafae(0x12d));if(!this['fsExistsSync'](_0x24fb1f))continue;const _0x471ef3=await this[_0x3aafae(0x205)](_0x24fb1f,{'encoding':_0x3aafae(0x180)}),_0xa55299=await this[_0x3aafae(0x148)](_0x471ef3);for(const _0x119ae8 of _0xa55299[_0x3aafae(0x16e)]||[])if(!0x0===_0x119ae8[_0x3aafae(0x135)]){const _0x5e2ea7=_0x42c0b7[_0x3aafae(0xee)](_0x260b7b,_0x16850c,this['C'][_0x3aafae(0x16e)],_0x119ae8['version'],_0x119ae8['name']+_0x3aafae(0x130));let _0x434d8a='',_0x26a07c='';_0xa55299['apiCategory']===_0x3ddb0b['INSTANCES']?(_0x26a07c=_0x3aafae(0x159),_0x434d8a=_0xa55299[_0x3aafae(0xd0)]+'/'+_0xa55299[_0x3aafae(0xe0)]+'/'+_0xa55299[_0x3aafae(0xf6)]+'/'+_0xa55299[_0x3aafae(0x208)][_0x3aafae(0x132)]()):_0xa55299[_0x3aafae(0x11a)]===_0x3ddb0b[_0x3aafae(0x12c)]?(_0x26a07c=_0x3aafae(0x174),_0x434d8a=_0xa55299[_0x3aafae(0x156)]+'/'+_0xa55299['tpInstalledApiName']):_0xa55299[_0x3aafae(0x11a)]===_0x3ddb0b[_0x3aafae(0x1e6)]?(_0x26a07c=_0x3aafae(0x1ba),_0x434d8a=_0xa55299[_0x3aafae(0xf7)]):_0xa55299[_0x3aafae(0x11a)]===_0x3ddb0b[_0x3aafae(0x127)]?(_0x26a07c='system-apis',_0x434d8a=_0xa55299['systemApiName'][_0x3aafae(0x132)]()):_0xa55299[_0x3aafae(0x11a)]===_0x3ddb0b[_0x3aafae(0x139)]&&(_0x26a07c=_0x3aafae(0xcb),_0x434d8a=_0xa55299[_0x3aafae(0x162)]);const _0xddb651=_0x42c0b7[_0x3aafae(0xee)](this[_0x3aafae(0xc0)],this['C']['src'],_0x380e3e,_0x26a07c,_0x434d8a+_0x3aafae(0x130));await this[_0x3aafae(0x15e)](_0x42c0b7[_0x3aafae(0xf3)](_0xddb651),{'recursive':!0x0}),await this[_0x3aafae(0xd1)](_0x5e2ea7,_0xddb651);}}}async[_0x156d79(0x20e)](){const _0x30e322=_0x156d79,_0x840d87=this['C'][_0x30e322(0x154)],_0x295a66=this['C'][_0x30e322(0x1f6)],_0x394091=_0x42c0b7[_0x30e322(0xee)](this[_0x30e322(0x19e)],this['C'][_0x30e322(0x186)],this['config'][_0x30e322(0x1f5)],_0x840d87),_0x1a15e6=await this[_0x30e322(0x11d)](_0x394091,null);for(const _0xe80a56 of _0x1a15e6){const _0x282269=_0x42c0b7[_0x30e322(0xee)](_0x394091,_0xe80a56,_0xe80a56+_0x30e322(0x12d));if(!this[_0x30e322(0x206)](_0x282269))continue;const _0x589800=await this[_0x30e322(0x205)](_0x282269,{'encoding':'utf8'}),_0x9b8f2f=await this[_0x30e322(0x148)](_0x589800),_0x2514a0=_0x42c0b7[_0x30e322(0xee)](_0x394091,_0xe80a56),_0xe00c56=_0x9b8f2f[_0x30e322(0xd0)]+'/'+_0x9b8f2f['databaseName']+'/'+_0x9b8f2f[_0x30e322(0xf6)];for(const _0x34f418 of _0x9b8f2f[_0x30e322(0xdb)]){const _0x28c728=_0x42c0b7[_0x30e322(0xee)](_0x2514a0,this['C'][_0x30e322(0xdb)],_0x34f418[_0x30e322(0x162)]+_0x30e322(0x130)),_0xce7a2d=_0x42c0b7[_0x30e322(0xee)](this[_0x30e322(0xc0)],this['C'][_0x30e322(0x186)],_0x295a66,_0xe00c56,this['C'][_0x30e322(0xdb)],_0x34f418[_0x30e322(0x162)]+'.ts');await this['fsMkDir'](_0x42c0b7['dirname'](_0xce7a2d),{'recursive':!0x0}),await this[_0x30e322(0xd1)](_0x28c728,_0xce7a2d);}for(const _0x1af995 of _0x9b8f2f[_0x30e322(0x217)]){const _0x4c0292=_0x42c0b7['join'](_0x2514a0,this['C']['postHooks'],_0x1af995[_0x30e322(0x162)]+_0x30e322(0x130)),_0x53d9c6=_0x42c0b7[_0x30e322(0xee)](this['projectDirectory'],this['C'][_0x30e322(0x186)],_0x295a66,_0xe00c56,this['C'][_0x30e322(0x217)],_0x1af995[_0x30e322(0x162)]+_0x30e322(0x130));await this['fsMkDir'](_0x42c0b7[_0x30e322(0xf3)](_0x53d9c6),{'recursive':!0x0}),await this[_0x30e322(0xd1)](_0x4c0292,_0x53d9c6);}}}async[_0x156d79(0xfe)](){const _0x138bae=_0x156d79,_0x1148df=this['C']['DatabaseHooksReadF'],_0x3b3933=this['C'][_0x138bae(0x1aa)],_0x4d70f2=_0x42c0b7[_0x138bae(0xee)](this['appRoot'],this['C']['src'],this[_0x138bae(0xc5)]['adminUserPath'],_0x1148df),_0x33e7a7=await this[_0x138bae(0x11d)](_0x4d70f2,null);for(const _0x2767a6 of _0x33e7a7){const _0x52ac98=_0x42c0b7[_0x138bae(0xee)](_0x4d70f2,_0x2767a6,_0x2767a6+_0x138bae(0x12d));if(!this[_0x138bae(0x206)](_0x52ac98))continue;const _0x578b49=await this['fsReadFile'](_0x52ac98,{'encoding':_0x138bae(0x180)}),_0x38d757=await this[_0x138bae(0x148)](_0x578b49),_0x3a612d=_0x42c0b7['join'](_0x4d70f2,_0x2767a6),_0x49bf23=_0x38d757[_0x138bae(0xd0)]+'/'+_0x38d757[_0x138bae(0xe0)];for(const _0x1e4465 of _0x38d757[_0x138bae(0xdb)]){const _0x19f311=_0x42c0b7[_0x138bae(0xee)](_0x3a612d,this['C'][_0x138bae(0xdb)],_0x1e4465[_0x138bae(0x162)]+'.ts'),_0x36b632=_0x42c0b7[_0x138bae(0xee)](this[_0x138bae(0xc0)],this['C'][_0x138bae(0x186)],_0x3b3933,_0x49bf23,this['C']['preHooks'],_0x1e4465[_0x138bae(0x162)]+_0x138bae(0x130));await this[_0x138bae(0x15e)](_0x42c0b7['dirname'](_0x36b632),{'recursive':!0x0}),await this[_0x138bae(0xd1)](_0x19f311,_0x36b632);}for(const _0x40b44b of _0x38d757[_0x138bae(0x217)]){const _0x33951b=_0x42c0b7['join'](_0x3a612d,this['C'][_0x138bae(0x217)],_0x40b44b[_0x138bae(0x162)]+_0x138bae(0x130)),_0xfd5732=_0x42c0b7[_0x138bae(0xee)](this[_0x138bae(0xc0)],this['C'][_0x138bae(0x186)],_0x3b3933,_0x49bf23,this['C'][_0x138bae(0x217)],_0x40b44b[_0x138bae(0x162)]+_0x138bae(0x130));await this[_0x138bae(0x15e)](_0x42c0b7[_0x138bae(0xf3)](_0xfd5732),{'recursive':!0x0}),await this['fsLink'](_0x33951b,_0xfd5732);}}}async[_0x156d79(0x115)](){const _0x54a7b9=_0x156d79,_0x8e088e=this['C'][_0x54a7b9(0x1c1)],_0x232b21=this['C'][_0x54a7b9(0x177)],_0x399380=_0x42c0b7[_0x54a7b9(0xee)](this[_0x54a7b9(0x19e)],this['C'][_0x54a7b9(0x186)],this[_0x54a7b9(0xc5)]['adminUserPath'],_0x8e088e),_0x14d019=await this['readDirCustom'](_0x399380,null);for(const _0xc25297 of _0x14d019){const _0x378fba=_0x42c0b7[_0x54a7b9(0xee)](_0x399380,_0xc25297,_0xc25297+_0x54a7b9(0x12d));if(!this[_0x54a7b9(0x206)](_0x378fba))continue;const _0x2d506d=await this[_0x54a7b9(0x205)](_0x378fba,{'encoding':_0x54a7b9(0x180)}),_0x428039=await this[_0x54a7b9(0x148)](_0x2d506d),_0x135946=_0x42c0b7[_0x54a7b9(0xee)](_0x399380,_0xc25297),_0x56ac3a=''+_0x428039[_0x54a7b9(0xd0)];for(const _0x38f692 of _0x428039['preHooks']){const _0x543a0c=_0x42c0b7['join'](_0x135946,this['C'][_0x54a7b9(0xdb)],_0x38f692[_0x54a7b9(0x162)]+_0x54a7b9(0x130)),_0x173a81=_0x42c0b7['join'](this[_0x54a7b9(0xc0)],this['C'][_0x54a7b9(0x186)],_0x232b21,_0x56ac3a,this['C'][_0x54a7b9(0xdb)],_0x38f692['name']+_0x54a7b9(0x130));await this['fsMkDir'](_0x42c0b7['dirname'](_0x173a81),{'recursive':!0x0}),await this[_0x54a7b9(0xd1)](_0x543a0c,_0x173a81);}for(const _0x445a4a of _0x428039[_0x54a7b9(0x217)]){const _0x2670e2=_0x42c0b7[_0x54a7b9(0xee)](_0x135946,this['C']['postHooks'],_0x445a4a[_0x54a7b9(0x162)]+'.ts'),_0x21182a=_0x42c0b7[_0x54a7b9(0xee)](this[_0x54a7b9(0xc0)],this['C']['src'],_0x232b21,_0x56ac3a,this['C'][_0x54a7b9(0x217)],_0x445a4a[_0x54a7b9(0x162)]+_0x54a7b9(0x130));await this[_0x54a7b9(0x15e)](_0x42c0b7['dirname'](_0x21182a),{'recursive':!0x0}),await this[_0x54a7b9(0xd1)](_0x2670e2,_0x21182a);}}}async[_0x156d79(0x104)](_0x29f41a,_0x24ce37){return new Promise((_0x20e0d4,_0x3106b7)=>{const _0x5c9129=a0_0x1cc2,_0x685f66=(0x0,_0x203313[_0x5c9129(0x12b)])(_0x29f41a,_0x24ce37,{'shell':!0x0,'cwd':this[_0x5c9129(0x19e)]});_0x685f66['on'](_0x5c9129(0x1d5),_0x4d91c3=>{const _0xca2d7c=_0x5c9129;if(0x0===_0x4d91c3)setTimeout(_0x20e0d4,0x1f4);else{const _0x361cc3='\x27'+_0x29f41a+'\x20'+_0x24ce37[_0xca2d7c(0xee)]('\x20')+_0xca2d7c(0x18f)+_0x4d91c3+'.';_0x3106b7(new Error(_0x361cc3));}}),_0x685f66['on']('error',_0x216181=>{const _0x123456=_0x5c9129;console['error'](_0x123456(0x21d)+_0x216181[_0x123456(0x1ac)]),_0x3106b7(_0x216181);});});}async[_0x156d79(0x148)](_0x3a318a){return _0x115e57(0x2f8)['load'](_0x3a318a);}[_0x156d79(0xca)](){const _0x350adb=_0x156d79,_0x552c4d=_0x115e57(0x274),_0xf1bc78=_0x42c0b7[_0x350adb(0xee)](this[_0x350adb(0x19e)]),_0x23970d=_0x42c0b7[_0x350adb(0xee)](this['appRoot'],this['C']['src']),_0x29edf4=_0x2462f9=>{const _0x523491=_0x350adb,_0x142dda=_0x42c0b7[_0x523491(0x10b)](_0xf1bc78,_0x2462f9);return!(_0x142dda&&!_0x142dda[_0x523491(0x194)]('.')&&!_0x142dda['endsWith']('~')&&_0x142dda[_0x523491(0x194)](this['C'][_0x523491(0x186)]));},_0x17e799=_0x552c4d[_0x350adb(0x181)](_0x23970d,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x2e391a=async(_0x36e625,_0xfe537b)=>{const _0x287b40=_0x350adb;try{if(this[_0x287b40(0xf1)])return;const _0x3e480b=_0x42c0b7[_0x287b40(0x10b)](_0xf1bc78,_0xfe537b);if(!_0xfe537b||_0x29edf4(_0xfe537b))return;console[_0x287b40(0x179)]('✓\x20Send\x20:\x20['+this[_0x287b40(0x1c6)]()+']\x20:\x20['+_0x36e625+']\x20:\x20'+_0x3e480b);const _0x3e96d4=this[_0x287b40(0x16b)](_0x3e480b),_0x79b01b=this[_0x287b40(0x17b)](_0x3e96d4,_0x3e480b);if(!_0x79b01b)return;let _0x98993b,_0x172eab=!0x1;if(this['fsExistsSync'](_0x79b01b)){if(this[_0x287b40(0x206)](_0x42c0b7[_0x287b40(0xee)](_0xf1bc78,_0x3e480b))){const _0xcd766f=_0x42c0b7[_0x287b40(0xee)](_0x42c0b7[_0x287b40(0x161)]+this['C'][_0x287b40(0x188)],_0x79b01b);_0x98993b=await this['serializeFolderWithBinary'](_0x79b01b,_0xcd766f),this['sendToServer']({'objType':_0x75061c[_0x287b40(0x1e5)],'localClientWSReqRes':{'eventType':_0xaca74a[_0x287b40(0x20a)],'folderChangedOnLocalSystem':_0x98993b,'category':_0x3e96d4,'shouldReplaceAllItemsOfCategory':_0x172eab}});}else this[_0x287b40(0x137)]();}else{const _0x2592bb=this[_0x287b40(0xd2)](_0x3e96d4,_0x3e480b),_0x510d70=_0x42c0b7[_0x287b40(0xee)](_0x42c0b7[_0x287b40(0x161)]+this['C'][_0x287b40(0x188)],_0x2592bb);_0x98993b=await this[_0x287b40(0x18b)](_0x2592bb,_0x510d70),_0x172eab=!0x0,this['sendDeletedEventToServerDebounce'](_0x98993b,_0x3e96d4,_0x172eab);}}catch(_0x334b51){console['error'](_0x287b40(0x14d),_0x334b51);}};_0x17e799['on'](_0x350adb(0xf8),_0x1222b=>_0x2e391a(_0x350adb(0xf8),_0x1222b))['on'](_0x350adb(0x19c),_0xab6fa1=>_0x2e391a('change',_0xab6fa1))['on'](_0x350adb(0x207),_0x59115a=>_0x2e391a(_0x350adb(0x207),_0x59115a))['on']('addDir',_0x1d612b=>_0x2e391a(_0x350adb(0x1ff),_0x1d612b))['on'](_0x350adb(0x15d),_0x58b218=>_0x2e391a('unlinkDir',_0x58b218))['on'](_0x350adb(0x107),_0x54b775=>console['error'](_0x350adb(0x1c3),_0x54b775)),this[_0x350adb(0x1cd)]=_0x17e799,console[_0x350adb(0x179)](_0x350adb(0x1a0));}[_0x156d79(0x1c6)](){const _0x2daa11=_0x156d79,_0x11034f=new Date();return String(_0x11034f[_0x2daa11(0x1b0)]())[_0x2daa11(0xe9)](0x2,'0')+':'+String(_0x11034f[_0x2daa11(0x176)]())[_0x2daa11(0xe9)](0x2,'0')+':'+String(_0x11034f[_0x2daa11(0x192)]())[_0x2daa11(0xe9)](0x2,'0');}[_0x156d79(0xeb)](_0x3b157e,_0x32721c,_0x3a3e4e){const _0x447099=_0x156d79;this[_0x447099(0x1bc)]({'objType':_0x75061c['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0xaca74a[_0x447099(0x20a)],'folderChangedOnLocalSystem':_0x3b157e,'category':_0x32721c,'shouldReplaceAllItemsOfCategory':_0x3a3e4e}});}[_0x156d79(0x1c4)](_0x5f3536,_0x53bfae){let _0x17764c=null;return function(..._0x44b114){clearTimeout(_0x17764c),_0x17764c=setTimeout(()=>{const _0x4f8868=a0_0x1cc2;_0x5f3536[_0x4f8868(0x17a)](this,_0x44b114);},_0x53bfae);};}[_0x156d79(0x16b)](_0x3ca15f){const _0x43b8c6=_0x156d79,_0x1ac95a=_0x42c0b7[_0x43b8c6(0xee)](this['C'][_0x43b8c6(0x186)],this[_0x43b8c6(0xc5)][_0x43b8c6(0x1f5)]);if(!_0x3ca15f[_0x43b8c6(0x194)](_0x1ac95a))return;const _0x373d29=_0x3ca15f[_0x43b8c6(0x20d)](_0x42c0b7[_0x43b8c6(0x161)])[_0x43b8c6(0x184)](_0x138ad6=>!!_0x138ad6)[0x2];for(const _0x567994 in _0x3eb3ad)if(_0x3eb3ad[_0x567994]===_0x373d29)return _0x373d29;}[_0x156d79(0x17b)](_0x4c5b6f,_0x52f88a){const _0x5c492a=_0x156d79,_0x3b03d1=_0x52f88a['split'](_0x42c0b7[_0x5c492a(0x161)]);let _0x474211='';return _0x474211=_0x4c5b6f===_0x3eb3ad['THIRD_PARTY_APIS']?_0x3b03d1['slice'](0x0,0x6)[_0x5c492a(0xee)](_0x42c0b7['sep']):_0x3b03d1[_0x5c492a(0x21b)](0x0,0x4)[_0x5c492a(0xee)](_0x42c0b7['sep']),_0x474211;}[_0x156d79(0xd2)](_0x3fdb7e,_0x23a8f6){const _0x493a93=_0x156d79;return _0x23a8f6[_0x493a93(0x20d)](_0x42c0b7[_0x493a93(0x161)])[_0x493a93(0x21b)](0x0,0x3)['join'](_0x42c0b7['sep']);}async['serializeFolderWithBinary'](_0x47fc24,_0x35722b){const _0xe27d0={},_0x46d7f4=this;return await async function _0xe6d7b4(_0x6779b1){const _0x50033c=a0_0x1cc2,_0xf7aa15=await _0x46d7f4[_0x50033c(0x11d)](_0x6779b1,{'withFileTypes':!0x0});for(const _0x547b0b of _0xf7aa15){const _0x7fc8da=_0x42c0b7[_0x50033c(0xee)](_0x6779b1,_0x547b0b[_0x50033c(0x162)]),_0x5c4e61=_0x42c0b7[_0x50033c(0xde)](_0x7fc8da);if(_0x547b0b[_0x50033c(0x1c0)]())await _0xe6d7b4(_0x5c4e61);else{const _0x307245=_0x1aeabb[_0x50033c(0x109)](_0x5c4e61),_0x3eca83=_0x42c0b7[_0x50033c(0x10b)](_0x47fc24,_0x5c4e61),_0x375b45=_0x42c0b7[_0x50033c(0xee)](_0x35722b,_0x3eca83)[_0x50033c(0x20d)](_0x42c0b7[_0x50033c(0x161)])['join'](_0x42c0b7[_0x50033c(0xf2)][_0x50033c(0x161)]);_0xe27d0[_0x375b45]={'encoding':_0x50033c(0xd9),'content':_0x307245[_0x50033c(0xbf)]('base64')};}}}(_0x47fc24),_0xe27d0;}['sendToServer'](_0x476ea8){const _0x39bd20=_0x156d79;try{this['ws'][_0x39bd20(0x1f1)](JSON[_0x39bd20(0x1fa)](_0x476ea8));}catch(_0x21c23d){console['log'](_0x21c23d);}}async['connectToServerViaWS'](){const _0x421181=_0x156d79;console[_0x421181(0x179)](_0x421181(0x117));const _0x57efad=this[_0x421181(0xc5)]['syncToken'],_0x21787a=this['config'][_0x421181(0x1f5)],_0x51e8a8=this[_0x421181(0xc5)][_0x421181(0x1f3)];this['ws']=new WebSocket(_0x51e8a8+_0x421181(0x19f)+_0x57efad+_0x421181(0x1a3)+_0x21787a);const _0x4d294c=[],_0x2f02ae=()=>{const _0x5b5c77=_0x421181;this['sendToServer']({'objType':_0x75061c[_0x5b5c77(0xc1)],'onEvents':[{'eventType':_0x5b5c77(0x1ce)}]});};function _0xf43cd2(_0xd22a00){const _0x32f1c9=_0x421181;_0xd22a00[_0x32f1c9(0xd6)]=null,_0xd22a00['onmessage']=null,_0xd22a00[_0x32f1c9(0x145)]=null,_0xd22a00[_0x32f1c9(0xcd)]=null,_0xd22a00['close']();}this['ws']['onmessage']=async _0x508d5b=>{const _0x5d2536=_0x421181,_0x2c8d57=JSON[_0x5d2536(0x15a)](_0x508d5b['data']);if(_0x2c8d57[_0x5d2536(0x1a1)]===_0x75061c['CONNECTED']&&_0x2c8d57[_0x5d2536(0x119)][_0x5d2536(0x12f)])_0x2f02ae();else{if(_0x2c8d57[_0x5d2536(0x1a1)]===_0x75061c[_0x5d2536(0xc1)]){if(_0x2c8d57?.['response']?.[_0x5d2536(0x106)]?.[_0x5d2536(0xec)]){for(const _0x288af6 of _0x2c8d57['response']['validOnEvents'])_0x4d294c[_0x5d2536(0x13f)](_0x288af6);console['log'](_0x5d2536(0x150)),!0x1===this[_0x5d2536(0x210)]&&(this['isWSConnectedFirstTime']=!0x0,console[_0x5d2536(0x179)](this[_0x5d2536(0x120)]+_0x5d2536(0x191)+this[_0x5d2536(0xc0)]+this[_0x5d2536(0xff)])),this['syncAllDataWithServer']();}else{const _0x16641b=_0x2c8d57[_0x5d2536(0x119)]?.['invalidOnEvents']?.[0x0]?.[_0x5d2536(0x1c9)]?.[0x0]?.['message']||_0x5d2536(0x144);console[_0x5d2536(0x179)]('❌\x20'+_0x16641b),await this['shutdownAndExit'](0x1);}}else await this['processReceivedEvent'](_0x2c8d57);}},this['ws'][_0x421181(0xcd)]=_0x3619a6=>{const _0x1f8609=_0x421181;console[_0x1f8609(0x179)](_0x1f8609(0xe6)),_0xf43cd2(this['ws']),setTimeout(this[_0x1f8609(0x1f7)][_0x1f8609(0x1a4)](this),0xbb8);},this['ws']['onerror']=()=>{const _0x1a12e6=_0x421181;_0xf43cd2(this['ws']),setTimeout(this[_0x1a12e6(0x1f7)][_0x1a12e6(0x1a4)](this),0xbb8);};}[_0x156d79(0x137)](){const _0x2668b6=_0x156d79;this['sendToServer']({'objType':_0x75061c[_0x2668b6(0x1e5)],'localClientWSReqRes':{'eventType':_0xaca74a[_0x2668b6(0xc9)]}});}async['processReceivedEvent'](_0x4a9f67){const _0x385846=_0x156d79;if(this['EL']&&_0x4a9f67[_0x385846(0x119)]['eventType']!==_0xaca74a[_0x385846(0xc9)]&&console[_0x385846(0x179)](_0x4a9f67),_0x4a9f67[_0x385846(0x1a1)]===_0x75061c[_0x385846(0x1e5)]){if(_0x4a9f67[_0x385846(0x1c9)]?.['length'])return void console[_0x385846(0x107)](_0x4a9f67[_0x385846(0x1c9)]);if(_0x4a9f67[_0x385846(0x119)][_0x385846(0x131)]===_0xaca74a[_0x385846(0xc9)]){_0x1aeabb[_0x385846(0x116)](_0x42c0b7['join'](this[_0x385846(0x19e)],this['C'][_0x385846(0x186)]),{'recursive':!0x0,'force':!0x0}),this[_0x385846(0xe7)](_0x42c0b7[_0x385846(0xee)](this[_0x385846(0x19e)],this['C'][_0x385846(0x186)]),{'recursive':!0x0});const _0x28c244=_0x4a9f67[_0x385846(0x119)]['eventData'];await this[_0x385846(0x20b)](_0x28c244,this[_0x385846(0x19e)]),this[_0x385846(0x1cd)]||setTimeout(this[_0x385846(0xca)][_0x385846(0x1a4)](this),0x1388);}else{if(_0x4a9f67['response'][_0x385846(0x131)]===_0xaca74a[_0x385846(0x199)]){const _0x2cb74f=_0x4a9f67[_0x385846(0x119)][_0x385846(0x20f)];await this[_0x385846(0x20b)](_0x2cb74f[_0x385846(0x198)],this[_0x385846(0x19e)]);}}!0x0===this[_0x385846(0x1a8)]?await this[_0x385846(0x1cc)](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x385846(0x1a8)]=!0x0);}}async[_0x156d79(0x20b)](_0x4f820e,_0x2f4703){const _0x20e8e3=_0x156d79;this[_0x20e8e3(0xf1)]=!0x0;let _0x2df2ff=[];const _0x252720=async()=>{const _0x1a78c4=_0x20e8e3;_0x2df2ff[_0x1a78c4(0xec)]>0x0&&(await Promise['all'](_0x2df2ff),_0x2df2ff=[]);};for(const [_0x1fd068,_0x2bf2c2]of Object[_0x20e8e3(0x124)](_0x4f820e)){if(!_0x1fd068['startsWith']('/'+this['C'][_0x20e8e3(0x188)]+'/'+this['C'][_0x20e8e3(0x186)]))continue;const _0x49fd27=_0x2bf2c2,_0x2addaa=_0x1fd068[_0x20e8e3(0x143)]('/'+this['C'][_0x20e8e3(0x188)],'');if(this['skipFileWritingForLocal'][_0x2addaa])continue;const _0x5c3593=_0x42c0b7[_0x20e8e3(0xee)](_0x2f4703,_0x2addaa['replace'](/^\//,'')),_0x5726c9=_0x42c0b7[_0x20e8e3(0xf3)](_0x5c3593),_0x3f64df=async()=>{const _0x2c181b=_0x20e8e3;await this[_0x2c181b(0x15e)](_0x5726c9,{'recursive':!0x0}),await this[_0x2c181b(0x10f)](_0x5c3593,_0x49fd27[_0x2c181b(0x1b6)],{'encoding':_0x2c181b(0xd9)}),this['EL']&&console[_0x2c181b(0x179)]('✓\x20Receive\x20:\x20['+this[_0x2c181b(0x1c6)]()+']\x20:\x20'+_0x5c3593['replace'](_0x2f4703,''));};_0x2df2ff[_0x20e8e3(0x13f)](_0x3f64df()),_0x2df2ff[_0x20e8e3(0xec)]>=0x3e8&&await _0x252720();}await _0x252720(),setTimeout(()=>{const _0x4fbacd=_0x20e8e3;this[_0x4fbacd(0xf1)]=!0x1;},0x3e8);}[_0x156d79(0x203)](_0x15b4c4){const _0x4eebd7=_0x156d79,_0x5cd51c=this[_0x4eebd7(0xc6)](_0x15b4c4);if(!this[_0x4eebd7(0x206)](_0x5cd51c))return!0x1;const _0x8c953d=_0x1aeabb[_0x4eebd7(0x101)](_0x5cd51c);let _0x232334=!0x0;for(const _0x4cb26e of _0x8c953d){const _0x39e848=_0x42c0b7[_0x4eebd7(0xee)](_0x5cd51c,_0x4cb26e);_0x1aeabb['statSync'](_0x39e848)[_0x4eebd7(0x1c0)]()&&this[_0x4eebd7(0x203)](_0x39e848)||(_0x232334=!0x1);}return!!_0x232334&&(_0x1aeabb[_0x4eebd7(0x21a)](_0x5cd51c),!0x0);}async[_0x156d79(0x11d)](_0x2e7590,_0x26da9c){const _0x19f8b0=_0x156d79;return this['fsExistsSync'](_0x2e7590)?await this[_0x19f8b0(0x11f)](_0x2e7590,_0x26da9c):[];}[_0x156d79(0xc6)](_0x4ab27a){return _0x42c0b7['normalize'](_0x4ab27a);}[_0x156d79(0x206)](_0xe7b729){const _0x594742=_0x156d79,_0x2562d8=_0x42c0b7['normalize'](_0xe7b729);return _0x1aeabb[_0x594742(0x18c)](_0x2562d8);}async[_0x156d79(0x11f)](_0x44f6ca,_0x38f453){const _0x10fe3c=_0x156d79,_0x32a019=_0x42c0b7['normalize'](_0x44f6ca);return await _0x1aeabb[_0x10fe3c(0x11c)][_0x10fe3c(0x17d)](_0x32a019,_0x38f453);}async['fsMkDir'](_0xf6c88e,_0x2a61db){const _0x4e07d2=_0x156d79,_0x50e9c1=_0x42c0b7[_0x4e07d2(0xde)](_0xf6c88e);return await _0x1aeabb['promises'][_0x4e07d2(0xf9)](_0x50e9c1,_0x2a61db);}['fsMkDirSync'](_0x24ac64,_0x3a0272){const _0x3ce328=_0x156d79,_0x21b56e=_0x42c0b7[_0x3ce328(0xde)](_0x24ac64);return _0x1aeabb['mkdirSync'](_0x21b56e,_0x3a0272);}async[_0x156d79(0x205)](_0x355374,_0x16d22f){const _0x58a018=_0x156d79,_0x48da66=_0x42c0b7['normalize'](_0x355374);return await _0x1aeabb[_0x58a018(0x11c)][_0x58a018(0x157)](_0x48da66,_0x16d22f);}async[_0x156d79(0x10f)](_0x1dd560,_0x5c1710,_0x474aa0){const _0x289330=_0x156d79,_0x4c5f93=_0x42c0b7[_0x289330(0xde)](_0x1dd560);return await _0x1aeabb[_0x289330(0x11c)][_0x289330(0x1cf)](_0x4c5f93,_0x5c1710,_0x474aa0);}async[_0x156d79(0xd1)](_0x42f5a1,_0x3e7e2c){const _0x358322=_0x156d79,_0x386322=_0x42c0b7[_0x358322(0xde)](_0x42f5a1),_0x903863=_0x42c0b7[_0x358322(0xde)](_0x3e7e2c);return await _0x1aeabb['promises']['link'](_0x386322,_0x903863);}async[_0x156d79(0x16c)](_0x5c94a7=0x0){const _0x5f691b=_0x156d79;if(!this['shuttingDown']){this[_0x5f691b(0x13c)]=!0x0;try{this['watcher']&&await this['watcher']['close']();}catch(_0xaed387){console[_0x5f691b(0x107)]('Error\x20during\x20shutdown',_0xaed387);}finally{setTimeout(()=>process[_0x5f691b(0xd8)](_0x5c94a7),0xc8);}}}[_0x156d79(0x136)](){const _0x4bebb9=_0x156d79;process['on'](_0x4bebb9(0x190),()=>{const _0x27e780=_0x4bebb9;console[_0x27e780(0x179)](_0x27e780(0x1a5)),this[_0x27e780(0x16c)](0x0);}),process['on']('SIGTERM',()=>{const _0x5de3e8=_0x4bebb9;console[_0x5de3e8(0x179)]('SIGTERM\x20received\x20—\x20shutting\x20down'),this['shutdownAndExit'](0x0);}),process['on']('beforeExit',_0x565932=>{const _0x5094a5=_0x4bebb9;console[_0x5094a5(0x179)](_0x5094a5(0x213),_0x565932);}),process['on'](_0x4bebb9(0xd8),_0x4806d5=>{const _0x1bf3b5=_0x4bebb9;console[_0x1bf3b5(0x179)](_0x1bf3b5(0xd8),_0x4806d5);}),process['on'](_0x4bebb9(0xc4),_0x540608=>{const _0x3ebac3=_0x4bebb9;console[_0x3ebac3(0x107)](_0x3ebac3(0xc4),_0x540608),this[_0x3ebac3(0x16c)](0x1);}),process['on'](_0x4bebb9(0xd7),_0xcde853=>{const _0x5dbc47=_0x4bebb9;console[_0x5dbc47(0x107)](_0x5dbc47(0xd7),_0xcde853),this[_0x5dbc47(0x16c)](0x1);});}}()['start']()[_0x156d79(0x1ad)](),function(_0xbe1590){const _0x5110ae=_0x156d79;_0xbe1590[_0x5110ae(0x103)]=_0x5110ae(0x103),_0xbe1590[_0x5110ae(0x12c)]=_0x5110ae(0x12c),_0xbe1590[_0x5110ae(0x1e6)]=_0x5110ae(0x1e6),_0xbe1590[_0x5110ae(0x127)]=_0x5110ae(0x127),_0xbe1590[_0x5110ae(0x139)]=_0x5110ae(0x139);}(_0x3ddb0b=_0x543e5f['QX']||(_0x543e5f['QX']={})),function(_0x41d893){const _0x2b649c=_0x156d79;_0x41d893[_0x2b649c(0xc1)]=_0x2b649c(0xc1),_0x41d893[_0x2b649c(0x1ca)]=_0x2b649c(0x1ca),_0x41d893[_0x2b649c(0x1e9)]=_0x2b649c(0x1e9),_0x41d893['UNKNOWN']=_0x2b649c(0x1d7),_0x41d893[_0x2b649c(0x1db)]=_0x2b649c(0x1db),_0x41d893[_0x2b649c(0x1c2)]=_0x2b649c(0x1c2),_0x41d893[_0x2b649c(0x1e5)]=_0x2b649c(0x1e5);}(_0x75061c||(_0x75061c={})),function(_0x59c682){const _0x16be6e=_0x156d79;_0x59c682[_0x16be6e(0xc9)]=_0x16be6e(0xc9),_0x59c682[_0x16be6e(0x199)]=_0x16be6e(0x199),_0x59c682['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0x16be6e(0x20a);}(_0xaca74a||(_0xaca74a={})),(_0xadae41=_0x543e5f['Yl']||(_0x543e5f['Yl']={}))[_0x156d79(0x182)]=_0x156d79(0x182),_0xadae41[_0x156d79(0x113)]=_0x156d79(0x113),_0xadae41[_0x156d79(0x1cb)]=_0x156d79(0x1cb),_0xadae41[_0x156d79(0x160)]=_0x156d79(0x160),_0xadae41[_0x156d79(0x214)]=_0x156d79(0x214),(_0x2610da=_0x543e5f['EN']||(_0x543e5f['EN']={}))[_0x156d79(0x202)]='am_events',_0x2610da[_0x156d79(0x1fb)]=_0x156d79(0x166),_0x2610da[_0x156d79(0x185)]=_0x156d79(0xfd),_0x2610da[_0x156d79(0xef)]=_0x156d79(0xd3),_0x2610da[_0x156d79(0xfc)]=_0x156d79(0xe2),_0x2610da[_0x156d79(0x14e)]=_0x156d79(0x14a),_0x2610da[_0x156d79(0xd4)]=_0x156d79(0x1a2),_0x2610da[_0x156d79(0x15b)]=_0x156d79(0x16f),_0x2610da[_0x156d79(0x1e4)]=_0x156d79(0x168),_0x2610da[_0x156d79(0x1eb)]=_0x156d79(0xc8),_0x2610da['Schemas']=_0x156d79(0x1d8),_0x2610da['I18Ns']='am_i18ns',_0x2610da[_0x156d79(0xdf)]=_0x156d79(0xfa),_0x2610da[_0x156d79(0x1fc)]='am_system_api_hooks',_0x2610da['am_tp_api_settings']=_0x156d79(0x16a),_0x2610da[_0x156d79(0x10e)]=_0x156d79(0x10e),_0x2610da[_0x156d79(0x129)]=_0x156d79(0x129),_0x2610da['UtilityClasses']=_0x156d79(0x1ee),_0x2610da[_0x156d79(0xf0)]=_0x156d79(0x167),_0x2610da['ProcessInitializers']='am_process_initializers',_0x2610da[_0x156d79(0x15f)]=_0x156d79(0x1bf),_0x2610da[_0x156d79(0x1b1)]=_0x156d79(0x1f8),_0x2610da[_0x156d79(0x200)]='am_test_cases',function(_0x591722){const _0x1f89ac=_0x156d79;_0x591722[_0x1f89ac(0x1e6)]=_0x1f89ac(0x14b),_0x591722[_0x1f89ac(0xf4)]=_0x1f89ac(0x133),_0x591722[_0x1f89ac(0x16d)]=_0x1f89ac(0x1a6),_0x591722[_0x1f89ac(0x13b)]='Events',_0x591722[_0x1f89ac(0x19d)]=_0x1f89ac(0x112),_0x591722[_0x1f89ac(0x1ed)]=_0x1f89ac(0x1fd),_0x591722[_0x1f89ac(0x1c8)]=_0x1f89ac(0x1e2),_0x591722[_0x1f89ac(0x170)]='Database\x20hooks',_0x591722[_0x1f89ac(0x1d0)]=_0x1f89ac(0x125),_0x591722[_0x1f89ac(0x1bd)]=_0x1f89ac(0xe4),_0x591722[_0x1f89ac(0x1ae)]=_0x1f89ac(0x1eb),_0x591722[_0x1f89ac(0x218)]='Schemas',_0x591722[_0x1f89ac(0x1f4)]=_0x1f89ac(0x13a),_0x591722['SYSTEM_API_SETTINGS']='System\x20API\x20settings',_0x591722[_0x1f89ac(0x193)]='Test\x20cases',_0x591722[_0x1f89ac(0x12c)]=_0x1f89ac(0x1b9),_0x591722['THIRD_PARTY_API_SETTINGS']='Third\x20party\x20API\x20settings',_0x591722[_0x1f89ac(0xbe)]=_0x1f89ac(0x197),_0x591722[_0x1f89ac(0x149)]='WebSocket\x20events',_0x591722[_0x1f89ac(0x151)]=_0x1f89ac(0xe5),_0x591722['UI_MAKER_UTILITY_CLASS']=_0x1f89ac(0xce),_0x591722[_0x1f89ac(0x183)]=_0x1f89ac(0x164);}(_0x3eb3ad=_0x543e5f['_6']||(_0x543e5f['_6']={}));},0x274:_0x40d448=>{const _0x3dfd31=a0_0x1cc2;_0x40d448[_0x3dfd31(0x1b4)]=require(_0x3dfd31(0x114));},0x2f8:_0xce0fbb=>{const _0x1507c8=a0_0x1cc2;_0xce0fbb[_0x1507c8(0x1b4)]=require(_0x1507c8(0x1e8));},0x2a0:_0x59be97=>{const _0x3b9443=a0_0x1cc2;_0x59be97['exports']=require(_0x3b9443(0x1b5));},0x170:_0x23cca1=>{const _0x4d5453=a0_0x1cc2;_0x23cca1[_0x4d5453(0x1b4)]=require('child_process');},0x3a:_0x59cbfe=>{const _0x1d28cf=a0_0x1cc2;_0x59cbfe[_0x1d28cf(0x1b4)]=require('fs');}},_0x299401={};!function _0x75b128(_0xf2363d){const _0x1cb43d=a0_0x1cc2;var _0x425840=_0x299401[_0xf2363d];if(void 0x0!==_0x425840)return _0x425840[_0x1cb43d(0x1b4)];var _0x5bbb7e=_0x299401[_0xf2363d]={'exports':{}};return _0x3e7032[_0xf2363d](_0x5bbb7e,_0x5bbb7e[_0x1cb43d(0x1b4)],_0x75b128),_0x5bbb7e['exports'];}(0x11f);})()));function a0_0x5b76(){const _0x25f75d=['basename','copySchedulersToAnotherDir','entries','Collection\x20hooks','copyDBMasterUtilsToAnotherDir','SYSTEM_APIS','DBMastersReadF','am_tp_api_versions','types','spawn','THIRD_PARTY_APIS','.yaml','database-hooks','connected','.ts','eventType','toLowerCase','Database\x20migrations','SchemaWriteF','isActive','addProcessHooks','syncAllDataWithServer','web-socket-events','WEB_SOCKET_EVENT','System\x20API\x20hooks','EVENTS','shuttingDown','sendDeletedEventToServerDebounce','.css','push','✅\x20dependencies\x20installed','TestCasesReadF','ui-maker-pages','replace','Error\x20while\x20connecting\x20to\x20WS\x20server.','onerror','SchedulersWriteF','createLCProjectDirectory','parseYaml','EVENTS_WS','am_instance_api_hooks','Custom\x20APIs','45270370szJEVJ','watch\x20handler\x20error','InstanceApiHooks','tests','✅\x20Connected\x20to\x20server\x20via\x20WS','DB_MASTERS','copyEventsToAnotherDir','21865TxnGiH','CollectionHooksReadF','ProcessI18NWriteF','tpInstalledApiBundleName','readFile','.config.ts','instances','parse','DatabaseHooks','copyDBMigrationsToAnotherDir','unlinkDir','fsMkDir','UIMakerUtils','DELETE','sep','name','folderPath','UI\x20maker\x20styles','Please\x20run\x20using\x20administrator\x20privileges.','am_web_socket_events','am_database_migrations','am_collection_hooks','schemas','am_tp_api_settings','getCategoryOfPath','shutdownAndExit','PROCESS_INITIALIZERS','versions','am_database_hooks','DATABASE_HOOKS','localClientPath','✅\x20node_modules\x20installed','.js','third-party-apis','installRequiredPackages','getMinutes','InstanceHooksWriteF','copyTestCasesToAnotherDir','log','apply','getChangedFolder','⏳\x20dependencies\x20installation\x20process\x20started','readdir','——————————————————————————————————————————————————————————————————————————————————','copyUtilityClassesToAnotherDir','utf8','watch','POST','UI_MAKER_STYLES','filter','DBMasters','src','printNotes','repo','paths','js-yaml@4.1.0','serializeFolderWithBinary','existsSync','listeners','WebSocketEventsWriteF','\x27\x20exited\x20with\x20code\x20','SIGINT','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','getSeconds','TEST_CASES','startsWith','1494JPNQqf','2444040tuxWKp','Utility\x20classes','data','LC_DATA_MODIFIED_IN_DATABASE','-lc','node_modules','change','I18NS','appRoot','?authTokenInfo=ws-local-client-sync&authorization=','✅\x20Local\x20client\x20started...','type','am_instance_hooks','&user-path=','bind','SIGINT\x20received\x20—\x20shutting\x20down','Process\x20initializers','ThirdPartyApiReadF','nodeModulesCopied','db-interfaces.d.ts','DatabaseHooksWriteF','EventsWriteF','message','then','SCHEDULERS','ProcessInitializersReadF','getHours','UIMakerStyles','printNotesToProvideLocalClient','resolve','exports','path','content','\x20Please\x20provide\x20settings\x20in\x20:\x20','SystemApiHooksWriteF','Third\x20party\x20APIs','custom-apis','728wMaigi','sendToServer','INSTANCE_API_SETTINGS','schedulers','am_ui_maker_utils','isDirectory','InstanceHooksReadF','NOTIFICATION','Watcher\x20error:','debounce','4lpjAkx','getCurrentTime','version','INSTANCE_HOOKS','errors','UNREGISTER','PUT_REPLACE','copyFilesToProjectDir','watcher','LOCAL_CLIENT_SYNC_EVENTS','writeFile','COLLECTION_HOOKS','CustomApiReadF','collection-hooks','CustomApisWriteF','--no-save','close','DBMigrationsReadF','UNKNOWN','am_schemas','WebSocketEventsReadF','npm','TOKEN_VALIDATION','cpSync','ThirdPartyApiWriteF','checkForNodeVersion','events','ui-maker-utils','Test\x20cases','Instance\x20hooks','system-api-hooks','CollectionHooks','LC_DATA_REQ_RES','CUSTOM_APIS','copyI18NToAnotherDir','js-yaml','CONNECTED','InstanceApiHooksWriteF','Schedulers','copySchemasToAnotherDir','INSTANCE_API_HOOKS','am_utility_classes','DBMasterStylesReadF','instance-api-hooks','send','amTypes','webSocketURL','SYSTEM_API_HOOKS','adminUserPath','CollectionHooksWriteF','connectToServerViaWS','am_ui_maker_styles','Schemas','stringify','WebSocketEvents','SystemApiHooks','Instance\x20API\x20hooks','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','addDir','AmTestCases','./local-client.config','AmEvents','removeEmptyDirsSync','post-hooks','fsReadFile','fsExistsSync','unlink','instanceApiName','1016258ejgCia','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','writeMemfsJsonToDisk','pre-hooks','split','copyCollectionHooksToAnotherDir','eventData','isWSConnectedFirstTime','tsconfig.json','db-migrations','beforeExit','DELETE_ALL','DBMigrationsWriteF','symlinkSync','postHooks','SCHEMAS','copySystemApiHooksToAnotherDir','rmdirSync','slice','dir','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','UTILITY_CLASSES','toString','projectDirectory','REGISTER','copyProcessInitializersToAnotherDir','process-initializers','uncaughtException','config','normalizePath','DBMasterUtilsReadF','am_schedulers','LC_SEND_ALL_DATA','startWatch','ws-events','TestCasesWriteF','onclose','DB\x20master\x20utils','ui-maker-styles','instanceName','fsLink','getChangedFolderForDeleted','am_custom_apis','InstanceHooks','ProcessI18NReadF','onopen','unhandledRejection','exit','base64','compilerOptions','preHooks','copyWebSocketEventsToAnotherDir','\x1b[38;2;255;165;0m','normalize','SystemApiSettings','databaseName','DBMastersWriteF','am_instance_api_settings','copyDBMastersToAnotherDir','Instance\x20API\x20settings','DB\x20masters','Connection\x20closed.','fsMkDirSync','copyCustomApisToAnotherDir','padStart','90265idwvCv','sendDeletedEventToServerInternal','length','SchedulersReadF','join','CustomApis','DatabasesMigrations','skipWatchInputs','posix','dirname','DB_MIGRATIONS','.gitignore','collectionName','customApiName','add','mkdir','am_system_api_settings','Database\x20hooks','InstanceApiSettings','am_db_masters','copyDatabaseHooksToAnotherDir','colorEnd','ProcessInitializersWriteF','readdirSync','unlinkSync','INSTANCES','executeNpmRun','instance-hooks','validOnEvents','error','1098616YnXCWG','readFileSync','apis','relative','dbInterfacesFile','orangeStart','am_tp_installed_apis','fsWriteFile','copyInstanceApiHooksToAnotherDir','926859ptKKst','i18ns','PUT','chokidar','copyInstanceHooksToAnotherDir','rmSync','⏳\x20Connecting\x20to\x20server...','Events','response','apiCategory','WebSocket\x20events','promises','readDirCustom','chokidar@4.0.3','fsReadDir','cyanStart','\x1b[0m'];a0_0x5b76=function(){return _0x25f75d;};return a0_0x5b76();}
|
|
1
|
+
(function(_0x37afec,_0x1f4712){const _0x13a9ed=a0_0x266d,_0x22bb01=_0x37afec();while(!![]){try{const _0x273948=parseInt(_0x13a9ed(0x93))/0x1*(parseInt(_0x13a9ed(0x157))/0x2)+-parseInt(_0x13a9ed(0xac))/0x3+parseInt(_0x13a9ed(0x1ad))/0x4*(-parseInt(_0x13a9ed(0xed))/0x5)+-parseInt(_0x13a9ed(0x1b2))/0x6+-parseInt(_0x13a9ed(0x18c))/0x7+parseInt(_0x13a9ed(0x152))/0x8*(parseInt(_0x13a9ed(0x1f1))/0x9)+parseInt(_0x13a9ed(0x17c))/0xa*(parseInt(_0x13a9ed(0x119))/0xb);if(_0x273948===_0x1f4712)break;else _0x22bb01['push'](_0x22bb01['shift']());}catch(_0x240304){_0x22bb01['push'](_0x22bb01['shift']());}}}(a0_0x3176,0x754e8),((()=>{'use strict';var _0x382cd2={0x11f:(_0x4fd311,_0x58c040,_0x103501)=>{const _0x29a339=a0_0x266d;_0x58c040['_6']=_0x58c040['EN']=_0x58c040['Yl']=_0x58c040['QX']=void 0x0;const _0x4505dc=_0x103501(0x3a),_0x2e6631=_0x103501(0x2a0),_0xa009d4=_0x103501(0x170);var _0x2c0c11,_0x2547c3,_0x49a23b,_0x3b5713,_0x6d8e4d,_0x3f824d;new class{constructor(){const _0x47002c=a0_0x266d;this['EL']=!0x1,this['appRoot']=_0x2e6631['resolve'](''),this[_0x47002c(0xaf)]='',this['C']={'localClientPath':_0x47002c(0x19f),'src':'src','repo':_0x47002c(0x150),'types':_0x47002c(0xa5),'amTypes':'am-types','versions':_0x47002c(0xfa),'apis':'apis','listeners':'listeners','postHooks':'post-hooks','preHooks':'pre-hooks','dbInterfacesFile':_0x47002c(0x1be),'UtilityClassesReadF':_0x47002c(0xd9),'CustomApiReadF':_0x47002c(0x192),'SchedulersReadF':_0x47002c(0xd0),'WebSocketEventsReadF':'WebSocket\x20events','SchemaReadF':'Schemas','DBMigrationsReadF':_0x47002c(0x1ab),'ProcessInitializersReadF':_0x47002c(0x10f),'ProcessI18NReadF':'i18ns','DBMastersReadF':_0x47002c(0x186),'DBMasterStylesReadF':'UI\x20maker\x20styles','DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':'Test\x20cases','ThirdPartyApiReadF':_0x47002c(0x165),'EventsReadF':_0x47002c(0x13f),'InstanceApiHooksReadF':_0x47002c(0x121),'SystemApiHooksReadF':'System\x20API\x20hooks','CollectionHooksReadF':_0x47002c(0x18f),'DatabaseHooksReadF':_0x47002c(0xbb),'InstanceHooksReadF':'Instance\x20hooks','CustomApisWriteF':_0x47002c(0x1b6),'SchedulersWriteF':_0x47002c(0x1d6),'WebSocketEventsWriteF':_0x47002c(0x159),'SchemaWriteF':_0x47002c(0x118),'DBMigrationsWriteF':_0x47002c(0x1a9),'ProcessInitializersWriteF':_0x47002c(0x1aa),'ProcessI18NWriteF':_0x47002c(0x95),'DBMastersWriteF':_0x47002c(0x17f),'DBMasterStylesWriteF':_0x47002c(0x1bb),'DBMasterUtilsWriteF':_0x47002c(0x1cf),'TestCasesWriteF':_0x47002c(0x14c),'ThirdPartyApiWriteF':'third-party-apis','EventsWriteF':_0x47002c(0x170),'InstanceApiHooksWriteF':_0x47002c(0x128),'SystemApiHooksWriteF':_0x47002c(0x133),'CollectionHooksWriteF':_0x47002c(0x12a),'DatabaseHooksWriteF':_0x47002c(0x140),'InstanceHooksWriteF':_0x47002c(0x131)},this[_0x47002c(0x1d5)]=!0x1,this[_0x47002c(0x148)]={},this[_0x47002c(0x12e)]=!0x1,this[_0x47002c(0x1c8)]='\x1b[38;2;255;165;0m',this[_0x47002c(0x14a)]=_0x47002c(0xa8),this[_0x47002c(0xce)]='\x1b[0m',this['isWSConnectedFirstTime']=!0x1,this[_0x47002c(0x190)]=this[_0x47002c(0x141)](this[_0x47002c(0xe3)],0x1f4);}async[_0x29a339(0x1d7)](){const _0x1e9c3d=_0x29a339;this[_0x1e9c3d(0x1cc)](),this[_0x1e9c3d(0xb3)](),this[_0x1e9c3d(0x1ef)](this['C']['localClientPath']+_0x1e9c3d(0x1e6))||(this[_0x1e9c3d(0x196)](),this[_0x1e9c3d(0x130)](0x1)[_0x1e9c3d(0x1c9)]()),this[_0x1e9c3d(0x187)]=require(this['C'][_0x1e9c3d(0x99)])(),await this[_0x1e9c3d(0x1dd)](),this[_0x1e9c3d(0xe7)](_0x2e6631[_0x1e9c3d(0x102)](this[_0x1e9c3d(0x114)],this['C']['src'])),await this[_0x1e9c3d(0x16c)](),await this[_0x1e9c3d(0x154)](),await this[_0x1e9c3d(0x16b)]();}[_0x29a339(0xb3)](){const _0x13c71e=_0x29a339,_0x5080b0=process[_0x13c71e(0x14f)];parseInt(_0x5080b0[_0x13c71e(0x1f2)]('.')[0x0][_0x13c71e(0xfb)]('v',''),0xa)<0x16&&(console[_0x13c71e(0x10e)](this['orangeStart']+_0x13c71e(0xc8)+_0x5080b0+this['colorEnd']),this['shutdownAndExit'](0x1)[_0x13c71e(0x1c9)]());}async['printNotes'](){const _0x33e981=_0x29a339;console[_0x33e981(0xea)](this[_0x33e981(0x1c8)]),console[_0x33e981(0xea)](_0x33e981(0xee)),console[_0x33e981(0xea)](_0x33e981(0x1e5)),console['log'](_0x33e981(0x18d)+this[_0x33e981(0x114)]),console[_0x33e981(0xea)](_0x33e981(0x1c3)),console[_0x33e981(0xea)](this[_0x33e981(0xce)]),console[_0x33e981(0xea)]('');}[_0x29a339(0x196)](){const _0x894c8a=_0x29a339;console[_0x894c8a(0xea)](_0x894c8a(0x138)),console[_0x894c8a(0xea)](_0x894c8a(0x19a)+this['C'][_0x894c8a(0x99)]+_0x894c8a(0x1e6)),console['log'](_0x894c8a(0xc3)),console['log']('');}async[_0x29a339(0x16c)](){const _0x58e39b=_0x29a339,_0x1b8bb5=_0x2e6631[_0x58e39b(0x1c7)](this[_0x58e39b(0x114)]),_0xbe12a8=_0x2e6631[_0x58e39b(0x102)](this[_0x58e39b(0x114)],'..',_0x1b8bb5+_0x58e39b(0x1fc));this[_0x58e39b(0xaf)]=_0xbe12a8,_0x4505dc[_0x58e39b(0xd1)](_0xbe12a8,{'recursive':!0x0,'force':!0x0}),await this['fsMkDir'](_0xbe12a8,{'recursive':!0x0});}async['copyFilesToProjectDir'](_0x2c513b){const _0x30436b=_0x29a339;await this[_0x30436b(0x16c)](),this[_0x30436b(0xd5)](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0xaf)],this['C'][_0x30436b(0xd2)]),{'recursive':!0x0}),_0x4505dc[_0x30436b(0x13c)](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0x114)],_0x30436b(0xf4)),_0x2e6631['join'](this[_0x30436b(0xaf)],_0x30436b(0xf4))),_0x4505dc[_0x30436b(0x13c)](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0x114)],_0x30436b(0xa3)),_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0xaf)],_0x30436b(0xa3)));const _0x43036a=_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0x114)],_0x30436b(0x12d)),_0x5d1ebe=JSON[_0x30436b(0x1b9)](await this['fsReadFile'](_0x43036a,{'encoding':'utf8'}));_0x5d1ebe[_0x30436b(0x11b)][_0x30436b(0x189)]=_0x30436b(0x9c),_0x5d1ebe[_0x30436b(0x11b)][_0x30436b(0x1c0)]['*'][_0x30436b(0xef)]('*'),await this[_0x30436b(0xc0)](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0xaf)],_0x30436b(0x12d)),JSON[_0x30436b(0x14e)](_0x5d1ebe,null,0x4),{'encoding':'utf8'}),await _0x4505dc[_0x30436b(0xeb)]['cp'](_0x2e6631['join'](this[_0x30436b(0x114)],this['C']['amTypes']),_0x2e6631['join'](this[_0x30436b(0xaf)],this['C'][_0x30436b(0xd2)],this['C'][_0x30436b(0x180)]),{'recursive':!0x0}),await _0x4505dc[_0x30436b(0xeb)]['cp'](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0x114)],this['C']['src'],this[_0x30436b(0x187)][_0x30436b(0x123)],this['C'][_0x30436b(0xa5)],this['C'][_0x30436b(0x12b)]),_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0xaf)],this['C'][_0x30436b(0xd2)],this['C'][_0x30436b(0x180)],this['C'][_0x30436b(0x12b)]),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x30436b(0x92)](),await this['copySchedulersToAnotherDir'](),await this[_0x30436b(0x1f7)](),await this['copyDBMigrationsToAnotherDir'](),await this[_0x30436b(0x1f9)](),await this[_0x30436b(0x1c2)](),await this[_0x30436b(0x120)](),await this[_0x30436b(0x110)](),await this[_0x30436b(0x134)](),await this['copyInstanceApiHooksToAnotherDir'](),await this['copySystemApiHooksToAnotherDir'](),await this[_0x30436b(0xd4)](),await this['copyCollectionHooksToAnotherDir'](),await this[_0x30436b(0x171)](),await this[_0x30436b(0x15b)](),await this[_0x30436b(0x1c4)](),await this[_0x30436b(0x13b)](),await this[_0x30436b(0xf0)](),_0x2c513b&&(console[_0x30436b(0xea)](_0x30436b(0x168)),await this[_0x30436b(0xd8)](_0x30436b(0x1b7),[_0x30436b(0x1a4),_0x30436b(0x17e)]),console[_0x30436b(0xea)](_0x30436b(0xa6)));try{_0x4505dc['symlinkSync'](_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0x114)],'node_modules'),_0x2e6631[_0x30436b(0x102)](this[_0x30436b(0xaf)],_0x30436b(0xda)),_0x30436b(0x147));}catch(_0xa78d13){console['log'](_0x30436b(0x1f0)),console[_0x30436b(0xea)](_0xa78d13),await this['shutdownAndExit'](0x1);}}async['installRequiredPackages'](){const _0x23cc13=_0x29a339;console[_0x23cc13(0xea)]('⏳\x20dependencies\x20installation\x20process\x20started');try{_0x4505dc[_0x23cc13(0x11c)](_0x2e6631['join'](this[_0x23cc13(0x114)],'package-lock.json'));}catch(_0x3c3bb2){}await this[_0x23cc13(0xd8)](_0x23cc13(0x1b7),[_0x23cc13(0x1a4),_0x23cc13(0x1d0),_0x23cc13(0x1ed),_0x23cc13(0x129)]),console[_0x23cc13(0xea)](_0x23cc13(0xa7));}async[_0x29a339(0xbc)](){const _0x43ae30=_0x29a339,_0x2c38d2=this['C'][_0x43ae30(0xb6)],_0x1330c0=_0x2e6631['join'](this[_0x43ae30(0x114)],this['C'][_0x43ae30(0xd2)],this[_0x43ae30(0x187)][_0x43ae30(0x123)],_0x2c38d2),_0x1b1990=await this[_0x43ae30(0x97)](_0x1330c0,null);for(const _0x39b9bb of _0x1b1990){const _0x36aa5e=_0x2e6631[_0x43ae30(0x102)](_0x1330c0,_0x39b9bb,_0x39b9bb+_0x43ae30(0x1ce));if(!this['fsExistsSync'](_0x36aa5e))continue;const _0x57198c=await this[_0x43ae30(0x16d)](_0x36aa5e,{'encoding':_0x43ae30(0x155)}),_0x5d3a3e=await this[_0x43ae30(0x144)](_0x57198c);for(const _0x426959 of _0x5d3a3e[_0x43ae30(0xfa)]||[])if(!0x0===_0x426959['isActive']){const _0x51dcfc=_0x2e6631['join'](_0x1330c0,_0x39b9bb,this['C'][_0x43ae30(0xfa)],_0x426959[_0x43ae30(0x14f)],_0x426959[_0x43ae30(0xbf)]+_0x43ae30(0x173)),_0x580d50=_0x2e6631[_0x43ae30(0x102)](this[_0x43ae30(0xaf)],this['C']['src'],_0x5d3a3e[_0x43ae30(0x183)],_0x5d3a3e[_0x43ae30(0xbf)]+'.ts');await this['fsMkDir'](_0x2e6631[_0x43ae30(0xcf)](_0x580d50),{'recursive':!0x0}),await this[_0x43ae30(0xf7)](_0x51dcfc,_0x580d50);}}}async[_0x29a339(0x92)](){const _0x46d716=_0x29a339,_0xa444a5=this['C'][_0x46d716(0x191)],_0x49a329=this['C'][_0x46d716(0x1c5)],_0x51b398=_0x2e6631[_0x46d716(0x102)](this['appRoot'],this['C'][_0x46d716(0xd2)],this[_0x46d716(0x187)]['adminUserPath'],_0xa444a5),_0x481b5f=await this[_0x46d716(0x97)](_0x51b398,null);for(const _0x1a98c8 of _0x481b5f){const _0x2a46e4=_0x2e6631[_0x46d716(0x102)](_0x51b398,_0x1a98c8,_0x1a98c8+_0x46d716(0x1ce));if(!this[_0x46d716(0x1ef)](_0x2a46e4))continue;const _0x229b9c=await this['fsReadFile'](_0x2a46e4,{'encoding':_0x46d716(0x155)}),_0x58f4d0=await this['parseYaml'](_0x229b9c);for(const _0x265f81 of _0x58f4d0[_0x46d716(0xfa)]||[])if(!0x0===_0x265f81[_0x46d716(0x179)]){const _0x489f65=_0x2e6631[_0x46d716(0x102)](_0x51b398,_0x1a98c8,this['C'][_0x46d716(0xfa)],_0x265f81[_0x46d716(0x14f)]),_0x2531e4=_0x2e6631[_0x46d716(0x102)](_0x489f65,_0x265f81['name']+_0x46d716(0x173)),_0x1eccee=_0x2e6631[_0x46d716(0x102)](this['projectDirectory'],this['C'][_0x46d716(0xd2)],_0x49a329,_0x58f4d0['path'],_0x58f4d0[_0x46d716(0xbf)]+_0x46d716(0x173));await this['fsMkDir'](_0x2e6631[_0x46d716(0xcf)](_0x1eccee),{'recursive':!0x0}),await this[_0x46d716(0xf7)](_0x2531e4,_0x1eccee);const _0x566095=_0x2e6631[_0x46d716(0x102)](_0x51b398,_0x1a98c8,_0x1a98c8+_0x46d716(0x15f)),_0x379058=_0x2e6631[_0x46d716(0x102)](this[_0x46d716(0xaf)],this['C'][_0x46d716(0xd2)],_0x49a329,_0x58f4d0[_0x46d716(0xff)],_0x58f4d0['name']+_0x46d716(0x15f));await this[_0x46d716(0xf7)](_0x566095,_0x379058);for(const _0x3ec17e of _0x265f81[_0x46d716(0x1b4)]){const _0x36a140=_0x2e6631[_0x46d716(0x102)](_0x489f65,this['C']['preHooks'],_0x3ec17e[_0x46d716(0xbf)]+'.ts'),_0x4aac23=_0x2e6631[_0x46d716(0x102)](this[_0x46d716(0xaf)],this['C']['src'],_0x49a329,_0x58f4d0[_0x46d716(0xff)],this['C']['preHooks'],_0x3ec17e[_0x46d716(0xbf)]+'.ts');await this[_0x46d716(0x1cd)](_0x2e6631[_0x46d716(0xcf)](_0x4aac23),{'recursive':!0x0}),await this['fsLink'](_0x36a140,_0x4aac23);}for(const _0x17fd85 of _0x265f81[_0x46d716(0xb8)]){const _0x4040a5=_0x2e6631[_0x46d716(0x102)](_0x489f65,this['C']['postHooks'],_0x17fd85['name']+_0x46d716(0x173)),_0x1fc2a9=_0x2e6631['join'](this['projectDirectory'],this['C']['src'],_0x49a329,_0x58f4d0['path'],this['C'][_0x46d716(0xb8)],_0x17fd85[_0x46d716(0xbf)]+_0x46d716(0x173));await this[_0x46d716(0x1cd)](_0x2e6631[_0x46d716(0xcf)](_0x1fc2a9),{'recursive':!0x0}),await this['fsLink'](_0x4040a5,_0x1fc2a9);}}}}async[_0x29a339(0x181)](){const _0x4aaf70=_0x29a339,_0x5ebaa0=this['C'][_0x4aaf70(0x199)],_0x23dffc=this['C'][_0x4aaf70(0x10b)],_0x1e0879=_0x2e6631[_0x4aaf70(0x102)](this['appRoot'],this['C'][_0x4aaf70(0xd2)],this[_0x4aaf70(0x187)][_0x4aaf70(0x123)],_0x5ebaa0),_0x46bd38=await this[_0x4aaf70(0x97)](_0x1e0879,null);for(const _0x56fd18 of _0x46bd38){const _0x462fd1=_0x2e6631[_0x4aaf70(0x102)](_0x1e0879,_0x56fd18,_0x56fd18+_0x4aaf70(0x1ce));if(!this['fsExistsSync'](_0x462fd1))continue;const _0x24eaba=await this[_0x4aaf70(0x16d)](_0x462fd1,{'encoding':_0x4aaf70(0x155)}),_0x416786=await this[_0x4aaf70(0x144)](_0x24eaba);for(const _0x466600 of _0x416786[_0x4aaf70(0xfa)]||[])if(!0x0===_0x466600[_0x4aaf70(0x179)]){const _0x63fae6=_0x2e6631[_0x4aaf70(0x102)](_0x1e0879,_0x56fd18,this['C'][_0x4aaf70(0xfa)],_0x466600[_0x4aaf70(0x14f)],_0x466600[_0x4aaf70(0xbf)]+_0x4aaf70(0x173)),_0x55d3f8=_0x2e6631[_0x4aaf70(0x102)](this[_0x4aaf70(0xaf)],this['C'][_0x4aaf70(0xd2)],_0x23dffc,_0x416786[_0x4aaf70(0xbf)]+_0x4aaf70(0x173));await this['fsMkDir'](_0x2e6631[_0x4aaf70(0xcf)](_0x55d3f8),{'recursive':!0x0}),await this[_0x4aaf70(0xf7)](_0x63fae6,_0x55d3f8);}}}async[_0x29a339(0x1f7)](){const _0x11c46d=_0x29a339,_0x9859=this['C'][_0x11c46d(0xaa)],_0x12afad=this['C'][_0x11c46d(0x1fb)],_0x5e4e6e=_0x2e6631[_0x11c46d(0x102)](this[_0x11c46d(0x114)],this['C'][_0x11c46d(0xd2)],this[_0x11c46d(0x187)]['adminUserPath'],_0x9859),_0x4d23a5=await this[_0x11c46d(0x97)](_0x5e4e6e,null);for(const _0x50a262 of _0x4d23a5){const _0x3243ca=_0x2e6631[_0x11c46d(0x102)](_0x5e4e6e,_0x50a262,_0x50a262+_0x11c46d(0x1ce));if(!this['fsExistsSync'](_0x3243ca))continue;const _0x252516=await this[_0x11c46d(0x16d)](_0x3243ca,{'encoding':_0x11c46d(0x155)}),_0x7b0d74=await this[_0x11c46d(0x144)](_0x252516),_0x7a4a0a=_0x2e6631[_0x11c46d(0x102)](this[_0x11c46d(0xaf)],this['C'][_0x11c46d(0xd2)],_0x12afad,_0x7b0d74[_0x11c46d(0x10d)],_0x7b0d74['databaseName']);await this[_0x11c46d(0x1cd)](_0x7a4a0a,{'recursive':!0x0});const _0x398126=_0x2e6631[_0x11c46d(0x102)](_0x5e4e6e,_0x50a262,_0x7b0d74[_0x11c46d(0xe9)]+_0x11c46d(0x15f)),_0x4d5394=_0x2e6631[_0x11c46d(0x102)](_0x7a4a0a,_0x7b0d74[_0x11c46d(0xe9)]+_0x11c46d(0x15f));await this[_0x11c46d(0xf7)](_0x398126,_0x4d5394);}}async[_0x29a339(0x9d)](){const _0x130fb4=_0x29a339,_0x211865=this['C'][_0x130fb4(0xb5)],_0x135ec7=this['C']['DBMigrationsWriteF'],_0x5bc768=_0x2e6631['join'](this[_0x130fb4(0x114)],this['C'][_0x130fb4(0xd2)],this[_0x130fb4(0x187)][_0x130fb4(0x123)],_0x211865),_0x5f5665=await this[_0x130fb4(0x97)](_0x5bc768,null);for(const _0x3f38ae of _0x5f5665){const _0x2d33fa=_0x2e6631[_0x130fb4(0x102)](_0x5bc768,_0x3f38ae,_0x3f38ae+_0x130fb4(0x1ce));if(!this[_0x130fb4(0x1ef)](_0x2d33fa))continue;const _0x5f208d=await this[_0x130fb4(0x16d)](_0x2d33fa,{'encoding':'utf8'}),_0x307c24=await this['parseYaml'](_0x5f208d),_0x2de880=_0x2e6631['join'](this[_0x130fb4(0xaf)],this['C'][_0x130fb4(0xd2)],_0x135ec7);await this['fsMkDir'](_0x2de880,{'recursive':!0x0});const _0x9ce5a6=_0x2e6631[_0x130fb4(0x102)](_0x5bc768,_0x3f38ae,_0x307c24['name']+_0x130fb4(0x173)),_0x43bf87=_0x2e6631[_0x130fb4(0x102)](_0x2de880,_0x307c24['name']+_0x130fb4(0x173));await this[_0x130fb4(0xf7)](_0x9ce5a6,_0x43bf87);}}async[_0x29a339(0x1f9)](){const _0xd17844=_0x29a339,_0x35cb01=this['C']['ProcessInitializersReadF'],_0x287840=this['C'][_0xd17844(0x188)],_0x6fe42b=_0x2e6631['join'](this[_0xd17844(0x114)],this['C'][_0xd17844(0xd2)],this[_0xd17844(0x187)]['adminUserPath'],_0x35cb01),_0x322c8d=await this[_0xd17844(0x97)](_0x6fe42b,null);for(const _0x465507 of _0x322c8d){const _0x336eba=_0x2e6631[_0xd17844(0x102)](_0x6fe42b,_0x465507,_0x465507+'.yaml');if(!this[_0xd17844(0x1ef)](_0x336eba))continue;const _0x3372db=await this[_0xd17844(0x16d)](_0x336eba,{'encoding':'utf8'}),_0x3573c2=await this[_0xd17844(0x144)](_0x3372db),_0x193de0=_0x2e6631['join'](this[_0xd17844(0xaf)],this['C'][_0xd17844(0xd2)],_0x287840);await this['fsMkDir'](_0x193de0,{'recursive':!0x0});const _0x1bf096=_0x2e6631['join'](_0x6fe42b,_0x465507,_0x3573c2[_0xd17844(0xbf)]+'.ts'),_0x30b491=_0x2e6631[_0xd17844(0x102)](_0x193de0,_0x3573c2['name']+_0xd17844(0x173));await this[_0xd17844(0xf7)](_0x1bf096,_0x30b491);}}async[_0x29a339(0x1c2)](){const _0x47f70a=_0x29a339,_0x54866e=this['C']['ProcessI18NReadF'],_0x2eda0b=this['C'][_0x47f70a(0x125)],_0x352eee=_0x2e6631['join'](this[_0x47f70a(0x114)],this['C'][_0x47f70a(0xd2)],this['config']['adminUserPath'],_0x54866e),_0x386fd4=await this[_0x47f70a(0x97)](_0x352eee,null);for(const _0x5d16f9 of _0x386fd4){const _0x103755=_0x2e6631[_0x47f70a(0x102)](_0x352eee,_0x5d16f9,_0x5d16f9+_0x47f70a(0x1ce));if(!this[_0x47f70a(0x1ef)](_0x103755))continue;const _0x46f18a=await this['fsReadFile'](_0x103755,{'encoding':'utf8'}),_0x2e54f4=await this['parseYaml'](_0x46f18a),_0x4432bd=_0x2e6631[_0x47f70a(0x102)](this[_0x47f70a(0xaf)],this['C'][_0x47f70a(0xd2)],_0x2eda0b);await this[_0x47f70a(0x1cd)](_0x4432bd,{'recursive':!0x0});const _0x1b0031=_0x2e6631[_0x47f70a(0x102)](_0x352eee,_0x5d16f9,_0x2e54f4[_0x47f70a(0xbf)]+_0x47f70a(0x173)),_0x3e97d2=_0x2e6631[_0x47f70a(0x102)](_0x4432bd,_0x2e54f4[_0x47f70a(0xbf)]+_0x47f70a(0x173));await this[_0x47f70a(0xf7)](_0x1b0031,_0x3e97d2);}}async[_0x29a339(0x1c4)](){const _0x555eb2=_0x29a339,_0x470784=this['C']['DBMastersReadF'],_0xd7919=this['C'][_0x555eb2(0xa4)],_0x38869b=_0x2e6631[_0x555eb2(0x102)](this['appRoot'],this['C'][_0x555eb2(0xd2)],this[_0x555eb2(0x187)][_0x555eb2(0x123)],_0x470784),_0x21af0a=await this['readDirCustom'](_0x38869b,null);for(const _0x4beea9 of _0x21af0a){const _0x23c194=_0x2e6631[_0x555eb2(0x102)](_0x38869b,_0x4beea9,_0x4beea9+_0x555eb2(0x1ce));if(!this['fsExistsSync'](_0x23c194))continue;const _0x2680cc=await this[_0x555eb2(0x16d)](_0x23c194,{'encoding':'utf8'}),_0x61a21d=await this[_0x555eb2(0x144)](_0x2680cc),_0x2d8af5=_0x2e6631[_0x555eb2(0x102)](this['projectDirectory'],this['C'][_0x555eb2(0xd2)],_0xd7919,_0x61a21d[_0x555eb2(0xbf)]);await this[_0x555eb2(0x1cd)](_0x2d8af5,{'recursive':!0x0});const _0x32f19f=_0x2e6631[_0x555eb2(0x102)](_0x38869b,_0x4beea9,_0x61a21d[_0x555eb2(0xbf)]+_0x555eb2(0x173)),_0x35b083=_0x2e6631['join'](_0x2d8af5,_0x61a21d[_0x555eb2(0xbf)]+_0x555eb2(0x173));await this[_0x555eb2(0xf7)](_0x32f19f,_0x35b083);const _0x5436b7=_0x2e6631[_0x555eb2(0x102)](_0x38869b,_0x4beea9,_0x61a21d['name']+_0x555eb2(0x15f)),_0x26f206=_0x2e6631[_0x555eb2(0x102)](_0x2d8af5,_0x61a21d['name']+'.config.ts');await this[_0x555eb2(0xf7)](_0x5436b7,_0x26f206);}}async['copyDBMasterStylesToAnotherDir'](){const _0x4b244c=_0x29a339,_0x1426d8=this['C'][_0x4b244c(0x1e7)],_0xbe6be8=this['C'][_0x4b244c(0x9a)],_0x3f3fb1=_0x2e6631['join'](this[_0x4b244c(0x114)],this['C']['src'],this[_0x4b244c(0x187)][_0x4b244c(0x123)],_0x1426d8),_0x5411b0=await this[_0x4b244c(0x97)](_0x3f3fb1,null);for(const _0x336ad9 of _0x5411b0){const _0x323553=_0x2e6631[_0x4b244c(0x102)](_0x3f3fb1,_0x336ad9,_0x336ad9+_0x4b244c(0x1ce));if(!this[_0x4b244c(0x1ef)](_0x323553))continue;const _0x5ca63e=await this[_0x4b244c(0x16d)](_0x323553,{'encoding':_0x4b244c(0x155)}),_0x1ea40d=await this[_0x4b244c(0x144)](_0x5ca63e),_0x41dd7e=_0x2e6631[_0x4b244c(0x102)](this[_0x4b244c(0xaf)],this['C'][_0x4b244c(0xd2)],_0xbe6be8);await this[_0x4b244c(0x1cd)](_0x41dd7e,{'recursive':!0x0});const _0x2e4a83=_0x2e6631['join'](_0x3f3fb1,_0x336ad9,_0x1ea40d['name']+'.css'),_0xc69bf5=_0x2e6631['join'](_0x41dd7e,_0x1ea40d[_0x4b244c(0xbf)]+'.css');await this['fsLink'](_0x2e4a83,_0xc69bf5);}}async[_0x29a339(0xf0)](){const _0x35b828=_0x29a339,_0x109ed7=this['C'][_0x35b828(0xbe)],_0x483d15=this['C'][_0x35b828(0x13a)],_0x58fa05=_0x2e6631['join'](this[_0x35b828(0x114)],this['C'][_0x35b828(0xd2)],this[_0x35b828(0x187)]['adminUserPath'],_0x109ed7),_0x31e243=await this['readDirCustom'](_0x58fa05,null);for(const _0x4f4099 of _0x31e243){const _0x1565ff=_0x2e6631['join'](_0x58fa05,_0x4f4099,_0x4f4099+_0x35b828(0x1ce));if(!this['fsExistsSync'](_0x1565ff))continue;const _0x3c8053=await this[_0x35b828(0x16d)](_0x1565ff,{'encoding':_0x35b828(0x155)}),_0x50fd2b=await this[_0x35b828(0x144)](_0x3c8053),_0x17bf54=_0x2e6631[_0x35b828(0x102)](this[_0x35b828(0xaf)],this['C'][_0x35b828(0xd2)],_0x483d15);await this[_0x35b828(0x1cd)](_0x17bf54,{'recursive':!0x0});const _0x23e57f=_0x2e6631['join'](_0x58fa05,_0x4f4099,_0x50fd2b['name']+_0x35b828(0x173)),_0x26a674=_0x2e6631['join'](_0x17bf54,_0x50fd2b[_0x35b828(0xbf)]+_0x35b828(0x173));await this[_0x35b828(0xf7)](_0x23e57f,_0x26a674);}}async[_0x29a339(0x120)](){const _0x5bffd6=_0x29a339,_0x5dc132=this['C']['TestCasesReadF'],_0x308bf7=this['C'][_0x5bffd6(0x136)],_0x171ad6=_0x2e6631[_0x5bffd6(0x102)](this[_0x5bffd6(0x114)],this['C'][_0x5bffd6(0xd2)],this[_0x5bffd6(0x187)][_0x5bffd6(0x123)],_0x5dc132),_0x408ec0=await this[_0x5bffd6(0x97)](_0x171ad6,null);for(const _0x182be6 of _0x408ec0){const _0x415961=_0x2e6631[_0x5bffd6(0x102)](_0x171ad6,_0x182be6,_0x182be6+_0x5bffd6(0x1ce));if(!this[_0x5bffd6(0x1ef)](_0x415961))continue;const _0x397033=await this[_0x5bffd6(0x16d)](_0x415961,{'encoding':_0x5bffd6(0x155)}),_0x1863bb=await this[_0x5bffd6(0x144)](_0x397033),_0x12ef01=_0x2e6631[_0x5bffd6(0x102)](this[_0x5bffd6(0xaf)],this['C'][_0x5bffd6(0xd2)],_0x308bf7);await this[_0x5bffd6(0x1cd)](_0x12ef01,{'recursive':!0x0});const _0x24ba7b=_0x2e6631[_0x5bffd6(0x102)](_0x171ad6,_0x182be6,_0x1863bb[_0x5bffd6(0xbf)]+_0x5bffd6(0x173)),_0x290ed1=_0x2e6631[_0x5bffd6(0x102)](_0x12ef01,_0x1863bb[_0x5bffd6(0xbf)]+_0x5bffd6(0x173));await this[_0x5bffd6(0xf7)](_0x24ba7b,_0x290ed1);}}async['copyThirdPartyApisToAnotherDir'](){const _0xf23be6=_0x29a339,_0x7e6b06=this['C'][_0xf23be6(0x16f)],_0x35f9a2=this['C'][_0xf23be6(0x1ee)],_0x23a89c=_0x2e6631['join'](this[_0xf23be6(0x114)],this['C'][_0xf23be6(0xd2)],this[_0xf23be6(0x187)][_0xf23be6(0x123)],_0x7e6b06);if(!this[_0xf23be6(0x1ef)](_0x23a89c))return;const _0x266eaf=await this['readDirCustom'](_0x23a89c,null);for(const _0x565946 of _0x266eaf){const _0x1e13ae=_0x2e6631['join'](_0x23a89c,_0x565946,this['C'][_0xf23be6(0x15e)]),_0x267141=await this[_0xf23be6(0x97)](_0x1e13ae,null);for(const _0x1643bb of _0x267141){const _0x3cbb68=_0x2e6631[_0xf23be6(0x102)](_0x1e13ae,_0x1643bb,_0x1643bb+'.yaml');if(!this[_0xf23be6(0x1ef)](_0x3cbb68))continue;const _0x3512d8=await this['fsReadFile'](_0x3cbb68,{'encoding':'utf8'}),_0x4fcdad=await this['parseYaml'](_0x3512d8);for(const _0x26830d of _0x4fcdad[_0xf23be6(0xfa)]||[])if(!0x0===_0x26830d[_0xf23be6(0x179)]){const _0x134630=_0x2e6631[_0xf23be6(0x102)](_0x1e13ae,_0x1643bb,this['C'][_0xf23be6(0xfa)],_0x26830d[_0xf23be6(0x14f)]),_0x4b09f9=_0x2e6631[_0xf23be6(0x102)](_0x134630,_0x26830d['name']+'.ts'),_0x2ef10b=_0x2e6631[_0xf23be6(0x102)](this[_0xf23be6(0xaf)],this['C'][_0xf23be6(0xd2)],_0x35f9a2,_0x565946,_0x4fcdad[_0xf23be6(0xff)],_0x4fcdad[_0xf23be6(0xbf)]+_0xf23be6(0x173));await this[_0xf23be6(0x1cd)](_0x2e6631['dirname'](_0x2ef10b),{'recursive':!0x0}),await this[_0xf23be6(0xf7)](_0x4b09f9,_0x2ef10b);const _0x35a226=_0x2e6631[_0xf23be6(0x102)](_0x1e13ae,_0x1643bb,_0x1643bb+'.config.ts'),_0x24dfdd=_0x2e6631[_0xf23be6(0x102)](this[_0xf23be6(0xaf)],this['C'][_0xf23be6(0xd2)],_0x35f9a2,_0x565946,_0x4fcdad[_0xf23be6(0xff)],_0x4fcdad[_0xf23be6(0xbf)]+_0xf23be6(0x15f));await this['fsLink'](_0x35a226,_0x24dfdd);for(const _0x4f00bd of _0x26830d[_0xf23be6(0x1b4)]){const _0x501105=_0x2e6631[_0xf23be6(0x102)](_0x134630,this['C'][_0xf23be6(0x1b4)],_0x4f00bd[_0xf23be6(0xbf)]+'.ts'),_0x3a0a20=_0x2e6631['join'](this[_0xf23be6(0xaf)],this['C'][_0xf23be6(0xd2)],_0x35f9a2,_0x565946,_0x4fcdad[_0xf23be6(0xff)],this['C']['preHooks'],_0x4f00bd[_0xf23be6(0xbf)]+_0xf23be6(0x173));await this[_0xf23be6(0x1cd)](_0x2e6631[_0xf23be6(0xcf)](_0x3a0a20),{'recursive':!0x0}),await this['fsLink'](_0x501105,_0x3a0a20);}for(const _0x2fddf8 of _0x26830d[_0xf23be6(0xb8)]){const _0x575259=_0x2e6631[_0xf23be6(0x102)](_0x134630,this['C'][_0xf23be6(0xb8)],_0x2fddf8['name']+_0xf23be6(0x173)),_0x543082=_0x2e6631[_0xf23be6(0x102)](this['projectDirectory'],this['C'][_0xf23be6(0xd2)],_0x35f9a2,_0x565946,_0x4fcdad[_0xf23be6(0xff)],this['C'][_0xf23be6(0xb8)],_0x2fddf8[_0xf23be6(0xbf)]+_0xf23be6(0x173));await this[_0xf23be6(0x1cd)](_0x2e6631[_0xf23be6(0xcf)](_0x543082),{'recursive':!0x0}),await this['fsLink'](_0x575259,_0x543082);}}}}}async[_0x29a339(0x134)](){const _0x2eab87=_0x29a339,_0x4b93e9=this['C'][_0x2eab87(0x15c)],_0x3affc2=this['C'][_0x2eab87(0x9f)],_0x1680b6=_0x2e6631[_0x2eab87(0x102)](this['appRoot'],this['C'][_0x2eab87(0xd2)],this[_0x2eab87(0x187)][_0x2eab87(0x123)],_0x4b93e9),_0x3aba0f=await this['readDirCustom'](_0x1680b6,null);for(const _0x5208d8 of _0x3aba0f){const _0x4cdc26=_0x2e6631[_0x2eab87(0x102)](_0x1680b6,_0x5208d8,_0x5208d8+_0x2eab87(0x1ce));if(!this[_0x2eab87(0x1ef)](_0x4cdc26))continue;const _0x58b19b=await this[_0x2eab87(0x16d)](_0x4cdc26,{'encoding':_0x2eab87(0x155)}),_0x3c489c=await this['parseYaml'](_0x58b19b),_0x4fa4c1=_0x2e6631['join'](_0x1680b6,_0x5208d8,this['C'][_0x2eab87(0x174)]);for(const _0x126ecc of _0x3c489c[_0x2eab87(0x167)])for(const _0x1ea138 of _0x126ecc[_0x2eab87(0xfa)]||[])if(!0x0===_0x1ea138['isActive']){const _0xa7315=_0x2e6631[_0x2eab87(0x102)](_0x4fa4c1,_0x126ecc[_0x2eab87(0xbf)],this['C'][_0x2eab87(0xfa)],_0x1ea138[_0x2eab87(0x14f)],_0x1ea138['name']+_0x2eab87(0x173)),_0x7480aa=_0x2e6631[_0x2eab87(0x102)](this['projectDirectory'],this['C'][_0x2eab87(0xd2)],_0x3affc2,_0x3c489c[_0x2eab87(0xbf)],_0x126ecc[_0x2eab87(0xbf)]+_0x2eab87(0x173));await this[_0x2eab87(0x1cd)](_0x2e6631['dirname'](_0x7480aa),{'recursive':!0x0}),await this[_0x2eab87(0xf7)](_0xa7315,_0x7480aa);}}}async[_0x29a339(0x169)](){const _0x19992b=_0x29a339,_0x4403bf=this['C']['InstanceApiHooksReadF'],_0x985f74=this['C'][_0x19992b(0xb1)],_0x432c72=_0x2e6631[_0x19992b(0x102)](this[_0x19992b(0x114)],this['C'][_0x19992b(0xd2)],this['config'][_0x19992b(0x123)],_0x4403bf),_0x754e40=await this['readDirCustom'](_0x432c72,null);for(const _0x518a4d of _0x754e40){const _0x34eb8e=_0x2e6631[_0x19992b(0x102)](_0x432c72,_0x518a4d,_0x518a4d+_0x19992b(0x1ce));if(!this[_0x19992b(0x1ef)](_0x34eb8e))continue;const _0x2b0d0f=await this[_0x19992b(0x16d)](_0x34eb8e,{'encoding':_0x19992b(0x155)}),_0x417f93=await this[_0x19992b(0x144)](_0x2b0d0f),_0x2962e9=_0x2e6631[_0x19992b(0x102)](_0x432c72,_0x518a4d),_0x3f9ecd=_0x417f93['instanceName']+'/'+_0x417f93[_0x19992b(0x1e8)]+'/'+_0x417f93[_0x19992b(0xe9)]+'/'+_0x417f93[_0x19992b(0x1f5)][_0x19992b(0x149)]();for(const _0xf6e9a1 of _0x417f93['preHooks']){const _0x42914d=_0x2e6631[_0x19992b(0x102)](_0x2962e9,this['C'][_0x19992b(0x1b4)],_0xf6e9a1['name']+_0x19992b(0x173)),_0x1a5892=_0x2e6631[_0x19992b(0x102)](this['projectDirectory'],this['C'][_0x19992b(0xd2)],_0x985f74,_0x3f9ecd,this['C'][_0x19992b(0x1b4)],_0xf6e9a1[_0x19992b(0xbf)]+_0x19992b(0x173));await this[_0x19992b(0x1cd)](_0x2e6631[_0x19992b(0xcf)](_0x1a5892),{'recursive':!0x0}),await this[_0x19992b(0xf7)](_0x42914d,_0x1a5892);}for(const _0x2eb7c9 of _0x417f93[_0x19992b(0xb8)]){const _0x3e14d2=_0x2e6631[_0x19992b(0x102)](_0x2962e9,this['C'][_0x19992b(0xb8)],_0x2eb7c9[_0x19992b(0xbf)]+_0x19992b(0x173)),_0x2c6f7b=_0x2e6631[_0x19992b(0x102)](this[_0x19992b(0xaf)],this['C'][_0x19992b(0xd2)],_0x985f74,_0x3f9ecd,this['C'][_0x19992b(0xb8)],_0x2eb7c9[_0x19992b(0xbf)]+_0x19992b(0x173));await this[_0x19992b(0x1cd)](_0x2e6631[_0x19992b(0xcf)](_0x2c6f7b),{'recursive':!0x0}),await this['fsLink'](_0x3e14d2,_0x2c6f7b);}}}async[_0x29a339(0x12c)](){const _0x3a7550=_0x29a339,_0x122938=this['C'][_0x3a7550(0x105)],_0x5e1d5b=this['C'][_0x3a7550(0x1eb)],_0x120530=_0x2e6631['join'](this['appRoot'],this['C'][_0x3a7550(0xd2)],this[_0x3a7550(0x187)]['adminUserPath'],_0x122938),_0x5ba675=await this[_0x3a7550(0x97)](_0x120530,null);for(const _0x394b2a of _0x5ba675){const _0x52f44c=_0x2e6631[_0x3a7550(0x102)](_0x120530,_0x394b2a,_0x394b2a+'.yaml');if(!this['fsExistsSync'](_0x52f44c))continue;const _0x22852f=await this[_0x3a7550(0x16d)](_0x52f44c,{'encoding':_0x3a7550(0x155)}),_0x3b0d64=await this['parseYaml'](_0x22852f),_0x1b48b7=_0x2e6631[_0x3a7550(0x102)](_0x120530,_0x394b2a),_0x1cecc1=_0x3b0d64[_0x3a7550(0x1f5)][_0x3a7550(0x149)]();for(const _0x60251a of _0x3b0d64['preHooks']){const _0x33626c=_0x2e6631[_0x3a7550(0x102)](_0x1b48b7,this['C']['preHooks'],_0x60251a['name']+_0x3a7550(0x173)),_0xda5d3e=_0x2e6631[_0x3a7550(0x102)](this[_0x3a7550(0xaf)],this['C'][_0x3a7550(0xd2)],_0x5e1d5b,_0x1cecc1,this['C'][_0x3a7550(0x1b4)],_0x60251a[_0x3a7550(0xbf)]+_0x3a7550(0x173));await this[_0x3a7550(0x1cd)](_0x2e6631[_0x3a7550(0xcf)](_0xda5d3e),{'recursive':!0x0}),await this[_0x3a7550(0xf7)](_0x33626c,_0xda5d3e);}for(const _0x2dca6e of _0x3b0d64[_0x3a7550(0xb8)]){const _0x32e1f4=_0x2e6631[_0x3a7550(0x102)](_0x1b48b7,this['C']['postHooks'],_0x2dca6e[_0x3a7550(0xbf)]+'.ts'),_0x49e1e0=_0x2e6631['join'](this[_0x3a7550(0xaf)],this['C']['src'],_0x5e1d5b,_0x1cecc1,this['C'][_0x3a7550(0xb8)],_0x2dca6e[_0x3a7550(0xbf)]+_0x3a7550(0x173));await this[_0x3a7550(0x1cd)](_0x2e6631['dirname'](_0x49e1e0),{'recursive':!0x0}),await this[_0x3a7550(0xf7)](_0x32e1f4,_0x49e1e0);}}}async[_0x29a339(0xd4)](){const _0x1e751a=_0x29a339,_0x3a9188=this['C'][_0x1e751a(0x137)],_0x49974f=this['C'][_0x1e751a(0x124)],_0x1eab57=_0x2e6631[_0x1e751a(0x102)](this[_0x1e751a(0x114)],this['C']['src'],this[_0x1e751a(0x187)][_0x1e751a(0x123)],_0x3a9188),_0x480fca=await this[_0x1e751a(0x97)](_0x1eab57,null);for(const _0x1dc245 of _0x480fca){const _0x864d9a=_0x2e6631['join'](_0x1eab57,_0x1dc245,_0x1dc245+_0x1e751a(0x1ce));if(!this['fsExistsSync'](_0x864d9a))continue;const _0x29c2ba=await this[_0x1e751a(0x16d)](_0x864d9a,{'encoding':_0x1e751a(0x155)}),_0xb6d698=await this[_0x1e751a(0x144)](_0x29c2ba);for(const _0xbebea2 of _0xb6d698['versions']||[])if(!0x0===_0xbebea2[_0x1e751a(0x179)]){const _0x351966=_0x2e6631[_0x1e751a(0x102)](_0x1eab57,_0x1dc245,this['C']['versions'],_0xbebea2[_0x1e751a(0x14f)],_0xbebea2[_0x1e751a(0xbf)]+_0x1e751a(0x173));let _0x649c82='',_0xb0abba='';_0xb6d698[_0x1e751a(0xbd)]===_0x2c0c11[_0x1e751a(0x1a3)]?(_0xb0abba=_0x1e751a(0xcc),_0x649c82=_0xb6d698[_0x1e751a(0x10d)]+'/'+_0xb6d698[_0x1e751a(0x1e8)]+'/'+_0xb6d698[_0x1e751a(0xe9)]+'/'+_0xb6d698[_0x1e751a(0x156)][_0x1e751a(0x149)]()):_0xb6d698[_0x1e751a(0xbd)]===_0x2c0c11[_0x1e751a(0x184)]?(_0xb0abba='third-party-apis',_0x649c82=_0xb6d698[_0x1e751a(0xe8)]+'/'+_0xb6d698[_0x1e751a(0xfd)]):_0xb6d698[_0x1e751a(0xbd)]===_0x2c0c11[_0x1e751a(0x1a5)]?(_0xb0abba=_0x1e751a(0x1b6),_0x649c82=_0xb6d698[_0x1e751a(0xf8)]):_0xb6d698[_0x1e751a(0xbd)]===_0x2c0c11[_0x1e751a(0xf5)]?(_0xb0abba='system-apis',_0x649c82=_0xb6d698[_0x1e751a(0x143)][_0x1e751a(0x149)]()):_0xb6d698[_0x1e751a(0xbd)]===_0x2c0c11['WEB_SOCKET_EVENT']&&(_0xb0abba=_0x1e751a(0x18b),_0x649c82=_0xb6d698[_0x1e751a(0xbf)]);const _0x36b0ed=_0x2e6631[_0x1e751a(0x102)](this[_0x1e751a(0xaf)],this['C']['src'],_0x49974f,_0xb0abba,_0x649c82+_0x1e751a(0x173));await this['fsMkDir'](_0x2e6631[_0x1e751a(0xcf)](_0x36b0ed),{'recursive':!0x0}),await this[_0x1e751a(0xf7)](_0x351966,_0x36b0ed);}}}async[_0x29a339(0xf9)](){const _0x2aec66=_0x29a339,_0x39c4ee=this['C'][_0x2aec66(0x1b0)],_0x9ced32=this['C'][_0x2aec66(0x197)],_0x42f5a1=_0x2e6631[_0x2aec66(0x102)](this[_0x2aec66(0x114)],this['C'][_0x2aec66(0xd2)],this[_0x2aec66(0x187)][_0x2aec66(0x123)],_0x39c4ee),_0x4192b1=await this[_0x2aec66(0x97)](_0x42f5a1,null);for(const _0x11ddc3 of _0x4192b1){const _0x36346d=_0x2e6631[_0x2aec66(0x102)](_0x42f5a1,_0x11ddc3,_0x11ddc3+'.yaml');if(!this[_0x2aec66(0x1ef)](_0x36346d))continue;const _0x451e8f=await this[_0x2aec66(0x16d)](_0x36346d,{'encoding':'utf8'}),_0x218308=await this[_0x2aec66(0x144)](_0x451e8f),_0x31f28d=_0x2e6631['join'](_0x42f5a1,_0x11ddc3),_0x3d458d=_0x218308[_0x2aec66(0x10d)]+'/'+_0x218308[_0x2aec66(0x1e8)]+'/'+_0x218308[_0x2aec66(0xe9)];for(const _0x432cc9 of _0x218308[_0x2aec66(0x1b4)]){const _0x3d59b2=_0x2e6631[_0x2aec66(0x102)](_0x31f28d,this['C'][_0x2aec66(0x1b4)],_0x432cc9[_0x2aec66(0xbf)]+'.ts'),_0x2b041b=_0x2e6631[_0x2aec66(0x102)](this[_0x2aec66(0xaf)],this['C'][_0x2aec66(0xd2)],_0x9ced32,_0x3d458d,this['C'][_0x2aec66(0x1b4)],_0x432cc9[_0x2aec66(0xbf)]+'.ts');await this['fsMkDir'](_0x2e6631[_0x2aec66(0xcf)](_0x2b041b),{'recursive':!0x0}),await this['fsLink'](_0x3d59b2,_0x2b041b);}for(const _0x397756 of _0x218308[_0x2aec66(0xb8)]){const _0x2fc191=_0x2e6631[_0x2aec66(0x102)](_0x31f28d,this['C'][_0x2aec66(0xb8)],_0x397756[_0x2aec66(0xbf)]+_0x2aec66(0x173)),_0x113b25=_0x2e6631[_0x2aec66(0x102)](this[_0x2aec66(0xaf)],this['C'][_0x2aec66(0xd2)],_0x9ced32,_0x3d458d,this['C'][_0x2aec66(0xb8)],_0x397756[_0x2aec66(0xbf)]+_0x2aec66(0x173));await this[_0x2aec66(0x1cd)](_0x2e6631[_0x2aec66(0xcf)](_0x113b25),{'recursive':!0x0}),await this[_0x2aec66(0xf7)](_0x2fc191,_0x113b25);}}}async[_0x29a339(0x171)](){const _0x188d59=_0x29a339,_0x242945=this['C'][_0x188d59(0x139)],_0x2d3846=this['C'][_0x188d59(0x1a0)],_0x480c43=_0x2e6631['join'](this['appRoot'],this['C'][_0x188d59(0xd2)],this['config'][_0x188d59(0x123)],_0x242945),_0x547a91=await this[_0x188d59(0x97)](_0x480c43,null);for(const _0x4eb893 of _0x547a91){const _0x2bd2d6=_0x2e6631[_0x188d59(0x102)](_0x480c43,_0x4eb893,_0x4eb893+_0x188d59(0x1ce));if(!this['fsExistsSync'](_0x2bd2d6))continue;const _0x165ddb=await this[_0x188d59(0x16d)](_0x2bd2d6,{'encoding':_0x188d59(0x155)}),_0x18f3ed=await this[_0x188d59(0x144)](_0x165ddb),_0x442612=_0x2e6631['join'](_0x480c43,_0x4eb893),_0x50a2a5=_0x18f3ed[_0x188d59(0x10d)]+'/'+_0x18f3ed[_0x188d59(0x1e8)];for(const _0xcb8f35 of _0x18f3ed[_0x188d59(0x1b4)]){const _0x3a1925=_0x2e6631[_0x188d59(0x102)](_0x442612,this['C'][_0x188d59(0x1b4)],_0xcb8f35[_0x188d59(0xbf)]+_0x188d59(0x173)),_0xedf65d=_0x2e6631[_0x188d59(0x102)](this['projectDirectory'],this['C']['src'],_0x2d3846,_0x50a2a5,this['C'][_0x188d59(0x1b4)],_0xcb8f35['name']+_0x188d59(0x173));await this[_0x188d59(0x1cd)](_0x2e6631['dirname'](_0xedf65d),{'recursive':!0x0}),await this['fsLink'](_0x3a1925,_0xedf65d);}for(const _0x16f94f of _0x18f3ed[_0x188d59(0xb8)]){const _0x1f8fcf=_0x2e6631[_0x188d59(0x102)](_0x442612,this['C']['postHooks'],_0x16f94f[_0x188d59(0xbf)]+'.ts'),_0x4bfe4e=_0x2e6631[_0x188d59(0x102)](this[_0x188d59(0xaf)],this['C'][_0x188d59(0xd2)],_0x2d3846,_0x50a2a5,this['C']['postHooks'],_0x16f94f['name']+'.ts');await this[_0x188d59(0x1cd)](_0x2e6631['dirname'](_0x4bfe4e),{'recursive':!0x0}),await this[_0x188d59(0xf7)](_0x1f8fcf,_0x4bfe4e);}}}async['copyInstanceHooksToAnotherDir'](){const _0x4db1c2=_0x29a339,_0x342ae6=this['C'][_0x4db1c2(0x193)],_0x84ebdf=this['C']['InstanceHooksWriteF'],_0x36e1c4=_0x2e6631[_0x4db1c2(0x102)](this[_0x4db1c2(0x114)],this['C']['src'],this[_0x4db1c2(0x187)][_0x4db1c2(0x123)],_0x342ae6),_0x34c976=await this[_0x4db1c2(0x97)](_0x36e1c4,null);for(const _0x1d3c7b of _0x34c976){const _0x45f40f=_0x2e6631[_0x4db1c2(0x102)](_0x36e1c4,_0x1d3c7b,_0x1d3c7b+_0x4db1c2(0x1ce));if(!this[_0x4db1c2(0x1ef)](_0x45f40f))continue;const _0x48fc26=await this[_0x4db1c2(0x16d)](_0x45f40f,{'encoding':_0x4db1c2(0x155)}),_0x56f311=await this[_0x4db1c2(0x144)](_0x48fc26),_0x545ee8=_0x2e6631['join'](_0x36e1c4,_0x1d3c7b),_0x1e4d71=''+_0x56f311[_0x4db1c2(0x10d)];for(const _0x1ac30f of _0x56f311[_0x4db1c2(0x1b4)]){const _0x4ab593=_0x2e6631[_0x4db1c2(0x102)](_0x545ee8,this['C'][_0x4db1c2(0x1b4)],_0x1ac30f[_0x4db1c2(0xbf)]+_0x4db1c2(0x173)),_0x45d442=_0x2e6631[_0x4db1c2(0x102)](this[_0x4db1c2(0xaf)],this['C'][_0x4db1c2(0xd2)],_0x84ebdf,_0x1e4d71,this['C'][_0x4db1c2(0x1b4)],_0x1ac30f['name']+'.ts');await this[_0x4db1c2(0x1cd)](_0x2e6631[_0x4db1c2(0xcf)](_0x45d442),{'recursive':!0x0}),await this[_0x4db1c2(0xf7)](_0x4ab593,_0x45d442);}for(const _0x57fd97 of _0x56f311[_0x4db1c2(0xb8)]){const _0xfb9a1b=_0x2e6631[_0x4db1c2(0x102)](_0x545ee8,this['C'][_0x4db1c2(0xb8)],_0x57fd97[_0x4db1c2(0xbf)]+_0x4db1c2(0x173)),_0x45d793=_0x2e6631[_0x4db1c2(0x102)](this[_0x4db1c2(0xaf)],this['C'][_0x4db1c2(0xd2)],_0x84ebdf,_0x1e4d71,this['C'][_0x4db1c2(0xb8)],_0x57fd97[_0x4db1c2(0xbf)]+_0x4db1c2(0x173));await this['fsMkDir'](_0x2e6631[_0x4db1c2(0xcf)](_0x45d793),{'recursive':!0x0}),await this[_0x4db1c2(0xf7)](_0xfb9a1b,_0x45d793);}}}async[_0x29a339(0xd8)](_0x167947,_0x25c30a){return new Promise((_0x4bab88,_0x505950)=>{const _0x26db27=a0_0x266d,_0x30b567=(0x0,_0xa009d4[_0x26db27(0xc7)])(_0x167947,_0x25c30a,{'shell':!0x0,'cwd':this[_0x26db27(0x114)]});_0x30b567['on']('close',_0x110a9c=>{const _0x26481e=_0x26db27;if(0x0===_0x110a9c)setTimeout(_0x4bab88,0x1f4);else{const _0x4299ae='\x27'+_0x167947+'\x20'+_0x25c30a[_0x26481e(0x102)]('\x20')+'\x27\x20exited\x20with\x20code\x20'+_0x110a9c+'.';_0x505950(new Error(_0x4299ae));}}),_0x30b567['on'](_0x26db27(0x10e),_0x339a9c=>{const _0x2564f0=_0x26db27;console[_0x2564f0(0x10e)](_0x2564f0(0x153)+_0x339a9c[_0x2564f0(0x1e3)]),_0x505950(_0x339a9c);});});}async[_0x29a339(0x144)](_0x3c74c1){const _0x18aabc=_0x29a339;return _0x103501(0x2f8)[_0x18aabc(0x195)](_0x3c74c1);}[_0x29a339(0x101)](){const _0x19a293=_0x29a339,_0x465b6d=_0x103501(0x274),_0x4b1f79=_0x2e6631[_0x19a293(0x102)](this[_0x19a293(0x114)]),_0x43d263=_0x2e6631['join'](this[_0x19a293(0x114)],this['C'][_0x19a293(0xd2)]),_0x1d9965=_0x468f34=>{const _0x3182ce=_0x19a293,_0x22916c=_0x2e6631[_0x3182ce(0xe2)](_0x4b1f79,_0x468f34);return!(_0x22916c&&!_0x22916c[_0x3182ce(0xe1)]('.')&&!_0x22916c[_0x3182ce(0xa0)]('~')&&_0x22916c[_0x3182ce(0xe1)](this['C'][_0x3182ce(0xd2)]));},_0x38ac3e=_0x465b6d[_0x19a293(0x164)](_0x43d263,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x53a232=async(_0x438112,_0xd17c21)=>{const _0x2c12e5=_0x19a293;try{if(this[_0x2c12e5(0x1d5)])return;const _0x2a69fa=_0x2e6631[_0x2c12e5(0xe2)](_0x4b1f79,_0xd17c21);if(!_0xd17c21||_0x1d9965(_0xd17c21))return;console[_0x2c12e5(0xea)](_0x2c12e5(0x1a8)+this[_0x2c12e5(0x14d)]()+_0x2c12e5(0x1ac)+_0x438112+']\x20:\x20'+_0x2a69fa);const _0x56f867=this[_0x2c12e5(0xa2)](_0x2a69fa),_0x35fc7f=this[_0x2c12e5(0x175)](_0x56f867,_0x2a69fa);if(!_0x35fc7f)return;let _0x53c2ca,_0x3b25f0=!0x1;if(this[_0x2c12e5(0x1ef)](_0x35fc7f)){if(this['fsExistsSync'](_0x2e6631[_0x2c12e5(0x102)](_0x4b1f79,_0x2a69fa))){const _0x122482=_0x2e6631['join'](_0x2e6631[_0x2c12e5(0x9b)]+this['C'][_0x2c12e5(0x150)],_0x35fc7f);_0x53c2ca=await this['serializeFolderWithBinary'](_0x35fc7f,_0x122482),this[_0x2c12e5(0x176)]({'objType':_0x2547c3['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x49a23b['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x53c2ca,'category':_0x56f867,'shouldReplaceAllItemsOfCategory':_0x3b25f0}});}else this['syncAllDataWithServer']();}else{const _0x161865=this[_0x2c12e5(0xcb)](_0x56f867,_0x2a69fa),_0x1cfd2d=_0x2e6631[_0x2c12e5(0x102)](_0x2e6631[_0x2c12e5(0x9b)]+this['C'][_0x2c12e5(0x150)],_0x161865);_0x53c2ca=await this[_0x2c12e5(0x13e)](_0x161865,_0x1cfd2d),_0x3b25f0=!0x0,this[_0x2c12e5(0x190)](_0x53c2ca,_0x56f867,_0x3b25f0);}}catch(_0x544a8e){console['error'](_0x2c12e5(0xfc),_0x544a8e);}};_0x38ac3e['on']('add',_0x458ba0=>_0x53a232(_0x19a293(0xd3),_0x458ba0))['on'](_0x19a293(0xdc),_0x4a7d2d=>_0x53a232('change',_0x4a7d2d))['on'](_0x19a293(0x1bd),_0x3823fe=>_0x53a232(_0x19a293(0x1bd),_0x3823fe))['on'](_0x19a293(0x198),_0x1afb1a=>_0x53a232('addDir',_0x1afb1a))['on'](_0x19a293(0xd6),_0x546674=>_0x53a232(_0x19a293(0xd6),_0x546674))['on']('error',_0xf8a2ac=>console[_0x19a293(0x10e)](_0x19a293(0x109),_0xf8a2ac)),this['watcher']=_0x38ac3e,console[_0x19a293(0xea)](_0x19a293(0x10a));}[_0x29a339(0x14d)](){const _0x4e58df=_0x29a339,_0x364d8a=new Date();return String(_0x364d8a[_0x4e58df(0x178)]())[_0x4e58df(0x19b)](0x2,'0')+':'+String(_0x364d8a[_0x4e58df(0x142)]())['padStart'](0x2,'0')+':'+String(_0x364d8a[_0x4e58df(0x161)]())[_0x4e58df(0x19b)](0x2,'0');}[_0x29a339(0xe3)](_0x22feb8,_0xe58c8b,_0x19d65b){const _0x42d551=_0x29a339;this[_0x42d551(0x176)]({'objType':_0x2547c3[_0x42d551(0xad)],'localClientWSReqRes':{'eventType':_0x49a23b[_0x42d551(0x145)],'folderChangedOnLocalSystem':_0x22feb8,'category':_0xe58c8b,'shouldReplaceAllItemsOfCategory':_0x19d65b}});}[_0x29a339(0x141)](_0x5dfb88,_0x2a4c8a){let _0x1f9acd=null;return function(..._0x1de160){clearTimeout(_0x1f9acd),_0x1f9acd=setTimeout(()=>{const _0x23df70=a0_0x266d;_0x5dfb88[_0x23df70(0x162)](this,_0x1de160);},_0x2a4c8a);};}['getCategoryOfPath'](_0x525295){const _0x449762=_0x29a339,_0x2bd583=_0x2e6631[_0x449762(0x102)](this['C'][_0x449762(0xd2)],this[_0x449762(0x187)][_0x449762(0x123)]);if(!_0x525295[_0x449762(0xe1)](_0x2bd583))return;const _0x14b264=_0x525295[_0x449762(0x1f2)](_0x2e6631[_0x449762(0x9b)])['filter'](_0x3f5654=>!!_0x3f5654)[0x2];for(const _0x1c3bcb in _0x3b5713)if(_0x3b5713[_0x1c3bcb]===_0x14b264)return _0x14b264;}[_0x29a339(0x175)](_0x483cd8,_0x173795){const _0x17ec3b=_0x29a339,_0x1c924a=_0x173795[_0x17ec3b(0x1f2)](_0x2e6631[_0x17ec3b(0x9b)]);let _0x1af32d='';return _0x1af32d=_0x483cd8===_0x3b5713[_0x17ec3b(0x184)]?_0x1c924a[_0x17ec3b(0x1ca)](0x0,0x6)[_0x17ec3b(0x102)](_0x2e6631[_0x17ec3b(0x9b)]):_0x1c924a['slice'](0x0,0x4)[_0x17ec3b(0x102)](_0x2e6631[_0x17ec3b(0x9b)]),_0x1af32d;}[_0x29a339(0xcb)](_0x5beb64,_0xf3572d){const _0x41fec4=_0x29a339;return _0xf3572d['split'](_0x2e6631['sep'])['slice'](0x0,0x3)[_0x41fec4(0x102)](_0x2e6631[_0x41fec4(0x9b)]);}async[_0x29a339(0x13e)](_0x36d01a,_0x5ee487){const _0x2a62ac={},_0x2de6b5=this;return await async function _0x4f9f5b(_0x4ba2e5){const _0xa8b9b8=a0_0x266d,_0x549efd=await _0x2de6b5['readDirCustom'](_0x4ba2e5,{'withFileTypes':!0x0});for(const _0x1875c5 of _0x549efd){const _0x218670=_0x2e6631['join'](_0x4ba2e5,_0x1875c5[_0xa8b9b8(0xbf)]),_0x6a37f5=_0x2e6631[_0xa8b9b8(0x1a6)](_0x218670);if(_0x1875c5['isDirectory']())await _0x4f9f5b(_0x6a37f5);else{const _0x5328c7=_0x4505dc[_0xa8b9b8(0xcd)](_0x6a37f5),_0x57777e=_0x2e6631['relative'](_0x36d01a,_0x6a37f5),_0x5a95e2=_0x2e6631['join'](_0x5ee487,_0x57777e)['split'](_0x2e6631[_0xa8b9b8(0x9b)])[_0xa8b9b8(0x102)](_0x2e6631[_0xa8b9b8(0x1b8)][_0xa8b9b8(0x9b)]);_0x2a62ac[_0x5a95e2]={'encoding':_0xa8b9b8(0xe0),'content':_0x5328c7[_0xa8b9b8(0x100)]('base64')};}}}(_0x36d01a),_0x2a62ac;}[_0x29a339(0x176)](_0x27ad04){const _0x593e82=_0x29a339;try{this['ws'][_0x593e82(0x106)](JSON[_0x593e82(0x14e)](_0x27ad04));}catch(_0x39283b){console[_0x593e82(0xea)](_0x39283b);}}async[_0x29a339(0x16b)](){const _0x142235=_0x29a339;console[_0x142235(0xea)](_0x142235(0xb0));const _0x5cd3ca=this[_0x142235(0x187)][_0x142235(0x17d)],_0x19e63d=this[_0x142235(0x187)][_0x142235(0x123)],_0x364f9e=this[_0x142235(0x187)][_0x142235(0x1c1)];this['ws']=new WebSocket(_0x364f9e+_0x142235(0xc1)+_0x5cd3ca+_0x142235(0x1bc)+_0x19e63d);const _0x56297d=[],_0x3afa05=()=>{const _0x407a0b=_0x142235;this['sendToServer']({'objType':_0x2547c3[_0x407a0b(0x1f6)],'onEvents':[{'eventType':_0x407a0b(0x18e)}]});};function _0x245211(_0xf8c6bb){const _0x11093f=_0x142235;_0xf8c6bb[_0x11093f(0x127)]=null,_0xf8c6bb[_0x11093f(0xec)]=null,_0xf8c6bb[_0x11093f(0x1a7)]=null,_0xf8c6bb[_0x11093f(0xb7)]=null,_0xf8c6bb[_0x11093f(0x11a)]();}this['ws'][_0x142235(0xec)]=async _0x58ddea=>{const _0x1addb0=_0x142235,_0x350665=JSON['parse'](_0x58ddea[_0x1addb0(0x1bf)]);if(_0x350665[_0x1addb0(0xab)]===_0x2547c3[_0x1addb0(0xb4)]&&_0x350665[_0x1addb0(0x1a1)]['connected'])_0x3afa05();else{if(_0x350665[_0x1addb0(0xab)]===_0x2547c3[_0x1addb0(0x1f6)]){if(_0x350665?.[_0x1addb0(0x1a1)]?.[_0x1addb0(0x104)]?.[_0x1addb0(0x13d)]){for(const _0x4213ba of _0x350665[_0x1addb0(0x1a1)]['validOnEvents'])_0x56297d[_0x1addb0(0xef)](_0x4213ba);console['log']('✅\x20Connected\x20to\x20server\x20via\x20WS'),!0x1===this[_0x1addb0(0x17a)]&&(this[_0x1addb0(0x17a)]=!0x0,console[_0x1addb0(0xea)](this[_0x1addb0(0x14a)]+'✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20'+this[_0x1addb0(0xaf)]+this['colorEnd'])),this[_0x1addb0(0xb9)]();}else{const _0x26920e=_0x350665[_0x1addb0(0x1a1)]?.[_0x1addb0(0xdb)]?.[0x0]?.['errors']?.[0x0]?.[_0x1addb0(0x1e3)]||_0x1addb0(0xe6);console['log']('❌\x20'+_0x26920e),await this['shutdownAndExit'](0x1);}}else await this['processReceivedEvent'](_0x350665);}},this['ws'][_0x142235(0xb7)]=_0x258ff5=>{const _0x4f6175=_0x142235;console[_0x4f6175(0xea)](_0x4f6175(0x1a2)),_0x245211(this['ws']),setTimeout(this[_0x4f6175(0x16b)][_0x4f6175(0x1e2)](this),0xbb8);},this['ws'][_0x142235(0x1a7)]=()=>{const _0x444230=_0x142235;_0x245211(this['ws']),setTimeout(this['connectToServerViaWS'][_0x444230(0x1e2)](this),0xbb8);};}['syncAllDataWithServer'](){const _0x39039f=_0x29a339;this[_0x39039f(0x176)]({'objType':_0x2547c3[_0x39039f(0xad)],'localClientWSReqRes':{'eventType':_0x49a23b[_0x39039f(0xc2)]}});}async[_0x29a339(0x9e)](_0x360532){const _0x293dbf=_0x29a339;if(this['EL']&&_0x360532[_0x293dbf(0x1a1)][_0x293dbf(0x113)]!==_0x49a23b[_0x293dbf(0xc2)]&&console[_0x293dbf(0xea)](_0x360532),_0x360532[_0x293dbf(0xab)]===_0x2547c3[_0x293dbf(0xad)]){if(_0x360532['errors']?.[_0x293dbf(0x13d)])return void console[_0x293dbf(0x10e)](_0x360532['errors']);if(_0x360532[_0x293dbf(0x1a1)]['eventType']===_0x49a23b[_0x293dbf(0xc2)]){_0x4505dc[_0x293dbf(0xd1)](_0x2e6631[_0x293dbf(0x102)](this[_0x293dbf(0x114)],this['C'][_0x293dbf(0xd2)]),{'recursive':!0x0,'force':!0x0}),this['fsMkDirSync'](_0x2e6631['join'](this[_0x293dbf(0x114)],this['C'][_0x293dbf(0xd2)]),{'recursive':!0x0});const _0x168ecd=_0x360532['response'][_0x293dbf(0x11e)];await this[_0x293dbf(0x18a)](_0x168ecd,this[_0x293dbf(0x114)]),this[_0x293dbf(0x10c)]||setTimeout(this['startWatch'][_0x293dbf(0x1e2)](this),0x1388);}else{if(_0x360532[_0x293dbf(0x1a1)][_0x293dbf(0x113)]===_0x49a23b[_0x293dbf(0x111)]){const _0x1de1ee=_0x360532[_0x293dbf(0x1a1)][_0x293dbf(0x11e)];await this['writeMemfsJsonToDisk'](_0x1de1ee['data'],this['appRoot']);}}!0x0===this['nodeModulesCopied']?await this[_0x293dbf(0xa1)](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x293dbf(0x12e)]=!0x0);}}async['writeMemfsJsonToDisk'](_0x43b08c,_0x121824){const _0x1d5584=_0x29a339;this[_0x1d5584(0x1d5)]=!0x0;let _0x3fafb9=[];const _0x475a20=async()=>{const _0x3a4c7c=_0x1d5584;_0x3fafb9[_0x3a4c7c(0x13d)]>0x0&&(await Promise[_0x3a4c7c(0x1af)](_0x3fafb9),_0x3fafb9=[]);};for(const [_0x5b8698,_0x2220e4]of Object[_0x1d5584(0x98)](_0x43b08c)){if(!_0x5b8698[_0x1d5584(0xe1)]('/'+this['C']['repo']+'/'+this['C'][_0x1d5584(0xd2)]))continue;const _0x7a7492=_0x2220e4,_0x2c280c=_0x5b8698['replace']('/'+this['C'][_0x1d5584(0x150)],'');if(this[_0x1d5584(0x148)][_0x2c280c])continue;const _0xf30cc4=_0x2e6631[_0x1d5584(0x102)](_0x121824,_0x2c280c[_0x1d5584(0xfb)](/^\//,'')),_0x3298ca=_0x2e6631['dirname'](_0xf30cc4),_0x48d825=async()=>{const _0x47ae26=_0x1d5584;await this[_0x47ae26(0x1cd)](_0x3298ca,{'recursive':!0x0}),await this[_0x47ae26(0xc0)](_0xf30cc4,_0x7a7492[_0x47ae26(0x1f4)],{'encoding':_0x47ae26(0xe0)}),this['EL']&&console[_0x47ae26(0xea)](_0x47ae26(0x1d2)+this[_0x47ae26(0x14d)]()+_0x47ae26(0x19c)+_0xf30cc4['replace'](_0x121824,''));};_0x3fafb9[_0x1d5584(0xef)](_0x48d825()),_0x3fafb9[_0x1d5584(0x13d)]>=0x3e8&&await _0x475a20();}await _0x475a20(),setTimeout(()=>{this['skipWatchInputs']=!0x1;},0x3e8);}[_0x29a339(0xe7)](_0x3cc544){const _0x3996f5=_0x29a339,_0x212415=this[_0x3996f5(0x112)](_0x3cc544);if(!this[_0x3996f5(0x1ef)](_0x212415))return!0x1;const _0x5e473d=_0x4505dc[_0x3996f5(0x19e)](_0x212415);let _0x2b9ad0=!0x0;for(const _0x5cdafe of _0x5e473d){const _0x507246=_0x2e6631[_0x3996f5(0x102)](_0x212415,_0x5cdafe);_0x4505dc[_0x3996f5(0x1b3)](_0x507246)[_0x3996f5(0xdd)]()&&this[_0x3996f5(0xe7)](_0x507246)||(_0x2b9ad0=!0x1);}return!!_0x2b9ad0&&(_0x4505dc[_0x3996f5(0x14b)](_0x212415),!0x0);}async[_0x29a339(0x97)](_0x49264d,_0x4e1c17){const _0x483a8b=_0x29a339;return this[_0x483a8b(0x1ef)](_0x49264d)?await this[_0x483a8b(0xa9)](_0x49264d,_0x4e1c17):[];}[_0x29a339(0x112)](_0x1d2c02){const _0x5d48ad=_0x29a339;return _0x2e6631[_0x5d48ad(0x1a6)](_0x1d2c02);}[_0x29a339(0x1ef)](_0x2a60df){const _0x21f509=_0x29a339,_0x33fd5f=_0x2e6631[_0x21f509(0x1a6)](_0x2a60df);return _0x4505dc['existsSync'](_0x33fd5f);}async[_0x29a339(0xa9)](_0x4d1c5a,_0x38a781){const _0x3b5b20=_0x29a339,_0x4ce92f=_0x2e6631['normalize'](_0x4d1c5a);return await _0x4505dc[_0x3b5b20(0xeb)][_0x3b5b20(0x182)](_0x4ce92f,_0x38a781);}async['fsMkDir'](_0x383807,_0x39d563){const _0x3f9ba7=_0x29a339,_0x15464d=_0x2e6631[_0x3f9ba7(0x1a6)](_0x383807);return await _0x4505dc[_0x3f9ba7(0xeb)][_0x3f9ba7(0x1f8)](_0x15464d,_0x39d563);}['fsMkDirSync'](_0x5001ff,_0x5729fd){const _0x2fc2ac=_0x29a339,_0x4631ca=_0x2e6631[_0x2fc2ac(0x1a6)](_0x5001ff);return _0x4505dc[_0x2fc2ac(0x194)](_0x4631ca,_0x5729fd);}async[_0x29a339(0x16d)](_0x32da57,_0x40a59c){const _0x118b42=_0x29a339,_0x56707c=_0x2e6631[_0x118b42(0x1a6)](_0x32da57);return await _0x4505dc[_0x118b42(0xeb)]['readFile'](_0x56707c,_0x40a59c);}async[_0x29a339(0xc0)](_0x4bf91a,_0x198933,_0x378c3a){const _0x4ca5fb=_0x29a339,_0x490a8d=_0x2e6631['normalize'](_0x4bf91a);return await _0x4505dc['promises'][_0x4ca5fb(0xf1)](_0x490a8d,_0x198933,_0x378c3a);}async[_0x29a339(0xf7)](_0x3073ec,_0x15b1c7){const _0x1c0439=_0x29a339,_0x18c745=_0x2e6631[_0x1c0439(0x1a6)](_0x3073ec),_0x4ab36b=_0x2e6631[_0x1c0439(0x1a6)](_0x15b1c7);return await _0x4505dc[_0x1c0439(0xeb)][_0x1c0439(0x1ae)](_0x18c745,_0x4ab36b);}async[_0x29a339(0x130)](_0x41075f=0x0){const _0x403229=_0x29a339;if(!this[_0x403229(0xc9)]){this[_0x403229(0xc9)]=!0x0;try{this[_0x403229(0x10c)]&&await this[_0x403229(0x10c)][_0x403229(0x11a)]();}catch(_0x5cda69){console[_0x403229(0x10e)](_0x403229(0xdf),_0x5cda69);}finally{setTimeout(()=>process[_0x403229(0xb2)](_0x41075f),0xc8);}}}[_0x29a339(0x1cc)](){const _0x2b3165=_0x29a339;process['on']('SIGINT',()=>{const _0x3765b9=a0_0x266d;console[_0x3765b9(0xea)]('SIGINT\x20received\x20—\x20shutting\x20down'),this[_0x3765b9(0x130)](0x0);}),process['on'](_0x2b3165(0xc5),()=>{const _0x4f762d=_0x2b3165;console[_0x4f762d(0xea)](_0x4f762d(0xca)),this['shutdownAndExit'](0x0);}),process['on'](_0x2b3165(0x1de),_0xc5b9a4=>{const _0x1f575f=_0x2b3165;console[_0x1f575f(0xea)](_0x1f575f(0x1de),_0xc5b9a4);}),process['on'](_0x2b3165(0xb2),_0x141850=>{const _0x2ecd6c=_0x2b3165;console[_0x2ecd6c(0xea)](_0x2ecd6c(0xb2),_0x141850);}),process['on']('uncaughtException',_0x53464b=>{const _0x1d434d=_0x2b3165;console[_0x1d434d(0x10e)]('uncaughtException',_0x53464b),this[_0x1d434d(0x130)](0x1);}),process['on']('unhandledRejection',_0x589f5b=>{const _0x1155db=_0x2b3165;console[_0x1155db(0x10e)](_0x1155db(0x12f),_0x589f5b),this['shutdownAndExit'](0x1);});}}()[_0x29a339(0x1d7)]()[_0x29a339(0x1c9)](),function(_0x1624d4){const _0x39abb0=_0x29a339;_0x1624d4[_0x39abb0(0x1a3)]=_0x39abb0(0x1a3),_0x1624d4[_0x39abb0(0x184)]=_0x39abb0(0x184),_0x1624d4[_0x39abb0(0x1a5)]='CUSTOM_APIS',_0x1624d4[_0x39abb0(0xf5)]=_0x39abb0(0xf5),_0x1624d4['WEB_SOCKET_EVENT']=_0x39abb0(0xe4);}(_0x2c0c11=_0x58c040['QX']||(_0x58c040['QX']={})),function(_0x1735d3){const _0x2c183b=_0x29a339;_0x1735d3[_0x2c183b(0x1f6)]=_0x2c183b(0x1f6),_0x1735d3[_0x2c183b(0x94)]=_0x2c183b(0x94),_0x1735d3['CONNECTED']='CONNECTED',_0x1735d3['UNKNOWN']=_0x2c183b(0xc4),_0x1735d3[_0x2c183b(0x1cb)]=_0x2c183b(0x1cb),_0x1735d3[_0x2c183b(0x146)]=_0x2c183b(0x146),_0x1735d3[_0x2c183b(0xad)]='LC_DATA_REQ_RES';}(_0x2547c3||(_0x2547c3={})),function(_0x2fa71b){const _0x13f234=_0x29a339;_0x2fa71b[_0x13f234(0xc2)]=_0x13f234(0xc2),_0x2fa71b[_0x13f234(0x111)]=_0x13f234(0x111),_0x2fa71b[_0x13f234(0x145)]=_0x13f234(0x145);}(_0x49a23b||(_0x49a23b={})),(_0x3f824d=_0x58c040['Yl']||(_0x58c040['Yl']={}))['POST']='POST',_0x3f824d[_0x29a339(0xf2)]=_0x29a339(0xf2),_0x3f824d['PUT_REPLACE']=_0x29a339(0x1b1),_0x3f824d[_0x29a339(0x1b5)]=_0x29a339(0x1b5),_0x3f824d[_0x29a339(0x117)]='DELETE_ALL',(_0x6d8e4d=_0x58c040['EN']||(_0x58c040['EN']={}))['AmEvents']=_0x29a339(0x1df),_0x6d8e4d['WebSocketEvents']=_0x29a339(0x1d9),_0x6d8e4d['DBMasters']=_0x29a339(0x1e0),_0x6d8e4d[_0x29a339(0x1db)]=_0x29a339(0x135),_0x6d8e4d[_0x29a339(0xc6)]=_0x29a339(0x122),_0x6d8e4d[_0x29a339(0xd7)]='am_instance_api_hooks',_0x6d8e4d[_0x29a339(0x91)]=_0x29a339(0x8f),_0x6d8e4d[_0x29a339(0xfe)]=_0x29a339(0x1dc),_0x6d8e4d[_0x29a339(0x172)]=_0x29a339(0x177),_0x6d8e4d[_0x29a339(0xd0)]=_0x29a339(0x160),_0x6d8e4d[_0x29a339(0x116)]='am_schemas',_0x6d8e4d[_0x29a339(0x1e9)]=_0x29a339(0x90),_0x6d8e4d[_0x29a339(0xae)]=_0x29a339(0x19d),_0x6d8e4d[_0x29a339(0x166)]=_0x29a339(0x96),_0x6d8e4d['am_tp_api_settings']=_0x29a339(0x15d),_0x6d8e4d['am_tp_installed_apis']='am_tp_installed_apis',_0x6d8e4d[_0x29a339(0x11d)]=_0x29a339(0x11d),_0x6d8e4d[_0x29a339(0x1d1)]=_0x29a339(0x1da),_0x6d8e4d[_0x29a339(0xde)]=_0x29a339(0x151),_0x6d8e4d['ProcessInitializers']=_0x29a339(0x1d4),_0x6d8e4d[_0x29a339(0x1f3)]='am_ui_maker_utils',_0x6d8e4d[_0x29a339(0x132)]=_0x29a339(0x1d3),_0x6d8e4d[_0x29a339(0x11f)]='am_test_cases',function(_0x83a6cd){const _0x3b3e33=_0x29a339;_0x83a6cd[_0x3b3e33(0x1a5)]='Custom\x20APIs',_0x83a6cd['DB_MIGRATIONS']='Database\x20migrations',_0x83a6cd['PROCESS_INITIALIZERS']=_0x3b3e33(0x10f),_0x83a6cd[_0x3b3e33(0xf3)]=_0x3b3e33(0x13f),_0x83a6cd['I18NS']='i18ns',_0x83a6cd['INSTANCE_API_HOOKS']=_0x3b3e33(0x121),_0x83a6cd[_0x3b3e33(0x1ba)]='Instance\x20hooks',_0x83a6cd[_0x3b3e33(0x1c6)]='Database\x20hooks',_0x83a6cd[_0x3b3e33(0x16e)]=_0x3b3e33(0x18f),_0x83a6cd['INSTANCE_API_SETTINGS']=_0x3b3e33(0x126),_0x83a6cd[_0x3b3e33(0x108)]=_0x3b3e33(0xd0),_0x83a6cd['SCHEMAS']=_0x3b3e33(0x116),_0x83a6cd[_0x3b3e33(0xe5)]=_0x3b3e33(0x107),_0x83a6cd[_0x3b3e33(0x17b)]='System\x20API\x20settings',_0x83a6cd[_0x3b3e33(0x163)]=_0x3b3e33(0xba),_0x83a6cd[_0x3b3e33(0x184)]=_0x3b3e33(0x165),_0x83a6cd[_0x3b3e33(0x1e4)]=_0x3b3e33(0xf6),_0x83a6cd[_0x3b3e33(0x1fa)]=_0x3b3e33(0xd9),_0x83a6cd[_0x3b3e33(0x158)]=_0x3b3e33(0x1ea),_0x83a6cd[_0x3b3e33(0x1ec)]=_0x3b3e33(0x186),_0x83a6cd[_0x3b3e33(0x1d8)]=_0x3b3e33(0x115),_0x83a6cd['UI_MAKER_STYLES']=_0x3b3e33(0x103);}(_0x3b5713=_0x58c040['_6']||(_0x58c040['_6']={}));},0x274:_0x180181=>{const _0x362a2e=a0_0x266d;_0x180181[_0x362a2e(0x1e1)]=require(_0x362a2e(0x185));},0x2f8:_0x388377=>{const _0x430ef2=a0_0x266d;_0x388377[_0x430ef2(0x1e1)]=require(_0x430ef2(0x15a));},0x2a0:_0x1cacc6=>{const _0x8f7283=a0_0x266d;_0x1cacc6[_0x8f7283(0x1e1)]=require(_0x8f7283(0xff));},0x170:_0x2c249f=>{const _0x2e676d=a0_0x266d;_0x2c249f[_0x2e676d(0x1e1)]=require(_0x2e676d(0x16a));},0x3a:_0x215325=>{const _0x15d27a=a0_0x266d;_0x215325[_0x15d27a(0x1e1)]=require('fs');}},_0x160c16={};!function _0x28e348(_0x2966e5){const _0x122d29=a0_0x266d;var _0x311b2f=_0x160c16[_0x2966e5];if(void 0x0!==_0x311b2f)return _0x311b2f[_0x122d29(0x1e1)];var _0x3e7733=_0x160c16[_0x2966e5]={'exports':{}};return _0x382cd2[_0x2966e5](_0x3e7733,_0x3e7733[_0x122d29(0x1e1)],_0x28e348),_0x3e7733[_0x122d29(0x1e1)];}(0x11f);})()));function a0_0x266d(_0x56da34,_0x1679c3){const _0x3176d0=a0_0x3176();return a0_0x266d=function(_0x266d89,_0x1bf8a2){_0x266d89=_0x266d89-0x8f;let _0x3a1249=_0x3176d0[_0x266d89];return _0x3a1249;},a0_0x266d(_0x56da34,_0x1679c3);}function a0_0x3176(){const _0x3ada50=['LOCAL_CLIENT_SYNC_EVENTS','Collection\x20hooks','sendDeletedEventToServerDebounce','CustomApiReadF','Custom\x20APIs','InstanceHooksReadF','mkdirSync','load','printNotesToProvideLocalClient','CollectionHooksWriteF','addDir','SchedulersReadF','\x20Please\x20provide\x20settings\x20in\x20:\x20','padStart',']\x20:\x20','am_system_api_settings','readdirSync','./local-client.config','DatabaseHooksWriteF','response','Connection\x20closed.','INSTANCES','install','CUSTOM_APIS','normalize','onerror','✓\x20Send\x20:\x20[','db-migrations','process-initializers','Database\x20migrations',']\x20:\x20[','1274464DRAniW','link','all','CollectionHooksReadF','PUT_REPLACE','5530272BvjfoZ','statSync','preHooks','DELETE','custom-apis','npm','posix','parse','INSTANCE_HOOKS','ui-maker-styles','&user-path=','unlink','db-interfaces.d.ts','data','paths','webSocketURL','copyI18NToAnotherDir','——————————————————————————————————————————————————————————————————————————————————','copyDBMastersToAnotherDir','CustomApisWriteF','DATABASE_HOOKS','basename','orangeStart','then','slice','TOKEN_VALIDATION','addProcessHooks','fsMkDir','.yaml','ui-maker-utils','--no-save','UtilityClasses','✓\x20Receive\x20:\x20[','am_ui_maker_styles','am_process_initializers','skipWatchInputs','schedulers','start','UI_MAKER_UTILITY_CLASS','am_web_socket_events','am_utility_classes','CustomApis','am_database_hooks','printNotes','beforeExit','am_events','am_db_masters','exports','bind','message','THIRD_PARTY_API_SETTINGS','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','.js','DBMasterStylesReadF','databaseName','I18Ns','WebSocket\x20events','SystemApiHooksWriteF','DB_MASTERS','chokidar@4.0.3','ThirdPartyApiWriteF','fsExistsSync','Please\x20run\x20using\x20administrator\x20privileges.','243uMQBxL','split','UIMakerUtils','content','apiId','REGISTER','copySchemasToAnotherDir','mkdir','copyProcessInitializersToAnotherDir','UTILITY_CLASSES','SchemaWriteF','-lc','am_instance_hooks','am_i18ns','InstanceHooks','copyCustomApisToAnotherDir','1IkRMvy','UNREGISTER','i18ns','am_system_api_hooks','readDirCustom','entries','localClientPath','DBMasterStylesWriteF','sep','./src','copyDBMigrationsToAnotherDir','processReceivedEvent','EventsWriteF','endsWith','copyFilesToProjectDir','getCategoryOfPath','.gitignore','DBMastersWriteF','types','✅\x20node_modules\x20installed','✅\x20dependencies\x20installed','\x1b[36m','fsReadDir','SchemaReadF','type','2864190MvBkaQ','LC_DATA_REQ_RES','SystemApiSettings','projectDirectory','⏳\x20Connecting\x20to\x20server...','InstanceApiHooksWriteF','exit','checkForNodeVersion','CONNECTED','DBMigrationsReadF','UtilityClassesReadF','onclose','postHooks','syncAllDataWithServer','Test\x20cases','Database\x20hooks','copyUtilityClassesToAnotherDir','apiCategory','DBMasterUtilsReadF','name','fsWriteFile','?authTokenInfo=ws-local-client-sync&authorization=','LC_SEND_ALL_DATA','\x1b[0m','UNKNOWN','SIGTERM','InstanceApiSettings','spawn','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','shuttingDown','SIGTERM\x20received\x20—\x20shutting\x20down','getChangedFolderForDeleted','instances','readFileSync','colorEnd','dirname','Schedulers','rmSync','src','add','copyWebSocketEventsToAnotherDir','fsMkDirSync','unlinkDir','InstanceApiHooks','executeNpmRun','Utility\x20classes','node_modules','invalidOnEvents','change','isDirectory','DatabasesMigrations','Error\x20during\x20shutdown','base64','startsWith','relative','sendDeletedEventToServerInternal','WEB_SOCKET_EVENT','SYSTEM_API_HOOKS','Error\x20while\x20connecting\x20to\x20WS\x20server.','removeEmptyDirsSync','tpInstalledApiBundleName','collectionName','log','promises','onmessage','15IUVljv','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','push','copyDBMasterUtilsToAnotherDir','writeFile','PUT','EVENTS','package.json','SYSTEM_APIS','Third\x20party\x20API\x20settings','fsLink','customApiName','copyCollectionHooksToAnotherDir','versions','replace','watch\x20handler\x20error','tpInstalledApiName','DatabaseHooks','path','toString','startWatch','join','UI\x20maker\x20styles','validOnEvents','SystemApiHooksReadF','send','System\x20API\x20hooks','SCHEDULERS','Watcher\x20error:','✅\x20Local\x20client\x20started...','SchedulersWriteF','watcher','instanceName','error','Process\x20initializers','copyThirdPartyApisToAnotherDir','LC_DATA_MODIFIED_IN_DATABASE','normalizePath','eventType','appRoot','DB\x20master\x20utils','Schemas','DELETE_ALL','schemas','11MRfEun','close','compilerOptions','unlinkSync','am_tp_api_versions','eventData','AmTestCases','copyTestCasesToAnotherDir','Instance\x20API\x20hooks','am_instance_api_settings','adminUserPath','WebSocketEventsWriteF','ProcessI18NWriteF','Instance\x20API\x20settings','onopen','instance-api-hooks','js-yaml@4.1.0','collection-hooks','dbInterfacesFile','copySystemApiHooksToAnotherDir','tsconfig.json','nodeModulesCopied','unhandledRejection','shutdownAndExit','instance-hooks','UIMakerStyles','system-api-hooks','copyEventsToAnotherDir','am_custom_apis','TestCasesWriteF','WebSocketEventsReadF','\x1b[38;2;255;165;0m','DatabaseHooksReadF','DBMasterUtilsWriteF','copyDBMasterStylesToAnotherDir','cpSync','length','serializeFolderWithBinary','Events','database-hooks','debounce','getMinutes','systemApiName','parseYaml','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','NOTIFICATION','dir','skipFileWritingForLocal','toLowerCase','cyanStart','rmdirSync','tests','getCurrentTime','stringify','version','repo','am_database_migrations','279568heHxes','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','installRequiredPackages','utf8','instanceApiName','1749134nTPOZg','EVENTS_WS','web-socket-events','js-yaml','copyInstanceHooksToAnotherDir','EventsReadF','am_tp_api_settings','apis','.config.ts','am_schedulers','getSeconds','apply','TEST_CASES','watch','Third\x20party\x20APIs','SystemApiHooks','eventListeners','⏳\x20node_modules\x20installation\x20process\x20started','copyInstanceApiHooksToAnotherDir','child_process','connectToServerViaWS','createLCProjectDirectory','fsReadFile','COLLECTION_HOOKS','ThirdPartyApiReadF','events','copyDatabaseHooksToAnotherDir','CollectionHooks','.ts','listeners','getChangedFolder','sendToServer','am_collection_hooks','getHours','isActive','isWSConnectedFirstTime','SYSTEM_API_SETTINGS','18068600utAyYa','syncToken','--force','ui-maker-pages','amTypes','copySchedulersToAnotherDir','readdir','folderPath','THIRD_PARTY_APIS','chokidar','DB\x20masters','config','ProcessInitializersWriteF','baseUrl','writeMemfsJsonToDisk','ws-events','2185337vOpsqh','\x20Current\x20Dir\x20:\x20'];a0_0x3176=function(){return _0x3ada50;};return a0_0x3176();}
|