@sava-info-systems/api-maker-with-extensions 1.19.0 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -1
- package/README.md +108 -4
- package/assets-deployment/.env +1 -1
- package/dist/8447.8caa67c3eb5d2b55.js +1 -0
- package/dist/index.html +1 -1
- package/dist/main.1da32156380b46d5.js +1 -0
- package/dist/{runtime.f7e0fa10d087fa0b.js → runtime.212fca73d6a42b3a.js} +1 -1
- package/main.js +1 -1
- package/package.json +5 -5
- package/sandbox/sandbox.js +1 -1
- package/src/tools/local-client.js +1 -1
- package/dist/8447.87b3cf73f79cd889.js +0 -1
- package/dist/main.ffc8631f3e17b1c3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x5c94(){const _0x2b48e6=['Database\x20migrations','EventsWriteF','basename','TOKEN_VALIDATION','copyDBMastersToAnotherDir','adminUserPath','Please\x20run\x20using\x20administrator\x20privileges.','Instance\x20hooks','UNKNOWN','config','entries','add','19144594sBTLlx','schedulers','SystemApiSettings','\x1b[38;2;255;165;0m','dbInterfacesFile','collection-hooks','ui-maker-pages','startWatch','ProcessInitializersWriteF','close','watcher','message','change','\x1b[36m','checkForNodeVersion','exports','\x27\x20exited\x20with\x20code\x20','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','DBMasterUtilsReadF','DatabasesMigrations','apiId','SIGINT\x20received\x20—\x20shutting\x20down','fsLink','mkdir','am_web_socket_events','isActive','instanceName','SCHEMAS','DELETE','instanceApiName','ProcessI18NWriteF','copyInstanceApiHooksToAnotherDir','relative','I18NS','CONNECTED','SystemApiHooksReadF','replace','response','UNREGISTER','.js','eventType','printNotes','24jKsIKS','copyDatabaseHooksToAnotherDir','PUT','parseYaml','prototype','UTILITY_CLASSES','TEST_CASES','isWSConnectedFirstTime','log','.yaml','Database\x20hooks','DB\x20master\x20utils','ProcessInitializers','errors','bind','dirname','ThirdPartyApiReadF','compilerOptions','am_tp_installed_apis','INSTANCE_HOOKS','readFile','SystemApiHooksWriteF','databaseName','ui-maker-styles','ProcessI18NReadF','Error\x20while\x20connecting\x20to\x20WS\x20server.','AmEvents','repo','custom-apis','keys','skipWatchInputs','TestCasesReadF','push','InstanceApiHooksWriteF','installRequiredPackages','Error\x20during\x20shutdown','UI_MAKER_STYLES','9gBKMVQ','SchemaReadF','executeNpmRun','posix','DELETE_ALL','versions','22lCisLN','WEB_SOCKET_EVENT','DB_MASTERS','customApiName','base64','readdirSync','SchemaWriteF','COLLECTION_HOOKS','syncAllDataWithServer','paths','fsReadFile','split','readDirCustom','Events','postHooks','am_database_migrations','debounce','SCHEDULERS','3943428RFHyoe','copyWebSocketEventsToAnotherDir','third-party-apis','tpInstalledApiName','UIMakerStyles','Custom\x20APIs','send','error','copyEventsToAnotherDir','mkdirSync','fsReadDir','DATABASE_HOOKS','6659268pFyyry','am_system_api_settings','normalize','CustomApis','fsMkDirSync','load','readFileSync','js-yaml','CollectionHooksWriteF','onerror','npm','listeners','unlink','EVENTS_WS','copyFilesToProjectDir','node_modules',']\x20:\x20','Collection\x20hooks','colorEnd','✅\x20Local\x20client\x20started...','onmessage','InstanceHooks','length','LC_SEND_ALL_DATA','AmTestCases','DBMigrationsReadF','getChangedFolder','Third\x20party\x20API\x20settings','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','Utility\x20classes','version','parse','InstanceHooksWriteF','am_tp_api_versions','statSync','padStart','copyUtilityClassesToAnotherDir','join','instance-api-hooks','192269sikbvh','UIMakerUtils','toLowerCase','orangeStart','PROCESS_INITIALIZERS','filter','WebSocketEventsReadF','am_process_initializers','path','slice','db-interfaces.d.ts','preHooks','child_process','type','validOnEvents','data','\x1b[0m','watch','.css','sendDeletedEventToServerDebounce','getCurrentTime','writeMemfsJsonToDisk','Third\x20party\x20APIs','folderPath','post-hooks','5SQZTME','PUT_REPLACE','instances','INSTANCE_API_HOOKS','content','Cannot\x20find\x20module\x20\x27','⏳\x20Connecting\x20to\x20server...','MODULE_NOT_FOUND','DBMasterUtilsWriteF','resolve','addDir','removeEmptyDirsSync','install','✓\x20Receive\x20:\x20[','DBMasterStylesReadF','getCategoryOfPath','package-lock.json','INSTANCE_API_SETTINGS','——————————————————————————————————————————————————————————————————————————————————','Test\x20cases',']\x20:\x20[','System\x20API\x20hooks','am_custom_apis','INSTANCES','.gitignore','isDirectory','tsconfig.json','38pQfJvT','serializeFolderWithBinary','Instance\x20API\x20hooks','copyDBMigrationsToAnotherDir','SYSTEM_API_HOOKS','✅\x20dependencies\x20installed','fsWriteFile','baseUrl','copyInstanceHooksToAnotherDir','skipFileWritingForLocal','⏳\x20dependencies\x20installation\x20process\x20started','POST','copyI18NToAnotherDir','start','\x20Please\x20provide\x20settings\x20in\x20:\x20','nodeModulesCopied','13pMdnXI','package.json','LC_DATA_MODIFIED_IN_DATABASE','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','am_schemas','unlinkDir','✅\x20node_modules\x20installed','shutdownAndExit','104UOVBoV','DBMigrationsWriteF','SchedulersReadF','am-types','.config.ts','apply','REGISTER','DB\x20masters','amTypes','all','instance-hooks','chokidar@4.0.3','sep','SchedulersWriteF','shuttingDown','copySchedulersToAnotherDir','sendToServer','InstanceApiHooks','copySystemApiHooksToAnotherDir','InstanceApiHooksReadF','NOTIFICATION','am_ui_maker_utils','23504UkThhn','DBMasterStylesWriteF','eventData','readdir','WebSocketEvents','-lc','types','collectionName','DB_MIGRATIONS','CUSTOM_APIS','DBMastersReadF','processReceivedEvent','connectToServerViaWS','i18ns','printNotesToProvideLocalClient','cpSync','code','am_utility_classes','Schemas','Watcher\x20error:','InstanceHooksReadF','.ts','spawn','then','copyThirdPartyApisToAnotherDir','am_instance_hooks','⏳\x20node_modules\x20installation\x20process\x20started','?authTokenInfo=ws-local-client-sync&authorization=','getHours','startsWith','promises','beforeExit','js-yaml@4.1.0','EVENTS','DBMasters','SYSTEM_APIS','apiCategory','rmdirSync','normalizePath','UtilityClasses','LOCAL_CLIENT_SYNC_EVENTS','localClientPath','Schedulers','endsWith','fsMkDir','systemApiName','Process\x20initializers','am_database_hooks','fsExistsSync','unhandledRejection','Connection\x20closed.','utf8','&user-path=','src','THIRD_PARTY_APIS','ui-maker-utils','copyCustomApisToAnotherDir','pre-hooks','unlinkSync','am_instance_api_hooks','createLCProjectDirectory','tpInstalledApiBundleName','am_db_masters','EventsReadF','✓\x20Send\x20:\x20[','chokidar','copyProcessInitializersToAnotherDir','SIGTERM\x20received\x20—\x20shutting\x20down','copyCollectionHooksToAnotherDir','sendDeletedEventToServerInternal','System\x20API\x20settings','UI\x20maker\x20styles','I18Ns','onclose','syncToken','copyDBMasterStylesToAnotherDir','name','watch\x20handler\x20error','invalidOnEvents','call','am_tp_api_settings','dir','addProcessHooks','8696dNNkAK','LC_DATA_REQ_RES','cyanStart','projectDirectory','UI_MAKER_UTILITY_CLASS','copyTestCasesToAnotherDir','exit','am_i18ns','web-socket-events','symlinkSync','eventListeners','8792030SOqdQZ','uncaughtException','CollectionHooks'];a0_0x5c94=function(){return _0x2b48e6;};return a0_0x5c94();}function a0_0xf806(_0x10b86b,_0x1b0e71){const _0x5c949a=a0_0x5c94();return a0_0xf806=function(_0xf806f6,_0x12850f){_0xf806f6=_0xf806f6-0xf4;let _0x1b87ba=_0x5c949a[_0xf806f6];return _0x1b87ba;},a0_0xf806(_0x10b86b,_0x1b0e71);}(function(_0xfae54d,_0x263f6a){const _0x17fb77=a0_0xf806,_0x20018e=_0xfae54d();while(!![]){try{const _0x2bb5b0=parseInt(_0x17fb77(0x24b))/0x1*(-parseInt(_0x17fb77(0x110))/0x2)+parseInt(_0x17fb77(0x1a7))/0x3*(-parseInt(_0x17fb77(0x163))/0x4)+parseInt(_0x17fb77(0x230))/0x5*(parseInt(_0x17fb77(0x1f0))/0x6)+parseInt(_0x17fb77(0x217))/0x7*(parseInt(_0x17fb77(0xfa))/0x8)+-parseInt(_0x17fb77(0x1cc))/0x9*(parseInt(_0x17fb77(0x16e))/0xa)+parseInt(_0x17fb77(0x1d2))/0xb*(-parseInt(_0x17fb77(0x1e4))/0xc)+parseInt(_0x17fb77(0x25b))/0xd*(parseInt(_0x17fb77(0x17d))/0xe);if(_0x2bb5b0===_0x263f6a)break;else _0x20018e['push'](_0x20018e['shift']());}catch(_0x4c9d65){_0x20018e['push'](_0x20018e['shift']());}}}(a0_0x5c94,0xcb9db),((()=>{const _0x276446=a0_0xf806;var _0x43be4e={0x3dc:(_0x1fa1b5,_0xe17e60,_0x5b58db)=>{'use strict';const _0x1b0e0f=a0_0xf806;var _0x2f0ddb='src/tools';_0xe17e60['_6']=_0xe17e60['EN']=_0xe17e60['Yl']=_0xe17e60['QX']=void 0x0;const _0x2a0ea6=_0x5b58db(0x3a),_0x38e9ea=_0x5b58db(0x2a0),_0x5ef9cc=_0x5b58db(0x170);var _0x513751,_0x9aed2c,_0x2bbdcd,_0x3c2731,_0x57bf68,_0xf11aa7;new class{constructor(){const _0x29dc8c=a0_0xf806;this['EL']=!0x1,this['projectDirectory']='',this['C']={'localClientPath':'./local-client.config','src':_0x29dc8c(0x145),'repo':_0x29dc8c(0x1c2),'types':_0x29dc8c(0x116),'amTypes':_0x29dc8c(0xfd),'versions':_0x29dc8c(0x1d1),'apis':'apis','listeners':_0x29dc8c(0x1fb),'postHooks':_0x29dc8c(0x22f),'preHooks':_0x29dc8c(0x149),'dbInterfacesFile':_0x29dc8c(0x221),'UtilityClassesReadF':_0x29dc8c(0x20d),'CustomApiReadF':_0x29dc8c(0x1e9),'SchedulersReadF':_0x29dc8c(0x13a),'WebSocketEventsReadF':'WebSocket\x20events','SchemaReadF':_0x29dc8c(0x122),'DBMigrationsReadF':_0x29dc8c(0x171),'ProcessInitializersReadF':_0x29dc8c(0x13e),'ProcessI18NReadF':_0x29dc8c(0x11d),'DBMastersReadF':'DB\x20masters','DBMasterStylesReadF':_0x29dc8c(0x157),'DBMasterUtilsReadF':_0x29dc8c(0x1b2),'TestCasesReadF':_0x29dc8c(0x243),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':'Events','InstanceApiHooksReadF':_0x29dc8c(0x24d),'SystemApiHooksReadF':_0x29dc8c(0x245),'CollectionHooksReadF':_0x29dc8c(0x201),'DatabaseHooksReadF':_0x29dc8c(0x1b1),'InstanceHooksReadF':_0x29dc8c(0x178),'CustomApisWriteF':'custom-apis','SchedulersWriteF':_0x29dc8c(0x17e),'WebSocketEventsWriteF':_0x29dc8c(0x16b),'SchemaWriteF':'schemas','DBMigrationsWriteF':'db-migrations','ProcessInitializersWriteF':'process-initializers','ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0x29dc8c(0x183),'DBMasterStylesWriteF':_0x29dc8c(0x1be),'DBMasterUtilsWriteF':_0x29dc8c(0x147),'TestCasesWriteF':'tests','ThirdPartyApiWriteF':_0x29dc8c(0x1e6),'EventsWriteF':'events','InstanceApiHooksWriteF':_0x29dc8c(0x216),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0x29dc8c(0x182),'DatabaseHooksWriteF':'database-hooks','InstanceHooksWriteF':_0x29dc8c(0x104)},this[_0x29dc8c(0x1c5)]=!0x1,this[_0x29dc8c(0x254)]={},this[_0x29dc8c(0x25a)]=!0x1,this['orangeStart']=_0x29dc8c(0x180),this['cyanStart']=_0x29dc8c(0x18a),this[_0x29dc8c(0x202)]=_0x29dc8c(0x227),this[_0x29dc8c(0x1ae)]=!0x1,this[_0x29dc8c(0x22a)]=this[_0x29dc8c(0x1e2)](this[_0x29dc8c(0x155)],0x1f4);}async['start'](){const _0x460d5e=a0_0xf806;this[_0x460d5e(0x162)](),this['checkForNodeVersion'](),this[_0x460d5e(0x140)](this['C'][_0x460d5e(0x139)]+_0x460d5e(0x1a4))||(this[_0x460d5e(0x11e)](),this[_0x460d5e(0xf9)](0x1)[_0x460d5e(0x127)]()),this[_0x460d5e(0x17a)]=_0x5b58db(0x300)(this['C'][_0x460d5e(0x139)])(),await this['printNotes'](),this[_0x460d5e(0x23b)](_0x38e9ea[_0x460d5e(0x215)](_0x2f0ddb,this['C'][_0x460d5e(0x145)])),await this[_0x460d5e(0x14c)](),await this[_0x460d5e(0x1c9)](),await this[_0x460d5e(0x11c)]();}[_0x1b0e0f(0x18b)](){const _0x3bc29e=_0x1b0e0f,_0x4298c7=process['version'];parseInt(_0x4298c7[_0x3bc29e(0x1dd)]('.')[0x0][_0x3bc29e(0x1a1)]('v',''),0xa)<0x16&&(console['error'](this['orangeStart']+'Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20'+_0x4298c7+this['colorEnd']),this[_0x3bc29e(0xf9)](0x1)[_0x3bc29e(0x127)]());}async[_0x1b0e0f(0x1a6)](){const _0x3fa255=_0x1b0e0f;console[_0x3fa255(0x1af)](this[_0x3fa255(0x21a)]),console[_0x3fa255(0x1af)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x3fa255(0x1af)](_0x3fa255(0x20c)),console[_0x3fa255(0x1af)](_0x3fa255(0x242)),console['log'](this[_0x3fa255(0x202)]),console[_0x3fa255(0x1af)]('');}[_0x1b0e0f(0x11e)](){const _0x3e1023=_0x1b0e0f;console[_0x3e1023(0x1af)](_0x3e1023(0x180)),console[_0x3e1023(0x1af)](_0x3e1023(0x259)+this['C'][_0x3e1023(0x139)]+_0x3e1023(0x1a4)),console[_0x3e1023(0x1af)](_0x3e1023(0x227)),console[_0x3e1023(0x1af)]('');}async[_0x1b0e0f(0x14c)](){const _0x5e6601=_0x1b0e0f,_0x18792f=_0x38e9ea[_0x5e6601(0x173)](_0x2f0ddb),_0x5ac93e=_0x38e9ea[_0x5e6601(0x215)](_0x2f0ddb,'..',_0x18792f+_0x5e6601(0x115));this['projectDirectory']=_0x5ac93e,_0x2a0ea6['rmSync'](_0x5ac93e,{'recursive':!0x0,'force':!0x0}),await this['fsMkDir'](_0x5ac93e,{'recursive':!0x0});}async[_0x1b0e0f(0x1fe)](_0x10d4cb){const _0x4fcd78=_0x1b0e0f;await this[_0x4fcd78(0x14c)](),this[_0x4fcd78(0x1f4)](_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],this['C'][_0x4fcd78(0x145)]),{'recursive':!0x0}),_0x2a0ea6[_0x4fcd78(0x11f)](_0x38e9ea['join'](_0x2f0ddb,_0x4fcd78(0x25c)),_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],_0x4fcd78(0x25c))),_0x2a0ea6[_0x4fcd78(0x11f)](_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,_0x4fcd78(0x248)),_0x38e9ea['join'](this['projectDirectory'],'.gitignore'));const _0x46e510=_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,_0x4fcd78(0x24a)),_0x1d9185=JSON[_0x4fcd78(0x20f)](await this[_0x4fcd78(0x1dc)](_0x46e510,{'encoding':'utf8'}));_0x1d9185[_0x4fcd78(0x1b8)][_0x4fcd78(0x252)]='./src',_0x1d9185['compilerOptions'][_0x4fcd78(0x1db)]['*'][_0x4fcd78(0x1c7)]('*'),await this['fsWriteFile'](_0x38e9ea[_0x4fcd78(0x215)](this[_0x4fcd78(0x166)],_0x4fcd78(0x24a)),JSON['stringify'](_0x1d9185,null,0x4),{'encoding':_0x4fcd78(0x143)}),await _0x2a0ea6[_0x4fcd78(0x12e)]['cp'](_0x38e9ea[_0x4fcd78(0x215)](_0x2f0ddb,this['C'][_0x4fcd78(0x102)]),_0x38e9ea[_0x4fcd78(0x215)](this['projectDirectory'],this['C'][_0x4fcd78(0x145)],this['C'][_0x4fcd78(0x102)]),{'recursive':!0x0}),await _0x2a0ea6[_0x4fcd78(0x12e)]['cp'](_0x38e9ea['join'](_0x2f0ddb,this['C'][_0x4fcd78(0x145)],this[_0x4fcd78(0x17a)][_0x4fcd78(0x176)],this['C'][_0x4fcd78(0x116)],this['C'][_0x4fcd78(0x181)]),_0x38e9ea[_0x4fcd78(0x215)](this['projectDirectory'],this['C'][_0x4fcd78(0x145)],this['C'][_0x4fcd78(0x102)],this['C']['dbInterfacesFile']),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x4fcd78(0x148)](),await this[_0x4fcd78(0x109)](),await this['copySchemasToAnotherDir'](),await this[_0x4fcd78(0x24e)](),await this[_0x4fcd78(0x152)](),await this[_0x4fcd78(0x257)](),await this[_0x4fcd78(0x168)](),await this[_0x4fcd78(0x128)](),await this[_0x4fcd78(0x1ec)](),await this[_0x4fcd78(0x19c)](),await this[_0x4fcd78(0x10c)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x4fcd78(0x154)](),await this[_0x4fcd78(0x1a8)](),await this[_0x4fcd78(0x253)](),await this[_0x4fcd78(0x175)](),await this[_0x4fcd78(0x15b)](),await this['copyDBMasterUtilsToAnotherDir'](),_0x10d4cb&&(console[_0x4fcd78(0x1af)](_0x4fcd78(0x12a)),await this[_0x4fcd78(0x1ce)](_0x4fcd78(0x1fa),[_0x4fcd78(0x23c),'--force']),console['log'](_0x4fcd78(0xf8)));try{_0x2a0ea6[_0x4fcd78(0x16c)](_0x38e9ea['join'](_0x2f0ddb,_0x4fcd78(0x1ff)),_0x38e9ea['join'](this[_0x4fcd78(0x166)],_0x4fcd78(0x1ff)),_0x4fcd78(0x161));}catch(_0x55695a){console[_0x4fcd78(0x1af)](_0x4fcd78(0x177)),console[_0x4fcd78(0x1af)](_0x55695a),await this[_0x4fcd78(0xf9)](0x1);}}async[_0x1b0e0f(0x1c9)](){const _0x5852eb=_0x1b0e0f;console[_0x5852eb(0x1af)](_0x5852eb(0x255));try{_0x2a0ea6[_0x5852eb(0x14a)](_0x38e9ea[_0x5852eb(0x215)](_0x2f0ddb,_0x5852eb(0x240)));}catch(_0x26a97c){}await this[_0x5852eb(0x1ce)](_0x5852eb(0x1fa),[_0x5852eb(0x23c),'--no-save',_0x5852eb(0x105),_0x5852eb(0x130)]),console[_0x5852eb(0x1af)](_0x5852eb(0x250));}async[_0x1b0e0f(0x214)](){const _0x35c257=_0x1b0e0f,_0x440752=this['C']['UtilityClassesReadF'],_0x119bdd=_0x38e9ea[_0x35c257(0x215)](_0x2f0ddb,this['C'][_0x35c257(0x145)],this['config']['adminUserPath'],_0x440752),_0xd60d01=await this['readDirCustom'](_0x119bdd,null);for(const _0x1f5303 of _0xd60d01){const _0x25bebe=_0x38e9ea['join'](_0x119bdd,_0x1f5303,_0x1f5303+_0x35c257(0x1b0));if(!this['fsExistsSync'](_0x25bebe))continue;const _0x4dcb23=await this[_0x35c257(0x1dc)](_0x25bebe,{'encoding':'utf8'}),_0x4bc5fd=await this['parseYaml'](_0x4dcb23);for(const _0x4702dc of _0x4bc5fd['versions']||[])if(!0x0===_0x4702dc[_0x35c257(0x196)]){const _0xea658b=_0x38e9ea[_0x35c257(0x215)](_0x119bdd,_0x1f5303,this['C']['versions'],_0x4702dc['version'],_0x4702dc['name']+_0x35c257(0x125)),_0x1dbfb1=_0x38e9ea[_0x35c257(0x215)](this['projectDirectory'],this['C'][_0x35c257(0x145)],_0x4bc5fd[_0x35c257(0x22e)],_0x4bc5fd[_0x35c257(0x15c)]+_0x35c257(0x125));await this[_0x35c257(0x13c)](_0x38e9ea[_0x35c257(0x1b6)](_0x1dbfb1),{'recursive':!0x0}),await this[_0x35c257(0x193)](_0xea658b,_0x1dbfb1);}}}async[_0x1b0e0f(0x148)](){const _0x5c759c=_0x1b0e0f,_0x486156=this['C']['CustomApiReadF'],_0x3defb0=this['C']['CustomApisWriteF'],_0x45b0f4=_0x38e9ea[_0x5c759c(0x215)](_0x2f0ddb,this['C'][_0x5c759c(0x145)],this[_0x5c759c(0x17a)][_0x5c759c(0x176)],_0x486156),_0x2b567d=await this['readDirCustom'](_0x45b0f4,null);for(const _0x304eae of _0x2b567d){const _0x2a8bdb=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,_0x304eae+_0x5c759c(0x1b0));if(!this[_0x5c759c(0x140)](_0x2a8bdb))continue;const _0x31e05d=await this['fsReadFile'](_0x2a8bdb,{'encoding':_0x5c759c(0x143)}),_0x129b82=await this[_0x5c759c(0x1aa)](_0x31e05d);for(const _0x42c5b3 of _0x129b82[_0x5c759c(0x1d1)]||[])if(!0x0===_0x42c5b3[_0x5c759c(0x196)]){const _0x3f5ade=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,this['C'][_0x5c759c(0x1d1)],_0x42c5b3[_0x5c759c(0x20e)]),_0x56c0b3=_0x38e9ea['join'](_0x3f5ade,_0x42c5b3[_0x5c759c(0x15c)]+_0x5c759c(0x125)),_0x5170c7=_0x38e9ea[_0x5c759c(0x215)](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],_0x129b82[_0x5c759c(0x15c)]+'.ts');await this[_0x5c759c(0x13c)](_0x38e9ea[_0x5c759c(0x1b6)](_0x5170c7),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x56c0b3,_0x5170c7);const _0x1cda01=_0x38e9ea[_0x5c759c(0x215)](_0x45b0f4,_0x304eae,_0x304eae+_0x5c759c(0xfe)),_0x358c9f=_0x38e9ea['join'](this[_0x5c759c(0x166)],this['C']['src'],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],_0x129b82[_0x5c759c(0x15c)]+_0x5c759c(0xfe));await this[_0x5c759c(0x193)](_0x1cda01,_0x358c9f);for(const _0x43ce4c of _0x42c5b3['preHooks']){const _0x2e4319=_0x38e9ea['join'](_0x3f5ade,this['C']['preHooks'],_0x43ce4c[_0x5c759c(0x15c)]+_0x5c759c(0x125)),_0x52cec0=_0x38e9ea[_0x5c759c(0x215)](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],this['C']['preHooks'],_0x43ce4c[_0x5c759c(0x15c)]+_0x5c759c(0x125));await this[_0x5c759c(0x13c)](_0x38e9ea['dirname'](_0x52cec0),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x2e4319,_0x52cec0);}for(const _0x3a2277 of _0x42c5b3[_0x5c759c(0x1e0)]){const _0x51d788=_0x38e9ea[_0x5c759c(0x215)](_0x3f5ade,this['C'][_0x5c759c(0x1e0)],_0x3a2277['name']+_0x5c759c(0x125)),_0x236f21=_0x38e9ea['join'](this[_0x5c759c(0x166)],this['C'][_0x5c759c(0x145)],_0x3defb0,_0x129b82[_0x5c759c(0x21f)],this['C']['postHooks'],_0x3a2277['name']+'.ts');await this[_0x5c759c(0x13c)](_0x38e9ea[_0x5c759c(0x1b6)](_0x236f21),{'recursive':!0x0}),await this[_0x5c759c(0x193)](_0x51d788,_0x236f21);}}}}async[_0x1b0e0f(0x109)](){const _0x127b86=_0x1b0e0f,_0x353713=this['C'][_0x127b86(0xfc)],_0x2692b9=this['C'][_0x127b86(0x107)],_0x48470a=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this['config'][_0x127b86(0x176)],_0x353713),_0x4c49cc=await this[_0x127b86(0x1de)](_0x48470a,null);for(const _0x4e6033 of _0x4c49cc){const _0x8d1333=_0x38e9ea[_0x127b86(0x215)](_0x48470a,_0x4e6033,_0x4e6033+_0x127b86(0x1b0));if(!this[_0x127b86(0x140)](_0x8d1333))continue;const _0x407ab5=await this[_0x127b86(0x1dc)](_0x8d1333,{'encoding':_0x127b86(0x143)}),_0x574eb0=await this[_0x127b86(0x1aa)](_0x407ab5);for(const _0x2c3aa1 of _0x574eb0[_0x127b86(0x1d1)]||[])if(!0x0===_0x2c3aa1[_0x127b86(0x196)]){const _0x37c870=_0x38e9ea[_0x127b86(0x215)](_0x48470a,_0x4e6033,this['C'][_0x127b86(0x1d1)],_0x2c3aa1['version'],_0x2c3aa1[_0x127b86(0x15c)]+_0x127b86(0x125)),_0x4940ae=_0x38e9ea['join'](this[_0x127b86(0x166)],this['C'][_0x127b86(0x145)],_0x2692b9,_0x574eb0[_0x127b86(0x15c)]+_0x127b86(0x125));await this[_0x127b86(0x13c)](_0x38e9ea[_0x127b86(0x1b6)](_0x4940ae),{'recursive':!0x0}),await this[_0x127b86(0x193)](_0x37c870,_0x4940ae);}}}async['copySchemasToAnotherDir'](){const _0xb6c7d9=_0x1b0e0f,_0xb35e1d=this['C'][_0xb6c7d9(0x1cd)],_0xb54fa5=this['C'][_0xb6c7d9(0x1d8)],_0x243e37=_0x38e9ea[_0xb6c7d9(0x215)](_0x2f0ddb,this['C'][_0xb6c7d9(0x145)],this[_0xb6c7d9(0x17a)][_0xb6c7d9(0x176)],_0xb35e1d),_0x5913eb=await this['readDirCustom'](_0x243e37,null);for(const _0x293b64 of _0x5913eb){const _0x3c516d=_0x38e9ea[_0xb6c7d9(0x215)](_0x243e37,_0x293b64,_0x293b64+_0xb6c7d9(0x1b0));if(!this[_0xb6c7d9(0x140)](_0x3c516d))continue;const _0x4d2f8c=await this[_0xb6c7d9(0x1dc)](_0x3c516d,{'encoding':_0xb6c7d9(0x143)}),_0x44a149=await this['parseYaml'](_0x4d2f8c),_0x2427ef=_0x38e9ea[_0xb6c7d9(0x215)](this[_0xb6c7d9(0x166)],this['C']['src'],_0xb54fa5,_0x44a149['instanceName'],_0x44a149[_0xb6c7d9(0x1bd)]);await this['fsMkDir'](_0x2427ef,{'recursive':!0x0});const _0x3a1d7e=_0x38e9ea[_0xb6c7d9(0x215)](_0x243e37,_0x293b64,_0x44a149['collectionName']+_0xb6c7d9(0xfe)),_0x6dd559=_0x38e9ea[_0xb6c7d9(0x215)](_0x2427ef,_0x44a149[_0xb6c7d9(0x117)]+'.config.ts');await this[_0xb6c7d9(0x193)](_0x3a1d7e,_0x6dd559);}}async['copyDBMigrationsToAnotherDir'](){const _0x184917=_0x1b0e0f,_0x429fbe=this['C'][_0x184917(0x209)],_0x46f647=this['C'][_0x184917(0xfb)],_0x2bc7b9=_0x38e9ea[_0x184917(0x215)](_0x2f0ddb,this['C'][_0x184917(0x145)],this[_0x184917(0x17a)][_0x184917(0x176)],_0x429fbe),_0x4d89f1=await this['readDirCustom'](_0x2bc7b9,null);for(const _0x407d9c of _0x4d89f1){const _0x337f93=_0x38e9ea['join'](_0x2bc7b9,_0x407d9c,_0x407d9c+_0x184917(0x1b0));if(!this[_0x184917(0x140)](_0x337f93))continue;const _0x2a3f20=await this[_0x184917(0x1dc)](_0x337f93,{'encoding':_0x184917(0x143)}),_0xcfb8ab=await this[_0x184917(0x1aa)](_0x2a3f20),_0xbf879c=_0x38e9ea[_0x184917(0x215)](this[_0x184917(0x166)],this['C'][_0x184917(0x145)],_0x46f647);await this[_0x184917(0x13c)](_0xbf879c,{'recursive':!0x0});const _0x361824=_0x38e9ea[_0x184917(0x215)](_0x2bc7b9,_0x407d9c,_0xcfb8ab[_0x184917(0x15c)]+'.ts'),_0x128dbc=_0x38e9ea[_0x184917(0x215)](_0xbf879c,_0xcfb8ab[_0x184917(0x15c)]+_0x184917(0x125));await this['fsLink'](_0x361824,_0x128dbc);}}async[_0x1b0e0f(0x152)](){const _0x502da5=_0x1b0e0f,_0x56c9d6=this['C']['ProcessInitializersReadF'],_0xc92182=this['C'][_0x502da5(0x185)],_0x2ddab5=_0x38e9ea[_0x502da5(0x215)](_0x2f0ddb,this['C']['src'],this[_0x502da5(0x17a)][_0x502da5(0x176)],_0x56c9d6),_0x46622c=await this[_0x502da5(0x1de)](_0x2ddab5,null);for(const _0x342a0f of _0x46622c){const _0xb088be=_0x38e9ea[_0x502da5(0x215)](_0x2ddab5,_0x342a0f,_0x342a0f+_0x502da5(0x1b0));if(!this[_0x502da5(0x140)](_0xb088be))continue;const _0x449f8c=await this[_0x502da5(0x1dc)](_0xb088be,{'encoding':_0x502da5(0x143)}),_0xf20bcc=await this[_0x502da5(0x1aa)](_0x449f8c),_0x3bed9f=_0x38e9ea['join'](this[_0x502da5(0x166)],this['C']['src'],_0xc92182);await this[_0x502da5(0x13c)](_0x3bed9f,{'recursive':!0x0});const _0x58e1c4=_0x38e9ea[_0x502da5(0x215)](_0x2ddab5,_0x342a0f,_0xf20bcc[_0x502da5(0x15c)]+_0x502da5(0x125)),_0x46c648=_0x38e9ea[_0x502da5(0x215)](_0x3bed9f,_0xf20bcc['name']+'.ts');await this[_0x502da5(0x193)](_0x58e1c4,_0x46c648);}}async[_0x1b0e0f(0x257)](){const _0x17349a=_0x1b0e0f,_0x295464=this['C'][_0x17349a(0x1bf)],_0x98303b=this['C'][_0x17349a(0x19b)],_0xee1664=_0x38e9ea[_0x17349a(0x215)](_0x2f0ddb,this['C'][_0x17349a(0x145)],this[_0x17349a(0x17a)][_0x17349a(0x176)],_0x295464),_0x4858c6=await this['readDirCustom'](_0xee1664,null);for(const _0x54f304 of _0x4858c6){const _0x567594=_0x38e9ea[_0x17349a(0x215)](_0xee1664,_0x54f304,_0x54f304+_0x17349a(0x1b0));if(!this[_0x17349a(0x140)](_0x567594))continue;const _0x18ca76=await this[_0x17349a(0x1dc)](_0x567594,{'encoding':'utf8'}),_0x154ed3=await this[_0x17349a(0x1aa)](_0x18ca76),_0x2ccfa3=_0x38e9ea['join'](this[_0x17349a(0x166)],this['C'][_0x17349a(0x145)],_0x98303b);await this[_0x17349a(0x13c)](_0x2ccfa3,{'recursive':!0x0});const _0x2dc15c=_0x38e9ea['join'](_0xee1664,_0x54f304,_0x154ed3[_0x17349a(0x15c)]+_0x17349a(0x125)),_0x51d101=_0x38e9ea[_0x17349a(0x215)](_0x2ccfa3,_0x154ed3[_0x17349a(0x15c)]+_0x17349a(0x125));await this[_0x17349a(0x193)](_0x2dc15c,_0x51d101);}}async[_0x1b0e0f(0x175)](){const _0xd59868=_0x1b0e0f,_0x247e6e=this['C'][_0xd59868(0x11a)],_0x3f82f8=this['C']['DBMastersWriteF'],_0x41bd47=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this[_0xd59868(0x17a)][_0xd59868(0x176)],_0x247e6e),_0x1ce0ba=await this[_0xd59868(0x1de)](_0x41bd47,null);for(const _0x248dd6 of _0x1ce0ba){const _0x1b05c0=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x248dd6+'.yaml');if(!this[_0xd59868(0x140)](_0x1b05c0))continue;const _0x4f330d=await this[_0xd59868(0x1dc)](_0x1b05c0,{'encoding':'utf8'}),_0x883eed=await this[_0xd59868(0x1aa)](_0x4f330d),_0xa9bc2b=_0x38e9ea[_0xd59868(0x215)](this[_0xd59868(0x166)],this['C']['src'],_0x3f82f8,_0x883eed[_0xd59868(0x15c)]);await this['fsMkDir'](_0xa9bc2b,{'recursive':!0x0});const _0x509ba5=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x883eed[_0xd59868(0x15c)]+_0xd59868(0x125)),_0x5392a3=_0x38e9ea['join'](_0xa9bc2b,_0x883eed['name']+'.ts');await this['fsLink'](_0x509ba5,_0x5392a3);const _0x47c4c7=_0x38e9ea[_0xd59868(0x215)](_0x41bd47,_0x248dd6,_0x883eed[_0xd59868(0x15c)]+_0xd59868(0xfe)),_0x147664=_0x38e9ea[_0xd59868(0x215)](_0xa9bc2b,_0x883eed['name']+'.config.ts');await this[_0xd59868(0x193)](_0x47c4c7,_0x147664);}}async[_0x1b0e0f(0x15b)](){const _0x1f9447=_0x1b0e0f,_0x43eb55=this['C'][_0x1f9447(0x23e)],_0x201678=this['C'][_0x1f9447(0x111)],_0xebb512=_0x38e9ea[_0x1f9447(0x215)](_0x2f0ddb,this['C'][_0x1f9447(0x145)],this['config']['adminUserPath'],_0x43eb55),_0x26c289=await this['readDirCustom'](_0xebb512,null);for(const _0x507de1 of _0x26c289){const _0x1ebe20=_0x38e9ea[_0x1f9447(0x215)](_0xebb512,_0x507de1,_0x507de1+_0x1f9447(0x1b0));if(!this[_0x1f9447(0x140)](_0x1ebe20))continue;const _0x4e5767=await this[_0x1f9447(0x1dc)](_0x1ebe20,{'encoding':_0x1f9447(0x143)}),_0x1684a5=await this[_0x1f9447(0x1aa)](_0x4e5767),_0x4938cb=_0x38e9ea[_0x1f9447(0x215)](this[_0x1f9447(0x166)],this['C'][_0x1f9447(0x145)],_0x201678);await this['fsMkDir'](_0x4938cb,{'recursive':!0x0});const _0x26cb3f=_0x38e9ea[_0x1f9447(0x215)](_0xebb512,_0x507de1,_0x1684a5[_0x1f9447(0x15c)]+_0x1f9447(0x229)),_0x793030=_0x38e9ea['join'](_0x4938cb,_0x1684a5['name']+_0x1f9447(0x229));await this['fsLink'](_0x26cb3f,_0x793030);}}async['copyDBMasterUtilsToAnotherDir'](){const _0x805b07=_0x1b0e0f,_0x48360b=this['C'][_0x805b07(0x18f)],_0x3d8d85=this['C'][_0x805b07(0x238)],_0x40c4b8=_0x38e9ea[_0x805b07(0x215)](_0x2f0ddb,this['C'][_0x805b07(0x145)],this[_0x805b07(0x17a)]['adminUserPath'],_0x48360b),_0x56fe50=await this['readDirCustom'](_0x40c4b8,null);for(const _0x4825d8 of _0x56fe50){const _0x11d455=_0x38e9ea[_0x805b07(0x215)](_0x40c4b8,_0x4825d8,_0x4825d8+'.yaml');if(!this[_0x805b07(0x140)](_0x11d455))continue;const _0x5c5f0f=await this[_0x805b07(0x1dc)](_0x11d455,{'encoding':_0x805b07(0x143)}),_0x4f8930=await this[_0x805b07(0x1aa)](_0x5c5f0f),_0x555815=_0x38e9ea[_0x805b07(0x215)](this[_0x805b07(0x166)],this['C'][_0x805b07(0x145)],_0x3d8d85);await this['fsMkDir'](_0x555815,{'recursive':!0x0});const _0x5b10d9=_0x38e9ea[_0x805b07(0x215)](_0x40c4b8,_0x4825d8,_0x4f8930['name']+'.ts'),_0x15a477=_0x38e9ea[_0x805b07(0x215)](_0x555815,_0x4f8930['name']+_0x805b07(0x125));await this[_0x805b07(0x193)](_0x5b10d9,_0x15a477);}}async[_0x1b0e0f(0x168)](){const _0xd6fb09=_0x1b0e0f,_0xac8114=this['C'][_0xd6fb09(0x1c6)],_0x4e85ce=this['C']['TestCasesWriteF'],_0x280d6e=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0xd6fb09(0x145)],this[_0xd6fb09(0x17a)][_0xd6fb09(0x176)],_0xac8114),_0x1a6c78=await this['readDirCustom'](_0x280d6e,null);for(const _0x73ae6a of _0x1a6c78){const _0x4d9ec2=_0x38e9ea['join'](_0x280d6e,_0x73ae6a,_0x73ae6a+_0xd6fb09(0x1b0));if(!this[_0xd6fb09(0x140)](_0x4d9ec2))continue;const _0x55d046=await this[_0xd6fb09(0x1dc)](_0x4d9ec2,{'encoding':_0xd6fb09(0x143)}),_0xa15687=await this[_0xd6fb09(0x1aa)](_0x55d046),_0x32273d=_0x38e9ea[_0xd6fb09(0x215)](this[_0xd6fb09(0x166)],this['C'][_0xd6fb09(0x145)],_0x4e85ce);await this[_0xd6fb09(0x13c)](_0x32273d,{'recursive':!0x0});const _0x3b6df9=_0x38e9ea[_0xd6fb09(0x215)](_0x280d6e,_0x73ae6a,_0xa15687[_0xd6fb09(0x15c)]+_0xd6fb09(0x125)),_0x1b920e=_0x38e9ea[_0xd6fb09(0x215)](_0x32273d,_0xa15687[_0xd6fb09(0x15c)]+_0xd6fb09(0x125));await this['fsLink'](_0x3b6df9,_0x1b920e);}}async[_0x1b0e0f(0x128)](){const _0xfca5b6=_0x1b0e0f,_0x589646=this['C'][_0xfca5b6(0x1b7)],_0x389c59=this['C']['ThirdPartyApiWriteF'],_0x2c7dd7=_0x38e9ea[_0xfca5b6(0x215)](_0x2f0ddb,this['C'][_0xfca5b6(0x145)],this[_0xfca5b6(0x17a)][_0xfca5b6(0x176)],_0x589646);if(!this[_0xfca5b6(0x140)](_0x2c7dd7))return;const _0x518fa0=await this['readDirCustom'](_0x2c7dd7,null);for(const _0x57fd1d of _0x518fa0){const _0xb5bcd8=_0x38e9ea[_0xfca5b6(0x215)](_0x2c7dd7,_0x57fd1d,this['C']['apis']),_0xf9dc4e=await this['readDirCustom'](_0xb5bcd8,null);for(const _0x208c21 of _0xf9dc4e){const _0x366541=_0x38e9ea[_0xfca5b6(0x215)](_0xb5bcd8,_0x208c21,_0x208c21+_0xfca5b6(0x1b0));if(!this[_0xfca5b6(0x140)](_0x366541))continue;const _0x384af6=await this[_0xfca5b6(0x1dc)](_0x366541,{'encoding':_0xfca5b6(0x143)}),_0x243a2a=await this[_0xfca5b6(0x1aa)](_0x384af6);for(const _0x2cca29 of _0x243a2a[_0xfca5b6(0x1d1)]||[])if(!0x0===_0x2cca29[_0xfca5b6(0x196)]){const _0x277631=_0x38e9ea['join'](_0xb5bcd8,_0x208c21,this['C'][_0xfca5b6(0x1d1)],_0x2cca29[_0xfca5b6(0x20e)]),_0x443bae=_0x38e9ea['join'](_0x277631,_0x2cca29[_0xfca5b6(0x15c)]+_0xfca5b6(0x125)),_0x59f308=_0x38e9ea[_0xfca5b6(0x215)](this[_0xfca5b6(0x166)],this['C'][_0xfca5b6(0x145)],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],_0x243a2a[_0xfca5b6(0x15c)]+_0xfca5b6(0x125));await this['fsMkDir'](_0x38e9ea[_0xfca5b6(0x1b6)](_0x59f308),{'recursive':!0x0}),await this[_0xfca5b6(0x193)](_0x443bae,_0x59f308);const _0x95d7d0=_0x38e9ea[_0xfca5b6(0x215)](_0xb5bcd8,_0x208c21,_0x208c21+'.config.ts'),_0x2f9556=_0x38e9ea[_0xfca5b6(0x215)](this[_0xfca5b6(0x166)],this['C']['src'],_0x389c59,_0x57fd1d,_0x243a2a['path'],_0x243a2a['name']+_0xfca5b6(0xfe));await this[_0xfca5b6(0x193)](_0x95d7d0,_0x2f9556);for(const _0x1a12fe of _0x2cca29[_0xfca5b6(0x222)]){const _0x152df2=_0x38e9ea[_0xfca5b6(0x215)](_0x277631,this['C'][_0xfca5b6(0x222)],_0x1a12fe[_0xfca5b6(0x15c)]+'.ts'),_0x1de727=_0x38e9ea['join'](this[_0xfca5b6(0x166)],this['C'][_0xfca5b6(0x145)],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],this['C'][_0xfca5b6(0x222)],_0x1a12fe['name']+_0xfca5b6(0x125));await this['fsMkDir'](_0x38e9ea[_0xfca5b6(0x1b6)](_0x1de727),{'recursive':!0x0}),await this[_0xfca5b6(0x193)](_0x152df2,_0x1de727);}for(const _0x23e95c of _0x2cca29[_0xfca5b6(0x1e0)]){const _0x4a22ee=_0x38e9ea[_0xfca5b6(0x215)](_0x277631,this['C'][_0xfca5b6(0x1e0)],_0x23e95c[_0xfca5b6(0x15c)]+_0xfca5b6(0x125)),_0x1f1ad5=_0x38e9ea['join'](this[_0xfca5b6(0x166)],this['C']['src'],_0x389c59,_0x57fd1d,_0x243a2a[_0xfca5b6(0x21f)],this['C'][_0xfca5b6(0x1e0)],_0x23e95c[_0xfca5b6(0x15c)]+_0xfca5b6(0x125));await this[_0xfca5b6(0x13c)](_0x38e9ea[_0xfca5b6(0x1b6)](_0x1f1ad5),{'recursive':!0x0}),await this['fsLink'](_0x4a22ee,_0x1f1ad5);}}}}}async[_0x1b0e0f(0x1ec)](){const _0xd89e84=_0x1b0e0f,_0x1f6d8a=this['C'][_0xd89e84(0x14f)],_0x4b7c69=this['C'][_0xd89e84(0x172)],_0x498fdc=_0x38e9ea['join'](_0x2f0ddb,this['C']['src'],this[_0xd89e84(0x17a)][_0xd89e84(0x176)],_0x1f6d8a),_0x3aff67=await this[_0xd89e84(0x1de)](_0x498fdc,null);for(const _0x550fe4 of _0x3aff67){const _0x302eac=_0x38e9ea[_0xd89e84(0x215)](_0x498fdc,_0x550fe4,_0x550fe4+_0xd89e84(0x1b0));if(!this[_0xd89e84(0x140)](_0x302eac))continue;const _0x2d9420=await this[_0xd89e84(0x1dc)](_0x302eac,{'encoding':'utf8'}),_0x450fec=await this[_0xd89e84(0x1aa)](_0x2d9420),_0x17d6a4=_0x38e9ea[_0xd89e84(0x215)](_0x498fdc,_0x550fe4,this['C'][_0xd89e84(0x1fb)]);for(const _0x2d3ec2 of _0x450fec[_0xd89e84(0x16d)])for(const _0x3b42d7 of _0x2d3ec2[_0xd89e84(0x1d1)]||[])if(!0x0===_0x3b42d7[_0xd89e84(0x196)]){const _0x39c48d=_0x38e9ea['join'](_0x17d6a4,_0x2d3ec2['name'],this['C'][_0xd89e84(0x1d1)],_0x3b42d7[_0xd89e84(0x20e)],_0x3b42d7[_0xd89e84(0x15c)]+_0xd89e84(0x125)),_0x6871b5=_0x38e9ea[_0xd89e84(0x215)](this[_0xd89e84(0x166)],this['C']['src'],_0x4b7c69,_0x450fec[_0xd89e84(0x15c)],_0x2d3ec2['name']+_0xd89e84(0x125));await this[_0xd89e84(0x13c)](_0x38e9ea[_0xd89e84(0x1b6)](_0x6871b5),{'recursive':!0x0}),await this[_0xd89e84(0x193)](_0x39c48d,_0x6871b5);}}}async['copyInstanceApiHooksToAnotherDir'](){const _0x3e5a19=_0x1b0e0f,_0x242cda=this['C'][_0x3e5a19(0x10d)],_0x4cd538=this['C'][_0x3e5a19(0x1c8)],_0x396a73=_0x38e9ea[_0x3e5a19(0x215)](_0x2f0ddb,this['C'][_0x3e5a19(0x145)],this[_0x3e5a19(0x17a)][_0x3e5a19(0x176)],_0x242cda),_0x17dc98=await this[_0x3e5a19(0x1de)](_0x396a73,null);for(const _0x27cb58 of _0x17dc98){const _0x531845=_0x38e9ea[_0x3e5a19(0x215)](_0x396a73,_0x27cb58,_0x27cb58+_0x3e5a19(0x1b0));if(!this[_0x3e5a19(0x140)](_0x531845))continue;const _0x422b04=await this[_0x3e5a19(0x1dc)](_0x531845,{'encoding':_0x3e5a19(0x143)}),_0x227a51=await this[_0x3e5a19(0x1aa)](_0x422b04),_0x146a18=_0x38e9ea[_0x3e5a19(0x215)](_0x396a73,_0x27cb58),_0x4d8af2=_0x227a51[_0x3e5a19(0x197)]+'/'+_0x227a51[_0x3e5a19(0x1bd)]+'/'+_0x227a51['collectionName']+'/'+_0x227a51[_0x3e5a19(0x191)][_0x3e5a19(0x219)]();for(const _0xd0e9b9 of _0x227a51[_0x3e5a19(0x222)]){const _0x468a8d=_0x38e9ea[_0x3e5a19(0x215)](_0x146a18,this['C'][_0x3e5a19(0x222)],_0xd0e9b9['name']+'.ts'),_0x346ae6=_0x38e9ea[_0x3e5a19(0x215)](this[_0x3e5a19(0x166)],this['C'][_0x3e5a19(0x145)],_0x4cd538,_0x4d8af2,this['C']['preHooks'],_0xd0e9b9[_0x3e5a19(0x15c)]+_0x3e5a19(0x125));await this['fsMkDir'](_0x38e9ea[_0x3e5a19(0x1b6)](_0x346ae6),{'recursive':!0x0}),await this[_0x3e5a19(0x193)](_0x468a8d,_0x346ae6);}for(const _0x261ab7 of _0x227a51[_0x3e5a19(0x1e0)]){const _0x115103=_0x38e9ea['join'](_0x146a18,this['C'][_0x3e5a19(0x1e0)],_0x261ab7['name']+_0x3e5a19(0x125)),_0x2493d8=_0x38e9ea[_0x3e5a19(0x215)](this[_0x3e5a19(0x166)],this['C'][_0x3e5a19(0x145)],_0x4cd538,_0x4d8af2,this['C']['postHooks'],_0x261ab7['name']+'.ts');await this['fsMkDir'](_0x38e9ea[_0x3e5a19(0x1b6)](_0x2493d8),{'recursive':!0x0}),await this[_0x3e5a19(0x193)](_0x115103,_0x2493d8);}}}async[_0x1b0e0f(0x10c)](){const _0x58d9bf=_0x1b0e0f,_0x284007=this['C'][_0x58d9bf(0x1a0)],_0x1c2f7f=this['C'][_0x58d9bf(0x1bc)],_0x3bebf8=_0x38e9ea[_0x58d9bf(0x215)](_0x2f0ddb,this['C'][_0x58d9bf(0x145)],this[_0x58d9bf(0x17a)][_0x58d9bf(0x176)],_0x284007),_0x31ae92=await this[_0x58d9bf(0x1de)](_0x3bebf8,null);for(const _0x350a72 of _0x31ae92){const _0x39b5c5=_0x38e9ea['join'](_0x3bebf8,_0x350a72,_0x350a72+_0x58d9bf(0x1b0));if(!this[_0x58d9bf(0x140)](_0x39b5c5))continue;const _0x5b4c7f=await this[_0x58d9bf(0x1dc)](_0x39b5c5,{'encoding':_0x58d9bf(0x143)}),_0x5810a9=await this['parseYaml'](_0x5b4c7f),_0x3aa1f0=_0x38e9ea[_0x58d9bf(0x215)](_0x3bebf8,_0x350a72),_0x3f566e=_0x5810a9[_0x58d9bf(0x191)][_0x58d9bf(0x219)]();for(const _0x1fa38d of _0x5810a9[_0x58d9bf(0x222)]){const _0x40d59a=_0x38e9ea[_0x58d9bf(0x215)](_0x3aa1f0,this['C']['preHooks'],_0x1fa38d[_0x58d9bf(0x15c)]+_0x58d9bf(0x125)),_0x18eb4c=_0x38e9ea[_0x58d9bf(0x215)](this[_0x58d9bf(0x166)],this['C']['src'],_0x1c2f7f,_0x3f566e,this['C'][_0x58d9bf(0x222)],_0x1fa38d[_0x58d9bf(0x15c)]+_0x58d9bf(0x125));await this[_0x58d9bf(0x13c)](_0x38e9ea[_0x58d9bf(0x1b6)](_0x18eb4c),{'recursive':!0x0}),await this[_0x58d9bf(0x193)](_0x40d59a,_0x18eb4c);}for(const _0x42f01c of _0x5810a9['postHooks']){const _0x21687d=_0x38e9ea[_0x58d9bf(0x215)](_0x3aa1f0,this['C'][_0x58d9bf(0x1e0)],_0x42f01c['name']+_0x58d9bf(0x125)),_0x50fdc3=_0x38e9ea[_0x58d9bf(0x215)](this[_0x58d9bf(0x166)],this['C'][_0x58d9bf(0x145)],_0x1c2f7f,_0x3f566e,this['C'][_0x58d9bf(0x1e0)],_0x42f01c[_0x58d9bf(0x15c)]+_0x58d9bf(0x125));await this[_0x58d9bf(0x13c)](_0x38e9ea[_0x58d9bf(0x1b6)](_0x50fdc3),{'recursive':!0x0}),await this[_0x58d9bf(0x193)](_0x21687d,_0x50fdc3);}}}async[_0x1b0e0f(0x1e5)](){const _0xdfa899=_0x1b0e0f,_0x582352=this['C'][_0xdfa899(0x21d)],_0x1c5289=this['C']['WebSocketEventsWriteF'],_0x4b080c=_0x38e9ea[_0xdfa899(0x215)](_0x2f0ddb,this['C'][_0xdfa899(0x145)],this[_0xdfa899(0x17a)]['adminUserPath'],_0x582352),_0x357aae=await this[_0xdfa899(0x1de)](_0x4b080c,null);for(const _0x3308ba of _0x357aae){const _0x3b3f77=_0x38e9ea['join'](_0x4b080c,_0x3308ba,_0x3308ba+'.yaml');if(!this[_0xdfa899(0x140)](_0x3b3f77))continue;const _0xe7ed80=await this[_0xdfa899(0x1dc)](_0x3b3f77,{'encoding':_0xdfa899(0x143)}),_0x22cf5f=await this['parseYaml'](_0xe7ed80);for(const _0x131fe3 of _0x22cf5f['versions']||[])if(!0x0===_0x131fe3[_0xdfa899(0x196)]){const _0x3172d2=_0x38e9ea['join'](_0x4b080c,_0x3308ba,this['C'][_0xdfa899(0x1d1)],_0x131fe3[_0xdfa899(0x20e)],_0x131fe3[_0xdfa899(0x15c)]+_0xdfa899(0x125));let _0x909451='',_0x3bc7c6='';_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x247)]?(_0x3bc7c6=_0xdfa899(0x232),_0x909451=_0x22cf5f['instanceName']+'/'+_0x22cf5f[_0xdfa899(0x1bd)]+'/'+_0x22cf5f[_0xdfa899(0x117)]+'/'+_0x22cf5f[_0xdfa899(0x19a)][_0xdfa899(0x219)]()):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x146)]?(_0x3bc7c6=_0xdfa899(0x1e6),_0x909451=_0x22cf5f[_0xdfa899(0x14d)]+'/'+_0x22cf5f[_0xdfa899(0x1e7)]):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x119)]?(_0x3bc7c6=_0xdfa899(0x1c3),_0x909451=_0x22cf5f[_0xdfa899(0x1d5)]):_0x22cf5f[_0xdfa899(0x134)]===_0x513751[_0xdfa899(0x133)]?(_0x3bc7c6='system-apis',_0x909451=_0x22cf5f[_0xdfa899(0x13d)][_0xdfa899(0x219)]()):_0x22cf5f['apiCategory']===_0x513751[_0xdfa899(0x1d3)]&&(_0x3bc7c6='ws-events',_0x909451=_0x22cf5f[_0xdfa899(0x15c)]);const _0x5ade84=_0x38e9ea[_0xdfa899(0x215)](this[_0xdfa899(0x166)],this['C'][_0xdfa899(0x145)],_0x1c5289,_0x3bc7c6,_0x909451+_0xdfa899(0x125));await this[_0xdfa899(0x13c)](_0x38e9ea[_0xdfa899(0x1b6)](_0x5ade84),{'recursive':!0x0}),await this['fsLink'](_0x3172d2,_0x5ade84);}}}async[_0x1b0e0f(0x154)](){const _0xe1b6bf=_0x1b0e0f,_0xd61f3b=this['C']['CollectionHooksReadF'],_0x257b42=this['C'][_0xe1b6bf(0x1f8)],_0x4d2bf8=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0xe1b6bf(0x145)],this['config'][_0xe1b6bf(0x176)],_0xd61f3b),_0x204171=await this[_0xe1b6bf(0x1de)](_0x4d2bf8,null);for(const _0x1925bd of _0x204171){const _0x5d4927=_0x38e9ea[_0xe1b6bf(0x215)](_0x4d2bf8,_0x1925bd,_0x1925bd+_0xe1b6bf(0x1b0));if(!this[_0xe1b6bf(0x140)](_0x5d4927))continue;const _0x373253=await this[_0xe1b6bf(0x1dc)](_0x5d4927,{'encoding':_0xe1b6bf(0x143)}),_0x35fd98=await this[_0xe1b6bf(0x1aa)](_0x373253),_0x179482=_0x38e9ea[_0xe1b6bf(0x215)](_0x4d2bf8,_0x1925bd),_0x4c973a=_0x35fd98['instanceName']+'/'+_0x35fd98[_0xe1b6bf(0x1bd)]+'/'+_0x35fd98[_0xe1b6bf(0x117)];for(const _0x46e1dc of _0x35fd98[_0xe1b6bf(0x222)]){const _0x4ff95e=_0x38e9ea['join'](_0x179482,this['C'][_0xe1b6bf(0x222)],_0x46e1dc[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125)),_0x522e16=_0x38e9ea[_0xe1b6bf(0x215)](this[_0xe1b6bf(0x166)],this['C'][_0xe1b6bf(0x145)],_0x257b42,_0x4c973a,this['C'][_0xe1b6bf(0x222)],_0x46e1dc[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125));await this['fsMkDir'](_0x38e9ea[_0xe1b6bf(0x1b6)](_0x522e16),{'recursive':!0x0}),await this['fsLink'](_0x4ff95e,_0x522e16);}for(const _0x57982b of _0x35fd98['postHooks']){const _0x240765=_0x38e9ea[_0xe1b6bf(0x215)](_0x179482,this['C']['postHooks'],_0x57982b[_0xe1b6bf(0x15c)]+_0xe1b6bf(0x125)),_0x5a681e=_0x38e9ea[_0xe1b6bf(0x215)](this[_0xe1b6bf(0x166)],this['C'][_0xe1b6bf(0x145)],_0x257b42,_0x4c973a,this['C']['postHooks'],_0x57982b['name']+_0xe1b6bf(0x125));await this[_0xe1b6bf(0x13c)](_0x38e9ea[_0xe1b6bf(0x1b6)](_0x5a681e),{'recursive':!0x0}),await this[_0xe1b6bf(0x193)](_0x240765,_0x5a681e);}}}async[_0x1b0e0f(0x1a8)](){const _0x435173=_0x1b0e0f,_0x29827e=this['C']['DatabaseHooksReadF'],_0x4bb643=this['C']['DatabaseHooksWriteF'],_0x12368c=_0x38e9ea[_0x435173(0x215)](_0x2f0ddb,this['C']['src'],this[_0x435173(0x17a)][_0x435173(0x176)],_0x29827e),_0x26a4fe=await this[_0x435173(0x1de)](_0x12368c,null);for(const _0x429e80 of _0x26a4fe){const _0x454c45=_0x38e9ea[_0x435173(0x215)](_0x12368c,_0x429e80,_0x429e80+_0x435173(0x1b0));if(!this[_0x435173(0x140)](_0x454c45))continue;const _0xa9e253=await this[_0x435173(0x1dc)](_0x454c45,{'encoding':_0x435173(0x143)}),_0x2029c5=await this[_0x435173(0x1aa)](_0xa9e253),_0x2eec6d=_0x38e9ea[_0x435173(0x215)](_0x12368c,_0x429e80),_0x466b7c=_0x2029c5[_0x435173(0x197)]+'/'+_0x2029c5[_0x435173(0x1bd)];for(const _0x1ae5df of _0x2029c5['preHooks']){const _0xfa9713=_0x38e9ea[_0x435173(0x215)](_0x2eec6d,this['C'][_0x435173(0x222)],_0x1ae5df[_0x435173(0x15c)]+'.ts'),_0x41fd85=_0x38e9ea[_0x435173(0x215)](this['projectDirectory'],this['C'][_0x435173(0x145)],_0x4bb643,_0x466b7c,this['C']['preHooks'],_0x1ae5df[_0x435173(0x15c)]+'.ts');await this[_0x435173(0x13c)](_0x38e9ea['dirname'](_0x41fd85),{'recursive':!0x0}),await this['fsLink'](_0xfa9713,_0x41fd85);}for(const _0x38d8b8 of _0x2029c5[_0x435173(0x1e0)]){const _0x297bc0=_0x38e9ea[_0x435173(0x215)](_0x2eec6d,this['C']['postHooks'],_0x38d8b8['name']+_0x435173(0x125)),_0x14dbc9=_0x38e9ea['join'](this[_0x435173(0x166)],this['C'][_0x435173(0x145)],_0x4bb643,_0x466b7c,this['C'][_0x435173(0x1e0)],_0x38d8b8['name']+_0x435173(0x125));await this[_0x435173(0x13c)](_0x38e9ea[_0x435173(0x1b6)](_0x14dbc9),{'recursive':!0x0}),await this[_0x435173(0x193)](_0x297bc0,_0x14dbc9);}}}async[_0x1b0e0f(0x253)](){const _0x56a549=_0x1b0e0f,_0x4f2483=this['C'][_0x56a549(0x124)],_0x5892cd=this['C'][_0x56a549(0x210)],_0x143460=_0x38e9ea['join'](_0x2f0ddb,this['C'][_0x56a549(0x145)],this[_0x56a549(0x17a)][_0x56a549(0x176)],_0x4f2483),_0x1f4e2d=await this[_0x56a549(0x1de)](_0x143460,null);for(const _0x3a059b of _0x1f4e2d){const _0xf625f7=_0x38e9ea[_0x56a549(0x215)](_0x143460,_0x3a059b,_0x3a059b+'.yaml');if(!this[_0x56a549(0x140)](_0xf625f7))continue;const _0x4b25fe=await this[_0x56a549(0x1dc)](_0xf625f7,{'encoding':'utf8'}),_0x4d2318=await this[_0x56a549(0x1aa)](_0x4b25fe),_0x376bf1=_0x38e9ea['join'](_0x143460,_0x3a059b),_0x47ff80=''+_0x4d2318[_0x56a549(0x197)];for(const _0x5d0849 of _0x4d2318['preHooks']){const _0x28b44d=_0x38e9ea[_0x56a549(0x215)](_0x376bf1,this['C'][_0x56a549(0x222)],_0x5d0849[_0x56a549(0x15c)]+_0x56a549(0x125)),_0x5a1ca2=_0x38e9ea[_0x56a549(0x215)](this['projectDirectory'],this['C']['src'],_0x5892cd,_0x47ff80,this['C'][_0x56a549(0x222)],_0x5d0849[_0x56a549(0x15c)]+_0x56a549(0x125));await this[_0x56a549(0x13c)](_0x38e9ea[_0x56a549(0x1b6)](_0x5a1ca2),{'recursive':!0x0}),await this['fsLink'](_0x28b44d,_0x5a1ca2);}for(const _0x42192d of _0x4d2318[_0x56a549(0x1e0)]){const _0x534767=_0x38e9ea[_0x56a549(0x215)](_0x376bf1,this['C'][_0x56a549(0x1e0)],_0x42192d[_0x56a549(0x15c)]+'.ts'),_0x55f40c=_0x38e9ea['join'](this['projectDirectory'],this['C'][_0x56a549(0x145)],_0x5892cd,_0x47ff80,this['C'][_0x56a549(0x1e0)],_0x42192d[_0x56a549(0x15c)]+_0x56a549(0x125));await this[_0x56a549(0x13c)](_0x38e9ea[_0x56a549(0x1b6)](_0x55f40c),{'recursive':!0x0}),await this['fsLink'](_0x534767,_0x55f40c);}}}async['executeNpmRun'](_0x561a7f,_0x310ae1){return new Promise((_0x6d0c20,_0x5c6d7d)=>{const _0x14fd30=a0_0xf806,_0xd80c11=(0x0,_0x5ef9cc[_0x14fd30(0x126)])(_0x561a7f,_0x310ae1,{'shell':!0x0,'cwd':_0x2f0ddb});_0xd80c11['on'](_0x14fd30(0x186),_0x580130=>{const _0x26be0f=_0x14fd30;if(0x0===_0x580130)setTimeout(_0x6d0c20,0x1f4);else{const _0x161973='\x27'+_0x561a7f+'\x20'+_0x310ae1[_0x26be0f(0x215)]('\x20')+_0x26be0f(0x18d)+_0x580130+'.';_0x5c6d7d(new Error(_0x161973));}}),_0xd80c11['on'](_0x14fd30(0x1eb),_0x42d425=>{const _0x35f851=_0x14fd30;console[_0x35f851(0x1eb)](_0x35f851(0xf5)+_0x42d425['message']),_0x5c6d7d(_0x42d425);});});}async[_0x1b0e0f(0x1aa)](_0x481a25){const _0x293547=_0x1b0e0f;return _0x5b58db(0x2f8)[_0x293547(0x1f5)](_0x481a25);}['startWatch'](){const _0x1e5584=_0x1b0e0f,_0x45aa9b=_0x5b58db(0x274),_0x4dd164=_0x38e9ea[_0x1e5584(0x215)](_0x2f0ddb),_0x18a67d=_0x38e9ea[_0x1e5584(0x215)](_0x2f0ddb,this['C']['src']),_0x167a93=_0x27a7de=>{const _0x1fb553=_0x1e5584,_0x2027b2=_0x38e9ea[_0x1fb553(0x19d)](_0x4dd164,_0x27a7de);return!(_0x2027b2&&!_0x2027b2[_0x1fb553(0x12d)]('.')&&!_0x2027b2[_0x1fb553(0x13b)]('~')&&_0x2027b2[_0x1fb553(0x12d)](this['C']['src']));},_0x4663d8=_0x45aa9b[_0x1e5584(0x228)](_0x18a67d,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0xa479b6=async(_0x52d1de,_0x3ebfd8)=>{const _0x27b84f=_0x1e5584;try{if(this['skipWatchInputs'])return;const _0x5bcabc=_0x38e9ea[_0x27b84f(0x19d)](_0x4dd164,_0x3ebfd8);if(!_0x3ebfd8||_0x167a93(_0x3ebfd8))return;console['log'](_0x27b84f(0x150)+this[_0x27b84f(0x22b)]()+_0x27b84f(0x244)+_0x52d1de+_0x27b84f(0x200)+_0x5bcabc);const _0xd2396f=this[_0x27b84f(0x23f)](_0x5bcabc),_0x94d74e=this['getChangedFolder'](_0xd2396f,_0x5bcabc);if(!_0x94d74e)return;let _0xb2db3c,_0xb4d772=!0x1;if(this[_0x27b84f(0x140)](_0x94d74e)){if(this[_0x27b84f(0x140)](_0x38e9ea[_0x27b84f(0x215)](_0x4dd164,_0x5bcabc))){const _0x4aa34b=_0x38e9ea[_0x27b84f(0x215)](_0x38e9ea['sep']+this['C'][_0x27b84f(0x1c2)],_0x94d74e);_0xb2db3c=await this[_0x27b84f(0x24c)](_0x94d74e,_0x4aa34b),this[_0x27b84f(0x10a)]({'objType':_0x9aed2c['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x27b84f(0x18e)],'folderChangedOnLocalSystem':_0xb2db3c,'category':_0xd2396f,'shouldReplaceAllItemsOfCategory':_0xb4d772}});}else this['syncAllDataWithServer']();}else{const _0xab7e41=this['getChangedFolderForDeleted'](_0xd2396f,_0x5bcabc),_0xf68d29=_0x38e9ea[_0x27b84f(0x215)](_0x38e9ea[_0x27b84f(0x106)]+this['C'][_0x27b84f(0x1c2)],_0xab7e41);_0xb2db3c=await this[_0x27b84f(0x24c)](_0xab7e41,_0xf68d29),_0xb4d772=!0x0,this[_0x27b84f(0x22a)](_0xb2db3c,_0xd2396f,_0xb4d772);}}catch(_0x280f3c){console['error'](_0x27b84f(0x15d),_0x280f3c);}};_0x4663d8['on'](_0x1e5584(0x17c),_0x4b2000=>_0xa479b6(_0x1e5584(0x17c),_0x4b2000))['on'](_0x1e5584(0x189),_0x8973b2=>_0xa479b6(_0x1e5584(0x189),_0x8973b2))['on'](_0x1e5584(0x1fc),_0x46dff3=>_0xa479b6(_0x1e5584(0x1fc),_0x46dff3))['on']('addDir',_0xdefe6e=>_0xa479b6(_0x1e5584(0x23a),_0xdefe6e))['on'](_0x1e5584(0xf7),_0x520cdd=>_0xa479b6('unlinkDir',_0x520cdd))['on'](_0x1e5584(0x1eb),_0x5a1333=>console[_0x1e5584(0x1eb)](_0x1e5584(0x123),_0x5a1333)),this[_0x1e5584(0x187)]=_0x4663d8,console['log'](_0x1e5584(0x203));}[_0x1b0e0f(0x22b)](){const _0x2a17bd=_0x1b0e0f,_0x539898=new Date();return String(_0x539898[_0x2a17bd(0x12c)]())['padStart'](0x2,'0')+':'+String(_0x539898['getMinutes']())[_0x2a17bd(0x213)](0x2,'0')+':'+String(_0x539898['getSeconds']())[_0x2a17bd(0x213)](0x2,'0');}[_0x1b0e0f(0x155)](_0x451d08,_0xde9b21,_0x348743){const _0x52cdb6=_0x1b0e0f;this[_0x52cdb6(0x10a)]({'objType':_0x9aed2c[_0x52cdb6(0x164)],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x52cdb6(0x18e)],'folderChangedOnLocalSystem':_0x451d08,'category':_0xde9b21,'shouldReplaceAllItemsOfCategory':_0x348743}});}[_0x1b0e0f(0x1e2)](_0x252969,_0x2e19de){let _0x313a3b=null;return function(..._0x3617ec){clearTimeout(_0x313a3b),_0x313a3b=setTimeout(()=>{const _0xa792a5=a0_0xf806;_0x252969[_0xa792a5(0xff)](this,_0x3617ec);},_0x2e19de);};}[_0x1b0e0f(0x23f)](_0x2d0e6b){const _0x2f0625=_0x1b0e0f,_0x5be140=_0x38e9ea['join'](this['C']['src'],this[_0x2f0625(0x17a)]['adminUserPath']);if(!_0x2d0e6b[_0x2f0625(0x12d)](_0x5be140))return;const _0xb55273=_0x2d0e6b[_0x2f0625(0x1dd)](_0x38e9ea[_0x2f0625(0x106)])[_0x2f0625(0x21c)](_0x5be318=>!!_0x5be318)[0x2];for(const _0x447d2d in _0x3c2731)if(_0x3c2731[_0x447d2d]===_0xb55273)return _0xb55273;}[_0x1b0e0f(0x20a)](_0xb45b99,_0x30837d){const _0x33f96e=_0x1b0e0f,_0x40f2ca=_0x30837d[_0x33f96e(0x1dd)](_0x38e9ea[_0x33f96e(0x106)]);let _0x3dfe39='';return _0x3dfe39=_0xb45b99===_0x3c2731[_0x33f96e(0x146)]?_0x40f2ca[_0x33f96e(0x220)](0x0,0x6)[_0x33f96e(0x215)](_0x38e9ea[_0x33f96e(0x106)]):_0x40f2ca['slice'](0x0,0x4)['join'](_0x38e9ea[_0x33f96e(0x106)]),_0x3dfe39;}['getChangedFolderForDeleted'](_0x3981e4,_0x3fe8d5){const _0x1c0a8b=_0x1b0e0f;return _0x3fe8d5['split'](_0x38e9ea[_0x1c0a8b(0x106)])[_0x1c0a8b(0x220)](0x0,0x3)[_0x1c0a8b(0x215)](_0x38e9ea['sep']);}async[_0x1b0e0f(0x24c)](_0x5207a6,_0xcfe9c5){const _0x502def={},_0x339b76=this;return await async function _0x243560(_0x34642e){const _0xad5eff=a0_0xf806,_0x591b08=await _0x339b76[_0xad5eff(0x1de)](_0x34642e,{'withFileTypes':!0x0});for(const _0x3ef60e of _0x591b08){const _0x1f8623=_0x38e9ea['join'](_0x34642e,_0x3ef60e[_0xad5eff(0x15c)]),_0x211225=_0x38e9ea['normalize'](_0x1f8623);if(_0x3ef60e[_0xad5eff(0x249)]())await _0x243560(_0x211225);else{const _0x2951af=_0x2a0ea6[_0xad5eff(0x1f6)](_0x211225),_0x4217f6=_0x38e9ea['relative'](_0x5207a6,_0x211225),_0x24700f=_0x38e9ea[_0xad5eff(0x215)](_0xcfe9c5,_0x4217f6)['split'](_0x38e9ea['sep'])['join'](_0x38e9ea[_0xad5eff(0x1cf)][_0xad5eff(0x106)]);_0x502def[_0x24700f]={'encoding':_0xad5eff(0x1d6),'content':_0x2951af['toString'](_0xad5eff(0x1d6))};}}}(_0x5207a6),_0x502def;}['sendToServer'](_0x2a6c15){const _0x1e45e6=_0x1b0e0f;try{this['ws'][_0x1e45e6(0x1ea)](JSON['stringify'](_0x2a6c15));}catch(_0x53208b){console[_0x1e45e6(0x1af)](_0x53208b);}}async['connectToServerViaWS'](){const _0x5d30bf=_0x1b0e0f;console[_0x5d30bf(0x1af)](_0x5d30bf(0x236));const _0x2a1d73=this[_0x5d30bf(0x17a)][_0x5d30bf(0x15a)],_0x9dd911=this['config'][_0x5d30bf(0x176)],_0x4e73d3=this['config']['webSocketURL'];this['ws']=new WebSocket(_0x4e73d3+_0x5d30bf(0x12b)+_0x2a1d73+_0x5d30bf(0x144)+_0x9dd911);const _0x59d7aa=[],_0x277dc3=()=>{const _0x47c61c=_0x5d30bf;this[_0x47c61c(0x10a)]({'objType':_0x9aed2c['REGISTER'],'onEvents':[{'eventType':_0x47c61c(0x138)}]});};function _0x422d47(_0x295dcc){const _0x3c82af=_0x5d30bf;_0x295dcc['onopen']=null,_0x295dcc[_0x3c82af(0x204)]=null,_0x295dcc['onerror']=null,_0x295dcc[_0x3c82af(0x159)]=null,_0x295dcc[_0x3c82af(0x186)]();}this['ws'][_0x5d30bf(0x204)]=async _0x317940=>{const _0x527937=_0x5d30bf,_0x5bc60e=JSON['parse'](_0x317940[_0x527937(0x226)]);if(_0x5bc60e[_0x527937(0x224)]===_0x9aed2c['CONNECTED']&&_0x5bc60e[_0x527937(0x1a2)]['connected'])_0x277dc3();else{if(_0x5bc60e[_0x527937(0x224)]===_0x9aed2c['REGISTER']){if(_0x5bc60e?.[_0x527937(0x1a2)]?.[_0x527937(0x225)]?.[_0x527937(0x206)]){for(const _0xbf5848 of _0x5bc60e['response'][_0x527937(0x225)])_0x59d7aa[_0x527937(0x1c7)](_0xbf5848);console['log']('✅\x20Connected\x20to\x20server\x20via\x20WS'),!0x1===this[_0x527937(0x1ae)]&&(this['isWSConnectedFirstTime']=!0x0,console[_0x527937(0x1af)](this[_0x527937(0x165)]+'✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20'+this[_0x527937(0x166)]+this['colorEnd'])),this['syncAllDataWithServer']();}else{const _0x4af29a=_0x5bc60e[_0x527937(0x1a2)]?.[_0x527937(0x15e)]?.[0x0]?.[_0x527937(0x1b4)]?.[0x0]?.[_0x527937(0x188)]||_0x527937(0x1c0);console[_0x527937(0x1af)]('❌\x20'+_0x4af29a),await this[_0x527937(0xf9)](0x1);}}else await this['processReceivedEvent'](_0x5bc60e);}},this['ws'][_0x5d30bf(0x159)]=_0x4b8b01=>{const _0x3a8b20=_0x5d30bf;console[_0x3a8b20(0x1af)](_0x3a8b20(0x142)),_0x422d47(this['ws']),setTimeout(this[_0x3a8b20(0x11c)][_0x3a8b20(0x1b5)](this),0xbb8);},this['ws'][_0x5d30bf(0x1f9)]=()=>{const _0x4e3e41=_0x5d30bf;_0x422d47(this['ws']),setTimeout(this[_0x4e3e41(0x11c)][_0x4e3e41(0x1b5)](this),0xbb8);};}[_0x1b0e0f(0x1da)](){const _0x326c58=_0x1b0e0f;this[_0x326c58(0x10a)]({'objType':_0x9aed2c['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x2bbdcd[_0x326c58(0x207)]}});}async[_0x1b0e0f(0x11b)](_0x9ceebb){const _0x401a46=_0x1b0e0f;if(this['EL']&&_0x9ceebb[_0x401a46(0x1a2)][_0x401a46(0x1a5)]!==_0x2bbdcd[_0x401a46(0x207)]&&console[_0x401a46(0x1af)](_0x9ceebb),_0x9ceebb[_0x401a46(0x224)]===_0x9aed2c[_0x401a46(0x164)]){if(_0x9ceebb['errors']?.[_0x401a46(0x206)])return void console[_0x401a46(0x1eb)](_0x9ceebb[_0x401a46(0x1b4)]);if(_0x9ceebb[_0x401a46(0x1a2)]['eventType']===_0x2bbdcd['LC_SEND_ALL_DATA']){_0x2a0ea6['rmSync'](_0x38e9ea[_0x401a46(0x215)](_0x2f0ddb,this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x401a46(0x1f4)](_0x38e9ea[_0x401a46(0x215)](_0x2f0ddb,this['C'][_0x401a46(0x145)]),{'recursive':!0x0});const _0x4914e5=_0x9ceebb['response']['eventData'];await this[_0x401a46(0x22c)](_0x4914e5,_0x2f0ddb),this[_0x401a46(0x187)]||setTimeout(this[_0x401a46(0x184)]['bind'](this),0x1388);}else{if(_0x9ceebb[_0x401a46(0x1a2)]['eventType']===_0x2bbdcd[_0x401a46(0xf4)]){const _0x24ab3e=_0x9ceebb[_0x401a46(0x1a2)][_0x401a46(0x112)];await this['writeMemfsJsonToDisk'](_0x24ab3e[_0x401a46(0x226)],_0x2f0ddb);}}!0x0===this[_0x401a46(0x25a)]?await this[_0x401a46(0x1fe)](!0x1):(await this[_0x401a46(0x1fe)](!0x0),this[_0x401a46(0x25a)]=!0x0);}}async[_0x1b0e0f(0x22c)](_0x2b93c5,_0x8144c5){const _0xc8966d=_0x1b0e0f;this[_0xc8966d(0x1c5)]=!0x0;let _0x322f20=[];const _0x29bdde=async()=>{const _0x435824=_0xc8966d;_0x322f20[_0x435824(0x206)]>0x0&&(await Promise[_0x435824(0x103)](_0x322f20),_0x322f20=[]);};for(const [_0x52afa1,_0x52864d]of Object[_0xc8966d(0x17b)](_0x2b93c5)){if(!_0x52afa1[_0xc8966d(0x12d)]('/'+this['C']['repo']+'/'+this['C']['src']))continue;const _0x5b4019=_0x52864d,_0xbc1a9f=_0x52afa1[_0xc8966d(0x1a1)]('/'+this['C'][_0xc8966d(0x1c2)],'');if(this[_0xc8966d(0x254)][_0xbc1a9f])continue;const _0x307b96=_0x38e9ea['join'](_0x8144c5,_0xbc1a9f[_0xc8966d(0x1a1)](/^\//,'')),_0x545ae6=_0x38e9ea[_0xc8966d(0x1b6)](_0x307b96),_0x5f5192=async()=>{const _0x5644c2=_0xc8966d;await this[_0x5644c2(0x13c)](_0x545ae6,{'recursive':!0x0}),await this[_0x5644c2(0x251)](_0x307b96,_0x5b4019[_0x5644c2(0x234)],{'encoding':_0x5644c2(0x1d6)}),this['EL']&&console[_0x5644c2(0x1af)](_0x5644c2(0x23d)+this['getCurrentTime']()+_0x5644c2(0x200)+_0x307b96[_0x5644c2(0x1a1)](_0x8144c5,''));};_0x322f20[_0xc8966d(0x1c7)](_0x5f5192()),_0x322f20[_0xc8966d(0x206)]>=0x3e8&&await _0x29bdde();}await _0x29bdde(),setTimeout(()=>{this['skipWatchInputs']=!0x1;},0x3e8);}[_0x1b0e0f(0x23b)](_0x39b251){const _0x39108a=_0x1b0e0f,_0x42438b=this[_0x39108a(0x136)](_0x39b251);if(!this[_0x39108a(0x140)](_0x42438b))return!0x1;const _0x4f44a4=_0x2a0ea6[_0x39108a(0x1d7)](_0x42438b);let _0x4bef91=!0x0;for(const _0x1984a8 of _0x4f44a4){const _0x206172=_0x38e9ea[_0x39108a(0x215)](_0x42438b,_0x1984a8);_0x2a0ea6[_0x39108a(0x212)](_0x206172)[_0x39108a(0x249)]()&&this[_0x39108a(0x23b)](_0x206172)||(_0x4bef91=!0x1);}return!!_0x4bef91&&(_0x2a0ea6[_0x39108a(0x135)](_0x42438b),!0x0);}async[_0x1b0e0f(0x1de)](_0x494dc6,_0x136159){const _0x5412c9=_0x1b0e0f;return this[_0x5412c9(0x140)](_0x494dc6)?await this[_0x5412c9(0x1ee)](_0x494dc6,_0x136159):[];}[_0x1b0e0f(0x136)](_0x44a42c){return _0x38e9ea['normalize'](_0x44a42c);}[_0x1b0e0f(0x140)](_0x3f6537){const _0x39fc10=_0x38e9ea['normalize'](_0x3f6537);return _0x2a0ea6['existsSync'](_0x39fc10);}async[_0x1b0e0f(0x1ee)](_0x450d21,_0x263137){const _0x4271ba=_0x1b0e0f,_0x4ee0cc=_0x38e9ea[_0x4271ba(0x1f2)](_0x450d21);return await _0x2a0ea6[_0x4271ba(0x12e)][_0x4271ba(0x113)](_0x4ee0cc,_0x263137);}async['fsMkDir'](_0x1b53a1,_0x33720d){const _0x469ba6=_0x1b0e0f,_0x1b1b89=_0x38e9ea[_0x469ba6(0x1f2)](_0x1b53a1);return await _0x2a0ea6[_0x469ba6(0x12e)][_0x469ba6(0x194)](_0x1b1b89,_0x33720d);}['fsMkDirSync'](_0x435266,_0x2cc0db){const _0x274fae=_0x1b0e0f,_0x514502=_0x38e9ea[_0x274fae(0x1f2)](_0x435266);return _0x2a0ea6[_0x274fae(0x1ed)](_0x514502,_0x2cc0db);}async[_0x1b0e0f(0x1dc)](_0xd3da2f,_0xd9909b){const _0x22ade3=_0x1b0e0f,_0x34aade=_0x38e9ea[_0x22ade3(0x1f2)](_0xd3da2f);return await _0x2a0ea6[_0x22ade3(0x12e)][_0x22ade3(0x1bb)](_0x34aade,_0xd9909b);}async['fsWriteFile'](_0x5b4369,_0x13a188,_0x1579a5){const _0x2bcd4b=_0x1b0e0f,_0x5ec6fc=_0x38e9ea[_0x2bcd4b(0x1f2)](_0x5b4369);return await _0x2a0ea6['promises']['writeFile'](_0x5ec6fc,_0x13a188,_0x1579a5);}async[_0x1b0e0f(0x193)](_0x335866,_0x4f42c9){const _0x3ed2e3=_0x1b0e0f,_0x4782ac=_0x38e9ea[_0x3ed2e3(0x1f2)](_0x335866),_0x3f5949=_0x38e9ea[_0x3ed2e3(0x1f2)](_0x4f42c9);return await _0x2a0ea6['promises']['link'](_0x4782ac,_0x3f5949);}async[_0x1b0e0f(0xf9)](_0x53ed26=0x0){const _0x49883f=_0x1b0e0f;if(!this[_0x49883f(0x108)]){this['shuttingDown']=!0x0;try{this[_0x49883f(0x187)]&&await this[_0x49883f(0x187)][_0x49883f(0x186)]();}catch(_0x24a7c3){console[_0x49883f(0x1eb)](_0x49883f(0x1ca),_0x24a7c3);}finally{setTimeout(()=>process[_0x49883f(0x169)](_0x53ed26),0xc8);}}}[_0x1b0e0f(0x162)](){const _0x447c24=_0x1b0e0f;process['on']('SIGINT',()=>{const _0x441bda=a0_0xf806;console[_0x441bda(0x1af)](_0x441bda(0x192)),this[_0x441bda(0xf9)](0x0);}),process['on']('SIGTERM',()=>{const _0x145fb1=a0_0xf806;console[_0x145fb1(0x1af)](_0x145fb1(0x153)),this[_0x145fb1(0xf9)](0x0);}),process['on'](_0x447c24(0x12f),_0x4e96d0=>{const _0x2459ea=_0x447c24;console[_0x2459ea(0x1af)](_0x2459ea(0x12f),_0x4e96d0);}),process['on'](_0x447c24(0x169),_0x33e198=>{const _0xbc283c=_0x447c24;console[_0xbc283c(0x1af)](_0xbc283c(0x169),_0x33e198);}),process['on'](_0x447c24(0x16f),_0x59c188=>{const _0x18b91d=_0x447c24;console['error'](_0x18b91d(0x16f),_0x59c188),this[_0x18b91d(0xf9)](0x1);}),process['on'](_0x447c24(0x141),_0x37d910=>{const _0x3199c3=_0x447c24;console['error'](_0x3199c3(0x141),_0x37d910),this[_0x3199c3(0xf9)](0x1);});}}()[_0x1b0e0f(0x258)]()[_0x1b0e0f(0x127)](),function(_0x3e0e24){const _0x380864=_0x1b0e0f;_0x3e0e24[_0x380864(0x247)]=_0x380864(0x247),_0x3e0e24[_0x380864(0x146)]=_0x380864(0x146),_0x3e0e24[_0x380864(0x119)]=_0x380864(0x119),_0x3e0e24[_0x380864(0x133)]=_0x380864(0x133),_0x3e0e24[_0x380864(0x1d3)]=_0x380864(0x1d3);}(_0x513751=_0xe17e60['QX']||(_0xe17e60['QX']={})),function(_0x3c0f12){const _0x576717=_0x1b0e0f;_0x3c0f12[_0x576717(0x100)]=_0x576717(0x100),_0x3c0f12[_0x576717(0x1a3)]=_0x576717(0x1a3),_0x3c0f12[_0x576717(0x19f)]=_0x576717(0x19f),_0x3c0f12[_0x576717(0x179)]=_0x576717(0x179),_0x3c0f12[_0x576717(0x174)]=_0x576717(0x174),_0x3c0f12[_0x576717(0x10e)]='NOTIFICATION',_0x3c0f12[_0x576717(0x164)]='LC_DATA_REQ_RES';}(_0x9aed2c||(_0x9aed2c={})),function(_0x2db121){const _0x5e659d=_0x1b0e0f;_0x2db121[_0x5e659d(0x207)]=_0x5e659d(0x207),_0x2db121[_0x5e659d(0xf4)]=_0x5e659d(0xf4),_0x2db121[_0x5e659d(0x18e)]='LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM';}(_0x2bbdcd||(_0x2bbdcd={})),(_0xf11aa7=_0xe17e60['Yl']||(_0xe17e60['Yl']={}))[_0x1b0e0f(0x256)]='POST',_0xf11aa7[_0x1b0e0f(0x1a9)]=_0x1b0e0f(0x1a9),_0xf11aa7[_0x1b0e0f(0x231)]='PUT_REPLACE',_0xf11aa7['DELETE']=_0x1b0e0f(0x199),_0xf11aa7[_0x1b0e0f(0x1d0)]='DELETE_ALL',(_0x57bf68=_0xe17e60['EN']||(_0xe17e60['EN']={}))[_0x1b0e0f(0x1c1)]='am_events',_0x57bf68[_0x1b0e0f(0x114)]=_0x1b0e0f(0x195),_0x57bf68[_0x1b0e0f(0x132)]=_0x1b0e0f(0x14e),_0x57bf68[_0x1b0e0f(0x1f3)]=_0x1b0e0f(0x246),_0x57bf68['InstanceApiSettings']='am_instance_api_settings',_0x57bf68[_0x1b0e0f(0x10b)]=_0x1b0e0f(0x14b),_0x57bf68[_0x1b0e0f(0x205)]=_0x1b0e0f(0x129),_0x57bf68['DatabaseHooks']=_0x1b0e0f(0x13f),_0x57bf68[_0x1b0e0f(0x170)]='am_collection_hooks',_0x57bf68[_0x1b0e0f(0x13a)]='am_schedulers',_0x57bf68[_0x1b0e0f(0x122)]=_0x1b0e0f(0xf6),_0x57bf68[_0x1b0e0f(0x158)]=_0x1b0e0f(0x16a),_0x57bf68[_0x1b0e0f(0x17f)]=_0x1b0e0f(0x1f1),_0x57bf68['SystemApiHooks']='am_system_api_hooks',_0x57bf68[_0x1b0e0f(0x160)]=_0x1b0e0f(0x160),_0x57bf68[_0x1b0e0f(0x1b9)]='am_tp_installed_apis',_0x57bf68[_0x1b0e0f(0x211)]=_0x1b0e0f(0x211),_0x57bf68[_0x1b0e0f(0x137)]=_0x1b0e0f(0x121),_0x57bf68[_0x1b0e0f(0x190)]=_0x1b0e0f(0x1e1),_0x57bf68[_0x1b0e0f(0x1b3)]=_0x1b0e0f(0x21e),_0x57bf68[_0x1b0e0f(0x218)]=_0x1b0e0f(0x10f),_0x57bf68[_0x1b0e0f(0x1e8)]='am_ui_maker_styles',_0x57bf68[_0x1b0e0f(0x208)]='am_test_cases',function(_0x20be71){const _0x483e14=_0x1b0e0f;_0x20be71[_0x483e14(0x119)]='Custom\x20APIs',_0x20be71[_0x483e14(0x118)]='Database\x20migrations',_0x20be71[_0x483e14(0x21b)]=_0x483e14(0x13e),_0x20be71[_0x483e14(0x131)]=_0x483e14(0x1df),_0x20be71[_0x483e14(0x19e)]=_0x483e14(0x11d),_0x20be71[_0x483e14(0x233)]='Instance\x20API\x20hooks',_0x20be71[_0x483e14(0x1ba)]=_0x483e14(0x178),_0x20be71[_0x483e14(0x1ef)]='Database\x20hooks',_0x20be71[_0x483e14(0x1d9)]=_0x483e14(0x201),_0x20be71[_0x483e14(0x241)]='Instance\x20API\x20settings',_0x20be71[_0x483e14(0x1e3)]=_0x483e14(0x13a),_0x20be71[_0x483e14(0x198)]=_0x483e14(0x122),_0x20be71[_0x483e14(0x24f)]='System\x20API\x20hooks',_0x20be71['SYSTEM_API_SETTINGS']=_0x483e14(0x156),_0x20be71[_0x483e14(0x1ad)]=_0x483e14(0x243),_0x20be71[_0x483e14(0x146)]=_0x483e14(0x22d),_0x20be71['THIRD_PARTY_API_SETTINGS']=_0x483e14(0x20b),_0x20be71[_0x483e14(0x1ac)]=_0x483e14(0x20d),_0x20be71[_0x483e14(0x1fd)]='WebSocket\x20events',_0x20be71[_0x483e14(0x1d4)]=_0x483e14(0x101),_0x20be71[_0x483e14(0x167)]=_0x483e14(0x1b2),_0x20be71[_0x483e14(0x1cb)]='UI\x20maker\x20styles';}(_0x3c2731=_0xe17e60['_6']||(_0xe17e60['_6']={}));},0x300:_0x15623e=>{const _0x36397e=a0_0xf806;function _0x5a6ffb(_0x1052a7){const _0x51aa07=a0_0xf806;var _0x85eab4=new Error(_0x51aa07(0x235)+_0x1052a7+'\x27');throw _0x85eab4[_0x51aa07(0x120)]=_0x51aa07(0x237),_0x85eab4;}_0x5a6ffb[_0x36397e(0x1c4)]=()=>[],_0x5a6ffb[_0x36397e(0x239)]=_0x5a6ffb,_0x5a6ffb['id']=0x300,_0x15623e[_0x36397e(0x18c)]=_0x5a6ffb;},0x274:_0x28ba46=>{'use strict';const _0x405d6c=a0_0xf806;_0x28ba46[_0x405d6c(0x18c)]=require(_0x405d6c(0x151));},0x2f8:_0xde3eb0=>{'use strict';const _0x530e29=a0_0xf806;_0xde3eb0['exports']=require(_0x530e29(0x1f7));},0x2a0:_0x2960f5=>{'use strict';const _0x278fc3=a0_0xf806;_0x2960f5[_0x278fc3(0x18c)]=require(_0x278fc3(0x21f));},0x170:_0x1d03d8=>{'use strict';const _0x13d612=a0_0xf806;_0x1d03d8[_0x13d612(0x18c)]=require(_0x13d612(0x223));},0x3a:_0x1bab4c=>{'use strict';const _0x19a4cb=a0_0xf806;_0x1bab4c[_0x19a4cb(0x18c)]=require('fs');}},_0x133dcc={};function _0x3c0e75(_0x2bbce5){const _0xd8c48a=a0_0xf806;var _0x47a3d6=_0x133dcc[_0x2bbce5];if(void 0x0!==_0x47a3d6)return _0x47a3d6[_0xd8c48a(0x18c)];var _0x490354=_0x133dcc[_0x2bbce5]={'exports':{}};return _0x43be4e[_0x2bbce5](_0x490354,_0x490354[_0xd8c48a(0x18c)],_0x3c0e75),_0x490354[_0xd8c48a(0x18c)];}_0x3c0e75['o']=(_0x1a9bda,_0x932bbf)=>Object[_0x276446(0x1ab)]['hasOwnProperty'][_0x276446(0x15f)](_0x1a9bda,_0x932bbf),_0x3c0e75(0x3dc);})()));
|
|
1
|
+
function a0_0x1425(_0x21efc4,_0x43e939){const _0x371b46=a0_0x371b();return a0_0x1425=function(_0x1425c8,_0x4c72f5){_0x1425c8=_0x1425c8-0x155;let _0x67c952=_0x371b46[_0x1425c8];return _0x67c952;},a0_0x1425(_0x21efc4,_0x43e939);}(function(_0x241eab,_0x8b5d26){const _0x126b0f=a0_0x1425,_0x33129e=_0x241eab();while(!![]){try{const _0x4b594c=parseInt(_0x126b0f(0x1b3))/0x1+-parseInt(_0x126b0f(0x1f1))/0x2+parseInt(_0x126b0f(0x22e))/0x3*(-parseInt(_0x126b0f(0x255))/0x4)+-parseInt(_0x126b0f(0x2ae))/0x5*(parseInt(_0x126b0f(0x207))/0x6)+parseInt(_0x126b0f(0x187))/0x7+parseInt(_0x126b0f(0x221))/0x8+parseInt(_0x126b0f(0x190))/0x9;if(_0x4b594c===_0x8b5d26)break;else _0x33129e['push'](_0x33129e['shift']());}catch(_0x50ea26){_0x33129e['push'](_0x33129e['shift']());}}}(a0_0x371b,0x214aa),((()=>{'use strict';var _0x2d8b9e={0x11f:(_0x4be92a,_0x20f076,_0x9d6f3e)=>{const _0x4f5f27=a0_0x1425;_0x20f076['_6']=_0x20f076['EN']=_0x20f076['Yl']=_0x20f076['QX']=void 0x0;const _0x265d10=_0x9d6f3e(0x3a),_0x5cf2f4=_0x9d6f3e(0x2a0),_0x53452f=_0x9d6f3e(0x170);var _0x350668,_0x9beb16,_0x1e118c,_0x4116b5,_0x547ccf,_0x4bb920;new class{constructor(){const _0x108173=a0_0x1425;this['EL']=!0x1,this[_0x108173(0x15c)]=_0x5cf2f4['resolve'](''),this[_0x108173(0x2a6)]='',this['C']={'localClientPath':'./local-client.config','src':_0x108173(0x1ec),'repo':'repo','types':_0x108173(0x20b),'amTypes':_0x108173(0x1cc),'versions':_0x108173(0x279),'apis':_0x108173(0x258),'listeners':_0x108173(0x1f8),'postHooks':_0x108173(0x1b6),'preHooks':'pre-hooks','dbInterfacesFile':'db-interfaces.d.ts','UtilityClassesReadF':_0x108173(0x1c3),'CustomApiReadF':_0x108173(0x1f5),'SchedulersReadF':_0x108173(0x1ef),'WebSocketEventsReadF':_0x108173(0x1ee),'SchemaReadF':'Schemas','DBMigrationsReadF':_0x108173(0x29b),'ProcessInitializersReadF':_0x108173(0x210),'ProcessI18NReadF':_0x108173(0x1c2),'DBMastersReadF':_0x108173(0x26c),'DBMasterStylesReadF':_0x108173(0x245),'DBMasterUtilsReadF':'DB\x20master\x20utils','TestCasesReadF':_0x108173(0x1c4),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':_0x108173(0x211),'InstanceApiHooksReadF':_0x108173(0x225),'SystemApiHooksReadF':_0x108173(0x280),'CollectionHooksReadF':_0x108173(0x1e8),'DatabaseHooksReadF':_0x108173(0x18b),'InstanceHooksReadF':'Instance\x20hooks','CustomApisWriteF':_0x108173(0x28b),'SchedulersWriteF':_0x108173(0x2a2),'WebSocketEventsWriteF':_0x108173(0x23c),'SchemaWriteF':_0x108173(0x174),'DBMigrationsWriteF':_0x108173(0x237),'ProcessInitializersWriteF':_0x108173(0x2a4),'ProcessI18NWriteF':'i18ns','DBMastersWriteF':_0x108173(0x24a),'DBMasterStylesWriteF':_0x108173(0x297),'DBMasterUtilsWriteF':_0x108173(0x283),'TestCasesWriteF':_0x108173(0x19e),'ThirdPartyApiWriteF':_0x108173(0x235),'EventsWriteF':_0x108173(0x1d6),'InstanceApiHooksWriteF':_0x108173(0x1d7),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0x108173(0x219),'DatabaseHooksWriteF':_0x108173(0x2ab),'InstanceHooksWriteF':_0x108173(0x1bf)},this[_0x108173(0x16f)]=!0x1,this['skipFileWritingForLocal']={},this[_0x108173(0x1d2)]=!0x1,this['orangeStart']=_0x108173(0x163),this[_0x108173(0x15f)]='\x1b[36m',this[_0x108173(0x29c)]=_0x108173(0x169),this[_0x108173(0x230)]=!0x1,this[_0x108173(0x244)]=this['debounce'](this[_0x108173(0x25f)],0x1f4);}async[_0x4f5f27(0x198)](){const _0x35b0e8=_0x4f5f27;this[_0x35b0e8(0x265)](),this[_0x35b0e8(0x1f4)](),this['fsExistsSync'](this['C']['localClientPath']+'.js')||(this['printNotesToProvideLocalClient'](),this[_0x35b0e8(0x1c1)](0x1)['then']()),this[_0x35b0e8(0x299)]=require(this['C']['localClientPath'])(),await this[_0x35b0e8(0x1a8)](),this['removeEmptyDirsSync'](_0x5cf2f4['join'](this[_0x35b0e8(0x15c)],this['C'][_0x35b0e8(0x1ec)])),await this['createLCProjectDirectory'](),await this[_0x35b0e8(0x170)](),await this[_0x35b0e8(0x263)]();}[_0x4f5f27(0x1f4)](){const _0x3c602c=_0x4f5f27,_0x4d621f=process['version'];parseInt(_0x4d621f[_0x3c602c(0x273)]('.')[0x0][_0x3c602c(0x2b2)]('v',''),0xa)<0x16&&(console[_0x3c602c(0x242)](this[_0x3c602c(0x1d0)]+_0x3c602c(0x227)+_0x4d621f+this[_0x3c602c(0x29c)]),this[_0x3c602c(0x1c1)](0x1)[_0x3c602c(0x16b)]());}async[_0x4f5f27(0x1a8)](){const _0x489442=_0x4f5f27;console['log'](this[_0x489442(0x1d0)]),console[_0x489442(0x188)]('——————————————————————————————————————\x20Note\x20——————————————————————————————————————'),console[_0x489442(0x188)](_0x489442(0x23f)),console[_0x489442(0x188)]('\x20Current\x20Dir\x20:\x20'+this[_0x489442(0x15c)]),console[_0x489442(0x188)](_0x489442(0x27e)),console[_0x489442(0x188)](this['colorEnd']),console[_0x489442(0x188)]('');}[_0x4f5f27(0x267)](){const _0x1990f9=_0x4f5f27;console[_0x1990f9(0x188)]('\x1b[38;2;255;165;0m'),console['log'](_0x1990f9(0x186)+this['C'][_0x1990f9(0x1c8)]+_0x1990f9(0x157)),console[_0x1990f9(0x188)](_0x1990f9(0x169)),console[_0x1990f9(0x188)]('');}async[_0x4f5f27(0x295)](){const _0xcab628=_0x4f5f27,_0x3ce551=_0x5cf2f4[_0xcab628(0x162)](this[_0xcab628(0x15c)]),_0xd63c14=_0x5cf2f4[_0xcab628(0x204)](this[_0xcab628(0x15c)],'..',_0x3ce551+'-lc');this[_0xcab628(0x2a6)]=_0xd63c14,_0x265d10[_0xcab628(0x17c)](_0xd63c14,{'recursive':!0x0,'force':!0x0}),await this[_0xcab628(0x2a5)](_0xd63c14,{'recursive':!0x0});}async['copyFilesToProjectDir'](_0x2d7da5){const _0x3b365e=_0x4f5f27;await this[_0x3b365e(0x295)](),this[_0x3b365e(0x214)](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x2a6)],this['C'][_0x3b365e(0x1ec)]),{'recursive':!0x0}),_0x265d10[_0x3b365e(0x246)](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x15c)],_0x3b365e(0x29f)),_0x5cf2f4[_0x3b365e(0x204)](this['projectDirectory'],'package.json')),_0x265d10['cpSync'](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x15c)],_0x3b365e(0x1eb)),_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x2a6)],_0x3b365e(0x1eb)));const _0xb0137d=_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x15c)],_0x3b365e(0x1af)),_0xe22d01=JSON['parse'](await this[_0x3b365e(0x2ad)](_0xb0137d,{'encoding':'utf8'}));_0xe22d01[_0x3b365e(0x1a1)][_0x3b365e(0x1e2)]=_0x3b365e(0x282),_0xe22d01[_0x3b365e(0x1a1)][_0x3b365e(0x16c)]['*'][_0x3b365e(0x18c)]('*'),await this['fsWriteFile'](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x2a6)],_0x3b365e(0x1af)),JSON[_0x3b365e(0x270)](_0xe22d01,null,0x4),{'encoding':_0x3b365e(0x294)}),await _0x265d10[_0x3b365e(0x290)]['cp'](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x15c)],this['C'][_0x3b365e(0x1ce)]),_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x2a6)],this['C'][_0x3b365e(0x1ec)],this['C'][_0x3b365e(0x1ce)]),{'recursive':!0x0}),await _0x265d10[_0x3b365e(0x290)]['cp'](_0x5cf2f4['join'](this[_0x3b365e(0x15c)],this['C'][_0x3b365e(0x1ec)],this[_0x3b365e(0x299)][_0x3b365e(0x1ab)],this['C'][_0x3b365e(0x20b)],this['C'][_0x3b365e(0x203)]),_0x5cf2f4['join'](this[_0x3b365e(0x2a6)],this['C'][_0x3b365e(0x1ec)],this['C'][_0x3b365e(0x1ce)],this['C'][_0x3b365e(0x203)]),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x3b365e(0x256)](),await this[_0x3b365e(0x182)](),await this[_0x3b365e(0x296)](),await this[_0x3b365e(0x1b2)](),await this[_0x3b365e(0x1d5)](),await this[_0x3b365e(0x26b)](),await this[_0x3b365e(0x18d)](),await this[_0x3b365e(0x24e)](),await this['copyEventsToAnotherDir'](),await this[_0x3b365e(0x260)](),await this[_0x3b365e(0x1c7)](),await this['copyWebSocketEventsToAnotherDir'](),await this[_0x3b365e(0x262)](),await this[_0x3b365e(0x284)](),await this[_0x3b365e(0x29d)](),await this['copyDBMastersToAnotherDir'](),await this['copyDBMasterStylesToAnotherDir'](),await this[_0x3b365e(0x253)](),_0x2d7da5&&(console[_0x3b365e(0x188)](_0x3b365e(0x1ca)),await this[_0x3b365e(0x1e6)](_0x3b365e(0x23a),[_0x3b365e(0x185),'--force']),console[_0x3b365e(0x188)](_0x3b365e(0x20e)));try{_0x265d10['symlinkSync'](_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x15c)],'node_modules'),_0x5cf2f4[_0x3b365e(0x204)](this[_0x3b365e(0x2a6)],'node_modules'),_0x3b365e(0x241));}catch(_0x3da151){console[_0x3b365e(0x188)](_0x3b365e(0x269)),console[_0x3b365e(0x188)](_0x3da151),await this[_0x3b365e(0x1c1)](0x1);}}async[_0x4f5f27(0x170)](){const _0x1f3623=_0x4f5f27;console['log'](_0x1f3623(0x17e));try{_0x265d10['unlinkSync'](_0x5cf2f4[_0x1f3623(0x204)](this[_0x1f3623(0x15c)],'package-lock.json'));}catch(_0x356bf9){}await this[_0x1f3623(0x1e6)]('npm',[_0x1f3623(0x185),_0x1f3623(0x28e),'chokidar@4.0.3','js-yaml@4.1.0']),console['log']('✅\x20dependencies\x20installed');}async[_0x4f5f27(0x1be)](){const _0x495503=_0x4f5f27,_0x397f30=this['C'][_0x495503(0x29a)],_0x4c427d=_0x5cf2f4[_0x495503(0x204)](this[_0x495503(0x15c)],this['C'][_0x495503(0x1ec)],this[_0x495503(0x299)][_0x495503(0x1ab)],_0x397f30),_0x106cb2=await this[_0x495503(0x28f)](_0x4c427d,null);for(const _0x553eed of _0x106cb2){const _0x26a1c6=_0x5cf2f4[_0x495503(0x204)](_0x4c427d,_0x553eed,_0x553eed+_0x495503(0x224));if(!this['fsExistsSync'](_0x26a1c6))continue;const _0x2cba66=await this[_0x495503(0x2ad)](_0x26a1c6,{'encoding':_0x495503(0x294)}),_0x3fdb30=await this[_0x495503(0x1e3)](_0x2cba66);for(const _0x548af4 of _0x3fdb30[_0x495503(0x279)]||[])if(!0x0===_0x548af4[_0x495503(0x168)]){const _0x14beed=_0x5cf2f4[_0x495503(0x204)](_0x4c427d,_0x553eed,this['C']['versions'],_0x548af4[_0x495503(0x1b9)],_0x548af4['name']+_0x495503(0x243)),_0x2c75f6=_0x5cf2f4['join'](this['projectDirectory'],this['C'][_0x495503(0x1ec)],_0x3fdb30[_0x495503(0x25b)],_0x3fdb30[_0x495503(0x18e)]+'.ts');await this[_0x495503(0x2a5)](_0x5cf2f4[_0x495503(0x166)](_0x2c75f6),{'recursive':!0x0}),await this['fsLink'](_0x14beed,_0x2c75f6);}}}async['copyCustomApisToAnotherDir'](){const _0x9d84c1=_0x4f5f27,_0x2d1ded=this['C']['CustomApiReadF'],_0x1627c0=this['C']['CustomApisWriteF'],_0x27207c=_0x5cf2f4[_0x9d84c1(0x204)](this[_0x9d84c1(0x15c)],this['C'][_0x9d84c1(0x1ec)],this[_0x9d84c1(0x299)][_0x9d84c1(0x1ab)],_0x2d1ded),_0x215f43=await this[_0x9d84c1(0x28f)](_0x27207c,null);for(const _0x433a37 of _0x215f43){const _0x32d5c5=_0x5cf2f4['join'](_0x27207c,_0x433a37,_0x433a37+_0x9d84c1(0x224));if(!this[_0x9d84c1(0x2b1)](_0x32d5c5))continue;const _0x1fa851=await this[_0x9d84c1(0x2ad)](_0x32d5c5,{'encoding':_0x9d84c1(0x294)}),_0x54bdd7=await this[_0x9d84c1(0x1e3)](_0x1fa851);for(const _0xd3bcef of _0x54bdd7[_0x9d84c1(0x279)]||[])if(!0x0===_0xd3bcef[_0x9d84c1(0x168)]){const _0x4e3740=_0x5cf2f4[_0x9d84c1(0x204)](_0x27207c,_0x433a37,this['C']['versions'],_0xd3bcef[_0x9d84c1(0x1b9)]),_0x53d183=_0x5cf2f4[_0x9d84c1(0x204)](_0x4e3740,_0xd3bcef['name']+_0x9d84c1(0x243)),_0x49fe77=_0x5cf2f4[_0x9d84c1(0x204)](this[_0x9d84c1(0x2a6)],this['C']['src'],_0x1627c0,_0x54bdd7[_0x9d84c1(0x1b4)],_0x54bdd7[_0x9d84c1(0x18e)]+'.ts');await this[_0x9d84c1(0x2a5)](_0x5cf2f4[_0x9d84c1(0x166)](_0x49fe77),{'recursive':!0x0}),await this[_0x9d84c1(0x29e)](_0x53d183,_0x49fe77);const _0x17df51=_0x5cf2f4[_0x9d84c1(0x204)](_0x27207c,_0x433a37,_0x433a37+'.config.ts'),_0x195f7b=_0x5cf2f4[_0x9d84c1(0x204)](this[_0x9d84c1(0x2a6)],this['C'][_0x9d84c1(0x1ec)],_0x1627c0,_0x54bdd7[_0x9d84c1(0x1b4)],_0x54bdd7[_0x9d84c1(0x18e)]+_0x9d84c1(0x212));await this['fsLink'](_0x17df51,_0x195f7b);for(const _0x495545 of _0xd3bcef['preHooks']){const _0x49e5da=_0x5cf2f4[_0x9d84c1(0x204)](_0x4e3740,this['C'][_0x9d84c1(0x264)],_0x495545[_0x9d84c1(0x18e)]+_0x9d84c1(0x243)),_0x33f1ba=_0x5cf2f4[_0x9d84c1(0x204)](this['projectDirectory'],this['C'][_0x9d84c1(0x1ec)],_0x1627c0,_0x54bdd7[_0x9d84c1(0x1b4)],this['C'][_0x9d84c1(0x264)],_0x495545['name']+_0x9d84c1(0x243));await this[_0x9d84c1(0x2a5)](_0x5cf2f4['dirname'](_0x33f1ba),{'recursive':!0x0}),await this[_0x9d84c1(0x29e)](_0x49e5da,_0x33f1ba);}for(const _0xcae1db of _0xd3bcef[_0x9d84c1(0x17f)]){const _0x27fa49=_0x5cf2f4['join'](_0x4e3740,this['C'][_0x9d84c1(0x17f)],_0xcae1db['name']+_0x9d84c1(0x243)),_0x43d93a=_0x5cf2f4['join'](this[_0x9d84c1(0x2a6)],this['C'][_0x9d84c1(0x1ec)],_0x1627c0,_0x54bdd7[_0x9d84c1(0x1b4)],this['C'][_0x9d84c1(0x17f)],_0xcae1db['name']+_0x9d84c1(0x243));await this[_0x9d84c1(0x2a5)](_0x5cf2f4[_0x9d84c1(0x166)](_0x43d93a),{'recursive':!0x0}),await this[_0x9d84c1(0x29e)](_0x27fa49,_0x43d93a);}}}}async[_0x4f5f27(0x182)](){const _0x3b3345=_0x4f5f27,_0x132b9b=this['C'][_0x3b3345(0x1de)],_0x4b9e47=this['C'][_0x3b3345(0x160)],_0x1bc71a=_0x5cf2f4[_0x3b3345(0x204)](this['appRoot'],this['C'][_0x3b3345(0x1ec)],this[_0x3b3345(0x299)][_0x3b3345(0x1ab)],_0x132b9b),_0x3a2023=await this[_0x3b3345(0x28f)](_0x1bc71a,null);for(const _0x4f1d3a of _0x3a2023){const _0x5cd6b5=_0x5cf2f4['join'](_0x1bc71a,_0x4f1d3a,_0x4f1d3a+_0x3b3345(0x224));if(!this[_0x3b3345(0x2b1)](_0x5cd6b5))continue;const _0xed5de6=await this[_0x3b3345(0x2ad)](_0x5cd6b5,{'encoding':_0x3b3345(0x294)}),_0x7fd719=await this['parseYaml'](_0xed5de6);for(const _0x171c38 of _0x7fd719['versions']||[])if(!0x0===_0x171c38['isActive']){const _0x47deb=_0x5cf2f4[_0x3b3345(0x204)](_0x1bc71a,_0x4f1d3a,this['C']['versions'],_0x171c38['version'],_0x171c38[_0x3b3345(0x18e)]+_0x3b3345(0x243)),_0x1e4578=_0x5cf2f4['join'](this['projectDirectory'],this['C'][_0x3b3345(0x1ec)],_0x4b9e47,_0x7fd719['name']+_0x3b3345(0x243));await this[_0x3b3345(0x2a5)](_0x5cf2f4[_0x3b3345(0x166)](_0x1e4578),{'recursive':!0x0}),await this['fsLink'](_0x47deb,_0x1e4578);}}}async[_0x4f5f27(0x296)](){const _0x2ca650=_0x4f5f27,_0x52bff3=this['C']['SchemaReadF'],_0x319e61=this['C'][_0x2ca650(0x238)],_0x5af7ee=_0x5cf2f4['join'](this['appRoot'],this['C'][_0x2ca650(0x1ec)],this[_0x2ca650(0x299)][_0x2ca650(0x1ab)],_0x52bff3),_0x1f63a4=await this[_0x2ca650(0x28f)](_0x5af7ee,null);for(const _0x2bb6c3 of _0x1f63a4){const _0x4b0012=_0x5cf2f4[_0x2ca650(0x204)](_0x5af7ee,_0x2bb6c3,_0x2bb6c3+_0x2ca650(0x224));if(!this[_0x2ca650(0x2b1)](_0x4b0012))continue;const _0x916da9=await this[_0x2ca650(0x2ad)](_0x4b0012,{'encoding':'utf8'}),_0x42e094=await this[_0x2ca650(0x1e3)](_0x916da9),_0x518e4d=_0x5cf2f4[_0x2ca650(0x204)](this[_0x2ca650(0x2a6)],this['C'][_0x2ca650(0x1ec)],_0x319e61,_0x42e094[_0x2ca650(0x26e)],_0x42e094[_0x2ca650(0x1ba)]);await this[_0x2ca650(0x2a5)](_0x518e4d,{'recursive':!0x0});const _0x987918=_0x5cf2f4[_0x2ca650(0x204)](_0x5af7ee,_0x2bb6c3,_0x42e094['collectionName']+_0x2ca650(0x212)),_0x4be2fd=_0x5cf2f4[_0x2ca650(0x204)](_0x518e4d,_0x42e094[_0x2ca650(0x26a)]+_0x2ca650(0x212));await this['fsLink'](_0x987918,_0x4be2fd);}}async['copyDBMigrationsToAnotherDir'](){const _0x59bd2b=_0x4f5f27,_0x54c23d=this['C'][_0x59bd2b(0x1dd)],_0x4b5b49=this['C']['DBMigrationsWriteF'],_0x2397a4=_0x5cf2f4[_0x59bd2b(0x204)](this['appRoot'],this['C']['src'],this[_0x59bd2b(0x299)][_0x59bd2b(0x1ab)],_0x54c23d),_0x1602c6=await this[_0x59bd2b(0x28f)](_0x2397a4,null);for(const _0x3e7a21 of _0x1602c6){const _0x2d2f13=_0x5cf2f4['join'](_0x2397a4,_0x3e7a21,_0x3e7a21+_0x59bd2b(0x224));if(!this[_0x59bd2b(0x2b1)](_0x2d2f13))continue;const _0x37cae6=await this['fsReadFile'](_0x2d2f13,{'encoding':_0x59bd2b(0x294)}),_0x1d7751=await this[_0x59bd2b(0x1e3)](_0x37cae6),_0x57288d=_0x5cf2f4[_0x59bd2b(0x204)](this[_0x59bd2b(0x2a6)],this['C'][_0x59bd2b(0x1ec)],_0x4b5b49);await this[_0x59bd2b(0x2a5)](_0x57288d,{'recursive':!0x0});const _0x14dcf5=_0x5cf2f4[_0x59bd2b(0x204)](_0x2397a4,_0x3e7a21,_0x1d7751[_0x59bd2b(0x18e)]+_0x59bd2b(0x243)),_0x41b0a3=_0x5cf2f4['join'](_0x57288d,_0x1d7751['name']+_0x59bd2b(0x243));await this['fsLink'](_0x14dcf5,_0x41b0a3);}}async[_0x4f5f27(0x1d5)](){const _0x339d4f=_0x4f5f27,_0x6f88ad=this['C'][_0x339d4f(0x184)],_0x3a1b7e=this['C'][_0x339d4f(0x1a6)],_0x373fb7=_0x5cf2f4[_0x339d4f(0x204)](this[_0x339d4f(0x15c)],this['C'][_0x339d4f(0x1ec)],this[_0x339d4f(0x299)][_0x339d4f(0x1ab)],_0x6f88ad),_0x47b8e0=await this[_0x339d4f(0x28f)](_0x373fb7,null);for(const _0xb107a6 of _0x47b8e0){const _0x4e4567=_0x5cf2f4['join'](_0x373fb7,_0xb107a6,_0xb107a6+'.yaml');if(!this[_0x339d4f(0x2b1)](_0x4e4567))continue;const _0x4ba728=await this[_0x339d4f(0x2ad)](_0x4e4567,{'encoding':_0x339d4f(0x294)}),_0x39e836=await this[_0x339d4f(0x1e3)](_0x4ba728),_0x1b03fd=_0x5cf2f4[_0x339d4f(0x204)](this[_0x339d4f(0x2a6)],this['C'][_0x339d4f(0x1ec)],_0x3a1b7e);await this['fsMkDir'](_0x1b03fd,{'recursive':!0x0});const _0x53020a=_0x5cf2f4[_0x339d4f(0x204)](_0x373fb7,_0xb107a6,_0x39e836['name']+'.ts'),_0x1bc317=_0x5cf2f4[_0x339d4f(0x204)](_0x1b03fd,_0x39e836[_0x339d4f(0x18e)]+_0x339d4f(0x243));await this['fsLink'](_0x53020a,_0x1bc317);}}async['copyI18NToAnotherDir'](){const _0x502f85=_0x4f5f27,_0x2c66a4=this['C'][_0x502f85(0x24f)],_0x411a85=this['C'][_0x502f85(0x278)],_0x4d728c=_0x5cf2f4['join'](this[_0x502f85(0x15c)],this['C'][_0x502f85(0x1ec)],this[_0x502f85(0x299)][_0x502f85(0x1ab)],_0x2c66a4),_0x578181=await this['readDirCustom'](_0x4d728c,null);for(const _0x391da2 of _0x578181){const _0x26ac0d=_0x5cf2f4[_0x502f85(0x204)](_0x4d728c,_0x391da2,_0x391da2+_0x502f85(0x224));if(!this['fsExistsSync'](_0x26ac0d))continue;const _0x5cac45=await this[_0x502f85(0x2ad)](_0x26ac0d,{'encoding':_0x502f85(0x294)}),_0x4d1886=await this[_0x502f85(0x1e3)](_0x5cac45),_0x509525=_0x5cf2f4[_0x502f85(0x204)](this[_0x502f85(0x2a6)],this['C'][_0x502f85(0x1ec)],_0x411a85);await this[_0x502f85(0x2a5)](_0x509525,{'recursive':!0x0});const _0x298772=_0x5cf2f4[_0x502f85(0x204)](_0x4d728c,_0x391da2,_0x4d1886[_0x502f85(0x18e)]+_0x502f85(0x243)),_0x2f1ed2=_0x5cf2f4[_0x502f85(0x204)](_0x509525,_0x4d1886[_0x502f85(0x18e)]+_0x502f85(0x243));await this[_0x502f85(0x29e)](_0x298772,_0x2f1ed2);}}async[_0x4f5f27(0x1c6)](){const _0x2099d7=_0x4f5f27,_0x260cd7=this['C']['DBMastersReadF'],_0x44ce41=this['C']['DBMastersWriteF'],_0x4d82ff=_0x5cf2f4[_0x2099d7(0x204)](this['appRoot'],this['C'][_0x2099d7(0x1ec)],this[_0x2099d7(0x299)][_0x2099d7(0x1ab)],_0x260cd7),_0x2ff8a2=await this[_0x2099d7(0x28f)](_0x4d82ff,null);for(const _0x2e93c2 of _0x2ff8a2){const _0x3ab427=_0x5cf2f4[_0x2099d7(0x204)](_0x4d82ff,_0x2e93c2,_0x2e93c2+_0x2099d7(0x224));if(!this[_0x2099d7(0x2b1)](_0x3ab427))continue;const _0x263aad=await this[_0x2099d7(0x2ad)](_0x3ab427,{'encoding':'utf8'}),_0x10f9f8=await this[_0x2099d7(0x1e3)](_0x263aad),_0x5024a9=_0x5cf2f4[_0x2099d7(0x204)](this[_0x2099d7(0x2a6)],this['C'][_0x2099d7(0x1ec)],_0x44ce41,_0x10f9f8[_0x2099d7(0x18e)]);await this[_0x2099d7(0x2a5)](_0x5024a9,{'recursive':!0x0});const _0x438e7f=_0x5cf2f4[_0x2099d7(0x204)](_0x4d82ff,_0x2e93c2,_0x10f9f8['name']+_0x2099d7(0x243)),_0x11f3b2=_0x5cf2f4['join'](_0x5024a9,_0x10f9f8[_0x2099d7(0x18e)]+_0x2099d7(0x243));await this[_0x2099d7(0x29e)](_0x438e7f,_0x11f3b2);const _0x2e3235=_0x5cf2f4[_0x2099d7(0x204)](_0x4d82ff,_0x2e93c2,_0x10f9f8['name']+_0x2099d7(0x212)),_0x53dac4=_0x5cf2f4[_0x2099d7(0x204)](_0x5024a9,_0x10f9f8[_0x2099d7(0x18e)]+_0x2099d7(0x212));await this[_0x2099d7(0x29e)](_0x2e3235,_0x53dac4);}}async[_0x4f5f27(0x1da)](){const _0xc086f5=_0x4f5f27,_0x833971=this['C']['DBMasterStylesReadF'],_0x30b6a0=this['C'][_0xc086f5(0x232)],_0x48a3a2=_0x5cf2f4[_0xc086f5(0x204)](this[_0xc086f5(0x15c)],this['C'][_0xc086f5(0x1ec)],this[_0xc086f5(0x299)]['adminUserPath'],_0x833971),_0x5ba53c=await this[_0xc086f5(0x28f)](_0x48a3a2,null);for(const _0x364b66 of _0x5ba53c){const _0x590223=_0x5cf2f4[_0xc086f5(0x204)](_0x48a3a2,_0x364b66,_0x364b66+_0xc086f5(0x224));if(!this[_0xc086f5(0x2b1)](_0x590223))continue;const _0x599c9b=await this[_0xc086f5(0x2ad)](_0x590223,{'encoding':'utf8'}),_0x46f0f1=await this[_0xc086f5(0x1e3)](_0x599c9b),_0x5565ec=_0x5cf2f4['join'](this[_0xc086f5(0x2a6)],this['C'][_0xc086f5(0x1ec)],_0x30b6a0);await this['fsMkDir'](_0x5565ec,{'recursive':!0x0});const _0x115699=_0x5cf2f4[_0xc086f5(0x204)](_0x48a3a2,_0x364b66,_0x46f0f1[_0xc086f5(0x18e)]+_0xc086f5(0x24d)),_0x2da329=_0x5cf2f4['join'](_0x5565ec,_0x46f0f1['name']+_0xc086f5(0x24d));await this[_0xc086f5(0x29e)](_0x115699,_0x2da329);}}async[_0x4f5f27(0x253)](){const _0x3600bc=_0x4f5f27,_0x25f2d4=this['C'][_0x3600bc(0x1dc)],_0xcdc580=this['C'][_0x3600bc(0x1c0)],_0x4b9de2=_0x5cf2f4['join'](this['appRoot'],this['C'][_0x3600bc(0x1ec)],this[_0x3600bc(0x299)][_0x3600bc(0x1ab)],_0x25f2d4),_0x19f353=await this[_0x3600bc(0x28f)](_0x4b9de2,null);for(const _0x3a4f2b of _0x19f353){const _0x5bd342=_0x5cf2f4[_0x3600bc(0x204)](_0x4b9de2,_0x3a4f2b,_0x3a4f2b+_0x3600bc(0x224));if(!this[_0x3600bc(0x2b1)](_0x5bd342))continue;const _0x2e0817=await this[_0x3600bc(0x2ad)](_0x5bd342,{'encoding':_0x3600bc(0x294)}),_0x23d5ca=await this[_0x3600bc(0x1e3)](_0x2e0817),_0x569dab=_0x5cf2f4[_0x3600bc(0x204)](this[_0x3600bc(0x2a6)],this['C']['src'],_0xcdc580);await this[_0x3600bc(0x2a5)](_0x569dab,{'recursive':!0x0});const _0x2bae0e=_0x5cf2f4[_0x3600bc(0x204)](_0x4b9de2,_0x3a4f2b,_0x23d5ca[_0x3600bc(0x18e)]+_0x3600bc(0x243)),_0x21934a=_0x5cf2f4[_0x3600bc(0x204)](_0x569dab,_0x23d5ca[_0x3600bc(0x18e)]+'.ts');await this['fsLink'](_0x2bae0e,_0x21934a);}}async['copyTestCasesToAnotherDir'](){const _0x51b039=_0x4f5f27,_0x2af020=this['C'][_0x51b039(0x1ac)],_0x120f99=this['C'][_0x51b039(0x197)],_0x14c69b=_0x5cf2f4['join'](this[_0x51b039(0x15c)],this['C'][_0x51b039(0x1ec)],this[_0x51b039(0x299)][_0x51b039(0x1ab)],_0x2af020),_0x176277=await this['readDirCustom'](_0x14c69b,null);for(const _0x559a8e of _0x176277){const _0xf60b43=_0x5cf2f4['join'](_0x14c69b,_0x559a8e,_0x559a8e+_0x51b039(0x224));if(!this[_0x51b039(0x2b1)](_0xf60b43))continue;const _0x147db5=await this[_0x51b039(0x2ad)](_0xf60b43,{'encoding':'utf8'}),_0x51824e=await this['parseYaml'](_0x147db5),_0x2b999e=_0x5cf2f4[_0x51b039(0x204)](this['projectDirectory'],this['C'][_0x51b039(0x1ec)],_0x120f99);await this[_0x51b039(0x2a5)](_0x2b999e,{'recursive':!0x0});const _0x4532df=_0x5cf2f4['join'](_0x14c69b,_0x559a8e,_0x51824e[_0x51b039(0x18e)]+_0x51b039(0x243)),_0x288a2a=_0x5cf2f4[_0x51b039(0x204)](_0x2b999e,_0x51824e[_0x51b039(0x18e)]+'.ts');await this[_0x51b039(0x29e)](_0x4532df,_0x288a2a);}}async[_0x4f5f27(0x24e)](){const _0x35ebe7=_0x4f5f27,_0x3af098=this['C'][_0x35ebe7(0x250)],_0x13f9d9=this['C'][_0x35ebe7(0x276)],_0x426dc8=_0x5cf2f4[_0x35ebe7(0x204)](this[_0x35ebe7(0x15c)],this['C'][_0x35ebe7(0x1ec)],this[_0x35ebe7(0x299)][_0x35ebe7(0x1ab)],_0x3af098);if(!this[_0x35ebe7(0x2b1)](_0x426dc8))return;const _0x42efbf=await this[_0x35ebe7(0x28f)](_0x426dc8,null);for(const _0x314145 of _0x42efbf){const _0x1c2d61=_0x5cf2f4[_0x35ebe7(0x204)](_0x426dc8,_0x314145,this['C'][_0x35ebe7(0x258)]),_0x86bef1=await this[_0x35ebe7(0x28f)](_0x1c2d61,null);for(const _0x46a2d8 of _0x86bef1){const _0x1837b6=_0x5cf2f4[_0x35ebe7(0x204)](_0x1c2d61,_0x46a2d8,_0x46a2d8+_0x35ebe7(0x224));if(!this['fsExistsSync'](_0x1837b6))continue;const _0x519c22=await this[_0x35ebe7(0x2ad)](_0x1837b6,{'encoding':'utf8'}),_0x500a4d=await this[_0x35ebe7(0x1e3)](_0x519c22);for(const _0x8641b of _0x500a4d[_0x35ebe7(0x279)]||[])if(!0x0===_0x8641b[_0x35ebe7(0x168)]){const _0x2efaa0=_0x5cf2f4[_0x35ebe7(0x204)](_0x1c2d61,_0x46a2d8,this['C'][_0x35ebe7(0x279)],_0x8641b[_0x35ebe7(0x1b9)]),_0x4bdefe=_0x5cf2f4[_0x35ebe7(0x204)](_0x2efaa0,_0x8641b['name']+_0x35ebe7(0x243)),_0x37c85d=_0x5cf2f4[_0x35ebe7(0x204)](this['projectDirectory'],this['C']['src'],_0x13f9d9,_0x314145,_0x500a4d[_0x35ebe7(0x1b4)],_0x500a4d[_0x35ebe7(0x18e)]+_0x35ebe7(0x243));await this[_0x35ebe7(0x2a5)](_0x5cf2f4[_0x35ebe7(0x166)](_0x37c85d),{'recursive':!0x0}),await this[_0x35ebe7(0x29e)](_0x4bdefe,_0x37c85d);const _0x2a270b=_0x5cf2f4['join'](_0x1c2d61,_0x46a2d8,_0x46a2d8+_0x35ebe7(0x212)),_0x513ca8=_0x5cf2f4[_0x35ebe7(0x204)](this['projectDirectory'],this['C'][_0x35ebe7(0x1ec)],_0x13f9d9,_0x314145,_0x500a4d[_0x35ebe7(0x1b4)],_0x500a4d['name']+_0x35ebe7(0x212));await this[_0x35ebe7(0x29e)](_0x2a270b,_0x513ca8);for(const _0x88e16e of _0x8641b[_0x35ebe7(0x264)]){const _0x315e4a=_0x5cf2f4[_0x35ebe7(0x204)](_0x2efaa0,this['C'][_0x35ebe7(0x264)],_0x88e16e[_0x35ebe7(0x18e)]+_0x35ebe7(0x243)),_0x15b75c=_0x5cf2f4[_0x35ebe7(0x204)](this[_0x35ebe7(0x2a6)],this['C']['src'],_0x13f9d9,_0x314145,_0x500a4d['path'],this['C'][_0x35ebe7(0x264)],_0x88e16e['name']+_0x35ebe7(0x243));await this[_0x35ebe7(0x2a5)](_0x5cf2f4['dirname'](_0x15b75c),{'recursive':!0x0}),await this[_0x35ebe7(0x29e)](_0x315e4a,_0x15b75c);}for(const _0x581270 of _0x8641b[_0x35ebe7(0x17f)]){const _0x123fcd=_0x5cf2f4[_0x35ebe7(0x204)](_0x2efaa0,this['C'][_0x35ebe7(0x17f)],_0x581270[_0x35ebe7(0x18e)]+_0x35ebe7(0x243)),_0x53c867=_0x5cf2f4[_0x35ebe7(0x204)](this[_0x35ebe7(0x2a6)],this['C'][_0x35ebe7(0x1ec)],_0x13f9d9,_0x314145,_0x500a4d[_0x35ebe7(0x1b4)],this['C'][_0x35ebe7(0x17f)],_0x581270['name']+_0x35ebe7(0x243));await this['fsMkDir'](_0x5cf2f4['dirname'](_0x53c867),{'recursive':!0x0}),await this[_0x35ebe7(0x29e)](_0x123fcd,_0x53c867);}}}}}async[_0x4f5f27(0x15d)](){const _0x376130=_0x4f5f27,_0x16f3ba=this['C']['EventsReadF'],_0xca90e4=this['C'][_0x376130(0x23e)],_0x138c41=_0x5cf2f4[_0x376130(0x204)](this[_0x376130(0x15c)],this['C']['src'],this[_0x376130(0x299)]['adminUserPath'],_0x16f3ba),_0x731eab=await this[_0x376130(0x28f)](_0x138c41,null);for(const _0x3e9e15 of _0x731eab){const _0x3c7ff1=_0x5cf2f4[_0x376130(0x204)](_0x138c41,_0x3e9e15,_0x3e9e15+_0x376130(0x224));if(!this['fsExistsSync'](_0x3c7ff1))continue;const _0x405068=await this[_0x376130(0x2ad)](_0x3c7ff1,{'encoding':_0x376130(0x294)}),_0x1792fb=await this[_0x376130(0x1e3)](_0x405068),_0x303763=_0x5cf2f4[_0x376130(0x204)](_0x138c41,_0x3e9e15,this['C']['listeners']);for(const _0x46f3e6 of _0x1792fb['eventListeners'])for(const _0x372d61 of _0x46f3e6[_0x376130(0x279)]||[])if(!0x0===_0x372d61[_0x376130(0x168)]){const _0x1d08e8=_0x5cf2f4['join'](_0x303763,_0x46f3e6[_0x376130(0x18e)],this['C']['versions'],_0x372d61['version'],_0x372d61[_0x376130(0x18e)]+_0x376130(0x243)),_0x328fcb=_0x5cf2f4[_0x376130(0x204)](this[_0x376130(0x2a6)],this['C']['src'],_0xca90e4,_0x1792fb[_0x376130(0x18e)],_0x46f3e6['name']+_0x376130(0x243));await this[_0x376130(0x2a5)](_0x5cf2f4[_0x376130(0x166)](_0x328fcb),{'recursive':!0x0}),await this[_0x376130(0x29e)](_0x1d08e8,_0x328fcb);}}}async[_0x4f5f27(0x260)](){const _0x376c56=_0x4f5f27,_0x5aad02=this['C'][_0x376c56(0x191)],_0x99f17b=this['C'][_0x376c56(0x22d)],_0x204f5b=_0x5cf2f4[_0x376c56(0x204)](this[_0x376c56(0x15c)],this['C'][_0x376c56(0x1ec)],this['config'][_0x376c56(0x1ab)],_0x5aad02),_0x435df1=await this[_0x376c56(0x28f)](_0x204f5b,null);for(const _0x27c290 of _0x435df1){const _0x439445=_0x5cf2f4[_0x376c56(0x204)](_0x204f5b,_0x27c290,_0x27c290+'.yaml');if(!this[_0x376c56(0x2b1)](_0x439445))continue;const _0x6306ba=await this[_0x376c56(0x2ad)](_0x439445,{'encoding':_0x376c56(0x294)}),_0x768672=await this['parseYaml'](_0x6306ba),_0x5a8ec8=_0x5cf2f4[_0x376c56(0x204)](_0x204f5b,_0x27c290),_0xf6cc09=_0x768672[_0x376c56(0x26e)]+'/'+_0x768672[_0x376c56(0x1ba)]+'/'+_0x768672[_0x376c56(0x26a)]+'/'+_0x768672['apiId'][_0x376c56(0x293)]();for(const _0x1dade2 of _0x768672[_0x376c56(0x264)]){const _0xb460fa=_0x5cf2f4[_0x376c56(0x204)](_0x5a8ec8,this['C'][_0x376c56(0x264)],_0x1dade2[_0x376c56(0x18e)]+_0x376c56(0x243)),_0x58630b=_0x5cf2f4['join'](this[_0x376c56(0x2a6)],this['C'][_0x376c56(0x1ec)],_0x99f17b,_0xf6cc09,this['C'][_0x376c56(0x264)],_0x1dade2[_0x376c56(0x18e)]+_0x376c56(0x243));await this['fsMkDir'](_0x5cf2f4[_0x376c56(0x166)](_0x58630b),{'recursive':!0x0}),await this[_0x376c56(0x29e)](_0xb460fa,_0x58630b);}for(const _0x2cce5e of _0x768672['postHooks']){const _0x127f46=_0x5cf2f4['join'](_0x5a8ec8,this['C'][_0x376c56(0x17f)],_0x2cce5e[_0x376c56(0x18e)]+_0x376c56(0x243)),_0x51b0cd=_0x5cf2f4[_0x376c56(0x204)](this[_0x376c56(0x2a6)],this['C'][_0x376c56(0x1ec)],_0x99f17b,_0xf6cc09,this['C'][_0x376c56(0x17f)],_0x2cce5e[_0x376c56(0x18e)]+'.ts');await this[_0x376c56(0x2a5)](_0x5cf2f4['dirname'](_0x51b0cd),{'recursive':!0x0}),await this['fsLink'](_0x127f46,_0x51b0cd);}}}async['copySystemApiHooksToAnotherDir'](){const _0x317d=_0x4f5f27,_0xd2a799=this['C']['SystemApiHooksReadF'],_0x47933a=this['C'][_0x317d(0x28c)],_0x5c6082=_0x5cf2f4[_0x317d(0x204)](this[_0x317d(0x15c)],this['C'][_0x317d(0x1ec)],this[_0x317d(0x299)][_0x317d(0x1ab)],_0xd2a799),_0x3aaf4e=await this[_0x317d(0x28f)](_0x5c6082,null);for(const _0xebd309 of _0x3aaf4e){const _0x24cb54=_0x5cf2f4[_0x317d(0x204)](_0x5c6082,_0xebd309,_0xebd309+'.yaml');if(!this[_0x317d(0x2b1)](_0x24cb54))continue;const _0x329af3=await this[_0x317d(0x2ad)](_0x24cb54,{'encoding':_0x317d(0x294)}),_0x133ad0=await this[_0x317d(0x1e3)](_0x329af3),_0x12c135=_0x5cf2f4[_0x317d(0x204)](_0x5c6082,_0xebd309),_0x76e842=_0x133ad0['apiId'][_0x317d(0x293)]();for(const _0x315db9 of _0x133ad0['preHooks']){const _0x2adeb3=_0x5cf2f4[_0x317d(0x204)](_0x12c135,this['C'][_0x317d(0x264)],_0x315db9[_0x317d(0x18e)]+'.ts'),_0xf92607=_0x5cf2f4[_0x317d(0x204)](this[_0x317d(0x2a6)],this['C']['src'],_0x47933a,_0x76e842,this['C']['preHooks'],_0x315db9['name']+'.ts');await this[_0x317d(0x2a5)](_0x5cf2f4[_0x317d(0x166)](_0xf92607),{'recursive':!0x0}),await this[_0x317d(0x29e)](_0x2adeb3,_0xf92607);}for(const _0x58b888 of _0x133ad0['postHooks']){const _0xe6e73f=_0x5cf2f4[_0x317d(0x204)](_0x12c135,this['C']['postHooks'],_0x58b888['name']+'.ts'),_0x5bd631=_0x5cf2f4[_0x317d(0x204)](this[_0x317d(0x2a6)],this['C']['src'],_0x47933a,_0x76e842,this['C']['postHooks'],_0x58b888[_0x317d(0x18e)]+_0x317d(0x243));await this[_0x317d(0x2a5)](_0x5cf2f4[_0x317d(0x166)](_0x5bd631),{'recursive':!0x0}),await this[_0x317d(0x29e)](_0xe6e73f,_0x5bd631);}}}async[_0x4f5f27(0x271)](){const _0x57ec09=_0x4f5f27,_0x421ff6=this['C'][_0x57ec09(0x240)],_0xe8c9b=this['C'][_0x57ec09(0x19a)],_0x28c179=_0x5cf2f4['join'](this['appRoot'],this['C'][_0x57ec09(0x1ec)],this['config'][_0x57ec09(0x1ab)],_0x421ff6),_0x2813e8=await this[_0x57ec09(0x28f)](_0x28c179,null);for(const _0x574573 of _0x2813e8){const _0x412e5f=_0x5cf2f4['join'](_0x28c179,_0x574573,_0x574573+_0x57ec09(0x224));if(!this[_0x57ec09(0x2b1)](_0x412e5f))continue;const _0x4f28a2=await this[_0x57ec09(0x2ad)](_0x412e5f,{'encoding':_0x57ec09(0x294)}),_0x112807=await this[_0x57ec09(0x1e3)](_0x4f28a2);for(const _0x46c6c5 of _0x112807[_0x57ec09(0x279)]||[])if(!0x0===_0x46c6c5[_0x57ec09(0x168)]){const _0x360fa5=_0x5cf2f4[_0x57ec09(0x204)](_0x28c179,_0x574573,this['C'][_0x57ec09(0x279)],_0x46c6c5[_0x57ec09(0x1b9)],_0x46c6c5['name']+'.ts');let _0x9d3cf3='',_0x11fbbf='';_0x112807[_0x57ec09(0x193)]===_0x350668['INSTANCES']?(_0x11fbbf=_0x57ec09(0x1ad),_0x9d3cf3=_0x112807['instanceName']+'/'+_0x112807['databaseName']+'/'+_0x112807[_0x57ec09(0x26a)]+'/'+_0x112807[_0x57ec09(0x156)][_0x57ec09(0x293)]()):_0x112807[_0x57ec09(0x193)]===_0x350668[_0x57ec09(0x2a8)]?(_0x11fbbf=_0x57ec09(0x235),_0x9d3cf3=_0x112807['tpInstalledApiBundleName']+'/'+_0x112807[_0x57ec09(0x1a5)]):_0x112807[_0x57ec09(0x193)]===_0x350668[_0x57ec09(0x1d3)]?(_0x11fbbf=_0x57ec09(0x28b),_0x9d3cf3=_0x112807['customApiName']):_0x112807[_0x57ec09(0x193)]===_0x350668[_0x57ec09(0x15b)]?(_0x11fbbf='system-apis',_0x9d3cf3=_0x112807[_0x57ec09(0x165)][_0x57ec09(0x293)]()):_0x112807[_0x57ec09(0x193)]===_0x350668[_0x57ec09(0x16d)]&&(_0x11fbbf=_0x57ec09(0x2a1),_0x9d3cf3=_0x112807[_0x57ec09(0x18e)]);const _0x2f159c=_0x5cf2f4[_0x57ec09(0x204)](this[_0x57ec09(0x2a6)],this['C'][_0x57ec09(0x1ec)],_0xe8c9b,_0x11fbbf,_0x9d3cf3+_0x57ec09(0x243));await this['fsMkDir'](_0x5cf2f4[_0x57ec09(0x166)](_0x2f159c),{'recursive':!0x0}),await this['fsLink'](_0x360fa5,_0x2f159c);}}}async[_0x4f5f27(0x262)](){const _0x30684c=_0x4f5f27,_0x5d8ab7=this['C'][_0x30684c(0x274)],_0xd8210c=this['C'][_0x30684c(0x217)],_0x5dd209=_0x5cf2f4[_0x30684c(0x204)](this['appRoot'],this['C'][_0x30684c(0x1ec)],this[_0x30684c(0x299)][_0x30684c(0x1ab)],_0x5d8ab7),_0x512bbd=await this[_0x30684c(0x28f)](_0x5dd209,null);for(const _0x1ee179 of _0x512bbd){const _0x2654ee=_0x5cf2f4['join'](_0x5dd209,_0x1ee179,_0x1ee179+_0x30684c(0x224));if(!this[_0x30684c(0x2b1)](_0x2654ee))continue;const _0x393559=await this['fsReadFile'](_0x2654ee,{'encoding':_0x30684c(0x294)}),_0x6ef5d2=await this['parseYaml'](_0x393559),_0x5b5fe0=_0x5cf2f4[_0x30684c(0x204)](_0x5dd209,_0x1ee179),_0x3349d5=_0x6ef5d2[_0x30684c(0x26e)]+'/'+_0x6ef5d2[_0x30684c(0x1ba)]+'/'+_0x6ef5d2[_0x30684c(0x26a)];for(const _0x2f784f of _0x6ef5d2[_0x30684c(0x264)]){const _0x3c111c=_0x5cf2f4[_0x30684c(0x204)](_0x5b5fe0,this['C'][_0x30684c(0x264)],_0x2f784f['name']+_0x30684c(0x243)),_0x114213=_0x5cf2f4[_0x30684c(0x204)](this[_0x30684c(0x2a6)],this['C'][_0x30684c(0x1ec)],_0xd8210c,_0x3349d5,this['C'][_0x30684c(0x264)],_0x2f784f[_0x30684c(0x18e)]+_0x30684c(0x243));await this[_0x30684c(0x2a5)](_0x5cf2f4[_0x30684c(0x166)](_0x114213),{'recursive':!0x0}),await this[_0x30684c(0x29e)](_0x3c111c,_0x114213);}for(const _0x376b86 of _0x6ef5d2[_0x30684c(0x17f)]){const _0x22c7f7=_0x5cf2f4[_0x30684c(0x204)](_0x5b5fe0,this['C'][_0x30684c(0x17f)],_0x376b86[_0x30684c(0x18e)]+'.ts'),_0x53af90=_0x5cf2f4[_0x30684c(0x204)](this['projectDirectory'],this['C'][_0x30684c(0x1ec)],_0xd8210c,_0x3349d5,this['C'][_0x30684c(0x17f)],_0x376b86[_0x30684c(0x18e)]+_0x30684c(0x243));await this['fsMkDir'](_0x5cf2f4[_0x30684c(0x166)](_0x53af90),{'recursive':!0x0}),await this[_0x30684c(0x29e)](_0x22c7f7,_0x53af90);}}}async[_0x4f5f27(0x284)](){const _0x147302=_0x4f5f27,_0x37bda9=this['C']['DatabaseHooksReadF'],_0x2d5dea=this['C']['DatabaseHooksWriteF'],_0x54558d=_0x5cf2f4[_0x147302(0x204)](this[_0x147302(0x15c)],this['C'][_0x147302(0x1ec)],this[_0x147302(0x299)][_0x147302(0x1ab)],_0x37bda9),_0x1ae2e8=await this[_0x147302(0x28f)](_0x54558d,null);for(const _0x535059 of _0x1ae2e8){const _0x3ce860=_0x5cf2f4[_0x147302(0x204)](_0x54558d,_0x535059,_0x535059+_0x147302(0x224));if(!this[_0x147302(0x2b1)](_0x3ce860))continue;const _0x8b88d4=await this['fsReadFile'](_0x3ce860,{'encoding':_0x147302(0x294)}),_0x4c5cb4=await this['parseYaml'](_0x8b88d4),_0x346e24=_0x5cf2f4['join'](_0x54558d,_0x535059),_0x2e1011=_0x4c5cb4[_0x147302(0x26e)]+'/'+_0x4c5cb4['databaseName'];for(const _0x644315 of _0x4c5cb4[_0x147302(0x264)]){const _0x477362=_0x5cf2f4[_0x147302(0x204)](_0x346e24,this['C'][_0x147302(0x264)],_0x644315[_0x147302(0x18e)]+_0x147302(0x243)),_0x4b17c6=_0x5cf2f4[_0x147302(0x204)](this[_0x147302(0x2a6)],this['C'][_0x147302(0x1ec)],_0x2d5dea,_0x2e1011,this['C']['preHooks'],_0x644315[_0x147302(0x18e)]+_0x147302(0x243));await this[_0x147302(0x2a5)](_0x5cf2f4[_0x147302(0x166)](_0x4b17c6),{'recursive':!0x0}),await this[_0x147302(0x29e)](_0x477362,_0x4b17c6);}for(const _0x18194d of _0x4c5cb4[_0x147302(0x17f)]){const _0xab539b=_0x5cf2f4[_0x147302(0x204)](_0x346e24,this['C'][_0x147302(0x17f)],_0x18194d['name']+'.ts'),_0x205af8=_0x5cf2f4[_0x147302(0x204)](this['projectDirectory'],this['C'][_0x147302(0x1ec)],_0x2d5dea,_0x2e1011,this['C'][_0x147302(0x17f)],_0x18194d[_0x147302(0x18e)]+_0x147302(0x243));await this[_0x147302(0x2a5)](_0x5cf2f4[_0x147302(0x166)](_0x205af8),{'recursive':!0x0}),await this[_0x147302(0x29e)](_0xab539b,_0x205af8);}}}async[_0x4f5f27(0x29d)](){const _0xf621a8=_0x4f5f27,_0x77a60f=this['C'][_0xf621a8(0x17b)],_0x4f79c5=this['C'][_0xf621a8(0x1a4)],_0x2cd0a9=_0x5cf2f4[_0xf621a8(0x204)](this[_0xf621a8(0x15c)],this['C'][_0xf621a8(0x1ec)],this[_0xf621a8(0x299)][_0xf621a8(0x1ab)],_0x77a60f),_0x3f2d7d=await this[_0xf621a8(0x28f)](_0x2cd0a9,null);for(const _0x231a7f of _0x3f2d7d){const _0x2d3d0f=_0x5cf2f4[_0xf621a8(0x204)](_0x2cd0a9,_0x231a7f,_0x231a7f+'.yaml');if(!this[_0xf621a8(0x2b1)](_0x2d3d0f))continue;const _0x2839c8=await this[_0xf621a8(0x2ad)](_0x2d3d0f,{'encoding':'utf8'}),_0x59cac3=await this[_0xf621a8(0x1e3)](_0x2839c8),_0x38b0fc=_0x5cf2f4[_0xf621a8(0x204)](_0x2cd0a9,_0x231a7f),_0x1d3133=''+_0x59cac3[_0xf621a8(0x26e)];for(const _0x2bc5c3 of _0x59cac3[_0xf621a8(0x264)]){const _0x3fe540=_0x5cf2f4[_0xf621a8(0x204)](_0x38b0fc,this['C'][_0xf621a8(0x264)],_0x2bc5c3['name']+_0xf621a8(0x243)),_0x69e4e1=_0x5cf2f4['join'](this[_0xf621a8(0x2a6)],this['C']['src'],_0x4f79c5,_0x1d3133,this['C'][_0xf621a8(0x264)],_0x2bc5c3['name']+'.ts');await this[_0xf621a8(0x2a5)](_0x5cf2f4[_0xf621a8(0x166)](_0x69e4e1),{'recursive':!0x0}),await this['fsLink'](_0x3fe540,_0x69e4e1);}for(const _0x52adc6 of _0x59cac3[_0xf621a8(0x17f)]){const _0xafc294=_0x5cf2f4[_0xf621a8(0x204)](_0x38b0fc,this['C'][_0xf621a8(0x17f)],_0x52adc6['name']+_0xf621a8(0x243)),_0x2cac3c=_0x5cf2f4['join'](this[_0xf621a8(0x2a6)],this['C'][_0xf621a8(0x1ec)],_0x4f79c5,_0x1d3133,this['C'][_0xf621a8(0x17f)],_0x52adc6[_0xf621a8(0x18e)]+_0xf621a8(0x243));await this[_0xf621a8(0x2a5)](_0x5cf2f4[_0xf621a8(0x166)](_0x2cac3c),{'recursive':!0x0}),await this[_0xf621a8(0x29e)](_0xafc294,_0x2cac3c);}}}async['executeNpmRun'](_0x37c48c,_0x4bf2c5){return new Promise((_0x2a33f5,_0x2089e8)=>{const _0x508075=a0_0x1425,_0x45c2ec=(0x0,_0x53452f[_0x508075(0x247)])(_0x37c48c,_0x4bf2c5,{'shell':!0x0,'cwd':this[_0x508075(0x15c)]});_0x45c2ec['on'](_0x508075(0x252),_0x2bc612=>{const _0x3d9f14=_0x508075;if(0x0===_0x2bc612)setTimeout(_0x2a33f5,0x1f4);else{const _0x22e40e='\x27'+_0x37c48c+'\x20'+_0x4bf2c5['join']('\x20')+_0x3d9f14(0x1fc)+_0x2bc612+'.';_0x2089e8(new Error(_0x22e40e));}}),_0x45c2ec['on'](_0x508075(0x242),_0x56d1f6=>{const _0x3c4a0d=_0x508075;console['error'](_0x3c4a0d(0x1f6)+_0x56d1f6[_0x3c4a0d(0x25d)]),_0x2089e8(_0x56d1f6);});});}async['parseYaml'](_0x302b56){const _0x39750c=_0x4f5f27;return _0x9d6f3e(0x2f8)[_0x39750c(0x222)](_0x302b56);}['startWatch'](){const _0x57d664=_0x4f5f27,_0x4f2a3d=_0x9d6f3e(0x274),_0x13738b=_0x5cf2f4[_0x57d664(0x204)](this[_0x57d664(0x15c)]),_0x60045f=_0x5cf2f4['join'](this[_0x57d664(0x15c)],this['C'][_0x57d664(0x1ec)]),_0x1ef28f=_0x292b14=>{const _0x40b98f=_0x57d664,_0x293320=_0x5cf2f4[_0x40b98f(0x1d8)](_0x13738b,_0x292b14);return!(_0x293320&&!_0x293320[_0x40b98f(0x23b)]('.')&&!_0x293320[_0x40b98f(0x1bc)]('~')&&_0x293320['startsWith'](this['C'][_0x40b98f(0x1ec)]));},_0x4a0666=_0x4f2a3d[_0x57d664(0x26f)](_0x60045f,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x5d5d4e=async(_0x132ae2,_0x16a91e)=>{const _0x144705=_0x57d664;try{if(this[_0x144705(0x16f)])return;const _0x2450ab=_0x5cf2f4[_0x144705(0x1d8)](_0x13738b,_0x16a91e);if(!_0x16a91e||_0x1ef28f(_0x16a91e))return;console[_0x144705(0x188)]('✓\x20Send\x20:\x20['+this[_0x144705(0x209)]()+_0x144705(0x233)+_0x132ae2+_0x144705(0x201)+_0x2450ab);const _0x146d68=this['getCategoryOfPath'](_0x2450ab),_0x1691eb=this['getChangedFolder'](_0x146d68,_0x2450ab);if(!_0x1691eb)return;let _0x7440ba,_0x3edbf5=!0x1;if(this[_0x144705(0x2b1)](_0x1691eb)){if(this['fsExistsSync'](_0x5cf2f4['join'](_0x13738b,_0x2450ab))){const _0x3d1318=_0x5cf2f4['join'](_0x5cf2f4[_0x144705(0x281)]+this['C']['repo'],_0x1691eb);_0x7440ba=await this[_0x144705(0x239)](_0x1691eb,_0x3d1318),this[_0x144705(0x1f0)]({'objType':_0x9beb16[_0x144705(0x15a)],'localClientWSReqRes':{'eventType':_0x1e118c[_0x144705(0x27a)],'folderChangedOnLocalSystem':_0x7440ba,'category':_0x146d68,'shouldReplaceAllItemsOfCategory':_0x3edbf5}});}else this['syncAllDataWithServer']();}else{const _0x3cf6c7=this[_0x144705(0x1bb)](_0x146d68,_0x2450ab),_0x49fb49=_0x5cf2f4[_0x144705(0x204)](_0x5cf2f4[_0x144705(0x281)]+this['C'][_0x144705(0x216)],_0x3cf6c7);_0x7440ba=await this[_0x144705(0x239)](_0x3cf6c7,_0x49fb49),_0x3edbf5=!0x0,this['sendDeletedEventToServerDebounce'](_0x7440ba,_0x146d68,_0x3edbf5);}}catch(_0x12d937){console['error'](_0x144705(0x2a9),_0x12d937);}};_0x4a0666['on'](_0x57d664(0x200),_0x4076c4=>_0x5d5d4e(_0x57d664(0x200),_0x4076c4))['on']('change',_0x4e3a82=>_0x5d5d4e(_0x57d664(0x181),_0x4e3a82))['on'](_0x57d664(0x223),_0x3e6646=>_0x5d5d4e(_0x57d664(0x223),_0x3e6646))['on']('addDir',_0x1a785b=>_0x5d5d4e(_0x57d664(0x1f7),_0x1a785b))['on'](_0x57d664(0x27d),_0x5e2a0a=>_0x5d5d4e(_0x57d664(0x27d),_0x5e2a0a))['on'](_0x57d664(0x242),_0x4b0bda=>console[_0x57d664(0x242)](_0x57d664(0x2aa),_0x4b0bda)),this[_0x57d664(0x28a)]=_0x4a0666,console[_0x57d664(0x188)]('✅\x20Local\x20client\x20started...');}[_0x4f5f27(0x209)](){const _0x3f3921=_0x4f5f27,_0x547c37=new Date();return String(_0x547c37[_0x3f3921(0x176)]())['padStart'](0x2,'0')+':'+String(_0x547c37[_0x3f3921(0x1ae)]())['padStart'](0x2,'0')+':'+String(_0x547c37[_0x3f3921(0x251)]())[_0x3f3921(0x18f)](0x2,'0');}[_0x4f5f27(0x25f)](_0x16e5cc,_0x283223,_0x5863d8){const _0x17d833=_0x4f5f27;this[_0x17d833(0x1f0)]({'objType':_0x9beb16[_0x17d833(0x15a)],'localClientWSReqRes':{'eventType':_0x1e118c['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x16e5cc,'category':_0x283223,'shouldReplaceAllItemsOfCategory':_0x5863d8}});}['debounce'](_0x4f5196,_0x367f9e){let _0xb7cc86=null;return function(..._0x46febb){clearTimeout(_0xb7cc86),_0xb7cc86=setTimeout(()=>{const _0x5f261e=a0_0x1425;_0x4f5196[_0x5f261e(0x1a9)](this,_0x46febb);},_0x367f9e);};}[_0x4f5f27(0x183)](_0x5101a8){const _0x7ad160=_0x4f5f27,_0x2cdaa6=_0x5cf2f4[_0x7ad160(0x204)](this['C'][_0x7ad160(0x1ec)],this[_0x7ad160(0x299)][_0x7ad160(0x1ab)]);if(!_0x5101a8['startsWith'](_0x2cdaa6))return;const _0x405e74=_0x5101a8[_0x7ad160(0x273)](_0x5cf2f4[_0x7ad160(0x281)])[_0x7ad160(0x1fd)](_0x8039f=>!!_0x8039f)[0x2];for(const _0xc961ae in _0x4116b5)if(_0x4116b5[_0xc961ae]===_0x405e74)return _0x405e74;}[_0x4f5f27(0x180)](_0x5ba8ce,_0x4ed25a){const _0x2f78d2=_0x4f5f27,_0x53df96=_0x4ed25a[_0x2f78d2(0x273)](_0x5cf2f4[_0x2f78d2(0x281)]);let _0x5436cd='';return _0x5436cd=_0x5ba8ce===_0x4116b5[_0x2f78d2(0x2a8)]?_0x53df96[_0x2f78d2(0x194)](0x0,0x6)[_0x2f78d2(0x204)](_0x5cf2f4['sep']):_0x53df96[_0x2f78d2(0x194)](0x0,0x4)[_0x2f78d2(0x204)](_0x5cf2f4[_0x2f78d2(0x281)]),_0x5436cd;}['getChangedFolderForDeleted'](_0x29d55c,_0x373d28){const _0x559b11=_0x4f5f27;return _0x373d28['split'](_0x5cf2f4[_0x559b11(0x281)])[_0x559b11(0x194)](0x0,0x3)[_0x559b11(0x204)](_0x5cf2f4[_0x559b11(0x281)]);}async[_0x4f5f27(0x239)](_0x1bc19a,_0x7c921d){const _0x479f04={},_0x2f41fc=this;return await async function _0xe67665(_0xa952c1){const _0x11aaae=a0_0x1425,_0x491600=await _0x2f41fc[_0x11aaae(0x28f)](_0xa952c1,{'withFileTypes':!0x0});for(const _0x2cb53e of _0x491600){const _0x6cdc5b=_0x5cf2f4[_0x11aaae(0x204)](_0xa952c1,_0x2cb53e[_0x11aaae(0x18e)]),_0x5da663=_0x5cf2f4[_0x11aaae(0x27c)](_0x6cdc5b);if(_0x2cb53e['isDirectory']())await _0xe67665(_0x5da663);else{const _0x4039d3=_0x265d10[_0x11aaae(0x268)](_0x5da663),_0x43ebbe=_0x5cf2f4['relative'](_0x1bc19a,_0x5da663),_0x7fa4c7=_0x5cf2f4['join'](_0x7c921d,_0x43ebbe)[_0x11aaae(0x273)](_0x5cf2f4[_0x11aaae(0x281)])['join'](_0x5cf2f4[_0x11aaae(0x1fe)]['sep']);_0x479f04[_0x7fa4c7]={'encoding':_0x11aaae(0x18a),'content':_0x4039d3['toString'](_0x11aaae(0x18a))};}}}(_0x1bc19a),_0x479f04;}['sendToServer'](_0x5a2648){const _0x4bb035=_0x4f5f27;try{this['ws'][_0x4bb035(0x196)](JSON[_0x4bb035(0x270)](_0x5a2648));}catch(_0x57094e){console[_0x4bb035(0x188)](_0x57094e);}}async[_0x4f5f27(0x263)](){const _0x58072a=_0x4f5f27;console[_0x58072a(0x188)]('⏳\x20Connecting\x20to\x20server...');const _0x34da2b=this[_0x58072a(0x299)][_0x58072a(0x218)],_0x314c8d=this[_0x58072a(0x299)][_0x58072a(0x1ab)],_0x50552c=this['config'][_0x58072a(0x24c)];this['ws']=new WebSocket(_0x50552c+'?authTokenInfo=ws-local-client-sync&authorization='+_0x34da2b+_0x58072a(0x159)+_0x314c8d);const _0x2ab6ec=[],_0x5aca21=()=>{const _0x27b886=_0x58072a;this['sendToServer']({'objType':_0x9beb16[_0x27b886(0x1b7)],'onEvents':[{'eventType':_0x27b886(0x16a)}]});};function _0x202142(_0x2e9cc2){const _0x236255=_0x58072a;_0x2e9cc2[_0x236255(0x2a7)]=null,_0x2e9cc2[_0x236255(0x229)]=null,_0x2e9cc2[_0x236255(0x236)]=null,_0x2e9cc2[_0x236255(0x20f)]=null,_0x2e9cc2[_0x236255(0x252)]();}this['ws'][_0x58072a(0x229)]=async _0x324baf=>{const _0x51ba6b=_0x58072a,_0x29a93c=JSON[_0x51ba6b(0x26d)](_0x324baf[_0x51ba6b(0x1ff)]);if(_0x29a93c[_0x51ba6b(0x1fb)]===_0x9beb16['CONNECTED']&&_0x29a93c[_0x51ba6b(0x1b0)][_0x51ba6b(0x202)])_0x5aca21();else{if(_0x29a93c[_0x51ba6b(0x1fb)]===_0x9beb16['REGISTER']){if(_0x29a93c?.['response']?.['validOnEvents']?.[_0x51ba6b(0x1e4)]){for(const _0x5400d8 of _0x29a93c['response'][_0x51ba6b(0x19f)])_0x2ab6ec[_0x51ba6b(0x18c)](_0x5400d8);console[_0x51ba6b(0x188)]('✅\x20Connected\x20to\x20server\x20via\x20WS'),!0x1===this[_0x51ba6b(0x230)]&&(this[_0x51ba6b(0x230)]=!0x0,console[_0x51ba6b(0x188)](this[_0x51ba6b(0x15f)]+_0x51ba6b(0x189)+this['projectDirectory']+this[_0x51ba6b(0x29c)])),this['syncAllDataWithServer']();}else{const _0x14f765=_0x29a93c[_0x51ba6b(0x1b0)]?.['invalidOnEvents']?.[0x0]?.[_0x51ba6b(0x228)]?.[0x0]?.[_0x51ba6b(0x25d)]||_0x51ba6b(0x167);console[_0x51ba6b(0x188)]('❌\x20'+_0x14f765),await this[_0x51ba6b(0x1c1)](0x1);}}else await this[_0x51ba6b(0x2a0)](_0x29a93c);}},this['ws']['onclose']=_0x307cfa=>{const _0x2bb5ed=_0x58072a;console[_0x2bb5ed(0x188)](_0x2bb5ed(0x20a)),_0x202142(this['ws']),setTimeout(this[_0x2bb5ed(0x263)]['bind'](this),0xbb8);},this['ws'][_0x58072a(0x236)]=()=>{const _0x177498=_0x58072a;_0x202142(this['ws']),setTimeout(this[_0x177498(0x263)][_0x177498(0x161)](this),0xbb8);};}[_0x4f5f27(0x25c)](){const _0x1c4fed=_0x4f5f27;this[_0x1c4fed(0x1f0)]({'objType':_0x9beb16[_0x1c4fed(0x15a)],'localClientWSReqRes':{'eventType':_0x1e118c[_0x1c4fed(0x257)]}});}async['processReceivedEvent'](_0x3abf14){const _0x518e87=_0x4f5f27;if(this['EL']&&_0x3abf14[_0x518e87(0x1b0)][_0x518e87(0x23d)]!==_0x1e118c[_0x518e87(0x257)]&&console['log'](_0x3abf14),_0x3abf14[_0x518e87(0x1fb)]===_0x9beb16[_0x518e87(0x15a)]){if(_0x3abf14[_0x518e87(0x228)]?.[_0x518e87(0x1e4)])return void console[_0x518e87(0x242)](_0x3abf14[_0x518e87(0x228)]);if(_0x3abf14[_0x518e87(0x1b0)][_0x518e87(0x23d)]===_0x1e118c['LC_SEND_ALL_DATA']){_0x265d10[_0x518e87(0x17c)](_0x5cf2f4[_0x518e87(0x204)](this[_0x518e87(0x15c)],this['C'][_0x518e87(0x1ec)]),{'recursive':!0x0,'force':!0x0}),this[_0x518e87(0x214)](_0x5cf2f4[_0x518e87(0x204)](this[_0x518e87(0x15c)],this['C'][_0x518e87(0x1ec)]),{'recursive':!0x0});const _0x42840d=_0x3abf14[_0x518e87(0x1b0)]['eventData'];await this[_0x518e87(0x28d)](_0x42840d,this[_0x518e87(0x15c)]),this[_0x518e87(0x28a)]||setTimeout(this[_0x518e87(0x205)]['bind'](this),0x1388);}else{if(_0x3abf14[_0x518e87(0x1b0)][_0x518e87(0x23d)]===_0x1e118c[_0x518e87(0x19d)]){const _0x55eb7f=_0x3abf14[_0x518e87(0x1b0)][_0x518e87(0x16e)];await this[_0x518e87(0x28d)](_0x55eb7f['data'],this[_0x518e87(0x15c)]);}}!0x0===this[_0x518e87(0x1d2)]?await this['copyFilesToProjectDir'](!0x1):(await this[_0x518e87(0x192)](!0x0),this[_0x518e87(0x1d2)]=!0x0);}}async[_0x4f5f27(0x28d)](_0x4be2c4,_0x466f64){const _0x4ded5e=_0x4f5f27;this[_0x4ded5e(0x16f)]=!0x0;let _0x44105d=[];const _0x32ceb7=async()=>{const _0x5b08e7=_0x4ded5e;_0x44105d[_0x5b08e7(0x1e4)]>0x0&&(await Promise[_0x5b08e7(0x179)](_0x44105d),_0x44105d=[]);};for(const [_0x443f4e,_0x3ae613]of Object[_0x4ded5e(0x285)](_0x4be2c4)){if(!_0x443f4e[_0x4ded5e(0x23b)]('/'+this['C'][_0x4ded5e(0x216)]+'/'+this['C'][_0x4ded5e(0x1ec)]))continue;const _0x4e1ebd=_0x3ae613,_0x519629=_0x443f4e[_0x4ded5e(0x2b2)]('/'+this['C'][_0x4ded5e(0x216)],'');if(this[_0x4ded5e(0x178)][_0x519629])continue;const _0x2f383f=_0x5cf2f4[_0x4ded5e(0x204)](_0x466f64,_0x519629['replace'](/^\//,'')),_0x311911=_0x5cf2f4['dirname'](_0x2f383f),_0x2d0b46=async()=>{const _0xbd1f38=_0x4ded5e;await this[_0xbd1f38(0x2a5)](_0x311911,{'recursive':!0x0}),await this[_0xbd1f38(0x173)](_0x2f383f,_0x4e1ebd['content'],{'encoding':'base64'}),this['EL']&&console[_0xbd1f38(0x188)](_0xbd1f38(0x249)+this[_0xbd1f38(0x209)]()+_0xbd1f38(0x201)+_0x2f383f[_0xbd1f38(0x2b2)](_0x466f64,''));};_0x44105d[_0x4ded5e(0x18c)](_0x2d0b46()),_0x44105d[_0x4ded5e(0x1e4)]>=0x3e8&&await _0x32ceb7();}await _0x32ceb7(),setTimeout(()=>{const _0x11ac35=_0x4ded5e;this[_0x11ac35(0x16f)]=!0x1;},0x3e8);}[_0x4f5f27(0x277)](_0x2d649e){const _0x119588=_0x4f5f27,_0x3285df=this['normalizePath'](_0x2d649e);if(!this['fsExistsSync'](_0x3285df))return!0x1;const _0x2d2d1e=_0x265d10[_0x119588(0x195)](_0x3285df);let _0x1b3ecb=!0x0;for(const _0xfc0d01 of _0x2d2d1e){const _0x20a79d=_0x5cf2f4[_0x119588(0x204)](_0x3285df,_0xfc0d01);_0x265d10[_0x119588(0x2b3)](_0x20a79d)[_0x119588(0x213)]()&&this['removeEmptyDirsSync'](_0x20a79d)||(_0x1b3ecb=!0x1);}return!!_0x1b3ecb&&(_0x265d10[_0x119588(0x19b)](_0x3285df),!0x0);}async[_0x4f5f27(0x28f)](_0x188eb9,_0x3e1869){const _0x597825=_0x4f5f27;return this[_0x597825(0x2b1)](_0x188eb9)?await this[_0x597825(0x1b1)](_0x188eb9,_0x3e1869):[];}[_0x4f5f27(0x2ac)](_0x4391d4){return _0x5cf2f4['normalize'](_0x4391d4);}[_0x4f5f27(0x2b1)](_0x44214d){const _0x1b8d1f=_0x4f5f27,_0x453ef4=_0x5cf2f4[_0x1b8d1f(0x27c)](_0x44214d);return _0x265d10[_0x1b8d1f(0x21e)](_0x453ef4);}async[_0x4f5f27(0x1b1)](_0x353604,_0x9d3514){const _0x16022a=_0x4f5f27,_0x4aea53=_0x5cf2f4['normalize'](_0x353604);return await _0x265d10[_0x16022a(0x290)][_0x16022a(0x164)](_0x4aea53,_0x9d3514);}async['fsMkDir'](_0x2162a4,_0xf626e8){const _0x754b63=_0x4f5f27,_0x511a70=_0x5cf2f4[_0x754b63(0x27c)](_0x2162a4);return await _0x265d10[_0x754b63(0x290)][_0x754b63(0x254)](_0x511a70,_0xf626e8);}['fsMkDirSync'](_0x214f39,_0x550453){const _0x323f78=_0x4f5f27,_0x2701d7=_0x5cf2f4[_0x323f78(0x27c)](_0x214f39);return _0x265d10[_0x323f78(0x21f)](_0x2701d7,_0x550453);}async[_0x4f5f27(0x2ad)](_0x1427e4,_0x48cb5d){const _0x4c1acd=_0x4f5f27,_0x1ca890=_0x5cf2f4[_0x4c1acd(0x27c)](_0x1427e4);return await _0x265d10[_0x4c1acd(0x290)][_0x4c1acd(0x22c)](_0x1ca890,_0x48cb5d);}async['fsWriteFile'](_0x488845,_0x1338cf,_0x540042){const _0x1234e4=_0x4f5f27,_0x3409e9=_0x5cf2f4['normalize'](_0x488845);return await _0x265d10[_0x1234e4(0x290)]['writeFile'](_0x3409e9,_0x1338cf,_0x540042);}async[_0x4f5f27(0x29e)](_0x2f4ba9,_0x434909){const _0x5169d9=_0x4f5f27,_0x5d5a82=_0x5cf2f4[_0x5169d9(0x27c)](_0x2f4ba9),_0x5914e3=_0x5cf2f4[_0x5169d9(0x27c)](_0x434909);return await _0x265d10[_0x5169d9(0x290)][_0x5169d9(0x1df)](_0x5d5a82,_0x5914e3);}async['shutdownAndExit'](_0x294963=0x0){const _0xe375a5=_0x4f5f27;if(!this[_0xe375a5(0x172)]){this[_0xe375a5(0x172)]=!0x0;try{this[_0xe375a5(0x28a)]&&await this[_0xe375a5(0x28a)][_0xe375a5(0x252)]();}catch(_0x4d6c20){console['error']('Error\x20during\x20shutdown',_0x4d6c20);}finally{setTimeout(()=>process['exit'](_0x294963),0xc8);}}}['addProcessHooks'](){const _0x353f3b=_0x4f5f27;process['on']('SIGINT',()=>{const _0x5edc19=a0_0x1425;console[_0x5edc19(0x188)](_0x5edc19(0x21a)),this['shutdownAndExit'](0x0);}),process['on'](_0x353f3b(0x1cb),()=>{const _0x4ace57=_0x353f3b;console[_0x4ace57(0x188)](_0x4ace57(0x17a)),this['shutdownAndExit'](0x0);}),process['on'](_0x353f3b(0x22a),_0x21bb40=>{const _0x1ec8e1=_0x353f3b;console[_0x1ec8e1(0x188)](_0x1ec8e1(0x22a),_0x21bb40);}),process['on'](_0x353f3b(0x15e),_0xf553f=>{const _0x277bae=_0x353f3b;console['log'](_0x277bae(0x15e),_0xf553f);}),process['on']('uncaughtException',_0x5e50db=>{const _0xe0c3a5=_0x353f3b;console[_0xe0c3a5(0x242)](_0xe0c3a5(0x2a3),_0x5e50db),this[_0xe0c3a5(0x1c1)](0x1);}),process['on'](_0x353f3b(0x1a7),_0x35ed64=>{const _0x43f33b=_0x353f3b;console['error'](_0x43f33b(0x1a7),_0x35ed64),this[_0x43f33b(0x1c1)](0x1);});}}()['start']()[_0x4f5f27(0x16b)](),function(_0x3f920e){const _0x323308=_0x4f5f27;_0x3f920e[_0x323308(0x1cf)]=_0x323308(0x1cf),_0x3f920e['THIRD_PARTY_APIS']=_0x323308(0x2a8),_0x3f920e['CUSTOM_APIS']=_0x323308(0x1d3),_0x3f920e['SYSTEM_APIS']=_0x323308(0x15b),_0x3f920e[_0x323308(0x16d)]=_0x323308(0x16d);}(_0x350668=_0x20f076['QX']||(_0x20f076['QX']={})),function(_0x1c428e){const _0x50beab=_0x4f5f27;_0x1c428e[_0x50beab(0x1b7)]='REGISTER',_0x1c428e['UNREGISTER']=_0x50beab(0x24b),_0x1c428e['CONNECTED']='CONNECTED',_0x1c428e[_0x50beab(0x1e9)]=_0x50beab(0x1e9),_0x1c428e[_0x50beab(0x231)]=_0x50beab(0x231),_0x1c428e[_0x50beab(0x21d)]=_0x50beab(0x21d),_0x1c428e['LC_DATA_REQ_RES']=_0x50beab(0x15a);}(_0x9beb16||(_0x9beb16={})),function(_0x300889){const _0x3eea89=_0x4f5f27;_0x300889[_0x3eea89(0x257)]=_0x3eea89(0x257),_0x300889['LC_DATA_MODIFIED_IN_DATABASE']=_0x3eea89(0x19d),_0x300889['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0x3eea89(0x27a);}(_0x1e118c||(_0x1e118c={})),(_0x4bb920=_0x20f076['Yl']||(_0x20f076['Yl']={}))[_0x4f5f27(0x27b)]='POST',_0x4bb920[_0x4f5f27(0x22b)]='PUT',_0x4bb920[_0x4f5f27(0x1e5)]=_0x4f5f27(0x1e5),_0x4bb920[_0x4f5f27(0x266)]='DELETE',_0x4bb920['DELETE_ALL']=_0x4f5f27(0x1b8),(_0x547ccf=_0x20f076['EN']||(_0x20f076['EN']={}))[_0x4f5f27(0x1a3)]=_0x4f5f27(0x1d4),_0x547ccf['WebSocketEvents']='am_web_socket_events',_0x547ccf[_0x4f5f27(0x22f)]=_0x4f5f27(0x220),_0x547ccf[_0x4f5f27(0x1ed)]=_0x4f5f27(0x171),_0x547ccf[_0x4f5f27(0x1f2)]='am_instance_api_settings',_0x547ccf[_0x4f5f27(0x298)]='am_instance_api_hooks',_0x547ccf[_0x4f5f27(0x275)]=_0x4f5f27(0x259),_0x547ccf[_0x4f5f27(0x1f3)]=_0x4f5f27(0x292),_0x547ccf[_0x4f5f27(0x1d1)]='am_collection_hooks',_0x547ccf['Schedulers']=_0x4f5f27(0x19c),_0x547ccf[_0x4f5f27(0x234)]='am_schemas',_0x547ccf[_0x4f5f27(0x261)]=_0x4f5f27(0x1d9),_0x547ccf[_0x4f5f27(0x17d)]='am_system_api_settings',_0x547ccf[_0x4f5f27(0x1c5)]=_0x4f5f27(0x206),_0x547ccf['am_tp_api_settings']='am_tp_api_settings',_0x547ccf[_0x4f5f27(0x1f9)]='am_tp_installed_apis',_0x547ccf['am_tp_api_versions']=_0x4f5f27(0x27f),_0x547ccf[_0x4f5f27(0x1aa)]=_0x4f5f27(0x1e0),_0x547ccf[_0x4f5f27(0x1fa)]=_0x4f5f27(0x215),_0x547ccf[_0x4f5f27(0x25a)]=_0x4f5f27(0x21b),_0x547ccf[_0x4f5f27(0x208)]=_0x4f5f27(0x1c9),_0x547ccf[_0x4f5f27(0x289)]=_0x4f5f27(0x1cd),_0x547ccf[_0x4f5f27(0x2af)]=_0x4f5f27(0x1b5),function(_0x306967){const _0x444feb=_0x4f5f27;_0x306967[_0x444feb(0x1d3)]=_0x444feb(0x1f5),_0x306967[_0x444feb(0x272)]=_0x444feb(0x29b),_0x306967[_0x444feb(0x20d)]='Process\x20initializers',_0x306967[_0x444feb(0x1ea)]=_0x444feb(0x211),_0x306967[_0x444feb(0x177)]=_0x444feb(0x1c2),_0x306967['INSTANCE_API_HOOKS']='Instance\x20API\x20hooks',_0x306967[_0x444feb(0x155)]=_0x444feb(0x226),_0x306967[_0x444feb(0x291)]=_0x444feb(0x18b),_0x306967[_0x444feb(0x21c)]=_0x444feb(0x1e8),_0x306967[_0x444feb(0x20c)]=_0x444feb(0x2b0),_0x306967[_0x444feb(0x1a2)]='Schedulers',_0x306967['SCHEMAS']=_0x444feb(0x234),_0x306967[_0x444feb(0x1e7)]=_0x444feb(0x280),_0x306967['SYSTEM_API_SETTINGS']=_0x444feb(0x25e),_0x306967[_0x444feb(0x175)]='Test\x20cases',_0x306967[_0x444feb(0x2a8)]=_0x444feb(0x286),_0x306967[_0x444feb(0x1db)]=_0x444feb(0x1bd),_0x306967[_0x444feb(0x288)]='Utility\x20classes',_0x306967['EVENTS_WS']='WebSocket\x20events',_0x306967['DB_MASTERS']='DB\x20masters',_0x306967[_0x444feb(0x1e1)]=_0x444feb(0x248),_0x306967[_0x444feb(0x158)]=_0x444feb(0x245);}(_0x4116b5=_0x20f076['_6']||(_0x20f076['_6']={}));},0x274:_0x4ad99f=>{_0x4ad99f['exports']=require('chokidar');},0x2f8:_0x3ac43e=>{const _0x485531=a0_0x1425;_0x3ac43e[_0x485531(0x199)]=require(_0x485531(0x287));},0x2a0:_0x3661b6=>{const _0x1488be=a0_0x1425;_0x3661b6[_0x1488be(0x199)]=require(_0x1488be(0x1b4));},0x170:_0x561ebf=>{const _0x3f5cf6=a0_0x1425;_0x561ebf[_0x3f5cf6(0x199)]=require(_0x3f5cf6(0x1a0));},0x3a:_0x56e107=>{const _0x120cd8=a0_0x1425;_0x56e107[_0x120cd8(0x199)]=require('fs');}},_0x3a5b96={};!function _0x4d96e0(_0xef2267){const _0x57f027=a0_0x1425;var _0xd2fe0d=_0x3a5b96[_0xef2267];if(void 0x0!==_0xd2fe0d)return _0xd2fe0d[_0x57f027(0x199)];var _0x45b8f7=_0x3a5b96[_0xef2267]={'exports':{}};return _0x2d8b9e[_0xef2267](_0x45b8f7,_0x45b8f7[_0x57f027(0x199)],_0x4d96e0),_0x45b8f7[_0x57f027(0x199)];}(0x11f);})()));function a0_0x371b(){const _0x401860=['copySchedulersToAnotherDir','getCategoryOfPath','ProcessInitializersReadF','install','\x20Please\x20provide\x20settings\x20in\x20:\x20','204274yZAbdk','log','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','base64','Database\x20hooks','push','copyTestCasesToAnotherDir','name','padStart','1538478WEDVje','InstanceApiHooksReadF','copyFilesToProjectDir','apiCategory','slice','readdirSync','send','TestCasesWriteF','start','exports','WebSocketEventsWriteF','rmdirSync','am_schedulers','LC_DATA_MODIFIED_IN_DATABASE','tests','validOnEvents','child_process','compilerOptions','SCHEDULERS','AmEvents','InstanceHooksWriteF','tpInstalledApiName','ProcessInitializersWriteF','unhandledRejection','printNotes','apply','UtilityClasses','adminUserPath','TestCasesReadF','instances','getMinutes','tsconfig.json','response','fsReadDir','copyDBMigrationsToAnotherDir','108398uogeYx','path','am_test_cases','post-hooks','REGISTER','DELETE_ALL','version','databaseName','getChangedFolderForDeleted','endsWith','Third\x20party\x20API\x20settings','copyUtilityClassesToAnotherDir','instance-hooks','DBMasterUtilsWriteF','shutdownAndExit','i18ns','Utility\x20classes','Test\x20cases','SystemApiHooks','copyDBMastersToAnotherDir','copySystemApiHooksToAnotherDir','localClientPath','am_ui_maker_utils','⏳\x20node_modules\x20installation\x20process\x20started','SIGTERM','am-types','am_ui_maker_styles','amTypes','INSTANCES','orangeStart','CollectionHooks','nodeModulesCopied','CUSTOM_APIS','am_events','copyProcessInitializersToAnotherDir','events','instance-api-hooks','relative','am_i18ns','copyDBMasterStylesToAnotherDir','THIRD_PARTY_API_SETTINGS','DBMasterUtilsReadF','DBMigrationsReadF','SchedulersReadF','link','am_utility_classes','UI_MAKER_UTILITY_CLASS','baseUrl','parseYaml','length','PUT_REPLACE','executeNpmRun','SYSTEM_API_HOOKS','Collection\x20hooks','UNKNOWN','EVENTS','.gitignore','src','CustomApis','WebSocket\x20events','Schedulers','sendToServer','149686GugNRM','InstanceApiSettings','DatabaseHooks','checkForNodeVersion','Custom\x20APIs','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','addDir','listeners','am_tp_installed_apis','DatabasesMigrations','type','\x27\x20exited\x20with\x20code\x20','filter','posix','data','add',']\x20:\x20','connected','dbInterfacesFile','join','startWatch','am_system_api_hooks','1956crgPrj','UIMakerUtils','getCurrentTime','Connection\x20closed.','types','INSTANCE_API_SETTINGS','PROCESS_INITIALIZERS','✅\x20node_modules\x20installed','onclose','Process\x20initializers','Events','.config.ts','isDirectory','fsMkDirSync','am_database_migrations','repo','CollectionHooksWriteF','syncToken','collection-hooks','SIGINT\x20received\x20—\x20shutting\x20down','am_process_initializers','COLLECTION_HOOKS','NOTIFICATION','existsSync','mkdirSync','am_db_masters','1265328ShoNIy','load','unlink','.yaml','Instance\x20API\x20hooks','Instance\x20hooks','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','errors','onmessage','beforeExit','PUT','readFile','InstanceApiHooksWriteF','318525OMocdm','DBMasters','isWSConnectedFirstTime','TOKEN_VALIDATION','DBMasterStylesWriteF',']\x20:\x20[','Schemas','third-party-apis','onerror','db-migrations','SchemaWriteF','serializeFolderWithBinary','npm','startsWith','web-socket-events','eventType','EventsWriteF','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','WebSocketEventsReadF','dir','error','.ts','sendDeletedEventToServerDebounce','UI\x20maker\x20styles','cpSync','spawn','DB\x20master\x20utils','✓\x20Receive\x20:\x20[','ui-maker-pages','UNREGISTER','webSocketURL','.css','copyThirdPartyApisToAnotherDir','ProcessI18NReadF','ThirdPartyApiReadF','getSeconds','close','copyDBMasterUtilsToAnotherDir','mkdir','4xgSBJb','copyCustomApisToAnotherDir','LC_SEND_ALL_DATA','apis','am_instance_hooks','ProcessInitializers','folderPath','syncAllDataWithServer','message','System\x20API\x20settings','sendDeletedEventToServerInternal','copyInstanceApiHooksToAnotherDir','I18Ns','copyCollectionHooksToAnotherDir','connectToServerViaWS','preHooks','addProcessHooks','DELETE','printNotesToProvideLocalClient','readFileSync','Please\x20run\x20using\x20administrator\x20privileges.','collectionName','copyI18NToAnotherDir','DB\x20masters','parse','instanceName','watch','stringify','copyWebSocketEventsToAnotherDir','DB_MIGRATIONS','split','CollectionHooksReadF','InstanceHooks','ThirdPartyApiWriteF','removeEmptyDirsSync','ProcessI18NWriteF','versions','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','POST','normalize','unlinkDir','——————————————————————————————————————————————————————————————————————————————————','am_tp_api_versions','System\x20API\x20hooks','sep','./src','ui-maker-utils','copyDatabaseHooksToAnotherDir','entries','Third\x20party\x20APIs','js-yaml','UTILITY_CLASSES','UIMakerStyles','watcher','custom-apis','SystemApiHooksWriteF','writeMemfsJsonToDisk','--no-save','readDirCustom','promises','DATABASE_HOOKS','am_database_hooks','toLowerCase','utf8','createLCProjectDirectory','copySchemasToAnotherDir','ui-maker-styles','InstanceApiHooks','config','UtilityClassesReadF','Database\x20migrations','colorEnd','copyInstanceHooksToAnotherDir','fsLink','package.json','processReceivedEvent','ws-events','schedulers','uncaughtException','process-initializers','fsMkDir','projectDirectory','onopen','THIRD_PARTY_APIS','watch\x20handler\x20error','Watcher\x20error:','database-hooks','normalizePath','fsReadFile','2290DfufEm','AmTestCases','Instance\x20API\x20settings','fsExistsSync','replace','statSync','INSTANCE_HOOKS','instanceApiName','.js','UI_MAKER_STYLES','&user-path=','LC_DATA_REQ_RES','SYSTEM_APIS','appRoot','copyEventsToAnotherDir','exit','cyanStart','SchedulersWriteF','bind','basename','\x1b[38;2;255;165;0m','readdir','systemApiName','dirname','Error\x20while\x20connecting\x20to\x20WS\x20server.','isActive','\x1b[0m','LOCAL_CLIENT_SYNC_EVENTS','then','paths','WEB_SOCKET_EVENT','eventData','skipWatchInputs','installRequiredPackages','am_custom_apis','shuttingDown','fsWriteFile','schemas','TEST_CASES','getHours','I18NS','skipFileWritingForLocal','all','SIGTERM\x20received\x20—\x20shutting\x20down','InstanceHooksReadF','rmSync','SystemApiSettings','⏳\x20dependencies\x20installation\x20process\x20started','postHooks','getChangedFolder','change'];a0_0x371b=function(){return _0x401860;};return a0_0x371b();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[8447],{8447:(Re,I,n)=>{n.r(I),n.d(I,{ApiUserM:()=>Fe});var x=n(7060),X=n(1709),M=n(2173),e=n(540),S=n(5779),V=n(572),l=n(467),p=n(8727),d=n(5046),U=n(7326),C=n(7376),u=n(6645),_=n(7427),b=n(6129),w=n(6708),O=n(7337),y=n(7237),A=n(1987),E=n(3966),F=n(177),h=n(7645),D=n(7515),R=n(8542),m=n(4341),Y=n(9773),k=n(5312),B=n(9561),L=n(6268),K=n(5203),W=n(3478),J=n(8150),z=n(5430);function Q(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",24),e.EFF(2," Add API User"),e.k0s())}function H(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",25),e.EFF(2," View API User"),e.k0s())}function Z(r,i){1&r&&(e.j41(0,"span"),e.nrm(1,"i",26),e.EFF(2," Edit API User"),e.k0s())}function q(r,i){if(1&r){const t=e.RV6();e.j41(0,"a",30),e.bIt("click",function(){e.eBV(t);const s=e.XpG(2);return e.Njj(s.openSecret())}),e.nrm(1,"i",31),e.EFF(2," Open Secret "),e.k0s()}}function ee(r,i){if(1&r&&(e.j41(0,"div")(1,"div",10)(2,"label",11),e.EFF(3,"Password Path"),e.k0s(),e.j41(4,"div",12),e.nrm(5,"p-dropdown",27),e.k0s(),e.j41(6,"div",28),e.DNE(7,q,3,0,"a",29),e.k0s()()()),2&r){const t=e.XpG();e.R7$(5),e.Y8G("options",t.connectionStringSecrets)("filter",!0),e.R7$(2),e.Y8G("ngIf",t.data.mode!==t.EFormMode.VIEW)}}function te(r,i){1&r&&(e.j41(0,"div",10)(1,"label",11),e.EFF(2,"Password"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"input",32),e.k0s()())}function se(r,i){if(1&r){const t=e.RV6();e.j41(0,"div",10)(1,"label",11),e.EFF(2,"Swagger Token"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"input",33),e.k0s(),e.j41(5,"div",34)(6,"button",35),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.generateRandomStringForSwaggerURLPart())}),e.nrm(7,"i",36),e.k0s()()()}}function ae(r,i){if(1&r&&(e.j41(0,"div",10),e.nrm(1,"label",11),e.j41(2,"div",12)(3,"a",37),e.EFF(4,"View Swagger JSON"),e.k0s()()()),2&r){const t=e.XpG();e.R7$(3),e.yjJ("href","",t.environment.BE_HOST_PORT+t.EApiPaths.API+t.EApiPaths.SITES+t.EModelApiPaths.INSTANCE,"/",t.authCS.gUser.apiPath,"/get-swagger-docs/",t.form.getRawValue().swaggerURLRandomPart,"",e.B4B)}}function re(r,i){1&r&&(e.j41(0,"span"),e.EFF(1,"Save User"),e.k0s())}function ne(r,i){1&r&&(e.j41(0,"span"),e.EFF(1,"Update User"),e.k0s())}function ie(r,i){if(1&r){const t=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.save())}),e.nrm(1,"i",39),e.DNE(2,re,2,0,"span",4),e.DNE(3,ne,2,0,"span",4),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("disabled",t.form.invalid),e.R7$(2),e.Y8G("ngIf",t.data.mode===t.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",t.data.mode===t.EFormMode.EDIT)}}function oe(r,i){1&r&&e.nrm(0,"p-progressSpinner",40)}let P=(()=>{class r{fb;ns;apiUserS;generalS;instanceS;eventCenterS;secretS;constantsS;authCS;data;loading={form:!1};EFormMode=d.X;form;subscriptions=[];environment=k.c;connectionStringSecrets=[];constructor(t,a,s,o,c,f,g,v,De){this.fb=t,this.ns=a,this.apiUserS=s,this.generalS=o,this.instanceS=c,this.eventCenterS=f,this.secretS=g,this.constantsS=v,this.authCS=De}ngOnInit(){var t=this;this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var a=(0,l.A)(function*(s){if(s)if(t.form.enable(),yield t.loadConnectionStringFromSecret(),s.action===p.K.OPEN_FORM_IN_EDIT_MODE){const o=yield t.apiUserS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(o.data),t.form.get("password").setValidators([]),t.form.get("password").updateValueAndValidity()}else if(s.action===p.K.OPEN_FORM_IN_VIEW_MODE){const o=yield t.apiUserS.getById(t.data.formData._id).toPromise();t.form.reset(),t.form.patchValue(o.data),t.form.disable()}else s.action===p.K.OPEN_FORM_IN_ADD_MODE&&(t.form.reset(),t.form.get("enablePasswordPath").setValue(!0))});return function(s){return a.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.headerC.dataSecretForm.eventChannel.subscribe(function(){var a=(0,l.A)(function*(s){s&&s.action===p.K.UPDATED&&(t.eventCenterS.headerC.secManFormC.hideModal(),yield t.loadConnectionStringFromSecret())});return function(s){return a.apply(this,arguments)}}()))}createForm(){this.form=this.fb.group({name:[null,[m.k0.required]],username:[null,[m.k0.required]],password:[null,[]],enablePasswordPath:[!1,[]],apiUserPasswordPath:[null,[]],swaggerURLRandomPart:[null,[]],enableSwaggerDocs:[!1,[]]})}showModal(){$("#idApiUsersForm").modal("show")}hideModal(){$("#idApiUsersForm").modal("hide")}openSecret(){var t=this;return(0,l.A)(function*(){t.eventCenterS.headerC.dataSecretForm.formData=yield t.getDefaultSecret(),t.eventCenterS.headerC.dataSecretForm.mode=d.X.EDIT,t.eventCenterS.headerC.dataSecretForm.eventChannel.emit({action:p.K.OPEN_FORM_IN_EDIT_MODE}),t.eventCenterS.headerC.secManFormC.showModal()})()}loadConnectionStringFromSecret(){var t=this;return(0,l.A)(function*(){try{const a=(yield t.instanceS.getConnectionStringSecret().toPromise())?.data;t.connectionStringSecrets=a}catch(a){t.ns.showErrorFromResponse(a.error||a,"Unable to load connection string.")}})()}getDefaultSecret(){var t=this;return(0,l.A)(function*(){const a={find:{user:t.authCS.getUserId(),active:!0,isDefault:!0}};return(yield t.secretS.query(a).toPromise()).data?.[0]})()}save(){var t=this;return(0,l.A)(function*(){const a=t.form.getRawValue();a.user=t.authCS.getUserId();try{let s;if(t.loading.form=!0,t.data.mode===d.X.ADD){if(!a.password&&!a.apiUserPasswordPath)return t.loading.form=!1,t.ns.showError(t.constantsS.apiUser.passwordError);t.processDataBeforeSaveOrUpdate(a),s=yield t.apiUserS.post(a).toPromise()}else t.data.mode===d.X.EDIT&&(a.password||delete a.password,t.processDataBeforeSaveOrUpdate(a),s=yield t.apiUserS.put(t.data.formData._id,a,{select:u.GX._id}).toPromise());t.ns.showSuccess(t.data.mode===d.X.ADD?t.constantsS.apiUser.addSuccess:t.constantsS.apiUser.editSuccess),t.data.eventChannel.emit({action:t.data.mode===d.X.ADD?p.K.SAVED:p.K.UPDATED}),t.loading.form=!1}catch(s){t.loading.form=!1,t.ns.showErrorFromResponse(s.error||s,"Unable to save user info.")}})()}processDataBeforeSaveOrUpdate(t){t.password&&(t.password=this.generalS.getEncryptedString(t.password,k.c.crypto.passCommunication))}generateRandomStringForSwaggerURLPart(){this.form.patchValue({swaggerURLRandomPart:this.generalS.getRandomStringWithCapitals(32)})}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}EApiPaths=Y.ey;EModelApiPaths=B.bd;static \u0275fac=function(a){return new(a||r)(e.rXU(m.ok),e.rXU(w.m),e.rXU(_.N),e.rXU(b.f),e.rXU(L.J),e.rXU(E.d),e.rXU(K.S),e.rXU(A.X),e.rXU(y.l))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-user-form"]],inputs:{data:"data"},decls:42,vars:12,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idApiUsersForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],[1,"modal-body","overflow-auto"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["formControlName","username","name","username","spellcheck","false","type","text","placeholder","Please provide username",1,"form-control","form-control-sm"],[1,"align-middle","mb-0","pt-1"],["formControlName","enablePasswordPath","label","Enable Password From Secret Path",3,"binary"],["class","form-group row",4,"ngIf"],["formControlName","enableSwaggerDocs","label","Enable Swagger Docs",3,"binary"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],["formControlName","apiUserPasswordPath","optionValue","value","optionLabel","name","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-2","p-0"],["class","d-block mt-2 text-info","href","javascript:","sava-no-dbl-click","",3,"click",4,"ngIf"],["href","javascript:","sava-no-dbl-click","",1,"d-block","mt-2","text-info",3,"click"],[1,"fas","fa-key","text-danger","fa-fw","mr-1"],["formControlName","password","name","password","spellcheck","false","type","password","placeholder","Please provide password",1,"form-control","form-control-sm"],["formControlName","swaggerURLRandomPart","name","swaggerURLRandomPart","spellcheck","false","type","text","placeholder","Please generate random URL",1,"form-control","form-control-sm"],[1,"col-2","pl-0"],["pTooltip","Generate random swagger token","type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"fas","fa-star-of-life","text-info","fa-fw"],["target","_blank",3,"href"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.DNE(4,Q,3,0,"span",4),e.DNE(5,H,3,0,"span",4),e.DNE(6,Z,3,0,"span",4),e.j41(7,"button",5)(8,"span",6),e.nrm(9,"i",7),e.k0s()()(),e.j41(10,"div",8)(11,"form",9)(12,"div",10)(13,"label",11),e.EFF(14,"Name"),e.k0s(),e.j41(15,"div",12),e.nrm(16,"input",13),e.k0s()(),e.j41(17,"div",10)(18,"label",11),e.EFF(19,"Username"),e.k0s(),e.j41(20,"div",12),e.nrm(21,"input",14),e.k0s()(),e.j41(22,"div",10),e.nrm(23,"label",11),e.j41(24,"div",12)(25,"label",15),e.nrm(26,"p-checkbox",16),e.k0s()()(),e.DNE(27,ee,8,3,"div",4),e.DNE(28,te,5,0,"div",17),e.j41(29,"div",10),e.nrm(30,"label",11),e.j41(31,"div",12)(32,"label",15),e.nrm(33,"p-checkbox",18),e.k0s()()(),e.DNE(34,se,8,0,"div",17),e.DNE(35,ae,5,3,"div",17),e.k0s()(),e.j41(36,"div",19)(37,"button",20),e.nrm(38,"i",21),e.EFF(39," Close"),e.k0s(),e.DNE(40,ie,4,3,"button",22),e.k0s(),e.DNE(41,oe,1,0,"p-progressSpinner",23),e.k0s()()()),2&a&&(e.R7$(4),e.Y8G("ngIf",s.data.mode===s.EFormMode.ADD),e.R7$(1),e.Y8G("ngIf",s.data.mode===s.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",s.data.mode===s.EFormMode.EDIT),e.R7$(5),e.Y8G("formGroup",s.form),e.R7$(15),e.Y8G("binary",!0),e.R7$(1),e.Y8G("ngIf",!0===s.form.get("enablePasswordPath").value),e.R7$(1),e.Y8G("ngIf",s.data.mode!==s.EFormMode.VIEW&&!s.form.get("enablePasswordPath").value),e.R7$(5),e.Y8G("binary",!0),e.R7$(1),e.Y8G("ngIf",s.form.getRawValue().enableSwaggerDocs),e.R7$(1),e.Y8G("ngIf",s.form.getRawValue().enableSwaggerDocs&&s.form.getRawValue().swaggerURLRandomPart),e.R7$(5),e.Y8G("ngIf",s.data.mode!==s.EFormMode.VIEW),e.R7$(1),e.Y8G("ngIf",s.loading.form))},dependencies:[m.qT,m.me,m.BC,m.cb,m.j4,m.JD,F.bT,W.U,D.p,R.m,J.ms,z.Sc],encapsulation:2})}return r})();const le=["apiUserFormC"];function ce(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",17),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.edit())}),e.nrm(1,"i",18),e.k0s()}}function pe(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",19),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.removePermanentDialog())}),e.nrm(1,"i",20),e.k0s()}}function de(r,i){1&r&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Name"),e.k0s(),e.j41(3,"th"),e.EFF(4,"Username"),e.k0s()())}function me(r,i){if(1&r&&(e.j41(0,"tr",21)(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s()()),2&r){const t=i.$implicit;e.Y8G("pSelectableRow",t),e.R7$(2),e.JRh(t.name),e.R7$(2),e.JRh(t.username)}}function fe(r,i){1&r&&e.nrm(0,"p-progressSpinner",22)}let G=(()=>{class r{apiUserS;generalS;notificationS;navigationCS;authCS;constantsS;confirmationService;eventCenterS;loading={grid:!1};subscriptions=[];data={mode:d.X.ADD,eventChannel:new e.bkB,formData:void 0};rows=[];rowsMap={};showAll=!1;selectedRows=[];gridKey=u.GX._id;apiUserFormC;constructor(t,a,s,o,c,f,g,v){this.apiUserS=t,this.generalS=a,this.notificationS=s,this.navigationCS=o,this.authCS=c,this.constantsS=f,this.confirmationService=g,this.eventCenterS=v}ngOnInit(){this.eventCenterS.apiUser.selectedApiUsers.next([]),this.loadGridData(),this.subscriptions.push(this.data.eventChannel.subscribe(t=>{(t.action===p.K.SAVED||t.action===p.K.UPDATED)&&(this.apiUserFormC.hideModal(),this.loadGridData())})),this.generalS.setNewTitle("API Maker - API Users")}loadGridData(){var t=this;this.loading.grid=!0;const a={find:{user:this.authCS.getUserId(),active:!0},select:{name:1,username:1,active:1},sort:{name:1}};this.showAll&&delete a.find.active,this.subscriptions.push(this.apiUserS.query(a).subscribe(function(){var s=(0,l.A)(function*(o){if(o.success&&(t.selectedRows=[],t.rows=o.data,t.rowsMap=C.keyBy(t.rows,u.GX._id),t.rows[0]?._id)){const c=(yield t.apiUserS.getById(t.rows[0]._id).toPromise()).data;c._id&&(yield t.navigationCS.setQueryParam(U.F.api_user,c._id),t.eventCenterS.apiUser.selectedApiUsers.next([c]),t.selectedRows=[c],yield t.fillData())}t.generalS.setNewTitle("API Maker - API Users"),t.loading.grid=!1});return function(o){return s.apply(this,arguments)}}()))}add(){this.data.formData=void 0,this.data.mode=d.X.ADD,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_ADD_MODE}),this.apiUserFormC.showModal()}view(){this.data.formData=this.selectedRows[0],this.data.mode=d.X.VIEW,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_VIEW_MODE}),this.apiUserFormC.showModal()}edit(){this.data.formData=this.selectedRows[0],this.data.mode=d.X.EDIT,this.data.eventChannel.emit({action:p.K.OPEN_FORM_IN_EDIT_MODE}),this.apiUserFormC.showModal()}removePermanentDialog(){var t=this;return(0,l.A)(function*(){var a;t.confirmationService.confirm({message:t.constantsS.apiUser.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(a=(0,l.A)(function*(){yield t.removePermanent()}),function(){return a.apply(this,arguments)})})})()}removePermanent(){var t=this;return(0,l.A)(function*(){t.loading.grid=!0;const a=yield t.apiUserS.permanentDelete(t.selectedRows[0]._id).toPromise();t.loading.grid=!1,a.success?(t.notificationS.showSuccess(t.constantsS.apiUser.removePermanent),t.resetSelectedRows(),t.loadGridData()):t.notificationS.showErrorFromResponse(a,t.constantsS.apiUser.removePermanentError)})()}resetSelectedRows(){this.selectedRows.length=0,this.eventCenterS.apiUser.selectedApiUsers.next([])}resetDependents(){var t=this;return(0,l.A)(function*(){t.eventCenterS.apiUser.selectedApiUsers.next([]),yield t.navigationCS.setQueryParam(U.F.api_user,null)})()}apiUserSelected(){var t=this;return(0,l.A)(function*(){yield t.resetDependents(),yield t.fillData()})()}fillData(){var t=this;return(0,l.A)(function*(){if(!t.selectedRows.length)return yield t.navigationCS.setQueryParam(U.F.api_user,""),void t.eventCenterS.apiUser.selectedApiUsers.next([]);const a=(yield t.apiUserS.getById(t.selectedRows[0]._id).toPromise()).data;a._id?(yield t.navigationCS.setQueryParam(U.F.api_user,a._id),t.eventCenterS.apiUser.selectedApiUsers.next([a])):t.resetDependents().then()})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}dblClickUsers(){this.selectedRows.length&&this.edit()}static \u0275fac=function(a){return new(a||r)(e.rXU(_.N),e.rXU(b.f),e.rXU(w.m),e.rXU(O.$),e.rXU(y.l),e.rXU(A.X),e.rXU(S.td),e.rXU(E.d))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-users"]],viewQuery:function(a,s){if(1&a&&e.GBs(le,5),2&a){let o;e.mGM(o=e.lsd())&&(s.apiUserFormC=o.first)}},decls:19,vars:10,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/api-user.svg","alt","API Group Permissions",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-security/api-user-permission.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],["class","float-right cursor-pointer ml-3","pTooltip","Edit",3,"click",4,"ngIf"],["class","float-right cursor-pointer ml-3","pTooltip","Permanent Delete",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","calc(100vh - 100px)",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["apiUserFormC",""],["pTooltip","Edit",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw"],["pTooltip","Permanent Delete",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"far","fa-trash-alt","fa-fw","text-danger"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"span"),e.nrm(3,"img",2),e.EFF(4," API Users"),e.k0s(),e.j41(5,"div",3)(6,"a",4),e.nrm(7,"img",5),e.k0s()(),e.j41(8,"span",6),e.bIt("click",function(){return s.add()}),e.nrm(9,"i",7),e.k0s(),e.DNE(10,ce,2,0,"span",8),e.DNE(11,pe,2,0,"span",9),e.k0s(),e.j41(12,"div",10)(13,"p-table",11),e.bIt("selectionChange",function(c){return s.selectedRows=c})("dblclick",function(){return s.dblClickUsers()})("selectionChange",function(){return s.apiUserSelected()}),e.DNE(14,de,5,0,"ng-template",12),e.DNE(15,me,5,3,"ng-template",13),e.k0s(),e.DNE(16,fe,1,0,"p-progressSpinner",14),e.k0s()(),e.nrm(17,"app-w-api-user-form",15,16)),2&a&&(e.R7$(10),e.Y8G("ngIf",s.selectedRows.length),e.R7$(1),e.Y8G("ngIf",s.selectedRows.length),e.R7$(2),e.Y8G("selectionMode","multiple")("metaKeySelection",!0)("selection",s.selectedRows)("dataKey",s.gridKey)("scrollable",!0)("value",s.rows),e.R7$(3),e.Y8G("ngIf",s.loading.grid),e.R7$(1),e.Y8G("data",s.data))},dependencies:[F.bT,h.XI,S.Ei,h.d5,D.p,R.m,P],encapsulation:2})}return r})();var ue=n(152),he=n(4774),ge=n(4752);function ve(r,i){if(1&r){const t=e.RV6();e.j41(0,"span",10),e.bIt("click",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.saveUserPermissions())}),e.nrm(1,"i",11),e.EFF(2," Save"),e.k0s()}}function Se(r,i){1&r&&(e.j41(0,"tr"),e.nrm(1,"th",15),e.j41(2,"th"),e.EFF(3,"Name"),e.k0s()())}function Ue(r,i){if(1&r&&(e.j41(0,"td"),e.nrm(1,"p-tableCheckbox",18),e.k0s()),2&r){const t=e.XpG().$implicit;e.R7$(1),e.Y8G("value",t)("pSelectableRow",t)}}function Ce(r,i){if(1&r&&(e.j41(0,"tr",16),e.DNE(1,Ue,2,2,"td",17),e.j41(2,"td"),e.EFF(3),e.k0s()()),2&r){const t=i.$implicit,a=e.XpG(2);e.Y8G("pSelectableRow",t),e.R7$(1),e.Y8G("ngIf",a.showCheckbox),e.R7$(2),e.JRh(t.name)}}function _e(r,i){if(1&r){const t=e.RV6();e.j41(0,"p-table",12),e.bIt("selectionChange",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.selectedRows=s)})("selectionChange",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.apiGroupSelected())}),e.DNE(1,Se,4,0,"ng-template",13),e.DNE(2,Ce,4,3,"ng-template",14),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("selectionMode","multiple")("metaKeySelection",!1)("selection",t.selectedRows)("dataKey",t.gridKey)("scrollable",!0)("value",t.rows)}}function be(r,i){1&r&&e.nrm(0,"p-progressSpinner",19)}let T=(()=>{class r{groupS;generalS;notificationS;navigationS;authCS;apiUserS;constantsS;eventCenterS;showCheckbox=!0;loading={grid:!1};subscriptions=[];data={eventChannel:new e.bkB};rows=[];rowsMap={};selectedRows=[];gridKey=u.h3.name;constructor(t,a,s,o,c,f,g,v){this.groupS=t,this.generalS=a,this.notificationS=s,this.navigationS=o,this.authCS=c,this.apiUserS=f,this.constantsS=g,this.eventCenterS=v}ngOnInit(){var t=this;this.eventCenterS.apiUser.selectedGroups.next([]),this.subscriptions.push(this.eventCenterS.apiUser.selectedApiUsers.pipe((0,ue.B)(10)).subscribe(function(){var a=(0,l.A)(function*(s){s.length?yield t.loadGridData():t.resetList()});return function(s){return a.apply(this,arguments)}}()))}loadGridData(){var t=this;return(0,l.A)(function*(){t.loading.grid=!0;const a={find:{user:t.authCS.getUserId(),active:!0},select:{name:1},sort:{name:1}},s=yield t.groupS.query(a).toPromise();if(s.success){t.selectedRows=[],t.rows=s.data,t.rowsMap=C.keyBy(t.rows,"name");const o=t.eventCenterS.apiUser.selectedApiUsers.value[0].groupNames||[],c=[];for(const f of o)t.rowsMap[f]&&c.push(t.rowsMap[f]);t.selectedRows=c,t.eventCenterS.apiUser.selectedGroups.next(C.map(t.selectedRows,"_id"))}t.loading.grid=!1})()}resetList(){var t=this;return(0,l.A)(function*(){t.rows=[],t.rowsMap={},t.selectedRows.length=0,t.eventCenterS.apiUser.selectedGroups.next([])})()}apiGroupSelected(){var t=this;return(0,l.A)(function*(){t.eventCenterS.apiUser.selectedGroups.next(C.map(t.selectedRows,t.gridKey))})()}saveUserPermissions(){var t=this;return(0,l.A)(function*(){const a=JSON.parse(JSON.stringify(t.eventCenterS.apiUser.selectedApiUsers.value[0]));a.user=t.authCS.getUserId(),a.groupNames=t.eventCenterS.apiUser.selectedGroups.value||[],t.loading.grid=!0;const s=yield t.apiUserS.put(a._id,a,{select:u.GX._id}).toPromise();s&&s.success&&t.notificationS.showSuccess("User updated successfully."),t.loading.grid=!1})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(a){return new(a||r)(e.rXU(he.L),e.rXU(b.f),e.rXU(w.m),e.rXU(ge.O),e.rXU(y.l),e.rXU(_.N),e.rXU(A.X),e.rXU(E.d))};static \u0275cmp=e.VBU({type:r,selectors:[["app-w-api-group-list"]],inputs:{showCheckbox:"showCheckbox"},decls:12,vars:3,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/api-group.svg","alt","API Group Permissions",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-security/api-group-permission.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer ml-3","pTooltip","Save",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["pTooltip","Save",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-save","fa-fw","text-success"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],[2,"width","40px"],[3,"pSelectableRow"],[4,"ngIf"],[3,"value","pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"span"),e.nrm(3,"img",2),e.EFF(4," Groups"),e.k0s(),e.j41(5,"div",3)(6,"a",4),e.nrm(7,"img",5),e.k0s()(),e.DNE(8,ve,3,0,"span",6),e.k0s(),e.j41(9,"div",7),e.DNE(10,_e,3,6,"p-table",8),e.DNE(11,be,1,0,"p-progressSpinner",9),e.k0s()()),2&a&&(e.R7$(8),e.Y8G("ngIf",s.eventCenterS.apiUser.selectedApiUsers.value.length),e.R7$(2),e.Y8G("ngIf",s.eventCenterS.apiUser.selectedApiUsers.value.length),e.R7$(1),e.Y8G("ngIf",s.loading.grid))},dependencies:[F.bT,h.XI,S.Ei,h.d5,h.S9,D.p,R.m],encapsulation:2})}return r})();function we(r,i){1&r&&(e.j41(0,"div",3),e.nrm(1,"app-w-api-users"),e.k0s())}function ye(r,i){1&r&&(e.j41(0,"div",4),e.nrm(1,"app-w-api-group-list"),e.k0s())}const Ae=function(){return{height:"calc(100% - 100px);"}},j=function(){return[50,50]};const Ee=[{path:"layout",component:(()=>{class r{constructor(){}ngOnInit(){}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=e.VBU({type:r,selectors:[["app-api-user-layout"]],decls:4,vars:7,consts:[[1,"pt-1","pl-1","pr-1"],["styleClass","full-body border-0 shadow-sm mb-5","orientation","horizontal",3,"panelSizes","minSizes"],["pTemplate",""],[1,"col","flex","align-items-center","justify-content-center","pl-0","pr-1"],[1,"col","flex","align-items-center","justify-content-center","pl-1","pr-0"]],template:function(a,s){1&a&&(e.j41(0,"div",0)(1,"p-splitter",1),e.DNE(2,we,2,0,"ng-template",2),e.DNE(3,ye,2,0,"ng-template",2),e.k0s()()),2&a&&(e.R7$(1),e.Aen(e.lJ4(4,Ae)),e.Y8G("panelSizes",e.lJ4(5,j))("minSizes",e.lJ4(6,j)))},dependencies:[S.Ei,V.O,G,T],encapsulation:2})}return r})(),canActivate:[M.Z]}];let Fe=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275mod=e.$C({type:r});static \u0275inj=e.G2t({imports:[x.iI.forChild(Ee),X.u]})}return r})()}}]);
|