@mooncompany/uplink-chat 0.33.0 → 0.34.0

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.
Files changed (136) hide show
  1. package/bin/uplink.js +1 -1
  2. package/middleware/error-handler.js +1 -1
  3. package/package.json +1 -1
  4. package/public/css/markdown.css +28 -0
  5. package/public/css/mobile.540efab9.css +610 -0
  6. package/public/css/mobile.css +9 -13
  7. package/public/css/{split-view.727bdf6a.css → split-view.4e286356.css} +137 -8
  8. package/public/css/themes.css +45 -5
  9. package/public/dist/bundle.9b202855.js +1 -0
  10. package/public/index.html +22 -4
  11. package/public/js/agents-data.js +1 -1
  12. package/public/js/agents-ui.js +1 -1
  13. package/public/js/agents.js +1 -1
  14. package/public/js/app.js +1 -1
  15. package/public/js/appearance-settings.js +1 -1
  16. package/public/js/artifacts.js +1 -1
  17. package/public/js/audio-pcm-processor.js +1 -1
  18. package/public/js/audio-queue.js +1 -1
  19. package/public/js/bootstrap.js +1 -1
  20. package/public/js/chat.js +1 -1
  21. package/public/js/commands.js +1 -1
  22. package/public/js/connection-api.js +1 -1
  23. package/public/js/connection.js +1 -1
  24. package/public/js/context-tracker.js +1 -1
  25. package/public/js/core.js +1 -1
  26. package/public/js/cron-panel.js +1 -1
  27. package/public/js/dashboard.js +1 -1
  28. package/public/js/developer.js +1 -1
  29. package/public/js/encryption.js +1 -1
  30. package/public/js/errors.js +1 -1
  31. package/public/js/event-bus.js +1 -1
  32. package/public/js/fetch-utils.js +1 -1
  33. package/public/js/file-handler.js +1 -1
  34. package/public/js/files.js +1 -1
  35. package/public/js/gateway-chat.js +1 -1
  36. package/public/js/logger.js +1 -1
  37. package/public/js/markdown.js +1 -1
  38. package/public/js/message-actions.js +1 -1
  39. package/public/js/message-renderer.js +1 -1
  40. package/public/js/missed-messages.js +1 -1
  41. package/public/js/mobile-debug.js +1 -1
  42. package/public/js/notifications.js +1 -1
  43. package/public/js/offline-queue.js +1 -1
  44. package/public/js/onboarding.js +1 -1
  45. package/public/js/panels.js +1 -1
  46. package/public/js/premium.js +1 -1
  47. package/public/js/primary-header.js +1 -1
  48. package/public/js/realtime-voice.js +1 -1
  49. package/public/js/satellite-sync.js +1 -1
  50. package/public/js/satellite-ui.js +1 -1
  51. package/public/js/satellites.js +1 -1
  52. package/public/js/settings.js +1 -1
  53. package/public/js/shortcuts.js +1 -1
  54. package/public/js/split-chat.js +1 -1
  55. package/public/js/split-resize.js +1 -1
  56. package/public/js/splitview.js +1 -1
  57. package/public/js/storage.js +1 -1
  58. package/public/js/streaming-handler.js +1 -1
  59. package/public/js/stt-settings.js +1 -1
  60. package/public/js/themes.js +1 -1
  61. package/public/js/timestamps.js +1 -1
  62. package/public/js/tts-settings.js +1 -1
  63. package/public/js/ui.js +1 -1
  64. package/public/js/update-notifier.js +1 -1
  65. package/public/js/utils/constants.js +1 -1
  66. package/public/js/utils/icons.js +1 -1
  67. package/public/js/utils/sanitize.js +1 -1
  68. package/public/js/utils/sse-parser.js +1 -1
  69. package/public/js/vad.js +1 -1
  70. package/public/js/vendor/dompurify.min.js +1 -1
  71. package/public/js/voice-settings-v2.js +1 -1
  72. package/public/js/voice.js +1 -1
  73. package/public/sw.js +1 -1
  74. package/server/channel.js +1 -1
  75. package/server/chat.js +1 -1
  76. package/server/config-store.js +1 -1
  77. package/server/config.js +1 -1
  78. package/server/context.js +1 -1
  79. package/server/gateway-api-proxy.js +1 -1
  80. package/server/gateway-commands.js +1 -1
  81. package/server/gateway-proxy.js +1 -1
  82. package/server/index.js +1 -1
  83. package/server/logger.js +1 -1
  84. package/server/message-store.js +1 -1
  85. package/server/middleware/auth.js +1 -1
  86. package/server/middleware.js +1 -1
  87. package/server/openclaw-discover.js +1 -1
  88. package/server/premium/index.js +1 -1
  89. package/server/premium/license.js +1 -1
  90. package/server/realtime/bridge.js +1 -1
  91. package/server/realtime/index.js +1 -1
  92. package/server/realtime/tts-stream.js +1 -1
  93. package/server/routes/agents.js +1 -1
  94. package/server/routes/artifacts.js +1 -1
  95. package/server/routes/chat.js +1 -1
  96. package/server/routes/config-settings.js +1 -1
  97. package/server/routes/config.js +1 -1
  98. package/server/routes/cron.js +1 -1
  99. package/server/routes/files.js +1 -1
  100. package/server/routes/index.js +1 -1
  101. package/server/routes/media.js +1 -1
  102. package/server/routes/missed-messages.js +1 -1
  103. package/server/routes/premium.js +1 -1
  104. package/server/routes/push.js +1 -1
  105. package/server/routes/satellite.js +1 -1
  106. package/server/routes/status.js +1 -1
  107. package/server/routes/stt.js +1 -1
  108. package/server/routes/voice.js +1 -1
  109. package/server/routes/webhooks.js +1 -1
  110. package/server/routes.js +1 -1
  111. package/server/runtime-config.js +1 -1
  112. package/server/share.js +1 -1
  113. package/server/stt/faster-whisper.js +1 -1
  114. package/server/stt/groq.js +1 -1
  115. package/server/stt/index.js +1 -1
  116. package/server/stt/openai.js +1 -1
  117. package/server/sync.js +1 -1
  118. package/server/tailscale-https.js +1 -1
  119. package/server/tts.js +1 -1
  120. package/server/update-checker.js +1 -1
  121. package/server/utils/filename.js +1 -1
  122. package/server/utils.js +1 -1
  123. package/server/watchdog.js +1 -1
  124. package/server/websocket/broadcast.js +1 -1
  125. package/server/websocket/connections.js +1 -1
  126. package/server/websocket/index.js +1 -1
  127. package/server/websocket/routing.js +1 -1
  128. package/server/websocket/sync.js +1 -1
  129. package/server.js +1 -1
  130. package/utils/detect-tool-usage.js +1 -1
  131. package/utils/errors.js +1 -1
  132. package/utils/html-escape.js +1 -1
  133. package/utils/id-sanitize.js +1 -1
  134. package/utils/response.js +1 -1
  135. package/utils/with-retry.js +1 -1
  136. package/public/dist/bundle.5815836c.js +0 -1
package/bin/uplink.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- function _0x2256(){const _0x561fcf=['able\x20','⬡\x20Sto','.exam','disk\x20','jFruU','\x20diag','\x20\x20\x20\x20v','hostn','\x20\x20\x20St','TTS\x20A','kgrou','uploa','er\x20ru','toppe','\x20info','npm\x20u','GLTEX','unins','tall\x20','\x20unin','readl','linux','o-res','tHsZT','uplin','detac','onfig','updat','oBxjY','BYbHX',')\x0a\x20\x20\x20','hrIYf','\x1b[32m','g.pid','XZzqK','\x20watc','now','l\x20—\x20v','k\x20whe','\x20subs','\x20defa','rtCou','glanc','\x20not\x20','pass','\x20\x20Ski','mBkVu','he\x20Up','/upli','rash.','ady\x20c','in\x20us','\x20→\x20v','✓\x1b[0m','mNNHA','ocess','http:','force','reset','messa','DbYLA','trim','gured','info','-deta','empty','dog','fzSUc','ly\x20wi','\x20/t\x201','runs.','igura','gMwzS','k\x20—\x20L','ogs\x20i','gify','eck\x20i','hat','s\x20not','g\x20was','ists','sWith','nstal','ig\x20--','00\x20#\x20','pdate','\x20file','Run\x20i','ttp:/','m\x20pac','ay\x20to','\x20sets','//127','platf','share','wing\x20','data','eVovn','apply','/agen','othin','(empt','VlDrN','AoNAn','/loca','(watc','\x20\x20Cre','found','BomVI','opped','which','able','\x20Chat','all\x20-','meout','last\x20','\x20port','NLABS','reak\x20','\x20\x1b[32','\x20runn','edit\x20','DYhTe','e:\x20\x20\x20','plink','emove','resum','ound\x20','\x20warn','\x20prom','misse','COHQI','MPFKz','OfuGR','r\x20and','cript','ed\x1b[0','logs','abs\x20k','\x20on\x20t','nnMOD','d\x20dat','...','OR\x20en','d-con','aENxN','on:\x20\x20','kill','18\x20re','cubCe','\x20(con','208598xtBvYK','\x20line','ZXnqi','A_DIR','vbgHF','to\x20cl','⬡\x20Che','ssing','\x20\x20✗\x20F','ound.','\x20\x20\x20Sh','vPSrm','ory\x20a','it\x20\x20\x20','ge.js','aemon','env','e\x20\x22re','MuDaw','statu','th:\x20u','OmIXZ','lines','KEuLF','rver\x20','⬡\x20No\x20','led)','_here','d\x20wat','AY_TO','argv','ating','v\x20fil','lean.','the\x20l','\x20\x20\x20re','⬡\x20Res','\x20\x20\x20\x20','ne\x20wi','e\x20by\x20','fault','ine','irst:','100\x20l','_DIR/','ector','ditor','o\x20sto','BnhKq','set\x20\x20','readS','nk\x20be','KMmqh','ree','KbZBX','e...','\x0a\x20\x20⬡\x20','op\x20a\x20','stall','ID:\x20\x20','ver\x20(','\x20in\x20e','ailed','ZEEUD','\x20\x20\x20\x20\x20','rqWmF','r\x0a\x20\x20\x20','\x20stop','v:\x20','.env','red','lhUba','ons','l\x20cle','p\x20it\x20','log','homed','ken','dit\x20m','toLow','ve\x20al','logs,','ompan','ripti','commo','et\x20in','koff:','pen\x20c','\x20\x20Sto','nk-ch','OBKDf','ks\x20pa','d\x20log','I_API','\x20node','\x20pass','\x20enab','examp','\x20manu','\x20\x20Com','DViBs','\x20the\x20','\x20with','\x20to\x20r','GATEW','\x20remo','\x20\x20\x20\x20i','-host','achab','rsion','faile','kmbYB','join','hat\x20c','ted\x20t','o\x0a\x0a\x20\x20','\x20hist','sVZZQ','rrent','yIMOV','.0.1','ver\x20l','stopp','m(con','xUzXD','bRwaC','\x20cach','\x20-g\x20@','\x20npx\x20','quest','\x20data','emium','resta','push-','watch','#\x20Run','tion\x0a','3456','link\x20','JBTkM','\x20on\x20(','\x20--li','\x20\x20→\x20h','split','299478pzTEFm','PUKdG','WEIsf','eacha','at\x20--','end','pping','\x20\x20\x20\x20•','not\x20b','r.log','tor:\x20','AkUCT','pMoOJ','ffMs','etDJX','noWat','—\x20run','inher','\x20>=\x201','at\x20a\x20','\x20for\x20','Sync','⬡\x20Aut','eeSpa','\x20stat','⬡\x20Sho','he\x20la','s/dir','.migr','WDNLU','Versi','help','toUpp','t\x20wat','oCXZN','\x20star','exist','Ekyup','Kbgio','\x20\x20⚠️\x20\x20','les','logic','SIGTE','enAI\x20','igure','th\x20wa','⬡\x20.en','2VWLTuL','This\x20','ay\x20be','ssed','⬡\x20Cre','c/aud','start','\x20\x20Use','inclu','\x20--fo','backg','liste','0.0.0','ocal\x20','ly:\x20n','\x20conf','sync-','KNJjX','\x20Push','qlPZH','files','at\x20st','file','FPAAX','.env\x20','ed.\x20N','\x20\x20Or\x20','ble)\x1b','slice','\x20\x20Not','rce,\x20','atchd','once','DmbNi','rver:','ar\x20da','firma','elf\x0a','e\x20to\x20','ath','\x20\x20\x20un','mands','\x1b[31m','path','\x20\x20Exp','\x0a\x20\x20In','127.0','ta\x20di','kRtRO','AI\x20Ch','warn','ver\x20a','MNDRL','_KEY','chdog','nes\x0a\x20','\x20(PID','t\x20v','to\x20co','✗\x1b[0m','d\x20ser','mGmUC','\x20\x20Tha','close','SBsAi','ty\x20da','link.','n\x20bac','le\x20pa','ions:','JSscu','c/img','ated','INUSE','on\x20(v','unref','his\x20h','YESaj','tchin','match','456)\x0a','e\x20ser','3624393PBTvro','\x0a\x20\x20Ga','Stop\x20','the\x20s','size','iYbZI','\x20/nob','115WlCRGJ','token','PI\x20ke','activ','\x20item','Value','tor\x20—','\x20PID:','and\x20c','v,\x20co','VHQMM','one.\x0a','padEn','-v\x20\x20\x20','e\x20\x22un','\x20DATA','\x20been','ected','OpenA','\x0a\x20\x20Se','BorTB','l\x20log','(Ctrl','s\x20but','backo','l\x20NOT','\x20Show','g.jso','PASSW','nning','edAt','nd\x20to','\x20alre','\x20Usag','\x20npm\x20','ink\x20C','f\x20Upl','oBWjZ','detai','timeo','p\x20Upl','nTtOT','ies','docto','stdio','PID\x20','art!','--lin','eset)','parse','7|0|3','\x20@moo','eady\x20','wmic\x20','compl','tzaTW','EsZzW','hDVcI','\x20upli','AwqTU','Disk\x20','og\x20(P','\x20#\x20Ed','\x0a\x20\x20','sxWvN','ll\x22\x20t','r\x20(de','ing.','ce\x20/v','!\x1b[0m','ncell','\x20less','AppDa','og\x20li','rstQe','o\x20ope','setup','rbDae','aw\x20se','ignor','(none','ing\x20m','rPid','filte','\x0a\x20\x20Ca','VFwJR','eSSFI','st:\x20\x20','||\x20ti','Port\x20','\x20\x20Typ','xYsdE','y)\x1b[0','x\x20upl','d\x20.en','notep','log\x20e','strin','rt\x20th','k-cha','EADDR','VXLPJ','hed','pany/','and\x20a',':\x20v','\x20H\x20\x20\x20','rt\x20on','at\x20re','ata\x0a\x20','|0|4','alloc','-g\x20@m','fore\x20','serve','or\x20El','at\x0a','lengt','dIOJg','searc','hat\x20[','\x20(>=\x20','-watc','premi','de.js','AY_UR','\x0a\x20\x20Pr','YfjZB','round','.json','\x20Diag','IIuYf','optio','ctor\x20','GET','execP','nfirm','eInte','vNghE','write','es\x20in','KEY','d.\x20St','nose\x20','to-re','nv\x20in','GkJmx','\x20.env','il\x20th','t\x20N\x20\x20','⬡\x20Cur','eServ','utf8','ig\x20\x20\x20','CLaRK','\x20than','\x20in\x20','d\x20DAT','cYAaW','es...','k\x20Uni','\x20\x20Thi','floor','jvfFr','could','th:\x20','Depen','versi','us\x20\x20\x20','OPENA','PjhhE','--hos','--por','es\x20ex','g\x20(au','o\x20rea','ges-s','\x20Numb','IiNpn','ink\x20d','oonco','ble','nk.pi','HHTrf','ver\x20P','ime:\x20','Updat','\x20chat','tarte','nd\x20wa','ing','at\x0a\x0a\x20','SIGIN','\x20\x20\x20Ta','er\x20pr','|5|1|','CREDE','\x20—\x20No','ll\x20\x20\x20','ons.j','\x20new\x20','\x20mode','npx\x20u','js\x20ve','vfAWr','zDqbs','versa','thout','HOST','\x0a\x20\x20\x20\x20','DQcvq','FsMHW','fail','npm\x20p','ng\x20Up','direc','\x20Uplo','\x20\x20\x20\x20d','s...\x20','cs\x0a\x20\x20','ELEVE','figur','rt\x20--','\x20Remo','--ver','hing\x20','recur','\x20\x20\x20\x20S','Key','\x1b[90m','tions','rver.','your_','ctivi',':\x0a\x20\x20\x20','media','repea','ail\x20-','etup\x20','\x0a\x20\x20⚠️\x20','node','\x20\x20\x20\x20O','\x20\x20Bac','lABCF','2398095jdiDpc','avail','r\x20its','ion','3|8|2','ion\x0a\x20','e\x0a\x20\x20\x20','TTS\x20m','gdyZQ','d\x20in\x20','o\x20Edg','ile\x20f','ed,\x20','\x20\x20\x20np','hdog\x20','ns]\x0a\x0a','hat\x20s','or\x20us','pid','_modu','\x20\x20\x20up','ame','Gatew','sive','k\x20Inf','destr','K_HOS','any/u','actio','host','tion\x20','tarti','\x0a\x20\x20No','IMGqJ','o\x20fil','...\x0a','ay\x20re','n\x20npm','deter','orm','label','****','ZApby','sYPQH','nks\x20f','cache','e\x20TTS','\x20\x20Run','ions\x20','gkPxE','SaRyy','modul','\x20\x20\x20--','son','UPLIN','\x20\x20Exa','--pat','EQCkA','port\x20','FYjAj','not\x20s','ver\x20f','\x20Fail','edit','er\x20of','ng\x20np','ink-c','ch,\x20-','mine\x20','\x20audi','⬡\x20Ope','confi','des','ViAlJ','index','n\x20iss','promp','--for','jylXJ','cal\x20d','eBQdO','cwd','ear\x20—','\x20or\x20e','\x20\x20✓\x20S','quire','RcDNu','oZirE','ult:\x20','8080\x20','oZEJD','isten','3486992zASPAt','SdDau',':\x20upl','\x20\x20v','\x0a⬡\x20Up','-f\x20\x20\x20','GCwEV','\x20vers','\x20your','how\x20t','reque','ent\x20a','tall','to\x20bi','ve\x20ag','\x20\x20npx','ally:','zCXQn','nd\x20me','runni','lt:\x203','ity.j','s\x20are','\x20to\x20s','\x20loca','\x20Stop','/dev/','(((.+','\x0a\x20\x20Da','dated','art\x20m','test\x20','hVADO','hVdbt','ink\x20i','not\x20d','outpu','set\x20-','t\x20\x20\x20\x20','ntrie','\x20to\x20l','tchdo','\x20via\x20','ed:\x20\x20','g\x20@mo','e\x20is\x20','emovi','l\x20upl','50)\x0a\x20','ync','\x20and\x20','jyZcO','led\x20t','\x20—\x20ru','\x20\x20\x20Ch','subsc','tion','\x20\x20⬡\x20A','BBLDQ','toStr','RNvpD','erCas','\x20\x20Ser','-chat','veSkd','10JTeNBH','stdou','\x20\x20Set','\x20crea','\x20edit','lhost','QTsdG','ssage','ts\x20(r','.0.0.','ink\x20s','win32','.env.','ng\x1b[0','ync.j','he\x20se','egWel','uto-r','metho','date\x20',')+)+)','hhaSj','lJtfF','error','Arfze','k\x20ser','sAAhP','denci','zUqfz','Roami','-path','BFWrR','insta','nk-wa','ID=\x27','ached','BfHCc','ink\x20w','art','PID\x20f','on:\x20v','nd\x20(d','Bvzrp','\x20\x20Upt','mpany','es\x20N\x20','KEN','\x20\x20Wat','\x20\x20Opt','.\x20Fre','WrZti','nes\x201','\x20Miss','k\x20Doc','\x20Upli','\x20\x20Log','\x20\x20✓\x20R','nkLir','--det','ach','port','(PID\x20','e:\x0a\x20\x20','tarts','\x200.0.','free\x20','ByLjH','\x20\x20Aut','deSXZ','o\x20con','ing\x20U','node_','\x20on\x20c','requi','OhfAg','tart\x20','s\x20run','creat','\x20PID\x20','\x20logs','ng\x20wi','umKey','evice','--edi','⬡\x20Upd','a\x20dir','kage.','packa','⬡\x20Fai','exit','ning\x0a','mode)','n\x20can','8\x20is\x20','teway','e\x20glo','rface','ning\x20','CYdUO','6602672rigzNc','\x20\x20\x20#\x20','FoLns','LFUhn','ready','led.','ackag','atest','lled','\x20EDIT','\x20\x1b[31','push','\x0a\x20\x20Pa','uVBOs','xUkYy','dog.j','e:\x20cp','anual','nDtvG','firm:','ed\x20to','\x20MB\x20f','\x22\x20|\x20t','urati','oncom','PORT','publi','t\x20rea','\x0a⬡\x20Wa','g.log',':\x20\x20\x20\x20','OopjL','defau','ge.','\x20(.en','ation','stop','ORD','ed\x20me','l\x20con','charA','v\x20var','6474895eQlgqu','ved.\x0a','y/upl','evenL','max','t\x20sta','space','d\x20\x20\x20\x20','\x20--ed','nosti','Host\x20','th\x20(c','it\x20.e','kTtwi','s\x20wil','s\x20and','k\x20Con','1:187','5|9|6','nGnIm','ly:\x20','.upli','erver',',\x20PID','YuZEs','nk-se','Clear','sleep','⬡\x20Upl','nfo\x20\x20','nfig\x20','Uplin'];_0x2256=function(){return _0x561fcf;};return _0x2256();}function _0x511522(_0x4c271e,_0x398ef5){return _0x2e36(_0x398ef5-0x23d,_0x4c271e);}(function(_0xdd907b,_0x2bcd2a){const _0x249e28=_0xdd907b();function _0x48a7f1(_0x163f36,_0x5c72f5){return _0x2e36(_0x5c72f5- -0x8b,_0x163f36);}function _0x551c6e(_0xaff735,_0x397250){return _0x2e36(_0x397250- -0x39f,_0xaff735);}while(!![]){try{const _0x3d2d1b=parseInt(_0x48a7f1(0x525,0x388))/(-0x110b+-0xe4a+0x3*0xa72)*(parseInt(_0x48a7f1(0x33f,0x2c9))/(-0x1*0x1106+-0x12c0+0x23c8))+-parseInt(_0x48a7f1(0x376,0x3da))/(-0x1*0x1d42+-0xe17*0x1+0x2b5c)+parseInt(_0x48a7f1(0x283,0x144))/(-0x7*-0x61+0x8d2+-0xb75)+parseInt(_0x48a7f1(-0xa1,-0xc))/(-0x2035*0x1+0x9d3*-0x1+0x2a0d*0x1)*(-parseInt(_0x48a7f1(0x43d,0x359))/(0x72d+0x1723+-0x1e4a))+parseInt(_0x551c6e(0x97,-0x102))/(-0xc4f+-0x3*-0x1d7+0x6d1)+parseInt(_0x48a7f1(0x354,0x1e8))/(-0x4*-0x943+-0x9d*0x3+0x709*-0x5)+parseInt(_0x551c6e(-0x1a7,-0x22c))/(0xd42*0x2+0x1935+-0x33b0)*(parseInt(_0x48a7f1(0x2ac,0x185))/(0xced*0x2+-0x17*0x8b+0xd53*-0x1));if(_0x3d2d1b===_0x2bcd2a)break;else _0x249e28['push'](_0x249e28['shift']());}catch(_0x2b82de){_0x249e28['push'](_0x249e28['shift']());}}}(_0x2256,0x164a64+0x66af7+0x55*-0x3469));import{spawn,execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';import{existsSync,writeFileSync,readFileSync,unlinkSync,statSync,readdirSync,mkdirSync}from'fs';import{createRequire}from'module';import _0x1ffec0 from'net';import _0x44edef from'http';function _0x2618ea(_0x1cbcbf,_0x471695){return _0x2e36(_0x471695-0x25f,_0x1cbcbf);}import _0x462939 from'os';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),ROOT=join(__dirname,'..');function resolveDataDir(){const _0x53e97b={'ZeGfo':'\x0a\x20\x20⚠️\x20'+'\x20Fail'+_0x250ba0(0xc7,0x184)+'\x20unin'+_0x52bb10(0x331,0x298)+_0x52bb10(-0x58,-0x55)+_0x250ba0(0xa7,-0x1c)+_0x250ba0(0xd4,0x8c),'kTtwi':_0x52bb10(0x291,0xac)+_0x250ba0(0x1f6,0x256)+_0x250ba0(0x1f,0x15)+_0x250ba0(-0x11f,0x9c)+_0x250ba0(0x10e,-0xc9)+_0x250ba0(0x10f,0x1da)+_0x250ba0(-0xd1,-0x18)+_0x52bb10(-0xb2,0x3d)+'mpany'+_0x250ba0(0x12d,0xd7)+_0x52bb10(0x384,0x2b7)+_0x52bb10(0x56,-0x3),'WDNLU':_0x52bb10(0x4c2,0x33e),'ZXnqi':function(_0x56adcc,_0x751c15){return _0x56adcc===_0x751c15;},'mGmUC':_0x250ba0(0x287,0x3d3),'hhaSj':_0x250ba0(0x182,0x315),'nIDMa':function(_0x5b9e70,_0x2f3bda){return _0x5b9e70!==_0x2f3bda;},'GkJmx':_0x52bb10(-0x22,0x139),'nkLir':_0x52bb10(0x133,0xf4)+_0x250ba0(0x64,-0x184)+'+$','tnHft':function(_0x4ca3e9,_0x44192a,_0x383e99){return _0x4ca3e9(_0x44192a,_0x383e99);},'IiNpn':_0x52bb10(0x8b,0x6e)+_0x250ba0(0x162,-0x10)+_0x52bb10(-0x9b,-0x1b)+'m','uVBOs':function(_0x772db5,_0x16c7c6){return _0x772db5+_0x16c7c6;},'mBkVu':function(_0xeadf8c){return _0xeadf8c();},'BorTB':function(_0x3e0651,_0x177f20){return _0x3e0651===_0x177f20;},'mNNHA':_0x250ba0(0x5b,-0x87),'LFUhn':function(_0x23c10f,_0x5539d5){return _0x23c10f!==_0x5539d5;},'bRwaC':_0x52bb10(-0x120,-0x1),'etDJX':_0x250ba0(-0xe6,-0xb0),'awGvx':function(_0x3f0a25,_0x54716d,_0x1af85b,_0x45ca2f){return _0x3f0a25(_0x54716d,_0x1af85b,_0x45ca2f);},'cRIPK':_0x52bb10(-0x1b6,-0x2f)+'ta','DbYLA':_0x250ba0(0xf2,-0xae)+'nk'},_0x8816ff=(function(){function _0x3aaf66(_0x1380fc,_0x2ba927){return _0x250ba0(_0x1380fc-0xdb,_0x2ba927);}const _0x384049={'BBLDQ':_0x53e97b[_0x3aaf66(0x31c,0x166)],'OhfAg':function(_0x169707,_0x4c79a4){function _0x4b8840(_0x48c3e6,_0x598db3){return _0x3aaf66(_0x598db3- -0x1fa,_0x48c3e6);}return _0x53e97b[_0x4b8840(0x266,0x77)](_0x169707,_0x4c79a4);},'SBsAi':_0x53e97b[_0x3aaf66(0x36b,0x2fa)],'Arfze':_0x338348(0x56d,0x72e)+'it','lzFyh':function(_0x4db4c7,_0x19d461){return _0x53e97b['ZXnqi'](_0x4db4c7,_0x19d461);},'DViBs':_0x53e97b[_0x3aaf66(0x140,-0x37)]};function _0x338348(_0xfcf8f7,_0x4b07bf){return _0x250ba0(_0xfcf8f7-0x338,_0x4b07bf);}if(_0x53e97b['nIDMa'](_0x338348(0x4fc,0x4d0),_0x53e97b[_0x338348(0x289,0x452)])){let _0x5b46ab=!![];return function(_0x3fa05b,_0x2e67d0){const _0x2bfd12={};_0x2bfd12[_0x257d63(0x93a,0x77f)]=_0x384049[_0x257d63(0x582,0x59e)];const _0x2ce49f=_0x2bfd12;function _0x257d63(_0x2ddbed,_0xe184c2){return _0x338348(_0xe184c2-0x1fe,_0x2ddbed);}function _0x36bff9(_0x524096,_0x280573){return _0x338348(_0x524096- -0xbd,_0x280573);}if(_0x384049['lzFyh'](_0x384049[_0x36bff9(0x473,0x356)],_0x384049[_0x257d63(0x842,0x72e)])){const _0xc3f440=_0x5b46ab?function(){function _0x540d8e(_0x35002a,_0x3c1ed0){return _0x36bff9(_0x3c1ed0-0x236,_0x35002a);}function _0x326193(_0x15059e,_0x54da18){return _0x36bff9(_0x15059e- -0x1fc,_0x54da18);}if(_0x384049[_0x540d8e(0x59f,0x4fa)]!==_0x384049[_0x540d8e(0x4b0,0x4fa)])_0x2269eb(![]);else{if(_0x2e67d0){if(_0x384049[_0x326193(0x119,0x26a)](_0x384049[_0x326193(0x312,0x198)],_0x384049[_0x326193(0x312,0x299)])){const _0x20869e=_0x2e67d0[_0x326193(0x1de,0x2eb)](_0x3fa05b,arguments);return _0x2e67d0=null,_0x20869e;}else{const _0x434c39={};_0x434c39[_0x326193(-0x96,0x119)]=_0x2ce49f[_0x326193(0x2c8,0x332)],_0x180797(_0x326193(0x194,0x29c)+_0x540d8e(0x47a,0x3d3)+'t\x20sta'+_0x326193(0x1c,-0x1ad)+'detac'+'h',_0x434c39);}}}}:function(){};return _0x5b46ab=![],_0xc3f440;}else _0x413747[_0x257d63(0x692,0x715)]('⬡\x20Aut'+_0x257d63(0x77e,0x649)+'tart\x20'+_0x36bff9(0x47d,0x326)+_0x36bff9(0x1c8,0x1c0)+_0x36bff9(0x2a8,0x23f)+_0x257d63(0x69f,0x5fa)+_0x257d63(0x721,0x677)+_0x257d63(0x6fa,0x6de)+_0x257d63(0x6f0,0x6af)+'-chat'+_0x257d63(0x5ec,0x77d)+'t');};}else _0x414e3c[_0x3aaf66(0x142,0x1ce)](_0x53e97b['ZeGfo']),_0xb338e7['error'](_0x53e97b[_0x3aaf66(0x1c5,0x236)]),_0x3119ea[_0x338348(0x3e1,0x3aa)](-0x1*-0xcbb+-0x1417*-0x1+0x1f*-0x10f);}());function _0x250ba0(_0x59861c,_0x23ecb8){return _0x2e36(_0x59861c- -0x1c0,_0x23ecb8);}const _0x3a26bb=_0x8816ff(this,function(){function _0x2a0e5d(_0x113825,_0x1bdfbf){return _0x250ba0(_0x1bdfbf-0x21f,_0x113825);}function _0x14dfa4(_0x7a4f20,_0x222fe8){return _0x250ba0(_0x7a4f20-0xa,_0x222fe8);}return _0x3a26bb[_0x14dfa4(0x54,0x247)+_0x2a0e5d(0x306,0x19c)]()[_0x14dfa4(-0xc0,-0x119)+'h'](_0x53e97b[_0x2a0e5d(0x2e7,0x2a8)])[_0x14dfa4(0x54,-0xa4)+_0x2a0e5d(-0x49,0x19c)]()['const'+'ructo'+'r'](_0x3a26bb)['searc'+'h'](_0x53e97b[_0x14dfa4(0x93,0x121)]);});function _0x52bb10(_0x3d2293,_0x10b119){return _0x2e36(_0x10b119- -0xf6,_0x3d2293);}_0x53e97b[_0x250ba0(0x12b,0x158)](_0x3a26bb);if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;if(_0x53e97b[_0x250ba0(-0x12d,-0x29d)](process[_0x52bb10(0x13f,0x224)+_0x52bb10(0xf5,0xa4)],_0x53e97b[_0x250ba0(0x133,0x1c0)])){if(_0x53e97b[_0x250ba0(0xb6,0x49)](_0x53e97b[_0x250ba0(0x211,0x1cf)],_0x53e97b[_0x250ba0(0x232,0x254)])){const _0x17f292=process.env.APPDATA||_0x53e97b['awGvx'](join,_0x462939[_0x250ba0(0x1e0,0x25b)+'ir'](),_0x53e97b['cRIPK'],_0x52bb10(-0x95,0x137)+'ng');return join(_0x17f292,_0x52bb10(0x35,0x1df)+'k');}else{const _0x521231=_0x5099d7?_0x53e97b['tnHft'](_0x2e0a51,_0x47350b,_0x4662cd):_0x53e97b[_0x250ba0(-0x8f,-0x127)];_0x57f38f[_0x250ba0(0x1df,0x27a)]('\x20\x20'+_0x549ef0['padEn'+'d'](_0x53e97b[_0x250ba0(0xc0,0x121)](_0x42ff70,0x2009+0x1ed*-0x12+-0x2a3*-0x1))+_0x521231);}}return _0x53e97b['tnHft'](join,_0x462939[_0x52bb10(0x3d5,0x2aa)+'ir'](),_0x53e97b[_0x52bb10(0x21d,0x203)]);}const DATA_DIR=resolveDataDir();try{const _0x11ac32={};_0x11ac32[_0x2618ea(0x456,0x3c0)+_0x2618ea(0x3a5,0x3e9)]=!![],mkdirSync(DATA_DIR,_0x11ac32);}catch{}const PID_FILE=join(DATA_DIR,'.upli'+_0x2618ea(0x24f,0x394)+'d'),WATCHDOG_PID_FILE=join(DATA_DIR,'.upli'+'nk-wa'+_0x2618ea(0x2af,0x457)+_0x511522(0x326,0x51b)),WATCHDOG_STATE_FILE=join(DATA_DIR,'.upli'+'nk-wa'+_0x2618ea(0x372,0x457)+_0x511522(0x26e,0x2d7)+'n'),args=process[_0x511522(0x594,0x5af)]['slice'](-0x1790+-0x55c+0xa1*0x2e),command=args[0x1f1b+-0x533*-0x1+-0x244e]||_0x511522(0x4bf,0x656),flags={};for(let i=0xe3d+-0x21eb+0x1ca*0xb;i<args['lengt'+'h'];i++){const NxzrPn=(_0x2618ea(0x51d,0x50e)+'|7|1|'+_0x2618ea(0x264,0x3d6)+_0x2618ea(0x245,0x34c))['split']('|');let nCAdDr=-0x96d+-0x21d4+0x2b41;while(!![]){switch(NxzrPn[nCAdDr++]){case'0':args[i]===_0x2618ea(0x2dc,0x40a)+'h'&&(flags['path']=!![]);continue;case'1':(args[i]===_0x2618ea(0x65c,0x4a9)+_0x511522(0x471,0x488)||args[i]==='-d')&&(flags[_0x511522(0x5c5,0x513)+'h']=!![]);continue;case'2':args[i]===_0x511522(0x342,0x4a0)+'t'&&(flags[_0x2618ea(0x538,0x411)]=!![]);continue;case'3':args[i]==='--no-'+'watch'+_0x2618ea(0x5e0,0x55e)&&(flags[_0x511522(0x4be,0x630)+_0x511522(0x574,0x686)]=!![]);continue;case'4':(args[i]===_0x511522(0x2f3,0x3fd)+'ce'||args[i]==='-f')&&(flags['force']=!![]);continue;case'5':args[i]===_0x2618ea(0x47e,0x38a)+'t'&&args[i+(0x1c30+0x155*-0x5+0x3a*-0x5f)]&&(flags['port']=parseInt(args[i+(0x24f*-0x10+0x34b+0x21a6)],0x168b+0xa*-0x101+-0x1*0xc77),i++);continue;case'6':(args[i]==='--hel'+'p'||args[i]==='-h')&&(flags[_0x511522(0x516,0x640)]=!![]);continue;case'7':(args[i]===_0x511522(0x52e,0x39c)+'sion'||args[i]==='-v')&&(flags[_0x511522(0x39c,0x363)+'on']=!![]);continue;case'8':args[i]===_0x2618ea(0x1c4,0x30d)+'es'&&args[i+(-0x1*-0x875+-0x7f*0x1d+0x5ef)]&&(flags[_0x2618ea(0x488,0x5c9)]=parseInt(args[i+(0x122*-0x22+0xdf5+0x1890)],-0x12*-0x191+0x6f*-0x45+0x1c3),i++);continue;case'9':args[i]===_0x2618ea(0x2e1,0x389)+'t'&&(flags['host']=args[i+(-0x7b5*0x3+0x86f*0x1+0xeb1)]||'0.0.0'+'.0',i++);continue;}break;}}if(flags[_0x2618ea(0x362,0x385)+'on']){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x2618ea(0x485,0x4c6)+_0x511522(0x50c,0x59f)+'on'));console[_0x511522(0x545,0x5dc)]('uplin'+'k-cha'+_0x2618ea(0x819,0x6ab)+pkg['versi'+'on']),process[_0x511522(0x342,0x4a6)](-0x1615*-0x1+0x225e+-0x3*0x12d1);}flags[_0x2618ea(0x67a,0x662)]&&(console[_0x511522(0x5b7,0x5dc)](_0x2618ea(0x77f,0x5eb)+_0x511522(0x6bd,0x4f9)+_0x2618ea(0x3f3,0x565)+_0x2618ea(0x64a,0x67f)+_0x2618ea(0x76f,0x6a3)+_0x511522(0x433,0x37b)+_0x511522(0x30c,0x2dd)+_0x2618ea(0x2cd,0x4ad)+'\x20\x20upl'+_0x511522(0x45b,0x3f2)+_0x511522(0x41c,0x334)+'comma'+'nd]\x20['+_0x511522(0x530,0x340)+_0x2618ea(0x49a,0x3e1)+_0x2618ea(0x555,0x616)+_0x511522(0x535,0x679)+_0x2618ea(0x335,0x3c8)+_0x511522(0x542,0x644)+'t\x20\x20\x20\x20'+'\x20\x20\x20St'+'art\x20t'+_0x511522(0x346,0x529)+_0x511522(0x768,0x61b)+_0x2618ea(0x2f0,0x350)+_0x511522(0x39b,0x2fe)+_0x2618ea(0x612,0x5db)+_0x2618ea(0x686,0x53a)+_0x511522(0x52d,0x5d4)+'\x20\x20\x20\x20\x20'+_0x511522(0x6f3,0x502)+_0x511522(0x440,0x5ca)+_0x511522(0x388,0x41f)+'ng\x20Up'+_0x2618ea(0x63c,0x63d)+_0x511522(0x2e0,0x32e)+_0x511522(0x7a4,0x5d3)+_0x2618ea(0x5ce,0x65b)+_0x511522(0x1f2,0x364)+_0x2618ea(0x541,0x464)+_0x511522(0x46d,0x546)+_0x2618ea(0x24a,0x302)+_0x511522(0x353,0x42e)+_0x2618ea(0x304,0x4bb)+_0x2618ea(0x3c1,0x4c9)+_0x511522(0x435,0x5fb)+_0x2618ea(0x603,0x519)+_0x2618ea(0x7c4,0x5f3)+_0x511522(0x20b,0x2d6)+'\x20curr'+'ent\x20s'+_0x2618ea(0x28c,0x3cc)+_0x2618ea(0x69a,0x656)+_0x2618ea(0x60c,0x546)+_0x2618ea(0x218,0x3d8)+_0x2618ea(0x4fb,0x4be)+_0x511522(0x6a4,0x5d1)+_0x511522(0x380,0x37d)+_0x511522(0x47e,0x350)+_0x511522(0x643,0x6a1)+_0x2618ea(0x550,0x62c)+_0x2618ea(0x3b0,0x566)+'n\x20rea'+'l\x20tim'+_0x2618ea(0x26e,0x3d8)+_0x2618ea(0x779,0x681)+_0x511522(0x2af,0x355)+_0x2618ea(0x3d0,0x5bd)+'ow\x20cu'+_0x2618ea(0x741,0x629)+'\x20conf'+_0x2618ea(0x463,0x563)+_0x511522(0x68b,0x619)+_0x511522(0x4f8,0x395)+'octor'+_0x2618ea(0x788,0x5f3)+_0x2618ea(0x3f2,0x360)+_0x511522(0x438,0x34b)+_0x2618ea(0x68d,0x607)+_0x2618ea(0x32d,0x41d)+'ues\x0a\x20'+_0x2618ea(0x50d,0x5d6)+_0x2618ea(0x591,0x5e4)+_0x511522(0x791,0x5d1)+_0x511522(0x34e,0x4f4)+_0x2618ea(0x3b7,0x399)+_0x2618ea(0x6ce,0x627)+_0x511522(0x465,0x59d)+'nd\x20lo'+_0x2618ea(0x26d,0x421)+_0x2618ea(0x44f,0x34b)+_0x2618ea(0x44a,0x3e6)+'date\x20'+'\x20\x20\x20\x20\x20'+_0x511522(0x37d,0x376)+_0x2618ea(0x827,0x698)+_0x2618ea(0x3fa,0x5d5)+_0x2618ea(0x4ac,0x4d9)+_0x511522(0x489,0x413)+_0x2618ea(0x323,0x3d7)+_0x2618ea(0x706,0x69a)+_0x511522(0x40d,0x46d)+_0x511522(0x2c8,0x382)+'Stop\x20'+'serve'+_0x2618ea(0x762,0x5a2)+_0x2618ea(0x635,0x61c)+'ve\x20al'+'l\x20Upl'+_0x511522(0x20c,0x36f)+'ata\x0a\x0a'+_0x2618ea(0x410,0x49f)+_0x2618ea(0x51d,0x6b7)+_0x511522(0x2f8,0x38d)+_0x2618ea(0x1f7,0x38a)+_0x2618ea(0x418,0x373)+_0x2618ea(0x670,0x5f3)+'\x20Port'+_0x2618ea(0x630,0x456)+_0x511522(0x391,0x40b)+_0x2618ea(0x4bb,0x63f)+_0x2618ea(0x5e9,0x4f2)+_0x2618ea(0x3f8,0x442)+_0x511522(0x5c6,0x6a0)+'\x20\x20\x20\x20-'+_0x2618ea(0x79e,0x61e)+_0x511522(0x1d1,0x326)+_0x511522(0x440,0x5d1)+_0x511522(0x525,0x4e4)+_0x2618ea(0x2a9,0x43b)+_0x511522(0x40e,0x2db)+'\x20(def'+'ault:'+_0x2618ea(0x62f,0x4af)+'0.0)\x0a'+'\x20\x20\x20\x20-'+_0x2618ea(0x6e7,0x55c)+_0x511522(0x26d,0x3f3)+_0x2618ea(0x6e7,0x503)+_0x511522(0x482,0x551)+_0x2618ea(0x82a,0x6b5)+_0x511522(0x385,0x504)+_0x2618ea(0x63d,0x498)+_0x2618ea(0x611,0x5c2)+_0x511522(0x2de,0x385)+_0x511522(0x46d,0x518)+'\x20--no'+_0x2618ea(0x1af,0x358)+_0x511522(0x250,0x3be)+_0x2618ea(0x2e5,0x401)+_0x2618ea(0x537,0x619)+'out\x20a'+_0x2618ea(0x579,0x480)+'estar'+_0x511522(0x750,0x642)+'chdog'+'\x0a\x20\x20\x20\x20'+_0x511522(0x10f,0x2eb)+_0x2618ea(0x3fa,0x49c)+_0x511522(0x620,0x5d1)+_0x2618ea(0x4b4,0x38f)+_0x511522(0x278,0x3f0)+'\x20log\x20'+_0x2618ea(0x3fb,0x5c9)+_0x2618ea(0x612,0x445)+'how\x20('+_0x2618ea(0x5b8,0x604)+_0x511522(0x502,0x522)+_0x2618ea(0x3d0,0x42a)+_0x2618ea(0x572,0x45e)+_0x511522(0x226,0x3e4)+_0x2618ea(0x5f9,0x595)+_0x511522(0x713,0x5d1)+_0x2618ea(0x4d1,0x3cf)+_0x2618ea(0x684,0x60a)+_0x511522(0x5d8,0x514)+_0x511522(0x7c4,0x5ce)+_0x2618ea(0x3f1,0x5e1)+_0x2618ea(0x5c9,0x5b2)+'fig)\x0a'+'\x20\x20\x20\x20-'+_0x2618ea(0x593,0x48d)+_0x511522(0x401,0x5d1)+_0x511522(0x625,0x5d1)+'Print'+_0x2618ea(0x856,0x681)+'ig\x20fi'+_0x2618ea(0x4c9,0x6b6)+_0x511522(0x35d,0x4e5)+_0x2618ea(0x4d1,0x536)+_0x2618ea(0x5c9,0x53a)+_0x511522(0x676,0x659)+_0x2618ea(0x7f1,0x690)+_0x511522(0x222,0x411)+_0x2618ea(0x659,0x549)+'p\x20con'+_0x2618ea(0x758,0x696)+_0x2618ea(0x373,0x3f0)+_0x2618ea(0x538,0x41e)+_0x511522(0x53d,0x455)+(_0x511522(0x155,0x2ec)+_0x2618ea(0x47c,0x3af)+_0x511522(0x3ab,0x2c9)+'\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20'+'\x20Show'+_0x511522(0x227,0x413)+_0x511522(0x253,0x3b5)+'\x20\x20\x20-h'+_0x2618ea(0x72b,0x5f3)+_0x2618ea(0x5df,0x5f3)+_0x2618ea(0x2e5,0x3c1)+_0x2618ea(0x330,0x437)+_0x511522(0x81f,0x69c)+'elp\x0a\x0a'+_0x2618ea(0x533,0x409)+'mples'+_0x511522(0x22e,0x3a6)+_0x2618ea(0x650,0x633)+_0x511522(0x617,0x512)+_0x2618ea(0x3e7,0x341)+_0x2618ea(0x2a9,0x454)+_0x2618ea(0x6c2,0x5f3)+_0x2618ea(0x656,0x5f3)+'\x20\x20\x20\x20#'+'\x20Star'+'t\x20on\x20'+'defau'+'lt\x20po'+'rt\x0a\x20\x20'+_0x2618ea(0x554,0x43d)+_0x2618ea(0x19f,0x318)+_0x2618ea(0x669,0x60c)+_0x511522(0x6d3,0x625)+_0x2618ea(0x233,0x40c)+_0x2618ea(0x285,0x42b)+_0x511522(0x56a,0x5d1)+'#\x20Sta'+_0x511522(0x389,0x327)+_0x2618ea(0x45d,0x590)+'\x208080'+_0x2618ea(0x428,0x3af)+_0x511522(0x242,0x386)+_0x2618ea(0x651,0x598)+_0x2618ea(0x431,0x46d)+'\x20stop'+_0x2618ea(0x4b6,0x5f3)+_0x2618ea(0x71e,0x5f3)+_0x511522(0x37c,0x4b1)+_0x2618ea(0x4d7,0x6c6)+_0x511522(0x140,0x2b8)+_0x2618ea(0x554,0x512)+_0x511522(0x465,0x38d)+'npx\x20u'+'plink'+_0x511522(0x570,0x44b)+_0x511522(0x37f,0x508)+_0x511522(0x3fa,0x5d1)+_0x511522(0x6fc,0x5d1)+'\x20\x20\x20#\x20'+'Show\x20'+_0x2618ea(0x44f,0x32a)+_0x2618ea(0x396,0x52a)+_0x2618ea(0x420,0x3af)+_0x511522(0x3e5,0x386)+'plink'+_0x2618ea(0x4c9,0x46d)+_0x2618ea(0x325,0x4be)+_0x2618ea(0x4e1,0x640)+_0x2618ea(0x4b4,0x4a2)+_0x2618ea(0x62b,0x570)+'Tail\x20'+_0x511522(0x700,0x56d)+_0x511522(0x4a6,0x5bc)+_0x2618ea(0x2a6,0x327)+_0x2618ea(0x881,0x6a9)+_0x2618ea(0x337,0x3df)+_0x2618ea(0x188,0x33b)+_0x2618ea(0x513,0x414)+'hat\x20c'+_0x511522(0x56a,0x514)+'\x20--ed'+_0x511522(0x553,0x59e)+_0x511522(0x4d6,0x2fa)+_0x511522(0x56a,0x4e6)+_0x2618ea(0x1ce,0x36f)+_0x511522(0x27e,0x414)+_0x511522(0x406,0x451)+'or\x0a\x20\x20'+'\x20\x20npx'+'\x20upli'+_0x2618ea(0x6ba,0x60c)+'at\x20do'+_0x2618ea(0x365,0x363)+_0x2618ea(0x50c,0x5f3)+_0x2618ea(0x48d,0x5f3)+_0x511522(0x7cd,0x618)+_0x511522(0x48e,0x4ff)+_0x2618ea(0x464,0x505)+_0x511522(0x4e7,0x397)+_0x511522(0x39b,0x41b)+'\x20upli'+_0x2618ea(0x524,0x60c)+_0x511522(0x39f,0x328)+_0x2618ea(0x54b,0x453)+'-forc'+'e\x20\x20\x20\x20'+'#\x20Cle'+_0x511522(0x515,0x673)+'ta\x20wi'+_0x2618ea(0x1bf,0x3ad)+_0x511522(0x4a5,0x57b)+'pt\x0a\x20\x20')),process[_0x2618ea(0x544,0x4c8)](-0x2*-0x661+0x1dd+-0xe9f));function isRunning(_0x4ec033){function _0x533584(_0x492a9a,_0x1594f0){return _0x2618ea(_0x1594f0,_0x492a9a- -0xfa);}const _0x1721e0={};_0x1721e0[_0x18120d(0x403,0x24c)]=function(_0x52e354,_0x318821){return _0x52e354!==_0x318821;};function _0x18120d(_0x454792,_0x3a465c){return _0x2618ea(_0x454792,_0x3a465c- -0x372);}_0x1721e0[_0x533584(0x43e,0x56b)]=_0x533584(0x48e,0x622),_0x1721e0[_0x18120d(0x33,0x1cc)]=_0x18120d(-0x94,-0x59);const _0x577cb5=_0x1721e0;try{if(_0x577cb5[_0x18120d(0x3f3,0x24c)](_0x577cb5[_0x533584(0x43e,0x46c)],_0x577cb5[_0x18120d(0x19e,0x1cc)]))return process[_0x18120d(0x37e,0x23d)](_0x4ec033,-0x5cd+-0x140b*-0x1+-0xe3e*0x1),!![];else _0x25da6a[_0x533584(0x5b7,0x78a)](),_0x1793f6[_0x533584(0x3ce,0x432)](0x1152+0x1aa7*0x1+0x2bf9*-0x1);}catch{return![];}}function getPid(){const _0x50d522={'hrIYf':function(_0x5992c2,_0x158e39,_0x29137e){return _0x5992c2(_0x158e39,_0x29137e);},'CLaRK':function(_0x5aa29e,_0x515059){return _0x5aa29e(_0x515059);},'xspys':function(_0x3cade9,_0xcfb34a){return _0x3cade9(_0xcfb34a);},'jvfFr':_0x16c04b(0x504,0x675),'hQSrH':function(_0x2b6ec1,_0xc59eba){return _0x2b6ec1!==_0xc59eba;},'SaRyy':_0xf3e48f(0x49a,0x44a),'DQcvq':_0xf3e48f(0x43c,0x555),'vVchY':function(_0xa9f2c8,_0x1d711a){return _0xa9f2c8(_0x1d711a);}};if(!_0x50d522['xspys'](existsSync,PID_FILE))return null;const _0x3b8bb1=_0x50d522['hrIYf'](parseInt,readFileSync(PID_FILE,_0x16c04b(0x280,0x1f5))[_0x16c04b(0x463,0x4e9)](),0x129+-0xe80+-0x1*-0xd61);function _0x16c04b(_0x3b1e92,_0x41666a){return _0x2618ea(_0x41666a,_0x3b1e92- -0xf6);}function _0xf3e48f(_0x58c72e,_0x11a23a){return _0x2618ea(_0x11a23a,_0x58c72e-0x6b);}if(_0x50d522[_0xf3e48f(0x3e3,0x53a)](isNaN,_0x3b8bb1)||!_0x50d522['CLaRK'](isRunning,_0x3b8bb1)){if(_0x50d522[_0x16c04b(0x28b,0x16e)]===_0x50d522[_0xf3e48f(0x3ec,0x33a)]){try{if(_0x50d522['hQSrH'](_0x50d522[_0x16c04b(0x30e,0x42f)],_0x50d522[_0x16c04b(0x2ba,0x3ec)]))_0x50d522['vVchY'](unlinkSync,PID_FILE);else try{const _0x440dbe={};_0x440dbe['recur'+_0xf3e48f(0x454,0x569)]=!![],_0x440dbe[_0xf3e48f(0x5c0,0x3d4)]=!![],_0x50d522[_0x16c04b(0x445,0x2f3)](_0x29009d,_0xa4280b,_0x440dbe),_0x1a2b22++,_0x123429['log'](_0xf3e48f(0x512,0x33d)+_0x16c04b(0x4a3,0x587)+_0x16c04b(0x285,0x43a)+_0x16c04b(0x4c0,0x2e8)+'/'+_0x5e3235);}catch(_0x2699dc){_0x183283[_0xf3e48f(0x4f1,0x40c)](_0xf3e48f(0x626,0x5a2)+_0xf3e48f(0x65c,0x7ac)+_0xf3e48f(0x685,0x543)+'emove'+'\x20DATA'+_0xf3e48f(0x64a,0x71b)+_0x56528d+':\x20'+_0x2699dc['messa'+'ge']);}}catch{}return null;}else{if(!_0x50d522['CLaRK'](_0x51046f,_0x468e44))return null;try{return _0x4c5622[_0x16c04b(0x219,0x297)](_0x50d522['hrIYf'](_0x3f8872,_0x848e22,_0x16c04b(0x280,0x1bc)));}catch{return null;}}}return _0x3b8bb1;}function getWatchdogPid(){const _0x31e8ef={'nGnIm':function(_0x41f7ea,_0x1c33bd,_0x1d1c9e){return _0x41f7ea(_0x1c33bd,_0x1d1c9e);},'aENxN':_0x281d0f(0xcf,-0x8a),'egWel':'activ'+'e','sVZZQ':function(_0x30e4b2,_0x242548,_0x521baf){return _0x30e4b2(_0x242548,_0x521baf);},'rbDae':function(_0x29e05e,_0x553c85){return _0x29e05e(_0x553c85);},'jFruU':function(_0xeb1f5c,_0x4b20ac){return _0xeb1f5c===_0x4b20ac;},'MPFKz':_0x26a78c(0x6b,0x79)};if(!existsSync(WATCHDOG_PID_FILE))return null;const _0xa30e08=_0x31e8ef[_0x26a78c(-0x1b,0x168)](parseInt,readFileSync(WATCHDOG_PID_FILE,_0x31e8ef[_0x26a78c(-0x29,0xed)])[_0x281d0f(0x2b2,0x3e9)](),0x22d7+-0xfab+-0x4f*0x3e);function _0x281d0f(_0xa379c6,_0x5807f8){return _0x511522(_0x5807f8,_0xa379c6- -0x285);}function _0x26a78c(_0x3a78b8,_0x35e28e){return _0x511522(_0x3a78b8,_0x35e28e- -0x49e);}if(_0x31e8ef['rbDae'](isNaN,_0xa30e08)||!_0x31e8ef[_0x26a78c(0x24,-0x195)](isRunning,_0xa30e08)){try{if(_0x31e8ef[_0x26a78c(-0xb1,0x60)](_0x281d0f(0x292,0x3fe),_0x31e8ef[_0x281d0f(0x2f9,0x419)]))_0x31e8ef[_0x26a78c(-0x283,-0x195)](unlinkSync,WATCHDOG_PID_FILE);else{const _0x1f1843=_0x4aaf48[_0x281d0f(0x68,0x16b)](_0x31e8ef[_0x281d0f(0x268,0x24b)](_0x41f4c7,_0xc82f45,_0x31e8ef['aENxN']));if(_0x1f1843['premi'+'um']||_0x1f1843[_0x26a78c(-0x253,-0x167)+'umKey'])_0x27383e=_0x31e8ef[_0x281d0f(0x1d8,0x151)];}}catch{}return null;}return _0xa30e08;}function getWatchdogState(){const _0x3ecb3f={'WrZeE':function(_0x34caa6,_0x1d5617,_0x3ea28b){return _0x34caa6(_0x1d5617,_0x3ea28b);},'gdyZQ':_0xa4b5c(0x39b,0x3a0)+_0xa4b5c(0x6e1,0x52e)+'ken','KEuLF':function(_0x5ab3a5,_0x19e6af){return _0x5ab3a5(_0x19e6af);},'EQCkA':function(_0x3734c8,_0x5d0424,_0x2d9ab9){return _0x3734c8(_0x5d0424,_0x2d9ab9);},'WrZti':function(_0x2d6a88,_0x3887d5){return _0x2d6a88(_0x3887d5);},'QHCaj':'MXBNM','IMGqJ':function(_0x2dac24,_0x21efd7,_0x12d555){return _0x2dac24(_0x21efd7,_0x12d555);},'yGCCA':'utf8','gMwzS':function(_0x22d572,_0x53d39f){return _0x22d572===_0x53d39f;},'fzSUc':_0x109d92(0x275,0x21b)};function _0x109d92(_0x382529,_0x260390){return _0x511522(_0x260390,_0x382529- -0x421);}if(!_0x3ecb3f[_0x109d92(0x5e,0x24d)](existsSync,WATCHDOG_STATE_FILE))return null;function _0xa4b5c(_0x374c2b,_0x4b7f69){return _0x511522(_0x374c2b,_0x4b7f69- -0x26);}try{if(_0xa4b5c(0x465,0x5e7)===_0x3ecb3f['QHCaj'])_0x3ecb3f['WrZeE'](_0x1f4582,_0x3ecb3f[_0xa4b5c(0x289,0x392)],_0x109d92(-0x35,-0x1ab)+_0xa4b5c(0x545,0x5c0)+_0x109d92(-0xd2,-0x2b7));else return JSON[_0xa4b5c(0x462,0x2c7)](_0x3ecb3f[_0x109d92(-0x50,-0xd2)](readFileSync,WATCHDOG_STATE_FILE,_0x3ecb3f['yGCCA']));}catch{if(_0x3ecb3f[_0xa4b5c(0x6f3,0x51c)](_0x3ecb3f[_0x109d92(0x11c,0x16f)],_0xa4b5c(0x492,0x2cd))){if(!WwaVbU[_0xa4b5c(0x454,0x582)](_0x55a2d4,_0x4beda2))return null;const _0x365c4f=_0x12939e(WwaVbU[_0xa4b5c(0x31c,0x3c3)](_0x6195c8,_0x570325,_0xa4b5c(0x1b2,0x32e))[_0xa4b5c(0x622,0x511)](),-0x2*-0xa6e+-0x1*-0x2075+-0x3547);if(WwaVbU[_0xa4b5c(0x3cc,0x582)](_0x5debf1,_0x365c4f)||!_0x2edf22(_0x365c4f)){try{WwaVbU[_0x109d92(0x187,0x211)](_0xf1b7be,_0xd7e196);}catch{}return null;}return _0x365c4f;}else return null;}}function formatUptime(_0x1b1935){const _0x45dbc0={};_0x45dbc0[_0x11efae(0x457,0x2a4)]=function(_0x35d1ec,_0x26b612){return _0x35d1ec/_0x26b612;},_0x45dbc0[_0x11efae(0x4eb,0x5dd)]=function(_0x2b5d0c,_0x2da205){return _0x2b5d0c/_0x2da205;},_0x45dbc0[_0x81ab21(-0x101,-0xa2)]=function(_0x53e038,_0x4ebf7c){return _0x53e038/_0x4ebf7c;},_0x45dbc0[_0x81ab21(-0xe3,-0x187)]=function(_0x574d26,_0x2405f8){return _0x574d26>_0x2405f8;},_0x45dbc0[_0x81ab21(0xda,0xef)]=function(_0x2bf651,_0x50fb67){return _0x2bf651%_0x50fb67;};function _0x81ab21(_0x265db8,_0x35ec95){return _0x2618ea(_0x265db8,_0x35ec95- -0x503);}_0x45dbc0[_0x11efae(0x4a1,0x54d)]=function(_0x6ca865,_0x285eb2){return _0x6ca865%_0x285eb2;},_0x45dbc0[_0x81ab21(-0x130,-0x6a)]=function(_0x168a75,_0x567dc8){return _0x168a75>_0x567dc8;};function _0x11efae(_0xc55ce8,_0x1cbc2f){return _0x2618ea(_0x1cbc2f,_0xc55ce8-0x140);}_0x45dbc0['oCXZN']=function(_0x2438eb,_0x15075a){return _0x2438eb%_0x15075a;};const _0xde86ca=_0x45dbc0,_0x11f72e=Math['floor'](_0xde86ca[_0x11efae(0x457,0x42c)](_0x1b1935,-0x1309*0x2+-0x2042+-0x4*-0x128f)),_0x8de3a9=Math[_0x11efae(0x4c0,0x335)](_0xde86ca['zDqbs'](_0x11f72e,0x61*-0x3e+-0x5*-0x3b3+0xd*0x67)),_0x4a92a0=Math[_0x81ab21(-0x4c,-0x183)](_0xde86ca['jyZcO'](_0x8de3a9,0x225e+0x174+0x71e*-0x5)),_0x2d2663=Math['floor'](_0x4a92a0/(0x1a*-0x112+0x112d*0x1+0xabf));if(_0xde86ca[_0x81ab21(-0x32,-0x187)](_0x2d2663,-0x428+0xbbc+-0x794))return _0x2d2663+'d\x20'+_0x4a92a0%(0x10cc+-0xb+-0x10a9)+'h\x20'+_0xde86ca['ZEEUD'](_0x8de3a9,-0x1*0x14bd+-0x1*-0x1fb+0x12fe)+'m';if(_0xde86ca['cYAaW'](_0x4a92a0,-0x3*-0x3fa+-0x3dd+0x3b*-0x23))return _0x4a92a0+'h\x20'+_0xde86ca[_0x81ab21(-0x18a,-0x1a2)](_0x8de3a9,0x70+0xce6+-0xd1a)+'m\x20'+_0xde86ca[_0x81ab21(-0x175,-0x1a2)](_0x11f72e,0x17e8+0x2403+-0xb*0x56d)+'s';if(_0xde86ca[_0x11efae(0x5d9,0x50c)](_0x8de3a9,-0x1b0b+0x1aad+0x5e))return _0x8de3a9+'m\x20'+_0xde86ca[_0x11efae(0x7a5,0x82a)](_0x11f72e,-0x9c3*0x1+-0xea1+0xc50*0x2)+'s';return _0x11f72e+'s';}if(command===_0x2618ea(0x678,0x4f6)){const watchdogPid=getWatchdogPid();if(watchdogPid){try{process[_0x511522(0x4d4,0x58d)](watchdogPid,_0x2618ea(0x78f,0x66d)+'RM'),console[_0x511522(0x722,0x5dc)](_0x511522(0x5ff,0x4f6)+_0x511522(0x368,0x472)+_0x511522(0x47b,0x66f)+'og\x20st'+_0x2618ea(0x5dd,0x589)+_0x2618ea(0x54a,0x6aa)+'\x20'+watchdogPid+').');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}}catch(_0x22e9c4){console[_0x511522(0x291,0x464)](_0x2618ea(0x3b8,0x4c7)+_0x2618ea(0x5ea,0x462)+_0x2618ea(0x64a,0x5e2)+'p\x20Upl'+_0x2618ea(0x383,0x494)+'atchd'+_0x2618ea(0x1e3,0x31b)+'ID\x20'+watchdogPid+'):',_0x22e9c4[_0x2618ea(0x743,0x557)+'ge']),process[_0x511522(0x2d6,0x4a6)](-0x113c+-0x67*-0x2f+0x1ac*-0x1);}process[_0x511522(0x435,0x4a6)](-0x1a57*0x1+0x61*0x20+-0x1*-0xe37);}const pid=getPid();!pid&&(console[_0x2618ea(0x7b1,0x5fe)](_0x511522(0x418,0x4f6)+'ink\x20i'+'s\x20not'+_0x2618ea(0x60b,0x594)+_0x511522(0x389,0x2ff)),process[_0x2618ea(0x535,0x4c8)](-0xb30+-0x247*0x2+0xfbe));try{process[_0x511522(0x55c,0x58d)](pid,_0x511522(0x5eb,0x64b)+'RM'),console['log'](_0x2618ea(0x5aa,0x518)+_0x511522(0x373,0x457)+'toppe'+'d\x20(PI'+'D\x20'+pid+').');try{unlinkSync(PID_FILE);}catch{}}catch(_0x2ebe00){console[_0x511522(0x470,0x464)](_0x511522(0x4a5,0x4a5)+_0x511522(0x5f6,0x440)+'o\x20sto'+_0x2618ea(0x2ec,0x306)+'ink\x20('+_0x2618ea(0x4a7,0x30b)+pid+'):',_0x2ebe00[_0x2618ea(0x63d,0x557)+'ge']),process[_0x511522(0x46c,0x4a6)](0x1963+-0x26f1+0xd8f);}process[_0x2618ea(0x4aa,0x4c8)](-0x1808+-0x33d+0x1b45);}if(command==='updat'+'e'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x511522(0x597,0x4a4)+_0x511522(0x50b,0x59f)+'on')),currentVersion=pkg[_0x511522(0x44d,0x363)+'on'];console['log'](_0x2618ea(0x1d2,0x374)+'rent\x20'+'versi'+_0x2618ea(0x5b9,0x497)+currentVersion),console['log'](_0x511522(0x426,0x597)+'cking'+_0x2618ea(0x5e1,0x657)+'updat'+_0x2618ea(0x423,0x37d)+'\x0a');const wasRunning=!!(getWatchdogPid()||getPid());if(wasRunning){console['log'](_0x2618ea(0x338,0x51d)+_0x511522(0x63a,0x627)+_0x511522(0x5ee,0x483)+_0x2618ea(0x763,0x5e6)+_0x2618ea(0x367,0x34f)+_0x2618ea(0x3dd,0x537)+_0x511522(0x3e1,0x5c8));const watchdogPid=getWatchdogPid(),serverPid=getPid(),pidToKill=watchdogPid||serverPid;try{process[_0x2618ea(0x779,0x5af)](pidToKill,_0x2618ea(0x6fb,0x66d)+'RM');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}const _0x535def={};_0x535def['stdio']=_0x511522(0x4b9,0x30b)+'e',execSync(_0x511522(0x3ff,0x4f5)+'\x201\x202>'+_0x2618ea(0x3be,0x448)+'null\x20'+_0x2618ea(0x4ff,0x336)+_0x511522(0x5cc,0x56c)+_0x2618ea(0x74e,0x561)+_0x2618ea(0x491,0x2dd)+_0x511522(0x6be,0x570)+'>nul\x20'+'2>&1',_0x535def);}catch{}}try{console[_0x511522(0x5da,0x5dc)](_0x2618ea(0x58b,0x4c3)+_0x2618ea(0x4e3,0x5d2)+_0x2618ea(0x181,0x311)+'ncomp'+_0x511522(0x2fb,0x3cb)+_0x511522(0x739,0x576)+_0x511522(0x261,0x44b)+_0x2618ea(0x26e,0x3f5));const _0x5718fe={};_0x5718fe['stdio']=_0x511522(0x581,0x632)+'it',execSync('npm\x20u'+_0x2618ea(0x59a,0x571)+_0x511522(0x5de,0x610)+'moonc'+_0x511522(0x61f,0x5e3)+_0x2618ea(0x56d,0x4fe)+'ink-c'+_0x2618ea(0x3c4,0x569),_0x5718fe);}catch(_0x5ac952){console[_0x511522(0x643,0x464)](_0x2618ea(0x255,0x432)+'date\x20'+_0x511522(0x4f5,0x5ff)+'d:',_0x5ac952[_0x511522(0x57a,0x535)+'ge']),console[_0x2618ea(0x497,0x486)]('\x20\x20Try'+_0x511522(0x646,0x572)+_0x2618ea(0x2b3,0x32f)+_0x2618ea(0x5ba,0x4e3)+_0x511522(0x822,0x65e)+'pm\x20up'+_0x2618ea(0x5a0,0x482)+'-g\x20@m'+'oonco'+'mpany'+_0x511522(0x36a,0x52a)+_0x2618ea(0x452,0x60c)+'at');if(wasRunning){console[_0x511522(0x5d9,0x5dc)]('\x0a⬡\x20Re'+_0x511522(0x71a,0x656)+_0x2618ea(0x5f5,0x4b5)+_0x2618ea(0x62b,0x598)+_0x511522(0x47a,0x588));const _0x593172={};_0x593172[_0x2618ea(0x3e8,0x30a)]=_0x511522(0x646,0x632)+'it',execSync('uplin'+'k-cha'+_0x2618ea(0x54c,0x501)+_0x511522(0x27a,0x39a)+'detac'+'h',_0x593172);}process[_0x2618ea(0x453,0x4c8)](0x3*0x672+-0x705+-0xc50);}try{delete require[_0x2618ea(0x4f7,0x3ff)][join(ROOT,_0x511522(0x2d2,0x4a4)+'ge.js'+'on')];const newPkg=require(join(ROOT,'packa'+_0x511522(0x4b8,0x59f)+'on')),newVersion=newPkg[_0x2618ea(0x377,0x385)+'on'];newVersion!==currentVersion?console[_0x511522(0x464,0x5dc)](_0x511522(0x254,0x410)+_0x2618ea(0x3cb,0x44b)+_0x511522(0x136,0x325)+currentVersion+_0x2618ea(0x4d7,0x550)+newVersion):console[_0x511522(0x6fb,0x5dc)]('\x0a⬡\x20Al'+_0x2618ea(0x5dd,0x4d6)+_0x2618ea(0x5ff,0x5a7)+_0x2618ea(0x78e,0x65d)+_0x2618ea(0x2bd,0x44d)+_0x2618ea(0x311,0x385)+_0x2618ea(0x526,0x6bc)+currentVersion+').');}catch{console[_0x511522(0x720,0x5dc)]('\x0a⬡\x20Up'+_0x511522(0x568,0x460)+_0x2618ea(0x34b,0x314)+'ete.');}if(wasRunning){console[_0x2618ea(0x75f,0x5fe)](_0x2618ea(0x733,0x5d7)+_0x511522(0x26d,0x3cf)+_0x511522(0x3a9,0x392)+_0x2618ea(0x8a8,0x6b4)+'..');try{const _0x1c3831={};_0x1c3831[_0x2618ea(0x2ef,0x30a)]=_0x511522(0x4b9,0x632)+'it',execSync(_0x511522(0x473,0x512)+'k-cha'+_0x511522(0x338,0x4df)+_0x2618ea(0x228,0x3bc)+_0x511522(0x323,0x513)+'h',_0x1c3831);}catch{console['log'](_0x2618ea(0x7e4,0x659)+_0x511522(0x5a7,0x510)+_0x511522(0x49e,0x498)+'faile'+_0x511522(0x237,0x34a)+_0x2618ea(0x49c,0x44c)+_0x511522(0x407,0x4c1)+_0x2618ea(0x3da,0x560)+'th:\x20u'+_0x511522(0x5fe,0x576)+'-chat'+_0x2618ea(0x564,0x666)+'t');}}process['exit'](-0x1dd3+-0x43*0x35+0x2bb2);}if(command==='statu'+'s'){const watchdogPid=getWatchdogPid(),state=getWatchdogState();if(watchdogPid&&state){const uptime=formatUptime(Date['now']()-state['start'+_0x511522(0x476,0x2da)]);console[_0x2618ea(0x5bc,0x5fe)](_0x2618ea(0x591,0x518)+'ink\x20i'+'s\x20run'+'ning\x20'+_0x511522(0x64c,0x563)+_0x2618ea(0x232,0x3e0)+_0x2618ea(0x57a,0x4ca)),console[_0x511522(0x6dd,0x5dc)](_0x511522(0x57c,0x47c)+_0x2618ea(0x79f,0x6a8)+_0x511522(0x4a0,0x2c3)+'\x20'+watchdogPid);if(state[_0x511522(0x405,0x32e)+_0x511522(0x21a,0x30e)])console[_0x511522(0x528,0x5dc)](_0x2618ea(0x2b2,0x46c)+_0x511522(0x41d,0x374)+_0x511522(0x660,0x5cc)+'\x20'+state['serve'+'rPid']);console['log'](_0x511522(0x453,0x478)+_0x511522(0x334,0x375)+_0x2618ea(0x568,0x5f3)+'\x20'+uptime),console[_0x2618ea(0x72b,0x5fe)]('\x20\x20Res'+_0x511522(0x5b6,0x48c)+':\x20\x20\x20\x20'+'\x20'+(state[_0x511522(0x652,0x615)+_0x511522(0x684,0x523)+'nt']||0x1*-0x1a42+-0x20*-0x3e+-0x67*-0x2e));if(state[_0x2618ea(0x2a7,0x2f6)+_0x2618ea(0x78e,0x650)]>-0xe2*-0xf+0x1*0x1585+0x1*-0x1edb)console[_0x511522(0x701,0x5dc)](_0x2618ea(0x354,0x3d0)+_0x511522(0x704,0x5e7)+'\x20\x20\x20\x20\x20'+'\x20'+state[_0x511522(0x30e,0x2d4)+_0x2618ea(0x6a4,0x650)]+'ms');}else{const pid=getPid();pid?console[_0x511522(0x742,0x5dc)](_0x511522(0x422,0x4f6)+_0x511522(0x5b9,0x42e)+'s\x20run'+_0x511522(0x398,0x4ae)+_0x2618ea(0x384,0x4ac)+pid+').'):console[_0x2618ea(0x72b,0x5fe)](_0x2618ea(0x4f5,0x518)+'ink\x20i'+_0x511522(0x403,0x548)+_0x2618ea(0x482,0x594)+_0x511522(0x10b,0x2ff));}process[_0x511522(0x507,0x4a6)](-0x1f6b*-0x1+0x73a+0xd*-0x2f9);}if(command===_0x2618ea(0x58e,0x52d)+'tall'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x2618ea(0x499,0x4c6)+_0x511522(0x4bd,0x59f)+'on')),readline=await import(_0x511522(0x3e3,0x50e)+_0x511522(0x4a3,0x5ba)),{rmSync}=await import('fs');console[_0x2618ea(0x4c1,0x5fe)](_0x2618ea(0x495,0x5eb)+_0x2618ea(0x61a,0x51b)+_0x511522(0x550,0x35c)+_0x2618ea(0x725,0x56e)+_0x2618ea(0x493,0x541)+pkg[_0x511522(0x178,0x363)+'on']+'\x0a'),console[_0x511522(0x449,0x5dc)](_0x2618ea(0x2d3,0x37f)+_0x2618ea(0x3a0,0x50a)+'l:'),console['log']('\x20\x20\x20\x20•'+_0x2618ea(0x279,0x447)+_0x511522(0x728,0x5f6)+_0x511522(0x470,0x4f9)+_0x511522(0x418,0x466)+_0x2618ea(0x59b,0x6a5)+_0x2618ea(0x2f7,0x39b)+_0x511522(0x483,0x435)+'g'),console[_0x2618ea(0x622,0x5fe)]('\x20\x20\x20\x20•'+'\x20Remo'+_0x2618ea(0x4f8,0x603)+_0x2618ea(0x323,0x4f9)+'figur'+_0x2618ea(0x44d,0x4f5)+_0x2618ea(0x427,0x4f4)+_0x2618ea(0x1ef,0x2e7)+_0x2618ea(0x48c,0x51a)+_0x2618ea(0x85a,0x686)+')'),console[_0x2618ea(0x5bb,0x5fe)](_0x2618ea(0x64e,0x64a)+_0x511522(0x58e,0x39b)+_0x511522(0x5c5,0x5e1)+_0x2618ea(0x404,0x45d)+'oads\x20'+_0x2618ea(0x1ef,0x2e6)+_0x511522(0x65a,0x470)+'\x20data'),console[_0x511522(0x407,0x5dc)](_0x511522(0x809,0x628)+'\x20Remo'+'ve\x20al'+_0x511522(0x130,0x2d1)+_0x511522(0x451,0x4e9)+_0x511522(0x5f2,0x49b)+_0x511522(0x4b2,0x664)),console[_0x2618ea(0x5a3,0x5fe)]('\x20\x20\x20\x20•'+_0x2618ea(0x1f4,0x3bd)+_0x2618ea(0x58b,0x43c)+_0x511522(0x5f1,0x417)+'vatar'+'s\x20and'+_0x2618ea(0x574,0x417)+_0x2618ea(0x326,0x3f4)+'es'),console['log']('\x20\x20\x20\x20•'+'\x20Unin'+'stall'+_0x511522(0x69c,0x5f6)+_0x511522(0x474,0x391)+_0x2618ea(0x5b1,0x4d8)+_0x2618ea(0x6b4,0x4ce)+'bally'+'\x0a'),console[_0x511522(0x509,0x5dc)](_0x2618ea(0x782,0x66a)+_0x511522(0x553,0x651)+_0x2618ea(0x368,0x3ee)+_0x2618ea(0x58d,0x4cb)+_0x511522(0x5f8,0x629)+'e\x20und'+_0x2618ea(0x349,0x2e9));const _0x29389f={};_0x29389f['input']=process['stdin'],_0x29389f[_0x2618ea(0x47b,0x452)+'t']=process[_0x511522(0x3d8,0x44e)+'t'];const rl=readline[_0x2618ea(0x438,0x4bc)+_0x2618ea(0x241,0x367)+_0x2618ea(0x432,0x4cf)](_0x29389f),answer=await new Promise(_0x39719f=>{const _0x21587a={};function _0x2237fe(_0x3ad1cb,_0x35afbd){return _0x2618ea(_0x3ad1cb,_0x35afbd-0x14e);}function _0x6441ca(_0x22abb9,_0x222e27){return _0x2618ea(_0x222e27,_0x22abb9- -0x56);}_0x21587a[_0x2237fe(0x813,0x61f)]=_0x6441ca(0x2e2,0x295)+_0x2237fe(0x400,0x43a)+_0x2237fe(0x7a7,0x5dd)+'ll\x22\x20t'+_0x2237fe(0x521,0x602)+_0x2237fe(0x61c,0x633)+'\x20';const _0x1d2f9d=_0x21587a;rl[_0x2237fe(0x868,0x782)+'ion'](_0x1d2f9d[_0x2237fe(0x543,0x61f)],_0x39719f);});rl[_0x2618ea(0x5d6,0x6b1)]();answer[_0x2618ea(0x6db,0x559)]()[_0x2618ea(0x452,0x602)+_0x511522(0x4f9,0x449)+'e']()!==_0x2618ea(0x6c9,0x52d)+_0x2618ea(0x621,0x43a)&&(console[_0x511522(0x414,0x5dc)](_0x2618ea(0x172,0x332)+_0x511522(0x28f,0x302)+_0x2618ea(0x836,0x68b)+_0x511522(0x535,0x55e)+_0x511522(0x35a,0x549)+_0x511522(0x64c,0x5fa)+_0x2618ea(0x32f,0x4fd)),process[_0x2618ea(0x601,0x4c8)](0x74c*0x4+-0x1*0x12a7+-0xa89));console[_0x511522(0x76f,0x5dc)]('');const watchdogPid=getWatchdogPid(),serverPid=getPid();if(watchdogPid)try{process[_0x511522(0x550,0x58d)](watchdogPid,_0x2618ea(0x6a0,0x66d)+'RM'),console[_0x511522(0x45a,0x5dc)](_0x2618ea(0x4d0,0x426)+_0x2618ea(0x578,0x529)+_0x511522(0x480,0x5ad)+_0x511522(0x65b,0x686)+_0x511522(0x6a5,0x688)+'\x20'+watchdogPid+')');}catch{}if(serverPid)try{process[_0x511522(0x39b,0x58d)](serverPid,_0x511522(0x5f1,0x64b)+'RM'),console[_0x2618ea(0x564,0x5fe)]('\x20\x20✓\x20S'+_0x2618ea(0x590,0x529)+_0x2618ea(0x594,0x6ae)+_0x511522(0x3f7,0x5cd)+_0x511522(0x498,0x2e9)+serverPid+')');}catch{}!watchdogPid&&!serverPid&&console[_0x2618ea(0x782,0x5fe)](_0x511522(0x544,0x404)+_0x511522(0x4e2,0x4f0)+_0x2618ea(0x4ba,0x547)+_0x511522(0x35f,0x41f)+'ng');const legacyToRemove=[_0x2618ea(0x563,0x5f8),'confi'+_0x511522(0x47e,0x2d7)+'n',_0x511522(0x543,0x4ef)+'nk.pi'+'d',_0x2618ea(0x320,0x511)+_0x511522(0x463,0x46e)+_0x511522(0x415,0x435)+'g.pid',_0x2618ea(0x480,0x511)+_0x511522(0x49b,0x46e)+'tchdo'+'g.jso'+'n',_0x511522(0x62a,0x4ef)+_0x2618ea(0x447,0x490)+_0x511522(0x5d6,0x435)+_0x2618ea(0x626,0x4ef),_0x511522(0x492,0x4ef)+_0x511522(0x5fe,0x4f3)+_0x2618ea(0x595,0x3c5)+_0x2618ea(0x62c,0x5fe),_0x2618ea(0x319,0x2e1)+'ity.j'+'son',_0x511522(0x58f,0x535)+'ges-s'+'ync.j'+'son',_0x511522(0x7ca,0x616)+_0x511522(0x439,0x443)+_0x2618ea(0x668,0x606)+_0x2618ea(0x25c,0x3a5)+_0x511522(0x280,0x3e5),_0x511522(0x481,0x57c)+'d-mes'+'sages'+_0x511522(0x20e,0x33d),_0x511522(0x654,0x505)+'ds',_0x2618ea(0x82c,0x682)+_0x2618ea(0x75b,0x57c),'publi'+_0x511522(0x4bd,0x655)+'io','publi'+_0x511522(0x669,0x697)+_0x2618ea(0x449,0x57f)+'ts'];let removed=-0x1a4d+0x1676+-0x1*-0x3d7;for(const item of legacyToRemove){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x5cb8d0={};_0x5cb8d0[_0x511522(0x3fb,0x39e)+_0x2618ea(0x577,0x3e9)]=!![],_0x5cb8d0['force']=!![],rmSync(fullPath,_0x5cb8d0),removed++;}catch{}}if(existsSync(DATA_DIR))try{const _0x1ce3f4={};_0x1ce3f4['recur'+_0x2618ea(0x384,0x3e9)]=!![],_0x1ce3f4[_0x511522(0x6a6,0x533)]=!![],rmSync(DATA_DIR,_0x1ce3f4),removed++,console[_0x511522(0x6c6,0x5dc)]('\x20\x20✓\x20R'+_0x511522(0x6c2,0x577)+_0x511522(0x617,0x587)+_0x511522(0x416,0x4a2)+'ector'+'y:\x20'+DATA_DIR);}catch{}console['log'](_0x2618ea(0x62b,0x4a7)+_0x2618ea(0x4db,0x599)+'d\x20'+removed+(_0x511522(0x5b3,0x613)+_0x2618ea(0x568,0x572)+_0x511522(0x744,0x63c)+_0x511522(0x5c1,0x5be)+_0x511522(0x344,0x2e6))),console[_0x511522(0x3ec,0x5dc)]('\x20\x20✓\x20R'+_0x511522(0x2ad,0x43a)+_0x511522(0x5c1,0x3f1)+_0x511522(0x3ae,0x553)+_0x2618ea(0x3a9,0x4c5)+'..\x0a');try{const _0x4ed57d={};_0x4ed57d[_0x511522(0x290,0x2e8)]=_0x511522(0x7b3,0x632)+'it',execSync(_0x511522(0x6b2,0x509)+'ninst'+_0x2618ea(0x3ef,0x58d)+_0x2618ea(0x4df,0x45a)+_0x2618ea(0x367,0x4ea)+_0x511522(0x3d8,0x323)+_0x2618ea(0x482,0x534)+_0x2618ea(0x45c,0x341)+'t',_0x4ed57d),console[_0x2618ea(0x528,0x5fe)]('\x0a\x20\x20⬡\x20'+'Uplin'+'k\x20has'+_0x511522(0x382,0x2cc)+'\x20comp'+'letel'+'y\x20uni'+'nstal'+_0x2618ea(0x4a8,0x4d7)),console['log'](_0x2618ea(0x5be,0x6b0)+_0x511522(0x3b2,0x3dc)+_0x511522(0x2ea,0x3c1)+_0x2618ea(0x462,0x4b5)+'plink'+'.\x20👋\x0a');}catch(_0x169033){console[_0x511522(0x295,0x464)](_0x2618ea(0x361,0x3cd)+_0x2618ea(0x507,0x410)+_0x2618ea(0x561,0x4e6)+_0x2618ea(0x3f1,0x52f)+'stall'+'\x20npm\x20'+_0x511522(0x3be,0x4a4)+_0x511522(0x360,0x4d1)),console[_0x2618ea(0x32e,0x486)](_0x511522(0x4a8,0x3df)+_0x2618ea(0x561,0x615)+_0x511522(0x2e8,0x41c)+_0x2618ea(0x3c3,0x300)+_0x2618ea(0x426,0x52d)+'tall\x20'+_0x2618ea(0x1f5,0x34e)+_0x2618ea(0x3bd,0x392)+_0x2618ea(0x598,0x49b)+_0x511522(0x537,0x52a)+'nk-ch'+'at\x0a'),process['exit'](0xf*-0xff+-0x1f61+-0xb1*-0x43);}process[_0x2618ea(0x458,0x4c8)](0x6*0x493+0x1*0x260e+-0x4180);}if(command==='logs'){const LOG_FILE=join(ROOT,_0x511522(0x3fd,0x32e)+'r.log'),ALT_LOG_FILE=join(ROOT,_0x511522(0x533,0x4ef)+_0x511522(0x66c,0x4f3)+_0x2618ea(0x26d,0x3c5)+_0x511522(0x4e4,0x5dc)),DATA_LOG_FILE=join(DATA_DIR,_0x2618ea(0x353,0x511)+_0x511522(0x361,0x4f3)+'rver.'+'log'),logFile=existsSync(DATA_LOG_FILE)?DATA_LOG_FILE:existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:null;if(!logFile){const TOwESk=('2|6|4'+_0x511522(0x396,0x37f)+_0x2618ea(0x41e,0x310))[_0x511522(0x44b,0x620)]('|');let LHmBTd=-0x1*0x111f+-0x3d*0xa3+0x1d*0x1ee;while(!![]){switch(TOwESk[LHmBTd++]){case'0':console[_0x511522(0x618,0x5dc)]('\x20\x20Sta'+_0x511522(0x280,0x31e)+_0x511522(0x622,0x6a1)+_0x511522(0x378,0x3ed)+_0x2618ea(0x51d,0x5dd)+_0x2618ea(0x19e,0x318)+_0x511522(0x5e6,0x5ea)+_0x511522(0x577,0x665)+_0x511522(0x646,0x473));continue;case'1':console[_0x511522(0x601,0x5dc)]('');continue;case'2':console[_0x2618ea(0x631,0x5fe)](_0x2618ea(0x5e4,0x5cc)+'log\x20f'+_0x2618ea(0x25c,0x3dd)+_0x2618ea(0x41f,0x5bc));continue;case'3':process[_0x511522(0x428,0x4a6)](-0x5*-0x6f5+-0x16aa+-0xc1e);continue;case'4':console[_0x2618ea(0x64f,0x5fe)]('\x20\x20\x20\x20'+LOG_FILE);continue;case'5':console[_0x511522(0x4ec,0x5dc)](_0x2618ea(0x5c0,0x5d8)+ALT_LOG_FILE);continue;case'6':console['log'](_0x2618ea(0x5ca,0x69e)+_0x2618ea(0x434,0x2ef)+_0x511522(0x3ba,0x424)+_0x2618ea(0x590,0x3c4)+':');continue;case'7':console[_0x2618ea(0x5e3,0x5fe)](_0x2618ea(0x48d,0x4a6)+_0x2618ea(0x573,0x444)+_0x511522(0x640,0x450)+'ted\x20w'+'hen\x20t'+_0x511522(0x499,0x45c)+_0x2618ea(0x522,0x5cb)+_0x511522(0x67d,0x540));continue;}break;}}const lines=flags[_0x2618ea(0x5c9,0x5c9)]||-0x2437+-0x68f+0x2af8;try{const content=readFileSync(logFile,'utf8'),allLines=content[_0x2618ea(0x521,0x642)]('\x0a'),tail=allLines[_0x511522(0x6c7,0x66c)](-lines)[_0x511522(0x505,0x601)]('\x0a');console[_0x2618ea(0x5ed,0x5fe)](_0x511522(0x603,0x63a)+_0x2618ea(0x586,0x57b)+_0x2618ea(0x4bc,0x58f)+lines+(_0x2618ea(0x5d2,0x5b4)+'s\x20fro'+'m\x20')+logFile+'\x0a'),console[_0x2618ea(0x527,0x5fe)](tail);}catch(_0x230394){console[_0x511522(0x515,0x464)](_0x511522(0x4ef,0x4a5)+_0x511522(0x563,0x440)+_0x2618ea(0x542,0x38d)+_0x511522(0x5a6,0x5ed)+'\x20file'+':\x20'+_0x230394['messa'+'ge']),process['exit'](-0x1f03+-0x142a+0x332e);}console[_0x2618ea(0x6d8,0x5fe)](_0x511522(0x359,0x4cc)+_0x511522(0x639,0x69e)+'g\x20for'+_0x511522(0x408,0x384)+_0x511522(0x12d,0x31c)+_0x511522(0x4fc,0x433)+_0x511522(0x272,0x396)+_0x2618ea(0x133,0x2f4)+'+C\x20to'+_0x2618ea(0x69c,0x5f6)+')\x0a');const fsModule=await import('fs');let position=statSync(logFile)[_0x511522(0x11b,0x2b9)];const watcher=fsModule[_0x2618ea(0x5ba,0x639)](logFile,()=>{function _0xb7693e(_0x21736d,_0x54f5f7){return _0x2618ea(_0x21736d,_0x54f5f7- -0x24f);}function _0x286de3(_0x72e7ae,_0x5babd7){return _0x2618ea(_0x72e7ae,_0x5babd7- -0x40b);}const _0x5f4e98={'UOazQ':function(_0x58ea8d,_0x2422c6,_0x2609b5){return _0x58ea8d(_0x2422c6,_0x2609b5);},'OBKDf':_0x286de3(0x8f,0xab)+_0xb7693e(0xf2,0x1b6)+'es\x20ex'+'ists','vNghE':function(_0x2f3b60,_0x56ef6d){return _0x2f3b60(_0x56ef6d);},'eVovn':_0x286de3(0x17,0x84)+_0xb7693e(0x407,0x28b),'QTsdG':function(_0x549311,_0x23acb9){return _0x549311!==_0x23acb9;},'SmNMT':_0xb7693e(0x21e,0x23a),'VXLPJ':function(_0x27da27,_0xfb64e2){return _0x27da27===_0xfb64e2;},'yIMOV':_0x286de3(0x29f,0x121),'QTQYA':function(_0x43c965,_0x5bf642){return _0x43c965-_0x5bf642;},'vbgHF':_0x286de3(-0x1b5,-0x95),'OmIXZ':function(_0xec7a1,_0x495684){return _0xec7a1<_0x495684;},'EvqcR':_0x286de3(0x11c,0x297)};try{if(_0x5f4e98[_0xb7693e(0xca,0x226)](_0x5f4e98['SmNMT'],_0x5f4e98['SmNMT']))_0x5f4e98['UOazQ'](_0x3d244b,_0xb7693e(0x2e1,0x135)+'denci'+_0xb7693e(0x200,0x11b)+_0x286de3(0x207,0x1e2)+'ed',_0x5f4e98[_0xb7693e(0x234,0x3be)]);else{const _0x3db2cc=fsModule['openS'+'ync'](logFile,'r'),_0x3ae296=fsModule['fstat'+_0x286de3(0xd4,0x24d)](_0x3db2cc)[_0xb7693e(-0x11e,0x8c)];if(_0x3ae296>position){if(_0x5f4e98[_0x286de3(-0x18,-0xc8)](_0x5f4e98[_0x286de3(0x169,0x21f)],_0x5f4e98['yIMOV'])){const _0x168b4d=Buffer[_0x286de3(-0x274,-0xbe)](_0x5f4e98['QTQYA'](_0x3ae296,position));fsModule[_0xb7693e(0x1a0,0x396)+_0xb7693e(0x364,0x210)](_0x3db2cc,_0x168b4d,-0x1c33*0x1+-0x182f+0x3*0x1176,_0x168b4d['lengt'+'h'],position),process[_0x286de3(0x105,0x65)+'t'][_0x286de3(-0x217,-0xa2)](_0x168b4d[_0xb7693e(0xb0,0x21a)+_0x286de3(-0x1d1,-0x6f)](_0x5f4e98[_0xb7693e(0x28b,0x368)])),position=_0x3ae296;}else{try{OCAQvQ[_0xb7693e(0x2d2,0x119)](_0x14c099,_0x48a99e);}catch{}return null;}}else _0x5f4e98[_0x286de3(0xac,0x1bd)](_0x3ae296,position)&&(_0x286de3(0x257,0x297)!==_0x5f4e98['EvqcR']?_0x5ff69f=_0x5f4e98[_0xb7693e(0x3ef,0x32e)]:position=-0x1d*0x59+-0x21cd*0x1+0x2be2);fsModule[_0x286de3(0x2b8,0x2a6)+_0xb7693e(0x464,0x409)](_0x3db2cc);}}catch{}});process['on'](_0x2618ea(0x412,0x39e)+'T',()=>{watcher['close'](),process['exit'](0x1da3*-0x1+-0x1c31+0x39d4);}),process['on'](_0x2618ea(0x798,0x66d)+'RM',()=>{function _0x3e11c5(_0x29d782,_0x3c5e3a){return _0x2618ea(_0x3c5e3a,_0x29d782- -0x3ac);}function _0x1c9691(_0x467c38,_0x3a9721){return _0x2618ea(_0x3a9721,_0x467c38- -0x260);}watcher[_0x1c9691(0x451,0x452)](),process[_0x3e11c5(0x11c,0x21b)](0x161*0x11+-0x6bb+-0x10b6);});}if(command===_0x511522(0x470,0x3f7)+'g'){const ENV_FILE=existsSync(join(DATA_DIR,_0x2618ea(0x516,0x5f8)))?join(DATA_DIR,_0x2618ea(0x45f,0x5f8)):join(ROOT,_0x2618ea(0x569,0x5f8));flags[_0x2618ea(0x53d,0x69d)]&&(console[_0x2618ea(0x50d,0x5fe)](ENV_FILE),process[_0x2618ea(0x579,0x4c8)](0x109a+0x1eb+-0x1285));if(flags[_0x2618ea(0x5bc,0x411)]){if(!existsSync(ENV_FILE)){const exampleFile=join(ROOT,'.env.'+_0x511522(0x5cb,0x5f2)+'le');existsSync(exampleFile)?(writeFileSync(ENV_FILE,readFileSync(exampleFile,_0x511522(0x216,0x354))),console['log'](_0x2618ea(0x5b0,0x676)+'ated\x20'+'.env\x20'+'from\x20'+_0x511522(0x5b2,0x459)+_0x2618ea(0x642,0x614)+'le')):(writeFileSync(ENV_FILE,'#\x20Upl'+_0x511522(0x299,0x2df)+_0x511522(0x4ae,0x514)+_0x511522(0x3f7,0x4c7)+'on\x0a'),console['log']('⬡\x20Cre'+'ated\x20'+_0x2618ea(0x59f,0x55d)+_0x2618ea(0x1d9,0x371)+_0x2618ea(0x5c8,0x572)));}const editor=process.env.EDITOR||(process[_0x2618ea(0x71b,0x579)+'orm']===_0x511522(0x621,0x458)?_0x511522(0x30f,0x31b)+'ad':'nano');console[_0x2618ea(0x66f,0x5fe)](_0x511522(0x23c,0x3f6)+_0x2618ea(0x571,0x4d0)+ENV_FILE+_0x2618ea(0x2c2,0x37a)+editor+_0x511522(0x4b3,0x588));try{const _0x1c60e8={};_0x1c60e8['stdio']=_0x2618ea(0x748,0x654)+'it',execSync(editor+'\x20\x22'+ENV_FILE+'\x22',_0x1c60e8);}catch(_0x13574a){console[_0x511522(0x3f4,0x464)]('⬡\x20Fai'+_0x511522(0x296,0x440)+_0x2618ea(0x3d9,0x329)+'n\x20edi'+_0x2618ea(0x4b3,0x64d)+_0x13574a['messa'+'ge']),console[_0x511522(0x462,0x464)](_0x2618ea(0x57b,0x471)+_0x2618ea(0x595,0x4db)+_0x511522(0x776,0x589)+_0x511522(0x451,0x4d9)+_0x2618ea(0x347,0x425)+_0x511522(0x45b,0x5df)+_0x511522(0x646,0x4c1)+_0x2618ea(0x40f,0x510)+ENV_FILE),process['exit'](-0x22a5+-0x18f3+0x3b99);}process[_0x511522(0x687,0x4a6)](-0x2522+0x1*-0x1bfe+0x4120);}!existsSync(ENV_FILE)&&(console[_0x2618ea(0x5c0,0x5fe)]('⬡\x20No\x20'+_0x511522(0x74b,0x668)+'file\x20'+_0x511522(0x64a,0x565)+'.'),console[_0x2618ea(0x698,0x5fe)](_0x2618ea(0x723,0x586)+'ate\x20o'+_0x511522(0x4b6,0x5b7)+'th:\x20u'+_0x511522(0x5bf,0x576)+'-chat'+_0x2618ea(0x70a,0x681)+_0x2618ea(0x5c4,0x56f)+_0x2618ea(0x536,0x411)),console[_0x511522(0x63a,0x5dc)](_0x2618ea(0x619,0x68c)+'copy\x20'+'the\x20e'+'xampl'+_0x2618ea(0x4b6,0x4e2)+_0x2618ea(0x3fb,0x371)+_0x2618ea(0x5d8,0x51e)+'ple\x20.'+_0x511522(0x4b9,0x5a1)),process['exit'](-0x1230+-0x16d5+-0x1483*-0x2));const SENSITIVE_KEYS=['TOKEN',_0x511522(0x1d9,0x349),'SECRE'+'T',_0x2618ea(0x361,0x2fa)+_0x2618ea(0x3b3,0x4f7),_0x2618ea(0x2c7,0x3a2)+'NTIAL'];function maskValue(_0x4e9007,_0x39fa31){function _0x2b9e3c(_0x2317ad,_0x14cef2){return _0x2618ea(_0x14cef2,_0x2317ad-0x13a);}const _0xf97455={};function _0x504dd9(_0x525ca4,_0x4b7ecc){return _0x2618ea(_0x4b7ecc,_0x525ca4-0xc);}_0xf97455[_0x2b9e3c(0x7bd,0x71c)]=function(_0x251d71,_0x2484a7){return _0x251d71||_0x2484a7;},_0xf97455[_0x2b9e3c(0x563,0x3e4)]=function(_0x33895b,_0x20ce2b){return _0x33895b<=_0x20ce2b;},_0xf97455[_0x504dd9(0x53f,0x61d)]=function(_0x5e4d8c,_0x1d1d90){return _0x5e4d8c+_0x1d1d90;},_0xf97455['ukzBO']=_0x504dd9(0x407,0x535);const _0x4f8710=_0xf97455,_0x494d89=SENSITIVE_KEYS['some'](_0x315abd=>_0x4e9007[_0x504dd9(0x66f,0x4c0)+_0x504dd9(0x477,0x5ec)+'e']()[_0x504dd9(0x686,0x539)+_0x504dd9(0x426,0x5df)](_0x315abd));if(_0x4f8710[_0x504dd9(0x68f,0x73d)](!_0x494d89,!_0x39fa31)||_0x4f8710['oZirE'](_0x39fa31['lengt'+'h'],-0xa93+0x1ee4+-0x1*0x144d))return _0x39fa31;return _0x4f8710[_0x2b9e3c(0x66d,0x761)](_0x39fa31['slice'](0x246c+0x3*-0x382+-0x19e6,0xe9e+0x1*-0x2e7+-0x5*0x257),_0x4f8710['ukzBO']);}try{const content=readFileSync(ENV_FILE,'utf8'),entries=[];for(const line of content[_0x2618ea(0x5f2,0x642)]('\x0a')){const trimmed=line[_0x2618ea(0x69e,0x559)]();if(!trimmed||trimmed[_0x2618ea(0x546,0x678)+'sWith']('#'))continue;const eqIdx=trimmed[_0x511522(0x5e0,0x3fa)+'Of']('=');if(eqIdx===-(0x365+-0x27a*0x4+0x22c*0x3))continue;const key=trimmed[_0x511522(0x4b3,0x66c)](0x1cd5+-0x17b+0xdad*-0x2,eqIdx)[_0x2618ea(0x6d0,0x559)](),val=trimmed[_0x2618ea(0x7e9,0x68e)](eqIdx+(0x21ea+-0x1*0x1f0c+-0x2dd))[_0x511522(0x46d,0x537)]();entries[_0x511522(0x4e5,0x4bb)]([key,val]);}entries['lengt'+'h']===0xd*0x2b9+-0x1e5b+-0x50a&&(console[_0x2618ea(0x531,0x5fe)](_0x511522(0x6d5,0x64f)+_0x511522(0x74e,0x5b1)+_0x511522(0x5c1,0x439)+_0x2618ea(0x74c,0x55d)+'.\x20Run'+':\x20upl'+_0x511522(0x540,0x3f2)+_0x2618ea(0x5dd,0x624)+'onfig'+_0x2618ea(0x5c7,0x504)+'it'),process[_0x2618ea(0x4fa,0x4c8)](0x241c+0x305*-0x5+0x1*-0x1503));const maxKeyLen=Math[_0x511522(0x517,0x4de)](...entries['map'](([_0x59e615])=>_0x59e615['lengt'+'h']));console['log']('\x0a\x20\x20⬡\x20'+'Uplin'+_0x511522(0x3a1,0x4ea)+_0x2618ea(0x509,0x3bb)+_0x511522(0x390,0x4d3)+'\x0a'),console[_0x511522(0x781,0x5dc)]('\x20\x20'+_0x2618ea(0x40a,0x3c2)[_0x2618ea(0x33a,0x2ea)+'d'](maxKeyLen+(0x1326+0x1818+-0x2b3c))+_0x511522(0x463,0x2c1)),console['log']('\x20\x20'+'─'[_0x511522(0x3cb,0x3a8)+'t'](maxKeyLen+(0x4b3*-0x1+-0x2*-0xa49+0x83*-0x1f))+'─'[_0x2618ea(0x429,0x3ca)+'t'](-0xd5*0x1f+0x1d22+-0x32f*0x1));for(const [key,val]of entries){const display=val?maskValue(key,val):_0x2618ea(0x3a2,0x3c3)+_0x2618ea(0x5e4,0x581)+'y)\x1b[0'+'m';console[_0x511522(0x407,0x5dc)]('\x20\x20'+key[_0x2618ea(0x423,0x2ea)+'d'](maxKeyLen+(0x9be+0xbc3+0x157f*-0x1))+display);}console['log'](_0x2618ea(0x4c6,0x4de)+_0x2618ea(0x4f6,0x383)+ENV_FILE+'\x0a');}catch(_0x179750){console['error'](_0x2618ea(0x518,0x4c7)+'led\x20t'+_0x2618ea(0x1b5,0x38d)+_0x511522(0x46b,0x31a)+_0x511522(0x42a,0x5d5)+_0x179750[_0x2618ea(0x5f5,0x557)+'ge']),process[_0x2618ea(0x484,0x4c8)](-0xb7*-0x19+0x1*0x20c1+0x1*-0x329f);}process['exit'](-0x1cf1+0x2*0x93+-0x1*-0x1bcb);}if(command===_0x2618ea(0x228,0x309)+'r'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x511522(0x637,0x59f)+'on'));console[_0x2618ea(0x7a1,0x5fe)](_0x511522(0x7b2,0x5c9)+_0x511522(0x6c6,0x4f9)+_0x511522(0x64f,0x482)+_0x2618ea(0x43d,0x2e4)+'\x20v'+pkg[_0x2618ea(0x575,0x385)+'on']+'\x0a');const results=[];function pass(_0x4ecb13,_0x25a15d){const _0x322bb6={};_0x322bb6['gNQfQ']=_0x114eae(0x79,0x2e);const _0x1ce6d2=_0x322bb6;function _0x114eae(_0x28c4b4,_0x39fd70){return _0x511522(_0x39fd70,_0x28c4b4- -0x4ad);}const _0x1b48c6={};function _0x524778(_0x2f24ec,_0x2ba0c0){return _0x511522(_0x2ba0c0,_0x2f24ec-0x95);}_0x1b48c6[_0x524778(0x639,0x47f)+'s']=_0x1ce6d2['gNQfQ'],_0x1b48c6[_0x114eae(-0xd5,-0x2b1)]=_0x4ecb13,_0x1b48c6['detai'+'l']=_0x25a15d,results['push'](_0x1b48c6);}function fail(_0xae8e57,_0x1d192f){const _0xea8e81={};function _0x311ac1(_0x185420,_0x52cb2d){return _0x2618ea(_0x185420,_0x52cb2d- -0x5c3);}_0xea8e81['statu'+'s']=_0x5da677(0x38f,0x2f6),_0xea8e81[_0x311ac1(-0x249,-0x1c9)]=_0xae8e57;function _0x5da677(_0x1270bc,_0x303870){return _0x2618ea(_0x1270bc,_0x303870- -0xbc);}_0xea8e81[_0x311ac1(-0x48f,-0x2bf)+'l']=_0x1d192f,results['push'](_0xea8e81);}function warn(_0x59e4c2,_0x59d1d5){const _0xa70a14={};_0xa70a14[_0x36b674(0x1ae,0x86)]=_0x128c8f(0x86,0x115);const _0x2a398d=_0xa70a14,_0x13a007={};_0x13a007[_0x128c8f(0x1f0,0x37)+'s']=_0x2a398d[_0x36b674(0x27d,0x86)],_0x13a007['label']=_0x59e4c2;function _0x128c8f(_0x5a2c1e,_0x1d91ee){return _0x511522(_0x5a2c1e,_0x1d91ee- -0x56d);}function _0x36b674(_0x18c03e,_0x38a5a2){return _0x511522(_0x18c03e,_0x38a5a2- -0x4da);}_0x13a007[_0x36b674(-0x348,-0x1f8)+'l']=_0x59d1d5,results[_0x128c8f(-0x96,-0xb2)](_0x13a007);}const nodeVer=process[_0x2618ea(0x1df,0x385)+_0x511522(0x45a,0x5d9)]['node'],nodeMajor=parseInt(nodeVer[_0x2618ea(0x558,0x642)]('.')[0x1*0x2395+0x21*-0x59+0x2*-0xc0e],-0x3ed+0x2d*0x83+-0x5*0x3d0);nodeMajor>=0x107a+0x12+0x4a*-0x39?pass('Node.'+'js\x20ve'+_0x2618ea(0x5bb,0x620),'v'+nodeVer+(_0x511522(0x204,0x335)+_0x511522(0x3a7,0x58e)+_0x511522(0x236,0x405)+'d)')):fail('Node.'+_0x2618ea(0x545,0x3a9)+_0x511522(0x7a8,0x5fe),'v'+nodeVer+(_0x2618ea(0x29e,0x3a3)+_0x2618ea(0x2b8,0x35a)+_0x2618ea(0x796,0x655)+_0x511522(0x515,0x4aa)+_0x511522(0x646,0x496)+_0x511522(0x768,0x5d7)));const ENV_FILE=existsSync(join(DATA_DIR,_0x511522(0x7c6,0x5d6)))?join(DATA_DIR,'.env'):join(ROOT,_0x2618ea(0x674,0x5f8));let envPort=-0x3*0x1a6+-0x1*-0x1e51+-0xbdf,envGatewayUrl=_0x511522(0x628,0x532)+_0x2618ea(0x46d,0x578)+_0x511522(0x58f,0x456)+_0x2618ea(0x3bf,0x50d)+'89',envGatewayToken='',envOpenAIKey='',envElevenLabsKey='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,'utf8');for(const line of content[_0x2618ea(0x651,0x642)]('\x0a')){const t=line['trim']();if(!t||t[_0x511522(0x739,0x656)+_0x511522(0x478,0x54b)]('#'))continue;const eqIdx=t['index'+'Of']('=');if(eqIdx===-(0x3*-0x335+-0xffd*0x1+0x1*0x199d))continue;const k=t[_0x511522(0x6c5,0x66c)](0xb8*0x1e+0x102c+-0x25bc,eqIdx)[_0x511522(0x64d,0x537)](),v=t['slice'](eqIdx+(-0x19*-0x135+0x1695+-0x34c1))[_0x511522(0x45d,0x537)]();if(k===_0x511522(0x3ab,0x4c9))envPort=parseInt(v,-0x2*0xcc4+-0x5ba*0x1+0x1f4c)||0xbe6*0x2+0x322*0xc+-0x265*0x14;if(k===_0x2618ea(0x618,0x61b)+_0x2618ea(0x261,0x35b)+'L')envGatewayUrl=v;if(k==='GATEW'+_0x2618ea(0x659,0x5d0)+_0x2618ea(0x338,0x49d))envGatewayToken=v;if(k===_0x511522(0x545,0x365)+_0x2618ea(0x7bf,0x610)+_0x2618ea(0x86f,0x6a7))envOpenAIKey=v;if(k===_0x2618ea(0x344,0x3ba)+_0x2618ea(0x5bb,0x591)+'_API_'+_0x511522(0x40c,0x349))envElevenLabsKey=v;}}catch{}const portAvailable=await new Promise(_0x2f768b=>{const _0x4f8d9f={'jylXJ':_0x3a0a71(0x3e1,0x48b)+_0x4eba3e(0x20b,0x2e2),'vfAWr':function(_0x1bcafc,_0x5487ae){return _0x1bcafc(_0x5487ae);},'lJtfF':function(_0x47e7a9,_0x16b08d){return _0x47e7a9(_0x16b08d);},'xtjCn':function(_0x587c78,_0x1b267f){return _0x587c78===_0x1b267f;},'HHTrf':_0x3a0a71(0x3a6,0x250),'eBQdO':function(_0x522dbf,_0x446cf3){return _0x522dbf(_0x446cf3);}},_0x4fc4f5=_0x1ffec0[_0x3a0a71(0x55b,0x487)+_0x4eba3e(-0x1e4,-0x64)+'er']();_0x4fc4f5[_0x3a0a71(0x731,0x618)]('error',_0x30921b=>{function _0x5729e1(_0x1d2155,_0x382bc3){return _0x3a0a71(_0x382bc3- -0x3d3,_0x1d2155);}function _0x581f70(_0x186b96,_0x2a0309){return _0x3a0a71(_0x186b96- -0xd8,_0x2a0309);}if(_0x30921b['code']===_0x4f8d9f[_0x581f70(0x3e7,0x275)])_0x4f8d9f[_0x5729e1(0x50,0x76)](_0x2f768b,![]);else _0x4f8d9f['vfAWr'](_0x2f768b,!![]);}),_0x4fc4f5[_0x4eba3e(0x1a9,0x2b9)](_0x3a0a71(0x71c,0x637)+'ning',()=>{function _0x13e687(_0x43dd63,_0x3a2fdf){return _0x3a0a71(_0x3a2fdf- -0x45d,_0x43dd63);}function _0x13e8bb(_0x41321c,_0x34c850){return _0x3a0a71(_0x41321c- -0x374,_0x34c850);}_0x4f8d9f['xtjCn'](_0x4f8d9f[_0x13e8bb(0xc0,0x2b1)],_0x13e8bb(0x312,0x222))?_0x4f8d9f[_0x13e687(0x164,0xc7)](_0x4ca018,_0x2ac094):(_0x4fc4f5[_0x13e687(0x119,0x2f3)](),_0x4f8d9f[_0x13e8bb(0x14d,0x7f)](_0x2f768b,!![]));});function _0x3a0a71(_0x36eda1,_0x18fa79){return _0x511522(_0x18fa79,_0x36eda1-0xc1);}function _0x4eba3e(_0x3f0fb1,_0x4ac9de){return _0x511522(_0x3f0fb1,_0x4ac9de- -0x3b7);}_0x4fc4f5[_0x4eba3e(0xf0,0x2a4)+'n'](envPort,_0x4eba3e(0x292,0x2c7)+_0x3a0a71(0x6ca,0x720));}),serverRunning=!!(getWatchdogPid()||getPid());portAvailable?serverRunning?pass('Port\x20'+envPort,'avail'+_0x511522(0x321,0x4fa)+'(serv'+_0x511522(0x405,0x506)+_0x2618ea(0x484,0x2fb)+_0x511522(0x536,0x436)+_0x2618ea(0x454,0x496)+'ile)'):pass(_0x2618ea(0x17c,0x337)+envPort,_0x2618ea(0x38a,0x3d3)+'able'):serverRunning?pass(_0x2618ea(0x3a0,0x337)+envPort,'in\x20us'+_0x2618ea(0x47e,0x5da)+_0x2618ea(0x684,0x51b)+'k'):fail(_0x2618ea(0x27e,0x337)+envPort,_0x2618ea(0x55f,0x54f)+'e\x20by\x20'+'anoth'+_0x2618ea(0x338,0x3a0)+_0x511522(0x4c1,0x531));const gatewayReachable=await new Promise(_0x2789e3=>{const _0x10d6c6={'FPAAX':function(_0x574c4a,_0x4af1ee){return _0x574c4a>_0x4af1ee;},'KbZBX':function(_0x31e6c9,_0x5f22d3){return _0x31e6c9!==_0x5f22d3;},'FYjAj':_0x14cbc8(0x169,0x17),'AkUCT':function(_0xe2a1e4,_0x3e7337){return _0xe2a1e4(_0x3e7337);},'JBTkM':function(_0x4d94c9,_0x39df1d){return _0x4d94c9!==_0x39df1d;},'DHYEm':_0x14cbc8(0x1f2,0x59),'WEIsf':function(_0x54e97c,_0x5c0c3f){return _0x54e97c(_0x5c0c3f);},'cubCe':_0x386099(0x453,0x531),'ByLjH':_0x14cbc8(0xc7,0x75),'eSSFI':'timeo'+'ut','aEXVH':'SIGTE'+'RM','nnMOD':function(_0x3c4a71,_0x31b953){return _0x3c4a71!==_0x31b953;},'EsZzW':_0x14cbc8(0x3f3,0x274),'VFwJR':_0x14cbc8(0x74,0x3d),'IMHPj':_0x14cbc8(0x497,0x2ae)};function _0x14cbc8(_0x686757,_0xa2aee){return _0x511522(_0x686757,_0xa2aee- -0x3ef);}function _0x386099(_0x503706,_0x456c36){return _0x511522(_0x456c36,_0x503706-0x111);}try{if(_0x10d6c6[_0x386099(0x697,0x863)](_0x386099(0x3f2,0x514),_0x10d6c6[_0x386099(0x405,0x5ce)])){const _0x28c8fb=new URL(envGatewayUrl),_0x4b0c92={};_0x4b0c92['hostn'+_0x386099(0x4d6,0x5cc)]=_0x28c8fb[_0x14cbc8(-0xc5,0x112)+_0x14cbc8(-0x185,-0x2a)],_0x4b0c92[_0x386099(0x59a,0x5eb)]=_0x28c8fb[_0x386099(0x59a,0x5df)]||0x2*0x2a1+0x4*-0x49f+-0x2*-0x6c5,_0x4b0c92[_0x386099(0x78c,0x65c)]='/',_0x4b0c92[_0x386099(0x570,0x649)+'d']=_0x10d6c6[_0x386099(0x6a0,0x631)],_0x4b0c92['timeo'+'ut']=0x1388;const _0x3d272b=_0x44edef['reque'+'st'](_0x4b0c92,_0x9d735=>{function _0x306c24(_0x2cfd1d,_0x204fec){return _0x14cbc8(_0x2cfd1d,_0x204fec-0x3ae);}function _0x2fcf75(_0xdc4bfb,_0x3045ff){return _0x14cbc8(_0x3045ff,_0xdc4bfb-0x224);}if(_0x10d6c6[_0x306c24(0x658,0x586)](_0x10d6c6[_0x306c24(0x4be,0x3aa)],_0x306c24(0x286,0x3c5))){const _0x5b61e2=_0x1a4da0(_0x518eb7[_0x2fcf75(0x353,0x379)]()-_0x20e23b[_0x306c24(0x735,0x615)+_0x306c24(0x21f,0x299)]);_0x556c53[_0x2fcf75(0x411,0x3df)](_0x306c24(0x564,0x4b5)+_0x306c24(0x478,0x3ed)+'s\x20run'+_0x2fcf75(0x2e3,0x3aa)+'(watc'+_0x306c24(0x2af,0x37d)+_0x2fcf75(0x2dd,0x3fb)),_0x2d7226[_0x306c24(0x3ba,0x59b)]('\x20\x20Wat'+_0x2fcf75(0x4bb,0x40c)+_0x2fcf75(0xf8,0xd0)+'\x20'+_0x38563d);if(_0x56f275[_0x306c24(0x27c,0x2ed)+_0x2fcf75(0x143,0x1b)])_0x4ee12c[_0x306c24(0x43d,0x59b)](_0x306c24(0x5f3,0x409)+_0x306c24(0x31d,0x333)+'ID:\x20\x20'+'\x20'+_0x4854af[_0x2fcf75(0x163,0x152)+_0x306c24(0x10a,0x2cd)]);_0x3c54d2[_0x306c24(0x6be,0x59b)](_0x2fcf75(0x2ad,0x404)+'ime:\x20'+_0x2fcf75(0x406,0x5e2)+'\x20'+_0x5b61e2),_0x4de51c[_0x306c24(0x42a,0x59b)]('\x20\x20Res'+'tarts'+_0x2fcf75(0x303,0x3ac)+'\x20'+(_0x54f6fb[_0x306c24(0x5b5,0x5d4)+_0x306c24(0x6d3,0x4e2)+'nt']||-0x73*-0x2f+0x1398+-0x28b5));if(IDEAWU[_0x2fcf75(0x49c,0x2bf)](_0x3a4aa6[_0x2fcf75(0x109,0x130)+_0x2fcf75(0x463,0x493)],0x389+0x1*0x210d+-0x20ae))_0x125e41['log'](_0x306c24(0x456,0x36d)+_0x2fcf75(0x41c,0x4ce)+'\x20\x20\x20\x20\x20'+'\x20'+_0x34d7c5['backo'+'ffMs']+'ms');}else _0x9d735['resum'+'e'](),_0x10d6c6[_0x2fcf75(0x461,0x645)](_0x2789e3,!![]);});_0x3d272b['on'](_0x10d6c6[_0x386099(0x5a0,0x480)],()=>_0x2789e3(![])),_0x3d272b['on'](_0x10d6c6[_0x386099(0x423,0x433)],()=>{function _0x2f991d(_0x2c08b5,_0x3867d3){return _0x386099(_0x2c08b5- -0x3c9,_0x3867d3);}function _0x37d96a(_0x498b85,_0x2f3d4e){return _0x386099(_0x2f3d4e- -0x95,_0x498b85);}_0x10d6c6[_0x2f991d(0x364,0x4db)]('Fftrf',_0x10d6c6['DHYEm'])?(_0x3d272b['destr'+'oy'](),_0x10d6c6[_0x37d96a(0x54d,0x6a8)](_0x2789e3,![])):(_0x1f69c6[_0x37d96a(0x6e9,0x70b)](),IDEAWU[_0x2f991d(0x374,0x235)](_0x42ee66,!![]));}),_0x3d272b[_0x386099(0x737,0x71b)]();}else{const _0x3ebbaa=new _0x2c2439(_0x613978),_0x13796c={};_0x13796c[_0x14cbc8(0x193,0x112)+'ame']=_0x3ebbaa['hostn'+_0x14cbc8(0xb3,-0x2a)],_0x13796c[_0x386099(0x59a,0x3f9)]=_0x3ebbaa[_0x14cbc8(0x20b,0x9a)]||-0x1442+-0x5d9+0x1a6b,_0x13796c[_0x386099(0x78c,0x8b9)]='/',_0x13796c[_0x386099(0x570,0x704)+'d']=_0x10d6c6[_0x386099(0x6a0,0x7b3)],_0x13796c[_0x386099(0x3f4,0x448)+'ut']=0xbb8;const _0x4d51ab=_0x5ecb3b[_0x14cbc8(0xa,0x27)+'st'](_0x13796c,_0x422523=>{function _0x122dc7(_0x76e86f,_0x4299e8){return _0x14cbc8(_0x76e86f,_0x4299e8- -0xe7);}_0x422523[_0x1c1809(0xdb,0x299)+'e']();function _0x1c1809(_0x2cc92e,_0x325448){return _0x14cbc8(_0x325448,_0x2cc92e- -0xae);}_0x10d6c6[_0x1c1809(0x18f,0x2d1)](_0x3b180b,!![]);});_0x4d51ab['on'](_0x10d6c6[_0x14cbc8(0xa,0xa0)],()=>_0x1a05bc(![])),_0x4d51ab['on'](_0x10d6c6['eSSFI'],()=>{function _0x4b2564(_0x13d018,_0xb0f849){return _0x14cbc8(_0x13d018,_0xb0f849- -0x20c);}_0x4d51ab[_0x415836(0x253,0x2a5)+'oy']();function _0x415836(_0x1a4f01,_0x43f13d){return _0x14cbc8(_0x1a4f01,_0x43f13d-0x2cb);}_0x10d6c6[_0x4b2564(0x126,0x28)](_0x2c1728,![]);}),_0x4d51ab[_0x14cbc8(0x1c5,0x237)]();}}catch{_0x10d6c6[_0x386099(0x422,0x3cf)]===_0x10d6c6['IMHPj']?_0x3bd588[_0x14cbc8(-0x48,0x19e)](_0x10d6c6['aEXVH']):_0x10d6c6[_0x14cbc8(0x115,0x234)](_0x2789e3,![]);}});gatewayReachable?pass(_0x511522(0x1d1,0x3c6)+_0x511522(0x3c9,0x3d4)+_0x511522(0x695,0x5fd)+'le',envGatewayUrl):fail('Gatew'+_0x511522(0x45c,0x3d4)+_0x511522(0x723,0x5fd)+'le','canno'+_0x2618ea(0x4e0,0x4ed)+'ch\x20'+envGatewayUrl);existsSync(join(ROOT,'node_'+_0x2618ea(0x42a,0x405)+'es'))?pass('Depen'+_0x2618ea(0x32e,0x48a)+_0x2618ea(0x20d,0x36a)+_0x511522(0x7ab,0x5cb)+'ed',_0x511522(0x614,0x494)+_0x2618ea(0x214,0x405)+_0x511522(0x1eb,0x369)+_0x511522(0x50d,0x54a)):fail('Depen'+_0x511522(0x28a,0x468)+_0x2618ea(0x46f,0x36a)+_0x2618ea(0x75e,0x5ed)+'ed',_0x511522(0x5e1,0x494)+_0x2618ea(0x2c3,0x405)+'es\x20mi'+_0x511522(0x58c,0x598)+_0x511522(0x607,0x441)+_0x511522(0x2d5,0x3d5)+'\x20inst'+'all');if(existsSync(ENV_FILE))try{readFileSync(ENV_FILE,_0x511522(0x189,0x354)),pass(_0x2618ea(0x55e,0x68a)+'file',_0x511522(0x4a8,0x645)+_0x2618ea(0x68b,0x50b)+'\x20read'+_0x2618ea(0x5d2,0x58b));}catch{fail(_0x511522(0x7da,0x668)+'file',_0x2618ea(0x6e1,0x667)+_0x511522(0x469,0x2d3)+_0x511522(0x48c,0x525)+'reada'+_0x511522(0x341,0x371));}else fail(_0x511522(0x830,0x668)+_0x511522(0x4eb,0x666),'not\x20f'+_0x511522(0x6dc,0x579)+_0x2618ea(0x606,0x653)+_0x2618ea(0x5cc,0x430)+_0x2618ea(0x32a,0x414)+_0x2618ea(0x601,0x624)+_0x2618ea(0x64a,0x536)+_0x2618ea(0x508,0x504)+'it');envGatewayToken&&envGatewayToken!==_0x2618ea(0x3a2,0x3c6)+_0x511522(0x29a,0x2bd)+_0x511522(0x4b7,0x5ac)?pass(_0x511522(0x560,0x3c6)+_0x2618ea(0x3f4,0x576)+_0x511522(0x65c,0x5de),_0x511522(0x2d3,0x3f7)+_0x2618ea(0x641,0x55a)):fail(_0x511522(0x281,0x3c6)+_0x2618ea(0x541,0x576)+'ken',_0x2618ea(0x484,0x40e)+'et\x20in'+'\x20.env');if(envOpenAIKey||envElevenLabsKey){const providers=[];if(envOpenAIKey)providers['push'](_0x2618ea(0x3fc,0x2f0)+'I');if(envElevenLabsKey)providers['push']('Eleve'+'nLabs');pass(_0x511522(0x5af,0x503)+'PI\x20ke'+'ys',providers[_0x511522(0x435,0x601)](',\x20')+(_0x2618ea(0x7f0,0x681)+_0x511522(0x51b,0x64d)+'d'));}else warn(_0x511522(0x6b6,0x503)+_0x511522(0x49a,0x2be)+'ys','no\x20Op'+_0x511522(0x741,0x64c)+_0x2618ea(0x35f,0x351)+_0x2618ea(0x584,0x4ff)+_0x511522(0x4f5,0x584)+'ey\x20—\x20'+_0x2618ea(0x31b,0x3d9)+_0x511522(0x615,0x652)+'\x20limi'+_0x2618ea(0x4da,0x625)+_0x2618ea(0x326,0x3dc)+_0x2618ea(0x5dd,0x400));try{const freeBytes=((()=>{function _0x5d3c26(_0x3e119f,_0x104d79){return _0x511522(_0x3e119f,_0x104d79- -0x3fb);}const _0x3d4f12={'veSkd':function(_0x4c11bd,_0x1a624f){return _0x4c11bd(_0x1a624f);},'nDtvG':function(_0x37bc47,_0x39c88a){return _0x37bc47===_0x39c88a;},'rqWmF':function(_0x1bb2c3,_0x1dd8d8,_0x244fb5){return _0x1bb2c3(_0x1dd8d8,_0x244fb5);},'MuDaw':function(_0x3a1654,_0x3da9e8){return _0x3a1654+_0x3da9e8;},'SVbTq':function(_0x55749e,_0x3b3a92){return _0x55749e+_0x3b3a92;},'kdKTm':_0x45f899(0x478,0x467)+_0x5d3c26(0x374,0x24f)+'aldis'+_0x45f899(0x5a0,0x696)+'re\x20\x22D'+_0x5d3c26(0x8b,0xa4)+_0x45f899(0x753,0x5e5),'Kbgio':_0x45f899(0x629,0x4ca),'deSXZ':function(_0x346a9a,_0x14272a){return _0x346a9a!==_0x14272a;},'uLuuC':_0x5d3c26(0xbb,0xd4)};function _0x45f899(_0x2d666f,_0x3460fd){return _0x511522(_0x2d666f,_0x3460fd-0x176);}if(_0x3d4f12[_0x5d3c26(-0x7c,0xc7)](process[_0x5d3c26(-0x88,0x15c)+'orm'],'win32')){const _0x1c1feb=_0x3d4f12[_0x45f899(0x7ba,0x748)](execSync,_0x3d4f12[_0x45f899(0x6f0,0x719)](_0x3d4f12['SVbTq'](_0x3d4f12['kdKTm'],ROOT[_0x5d3c26(0x178,0xdd)+'t'](0x1887+0xfe4+-0x286b)),':\x27\x22\x20g'+'et\x20Fr'+_0x5d3c26(0x150,0x23d)+_0x5d3c26(0x59,-0xfb)+'alue'),{'encoding':_0x3d4f12[_0x5d3c26(0xc0,0x24c)]}),_0xe674d7=_0x1c1feb[_0x45f899(0x807,0x815)](/FreeSpace=(\d+)/);return _0xe674d7?parseInt(_0xe674d7[0xc09+0x1788+-0x2390],0x7*0x4be+0x2166+-0x428e):null;}else{if(_0x3d4f12[_0x5d3c26(0x73,0x96)](_0x3d4f12['uLuuC'],_0x45f899(0x7fb,0x645)))GQvdOs[_0x45f899(0x521,0x5c2)](_0xa1a849,_0x54da61);else{const _0x28ed3e={};_0x28ed3e['encod'+_0x5d3c26(0xb5,-0x81)]=_0x3d4f12[_0x45f899(0x9ac,0x7bd)];const _0x2af7dc=execSync('df\x20-k'+'\x20\x22'+ROOT+(_0x5d3c26(0x186,0xcb)+_0x5d3c26(-0x1d6,-0x52)+'1'),_0x28ed3e),_0x3128=_0x2af7dc[_0x45f899(0x70d,0x6ad)]()[_0x45f899(0x841,0x796)](/\s+/);return _0x3d4f12[_0x5d3c26(0xc,0x1d7)](parseInt,_0x3128[0x128+-0x87e+0x759],-0x4*0x939+0x17*-0xa4+0x30a*0x11)*(0x1f77+0x135*-0xd+-0xbc6);}}})());if(freeBytes!==null){const freeMB=Math['round'](freeBytes/((0x1*-0x8df+-0x1c4f+0x2f1*0xe)*(0x4*0x561+0x25b0+-0x4*0xdcd)));freeMB>=0x180e+0x4c7*-0x1+0x377*-0x5?pass(_0x2618ea(0x2da,0x31a)+_0x511522(0x389,0x4e0),freeMB+(_0x2618ea(0x3f6,0x4e7)+_0x511522(0x419,0x5c6))):warn(_0x2618ea(0x45e,0x31a)+_0x511522(0x5db,0x4e0),freeMB+('\x20MB\x20f'+'ree\x20—'+_0x2618ea(0x420,0x325)+_0x2618ea(0x398,0x379)+'\x20500\x20'+'MB'));}}catch{warn(_0x2618ea(0x2c7,0x31a)+_0x511522(0x6a2,0x4e0),_0x511522(0x44b,0x360)+_0x511522(0x428,0x525)+_0x2618ea(0x5e7,0x3f8)+_0x2618ea(0x516,0x416)+_0x2618ea(0x69d,0x4b0)+_0x511522(0x611,0x4fd)+'space');}const _0x1dee39={};_0x1dee39[_0x511522(0x47e,0x526)]=_0x2618ea(0x616,0x53c)+_0x511522(0x3f0,0x52f),_0x1dee39[_0x511522(0x221,0x390)]=_0x511522(0x76a,0x67a)+_0x2618ea(0x803,0x6ad),_0x1dee39[_0x2618ea(0x610,0x6a4)]='\x1b[33m'+_0x2618ea(0x19b,0x323);const icons=_0x1dee39;for(const r of results){console[_0x2618ea(0x57b,0x5fe)]('\x20\x20'+icons[r[_0x2618ea(0x779,0x5c6)+'s']]+'\x20'+r['label']+':\x20'+r[_0x511522(0x45d,0x2e2)+'l']);}const passes=results[_0x2618ea(0x29e,0x331)+'r'](_0x2a6021=>_0x2a6021['statu'+'s']===_0x2618ea(0x580,0x548))['lengt'+'h'],fails=results['filte'+'r'](_0x17f4f7=>_0x17f4f7[_0x2618ea(0x568,0x5c6)+'s']===_0x511522(0x57c,0x390))[_0x511522(0x1bb,0x331)+'h'],warns=results['filte'+'r'](_0x430da4=>_0x430da4[_0x511522(0x4e0,0x5a4)+'s']===_0x511522(0x6d9,0x682))['lengt'+'h'];console[_0x511522(0x4c0,0x5dc)](''),fails===0x2634+0x2f3*0x8+-0x3dcc?console[_0x511522(0x54b,0x5dc)](_0x511522(0x47b,0x445)+'ll\x20'+passes+('\x20chec'+_0x511522(0x470,0x5ec)+_0x2618ea(0x6d3,0x675))+(warns?'\x20('+warns+(_0x2618ea(0x698,0x59c)+'ing')+(warns>-0x18c2+0x26c1+-0xdfe?'s':'')+')':'')+'.'):console[_0x511522(0x41f,0x5dc)]('\x20\x20⬡\x20'+passes+(_0x2618ea(0x7da,0x612)+_0x511522(0x28d,0x3bc))+fails+('\x20fail'+'ed')+(warns?',\x20'+warns+(_0x511522(0x4bf,0x57a)+'ing')+(warns>0x10*-0x239+0x1*-0x12b7+-0x9*-0x608?'s':''):'')+'.'),console[_0x2618ea(0x665,0x5fe)](''),process[_0x2618ea(0x4e6,0x4c8)](fails>0x1163*0x1+0x1ffc+-0x315f?-0x4*0x211+0x1e85+-0x1640:0x1*0xb89+0x1947+0x7c*-0x4c);}if(command===_0x2618ea(0x62a,0x556)){const {rmSync}=await import('fs');console['log']('\x0a\x20\x20⬡\x20'+_0x2618ea(0x4b1,0x51b)+'k\x20Res'+'et\x0a'),console[_0x2618ea(0x6e3,0x5fe)](_0x511522(0x353,0x35d)+_0x511522(0x4f0,0x4e8)+_0x511522(0x7c4,0x5da)+'ar:'),console[_0x2618ea(0x794,0x5fe)]('\x20\x20\x20\x20•'+_0x2618ea(0x447,0x58c)+_0x511522(0x541,0x605)+_0x511522(0x724,0x59d)+_0x511522(0x27e,0x41e)+_0x511522(0x546,0x454)+'\x20sync'+'\x20data'),console[_0x2618ea(0x453,0x5fe)](_0x511522(0x477,0x628)+_0x511522(0x3b9,0x394)+'aded\x20'+_0x511522(0x74c,0x664)+_0x511522(0x2a4,0x43e)+_0x2618ea(0x30b,0x3c9)+_0x511522(0x669,0x60f)+'e'),console['log']('\x20\x20\x20\x20•'+_0x511522(0x41c,0x481)+_0x511522(0x606,0x4d6)+_0x511522(0x4d0,0x454)+'s\x20que'+'ue'),console[_0x511522(0x667,0x5dc)]('\x20\x20\x20\x20•'+_0x2618ea(0x583,0x684)+_0x2618ea(0x713,0x543)+_0x511522(0x6b5,0x581)+_0x2618ea(0x39b,0x402)+_0x511522(0x303,0x324)+_0x511522(0x448,0x3a5)+_0x2618ea(0x69d,0x6b3)+'ta'),console[_0x2618ea(0x698,0x5fe)](''),console[_0x511522(0x616,0x5dc)](_0x2618ea(0x30c,0x37f)+_0x511522(0x5d3,0x4e8)+_0x2618ea(0x440,0x2f7)+'\x20clea'+'r:'),console['log']('\x20\x20\x20\x20•'+_0x511522(0x271,0x34f)+_0x511522(0x4ff,0x65f)+_0x511522(0x572,0x541)+_0x2618ea(0x610,0x466)),console[_0x2618ea(0x776,0x5fe)](_0x511522(0x6bf,0x628)+_0x2618ea(0x566,0x611)+_0x511522(0x311,0x3c3)+_0x2618ea(0x494,0x66b)),console['log'](_0x2618ea(0x6a5,0x64a)+'\x20The\x20'+_0x511522(0x254,0x32e)+_0x511522(0x2af,0x3b2)+_0x2618ea(0x4e4,0x697));if(!flags[_0x2618ea(0x657,0x555)]){const readline=await import(_0x2618ea(0x551,0x530)+_0x2618ea(0x4b2,0x5dc)),_0x40e023={};_0x40e023['input']=process['stdin'],_0x40e023[_0x511522(0x5f4,0x430)+'t']=process[_0x511522(0x545,0x44e)+'t'];const rl=readline[_0x511522(0x2fa,0x49a)+_0x511522(0x15a,0x345)+_0x2618ea(0x380,0x4cf)](_0x40e023),answer=await new Promise(_0x1e5acb=>{const _0x45c8ea={};function _0x39bc1b(_0x1260b3,_0x4bd55b){return _0x2618ea(_0x1260b3,_0x4bd55b- -0x558);}_0x45c8ea[_0x39bc1b(0x1a1,-0x44)]=_0x39bc1b(-0x377,-0x220)+_0x39bc1b(-0x82,0x6c)+'set\x22\x20'+_0x3e2d7f(0x1c2,0x198)+_0x3e2d7f(-0x184,-0x1dd)+':\x20';function _0x3e2d7f(_0x21c0b2,_0x4a534b){return _0x2618ea(_0x4a534b,_0x21c0b2- -0x4ea);}const _0x2e8904=_0x45c8ea;rl[_0x39bc1b(-0xe1,0xdc)+_0x39bc1b(0x71,-0x183)](_0x2e8904[_0x39bc1b(-0x1f7,-0x44)],_0x1e5acb);});rl[_0x511522(0x646,0x68f)](),answer[_0x2618ea(0x533,0x559)]()[_0x511522(0x6b3,0x5e0)+'erCas'+'e']()!==_0x2618ea(0x65c,0x556)&&(console['log'](_0x2618ea(0x1c4,0x332)+_0x511522(0x30d,0x302)+_0x511522(0x54b,0x669)+_0x511522(0x449,0x55e)+'g\x20was'+_0x511522(0x568,0x5fa)+_0x2618ea(0x392,0x4fd)),process[_0x2618ea(0x65a,0x4c8)](-0x1519+-0x18fd*-0x1+0xf9*-0x4)),console[_0x2618ea(0x603,0x5fe)]('');}const dataResets=[_0x511522(0x39b,0x535)+_0x511522(0x558,0x36c)+'ync.j'+_0x2618ea(0x5a8,0x407),_0x2618ea(0x271,0x2e1)+_0x511522(0x467,0x421)+_0x511522(0x217,0x3e5),'sync-'+_0x511522(0x623,0x55a),_0x2618ea(0x57f,0x57a)+'d-con'+_0x511522(0x24b,0x38a)+_0x2618ea(0x2b7,0x3c4),_0x511522(0x654,0x505)+'ds','audio',_0x511522(0x689,0x63d)+_0x2618ea(0x7f8,0x6ba)],rootResets=[_0x511522(0x539,0x535)+_0x2618ea(0x2f3,0x38e)+_0x2618ea(0x3b4,0x47d)+_0x2618ea(0x59b,0x407),_0x511522(0xf1,0x2bf)+_0x2618ea(0x306,0x443)+_0x2618ea(0x471,0x407),'sync-'+_0x511522(0x3e5,0x55a),_0x511522(0x6a5,0x558)+_0x2618ea(0x5e9,0x5ac)+_0x2618ea(0x316,0x3ac)+_0x511522(0x411,0x3a2),_0x511522(0x65c,0x505)+'ds',_0x511522(0x4a9,0x4ca)+'c/aud'+'io',_0x2618ea(0x615,0x59e)+'d-mes'+'sages'+'.json',_0x511522(0x5c2,0x616)+_0x511522(0x5be,0x443)+'ripti'+_0x511522(0x2ae,0x383)+_0x511522(0x457,0x3e5),_0x511522(0x274,0x32e)+'r.log',_0x2618ea(0x3b4,0x511)+_0x511522(0x6c7,0x4f3)+_0x2618ea(0x57a,0x3c5)+_0x2618ea(0x531,0x5fe),_0x511522(0x45b,0x4ef)+_0x511522(0x5c1,0x46e)+_0x2618ea(0x35d,0x457)+_0x511522(0x660,0x4cd)];let cleared=0xde1+-0x1271+-0x248*-0x2;for(const item of dataResets){const fullPath=join(DATA_DIR,item);if(existsSync(fullPath))try{const _0x2118a7={};_0x2118a7[_0x2618ea(0x4c5,0x3c0)+_0x511522(0x48e,0x3c7)]=!![],_0x2118a7[_0x2618ea(0x52c,0x555)]=!![],rmSync(fullPath,_0x2118a7),cleared++,console['log'](_0x2618ea(0x2d0,0x4a7)+'emove'+_0x511522(0x435,0x359)+'A_DIR'+'/'+item);}catch(_0x2414ed){console[_0x2618ea(0x5cc,0x486)](_0x2618ea(0x767,0x5bb)+_0x511522(0x40d,0x5cf)+_0x511522(0x560,0x5f8)+'emove'+_0x511522(0x3a0,0x2cb)+_0x511522(0x53c,0x5bd)+item+':\x20'+_0x2414ed[_0x511522(0x454,0x535)+'ge']);}}for(const item of rootResets){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x475ab3={};_0x475ab3[_0x2618ea(0x3e6,0x3c0)+_0x2618ea(0x228,0x3e9)]=!![],_0x475ab3[_0x2618ea(0x48a,0x555)]=!![],rmSync(fullPath,_0x475ab3),cleared++,console[_0x2618ea(0x4c7,0x5fe)](_0x2618ea(0x690,0x4a7)+'emove'+'d\x20'+item);}catch(_0x776a17){console['error'](_0x2618ea(0x72e,0x5bb)+'ailed'+'\x20to\x20r'+_0x2618ea(0x702,0x599)+'\x20'+item+':\x20'+_0x776a17[_0x2618ea(0x637,0x557)+'ge']);}}cleared===-0x3c5*-0x1+0x773*0x2+-0x12ab?console[_0x2618ea(0x45e,0x5fe)]('\x20\x20Not'+_0x2618ea(0x2c7,0x3bf)+_0x511522(0x6d9,0x596)+_0x511522(0x547,0x402)+'\x20alre'+_0x511522(0x67d,0x52c)+_0x511522(0x722,0x5b2)):console[_0x2618ea(0x5d3,0x5fe)](_0x2618ea(0x5ea,0x5eb)+'Clear'+'ed\x20'+cleared+_0x511522(0x298,0x2c0)+(cleared>-0x24ce+0x148*-0x16+-0x1*-0x40ff?'s':'')+(_0x511522(0x595,0x47e)+'sh\x20st'+_0x2618ea(0x442,0x30c))),console[_0x511522(0x4c1,0x5dc)](''),process['exit'](0x2*0x4ec+-0x1*0xa30+0x58);}if(command==='info'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+'ge.js'+'on')),ENV_FILE=existsSync(join(DATA_DIR,_0x511522(0x6e9,0x5d6)))?join(DATA_DIR,_0x2618ea(0x55c,0x5f8)):join(ROOT,_0x511522(0x577,0x5d6));let envPort=_0x2618ea(0x504,0x63c),envHost='0.0.0'+'.0',envGatewayUrl='http:'+_0x511522(0x562,0x556)+_0x2618ea(0x330,0x478)+_0x511522(0x352,0x4eb)+'89',envGatewayToken='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x2618ea(0x22b,0x376));for(const line of content[_0x511522(0x7c9,0x620)]('\x0a')){const t=line[_0x511522(0x6bd,0x537)]();if(!t||t[_0x511522(0x4aa,0x656)+_0x511522(0x6f0,0x54b)]('#'))continue;const eqIdx=t[_0x2618ea(0x293,0x41c)+'Of']('=');if(eqIdx===-(0x4a*0xd+0x17e6+0x1*-0x1ba7))continue;const k=t[_0x511522(0x5eb,0x66c)](0x1741+0x19b6+-0x221*0x17,eqIdx)[_0x2618ea(0x6e5,0x559)](),v=t['slice'](eqIdx+(-0x2*0x12b9+0x1bde+0x995))[_0x2618ea(0x3b9,0x559)]();if(k==='PORT')envPort=v||_0x511522(0x54f,0x61a);if(k===_0x511522(0x59a,0x3e6)+'K_HOS'+'T'||k===_0x2618ea(0x3df,0x3ae))envHost=v||_0x2618ea(0x521,0x67e)+'.0';if(k===_0x511522(0x743,0x5f9)+_0x511522(0x208,0x339)+'L')envGatewayUrl=v;if(k===_0x2618ea(0x7c6,0x61b)+'AY_TO'+_0x511522(0x3ba,0x47b))envGatewayToken=v;}}catch{}const watchdogPid=getWatchdogPid(),serverPid=getPid(),isServerRunning=!!(watchdogPid||serverPid),serverStatus=isServerRunning?_0x2618ea(0x3a8,0x53c)+'runni'+_0x2618ea(0x607,0x47c)+'m\x20(PI'+'D\x20'+(watchdogPid||serverPid)+')':_0x511522(0x53e,0x67a)+_0x2618ea(0x479,0x62d)+_0x511522(0x721,0x582)+'m',gwReachable=await new Promise(_0x1768b9=>{const _0x6ca0ea={'zUqfz':function(_0x3b5c16,_0x57354e){return _0x3b5c16!==_0x57354e;},'rstQe':'XWuXd','FoLns':function(_0x241afa,_0x77e870){return _0x241afa(_0x77e870);},'AoNAn':_0x28d41a(0x30a,0x446)+_0x28d41a(0x114,0x176)+'to\x20cl'+_0x1cf7a3(0x5a9,0x571)+_0x1cf7a3(0x3ef,0x44b)+_0x28d41a(0x353,0x305)+_0x1cf7a3(0x8f8,0x721),'hVdbt':function(_0x33171b,_0x5d7ae2){return _0x33171b!==_0x5d7ae2;},'pMoOJ':_0x28d41a(0x1c1,0x1b4),'oZEJD':_0x28d41a(0x217,0x93),'ViAlJ':function(_0x265aa1,_0x544681,_0x9bd5e3){return _0x265aa1(_0x544681,_0x9bd5e3);},'xUkYy':_0x28d41a(0xba,0x19f)+_0x1cf7a3(0x59a,0x6c3)+'ken','Owaqj':_0x1cf7a3(0x57f,0x566)+_0x1cf7a3(0x689,0x6a7),'PjhhE':function(_0x3f4ae6,_0x5dc493){return _0x3f4ae6(_0x5dc493);},'ZApby':function(_0x54c0fe,_0x3f74ce,_0x15f449){return _0x54c0fe(_0x3f74ce,_0x15f449);},'QEFlL':function(_0x3b3c89,_0x4d822a){return _0x3b3c89===_0x4d822a;},'FsMHW':_0x28d41a(0x7d,0x1ba),'PUKdG':_0x28d41a(0x154,0x23d),'COHQI':_0x1cf7a3(0x280,0x452)+'ut','YfjZB':_0x28d41a(0x27d,0x1eb)};function _0x1cf7a3(_0xd94d3d,_0x2e2fac){return _0x511522(_0xd94d3d,_0x2e2fac-0x16f);}function _0x28d41a(_0x471e0f,_0x3c44a1){return _0x511522(_0x471e0f,_0x3c44a1- -0x227);}try{if(_0x6ca0ea['QEFlL'](_0x6ca0ea[_0x28d41a(0x25b,0x168)],_0x6ca0ea['FsMHW'])){const _0x8f776=new URL(envGatewayUrl),_0x3faeca={};_0x3faeca[_0x28d41a(0x1e3,0x2da)+_0x28d41a(0x268,0x19e)]=_0x8f776['hostn'+_0x28d41a(0x166,0x19e)],_0x3faeca[_0x1cf7a3(0x701,0x5f8)]=_0x8f776['port']||0x1*-0xd13+0x3e0+-0x5*-0x1e7,_0x3faeca[_0x1cf7a3(0x613,0x7ea)]='/',_0x3faeca[_0x28d41a(0x312,0x238)+'d']=_0x1cf7a3(0x5aa,0x4b1),_0x3faeca[_0x28d41a(0x19f,0xbc)+'ut']=0xbb8;const _0x11a6f6=_0x44edef[_0x28d41a(0x84,0x1ef)+'st'](_0x3faeca,_0xa14458=>{function _0xfbbdfd(_0xfe0256,_0x31e8db){return _0x28d41a(_0xfe0256,_0x31e8db- -0x2ee);}function _0x5a8308(_0x2560c6,_0x541d7e){return _0x28d41a(_0x2560c6,_0x541d7e-0x1d1);}_0x6ca0ea[_0xfbbdfd(0x122,-0xac)](_0x6ca0ea[_0x5a8308(0x3e0,0x2b0)],_0x6ca0ea['rstQe'])?(_0x24bd87[_0x5a8308(0x404,0x40e)]('⬡\x20Fai'+'led\x20t'+_0x5a8308(0x364,0x315)+_0xfbbdfd(0x20b,0xd8)+'\x20file'+':\x20'+_0x1bcb06[_0xfbbdfd(0x141,0x20)+'ge']),_0x19862a[_0x5a8308(0x426,0x450)](0x1*0x35e+-0x1*0xe4d+0x7*0x190)):(_0xa14458[_0x5a8308(0x5f3,0x522)+'e'](),_0x6ca0ea[_0xfbbdfd(0x185,-0x63)](_0x1768b9,!![]));});_0x11a6f6['on'](_0x6ca0ea[_0x1cf7a3(0x5fa,0x791)],()=>_0x1768b9(![])),_0x11a6f6['on'](_0x6ca0ea[_0x28d41a(0x539,0x356)],()=>{function _0x118e05(_0x10da15,_0xc42e02){return _0x28d41a(_0xc42e02,_0x10da15-0xe4);}function _0x3d8421(_0x1bfc58,_0x45bf8b){return _0x28d41a(_0x1bfc58,_0x45bf8b-0x324);}_0x6ca0ea[_0x118e05(0x2ea,0xf7)](_0x6ca0ea[_0x118e05(0x4ea,0x5d5)],_0x6ca0ea[_0x3d8421(0x39f,0x507)])?(_0x11a6f6[_0x118e05(0x286,0x10d)+'oy'](),_0x1768b9(![])):_0x290a57[_0x3d8421(0x8c3,0x6d9)](PoaDyc[_0x118e05(0x41e,0x2cd)]);}),_0x11a6f6['end']();}else PoaDyc[_0x1cf7a3(0x5ab,0x568)](_0x573415,PoaDyc[_0x28d41a(0x3fb,0x297)],PoaDyc['Owaqj']);}catch{if(_0x6ca0ea[_0x1cf7a3(0x428,0x4aa)]!==_0x6ca0ea[_0x1cf7a3(0x507,0x4aa)]){const _0x3cf558=_0x56618a(_0xcbfcdb,_0x5d617b);if(PoaDyc[_0x28d41a(-0x53,0x13f)](_0x331b0c,_0x3cf558))try{const _0x3a5193={};_0x3a5193[_0x28d41a(0xf8,0x177)+'sive']=!![],_0x3a5193['force']=!![],PoaDyc[_0x1cf7a3(0x730,0x549)](_0xf6ed96,_0x3cf558,_0x3a5193),_0x504af1++,_0x227496['log']('\x20\x20✓\x20R'+_0x28d41a(0x485,0x350)+'d\x20DAT'+'A_DIR'+'/'+_0x2afd1f);}catch(_0x183adc){_0x3f11e3['error'](_0x28d41a(0x536,0x372)+_0x28d41a(0x403,0x3a8)+'\x20to\x20r'+'emove'+_0x1cf7a3(0x3af,0x43a)+_0x28d41a(0x34d,0x396)+_0x49cb94+':\x20'+_0x183adc[_0x28d41a(0x25d,0x30e)+'ge']);}}else _0x6ca0ea['FoLns'](_0x1768b9,![]);}}),gwStatus=gwReachable?envGatewayUrl+(_0x511522(0x43e,0x571)+_0x511522(0x6bb,0x60c)+'necte'+'d)\x1b[0'+'m'):envGatewayUrl+(_0x2618ea(0x5db,0x4dc)+'m(unr'+_0x2618ea(0x828,0x646)+_0x511522(0x569,0x66b)+'[0m'),LOG_FILE=join(ROOT,_0x2618ea(0x305,0x350)+_0x2618ea(0x46f,0x64c)),ALT_LOG_FILE=join(ROOT,_0x511522(0x514,0x4ef)+_0x2618ea(0x5db,0x515)+_0x511522(0x37f,0x3a3)+_0x2618ea(0x693,0x5fe)),logFile=existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:_0x2618ea(0x2a4,0x32e)+')',premiumFile=join(ROOT,_0x511522(0x4f4,0x32e)+'r',_0x511522(0x186,0x337)+'um');let premiumStatus=_0x511522(0x55f,0x42f)+'etect'+'ed';existsSync(premiumFile)&&(premiumStatus=_0x2618ea(0x65e,0x48f)+_0x2618ea(0x3a6,0x4da));const configFile=join(ROOT,_0x511522(0x3d3,0x3f7)+_0x511522(0x341,0x2d7)+'n');if(existsSync(configFile))try{const cfg=JSON[_0x2618ea(0x1e4,0x30f)](readFileSync(configFile,_0x511522(0x521,0x354)));if(cfg[_0x2618ea(0x540,0x359)+'um']||cfg[_0x2618ea(0x3d5,0x359)+_0x511522(0x4da,0x49e)])premiumStatus=_0x2618ea(0x42d,0x2e1)+'e';}catch{}console['log']('\x0a\x20\x20⬡\x20'+_0x511522(0x3d7,0x4f9)+_0x2618ea(0x2ff,0x3ea)+_0x2618ea(0x480,0x626)+_0x2618ea(0x4f5,0x661)+_0x511522(0x5be,0x58c)+_0x511522(0x574,0x500)+pkg[_0x2618ea(0x274,0x385)+'on']+(_0x511522(0x2cc,0x3d0)+_0x2618ea(0x201,0x35a)+':\x20\x20\x20\x20'+_0x511522(0x2f6,0x40f))+process[_0x511522(0x26b,0x363)+_0x511522(0x741,0x5d9)][_0x2618ea(0x2cc,0x3ce)]+('\x0a\x20\x20Po'+'rt:\x20\x20'+_0x2618ea(0x582,0x5f3)+'\x20\x20')+envPort+('\x0a\x20\x20Ho'+_0x511522(0x24f,0x313)+'\x20\x20\x20\x20\x20'+'\x20\x20')+envHost+(_0x511522(0x365,0x2cf)+_0x511522(0x515,0x672)+_0x511522(0x430,0x5d1)+'\x20\x20')+serverStatus+(_0x511522(0x857,0x6a3)+_0x2618ea(0x4ff,0x4cd)+_0x511522(0x47e,0x4ce)+'\x20\x20')+gwStatus+(_0x511522(0x48b,0x428)+_0x511522(0x48e,0x67f)+'r:\x20\x20\x20'+'\x20\x20')+DATA_DIR+('\x0a\x20\x20Lo'+'g\x20fil'+_0x2618ea(0x59d,0x597)+'\x20\x20')+logFile+(_0x511522(0x2ac,0x33a)+_0x511522(0x42a,0x614)+_0x2618ea(0x5ea,0x4f0)+'\x20\x20')+premiumStatus+(_0x2618ea(0x750,0x69f)+'stall'+_0x2618ea(0x513,0x459)+'\x20\x20')+ROOT+_0x2618ea(0x2cf,0x31d)),process[_0x511522(0x3d4,0x4a6)](-0x2*-0xd9e+-0x313*0x2+-0x1*0x1516);}const ALL_COMMANDS=[_0x511522(0x375,0x4d4),_0x2618ea(0x570,0x5c6)+'s','updat'+'e','unins'+_0x2618ea(0x33f,0x43a),_0x511522(0x55b,0x583),_0x511522(0x3bd,0x3f7)+'g',_0x511522(0x3ce,0x2e7)+'r',_0x2618ea(0x42d,0x556),_0x2618ea(0x6b4,0x55b)];function _0x2e36(_0x2e3624,_0x1c2643){_0x2e3624=_0x2e3624-(-0x1821+0x16b5+-0x1*-0x1e7);const _0x3341e6=_0x2256();let _0x486bc5=_0x3341e6[_0x2e3624];return _0x486bc5;}if(command===_0x2618ea(0x5e4,0x678)||!ALL_COMMANDS[_0x2618ea(0x7cb,0x67a)+_0x2618ea(0x2b0,0x41a)](command)){const existingWatchdog=getWatchdogPid(),existingPid=getPid();if(existingWatchdog||existingPid){const pid=existingWatchdog||existingPid,mode=existingWatchdog?_0x511522(0x718,0x617)+_0x2618ea(0x6f2,0x55e):_0x2618ea(0x28f,0x3b5)+'t';console[_0x511522(0x51e,0x5dc)](_0x511522(0x3ab,0x4f6)+_0x511522(0x23f,0x42e)+'s\x20alr'+_0x2618ea(0x222,0x312)+'runni'+'ng\x20('+mode+(_0x511522(0x4cf,0x4f1)+'\x20')+pid+').'),console[_0x511522(0x52e,0x5dc)](_0x511522(0x5a4,0x5e9)+_0x2618ea(0x733,0x5fd)+'first'+_0x2618ea(0x416,0x430)+_0x511522(0x445,0x3f2)+_0x2618ea(0x3c8,0x3e2)+'top'),process[_0x511522(0x390,0x4a6)](0x1327*0x1+-0x4*0x239+-0xa42);}const env={...process.env};if(flags['port'])env['PORT']=String(flags[_0x511522(0x610,0x489)]);if(flags['host'])env[_0x511522(0x3e4,0x3e6)+_0x2618ea(0x319,0x3ec)+'T']=flags[_0x2618ea(0x3db,0x3ef)];const serverPath=join(ROOT,_0x2618ea(0x296,0x350)+'r.js');if(flags[_0x2618ea(0x5c9,0x535)+'h']){const watchdogPath=join(ROOT,_0x511522(0x206,0x32e)+'r',_0x2618ea(0x7b0,0x639)+_0x511522(0x33d,0x4bf)+'s'),extraEnv={};if(flags[_0x2618ea(0x304,0x4ab)])extraEnv[_0x511522(0x58e,0x4c9)]=String(flags[_0x2618ea(0x61c,0x4ab)]);if(flags[_0x511522(0x3b1,0x3cd)])extraEnv['UPLIN'+_0x2618ea(0x51f,0x3ec)+'T']=flags[_0x2618ea(0x423,0x3ef)];const isLinux=process[_0x511522(0x6ce,0x557)+_0x511522(0x359,0x3d7)]===_0x2618ea(0x42e,0x531);let child;if(isLinux)try{const _0x4aa688={};_0x4aa688['stdio']=_0x2618ea(0x338,0x32d)+'e',execSync(_0x511522(0x73e,0x568)+_0x2618ea(0x63e,0x577)+'id',_0x4aa688);const _0x113295={};_0x113295[_0x511522(0x419,0x401)]=ROOT,_0x113295[_0x2618ea(0x7b7,0x5c3)]=env,_0x113295[_0x2618ea(0x504,0x535)+'hed']=!![],_0x113295[_0x2618ea(0x40a,0x30a)]=_0x511522(0x427,0x30b)+'e',child=spawn('setsi'+'d',[_0x2618ea(0x4c0,0x41f)+'k',process[_0x2618ea(0x369,0x365)+_0x511522(0x800,0x677)],watchdogPath,JSON[_0x2618ea(0x344,0x33f)+'gify'](extraEnv)],_0x113295);}catch{const _0x149127={};_0x149127[_0x511522(0x510,0x401)]=ROOT,_0x149127[_0x511522(0x623,0x5a1)]=env,_0x149127[_0x2618ea(0x577,0x535)+_0x2618ea(0x509,0x344)]=!![],_0x149127['stdio']=_0x511522(0x3f1,0x30b)+'e',child=spawn(process[_0x511522(0x2c8,0x343)+_0x511522(0x49a,0x677)],[watchdogPath,JSON[_0x511522(0x39f,0x31d)+_0x2618ea(0x4fc,0x567)](extraEnv)],_0x149127);}else{const _0x283968={};_0x283968['cwd']=ROOT,_0x283968[_0x2618ea(0x69d,0x5c3)]=env,_0x283968['detac'+'hed']=!![],_0x283968['stdio']=_0x2618ea(0x3e4,0x32d)+'e',child=spawn(process['execP'+'ath'],[watchdogPath,JSON[_0x511522(0x2b4,0x31d)+'gify'](extraEnv)],_0x283968);}child[_0x511522(0x79d,0x69b)]();const port=flags[_0x511522(0x33d,0x489)]||env['PORT']||-0x1168+-0x527+0x240f;console['log']('⬡\x20Upl'+_0x511522(0x5a2,0x457)+_0x511522(0x1bd,0x378)+_0x511522(0x2bd,0x3b9)+_0x2618ea(0x6b8,0x67c)+_0x2618ea(0x30b,0x35e)+_0x2618ea(0x608,0x619)+_0x511522(0x55f,0x51d)+_0x2618ea(0x49a,0x3e0)+_0x2618ea(0x5d5,0x4ac)+child[_0x2618ea(0x1ed,0x3e4)]+').'),console[_0x2618ea(0x617,0x5fe)](_0x2618ea(0x559,0x641)+_0x511522(0x619,0x552)+'/loca'+'lhost'+':'+port),console[_0x511522(0x67c,0x5dc)](_0x2618ea(0x67a,0x4b2)+_0x511522(0x522,0x510)+_0x2618ea(0x46e,0x4ae)+_0x2618ea(0x38b,0x4b7)+_0x511522(0x46e,0x52b)+_0x2618ea(0x557,0x447)+_0x2618ea(0x494,0x619)+_0x2618ea(0x27d,0x430)+_0x511522(0x427,0x3f2)+'hat\x20s'+'top'),process[_0x2618ea(0x469,0x4c8)](0x1d*0x139+-0x1885+0x19*-0x70);}else{if(flags[_0x511522(0x6b1,0x630)+_0x2618ea(0x860,0x6a8)]){const _0x1c6d50={};_0x1c6d50[_0x511522(0x278,0x401)]=ROOT,_0x1c6d50['env']=env,_0x1c6d50['stdio']=_0x2618ea(0x4b9,0x654)+'it';const child=spawn(process[_0x511522(0x21e,0x343)+_0x2618ea(0x721,0x699)],[serverPath],_0x1c6d50);writeFileSync(PID_FILE,String(child[_0x2618ea(0x59e,0x3e4)]));const cleanup=()=>{function _0x205507(_0x4563f7,_0x1f5b35){return _0x2618ea(_0x1f5b35,_0x4563f7- -0x427);}const _0x19c278={};_0x19c278[_0x521e36(0x15a,0x290)]=function(_0x2ae016,_0x32ed9d){return _0x2ae016===_0x32ed9d;},_0x19c278['kmbYB']=_0x521e36(0x148,-0x1e);function _0x521e36(_0x18440d,_0xa54991){return _0x2618ea(_0x18440d,_0xa54991- -0x306);}const _0x2ee36d=_0x19c278;try{_0x2ee36d[_0x205507(0x16f,0x302)](_0x205507(-0x13f,-0x25e),_0x2ee36d[_0x205507(0x1fb,0x5a)])?unlinkSync(PID_FILE):_0x772a5[_0x521e36(0x1bc,0x32e)+_0x521e36(0x1b9,0xcf)](_0x205507(-0xef,-0x83)+_0x205507(-0x13b,-0x22b)+_0x521e36(0x2b6,0x189)+_0x521e36(-0x21,0x19)+'o\x20con'+_0x205507(0xbe,0x259)+'\x20',_0x5e7a60);}catch{}};process['on'](_0x511522(0x191,0x37c)+'T',()=>{cleanup();function _0x173584(_0x22c084,_0x3890c8){return _0x511522(_0x3890c8,_0x22c084- -0x598);}process[_0x173584(-0xf2,-0x7a)](0xf43+0x21*0x8d+-0x2170);}),process['on'](_0x511522(0x7ea,0x64b)+'RM',()=>{function _0x430e61(_0xa5ce11,_0x2ecfa6){return _0x2618ea(_0x2ecfa6,_0xa5ce11- -0x4a2);}const _0x597e07={'zCXQn':function(_0x21540d){return _0x21540d();}};function _0x1a5f7c(_0x9c42a,_0x4ae945){return _0x2618ea(_0x4ae945,_0x9c42a- -0x37e);}_0x597e07[_0x430e61(-0x63,-0xec)](cleanup),process[_0x1a5f7c(0x14a,0x109)](0x3d1+-0x209b+0x1cca);}),child['on'](_0x511522(0x5ca,0x4a6),_0x4706f9=>{const _0x3ee7e0={};_0x3ee7e0[_0x179422(-0x2aa,-0x152)]=function(_0x2556ce,_0x431f8a){return _0x2556ce||_0x431f8a;};function _0x179422(_0x1f7dba,_0x2011ae){return _0x511522(_0x2011ae,_0x1f7dba- -0x5a6);}const _0x5d4663=_0x3ee7e0;cleanup(),process['exit'](_0x5d4663['sxWvN'](_0x4706f9,0xec5+0x863*-0x1+-0x331*0x2));});}else{const watchdogPath=join(ROOT,_0x511522(0x4ad,0x32e)+'r','watch'+_0x511522(0x2ed,0x4bf)+'s'),extraEnv={};if(flags[_0x511522(0x3a2,0x489)])extraEnv[_0x2618ea(0x395,0x4eb)]=String(flags[_0x2618ea(0x5ce,0x4ab)]);if(flags[_0x511522(0x2a8,0x3cd)])extraEnv[_0x2618ea(0x29d,0x408)+'K_HOS'+'T']=flags[_0x2618ea(0x427,0x3ef)];const _0x3a20b5={};_0x3a20b5[_0x511522(0x5d9,0x401)]=ROOT,_0x3a20b5[_0x511522(0x6d9,0x5a1)]=env,_0x3a20b5['stdio']=_0x2618ea(0x4a1,0x654)+'it';const child=spawn(process[_0x2618ea(0x23a,0x365)+'ath'],[watchdogPath,JSON[_0x2618ea(0x320,0x33f)+_0x511522(0x619,0x545)](extraEnv)],_0x3a20b5),port=flags[_0x511522(0x4d4,0x489)]||env[_0x2618ea(0x513,0x4eb)]||-0x2672+-0x1*-0x10f+0x745*0x7;console[_0x2618ea(0x437,0x5fe)](_0x511522(0x667,0x4f6)+_0x511522(0x4fb,0x457)+_0x511522(0x333,0x3cf)+_0x511522(0x353,0x49d)+_0x2618ea(0x6ab,0x670)+'tchdo'+_0x511522(0x281,0x36a)+_0x511522(0x28c,0x34c)+_0x2618ea(0x4d5,0x678)+_0x511522(0x56b,0x5f1)+_0x511522(0x64a,0x5ab)),console[_0x511522(0x3f8,0x5dc)](_0x2618ea(0x679,0x641)+'ttp:/'+_0x2618ea(0x450,0x584)+_0x2618ea(0x539,0x474)+':'+port),console[_0x2618ea(0x469,0x5fe)](_0x511522(0x7be,0x657)+'\x20--no'+_0x511522(0x417,0x336)+_0x2618ea(0x20a,0x3e0)+'for\x20r'+_0x511522(0x1d4,0x30a)+'rver\x20'+'mode'),process['on'](_0x2618ea(0x42e,0x39e)+'T',()=>{function _0x254ae8(_0x5454e2,_0x1091a3){return _0x511522(_0x5454e2,_0x1091a3- -0x208);}const _0x12585f={};function _0x463cd6(_0x3ab542,_0x86d668){return _0x511522(_0x86d668,_0x3ab542-0x118);}_0x12585f[_0x463cd6(0x589,0x3e0)]=_0x463cd6(0x763,0x583)+'RM';const _0x520a2a=_0x12585f;child[_0x254ae8(0x1cb,0x385)](_0x520a2a[_0x254ae8(0x3e1,0x269)]);}),process['on'](_0x511522(0x68b,0x64b)+'RM',()=>{function _0x391b04(_0x486479,_0x17c40a){return _0x2618ea(_0x486479,_0x17c40a-0x115);}child[_0x391b04(0x4f4,0x6c4)]('SIGTE'+'RM');}),child['on'](_0x2618ea(0x66e,0x4c8),_0x123828=>{const _0x48499f={};_0x48499f['vlilI']=function(_0x5b1c39,_0x2a1f68){return _0x5b1c39||_0x2a1f68;};const _0x29a3a2=_0x48499f;process['exit'](_0x29a3a2['vlilI'](_0x123828,-0x8cd+-0x65*-0x1f+0x1b7*-0x2));});}}}
3
+ (function(_0xa16693,_0x299360){const _0xb95181=_0xa16693();function _0x3ce2ba(_0x125d6f,_0x583ced){return _0x43f7(_0x125d6f-0x227,_0x583ced);}function _0x326f99(_0xb32764,_0x49feae){return _0x43f7(_0x49feae- -0x380,_0xb32764);}while(!![]){try{const _0x468562=parseInt(_0x326f99(0x1d8,0x26))/(-0x2245*-0x1+0x10*0x1a5+-0x3c94)*(-parseInt(_0x3ce2ba(0x40c,0x451))/(-0x108d+-0x1727+0x27b6))+parseInt(_0x3ce2ba(0x49c,0x57f))/(0x5b2+-0x72b*-0x3+0x57*-0x50)+parseInt(_0x3ce2ba(0x71c,0x53c))/(-0x1ca9+-0x2051+0x3cfe)*(parseInt(_0x326f99(-0x2db,-0x213))/(-0x178c+-0x17ff+0x2f90))+parseInt(_0x3ce2ba(0x6e8,0x6cf))/(-0x203d+-0x1f4d+0x3f90)+parseInt(_0x3ce2ba(0x5c2,0x6c2))/(0x13ed+-0x17d5+0x3ef)+parseInt(_0x3ce2ba(0x56a,0x535))/(-0x1*-0x22bb+0x189f+-0x3b52)*(-parseInt(_0x3ce2ba(0x3b8,0x3f7))/(-0x6b2*-0x5+0x12de+-0x344f))+-parseInt(_0x326f99(-0x8b,0x62))/(-0x29*0x27+0x4*-0x307+0x1265*0x1)*(parseInt(_0x326f99(0x196,0x16f))/(0x5d4*-0x3+-0x6ea*0x4+0x2d2f));if(_0x468562===_0x299360)break;else _0xb95181['push'](_0xb95181['shift']());}catch(_0x6c18a3){_0xb95181['push'](_0xb95181['shift']());}}}(_0x370d,0xa6b*-0xdf+0x489c7+0x9bff9));import{spawn,execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';import{existsSync,writeFileSync,readFileSync,unlinkSync,statSync,readdirSync,mkdirSync}from'fs';function _0x370d(){const _0x1f4e09=['ll\x22\x20t','platf','split','_KEY','or\x20El','ail\x20-','ink\x20(','your_','inher','k-cha','slice','YBvmB','⬡\x20Cur','Doxxt','stdio','hostn','nd]\x20[','\x20\x20upl','KmdNu','lines','I_API','f\x20Upl','aldis','NTIAL','fJIpH','QtTKB','nstal','sfOjm','gify','files','link\x20','index','\x0a\x20\x20\x20\x20','empty','enAI\x20','evenL','/upli','#\x20Sta','...','rkRNt','port\x20','uofWg','not\x20f','erver','g.jso','faile','Mvqqy','SIGTE','⬡\x20No\x20','\x20\x20✓\x20R','ID:\x20\x20','liste','ueQyO','dit\x20m',')\x0a\x20\x20\x20','art','to-re','4|6|1','g\x20@mo','PgAmw','readl','fault','\x20limi','ed.\x20N','ta\x20di','iEmkL','rsion','d.\x20St','de.js','\x20\x20✗\x20F','he\x20la','Stop\x20','ion','Value','\x0a\x20\x20In','HemnC','on\x0a','urati','1:187','dfqFN','ing.','3087318Sdgbuo','s\x20alr','ory\x20a','not\x20d','env','jbxms','metho','\x20\x20\x20\x20#','node_','oncom','apply','n\x20edi','ocal\x20','tion\x20','ound\x20','KVbIE','YaRQd','tart\x20','Versi','\x20stat','info','th:\x20u','ay\x20to','kill','comma','⬡\x20Aut','et\x20in','r\x20and','\x20pass','rash.','.\x20👋\x0a','ll\x20','g.log','led)','ated\x20','d\x20\x20\x20\x20','g\x20for','it\x20\x20\x20','ached','denci','eacha','ay\x20be','GuFEo','ear\x20—','\x20\x20Set','gaQte','11DXYAdb','ta\x20wi','at\x20a\x20','(serv','\x20\x20\x20\x20','TOKEN','516036tDJVpG','dYzBl','ed\x20to','backo','e\x20ser','anual','ed:\x20\x20','ady\x20c','Updat','cache','rface','uplin','\x20conf','nfo\x20\x20','ver\x20(','es...','INUSE','ault:','link.','LAgQh','\x20the\x20','Clear','timeo','xGbli','trim','led\x20t','at\x20re','LcPte','win32','npm\x20u','ime:\x20','pany/','df\x20-k','optio','token','\x0a\x20\x20Pa','\x20(PID','\x20\x20⬡\x20','\x20\x20Upt','\x20\x20v','ocess','r\x20(de','(Ctrl','\x20audi','\x0a\x20\x20⬡\x20','set\x20-','\x1b[32m','subsc','ve\x20ag','gqxcF','s\x20fro','fOfeS','EZaBK','ent\x20s','\x0a\x20\x20Da','runni','tchin','ncomp','\x20\x20\x20#\x20','end','or\x0a\x20\x20','on:\x20\x20','\x20\x20→\x20h','...\x0a','\x20enab','\x20read','k\x20Con','\x20in\x20e','cking','ons','ViznM','\x20node','8\x20is\x20','resum','nd\x20lo','pm\x20up','\x20\x20Wat','ttmsG','runs.','XzMue','\x20Remo','ailed','\x20or\x20e','zpCVx','XLpEi','sqpbC','firm:','ID\x20','audio','file','-deta','TTS\x20A','at\x20do','gured','rt\x20--','noWat','AlCqe','\x20data','e:\x20cp','\x20\x20npx','opped','d\x20DAT','teway','\x20\x20\x20un','\x20to\x20s','//127','isten','nSusS','oonco','er\x20ru','Roami','logic','e\x20glo','\x20\x20Bac','Gatew','ninst','\x20star','.upli','readS','hhWVx','--edi','\x20\x20Log','pdate','sWith','ompan','lean.','\x20file','recur','yatui','oxuph','25jEStOP','ODVHr','he\x20se','\x0a⬡\x20Up','npm\x20p','50)\x0a\x20','\x20to\x20r','!\x1b[0m','.migr','x\x20upl','#\x20Cle','unins',':\x0a\x20\x20\x20','\x20Push','\x20-g\x20@','emium','ally:','ntrie','tion\x0a','k\x20—\x20L','canno','pen\x20c','o-res','RBCeT','\x20\x20Thi','d\x20(PI','ating','close','ssed','etect','OvRCo','aded\x20','#\x20Run','ve\x20al','\x20\x20Ser','AzgTr','9RcIXSb','tion','xzAWJ','host','\x20\x20Exa','Sync','GATEW','\x20runn','atchd','\x20hist','inclu','g.pid','_modu','KEN','toppe','ncell','stall','NSKVX','K_HOS','atest','e\x20is\x20','rLsqQ','etup\x20','input','.\x20Fre','ar:','help','chdog','ge.','t\x20wat','test\x20','OR\x20en','e\x20TTS','GET','any/u','round','ata\x0a\x0a','nk-se','--por','COENL','toStr','t\x20rea','ORD','ree','DnOlv','0.0)\x0a','KIqOS','re\x20\x22D','⬡\x20Ope','and\x20a','igure','fig)\x0a','to\x20cl','8080\x20','--for','tor\x20—','evice','letel','k\x20whe','\x20unin','ELEVE','XdehE','\x20less','\x20\x1b[32','--no-','UPLIN','vtlLp','ink-c','\x20\x20Typ','ver\x20a','\x20\x20Ski','rqVQa','NmAPV','detac','disk\x20','\x20prom','nMPvA','fstat','des','\x20\x20Cre','ink\x20w','how\x20t','kfXzj','\x20\x20Com','18768EzAHQk','ver\x20P','m\x20(PI','rver.','|2|3','[0m','ctivi','t\x20\x20\x20\x20','UXqXu','ready','AI\x20Ch','HfNBL','GqVms','VjUkT','ink\x20s','ed\x20me','o\x20Edg','node','e\x20by\x20','requi','✓\x1b[0m','ning','\x20your','\x20\x20\x20-h','\x20to\x20l','JqSqR','/agen','A_DIR','date\x20','\x20#\x20Ed','gGnfJ','fail','nk\x20be','****','/loca','-g\x20@m','xTjBh','>nul\x20','ructo','SECRE','edAt','last\x20','ning\x20','og\x20st','ch\x20','ed,\x20','zfyrn','c/img','first','\x20fail','\x20\x20\x20re','direc','bzfXF','all','plink','UwLll','\x0a⬡\x20Re','This\x20','figur','hing\x20','(((.+','ata\x0a\x20','ved.\x0a','serve','rver\x20','\x1b[90m','\x20—\x20No',':\x20\x20\x20\x20','art\x20m','ound.','--lin','t\x20v','ine','insta','diyLi','c/aud','SIGIN','ty\x20da','\x20warn','\x20sync','v\x20fil','zpFjP','from\x20','gFdui','some','Print','PBcyJ','HOST','xjDDH','PI\x20ke','us\x20\x20\x20','ig\x20--','\x20--ed','detai','avail','UzzbM','\x20vers','.env.','tions','ges-s','AY_TO','\x20\x20Opt','commo','d-con','\x20--no','ame','reque','r.log','l\x20con','lt:\x203','edit','OgDbo','\x20info','nes\x201','messa','emovi','stop','\x20\x20Tha','FPkJY','tadTn','TTS\x20m','sh\x20st','ink\x20i','Eleve','lt\x20po','packa','.0.0.','searc','\x20\x20Try',':\x27\x22\x20g','the\x20e','ng\x1b[0','dog','ZUWSH','data','encod','ns]\x0a\x0a','on\x20(v','rCPms','destr','\x20port','repea','argv','quire','482697KtqSZl','100\x20l','filte','uploa','AY_UR','in\x20us','oLGKw','erCas','Node.','space',',\x20PID','p\x20it\x20','\x20\x20Or\x20','ng\x20np','l\x20—\x20v',':\x20upl','ZMHWZ','sive','ions\x20','YoYAx','mwXxB','cript','rt\x20th','port','Disk\x20','p\x20Upl','\x20chec','g\x20was','og\x20(P','gapiO','not\x20b','\x20\x20\x20St','e\x0a\x20\x20\x20','k\x20ser','oRJGP','fwXpV','\x20in\x20','ckOsy','\x20Port','\x201\x202>','eInte','#\x20Upl','mpany','-chat','\x20manu','emove','l\x20NOT','sion','versa','hat\x20c','eServ','pping','ing\x20U','/dev/','ing\x20m','NkspE','ks\x20pa','--ver','⬡\x20Upl','\x20curr','\x20than','KBTgd','reada','nd\x20to','NiTiS','\x20(>=\x20','s\x20but','tarts','p\x20con','rt:\x20\x20','\x20via\x20','exit','-v\x20\x20\x20','\x20Diag','LtThW','warn','ach','\x20Miss','nning','dcsgh','FhqlQ','\x0a\x20\x20Lo','\x20with','o\x20sto','PZhIV','mine\x20','ity.j','GNIeY','ig\x20fi','able','s\x20que','\x20new\x20','free\x20','d\x20in\x20','\x20\x20\x20\x20S','error','not\x20s','edit\x20','\x20diag','d\x20dat','eeSpa','k\x20Doc','wmic\x20','rt\x20on','\x20\x20\x20\x20•','v,\x20co','ge.js','found','Uplin','g\x20fil','ree\x20—','o\x0a\x0a\x20\x20','log','floor','\x20comp','elf\x0a','vvonV','m(con','ng\x20wi','o\x20con','sages','\x0a\x20\x20⚠️\x20','l\x20tim','\x0a\x20\x20Ca','-host','\x20.env','nk-ch','ning\x0a','op\x20a\x20','cal\x20d','e\x20\x22re','k\x20Uni','\x20→\x20v','ey\x20—\x20','on:\x20v','http:','mNZrt','NOmDw','\x20\x20Sta','o\x20fil','stopp','tarti','ken','reset','max','OvJRw','path','firma','\x20crea','OPENA','ver\x20f','\x20@moo','logs','code','YQcTl','able\x20','\x20on\x20c','e...','PID\x20','s\x20and','yGvBw','Depen','\x20\x20Exp','kesIR','\x20clea','\x22\x20|\x20t','activ','ons.j','PyuSd','--hos','ected','_API_','lled','glanc','\x1b[33m','deter','examp','..\x0a','hat','red','\x20--li','th\x20(c','\x20(def','art!','log\x20e','xNqRh','hdog\x20','k\x20has','ZnjAM','RejuP','ion\x0a\x20','euROb','updat','kage.','⬡\x20Cre','linux','ile)','kaQlZ','JhfMj','igura','\x0a⬡\x20Wa','ssing','.env\x20','set\x22\x20','octor','e:\x20\x20\x20','4463352joVklO','dated','ync','th:\x20','\x20\x20⚠️\x20\x20','EADDR','art\x20t','openS','wing\x20','versi','OpenA','\x20log\x20','PORT','\x20500\x20','for\x20r','sync-','d-mes','confi','ed\x20','\x20(con','\x20upli','\x20npm\x20','\x20remo','GHWTQ','\x20Fail','push','which','456)\x0a','\x20on\x20t','othin','push-','stdou','lwdxD','ABdaQ',':\x20v','--pat','⬡\x20Sto','TFaNZ','anoth','watch','FhzAz','homed','publi','rPid','eady\x20','th\x20wa','ver\x20l','ay\x20re','orm','ete.','map','set\x20\x20','bfebR','quest','son','charA','\x20on\x20(','exist','\x20inst','OFUao','tor:\x20','HBHbj','lhost','\x20\x20\x20\x20O','UZcpQ','cppWp','\x20not\x20','t\x20sta','ng\x20Up','ll\x20\x20\x20','tchdo','padEn','yTxMt','oads\x20','y:\x20','nLabs','nks\x20f','\x20loca','apEXD','join','LKySt','\x208080','\x20>=\x201','and\x20c','PUCHE','y\x20uni','ssage','led.','1455174uzpvyS','s...\x20','\x20\x1b[31','ync.j','AppDa','\x20line','\x0a\x20\x20','nrvXZ','he\x20Up','vatar','er\x20pr','7TMzzug','.0.1','ult:\x20','fZzHv','CREDE','\x20been','n\x20can','zpAzf','defau','BpCgJ','creat','0.0.0','-path','mode','a\x20dir','l\x20log','ble','yfHwi','Show\x20','18\x20re','(empt','d\x20.en','lBZuP','lengt','out\x20a','s\x20wil','start','es\x20ex','.json','\x20\x20\x20Ta','\x20alre','k\x20Inf','\x20\x20✓\x20S','nk-wa','label','all\x20-','ector','o\x20rea','\x20item','(none','fDkqM','pid','es\x20in','ignor','ly:\x20n','hed','\x20—\x20ru','size','stdin','\x20\x20Not','\x0a⬡\x20Al','\x20MB\x20f','m\x20pac','\x20\x20\x20\x20v','hat\x20s','nano','once','utf8','cjSMp','ists','5631290UZbNED','l\x20cle','g\x20(au','\x20edit','nv\x20in','Run\x20i','o\x20ope','\x20stop','t\x20on\x20','zdBwd','.\x20Run','it\x20.e','dog.j','nk.pi','efAfp','\x20Uplo','KEY','Dpyrn','resta','.env','ch,\x20-','k\x20Res','ogs\x20i','could','parse','y)\x1b[0','n\x20bac','\x20\x20\x20\x20\x20','ath','tall','IYEkF','his\x20h','ijOxH','ar\x20da','sgvIv','premi','compl','2>&1','top','nose\x20','\x20\x20\x20up','ated','Zrciq','r.js','d\x20log','\x20for\x20','fTHVo','s\x20are','rent\x20','\x20\x20\x20--','hen\x20t','\x20\x20Use','\x20PID\x20','ing','d\x20wat','npx\x20u','PASSW','r\x0a\x20\x20\x20','\x20\x20\x20Sh','✗\x1b[0m','ted\x20t','eyBaK','write','nes\x0a\x20','onfig','mples','3456','(PID\x20','\x20--fo','alue','xJAYh','ation','hkGvt','Host\x20','backg','xampl','meout','--hel','ng\x20(','XcMDi','wdUlT','outpu','\x20watc','abs\x20k','\x20\x20\x20\x20d','\x20Numb','.exam','nd\x20(d','\x20\x20\x20\x20-','--det','statu','mands','fore\x20','\x20\x20\x20Ch','to\x20bi','cwd','⬡\x20Fai','alloc','pass','aw\x20se','ink\x20d','d\x20ser','modul','ttp:/','share','\x20defa','force','ripti','ly:\x20','\x20\x20Run','umKey','execP','-watc','uto-r','rt\x0a\x20\x20','+C\x20to','8|7|5','PID\x20f','or\x20us','_here','js\x20ve','s\x20run','e\x20\x20\x20\x20','127.0','docto','\x20logs','strin','wBQzH','xqBvr','\x20Stop','setsi','at\x20st','\x0a\x20\x20Po','les','eset)','TgTlw','et\x20Fr','toLow','—\x20run','⬡\x20Res','npQSn','Port\x20'];_0x370d=function(){return _0x1f4e09;};return _0x370d();}function _0x210841(_0x21d217,_0x14f0be){return _0x43f7(_0x21d217-0x27,_0x14f0be);}import{createRequire}from'module';import _0x53159e from'net';import _0x26ba20 from'http';import _0x4ee547 from'os';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),ROOT=join(__dirname,'..');function resolveDataDir(){const _0x3fb8e7={'zfyrn':function(_0x3a1d0e,_0x3f13f0,_0x370bd2){return _0x3a1d0e(_0x3f13f0,_0x370bd2);},'AlCqe':_0x14a048(-0x130,-0x88)+'(empt'+'y)\x1b[0'+'m','fOLPf':function(_0x784783,_0x204985){return _0x784783/_0x204985;},'bzfXF':function(_0x3dda2b,_0x5536b4){return _0x3dda2b*_0x5536b4;},'JqSqR':_0x53f159(0x1fa,0xa1),'xjDDH':'RbdVx','ZUWSH':_0x14a048(-0x16d,0x67),'ckOsy':'KcwHa','gaQte':'MBfFV','VrgTh':_0x53f159(-0x156,-0x1b9)+')+)+)'+'+$','LcPte':'⬡\x20.en'+_0x53f159(-0x35a,-0x1a5)+_0x14a048(-0x105,-0x109)+_0x14a048(0x2e5,0x1e3)+_0x14a048(0x136,0x13e)+_0x14a048(-0x21c,-0x2a)+_0x14a048(-0x225,-0xda)+_0x53f159(0x5f,-0x134)+_0x14a048(0x292,0x174)+_0x53f159(-0x2a3,-0x199)+'it','KVbIE':function(_0x1e3cc5){return _0x1e3cc5();},'VjUkT':function(_0x2a489f,_0x1adb34){return _0x2a489f===_0x1adb34;},'fZzHv':_0x53f159(-0x3de,-0x26c),'pSSVE':function(_0x3e1800,_0x105e6d,_0x1f6f23,_0x27078a){return _0x3e1800(_0x105e6d,_0x1f6f23,_0x27078a);},'lihIa':_0x53f159(-0x22c,-0x281)+'ng','uBiFz':_0x14a048(0x1ed,0x252)+'k','cppWp':_0x53f159(-0x403,-0x27a)+'nk'};function _0x14a048(_0x3a2a1f,_0x414951){return _0x43f7(_0x414951- -0x2ae,_0x3a2a1f);}function _0x53f159(_0x2c31d8,_0x1dbd84){return _0x43f7(_0x1dbd84- -0x3da,_0x2c31d8);}const _0x2115b5=(function(){const _0x24076f={'Zrciq':function(_0x3afac1,_0x54ee56){return _0x3fb8e7['fOLPf'](_0x3afac1,_0x54ee56);},'cjSMp':function(_0x1ef618,_0x1d486b){function _0x1a0db0(_0x49b0b8,_0x55cdeb){return _0x43f7(_0x49b0b8- -0x211,_0x55cdeb);}return _0x3fb8e7[_0x1a0db0(0x8,0x60)](_0x1ef618,_0x1d486b);},'KmdNu':function(_0x4ec8c0,_0x2e5105){return _0x4ec8c0>=_0x2e5105;},'sWDrx':_0x109a24(0x3a1,0x345)+'space','jeDQp':function(_0x459444,_0x283917,_0x30017a){function _0x39a044(_0x5be7d9,_0x54b4dc){return _0x109a24(_0x54b4dc- -0x1d5,_0x5be7d9);}return _0x3fb8e7[_0x39a044(0x2c,0x152)](_0x459444,_0x283917,_0x30017a);},'RBCeT':_0x3fb8e7[_0x109a24(0x312,0x334)],'fAhit':_0x3fb8e7[_0x48b094(0x28f,0xfa)],'COENL':_0x3fb8e7[_0x109a24(0x37e,0x2ee)]};function _0x48b094(_0x28e9ac,_0x28dff0){return _0x53f159(_0x28dff0,_0x28e9ac-0x42c);}function _0x109a24(_0x1a12a8,_0x385a6a){return _0x53f159(_0x385a6a,_0x1a12a8-0x4ee);}if('KcwHa'!==_0x3fb8e7[_0x109a24(0x3ae,0x355)]){const _0x52ae01=_0x235b8f?_0x3fb8e7['zfyrn'](_0x8d65e1,_0x5d36d2,_0x478481):_0x3fb8e7[_0x109a24(0x25f,0x1f7)];_0x5df85d[_0x109a24(0x3f9,0x530)]('\x20\x20'+_0x7badbb[_0x48b094(0x3dc,0x273)+'d'](_0x30e209+(0x14ee+0x2b*-0x80+0x94))+_0x52ae01);}else{let _0x5839f6=!![];return function(_0x370b49,_0x503bd8){const _0x3ad017={};function _0x4d6906(_0x4d28a4,_0x58917f){return _0x109a24(_0x4d28a4- -0x295,_0x58917f);}_0x3ad017[_0x4d6906(0x17d,0x183)]=_0x24076f[_0x41d71b(-0x47,-0x15d)];const _0x1e0088=_0x3ad017;function _0x41d71b(_0x56d709,_0x36dd87){return _0x109a24(_0x56d709- -0x2df,_0x36dd87);}if(_0x24076f['fAhit']===_0x24076f[_0x41d71b(-0x13,0x173)]){const _0x2af179=_0x2e4499['round'](_0x24076f[_0x4d6906(0x28b,0x349)](_0x1c57fe,_0x24076f[_0x41d71b(0x215,0x167)](0x7*0x581+-0xb40+-0x1747,0x89f+-0x4*-0x5da+-0x7*0x401)));_0x24076f[_0x4d6906(0x301,0x4b1)](_0x2af179,0x1d89+-0x1ba1+0x6*0x2)?_0x47414b(_0x24076f['sWDrx'],_0x2af179+('\x20MB\x20f'+_0x4d6906(0x3b,0x135))):_0x24076f['jeDQp'](_0x65434f,_0x4d6906(0x10c,0x17a)+_0x41d71b(0xb3,0x21c),_0x2af179+(_0x4d6906(0x258,0xb7)+'ree\x20—'+_0x41d71b(0x4,0x137)+_0x4d6906(0x130,0x303)+_0x41d71b(0x185,0x27b)+'MB'));}else{const _0x153b07=_0x5839f6?function(){function _0xfb15dc(_0x421de2,_0x4cccaf){return _0x4d6906(_0x421de2- -0x1a0,_0x4cccaf);}function _0x39998e(_0x21180d,_0x24581a){return _0x4d6906(_0x24581a- -0x1aa,_0x21180d);}if(_0x503bd8){if('Sjpzr'===_0x1e0088[_0x39998e(0xe7,-0x2d)])_0x3330e3=_0x39998e(-0x21f,-0xfd)+_0x39998e(-0x175,-0xa);else{const _0x4c7543=_0x503bd8[_0x39998e(-0x5d,0x1a0)](_0x370b49,arguments);return _0x503bd8=null,_0x4c7543;}}}:function(){};return _0x5839f6=![],_0x153b07;}};}}()),_0x5440a1=_0x2115b5(this,function(){function _0x23416d(_0x28af50,_0xfec8b2){return _0x53f159(_0x28af50,_0xfec8b2-0x74c);}function _0x5974d5(_0x443980,_0x26f4e2){return _0x53f159(_0x443980,_0x26f4e2-0x20d);}return _0x3fb8e7[_0x5974d5(0x2c4,0x321)]==='MBfFV'?_0x5440a1[_0x23416d(0x343,0x52b)+_0x5974d5(0xff,0x24a)]()[_0x23416d(0x5ac,0x5d6)+'h'](_0x3fb8e7['VrgTh'])[_0x5974d5(0x15,-0x14)+'ing']()['const'+_0x23416d(0x5d7,0x57d)+'r'](_0x5440a1)[_0x5974d5(-0x88,0x97)+'h'](_0x3fb8e7['VrgTh']):null;});_0x3fb8e7[_0x53f159(-0x1d,0xf6)](_0x5440a1);if(process.env.UPLINK_DATA_DIR)return process.env.UPLINK_DATA_DIR;if(_0x3fb8e7[_0x14a048(-0x222,-0xbc)](process['platf'+'orm'],_0x53f159(0x235,0x137))){if(_0x3fb8e7[_0x53f159(-0x7a,-0x1e8)](_0x3fb8e7['fZzHv'],_0x3fb8e7[_0x14a048(0x11,0xfb)])){const _0x45541f=process.env.APPDATA||_0x3fb8e7['pSSVE'](join,_0x4ee547[_0x53f159(-0x1ee,-0x6e)+'ir'](),_0x14a048(-0x8e,0xf1)+'ta',_0x3fb8e7['lihIa']);return join(_0x45541f,_0x3fb8e7['uBiFz']);}else _0x5e465e[_0x14a048(0x84,0x37)](_0x3fb8e7[_0x53f159(0x45,0x136)]),_0x20cd0d[_0x53f159(-0x2eb,-0x11e)](0x1e94+-0x1240+-0xc54);}return _0x3fb8e7[_0x14a048(0x120,-0x9b)](join,_0x4ee547[_0x14a048(-0xd,0xbe)+'ir'](),_0x3fb8e7[_0x14a048(-0xff,0xd6)]);}const DATA_DIR=resolveDataDir();try{const _0x32a24e={};_0x32a24e[_0x210841(0x191,0x381)+_0x6aac3f(0x99,0x42)]=!![],mkdirSync(DATA_DIR,_0x32a24e);}catch{}const PID_FILE=join(DATA_DIR,_0x210841(0x187,0x2f3)+_0x210841(0x416,0x251)+'d'),WATCHDOG_PID_FILE=join(DATA_DIR,_0x6aac3f(-0x8d,0xb0)+_0x210841(0x3ee,0x1fa)+_0x6aac3f(0x19c,-0x4f)+_0x6aac3f(-0x51,-0x23c)),WATCHDOG_STATE_FILE=join(DATA_DIR,_0x210841(0x187,0x28)+_0x6aac3f(0x1da,0x108)+_0x210841(0x3b0,0x306)+_0x6aac3f(0x2af,0x451)+'n'),args=process[_0x210841(0x29a,0x29a)][_0x6aac3f(0x28d,0xe3)](0x1857*0x1+-0x25*-0x37+0x812*-0x4),command=args[0x1*0x1196+0x2c6+-0x145c]||_0x6aac3f(0x1d3,0x1ae),flags={};for(let i=0x1bf5+-0xb5+-0x1b40;i<args[_0x210841(0x3e4,0x45a)+'h'];i++){const qlVsBy=(_0x6aac3f(0x2bc,0x471)+'|0|9|'+_0x6aac3f(0x269,0x129)+_0x210841(0x210,0x3db))[_0x210841(0x499,0x547)]('|');let qgKXAb=0x2*-0xda9+0x2493+-0x17*0x67;while(!![]){switch(qlVsBy[qgKXAb++]){case'0':(args[i]===_0x6aac3f(0xc1,-0x110)+_0x210841(0x2cb,0x22e)||args[i]==='-v')&&(flags[_0x210841(0x373,0x4af)+'on']=!![]);continue;case'1':(args[i]===_0x210841(0x456,0x5bc)+'p'||args[i]==='-h')&&(flags[_0x210841(0x1d2,0x128)]=!![]);continue;case'2':args[i]===_0x6aac3f(0x179,0x367)+'h'&&(flags[_0x210841(0x32e,0x384)]=!![]);continue;case'3':(args[i]===_0x210841(0x1ee,0x248)+'ce'||args[i]==='-f')&&(flags[_0x210841(0x473,0x466)]=!![]);continue;case'4':args[i]===_0x210841(0x1de,0x1d7)+'t'&&args[i+(-0x1*0x1c6a+-0xbf9*-0x3+-0x2*0x3c0)]&&(flags['port']=parseInt(args[i+(-0x223*-0x2+0x1bbb*-0x1+0x1776)],-0xd*0x5b+-0x1238+-0x16e1*-0x1),i++);continue;case'5':args[i]===_0x6aac3f(-0x8a,0xbc)+'t'&&(flags[_0x6aac3f(0x66,0x15f)]=!![]);continue;case'6':args[i]===_0x6aac3f(0x131,0x249)+'t'&&(flags[_0x210841(0x1bb,0x191)]=args[i+(-0x1d9a+0x2*-0xe6b+0x3a71)]||'0.0.0'+'.0',i++);continue;case'7':args[i]===_0x6aac3f(0x3e,0x154)+'es'&&args[i+(0xfcd+-0x7b8+-0x814)]&&(flags[_0x6aac3f(0x296,0x2f5)]=parseInt(args[i+(-0x1bbd+0x18a+0x1a34)],-0x17*-0x2+-0x3*-0xef+-0x2f1),i++);continue;case'8':args[i]===_0x210841(0x1f8,0x17)+_0x6aac3f(0x17d,0x243)+_0x6aac3f(0x7c,0x7f)&&(flags[_0x6aac3f(-0xa3,-0x32)+'chdog']=!![]);continue;case'9':(args[i]===_0x6aac3f(0x24e,0x277)+_0x6aac3f(0xd4,-0xb5)||args[i]==='-d')&&(flags[_0x210841(0x201,0x31b)+'h']=!![]);continue;}break;}}if(flags[_0x6aac3f(0x15f,0x14d)+'on']){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x6aac3f(0x75,-0xef)+'ge.js'+'on'));console[_0x6aac3f(0xf8,-0x81)](_0x6aac3f(0x313,0x474)+_0x210841(0x4a0,0x48b)+_0x6aac3f(0x3f,0xfa)+pkg[_0x210841(0x373,0x430)+'on']),process[_0x6aac3f(0xcf,0x1a8)](-0x123c+-0x1*0x1ba7+0x2de3);}function _0x43f7(_0x1214ae,_0x2d624c){_0x1214ae=_0x1214ae-(0x2bb*0x1+0x1123+0x21*-0x92);const _0x272a98=_0x370d();let _0x41c1fa=_0x272a98[_0x1214ae];return _0x41c1fa;}flags[_0x210841(0x1d2,0x393)]&&(console[_0x6aac3f(0xf8,-0x7d)](_0x6aac3f(-0xd6,0x2f)+_0x210841(0x308,0x4e3)+_0x210841(0x1a7,0x249)+_0x6aac3f(0x2e0,0x1ed)+_0x6aac3f(0x2,-0xc4)+'at\x0a\x0a\x20'+'\x20Usag'+'e:\x0a\x20\x20'+_0x6aac3f(0x294,0x1b2)+_0x6aac3f(-0x19,-0x184)+'hat\x20['+_0x6aac3f(0x2ec,0x26c)+_0x6aac3f(0x293,0x2d5)+_0x210841(0x133,0x40)+_0x210841(0x294,0x380)+_0x210841(0x20b,0x36a)+_0x210841(0x464,0x343)+_0x6aac3f(-0x74,-0xf6)+_0x210841(0x186,0x316)+'t\x20\x20\x20\x20'+_0x6aac3f(0xa7,-0x64)+_0x210841(0x370,0x202)+_0x6aac3f(0x1b6,0xbd)+_0x210841(0x4b5,0x541)+_0x6aac3f(0x37,-0x103)+_0x210841(0x13b,0x64)+_0x210841(0x4d4,0x59f)+_0x6aac3f(0x2b9,0x431)+'\x20stop'+'\x20\x20\x20\x20\x20'+_0x6aac3f(0xa7,0x1af)+_0x210841(0x31c,0x3d5)+_0x6aac3f(-0xcb,0x2e)+_0x6aac3f(0x19a,0x273)+_0x6aac3f(0x2a1,0x240)+_0x6aac3f(0x37,0x6f)+_0x210841(0x442,0x63e)+_0x6aac3f(0x2e7,0x143)+_0x210841(0x266,0x23d)+_0x6aac3f(0x252,0x357)+'eck\x20i'+_0x6aac3f(0x298,0x2c7)+_0x210841(0x286,0x3a2)+_0x210841(0x482,0x405)+_0x210841(0x31b,0x4d4)+'\x20\x20\x20\x20i'+_0x210841(0x529,0x3aa)+'\x20\x20\x20\x20\x20'+'\x20Show'+_0x6aac3f(0xc3,0xf6)+_0x6aac3f(-0xcd,-0x239)+_0x6aac3f(-0x46,-0x122)+_0x6aac3f(0x304,0x206)+_0x210841(0x349,0x230)+_0x210841(0x2bc,0x478)+_0x210841(0x486,0x528)+_0x210841(0x424,0x41b)+_0x210841(0x3ea,0x31c)+'il\x20th'+_0x6aac3f(0x30c,0x474)+_0x210841(0x398,0x47b)+_0x6aac3f(0x20b,0x3ba)+'n\x20rea'+_0x210841(0x316,0x373)+'e\x0a\x20\x20\x20'+_0x6aac3f(0x314,0x3b1)+'ig\x20\x20\x20'+_0x6aac3f(0x22f,0x19d)+'ow\x20cu'+'rrent'+_0x6aac3f(0x314,0x256)+_0x210841(0x363,0x1a4)+_0x210841(0x1a6,0x2f1)+_0x6aac3f(0x249,0x42c)+_0x210841(0x368,0x19c)+_0x210841(0x424,0x59a)+_0x6aac3f(0xd1,0x1e7)+_0x6aac3f(0x21c,0x390)+_0x210841(0x272,0x1c2)+'n\x20iss'+'ues\x0a\x20'+_0x210841(0x23e,0x204)+_0x6aac3f(0x189,0x297)+_0x6aac3f(0x210,0x196)+'Clear'+'\x20chat'+_0x210841(0x1c1,0x12d)+_0x6aac3f(0x2d6,0x48d)+_0x210841(0x15c,-0x99)+_0x6aac3f(0x109,0x2f8)+_0x6aac3f(0x35,-0x180)+_0x210841(0x431,0x400)+_0x210841(0x228,0xf0)+_0x6aac3f(0x210,0x324)+_0x210841(0x524,0x3c6)+'e\x20to\x20'+'the\x20l'+_0x6aac3f(-0x49,-0x140)+_0x6aac3f(0x58,-0x54)+'ion\x0a\x20'+_0x210841(0x179,-0x5e)+_0x6aac3f(0x41,0x149)+_0x6aac3f(0x19b,0x378)+_0x210841(0x4de,0x357)+'serve'+_0x210841(0x503,0x3c2)+'\x20remo'+_0x210841(0x1b5,0x27b)+'l\x20Upl'+_0x210841(0x46d,0x470)+_0x6aac3f(-0x38,0x196)+_0x210841(0x271,0x449)+'ions:'+_0x210841(0x4b7,0x36d)+_0x210841(0x1de,0x6e)+'t\x20N\x20\x20'+'\x20\x20\x20\x20\x20'+_0x6aac3f(0xae,0x147)+_0x6aac3f(0x10,0x63)+_0x210841(0x17c,0x111)+_0x6aac3f(0x18e,0x2af)+_0x210841(0x3d5,0x30b)+_0x6aac3f(0x65,-0x188)+_0x210841(0x385,0x3f7)+_0x6aac3f(0x24d,0x52)+_0x6aac3f(0x104,-0xbb)+'\x20H\x20\x20\x20'+_0x6aac3f(0x210,0x380)+_0x210841(0x452,0x395)+_0x210841(0x467,0x41e)+_0x6aac3f(0xc7,0x8e)+_0x6aac3f(0x13e,0x225)+_0x210841(0x52d,0x32c)+'\x200.0.'+_0x210841(0x1e5,0x12f)+_0x210841(0x461,0x30a)+_0x6aac3f(-0xa8,0x17)+_0x6aac3f(0x209,0x1d2)+_0x6aac3f(0x2f7,0x141)+_0x210841(0x40e,0x552)+_0x210841(0x423,0x3fe)+'kgrou'+_0x6aac3f(0x24c,0x2f8)+'aemon'+'\x20mode'+_0x6aac3f(0x2b9,0x3ba)+_0x6aac3f(0x60,0x21d)+_0x6aac3f(0x265,0x21a)+'hdog\x20'+_0x210841(0x476,0x65d)+_0x6aac3f(0xda,0x296)+_0x210841(0x3e5,0x43c)+_0x6aac3f(0x266,0x11b)+'estar'+_0x210841(0x1d5,0x23c)+'chdog'+_0x210841(0x4b7,0x3ba)+_0x210841(0x252,0x353)+'es\x20N\x20'+_0x210841(0x424,0x3a8)+_0x210841(0x45e,0x25c)+'er\x20of'+_0x6aac3f(0x161,0xd8)+_0x210841(0x4aa,0x489)+_0x6aac3f(-0x9a,-0x1be)+'how\x20('+'logs,'+_0x210841(0x472,0x436)+_0x210841(0x3cf,0x2f7)+_0x210841(0x199,-0x5d)+_0x6aac3f(0x226,0x34a)+_0x6aac3f(0xe9,-0x8f)+'\x20\x20\x20\x20\x20'+_0x6aac3f(0x195,0xe3)+_0x6aac3f(-0x6b,-0x2f)+'onfig'+_0x210841(0x155,0x30e)+'ditor'+_0x210841(0x37d,0x538)+_0x6aac3f(-0x29,-0x154)+_0x6aac3f(0x24d,0x93)+_0x210841(0x3d9,0x579)+'\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20'+_0x6aac3f(0x4d,-0xe5)+'\x20conf'+_0x210841(0x2f4,0xfa)+'le\x20pa'+_0x210841(0x351,0x4ce)+_0x210841(0x449,0x5ab)+_0x6aac3f(0x2b9,0x12c)+_0x6aac3f(0x239,0x173)+'rce,\x20'+'-f\x20\x20\x20'+_0x6aac3f(-0x16,0x139)+_0x6aac3f(0xcc,0x22c)+_0x210841(0x32f,0x3f3)+_0x210841(0x4f5,0x4c1)+'promp'+'ts\x20(r'+(_0x6aac3f(0x27b,0x2b9)+'\x0a\x20\x20\x20\x20'+_0x210841(0x2e4,0x15a)+'\x20\x20\x20\x20\x20'+_0x6aac3f(0x210,0xd1)+'\x20Show'+_0x6aac3f(0x58,0xe2)+_0x6aac3f(0x146,0x16a)+_0x6aac3f(0xf,0x201)+_0x6aac3f(0x210,0x1f2)+_0x210841(0x424,0x4f3)+_0x6aac3f(0xe6,0x218)+_0x210841(0x209,0x12)+_0x6aac3f(0x214,0x10f)+'elp\x0a\x0a'+_0x6aac3f(-0x58,0x83)+_0x6aac3f(0x236,0x17b)+_0x210841(0x1a0,0x96)+'\x20npx\x20'+_0x6aac3f(0x313,0x45e)+_0x210841(0x4a0,0x3ff)+_0x210841(0x213,0x2d0)+_0x210841(0x424,0x497)+_0x210841(0x424,0x431)+_0x210841(0x4ef,0x67b)+'\x20Star'+_0x6aac3f(0x1fd,0x314)+_0x210841(0x3d5,0x28f)+_0x6aac3f(0x74,-0x1e)+_0x210841(0x47b,0x648)+_0x210841(0x175,0xd4)+_0x210841(0x37e,0x323)+_0x210841(0x31a,0x1fa)+'at\x20--'+_0x6aac3f(0x2ab,0x3dd)+_0x210841(0x1ed,0x138)+_0x210841(0x424,0x5a5)+_0x6aac3f(0x2a8,0x30d)+_0x210841(0x303,0x39d)+_0x210841(0x298,0x433)+_0x210841(0x3bb,0x539)+_0x6aac3f(0x2a3,0x226)+_0x6aac3f(0x22c,0x10c)+_0x6aac3f(0x2e,0xb3)+_0x6aac3f(0xb3,0xa2)+'\x20stop'+'\x20\x20\x20\x20\x20'+_0x6aac3f(0x210,0x6b)+_0x6aac3f(-0xc8,-0x187)+_0x210841(0x4de,0x6c1)+'the\x20s'+'erver'+'\x0a\x20\x20\x20\x20'+_0x210841(0x440,0x538)+_0x210841(0x242,0x3cc)+'-chat'+'\x20info'+_0x6aac3f(0x210,0x112)+_0x6aac3f(0x210,0x113)+_0x6aac3f(-0xc8,-0x2bb)+_0x6aac3f(0x1cb,0x39f)+'setup'+_0x6aac3f(0x68,0x1bb)+_0x6aac3f(0x2a3,0x21e)+_0x210841(0x440,0x5e5)+'plink'+_0x210841(0x2c7,0x11b)+_0x6aac3f(0x272,0x174)+_0x210841(0x350,0x190)+_0x210841(0x27d,0x3b6)+'00\x20#\x20'+'Tail\x20'+_0x210841(0x235,0x3f)+_0x6aac3f(0x89,-0xc3)+'og\x20li'+_0x210841(0x448,0x35a)+'\x20\x20\x20np'+_0x210841(0x19d,0x228)+'ink-c'+_0x6aac3f(0xb9,0xac)+'onfig'+_0x6aac3f(0x54,0x4c)+_0x210841(0x50d,0x446)+_0x210841(0x229,0x383)+_0x6aac3f(0x200,0x1cb)+_0x6aac3f(0x1f9,0x3ac)+_0x6aac3f(0xe,0x1cc)+_0x6aac3f(0x1f8,0x5a)+_0x6aac3f(-0xc6,-0x2a0)+_0x6aac3f(-0x9f,-0x1eb)+_0x6aac3f(0x16a,0x1f)+_0x210841(0x31a,0x2a5)+_0x210841(0x16e,0x73)+'ctor\x20'+_0x210841(0x424,0x54e)+_0x210841(0x424,0x609)+_0x6aac3f(-0x60,0x3b)+_0x6aac3f(0xea,-0x2)+'nosti'+'cs\x0a\x20\x20'+'\x20\x20npx'+_0x6aac3f(0x16a,0x1dd)+_0x6aac3f(0x106,0xa6)+_0x6aac3f(0x322,0x3ba)+_0x210841(0x13f,0x2d)+'-forc'+_0x210841(0x483,0x47e)+_0x6aac3f(-0x76,0xf5)+_0x210841(0x42a,0x515)+_0x210841(0x517,0x6be)+'thout'+_0x6aac3f(-0x11,-0x1c5)+'pt\x0a\x20\x20')),process[_0x210841(0x2e3,0x1b4)](-0x93*-0xf+-0xf*0x257+-0x153*-0x14));function isRunning(_0x2bd1ce){const _0x280777={};_0x280777[_0x193efd(-0x22a,-0x49)]='Disk\x20'+_0x4d7cf9(0x359,0x206),_0x280777[_0x193efd(0x268,0xd6)]=_0x193efd(0xb2,0x1c0)+'\x20not\x20'+'deter'+_0x4d7cf9(0x76,0x252)+_0x193efd(-0x110,0x98)+_0x4d7cf9(0x1,0x163)+_0x193efd(-0x89,0x45);function _0x193efd(_0x331d3f,_0x5cf883){return _0x210841(_0x5cf883- -0x260,_0x331d3f);}function _0x4d7cf9(_0x525d65,_0x12c874){return _0x210841(_0x12c874- -0x9f,_0x525d65);}_0x280777[_0x4d7cf9(0x462,0x413)]=function(_0x1e3422,_0x536519){return _0x1e3422!==_0x536519;},_0x280777[_0x193efd(-0x169,0x22)]=_0x4d7cf9(0x2e2,0x31f);const _0x3393d3=_0x280777;try{if(_0x3393d3[_0x4d7cf9(0x306,0x413)](_0x3393d3[_0x4d7cf9(-0x1c,0x1e3)],_0x3393d3['FPkJY']))_0x1cf222(_0x3393d3[_0x193efd(0x1a9,-0x49)],_0x3393d3['YQcTl']);else return process['kill'](_0x2bd1ce,0x2236+-0x1558+-0xb7*0x12),!![];}catch{return![];}}function getPid(){function _0x48ba45(_0x352a6c,_0x3e260b){return _0x6aac3f(_0x3e260b-0x53f,_0x352a6c);}const _0x4ae814={'XcMDi':function(_0x406efe,_0xcbff6,_0x287ef9){return _0x406efe(_0xcbff6,_0x287ef9);},'TFaNZ':_0x20aeb6(0x575,0x61a),'SjHDB':function(_0x2919f7,_0x12cb1a,_0x2dbf08){return _0x2919f7(_0x12cb1a,_0x2dbf08);},'uofWg':'.env\x20'+_0x20aeb6(0x4da,0x37f),'UZcpQ':_0x48ba45(0x73a,0x6ce)+_0x48ba45(0x499,0x666)+_0x20aeb6(0x1af,0x367)+'able','npQSn':_0x20aeb6(0x46b,0x5b7)+_0x20aeb6(0x583,0x4f2)+_0x48ba45(0x607,0x6d7)+_0x20aeb6(0x650,0x4ee)+_0x20aeb6(0x4a6,0x5f1),'AdYrg':_0x20aeb6(0x750,0x583)+_0x48ba45(0x83a,0x857),'yatui':function(_0x5a3b1b,_0x8d1dee){return _0x5a3b1b(_0x8d1dee);},'dcsgh':'liste'+'ning','rkRNt':_0x20aeb6(0x6f1,0x698)+_0x20aeb6(0x650,0x5e2),'hOxBV':function(_0x22fd79,_0x2db387){return _0x22fd79(_0x2db387);},'xTjBh':function(_0x1ac763,_0x1365a7,_0x51c8cf){return _0x1ac763(_0x1365a7,_0x51c8cf);},'lwdxD':function(_0x3af601,_0x1361e4){return _0x3af601(_0x1361e4);},'fTHVo':function(_0x1c6b5a,_0x23ace0){return _0x1c6b5a!==_0x23ace0;},'dfqFN':_0x48ba45(0x892,0x85e),'OSHlF':'aUANi','nrvXZ':function(_0x4d8b5b,_0x288471){return _0x4d8b5b===_0x288471;},'ueQyO':function(_0x3e5ba0,_0x2a5364){return _0x3e5ba0(_0x2a5364);}};if(!_0x4ae814['hOxBV'](existsSync,PID_FILE))return null;function _0x20aeb6(_0x1888e4,_0x185606){return _0x6aac3f(_0x185606-0x428,_0x1888e4);}const _0x5affbe=_0x4ae814['SjHDB'](parseInt,_0x4ae814[_0x48ba45(0x6c2,0x55b)](readFileSync,PID_FILE,_0x48ba45(0x8af,0x731))[_0x20aeb6(0x5df,0x748)](),-0x3df*-0x5+0x259*-0xa+0x429);if(_0x4ae814[_0x20aeb6(0x6ef,0x59e)](isNaN,_0x5affbe)||!isRunning(_0x5affbe)){if(_0x4ae814[_0x48ba45(0x641,0x762)](_0x4ae814[_0x48ba45(0x6be,0x811)],_0x4ae814['OSHlF'])){try{if(_0x4ae814[_0x48ba45(0x86d,0x6f4)](_0x48ba45(0x603,0x607),_0x20aeb6(0x5d8,0x4f0)))_0x4ae814[_0x20aeb6(0x595,0x6df)](unlinkSync,PID_FILE);else try{_0x4ae814[_0x48ba45(0x8d1,0x783)](_0x4bee46,_0x2908d3,_0x4ae814[_0x48ba45(0x624,0x6ba)]),_0x4ae814['SjHDB'](_0x3fcab7,_0x4ae814[_0x20aeb6(0x5a0,0x6d4)],_0x4ae814[_0x20aeb6(0x6a5,0x5be)]);}catch{_0x29a64e(_0x4ae814[_0x20aeb6(0x53a,0x6d4)],_0x4ae814[_0x48ba45(0x741,0x7c0)]);}}catch{}return null;}else{const _0x45136a={'kfXzj':function(_0x305df8,_0x56eb1b){return _0x305df8===_0x56eb1b;},'rLsqQ':_0x4ae814['AdYrg'],'PgAmw':function(_0x1eb6ce,_0x5c7b36){function _0xeed673(_0x17fa7c,_0x32d471){return _0x20aeb6(_0x32d471,_0x17fa7c- -0x407);}return _0x4ae814[_0xeed673(-0x61,0x2b)](_0x1eb6ce,_0x5c7b36);}},_0x5a3349=_0x3b627e[_0x20aeb6(0x4fd,0x5eb)+_0x48ba45(0x71f,0x5f9)+'er']();_0x5a3349['once'](_0x48ba45(0x77d,0x626),_0x327d47=>{function _0x3f303e(_0x39f7df,_0x510529){return _0x20aeb6(_0x39f7df,_0x510529- -0x5cd);}function _0x3c6b38(_0x17318d,_0x149308){return _0x20aeb6(_0x149308,_0x17318d-0x19f);}if(_0x45136a[_0x3c6b38(0x5bd,0x5a1)](_0x327d47[_0x3f303e(-0x132,-0x84)],_0x45136a[_0x3c6b38(0x580,0x739)]))_0x45136a[_0x3c6b38(0x885,0x914)](_0xcc5a45,![]);else _0x2ddaee(!![]);}),_0x5a3349[_0x20aeb6(0x733,0x619)](_0x4ae814[_0x20aeb6(0x3a8,0x4ff)],()=>{function _0x2162a3(_0x17e479,_0x553ce1){return _0x20aeb6(_0x553ce1,_0x17e479- -0x1d5);}_0x5a3349[_0x16151b(0x540,0x375)]();function _0x16151b(_0x2cef57,_0xc08aa7){return _0x20aeb6(_0x2cef57,_0xc08aa7- -0x4e);}_0x45136a[_0x16151b(0x695,0x698)](_0x430990,!![]);}),_0x5a3349[_0x48ba45(0x838,0x7f5)+'n'](_0x2fe4b2,_0x4ae814[_0x20aeb6(0x5ca,0x6d2)]);}}return _0x5affbe;}function getWatchdogPid(){const _0x3f6280={'bwxwF':_0x2f7b24(0x739,0x535)+'RM','TgTlw':function(_0x3458e7,_0x1eaff6){return _0x3458e7||_0x1eaff6;},'NSKVX':_0x2f7b24(0x3fc,0x2ba)+'r','tGxeB':function(_0x285cdf,_0x1ec896){return _0x285cdf(_0x1ec896);},'fkmSQ':function(_0x43d0ac,_0x4f1a05,_0x40e8d5,_0x2f4d9a){return _0x43d0ac(_0x4f1a05,_0x40e8d5,_0x2f4d9a);},'LAgQh':'inher'+'it','GuFEo':function(_0x2c8241,_0x5aa022,_0x5b7701){return _0x2c8241(_0x5aa022,_0x5b7701);},'ZnjAM':function(_0x165922,_0xc8f95c,_0x1355c7){return _0x165922(_0xc8f95c,_0x1355c7);},'PyuSd':_0x114e7c(0x1fd,0x270),'YoYAx':function(_0x20bf57,_0x123d6d){return _0x20bf57(_0x123d6d);},'ghwQK':function(_0x2348ac,_0x123293){return _0x2348ac!==_0x123293;},'xJAYh':_0x2f7b24(0x535,0x51f),'yzYGB':function(_0x17f745,_0x259d56){return _0x17f745(_0x259d56);}};if(!existsSync(WATCHDOG_PID_FILE))return null;const _0x73d70b=_0x3f6280[_0x114e7c(0x3ef,0x37c)](parseInt,_0x3f6280[_0x114e7c(0x156,0x1c2)](readFileSync,WATCHDOG_PID_FILE,_0x3f6280[_0x114e7c(0x2e5,0x1ae)])['trim'](),0xfe*-0x5+0x85c*-0x1+0xd5c);function _0x2f7b24(_0x53ae5a,_0x3247b6){return _0x6aac3f(_0x3247b6-0x283,_0x53ae5a);}if(_0x3f6280[_0x2f7b24(0x1db,0x31e)](isNaN,_0x73d70b)||!_0x3f6280[_0x114e7c(0x263,0x119)](isRunning,_0x73d70b)){if(_0x3f6280['ghwQK'](_0x114e7c(0x1af,0x31a),_0x3f6280[_0x2f7b24(0x58d,0x4be)])){const _0x4c389c={'LtThW':_0x3f6280['bwxwF'],'GHWTQ':function(_0x4a5cde,_0x28baea){function _0x3cae8c(_0x3baecf,_0x5e7ddc){return _0x2f7b24(_0x5e7ddc,_0x3baecf-0x4b);}return _0x3f6280[_0x3cae8c(0x54a,0x426)](_0x4a5cde,_0x28baea);}},_0x49b7d8=_0xc37340(_0x19afe3,_0x3f6280[_0x114e7c(0x55,0x33)],_0x114e7c(0x10d,0x1fb)+'dog.j'+'s'),_0x5cb7eb={};if(_0x4310d3[_0x114e7c(0x92,0x11d)])_0x5cb7eb[_0x114e7c(0x39d,0x1e0)]=_0x3f6280['tGxeB'](_0x906fef,_0x234d0e[_0x2f7b24(0x46e,0x322)]);if(_0x63d2fb[_0x2f7b24(0xcb,0x22a)])_0x5cb7eb[_0x114e7c(0x250,0x63)+_0x2f7b24(0x14e,0x239)+'T']=_0x5bf58d['host'];const _0x3cf20e=_0x3f6280['fkmSQ'](_0x234d67,_0x5e4768['execP'+_0x2f7b24(0x2d9,0x494)],[_0x49b7d8,_0x40fbdd['strin'+'gify'](_0x5cb7eb)],{'cwd':_0x1e6365,'env':_0x1b97e8,'stdio':_0x3f6280[_0x2f7b24(0x63e,0x59e)]}),_0xfde61c=_0x16b91c[_0x114e7c(-0x40,0x11d)]||_0x2b12e1[_0x2f7b24(0x48b,0x3e5)]||0xf05*-0x1+-0xf7b*-0x2+-0x271;_0xbd00ff[_0x2f7b24(0x48f,0x37b)](_0x2f7b24(0x354,0x345)+_0x2f7b24(0x355,0x289)+_0x114e7c(0x292,0x193)+_0x2f7b24(0x31f,0x381)+_0x114e7c(0x140,0x201)+'tchdo'+_0x2f7b24(0x2a9,0x47a)+_0x2f7b24(0x40c,0x53e)+_0x114e7c(0x311,0x251)+_0x114e7c(-0x23f,-0x44)+_0x2f7b24(0x536,0x578)),_0x3a2662['log'](_0x2f7b24(0x365,0x1bf)+_0x114e7c(0x457,0x2da)+'/loca'+'lhost'+':'+_0xfde61c),_0x5c62f7[_0x2f7b24(0x3f2,0x37b)](_0x2f7b24(0x3de,0x4ab)+_0x2f7b24(0x4b9,0x2e3)+_0x2f7b24(0x44f,0x4e8)+_0x2f7b24(0x2bc,0x3c5)+'for\x20r'+_0x2f7b24(0x448,0x4db)+_0x2f7b24(0x14c,0x2bb)+_0x114e7c(0x2eb,0x244)),_0x40c8a3['on'](_0x114e7c(0xa5,0xc2)+'T',()=>{function _0x5135e3(_0x2e6645,_0x2e7c3c){return _0x114e7c(_0x2e6645,_0x2e7c3c-0x47d);}function _0x24620c(_0x51530e,_0x31c6f2){return _0x114e7c(_0x31c6f2,_0x51530e-0x47d);}_0x3cf20e[_0x24620c(0x7e6,0x6fd)](_0x4c389c[_0x24620c(0x5cd,0x512)]);}),_0x37d4ca['on'](_0x114e7c(0x2e8,0x330)+'RM',()=>{function _0x431cc2(_0xe561a8,_0x27d296){return _0x2f7b24(_0xe561a8,_0x27d296-0xfc);}_0x3cf20e['kill'](_0x431cc2(0x52a,0x631)+'RM');}),_0x3cf20e['on'](_0x114e7c(0xfa,0x14d),_0x257a08=>{function _0x44fb0d(_0x450302,_0x304e1b){return _0x114e7c(_0x304e1b,_0x450302-0x46d);}function _0x4f973b(_0x45524c,_0x19788f){return _0x114e7c(_0x45524c,_0x19788f- -0xd);}_0x4813cf[_0x4f973b(0x1ca,0x140)](_0x4c389c[_0x44fb0d(0x658,0x4d1)](_0x257a08,0xa72+0x1f5a*0x1+0x2*-0x14e6));});}else{try{_0x3f6280['yzYGB'](unlinkSync,WATCHDOG_PID_FILE);}catch{}return null;}}function _0x114e7c(_0x909fcd,_0x562f7d){return _0x6aac3f(_0x562f7d-0x7e,_0x909fcd);}return _0x73d70b;}function getWatchdogState(){function _0x4a86ad(_0x2ea751,_0x49e193){return _0x6aac3f(_0x49e193-0x56d,_0x2ea751);}function _0x1ca02f(_0x8ec09a,_0x4340c8){return _0x6aac3f(_0x8ec09a-0x54,_0x4340c8);}const _0x58a35f={'fDkqM':function(_0x36276f,_0x353050,_0x177657){return _0x36276f(_0x353050,_0x177657);},'wdUlT':_0x1ca02f(0xc9,0x114)+_0x4a86ad(0x68b,0x65f)+'on','XLpEi':function(_0x4009ac,_0x5984da){return _0x4009ac(_0x5984da);},'YaRQd':function(_0x2d1c7f,_0x56fd37){return _0x2d1c7f!==_0x56fd37;},'sqpbC':function(_0x2c28c4,_0x251880){return _0x2c28c4===_0x251880;},'Dpyrn':'lPTZs','aGIzW':function(_0x29939a,_0x3668ab,_0x19b62d){return _0x29939a(_0x3668ab,_0x19b62d);},'sgvIv':'utf8'};if(!_0x58a35f[_0x1ca02f(-0x5a,0x11e)](existsSync,WATCHDOG_STATE_FILE))return null;try{if(_0x58a35f[_0x1ca02f(-0x59,-0x9b)]('lPTZs',_0x58a35f[_0x1ca02f(0x25a,0x2b0)]))return JSON[_0x1ca02f(0x261,0x421)](_0x58a35f['aGIzW'](readFileSync,WATCHDOG_STATE_FILE,_0x58a35f[_0x4a86ad(0x7de,0x784)]));else{delete _0x49a83c[_0x1ca02f(0x365,0x273)][_0x58a35f[_0x1ca02f(0x235,0x26f)](_0x476dad,_0x355b0a,_0x58a35f['wdUlT'])];const _0x324c01=_0x58a35f[_0x4a86ad(0x5d5,0x4bf)](_0x161af1,_0x58a35f[_0x4a86ad(0x6a0,0x74e)](_0x288ce4,_0x276df4,_0x58a35f[_0x4a86ad(0x7e9,0x7b2)])),_0x2f7bb5=_0x324c01['versi'+'on'];_0x58a35f[_0x1ca02f(0x338,0x332)](_0x2f7bb5,_0x45e455)?_0x1439cb[_0x4a86ad(0x734,0x665)]('\x0a⬡\x20Up'+_0x1ca02f(0x1ab,0x316)+_0x4a86ad(0x8e5,0x6e5)+_0x505d3d+_0x4a86ad(0x7a0,0x679)+_0x2f7bb5):_0x51080f[_0x4a86ad(0x562,0x665)]('\x0a⬡\x20Al'+_0x1ca02f(0x55,-0x168)+_0x1ca02f(0x1c6,0x300)+_0x1ca02f(0x31d,0x20f)+'test\x20'+_0x4a86ad(0x647,0x6cc)+_0x1ca02f(0xd5,0x149)+_0x93bd24+').');}}catch{return null;}}function formatUptime(_0x5f5cce){const _0x49a63d={};_0x49a63d[_0x124b39(-0x5b,-0x172)]=function(_0x20a82a,_0x453bca){return _0x20a82a/_0x453bca;};function _0x124b39(_0x5a3c9e,_0x26bc09){return _0x6aac3f(_0x5a3c9e- -0x3c,_0x26bc09);}_0x49a63d[_0x1ae7fc(-0x1ad,-0x2f0)]=function(_0x4ad9c9,_0x43d0ab){return _0x4ad9c9/_0x43d0ab;},_0x49a63d[_0x124b39(0xdd,-0xe7)]=function(_0x555c9a,_0x571bbf){return _0x555c9a/_0x571bbf;},_0x49a63d[_0x1ae7fc(0xac,0xe6)]=function(_0x33581c,_0x30a216){return _0x33581c>_0x30a216;},_0x49a63d['xumTA']=function(_0x56450e,_0x212088){return _0x56450e%_0x212088;},_0x49a63d[_0x124b39(0x5c,0xb4)]=function(_0x17cd6d,_0x192399){return _0x17cd6d%_0x192399;},_0x49a63d[_0x1ae7fc(-0xb6,0x23)]=function(_0x46cf7b,_0x4cbb42){return _0x46cf7b%_0x4cbb42;},_0x49a63d['GNIeY']=function(_0xb74d0c,_0x4f5af1){return _0xb74d0c%_0x4f5af1;};const _0x3ec8d4=_0x49a63d,_0x1b4180=Math[_0x124b39(0xbd,0x232)](_0x3ec8d4['XdehE'](_0x5f5cce,-0x1710+-0x13*0x1ed+0x3f8f)),_0x401cc3=Math[_0x1ae7fc(0x1,-0x45)](_0x3ec8d4[_0x1ae7fc(-0x1ad,-0x70)](_0x1b4180,-0x1151+0x1*-0x1949+0x156b*0x2));function _0x1ae7fc(_0x3e8ceb,_0x525ae2){return _0x6aac3f(_0x3e8ceb- -0xf8,_0x525ae2);}const _0xbe9293=Math[_0x1ae7fc(0x1,-0x55)](_0x401cc3/(0xe05+0xecc*-0x1+0x103*0x1)),_0x47d49e=Math[_0x1ae7fc(0x1,-0x95)](_0x3ec8d4[_0x124b39(0xdd,-0x112)](_0xbe9293,-0x2645*0x1+-0x217*-0xb+0x60*0x29));if(_0x3ec8d4['apEXD'](_0x47d49e,0x3f6*0x6+-0x1ef*0x1+0x51*-0x45))return _0x47d49e+'d\x20'+_0x3ec8d4['xumTA'](_0xbe9293,0x691+0x2384+-0x29fd)+'h\x20'+_0x3ec8d4[_0x1ae7fc(-0x60,0x10c)](_0x401cc3,0x1fbf+0x45*0x59+-0x1bc*0x20)+'m';if(_0x3ec8d4[_0x124b39(0x168,0xc2)](_0xbe9293,-0x7*-0x559+-0x1*0x19f9+-0xa3*0x12))return _0xbe9293+'h\x20'+_0x401cc3%(-0x1a52+0xb*-0xef+0x24d3)+'m\x20'+_0x3ec8d4[_0x124b39(0x6,0x13)](_0x1b4180,-0x1b53+0x1*0x15bb+-0x2*-0x2ea)+'s';if(_0x401cc3>-0x1*-0x17f2+0x17e*0x1+0x65c*-0x4)return _0x401cc3+'m\x20'+_0x3ec8d4[_0x124b39(0xa3,0x243)](_0x1b4180,-0x1758+0xbb2+0xbe2)+'s';return _0x1b4180+'s';}if(command==='stop'){const watchdogPid=getWatchdogPid();if(watchdogPid){try{process[_0x210841(0x4ff,0x4ad)](watchdogPid,'SIGTE'+'RM'),console[_0x210841(0x30c,0x157)](_0x210841(0x2d6,0x4c5)+_0x6aac3f(-0xc,-0xb3)+_0x210841(0x1c0,0x26a)+_0x210841(0x237,0x418)+_0x210841(0x176,0xdb)+'\x20(PID'+'\x20'+watchdogPid+').');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}}catch(_0x508b77){console[_0x210841(0x2fb,0x4cc)](_0x210841(0x469,0x49c)+_0x210841(0x535,0x43d)+_0x6aac3f(0xdb,0x1fa)+_0x210841(0x2b5,0x23f)+_0x6aac3f(-0xc,-0x4)+_0x6aac3f(-0x54,0x74)+_0x6aac3f(0xa4,0x266)+_0x210841(0x169,0xb6)+watchdogPid+'):',_0x508b77['messa'+'ge']),process[_0x6aac3f(0xcf,-0x70)](0x26b3+-0x362+0x10*-0x235);}process[_0x6aac3f(0xcf,0x1d1)](0x92*0x2b+0x1a9e+-0x3324);}const pid=getPid();!pid&&(console['log'](_0x210841(0x2d6,0x276)+'ink\x20i'+'s\x20not'+_0x210841(0x1bf,-0x2d)+'ing.'),process[_0x6aac3f(0xcf,-0x14)](0xe53*0x2+0x715+-0x23bb));try{process[_0x210841(0x4ff,0x57a)](pid,'SIGTE'+'RM'),console['log'](_0x210841(0x2d6,0x484)+_0x6aac3f(0x6,-0x1c0)+_0x6aac3f(-0x4e,0x12c)+_0x210841(0x1ad,0x182)+'D\x20'+pid+').');try{unlinkSync(PID_FILE);}catch{}}catch(_0x488df8){console[_0x6aac3f(0xe7,0x119)](_0x210841(0x469,0x582)+_0x210841(0x535,0x649)+_0x6aac3f(0xdb,-0x128)+_0x210841(0x2b5,0x38b)+_0x6aac3f(0x289,0xd6)+_0x6aac3f(0x126,-0x60)+pid+'):',_0x488df8[_0x6aac3f(0x6a,0x17f)+'ge']),process[_0x210841(0x2e3,0x4cd)](0x65*-0x1d+-0x5*0x59c+0x277e);}process['exit'](0x85d+0x1522+-0x1d7f);}function _0x6aac3f(_0x543053,_0x3ae6ed){return _0x43f7(_0x543053- -0x1ed,_0x3ae6ed);}if(command===_0x6aac3f(0x148,0x2ff)+'e'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x210841(0x306,0x362)+'on')),currentVersion=pkg[_0x210841(0x373,0x53d)+'on'];console[_0x6aac3f(0xf8,-0x4d)](_0x210841(0x4a3,0x3dd)+_0x6aac3f(0x225,0x18d)+_0x6aac3f(0x15f,0x26)+_0x6aac3f(0x10e,-0xc3)+currentVersion),console[_0x6aac3f(0xf8,0x152)]('⬡\x20Che'+_0x210841(0x156,0xfa)+_0x210841(0x436,0x41a)+_0x210841(0x35c,0x3f4)+_0x6aac3f(0x317,0x1f5)+'\x0a');const wasRunning=!!(getWatchdogPid()||getPid());if(wasRunning){console[_0x6aac3f(0xf8,0x2a8)](_0x210841(0x38e,0x587)+_0x6aac3f(0xbb,-0x10b)+'\x20Upli'+_0x210841(0x22c,0x11b)+_0x6aac3f(0x251,0x3cb)+_0x6aac3f(0x148,0x27b)+_0x6aac3f(0x125,0x2d4));const watchdogPid=getWatchdogPid(),serverPid=getPid(),pidToKill=watchdogPid||serverPid;try{process['kill'](pidToKill,'SIGTE'+'RM');try{unlinkSync(WATCHDOG_PID_FILE);}catch{}try{unlinkSync(PID_FILE);}catch{}const _0x53ffc7={};_0x53ffc7[_0x6aac3f(0x291,0x383)]=_0x210841(0x3f8,0x284)+'e',execSync('sleep'+_0x6aac3f(0xaf,0x114)+_0x210841(0x2d1,0x37a)+'null\x20'+'||\x20ti'+_0x210841(0x455,0x2bd)+'\x20/t\x201'+'\x20/nob'+'reak\x20'+_0x6aac3f(0x1d,-0x18c)+_0x210841(0x42e,0x424),_0x53ffc7);}catch{}}try{console[_0x210841(0x30c,0x457)]('⬡\x20Upd'+_0x210841(0x1ae,0x33f)+_0x210841(0x333,0x362)+_0x210841(0x14b,0x29b)+_0x6aac3f(-0x3a,0x1b9)+_0x6aac3f(0x2e,-0xbd)+_0x6aac3f(0xb3,0x4f)+_0x6aac3f(-0xc3,-0x90));const _0x4bfb3a={};_0x4bfb3a[_0x6aac3f(0x291,0x419)]='inher'+'it',execSync(_0x210841(0x539,0x695)+_0x6aac3f(-0x88,-0x152)+_0x6aac3f(-0x72,0xab)+'moonc'+_0x210841(0x18e,0x9b)+'y/upl'+_0x210841(0x1fb,0x378)+_0x210841(0x34e,0x383),_0x4bfb3a);}catch(_0x5f0939){console[_0x6aac3f(0xe7,0x207)](_0x6aac3f(-0x7d,-0x14b)+_0x6aac3f(0x14,-0x59)+_0x6aac3f(0x2b0,0x17b)+'d:',_0x5f0939[_0x6aac3f(0x6a,-0x112)+'ge']),console[_0x210841(0x2fb,0x384)](_0x6aac3f(0x78,0x88)+_0x210841(0x1bf,0x328)+_0x6aac3f(0xbe,-0x11e)+'anual'+_0x6aac3f(0x1e5,0x99)+_0x6aac3f(-0xb7,-0xae)+'date\x20'+_0x6aac3f(0x1b,0xf9)+_0x6aac3f(-0x96,-0x230)+_0x210841(0x2c6,0xd8)+'/upli'+_0x210841(0x31a,0x44d)+'at');if(wasRunning){console['log'](_0x210841(0x244,0x2f4)+_0x6aac3f(0x1d3,0x355)+_0x6aac3f(0xbc,0x9f)+'plink'+'...');const _0x1dba67={};_0x1dba67[_0x210841(0x4a5,0x36f)]=_0x6aac3f(0x28b,0x29c)+'it',execSync(_0x6aac3f(0x313,0x3a4)+'k-cha'+_0x210841(0x3ad,0x4d1)+_0x210841(0x170,0x135)+_0x210841(0x201,0x17b)+'h',_0x1dba67);}process[_0x210841(0x2e3,0x3b1)](0xf*0x125+-0x1f8+-0xa*0x185);}try{delete require[_0x6aac3f(0x311,0x113)][join(ROOT,_0x210841(0x289,0x36c)+_0x210841(0x306,0x261)+'on')];const newPkg=require(join(ROOT,_0x6aac3f(0x75,-0x55)+'ge.js'+'on')),newVersion=newPkg['versi'+'on'];newVersion!==currentVersion?console['log'](_0x6aac3f(-0x7d,-0x5a)+'dated'+_0x210841(0x38c,0x24e)+currentVersion+_0x6aac3f(0x10c,-0xa6)+newVersion):console['log'](_0x6aac3f(0x1eb,0x2d6)+_0x210841(0x215,0x8b)+_0x210841(0x386,0x22f)+_0x6aac3f(0x2c9,0x1b8)+_0x6aac3f(-0x3e,-0x1e1)+_0x6aac3f(0x15f,0x2d0)+_0x210841(0x295,0x26c)+currentVersion+').');}catch{console[_0x6aac3f(0xf8,0x295)]('\x0a⬡\x20Up'+_0x210841(0x228,0x15b)+_0x210841(0x42d,0x5ef)+_0x6aac3f(0x187,0xa7));}if(wasRunning){console[_0x6aac3f(0xf8,0x2f4)](_0x210841(0x494,0x619)+_0x210841(0x329,0x4a9)+_0x6aac3f(0x19a,0x305)+_0x6aac3f(0x31a,0x2c7)+'..');try{const _0x4a95b8={};_0x4a95b8['stdio']=_0x6aac3f(0x28b,0x362)+'it',execSync(_0x6aac3f(0x313,0x4ee)+'k-cha'+_0x210841(0x3ad,0x4cd)+'rt\x20--'+'detac'+'h',_0x4a95b8);}catch{console[_0x210841(0x30c,0x2ae)](_0x6aac3f(0x2ed,0x2a0)+_0x210841(0x1aa,0x1a)+_0x6aac3f(0x2e5,0x29b)+_0x210841(0x4c4,0x32a)+_0x210841(0x4da,0x411)+_0x210841(0x250,0x20c)+_0x210841(0x521,0x631)+'ly\x20wi'+'th:\x20u'+_0x210841(0x242,0x1c5)+'-chat'+'\x20star'+'t');}}process[_0x210841(0x2e3,0x285)](0x37*-0x5f+0x1c1*0x15+-0x1*0x106c);}if(command===_0x210841(0x463,0x535)+'s'){const watchdogPid=getWatchdogPid(),state=getWatchdogState();if(watchdogPid&&state){const uptime=formatUptime(Date['now']()-state['start'+_0x6aac3f(0x20,0x16e)]);console['log']('⬡\x20Upl'+_0x210841(0x286,0x33f)+'s\x20run'+_0x6aac3f(0x22,-0xbd)+'(watc'+_0x210841(0x356,0x33a)+'mode)'),console['log'](_0x6aac3f(-0xb6,-0x191)+_0x6aac3f(-0x41,0x14b)+'\x20PID:'+'\x20'+watchdogPid);if(state[_0x210841(0x24b,0x31c)+_0x210841(0x395,0x53b)])console[_0x210841(0x30c,0x146)](_0x210841(0x1b6,0x2dd)+_0x6aac3f(-0x7,-0x17b)+_0x210841(0x4c9,0x6b3)+'\x20'+state['serve'+_0x210841(0x395,0x4e5)]);console[_0x210841(0x30c,0x435)](_0x6aac3f(-0xdc,-0x8a)+_0x210841(0x53a,0x489)+_0x210841(0x424,0x414)+'\x20'+uptime),console[_0x210841(0x30c,0x3ed)]('\x20\x20Res'+_0x6aac3f(0xcb,0x222)+':\x20\x20\x20\x20'+'\x20'+(state[_0x6aac3f(0x207,0xeb)+'rtCou'+'nt']||-0x1b01+-0x19bb+-0x2a3*-0x14));if(state['backo'+'ffMs']>-0x1e4d*0x1+-0x15ad+0x37e2)console['log'](_0x210841(0x183,0x309)+'koff:'+_0x6aac3f(0x210,0xd0)+'\x20'+state[_0x6aac3f(0x30b,0x119)+'ffMs']+'ms');}else{const pid=getPid();pid?console[_0x6aac3f(0xf8,0xc)](_0x6aac3f(0xc2,-0x12)+_0x210841(0x286,0xed)+'s\x20run'+'ning\x20'+_0x210841(0x44c,0x392)+pid+').'):console['log'](_0x210841(0x2d6,0x287)+'ink\x20i'+'s\x20not'+_0x210841(0x1bf,0x1dd)+_0x6aac3f(0x2d3,0xf5));}process[_0x210841(0x2e3,0x2e9)](0x1fd+0x4*0x91a+0x2665*-0x1);}if(command===_0x210841(0x19f,-0x2d)+_0x6aac3f(0x212,0x8c)){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x6aac3f(0x75,-0xbe)+_0x6aac3f(0xf2,0x27b)+'on')),readline=await import(_0x6aac3f(0x2bf,0x4a7)+'ine'),{rmSync}=await import('fs');console[_0x6aac3f(0xf8,0xe4)](_0x210841(0x13e,0x2f)+_0x210841(0x308,0x1db)+_0x210841(0x31f,0x27b)+_0x6aac3f(0x29d,0x236)+_0x6aac3f(0x96,0x13d)+pkg[_0x210841(0x373,0x2a4)+'on']+'\x0a'),console[_0x210841(0x30c,0x148)](_0x210841(0x1ac,0x56)+_0x210841(0x3e6,0x3fd)+'l:'),console[_0x210841(0x30c,0x22f)]('\x20\x20\x20\x20•'+_0x210841(0x48a,0x337)+_0x6aac3f(0x31c,0x193)+'Uplin'+_0x6aac3f(0xa9,-0x8e)+_0x210841(0x1fd,0x6c)+'nd\x20wa'+_0x210841(0x3b0,0x2cc)+'g'),console['log']('\x20\x20\x20\x20•'+_0x210841(0x162,0xfd)+_0x210841(0x1b5,0x34b)+_0x6aac3f(0x64,0x42)+_0x210841(0x246,0x208)+_0x210841(0x450,0x556)+'\x20(.en'+_0x210841(0x305,0x2fd)+'nfig\x20'+_0x210841(0x4b4,0x33f)+')'),console[_0x210841(0x30c,0x201)]('\x20\x20\x20\x20•'+_0x210841(0x162,0x250)+_0x210841(0x1b5,0x174)+'l\x20upl'+_0x210841(0x3b3,0x2bf)+_0x6aac3f(0x1a9,0x2d9)+_0x210841(0x50e,0x30b)+_0x6aac3f(-0xa1,-0x18f)),console['log'](_0x6aac3f(0xf0,0x23)+_0x210841(0x162,0x252)+_0x210841(0x1b5,0xd5)+_0x6aac3f(0x1c8,0x13f)+'s\x20and'+_0x210841(0x43d,0x5fc)+_0x6aac3f(0x2a0,0x36a)),console[_0x6aac3f(0xf8,0x21f)](_0x6aac3f(0xf0,0x56)+_0x210841(0x162,0x216)+_0x6aac3f(-0xd2,-0x1a6)+'ent\x20a'+_0x6aac3f(0x1b7,0x228)+_0x210841(0x33b,0x2d4)+_0x210841(0x13d,0x236)+_0x6aac3f(0x113,0x251)+'es'),console[_0x210841(0x30c,0x31c)](_0x6aac3f(0xf0,0x33)+'\x20Unin'+_0x6aac3f(-0x4c,-0x225)+_0x210841(0x530,0x547)+_0x210841(0x198,0x19a)+'ackag'+_0x210841(0x182,0x2d3)+'bally'+'\x0a'),console['log'](_0x210841(0x36e,0x483)+_0x210841(0x245,0x1df)+'actio'+_0x6aac3f(0x1bf,0x16b)+_0x210841(0x2ba,0x164)+'e\x20und'+'one.\x0a');const _0x1b8531={};_0x1b8531['input']=process[_0x6aac3f(0x1e9,0x217)],_0x1b8531[_0x6aac3f(0x246,0x172)+'t']=process['stdou'+'t'];const rl=readline['creat'+_0x210841(0x2c4,0x32e)+_0x210841(0x526,0x328)](_0x1b8531),answer=await new Promise(_0x22de45=>{const _0x42ccd6={};_0x42ccd6[_0x1c69d6(0x551,0x5ef)]=_0x2f2b05(0x4e1,0x6cc)+'e\x20\x22un'+_0x2f2b05(0x53a,0x558)+_0x2f2b05(0x77c,0x943)+_0x2f2b05(0x5f8,0x63c)+_0x1c69d6(0x4ff,0x428)+'\x20';function _0x2f2b05(_0x5390f8,_0x1b1512){return _0x6aac3f(_0x5390f8-0x4f9,_0x1b1512);}function _0x1c69d6(_0x235126,_0x93f369){return _0x6aac3f(_0x235126-0x5ab,_0x93f369);}const _0x2f9092=_0x42ccd6;rl[_0x1c69d6(0x736,0x74e)+_0x1c69d6(0x876,0x72d)](_0x2f9092[_0x2f2b05(0x49f,0x5a3)],_0x22de45);});rl[_0x6aac3f(-0x65,-0x1c8)]();answer['trim']()['toLow'+_0x6aac3f(0x8f,0x20f)+'e']()!=='unins'+_0x6aac3f(0x212,0x3e7)&&(console[_0x210841(0x30c,0x232)](_0x210841(0x317,0x24d)+_0x6aac3f(-0x4d,0x82)+_0x210841(0x4d6,0x49e)+_0x210841(0x387,0x56c)+_0x6aac3f(0xa3,0x17e)+_0x6aac3f(0x16c,0x96)+_0x210841(0x24a,0x422)),process[_0x6aac3f(0xcf,-0xe3)](0x1300+0x2235+-0x3535));console[_0x210841(0x30c,0x1f1)]('');const watchdogPid=getWatchdogPid(),serverPid=getPid();if(watchdogPid)try{process[_0x210841(0x4ff,0x434)](watchdogPid,'SIGTE'+'RM'),console[_0x210841(0x30c,0x4f5)](_0x6aac3f(0x1d9,0x325)+_0x210841(0x1c6,0x16f)+_0x6aac3f(0x22b,0x238)+'chdog'+_0x6aac3f(-0xde,-0x181)+'\x20'+watchdogPid+')');}catch{}if(serverPid)try{process[_0x210841(0x4ff,0x643)](serverPid,'SIGTE'+'RM'),console[_0x6aac3f(0xf8,-0x63)]('\x20\x20✓\x20S'+'toppe'+_0x210841(0x46e,0x38d)+_0x6aac3f(0x316,0x4f5)+_0x6aac3f(0x126,0xcb)+serverPid+')');}catch{}!watchdogPid&&!serverPid&&console[_0x6aac3f(0xf8,0x293)](_0x6aac3f(0x1d9,-0x1f)+_0x210841(0x4c2,0x2d5)+_0x210841(0x3ac,0x3b1)+_0x6aac3f(-0xcb,-0x18)+'ng');const legacyToRemove=[_0x6aac3f(0x208,0x22f),_0x6aac3f(0x167,0x36a)+_0x6aac3f(0x2af,0x3a5)+'n',_0x6aac3f(-0x8d,0x40)+_0x6aac3f(0x202,0x2c6)+'d',_0x210841(0x187,0x347)+_0x6aac3f(0x1da,0x1c3)+_0x210841(0x3b0,0x45b)+_0x210841(0x1c3,0x10),_0x210841(0x187,0x29c)+'nk-wa'+_0x210841(0x3b0,0x37a)+_0x210841(0x4c3,0x69f)+'n',_0x6aac3f(-0x8d,0xff)+'nk-wa'+_0x210841(0x3b0,0x1cc)+_0x210841(0x508,0x46d),'.upli'+_0x6aac3f(-0x37,-0x127)+'rver.'+'log',_0x210841(0x342,0x4dc)+_0x210841(0x2f2,0x42b)+_0x210841(0x3a0,0x402),_0x210841(0x27e,0x32a)+_0x210841(0x26f,0x3c5)+'ync.j'+_0x6aac3f(0x18c,0x313),_0x210841(0x388,0x514)+_0x6aac3f(-0xd3,-0x1c9)+_0x210841(0x474,0x5d6)+_0x6aac3f(0x12f,0x135)+_0x6aac3f(0x18c,0x351),'misse'+_0x6aac3f(0x166,-0x4d)+'sages'+_0x210841(0x3e9,0x300),'uploa'+'ds',_0x210841(0x379,0x57a)+_0x6aac3f(0x7e,0x1d6),'publi'+_0x6aac3f(0x43,0x165)+'io','publi'+_0x6aac3f(0x27,0x1f2)+_0x6aac3f(0x12,-0xd0)+'ts'];let removed=0x358*0x8+-0x1b3+-0x247*0xb;for(const item of legacyToRemove){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x2ca151={};_0x2ca151[_0x210841(0x191,0x329)+_0x210841(0x2ad,0x19f)]=!![],_0x2ca151[_0x210841(0x473,0x5a5)]=!![],rmSync(fullPath,_0x2ca151),removed++;}catch{}}if(existsSync(DATA_DIR))try{const _0x1b9dec={};_0x1b9dec['recur'+'sive']=!![],_0x1b9dec[_0x210841(0x473,0x444)]=!![],rmSync(DATA_DIR,_0x1b9dec),removed++,console[_0x210841(0x30c,0x16f)]('\x20\x20✓\x20R'+_0x6aac3f(0xb5,0x297)+_0x6aac3f(0xeb,0x13)+_0x210841(0x3db,0x4ba)+_0x210841(0x3f1,0x292)+_0x6aac3f(0x1a0,0x2b8)+DATA_DIR);}catch{}console['log']('\x20\x20✓\x20R'+'emove'+'d\x20'+removed+(_0x210841(0x173,0x1ca)+_0x6aac3f(-0x84,0x114)+'s/dir'+_0x210841(0x3f1,0x4e1)+'ies')),console[_0x6aac3f(0xf8,0xe8)]('\x20\x20✓\x20R'+_0x210841(0x27f,0x212)+_0x210841(0x2a9,0x499)+_0x210841(0x401,0x214)+_0x6aac3f(0x149,0x53)+_0x6aac3f(0x139,0x77));try{const _0x5ae74d={};_0x5ae74d[_0x6aac3f(0x291,0x47d)]='inher'+'it',execSync(_0x210841(0x539,0x4fd)+_0x210841(0x185,0x191)+_0x210841(0x3f0,0x254)+_0x6aac3f(0x2bd,0x254)+_0x210841(0x4f1,0x589)+_0x6aac3f(0x327,0x52a)+_0x210841(0x527,0x323)+'k-cha'+'t',_0x5ae74d),console[_0x210841(0x30c,0x388)]('\x0a\x20\x20⬡\x20'+_0x210841(0x308,0x105)+'k\x20has'+_0x6aac3f(0x1be,0x2c0)+'\x20comp'+_0x6aac3f(-0x23,0x53)+_0x6aac3f(0x1ab,0x285)+_0x210841(0x4b1,0x687)+_0x6aac3f(0x1ad,-0x43)),console['log']('\x20\x20Tha'+'nks\x20f'+_0x210841(0x47f,0x5ee)+_0x210841(0x2d0,0x2e3)+_0x6aac3f(0x2e,0x1df)+_0x210841(0x506,0x6a0));}catch(_0x4a351b){console[_0x210841(0x2fb,0x2d8)](_0x6aac3f(0x101,0x13a)+_0x6aac3f(0x16e,0x75)+_0x210841(0x51e,0x4c9)+_0x210841(0x1f3,0x15d)+_0x210841(0x1c8,0x32)+_0x210841(0x37f,0x336)+_0x210841(0x289,0x2bd)+_0x210841(0x1d4,0xc2)),console['error'](_0x210841(0x476,0x441)+_0x6aac3f(0xb4,0x54)+_0x210841(0x1a4,0x39b)+_0x6aac3f(0x16b,0x128)+_0x6aac3f(-0x75,0xc3)+'tall\x20'+'-g\x20@m'+_0x210841(0x17e,0xe1)+'mpany'+_0x210841(0x4bb,0x546)+'nk-ch'+'at\x0a'),process['exit'](0x31c+-0x7d3+-0x12e*-0x4);}process['exit'](-0x11*-0x1bb+0x871*-0x3+0x83*-0x8);}if(command===_0x6aac3f(0x120,0x2af)){const LOG_FILE=join(ROOT,'serve'+'r.log'),ALT_LOG_FILE=join(ROOT,'.upli'+_0x210841(0x1dd,0xe8)+_0x6aac3f(-0x5,-0x160)+_0x210841(0x30c,0x42d)),DATA_LOG_FILE=join(DATA_DIR,'.upli'+_0x210841(0x1dd,0x1eb)+_0x210841(0x20f,0x133)+_0x6aac3f(0xf8,0x9e)),logFile=existsSync(DATA_LOG_FILE)?DATA_LOG_FILE:existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:null;!logFile&&(console[_0x6aac3f(0xf8,0x26e)]('⬡\x20No\x20'+'log\x20f'+'ile\x20f'+_0x210841(0x251,0x25c)),console[_0x210841(0x30c,0x3b5)](_0x210841(0x33e,0x2a4)+_0x210841(0x346,0x525)+_0x6aac3f(0x1a3,0x103)+_0x6aac3f(0x5a,0x80)+':'),console['log'](_0x6aac3f(0x306,0x10b)+LOG_FILE),console['log'](_0x6aac3f(0x306,0x1ac)+ALT_LOG_FILE),console['log'](''),console['log'](_0x6aac3f(-0x89,0x12)+_0x210841(0x438,0x26f)+_0x6aac3f(0x11c,0x158)+'ted\x20w'+_0x210841(0x43b,0x34a)+_0x6aac3f(-0x7e,-0x133)+_0x6aac3f(0x38,0x1ea)+_0x210841(0x160,0x2ae)),console['log'](_0x6aac3f(0x112,0x13)+_0x210841(0x2b2,0x2ce)+_0x6aac3f(0x30c,0x2e0)+_0x210841(0x332,0x187)+'irst:'+_0x210841(0x37e,0x4c1)+_0x210841(0x31a,0x454)+_0x210841(0x48c,0x5a0)+_0x210841(0x4ce,0x4ae)),process[_0x6aac3f(0xcf,0x104)](0x10aa+-0x1c6+-0xee3*0x1));const lines=flags[_0x6aac3f(0x296,0xd1)]||0x203b+-0x47a+-0x1*0x1b8f;try{const content=readFileSync(logFile,'utf8'),allLines=content[_0x210841(0x499,0x2c3)]('\x0a'),tail=allLines[_0x210841(0x4a1,0x541)](-lines)[_0x210841(0x3b9,0x42d)]('\x0a');console['log']('⬡\x20Sho'+_0x210841(0x372,0x326)+'last\x20'+lines+(_0x6aac3f(0x1b3,0x7d)+_0x210841(0x144,0xd)+'m\x20')+logFile+'\x0a'),console[_0x210841(0x30c,0x488)](tail);}catch(_0x1ba220){console[_0x6aac3f(0xe7,-0xb7)]('⬡\x20Fai'+_0x210841(0x535,0x475)+_0x210841(0x3f2,0x517)+_0x210841(0x435,0x287)+'\x20file'+':\x20'+_0x1ba220[_0x6aac3f(0x6a,0x226)+'ge']),process[_0x6aac3f(0xcf,-0xe9)](0x1*-0x649+0x2183+-0x1b39);}console[_0x210841(0x30c,0x2e2)](_0x6aac3f(0x150,0xad)+_0x6aac3f(-0xca,-0x277)+_0x210841(0x50c,0x3fb)+_0x6aac3f(0xe3,0x2ca)+_0x210841(0x354,0x4e3)+_0x6aac3f(-0x6f,-0x1d)+_0x6aac3f(0x1af,0x1b7)+_0x6aac3f(-0xd8,-0x2d2)+_0x6aac3f(0x268,0x31a)+_0x210841(0x410,0x429)+')\x0a');const fsModule=await import('fs');let position=statSync(logFile)['size'];const watcher=fsModule[_0x210841(0x391,0x210)](logFile,()=>{function _0x2172f3(_0x401d25,_0x3d2d2f){return _0x210841(_0x3d2d2f-0x13a,_0x401d25);}function _0x211756(_0x40f25e,_0x21160c){return _0x210841(_0x40f25e-0xa5,_0x21160c);}const _0x48cba6={};_0x48cba6[_0x2172f3(0x3f4,0x2f1)]=_0x211756(0x349,0x178)+_0x2172f3(0x543,0x5bb)+_0x2172f3(0x606,0x613),_0x48cba6['TSSaK']=function(_0x2db86a,_0x3a68bc){return _0x2db86a-_0x3a68bc;},_0x48cba6[_0x211756(0x407,0x4b0)]=_0x2172f3(0x42a,0x540),_0x48cba6[_0x2172f3(0x2c5,0x39c)]=_0x211756(0x4bc,0x2c7),_0x48cba6[_0x211756(0x3fa,0x5d5)]=function(_0x18118b,_0x52935a){return _0x18118b>_0x52935a;},_0x48cba6[_0x2172f3(0x782,0x5c2)]=function(_0x4ad826,_0x47b6fc){return _0x4ad826===_0x47b6fc;},_0x48cba6[_0x2172f3(0x51f,0x33e)]='dUrIN',_0x48cba6[_0x2172f3(0x722,0x580)]=_0x2172f3(0x38b,0x4d8),_0x48cba6['NkspE']=function(_0x141fa6,_0x6bedb4){return _0x141fa6-_0x6bedb4;},_0x48cba6[_0x2172f3(0x536,0x399)]=function(_0xcd549b,_0x3135f2){return _0xcd549b<_0x3135f2;},_0x48cba6['gapiO']=function(_0xd8d090,_0x2f19a5){return _0xd8d090!==_0x2f19a5;},_0x48cba6[_0x211756(0x52e,0x576)]=_0x2172f3(0x430,0x426);const _0xb1dd81=_0x48cba6;try{if(_0xb1dd81[_0x2172f3(0x1ab,0x39c)]===_0x211756(0x4bc,0x537)){const _0x3bd2ef=fsModule[_0x2172f3(0x45f,0x4ab)+_0x211756(0x411,0x226)](logFile,'r'),_0x3726d8=fsModule[_0x2172f3(0x436,0x33f)+_0x211756(0x262,0x24e)](_0x3bd2ef)[_0x211756(0x4a1,0x40d)];if(_0xb1dd81['xNqRh'](_0x3726d8,position)){if(_0xb1dd81[_0x2172f3(0x3bd,0x5c2)](_0xb1dd81[_0x211756(0x2a9,0x328)],_0xb1dd81['eyBaK']))_0x1ce8b8(_0xb1dd81[_0x2172f3(0x306,0x2f1)],'v'+_0x50de08+('\x20—\x20No'+_0x211756(0x580,0x5fa)+_0x211756(0x461,0x4f9)+'8\x20is\x20'+_0x2172f3(0x31f,0x359)+_0x2172f3(0x404,0x489)));else{const _0x482845=Buffer['alloc'](_0xb1dd81[_0x211756(0x378,0x46d)](_0x3726d8,position));fsModule['readS'+_0x211756(0x411,0x277)](_0x3bd2ef,_0x482845,-0x1*-0x2456+-0x89*0x2a+-0x1*0xddc,_0x482845['lengt'+'h'],position),process[_0x211756(0x42e,0x5a9)+'t'][_0x2172f3(0x734,0x581)](_0x482845[_0x2172f3(0x32d,0x31a)+_0x2172f3(0x5a4,0x578)](_0x2172f3(0x38e,0x540))),position=_0x3726d8;}}else{if(_0xb1dd81[_0x2172f3(0x2fc,0x399)](_0x3726d8,position)){if(_0xb1dd81[_0x2172f3(0x421,0x3f3)](_0xb1dd81[_0x211756(0x52e,0x38a)],_0xb1dd81[_0x211756(0x52e,0x579)])){const _0x11c7b0=_0x56b4e1[_0x2172f3(0x6db,0x5a4)](_0xb1dd81['TSSaK'](_0x38a4ca,_0x1fad97));_0x1681a2[_0x211756(0x22d,0x301)+_0x2172f3(0x544,0x4a6)](_0x428b1f,_0x11c7b0,0x7cc+-0x1*0x121+0x3*-0x239,_0x11c7b0[_0x211756(0x489,0x429)+'h'],_0x56f0f3),_0xc1085e[_0x2172f3(0x36b,0x4c3)+'t']['write'](_0x11c7b0[_0x2172f3(0x40e,0x31a)+_0x211756(0x4e3,0x476)](_0xb1dd81['JhfMj'])),_0x5d6ed5=_0x3247e2;}else position=-0x35*0xa7+-0x1229*0x1+-0x2ee*-0x12;}}fsModule['close'+_0x211756(0x262,0x365)](_0x3bd2ef);}else _0x1ad9be[_0x2172f3(0x432,0x30c)]=!![];}catch{}});process['on'](_0x6aac3f(0x44,-0x129)+'T',()=>{function _0x82663c(_0x649346,_0x516cc2){return _0x210841(_0x649346- -0xbf,_0x516cc2);}watcher[_0x82663c(0xf0,0x203)](),process['exit'](-0x536+0x5cc+0x1e*-0x5);}),process['on'](_0x6aac3f(0x2b2,0x2a1)+'RM',()=>{watcher['close'](),process['exit'](-0x1ac4+-0x439+0x1efd*0x1);});}if(command===_0x210841(0x37b,0x55d)+'g'){const ENV_FILE=existsSync(join(DATA_DIR,_0x210841(0x41c,0x412)))?join(DATA_DIR,_0x210841(0x41c,0x370)):join(ROOT,_0x6aac3f(0x208,0x389));flags[_0x6aac3f(0x11a,0x1be)]&&(console[_0x210841(0x30c,0x177)](ENV_FILE),process[_0x210841(0x2e3,0x230)](-0x16ed+-0x6b6+0x1da3));if(flags[_0x6aac3f(0x66,-0x1c)]){if(!existsSync(ENV_FILE)){const exampleFile=join(ROOT,_0x6aac3f(0x59,-0x6d)+_0x6aac3f(0x138,0x1b4)+'le');existsSync(exampleFile)?(writeFileSync(ENV_FILE,readFileSync(exampleFile,'utf8')),console[_0x210841(0x30c,0x3fd)](_0x6aac3f(0x14a,0x175)+_0x210841(0x50a,0x45e)+_0x210841(0x366,0x28b)+_0x210841(0x25e,0x429)+_0x6aac3f(0x59,0x235)+_0x210841(0x34c,0x3ca)+'le')):(writeFileSync(ENV_FILE,_0x210841(0x2c5,0x408)+'ink\x20C'+'onfig'+_0x6aac3f(0x2d0,0x3a9)+_0x6aac3f(0x2cf,0x276)),console[_0x210841(0x30c,0x1f5)](_0x210841(0x35e,0x1c2)+_0x6aac3f(0x2f6,0x489)+'empty'+_0x210841(0x319,0x466)+'\x20file'));}const editor=process.env.EDITOR||(process[_0x6aac3f(0x284,0xf4)+_0x6aac3f(0x186,0x354)]===_0x6aac3f(0x324,0x420)?'notep'+'ad':_0x6aac3f(0x1f0,0x251));console[_0x6aac3f(0xf8,-0x80)](_0x6aac3f(-0x2c,-0xda)+_0x210841(0x236,0x34e)+ENV_FILE+_0x6aac3f(0xac,0x1a1)+editor+_0x210841(0x4bd,0x45f));try{const _0x58807b={};_0x58807b[_0x6aac3f(0x291,0x415)]='inher'+'it',execSync(editor+'\x20\x22'+ENV_FILE+'\x22',_0x58807b);}catch(_0x34500d){console[_0x210841(0x2fb,0x3eb)](_0x6aac3f(0x255,0x20f)+_0x210841(0x535,0x6fe)+_0x6aac3f(0x1fb,0x3fc)+_0x6aac3f(0x2df,0x2e6)+_0x210841(0x3a6,0x33e)+_0x34500d[_0x6aac3f(0x6a,0xd6)+'ge']),console[_0x6aac3f(0xe7,-0x1)](_0x210841(0x514,0x41f)+'\x20EDIT'+_0x210841(0x1d7,0xd7)+'v\x20var'+_0x6aac3f(-0xb0,-0xd9)+_0x6aac3f(0x2b8,0x34c)+_0x210841(0x521,0x5e3)+_0x210841(0x475,0x546)+ENV_FILE),process[_0x210841(0x2e3,0x412)](0x2701*-0x1+-0x56d*-0x3+0x16bb);}process['exit'](0x5a0+0x19f5+-0x651*0x5);}!existsSync(ENV_FILE)&&(console[_0x210841(0x30c,0x243)](_0x210841(0x4c7,0x479)+_0x210841(0x366,0x4aa)+'file\x20'+_0x6aac3f(0xf3,0x2ed)+'.'),console['log'](_0x210841(0x207,0x34d)+'ate\x20o'+'ne\x20wi'+_0x6aac3f(0x2e9,0x1ad)+_0x6aac3f(0x2e,0x5)+_0x6aac3f(0xb3,-0xbe)+_0x6aac3f(0x314,0x110)+_0x210841(0x267,0x32e)+'edit'),console[_0x6aac3f(0xf8,0x1aa)](_0x210841(0x2a8,0x1e2)+'copy\x20'+_0x210841(0x28e,0x309)+_0x210841(0x454,0x360)+_0x210841(0x174,-0x5)+'\x20.env'+_0x6aac3f(0x24b,0xf9)+'ple\x20.'+'env'),process[_0x210841(0x2e3,0x498)](-0x5*0x23c+0x74*-0x40+0xb*0x3a7));const SENSITIVE_KEYS=[_0x6aac3f(0x307,0x223),_0x210841(0x419,0x47b),_0x210841(0x233,0x249)+'T',_0x210841(0x441,0x4f3)+_0x6aac3f(-0x32,-0x213),_0x210841(0x3d1,0x5a6)+_0x210841(0x4ae,0x4e8)];function maskValue(_0x16dbbc,_0x1b3ed2){const _0x1be317={};_0x1be317[_0x54f82e(0x5c1,0x6d9)]=function(_0x3779c0,_0x460ec7){return _0x3779c0||_0x460ec7;};function _0x5ec84b(_0x483624,_0x445644){return _0x210841(_0x445644-0x16d,_0x483624);}_0x1be317[_0x5ec84b(0x567,0x3e8)]=function(_0x2e6b0e,_0x20a7ec){return _0x2e6b0e<=_0x20a7ec;},_0x1be317[_0x5ec84b(0x766,0x57f)]=function(_0x57f7b7,_0x17c99b){return _0x57f7b7+_0x17c99b;},_0x1be317[_0x54f82e(0x5bd,0x3e4)]=_0x5ec84b(0x45f,0x39a);const _0x46a7f3=_0x1be317;function _0x54f82e(_0x20feb1,_0xb6f21){return _0x210841(_0x20feb1-0x3a9,_0xb6f21);}const _0x113fd2=SENSITIVE_KEYS[_0x5ec84b(0x3b1,0x3cd)](_0x12fcd0=>_0x16dbbc['toUpp'+_0x54f82e(0x64c,0x72f)+'e']()[_0x54f82e(0x56b,0x6c2)+_0x54f82e(0x5af,0x5b3)](_0x12fcd0));if(_0x46a7f3[_0x5ec84b(0x4cd,0x385)](!_0x113fd2,!_0x1b3ed2)||_0x46a7f3[_0x5ec84b(0x509,0x3e8)](_0x1b3ed2[_0x5ec84b(0x5c5,0x551)+'h'],-0x1bbb+0x590+0x162f))return _0x1b3ed2;return _0x46a7f3[_0x5ec84b(0x5b7,0x57f)](_0x1b3ed2[_0x54f82e(0x84a,0x758)](0x220e+-0x11d9*0x1+0x1*-0x1035,-0x26ba+0x1c*-0x164+0x4dae),_0x46a7f3[_0x5ec84b(0x4f7,0x381)]);}try{const content=readFileSync(ENV_FILE,_0x6aac3f(0x1f2,0x173)),entries=[];for(const line of content[_0x6aac3f(0x285,0x2e5)]('\x0a')){const trimmed=line[_0x6aac3f(0x320,0x321)]();if(!trimmed||trimmed[_0x6aac3f(0x1d3,0x110)+'sWith']('#'))continue;const eqIdx=trimmed['index'+'Of']('=');if(eqIdx===-(-0x2090+0x1*-0xd93+0x1*0x2e24))continue;const key=trimmed[_0x210841(0x4a1,0x546)](0x2b*0x12+0x2509+-0x5b9*0x7,eqIdx)[_0x210841(0x534,0x4b3)](),val=trimmed[_0x210841(0x4a1,0x374)](eqIdx+(-0xff3*0x2+-0x1316+0x32fd))[_0x6aac3f(0x320,0x43e)]();entries[_0x6aac3f(0x16f,0x24b)]([key,val]);}entries[_0x210841(0x3e4,0x599)+'h']===0xf18+0x1*0x9ae+-0x421*0x6&&(console[_0x210841(0x30c,0x2cb)]('⬡\x20.en'+_0x210841(0x25c,0x382)+'e\x20is\x20'+'empty'+_0x6aac3f(0x1ff,0x2e2)+_0x6aac3f(0x97,-0x7c)+_0x6aac3f(-0x19,0x107)+'hat\x20c'+_0x210841(0x449,0x4ec)+_0x210841(0x268,0xe0)+'it'),process[_0x210841(0x2e3,0x1ae)](0x1e33+0x1*0x207d+-0x3eb0));const maxKeyLen=Math[_0x6aac3f(0x118,0x293)](...entries[_0x6aac3f(0x188,0x69)](([_0x45433e])=>_0x45433e['lengt'+'h']));console[_0x6aac3f(0xf8,0x2a5)](_0x210841(0x13e,0x39)+'Uplin'+_0x210841(0x154,0x357)+_0x6aac3f(0x32,-0x2d)+_0x210841(0x450,0x2e2)+'\x0a'),console['log']('\x20\x20'+'Key'[_0x210841(0x3b1,0x52e)+'d'](maxKeyLen+(0x25c8+-0x1*0xe2d+-0x1799))+_0x6aac3f(0x2cc,0x135)),console['log']('\x20\x20'+'─'[_0x6aac3f(0x85,-0xf1)+'t'](maxKeyLen+(-0x19f3+-0xdff*-0x1+0xbf6))+'─'[_0x210841(0x299,0x264)+'t'](-0x1*-0xeed+0x14af+-0x2374));for(const [key,val]of entries){const display=val?maskValue(key,val):_0x210841(0x24d,0x2b0)+_0x6aac3f(0x1cd,0x327)+_0x6aac3f(0x20e,0x3de)+'m';console[_0x210841(0x30c,0x380)]('\x20\x20'+key[_0x6aac3f(0x19d,0x33f)+'d'](maxKeyLen+(0x1c80+0x1802+-0x2a*0x140))+display);}console[_0x6aac3f(0xf8,0x21f)](_0x6aac3f(-0xdf,0xd4)+_0x210841(0x36d,0x479)+ENV_FILE+'\x0a');}catch(_0xa2b1bb){console[_0x210841(0x2fb,0x4c0)](_0x210841(0x469,0x61d)+_0x210841(0x535,0x44c)+_0x210841(0x3f2,0x59f)+_0x6aac3f(0x1ce,0xe0)+'v:\x20'+_0xa2b1bb[_0x6aac3f(0x6a,0x24c)+'ge']),process[_0x210841(0x2e3,0x223)](0x1*-0x1919+-0x13c*-0x14+0x6a);}process['exit'](-0x2*0x8a2+0x2*-0x35b+0x17fa);}if(command===_0x6aac3f(0x271,0x401)+'r'){const require=createRequire(import.meta.url),pkg=require(join(ROOT,'packa'+_0x210841(0x306,0x29b)+'on'));console['log']('\x0a\x20\x20⬡\x20'+_0x210841(0x308,0x195)+_0x6aac3f(0xed,-0x8f)+_0x6aac3f(-0x25,0x1a5)+'\x20v'+pkg['versi'+'on']+'\x0a');const results=[];function pass(_0x4c3407,_0x52e638){const _0x5dd241={};function _0x3751b4(_0x326109,_0x2fdbb5){return _0x210841(_0x326109- -0x3b7,_0x2fdbb5);}_0x5dd241['BTFwy']=_0x48b93c(0x369,0x43f);const _0x26c9ba=_0x5dd241,_0x3ccbac={};_0x3ccbac['statu'+'s']=_0x26c9ba['BTFwy'],_0x3ccbac[_0x48b93c(0x212,0x3c3)]=_0x4c3407,_0x3ccbac[_0x48b93c(0x427,0x23d)+'l']=_0x52e638;function _0x48b93c(_0x23e593,_0x1dfd4a){return _0x210841(_0x1dfd4a- -0x2c,_0x23e593);}results[_0x48b93c(0x2de,0x357)](_0x3ccbac);}function fail(_0x3d2e70,_0x50ab36){const _0x55a902={};_0x55a902[_0x591bc5(0x384,0x31c)]=_0x591bc5(0x352,0x42d);const _0x46c04e=_0x55a902,_0xc01fe={};_0xc01fe[_0x591bc5(0x58a,0x668)+'s']=_0x46c04e[_0xf019c1(-0x41,0x6c)],_0xc01fe['label']=_0x3d2e70,_0xc01fe[_0x591bc5(0x390,0x419)+'l']=_0x50ab36;function _0x591bc5(_0x179ec8,_0x7fbae6){return _0x210841(_0x179ec8-0x127,_0x7fbae6);}function _0xf019c1(_0x3dcc75,_0x475934){return _0x210841(_0x3dcc75- -0x29e,_0x475934);}results[_0x591bc5(0x4aa,0x60a)](_0xc01fe);}function warn(_0x2987db,_0xa7b0bf){const _0x1a622f={};function _0x20ad03(_0xe34260,_0x28aa89){return _0x210841(_0x28aa89-0x21d,_0xe34260);}_0x1a622f[_0x4937d9(0x153,0x66)+'s']=_0x20ad03(0x4db,0x504),_0x1a622f['label']=_0x2987db;function _0x4937d9(_0x475aa1,_0x3f0a24){return _0x210841(_0x3f0a24- -0x3fd,_0x475aa1);}_0x1a622f[_0x4937d9(-0x111,-0x194)+'l']=_0xa7b0bf,results['push'](_0x1a622f);}const nodeVer=process[_0x210841(0x373,0x350)+_0x210841(0x157,0x50)]['node'],nodeMajor=parseInt(nodeVer[_0x6aac3f(0x285,0x351)]('.')[0x1*0xd49+0x1bf4+-0x45*0x99],0x542+-0x12*0xf2+0xbcc);nodeMajor>=0x9d*-0xd+-0x7*0x1d+-0x179*-0x6?pass('Node.'+_0x6aac3f(0x26d,0x3b4)+_0x210841(0x4d9,0x3ca),'v'+nodeVer+(_0x210841(0x2dd,0x338)+_0x6aac3f(0x1cc,0xa0)+_0x210841(0x29b,0x142)+'d)')):fail('Node.'+_0x210841(0x481,0x348)+_0x210841(0x4d9,0x3a0),'v'+nodeVer+(_0x210841(0x24e,0x408)+'de.js'+_0x210841(0x3bc,0x294)+_0x210841(0x15a,0x30b)+_0x210841(0x21f,0x2e7)+_0x6aac3f(0x13b,-0xc7)));const ENV_FILE=existsSync(join(DATA_DIR,'.env'))?join(DATA_DIR,_0x210841(0x41c,0x23c)):join(ROOT,_0x210841(0x41c,0x435));let envPort=-0x58*0x2d+-0x232b+-0x1561*-0x3,envGatewayUrl=_0x6aac3f(0x10f,0x1dd)+'//127'+_0x210841(0x28a,0x3ca)+_0x6aac3f(0x2d1,0x23f)+'89',envGatewayToken='',envOpenAIKey='',envElevenLabsKey='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,_0x210841(0x406,0x55a));for(const line of content[_0x210841(0x499,0x4b8)]('\x0a')){const t=line['trim']();if(!t||t[_0x6aac3f(0x1d3,0x32e)+'sWith']('#'))continue;const eqIdx=t[_0x6aac3f(0x2a2,0x36e)+'Of']('=');if(eqIdx===-(0x22c+-0x1901+0x16d6))continue;const k=t[_0x6aac3f(0x28d,0x306)](-0x1*0xccd+-0x1f7a+0x2c47,eqIdx)[_0x6aac3f(0x320,0x1c8)](),v=t['slice'](eqIdx+(0xb59+0x5a2*-0x6+0x1674))[_0x210841(0x534,0x580)]();if(k==='PORT')envPort=parseInt(v,-0x4e3*-0x1+-0x1cb7*0x1+0x4c6*0x5)||0x1a60+0x20c1+-0x2da1;if(k===_0x6aac3f(-0x56,-0x227)+_0x210841(0x2a0,0x3cb)+'L')envGatewayUrl=v;if(k===_0x6aac3f(-0x56,-0xd2)+_0x6aac3f(0x5c,0x18e)+_0x210841(0x1c5,0x34a))envGatewayToken=v;if(k===_0x210841(0x331,0x2e6)+_0x6aac3f(0x297,0x43f)+_0x6aac3f(0x286,0xae))envOpenAIKey=v;if(k===_0x6aac3f(-0x20,0x179)+'NLABS'+_0x210841(0x347,0x52d)+_0x6aac3f(0x205,0x2b2))envElevenLabsKey=v;}}catch{}const portAvailable=await new Promise(_0x5509fb=>{const _0x425935={'fJIpH':function(_0x11eeba,_0x16bc98){return _0x11eeba!==_0x16bc98;},'mNZrt':_0x6cda73(-0xe9,0x11c),'hhWVx':function(_0x690703,_0x108edd){return _0x690703===_0x108edd;},'HtaQQ':_0x6cda73(0x6a,0x208)+_0x2cc550(0x63a,0x804),'KIqOS':function(_0x1bb04f,_0x48f92b){return _0x1bb04f(_0x48f92b);},'UwLll':'\x0a\x20\x20⬡\x20'+_0x2cc550(0x7c6,0x5e0)+_0x6cda73(-0xc,0x1f0)+'\x20been'+_0x2cc550(0x507,0x5e6)+'letel'+_0x6cda73(0x162,0x258)+'nstal'+_0x6cda73(0x127,0x25a),'SMweX':_0x2cc550(0x566,0x559)+_0x2cc550(0x5fe,0x68e)+'or\x20us'+_0x2cc550(0x48a,0x5a8)+_0x2cc550(0x40a,0x51a)+'.\x20👋\x0a','OMcjd':_0x6cda73(-0x8,0x1a9),'tTvGj':_0x6cda73(0x290,0x240),'oLGKw':_0x2cc550(0x3d7,0x5d3),'kesIR':_0x6cda73(0x457,0x31d)+'.0.1'},_0x35e4d2=_0x53159e[_0x2cc550(0x6ed,0x6af)+'eServ'+'er']();function _0x2cc550(_0x44175d,_0x57a50d){return _0x6aac3f(_0x57a50d-0x4ec,_0x44175d);}function _0x6cda73(_0x213456,_0x3af632){return _0x6aac3f(_0x3af632-0xad,_0x213456);}_0x35e4d2[_0x6cda73(0x198,0x29e)](_0x425935[_0x6cda73(-0x32,0x13b)],_0x1e2a1e=>{function _0x31e13c(_0x2fbfe9,_0x30988b){return _0x6cda73(_0x2fbfe9,_0x30988b- -0xd2);}function _0x33d816(_0x23cd13,_0x2ea68){return _0x6cda73(_0x2ea68,_0x23cd13- -0x1fd);}if(_0x425935[_0x33d816(0x14b,0x195)](_0x31e13c(-0x11,0x181),_0x425935[_0x31e13c(0x1dc,0xeb)])){if(_0x425935[_0x33d816(-0x1db,-0x26)](_0x1e2a1e[_0x33d816(-0x2f,0xf5)],_0x425935['HtaQQ']))_0x425935[_0x33d816(-0x17e,-0x34d)](_0x5509fb,![]);else _0x5509fb(!![]);}else{const _0x3e7e11={};_0x3e7e11[_0x31e13c(-0x188,-0xa8)+_0x31e13c(-0xd9,0x74)]=!![],_0x3e7e11[_0x31e13c(0x2ba,0x23a)]=!![],_0x426dd2(_0x2f7e68,_0x3e7e11),_0x1c751a++,_0x2d26f9[_0x33d816(-0x58,0x181)](_0x33d816(0x164,0x2f9)+_0x33d816(-0x9b,-0x104)+'d\x20'+_0xc4e9d);}}),_0x35e4d2[_0x6cda73(0x3ef,0x29e)](_0x2cc550(0x712,0x7a2)+_0x6cda73(0x11a,0xba),()=>{const _0x48a9ad={};function _0x1f2efd(_0x4b81e8,_0x400405){return _0x2cc550(_0x4b81e8,_0x400405- -0x5c8);}_0x48a9ad['fLpix']=_0x5c0ca1(0x188,0x1e5)+'it',_0x48a9ad[_0x1f2efd(0x29d,0x139)]=_0x425935[_0x5c0ca1(-0x7c,-0x77)],_0x48a9ad[_0x5c0ca1(0x30d,0x11c)]=_0x425935['SMweX'];function _0x5c0ca1(_0x4b687e,_0xada574){return _0x2cc550(_0x4b687e,_0xada574- -0x592);}const _0x1ad58d=_0x48a9ad;if(_0x425935[_0x5c0ca1(0x11b,0x1f5)](_0x425935['OMcjd'],_0x425935['tTvGj']))_0x35e4d2[_0x1f2efd(0x48,-0x141)](),_0x425935[_0x1f2efd(-0x81,-0x10a)](_0x5509fb,!![]);else{const _0x3e2114={};_0x3e2114[_0x1f2efd(0x12c,0x1b5)]=rEeEAT['fLpix'],_0x2d4d05('npm\x20u'+_0x1f2efd(-0x17,-0x16b)+_0x5c0ca1(0x1fb,0x136)+_0x1f2efd(0x149,0x1e1)+_0x5c0ca1(0x169,0x237)+'pany/'+'uplin'+'k-cha'+'t',_0x3e2114),_0x2dadbb['log'](rEeEAT[_0x5c0ca1(0x356,0x16f)]),_0x21976d[_0x1f2efd(-0x1a1,0x1c)](rEeEAT['BpCgJ']);}}),_0x35e4d2[_0x6cda73(0x4d9,0x363)+'n'](envPort,_0x425935[_0x2cc550(0x7ca,0x617)]);}),serverRunning=!!(getWatchdogPid()||getPid());portAvailable?serverRunning?pass(_0x6aac3f(0x282,0x3ad)+envPort,_0x6aac3f(0x56,0x1bb)+_0x210841(0x337,0x362)+_0x6aac3f(0x305,0x300)+_0x6aac3f(-0x95,0xd1)+_0x210841(0x2ea,0x465)+_0x210841(0x2e2,0x3f1)+_0x210841(0x47e,0x5b4)+_0x210841(0x360,0x2c5)):pass(_0x210841(0x496,0x300)+envPort,_0x210841(0x26a,0x264)+_0x6aac3f(0xe1,0x1e5)):serverRunning?pass('Port\x20'+envPort,'in\x20us'+_0x210841(0x21e,0x23c)+_0x6aac3f(0xf4,0xe)+'k'):fail('Port\x20'+envPort,_0x6aac3f(0x8d,0x125)+_0x210841(0x21e,0x7c)+_0x210841(0x390,0x239)+_0x210841(0x3cc,0x5cd)+_0x210841(0x13a,0x221));const gatewayReachable=await new Promise(_0x2e7129=>{function _0x3c128d(_0x20f4b0,_0x52bcf3){return _0x6aac3f(_0x52bcf3-0x4b2,_0x20f4b0);}const _0x3e5da4={'UyqNZ':function(_0x381715,_0x2c202e){return _0x381715>_0x2c202e;},'gqxcF':function(_0x345473,_0x28988f){return _0x345473!==_0x28988f;},'zpCVx':_0x3c128d(0x941,0x780),'KBTgd':function(_0x508dd6,_0x1834c5){return _0x508dd6(_0x1834c5);},'vtlLp':'GET','uNaAi':_0x86162a(0x5a8,0x48a),'OvRCo':'timeo'+'ut','PpOEq':_0x86162a(0x40e,0x4be)};function _0x86162a(_0x99c5b0,_0xfabfdc){return _0x6aac3f(_0x99c5b0-0x4c1,_0xfabfdc);}try{const _0x22dfb9=new URL(envGatewayUrl),_0xb99179={};_0xb99179[_0x3c128d(0x8aa,0x744)+_0x86162a(0x522,0x4f4)]=_0x22dfb9['hostn'+_0x86162a(0x522,0x3e6)],_0xb99179['port']=_0x22dfb9[_0x3c128d(0x702,0x551)]||0x1252+-0x1*-0x22+-0x1224,_0xb99179[_0x3c128d(0x64a,0x5cc)]='/',_0xb99179[_0x3c128d(0x894,0x78c)+'d']=_0x3e5da4[_0x86162a(0x4a7,0x64a)],_0xb99179[_0x86162a(0x7df,0x760)+'ut']=0x1388;const _0xaebf53=_0x26ba20[_0x3c128d(0x362,0x514)+'st'](_0xb99179,_0x41bd03=>{function _0x22d793(_0x55d7a5,_0x363e66){return _0x86162a(_0x55d7a5- -0x418,_0x363e66);}function _0x46c8ff(_0x20edc7,_0x4068d1){return _0x86162a(_0x20edc7- -0x85,_0x4068d1);}const _0x348c60={'fOfeS':function(_0x3528fe,_0x39fec3){return _0x3e5da4['UyqNZ'](_0x3528fe,_0x39fec3);}};_0x3e5da4[_0x22d793(-0x28,-0x1e)](_0x3e5da4['zpCVx'],_0x3e5da4[_0x22d793(-0x6,0x33)])?_0x45dc72['log'](_0x46c8ff(0x366,0x509)+_0x22d793(0x3c6,0x3f2)+_0x22d793(0x211,0x1f9)+_0x3508cf+_0x22d793(0x288,0x306)+(_0x348c60[_0x22d793(-0x26,-0x1f9)](_0x46e2ca,-0x1ca1+0xa26*0x1+-0xa9*-0x1c)?'s':'')+('.\x20Fre'+'sh\x20st'+'art!')):(_0x41bd03['resum'+'e'](),_0x3e5da4[_0x22d793(0x16e,0x174)](_0x2e7129,!![]));});_0xaebf53['on'](_0x3e5da4['uNaAi'],()=>_0x2e7129(![])),_0xaebf53['on'](_0x3e5da4[_0x86162a(0x45f,0x297)],()=>{_0xaebf53['destr'+'oy']();function _0x1a80b5(_0x90c71b,_0x2aebb8){return _0x86162a(_0x2aebb8- -0x463,_0x90c71b);}_0x3e5da4[_0x1a80b5(0x49,0x123)](_0x2e7129,![]);}),_0xaebf53[_0x86162a(0x3fa,0x57a)]();}catch{_0x3e5da4['PpOEq']!==_0x86162a(0x56c,0x6e2)?_0x3e5da4[_0x86162a(0x586,0x6fa)](_0x2e7129,![]):(_0x329a0f[_0x86162a(0x408,0x23d)+'e'](),_0x3e5da4[_0x86162a(0x586,0x77c)](_0x51fa8b,!![]));}});gatewayReachable?pass('Gatew'+_0x6aac3f(0x185,0x4c)+'achab'+'le',envGatewayUrl):fail(_0x6aac3f(-0x90,0xec)+_0x6aac3f(0x185,0x32d)+'achab'+'le',_0x210841(0x1a8,0x17d)+_0x210841(0x1e1,0x144)+_0x6aac3f(0x24,0xd)+envGatewayUrl);existsSync(join(ROOT,_0x210841(0x4f0,0x44e)+_0x210841(0x46f,0x397)+'es'))?pass(_0x210841(0x33d,0x37d)+_0x6aac3f(0x2fb,0x29f)+_0x210841(0x3f7,0x5b1)+_0x210841(0x1c8,0x3cd)+'ed',_0x210841(0x4f0,0x519)+_0x210841(0x46f,0x430)+_0x6aac3f(0x1d4,0x372)+_0x210841(0x408,0x502)):fail(_0x210841(0x33d,0x38f)+_0x210841(0x50f,0x3d8)+_0x210841(0x3f7,0x2f1)+_0x210841(0x1c8,0x197)+'ed',_0x210841(0x4f0,0x4d4)+'modul'+'es\x20mi'+_0x210841(0x365,0x1c2)+_0x210841(0x3fb,0x563)+'n\x20npm'+_0x210841(0x3a4,0x41f)+_0x210841(0x241,0x19b));if(existsSync(ENV_FILE))try{readFileSync(ENV_FILE,_0x6aac3f(0x1f2,0x334)),pass(_0x6aac3f(0x152,0x82)+_0x6aac3f(-0xa9,0x7e),_0x210841(0x3a3,0x30c)+_0x6aac3f(0x127,0xac)+_0x6aac3f(-0xc1,-0xda)+_0x6aac3f(0xe1,-0x1d));}catch{fail(_0x210841(0x366,0x4b1)+_0x210841(0x16b,0x35c),'exist'+_0x6aac3f(0xca,0x100)+_0x210841(0x3ac,0x3de)+_0x6aac3f(0xc6,-0xe2)+_0x6aac3f(0x1c9,0x277));}else fail(_0x210841(0x366,0x301)+_0x6aac3f(-0xa9,-0x217),_0x6aac3f(0x2ad,0x271)+_0x210841(0x4f6,0x448)+_0x6aac3f(0x27f,0xbd)+':\x20upl'+'ink-c'+_0x210841(0x2cd,0x418)+_0x6aac3f(0x235,0x1a9)+_0x6aac3f(0x54,0x215)+'it');envGatewayToken&&envGatewayToken!==_0x6aac3f(0x28a,0x1d1)+_0x210841(0x134,0x2d7)+_0x6aac3f(0x26c,0x458)?pass(_0x210841(0x184,0xf)+_0x6aac3f(0x2ea,0x4bf)+_0x210841(0x32a,0x414),_0x6aac3f(0x167,-0x50)+_0x210841(0x16f,0x158)):fail(_0x210841(0x184,0x37a)+_0x6aac3f(0x2ea,0x4db)+_0x6aac3f(0x116,0x87),_0x210841(0x2fc,0x143)+_0x210841(0x502,0x3aa)+'\x20.env');if(envOpenAIKey||envElevenLabsKey){const providers=[];if(envOpenAIKey)providers['push'](_0x210841(0x374,0x33f)+'I');if(envElevenLabsKey)providers[_0x210841(0x383,0x1c2)](_0x6aac3f(0x73,0x23d)+_0x210841(0x3b5,0x31b));pass(_0x210841(0x16d,0xd1)+_0x210841(0x265,0x7f)+'ys',providers[_0x6aac3f(0x1a5,0x1f6)](',\x20')+(_0x6aac3f(0x314,0x30b)+_0x6aac3f(-0x2a,-0x166)+'d'));}else warn(_0x210841(0x16d,0x172)+_0x6aac3f(0x51,0x63)+'ys','no\x20Op'+_0x210841(0x4b9,0x453)+_0x210841(0x49b,0x56a)+_0x6aac3f(0x2a6,0x2f6)+_0x210841(0x45c,0x25f)+_0x210841(0x321,0x1a6)+_0x210841(0x284,0x317)+_0x6aac3f(0x2fd,0x3d7)+_0x210841(0x4d5,0x49e)+_0x6aac3f(0x231,0x26b)+_0x6aac3f(0x8,-0x74)+_0x6aac3f(-0x3c,0x7c));try{const freeBytes=((()=>{function _0x2d972d(_0x75ba4d,_0x493a47){return _0x210841(_0x75ba4d-0x3b,_0x493a47);}const _0x38005e={'pHfkn':_0x410c5f(0x445,0x356)+'hing\x20'+_0x410c5f(-0x5f,0x144)+_0x410c5f(0x5d8,0x46b)+_0x2d972d(0x426,0x48e)+'ady\x20c'+_0x2d972d(0x1ca,0x1c5),'PZhIV':function(_0x3ef490,_0x5d8e13){return _0x3ef490===_0x5d8e13;},'Doxxt':_0x2d972d(0x573,0x459),'kaQlZ':_0x410c5f(0x390,0x1ee),'BIXmu':function(_0x39e349,_0xead8e7,_0x5cffd3){return _0x39e349(_0xead8e7,_0x5cffd3);},'mwXxB':function(_0x4f3e98,_0x520aa5){return _0x4f3e98+_0x520aa5;},'nSusS':function(_0x4b1280,_0x3d73bb,_0x302fb3){return _0x4b1280(_0x3d73bb,_0x302fb3);},'dYzBl':_0x2d972d(0x2f9,0x4ef),'iEmkL':function(_0x59ac02,_0x3789a9,_0x383031){return _0x59ac02(_0x3789a9,_0x383031);},'hkGvt':'utf8','RejuP':function(_0x10d91e,_0x237782){return _0x10d91e*_0x237782;}};function _0x410c5f(_0x5a1721,_0x21b077){return _0x210841(_0x21b077- -0xa8,_0x5a1721);}if(_0x38005e[_0x410c5f(0x39e,0x248)](process[_0x410c5f(0x241,0x3f0)+_0x2d972d(0x3d5,0x55c)],_0x38005e[_0x2d972d(0x4df,0x36d)])){if(_0x38005e[_0x410c5f(0x12f,0x248)](_0x38005e[_0x410c5f(0x29c,0x2b9)],_0x410c5f(0x82,0x1ee))){const _0x1ef131={};_0x1ef131[_0x410c5f(0x66,0x1eb)+'ing']='utf8';const _0x44a31f=_0x38005e['BIXmu'](execSync,_0x38005e[_0x410c5f(0x10a,0x208)](_0x38005e['mwXxB'](_0x410c5f(0x35c,0x25a)+_0x410c5f(0x14d,0xd9)+_0x410c5f(0x3a5,0x405)+_0x410c5f(0x36,0x14a)+_0x410c5f(0x1f4,0x13f)+_0x410c5f(0x314,0x148)+'ID=\x27',ROOT[_0x410c5f(0x2b3,0x2f9)+'t'](-0x4*0x84f+-0x730+0x286c)),_0x410c5f(0x19a,0x1e5)+_0x410c5f(0x37c,0x3e9)+_0x2d972d(0x33b,0x29e)+'ce\x20/v'+_0x410c5f(0x43e,0x3a6)),_0x1ef131),_0x5f33ac=_0x44a31f['match'](/FreeSpace=(\d+)/);return _0x5f33ac?_0x38005e[_0x410c5f(0x2a4,0xd5)](parseInt,_0x5f33ac[0xd*-0x14b+-0x1107*-0x1+0x5*-0xb],-0x1619+-0x2c*0x9e+0x314b*0x1):null;}else _0x206522[_0x2d972d(0x347,0x248)](_0x38005e['pHfkn']);}else{if(_0x38005e[_0x2d972d(0x32b,0x386)](_0x38005e[_0x410c5f(0x5c8,0x475)],_0x38005e[_0x2d972d(0x558,0x3cd)])){const _0x2e09af=_0x38005e[_0x2d972d(0x513,0x310)](execSync,_0x410c5f(0x3ea,0x494)+'\x20\x22'+ROOT+(_0x410c5f(0x137,0x299)+_0x410c5f(0x204,0x3f4)+'1'),{'encoding':_0x38005e[_0x2d972d(0x48c,0x3c9)]}),_0x365263=_0x2e09af[_0x2d972d(0x56f,0x743)]()['split'](/\s+/);return _0x38005e[_0x410c5f(0x410,0x2b1)](_0x38005e[_0x2d972d(0x1b8,0x23d)](parseInt,_0x365263[-0x24f3+-0x13*-0x65+0x1d77],-0x1df9+0x40*-0x6d+0x3943),-0x14ed+0xa06+-0x2fb*-0x5);}else _0xe60a38['edit']=!![];}})());if(freeBytes!==null){const freeMB=Math[_0x6aac3f(-0x39,-0x9f)](freeBytes/((0x89*0x22+0x75f*0x1+-0x1591)*(0x21e2+0x80*0xd+0x1231*-0x2)));freeMB>=-0x1e61+0x3fd*0x8+0x1*0x6d?pass('Disk\x20'+_0x210841(0x2a5,0x258),freeMB+('\x20MB\x20f'+_0x210841(0x1e3,0x256))):warn(_0x210841(0x2b4,0x375)+_0x6aac3f(0x91,0x269),freeMB+(_0x210841(0x400,0x5b9)+_0x210841(0x30a,0x1ce)+_0x210841(0x1f6,0x2a9)+_0x210841(0x2d8,0x3f6)+_0x210841(0x377,0x274)+'MB'));}}catch{warn(_0x6aac3f(0xa0,0x1ad)+_0x210841(0x2a5,0x21e),_0x6aac3f(0x20c,0x9a)+_0x210841(0x3ac,0x333)+_0x6aac3f(0x137,-0x80)+_0x210841(0x2f1,0x224)+_0x210841(0x2f8,0x47f)+_0x210841(0x202,0x2e0)+_0x6aac3f(0x91,-0x4d));}const _0x29fbd5={};_0x29fbd5[_0x210841(0x46b,0x2a0)]=_0x6aac3f(-0xd4,0x4f)+_0x6aac3f(0xc,0x1b2),_0x29fbd5['fail']='\x1b[31m'+_0x210841(0x444,0x441),_0x29fbd5[_0x210841(0x2e7,0x304)]=_0x6aac3f(0x136,0x1d7)+_0x6aac3f(-0x79,-0x4c);const icons=_0x29fbd5;for(const r of results){console[_0x210841(0x30c,0x432)]('\x20\x20'+icons[r[_0x6aac3f(0x24f,0x1b0)+'s']]+'\x20'+r[_0x6aac3f(0x1db,0x8f)]+':\x20'+r[_0x210841(0x269,0xdd)+'l']);}const passes=results[_0x6aac3f(0x8a,-0x56)+'r'](_0x4452d=>_0x4452d['statu'+'s']===_0x210841(0x46b,0x5e3))[_0x210841(0x3e4,0x399)+'h'],fails=results[_0x210841(0x29e,0x42e)+'r'](_0x269afd=>_0x269afd[_0x210841(0x463,0x4f8)+'s']===_0x210841(0x22b,0x22f))[_0x210841(0x3e4,0x3c5)+'h'],warns=results[_0x210841(0x29e,0x2c3)+'r'](_0x2eb6e1=>_0x2eb6e1[_0x6aac3f(0x24f,0x7f)+'s']===_0x210841(0x2e7,0x250))[_0x210841(0x3e4,0x1e3)+'h'];console[_0x6aac3f(0xf8,-0xee)](''),fails===-0x4*-0x287+0x1*0x15f7+-0x2013?console['log']('\x20\x20⬡\x20A'+_0x6aac3f(0x2f3,0x41f)+passes+(_0x6aac3f(0xa2,-0x49)+_0x210841(0x2d4,0x47e)+_0x210841(0x1b0,0x1b))+(warns?'\x20('+warns+(_0x210841(0x25a,0x69)+_0x210841(0x43e,0x2af))+(warns>-0x26fb+0x1f5b+0x7a1?'s':'')+')':'')+'.'):console[_0x210841(0x30c,0x48a)](_0x6aac3f(-0xdd,0x87)+passes+(_0x210841(0x504,0x44e)+_0x210841(0x239,0x28a))+fails+(_0x210841(0x23d,0x40)+'ed')+(warns?',\x20'+warns+(_0x6aac3f(0x46,0xad)+_0x210841(0x43e,0x4b1))+(warns>-0x1931+-0x39*0x9d+0xb1*0x57?'s':''):'')+'.'),console[_0x210841(0x30c,0x366)](''),process[_0x6aac3f(0xcf,0x43)](fails>0x262d*0x1+-0x1e93*-0x1+-0x44c0?0xf07*0x2+0x215+-0x2022:0x1266*0x2+0x1d2a*-0x1+0x3d1*-0x2);}if(command===_0x6aac3f(0x117,0x88)){const {rmSync}=await import('fs');console[_0x210841(0x30c,0x3a6)](_0x6aac3f(-0xd6,-0x15b)+_0x210841(0x308,0x179)+_0x6aac3f(0x20a,0x18d)+'et\x0a'),console[_0x6aac3f(0xf8,-0x1a)](_0x210841(0x1ac,0x33a)+_0x6aac3f(0x1d2,0x228)+_0x210841(0x40a,0x2be)+_0x6aac3f(-0x43,-0x178)),console[_0x210841(0x30c,0x212)]('\x20\x20\x20\x20•'+'\x20Chat'+'\x20hist'+_0x6aac3f(0x2d6,0x497)+'nd\x20me'+_0x6aac3f(0x1ac,0xef)+_0x210841(0x25b,0x23e)+_0x6aac3f(-0xa1,-0x113)),console[_0x210841(0x30c,0x111)](_0x6aac3f(0xf0,0x16c)+_0x210841(0x418,0x236)+_0x210841(0x1b3,0xee)+_0x210841(0x4b4,0x3d4)+'\x20and\x20'+'media'+'\x20cach'+'e'),console[_0x6aac3f(0xf8,-0xfb)](_0x210841(0x304,0x21f)+_0x6aac3f(0xd5,0x13b)+_0x6aac3f(0x7,0x136)+'ssage'+_0x6aac3f(0xe2,-0x72)+'ue'),console[_0x210841(0x30c,0x3ea)]('\x20\x20\x20\x20•'+_0x210841(0x1a1,0x351)+'\x20subs'+_0x6aac3f(0x9d,0x170)+_0x6aac3f(0x9a,0x5d)+_0x210841(0x1e9,0x40)+_0x210841(0x212,0xb7)+_0x6aac3f(0x45,0x43)+'ta'),console[_0x6aac3f(0xf8,-0x9d)](''),console['log'](_0x6aac3f(-0x68,0x1a)+_0x210841(0x3e6,0x353)+_0x210841(0x2ca,0x1a6)+_0x210841(0x340,0x3af)+'r:'),console[_0x210841(0x30c,0x47f)](_0x210841(0x304,0x37e)+_0x210841(0x319,0x2b4)+_0x6aac3f(0x314,0x2be)+_0x6aac3f(0x14f,0x212)+_0x210841(0x1b9,0xd9)),console[_0x210841(0x30c,0x32f)](_0x210841(0x304,0x458)+_0x6aac3f(-0xbb,-0x24c)+_0x6aac3f(-0x50,-0x8b)+_0x6aac3f(0x27a,0x1c5)),console['log']('\x20\x20\x20\x20•'+'\x20The\x20'+_0x210841(0x24b,0x56)+'r\x20its'+_0x210841(0x30f,0x3a3));if(!flags[_0x210841(0x473,0x35f)]){const readline=await import(_0x6aac3f(0x2bf,0x166)+_0x6aac3f(0x40,0x95)),_0x55b8be={};_0x55b8be[_0x210841(0x1cf,0x111)]=process[_0x210841(0x3fd,0x53a)],_0x55b8be[_0x6aac3f(0x246,0x253)+'t']=process[_0x6aac3f(0x175,0x34d)+'t'];const rl=readline['creat'+'eInte'+_0x6aac3f(0x312,0x443)](_0x55b8be),answer=await new Promise(_0x244aa8=>{const _0xbaaf20={};_0xbaaf20[_0x1004de(-0x2a,0x61)]='\x20\x20Typ'+_0x3319dd(-0x42,-0x44)+_0x3319dd(0x7,0xc1)+'to\x20co'+'nfirm'+':\x20';function _0x3319dd(_0x2722d9,_0x486c3e){return _0x210841(_0x2722d9- -0x360,_0x486c3e);}const _0xad3d62=_0xbaaf20;function _0x1004de(_0x1d54a0,_0x467c32){return _0x210841(_0x467c32- -0x19f,_0x1d54a0);}rl[_0x3319dd(0x3f,0x36)+_0x1004de(0x2d6,0x340)](_0xad3d62[_0x1004de(0x125,0x61)],_0x244aa8);});rl[_0x6aac3f(-0x65,-0x5a)](),answer[_0x210841(0x534,0x712)]()[_0x210841(0x492,0x68b)+'erCas'+'e']()!=='reset'&&(console[_0x6aac3f(0xf8,0x60)](_0x6aac3f(0x103,0x1b5)+_0x6aac3f(-0x4d,-0x157)+_0x210841(0x4d6,0x473)+_0x210841(0x387,0x410)+'g\x20was'+_0x6aac3f(0x16c,0x1b1)+_0x210841(0x24a,0x2a3)),process[_0x210841(0x2e3,0x26f)](0xc97+0x11*-0x15+-0xb32)),console[_0x6aac3f(0xf8,0x166)]('');}const dataResets=['messa'+_0x210841(0x26f,0x28c)+_0x210841(0x3c5,0x3c5)+_0x210841(0x3a0,0x591),_0x210841(0x342,0x442)+_0x6aac3f(0xde,0x14a)+'son','sync-'+_0x6aac3f(0x7e,-0x4),_0x6aac3f(0x25d,0x30d)+_0x210841(0x273,0x2eb)+_0x210841(0x2cc,0x4cb)+'tions',_0x6aac3f(0x8b,0x131)+'ds',_0x210841(0x16a,-0x85),_0x210841(0x19c,0x271)+_0x6aac3f(0x21e,0xc6)],rootResets=[_0x6aac3f(0x6a,0x1f2)+_0x210841(0x26f,0x468)+_0x6aac3f(0x1b1,0x19e)+_0x210841(0x3a0,0x513),_0x210841(0x342,0x282)+'ity.j'+'son',_0x6aac3f(0x165,0x2c6)+_0x210841(0x292,0xec),_0x6aac3f(0x25d,0x318)+_0x6aac3f(0x5f,0x143)+_0x6aac3f(0xb8,0x72)+'tions','uploa'+'ds',_0x210841(0x394,0x576)+_0x6aac3f(0x43,-0x6b)+'io','misse'+_0x6aac3f(0x166,0x207)+_0x6aac3f(0x100,0xa5)+_0x210841(0x3e9,0x4d3),_0x210841(0x388,0x268)+_0x6aac3f(-0xd3,0xf2)+'ripti'+_0x6aac3f(0x12f,0x201)+'son',_0x6aac3f(0x37,-0x174)+_0x210841(0x277,0x3f7),'.upli'+_0x6aac3f(-0x37,-0x7a)+_0x6aac3f(-0x5,0x41)+_0x6aac3f(0xf8,0x4e),_0x210841(0x187,0x296)+_0x6aac3f(0x1da,0x164)+'tchdo'+_0x6aac3f(0x2f4,0x193)];let cleared=-0x2*-0x2e0+0x115f*0x1+0x1*-0x171f;for(const item of dataResets){const fullPath=join(DATA_DIR,item);if(existsSync(fullPath))try{const _0x24aff6={};_0x24aff6['recur'+_0x6aac3f(0x99,0xe1)]=!![],_0x24aff6[_0x210841(0x473,0x482)]=!![],rmSync(fullPath,_0x24aff6),cleared++,console[_0x6aac3f(0xf8,0x2d9)](_0x6aac3f(0x2b4,0x2c6)+_0x6aac3f(0xb5,-0x26)+_0x6aac3f(-0x9d,-0x21a)+_0x6aac3f(0x13,-0x36)+'/'+item);}catch(_0x48f8a8){console['error']('\x20\x20✗\x20F'+_0x210841(0x163,0x68)+_0x6aac3f(-0x7a,-0x216)+_0x210841(0x2c9,0x33a)+'\x20DATA'+'_DIR/'+item+':\x20'+_0x48f8a8[_0x6aac3f(0x6a,0x267)+'ge']);}}for(const item of rootResets){const fullPath=join(ROOT,item);if(existsSync(fullPath))try{const _0x4db280={};_0x4db280[_0x6aac3f(-0x83,-0x17b)+_0x210841(0x2ad,0xbf)]=!![],_0x4db280[_0x6aac3f(0x25f,0x29d)]=!![],rmSync(fullPath,_0x4db280),cleared++,console[_0x210841(0x30c,0x2ea)]('\x20\x20✓\x20R'+'emove'+'d\x20'+item);}catch(_0x42e69e){console[_0x6aac3f(0xe7,0x28b)](_0x210841(0x4dc,0x662)+_0x6aac3f(-0xb1,0x6)+_0x210841(0x19a,0x350)+_0x6aac3f(0xb5,0x1c9)+'\x20'+item+':\x20'+_0x42e69e['messa'+'ge']);}}cleared===0xb+-0x1*-0x137+-0x142?console[_0x6aac3f(0xf8,-0xc3)](_0x210841(0x3fe,0x345)+_0x210841(0x247,0x2e6)+'to\x20cl'+_0x6aac3f(0x2ff,0x249)+'\x20alre'+_0x210841(0x523,0x3fa)+'lean.'):console['log'](_0x6aac3f(-0xd6,0xb2)+_0x210841(0x531,0x6ad)+_0x210841(0x37c,0x3ee)+cleared+'\x20item'+(cleared>0x5ad*-0x1+-0x2b3*0x9+0x1df9?'s':'')+(_0x6aac3f(-0x44,-0xa3)+_0x6aac3f(0x71,-0xe)+_0x210841(0x353,0x246))),console[_0x6aac3f(0xf8,0x1ee)](''),process[_0x6aac3f(0xcf,-0x131)](-0x1437+-0x23bb*-0x1+-0xf84);}if(command===_0x210841(0x4fc,0x32a)){const require=createRequire(import.meta.url),pkg=require(join(ROOT,_0x6aac3f(0x75,0x21a)+_0x6aac3f(0xf2,0x240)+'on')),ENV_FILE=existsSync(join(DATA_DIR,_0x6aac3f(0x208,0x244)))?join(DATA_DIR,'.env'):join(ROOT,_0x6aac3f(0x208,0x57));let envPort='3456',envHost='0.0.0'+'.0',envGatewayUrl=_0x210841(0x323,0x170)+_0x210841(0x17b,0x2cf)+_0x210841(0x28a,0x3d5)+'1:187'+'89',envGatewayToken='';if(existsSync(ENV_FILE))try{const content=readFileSync(ENV_FILE,'utf8');for(const line of content[_0x210841(0x499,0x4f9)]('\x0a')){const t=line[_0x210841(0x534,0x5a2)]();if(!t||t['start'+_0x6aac3f(-0x87,-0x280)]('#'))continue;const eqIdx=t[_0x6aac3f(0x2a2,0x3c0)+'Of']('=');if(eqIdx===-(0x4c9*-0x5+-0x33a+-0xd94*-0x2))continue;const k=t[_0x6aac3f(0x28d,0x332)](-0x3*0xd01+-0xe7*0xb+0x30f0,eqIdx)[_0x210841(0x534,0x456)](),v=t['slice'](eqIdx+(0x232c+0x9b2+-0x8f9*0x5))[_0x6aac3f(0x320,0x306)]();if(k===_0x210841(0x376,0x392))envPort=v||_0x210841(0x44b,0x314);if(k==='UPLIN'+_0x6aac3f(-0x4a,-0x23)+'T'||k===_0x210841(0x263,0x422))envHost=v||_0x210841(0x3d8,0x308)+'.0';if(k===_0x6aac3f(-0x56,-0x214)+_0x210841(0x2a0,0x1d2)+'L')envGatewayUrl=v;if(k===_0x6aac3f(-0x56,0xb2)+_0x210841(0x270,0x34b)+'KEN')envGatewayToken=v;}}catch{}const watchdogPid=getWatchdogPid(),serverPid=getPid(),isServerRunning=!!(watchdogPid||serverPid),serverStatus=isServerRunning?'\x1b[32m'+_0x6aac3f(-0xcb,-0x182)+_0x210841(0x28f,0x2ea)+_0x6aac3f(-0x6,0x160)+'D\x20'+(watchdogPid||serverPid)+')':'\x1b[31m'+_0x6aac3f(0x114,-0x35)+'ed\x1b[0'+'m',gwReachable=await new Promise(_0x4c35c7=>{function _0x404b44(_0x34d66b,_0x786af6){return _0x210841(_0x786af6- -0x33b,_0x34d66b);}function _0x1bfedf(_0x11a2aa,_0x39068a){return _0x210841(_0x11a2aa-0x2ed,_0x39068a);}const _0x53d7d4={'gGnfJ':function(_0x293f96,_0x32a0c9){return _0x293f96(_0x32a0c9);},'yYYbG':_0x1bfedf(0x661,0x484)+'I','euROb':'Eleve'+'nLabs','oxuph':function(_0x22ef46,_0x8204d1,_0x47685e){return _0x22ef46(_0x8204d1,_0x47685e);},'peJpo':_0x1bfedf(0x45a,0x3f3)+_0x1bfedf(0x552,0x5cb)+'ys','EZaBK':function(_0x5943fa,_0x2080e7){return _0x5943fa+_0x2080e7;},'UTXgf':'\x20conf'+'igure'+'d','zpAzf':function(_0x101c09,_0x7ab4b6){return _0x101c09!==_0x7ab4b6;},'UzzbM':'LdUJf','Mvqqy':_0x404b44(-0x173,-0x13c),'ABdaQ':_0x1bfedf(0x4c6,0x668),'FhzAz':_0x404b44(0x183,0x1f7)+'ut'};try{if(_0x53d7d4[_0x1bfedf(0x6c1,0x882)](_0x53d7d4[_0x404b44(-0xc,-0xd0)],_0x53d7d4[_0x1bfedf(0x7b2,0x977)])){const _0x59f3b0=new URL(envGatewayUrl),_0x1781e6={};_0x1781e6[_0x404b44(0xda,0x16b)+_0x404b44(0xa5,-0xc6)]=_0x59f3b0[_0x404b44(0x264,0x16b)+'ame'],_0x1781e6[_0x404b44(-0x76,-0x88)]=_0x59f3b0[_0x404b44(0x45,-0x88)]||0x3*0x72d+0x1051+-0x2588,_0x1781e6[_0x404b44(-0x122,-0xd)]='/',_0x1781e6[_0x404b44(0xb8,0x1b3)+'d']=_0x53d7d4[_0x1bfedf(0x678,0x6ac)],_0x1781e6['timeo'+'ut']=0xbb8;const _0x21fb6f=_0x26ba20[_0x404b44(-0x1cd,-0xc5)+'st'](_0x1781e6,_0x20b6fc=>{_0x20b6fc['resum'+'e']();function _0x4e27e9(_0x4cc970,_0xe0488){return _0x404b44(_0x4cc970,_0xe0488-0x685);}_0x53d7d4[_0x4e27e9(0x3fa,0x574)](_0x4c35c7,!![]);});_0x21fb6f['on'](_0x404b44(0x11e,-0x40),()=>_0x4c35c7(![])),_0x21fb6f['on'](_0x53d7d4[_0x1bfedf(0x67f,0x509)],()=>{_0x21fb6f[_0x476a47(0x5ce,0x626)+'oy']();function _0x476a47(_0x30fc2d,_0x42694b){return _0x1bfedf(_0x30fc2d-0x4a,_0x42694b);}_0x4c35c7(![]);}),_0x21fb6f['end']();}else{const _0x5d09e7=[];if(_0x3966a8)_0x5d09e7['push'](jqCVBW['yYYbG']);if(_0x53f498)_0x5d09e7[_0x404b44(0x91,0x48)](jqCVBW[_0x404b44(-0x1,0x20)]);jqCVBW[_0x1bfedf(0x480,0x307)](_0x2e6245,jqCVBW['peJpo'],jqCVBW[_0x1bfedf(0x433,0x46a)](_0x5d09e7[_0x404b44(-0xde,0x7e)](',\x20'),jqCVBW['UTXgf']));}}catch{_0x53d7d4[_0x404b44(-0x2a,-0x111)](_0x4c35c7,![]);}}),gwStatus=gwReachable?envGatewayUrl+(_0x6aac3f(-0x1d,0x10e)+_0x210841(0x311,0x2ae)+'necte'+'d)\x1b[0'+'m'):envGatewayUrl+(_0x210841(0x3c4,0x3af)+'m(unr'+_0x6aac3f(0x2fc,0x47e)+'ble)\x1b'+_0x6aac3f(-0x3,-0x184)),LOG_FILE=join(ROOT,'serve'+_0x6aac3f(0x63,0x206)),ALT_LOG_FILE=join(ROOT,_0x6aac3f(-0x8d,0x167)+_0x210841(0x1dd,0x67)+_0x210841(0x20f,0xef)+_0x6aac3f(0xf8,0x227)),logFile=existsSync(LOG_FILE)?LOG_FILE:existsSync(ALT_LOG_FILE)?ALT_LOG_FILE:_0x6aac3f(0x1e0,0x242)+')',premiumFile=join(ROOT,'serve'+'r','premi'+'um');let premiumStatus=_0x6aac3f(0x2d7,0x137)+_0x210841(0x1b1,0x111)+'ed';existsSync(premiumFile)&&(premiumStatus=_0x6aac3f(0x41,0xa8)+_0x210841(0x348,0x2d7));const configFile=join(ROOT,'confi'+_0x6aac3f(0x2af,0x126)+'n');if(existsSync(configFile))try{const cfg=JSON['parse'](readFileSync(configFile,'utf8'));if(cfg[_0x210841(0x42c,0x417)+'um']||cfg[_0x210841(0x42c,0x24f)+_0x6aac3f(0x263,0x252)])premiumStatus=_0x6aac3f(0x12e,-0x27)+'e';}catch{}console[_0x6aac3f(0xf8,0x70)]('\x0a\x20\x20⬡\x20'+_0x210841(0x308,0x3f4)+_0x210841(0x3ec,0x283)+_0x210841(0x30b,0x316)+_0x210841(0x4fa,0x432)+_0x210841(0x14f,0x228)+_0x6aac3f(0x1ee,0x6a)+pkg[_0x210841(0x373,0x457)+'on']+('\x0a\x20\x20No'+_0x210841(0x4db,0x35b)+':\x20\x20\x20\x20'+_0x6aac3f(-0xdb,0x99))+process['versi'+_0x6aac3f(-0xbd,-0xf0)][_0x210841(0x21d,0x1e6)]+(_0x210841(0x48d,0x3c1)+_0x6aac3f(0xcd,0x2a0)+_0x6aac3f(0x210,0xd4)+'\x20\x20')+envPort+('\x0a\x20\x20Ho'+'st:\x20\x20'+'\x20\x20\x20\x20\x20'+'\x20\x20')+envHost+('\x0a\x20\x20Se'+'rver:'+_0x6aac3f(0x210,0x35c)+'\x20\x20')+serverStatus+('\x0a\x20\x20Ga'+_0x6aac3f(-0x9c,-0x125)+_0x210841(0x24f,0x42e)+'\x20\x20')+gwStatus+(_0x210841(0x148,0x25f)+_0x210841(0x4d7,0x5d8)+'r:\x20\x20\x20'+'\x20\x20')+DATA_DIR+(_0x210841(0x2ed,0x369)+_0x210841(0x309,0x169)+_0x210841(0x369,0x1da)+'\x20\x20')+logFile+('\x0a\x20\x20Pr'+_0x210841(0x1a3,0x31a)+_0x210841(0x24f,0x33a)+'\x20\x20')+premiumStatus+(_0x6aac3f(0x2cd,0x22e)+_0x6aac3f(-0x4c,-0x214)+_0x210841(0x522,0x60f)+'\x20\x20')+ROOT+_0x6aac3f(0x1b4,0x102)),process[_0x210841(0x2e3,0x2c3)](-0x1*-0x26d3+-0x17b*0x5+0x1f6c*-0x1);}const ALL_COMMANDS=[_0x6aac3f(0x6c,0x25d),_0x210841(0x463,0x390)+'s',_0x6aac3f(0x148,0x30c)+'e',_0x6aac3f(-0x75,0x76)+_0x6aac3f(0x212,0x192),_0x6aac3f(0x120,0x274),_0x6aac3f(0x167,0xbf)+'g',_0x6aac3f(0x271,0x1d6)+'r',_0x210841(0x32b,0x475),'info'];if(command===_0x6aac3f(0x1d3,0x2c8)||!ALL_COMMANDS['inclu'+_0x6aac3f(-0xe,0x18)](command)){const existingWatchdog=getWatchdogPid(),existingPid=getPid();if(existingWatchdog||existingPid){const pid=existingWatchdog||existingPid,mode=existingWatchdog?_0x210841(0x391,0x2e4)+_0x6aac3f(0x7c,-0x58):_0x210841(0x23f,0xe8)+'t';console[_0x6aac3f(0xf8,0xa9)](_0x6aac3f(0xc2,0x37)+'ink\x20i'+_0x6aac3f(0x2d5,0x17c)+_0x6aac3f(0x182,-0x8)+_0x210841(0x149,0x1a8)+_0x6aac3f(0x243,0x3d8)+mode+(_0x6aac3f(0x92,0x5)+'\x20')+pid+').'),console['log']('\x20\x20Sto'+_0x6aac3f(0x93,0x1e)+_0x6aac3f(0x28,0x1e)+_0x6aac3f(0x97,-0x7e)+_0x6aac3f(-0x19,0x1c8)+_0x210841(0x403,0x455)+_0x6aac3f(0x21b,0x240)),process[_0x210841(0x2e3,0x3ce)](0x4b*0x37+0x1f82+-0x2f9e);}const env={...process.env};if(flags[_0x210841(0x2b3,0x207)])env['PORT']=String(flags['port']);if(flags['host'])env[_0x210841(0x1f9,0x23c)+_0x210841(0x1ca,0x1a2)+'T']=flags[_0x6aac3f(-0x59,-0x7d)];const serverPath=join(ROOT,'serve'+_0x210841(0x434,0x50b));if(flags[_0x6aac3f(-0x13,0xe3)+'h']){const watchdogPath=join(ROOT,_0x210841(0x24b,0x384)+'r','watch'+_0x6aac3f(0x201,0x1c0)+'s'),extraEnv={};if(flags[_0x6aac3f(0x9f,0xac)])extraEnv['PORT']=String(flags['port']);if(flags[_0x6aac3f(-0x59,0x68)])extraEnv['UPLIN'+_0x210841(0x1ca,0xb)+'T']=flags[_0x210841(0x1bb,0x295)];const isLinux=process['platf'+_0x6aac3f(0x186,-0xb)]===_0x210841(0x35f,0x54a);let child;if(isLinux)try{const _0x473d39={};_0x473d39[_0x210841(0x4a5,0x671)]='ignor'+'e',execSync(_0x210841(0x384,0x1a0)+'\x20sets'+'id',_0x473d39);const _0x59ef39={};_0x59ef39[_0x6aac3f(0x254,0x44a)]=ROOT,_0x59ef39['env']=env,_0x59ef39[_0x210841(0x201,0x280)+_0x6aac3f(0x1e6,0x33a)]=!![],_0x59ef39[_0x6aac3f(0x291,0x173)]='ignor'+'e',child=spawn(_0x210841(0x48b,0x68e)+'d',['--for'+'k',process[_0x210841(0x478,0x448)+_0x210841(0x425,0x3b2)],watchdogPath,JSON['strin'+_0x6aac3f(0x29f,0x126)](extraEnv)],_0x59ef39);}catch{const _0x3fdd13={};_0x3fdd13[_0x210841(0x468,0x667)]=ROOT,_0x3fdd13[_0x210841(0x4ec,0x687)]=env,_0x3fdd13[_0x6aac3f(-0x13,0x18e)+'hed']=!![],_0x3fdd13[_0x6aac3f(0x291,0x3ad)]=_0x6aac3f(0x1e4,0x1e)+'e',child=spawn(process[_0x6aac3f(0x264,0x3b6)+_0x6aac3f(0x211,0x75)],[watchdogPath,JSON['strin'+_0x210841(0x4b3,0x31a)](extraEnv)],_0x3fdd13);}else{const _0x5a3f42={};_0x5a3f42[_0x210841(0x468,0x437)]=ROOT,_0x5a3f42[_0x6aac3f(0x2d8,0x446)]=env,_0x5a3f42[_0x6aac3f(-0x13,-0x3d)+'hed']=!![],_0x5a3f42[_0x6aac3f(0x291,0x156)]=_0x6aac3f(0x1e4,0x46)+'e',child=spawn(process[_0x6aac3f(0x264,0x3e0)+_0x6aac3f(0x211,0x2b3)],[watchdogPath,JSON[_0x210841(0x487,0x2e0)+'gify'](extraEnv)],_0x5a3f42);}child['unref']();const port=flags[_0x6aac3f(0x9f,0xf0)]||env[_0x210841(0x376,0x53b)]||-0x18d*0x15+-0x109a+0x3eab;console['log'](_0x6aac3f(0xc2,0x8b)+_0x6aac3f(0x6,-0x13d)+'tarte'+_0x6aac3f(0xe5,-0x40)+_0x210841(0x453,0x2c6)+'round'+_0x6aac3f(0xda,-0x104)+_0x6aac3f(0x247,0x361)+_0x6aac3f(0x142,0x1e7)+_0x210841(0x44c,0x401)+child[_0x210841(0x3f6,0x350)]+').'),console[_0x6aac3f(0xf8,0x15f)]('\x20\x20→\x20h'+'ttp:/'+_0x210841(0x22e,0xf9)+_0x210841(0x3a8,0x4e7)+':'+port),console[_0x210841(0x30c,0x36a)]('\x20\x20Aut'+'o-res'+_0x210841(0x2df,0x2c2)+_0x210841(0x338,0x455)+_0x210841(0x505,0x68e)+'\x20Stop'+_0x210841(0x2ee,0x3e1)+_0x6aac3f(0x97,-0x7a)+_0x6aac3f(-0x19,-0xb9)+'hat\x20s'+_0x210841(0x42f,0x53d)),process[_0x210841(0x2e3,0x3e8)](0x2f*-0xbc+-0x7+0x228b*0x1);}else{if(flags['noWat'+_0x210841(0x1d3,0x242)]){const _0x1ed278={};_0x1ed278['cwd']=ROOT,_0x1ed278[_0x6aac3f(0x2d8,0x226)]=env,_0x1ed278[_0x6aac3f(0x291,0x3a9)]=_0x6aac3f(0x28b,0x321)+'it';const child=spawn(process[_0x6aac3f(0x264,0x3c6)+'ath'],[serverPath],_0x1ed278);writeFileSync(PID_FILE,String(child[_0x6aac3f(0x1e2,0x188)]));const cleanup=()=>{function _0x53a02a(_0x3b404b,_0xa516e){return _0x6aac3f(_0x3b404b- -0x17e,_0xa516e);}function _0x35ae52(_0x53065a,_0x50104b){return _0x6aac3f(_0x50104b-0x587,_0x53065a);}const _0x12bd12={'NQMcl':function(_0x139774,_0x1ec2ca,_0x8ac01){return _0x139774(_0x1ec2ca,_0x8ac01);},'DnOlv':function(_0x4ce2f0,_0x7b0ac6){return _0x4ce2f0===_0x7b0ac6;},'IYEkF':_0x53a02a(0x4c,0xe6),'zrSpc':function(_0x4aa751,_0x3626d9){return _0x4aa751(_0x3626d9);}};try{if(_0x12bd12[_0x53a02a(-0x1ae,-0x2d6)](_0x12bd12[_0x35ae52(0x72e,0x79a)],_0x12bd12['IYEkF']))_0x12bd12['zrSpc'](unlinkSync,PID_FILE);else{const _0x4b0f0a={};_0x4b0f0a[_0x35ae52(0x510,0x504)+_0x35ae52(0x671,0x620)]=!![],_0x4b0f0a[_0x35ae52(0x66d,0x7e6)]=!![],FfFdOw['NQMcl'](_0xacfbf4,_0x290d05,_0x4b0f0a),_0x82adb++,_0x4ada41['log'](_0x35ae52(0x69d,0x83b)+_0x35ae52(0x7ef,0x63c)+'d\x20dat'+_0x53a02a(0x49,-0x17b)+_0x35ae52(0x6dd,0x764)+_0x53a02a(0x22,0x3c)+_0x5b3ad1);}}catch{}};process['on'](_0x6aac3f(0x44,-0xa2)+'T',()=>{const _0x2a6db0={'jbxms':function(_0x4d2c41){return _0x4d2c41();}};function _0x248af6(_0x4b3bf5,_0x20f2ae){return _0x210841(_0x4b3bf5-0x18b,_0x20f2ae);}function _0x33f8d3(_0x54d9df,_0x1bc097){return _0x210841(_0x54d9df- -0x338,_0x1bc097);}_0x2a6db0[_0x33f8d3(0x1b5,0x2a0)](cleanup),process[_0x33f8d3(-0x55,-0xd)](-0x7b5*-0x1+0x236e+-0x2b23);}),process['on']('SIGTE'+'RM',()=>{const _0x69af18={'lBZuP':function(_0xdc367b){return _0xdc367b();}};function _0x204a15(_0x797df3,_0x24d833){return _0x210841(_0x24d833-0x185,_0x797df3);}_0x69af18[_0xe76c26(0x424,0x2d4)](cleanup);function _0xe76c26(_0x2a604e,_0x1aac0c){return _0x210841(_0x2a604e-0x41,_0x1aac0c);}process[_0xe76c26(0x324,0x44a)](0x1*-0x197+0x1*0x716+-0x1*0x57f);}),child['on'](_0x210841(0x2e3,0x349),_0xec20ab=>{const _0x4bfd90={};_0x4bfd90['ViznM']=function(_0x6f86e2,_0x41c811){return _0x6f86e2||_0x41c811;};function _0x5d0bf5(_0x1d3f48,_0x2ae667){return _0x6aac3f(_0x1d3f48-0x307,_0x2ae667);}const _0x4d47a0=_0x4bfd90;cleanup(),process['exit'](_0x4d47a0[_0x5d0bf5(0x24b,0x398)](_0xec20ab,0x1*0x224b+0x184a+-0x3a95*0x1));});}else{const watchdogPath=join(ROOT,_0x210841(0x24b,0x23d)+'r',_0x210841(0x391,0x283)+_0x210841(0x415,0x551)+'s'),extraEnv={};if(flags[_0x210841(0x2b3,0x203)])extraEnv[_0x6aac3f(0x162,0x324)]=String(flags['port']);if(flags['host'])extraEnv[_0x210841(0x1f9,0x322)+'K_HOS'+'T']=flags['host'];const _0x57d075={};_0x57d075[_0x210841(0x468,0x5fc)]=ROOT,_0x57d075[_0x210841(0x4ec,0x5ac)]=env,_0x57d075[_0x210841(0x4a5,0x415)]=_0x6aac3f(0x28b,0x263)+'it';const child=spawn(process['execP'+_0x210841(0x425,0x53b)],[watchdogPath,JSON[_0x6aac3f(0x273,0x45b)+_0x6aac3f(0x29f,0x431)](extraEnv)],_0x57d075),port=flags['port']||env[_0x6aac3f(0x162,-0x6d)]||0xbf*0xb+0x202*-0x1+0x74d;console[_0x6aac3f(0xf8,0x176)](_0x210841(0x2d6,0x46b)+_0x6aac3f(0x6,-0x1c7)+_0x210841(0x329,0x2ad)+_0x6aac3f(0xfe,0x2e5)+_0x6aac3f(0x183,0x75)+'tchdo'+'g\x20(au'+_0x210841(0x4cf,0x505)+'start'+'\x20enab'+_0x6aac3f(0x2f5,0x255)),console[_0x6aac3f(0xf8,0x2b3)](_0x6aac3f(-0xc4,-0xc0)+_0x6aac3f(0x25c,0x25c)+'/loca'+_0x6aac3f(0x194,0x376)+':'+port),console['log'](_0x210841(0x43c,0x55f)+_0x210841(0x274,0x1e8)+'-watc'+'hdog\x20'+_0x210841(0x378,0x35e)+'aw\x20se'+'rver\x20'+_0x6aac3f(0x1c6,0x205)),process['on']('SIGIN'+'T',()=>{const _0x143054={};function _0x4b84cc(_0x3a8296,_0xf83a85){return _0x6aac3f(_0xf83a85-0xf3,_0x3a8296);}function _0x583574(_0x373b36,_0x2c405a){return _0x6aac3f(_0x373b36-0x43b,_0x2c405a);}_0x143054[_0x4b84cc(0x12c,0x291)]=_0x4b84cc(0x521,0x3a5)+'RM';const _0x3bc2bc=_0x143054;child['kill'](_0x3bc2bc[_0x583574(0x5d9,0x556)]);}),process['on'](_0x6aac3f(0x2b2,0x27d)+'RM',()=>{const _0x2abaa7={};_0x2abaa7[_0x32fbea(0x141,0x186)]=_0x32fbea(0x262,0x72)+'RM';function _0x516e51(_0x23206f,_0x356e58){return _0x6aac3f(_0x23206f-0x125,_0x356e58);}function _0x32fbea(_0x1ff7ee,_0x3a9f54){return _0x6aac3f(_0x1ff7ee- -0x50,_0x3a9f54);}const _0x1fca09=_0x2abaa7;child[_0x32fbea(0x29b,0x33e)](_0x1fca09[_0x516e51(0x2b6,0x287)]);}),child['on']('exit',_0x232851=>{function _0x1ca16c(_0x4fa3ab,_0x473ff5){return _0x6aac3f(_0x473ff5-0x40f,_0x4fa3ab);}process[_0x1ca16c(0x355,0x4de)](_0x232851||0x1584+0x1b3+-0x1737);});}}}