@profoundlogic/coderflow-server 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/base-image/Dockerfile +2 -1
  2. package/dist/base-image/entrypoint.sh +11 -1
  3. package/dist/base-image/rewind-files.sh +197 -0
  4. package/dist/base-image/sync-repos.sh +53 -3
  5. package/dist/coder-server.js +1 -1
  6. package/dist/config.js +1 -1
  7. package/dist/lib/agent-keepalive.js +1 -1
  8. package/dist/lib/agent-models.js +1 -1
  9. package/dist/lib/api-keys.js +1 -1
  10. package/dist/lib/apiKeys.js +1 -1
  11. package/dist/lib/app-server-ports.js +1 -1
  12. package/dist/lib/auto-judge.js +1 -1
  13. package/dist/lib/basic-auth.js +1 -1
  14. package/dist/lib/build-history.js +1 -1
  15. package/dist/lib/build-output-service.js +1 -1
  16. package/dist/lib/build-scheduler.js +1 -1
  17. package/dist/lib/build-service.js +1 -1
  18. package/dist/lib/ca-certificates.js +1 -1
  19. package/dist/lib/claude-oauth-refresh.js +1 -1
  20. package/dist/lib/cli/build.js +1 -1
  21. package/dist/lib/cli/config-command.js +1 -1
  22. package/dist/lib/cli/config.js +1 -1
  23. package/dist/lib/cli/create-user.js +1 -1
  24. package/dist/lib/cli/init.js +1 -1
  25. package/dist/lib/cli/jira.js +1 -1
  26. package/dist/lib/cli/license.js +1 -1
  27. package/dist/lib/cli/server-manager.js +1 -1
  28. package/dist/lib/config-migration.js +1 -1
  29. package/dist/lib/container-credential-sync.js +1 -1
  30. package/dist/lib/container-tokens.js +1 -1
  31. package/dist/lib/data-dir.js +1 -1
  32. package/dist/lib/deployment-history.js +1 -1
  33. package/dist/lib/deployment-service.js +1 -1
  34. package/dist/lib/docker-utils.js +1 -1
  35. package/dist/lib/email.js +1 -1
  36. package/dist/lib/emailTemplates.js +1 -1
  37. package/dist/lib/entitlement.js +1 -1
  38. package/dist/lib/fetch-utils.js +1 -1
  39. package/dist/lib/git-commit-details-route.js +1 -1
  40. package/dist/lib/git-history-diff-guardrails.js +1 -1
  41. package/dist/lib/git-provider-service.js +1 -1
  42. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  43. package/dist/lib/git-provider-setup/index.js +1 -1
  44. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  45. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  46. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  47. package/dist/lib/git-providers/github-app-provider.js +1 -1
  48. package/dist/lib/git-providers/index.js +1 -1
  49. package/dist/lib/git-providers/provider-factory.js +1 -1
  50. package/dist/lib/git-providers/provider-interface.js +1 -1
  51. package/dist/lib/github-urls.js +1 -1
  52. package/dist/lib/group-objective-linking.js +1 -1
  53. package/dist/lib/jira-client.js +1 -1
  54. package/dist/lib/judge-blinding.js +1 -1
  55. package/dist/lib/logger.js +1 -1
  56. package/dist/lib/model-fetcher.js +1 -1
  57. package/dist/lib/notifications.js +1 -1
  58. package/dist/lib/objective-context.js +1 -0
  59. package/dist/lib/oidc-auth.js +1 -1
  60. package/dist/lib/oidc-device-flow.js +1 -1
  61. package/dist/lib/passwordTokens.js +1 -1
  62. package/dist/lib/pin-cascade.js +1 -1
  63. package/dist/lib/provider-accounts.js +1 -1
  64. package/dist/lib/provider-oauth.js +1 -1
  65. package/dist/lib/provider-profile.js +1 -1
  66. package/dist/lib/provider-token-refresh.js +1 -1
  67. package/dist/lib/request-url.js +1 -1
  68. package/dist/lib/rewind.js +1 -1
  69. package/dist/lib/roles.js +1 -1
  70. package/dist/lib/secrets.js +1 -1
  71. package/dist/lib/setup-repo-git-auth.js +1 -1
  72. package/dist/lib/state-capture.js +1 -1
  73. package/dist/lib/static-files.js +1 -1
  74. package/dist/lib/task-name-format.js +1 -1
  75. package/dist/lib/task-name-generator.js +1 -1
  76. package/dist/lib/user-git-oauth.js +1 -1
  77. package/dist/lib/user-git-tokens.js +1 -1
  78. package/dist/lib/users.js +1 -1
  79. package/dist/middleware/requireAuth.js +1 -1
  80. package/dist/middleware/requireInit.js +1 -1
  81. package/dist/middleware/requirePermission.js +1 -1
  82. package/dist/package.json +1 -1
  83. package/dist/routes/apiKeys.js +1 -1
  84. package/dist/routes/auth-oidc.js +1 -1
  85. package/dist/routes/auth.js +1 -1
  86. package/dist/routes/build.js +1 -1
  87. package/dist/routes/containers.js +1 -1
  88. package/dist/routes/deploy-task.js +1 -1
  89. package/dist/routes/environment-management.js +1 -1
  90. package/dist/routes/environments.js +1 -1
  91. package/dist/routes/external-skills.js +1 -1
  92. package/dist/routes/git-credentials.js +1 -1
  93. package/dist/routes/git-oauth.js +1 -1
  94. package/dist/routes/git-provider-setup.js +1 -1
  95. package/dist/routes/health.js +1 -1
  96. package/dist/routes/jira.js +1 -1
  97. package/dist/routes/objective-management.js +1 -1
  98. package/dist/routes/password.js +1 -1
  99. package/dist/routes/prompt.js +1 -1
  100. package/dist/routes/provider-auth.js +1 -1
  101. package/dist/routes/qa.js +1 -1
  102. package/dist/routes/settings.js +1 -1
  103. package/dist/routes/skill-management.js +1 -1
  104. package/dist/routes/skills.js +1 -1
  105. package/dist/routes/tasks.js +1 -1
  106. package/dist/routes/templates.js +1 -1
  107. package/dist/routes/test-task.js +1 -1
  108. package/dist/routes/test.js +1 -1
  109. package/dist/routes/users.js +1 -1
  110. package/dist/routes/visualizations.js +1 -1
  111. package/dist/scripts/create-user.js +1 -1
  112. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  113. package/dist/shipped-skills/objective-management/SKILL.md +83 -0
  114. package/dist/start.js +1 -1
  115. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  116. package/dist/web-ui/public/activity-feed.js +1 -1
  117. package/dist/web-ui/public/activity-formatters.js +1 -1
  118. package/dist/web-ui/public/agent-event-parser.js +1 -1
  119. package/dist/web-ui/public/app.js +1 -1
  120. package/dist/web-ui/public/approve-dialog.js +1 -1
  121. package/dist/web-ui/public/comments-widget.js +1 -1
  122. package/dist/web-ui/public/diff-utils.js +1 -1
  123. package/dist/web-ui/public/environments.js +1 -1
  124. package/dist/web-ui/public/feedback-widget.js +1 -1
  125. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  126. package/dist/web-ui/public/git-history.js +1 -1
  127. package/dist/web-ui/public/git-status.js +1 -1
  128. package/dist/web-ui/public/index.html +21 -0
  129. package/dist/web-ui/public/index.js +1 -1
  130. package/dist/web-ui/public/login.js +1 -1
  131. package/dist/web-ui/public/markdown-editor.js +1 -1
  132. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  133. package/dist/web-ui/public/modal-maximize.js +1 -1
  134. package/dist/web-ui/public/notifications.js +1 -1
  135. package/dist/web-ui/public/pr-dialog.js +1 -1
  136. package/dist/web-ui/public/server-health.js +1 -1
  137. package/dist/web-ui/public/settings.js +1 -1
  138. package/dist/web-ui/public/setup-password.js +1 -1
  139. package/dist/web-ui/public/skills.js +1 -1
  140. package/dist/web-ui/public/sse-client.js +1 -1
  141. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  142. package/dist/web-ui/public/styles.css +80 -0
  143. package/dist/web-ui/public/task.js +1 -1
  144. package/dist/web-ui/public/terminal.js +1 -1
  145. package/dist/web-ui/public/theme.js +1 -1
  146. package/dist/web-ui/public/users.js +1 -1
  147. package/dist/web-ui/public/variant-grouping.js +1 -1
  148. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x213d22,_0x35d08c){const _0x297152={_0x5ef484:0xee,_0x10d11d:0x12a,_0x224fae:0x1f4,_0x37b61d:0x1c2,_0x7aebd8:0x148,_0x35c637:0x13e,_0x5f1fe5:0x1fb,_0x1582c8:0x1de,_0x4dfd73:0x1c0,_0x547ef3:0x184,_0x4a08a8:0x281,_0x17a4f4:0x2dd,_0x1a44fd:0x307,_0x456074:0x1ab,_0x3969c4:0x138,_0x15cff8:0x2d0,_0x230e7f:0x2af,_0xa256f7:0x30b,_0xcb8123:0x2ae,_0x3f573b:0x2d8,_0x4c50c4:0x284,_0x2be172:0x15b,_0x4c938f:0x160},_0x576e9d={_0x14ddab:0x37a};function _0x1d450d(_0x281e51,_0x5a2040,_0xaf83c9,_0x57efc9){return _0x2429(_0x57efc9- -_0x576e9d._0x14ddab,_0x5a2040);}const _0x3d23c0=_0x213d22();function _0x56bc9f(_0x4be8bf,_0x288e2b,_0x30093d,_0x3ec2de){return _0x2429(_0x30093d-0x96,_0x3ec2de);}while(!![]){try{const _0x2bb377=-parseInt(_0x1d450d(-0x126,-0x122,-_0x297152._0x5ef484,-_0x297152._0x10d11d))/(0x13b1+-0x2*-0xf59+0x1931*-0x2)*(parseInt(_0x1d450d(-_0x297152._0x224fae,-0x189,-0x186,-_0x297152._0x37b61d))/(0x136c+0x269e+0x1358*-0x3))+parseInt(_0x1d450d(-0x163,-_0x297152._0x7aebd8,-0x119,-_0x297152._0x35c637))/(-0xec2+0x1*0xa3+0x86*0x1b)*(parseInt(_0x1d450d(-_0x297152._0x5f1fe5,-_0x297152._0x1582c8,-_0x297152._0x4dfd73,-0x1a1))/(-0x2f5*-0x9+-0x23b8+0x91f))+-parseInt(_0x1d450d(-0x127,-0x145,-0x18e,-_0x297152._0x547ef3))/(-0x2*0x6dc+-0xb*-0x35f+-0x1758)+-parseInt(_0x56bc9f(0x297,_0x297152._0x4a08a8,_0x297152._0x17a4f4,_0x297152._0x1a44fd))/(0x75e+0x8*0x45c+-0x182*0x1c)*(-parseInt(_0x1d450d(-0x1cd,-_0x297152._0x456074,-_0x297152._0x3969c4,-0x185))/(0x1fd*0x4+0x19d4+-0x21c1))+-parseInt(_0x56bc9f(0x282,_0x297152._0x15cff8,0x2ed,0x33d))/(-0x1bfb*0x1+0x64f+0x73c*0x3)*(-parseInt(_0x56bc9f(_0x297152._0x230e7f,_0x297152._0xa256f7,0x2de,0x324))/(-0x3b*-0x25+-0x1*-0x449+-0x1*0xcc7))+-parseInt(_0x56bc9f(_0x297152._0xcb8123,_0x297152._0x3f573b,0x29c,_0x297152._0x4c50c4))/(0x1aec+-0x401*-0x5+-0x2ee7)+parseInt(_0x1d450d(-_0x297152._0x2be172,-0x1d5,-_0x297152._0x4c938f,-0x194))/(0x10*0x153+-0x1*0x62f+-0x1*0xef6);if(_0x2bb377===_0x35d08c)break;else _0x3d23c0['push'](_0x3d23c0['shift']());}catch(_0x10da86){_0x3d23c0['push'](_0x3d23c0['shift']());}}}(_0x4b07,-0x9bdb*0x3+0x4158c+0x2650c));import{promises as _0x59fb5}from'fs';import{existsSync}from'fs';import _0x31f2c3 from'path';import _0x4c282f from'crypto';import{DATA_DIR}from'./data-dir.js';import{logger as _0x3c9d18}from'./logger.js';const TOKENS_FILE=_0xe42fbd(0x16,0x72,0xbb,0xcc)+_0x223ca0(0x2e,0x75,0x14,0xc5),ENCRYPTION_KEY_FILE=_0x223ca0(0x3a,0x90,0x58,0xe3)+_0x223ca0(-0x24,0xe,-0xa,-0x3a),ALGORITHM='aes-256-gc'+'m',KEY_LENGTH=-0x94f*0x3+-0x8f9+-0x54a*-0x7,IV_LENGTH=-0x36f*0x1+0x25a*-0x1+-0x1f3*-0x3,AUTH_TAG_LENGTH=-0x1ec1*0x1+0x1d45+0x9*0x2c;let encryptionKeyCache=null;async function getEncryptionKey(_0x5a3b68={}){const _0x23de4b={_0x6c170b:0x8c,_0x2d645c:0x5a,_0xabdf10:0x82,_0x4e8933:0x97,_0x50d346:0x294,_0x40a8b6:0x254,_0x3feb15:0x276,_0x4c1ee2:0x2db,_0x26a64a:0xf1,_0x107e56:0x10a,_0x194bb6:0xbb,_0x458429:0x148,_0x53f0e5:0xdb,_0x19a9dc:0x154,_0x7304cc:0x2ad,_0x1fe894:0x2f0,_0x5d2583:0x2e8,_0x5bd2de:0x26a,_0x2f2331:0x29b,_0x1b477e:0x28a,_0x6d9390:0x259,_0x39b4ac:0x114,_0x36fc01:0x208,_0x29522e:0xd8,_0x1ff11a:0x100,_0x54d184:0x111,_0x3d8771:0x274,_0x359d4f:0x217,_0x3252d5:0x273,_0xdbddfb:0x268,_0xaf7854:0x23a,_0x466caf:0x239,_0x5b2409:0x24b,_0x3048cb:0x26b,_0x46f702:0xc6,_0x4d4c8e:0xbe,_0x491e46:0x136,_0x182107:0xf8,_0xcf5596:0xe5,_0x10980a:0x120,_0x32921c:0xe5,_0x239526:0xe9,_0x491dd6:0x8e,_0x418334:0x102,_0x359ac8:0x274,_0x48c8c7:0x242,_0x25c06a:0x281,_0x47f66b:0x298,_0x3a2e9e:0x330,_0x29d090:0x148,_0x229303:0x19a,_0x153e51:0x1a9,_0x5dee71:0x13e,_0x4c7f11:0x258,_0x3cfdb7:0x24d,_0x52941d:0x1eb,_0x1b2f87:0x227,_0x573ecf:0x22f,_0x7c2298:0x1f8,_0x6b5923:0x28c,_0x576405:0x256,_0xd711e4:0x23d,_0x2ef4ab:0x2b1,_0x5a4ea0:0x2fd,_0x47a0e5:0x313,_0x43a18d:0x127,_0x4b78c2:0xa3,_0x34fa72:0xe8,_0x214f8c:0x125,_0x30f54f:0xee,_0x25805c:0x12b,_0x1703c5:0x29c,_0x4fa57b:0x2c3,_0x17c121:0x285,_0x2389b0:0x291,_0x4f06c4:0x255,_0x47da05:0x2b5,_0x349db7:0x32b,_0x386a7e:0x288,_0x18885d:0xa6,_0x36c0b7:0xe1,_0x34576e:0xb4,_0x1dd678:0x22c,_0x2a7a31:0x1ca,_0x8d1b0c:0x1ac,_0x51aa8e:0x14f,_0x59d133:0x1e1,_0x23cd66:0x251,_0x2211b9:0x24c,_0x9ba45d:0x22b,_0x14951f:0x2b6,_0x32fc92:0x25d,_0x6975c5:0x20a,_0x3c351f:0x224,_0x163409:0x26e,_0x445c2d:0xa2,_0x3ab2b9:0x2ed,_0x3bf3ea:0x280,_0x21ddbb:0x323,_0x4cb077:0xb9,_0x4f92d7:0xd9,_0x38bad3:0x310,_0x316802:0x249,_0x263b7f:0x256,_0x554714:0x201,_0x5093ac:0xd1,_0x4b6178:0x16f,_0x452c7a:0xc8,_0x1e21c7:0x13c,_0x8ce448:0x10b,_0x1cf4af:0x236,_0x3f3689:0x241,_0x127d8c:0x234,_0x3667a6:0x240,_0x4c5be0:0x1d6,_0x2f457f:0x107,_0x17f672:0xf9,_0x1515f0:0x66,_0x583967:0x73,_0x4592a4:0x9d,_0xf24c4d:0x2dd,_0x56ba7b:0x23e,_0x503964:0x20a,_0x1c91dd:0x248,_0x338512:0x2cd},_0x4e8cd8={_0x1e2bf4:0x1e4},_0x320e57={'GdeVu':function(_0x4bdec6,_0x58c93f){return _0x4bdec6*_0x58c93f;},'qSDpU':function(_0x22e88a,_0x3ad5f5){return _0x22e88a<=_0x3ad5f5;},'WLhiA':function(_0x4af605,_0x2513c6){return _0x4af605-_0x2513c6;},'vqybb':_0x17ec1e(_0x23de4b._0x6c170b,_0x23de4b._0x2d645c,_0x23de4b._0xabdf10,_0x23de4b._0x4e8933)+_0x161806(_0x23de4b._0x50d346,0x2c1,0x236,_0x23de4b._0x40a8b6)+_0x161806(0x2a6,_0x23de4b._0x3feb15,_0x23de4b._0x4c1ee2,0x2a7)+_0x17ec1e(_0x23de4b._0x26a64a,0xbd,0xb3,0x109),'FGgSe':function(_0x2515cf,_0xea3892){return _0x2515cf!==_0xea3892;},'aZlth':_0x17ec1e(0xad,_0x23de4b._0x107e56,0xd5,_0x23de4b._0x194bb6),'MJsuq':function(_0x2ca25c,_0x3cf657){return _0x2ca25c(_0x3cf657);},'UernG':_0x17ec1e(0x105,0x17c,0x120,_0x23de4b._0x458429),'YxmJc':_0x17ec1e(0xa6,_0x23de4b._0x53f0e5,_0x23de4b._0x19a9dc,0x110)+_0x161806(_0x23de4b._0x7304cc,_0x23de4b._0x1fe894,_0x23de4b._0x5d2583,0x290)+_0x161806(0x2da,0x288,0x33c,0x33a)+_0x161806(_0x23de4b._0x5bd2de,_0x23de4b._0x2f2331,_0x23de4b._0x1b477e,_0x23de4b._0x6d9390)+_0x17ec1e(0x144,_0x23de4b._0x39b4ac,0x124,0x140)+'y','CjYGg':_0x17ec1e(0x80,0xbd,0xa2,0xe1)+_0x161806(0x25f,_0x23de4b._0x36fc01,0x229,0x22e)+_0x17ec1e(0x156,_0x23de4b._0x29522e,_0x23de4b._0x1ff11a,_0x23de4b._0x54d184)+_0x161806(_0x23de4b._0x3d8771,_0x23de4b._0x359d4f,0x29a,0x228),'WzFmz':'mScVT','EhASM':_0x161806(0x278,_0x23de4b._0x3252d5,_0x23de4b._0xdbddfb,_0x23de4b._0xaf7854),'VyjLv':_0x161806(0x264,_0x23de4b._0x466caf,_0x23de4b._0x5b2409,_0x23de4b._0x3048cb)+_0x17ec1e(_0x23de4b._0x46f702,0xe5,0xc6,0x108)+_0x17ec1e(_0x23de4b._0x4d4c8e,0x9c,0xf4,0x8d)+_0x17ec1e(_0x23de4b._0x491e46,0x151,0xbc,_0x23de4b._0x182107)+'irectory','wfcJZ':_0x17ec1e(_0x23de4b._0xcf5596,0xd3,_0x23de4b._0x10980a,_0x23de4b._0x32921c),'FazWF':'Failed\x20to\x20'+_0x17ec1e(_0x23de4b._0x2d645c,_0x23de4b._0x239526,0x90,_0x23de4b._0x491dd6)+_0x17ec1e(0x120,_0x23de4b._0x418334,0xb5,0x111)+_0x161806(_0x23de4b._0x359ac8,_0x23de4b._0x48c8c7,0x240,_0x23de4b._0x25c06a)},_0x3da888=_0x5a3b68['logger']||_0x3c9d18,_0x4e645e=_0x5a3b68[_0x161806(0x2df,0x2ec,_0x23de4b._0x47f66b,_0x23de4b._0x3a2e9e)]||DATA_DIR;if(encryptionKeyCache){if(_0x320e57['FGgSe']('uahXt',_0x320e57[_0x17ec1e(_0x23de4b._0x29d090,_0x23de4b._0x229303,_0x23de4b._0x153e51,_0x23de4b._0x5dee71)]))return encryptionKeyCache;else _0x63629d['github_use'+_0x161806(_0x23de4b._0x4c7f11,0x238,0x232,0x278)]=_0x1a72a2[_0x161806(0x24d,0x20f,_0x23de4b._0x3cfdb7,_0x23de4b._0x52941d)+'r_id'];}const _0x2304d5=_0x31f2c3[_0x161806(0x275,0x2c0,_0x23de4b._0x1b2f87,0x2a8)](_0x4e645e,ENCRYPTION_KEY_FILE);function _0x17ec1e(_0x279159,_0x45e218,_0x419e47,_0x1b50f8){return _0xe42fbd(_0x279159-_0x4e8cd8._0x1e2bf4,_0x1b50f8-0xc1,_0x419e47-0x17b,_0x419e47);}if(_0x320e57[_0x17ec1e(0x17f,0xff,0xb0,0x11a)](existsSync,_0x2304d5))try{const _0x19056d=await _0x59fb5['readFile'](_0x2304d5,_0x320e57[_0x161806(_0x23de4b._0x573ecf,_0x23de4b._0x7c2298,0x1ce,_0x23de4b._0x6b5923)]);return encryptionKeyCache=Buffer[_0x161806(_0x23de4b._0x576405,0x26a,_0x23de4b._0xd711e4,_0x23de4b._0x2ef4ab)](_0x19056d[_0x161806(_0x23de4b._0x5a4ea0,0x2b5,0x33f,_0x23de4b._0x47a0e5)](),_0x17ec1e(0x6d,_0x23de4b._0x43a18d,0x6c,0xd5)),_0x3da888['debug'](_0x320e57['YxmJc']),encryptionKeyCache;}catch(_0x40a8d0){const _0x2c2c9a={};_0x2c2c9a[_0x17ec1e(0xb4,_0x23de4b._0x4b78c2,0x6d,0x9d)]=_0x40a8d0[_0x17ec1e(_0x23de4b._0x34fa72,_0x23de4b._0x214f8c,0xfd,_0x23de4b._0x30f54f)],_0x3da888[_0x17ec1e(0xeb,_0x23de4b._0x182107,_0x23de4b._0x25805c,0x107)](_0x161806(_0x23de4b._0x1703c5,_0x23de4b._0x4fa57b,_0x23de4b._0x17c121,0x2cd)+_0x161806(0x26f,0x231,0x29c,0x2a0)+_0x161806(0x2b4,0x30e,_0x23de4b._0x2389b0,_0x23de4b._0x4f06c4)+_0x161806(0x2ce,_0x23de4b._0x47da05,_0x23de4b._0x349db7,_0x23de4b._0x386a7e)+'\x20generatin'+_0x17ec1e(0xe1,_0x23de4b._0x18885d,_0x23de4b._0x36c0b7,_0x23de4b._0x34576e),_0x2c2c9a);}_0x3da888[_0x161806(_0x23de4b._0x1dd678,_0x23de4b._0x2a7a31,0x289,0x282)](_0x320e57[_0x17ec1e(_0x23de4b._0x214f8c,_0x23de4b._0x8d1b0c,0x1b8,_0x23de4b._0x51aa8e)]);const _0x3ef30f=_0x4c282f[_0x161806(0x241,_0x23de4b._0x59d133,0x23e,_0x23de4b._0x23cd66)+'s'](KEY_LENGTH);function _0x161806(_0x5a8cd6,_0x3b3aa2,_0x4e4fc5,_0xcbbbc7){return _0x223ca0(_0x5a8cd6-0x85,_0x5a8cd6-0x240,_0x4e4fc5-0x73,_0x4e4fc5);}try{if(_0x320e57['WzFmz']===_0x320e57[_0x161806(_0x23de4b._0x2211b9,_0x23de4b._0x9ba45d,_0x23de4b._0x14951f,0x265)]){const _0x37dd4b={};_0x37dd4b[_0x161806(_0x23de4b._0x32fc92,_0x23de4b._0x6975c5,_0x23de4b._0x3c351f,_0x23de4b._0x163409)]=!![],await _0x59fb5[_0x17ec1e(0xda,_0x23de4b._0x445c2d,0xf1,0xd8)](_0x4e645e,_0x37dd4b);const _0x166464={};_0x166464[_0x161806(0x2e9,_0x23de4b._0x3ab2b9,_0x23de4b._0x3bf3ea,_0x23de4b._0x21ddbb)]=0x180,await _0x59fb5[_0x17ec1e(0x7f,0xae,_0x23de4b._0x4cb077,_0x23de4b._0x4f92d7)](_0x2304d5,_0x3ef30f['toString'](_0x320e57['EhASM']),_0x166464),_0x3da888['info'](_0x320e57[_0x161806(0x2c0,0x2a8,0x280,_0x23de4b._0x38bad3)]);}else{if(!_0x45cce5)return![];const _0x13820d=new _0x1fd191(_0x1d31d6)[_0x161806(_0x23de4b._0x316802,_0x23de4b._0x263b7f,_0x23de4b._0x554714,_0x23de4b._0x17c121)](),_0x1d2d92=_0x38b75b['now'](),_0x17299f=_0x320e57['GdeVu'](_0x11d97e*(0x2106+-0xc22+-0x14a8),-0x12a1+-0x684+0x3*0x9af);return _0x320e57[_0x17ec1e(_0x23de4b._0x5093ac,0xe3,_0x23de4b._0x4b6178,0x132)](_0x320e57[_0x17ec1e(_0x23de4b._0x452c7a,0x148,_0x23de4b._0x1e21c7,_0x23de4b._0x8ce448)](_0x13820d,_0x1d2d92),_0x17299f);}}catch(_0xbe057c){if(_0x320e57['FGgSe'](_0x161806(_0x23de4b._0x386a7e,_0x23de4b._0x4c7f11,_0x23de4b._0x1cf4af,_0x23de4b._0x3f3689),_0x320e57[_0x161806(_0x23de4b._0x127d8c,0x22d,0x299,0x208)]))throw new _0x2c3d99(_0x320e57['vqybb']);else{const _0x239c82={};_0x239c82[_0x161806(_0x23de4b._0x3667a6,0x1f2,_0x23de4b._0x4c5be0,0x26e)]=_0xbe057c[_0x17ec1e(_0x23de4b._0x2f457f,0x14b,_0x23de4b._0x17f672,0xee)],_0x3da888[_0x17ec1e(_0x23de4b._0x1515f0,_0x23de4b._0x583967,0x93,_0x23de4b._0x4592a4)](_0x320e57['FazWF'],_0x239c82);throw new Error(_0x161806(_0x23de4b._0x1703c5,0x2d1,_0x23de4b._0xf24c4d,_0x23de4b._0x56ba7b)+_0x161806(0x242,0x233,0x243,_0x23de4b._0x503964)+'cryption\x20k'+_0x161806(0x25b,0x2a1,0x282,_0x23de4b._0x1c91dd)+_0xbe057c[_0x161806(0x291,_0x23de4b._0x338512,_0x23de4b._0x2389b0,0x253)]);}}return encryptionKeyCache=_0x3ef30f,encryptionKeyCache;}function _0x223ca0(_0x34819c,_0x1a2d57,_0x2562ec,_0x30b36c){const _0x1cff4c={_0x13a0ff:0x1b0};return _0x2429(_0x1a2d57- -_0x1cff4c._0x13a0ff,_0x30b36c);}export function clearEncryptionKeyCache(){encryptionKeyCache=null;}function encrypt(_0x26040a,_0x3b76fa){const _0x1d91d8={_0x5f015e:0x24e,_0x487881:0x2ac,_0xf58207:0x276,_0x27c799:0x22b,_0x44e304:0x1c8,_0x1cad66:0x229,_0x3109ba:0x291,_0x33e147:0x15a,_0x59862a:0x144,_0x2d123c:0x122,_0x4f9010:0xbb,_0xbc61c:0xe0,_0x4f2152:0x101,_0x2192d1:0x1a7,_0x2e8eb3:0x16c,_0x23d648:0x2b3,_0x184082:0x23a,_0x38638d:0x286,_0x4adf25:0x258,_0x11b01e:0x155,_0x22fe60:0x21a,_0x546db:0xe5,_0x4cbbdb:0xf6,_0x12d51e:0x110,_0x4c0eea:0x1ed,_0x2f6795:0x21a,_0x54bb90:0x1ff,_0x34ff10:0x1bc},_0x5b4fbf={_0x236de0:0x184},_0x56b2b0={_0x2622be:0x11b,_0x268b57:0x1bc},_0x481f9a={};_0x481f9a[_0x1d2f5a(_0x1d91d8._0x5f015e,_0x1d91d8._0x487881,_0x1d91d8._0xf58207,0x246)]=_0x1d2f5a(_0x1d91d8._0x27c799,_0x1d91d8._0x44e304,_0x1d91d8._0x1cad66,_0x1d91d8._0x3109ba),_0x481f9a[_0x250057(_0x1d91d8._0x33e147,_0x1d91d8._0x59862a,0x169,_0x1d91d8._0x2d123c)]='hex';const _0x12c8ca=_0x481f9a,_0x479622=_0x4c282f[_0x250057(0x104,0xb0,_0x1d91d8._0x4f9010,_0x1d91d8._0xbc61c)+'s'](IV_LENGTH),_0xe22262=_0x4c282f[_0x250057(_0x1d91d8._0x4f2152,_0x1d91d8._0x2192d1,0x175,_0x1d91d8._0x2e8eb3)+'eriv'](ALGORITHM,_0x3b76fa,_0x479622);let _0x30b004=_0xe22262['update'](_0x26040a,_0x12c8ca[_0x1d2f5a(_0x1d91d8._0x5f015e,_0x1d91d8._0x23d648,_0x1d91d8._0x184082,0x1f1)],_0x12c8ca['DByqV']);_0x30b004+=_0xe22262[_0x1d2f5a(0x26a,0x267,_0x1d91d8._0x38638d,_0x1d91d8._0x4adf25)](_0x12c8ca['DByqV']);function _0x1d2f5a(_0x25c967,_0x7a9c0b,_0x3f7ef8,_0x19cf62){return _0x223ca0(_0x25c967-_0x56b2b0._0x2622be,_0x25c967-_0x56b2b0._0x268b57,_0x3f7ef8-0x109,_0x3f7ef8);}function _0x250057(_0x2fc651,_0x4dfc74,_0x141956,_0x12fe79){return _0x223ca0(_0x2fc651-0x1ab,_0x12fe79-0xdf,_0x141956-_0x5b4fbf._0x236de0,_0x4dfc74);}const _0x56a14d=_0xe22262[_0x1d2f5a(0x1b9,0x1ba,_0x1d91d8._0x11b01e,_0x1d91d8._0x22fe60)]();return _0x479622[_0x250057(_0x1d91d8._0x546db,0xcb,_0x1d91d8._0x4cbbdb,_0x1d91d8._0x12d51e)](_0x12c8ca['DByqV'])+':'+_0x56a14d[_0x1d2f5a(_0x1d91d8._0x4c0eea,0x1b8,_0x1d91d8._0x2f6795,0x1e6)](_0x12c8ca[_0x1d2f5a(_0x1d91d8._0x54bb90,0x20f,0x260,_0x1d91d8._0x34ff10)])+':'+_0x30b004;}function decrypt(_0x1397dc,_0x1a3b35){const _0x126aeb={_0x81a5eb:0x34a,_0x2a89c7:0x360,_0x8d7fc8:0x3b1,_0x4c88d7:0x5cf,_0x2e54fb:0x603,_0x4a6f06:0x301,_0x440671:0x2a7,_0x266435:0x573,_0xb0a407:0x589,_0x23d3cf:0x2bd,_0x4db29d:0x336,_0x3ecec6:0x5d8,_0x544194:0x5f0,_0x119e3f:0x616,_0x5b78a7:0x5ba,_0x4b1338:0x331,_0x325d5d:0x313,_0x2b0e29:0x2e2,_0x375046:0x367,_0x3e95ff:0x2e7,_0x3a4113:0x32e,_0x118270:0x31a,_0x1dc1ab:0x282,_0x2da80c:0x2c5,_0x21bad0:0x26f,_0x252d34:0x2df,_0x193269:0x30d,_0x384772:0x2fb,_0x28b9d1:0x2a4,_0x45f137:0x2bf,_0x3b964c:0x58e,_0x4189d8:0x63c,_0x2d3acd:0x6a7,_0x54d468:0x575,_0x11d7ef:0x5b9,_0x1cebe5:0x5a7,_0x57d2d5:0x5a7,_0x331884:0x609,_0x3bafcd:0x5e3,_0x49818e:0x644,_0x391796:0x395,_0x5f4a38:0x33f,_0x26990a:0x618,_0xb1b538:0x5b1},_0x4b4517={_0x31911b:0x2af},_0x28ddb9={_0x26546b:0x111},_0x4f8f8d={};_0x4f8f8d[_0x4c19f4(_0x126aeb._0x81a5eb,0x2ff,_0x126aeb._0x2a89c7,_0x126aeb._0x8d7fc8)]=function(_0x1c6e3a,_0x54c32f){return _0x1c6e3a||_0x54c32f;},_0x4f8f8d[_0x40b40e(_0x126aeb._0x4c88d7,_0x126aeb._0x2e54fb,0x64b,0x608)]='Invalid\x20en'+_0x4c19f4(0x2b3,0x2ed,_0x126aeb._0x4a6f06,_0x126aeb._0x440671)+_0x40b40e(0x5a1,_0x126aeb._0x266435,0x54a,_0x126aeb._0xb0a407),_0x4f8f8d['wCHLa']=_0x4c19f4(0x2e7,0x288,_0x126aeb._0x23d3cf,_0x126aeb._0x4db29d),_0x4f8f8d['WXMnU']=_0x40b40e(_0x126aeb._0x3ecec6,_0x126aeb._0x544194,0x5ec,_0x126aeb._0x119e3f);const _0x4bf234=_0x4f8f8d,[_0x38d027,_0x33bc69,_0x2e48c2]=_0x1397dc[_0x40b40e(_0x126aeb._0x5b78a7,0x5c0,0x5c0,0x58f)](':');function _0x40b40e(_0x4731be,_0x2226a4,_0x11df3d,_0x48aa17){return _0xe42fbd(_0x4731be-_0x28ddb9._0x26546b,_0x2226a4-0x5a5,_0x11df3d-0x71,_0x4731be);}if(_0x4bf234[_0x40b40e(_0x126aeb._0x3ecec6,0x61c,0x5fc,0x684)](!_0x38d027,!_0x33bc69)||!_0x2e48c2)throw new Error(_0x4bf234[_0x4c19f4(_0x126aeb._0x4b1338,_0x126aeb._0x325d5d,_0x126aeb._0x2b0e29,_0x126aeb._0x375046)]);const _0x674d71=Buffer['from'](_0x38d027,_0x4c19f4(_0x126aeb._0x3e95ff,_0x126aeb._0x3a4113,_0x126aeb._0x118270,_0x126aeb._0x1dc1ab)),_0x204b0f=Buffer[_0x4c19f4(_0x126aeb._0x2da80c,0x2fd,0x281,_0x126aeb._0x21bad0)](_0x33bc69,_0x4bf234[_0x4c19f4(_0x126aeb._0x252d34,0x2bc,_0x126aeb._0x193269,_0x126aeb._0x384772)]);function _0x4c19f4(_0x3deb25,_0x4c90ea,_0x47bc01,_0x69bad7){return _0x223ca0(_0x3deb25-0x130,_0x3deb25-_0x4b4517._0x31911b,_0x47bc01-0x161,_0x47bc01);}const _0x3a3125=_0x4c282f[_0x4c19f4(_0x126aeb._0x28b9d1,_0x126aeb._0x45f137,0x2ba,0x2fb)+_0x40b40e(0x57d,0x57f,_0x126aeb._0x3b964c,0x567)](ALGORITHM,_0x1a3b35,_0x674d71);_0x3a3125['setAuthTag'](_0x204b0f);let _0x5aab61=_0x3a3125[_0x40b40e(0x5e6,_0x126aeb._0x4189d8,0x648,_0x126aeb._0x2d3acd)](_0x2e48c2,_0x40b40e(_0x126aeb._0x54d468,_0x126aeb._0x11d7ef,0x5e3,_0x126aeb._0x1cebe5),_0x4bf234[_0x40b40e(_0x126aeb._0x57d2d5,_0x126aeb._0x331884,_0x126aeb._0x3bafcd,_0x126aeb._0x49818e)]);return _0x5aab61+=_0x3a3125[_0x4c19f4(0x35d,_0x126aeb._0x391796,_0x126aeb._0x5f4a38,0x326)](_0x40b40e(_0x126aeb._0x26990a,0x5f0,_0x126aeb._0xb1b538,0x5ed)),_0x5aab61;}async function loadTokenStorage(_0x58de12={}){const _0x2e71aa={_0x1e241a:0x582,_0x2eee05:0x5e9,_0x2dd1ad:0x5cf,_0x145a72:0x611,_0x2a3862:0x5fb,_0x5151a9:0x5e6,_0x3f050a:0x58c,_0x3e8d3d:0x5bf,_0x330462:0x5d0,_0x55f6d9:0x5a2,_0x468890:0x654,_0x45cc01:0x5e0,_0x4cabfb:0x558,_0x5c5970:0x4e9,_0xef7b50:0x519,_0x2c66aa:0x519,_0xea8e23:0x577,_0x153d28:0x54d,_0x496844:0x550,_0x32e739:0x594,_0x1caad6:0x558,_0x49e247:0x5b5,_0x379b9a:0x56e,_0x5d4694:0x5a0,_0x39dad0:0x577,_0x1cb624:0x5d4,_0x1fd9d0:0x533,_0x3a085e:0x585,_0xfbbced:0x597,_0x7b2a8a:0x5cd,_0x166e89:0x598,_0x4a4f10:0x630,_0x1fe99b:0x5e4,_0x51b3b0:0x550,_0x3534df:0x586,_0x5c67a5:0x59a,_0x5eaed5:0x591,_0x405171:0x560,_0x43762d:0x5f1,_0xaa10a:0x5ad,_0xdfc822:0x587},_0x6a37f6={_0x5b6661:0x53e},_0x152c7a={_0x46986e:0x16c,_0x4d676c:0x5ae},_0x4457b9={'KvKBR':function(_0x280834,_0x49f017){return _0x280834(_0x49f017);},'Rkswo':_0x32bdbb(0x5a0,_0x2e71aa._0x1e241a,_0x2e71aa._0x2eee05,_0x2e71aa._0x2dd1ad),'TZmrk':function(_0x2cbb5c,_0x3b6ce4){return _0x2cbb5c!==_0x3b6ce4;},'gxPuJ':_0x48eb69(_0x2e71aa._0x145a72,0x672,0x5cf,0x5c3),'LCVmZ':_0x32bdbb(_0x2e71aa._0x2a3862,_0x2e71aa._0x5151a9,0x59a,0x5ac)+'load\x20user\x20'+_0x32bdbb(0x5ae,_0x2e71aa._0x3f050a,0x560,0x559)},_0x53169b=_0x58de12['logger']||_0x3c9d18;function _0x48eb69(_0x1738ff,_0x249fbd,_0x48bce9,_0x1d10cc){return _0xe42fbd(_0x1738ff-_0x152c7a._0x46986e,_0x1738ff-_0x152c7a._0x4d676c,_0x48bce9-0xe,_0x249fbd);}const _0x5bcda9=_0x58de12['dataDir']||DATA_DIR;function _0x32bdbb(_0x5348da,_0x18c70e,_0x43205c,_0x2c5ff1){return _0x223ca0(_0x5348da-0x96,_0x43205c-_0x6a37f6._0x5b6661,_0x43205c-0xeb,_0x5348da);}const _0x53c126=_0x31f2c3[_0x48eb69(_0x2e71aa._0x3e8d3d,0x5e1,0x621,0x591)](_0x5bcda9,TOKENS_FILE);if(!_0x4457b9[_0x48eb69(0x5c4,0x596,_0x2e71aa._0x330462,0x593)](existsSync,_0x53c126)){const _0x179f69={};return _0x179f69[_0x48eb69(0x5f1,0x639,_0x2e71aa._0x55f6d9,_0x2e71aa._0x468890)]={},_0x179f69;}try{const _0x3b1d0e=await _0x59fb5['readFile'](_0x53c126,_0x4457b9[_0x32bdbb(0x601,0x637,_0x2e71aa._0x45cc01,0x608)]);return JSON[_0x32bdbb(0x588,_0x2e71aa._0x4cabfb,0x54e,_0x2e71aa._0x5c5970)](_0x3b1d0e);}catch(_0xc9f3e6){if(_0x4457b9[_0x32bdbb(_0x2e71aa._0xef7b50,_0x2e71aa._0x2c66aa,_0x2e71aa._0xea8e23,_0x2e71aa._0x153d28)](_0x4457b9[_0x32bdbb(_0x2e71aa._0x496844,_0x2e71aa._0x32e739,_0x2e71aa._0x1caad6,_0x2e71aa._0x49e247)],_0x32bdbb(_0x2e71aa._0x379b9a,0x567,_0x2e71aa._0x5d4694,_0x2e71aa._0x39dad0))){const _0x3d33ca={};_0x3d33ca['error']=_0xc9f3e6['message'],_0x53169b[_0x32bdbb(_0x2e71aa._0x1cb624,0x60f,0x5a8,0x540)](_0x4457b9[_0x32bdbb(_0x2e71aa._0x1fd9d0,_0x2e71aa._0x3a085e,_0x2e71aa._0xfbbced,0x5a0)],_0x3d33ca);const _0x5b49a2={};return _0x5b49a2[_0x48eb69(0x5f1,0x62d,_0x2e71aa._0x7b2a8a,0x59e)]={},_0x5b49a2;}else{const _0x2883a3={};_0x2883a3[_0x48eb69(0x58a,0x570,0x565,_0x2e71aa._0x166e89)]=_0x5cf097[_0x48eb69(0x5db,0x5a4,_0x2e71aa._0x4a4f10,_0x2e71aa._0x1cb624)],_0x125bca[_0x32bdbb(_0x2e71aa._0x1fe99b,_0x2e71aa._0x51b3b0,0x5a8,0x55f)](_0x32bdbb(0x54a,_0x2e71aa._0x3534df,_0x2e71aa._0x5c67a5,0x5e3)+'load\x20user\x20'+_0x32bdbb(_0x2e71aa._0x5eaed5,0x530,_0x2e71aa._0x405171,0x578),_0x2883a3);const _0x11cecb={};return _0x11cecb[_0x48eb69(_0x2e71aa._0x43762d,_0x2e71aa._0xaa10a,_0x2e71aa._0xdfc822,0x601)]={},_0x11cecb;}}}async function saveTokenStorage(_0x24e89e,_0x163503={}){const _0x5ec0ae={_0x4507f0:0x36,_0x2f2f3f:0x73,_0x3226ec:0x2dc,_0x2c77ab:0x281,_0x3fc02d:0x2cf,_0x516ded:0x38,_0x3ad5c8:0x68,_0x5b6aa4:0x6a,_0x5968eb:0x34,_0x281862:0x283,_0x10a25d:0x2f1,_0x43c71c:0x2d3,_0x39ece2:0x334,_0x30a2b6:0x15,_0x76d680:0x2fd,_0x5b1723:0x31b,_0x19c810:0x2da,_0x2669cd:0x371,_0x113061:0xcc,_0x2f61c9:0x43,_0x188ae8:0xf,_0x2f35d5:0x28,_0x1bfaee:0x28,_0x38cc90:0x308,_0x4dfc42:0x2db,_0x283d5f:0x3aa,_0x11ee4b:0x31d,_0x1aa7b1:0x2a4,_0x3567f7:0x311,_0x3d642a:0x2ea,_0x31cdd1:0x2e7,_0x1a6d78:0x2fb,_0x2bd39b:0x36a,_0xed1dcd:0x2ea,_0x2aaea3:0x2ef,_0xb6bd09:0x2d9,_0x3c8c72:0x262,_0x184c51:0x2ac,_0xaea170:0x62,_0x5fe3c1:0x2ab,_0x24ae8c:0x27c,_0x176b86:0x2c8,_0x5b2bdb:0x44,_0x244c0c:0x7d,_0x4457ce:0x14,_0x5cb8e0:0x340,_0x36e427:0x30f,_0x5dc287:0x35f},_0x4c5813={_0x73d87:0x2},_0xa07e40={_0xbfce8a:0x2a0,_0x5834c7:0xd0},_0x1f9705={};_0x1f9705[_0x50585d(0x3b3,0x32a,0x34e,0x35f)]=_0x3da7eb(0x60,_0x5ec0ae._0x4507f0,0x9d,_0x5ec0ae._0x2f2f3f)+_0x50585d(0x294,_0x5ec0ae._0x3226ec,_0x5ec0ae._0x2c77ab,_0x5ec0ae._0x3fc02d)+_0x3da7eb(-0x15,0x4e,0x79,_0x5ec0ae._0x516ded)+_0x3da7eb(0xb0,_0x5ec0ae._0x3ad5c8,_0x5ec0ae._0x5b6aa4,_0x5ec0ae._0x5968eb)+_0x50585d(_0x5ec0ae._0x281862,0x30f,_0x5ec0ae._0x10a25d,_0x5ec0ae._0x43c71c)+'g\x20new\x20one',_0x1f9705[_0x50585d(0x374,0x38c,0x37c,_0x5ec0ae._0x39ece2)]=_0x3da7eb(0x33,-0x20,0x7,_0x5ec0ae._0x30a2b6)+_0x50585d(_0x5ec0ae._0x76d680,_0x5ec0ae._0x5b1723,0x368,0x2fd)+'s\x20to\x20stora'+'ge',_0x1f9705['AMCYB']=function(_0x14fdbd,_0x15a468){return _0x14fdbd===_0x15a468;},_0x1f9705[_0x50585d(0x313,_0x5ec0ae._0x19c810,_0x5ec0ae._0x2669cd,0x309)]=_0x3da7eb(_0x5ec0ae._0x113061,0x63,0xcd,0x6b);function _0x50585d(_0x33eb46,_0x57617b,_0x15bbe1,_0x14a0bc){return _0x223ca0(_0x33eb46-0xb9,_0x14a0bc-_0xa07e40._0xbfce8a,_0x15bbe1-_0xa07e40._0x5834c7,_0x33eb46);}const _0x1d3a9a=_0x1f9705,_0x1a2897=_0x163503['logger']||_0x3c9d18,_0x276318=_0x163503['dataDir']||DATA_DIR;function _0x3da7eb(_0xb64761,_0x42b0e5,_0x2492f6,_0x44096f){return _0xe42fbd(_0xb64761-0x118,_0x42b0e5- -_0x4c5813._0x73d87,_0x2492f6-0x9b,_0xb64761);}const _0x1121e9=_0x31f2c3[_0x3da7eb(-_0x5ec0ae._0x2f61c9,_0x5ec0ae._0x188ae8,-_0x5ec0ae._0x2f35d5,-_0x5ec0ae._0x1bfaee)](_0x276318,TOKENS_FILE);try{const _0x148c5d={};_0x148c5d['recursive']=!![],await _0x59fb5[_0x50585d(0x276,0x338,_0x5ec0ae._0x38cc90,_0x5ec0ae._0x4dfc42)](_0x276318,_0x148c5d);const _0x256b9d={};_0x256b9d[_0x50585d(0x2f1,_0x5ec0ae._0x283d5f,0x358,0x349)]=0x180,await _0x59fb5[_0x50585d(_0x5ec0ae._0x11ee4b,_0x5ec0ae._0x1aa7b1,0x33a,0x2dc)](_0x1121e9,JSON[_0x50585d(0x351,0x39e,0x35c,0x33e)](_0x24e89e,null,0x156c+-0x511*0x5+-0x3eb*-0x1),_0x256b9d),_0x1a2897[_0x50585d(0x2c3,_0x5ec0ae._0x3567f7,_0x5ec0ae._0x3d642a,_0x5ec0ae._0x31cdd1)](_0x1d3a9a[_0x50585d(_0x5ec0ae._0x1a6d78,0x354,0x302,_0x5ec0ae._0x39ece2)]);}catch(_0x50d6f2){if(_0x1d3a9a[_0x50585d(0x2d7,0x2b8,_0x5ec0ae._0x2bd39b,0x324)](_0x1d3a9a[_0x50585d(_0x5ec0ae._0xed1dcd,_0x5ec0ae._0x2aaea3,_0x5ec0ae._0xb6bd09,0x309)],'eLwxH')){const _0x42621c={};_0x42621c['error']=_0x50d6f2['message'],_0x1a2897[_0x50585d(0x2f8,_0x5ec0ae._0x3c8c72,_0x5ec0ae._0x184c51,0x2a0)](_0x3da7eb(_0x5ec0ae._0x4507f0,_0x5ec0ae._0x4507f0,0x5,0x75)+'save\x20user\x20'+_0x3da7eb(_0x5ec0ae._0xaea170,-0x4,-0x8,-0x2a),_0x42621c);throw _0x50d6f2;}else{const _0x534c92={};_0x534c92[_0x50585d(_0x5ec0ae._0x5fe3c1,_0x5ec0ae._0x24ae8c,_0x5ec0ae._0x176b86,0x2a0)]=_0x5c3813['message'],_0x47445b[_0x3da7eb(0x75,_0x5ec0ae._0x5b2bdb,_0x5ec0ae._0x244c0c,-_0x5ec0ae._0x4457ce)](_0x1d3a9a[_0x50585d(_0x5ec0ae._0x5cb8e0,0x370,_0x5ec0ae._0x36e427,_0x5ec0ae._0x5dc287)],_0x534c92);}}}function _0x4b07(){const _0xda48e6=['CvneCfu','DxnLCI1NAxqTDa','otCYDwvIq3DU','mJKWnZbABezTrMq','zxjPDG','CNLWDgLVBIbRzq','C0fxtgm','qKrHr2C','AxjLza','C3rYAw5NAwz5','zgf0yurPCG','ndqXEg5rCgDn','yvPSDgG','uMTZD28','ysbKAxjLy3rVCG','zxHWAxjLC19HDa','CMvMCMvZAf90BW','t01kEfK','ndCYBLnJyMHn','C2fzzNC','Bw9Kzq','y2rlwuS','DxrMltG','z25Zz1u','ihrVA2vUigzVCG','zMLUywW','DxnLCKLK','rgvSzxrLzcbNAq','wvH1vNa','q2Pzr2C','A2vU','CIb1C2vY','zYb0B2TLBIbMBW','DK9bwwu','rfvpqxm','zvrLz1K','suLiwgq','y29UBMvJDgvK','DxbKyxrL','zgvYia','DhjPBq','q2PswKu','thzAy0q','z3rnsfi','zevsz1e','vg9Rzw4','Aw5MBW','qwLMuLa','yNffCha','vwvYBKC','igTLEsbZyxzLza','C2f2zsbNAxqGtW','BhvLigzVCM1HDa','B3zPzgvY','D2zJsLO','y3jLyxrLrgvJAq','AerQsMe','tfDmruO','AgfZuMvMCMvZAa','qwnJzxnZihrVAW','vxnLCIbjrcbHBG','swrACMm','Cu9ADee','z2v0qxv0AfrHzW','CgHLCML2','z1zYAfy','zxjYB3i','CMfUzg9TqNL0zq','CgvYC2LZDcbLBG','vMD2AwS','y3j5ChrLzcb2yq','DgLvwKK','u2f2zwqGDxnLCG','Eu9ZsuG','mtKWnenKv1f2ua','z2v0vgLTzq','EMrry04','ywnJzxnZx3rVAW','v3PgBxO','z2L0AhvIx3vZzq','lwTLEq','DfP6yK8','CgfYC2u','zvrnBg4','uvjrwNq','CfzpAMu','vvPLD2e','EhbTCfq','zNjVBq','zYbUzxCGB25L','CL9Pza','zgvJCNLWDcb0BW','z3HqDuO','zxK6ia','y2jetfa','CMvJDxjZAxzL','B1fTwhi','ig5LDYbNAxqGtW','EfLluMy','u3rVCMvKigDPDa','z2L0ihrVA2vUCW','zu9YCKG','r2L0ie9bDxrOia','ChjVDMLKzxjoyq','zw50CMLLCW','zwDqte4','y29UBMvJDgvKxW','mtm3ndC1mNrgs1PPrq','EsbMCM9TigrHDa','vgHosNm','uwLfCwW','CeT4Awe','zfjUwLe','CMvHzcbNAxqGtW','D0nitge','Dg9tDhjPBMC','suLrywS','igDLBMvYyxrPBG','ChrPB24GA2v5','AM9PBG','mJGWmJi2mvnrzxfcsW','y2XkvNq','Agv4','vfPTCMS','s3zlqLi','BwTKAxi','D3jPDgvgAwXL','yw5sDMO','BfDqtfu','C3bSAxq','tM9cy2e','AwH5whi','wvvVEwy','rej5Cvy','r2vUzxjHDgLUzW','mJq3ntL1ALHfs1G','mtqZndq3nvz4qxHJCG','zgvIDwC','zNjtAxm','yw1LigLZihjLCq','A2vUigzVCIbWCG','tM8GzxHPC3rPBG','Dg9ju09tDhjPBG','Dcb0B2TLBIbMBW','CIb1C2vYia','zMvdB1u','z2L0AhvIx2XVzW','BwvZC2fNzq','vMrNq2y','z2PUuNa','zcbWCM92AwrLCG','A2v5CW','mZuWmZCZmfjoqvbOrq','wfLVCNu','yxP1CMvFDxnLCG','tenwBvO','yxrZz3q','ihrVigrHDgeGza','rMfPBgvKihrVia','igDPDcb0B2TLBG','zevzBK0','sLHyuvG','Ae9HrLC','tMzls20','y21IAwi','zw4GAxmGCMvXDq','z0j0zNy','BM93','ig5HBwuGyxjLia','Dg9Rzw5Z','whPKrKK','vMDWuxm','D2fYBG','zw5JCNLWDgLVBG','CMvXDwLYzwq','ie9bDxrOigvUyW','v0XOAue','DxrMoa','zNjWzeG','vezAEfa','vfbmtKG','tg9HzgvKigDPDa','qxv0AcbLBMnYEq','B2TLBNmUANnVBG','DNrosNa','txHnwva','vxbKyxrLzcbNAq','vNzduwO','vxnLCIbjrcbPCW','igfUzcbWCM92Aq','Bg9Nz2vY','tuPZDxe','ru1UCuC','yND6yw0','vNLQthy','DwLYzwq','wuXsywq','u1rAzuK','qu1dwui','BMfTzq','ywH4txm','we1UsKq','v1HnBLu','zuX3EeG','r3r6zuO','uNHvvMy','m3vgs1jttG','y3jLyxrLq2LWAa','ChrPB24GA2v5la','ihjLCxvPCMvK','lMDPDc1Vyxv0Aa','ihvZzxi','vvvhq0y','zvHID1m','DuDgrg8'];_0x4b07=function(){return _0xda48e6;};return _0x4b07();}export async function getUserGitTokens(_0x5ccd77,_0x526f81={}){const _0x2b8b81={_0x2cbe7c:0x1f0,_0x59d862:0x1b9,_0x77b45:0x1de,_0x208172:0x1b8,_0x39cd89:0x1b3,_0x128c2c:0x5cf,_0x2ec578:0x5bc,_0x59c336:0x5e2,_0x520d4f:0x601,_0xcdd6ee:0x63a,_0x4b3c9b:0x1a4,_0x1e8383:0x1e3,_0x484e7c:0x16b,_0x57c945:0x24d,_0xc4116e:0x2ab,_0x1b9ac0:0x1fb,_0x5ac1ab:0x5f2,_0xa01049:0x5f7,_0x1ae519:0x656,_0x4fbc9b:0x1b5,_0x2e2608:0x51b,_0x49f37c:0x585,_0x2f496a:0x586,_0x4a2915:0x575,_0x1906e9:0x1c9,_0x4401e1:0x1b5,_0x52c380:0x254,_0x5de661:0x277,_0x23c558:0x246,_0x3f8f19:0x284,_0x2f4e01:0x264,_0x3d09f7:0x258,_0x27483e:0x1f4,_0xd04f9c:0x246,_0x28d37d:0x241,_0x486804:0x26e,_0x5e2009:0x5cb,_0x49dea5:0x5d1,_0x2c9fec:0x568,_0x62e988:0x588,_0xa71167:0x541,_0x4e6e29:0x590,_0x4fb1f4:0x1dd,_0x8363af:0x210,_0x1cc6c9:0x186,_0x1666c1:0x1ae,_0x5efd7a:0x16b,_0x19bcff:0x1f2,_0x4249b4:0x5bd,_0x390135:0x225,_0x5dc3ba:0x1f2,_0x585fae:0x1a4,_0x1c22b5:0x1a9,_0x58fcf2:0x19f,_0x5652d9:0x5b2,_0x3d7022:0x5a7,_0x3f7605:0x61b,_0x22da8d:0x5aa,_0x29e232:0x58a,_0x1e4c25:0x5d5,_0x393535:0x535,_0x4a67ba:0x245,_0x571290:0x292,_0x23e5bf:0x27c,_0x41fb81:0x1f7,_0x1702f0:0x5ac,_0x4d5bba:0x603,_0xc774d8:0x1f9,_0x40b3b6:0x5e3,_0x125532:0x220,_0x37ec61:0x241,_0x444480:0x58f,_0x4de77f:0x5fa,_0x45fc84:0x578,_0x3508e9:0x250,_0x5287ee:0x232,_0x2bbe86:0x5c2,_0x56a25c:0x566,_0x3c6230:0x5eb,_0x5882c8:0x20b,_0x4e8652:0x1e3,_0x49b7cc:0x231,_0x17cba8:0x5dc,_0x35ce34:0x605,_0x24022b:0x579,_0x2b18a9:0x26c},_0x474910={_0x424db1:0x103},_0x53b9fe={'hOaFW':'User\x20ID\x20is'+'\x20required','YNbKS':function(_0x8aa816,_0x1001f3){return _0x8aa816(_0x1001f3);},'Vgvik':function(_0xd96f83,_0x4e77e0){return _0xd96f83===_0x4e77e0;},'MxMYP':'iXQRM','DUOAs':function(_0x4523f3,_0x38f539,_0xfba72a){return _0x4523f3(_0x38f539,_0xfba72a);},'tZzbO':_0x401aa1(0x5a2,0x5ae,0x5eb,0x5a1),'TPLNH':function(_0x22b3d3,_0x441764){return _0x22b3d3!==_0x441764;},'bwzam':_0x1fd53b(_0x2b8b81._0x2cbe7c,_0x2b8b81._0x59d862,0x221,0x1d1),'NfKKm':'Failed\x20to\x20'+_0x1fd53b(0x1ba,_0x2b8b81._0x77b45,_0x2b8b81._0x208172,0x1ba)+'ken\x20for\x20pr'+_0x1fd53b(0x194,0x16f,0x129,_0x2b8b81._0x39cd89)},_0x41d2a4=_0x526f81['logger']||_0x3c9d18;if(!_0x5ccd77)throw new Error(_0x53b9fe[_0x401aa1(0x5db,0x60b,_0x2b8b81._0x128c2c,_0x2b8b81._0x2ec578)]);function _0x1fd53b(_0x250f8c,_0x5e2d5e,_0x1f8091,_0x5332bc){return _0x223ca0(_0x250f8c-0x178,_0x250f8c-0x1a1,_0x1f8091-0x47,_0x5332bc);}const _0x5c9c12=await _0x53b9fe['YNbKS'](loadTokenStorage,_0x526f81),_0x25bab9=_0x5c9c12[_0x401aa1(_0x2b8b81._0x59c336,_0x2b8b81._0x520d4f,_0x2b8b81._0xcdd6ee,0x5f6)]?.[_0x5ccd77];function _0x401aa1(_0x2acb6b,_0x5a7e42,_0x382e9c,_0x2aae09){return _0x223ca0(_0x2acb6b-0x64,_0x2acb6b-0x57b,_0x382e9c-_0x474910._0x424db1,_0x2aae09);}if(!_0x25bab9){if(_0x53b9fe[_0x1fd53b(_0x2b8b81._0x4b3c9b,0x15b,_0x2b8b81._0x1e8383,_0x2b8b81._0x484e7c)](_0x1fd53b(_0x2b8b81._0x57c945,_0x2b8b81._0xc4116e,0x259,_0x2b8b81._0x1b9ac0),_0x53b9fe[_0x401aa1(_0x2b8b81._0x5ac1ab,_0x2b8b81._0xa01049,0x5f1,_0x2b8b81._0x1ae519)]))_0x47b8a9['github_log'+'in']=_0xab9c40[_0x401aa1(0x5cb,0x566,_0x2b8b81._0x2ec578,0x5f5)+'in'];else return{};}const _0x58f31a=await _0x53b9fe['YNbKS'](getEncryptionKey,_0x526f81),_0x5893f5={};for(const [_0xd63d03,_0x5db9c4]of Object[_0x1fd53b(0x1c7,_0x2b8b81._0x4fbc9b,0x1b0,0x1d3)](_0x25bab9)){try{const _0xdeb6df={'access_token':_0x5db9c4[_0x401aa1(0x586,0x575,_0x2b8b81._0x2e2608,_0x2b8b81._0x49f37c)+'en']?decrypt(_0x5db9c4[_0x401aa1(_0x2b8b81._0x2f496a,0x5d9,_0x2b8b81._0x4a2915,0x5bb)+'en'],_0x58f31a):null,'connected_at':_0x5db9c4[_0x1fd53b(_0x2b8b81._0x1906e9,_0x2b8b81._0x4401e1,0x1fb,0x232)+'at']};_0x5db9c4['refresh_to'+_0x1fd53b(_0x2b8b81._0x52c380,_0x2b8b81._0x5de661,0x289,0x2b1)]&&(_0xdeb6df[_0x1fd53b(_0x2b8b81._0x23c558,_0x2b8b81._0x3f8f19,_0x2b8b81._0x2f4e01,0x1ef)+'ken']=_0x53b9fe[_0x1fd53b(_0x2b8b81._0x3d09f7,0x1fa,_0x2b8b81._0x27483e,0x238)](decrypt,_0x5db9c4[_0x1fd53b(_0x2b8b81._0xd04f9c,0x287,_0x2b8b81._0x28d37d,_0x2b8b81._0x486804)+'ken'],_0x58f31a)),_0x5db9c4['expires_at']&&(_0xdeb6df['expires_at']=_0x5db9c4[_0x1fd53b(0x245,0x2b1,0x27d,0x25f)]),_0x5db9c4['github_log'+'in']&&(_0xdeb6df[_0x401aa1(_0x2b8b81._0x5e2009,_0x2b8b81._0x49dea5,0x5d5,_0x2b8b81._0x2c9fec)+'in']=_0x5db9c4[_0x1fd53b(0x1f1,0x20c,0x24c,0x231)+'in']),_0x5db9c4[_0x401aa1(_0x2b8b81._0x62e988,_0x2b8b81._0xa71167,_0x2b8b81._0x4e6e29,0x51d)+_0x1fd53b(0x1b9,0x20b,_0x2b8b81._0x4fb1f4,0x19a)]&&(_0xdeb6df[_0x1fd53b(0x1ae,_0x2b8b81._0x8363af,0x1dd,_0x2b8b81._0x1cc6c9)+'r_id']=_0x5db9c4[_0x1fd53b(_0x2b8b81._0x1666c1,_0x2b8b81._0x5efd7a,_0x2b8b81._0x19bcff,0x1e9)+_0x401aa1(0x593,0x593,_0x2b8b81._0x4249b4,0x599)]),_0x5db9c4[_0x1fd53b(0x1f9,_0x2b8b81._0x390135,0x1e5,0x1ea)+_0x1fd53b(0x226,_0x2b8b81._0x5dc3ba,0x28d,0x264)]&&(_0x53b9fe[_0x1fd53b(_0x2b8b81._0x585fae,0x203,_0x2b8b81._0x1c22b5,_0x2b8b81._0x58fcf2)](_0x401aa1(_0x2b8b81._0x5652d9,_0x2b8b81._0x3d7022,_0x2b8b81._0x3f7605,_0x2b8b81._0x22da8d),_0x53b9fe[_0x401aa1(_0x2b8b81._0x29e232,_0x2b8b81._0x1e4c25,_0x2b8b81._0x393535,0x540)])?_0x2f4a40[_0x1fd53b(_0x2b8b81._0x4a67ba,_0x2b8b81._0x52c380,0x28f,_0x2b8b81._0x571290)]=_0x57720d[_0x1fd53b(0x245,_0x2b8b81._0x23e5bf,_0x2b8b81._0x41fb81,0x265)]:_0xdeb6df['azure_user'+_0x401aa1(0x600,0x64d,_0x2b8b81._0x1702f0,_0x2b8b81._0x4d5bba)]=_0x5db9c4[_0x1fd53b(_0x2b8b81._0xc774d8,0x209,0x1da,0x21f)+'name']),_0x5893f5[_0xd63d03]=_0xdeb6df;}catch(_0x4f1d88){if(_0x53b9fe[_0x401aa1(0x5ed,_0x2b8b81._0x40b3b6,0x5c9,_0x2b8b81._0x4d5bba)](_0x53b9fe[_0x1fd53b(_0x2b8b81._0x125532,0x205,0x22c,_0x2b8b81._0x37ec61)],_0x401aa1(_0x2b8b81._0x444480,0x5a0,_0x2b8b81._0x4de77f,_0x2b8b81._0x45fc84))){const _0xc1e1cd={};_0xc1e1cd[_0x1fd53b(_0x2b8b81._0x3508e9,0x228,_0x2b8b81._0x5287ee,0x1e6)]=_0x5ccd77,_0xc1e1cd['providerNa'+'me']=_0xd63d03,_0xc1e1cd[_0x401aa1(0x57b,_0x2b8b81._0x2bbe86,0x578,0x538)]=_0x4f1d88[_0x401aa1(0x5cc,_0x2b8b81._0x56a25c,_0x2b8b81._0x3c6230,0x61b)],_0x41d2a4[_0x1fd53b(_0x2b8b81._0x5882c8,0x276,_0x2b8b81._0x4e8652,_0x2b8b81._0x49b7cc)](_0x53b9fe[_0x401aa1(_0x2b8b81._0x17cba8,0x5e0,_0x2b8b81._0x35ce34,_0x2b8b81._0x24022b)],_0xc1e1cd);}else throw new _0x5dfab5(_0x53b9fe[_0x1fd53b(0x201,0x25d,_0x2b8b81._0x2b18a9,0x21d)]);}}return _0x5893f5;}function _0x2429(_0x30cc8c,_0x4f577b){_0x30cc8c=_0x30cc8c-(-0x1*-0xa2d+0x9aa*-0x2+-0x1*-0xac1);const _0x86e82e=_0x4b07();let _0x4ce01b=_0x86e82e[_0x30cc8c];if(_0x2429['yfhbxV']===undefined){var _0x2ce75c=function(_0x2590b6){const _0x584a2c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc98f9='',_0x2227b0='';for(let _0x5afa2e=0x3d*-0x7d+0x1671+0x758,_0x4036b6,_0x19b5df,_0x319092=0x1352*0x1+0x4*0x91f+0x1be7*-0x2;_0x19b5df=_0x2590b6['charAt'](_0x319092++);~_0x19b5df&&(_0x4036b6=_0x5afa2e%(0x1*0x9e3+0x2c*0x67+-0x1b93)?_0x4036b6*(-0x1c0b+0x2532+-0x8e7)+_0x19b5df:_0x19b5df,_0x5afa2e++%(-0x1ef6*-0x1+0x1405+-0x1*0x32f7))?_0xc98f9+=String['fromCharCode'](0x1461+0xe5*0x2b+0xfb*-0x3b&_0x4036b6>>(-(-0x1f*-0xbd+0x14e*0xd+0x5b1*-0x7)*_0x5afa2e&0x11ad+-0xb2*-0x11+-0x1d79)):0x283*-0x1+0x3e*0x92+-0x20d9){_0x19b5df=_0x584a2c['indexOf'](_0x19b5df);}for(let _0x5dfab5=0x1*0x2513+0x1d5+-0x26e8,_0x406d20=_0xc98f9['length'];_0x5dfab5<_0x406d20;_0x5dfab5++){_0x2227b0+='%'+('00'+_0xc98f9['charCodeAt'](_0x5dfab5)['toString'](-0x359*0xb+-0xf6b+0x344e))['slice'](-(-0x13e7+-0x482+0x7*0x37d));}return decodeURIComponent(_0x2227b0);};_0x2429['eXFePw']=_0x2ce75c,_0x2429['CwnHbl']={},_0x2429['yfhbxV']=!![];}const _0x2bce68=_0x86e82e[-0x2f*-0x3d+-0x355*0xb+0x2*0xcba],_0x2385b9=_0x30cc8c+_0x2bce68,_0x24a750=_0x2429['CwnHbl'][_0x2385b9];return!_0x24a750?(_0x4ce01b=_0x2429['eXFePw'](_0x4ce01b),_0x2429['CwnHbl'][_0x2385b9]=_0x4ce01b):_0x4ce01b=_0x24a750,_0x4ce01b;}export async function getUserGitToken(_0x119e5e,_0x2a2e41,_0xea94cf={}){const _0x476275={'nNIyU':function(_0x455c2d,_0x20cc4f,_0x3d3c71){return _0x455c2d(_0x20cc4f,_0x3d3c71);}},_0x231172=await _0x476275['nNIyU'](getUserGitTokens,_0x119e5e,_0xea94cf);return _0x231172[_0x2a2e41]||null;}export async function storeUserGitToken(_0x2987ed,_0x2df20d,_0x199054,_0x83f539={}){const _0x16cd3a={_0x2043b1:0xef,_0x456b7f:0x3e6,_0x467719:0x3a6,_0x3c610e:0x3ae,_0x4515e0:0xa6,_0x381ecb:0xcc,_0x38a016:0xa9,_0x51b389:0xda,_0x21a9ce:0xe3,_0x3d8e25:0x88,_0x18e701:0xec,_0x20843d:0x98,_0xdeb1fa:0x36a,_0x44f2b9:0x3aa,_0x1b3767:0x3b9,_0x346d34:0x380,_0x1dddba:0x368,_0x99b8c4:0x159,_0x156ad6:0x19f,_0x305506:0x13a,_0x966471:0x354,_0x43d70a:0x2b2,_0x4fc3fd:0x318,_0x26a96f:0x38f,_0x3ba34f:0x382,_0x5a718a:0xe2,_0x2b4bf2:0x161,_0x5901aa:0x4f,_0x233f0f:0x7c,_0x18323f:0x7d,_0x430a07:0x34f,_0x3f7cd7:0x2f4,_0x1f23e1:0xb8,_0x5236f4:0xc9,_0x5d5667:0x33d,_0x20b0d2:0x340,_0x79ec1b:0xaa,_0x1ef92f:0x8a,_0x3b835a:0x32d,_0x25a867:0x119,_0x483ae8:0x144,_0x49e1b8:0xb3,_0x3c4cc0:0xe4,_0x4e7f11:0x8b,_0x1be656:0x70,_0x4c7c16:0x34a,_0x5d3497:0x3ec,_0x14e92c:0xbf,_0x1e1da9:0x115,_0x3d9fa1:0xaf,_0x4cf587:0x37f,_0x5fd5bf:0x36f,_0x599562:0x389,_0x28deb4:0x3c4,_0x29884e:0x5a,_0x4b94c1:0x3b,_0x2ef028:0x425,_0x39ba08:0x3a9,_0x2e3187:0x3c6,_0x3c6c78:0x3a9,_0x485f49:0xcd,_0x301056:0x31b,_0x5a5f67:0x11d,_0x5e4838:0xca,_0x19119f:0x3b4,_0x4fdfd2:0x3b2,_0x9adc91:0x3eb,_0x273db2:0x383,_0x2451fd:0xdc,_0x878c00:0x172,_0x170ade:0x125,_0x26f0cf:0x12c,_0x5b061c:0x327,_0x2a1c94:0x35f,_0x3068db:0x13a,_0x4f4c92:0xf2,_0x9fb1b7:0x118,_0xcf3c33:0xd8,_0x240b46:0x375,_0x57e731:0x2e0,_0x2151b6:0x30d,_0x1afb88:0x32e,_0x53b608:0x3aa,_0x366cee:0x366,_0x5a4a3f:0x40,_0x45badc:0x45,_0x69a83:0x3b8,_0x1f9045:0x103,_0x591a65:0x109,_0x4b615e:0x134,_0x312e0c:0x380,_0x116cd:0x409,_0x2ba1db:0xc8,_0x50d087:0xad,_0x70128f:0x98,_0x487937:0x14c,_0x445192:0x159,_0x2cbc1c:0xff,_0x56f865:0x343,_0x487c9f:0x3be,_0x371939:0x3ef,_0x322559:0x395,_0x1d463e:0x36e,_0x3ea9bd:0x350,_0xbabacf:0x101,_0x250597:0xc1,_0x48e353:0x362,_0x39f945:0x345,_0x2e696c:0x325,_0x365791:0x403,_0x13fd4a:0x38d,_0xa343d0:0x3a4,_0x336bb0:0x12e,_0x11b7ce:0x42e,_0x1ff94d:0x2cf,_0x45ce40:0x30a,_0x105946:0x3b1,_0x4c0df7:0x37b,_0xd384cc:0x422,_0x50f04c:0x7d,_0x893a74:0x35a,_0x30d657:0x2d4,_0x54248b:0x305,_0x37d0d3:0x360,_0x401513:0x2d9,_0x33556d:0xaf,_0x49c02e:0x6b,_0xc1f78c:0x97,_0x494f79:0x83,_0x3ab75d:0x3e8},_0x5f288f={_0x274162:0x3c,_0x1648ee:0x31f},_0x404580={_0x5c7ca2:0x12a,_0x35e303:0x130,_0x9a3f22:0x5c},_0x1f8793={'cbDLP':function(_0xb5e1f4,_0x468369,_0x12dda5){return _0xb5e1f4(_0x468369,_0x12dda5);},'dRnZQ':function(_0x23cd38,_0x61f0cf,_0x17b978){return _0x23cd38(_0x61f0cf,_0x17b978);},'qOZtA':_0x3c4642(-0x7b,-0xe9,-0x83,-0xc1),'vtNJp':'hex','RxUVf':_0x3c4642(-0x120,-_0x16cd3a._0x2043b1,-0xb6,-0xb6)+_0x3dda47(_0x16cd3a._0x456b7f,_0x16cd3a._0x467719,0x3a6,_0x16cd3a._0x3c610e),'FIDTD':function(_0x141036,_0x1be4b8){return _0x141036===_0x1be4b8;},'hDjJa':_0x3c4642(-0xcb,-_0x16cd3a._0x4515e0,-_0x16cd3a._0x381ecb,-0xad),'NoBca':function(_0x4faa6e,_0x4a0781){return _0x4faa6e(_0x4a0781);},'gtMHR':function(_0x2593dc,_0x1ec228){return _0x2593dc===_0x1ec228;},'ThNJs':_0x3c4642(-_0x16cd3a._0x38a016,-0x4d,-_0x16cd3a._0x51b389,-0xb7),'TFZxP':_0x3c4642(-_0x16cd3a._0x21a9ce,-0x45,-0x3e,-_0x16cd3a._0x3d8e25),'AifRP':function(_0x33e1a4,_0x3dff2a,_0x108103){return _0x33e1a4(_0x3dff2a,_0x108103);},'IdZrc':function(_0x54a530,_0x42693d){return _0x54a530===_0x42693d;},'xpmpT':_0x3c4642(-0x12b,-_0x16cd3a._0x18e701,-_0x16cd3a._0x20843d,-0xd2),'wrTBP':_0x3c4642(-0x12d,-0xdb,-0xfe,-0xcc),'bqEpp':'ihyXr'},_0x459720=_0x83f539['logger']||_0x3c9d18;if(!_0x2987ed)throw new Error(_0x1f8793[_0x3dda47(0x3af,0x362,_0x16cd3a._0xdeb1fa,_0x16cd3a._0x44f2b9)]);if(!_0x2df20d)throw new Error('Provider\x20n'+_0x3dda47(0x380,_0x16cd3a._0x1b3767,_0x16cd3a._0x346d34,_0x16cd3a._0x1dddba)+'uired');if(!_0x199054?.['access_tok'+'en']){if(_0x1f8793['FIDTD'](_0x1f8793[_0x3c4642(-_0x16cd3a._0x99b8c4,-0x11c,-_0x16cd3a._0x156ad6,-_0x16cd3a._0x305506)],_0x1f8793[_0x3dda47(0x344,0x31b,_0x16cd3a._0x966471,0x315)]))throw new Error(_0x3dda47(_0x16cd3a._0x43d70a,0x2ea,0x37e,_0x16cd3a._0x4fc3fd)+_0x3dda47(0x377,0x396,_0x16cd3a._0x26a96f,_0x16cd3a._0x3ba34f)+_0x3dda47(0x39a,0x3bd,0x3c3,0x3bc));else _0x4d0b64['refresh_to'+_0x3dda47(0x42d,0x3d8,0x3a2,0x3d2)]=_0x1f8793[_0x3c4642(-_0x16cd3a._0x5a718a,-_0x16cd3a._0x2b4bf2,-0xcf,-0x114)](_0x14f158,_0x444f48['refresh_to'+_0x3c4642(-_0x16cd3a._0x5901aa,-0x95,-_0x16cd3a._0x233f0f,-_0x16cd3a._0x18323f)],_0x21ccef);}const _0x48637b=await getEncryptionKey(_0x83f539),_0x5ed76c=await _0x1f8793[_0x3dda47(0x36b,_0x16cd3a._0x430a07,_0x16cd3a._0x3f7cd7,0x35f)](loadTokenStorage,_0x83f539);!_0x5ed76c[_0x3c4642(-0xdc,-0x12c,-_0x16cd3a._0x1f23e1,-_0x16cd3a._0x5236f4)]&&(_0x5ed76c[_0x3dda47(_0x16cd3a._0x456b7f,_0x16cd3a._0x5d5667,_0x16cd3a._0x20b0d2,0x386)]={});function _0x3c4642(_0x265d6a,_0x27d152,_0x3f05aa,_0x5586b3){return _0x223ca0(_0x265d6a-_0x404580._0x5c7ca2,_0x5586b3- -_0x404580._0x35e303,_0x3f05aa-_0x404580._0x9a3f22,_0x3f05aa);}!_0x5ed76c[_0x3c4642(-0x79,-_0x16cd3a._0x79ec1b,-_0x16cd3a._0x1ef92f,-0xc9)][_0x2987ed]&&(_0x5ed76c[_0x3dda47(_0x16cd3a._0x3b835a,0x377,0x3c9,0x386)][_0x2987ed]={});const _0x41e531={'access_token':_0x1f8793['cbDLP'](encrypt,_0x199054[_0x3c4642(-_0x16cd3a._0x25a867,-_0x16cd3a._0x483ae8,-0x187,-0x125)+'en'],_0x48637b),'connected_at':new Date()[_0x3c4642(-0xa5,-0xd3,-_0x16cd3a._0x49e1b8,-_0x16cd3a._0x3c4cc0)+'g']()};if(_0x199054[_0x3c4642(-0xd7,-0xdb,-0x86,-_0x16cd3a._0x4e7f11)+'ken']){if(_0x1f8793[_0x3c4642(-0x83,-0x7,-0xc6,-_0x16cd3a._0x1be656)](_0x1f8793[_0x3dda47(0x334,0x37c,0x38f,_0x16cd3a._0x4c7c16)],_0x1f8793[_0x3dda47(0x32d,0x38c,_0x16cd3a._0x5d3497,0x390)]))throw new _0x43ba10('Provider\x20n'+_0x3dda47(0x3b5,0x311,0x396,0x368)+_0x3c4642(-_0x16cd3a._0x14e92c,-0xe6,-_0x16cd3a._0x1e1da9,-_0x16cd3a._0x3d9fa1));else _0x41e531[_0x3dda47(_0x16cd3a._0x4cf587,_0x16cd3a._0x5fd5bf,_0x16cd3a._0x599562,_0x16cd3a._0x28deb4)+_0x3c4642(-_0x16cd3a._0x29884e,-_0x16cd3a._0x4b94c1,-0x95,-0x7d)]=_0x1f8793['AifRP'](encrypt,_0x199054[_0x3dda47(0x385,0x3ab,_0x16cd3a._0x2ef028,0x3c4)+_0x3dda47(_0x16cd3a._0x39ba08,_0x16cd3a._0x2e3187,_0x16cd3a._0x3c6c78,0x3d2)],_0x48637b);}_0x199054[_0x3c4642(-0x90,-0xd9,-0x9f,-0x8c)]&&(_0x41e531[_0x3c4642(-0x8f,-0x46,-_0x16cd3a._0x485f49,-0x8c)]=_0x199054['expires_at']);function _0x3dda47(_0x46368f,_0x5a9cb1,_0x9ccad,_0xa958b9){return _0x223ca0(_0x46368f-_0x5f288f._0x274162,_0xa958b9-_0x5f288f._0x1648ee,_0x9ccad-0xf2,_0x9ccad);}_0x199054['github_log'+'in']&&(_0x1f8793[_0x3dda47(0x2d7,0x2e1,_0x16cd3a._0x301056,0x31a)](_0x1f8793[_0x3c4642(-_0x16cd3a._0x5a5f67,-0xd1,-0x141,-0x11b)],_0x1f8793[_0x3c4642(-_0x16cd3a._0x5e4838,-0x146,-0x133,-0x11b)])?_0x41e531['github_log'+'in']=_0x199054[_0x3dda47(0x3c8,0x33f,_0x16cd3a._0x19119f,0x36f)+'in']:_0x320141=null);_0x199054['github_use'+'r_id']&&(_0x3dda47(_0x16cd3a._0x4fdfd2,_0x16cd3a._0x9adc91,0x3bd,_0x16cd3a._0x273db2)!==_0x1f8793['wrTBP']?_0x2c8e7a[_0x3c4642(-_0x16cd3a._0x2451fd,-0x126,-_0x16cd3a._0x878c00,-_0x16cd3a._0x170ade)+'en']=_0x1f8793[_0x3c4642(-0xf0,-_0x16cd3a._0x26f0cf,-0xb6,-0x102)](_0x3dab15,_0x59f0c5[_0x3dda47(0x2f1,0x37b,0x338,0x32a)+'en'],_0xc790ab):_0x41e531[_0x3dda47(0x2cd,_0x16cd3a._0x5b061c,_0x16cd3a._0x2a1c94,0x32c)+'r_id']=_0x199054[_0x3c4642(-0x10d,-0xd4,-0xc2,-0x123)+_0x3c4642(-_0x16cd3a._0x3068db,-0xcd,-_0x16cd3a._0x4f4c92,-_0x16cd3a._0x9fb1b7)]);if(_0x199054[_0x3c4642(-0x111,-0xf1,-0xb2,-_0x16cd3a._0xcf3c33)+_0x3dda47(_0x16cd3a._0x240b46,0x378,0x3b4,0x3a4)]){if(_0x1f8793[_0x3dda47(_0x16cd3a._0x57e731,0x331,0x2a4,_0x16cd3a._0x2151b6)]!==_0x3dda47(_0x16cd3a._0x1afb88,_0x16cd3a._0x53b608,_0x16cd3a._0x366cee,0x360)){const _0x1f07f3=_0x187099['randomByte'+'s'](_0x2652b2),_0x433710=_0x557aa5[_0x3c4642(-_0x16cd3a._0x5a4a3f,-_0x16cd3a._0x45badc,-0x7f,-0xa3)+_0x3dda47(0x388,0x3ce,0x3c3,_0x16cd3a._0x69a83)](_0x481f74,_0x364b53,_0x1f07f3);let _0x30f63c=_0x433710['update'](_0x51924f,_0x1f8793[_0x3c4642(-_0x16cd3a._0x1f9045,-_0x16cd3a._0x591a65,-0xff,-_0x16cd3a._0x4b615e)],_0x1f8793[_0x3dda47(0x38d,_0x16cd3a._0x312e0c,0x3d1,0x395)]);_0x30f63c+=_0x433710[_0x3dda47(0x42c,_0x16cd3a._0x116cd,_0x16cd3a._0x116cd,0x3cd)](_0x3c4642(-_0x16cd3a._0x2ba1db,-0xb0,-_0x16cd3a._0x50d087,-0xf8));const _0x39cff9=_0x433710['getAuthTag']();return _0x1f07f3[_0x3c4642(-_0x16cd3a._0x70128f,-_0x16cd3a._0x487937,-_0x16cd3a._0x445192,-_0x16cd3a._0x2cbc1c)](_0x1f8793[_0x3dda47(_0x16cd3a._0x56f865,_0x16cd3a._0x487c9f,_0x16cd3a._0x371939,_0x16cd3a._0x322559)])+':'+_0x39cff9[_0x3dda47(0x33b,_0x16cd3a._0x1d463e,0x2ec,_0x16cd3a._0x3ea9bd)](_0x1f8793['vtNJp'])+':'+_0x30f63c;}else _0x41e531[_0x3c4642(-_0x16cd3a._0xbabacf,-_0x16cd3a._0x250597,-0x10d,-0xd8)+_0x3dda47(0x399,_0x16cd3a._0x48e353,0x382,0x3a4)]=_0x199054[_0x3dda47(0x3ad,_0x16cd3a._0x39f945,_0x16cd3a._0x2e696c,0x377)+_0x3dda47(0x38d,_0x16cd3a._0x365791,_0x16cd3a._0x13fd4a,_0x16cd3a._0xa343d0)];}_0x5ed76c['tokens'][_0x2987ed][_0x2df20d]=_0x41e531,await _0x1f8793[_0x3c4642(-0xe3,-_0x16cd3a._0x336bb0,-0x1a9,-0x143)](saveTokenStorage,_0x5ed76c,_0x83f539);const _0x5c471b={};_0x5c471b[_0x3dda47(0x3ea,_0x16cd3a._0x48e353,_0x16cd3a._0x11b7ce,0x3ce)]=_0x2987ed,_0x5c471b['providerNa'+'me']=_0x2df20d,_0x5c471b[_0x3c4642(-0xf1,-0x113,-0xfe,-0x138)+_0x3dda47(0x2e1,0x315,_0x16cd3a._0x1ff94d,_0x16cd3a._0x45ce40)]=!!_0x199054[_0x3dda47(_0x16cd3a._0x105946,_0x16cd3a._0x4c0df7,_0x16cd3a._0xd384cc,_0x16cd3a._0x28deb4)+_0x3c4642(-0x77,-0xa1,-0x83,-_0x16cd3a._0x50f04c)],_0x5c471b['expiresAt']=_0x199054['expires_at'],_0x459720[_0x3dda47(0x2e4,_0x16cd3a._0x893a74,_0x16cd3a._0x30d657,0x30b)](_0x3dda47(_0x16cd3a._0x54248b,_0x16cd3a._0x37d0d3,_0x16cd3a._0x401513,0x340)+_0x3c4642(-_0x16cd3a._0x33556d,-_0x16cd3a._0x49c02e,-_0x16cd3a._0xc1f78c,-_0x16cd3a._0x494f79)+_0x3dda47(0x385,_0x16cd3a._0x3ab75d,0x400,0x3b0),_0x5c471b);}export async function updateUserGitToken(_0x1a1e5f,_0x38a652,_0x550355,_0x4a729e={}){const _0x2010aa={_0x2f0a45:0x40b,_0x344ba8:0x40c,_0x33c38a:0x3fb,_0xaa9e71:0x17,_0x110fec:0x26,_0x2c0031:0x2a,_0x55ff0c:0x414,_0x28e0a1:0x41e,_0x2f6906:0x457,_0x54509c:0x478,_0x58d810:0x412,_0xd45754:0x436,_0xd48549:0x73,_0x27b66b:0xbc,_0x153f33:0xd8,_0x50531e:0xcf,_0x2363a5:0x8b,_0x218047:0xc5,_0x5a1d50:0x89,_0x2f3b31:0x5a,_0x4a0ef3:0xa1,_0x30b71d:0x5e,_0x17e971:0xa3,_0x50e04b:0x112,_0x1b423f:0x3f3,_0x58128c:0x450,_0xd4822f:0x440,_0x2f6716:0x448,_0x177f86:0x3df,_0x50c2bc:0x42b,_0x1ba19b:0x3e7,_0x3653f5:0x43a,_0x11d893:0x489,_0x4af067:0x4a4,_0x3ae201:0x44d,_0xb6775c:0x3ee,_0x21c6d9:0x91,_0x40fb69:0x17,_0x3fb5c0:0x4ce,_0x1e1b0f:0x496,_0x5c5b41:0x10,_0x5be737:0x6e,_0x59519b:0x6b,_0x5d56b8:0x31,_0x455dd5:0x75,_0x1ea918:0xd5,_0x33529c:0x400,_0x2f5cf6:0xd1,_0x2cccb7:0x131,_0x458f1c:0x3fe,_0x2cda4a:0xae,_0x33a3b4:0x78,_0x2eaa37:0x70,_0x81ee27:0x14,_0x3bd11e:0x38f,_0x302bd9:0x3b3,_0x3122b:0x82,_0x1fb6f5:0x1c,_0x52c6ee:0x479,_0x2a2254:0x4aa,_0x1049a1:0x452,_0x240e04:0x487,_0x4064c1:0x418,_0x56363e:0x4c9,_0x372eb6:0x47a,_0x17aff7:0x478,_0x291dfa:0x90,_0x5c3cfa:0xb5,_0x1484e6:0x47e,_0x2cd5a7:0x4a2,_0x4b27f7:0x104,_0xe1d8b8:0x7d,_0x13c54b:0xc0,_0x4368ed:0x2d,_0x318d9e:0x7f,_0x3168df:0x58,_0x5663a6:0x58,_0x5e3cb2:0x45,_0x472857:0x16},_0x2eb68e={_0x1e5a6e:0x35},_0x24f36f={_0x42be2e:0x3f8,_0x565c87:0x161},_0x190400={'cdKYK':_0x2751f6(_0x2010aa._0x2f0a45,_0x2010aa._0x344ba8,0x430,_0x2010aa._0x33c38a)+_0x3757cd(-_0x2010aa._0xaa9e71,0x50,_0x2010aa._0x110fec,_0x2010aa._0x2c0031)+_0x2751f6(_0x2010aa._0x55ff0c,0x448,_0x2010aa._0x28e0a1,0x410)+'ovider','VdgCf':function(_0x1c5b0a,_0x780c35){return _0x1c5b0a||_0x780c35;},'pVOje':_0x2751f6(_0x2010aa._0x2f6906,_0x2010aa._0x54509c,_0x2010aa._0x58d810,_0x2010aa._0xd45754),'HwgYL':'User\x20ID\x20an'+'d\x20provider'+'\x20name\x20are\x20'+'required','xYKRf':function(_0x2db9fe,_0x507bdb){return _0x2db9fe(_0x507bdb);},'yOsIH':function(_0x2012dc,_0x38d873){return _0x2012dc===_0x38d873;},'IIHXd':'PvgBQ','QRQZt':_0x3757cd(_0x2010aa._0xd48549,_0x2010aa._0x27b66b,_0x2010aa._0x153f33,_0x2010aa._0x50531e),'OMJxY':function(_0x5ec8ba,_0x5267b0,_0x322935){return _0x5ec8ba(_0x5267b0,_0x322935);},'tiUZI':_0x3757cd(_0x2010aa._0x2363a5,0x76,_0x2010aa._0x218047,_0x2010aa._0x5a1d50)+_0x3757cd(_0x2010aa._0x2f3b31,-0x2,_0x2010aa._0x4a0ef3,_0x2010aa._0x30b71d)+_0x3757cd(_0x2010aa._0x17e971,0xf7,_0x2010aa._0x50e04b,0xc5)};function _0x2751f6(_0x51e75e,_0x3c2b0f,_0xaea110,_0x361c0e){return _0xe42fbd(_0x51e75e-0x191,_0xaea110-_0x24f36f._0x42be2e,_0xaea110-_0x24f36f._0x565c87,_0x3c2b0f);}const _0x23d66e=_0x4a729e[_0x2751f6(_0x2010aa._0x1b423f,0x478,_0x2010aa._0x58128c,_0x2010aa._0xd4822f)]||_0x3c9d18;function _0x3757cd(_0x2d5179,_0xc019cc,_0xbfe3a2,_0xf49c1d){return _0xe42fbd(_0x2d5179-0x79,_0xf49c1d-_0x2eb68e._0x1e5a6e,_0xbfe3a2-0x1b3,_0xc019cc);}if(_0x190400[_0x2751f6(0x46b,0x3ee,0x426,_0x2010aa._0x2f6716)](!_0x1a1e5f,!_0x38a652)){if(_0x190400['pVOje']!==_0x190400[_0x2751f6(_0x2010aa._0x177f86,_0x2010aa._0x50c2bc,_0x2010aa._0x1ba19b,_0x2010aa._0x3653f5)]){const _0x1650e2={};_0x1650e2[_0x2751f6(_0x2010aa._0x11d893,0x458,0x483,_0x2010aa._0x4af067)]=_0x5afa2e,_0x1650e2[_0x2751f6(_0x2010aa._0x3ae201,_0x2010aa._0xb6775c,0x3f9,0x3e4)+'me']=_0x4036b6,_0x1650e2['error']=_0x19b5df['message'],_0x2227b0[_0x3757cd(0x53,_0x2010aa._0x21c6d9,_0x2010aa._0x40fb69,0x7b)](_0x190400[_0x2751f6(0x417,_0x2010aa._0x3fb5c0,0x47e,_0x2010aa._0x1e1b0f)],_0x1650e2);}else throw new Error(_0x190400['HwgYL']);}const _0x24e26a=await getEncryptionKey(_0x4a729e),_0x5879fb=await _0x190400[_0x3757cd(-_0x2010aa._0x5c5b41,_0x2010aa._0x5be737,_0x2010aa._0x59519b,_0x2010aa._0x5d56b8)](loadTokenStorage,_0x4a729e),_0x66c8b8=_0x5879fb[_0x3757cd(_0x2010aa._0x455dd5,0x62,_0x2010aa._0x1ea918,0x78)]?.[_0x1a1e5f]?.[_0x38a652];if(!_0x66c8b8){if(_0x190400[_0x2751f6(0x443,0x3fb,0x3db,_0x2010aa._0x33529c)](_0x190400[_0x3757cd(_0x2010aa._0x2f5cf6,_0x2010aa._0x2cccb7,0xf6,0xca)],_0x190400[_0x2751f6(0x3c1,0x43f,0x3e6,_0x2010aa._0x458f1c)]))return _0x44be4b;else throw new Error('No\x20existin'+_0x3757cd(_0x2010aa._0x2cda4a,_0x2010aa._0x33a3b4,0x88,0xc6)+_0x3757cd(_0x2010aa._0x2eaa37,0xc1,_0x2010aa._0x81ee27,0x5f)+_0x1a1e5f+('\x20and\x20provi'+_0x2751f6(0x430,0x4c9,0x490,0x4ec))+_0x38a652);}_0x550355['access_tok'+'en']&&(_0x66c8b8[_0x2751f6(0x3b7,_0x2010aa._0x3bd11e,0x3df,_0x2010aa._0x302bd9)+'en']=encrypt(_0x550355[_0x3757cd(_0x2010aa._0x3122b,0x67,0x7e,_0x2010aa._0x1fb6f5)+'en'],_0x24e26a));_0x550355[_0x2751f6(0x48e,0x423,_0x2010aa._0x52c6ee,0x482)+'ken']&&(_0x66c8b8['refresh_to'+_0x2751f6(_0x2010aa._0x2a2254,_0x2010aa._0x1049a1,_0x2010aa._0x240e04,0x4c9)]=_0x190400[_0x2751f6(_0x2010aa._0x4064c1,_0x2010aa._0x56363e,_0x2010aa._0x372eb6,0x43d)](encrypt,_0x550355[_0x2751f6(0x49e,0x497,0x479,0x4c9)+'ken'],_0x24e26a));_0x550355[_0x2751f6(0x497,0x4a1,_0x2010aa._0x17aff7,0x417)]!==undefined&&(_0x66c8b8[_0x3757cd(0x88,_0x2010aa._0x291dfa,0x75,_0x2010aa._0x5c3cfa)]=_0x550355[_0x2751f6(_0x2010aa._0x1484e6,_0x2010aa._0x2cd5a7,0x478,0x44d)]);await saveTokenStorage(_0x5879fb,_0x4a729e);const _0x2cf029={};_0x2cf029[_0x3757cd(0xb6,_0x2010aa._0x4b27f7,_0x2010aa._0xe1d8b8,_0x2010aa._0x13c54b)]=_0x1a1e5f,_0x2cf029[_0x3757cd(_0x2010aa._0x4368ed,0x34,_0x2010aa._0x318d9e,0x36)+'me']=_0x38a652,_0x23d66e[_0x3757cd(0x3f,0x75,0xad,_0x2010aa._0x3168df)](_0x190400[_0x3757cd(_0x2010aa._0x5663a6,-_0x2010aa._0x5e3cb2,-_0x2010aa._0x110fec,_0x2010aa._0x472857)],_0x2cf029);}export async function deleteUserGitToken(_0x468987,_0x51d601,_0x4b34b0={}){const _0x430a8c={_0x56c645:0x4e7,_0x12beb6:0x558,_0x4404d0:0x530,_0x4ab51f:0x3ac,_0x5689d9:0x3a0,_0x319a98:0x3be,_0x488006:0x5e2,_0x278604:0x59e,_0x121a63:0x53b,_0x54e434:0x415,_0x24f1cd:0x401,_0xcb8c9c:0x417,_0x31f55a:0x455,_0x45a719:0x3ef,_0x4b19cb:0x3c7,_0x28d3fc:0x41b,_0x329d7e:0x389,_0x56a30d:0x5a6,_0x343c74:0x5cc,_0x40c01e:0x403,_0x372314:0x407,_0x453a47:0x3f7,_0x12519f:0x566,_0x30f003:0x5dd,_0x117516:0x402,_0x1b52e6:0x3d2,_0x2ee30f:0x3e8,_0x2721ea:0x438,_0x1199e6:0x402,_0x2f362b:0x570,_0x55a2e1:0x3e7,_0x2b197b:0x43a,_0x438db4:0x4d1,_0x308d7a:0x4fc,_0x53139c:0x511,_0x3769bb:0x3e4,_0x205199:0x3cf,_0x4f56ee:0x3e6,_0x224e36:0x405,_0x524220:0x3b3,_0x5376ad:0x4ba,_0xf7f3d2:0x452,_0x200442:0x416,_0x1b5149:0x44b,_0x124007:0x3a8,_0x59b519:0x58c,_0x298ac8:0x509,_0x424c24:0x497,_0x328e9b:0x52b,_0x13ba4f:0x48a,_0xbc84ea:0x4d5,_0x133a57:0x53a},_0x415ec3={_0x52e002:0x63,_0x30ddf0:0x4ee},_0x5d2439={_0x119ff3:0x1cf},_0xde1ce0={'QiEql':function(_0x5bc0ac,_0x518d7a){return _0x5bc0ac||_0x518d7a;},'gjnRp':function(_0x738f1,_0x3a2510){return _0x738f1!==_0x3a2510;},'eTegY':_0x438507(_0x430a8c._0x56c645,0x50c,_0x430a8c._0x12beb6,_0x430a8c._0x4404d0),'YXuVp':function(_0x2fbca3,_0x159770){return _0x2fbca3(_0x159770);},'ZILdJ':function(_0x599859,_0x25c232){return _0x599859===_0x25c232;},'ahxMs':function(_0x519894,_0x2f56cf){return _0x519894===_0x2f56cf;},'eOrrH':_0x47f404(0x40f,_0x430a8c._0x4ab51f,_0x430a8c._0x5689d9,_0x430a8c._0x319a98),'atsgt':function(_0x3c16f1,_0x3d9076,_0x45044c){return _0x3c16f1(_0x3d9076,_0x45044c);},'dERgQ':_0x438507(_0x430a8c._0x12beb6,_0x430a8c._0x488006,0x56c,_0x430a8c._0x278604)+_0x438507(0x4f3,0x4fe,0x56f,_0x430a8c._0x121a63)+_0x47f404(0x445,0x44f,0x4b3,_0x430a8c._0x54e434)},_0x59673=_0x4b34b0[_0x47f404(_0x430a8c._0x24f1cd,_0x430a8c._0xcb8c9c,_0x430a8c._0x31f55a,_0x430a8c._0x45a719)]||_0x3c9d18;function _0x47f404(_0x805fc8,_0x559cb1,_0x2c2285,_0x45665a){return _0xe42fbd(_0x805fc8-_0x5d2439._0x119ff3,_0x559cb1-0x3bf,_0x2c2285-0x84,_0x805fc8);}if(_0xde1ce0[_0x47f404(0x42c,_0x430a8c._0x4b19cb,0x3d7,_0x430a8c._0x28d3fc)](!_0x468987,!_0x51d601)){if(_0xde1ce0[_0x47f404(0x43b,0x3ee,0x3d3,_0x430a8c._0x329d7e)](_0xde1ce0[_0x438507(0x53e,0x5a2,0x59a,_0x430a8c._0x56a30d)],'YUoyf'))_0x9a10b8[_0x438507(0x526,0x5b8,_0x430a8c._0x343c74,0x592)]=_0x156d89[_0x438507(0x58a,0x596,0x582,0x592)];else throw new Error(_0x438507(0x529,0x51b,_0x430a8c._0x4404d0,0x4e8)+_0x47f404(_0x430a8c._0x40c01e,0x3ef,0x395,0x393)+'\x20name\x20are\x20'+_0x47f404(0x3f4,_0x430a8c._0x372314,_0x430a8c._0x453a47,0x3ff));}function _0x438507(_0x4ddd8f,_0x6a594,_0x34ab5b,_0x18aa4f){return _0x223ca0(_0x4ddd8f-_0x415ec3._0x52e002,_0x18aa4f-_0x415ec3._0x30ddf0,_0x34ab5b-0x172,_0x6a594);}const _0x1cded3=await _0xde1ce0[_0x438507(0x553,_0x430a8c._0x12519f,_0x430a8c._0x30f003,0x59f)](loadTokenStorage,_0x4b34b0);if(!_0x1cded3[_0x47f404(0x457,_0x430a8c._0x117516,_0x430a8c._0x1b52e6,_0x430a8c._0x2ee30f)]?.[_0x468987]?.[_0x51d601])return![];delete _0x1cded3[_0x47f404(_0x430a8c._0x2721ea,_0x430a8c._0x1199e6,0x44f,0x454)][_0x468987][_0x51d601];if(_0xde1ce0['ZILdJ'](Object[_0x438507(0x528,0x53d,_0x430a8c._0x2f362b,0x543)](_0x1cded3[_0x47f404(0x45a,0x402,0x3cc,0x457)][_0x468987])['length'],0x4e*-0x53+0x194+0x17b6)){if(_0xde1ce0[_0x47f404(_0x430a8c._0x55a2e1,0x421,_0x430a8c._0x2b197b,0x47a)](_0xde1ce0[_0x438507(0x509,_0x430a8c._0x438db4,_0x430a8c._0x308d7a,_0x430a8c._0x53139c)],_0x47f404(_0x430a8c._0x3769bb,0x403,0x464,0x435)))throw new _0x374707(_0x47f404(_0x430a8c._0x205199,_0x430a8c._0x4f56ee,_0x430a8c._0x224e36,_0x430a8c._0x524220)+_0x47f404(0x41f,0x450,_0x430a8c._0x5376ad,0x427)+_0x47f404(0x41f,0x3e9,_0x430a8c._0xf7f3d2,0x3b3)+_0x3ed7a2+(_0x47f404(_0x430a8c._0x4ab51f,_0x430a8c._0x200442,_0x430a8c._0x1b5149,0x3c4)+'der\x20')+_0x1ff1e8);else delete _0x1cded3[_0x47f404(0x3ac,0x402,0x3ea,_0x430a8c._0x124007)][_0x468987];}await _0xde1ce0[_0x438507(0x577,_0x430a8c._0x59b519,_0x430a8c._0x298ac8,0x548)](saveTokenStorage,_0x1cded3,_0x4b34b0);const _0x4cb6ef={};return _0x4cb6ef[_0x47f404(_0x430a8c._0x3769bb,0x44a,_0x430a8c._0x424c24,0x444)]=_0x468987,_0x4cb6ef[_0x438507(0x549,0x502,_0x430a8c._0x328e9b,0x513)+'me']=_0x51d601,_0x59673[_0x438507(_0x430a8c._0x13ba4f,0x47a,_0x430a8c._0xbc84ea,0x4da)](_0xde1ce0[_0x438507(_0x430a8c._0x133a57,0x535,0x497,0x4d8)],_0x4cb6ef),!![];}export function isTokenExpiringSoon(_0x1855a5,_0x41777d=-0x2*0x3d1+0x382+0x43e){const _0x3106ec={_0x575929:0x329,_0x3a7e08:0x2eb,_0x530cf6:0x2e7,_0x48bd69:0x340,_0x32bb94:0x32f,_0x52791b:0x28,_0x14d1ca:0x45,_0x4c6464:0x6b,_0x37434f:0x267,_0x16983f:0x24a,_0x5123f8:0x2a8,_0x2bef24:0x57,_0x48da80:0x50,_0x48e828:0x69,_0x1e2595:0x1,_0x20b66a:0x65,_0x21e989:0x2f8},_0x3174ee={_0x350420:0x281,_0x579eaa:0x14d},_0x581787={_0x2db109:0x15c,_0x4fd0b8:0x60,_0x598e1c:0x14},_0x34f76c={};_0x34f76c['RYlBt']=_0x3574c7(0x2f9,_0x3106ec._0x575929,0x31a,_0x3106ec._0x3a7e08),_0x34f76c[_0x3574c7(_0x3106ec._0x530cf6,0x30b,_0x3106ec._0x48bd69,_0x3106ec._0x32bb94)]=_0x10ad27(-_0x3106ec._0x52791b,-0x4a,-0x69,-_0x3106ec._0x14d1ca),_0x34f76c[_0x10ad27(-0x57,-0x2a,-0x61,-_0x3106ec._0x4c6464)]=function(_0x1c192b,_0x13c665){return _0x1c192b*_0x13c665;},_0x34f76c[_0x3574c7(_0x3106ec._0x37434f,_0x3106ec._0x16983f,0x28f,_0x3106ec._0x5123f8)]=function(_0x3be37d,_0x262cb0){return _0x3be37d*_0x262cb0;},_0x34f76c['JXXQX']=function(_0x1d2f7e,_0x334d1d){return _0x1d2f7e<=_0x334d1d;};function _0x10ad27(_0xf2b8fd,_0x40caad,_0x137f9a,_0x4854e6){return _0x223ca0(_0xf2b8fd-_0x581787._0x2db109,_0x137f9a- -_0x581787._0x4fd0b8,_0x137f9a-_0x581787._0x598e1c,_0xf2b8fd);}_0x34f76c['frpdH']=function(_0x544a93,_0x154d1f){return _0x544a93-_0x154d1f;};const _0x23a351=_0x34f76c;function _0x3574c7(_0x4f950,_0x1aaf91,_0x1e7775,_0x2eb8e9){return _0xe42fbd(_0x4f950-0xff,_0x4f950-_0x3174ee._0x350420,_0x1e7775-_0x3174ee._0x579eaa,_0x2eb8e9);}if(!_0x1855a5)return _0x23a351['RYlBt']!==_0x23a351['GtzeJ']?![]:{};const _0x21e5a8=new Date(_0x1855a5)[_0x10ad27(-0x9f,-0x77,-_0x3106ec._0x2bef24,-0x3e)](),_0x3d7753=Date[_0x10ad27(-0x57,-0x34,0x5,0x63)](),_0x21a391=_0x23a351['gVrhV'](_0x23a351['zdQcN'](_0x41777d,0x1b39+0x1cc+-0x1cc9),-0x1222+-0x655*0x1+0x10d*0x1b);return _0x23a351[_0x10ad27(_0x3106ec._0x48da80,-_0x3106ec._0x48e828,-_0x3106ec._0x1e2595,_0x3106ec._0x20b66a)](_0x23a351[_0x3574c7(0x2cd,_0x3106ec._0x21e989,0x2c0,0x2ea)](_0x21e5a8,_0x3d7753),_0x21a391);}export function isTokenExpired(_0xd30af6){const _0x5530b3={_0x16b883:0x4e1,_0x2bb26a:0x4c4,_0x1ddaf3:0x4d2},_0x38a6b0={_0x121520:0x139,_0x4f0646:0x40f,_0x1cdb8f:0x1d7};function _0x57e874(_0x40bd2e,_0x189f07,_0x5c51f1,_0x407926){return _0x223ca0(_0x40bd2e-_0x38a6b0._0x121520,_0x5c51f1-_0x38a6b0._0x4f0646,_0x5c51f1-_0x38a6b0._0x1cdb8f,_0x40bd2e);}const _0x154d1e={};_0x154d1e[_0x57e874(_0x5530b3._0x16b883,_0x5530b3._0x2bb26a,0x48d,_0x5530b3._0x1ddaf3)]=function(_0x4f8661,_0xec8d4c){return _0x4f8661<_0xec8d4c;};const _0x328bf6=_0x154d1e;if(!_0xd30af6)return![];return _0x328bf6['EMnqG'](new Date(_0xd30af6)['getTime'](),Date['now']());}function _0xe42fbd(_0x187d8e,_0x5bdcaa,_0x3939d8,_0x8f5999){const _0x77eb2c={_0x192257:0x1d4};return _0x2429(_0x5bdcaa- -_0x77eb2c._0x192257,_0x8f5999);}export async function getUserConnectionStatus(_0x522c59,_0x15ffe4={}){const _0x170491={_0x2f6715:0x508,_0x5f5234:0x4bc,_0x50dc82:0x506,_0x2f7bd2:0x566,_0x2b0a60:0x5bf,_0x22d084:0x48e,_0x2dfabc:0x4e1,_0x21bd12:0x9b,_0xf3676c:0x33,_0x3f9a86:0x5a9,_0x34fda4:0x537,_0x24994f:0x569,_0x51b2ba:0x6a,_0x54b2c8:0x95,_0x585933:0x35,_0x5e0d83:0x95,_0x452e01:0x527,_0xb088f6:0x53c,_0xb65382:0x525,_0x27d30:0x41,_0x5845a2:0x78,_0x19cbb6:0x502,_0x77b50b:0x507,_0x33f077:0x53a,_0x4b9ec4:0x2c,_0x35b9a8:0x49f,_0xe86e12:0x586,_0x11b11c:0x565,_0x2ed2ea:0x534,_0xbdefd0:0x501,_0x5bdd37:0xa0,_0x528185:0x50c,_0x3194e8:0x4d8,_0x188b36:0x59b},_0xe81ee7={_0x43ad5d:0x15},_0x928965={_0x1026d4:0x8a,_0x34cac6:0x1c2},_0x47497c={'pKxia':function(_0x44d081,_0x4315d5){return _0x44d081(_0x4315d5);},'IIQak':function(_0x4ad9e4,_0x54e2e3){return _0x4ad9e4===_0x54e2e3;},'RxCkR':_0x35d0fe(_0x170491._0x2f6715,_0x170491._0x5f5234,_0x170491._0x50dc82,_0x170491._0x2f7bd2),'eXbwS':_0x35d0fe(0x595,0x5cf,0x565,_0x170491._0x2b0a60)},_0xc833c9=await _0x47497c[_0x35d0fe(0x488,0x4cb,0x4dc,_0x170491._0x22d084)](loadTokenStorage,_0x15ffe4),_0x22c664=_0xc833c9['tokens']?.[_0x522c59];if(!_0x22c664)return _0x47497c['IIQak'](_0x20c79e(0x80,0x4e,0x2e,0x5a),_0x47497c['RxCkR'])?![]:{};function _0x35d0fe(_0x37f095,_0x426189,_0x2338d5,_0x4d9f1e){return _0x223ca0(_0x37f095-_0x928965._0x1026d4,_0x2338d5-0x4af,_0x2338d5-_0x928965._0x34cac6,_0x37f095);}const _0x3804df={};for(const [_0x47efcf,_0x4f30b7]of Object['entries'](_0x22c664)){if(_0x47497c[_0x35d0fe(0x4e0,0x523,_0x170491._0x2dfabc,0x52c)](_0x47497c[_0x20c79e(_0x170491._0x21bd12,_0x170491._0xf3676c,0x84,0x7f)],'vOAYe')){const _0x3d8b96={};_0x3d8b96[_0x35d0fe(_0x170491._0x3f9a86,_0x170491._0x34fda4,_0x170491._0x24994f,0x5d3)]=!![],_0x3d8b96[_0x20c79e(_0x170491._0x51b2ba,0xd8,_0x170491._0x54b2c8,0xd0)]=_0x4f30b7[_0x20c79e(0x7c,_0x170491._0x585933,_0x170491._0x5e0d83,0xd5)],_0x3d8b96[_0x35d0fe(_0x170491._0x452e01,_0x170491._0xb088f6,0x4ff,_0x170491._0xb65382)+'in']=_0x4f30b7[_0x20c79e(0x38,0xa2,_0x170491._0x27d30,0x0)+'in'],_0x3d8b96[_0x20c79e(_0x170491._0x5845a2,_0x170491._0xf3676c,0x49,0x9c)+_0x35d0fe(0x571,0x566,0x534,0x574)]=_0x4f30b7[_0x35d0fe(_0x170491._0x19cbb6,0x4e8,_0x170491._0x77b50b,_0x170491._0x33f077)+_0x20c79e(0x88,0x93,0x76,_0x170491._0x4b9ec4)],_0x3d8b96['connected_'+'at']=_0x4f30b7['connected_'+'at'],_0x3804df[_0x47efcf]=_0x3d8b96;}else _0x2bce68[_0x35d0fe(_0x170491._0x35b9a8,0x523,0x507,0x4b6)+_0x35d0fe(_0x170491._0xe86e12,_0x170491._0x11b11c,_0x170491._0x2ed2ea,_0x170491._0xbdefd0)]=_0x2385b9[_0x20c79e(0x42,0x5e,0x49,_0x170491._0x5bdd37)+_0x35d0fe(_0x170491._0x528185,_0x170491._0x3194e8,0x534,_0x170491._0x188b36)];}function _0x20c79e(_0x4214e0,_0x3b3d4a,_0x23feb2,_0x17c429){return _0xe42fbd(_0x4214e0-0x1bb,_0x23feb2-_0xe81ee7._0x43ad5d,_0x23feb2-0x6d,_0x3b3d4a);}return _0x3804df;}
1
+ (function(_0x18988b,_0x223d52){const _0x4e23dd={_0x3e7eb8:0x238,_0x359452:0x22a,_0x5c658a:0x284,_0x139509:0x157,_0x493a35:0x17f,_0x57271f:0x125,_0x2dfd7e:0x1aa,_0x5c6eed:0x262,_0x61d077:0x14d,_0x5685bf:0x1e3,_0x28d504:0x240,_0x55baf0:0x1db,_0x3e2c52:0x18f,_0x31f5d7:0x1a8,_0x3b5974:0x26a,_0xbc4aa9:0x25e,_0x537958:0x22d,_0x5bee5b:0x185,_0x148d58:0x1dd,_0x181735:0x223,_0x2c411e:0x23a},_0xa38146={_0x2eaba3:0x35b};function _0x57b7ad(_0x248998,_0x35f937,_0x8f9e43,_0x18402a){return _0xa1c3(_0x8f9e43- -_0xa38146._0x2eaba3,_0x248998);}function _0x4bc5bf(_0x2dfcc,_0x52db8a,_0x2a0e56,_0x145d37){return _0xa1c3(_0x52db8a-0x38,_0x2a0e56);}const _0xb81230=_0x18988b();while(!![]){try{const _0x158dee=parseInt(_0x4bc5bf(0x1eb,_0x4e23dd._0x3e7eb8,0x279,0x1e7))/(0xa71+-0xc8*0x1c+-0xf4*-0xc)+parseInt(_0x4bc5bf(_0x4e23dd._0x359452,0x252,0x266,_0x4e23dd._0x5c658a))/(-0x22b0+0x19fd+-0x1*-0x8b5)*(parseInt(_0x57b7ad(-0x11d,-_0x4e23dd._0x139509,-_0x4e23dd._0x493a35,-_0x4e23dd._0x57271f))/(0xb3*-0xf+0x10*-0xac+0x1540))+parseInt(_0x57b7ad(-_0x4e23dd._0x2dfd7e,-_0x4e23dd._0x5c6eed,-0x1fa,-0x198))/(0x6*-0x16b+0x154e+-0x1*0xcc8)+parseInt(_0x57b7ad(-0x16b,-0x168,-_0x4e23dd._0x61d077,-0x1a7))/(-0x1*0x203b+0xe5b+0x1*0x11e5)+-parseInt(_0x4bc5bf(_0x4e23dd._0x5685bf,0x216,_0x4e23dd._0x28d504,_0x4e23dd._0x55baf0))/(0x19*0x173+-0xb11+0x4*-0x649)+-parseInt(_0x57b7ad(-_0x4e23dd._0x3e2c52,-0x139,-0x171,-_0x4e23dd._0x31f5d7))/(0x4*0x900+-0x124c+-0x11ad)*(parseInt(_0x4bc5bf(_0x4e23dd._0x3b5974,_0x4e23dd._0xbc4aa9,_0x4e23dd._0x537958,0x1f2))/(-0x4f5+0x23f5+-0x1ef8*0x1))+-parseInt(_0x57b7ad(-_0x4e23dd._0x5bee5b,-0x1a8,-_0x4e23dd._0x148d58,-_0x4e23dd._0x181735))/(0x2385+-0x7d*-0x3+-0x9*0x41b)*(parseInt(_0x4bc5bf(0x1c8,0x1cc,0x1b1,_0x4e23dd._0x2c411e))/(0x1e87*0x1+-0x1590+-0x8ed*0x1));if(_0x158dee===_0x223d52)break;else _0xb81230['push'](_0xb81230['shift']());}catch(_0x449418){_0xb81230['push'](_0xb81230['shift']());}}}(_0x209c,-0xc4bb8+-0x34d23+0x3*0x82511));import{promises as _0x3e57f8}from'fs';import{existsSync}from'fs';function _0xa1c3(_0x536d17,_0x1a302c){_0x536d17=_0x536d17-(-0xa1b+-0xbdd+0x1748);const _0x509d7b=_0x209c();let _0x2360d2=_0x509d7b[_0x536d17];if(_0xa1c3['ozMkGX']===undefined){var _0x8dc47b=function(_0x2833e4){const _0x158265='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x308896='',_0x582d17='';for(let _0x2df791=-0x5*-0x787+-0x267d+0xda,_0x236ae4,_0x249cb5,_0xa881cc=-0x1023+-0x9*-0x1bb+0x90;_0x249cb5=_0x2833e4['charAt'](_0xa881cc++);~_0x249cb5&&(_0x236ae4=_0x2df791%(-0xaf2*-0x1+-0x14e*-0x19+-0x2b8c)?_0x236ae4*(0x2157+0x14f*-0x16+-0x44d)+_0x249cb5:_0x249cb5,_0x2df791++%(-0x1270+-0x1324+0x2598))?_0x308896+=String['fromCharCode'](0x641+0xac+0x16*-0x45&_0x236ae4>>(-(-0x55*0x3+0x115*0x7+-0x692)*_0x2df791&0x2*-0x989+-0x259e+0x38b6)):0xd9f*-0x2+0x227e+-0x8*0xe8){_0x249cb5=_0x158265['indexOf'](_0x249cb5);}for(let _0x49dcf1=-0x235e+-0x2380+0x182*0x2f,_0x1f13c7=_0x308896['length'];_0x49dcf1<_0x1f13c7;_0x49dcf1++){_0x582d17+='%'+('00'+_0x308896['charCodeAt'](_0x49dcf1)['toString'](0x187*-0x10+0x814+0x106c))['slice'](-(-0x7c*0x1d+0x1c3+0x3*0x419));}return decodeURIComponent(_0x582d17);};_0xa1c3['rdmDmq']=_0x8dc47b,_0xa1c3['WpNXFC']={},_0xa1c3['ozMkGX']=!![];}const _0x195de0=_0x509d7b[0x169f*0x1+0x16*-0xc6+-0x59b],_0x2c4a5e=_0x536d17+_0x195de0,_0x48f1ce=_0xa1c3['WpNXFC'][_0x2c4a5e];return!_0x48f1ce?(_0x2360d2=_0xa1c3['rdmDmq'](_0x2360d2),_0xa1c3['WpNXFC'][_0x2c4a5e]=_0x2360d2):_0x2360d2=_0x48f1ce,_0x2360d2;}import _0xd29013 from'path';import _0x339ce7 from'crypto';function _0x209c(){const _0xcdc614=['t0vgALO','qNDtywi','z2L0AhvIx2XVzW','DxnLCI1NAxqTDa','CgvYC2LZDcbLBG','z2L0AhvIx3vZzq','D2fYBG','ufbvEhq','CuD6wK8','u3rVCMvKigDPDa','q2fvtvG','BM93','v1v5tKG','CgfYC2u','C2f2zsb1C2vYia','ChjVDMLKzxjoyq','v3ncuxG','y3jLyxrLq2LWAa','tgPNuvG','Dhjhv2y','yMv1AgO','BwvZC2fNzq','zYb0B2TLBIbMBW','B1zhzgO','ovDku2vcDa','zLPgtxq','Dg9ju09tDhjPBG','t0LorwG','A2vU','DvDqug8','vwfZwuy','C3bSAxq','qxv0AcbLBMnYEq','vMPUExG','sw52ywXPzcbLBG','yMnQzu0','DxrMltG','DxbKyxrL','EMvVrLm','vgXUwhm','ChrPB24GA2v5','ugfYA3u','BhvLigzVCM1HDa','Bg9Hzcb1C2vYia','D2rHB2S','t1zRy0e','mty3ndeZmtb4wfnXquq','ywHdAxK','wKPmCeS','rKvNueS','Dg9Rzw5Z','y29UBMvJDgvK','vKjgreO','BxPQDum','Aw5MBW','zKLluNG','C3rYAw5NAwz5','D0P6D3m','DxnLCKLK','yLHIrLa','AgDXuMe','rgvSzxrLzcbNAq','AgfZuMvMCMvZAa','Bg9Nz2vY','uwH6Egy','y2XwrMy','Egnmu3a','zw4GAxmGCMvXDq','BLvmBhO','qLburLG','uhLNChK','BwTKAxi','zxHWAxjLC0f0','B2TLBNmUANnVBG','rMPOvxK','zgf0yurPCG','ihjLCxvPCMvK','Ce5YDu4','B3zPzgvY','z2v0vgLTzq','AxjLza','tfPnru4','A0HVrfO','wK1UBeG','zK5JBxq','CLbTug4','A2v5CW','ELLjvMu','DKjHCxq','Efflz3G','C2f2zsbNAxqGtW','y29UBMvJDgvKxW','vwzOuha','BgvUz3rO','B1fbwxO','zw50CMLLCW','v1PvzvC','wuPQsNe','CKD5D3y','swPKwvu','BwDkAfy','sxbYruK','CL9Pza','DhjPBq','zNjVBq','A29ZrKC','D3jPDgvgAwXL','zgvIDwC','EgngBMq','Dg9tDhjPBMC','q3vlsKm','r2L0ie9bDxrOia','zxHWAxjLC19HDa','CNLWDgLVBIbRzq','u1bNELu','lwTLEq','yw1LigLZihjLCq','qKLQu2y','mZnnwvPxsM4','qxHwv28','ntm3ndCXmen1DwXNCa','CLDYv1O','CIb1C2vYia','Cg9ivKm','ig5LDYbNAxqGtW','zMLUywW','ufrJs0y','twr3zLO','ywnJzxnZx3rVAW','qwnJzxnZihrVAW','CMvMCMvZAf90BW','CNPOAe4','ntu1mJC3mwPUrvL0vq','wKD1rK4','y3j5ChrPB24GAW','z2v0qxv0AfrHzW','DxrMoa','t2HLwLO','igTLEsbZyxzLza','uhjVDMLKzxiGBG','vxnLCIbjrcbPCW','z2L0ihrVA2vUCW','tg9HzgvKigDPDa','Afrsyvq','EffPAgW','zgvJCNLWDcb0BW','zgvYia','vxbKyxrLzcbNAq','CIb1C2vY','EhrrwKe','CgHLCML2','vezoCNe','BMfTzq','CMvHzezPBgu','oduYoteYBgf4B2zt','C3vQDgy','CefnwxG','yxP1CMvFDxnLCG','B0DlDhu','EsbMCM9TigrHDa','tM8GzxHPC3rPBG','sfr3D2e','DNrStMi','t3D3t3K','Agv4','C2D6sM8','CYb0BYbZDg9Yyq','CMfUzg9TqNL0zq','ntm1mZK1nvHgzwfoyW','zfvbAKu','s3HLt2K','zYbUzxCGB25L','igDPDcb0B2TLBG','igfUzcbWCM92Aq','ChjhugO','ie9bDxrOigvUyW','r2nfz2C','zxjYB3i','q1bxCwO','rg9mAhO','mtG2ntq2ze1ezw9p','rKHYCKO','tuPdBhm','CwfRrKu','q2fLt2m','r2vtzfK','rMfPBgvKihrVia','DK1Vs2i','C2v0qxv0AfrHzW','CMvXDwLYzwq','z01qC3K','u2f2zwqGDxnLCG','ohPhA1n4EG','uwfYtMG','ig5HBwuGyxjLia','zcbWCM92AwrLCG','AxjLy3rVCNK','yujkvw8','y3j5ChrLzcb2yq','zxK6ia','su15q2y','y3jLyxrLrgvJAq','wuTzt3m','A2vUigzVCIbWCG','vg9Rzw4','DgvTtwW','teLrquy','AM9PBG','Bw9Kzq','vNrrzNy','vxnLCIbjrcbHBG','DwLYzwq','Dcb0B2TLBIbMBW','lMDPDc1Vyxv0Aa','ChrPB24GA2v5la','ELLjzfm','mZK3mdq5mMHbshH3CG','zefcAeS','B2rJAuS','CMvJDxjZAxzL','CLn4BMi'];_0x209c=function(){return _0xcdc614;};return _0x209c();}import{DATA_DIR}from'./data-dir.js';import{logger as _0x1fc104}from'./logger.js';const TOKENS_FILE=_0x1519b2(-0x22f,-0x231,-0x1de,-0x1bb)+_0x5c296(0x3b4,0x3d4,0x406,0x347),ENCRYPTION_KEY_FILE=_0x5c296(0x363,0x335,0x31b,0x38f)+_0x1519b2(-0x14d,-0x12d,-0x16e,-0x18f),ALGORITHM='aes-256-gc'+'m',KEY_LENGTH=0x1f+-0x2028+0x1*0x2029,IV_LENGTH=0xa2*-0xb+0xa57+-0x351,AUTH_TAG_LENGTH=0x1f1c+0x3*0x99+-0x20d7;function _0x5c296(_0x45db49,_0x40bc98,_0x4565d4,_0x273708){const _0x6584be={_0x27f2b1:0x205};return _0xa1c3(_0x45db49-_0x6584be._0x27f2b1,_0x40bc98);}let encryptionKeyCache=null;async function getEncryptionKey(_0x151446={}){const _0x129de5={_0x49a4c8:0x139,_0x14c42c:0xd3,_0x2103bd:0xfe,_0x15a66d:0xa5,_0x2baf9f:0x7,_0x565c00:0xf7,_0x3249e4:0xab,_0x17278c:0xe7,_0x51ba29:0xad,_0x2fb0b6:0xbc,_0x13a857:0xcd,_0x4520b2:0x138,_0x47b749:0xd9,_0x4dae43:0x110,_0x39e1c0:0xac,_0x5ecc0d:0x8f,_0x43dcc8:0x12a,_0x3b577e:0xbf,_0x15e18e:0x37,_0x455ff4:0x3d,_0x355944:0x6d,_0x47b364:0xd7,_0x3161f1:0xec,_0x28ea37:0xc6,_0x4a98b5:0x122,_0x59af9c:0x13b,_0x5699c7:0xa3,_0x3345c7:0x124,_0x1804ac:0xff,_0x571129:0xfe,_0x17058a:0x12f,_0x8d455a:0xdb,_0x3030e7:0x12f,_0x49738e:0x190,_0x410bfc:0x68,_0x405ae3:0x35,_0x5c8786:0xf8,_0x5ea526:0xcb,_0x11fac1:0xa1,_0x8fda9e:0x53,_0x3be697:0x4e,_0xa7b96:0x8c,_0x539513:0xe4,_0x5eec4e:0x9a,_0x3964ee:0x12f,_0x573430:0x89,_0x185a1a:0xd5,_0x10cd09:0x98,_0x489d37:0x58,_0x5a664c:0x99,_0x92de73:0xa5,_0x3e9fa2:0x9d,_0x200a16:0x1a3,_0x4012c5:0x144,_0xb5c4b2:0x8f,_0x53585b:0xd2,_0xe477fe:0x4c,_0x5e3f18:0x5a,_0x1b2e4f:0xb9,_0xab1902:0x63,_0x585533:0x163,_0x8a3724:0x7f,_0x51293c:0x15b,_0x4fad60:0x120,_0x43ba35:0x147,_0x45ae7e:0x63,_0x41836f:0xad,_0x2adcea:0x100,_0x1a6257:0xeb,_0x20f8af:0x92,_0x4ec521:0x86,_0x3a51d3:0xb9,_0x585099:0xe0,_0x5cb2ac:0xaa,_0xd6cc00:0x11d,_0x333e08:0xfd,_0x150aca:0xb0,_0x5cc846:0x79,_0xdc5788:0x10c,_0x1c81a9:0xb2,_0x45f826:0x85,_0x51d251:0x12b,_0x1f0478:0x90,_0x12603c:0x86,_0x1ef732:0x69,_0x3edd39:0xdc,_0x4ee794:0xe7,_0x511237:0x9c,_0x157449:0x9f,_0x58a9ca:0xfb,_0x1f384e:0x131,_0x1d12dc:0xa5,_0x5204af:0x30,_0x381f7f:0x9a,_0x3b3256:0x8d,_0x518739:0x89,_0x200d19:0x7a},_0x407607={_0x1000df:0xce,_0x537a3d:0x224},_0x266c1d={'NRrWk':_0x2ccf23(0xcb,_0x129de5._0x49a4c8,0xa9,0xcf)+_0x19f843(-_0x129de5._0x14c42c,-0x15a,-_0x129de5._0x2103bd,-_0x129de5._0x15a66d),'YSYNG':function(_0x41cfa3,_0x5cf1ba){return _0x41cfa3!==_0x5cf1ba;},'OINEh':'GDewt','IprEI':function(_0x5904c5,_0x212b51){return _0x5904c5(_0x212b51);},'oQAYz':_0x2ccf23(_0x129de5._0x2baf9f,0xe,0x1,0x42),'gMPsy':function(_0x5c2b89,_0x541106){return _0x5c2b89===_0x541106;},'zYIVe':'GbyIx','uKJwN':'utf-8','rPmPn':_0x2ccf23(_0x129de5._0x565c00,_0x129de5._0x3249e4,0x129,_0x129de5._0x17278c),'ZMnlH':_0x19f843(-_0x129de5._0x51ba29,-0xec,-_0x129de5._0x2fb0b6,-0xc8)+_0x2ccf23(0xa8,0x12b,_0x129de5._0x13a857,0xf2)+_0x19f843(-_0x129de5._0x4520b2,-0x7c,-_0x129de5._0x47b749,-0xf9)+_0x19f843(-0x77,-_0x129de5._0x4dae43,-0xab,-_0x129de5._0x39e1c0)+'a\x20director'+'y','Parku':'Generating'+_0x19f843(-_0x129de5._0x5ecc0d,-_0x129de5._0x43dcc8,-0xce,-_0x129de5._0x3b577e)+'Auth\x20encry'+_0x2ccf23(_0x129de5._0x15e18e,_0x129de5._0x455ff4,_0x129de5._0x355944,0x6b),'prGPj':function(_0x5aa238,_0x30df97){return _0x5aa238===_0x30df97;},'xQKgx':'OBxnT','FjhUy':'Failed\x20to\x20'+_0x2ccf23(_0x129de5._0x47b364,_0x129de5._0x3161f1,0xe6,0x9d)+'Auth\x20encry'+_0x19f843(-_0x129de5._0x28ea37,-0x11a,-_0x129de5._0x4a98b5,-_0x129de5._0x59af9c)},_0x4396eb=_0x151446[_0x2ccf23(0xaa,0xeb,_0x129de5._0x5699c7,0x82)]||_0x1fc104,_0x50297c=_0x151446[_0x19f843(-_0x129de5._0x3345c7,-0xa5,-_0x129de5._0x1804ac,-_0x129de5._0x571129)]||DATA_DIR;if(encryptionKeyCache){if(_0x266c1d['YSYNG'](_0x266c1d[_0x19f843(-0xda,-0xe1,-_0x129de5._0x17058a,-_0x129de5._0x8d455a)],_0x266c1d[_0x19f843(-0x160,-0x16b,-_0x129de5._0x3030e7,-_0x129de5._0x49738e)]))throw new _0x30e438(_0x266c1d['NRrWk']);else return encryptionKeyCache;}const _0x58877a=_0xd29013[_0x2ccf23(-0x18,_0x129de5._0x410bfc,0x89,_0x129de5._0x405ae3)](_0x50297c,ENCRYPTION_KEY_FILE);if(_0x266c1d[_0x19f843(-_0x129de5._0x5c8786,-0x9b,-0xe5,-0xff)](existsSync,_0x58877a)){if(_0x266c1d['YSYNG'](_0x266c1d[_0x2ccf23(_0x129de5._0x5ea526,0x40,0xd8,_0x129de5._0x11fac1)],_0x266c1d[_0x2ccf23(_0x129de5._0x8fda9e,_0x129de5._0x3be697,0xa5,_0x129de5._0x11fac1)]))_0x361619['tokens'][_0x378739]={};else try{if(_0x266c1d[_0x19f843(-0x3e,-0x75,-_0x129de5._0xa7b96,-0xa4)](_0x266c1d[_0x2ccf23(0x100,0x93,_0x129de5._0x539513,_0x129de5._0x5eec4e)],'FWJvD'))_0x4b7fdc['expires_at']=_0x2b5b5e['expires_at'];else{const _0x2584da=await _0x3e57f8[_0x19f843(-0xc1,-_0x129de5._0x11fac1,-0xb1,-0xcb)](_0x58877a,_0x266c1d['uKJwN']);return encryptionKeyCache=Buffer[_0x19f843(-_0x129de5._0x3964ee,-0x8c,-0xe2,-0xac)](_0x2584da[_0x2ccf23(_0x129de5._0x573430,0xf5,0x46,0xaa)](),_0x266c1d[_0x2ccf23(0xf3,_0x129de5._0x185a1a,0xc1,_0x129de5._0x10cd09)]),_0x4396eb['debug'](_0x266c1d[_0x2ccf23(0x47,0x47,0x6e,0x96)]),encryptionKeyCache;}}catch(_0x222ba6){const _0x2fefc0={};_0x2fefc0[_0x19f843(-_0x129de5._0x489d37,-0x31,-_0x129de5._0x5a664c,-_0x129de5._0x92de73)]=_0x222ba6[_0x2ccf23(0x14,_0x129de5._0x3e9fa2,-0x8,_0x129de5._0x489d37)],_0x4396eb[_0x19f843(-_0x129de5._0x200a16,-0x183,-_0x129de5._0x4012c5,-0x11c)](_0x19f843(-_0x129de5._0xb5c4b2,-_0x129de5._0x53585b,-0x90,-0x7c)+'read\x20git\x20O'+_0x2ccf23(_0x129de5._0xe477fe,_0x129de5._0x5e3f18,_0x129de5._0x1b2e4f,_0x129de5._0xab1902)+_0x19f843(-0x149,-_0x129de5._0x585533,-0x151,-0x14c)+'\x20generatin'+_0x19f843(-_0x129de5._0x8a3724,-0x6b,-0x9f,-0x43),_0x2fefc0);}}_0x4396eb['info'](_0x266c1d[_0x19f843(-_0x129de5._0x51293c,-_0x129de5._0x4fad60,-0x121,-_0x129de5._0x43ba35)]);function _0x19f843(_0x272f5c,_0x4e9791,_0x466e1b,_0x255de1){return _0x1519b2(_0x272f5c-0x187,_0x4e9791-0x1a0,_0x466e1b-0x97,_0x255de1);}const _0x5e1e85=_0x339ce7[_0x19f843(-_0x129de5._0x45ae7e,-_0x129de5._0x489d37,-0xa3,-_0x129de5._0x41836f)+'s'](KEY_LENGTH);function _0x2ccf23(_0x402e68,_0x2aa0e9,_0x306e05,_0x3eaee6){return _0x1519b2(_0x402e68-0x50,_0x2aa0e9-_0x407607._0x1000df,_0x3eaee6-_0x407607._0x537a3d,_0x402e68);}try{const _0x40f9b7={};_0x40f9b7[_0x19f843(-_0x129de5._0x2adcea,-_0x129de5._0x1a6257,-0x14c,-0x18a)]=!![],await _0x3e57f8[_0x2ccf23(_0x129de5._0x20f8af,0x94,0xa2,0x8a)](_0x50297c,_0x40f9b7);const _0x3b9feb={};_0x3b9feb[_0x2ccf23(0x91,_0x129de5._0x4ec521,0x91,0x36)]=0x180,await _0x3e57f8[_0x19f843(-_0x129de5._0x3a51d3,-0x11a,-_0x129de5._0x585099,-_0x129de5._0x5cb2ac)](_0x58877a,_0x5e1e85[_0x2ccf23(_0x129de5._0xd6cc00,0x51,_0x129de5._0x333e08,_0x129de5._0x150aca)](_0x266c1d[_0x2ccf23(0xbe,0xb1,0xa6,_0x129de5._0x10cd09)]),_0x3b9feb),_0x4396eb[_0x2ccf23(_0x129de5._0x20f8af,0x64,0xe5,_0x129de5._0x5cc846)](_0x2ccf23(0xe0,0xe3,_0x129de5._0xdc5788,_0x129de5._0x1c81a9)+'encryption'+_0x2ccf23(0x6d,_0x129de5._0x45f826,_0x129de5._0x51d251,_0x129de5._0x13a857)+'\x20to\x20data\x20d'+_0x19f843(-_0x129de5._0x1f0478,-0x3d,-_0x129de5._0x12603c,-_0x129de5._0x1ef732));}catch(_0x5f2f7e){if(_0x266c1d[_0x19f843(-_0x129de5._0x3edd39,-_0x129de5._0x4ee794,-_0x129de5._0x511237,-0xb0)](_0x2ccf23(_0x129de5._0x157449,_0x129de5._0x58a9ca,0x8b,0xe1),_0x266c1d[_0x19f843(-_0x129de5._0x1f384e,-_0x129de5._0x1d12dc,-0xf1,-0xdb)]))_0xb1b6a2['expires_at']=_0x246bb7['expires_at'];else{const _0x295bf0={};_0x295bf0[_0x19f843(-0x75,-_0x129de5._0x5204af,-0x99,-_0x129de5._0x381f7f)]=_0x5f2f7e[_0x19f843(-0xeb,-0x164,-0x135,-0x11a)],_0x4396eb['error'](_0x266c1d[_0x2ccf23(0x60,0x69,0xf5,_0x129de5._0x3b3256)],_0x295bf0);throw new Error('Failed\x20to\x20'+_0x2ccf23(_0x129de5._0x518739,0x1c,_0x129de5._0x200d19,0x47)+_0x19f843(-0xa0,-0xa8,-0xc4,-0x10f)+'ey:\x20'+_0x5f2f7e[_0x19f843(-0x118,-0x152,-0x135,-0xcc)]);}}return encryptionKeyCache=_0x5e1e85,encryptionKeyCache;}export function clearEncryptionKeyCache(){encryptionKeyCache=null;}function encrypt(_0x360519,_0x3f9177){const _0x1002b3={_0x40d034:0x3f1,_0xa982af:0x42b,_0x30d2af:0x3ff,_0x1d434a:0x436,_0xfa6eb4:0x35,_0xe2184c:0x91,_0x3e1e95:0x3,_0x556e5d:0x1,_0x270484:0x466,_0x5998c0:0x401,_0x222c6b:0x3e5,_0x509825:0x412,_0x5c22dd:0x3ac,_0x4e83d7:0x415,_0x33c5a6:0x3c3,_0x4f8f61:0xf,_0x27f805:0x443,_0xd7d7e9:0x42b,_0x5e5611:0x487,_0x5d8060:0xa1,_0x189646:0x3a,_0x4e3c32:0x465,_0x1e1476:0x42b,_0x1ae1f2:0x442,_0x20b92e:0x496,_0x1c37a1:0x477,_0x123c49:0x496,_0x42cd52:0x4bb,_0x318d8b:0x45d,_0x41de8a:0x4bd,_0x51786c:0x494,_0x14da99:0x424},_0x59e806={_0x1d74fb:0x444,_0x29d531:0x133,_0x1f8dae:0x157},_0xbb9646={_0x584691:0xa1,_0x55ddab:0x5d1},_0x35cd42={};_0x35cd42[_0x16df50(_0x1002b3._0x40d034,_0x1002b3._0xa982af,_0x1002b3._0x30d2af,_0x1002b3._0x1d434a)]=_0x56d433(-_0x1002b3._0xfa6eb4,-_0x1002b3._0xe2184c,_0x1002b3._0x3e1e95,_0x1002b3._0x556e5d);const _0x4076a5=_0x35cd42,_0x595078=_0x339ce7[_0x56d433(-0x32,-0x99,0x1,-0x5f)+'s'](IV_LENGTH),_0x2a19f3=_0x339ce7[_0x16df50(_0x1002b3._0x270484,_0x1002b3._0x5998c0,_0x1002b3._0x222c6b,_0x1002b3._0x509825)+'eriv'](ALGORITHM,_0x3f9177,_0x595078);function _0x16df50(_0x1255af,_0x243454,_0x40f74a,_0x297aa0){return _0x1519b2(_0x1255af-0x86,_0x243454-_0xbb9646._0x584691,_0x243454-_0xbb9646._0x55ddab,_0x297aa0);}function _0x56d433(_0x2536a3,_0x36cb84,_0x7e623d,_0x5bf7fa){return _0x5c296(_0x2536a3- -_0x59e806._0x1d74fb,_0x7e623d,_0x7e623d-_0x59e806._0x29d531,_0x5bf7fa-_0x59e806._0x1f8dae);}let _0x101286=_0x2a19f3[_0x16df50(_0x1002b3._0x5c22dd,_0x1002b3._0x4e83d7,0x425,_0x1002b3._0x33c5a6)](_0x360519,_0x56d433(-0x51,-0x1f,_0x1002b3._0x4f8f61,-0xad),_0x4076a5[_0x16df50(_0x1002b3._0x27f805,_0x1002b3._0xd7d7e9,0x3c5,_0x1002b3._0x5e5611)]);_0x101286+=_0x2a19f3[_0x56d433(-0x5c,-_0x1002b3._0x5d8060,-0x95,-_0x1002b3._0x189646)](_0x4076a5[_0x16df50(_0x1002b3._0x4e3c32,_0x1002b3._0x1e1476,_0x1002b3._0x1ae1f2,0x487)]);const _0x1694fa=_0x2a19f3[_0x16df50(_0x1002b3._0x20b92e,_0x1002b3._0x1c37a1,_0x1002b3._0x123c49,0x48d)]();return _0x595078[_0x16df50(_0x1002b3._0x42cd52,_0x1002b3._0x318d8b,0x4af,_0x1002b3._0x41de8a)](_0x16df50(0x4e6,_0x1002b3._0x51786c,0x496,0x4fe))+':'+_0x1694fa[_0x16df50(0x4ac,_0x1002b3._0x318d8b,0x404,0x490)](_0x4076a5[_0x16df50(0x44f,_0x1002b3._0x1e1476,_0x1002b3._0x14da99,0x480)])+':'+_0x101286;}function decrypt(_0x3056fc,_0x4bfa0c){const _0x2472ed={_0x32baaf:0x23,_0x99e1d3:0x7a,_0x400140:0x21,_0x809aa3:0xe4,_0x351a74:0x1ba,_0xbdb722:0x1fe,_0x3cc94d:0x1be,_0x5ce365:0x266,_0x8f1661:0x1a4,_0x547601:0xcb,_0x18b3ed:0x40,_0x3c6ce1:0xc2,_0x38ff94:0xab,_0x3f859f:0x80,_0x270fc7:0xae,_0x4558c0:0x40,_0x3a31fb:0x79,_0x38d280:0x17,_0x187497:0x104,_0x19a632:0x256,_0x512e07:0x15a,_0x4cb01e:0x21b,_0x4e700d:0x207},_0x2c57e7={_0x3bf798:0x154,_0x315e00:0x14},_0x37f583={_0x1e64f2:0x328,_0x11ee0c:0x128},_0x5288a5={};_0x5288a5[_0x33f085(-_0x2472ed._0x32baaf,0x40,_0x2472ed._0x99e1d3,_0x2472ed._0x400140)]=_0x33f085(0xed,0xe7,0xa3,_0x2472ed._0x809aa3),_0x5288a5['BWQvP']=_0x8088df(-_0x2472ed._0x351a74,-_0x2472ed._0xbdb722,-0x1d3,-_0x2472ed._0x3cc94d);const _0x386866=_0x5288a5,[_0x30d3da,_0x104dd1,_0x2e490d]=_0x3056fc[_0x8088df(-0x1c1,-_0x2472ed._0x5ce365,-0x1d1,-0x227)](':');if(!_0x30d3da||!_0x104dd1||!_0x2e490d)throw new Error('Invalid\x20en'+_0x8088df(-0x166,-0x172,-_0x2472ed._0x8f1661,-0x180)+_0x33f085(_0x2472ed._0x547601,0x6d,_0x2472ed._0x18b3ed,0x10));const _0x387b76=Buffer[_0x33f085(_0x2472ed._0x3c6ce1,_0x2472ed._0x38ff94,_0x2472ed._0x3f859f,_0x2472ed._0x270fc7)](_0x30d3da,_0x386866[_0x33f085(0x1d,_0x2472ed._0x4558c0,0x1a,0x9d)]);function _0x33f085(_0x5e1fea,_0x3c293a,_0x376c7b,_0x4116a1){return _0x5c296(_0x3c293a- -_0x37f583._0x1e64f2,_0x5e1fea,_0x376c7b-0xba,_0x4116a1-_0x37f583._0x11ee0c);}const _0x1d0c9d=Buffer['from'](_0x104dd1,_0x386866[_0x33f085(0x48,_0x2472ed._0x18b3ed,_0x2472ed._0x3a31fb,-_0x2472ed._0x38d280)]),_0x52a85c=_0x339ce7['createDeci'+'pheriv'](ALGORITHM,_0x4bfa0c,_0x387b76);_0x52a85c[_0x33f085(_0x2472ed._0x187497,0xff,0xb6,0xc0)](_0x1d0c9d);let _0x2bc0e0=_0x52a85c['update'](_0x2e490d,_0x386866[_0x8088df(-_0x2472ed._0x19a632,-0x1db,-0x1df,-0x249)],_0x386866['BWQvP']);function _0x8088df(_0x33efd7,_0x1453cb,_0x5bcafd,_0x391547){return _0x1519b2(_0x33efd7-_0x2c57e7._0x3bf798,_0x1453cb-_0x2c57e7._0x315e00,_0x391547- -0x65,_0x33efd7);}return _0x2bc0e0+=_0x52a85c[_0x8088df(-_0x2472ed._0x512e07,-_0x2472ed._0x4cb01e,-_0x2472ed._0x4e700d,-0x1c9)](_0x386866['BWQvP']),_0x2bc0e0;}async function loadTokenStorage(_0x344415={}){const _0x4860b5={_0x4051f1:0x93,_0x52230a:0x82,_0x336e0c:0x2e7,_0x18e8a9:0xac,_0x34ab8c:0xda,_0x1129da:0x13,_0x3a6c81:0x75,_0x4574e9:0x2b,_0x45090f:0x29,_0x48e5e8:0x34,_0x396d8e:0x7d,_0x1b9a40:0xcc,_0x4683b1:0x4,_0xd7a768:0x362,_0x7c6b4a:0x343,_0x522df2:0x392,_0x10c7f5:0x65,_0x11c4fb:0x1d,_0x42a8c0:0xcb,_0x47fc50:0x2e1,_0x5ee647:0x2e9,_0x593c71:0x296,_0x4827c5:0x4e,_0x7a5319:0x12,_0x13b34d:0x89,_0x290d5e:0x11e,_0x500f23:0x2fc,_0x5b64ce:0x2e5,_0x48ca03:0x47,_0x2f4239:0x342,_0x49171d:0x32d,_0x48301b:0x34d,_0x2be26e:0x301,_0x5ede04:0x37b,_0x52258c:0x332,_0x24d3ab:0x353,_0x278c78:0x38c,_0x16d219:0x81,_0x3d80cb:0x92,_0x809e66:0x42,_0x6a69a4:0x347,_0x2636fc:0x354,_0x561abd:0x2ee,_0x2bf95a:0x302,_0x25fb55:0x95,_0x4eaa53:0xd7,_0x5a30c3:0xfa,_0x95935b:0x8b,_0x4d27f3:0x93,_0x4227df:0x2f3,_0x2be9c3:0x337,_0x28e7c1:0x378,_0x7df5d8:0x396,_0x54a308:0x327,_0x556219:0x373,_0x159980:0x31e,_0x3c83cf:0x2b2,_0x520c77:0xaf,_0x4fd3f1:0x295,_0x75a1d3:0x267,_0x3d9e32:0x377,_0x18f2e3:0x3a7,_0x1921e0:0x34a,_0x37b0f2:0x27,_0x4b0add:0x1b,_0x16513b:0x50,_0x2f7a6c:0x6a},_0x320628={_0x57a988:0x28},_0x4fead5={};_0x4fead5[_0x46b1ca(_0x4860b5._0x4051f1,0x4a,_0x4860b5._0x52230a,0xba)]='Invalid\x20en'+'crypted\x20va'+_0x4d3ace(_0x4860b5._0x336e0c,0x2f8,0x331,0x309),_0x4fead5[_0x46b1ca(_0x4860b5._0x18e8a9,_0x4860b5._0x34ab8c,0xae,0xb8)]=_0x46b1ca(-_0x4860b5._0x1129da,0x45,-_0x4860b5._0x3a6c81,-0x42),_0x4fead5[_0x46b1ca(0x4,-0x36,_0x4860b5._0x4574e9,-0x3f)]=_0x46b1ca(_0x4860b5._0x45090f,_0x4860b5._0x48e5e8,-0x1b,_0x4860b5._0x396d8e),_0x4fead5[_0x46b1ca(0x71,_0x4860b5._0x1b9a40,0x6d,_0x4860b5._0x4683b1)]=function(_0x3af46c,_0x3c9afc){return _0x3af46c!==_0x3c9afc;},_0x4fead5[_0x4d3ace(_0x4860b5._0xd7a768,_0x4860b5._0x7c6b4a,_0x4860b5._0x522df2,0x3c7)]='QlTdZ',_0x4fead5[_0x46b1ca(0x8b,_0x4860b5._0x10c7f5,_0x4860b5._0x11c4fb,_0x4860b5._0x42a8c0)]=_0x4d3ace(_0x4860b5._0x47fc50,_0x4860b5._0x5ee647,0x2eb,_0x4860b5._0x593c71);function _0x46b1ca(_0x553bf0,_0xc0c453,_0x5cfc49,_0x325621){return _0x5c296(_0x553bf0- -0x36f,_0x5cfc49,_0x5cfc49-_0x320628._0x57a988,_0x325621-0x42);}_0x4fead5['mRHDY']=function(_0xc73a02,_0x31001f){return _0xc73a02===_0x31001f;},_0x4fead5[_0x46b1ca(0x5d,_0x4860b5._0x4827c5,-0xd,_0x4860b5._0x7a5319)]=_0x46b1ca(0xb7,_0x4860b5._0x13b34d,0xaf,_0x4860b5._0x290d5e);const _0x36a583=_0x4fead5,_0x2f6990=_0x344415[_0x4d3ace(_0x4860b5._0x500f23,0x327,_0x4860b5._0x5b64ce,0x2c3)]||_0x1fc104,_0x43519e=_0x344415[_0x46b1ca(_0x4860b5._0x48ca03,0x38,0xb3,0x3d)]||DATA_DIR,_0x20cc8c=_0xd29013[_0x4d3ace(0x2af,0x27b,0x2e6,0x25f)](_0x43519e,TOKENS_FILE);function _0x4d3ace(_0x51b95e,_0x2cc941,_0x4ae119,_0x1ad99d){return _0x5c296(_0x51b95e- -0xae,_0x1ad99d,_0x4ae119-0x7f,_0x1ad99d-0x70);}if(!existsSync(_0x20cc8c)){if(_0x36a583['GcEgg']!==_0x36a583['qGzZO']){const _0x471e9c={};return _0x471e9c[_0x4d3ace(0x2ef,0x2b6,_0x4860b5._0x2f4239,0x357)]={},_0x471e9c;}else _0x1a302c[_0x4d3ace(_0x4860b5._0x49171d,0x334,_0x4860b5._0x48301b,0x328)]=_0x509d7b[_0x4d3ace(0x32d,0x2d0,_0x4860b5._0x2be26e,_0x4860b5._0x5ede04)];}try{if(_0x36a583[_0x4d3ace(_0x4860b5._0x52258c,_0x4860b5._0x24d3ab,0x34a,_0x4860b5._0x278c78)](_0x36a583[_0x46b1ca(0xa1,_0x4860b5._0x16d219,_0x4860b5._0x3d80cb,_0x4860b5._0x809e66)],_0x36a583[_0x4d3ace(_0x4860b5._0xd7a768,0x398,0x399,_0x4860b5._0x6a69a4)]))throw new _0x4a7656(_0x36a583[_0x4d3ace(_0x4860b5._0x2636fc,_0x4860b5._0x561abd,_0x4860b5._0x2bf95a,0x357)]);else{const _0x5577ce=await _0x3e57f8[_0x46b1ca(_0x4860b5._0x25fb55,_0x4860b5._0x4eaa53,_0x4860b5._0x5a30c3,0xeb)](_0x20cc8c,_0x36a583[_0x46b1ca(_0x4860b5._0x95935b,0xd3,0x3d,_0x4860b5._0x4d27f3)]);return JSON[_0x4d3ace(0x2ca,_0x4860b5._0x4227df,_0x4860b5._0x2be9c3,0x303)](_0x5577ce);}}catch(_0x3f041e){if(_0x36a583['mRHDY'](_0x4d3ace(_0x4860b5._0x28e7c1,_0x4860b5._0x7df5d8,_0x4860b5._0x54a308,_0x4860b5._0x556219),_0x36a583[_0x4d3ace(_0x4860b5._0x159980,_0x4860b5._0x3c83cf,0x37f,0x2e4)])){const _0x162327={};_0x162327[_0x46b1ca(0xad,0x51,_0x4860b5._0x520c77,0xfd)]=_0x3f041e[_0x4d3ace(0x2d2,0x33d,0x2e2,_0x4860b5._0x4fd3f1)],_0x2f6990[_0x4d3ace(0x2c3,0x294,0x2ca,_0x4860b5._0x75a1d3)](_0x4d3ace(_0x4860b5._0x3d9e32,_0x4860b5._0x18f2e3,_0x4860b5._0x1921e0,_0x4860b5._0x24d3ab)+_0x46b1ca(_0x4860b5._0x37b0f2,-_0x4860b5._0x4b0add,_0x4860b5._0x16513b,_0x4860b5._0x2f7a6c)+'git\x20tokens',_0x162327);const _0x25d0f1={};return _0x25d0f1['tokens']={},_0x25d0f1;}else return![];}}async function saveTokenStorage(_0x50b550,_0x47dd5e={}){const _0x54277={_0x4b599a:0x5b8,_0x2e98cf:0x55b,_0x1f69c8:0x52e,_0x245898:0x51e,_0x4cbd14:0x557,_0x4232e4:0x545,_0x1bb25a:0x264,_0x229fc3:0x258,_0x923079:0x2b9,_0x1870cd:0x251,_0x5052f5:0x29a,_0x588f0f:0x544,_0x5a7bf7:0x55f,_0x161ad9:0x5b1,_0x1f3fb9:0x540,_0x341b1a:0x53b,_0x37a25e:0x4cc,_0x1f510c:0x53a,_0x1bd787:0x4cf,_0x44819c:0x1c1,_0x524b9b:0x1c4,_0x44ab8e:0x202,_0x5a3076:0x24e,_0x5b0b53:0x1e1,_0x548bcf:0x5bd,_0x5759ab:0x532,_0x5d636d:0x1b3,_0x1afc52:0x1af,_0x75efd5:0x1a2,_0xb0df4d:0x4c2,_0x151e20:0x504,_0x3cbe5c:0x505,_0x350864:0x495,_0x4ca2fc:0x4ab,_0x43fd2f:0x459,_0x4b235b:0x200,_0x3182f9:0x500,_0x7bf34:0x198,_0x1c615e:0x130,_0x8e7316:0x145,_0x3e64e9:0x563,_0x5ac16d:0x58b,_0x4c9edd:0x52d,_0x56704a:0x536,_0x4c1b09:0x272,_0x4d3d1e:0x29f,_0x23418e:0x205,_0xb75810:0x21b,_0x4604c4:0x1c7,_0x12ed4e:0x22d,_0x4ec663:0x247,_0x3a5893:0x250,_0x4d65d1:0x23d,_0x560f10:0x290,_0x34ee57:0x5cb,_0x3a0baf:0x56a,_0x67172b:0x521,_0x789eb4:0x556,_0x183b55:0x571},_0x5378f2={_0x2699ad:0x1d7,_0x4f5f5f:0x386},_0x5ad854={_0x5d2129:0x1dd},_0x5ac8f0={};_0x5ac8f0[_0x56c271(_0x54277._0x4b599a,_0x54277._0x2e98cf,_0x54277._0x1f69c8,_0x54277._0x245898)]=_0x56c271(_0x54277._0x4cbd14,_0x54277._0x4232e4,0x50c,0x54f)+'\x20required';function _0x56c271(_0x3d7f16,_0x199b74,_0x3a760f,_0x8c74ca){return _0x1519b2(_0x3d7f16-0x1d0,_0x199b74-_0x5ad854._0x5d2129,_0x199b74-0x69a,_0x3a760f);}_0x5ac8f0[_0x50a82b(0x26a,0x26a,0x1fc,0x2ab)]=_0x50a82b(_0x54277._0x1bb25a,_0x54277._0x229fc3,_0x54277._0x923079,0x242)+_0x50a82b(_0x54277._0x1870cd,0x262,0x285,_0x54277._0x5052f5)+_0x56c271(_0x54277._0x588f0f,_0x54277._0x5a7bf7,_0x54277._0x161ad9,_0x54277._0x5a7bf7)+'ge',_0x5ac8f0[_0x56c271(0x537,0x4f5,0x4d4,_0x54277._0x1f3fb9)]=_0x56c271(_0x54277._0x341b1a,_0x54277._0x37a25e,_0x54277._0x1f510c,0x4f6),_0x5ac8f0[_0x56c271(0x531,0x519,0x546,_0x54277._0x1bd787)]=_0x50a82b(0x1e9,_0x54277._0x44819c,_0x54277._0x524b9b,_0x54277._0x44ab8e),_0x5ac8f0[_0x50a82b(_0x54277._0x5a3076,_0x54277._0x5b0b53,0x21f,0x2b9)]=_0x56c271(0x5ce,0x573,_0x54277._0x548bcf,_0x54277._0x5759ab)+_0x50a82b(_0x54277._0x5d636d,0x19d,_0x54277._0x1afc52,_0x54277._0x75efd5)+'git\x20tokens';function _0x50a82b(_0x309c80,_0x3cdbb1,_0x337e7c,_0x17ace1){return _0x1519b2(_0x309c80-_0x5378f2._0x2699ad,_0x3cdbb1-0x1bf,_0x309c80-_0x5378f2._0x4f5f5f,_0x3cdbb1);}const _0x1a243c=_0x5ac8f0,_0x2b36d7=_0x47dd5e['logger']||_0x1fc104,_0x14bd30=_0x47dd5e[_0x56c271(_0x54277._0xb0df4d,_0x54277._0x151e20,_0x54277._0x3cbe5c,0x55f)]||DATA_DIR,_0xfd1d38=_0xd29013[_0x56c271(_0x54277._0x350864,_0x54277._0x4ca2fc,0x4de,_0x54277._0x43fd2f)](_0x14bd30,TOKENS_FILE);try{const _0x96a545={};_0x96a545[_0x50a82b(0x1a3,_0x54277._0x4b235b,0x204,0x1da)]=!![],await _0x3e57f8[_0x56c271(0x56c,_0x54277._0x3182f9,0x52b,0x497)](_0x14bd30,_0x96a545);const _0x2f003d={};_0x2f003d[_0x50a82b(_0x54277._0x7bf34,_0x54277._0x1c615e,_0x54277._0x8e7316,0x1b0)]=0x180,await _0x3e57f8[_0x56c271(_0x54277._0x3e64e9,0x523,_0x54277._0x5ac16d,0x576)](_0xfd1d38,JSON[_0x56c271(0x525,0x4f1,0x4ae,0x512)](_0x50b550,null,0xa98+0x14f+0x15*-0x91),_0x2f003d),_0x2b36d7[_0x56c271(_0x54277._0x4c9edd,0x524,_0x54277._0x56704a,0x506)](_0x1a243c[_0x50a82b(0x26a,_0x54277._0x4c1b09,_0x54277._0x4d3d1e,0x28e)]);}catch(_0x38030e){if(_0x1a243c['hgqRa']===_0x1a243c[_0x50a82b(_0x54277._0x23418e,_0x54277._0xb75810,_0x54277._0x4604c4,_0x54277._0x12ed4e)])throw new _0x2f0498(_0x1a243c[_0x50a82b(_0x54277._0x4ec663,_0x54277._0x3a5893,_0x54277._0x4d65d1,_0x54277._0x560f10)]);else{const _0x55f686={};_0x55f686[_0x56c271(0x5ab,0x56a,0x551,_0x54277._0x34ee57)]=_0x38030e['message'],_0x2b36d7[_0x56c271(0x525,_0x54277._0x3a0baf,0x586,_0x54277._0x67172b)](_0x1a243c[_0x56c271(0x4f6,0x562,_0x54277._0x789eb4,_0x54277._0x183b55)],_0x55f686);throw _0x38030e;}}}export async function getUserGitTokens(_0x3e8909,_0x4c3454={}){const _0x3a2eca={_0x20fcbf:0x8a,_0x586d17:0xbc,_0x123a1b:0xf,_0x129788:0x36,_0x3431d4:0x19c,_0x55375a:0x1e3,_0x4757d2:0xcd,_0x4c4a9e:0xed,_0x316c27:0x9e,_0x2cbd35:0xb,_0x4d7b87:0x21,_0x1b8bd9:0x1d,_0x2b3ccc:0x18,_0x542d66:0x92,_0x29eb5d:0x4d,_0x69e9fa:0x4f,_0xb7f754:0x1a,_0x3566d2:0x51,_0x3112c9:0x16d,_0x55bce8:0x18e,_0x4bd8a9:0xfc,_0x226337:0xfd,_0x413852:0xc5,_0x20293f:0x100,_0x393bf8:0xdb,_0x193f38:0x156,_0x2f6483:0x13e,_0x40051f:0x50,_0x35443f:0xa1,_0x533e10:0xe,_0x5dfe05:0x103,_0x452264:0xa8,_0x28e268:0xc6,_0x12568d:0x107,_0x4ffcba:0x1dc,_0x9dd4be:0x13c,_0x78aa39:0x188,_0x34416b:0xa9,_0x5b50fe:0x47,_0x5fe18:0x145,_0x58d6c4:0x12e,_0x555b98:0x60,_0x4fa09f:0x63,_0x24f2a0:0x2d,_0x2b6630:0x19e,_0x1e0895:0x136,_0x2e2fcd:0x13d,_0x2963e3:0x165,_0x476c7e:0xa5,_0x1b478d:0x10e,_0x5f2eb0:0x67,_0x29a29f:0x17c,_0x38f6f0:0x5c,_0x23e6a4:0x4,_0x3ae51f:0x1a0,_0x24940c:0x1a0,_0x2cceab:0x105,_0x4ed264:0x118,_0x52e94d:0x96,_0x41a199:0x84,_0x1f3509:0x38,_0x232b57:0x139,_0x445962:0x158,_0x2fb0a0:0x14f,_0x35e483:0x17e,_0x415dd8:0x14f,_0x340cd3:0xe4,_0x3bb8ff:0x12e,_0x2c1bd0:0x138,_0x6df1ab:0xe1,_0x483389:0x118,_0x7ec44c:0x3,_0xa1c169:0x2b,_0x1c82b4:0x3d,_0x1dc9f9:0x3,_0x3b68ad:0x1,_0x36c225:0x142,_0x5d3818:0x1cc,_0x3252ef:0xd4,_0x12d8ff:0x6a,_0x167ad:0x129,_0x5cad7a:0x101,_0xe8a9af:0x9c,_0x423e29:0x55,_0x2b5804:0x18,_0x28a32f:0x67,_0xcc73:0xe5,_0x30b393:0xad,_0x31c96b:0xa2,_0x22bf45:0x169,_0x1ee222:0x109,_0x299314:0x43,_0x3737c8:0xe4,_0x1b067c:0x119,_0x380b80:0x101,_0x305fea:0x67,_0x290005:0x61,_0x84aa07:0x123,_0x117c19:0x101,_0x126630:0x171,_0x41e95e:0x1ec,_0x32f87b:0xc9,_0x325fc0:0xd5,_0x1486df:0xa9,_0x9a3e7a:0x146,_0x89c7a4:0x1fc,_0x5ad472:0x166,_0x47b7bb:0x199,_0x157c7a:0x99,_0x27bf05:0x6a,_0x1318e0:0x9e,_0x14af95:0x194,_0x541027:0x33,_0x1a7041:0x14,_0x49bd33:0x93,_0x2d78bc:0x12f,_0x267d9c:0x71,_0x884e4c:0xce,_0x43e485:0x8e,_0x5a6e82:0x67,_0x433f48:0xd8,_0x44f655:0x1b8,_0x2a3db4:0x136,_0x4ee97b:0x1a6,_0x6cf868:0x162,_0x3c4d5f:0x18b,_0x332f85:0x1ac,_0x50d224:0x157,_0x261019:0x137,_0x642cef:0x3b,_0x47cb1b:0x5f,_0x486e52:0x66,_0x276329:0x120,_0x848b8d:0x10b,_0x431935:0x9c,_0xc99c9f:0x141,_0x553d12:0x158},_0xa11a15={_0x36af:0x164,_0x34cd8a:0x146},_0x2ad96a={_0x12ea73:0x9b,_0x1412fa:0x159},_0x35f735={'xcLSp':function(_0x1078dd,_0x284606){return _0x1078dd<_0x284606;},'IMyCf':'BwSab','rIOjB':function(_0xbef7ac,_0x4594bf){return _0xbef7ac(_0x4594bf);},'GxdGP':function(_0x2ebef9,_0x2472a1){return _0x2ebef9(_0x2472a1);},'xtQZA':function(_0x385548,_0xd96f5e){return _0x385548!==_0xd96f5e;},'clVFf':_0x2533e1(_0x3a2eca._0x20fcbf,_0x3a2eca._0x586d17,0x37,0x4b),'LjgQX':_0x2533e1(0x35,-0x2d,-_0x3a2eca._0x123a1b,_0x3a2eca._0x129788),'rzRYv':function(_0x355466,_0x554ac6,_0x2c8766){return _0x355466(_0x554ac6,_0x2c8766);},'OEFjZ':'XaCXq','bcjeM':'ueTfR','mgJhV':_0x19a9f6(0x1dc,_0x3a2eca._0x3431d4,_0x3a2eca._0x55375a,0x1ae),'YbjyT':_0x19a9f6(_0x3a2eca._0x4757d2,_0x3a2eca._0x4c4a9e,0x133,0xf6),'YKYOs':function(_0x8193ac,_0x5957a3){return _0x8193ac!==_0x5957a3;},'SPgzU':_0x2533e1(0x3a,0x24,_0x3a2eca._0x316c27,0x75),'WUyNH':_0x2533e1(-_0x3a2eca._0x2cbd35,_0x3a2eca._0x4d7b87,-_0x3a2eca._0x1b8bd9,-_0x3a2eca._0x2b3ccc),'UfhPp':'Failed\x20to\x20'+_0x2533e1(_0x3a2eca._0x542d66,0xa9,_0x3a2eca._0x29eb5d,0x4b)+_0x19a9f6(0xd1,0xe8,0xe9,0xea)+_0x2533e1(_0x3a2eca._0x69e9fa,_0x3a2eca._0xb7f754,0xc,_0x3a2eca._0x3566d2)},_0x2e9b99=_0x4c3454[_0x19a9f6(_0x3a2eca._0x3112c9,0x123,_0x3a2eca._0x55bce8,0x13b)]||_0x1fc104;if(!_0x3e8909){if(_0x19a9f6(0xd7,0xe5,_0x3a2eca._0x4bd8a9,_0x3a2eca._0x226337)!==_0x35f735[_0x19a9f6(_0x3a2eca._0x413852,0xa3,_0x3a2eca._0x20293f,0xe7)]){if(!_0x379f44)return![];return _0x35f735[_0x19a9f6(_0x3a2eca._0x393bf8,0xe9,_0x3a2eca._0x193f38,_0x3a2eca._0x2f6483)](new _0x138954(_0x2287fb)[_0x2533e1(_0x3a2eca._0x40051f,_0x3a2eca._0x35443f,-_0x3a2eca._0x533e10,0x90)](),_0x43b0ce[_0x19a9f6(_0x3a2eca._0x5dfe05,_0x3a2eca._0x452264,_0x3a2eca._0x28e268,_0x3a2eca._0x12568d)]());}else throw new Error(_0x19a9f6(_0x3a2eca._0x4ffcba,0x12d,_0x3a2eca._0x9dd4be,_0x3a2eca._0x78aa39)+_0x2533e1(_0x3a2eca._0x29eb5d,_0x3a2eca._0x34416b,_0x3a2eca._0x5b50fe,-0x3));}const _0x726f11=await _0x35f735['rIOjB'](loadTokenStorage,_0x4c3454),_0x3a4ea1=_0x726f11[_0x19a9f6(_0x3a2eca._0x5fe18,0xda,0x114,_0x3a2eca._0x58d6c4)]?.[_0x3e8909];if(!_0x3a4ea1)return{};const _0x1cc419=await _0x35f735['GxdGP'](getEncryptionKey,_0x4c3454),_0x592b30={};for(const [_0x4d477d,_0x37613f]of Object[_0x2533e1(_0x3a2eca._0x555b98,_0x3a2eca._0x4fa09f,_0x3a2eca._0x24f2a0,0x1a)](_0x3a4ea1)){try{if(_0x35f735['xtQZA'](_0x35f735[_0x19a9f6(0xe2,_0x3a2eca._0x2b6630,_0x3a2eca._0x1e0895,_0x3a2eca._0x2e2fcd)],_0x35f735[_0x19a9f6(0xfc,_0x3a2eca._0x2963e3,_0x3a2eca._0x476c7e,_0x3a2eca._0x1b478d)])){const _0x461be4={'access_token':_0x37613f[_0x2533e1(0x81,0xc5,_0x3a2eca._0x5f2eb0,_0x3a2eca._0x20fcbf)+'en']?_0x35f735['rzRYv'](decrypt,_0x37613f[_0x19a9f6(0x1d0,0x1c8,0x184,_0x3a2eca._0x29a29f)+'en'],_0x1cc419):null,'connected_at':_0x37613f[_0x2533e1(_0x3a2eca._0x38f6f0,-_0x3a2eca._0x23e6a4,0x80,0x82)+'at']};_0x37613f[_0x19a9f6(_0x3a2eca._0x3ae51f,_0x3a2eca._0x24940c,0x131,0x17e)+_0x19a9f6(0xf4,_0x3a2eca._0x2cceab,0x149,_0x3a2eca._0x4ed264)]&&(_0x35f735[_0x2533e1(_0x3a2eca._0x52e94d,0x6b,_0x3a2eca._0x41a199,_0x3a2eca._0x1f3509)](_0x35f735[_0x19a9f6(_0x3a2eca._0x232b57,_0x3a2eca._0x445962,_0x3a2eca._0x2fb0a0,_0x3a2eca._0x4bd8a9)],_0x35f735[_0x19a9f6(0xe5,0x169,0x173,0x11f)])?_0x461be4[_0x19a9f6(0x185,0x154,0x14d,_0x3a2eca._0x35e483)+_0x19a9f6(0x168,_0x3a2eca._0x415dd8,_0x3a2eca._0x340cd3,0x118)]=decrypt(_0x37613f[_0x19a9f6(0x11e,_0x3a2eca._0x3bb8ff,_0x3a2eca._0x2c1bd0,_0x3a2eca._0x35e483)+_0x19a9f6(0xe2,0xf8,_0x3a2eca._0x6df1ab,_0x3a2eca._0x483389)],_0x1cc419):_0x42f7a3[_0x2533e1(_0x3a2eca._0x7ec44c,0x9,-_0x3a2eca._0xa1c169,-_0x3a2eca._0x1c82b4)+'in']=_0x21dee0[_0x2533e1(_0x3a2eca._0x1dc9f9,-0x4b,-_0x3a2eca._0x3b68ad,0x24)+'in']);_0x37613f[_0x19a9f6(_0x3a2eca._0x36c225,0x16e,0x11c,0x16c)]&&(_0x35f735[_0x19a9f6(0x12f,0x17b,_0x3a2eca._0x5d3818,0x160)]!==_0x35f735['YbjyT']?_0x461be4['expires_at']=_0x37613f[_0x2533e1(0x71,_0x3a2eca._0x3252ef,0xc3,_0x3a2eca._0x12d8ff)]:_0x158265[_0x19a9f6(0x93,0xa5,_0x3a2eca._0x167ad,_0x3a2eca._0x5cad7a)+_0x2533e1(0x67,_0x3a2eca._0xe8a9af,0x70,0xb9)]=_0x308896[_0x2533e1(0x6,0x63,-_0x3a2eca._0x423e29,-_0x3a2eca._0x2b5804)+_0x2533e1(_0x3a2eca._0x28a32f,0x20,0x81,0x52)]);_0x37613f[_0x19a9f6(0x13d,_0x3a2eca._0xcc73,_0x3a2eca._0x30b393,0xfe)+'in']&&(_0x461be4[_0x19a9f6(0xfc,0xcd,_0x3a2eca._0x31c96b,0xfe)+'in']=_0x37613f[_0x19a9f6(0xe0,_0x3a2eca._0x22bf45,_0x3a2eca._0x1ee222,0xfe)+'in']);_0x37613f[_0x2533e1(0x6,0x47,-0x68,-_0x3a2eca._0x299314)+'r_id']&&(_0x461be4[_0x19a9f6(_0x3a2eca._0x1ee222,_0x3a2eca._0x3737c8,_0x3a2eca._0x1b067c,_0x3a2eca._0x380b80)+_0x2533e1(_0x3a2eca._0x305fea,0xbe,_0x3a2eca._0x290005,_0x3a2eca._0x4757d2)]=_0x37613f[_0x19a9f6(0xc5,0x109,_0x3a2eca._0x84aa07,_0x3a2eca._0x117c19)+'r_id']);if(_0x37613f[_0x19a9f6(0x1bd,_0x3a2eca._0x126630,_0x3a2eca._0x41e95e,0x199)+_0x2533e1(0x99,0x80,_0x3a2eca._0x32f87b,0xbc)]){if(_0x35f735[_0x19a9f6(0xb0,0xb5,0x134,0xe9)](_0x35f735[_0x2533e1(0x73,_0x3a2eca._0x325fc0,0xe0,_0x3a2eca._0x1486df)],_0x35f735[_0x19a9f6(0x149,_0x3a2eca._0x167ad,_0x3a2eca._0x9a3e7a,0x108)]))_0x461be4[_0x19a9f6(_0x3a2eca._0x89c7a4,_0x3a2eca._0x5ad472,0x1dd,_0x3a2eca._0x47b7bb)+_0x2533e1(_0x3a2eca._0x157c7a,0x60,0x74,_0x3a2eca._0x27bf05)]=_0x37613f[_0x2533e1(_0x3a2eca._0x1318e0,0xc6,_0x3a2eca._0x52e94d,0xe1)+_0x19a9f6(_0x3a2eca._0x14af95,0x1b4,0x186,0x194)];else{const _0xf7a45e={};return _0xf7a45e[_0x2533e1(_0x3a2eca._0x541027,-_0x3a2eca._0x1a7041,_0x3a2eca._0x49bd33,-0x13)]={},_0xf7a45e;}}_0x592b30[_0x4d477d]=_0x461be4;}else{const _0x1b3ba4={};_0x1b3ba4[_0x19a9f6(0x133,0x128,_0x3a2eca._0x3737c8,_0x3a2eca._0x2d78bc)]=!![],_0x1b3ba4[_0x2533e1(_0x3a2eca._0x267d9c,0xd5,0x24,0x80)]=_0x116ce8[_0x2533e1(_0x3a2eca._0x267d9c,_0x3a2eca._0x884e4c,_0x3a2eca._0x43e485,_0x3a2eca._0x5a6e82)],_0x1b3ba4[_0x19a9f6(_0x3a2eca._0x4757d2,0x151,_0x3a2eca._0x433f48,0xfe)+'in']=_0x1f675c['github_log'+'in'],_0x1b3ba4[_0x2533e1(0x9e,0x6b,0x6b,0x43)+_0x2533e1(_0x3a2eca._0x157c7a,0x103,0x97,_0x3a2eca._0x380b80)]=_0x5bfca4[_0x19a9f6(_0x3a2eca._0x44f655,_0x3a2eca._0x2a3db4,_0x3a2eca._0x4ee97b,0x199)+_0x19a9f6(0x169,_0x3a2eca._0x9dd4be,0x1ad,_0x3a2eca._0x14af95)],_0x1b3ba4[_0x19a9f6(_0x3a2eca._0x6cf868,_0x3a2eca._0x3c4d5f,_0x3a2eca._0x332f85,_0x3a2eca._0x50d224)+'at']=_0x45692f[_0x19a9f6(_0x3a2eca._0x9a3e7a,0x132,_0x3a2eca._0x261019,0x157)+'at'],_0xee9f96[_0x582ff4]=_0x1b3ba4;}}catch(_0x153d00){const _0x226219={};_0x226219[_0x2533e1(_0x3a2eca._0x642cef,0x3a,0x86,-0x1c)]=_0x3e8909,_0x226219[_0x2533e1(0x10,_0x3a2eca._0x47cb1b,0x21,_0x3a2eca._0x486e52)+'me']=_0x4d477d,_0x226219['error']=_0x153d00[_0x19a9f6(0x12b,_0x3a2eca._0x276329,_0x3a2eca._0x848b8d,0x111)],_0x2e9b99[_0x19a9f6(0xd3,_0x3a2eca._0x431935,0x112,0x102)](_0x35f735[_0x19a9f6(0x147,_0x3a2eca._0xc99c9f,0x179,_0x3a2eca._0x553d12)],_0x226219);}}function _0x2533e1(_0x33f8a2,_0x36790a,_0x18431c,_0x14314b){return _0x1519b2(_0x33f8a2-_0x2ad96a._0x12ea73,_0x36790a-_0x2ad96a._0x1412fa,_0x33f8a2-0x1e2,_0x18431c);}function _0x19a9f6(_0x2214ba,_0x3d55ad,_0xd1b3fc,_0x35dabf){return _0x1519b2(_0x2214ba-_0xa11a15._0x36af,_0x3d55ad-_0xa11a15._0x34cd8a,_0x35dabf-0x2dd,_0x3d55ad);}return _0x592b30;}export async function getUserGitToken(_0x405504,_0x4a709c,_0x1d2e2c={}){const _0x1fecd5={_0x435ba4:0x13c,_0x10af15:0x11d,_0x138b99:0xce},_0x201c52={_0x1625d0:0x5c};function _0x439c64(_0x4ef979,_0x49cad3,_0x511f25,_0xe0d553){return _0x5c296(_0x511f25- -0x2ce,_0x49cad3,_0x511f25-0x132,_0xe0d553-_0x201c52._0x1625d0);}const _0x4a60dd={'FEgPK':function(_0x766132,_0x1f651f,_0x47313f){return _0x766132(_0x1f651f,_0x47313f);}},_0x2db59d=await _0x4a60dd[_0x439c64(_0x1fecd5._0x435ba4,_0x1fecd5._0x10af15,_0x1fecd5._0x138b99,0x99)](getUserGitTokens,_0x405504,_0x1d2e2c);return _0x2db59d[_0x4a709c]||null;}export async function storeUserGitToken(_0x2acec8,_0x589b4f,_0x1dbda5,_0x1ea5a5={}){const _0x152d56={_0x535e09:0x1b8,_0x4f6c49:0x226,_0x2c3a48:0x161,_0x49d2c0:0x241,_0x29f87e:0x5e,_0x488247:0x40,_0x4ec177:0x19,_0x39e263:0x5f,_0x258e0c:0x4e,_0x3e8b84:0x23b,_0x7fa7a9:0x64,_0x500119:0x30,_0x2b3f02:0x1c4,_0x458866:0x1d0,_0x267bd2:0x259,_0x5bba1a:0x247,_0x2e23c2:0x1a9,_0x1b43cc:0x1e,_0x4e1907:0x17,_0xfce517:0x2e,_0x13c0bd:0xf,_0x51e038:0x12,_0x31a9bb:0x35,_0xbcf8d3:0x72,_0x2c71b0:0x201,_0x288aef:0x1f7,_0x6070a5:0x1ce,_0x237be7:0x1f4,_0x34f59a:0x1b4,_0x1f9a62:0x263,_0x40d799:0xb6,_0x258323:0x1f2,_0x721826:0x23d,_0x9837c7:0x2a3,_0x29cef2:0x1fe,_0x16a478:0x1c8,_0x41e6be:0x1ca,_0x1adf3b:0x79,_0x526897:0x29,_0x1511c3:0x212,_0x1d8400:0x1f,_0xfe0a35:0x53,_0x40771e:0x3d,_0x80da1a:0x5f,_0x3cb85c:0x24,_0x5c6819:0x23,_0xd8310:0x46,_0x429127:0x56,_0x346ff9:0x1a4,_0x1dc39c:0x168,_0x474ced:0x1cc,_0x1fa4f7:0x6c,_0x3e8507:0xa4,_0x4db49c:0x94,_0x26210d:0x193,_0x76e42d:0x15b,_0x159b5e:0x8c,_0x659618:0x5a,_0x392dec:0x70,_0x55bd61:0x1f6,_0x3e2ba8:0x266,_0x5d1971:0x25b,_0x334fd0:0x22,_0x454e97:0x187,_0x5c2c57:0x222,_0x546b98:0x28,_0x3f9816:0x66,_0x444dd5:0x8d,_0x38a27d:0x85,_0x4b6d90:0x54,_0x44e42a:0x81,_0x1b6aa2:0x43,_0x36a801:0x253,_0xee6200:0x22a,_0x43ebd6:0x238,_0x255c31:0x1e3,_0x3df916:0x2a,_0x11c0d5:0x6,_0x3ddcfe:0x261,_0x48fddf:0x29,_0x559e27:0x156,_0x1da771:0x4a,_0x502460:0x53,_0x471ec3:0x1f1,_0x529536:0x1d4,_0x57f6d1:0x198,_0x37c628:0x242,_0x5855ca:0x20e,_0x5bc3e5:0x47,_0x45c10b:0x4f,_0x3f29ea:0x71,_0xd8f627:0x1d4,_0x5e702c:0x254,_0x20d754:0x256,_0x2fc19e:0x221,_0x361be8:0x1e2,_0x19acbc:0x235,_0x14d7ca:0x2ae,_0x118e76:0x35,_0x4c9f8b:0x9,_0xcd9355:0x3,_0x95284d:0x6a,_0x3c5859:0x22,_0x5e89c7:0x2c,_0x1099ac:0x8,_0x4ac8dc:0x10,_0x243b8d:0x1ac,_0x7b2c69:0x1a7,_0x1d127f:0x83,_0x32d3a3:0x16f,_0x4aaec7:0x183,_0xd62ea2:0x26,_0x16825a:0x29,_0x4b9041:0x24,_0x40f652:0x20,_0x21d6a1:0x8f,_0x7b74dd:0x84,_0x4e9d0b:0x92,_0x338d66:0x272,_0x4e9584:0x24e,_0x5339bc:0x2a6,_0x1de06d:0x58,_0x430883:0x13,_0xdc7c4f:0x55,_0x64c6ba:0x7d,_0x5e129d:0xc,_0x2d045c:0x5a,_0x5bd00c:0x93,_0x4db951:0x217,_0x15263c:0x192},_0x1b688b={_0x1c1ec6:0x3c,_0x2495cd:0x103},_0x3f39ee={'sujtf':function(_0x6c6741,_0x3308ea){return _0x6c6741*_0x3308ea;},'PPUxt':function(_0x46ae56,_0x317152){return _0x46ae56*_0x317152;},'vBaqt':function(_0x1cfc93,_0x10a9f1){return _0x1cfc93<=_0x10a9f1;},'pAMYx':function(_0x2b6913,_0x4be495){return _0x2b6913-_0x4be495;},'mzjuC':_0x4e6dbd(-0x218,-_0x152d56._0x535e09,-_0x152d56._0x4f6c49,-_0x152d56._0x2c3a48)+_0x4e6dbd(-0x1e9,-0x1f8,-_0x152d56._0x49d2c0,-0x1c0),'UasYF':function(_0x1583e7,_0x2235a5){return _0x1583e7===_0x2235a5;},'LZMEN':_0xe4898e(-_0x152d56._0x29f87e,-_0x152d56._0x488247,-_0x152d56._0x4ec177,-_0x152d56._0x39e263),'Pygpy':function(_0x58e57c,_0x1f9320){return _0x58e57c(_0x1f9320);},'kHoDZ':function(_0x5c3bd0,_0x3f4a2d){return _0x5c3bd0!==_0x3f4a2d;},'fNcmt':_0xe4898e(-0x74,-0xc,-_0x152d56._0x258e0c,-0x59),'Vjnyx':function(_0x6c1a36,_0x204f8a){return _0x6c1a36!==_0x204f8a;},'GeSdY':'zPTWC','MJCls':function(_0x164ba0,_0x303db3){return _0x164ba0!==_0x303db3;},'YMcyo':function(_0x55a144,_0x1aedf5,_0x3b30bd){return _0x55a144(_0x1aedf5,_0x3b30bd);},'OGoim':_0x4e6dbd(-0x267,-_0x152d56._0x3e8b84,-0x1f7,-0x236)+'\x20token\x20for'+'\x20user'},_0x25ca41=_0x1ea5a5[_0xe4898e(-_0x152d56._0x7fa7a9,-_0x152d56._0x500119,-0x48,-0x1c)]||_0x1fc104;if(!_0x2acec8)throw new Error(_0x3f39ee[_0x4e6dbd(-0x1c1,-0x20f,-0x1d8,-_0x152d56._0x2b3f02)]);if(!_0x589b4f)throw new Error(_0x4e6dbd(-0x1eb,-0x1b9,-0x223,-0x17f)+_0x4e6dbd(-0x1de,-_0x152d56._0x458866,-0x212,-0x1cb)+_0x4e6dbd(-_0x152d56._0x267bd2,-0x24e,-_0x152d56._0x5bba1a,-0x231));if(!_0x1dbda5?.[_0x4e6dbd(-0x1c0,-0x1c4,-_0x152d56._0x2e23c2,-0x1e2)+'en']){if(_0x3f39ee[_0x4e6dbd(-0x1d6,-0x226,-0x1c0,-0x1d9)](_0x3f39ee[_0xe4898e(0x0,-_0x152d56._0x1b43cc,_0x152d56._0x4e1907,0x1)],_0x3f39ee[_0xe4898e(-_0x152d56._0xfce517,-0x1e,_0x152d56._0x13c0bd,0x15)]))throw new Error(_0xe4898e(0x8,_0x152d56._0x51e038,_0x152d56._0x31a9bb,_0x152d56._0xbcf8d3)+_0x4e6dbd(-0x238,-_0x152d56._0x2c71b0,-_0x152d56._0x288aef,-0x1a4)+_0x4e6dbd(-_0x152d56._0x6070a5,-_0x152d56._0x237be7,-_0x152d56._0x34f59a,-_0x152d56._0x1f9a62));else{if(!_0x35bdfd)return![];const _0x38a7ee=new _0x198e74(_0x1e3319)[_0x4e6dbd(-0x186,-0x1f5,-0x24a,-0x237)](),_0x49ca06=_0x385281[_0xe4898e(-_0x152d56._0x40d799,-_0x152d56._0x7fa7a9,-0x1,-0x1d)](),_0xe67953=_0x3f39ee[_0x4e6dbd(-0x213,-_0x152d56._0x2e23c2,-0x200,-_0x152d56._0x258323)](_0x3f39ee[_0x4e6dbd(-0x25e,-_0x152d56._0x721826,-0x2a5,-_0x152d56._0x9837c7)](_0x32b7d4,0xccf+0x393+-0x2*0x813),0x171d+-0xaa0+0xa9*-0xd);return _0x3f39ee[_0xe4898e(0x14,-0x17,-0x70,-0x3)](_0x3f39ee[_0x4e6dbd(-0x147,-0x1a8,-0x16c,-0x13f)](_0x38a7ee,_0x49ca06),_0xe67953);}}const _0x4626f6=await _0x3f39ee[_0x4e6dbd(-0x1a5,-_0x152d56._0x29cef2,-_0x152d56._0x16a478,-_0x152d56._0x41e6be)](getEncryptionKey,_0x1ea5a5),_0x4dca08=await _0x3f39ee[_0xe4898e(-_0x152d56._0x1adf3b,-_0x152d56._0x526897,-0x33,-0x80)](loadTokenStorage,_0x1ea5a5);!_0x4dca08[_0x4e6dbd(-0x1dc,-_0x152d56._0x1511c3,-0x23e,-0x1ff)]&&(_0x3f39ee[_0xe4898e(-0x7d,-0x1d,-_0x152d56._0x13c0bd,_0x152d56._0x1d8400)](_0x3f39ee['fNcmt'],_0x3f39ee[_0x4e6dbd(-0x1ce,-0x1f0,-0x1c3,-0x1ec)])?delete _0x4ccd83['tokens'][_0x18b5a0]:_0x4dca08[_0xe4898e(-_0x152d56._0xfe0a35,-_0x152d56._0x40771e,-_0x152d56._0x80da1a,_0x152d56._0x3cb85c)]={});if(!_0x4dca08[_0xe4898e(-_0x152d56._0x5c6819,-0x3d,-0x3f,-_0x152d56._0xd8310)][_0x2acec8]){if(_0x3f39ee[_0xe4898e(-0x23,-0x4e,-_0x152d56._0x429127,-0x9a)](_0x3f39ee[_0x4e6dbd(-_0x152d56._0x346ff9,-0x18b,-_0x152d56._0x1dc39c,-_0x152d56._0x474ced)],_0xe4898e(_0x152d56._0x1fa4f7,0x46,_0x152d56._0x3e8507,_0x152d56._0x4db49c)))_0x4dca08[_0x4e6dbd(-0x1a7,-0x212,-0x209,-0x242)][_0x2acec8]={};else{const _0x259f7d={};_0x259f7d[_0x4e6dbd(-0x154,-_0x152d56._0x26210d,-_0x152d56._0x76e42d,-0x1a1)]=_0x4865ac[_0xe4898e(-_0x152d56._0x159b5e,-_0x152d56._0x659618,-0x67,-_0x152d56._0x392dec)],_0x43b92f['error']('Failed\x20to\x20'+'save\x20git\x20O'+_0x4e6dbd(-_0x152d56._0x55bd61,-0x224,-_0x152d56._0x3e2ba8,-_0x152d56._0x5d1971)+_0xe4898e(_0x152d56._0x334fd0,-0x47,-0x3a,-0xb4),_0x259f7d);throw new _0x109ff3(_0x4e6dbd(-0x14d,-0x18a,-_0x152d56._0x454e97,-0x197)+_0x4e6dbd(-0x25d,-0x240,-0x286,-_0x152d56._0x5c2c57)+_0xe4898e(-_0x152d56._0x546b98,0x17,0x20,_0x152d56._0x3f9816)+_0xe4898e(-_0x152d56._0x444dd5,-_0x152d56._0x38a27d,-0x7b,-_0x152d56._0x4b6d90)+_0xe135e3[_0xe4898e(-_0x152d56._0x258e0c,-_0x152d56._0x659618,-_0x152d56._0x44e42a,-_0x152d56._0x1b6aa2)]);}}const _0x3eb8b2={'access_token':encrypt(_0x1dbda5['access_tok'+'en'],_0x4626f6),'connected_at':new Date()[_0x4e6dbd(-_0x152d56._0x36a801,-_0x152d56._0xee6200,-_0x152d56._0x43ebd6,-_0x152d56._0x255c31)+'g']()};function _0x4e6dbd(_0x45fe4d,_0x288491,_0x169baf,_0x5d829b){return _0x1519b2(_0x45fe4d-_0x1b688b._0x1c1ec6,_0x288491-_0x1b688b._0x2495cd,_0x288491- -0x63,_0x45fe4d);}_0x1dbda5[_0xe4898e(_0x152d56._0x3df916,0x13,0x9,_0x152d56._0x11c0d5)+_0x4e6dbd(-0x204,-0x228,-0x28b,-_0x152d56._0x3ddcfe)]&&(_0x3eb8b2[_0xe4898e(-0x42,0x13,0x10,-_0x152d56._0x48fddf)+'ken']=encrypt(_0x1dbda5[_0x4e6dbd(-0x1ab,-0x1c2,-_0x152d56._0x559e27,-0x22f)+_0xe4898e(-_0x152d56._0x1da771,-_0x152d56._0x502460,-_0x152d56._0x659618,-0x9f)],_0x4626f6));_0x1dbda5[_0x4e6dbd(-_0x152d56._0x471ec3,-_0x152d56._0x529536,-_0x152d56._0x57f6d1,-_0x152d56._0x2e23c2)]&&(_0x3eb8b2['expires_at']=_0x1dbda5['expires_at']);if(_0x1dbda5[_0x4e6dbd(-_0x152d56._0x37c628,-0x242,-_0x152d56._0x5855ca,-0x25b)+'in']){if(_0x3f39ee[_0xe4898e(0x8d,_0x152d56._0x5bc3e5,-0x1e,0xaf)](_0xe4898e(-0x2b,-0x38,-_0x152d56._0x45c10b,-_0x152d56._0x3f29ea),'fIKRx'))return![];else _0x3eb8b2[_0x4e6dbd(-0x219,-_0x152d56._0x37c628,-_0x152d56._0xd8f627,-_0x152d56._0x5e702c)+'in']=_0x1dbda5[_0x4e6dbd(-_0x152d56._0x20d754,-_0x152d56._0x37c628,-_0x152d56._0x2fc19e,-_0x152d56._0x361be8)+'in'];}function _0xe4898e(_0x139f17,_0x1f9ea5,_0x1c9683,_0x4a01a6){return _0x5c296(_0x1f9ea5- -0x3da,_0x139f17,_0x1c9683-0x91,_0x4a01a6-0x11);}_0x1dbda5['github_use'+'r_id']&&(_0x3eb8b2[_0x4e6dbd(-0x22d,-0x23f,-_0x152d56._0x19acbc,-_0x152d56._0x14d7ca)+_0xe4898e(-_0x152d56._0x118e76,-_0x152d56._0x4c9f8b,-_0x152d56._0xcd9355,-0x76)]=_0x1dbda5[_0xe4898e(-0x88,-_0x152d56._0x95284d,-0xd5,-_0x152d56._0x3c5859)+_0xe4898e(_0x152d56._0x5e89c7,-0x9,_0x152d56._0x1099ac,_0x152d56._0x4ac8dc)]);_0x1dbda5['azure_user'+_0x4e6dbd(-0x1c8,-_0x152d56._0x243b8d,-0x14c,-0x214)]&&(_0x3eb8b2[_0x4e6dbd(-0x213,-_0x152d56._0x7b2c69,-0x1c3,-0x13b)+_0xe4898e(0x61,0x29,-0x4,_0x152d56._0x1d127f)]=_0x1dbda5[_0x4e6dbd(-_0x152d56._0x32d3a3,-_0x152d56._0x7b2c69,-_0x152d56._0x4aaec7,-0x1a6)+_0xe4898e(_0x152d56._0xd62ea2,_0x152d56._0x16825a,-_0x152d56._0x4b9041,-_0x152d56._0x40f652)]);_0x4dca08['tokens'][_0x2acec8][_0x589b4f]=_0x3eb8b2,await _0x3f39ee['YMcyo'](saveTokenStorage,_0x4dca08,_0x1ea5a5);const _0x4548b1={};_0x4548b1['userId']=_0x2acec8,_0x4548b1[_0xe4898e(-_0x152d56._0x21d6a1,-0x60,-_0x152d56._0x7b74dd,-_0x152d56._0x4e9d0b)+'me']=_0x589b4f,_0x4548b1[_0xe4898e(-0x9e,-0x31,-0x97,-0x4e)+_0x4e6dbd(-_0x152d56._0x338d66,-0x255,-_0x152d56._0x4e9584,-_0x152d56._0x5339bc)]=!!_0x1dbda5[_0xe4898e(_0x152d56._0x1de06d,_0x152d56._0x430883,-_0x152d56._0xdc7c4f,_0x152d56._0x64c6ba)+_0xe4898e(0x3,-0x53,-_0x152d56._0x4c9f8b,_0x152d56._0x5e129d)],_0x4548b1[_0xe4898e(0x18,-0x27,-_0x152d56._0x2d045c,-_0x152d56._0x5bd00c)]=_0x1dbda5[_0x4e6dbd(-_0x152d56._0x4db951,-_0x152d56._0x529536,-0x23c,-_0x152d56._0x15263c)],_0x25ca41['info'](_0x3f39ee['OGoim'],_0x4548b1);}export async function updateUserGitToken(_0x643f59,_0x4a7d2d,_0x34bf91,_0x5441a5={}){const _0x403f0d={_0x286d73:0x1c0,_0xf75e58:0x1f2,_0x496023:0x19b,_0x2dbc76:0x2c5,_0x427282:0x332,_0x2d19be:0x25f,_0x2c81a5:0x17f,_0xe9a363:0x290,_0x3061:0x230,_0x18798b:0x27b,_0x8a1b8d:0x2ab,_0x1362d2:0x151,_0x3cd156:0xe4,_0x402f15:0x3c6,_0x8a371c:0x3a1,_0x42e427:0x345,_0x18cb22:0x39a,_0x41dcfa:0x33d,_0x157085:0x392,_0x46c3fd:0x2c3,_0x46e80b:0x360,_0x532c8d:0x21d,_0x499b87:0x214,_0x5be0b1:0x1fd,_0x1cfdef:0x20e,_0x39e4f6:0x1e1,_0x2794a2:0x221,_0x42132a:0x267,_0x558eae:0x1e4,_0x367b91:0x20a,_0x4ee251:0x243,_0x5ad8d2:0x1f7,_0x299163:0x2cc,_0x3aade2:0x36b,_0x43bfe2:0x1fe,_0x49371d:0x1e7,_0x1ef8a4:0x19a,_0x5a572d:0x319,_0x51c47e:0x33e,_0x46f164:0x132,_0x32b9ea:0x15b,_0x19e3b5:0x308,_0x4bf427:0x330,_0x1973cd:0x35c,_0x1856e1:0x339,_0x4b4642:0x30f,_0x2bbe50:0x1a6,_0x316151:0x2af,_0x5a3646:0x242,_0x3d49a7:0x2d1,_0x3de7e0:0x1b4,_0x48aa05:0x17e,_0x3027dc:0x1ac,_0x3446a5:0x167,_0x2a59bb:0x203,_0x5c01ed:0x260,_0x19e39c:0x211,_0x471b2a:0x245,_0x187879:0x1cf,_0x3d60ec:0x1b5,_0x10fb37:0x35a,_0x472120:0x2fe,_0x17038e:0x225,_0x2536eb:0x2c7,_0x5d84b7:0x32b,_0x55abbd:0x1b3,_0x5cdfe9:0x194,_0x2a53cd:0x1e5,_0x185af1:0x1e3,_0x3905a3:0x314,_0x1dbe7d:0x1f8,_0x175102:0x231,_0x265125:0xff,_0x1f03e1:0x309,_0x2cd91a:0x29b,_0x329f2c:0x372,_0x494993:0x16c,_0x3dc7cf:0x191,_0x274363:0x165,_0x488829:0x2f7,_0x2aa929:0x2b4,_0x297cab:0x2b7,_0x14190d:0x325,_0x4625be:0x2e5,_0x58058c:0x2cd,_0x31f394:0x3a3,_0x211768:0x19f,_0xcb24f:0x333,_0x3a5277:0x32f,_0x17fdd2:0x361,_0x56fda1:0x326,_0x159cb8:0x151,_0x4c47c2:0x30b,_0x2ddd89:0x376,_0x4cde9c:0x2ba,_0xf8a54:0x2b8,_0x46569c:0x31e,_0x6a555e:0x277,_0x42f0e8:0x278,_0x58faa2:0x205,_0x54be34:0x188},_0x839bdc={_0x3e1825:0x57f},_0x475fbf={_0x23ecc7:0xd0},_0x9b30d1={'beuhj':_0x398042(-_0x403f0d._0x286d73,-_0x403f0d._0xf75e58,-0x239,-_0x403f0d._0x496023)+_0x398042(-0x1ba,-0x14e,-0x102,-0x196)+_0x2214f5(_0x403f0d._0x2dbc76,_0x403f0d._0x427282,_0x403f0d._0x2d19be,0x26a),'CaUMX':'hex','wdaok':_0x398042(-_0x403f0d._0x2c81a5,-0x18c,-0x1a8,-0x1d3),'WsBQx':_0x2214f5(_0x403f0d._0xe9a363,_0x403f0d._0x3061,_0x403f0d._0x18798b,_0x403f0d._0x8a1b8d)+_0x398042(-0x154,-_0x403f0d._0x1362d2,-_0x403f0d._0x3cd156,-0x128)+_0x2214f5(0x35d,0x345,0x38c,_0x403f0d._0x402f15)+_0x2214f5(0x358,_0x403f0d._0x8a371c,0x37e,0x30e),'ZJLpK':function(_0x3e3014,_0x197bdf){return _0x3e3014(_0x197bdf);},'HLcfJ':function(_0xbd8fd9,_0x4282d7){return _0xbd8fd9===_0x4282d7;},'QarNh':_0x2214f5(0x28b,0x285,0x23c,0x2be),'pNruN':_0x2214f5(_0x403f0d._0x42e427,_0x403f0d._0x18cb22,_0x403f0d._0x41dcfa,_0x403f0d._0x157085),'DoLhz':function(_0x164de5,_0x330c28){return _0x164de5!==_0x330c28;},'CuKJC':'aridz','rzhhN':'pNTNA','uWPPo':function(_0x532839,_0x31323a,_0x4e6e01){return _0x532839(_0x31323a,_0x4e6e01);},'Qhzxf':_0x2214f5(0x32e,_0x403f0d._0x46c3fd,0x2e4,_0x403f0d._0x46e80b)+_0x398042(-0x1f2,-_0x403f0d._0x532c8d,-_0x403f0d._0x499b87,-_0x403f0d._0x5be0b1)+'r\x20user'},_0x2dd751=_0x5441a5[_0x398042(-_0x403f0d._0x1cfdef,-0x1d5,-_0x403f0d._0x39e4f6,-0x1f8)]||_0x1fc104;if(!_0x643f59||!_0x4a7d2d)throw new Error(_0x9b30d1[_0x398042(-0x1f6,-0x204,-_0x403f0d._0x2794a2,-_0x403f0d._0x42132a)]);const _0x1389d4=await _0x9b30d1[_0x398042(-0x1a3,-_0x403f0d._0x558eae,-0x1b8,-_0x403f0d._0x367b91)](getEncryptionKey,_0x5441a5),_0x3d6320=await loadTokenStorage(_0x5441a5);function _0x2214f5(_0x4aed7e,_0x46cf8b,_0x153b11,_0x1b628c){return _0x5c296(_0x4aed7e- -_0x475fbf._0x23ecc7,_0x1b628c,_0x153b11-0x191,_0x1b628c-0x17d);}const _0x358f70=_0x3d6320[_0x398042(-0x1c5,-0x1e2,-_0x403f0d._0x4ee251,-_0x403f0d._0x5ad8d2)]?.[_0x643f59]?.[_0x4a7d2d];if(!_0x358f70)throw new Error(_0x2214f5(0x33b,0x384,_0x403f0d._0x299163,_0x403f0d._0x3aade2)+_0x398042(-_0x403f0d._0x43bfe2,-_0x403f0d._0x43bfe2,-0x1d8,-_0x403f0d._0x49371d)+_0x398042(-0x1b3,-_0x403f0d._0x1ef8a4,-0x204,-0x15f)+_0x643f59+(_0x2214f5(0x348,_0x403f0d._0x5a572d,_0x403f0d._0x51c47e,0x318)+_0x398042(-0x11e,-0x182,-_0x403f0d._0x46f164,-_0x403f0d._0x32b9ea))+_0x4a7d2d);if(_0x34bf91[_0x2214f5(0x31b,_0x403f0d._0x19e3b5,0x383,_0x403f0d._0x4bf427)+'en']){if(_0x9b30d1['HLcfJ'](_0x9b30d1[_0x2214f5(_0x403f0d._0x1973cd,0x33f,_0x403f0d._0x1856e1,_0x403f0d._0x4b4642)],_0x9b30d1[_0x398042(-0x22e,-0x1c7,-_0x403f0d._0x2bbe50,-0x21f)])){const [_0x1fbb30,_0x251acc,_0x5e5ed3]=_0x1c66ae['split'](':');if(!_0x1fbb30||!_0x251acc||!_0x5e5ed3)throw new _0x33ede0(_0x9b30d1[_0x2214f5(_0x403f0d._0x316151,_0x403f0d._0x5a3646,0x2ab,_0x403f0d._0x3d49a7)]);const _0xb827cf=_0x421967['from'](_0x1fbb30,_0x9b30d1[_0x398042(-0x1c5,-0x20a,-_0x403f0d._0x3de7e0,-0x1c3)]),_0x3a1e21=_0x239ac9[_0x398042(-_0x403f0d._0x48aa05,-_0x403f0d._0x3027dc,-_0x403f0d._0x3446a5,-_0x403f0d._0x2a59bb)](_0x251acc,_0x9b30d1[_0x398042(-0x1e2,-_0x403f0d._0x367b91,-_0x403f0d._0x5c01ed,-_0x403f0d._0x19e39c)]),_0x4ffb91=_0x270517[_0x2214f5(0x287,_0x403f0d._0x471b2a,0x266,0x248)+_0x398042(-_0x403f0d._0x187879,-0x17e,-_0x403f0d._0x3d60ec,-0x1d4)](_0xe70bf5,_0x59c9c0,_0xb827cf);_0x4ffb91[_0x2214f5(0x357,0x32b,_0x403f0d._0x10fb37,_0x403f0d._0x472120)](_0x3a1e21);let _0x1128bc=_0x4ffb91['update'](_0x5e5ed3,_0x9b30d1[_0x398042(-0x1ac,-_0x403f0d._0x367b91,-0x1d7,-_0x403f0d._0x17038e)],_0x9b30d1['wdaok']);return _0x1128bc+=_0x4ffb91['final'](_0x9b30d1[_0x2214f5(_0x403f0d._0x2536eb,_0x403f0d._0x5d84b7,_0x403f0d._0x18798b,0x2f6)]),_0x1128bc;}else _0x358f70[_0x398042(-_0x403f0d._0x55abbd,-_0x403f0d._0x5cdfe9,-_0x403f0d._0x2a53cd,-_0x403f0d._0x185af1)+'en']=encrypt(_0x34bf91['access_tok'+'en'],_0x1389d4);}_0x34bf91[_0x2214f5(0x31d,0x30b,0x2c0,_0x403f0d._0x3905a3)+_0x398042(-0x1c9,-_0x403f0d._0x1dbe7d,-_0x403f0d._0x175102,-0x222)]&&(_0x9b30d1[_0x398042(-0x18c,-0x161,-0x194,-_0x403f0d._0x265125)](_0x9b30d1[_0x2214f5(_0x403f0d._0x1f03e1,0x330,_0x403f0d._0x2cd91a,_0x403f0d._0x329f2c)],_0x9b30d1[_0x398042(-_0x403f0d._0x494993,-_0x403f0d._0x3dc7cf,-0x1a7,-_0x403f0d._0x274363)])?_0x358f70[_0x2214f5(0x31d,0x35e,_0x403f0d._0x488829,0x301)+'ken']=encrypt(_0x34bf91[_0x2214f5(0x31d,_0x403f0d._0x2aa929,0x2f1,0x34e)+_0x2214f5(_0x403f0d._0x297cab,0x280,_0x403f0d._0x14190d,_0x403f0d._0x4625be)],_0x1389d4):_0x40aff8[_0x2214f5(0x338,_0x403f0d._0x58058c,0x35a,_0x403f0d._0x31f394)+'name']=_0x3576d9[_0x398042(-0x1a2,-0x177,-0x1d5,-_0x403f0d._0x211768)+_0x2214f5(_0x403f0d._0xcb24f,_0x403f0d._0x3a5277,_0x403f0d._0x17fdd2,_0x403f0d._0x56fda1)]);_0x34bf91[_0x398042(-_0x403f0d._0x159cb8,-0x1a4,-0x139,-0x1db)]!==undefined&&(_0x358f70[_0x2214f5(_0x403f0d._0x4c47c2,_0x403f0d._0x2ddd89,_0x403f0d._0x4cde9c,0x35a)]=_0x34bf91['expires_at']);await _0x9b30d1[_0x2214f5(_0x403f0d._0xf8a54,_0x403f0d._0x46569c,_0x403f0d._0x6a555e,_0x403f0d._0x42f0e8)](saveTokenStorage,_0x3d6320,_0x5441a5);function _0x398042(_0x2448c7,_0x51d00c,_0x3658db,_0xb2afd8){return _0x5c296(_0x51d00c- -_0x839bdc._0x3e1825,_0xb2afd8,_0x3658db-0x1b3,_0xb2afd8-0xd);}const _0x34c9af={};_0x34c9af['userId']=_0x643f59,_0x34c9af[_0x398042(-0x21b,-_0x403f0d._0x58faa2,-0x1c8,-0x209)+'me']=_0x4a7d2d,_0x2dd751['debug'](_0x9b30d1[_0x398042(-_0x403f0d._0x54be34,-0x1d4,-0x21a,-0x223)],_0x34c9af);}function _0x1519b2(_0x5ab2a7,_0x863766,_0x2f79ff,_0x54281a){return _0xa1c3(_0x2f79ff- -0x347,_0x54281a);}export async function deleteUserGitToken(_0x2f7d00,_0x2452b1,_0x47209d={}){const _0x314aa3={_0x5b2592:0x51a,_0x186d87:0x495,_0x327401:0x497,_0x1f952c:0x203,_0x43ac10:0x242,_0x36df43:0x1ed,_0x41e33b:0x24e,_0x2deda7:0x50f,_0x10218c:0x455,_0x3260fb:0x3f0,_0x241e40:0x40f,_0x250ca5:0x3c9,_0x5cfb3e:0x3ea,_0xbecf27:0x4ac,_0x50593f:0x43d,_0x5cea80:0x45f,_0x485c3a:0x448,_0x5b4c7f:0x1ba,_0x5ebf90:0x1e3,_0x13046a:0x21e,_0x59c667:0x279,_0x242e33:0x28a,_0x19ea54:0x42d,_0xbdae24:0x484,_0x51a3c5:0x3df,_0x349cd2:0x4c9,_0x349faf:0x4a9,_0x19ddb1:0x2b2,_0x43e94d:0x1ea,_0x3dee3b:0x24b,_0x245148:0x179,_0x5e45e0:0x1ad,_0x86299:0x2a2,_0xd5cf36:0x468,_0x55b386:0x4ab,_0x4939b9:0x252,_0xcdb0e4:0x21e,_0x3545c3:0x1c6,_0x5d5280:0x211,_0x7fa332:0x29a,_0x120e4e:0x46e,_0x180df0:0x488,_0x5cc05a:0x1d0,_0x272554:0x211,_0x46edfa:0x26f,_0x46c9f0:0x1eb,_0x41eef5:0x296,_0x24efd2:0x23c,_0x37948e:0x1f3,_0x5a4c1d:0x471,_0x2474eb:0x1fe,_0x315db2:0x25d,_0x22c177:0x42b,_0x2b55e5:0x3dc,_0x49074f:0x458,_0x2cc059:0x244,_0x2fff64:0x41a,_0x2264ca:0x196,_0x42a851:0x18c,_0xf2edc6:0x238,_0x375e32:0x23f,_0x345567:0x1c8,_0x1722a8:0x282,_0x5316f9:0x493,_0x24573c:0x49d},_0x538fa7={_0x2cf719:0xad},_0x4ecb7c={_0x771692:0x192};function _0x56ada5(_0x29d4cb,_0x6c7b4d,_0xb7dce,_0x5b3c1b){return _0x5c296(_0xb7dce- -0x18c,_0x5b3c1b,_0xb7dce-0x19f,_0x5b3c1b-_0x4ecb7c._0x771692);}const _0x105021={'xcFnd':_0x1cd974(0x4d2,_0x314aa3._0x5b2592,_0x314aa3._0x186d87,_0x314aa3._0x327401)+_0x56ada5(_0x314aa3._0x1f952c,_0x314aa3._0x43ac10,_0x314aa3._0x36df43,_0x314aa3._0x41e33b)+_0x1cd974(0x4a5,0x45a,0x4ae,_0x314aa3._0x2deda7),'HTwwa':function(_0x335bb8,_0x45b7a4){return _0x335bb8||_0x45b7a4;},'kosFG':'YxFsA','UXLnN':function(_0x3317ea,_0xa15b46){return _0x3317ea(_0xa15b46);},'rWrWZ':function(_0x53165d,_0x17e39f){return _0x53165d===_0x17e39f;},'dABhK':function(_0x274353,_0x170ed8){return _0x274353===_0x170ed8;},'PTcKF':'oVGdj','mNovZ':function(_0x1d8e00,_0x188899,_0x422c28){return _0x1d8e00(_0x188899,_0x422c28);},'poHVC':_0x1cd974(_0x314aa3._0x10218c,_0x314aa3._0x3260fb,0x401,0x4ba)+_0x1cd974(_0x314aa3._0x241e40,_0x314aa3._0x250ca5,0x420,_0x314aa3._0x5cfb3e)+_0x1cd974(_0x314aa3._0xbecf27,_0x314aa3._0x50593f,_0x314aa3._0x5cea80,_0x314aa3._0x485c3a)},_0x1a1da8=_0x47209d[_0x56ada5(_0x314aa3._0x5b4c7f,_0x314aa3._0x5ebf90,_0x314aa3._0x13046a,0x211)]||_0x1fc104;if(_0x105021[_0x56ada5(0x2a8,0x2c9,0x280,0x23a)](!_0x2f7d00,!_0x2452b1)){if(_0x105021[_0x56ada5(0x2b5,_0x314aa3._0x59c667,0x248,_0x314aa3._0x242e33)]!==_0x105021['kosFG']){const _0x1a6062={};_0x1a6062[_0x1cd974(0x4c9,0x4d4,0x47f,0x4f0)]=_0x31d669[_0x1cd974(_0x314aa3._0x19ea54,_0x314aa3._0xbdae24,0x48c,_0x314aa3._0x51a3c5)],_0x1e8ace[_0x1cd974(_0x314aa3._0x349cd2,_0x314aa3._0x349faf,0x4d4,0x4cc)](_0x105021[_0x56ada5(_0x314aa3._0x19ddb1,_0x314aa3._0x43e94d,_0x314aa3._0x3dee3b,0x2a8)],_0x1a6062);throw _0x4bd860;}else throw new Error(_0x56ada5(0x198,_0x314aa3._0x245148,0x1d4,_0x314aa3._0x5e45e0)+_0x56ada5(0x28e,0x2a3,_0x314aa3._0x86299,0x290)+'\x20name\x20are\x20'+_0x1cd974(0x4d5,_0x314aa3._0xd5cf36,0x50d,_0x314aa3._0x55b386));}const _0x3d4caf=await _0x105021['UXLnN'](loadTokenStorage,_0x47209d);if(!_0x3d4caf[_0x56ada5(_0x314aa3._0x4939b9,0x266,0x211,_0x314aa3._0xcdb0e4)]?.[_0x2f7d00]?.[_0x2452b1])return![];delete _0x3d4caf[_0x56ada5(_0x314aa3._0x3545c3,0x219,_0x314aa3._0x5d5280,0x26a)][_0x2f7d00][_0x2452b1];_0x105021[_0x56ada5(0x270,_0x314aa3._0x7fa332,0x258,0x212)](Object[_0x1cd974(_0x314aa3._0x120e4e,0x427,0x435,_0x314aa3._0x180df0)](_0x3d4caf[_0x56ada5(_0x314aa3._0x5cc05a,0x219,_0x314aa3._0x272554,_0x314aa3._0x46edfa)][_0x2f7d00])[_0x56ada5(_0x314aa3._0x46c9f0,_0x314aa3._0x41eef5,_0x314aa3._0x24efd2,_0x314aa3._0x37948e)],-0x86d*0x1+0x25bc+-0x1d4f)&&(_0x105021[_0x1cd974(0x414,_0x314aa3._0xd5cf36,_0x314aa3._0x5a4c1d,_0x314aa3._0x3260fb)](_0x105021[_0x56ada5(_0x314aa3._0x2474eb,0x1fd,_0x314aa3._0x315db2,0x2b9)],_0x1cd974(0x42f,_0x314aa3._0x22c177,_0x314aa3._0x2b55e5,_0x314aa3._0x49074f))?delete _0x3d4caf['tokens'][_0x2f7d00]:_0x195de0[_0x56ada5(0x1b0,0x19e,0x1e1,_0x314aa3._0x2cc059)+'in']=_0x2c4a5e[_0x1cd974(_0x314aa3._0x2fff64,0x440,0x3cf,0x454)+'in']);await _0x105021['mNovZ'](saveTokenStorage,_0x3d4caf,_0x47209d);const _0x4ba99e={};_0x4ba99e['userId']=_0x2f7d00,_0x4ba99e[_0x56ada5(_0x314aa3._0x2264ca,_0x314aa3._0x42a851,0x1ee,_0x314aa3._0xf2edc6)+'me']=_0x2452b1,_0x1a1da8[_0x56ada5(_0x314aa3._0x375e32,_0x314aa3._0x345567,0x215,_0x314aa3._0x1722a8)](_0x105021[_0x1cd974(_0x314aa3._0x5316f9,0x4da,0x4d1,_0x314aa3._0x24573c)],_0x4ba99e);function _0x1cd974(_0x5e6ac3,_0x46a9ce,_0x531517,_0x4a8219){return _0x5c296(_0x5e6ac3-_0x538fa7._0x2cf719,_0x531517,_0x531517-0x8c,_0x4a8219-0x27);}return!![];}export function isTokenExpiringSoon(_0x3cb328,_0x384d92=0x1*-0x90f+0x231b+-0x19ee){const _0x3f9c2e={_0x12ef18:0x49d,_0x10139b:0x481,_0x8ae90a:0x487,_0x2d3200:0x24c,_0x13d79e:0x21b,_0x686743:0x443,_0x2aa231:0x4be,_0x435f87:0x1f8,_0x6b98cc:0x1b4,_0x58b789:0x1f8,_0xab6531:0x190,_0x47f717:0x45c,_0x4f0582:0x4d6,_0x330f1c:0x4c9,_0x29e4de:0x4b5,_0x486b56:0x22e,_0x22684c:0x211},_0x44f9bd={_0x4b20b1:0x1b3},_0x157f6c={};function _0x2f61c6(_0x23e609,_0x4cf86d,_0x1f7dcd,_0x561c17){return _0x5c296(_0x23e609- -0x1c2,_0x4cf86d,_0x1f7dcd-0x1a,_0x561c17-0x166);}_0x157f6c[_0x189464(0x4fe,_0x3f9c2e._0x12ef18,_0x3f9c2e._0x10139b,_0x3f9c2e._0x8ae90a)]=function(_0x63eb3a,_0x33f251){return _0x63eb3a*_0x33f251;},_0x157f6c[_0x2f61c6(_0x3f9c2e._0x2d3200,0x1fb,0x20e,_0x3f9c2e._0x13d79e)]=function(_0x3680ac,_0x2fc859){return _0x3680ac<=_0x2fc859;};function _0x189464(_0x1ac625,_0x2edde9,_0x4c9a4b,_0x4322dd){return _0x1519b2(_0x1ac625-0x14e,_0x2edde9-_0x44f9bd._0x4b20b1,_0x2edde9-0x607,_0x4c9a4b);}_0x157f6c[_0x189464(_0x3f9c2e._0x686743,0x4ab,_0x3f9c2e._0x2aa231,0x4f5)]=function(_0x1205cf,_0x13f6e5){return _0x1205cf-_0x13f6e5;};const _0x1e7ff6=_0x157f6c;if(!_0x3cb328)return![];const _0x3f8cff=new Date(_0x3cb328)[_0x2f61c6(_0x3f9c2e._0x435f87,0x1a5,_0x3f9c2e._0x6b98cc,_0x3f9c2e._0x58b789)](),_0x29e80e=Date[_0x2f61c6(0x1b4,_0x3f9c2e._0xab6531,0x1be,0x18c)](),_0x3a3f83=_0x1e7ff6[_0x189464(0x495,_0x3f9c2e._0x12ef18,0x4d6,_0x3f9c2e._0x47f717)](_0x384d92*(0x13*0x15b+0x85a*-0x1+0xf*-0x125),0xb33+-0x1999+-0x8e*-0x21);return _0x1e7ff6[_0x189464(_0x3f9c2e._0x4f0582,_0x3f9c2e._0x330f1c,0x46c,_0x3f9c2e._0x29e4de)](_0x1e7ff6[_0x2f61c6(_0x3f9c2e._0x486b56,0x28d,0x1f9,_0x3f9c2e._0x22684c)](_0x3f8cff,_0x29e80e),_0x3a3f83);}export function isTokenExpired(_0x4226d2){const _0x344213={_0x27011b:0x3c1,_0x1ac7a7:0x3ae,_0x127c36:0x33e,_0xba7c62:0x29b,_0x40d154:0x293,_0x5274e8:0x2af,_0x4cb4c6:0x458,_0x4da262:0x487,_0x44c88f:0x432,_0x29548b:0x3bd,_0x7b1030:0x3c8,_0xe984d4:0x3d3,_0x17cfe0:0x392,_0x450478:0x3f0,_0x46a1bc:0x3c3,_0x55c175:0x2cd},_0x4be699={_0xc7022f:0x582},_0x30e012={_0x51a0d3:0xa8};function _0x5adc4d(_0x57d91f,_0x35d200,_0xce4bd6,_0x346bf8){return _0x5c296(_0x346bf8- -0xf9,_0x57d91f,_0xce4bd6-0xbc,_0x346bf8-_0x30e012._0x51a0d3);}function _0x53e9d7(_0x33b477,_0x245482,_0x13dc42,_0x11a2c8){return _0x1519b2(_0x33b477-0x92,_0x245482-0xc9,_0x245482-_0x4be699._0xc7022f,_0x11a2c8);}const _0x442f38={'qakFE':function(_0x1c1ef8,_0x4828d7,_0x3b8c67){return _0x1c1ef8(_0x4828d7,_0x3b8c67);},'cnmyr':function(_0x9c3147,_0x417f79){return _0x9c3147===_0x417f79;},'xQihl':_0x53e9d7(_0x344213._0x27011b,0x3c7,0x397,_0x344213._0x1ac7a7),'TlnXs':function(_0x23846c,_0x351123){return _0x23846c<_0x351123;}};if(!_0x4226d2){if(_0x442f38['cnmyr'](_0x442f38[_0x5adc4d(0x2a2,_0x344213._0x127c36,_0x344213._0xba7c62,0x302)],_0x442f38[_0x5adc4d(_0x344213._0x40d154,0x29c,_0x344213._0x5274e8,0x302)]))return![];else _0x257440['refresh_to'+'ken']=_0x442f38[_0x53e9d7(0x490,_0x344213._0x4cb4c6,_0x344213._0x4da262,_0x344213._0x44c88f)](_0x2f9fb1,_0x165ac4['refresh_to'+_0x53e9d7(0x3fa,_0x344213._0x29548b,0x36e,0x417)],_0x18f0dd);}return _0x442f38[_0x53e9d7(0x40f,_0x344213._0x7b1030,0x3a8,_0x344213._0xe984d4)](new Date(_0x4226d2)[_0x53e9d7(_0x344213._0x17cfe0,_0x344213._0x450478,0x43f,_0x344213._0x46a1bc)](),Date[_0x5adc4d(_0x344213._0x55c175,0x2e3,0x253,0x27d)]());}export async function getUserConnectionStatus(_0x43390a,_0x1e98f8={}){const _0x3c9fb4={_0x550911:0xd,_0x5f0693:0x1,_0x52e336:0x2b3,_0xfc8a9e:0x27c,_0x163400:0x2ce,_0x5ae626:0x22d,_0x1b093d:0xba,_0x421bd6:0xc,_0x292a83:0xa,_0x59e351:0x99,_0x222889:0x73,_0x4b407f:0x39,_0x8cf48f:0xde,_0x387c4d:0x9f,_0x3d1747:0x56,_0x1a0a0c:0x217,_0x3dc0a2:0x26b,_0x38f2aa:0x266,_0x4cbbea:0x266,_0x1bcfce:0x24b,_0x126715:0x1b5,_0x10d978:0x5d,_0x4c4b39:0x5,_0xdda819:0x293,_0x3de335:0x2c8,_0x91c343:0x2fd,_0xd4eb4f:0x16,_0xb2c0e9:0x24,_0x558f99:0x5d,_0xa97e3c:0x267,_0x2158b0:0x200,_0x38eb4f:0x261,_0x169f6b:0x284},_0x58ad6f={_0x188c63:0x10d,_0x1cc867:0x129},_0x13ee58={_0x4bd11e:0x138,_0x587771:0x3dc},_0x1ab9a3={'CaeOc':function(_0x1da094,_0x5e6940){return _0x1da094(_0x5e6940);},'BPTFX':function(_0x414b9f,_0x5d1fff){return _0x414b9f!==_0x5d1fff;},'MdwfZ':'YyPqV','fZFMt':_0x38c793(-_0x3c9fb4._0x550911,-0x62,-_0x3c9fb4._0x5f0693,-0x56)},_0x3123e4=await _0x1ab9a3[_0x396cff(0x2fe,_0x3c9fb4._0x52e336,_0x3c9fb4._0xfc8a9e,_0x3c9fb4._0x163400)](loadTokenStorage,_0x1e98f8),_0x435c44=_0x3123e4[_0x396cff(_0x3c9fb4._0x5ae626,0x22d,0x1c3,0x256)]?.[_0x43390a];if(!_0x435c44)return{};function _0x396cff(_0x508283,_0xd36988,_0x40413a,_0x290289){return _0x1519b2(_0x508283-_0x13ee58._0x4bd11e,_0xd36988-0x47,_0xd36988-_0x13ee58._0x587771,_0x290289);}const _0x34fe68={};function _0x38c793(_0x1f2306,_0x2c8812,_0x563501,_0x11b50b){return _0x1519b2(_0x1f2306-0x1b,_0x2c8812-_0x58ad6f._0x188c63,_0x11b50b-_0x58ad6f._0x1cc867,_0x563501);}for(const [_0x379323,_0x5e7653]of Object[_0x38c793(-0x10,-_0x3c9fb4._0x1b093d,-0x1c,-0x59)](_0x435c44)){if(_0x1ab9a3[_0x38c793(-_0x3c9fb4._0x421bd6,-_0x3c9fb4._0x292a83,-_0x3c9fb4._0x59e351,-_0x3c9fb4._0x222889)](_0x1ab9a3[_0x38c793(0x19,0x24,0x0,-_0x3c9fb4._0x4b407f)],_0x1ab9a3[_0x38c793(-_0x3c9fb4._0x8cf48f,-0x101,-0xdf,-_0x3c9fb4._0x387c4d)])){const _0x17c88c={};_0x17c88c[_0x38c793(-_0x3c9fb4._0x3d1747,-0xed,-0x77,-0x85)]=!![],_0x17c88c[_0x396cff(_0x3c9fb4._0x1a0a0c,_0x3c9fb4._0x3dc0a2,0x23a,_0x3c9fb4._0x38f2aa)]=_0x5e7653['expires_at'],_0x17c88c[_0x396cff(_0x3c9fb4._0x4cbbea,0x1fd,_0x3c9fb4._0x1bcfce,_0x3c9fb4._0x126715)+'in']=_0x5e7653[_0x38c793(-_0x3c9fb4._0x10d978,-0xd2,-0xb6,-0xb6)+'in'],_0x17c88c['azure_user'+_0x396cff(0x269,0x293,0x2bb,0x2ac)]=_0x5e7653[_0x38c793(-0x6f,_0x3c9fb4._0x4c4b39,0xf,-0x1b)+_0x396cff(0x2da,_0x3c9fb4._0xdda819,_0x3c9fb4._0x3de335,_0x3c9fb4._0x91c343)],_0x17c88c['connected_'+'at']=_0x5e7653[_0x38c793(-_0x3c9fb4._0xd4eb4f,-_0x3c9fb4._0xb2c0e9,-0xa6,-_0x3c9fb4._0x558f99)+'at'],_0x34fe68[_0x379323]=_0x17c88c;}else _0x7bba99[_0x396cff(_0x3c9fb4._0xa97e3c,_0x3c9fb4._0x2158b0,0x1b4,0x1ef)+_0x396cff(0x2b1,_0x3c9fb4._0x38eb4f,0x2aa,_0x3c9fb4._0x169f6b)]=_0x5945b4['github_use'+_0x396cff(0x275,0x261,0x257,0x259)];}return _0x34fe68;}
package/dist/lib/users.js CHANGED
@@ -1 +1 @@
1
- (function(_0xde2368,_0x54c1a7){const _0x2edb43={_0x578fbd:0x1b5,_0x1570b8:0x15a,_0x18b42f:0x14d,_0x12e1b5:0x16b,_0x497585:0x12a,_0x51969a:0x168,_0x181232:0x145,_0x5bd7fe:0x104,_0x3a4d39:0x139,_0x30b2cd:0x199,_0x3017b9:0x20b,_0x4dc757:0x209,_0x292da3:0x176,_0x361946:0x183,_0x44739c:0xfe,_0x57d05d:0x10d,_0x52a0c9:0xbb,_0x2de5aa:0x144},_0x2df5c4={_0x44d31d:0x2d5},_0x582a4c={_0x3c3bd3:0x350};function _0x18ec76(_0x502499,_0x35ff6b,_0x37f64f,_0x54b6c1){return _0xb8c5(_0x37f64f- -_0x582a4c._0x3c3bd3,_0x35ff6b);}const _0x5c9775=_0xde2368();function _0x1e0314(_0x223631,_0x184b3a,_0x2ed24c,_0x366498){return _0xb8c5(_0x223631- -_0x2df5c4._0x44d31d,_0x2ed24c);}while(!![]){try{const _0x2ea78f=parseInt(_0x18ec76(-0x1c9,-_0x2edb43._0x578fbd,-0x192,-0x1cc))/(-0xa*0x6a+0x822*-0x1+0xc47)+-parseInt(_0x1e0314(-_0x2edb43._0x1570b8,-_0x2edb43._0x18b42f,-_0x2edb43._0x12e1b5,-_0x2edb43._0x497585))/(-0xeee+0x215*0x8+-0x1b8)+parseInt(_0x18ec76(-0x1a4,-0x17f,-0x18d,-_0x2edb43._0x51969a))/(-0x685+-0x3*0x342+-0x827*-0x2)*(parseInt(_0x18ec76(-0x173,-0x18c,-0x169,-_0x2edb43._0x181232))/(0x14e8+-0x1557+-0x17*-0x5))+parseInt(_0x1e0314(-0x141,-_0x2edb43._0x5bd7fe,-_0x2edb43._0x3a4d39,-0x180))/(-0x1d73+0x17e+0x1bfa)+-parseInt(_0x18ec76(-_0x2edb43._0x30b2cd,-_0x2edb43._0x3017b9,-0x1db,-_0x2edb43._0x4dc757))/(0x1215+-0x1411*-0x1+-0x2620)*(parseInt(_0x1e0314(-_0x2edb43._0x292da3,-0x189,-_0x2edb43._0x361946,-0x178))/(0x2*-0xe82+-0x811+-0xa*-0x3b6))+parseInt(_0x1e0314(-_0x2edb43._0x44739c,-_0x2edb43._0x57d05d,-0xc8,-_0x2edb43._0x52a0c9))/(0x4e1*0x5+0x2a3+-0x120*0x18)+-parseInt(_0x18ec76(-_0x2edb43._0x2de5aa,-0x143,-0x176,-0x17d))/(-0x4e5*-0x7+-0x95*0xe+-0x1a14);if(_0x2ea78f===_0x54c1a7)break;else _0x5c9775['push'](_0x5c9775['shift']());}catch(_0xc602d9){_0x5c9775['push'](_0x5c9775['shift']());}}}(_0x246b,0x4db07+0x2a59f+-0x40305));import{promises as _0x1fc9a1}from'fs';import _0x23ad86 from'path';import _0x1489e4 from'bcrypt';import{fileURLToPath}from'url';import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';import{DEFAULT_ROLE,isValidRole,isValidPermission}from'./roles.js';const __filename=fileURLToPath(import.meta.url),__dirname=_0x23ad86[_0x4c4dae(0x415,0x40e,0x44d,0x3e7)](__filename),USERS_FILE=_0x23ad86[_0x4c4dae(0x3d1,0x3f6,0x434,0x3e8)](DATA_DIR,_0x4c4dae(0x41e,0x433,0x428,0x443)),SALT_ROUNDS=-0xf8d+-0x5f6+0x3*0x72f;function _0x4dd77d(_0x4cdce4,_0x27519f,_0x49f668,_0x439665){return _0xb8c5(_0x439665- -0x3,_0x27519f);}let usersCache=null;export async function loadUsers(){const _0x36c613={_0x51b901:0x473,_0x1bf51d:0x28a,_0xef2b31:0x25d,_0xea43e7:0x289,_0x307d79:0x25c,_0x1a9617:0x32b,_0x59ac09:0x2c0,_0x18257b:0x3e0,_0x4b9d4a:0x44e,_0x1d6d16:0x422,_0x3fb4ed:0x413,_0x53d95e:0x3d6,_0x1a10fd:0x266,_0x643c10:0x295,_0x593ba7:0x2bc,_0xff5610:0x2db,_0x193026:0x2f3,_0xff056:0x2fc,_0x1b1865:0x457,_0x3e4717:0x3d6,_0x57b597:0x3df,_0x35b615:0x241,_0x38c11a:0x2b2,_0x45c8dc:0x2ec,_0x4b8cc7:0x3ea,_0x415148:0x3fb,_0x260d1f:0x46c,_0x511196:0x466,_0xf3dac6:0x2d4,_0x4248d7:0x2de,_0x1ac025:0x449,_0x26fec3:0x3e9,_0x52f6e3:0x412,_0x509a2c:0x3ca,_0x3c27af:0x40d,_0x3c7992:0x424,_0x537501:0x410,_0xec7d7e:0x3da,_0x123637:0x3e7,_0x38dfb4:0x3fd,_0xf1ca43:0x29c,_0x5b0b05:0x2e1,_0x2c1a53:0x428,_0x41707b:0x41f,_0x30ac49:0x459,_0x278260:0x443,_0x485916:0x2ab,_0x64d790:0x2c6,_0xf8d609:0x2d9,_0x31f17a:0x41c,_0x1bed29:0x465,_0x1991da:0x2b7,_0x5eb9d2:0x2f1,_0x2ee0f1:0x326,_0x386f1e:0x23a,_0x522953:0x264,_0x2394c8:0x423,_0x288543:0x2a3,_0x45a5c6:0x28c,_0x53ebe6:0x27a,_0x3cb542:0x27d,_0x10163c:0x292,_0x110076:0x28d,_0x34fdda:0x2af,_0x384915:0x2ae,_0x3b16f4:0x29f,_0x382c6c:0x26f,_0x5cc552:0x281,_0x2e4e68:0x445,_0x433ea8:0x27c,_0x389ca6:0x2d7,_0x320ab6:0x2aa,_0x109223:0x285,_0x568512:0x2e9},_0x5dd2ca={_0x585306:0x60,_0x5b05b4:0xc6},_0x1331cc={_0x102729:0x10b},_0x5a0c35={};_0x5a0c35[_0x557f2f(0x446,_0x36c613._0x51b901,0x40c,0x47a)]='Failed\x20to\x20'+_0x31ad5d(_0x36c613._0x1bf51d,0x2a6,0x2bd,0x2b1),_0x5a0c35['wtlUt']=function(_0x4b198e,_0x3c6d3a){return _0x4b198e===_0x3c6d3a;},_0x5a0c35['XbcDn']=_0x31ad5d(0x222,0x221,_0x36c613._0xef2b31,0x26d),_0x5a0c35['kCuaX']=function(_0x3dc932,_0x5aa702){return _0x3dc932!==_0x5aa702;},_0x5a0c35[_0x31ad5d(_0x36c613._0xea43e7,0x259,_0x36c613._0x307d79,0x299)]=_0x31ad5d(0x30b,_0x36c613._0x1a9617,0x2ee,_0x36c613._0x59ac09);function _0x31ad5d(_0xf1fca,_0x328a24,_0x3c4f0d,_0x4888fb){return _0x4dd77d(_0xf1fca-0xdb,_0x328a24,_0x3c4f0d-0x123,_0x3c4f0d-_0x1331cc._0x102729);}_0x5a0c35[_0x557f2f(_0x36c613._0x18257b,0x3fb,0x3cc,0x3a4)]=_0x557f2f(_0x36c613._0x4b9d4a,0x451,_0x36c613._0x1d6d16,0x448)+_0x557f2f(_0x36c613._0x3fb4ed,_0x36c613._0x53d95e,0x411,0x3ca)+_0x31ad5d(_0x36c613._0x1a10fd,_0x36c613._0x643c10,0x29e,_0x36c613._0x593ba7)+_0x31ad5d(_0x36c613._0xff5610,0x2b3,_0x36c613._0x193026,0x2c4)+_0x31ad5d(_0x36c613._0xff056,0x2ee,0x2e1,0x2a7),_0x5a0c35[_0x557f2f(0x41c,0x3f3,0x3e5,_0x36c613._0x1b1865)]=_0x557f2f(_0x36c613._0x3e4717,0x3c5,0x3df,_0x36c613._0x57b597)+_0x31ad5d(0x246,_0x36c613._0x35b615,0x275,0x2b1)+'le',_0x5a0c35['XLKnT']=_0x31ad5d(_0x36c613._0x38c11a,_0x36c613._0x193026,_0x36c613._0x45c8dc,0x2e4),_0x5a0c35[_0x557f2f(_0x36c613._0x4b8cc7,0x40e,0x3b5,_0x36c613._0x415148)]=_0x557f2f(0x44b,0x411,_0x36c613._0x260d1f,_0x36c613._0x511196),_0x5a0c35['ePSnM']='Failed\x20to\x20'+'load\x20users';const _0xaf3c53=_0x5a0c35;function _0x557f2f(_0x5e2ca2,_0x236b5c,_0x365ed6,_0x1e3fe6){return _0x4c4dae(_0x5e2ca2-_0x5dd2ca._0x585306,_0x5e2ca2-0x1,_0x236b5c,_0x1e3fe6-_0x5dd2ca._0x5b05b4);}try{await _0x1fc9a1[_0x31ad5d(0x30e,_0x36c613._0xf3dac6,_0x36c613._0x4248d7,0x2de)](USERS_FILE);const _0x3654a1=await _0x1fc9a1[_0x557f2f(0x442,_0x36c613._0x1ac025,0x3fb,0x485)](USERS_FILE,_0x557f2f(_0x36c613._0x26fec3,0x3ea,_0x36c613._0x52f6e3,_0x36c613._0x509a2c)),_0x3f1601=JSON['parse'](_0x3654a1);usersCache=_0x3f1601[_0x557f2f(_0x36c613._0x3c27af,0x42b,_0x36c613._0x3c7992,_0x36c613._0x537501)]||[];let _0x2e167b=![];for(const _0x3b793a of usersCache){_0xaf3c53[_0x557f2f(_0x36c613._0xec7d7e,_0x36c613._0x123637,0x3f4,_0x36c613._0x38dfb4)](_0x3b793a['role'],_0xaf3c53[_0x31ad5d(_0x36c613._0xf1ca43,0x2ce,0x2ac,0x2b7)])&&(_0x3b793a[_0x31ad5d(0x2f7,0x31d,_0x36c613._0x5b0b05,0x2b9)]=DEFAULT_ROLE,_0x2e167b=!![]);}if(_0x2e167b){if(_0xaf3c53['kCuaX'](_0xaf3c53['FsVfd'],_0xaf3c53['FsVfd'])){_0x3d97f9['error'](_0xaf3c53[_0x557f2f(0x446,0x451,_0x36c613._0x2c1a53,0x45b)],_0x2fff17);throw _0x21a90a;}else await saveUsers(usersCache),logger[_0x557f2f(_0x36c613._0x41707b,_0x36c613._0x30ac49,_0x36c613._0x278260,0x3d5)](_0xaf3c53['KNfJk']);}const _0x9793c3={};return _0x9793c3[_0x31ad5d(_0x36c613._0x485916,_0x36c613._0x64d790,0x2c7,_0x36c613._0xf8d609)]=usersCache['length'],logger[_0x557f2f(0x415,0x406,0x3da,0x414)](_0xaf3c53[_0x557f2f(_0x36c613._0x31f17a,_0x36c613._0x1bed29,0x3e5,0x3ef)],_0x9793c3),usersCache;}catch(_0x183516){if(_0xaf3c53['XLKnT']===_0xaf3c53[_0x31ad5d(0x318,_0x36c613._0x1991da,_0x36c613._0x5eb9d2,_0x36c613._0x2ee0f1)]){if(_0xaf3c53[_0x31ad5d(0x21d,_0x36c613._0x386f1e,_0x36c613._0x522953,_0x36c613._0xef2b31)](_0x183516['code'],_0xaf3c53[_0x557f2f(_0x36c613._0x4b8cc7,0x3da,_0x36c613._0x2394c8,0x3c7)]))return usersCache=[],logger['info']('Users\x20file'+_0x31ad5d(0x279,_0x36c613._0x288543,_0x36c613._0x45a5c6,0x24a)+_0x31ad5d(_0x36c613._0x53ebe6,_0x36c613._0x3cb542,0x266,_0x36c613._0x10163c)+_0x31ad5d(_0x36c613._0x110076,_0x36c613._0x34fdda,_0x36c613._0x384915,0x293)+_0x31ad5d(0x26a,_0x36c613._0x3b16f4,_0x36c613._0x382c6c,_0x36c613._0x5cc552)),usersCache;logger['error'](_0xaf3c53[_0x557f2f(0x418,0x405,_0x36c613._0x2e4e68,0x401)],_0x183516);throw _0x183516;}else throw new _0x1ec5a6(_0x31ad5d(_0x36c613._0x433ea8,_0x36c613._0x389ca6,0x2b2,_0x36c613._0x320ab6)+_0x31ad5d(_0x36c613._0x109223,0x2c1,0x2ad,_0x36c613._0x568512)+_0x2d0ca2);}}export async function saveUsers(_0x4e2b6d){const _0x342c73={_0x55e078:0x1b3,_0x4d4670:0x1df,_0x46b7ea:0x19a,_0x24b819:0x1af,_0x1f2411:0x6f,_0x3cdb29:0x2c,_0x342501:0x1c,_0x39d52f:0x99,_0x38263a:0x4f,_0x1661c8:0x3b,_0xf14f29:0x1a2,_0xe68d51:0x196,_0x1a910f:0x15b,_0x5b2423:0x1bf,_0x3228e1:0x162,_0x2ab94d:0x188,_0x3e12cb:0xc,_0x4b0fcf:0x2,_0x3b59f4:0x2c,_0x2d5ff5:0x2,_0x2efe94:0x10,_0x20d8a6:0x35,_0x2d2df6:0x13f,_0x136ca1:0x18a},_0x1b872c={_0x44fa44:0x12e},_0x19fcf6={_0x197f6a:0x153};function _0xef5c95(_0x34f0a1,_0x4e51d2,_0x5ec903,_0x2e3a47){return _0x4dd77d(_0x34f0a1-_0x19fcf6._0x197f6a,_0x4e51d2,_0x5ec903-0x50,_0x5ec903- -0x5);}const _0x1cd343={};_0x1cd343['VbZGT']='utf-8',_0x1cd343[_0xef5c95(0x1d0,0x1d3,_0x342c73._0x55e078,_0x342c73._0x4d4670)]='Saved\x20user'+'s\x20to\x20file',_0x1cd343[_0xef5c95(_0x342c73._0x46b7ea,_0x342c73._0x24b819,0x1ab,0x1a5)]=_0xef5c95(0x199,0x204,0x1c4,0x208)+'save\x20users';const _0x13e7a=_0x1cd343;function _0x6e47ab(_0x321c65,_0x1643bc,_0x32595d,_0x2392bd){return _0x4c4dae(_0x321c65-0x166,_0x32595d- -0x43a,_0x2392bd,_0x2392bd-_0x1b872c._0x44fa44);}try{const _0x202adb=_0x23ad86[_0x6e47ab(-0xe,-_0x342c73._0x1f2411,-_0x342c73._0x3cdb29,_0x342c73._0x342501)](USERS_FILE),_0x59f4a6={};_0x59f4a6[_0x6e47ab(-_0x342c73._0x39d52f,-0x46,-_0x342c73._0x38263a,-0x9)]=!![],await _0x1fc9a1[_0x6e47ab(-0x28,-0x24,-_0x342c73._0x1661c8,-0x2d)](_0x202adb,_0x59f4a6);const _0x47780e={};_0x47780e[_0xef5c95(0x19b,_0x342c73._0xf14f29,0x187,0x193)]=_0x4e2b6d,await _0x1fc9a1[_0xef5c95(0x1c5,0x1d3,0x1a8,0x189)](USERS_FILE,JSON[_0xef5c95(0x15e,_0x342c73._0xe68d51,_0x342c73._0x1a910f,0x14b)](_0x47780e,null,0x372+-0x12db*0x1+-0x1*-0xf6b),_0x13e7a[_0xef5c95(_0x342c73._0x5b2423,_0x342c73._0x3228e1,_0x342c73._0x2ab94d,0x157)]),usersCache=_0x4e2b6d;const _0x1ce8f8={};_0x1ce8f8[_0x6e47ab(_0x342c73._0x3e12cb,0x34,_0x342c73._0x4b0fcf,-_0x342c73._0x3b59f4)]=_0x4e2b6d['length'],logger['info'](_0x13e7a[_0x6e47ab(_0x342c73._0x2d5ff5,_0x342c73._0x2efe94,-0x2,-_0x342c73._0x20d8a6)],_0x1ce8f8);}catch(_0x4d6cb0){logger[_0xef5c95(_0x342c73._0x2d2df6,_0x342c73._0x136ca1,0x152,0x108)](_0x13e7a['TiECC'],_0x4d6cb0);throw _0x4d6cb0;}}export async function getUsers(){const _0x2df973={_0x48f5ea:0x8a,_0x1c3931:0x47,_0x2af578:0x2dc,_0x490185:0x27a,_0x2f433b:0x26d,_0x37f14b:0x28c,_0x154932:0x2c0,_0x4f8ad3:0x6d,_0x574d8e:0x27d},_0x25350a={_0x3927e4:0x4cd,_0x301d1f:0x18d},_0x5dbe07={_0x53873c:0x59,_0x355623:0x7c,_0x3b344f:0xd2},_0x370842={'vSDsM':function(_0x304523,_0x48bacc){return _0x304523===_0x48bacc;},'Flfnh':_0x1bc2be(-0x8a,-_0x2df973._0x48f5ea,-_0x2df973._0x1c3931,-0x48),'pDiRb':function(_0xa8136c){return _0xa8136c();}};function _0x4af517(_0x3c913f,_0x129264,_0x5f30dd,_0x5ac841){return _0x4dd77d(_0x3c913f-_0x5dbe07._0x53873c,_0x3c913f,_0x5f30dd-_0x5dbe07._0x355623,_0x129264-_0x5dbe07._0x3b344f);}function _0x1bc2be(_0x4c310a,_0x411275,_0x30a38e,_0x167c20){return _0x4c4dae(_0x4c310a-0x1ef,_0x411275- -_0x25350a._0x3927e4,_0x167c20,_0x167c20-_0x25350a._0x301d1f);}if(!usersCache){if(_0x370842[_0x4af517(0x2e3,0x2aa,0x268,_0x2df973._0x2af578)](_0x4af517(0x286,_0x2df973._0x490185,_0x2df973._0x2f433b,0x277),_0x370842[_0x4af517(0x249,_0x2df973._0x37f14b,0x2a9,_0x2df973._0x154932)]))_0x7e727c[_0x1bc2be(-0xe6,-0xa2,-_0x2df973._0x4f8ad3,-0xae)+'s']=_0x379f0a[_0x4af517(0x2c9,_0x2df973._0x574d8e,0x280,0x2a5)+'s'];else return await _0x370842['pDiRb'](loadUsers);}return usersCache;}export async function findUserByUsername(_0x33ca1d){const _0xe01f16={_0x3dccc5:0x62,_0x3b4a65:0x9c,_0x30e7af:0x2f2,_0x1da00f:0x313,_0x1b75e7:0x2fa,_0x5939fe:0x32d},_0x539edf={_0x5a1fec:0x68,_0x2afcc3:0x44f},_0x9a7923={_0x3725b2:0xe7,_0x4a1a0a:0xf0};function _0x529cbc(_0x59989f,_0xa9c069,_0x5d3671,_0x9f77a4){return _0x4c4dae(_0x59989f-_0x9a7923._0x3725b2,_0xa9c069- -_0x9a7923._0x4a1a0a,_0x9f77a4,_0x9f77a4-0x16e);}const _0x3d7421={'IQhpN':function(_0x7eb26f){return _0x7eb26f();}};function _0x2f8593(_0x40e5ae,_0x4a9562,_0x4e2402,_0x3c4130){return _0x4c4dae(_0x40e5ae-_0x539edf._0x5a1fec,_0x4e2402- -_0x539edf._0x2afcc3,_0x4a9562,_0x3c4130-0xb5);}const _0x51ad72=await _0x3d7421[_0x2f8593(-0x95,-0xa6,-_0xe01f16._0x3dccc5,-_0xe01f16._0x3b4a65)](getUsers);return _0x51ad72[_0x529cbc(_0xe01f16._0x30e7af,_0xe01f16._0x1da00f,_0xe01f16._0x1b75e7,_0xe01f16._0x5939fe)](_0x8c9a3a=>_0x8c9a3a['username']===_0x33ca1d)||null;}export async function findUserById(_0x298bd9){const _0x2acf38={_0x565215:0x548,_0x1da007:0x4e1,_0x4a9871:0x4cc,_0x1bfc3b:0x4ab},_0x3aac56={_0x4f7565:0x45,_0x19d862:0xcc};function _0x22058a(_0x4d394b,_0x518e6f,_0x5c86e7,_0x2bed6a){return _0x4dd77d(_0x4d394b-_0x3aac56._0x4f7565,_0x2bed6a,_0x5c86e7-0x44,_0x518e6f- -_0x3aac56._0x19d862);}const _0x2273ee={'kozAl':function(_0x3efd83){return _0x3efd83();}},_0x4d0bf9=await _0x2273ee[_0x341477(0x53b,_0x2acf38._0x565215,0x549,0x4fd)](getUsers);function _0x341477(_0x526d9c,_0x408cfa,_0x58edbf,_0x3e871e){return _0x4c4dae(_0x526d9c-0x152,_0x526d9c-0xde,_0x408cfa,_0x3e871e-0xe0);}return _0x4d0bf9[_0x341477(_0x2acf38._0x1da007,_0x2acf38._0x4a9871,_0x2acf38._0x1bfc3b,0x4ea)](_0x6419b5=>_0x6419b5['id']===_0x298bd9)||null;}function _0xb8c5(_0x3470da,_0x1ec5a6){_0x3470da=_0x3470da-(0x3f3+-0x217a+0x2*0xf6d);const _0x2d0ca2=_0x246b();let _0x3bcd49=_0x2d0ca2[_0x3470da];if(_0xb8c5['oUUSvD']===undefined){var _0x34812f=function(_0x31bfbb){const _0x1d7521='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x391c04='',_0x1a679a='';for(let _0x748911=-0x14*-0x195+0x2189+0x163*-0x2f,_0x15e5d0,_0x5b29cc,_0x12c6ec=-0x1312+0x645+0x71*0x1d;_0x5b29cc=_0x31bfbb['charAt'](_0x12c6ec++);~_0x5b29cc&&(_0x15e5d0=_0x748911%(0x74a+-0x1405+0xcbf)?_0x15e5d0*(-0xa6f+-0xaca+-0xef*-0x17)+_0x5b29cc:_0x5b29cc,_0x748911++%(-0x15bd+0x1*0x1f8e+-0x9cd))?_0x391c04+=String['fromCharCode'](-0x83*-0x4c+-0x1e*0x21+-0x2207&_0x15e5d0>>(-(-0x15b+-0xb*-0x1be+0x93*-0x1f)*_0x748911&0x1*0x16c3+-0x4*0x243+-0xdb1*0x1)):-0xeca+0x1fe5+-0x111b){_0x5b29cc=_0x1d7521['indexOf'](_0x5b29cc);}for(let _0x4e3931=0x22*0xac+0xceb*0x1+-0x23c3,_0x52a311=_0x391c04['length'];_0x4e3931<_0x52a311;_0x4e3931++){_0x1a679a+='%'+('00'+_0x391c04['charCodeAt'](_0x4e3931)['toString'](-0x2*0xeff+0x2f1+0x1b1d))['slice'](-(0xbc4+0x2*-0xa46+-0x4b*-0x1e));}return decodeURIComponent(_0x1a679a);};_0xb8c5['JznsfH']=_0x34812f,_0xb8c5['XbwETB']={},_0xb8c5['oUUSvD']=!![];}const _0x74df51=_0x2d0ca2[0x3e5*-0x1+-0xb89+0xf6e],_0x1e0376=_0x3470da+_0x74df51,_0xa3b1c1=_0xb8c5['XbwETB'][_0x1e0376];return!_0xa3b1c1?(_0x3bcd49=_0xb8c5['JznsfH'](_0x3bcd49),_0xb8c5['XbwETB'][_0x1e0376]=_0x3bcd49):_0x3bcd49=_0xa3b1c1,_0x3bcd49;}export async function findUserByEmail(_0x202478){const _0x2f6dd9={_0x1f8360:0x2a9,_0x26bb4d:0x29b,_0x2ac53d:0x45a},_0x2d15ae={_0x267ba:0x7f,_0x149a9c:0x184},_0x1af48c={_0x484286:0xd3},_0x3a0ad2={'bGPjj':function(_0x489743){return _0x489743();}},_0x49f36f=await _0x3a0ad2[_0x4dbdf0(_0x2f6dd9._0x1f8360,0x279,0x271,_0x2f6dd9._0x26bb4d)](getUsers);function _0x4dbdf0(_0x4ab190,_0x25cbde,_0x525b03,_0x1c15ea){return _0x4dd77d(_0x4ab190-0x1ac,_0x4ab190,_0x525b03-0x19,_0x1c15ea-_0x1af48c._0x484286);}function _0x289196(_0x27bcf4,_0x2313e2,_0x2afc48,_0x39d267){return _0x4c4dae(_0x27bcf4-0x147,_0x39d267-_0x2d15ae._0x267ba,_0x2313e2,_0x39d267-_0x2d15ae._0x149a9c);}return _0x49f36f[_0x289196(0x47f,0x469,_0x2f6dd9._0x2ac53d,0x482)](_0xd902b4=>_0xd902b4[_0x4dbdf0(0x218,0x24c,0x1e2,0x227)]?.[_0x289196(0x4c7,0x48c,0x450,0x497)+'e']()===_0x202478?.[_0x4dbdf0(0x274,0x296,0x2a8,0x26b)+'e']())||null;}function _0x4c4dae(_0x57e0eb,_0x4a01fa,_0x2b4196,_0x362f47){const _0x4f7490={_0x2a6500:0x27d};return _0xb8c5(_0x4a01fa-_0x4f7490._0x2a6500,_0x2b4196);}function _0x246b(){const _0x5722e5=['zxjYB3i','wwzuz28','D3rSvxq','C3nOx3vZzxjUyq','lcbPBML0AwfSAq','mteYt3jWv0fX','zwXLDgLVBG','sw52ywXPzcbYBW','s05MsMS','C3rYAw5NAwz5','Dg9tDhjPBMC','AgHjyw0','C3vIC3rY','DxnLCIbSAxn0','BM93','BYbWyxnZD29Yza','DxnLCM5HBwu','DxrMltG','veDqBK8','CNmGzNjVBsbMAq','CMvJDxjZAxzL','ruP1sKq','svfOCe4','B3bLCIWGDMLLDW','wuPUtxO','z2vYlcbKzxzLBa','ihvZzxi','mta0mtC4AKzLuLj0','ChvZAa','B3vUzcbMB3iGDG','Bgu6ia','AM9PBG','DxbKyxrLzf9HDa','nZGWnta4zfjiBhvJ','vxnLCM5HBwuGjW','rwPdvvm','CxfQAMu','qMTUswC','thzttfy','ChjLzMvYzw5Jzq','BwTKAxi','yxzHDgfY','ig5VDcbMB3vUza','v0XPvKO','zMLUza','vgzSwwm','zxjWAui','vxnLCIbUB3qGzG','CgfZC3DVCMrFAa','wM9pzvi','B3vUzdOG','vxbKyxrLzcb1CW','vw9dww0','DxnLCNm','vMjAr1q','zgLYBMfTzq','BMfTzq','r2jiDK4','oteZodb2ywPtreO','zwDHy3KGiNvZzq','CIiGCM9SzxmGDa','zgvIDwC','zNf2A0u','weXgC1u','zvbtBK0','Dg9mB3DLCKnHCW','zxHPC3rZ','t1L4DLe','swvOB3a','CMfUzg9T','rMvICLi','Aw5MBW','DLHnANC','y21RENC','wgjJrg4','CM1PC3nPB246ia','EMvKigvTChr5ia','sxLUCKi','DNfywum','B3vUzcbMB3iGza','sw52ywXPzcbWzq','txjlquS','wK5kBLe','DxnLCL8','CgvYBwLZC2LVBG','rgvSzxrLzcb1CW','D3jPDgvgAwXL','q3jLyxrLzcbUzq','lIbwywXPzcbYBW','vgLfq0m','zMLUzeLUzgv4','C2f2zsb1C2vYCW','DxnLCNmUANnVBG','y29TCgfYzq','EurMq28','BgrZoIb1C2vYBG','vxnLCIbHDxrOzq','wNvbtu8','zg1PBIWGBwfUyq','rMXMBMG','mZK2mtu3qLDisxPp','y291BNq','zhHOsgm','DxnLCKLK','AgXztum','nda1otnWs2DKrfi','CMvHzezPBgu','yw1LlcbLBwfPBa','B05wEw4','DwnJzxnZzNvSBa','v01vr1K','C3bSAwnL','A0fuAvy','yKDqAMO','rMfPBgvKihrVia','ru5pru5u','zgDuA24','DxzHt0C','twLNCMf0zwqGBa','lcbUyw1L','CgfZC3DVCMq','ANnIsfa','Dg9ju09tDhjPBG','EejPteO','ywnJzxnZ','mtuXmtq4meLUtwTdAa','BNrPy2f0zwqGCW','CM9Szq','odKWndi0wNnIwwrS','DLneC00','yxnO','vxnLCNmGzMLSzq','z1nJrhi','C3n3B3jKigzVCG','A296qwW','jYbHBhjLywr5ia','BgvZigfYztOGyq','ihnLDa','AKzWA0e','uwDLDLi','s3v3qKq','mte2DM1UBNLt','sw52ywXPzcbWyq','weXlBLq','ywvQtNK','BYbKzwzHDwX0ia','BfPxA0G','BeXOreC','rNnwzMq','DxnLCG','AgfZAa','zw1HAwW','tg9HzgvKihvZzq','AgfZugfZC3DVCG'];_0x246b=function(){return _0x5722e5;};return _0x246b();}export async function hashPassword(_0x1abcda){const _0xbb5115={_0xbfde34:0x19},_0x4309a2={_0x1ae033:0x169,_0x385c06:0x3da,_0x38ebbb:0x6a};function _0x51ddb6(_0x21753d,_0x518edd,_0x15e168,_0x12f877){return _0x4c4dae(_0x21753d-_0x4309a2._0x1ae033,_0x12f877- -_0x4309a2._0x385c06,_0x15e168,_0x12f877-_0x4309a2._0x38ebbb);}return await _0x1489e4[_0x51ddb6(-_0xbb5115._0xbfde34,0x1f,0x25,-0x7)](_0x1abcda,SALT_ROUNDS);}export async function validatePassword(_0x2fd61d,_0x446134){const _0x575e7b={_0x411abe:0x12b,_0x4aba11:0x13b,_0x2feef6:0x31c,_0x423b41:0x2ce,_0x3e1ae4:0x2e2,_0x2fae46:0x2de,_0x1bbdad:0x289,_0x2139b2:0x29e,_0x4a57db:0x187,_0x45ad9a:0x138,_0x183af4:0x329,_0x34abf1:0x304,_0x59816d:0x39d,_0x5acacc:0x344,_0x4030d3:0x353,_0x194c1c:0x118,_0x4b88e1:0x199,_0x515fe9:0x315,_0x4487c3:0x352,_0x53cb65:0x17e,_0x491473:0x121,_0x47a015:0x107,_0x4720c4:0x139,_0xcb4a5c:0x356,_0x4f4c29:0x335,_0x7f12a6:0x2f8,_0x3624bb:0x2d5,_0x390dba:0x2f7,_0x592902:0x302,_0x23e212:0x314,_0x459055:0x341,_0x565e51:0x31c,_0x22f773:0x301,_0x540224:0x2f5,_0x4f6d7e:0x345,_0x5671be:0x347,_0x4a7215:0x2b7,_0x256c48:0x2b8,_0x537603:0x2d2,_0x1f4cb8:0x338,_0x544980:0x2e5,_0x11dade:0x2da,_0x4d5a89:0x332,_0x1e1320:0x2f3,_0x19baef:0x322,_0x53cbe5:0x127,_0x124f17:0xfb,_0x1fe1f5:0x2e0,_0x37e816:0x2a2,_0x3cd6e2:0x2e9,_0x4bf85f:0x378,_0x442f8f:0x340,_0x23f64a:0x2f4,_0x4aa8c4:0x10e,_0x383a00:0xdb,_0x158675:0xe0,_0x5424d3:0xf5,_0x48341a:0x15e,_0xa13413:0x17c,_0x1145b8:0xc8,_0x4380a1:0x111,_0x542895:0x37c},_0x24749f={_0x41082a:0x8f},_0x32d3f6={_0x594209:0xce,_0x6b24f4:0x8c},_0x1d6aa2={'kATiV':function(_0x14bee2,_0x318978){return _0x14bee2(_0x318978);},'vqXYC':_0x8cf1b1(_0x575e7b._0x411abe,_0x575e7b._0x4aba11,0x10b,0xfa)+_0x506f11(0x2fa,_0x575e7b._0x2feef6,_0x575e7b._0x423b41,_0x575e7b._0x3e1ae4)+'alidation','EJuJD':'User\x20has\x20n'+_0x506f11(_0x575e7b._0x2fae46,_0x575e7b._0x1bbdad,_0x575e7b._0x2139b2,0x2d4)+_0x8cf1b1(_0x575e7b._0x4a57db,0x164,_0x575e7b._0x45ad9a,0x154),'WOrEi':function(_0x252a93,_0x7bfa5){return _0x252a93===_0x7bfa5;},'qqjje':_0x506f11(_0x575e7b._0x183af4,0x2fd,0x2c4,_0x575e7b._0x34abf1),'vXMjw':_0x506f11(_0x575e7b._0x59816d,0x34a,_0x575e7b._0x5acacc,_0x575e7b._0x4030d3)+_0x8cf1b1(_0x575e7b._0x194c1c,0x17c,_0x575e7b._0x4b88e1,0x150)+_0x8cf1b1(0x108,0xf9,0x9e,0xe5),'QgevR':_0x506f11(_0x575e7b._0x515fe9,0x2e9,_0x575e7b._0x4487c3,0x325)+_0x8cf1b1(0x10a,_0x575e7b._0x53cb65,_0x575e7b._0x491473,0x149)+_0x8cf1b1(_0x575e7b._0x47a015,0x13b,_0x575e7b._0x4720c4,0x138)+'y'},_0x126d13=await _0x1d6aa2[_0x506f11(_0x575e7b._0xcb4a5c,0x344,0x316,_0x575e7b._0x4f4c29)](findUserByUsername,_0x2fd61d);if(!_0x126d13){const _0x3d9d82={};return _0x3d9d82[_0x506f11(0x2a5,_0x575e7b._0x7f12a6,0x30b,_0x575e7b._0x3624bb)]=_0x2fd61d,logger[_0x506f11(_0x575e7b._0x390dba,0x2e0,0x323,_0x575e7b._0x592902)](_0x1d6aa2[_0x506f11(_0x575e7b._0x23e212,_0x575e7b._0x459055,_0x575e7b._0x565e51,0x313)],_0x3d9d82),null;}if(!_0x126d13[_0x506f11(0x33a,0x2f2,_0x575e7b._0x22f773,_0x575e7b._0x540224)+_0x506f11(_0x575e7b._0x4f6d7e,0x342,0x31f,_0x575e7b._0x5671be)]){const _0x517e51={};return _0x517e51[_0x506f11(0x319,_0x575e7b._0x4a7215,_0x575e7b._0x256c48,_0x575e7b._0x3624bb)]=_0x2fd61d,logger[_0x506f11(_0x575e7b._0x537603,_0x575e7b._0x1f4cb8,0x2f8,_0x575e7b._0x592902)](_0x1d6aa2[_0x506f11(_0x575e7b._0x544980,_0x575e7b._0x2139b2,0x318,_0x575e7b._0x11dade)],_0x517e51),null;}const _0x1dea10=await _0x1489e4[_0x506f11(0x36a,_0x575e7b._0x4d5a89,_0x575e7b._0x1e1320,_0x575e7b._0x19baef)](_0x446134,_0x126d13[_0x8cf1b1(0x12d,0xe2,_0x575e7b._0x53cbe5,_0x575e7b._0x124f17)+'ash']);if(!_0x1dea10){if(_0x1d6aa2['WOrEi'](_0x1d6aa2[_0x506f11(_0x575e7b._0x1fe1f5,0x2f2,_0x575e7b._0x37e816,_0x575e7b._0x3cd6e2)],_0x506f11(0x378,_0x575e7b._0x4bf85f,0x364,_0x575e7b._0x442f8f))){const _0x1a0447={};return _0x1a0447[_0x506f11(_0x575e7b._0x1fe1f5,0x31b,0x34c,0x32c)]=_0x8f1a8c,_0xdd00b8['debug'](_0x506f11(0x336,0x2cb,0x2f9,_0x575e7b._0x23f64a)+'ound\x20for\x20d'+'eletion',_0x1a0447),![];}else{const _0x4e6443={};return _0x4e6443[_0x8cf1b1(_0x575e7b._0x4aa8c4,0x9c,0xea,_0x575e7b._0x383a00)]=_0x2fd61d,logger['debug'](_0x1d6aa2[_0x8cf1b1(0xdb,_0x575e7b._0x158675,_0x575e7b._0x5424d3,0x113)],_0x4e6443),null;}}const _0x3d6fc3={};function _0x8cf1b1(_0x53a80a,_0x393bc1,_0xbace6a,_0x98d6d5){return _0x4dd77d(_0x53a80a-_0x32d3f6._0x594209,_0xbace6a,_0xbace6a-0x12d,_0x98d6d5- -_0x32d3f6._0x6b24f4);}_0x3d6fc3['username']=_0x2fd61d,_0x3d6fc3[_0x8cf1b1(0x108,_0x575e7b._0x48341a,_0x575e7b._0xa13413,0x132)]=_0x126d13['id'];function _0x506f11(_0x378c00,_0x5b6602,_0x5ab81a,_0x3dfb4d){return _0x4dd77d(_0x378c00-0xb0,_0x5b6602,_0x5ab81a-_0x24749f._0x41082a,_0x3dfb4d-0x16e);}return logger[_0x8cf1b1(_0x575e7b._0x1145b8,0x128,_0x575e7b._0x4380a1,0x112)](_0x1d6aa2[_0x506f11(0x384,_0x575e7b._0x542895,_0x575e7b._0x442f8f,0x350)],_0x3d6fc3),_0x126d13;}export async function createUser(_0x5a2363){const _0x157adc={_0xd9136:0x24c,_0x1972a9:0x209,_0xa65743:0x21a,_0x15e233:0x257,_0x5a0e28:0x213,_0x464aa2:0x1e1,_0x54028f:0x1ff,_0x47d848:0x1fd,_0xb85428:0x1fb,_0x149d0b:0x1e7,_0xc1db1b:0x26f,_0x12b496:0x15b,_0x35c0c0:0x192,_0x363a51:0x21e,_0x52cd4c:0x227,_0x47ea5e:0x255,_0x3b5fcd:0x229,_0xd541c3:0x26a,_0x2ceee1:0x1ee,_0x57303f:0x1b2,_0x269392:0x1d5,_0x238606:0x227,_0x965211:0x183,_0x5a4ba8:0x194,_0x14f0db:0x196,_0x4f1f4b:0x1c1,_0x50e6e8:0x19d,_0x42ec73:0x262,_0xbc7d72:0x1eb,_0x19cc49:0x235,_0xa151ab:0x217,_0x247f7b:0x21f,_0x5c28dd:0x264,_0x6bfcdd:0x2ad,_0x2a038a:0x23f,_0x21dab4:0x1f5,_0x44b428:0x268,_0x2c1aaa:0x28e,_0x4d891e:0x2a7,_0x9e6e86:0x266,_0x2a654c:0x221,_0x59e55a:0x20d,_0x2b613d:0x27d,_0x38c2de:0x218,_0x50a714:0x285,_0x5a300c:0x1ef,_0x1e19fd:0x1cc,_0x5a3ea4:0x167,_0x3a9c08:0x1a0,_0x36af24:0x1f8,_0x166913:0x203,_0x17ddf6:0x261,_0x4b58b1:0x29a,_0x1e4c87:0x278,_0xffb58:0x1fa,_0x1486dc:0x1e5,_0x10f099:0x1f2,_0x487044:0x238,_0x2d3c30:0x22b,_0x448d83:0x24b,_0x2f0212:0x1e0,_0x4371bd:0x216,_0x2cf19f:0x27f,_0x108c86:0x1c8,_0xa77562:0x1d8,_0x32d51b:0x192,_0x36001d:0x182,_0xe91ece:0x1ed,_0xa8b8b6:0x1cd,_0x50ae78:0x217,_0x48a7e1:0x256,_0x46a310:0x25b,_0x43a715:0x20b,_0x419bc5:0x2a6,_0x230f9c:0x225,_0x419abf:0x1a5,_0x4072a7:0x214,_0x1736a5:0x148,_0x42c672:0x1ad,_0x5dcb4a:0x237,_0xe59943:0x220,_0x5537e5:0x20f,_0x54241d:0x22c},_0x258fbf={_0x31492f:0x18e,_0x347899:0xfa},_0x35062d={'YfTgo':function(_0x86295c,_0xd51ea8){return _0x86295c(_0xd51ea8);},'VjlgB':function(_0x39856d,_0x4a0c26){return _0x39856d(_0x4a0c26);},'lZWkH':function(_0x67c025,_0x25d43e){return _0x67c025!==_0x25d43e;},'UzNOY':'fiqSx','cmkzw':_0x90c5e1(-_0x157adc._0xd9136,-_0x157adc._0x1972a9,-_0x157adc._0xa65743,-_0x157adc._0x15e233),'gScDr':'Missing\x20re'+'quired\x20fie'+_0x90c5e1(-_0x157adc._0x5a0e28,-0x1ea,-0x1c8,-0x1fb)+_0x90c5e1(-0x207,-_0x157adc._0x464aa2,-_0x157adc._0x54028f,-_0x157adc._0x47d848)+_0x90c5e1(-_0x157adc._0xb85428,-0x239,-0x248,-0x236),'YJnMz':function(_0x50ed8e,_0x3d84c6){return _0x50ed8e(_0x3d84c6);},'fqvkE':function(_0x3d908d,_0x2da7f0){return _0x3d908d!==_0x2da7f0;},'hhIam':'iepgL','OkxLm':'LEvcj','nbGFN':function(_0x54a862,_0x92ef30){return _0x54a862(_0x92ef30);},'pKMZs':function(_0x630e0,_0x10d8eb){return _0x630e0>_0x10d8eb;},'dgTkn':_0x90c5e1(-0x21b,-0x1fd,-0x1fd,-_0x157adc._0x149d0b)+'w\x20user'},_0x421156=await getUsers();if(!_0x5a2363[_0x90c5e1(-0x262,-_0x157adc._0xc1db1b,-0x256,-0x29a)]||!_0x5a2363[_0x119448(_0x157adc._0x12b496,0x1cd,_0x157adc._0x35c0c0,0x19f)]||!_0x5a2363['name']){if(_0x35062d[_0x119448(_0x157adc._0x363a51,0x221,_0x157adc._0x52cd4c,_0x157adc._0x47ea5e)](_0x35062d['UzNOY'],_0x35062d[_0x90c5e1(-_0x157adc._0x3b5fcd,-0x1ed,-0x21e,-_0x157adc._0xd541c3)]))throw new Error(_0x35062d[_0x90c5e1(-_0x157adc._0x2ceee1,-0x21e,-_0x157adc._0x57303f,-0x1ca)]);else for(const _0x1c4143 of _0x197126[_0x90c5e1(-0x21e,-0x1e6,-_0x157adc._0x269392,-_0x157adc._0x238606)+'s']){if(!_0x35062d[_0x119448(_0x157adc._0x965211,_0x157adc._0x5a4ba8,_0x157adc._0x14f0db,0x1d7)](_0x296cce,_0x1c4143))throw new _0x1ae497('Invalid\x20pe'+'rmission:\x20'+_0x1c4143);}}const _0x29418e=_0x421156[_0x119448(0x17a,0x1f7,_0x157adc._0x4f1f4b,0x1c8)](_0x51da91=>_0x51da91[_0x90c5e1(-0x262,-0x267,-0x220,-0x222)]===_0x5a2363[_0x90c5e1(-0x262,-0x253,-0x299,-0x225)]);if(_0x29418e)throw new Error(_0x119448(_0x157adc._0x50e6e8,0x198,0x1b7,0x1e5)+_0x5a2363[_0x90c5e1(-_0x157adc._0x42ec73,-0x266,-0x222,-0x292)]+(_0x90c5e1(-_0x157adc._0xbc7d72,-_0x157adc._0x19cc49,-0x200,-0x1d0)+_0x90c5e1(-0x230,-_0x157adc._0xa151ab,-0x1eb,-0x25d)));const _0x392d13=_0x90c5e1(-_0x157adc._0x247f7b,-0x226,-0x23b,-0x231)+Date[_0x90c5e1(-_0x157adc._0x5c28dd,-0x245,-_0x157adc._0x6bfcdd,-_0x157adc._0x2a038a)]()+'_'+Math[_0x119448(0x20d,0x19d,0x1da,_0x157adc._0x21dab4)]()[_0x90c5e1(-_0x157adc._0x44b428,-_0x157adc._0x2c1aaa,-0x285,-_0x157adc._0x4d891e)](-0xbb*0x1d+-0x14*0x1ea+-0x3b9b*-0x1)[_0x90c5e1(-_0x157adc._0x9e6e86,-0x278,-0x25c,-0x22a)](0x29*-0x52+-0x1*0x19df+0x2703,0x13*-0x4+-0x1*-0x1f4a+0x19*-0x13d),_0x254f8d=_0x5a2363[_0x119448(0x1fe,_0x157adc._0x2a654c,_0x157adc._0x59e55a,0x1d7)]?await _0x35062d[_0x90c5e1(-0x25a,-_0x157adc._0x2b613d,-_0x157adc._0x38c2de,-_0x157adc._0x50a714)](hashPassword,_0x5a2363[_0x90c5e1(-0x1fa,-0x227,-_0x157adc._0x5a300c,-_0x157adc._0x1e19fd)]):null,_0x71d484=_0x5a2363['role']||DEFAULT_ROLE;if(!_0x35062d[_0x119448(0x1b2,_0x157adc._0x5a3ea4,0x1ad,0x19c)](isValidRole,_0x71d484)){if(_0x35062d[_0x119448(_0x157adc._0x3a9c08,_0x157adc._0x36af24,0x1d3,_0x157adc._0x166913)](_0x35062d[_0x119448(0x171,0x1e7,_0x157adc._0x3a9c08,0x1cf)],_0x35062d['OkxLm']))throw new Error(_0x90c5e1(-0x26b,-_0x157adc._0x17ddf6,-0x2a1,-0x2a2)+_0x90c5e1(-0x254,-_0x157adc._0x4b58b1,-0x223,-_0x157adc._0x1e4c87)+_0x71d484+(_0x90c5e1(-_0x157adc._0xa65743,-0x254,-0x257,-_0x157adc._0xffb58)+'les\x20are:\x20a'+'dmin,\x20mana'+'ger,\x20devel'+_0x119448(0x1ed,0x1dd,0x1ac,0x1e9)+'er'));else{if(!_0x35062d['VjlgB'](_0x3a78cd,_0x4306a6))throw new _0x5c759a(_0x119448(0x20a,0x1ef,_0x157adc._0x1486dc,0x1f6)+_0x90c5e1(-_0x157adc._0x52cd4c,-0x260,-0x25b,-_0x157adc._0x10f099)+_0x21c228);}}function _0x90c5e1(_0x3a9bfa,_0x2fd77c,_0x3b8a84,_0x377a31){return _0x4c4dae(_0x3a9bfa-_0x258fbf._0x31492f,_0x3a9bfa- -0x649,_0x3b8a84,_0x377a31-_0x258fbf._0x347899);}const _0x5e2d6d=_0x5a2363[_0x90c5e1(-0x21e,-_0x157adc._0x487044,-_0x157adc._0x2d3c30,-_0x157adc._0x448d83)+'s']||[];for(const _0x1505ac of _0x5e2d6d){if(!_0x35062d['nbGFN'](isValidPermission,_0x1505ac))throw new Error(_0x119448(0x1a4,0x1e8,0x1e5,0x1fc)+_0x119448(_0x157adc._0x2f0212,_0x157adc._0x21dab4,0x1e0,0x1cc)+_0x1505ac);}const _0x44eba7={'id':_0x392d13,'username':_0x5a2363[_0x90c5e1(-0x262,-_0x157adc._0x4371bd,-_0x157adc._0x2cf19f,-0x244)],'email':_0x5a2363[_0x119448(_0x157adc._0x108c86,_0x157adc._0xa77562,_0x157adc._0x32d51b,_0x157adc._0x36001d)],'name':_0x5a2363[_0x119448(0x1ab,_0x157adc._0xe91ece,_0x157adc._0xa8b8b6,0x18f)],'password_hash':_0x254f8d,'created_at':new Date()[_0x119448(0x231,_0x157adc._0x487044,0x20f,_0x157adc._0x50ae78)+'g'](),'role':_0x71d484,'permissions':_0x35062d['pKMZs'](_0x5e2d6d['length'],-0x24b5+-0x425+0x146d*0x2)?_0x5e2d6d:undefined};_0x421156[_0x90c5e1(-_0x157adc._0x48a7e1,-_0x157adc._0x46a310,-0x259,-0x287)](_0x44eba7),await saveUsers(_0x421156);const _0x2bf6c0={};_0x2bf6c0[_0x90c5e1(-_0x157adc._0x43a715,-0x248,-_0x157adc._0x3b5fcd,-0x1e9)]=_0x44eba7['id'],_0x2bf6c0[_0x90c5e1(-0x262,-_0x157adc._0x419bc5,-_0x157adc._0x230f9c,-0x277)]=_0x44eba7[_0x119448(0x1dc,0x1d6,_0x157adc._0x419abf,0x1d1)],_0x2bf6c0[_0x119448(0x23e,_0x157adc._0x1486dc,_0x157adc._0x4072a7,0x1d3)]=_0x44eba7['role'],_0x2bf6c0[_0x119448(0x181,_0x157adc._0x1736a5,0x194,_0x157adc._0x42c672)+'d']=!!_0x254f8d,logger[_0x90c5e1(-0x22b,-_0x157adc._0x5dcb4a,-_0x157adc._0xe59943,-_0x157adc._0x5537e5)](_0x35062d[_0x90c5e1(-0x1fe,-_0x157adc._0x54241d,-0x22c,-0x21b)],_0x2bf6c0);function _0x119448(_0x59e6ad,_0x3f22c2,_0x570c05,_0x126d1d){return _0x4dd77d(_0x59e6ad-0x1e8,_0x126d1d,_0x570c05-0xb8,_0x570c05-0x3e);}const {password_hash:_0x47a032,..._0x141e40}=_0x44eba7;return _0x141e40;}export async function updateUser(_0x2acdc0,_0x3b9320){const _0xb28165={_0x2e4938:0xa3,_0x511b8e:0xce,_0x27fff0:0x11b,_0x15ef28:0x83,_0x27b09d:0xbd,_0x5b9c82:0x1f,_0x215b48:0x5d,_0x5db191:0x1a,_0x1a5ebf:0x54,_0x470dfb:0x7f,_0x515b5f:0xdc,_0x2cfe1e:0x17f,_0x5c3b4a:0xee,_0x271893:0xa0,_0x58d958:0xd9,_0x215fd3:0xc0,_0xfc043:0x7e,_0x19fc85:0x35,_0x44725b:0xc4,_0x5b929f:0x14f,_0x41f235:0xd2,_0x538915:0x12a,_0x229332:0xe7,_0x2a868f:0x148,_0x834b0a:0x113,_0x1cf48e:0xf1,_0x5b9cc8:0x8c,_0x56162d:0xd2,_0x55f886:0x11a,_0x8aadfa:0xea,_0x1212a1:0x102,_0x307fbd:0xe6,_0x15a7b8:0x11a,_0x4031e7:0xc4,_0x56cdec:0x156,_0x39457a:0x112,_0x2a70e9:0x151,_0x530807:0x10b,_0x2c06d1:0x134,_0x371ca8:0x131,_0x580e38:0x15c,_0x1b0d55:0xee,_0x120c48:0xab,_0x450abb:0xe3,_0x3e35c6:0x131,_0x973f6f:0xf8,_0x28cf7d:0x178,_0x133296:0x114,_0x1c7b67:0x124,_0x38c156:0xec,_0x3804ac:0x16d,_0x5d67ad:0xe0,_0x25ad12:0x96,_0x5e63bc:0x11c,_0x408f77:0xff,_0x379165:0xd6,_0x468ddf:0xb8,_0x4e3c3a:0xf3,_0x1c3577:0xc2,_0x517564:0xc3,_0x4a1abd:0xd8,_0x178eff:0xf0,_0x257df5:0x101,_0x138829:0x14f,_0xfd0df5:0x11f,_0x56da03:0x94,_0x315daa:0x9a,_0x262dd1:0x84,_0x265798:0xb1,_0x19db66:0x128,_0x1cc83a:0x95,_0x4b32f6:0x11e,_0x19c0b2:0xa6,_0x391fd8:0x3e,_0x4fb41b:0x56,_0x5eb1af:0xa7,_0xa35e74:0x91,_0x1f8281:0xc6,_0xf6230c:0x81,_0x5aa6bb:0x93,_0x322d6f:0x13e,_0x3dd0a1:0x5c,_0x1c379a:0xdf,_0x50280b:0xf9,_0x1869d8:0xb7,_0x2f9f57:0xed,_0x408a52:0xcf,_0x187345:0xc8,_0x11ec70:0x99,_0x739fcd:0xa7,_0x477b51:0x139,_0x548873:0x129,_0x29eab3:0x11c,_0x4df440:0xd8,_0x5e8fd9:0x6b,_0x3bf639:0xef,_0xb549e2:0xdb,_0x1b4a31:0x146,_0x350c49:0x141,_0x2d3b88:0xb3,_0xaf0196:0xb4,_0x55a825:0xcf,_0x22c8a1:0x4e,_0x3a35a3:0x82,_0x6547a6:0x9b,_0x21f614:0x46,_0xaacc59:0x50,_0x3b4690:0x118,_0x45223f:0x10d,_0x4ab6c1:0xf4,_0x5f3c9b:0xcf,_0xc9f32b:0xb7,_0x1c5ce6:0xa9,_0x310599:0x144,_0x45a43d:0xd1,_0x236757:0x121,_0x4ca967:0x116,_0x55f317:0xd3,_0x3a3a6b:0xb0,_0x4d6589:0x7f,_0x3bb873:0x168,_0x57d0ff:0x12a,_0x18f3f7:0x17b},_0x3aa183={_0x3d83d8:0x87},_0x10e6a4={'ULqhP':_0x107d96(-0x113,-_0xb28165._0x2e4938,-_0xb28165._0x511b8e,-0xf7),'dxhHc':_0x593d1d(0xb5,0xdc,0xbd,_0xb28165._0x27fff0)+_0x593d1d(0x4f,_0xb28165._0x15ef28,_0xb28165._0x27b09d,0x7d)+_0x593d1d(_0xb28165._0x5b9c82,_0xb28165._0x215b48,_0xb28165._0x5db191,_0xb28165._0x1a5ebf)+_0x593d1d(_0xb28165._0x15ef28,0xa5,_0xb28165._0x470dfb,_0xb28165._0x515b5f)+_0x107d96(-0x142,-0x11e,-0x134,-_0xb28165._0x2cfe1e),'WnFTH':function(_0x23801c){return _0x23801c();},'erpiB':function(_0x2b6d08,_0x3e4b45){return _0x2b6d08===_0x3e4b45;},'jsbHP':function(_0x4ab5ee,_0x44b6d9){return _0x4ab5ee===_0x44b6d9;},'IynrB':_0x593d1d(0xdc,0xce,0x112,_0xb28165._0x5c3b4a),'ZNJnQ':function(_0x548512,_0x463868){return _0x548512!==_0x463868;},'ZoOeR':_0x107d96(-_0xb28165._0x271893,-_0xb28165._0x58d958,-_0xb28165._0x58d958,-0xab),'fweaP':'ZcYaz','EjCUS':function(_0x1e0bc7,_0x343978){return _0x1e0bc7(_0x343978);},'BryOI':function(_0x4739c3,_0xf75784){return _0x4739c3!==_0xf75784;},'wHhmy':function(_0x32459d,_0x173cb7){return _0x32459d>_0x173cb7;},'TflYc':function(_0x1bb6de,_0x19bf1e){return _0x1bb6de===_0x19bf1e;},'lLhDG':_0x593d1d(_0xb28165._0x215fd3,_0xb28165._0xfc043,_0xb28165._0x19fc85,_0xb28165._0x44725b),'AKbSX':function(_0x504434,_0x5cde08){return _0x504434!==_0x5cde08;},'xUNnX':_0x107d96(-0xd4,-0xe9,-0x10e,-_0xb28165._0x5b929f)+'er'},_0x2c62cb=await _0x10e6a4['WnFTH'](getUsers),_0x8548b3=_0x2c62cb[_0x107d96(-_0xb28165._0x41f235,-_0xb28165._0x538915,-_0xb28165._0x229332,-0xa7)](_0x5c15fe=>_0x5c15fe['id']===_0x2acdc0);if(_0x10e6a4[_0x107d96(-0xda,-_0xb28165._0x2a868f,-_0xb28165._0x834b0a,-_0xb28165._0x1cf48e)](_0x8548b3,-(-0x248*0x6+-0x1*-0x24cb+-0x171a))){if(_0x10e6a4[_0x593d1d(_0xb28165._0x5b9cc8,_0xb28165._0x56162d,0x114,_0xb28165._0x55f886)]('jRjMo',_0x10e6a4[_0x107d96(-0x132,-0xe0,-0xf4,-_0xb28165._0x8aadfa)])){const _0x3ebbb2={..._0x23d47d[_0x107d96(-_0xb28165._0x1212a1,-_0xb28165._0x307fbd,-_0xb28165._0x15a7b8,-0xd4)+'s']||{},..._0x136eba['preference'+'s']};_0x40b532[_0x593d1d(_0xb28165._0x4031e7,0x80,_0xb28165._0xfc043,0xc4)+'s']=_0x3ebbb2;}else throw new Error(_0x107d96(-_0xb28165._0x56cdec,-0xe7,-_0xb28165._0x39457a,-_0xb28165._0x2a70e9)+'ound:\x20'+_0x2acdc0);}const _0x19203d=_0x2c62cb[_0x8548b3];if(_0x3b9320[_0x107d96(-_0xb28165._0x530807,-_0xb28165._0x2c06d1,-_0xb28165._0x371ca8,-_0xb28165._0x580e38)]&&_0x10e6a4[_0x593d1d(_0xb28165._0x1b0d55,_0xb28165._0x120c48,_0xb28165._0x450abb,0xe5)](_0x3b9320[_0x107d96(-0xea,-0x101,-_0xb28165._0x3e35c6,-0xe7)],_0x19203d[_0x107d96(-_0xb28165._0x973f6f,-_0xb28165._0x28cf7d,-0x131,-0x12b)])){if(_0x10e6a4['ZNJnQ'](_0x10e6a4[_0x107d96(-0x142,-_0xb28165._0x133296,-0x110,-_0xb28165._0x3e35c6)],_0x10e6a4['fweaP'])){const _0x8a7e8d=_0x2c62cb[_0x593d1d(_0xb28165._0x1a5ebf,0x85,0xad,0x97)](_0x324e05=>_0x324e05[_0x593d1d(0x49,0x69,0x7c,0x82)]===_0x3b9320['username']);if(_0x8a7e8d)throw new Error(_0x107d96(-_0xb28165._0x1c7b67,-_0xb28165._0x5c3b4a,-0x11f,-_0xb28165._0x38c156)+_0x3b9320[_0x107d96(-_0xb28165._0x3804ac,-_0xb28165._0x530807,-_0xb28165._0x3e35c6,-0x10c)]+(_0x593d1d(0x118,_0xb28165._0x5d67ad,_0xb28165._0x25ad12,0x9e)+_0x107d96(-0xdd,-_0xb28165._0x5e63bc,-_0xb28165._0x408f77,-_0xb28165._0x379165)));}else _0x22f4aa[_0x593d1d(0xcb,0xd8,_0xb28165._0x468ddf,_0xb28165._0x4e3c3a)]=_0x2284a9,_0xa05172=!![];}if(_0x3b9320[_0x593d1d(_0xb28165._0x1c3577,0xd8,0xc2,_0xb28165._0x517564)]&&!isValidRole(_0x3b9320[_0x593d1d(0x106,_0xb28165._0x4a1abd,0xff,_0xb28165._0x178eff)]))throw new Error(_0x107d96(-_0xb28165._0x257df5,-0x137,-0x13a,-_0xb28165._0x138829)+'le:\x20'+_0x3b9320['role']+(_0x107d96(-0xb9,-_0xb28165._0xfd0df5,-0xe9,-0x125)+_0x107d96(-_0xb28165._0x56da03,-_0xb28165._0x315daa,-0xb9,-0xe5)+_0x593d1d(_0xb28165._0x262dd1,0xbb,_0xb28165._0x265798,0xdf)+_0x107d96(-_0xb28165._0x408f77,-0x13d,-_0xb28165._0x19db66,-0x143)+'oper,\x20view'+'er'));if(_0x3b9320[_0x593d1d(0x65,0xad,_0xb28165._0x1cc83a,0xf5)+'s'])for(const _0x4a7d30 of _0x3b9320['permission'+'s']){if(!_0x10e6a4[_0x107d96(-0x16a,-0x14d,-_0xb28165._0x4b32f6,-_0xb28165._0x5b929f)](isValidPermission,_0x4a7d30))throw new Error('Invalid\x20pe'+_0x593d1d(_0xb28165._0x19c0b2,0xa4,_0xb28165._0x262dd1,0x8d)+_0x4a7d30);}if(_0x3b9320['username'])_0x19203d[_0x593d1d(0x32,0x69,_0xb28165._0x391fd8,0xa8)]=_0x3b9320[_0x107d96(-_0xb28165._0x178eff,-0xef,-0x131,-0x114)];if(_0x3b9320[_0x593d1d(0x1b,_0xb28165._0x4fb41b,0x7b,0x1b)])_0x19203d['email']=_0x3b9320[_0x107d96(-0x12f,-0x11e,-0x144,-0x18b)];if(_0x3b9320[_0x593d1d(_0xb28165._0x5eb1af,_0xb28165._0xa35e74,_0xb28165._0x1f8281,_0xb28165._0x41f235)])_0x19203d['name']=_0x3b9320['name'];if(_0x3b9320[_0x593d1d(0xf3,0xd8,0x109,0xf4)])_0x19203d[_0x107d96(-_0xb28165._0xf6230c,-0xf2,-0xc2,-_0xb28165._0x5aa6bb)]=_0x3b9320[_0x593d1d(0x101,0xd8,0x10b,_0xb28165._0x315daa)];if(_0x10e6a4['BryOI'](_0x3b9320['ssh_userna'+'me'],undefined))_0x19203d[_0x107d96(-0x113,-0x166,-_0xb28165._0x322d6f,-0xff)+'me']=_0x3b9320[_0x593d1d(0x85,_0xb28165._0x3dd0a1,0x92,0x49)+'me'];function _0x107d96(_0x6fbfb6,_0x35678a,_0x30ca0d,_0x13872b){return _0x4dd77d(_0x6fbfb6-_0x3aa183._0x3d83d8,_0x13872b,_0x30ca0d-0x1de,_0x30ca0d- -0x298);}if(_0x10e6a4['ZNJnQ'](_0x3b9320[_0x593d1d(_0xb28165._0x1c379a,0xad,_0xb28165._0x50280b,_0xb28165._0x1869d8)+'s'],undefined)){if(_0x10e6a4['wHhmy'](_0x3b9320[_0x107d96(-0xe0,-0xae,-_0xb28165._0x2f9f57,-_0xb28165._0x408a52)+'s']['length'],0x97e+0x63c+-0xfba))_0x19203d[_0x107d96(-0x102,-0x11f,-_0xb28165._0x2f9f57,-_0xb28165._0x1c379a)+'s']=_0x3b9320[_0x593d1d(0xe0,0xad,_0xb28165._0x187345,_0xb28165._0x11ec70)+'s'];else{if(_0x10e6a4[_0x593d1d(0x98,0x86,0xa3,_0xb28165._0x739fcd)](_0x107d96(-_0xb28165._0x477b51,-_0xb28165._0x548873,-_0xb28165._0x29eab3,-_0xb28165._0x4df440),_0x10e6a4[_0x107d96(-0x16d,-0x13a,-0x148,-0x13d)]))delete _0x19203d[_0x593d1d(_0xb28165._0x5e8fd9,0xad,0xfa,0x7f)+'s'];else{if(_0x3159d7['code']===_0x10e6a4['ULqhP'])return _0x183116=[],_0x828636[_0x107d96(-0xc3,-_0xb28165._0x3bf639,-0xfa,-0x106)](_0x10e6a4[_0x107d96(-_0xb28165._0x973f6f,-0x113,-_0xb28165._0xb549e2,-0x90)]),_0x2e082b;_0x5b66c7[_0x107d96(-_0xb28165._0x1b4a31,-0x138,-_0xb28165._0x350c49,-0x135)](_0x107d96(-_0xb28165._0x2d3b88,-_0xb28165._0xaf0196,-_0xb28165._0x55a825,-0xda)+'load\x20users',_0x14665e);throw _0x5ed186;}}}if(_0x10e6a4['AKbSX'](_0x3b9320[_0x593d1d(_0xb28165._0x22c8a1,_0xb28165._0x3a35a3,_0xb28165._0x6547a6,_0xb28165._0x21f614)],undefined))_0x19203d[_0x593d1d(0x6a,0x82,_0xb28165._0xaacc59,0xa5)]=_0x3b9320[_0x107d96(-0x10f,-0xee,-_0xb28165._0x3b4690,-_0xb28165._0x45223f)];function _0x593d1d(_0xf4d606,_0x30d76f,_0x29ed81,_0x323cef){return _0x4c4dae(_0xf4d606-0x17e,_0x30d76f- -0x37e,_0x323cef,_0x323cef-0x1d1);}_0x3b9320[_0x107d96(-_0xb28165._0x4ab6c1,-0x129,-_0xb28165._0x55f886,-_0xb28165._0x5f3c9b)+'s']&&(_0x19203d[_0x593d1d(0x62,0x80,_0xb28165._0xc9f32b,_0xb28165._0x1c5ce6)+'s']={..._0x19203d['preference'+'s']||{},..._0x3b9320[_0x107d96(-_0xb28165._0x310599,-0x145,-0x11a,-0x103)+'s']});_0x3b9320[_0x593d1d(0x89,_0xb28165._0x45a43d,0xcc,0xf8)]&&(_0x19203d[_0x593d1d(0x51,0x89,0x4b,0x97)+_0x593d1d(0xdf,0xdb,0xe9,_0xb28165._0x27fff0)]=await hashPassword(_0x3b9320['password']));_0x19203d[_0x107d96(-0x15b,-0x141,-_0xb28165._0x236757,-0xf3)]=new Date()[_0x593d1d(_0xb28165._0x4ca967,_0xb28165._0x55f317,_0xb28165._0x3a3a6b,0xb5)+'g'](),await _0x10e6a4[_0x593d1d(0x89,0x7c,_0xb28165._0x4d6589,0x67)](saveUsers,_0x2c62cb),logger[_0x107d96(-_0xb28165._0x5c3b4a,-_0xb28165._0x50280b,-0xfa,-_0xb28165._0x58d958)](_0x10e6a4['xUNnX'],{'userId':_0x19203d['id'],'username':_0x19203d[_0x107d96(-_0xb28165._0x3bb873,-_0xb28165._0x57d0ff,-0x131,-_0xb28165._0x18f3f7)],'updatedFields':Object['keys'](_0x3b9320)['join'](',\x20')});const {password_hash:_0x19004a,..._0x33cd4e}=_0x19203d;return _0x33cd4e;}export async function deleteUser(_0x5a35c9){const _0x412e99={_0x2648c2:0x433,_0x3602c5:0x47e,_0x158f58:0x477,_0x160ead:0x435,_0xa2ac93:0x40a,_0x1597c9:0x44e,_0x3ab8e2:0x481,_0x114684:0x43a,_0x22fff7:0x3ec,_0x3403d:0x1c,_0x9b46ed:0x20,_0x3149f3:0x1c,_0x45baf1:0x1f,_0x5a1d16:0x30,_0x158f7f:0x13,_0x10d45f:0x7,_0x2d08b8:0x1a,_0x5620f4:0x29,_0x35ae79:0x48,_0x36fe6c:0x3,_0x4d50df:0x2a,_0x191ce4:0x1,_0x3c012b:0x4d,_0x316864:0x44,_0x4613e2:0x4b,_0x94aa0e:0x414,_0x2649c2:0x3cc},_0x2d0798={_0xbf030f:0xfa,_0x27f6cc:0x6b,_0x3c0040:0x195},_0x1c21d9={_0x4e18ab:0xa8},_0x4c94ad={'UoCYm':function(_0x5162de){return _0x5162de();},'WLiVJ':function(_0x54e2b0,_0x35ef2f){return _0x54e2b0===_0x35ef2f;},'aejNy':_0x2585ab(_0x412e99._0x2648c2,0x469,_0x412e99._0x3602c5,_0x412e99._0x158f58)+_0x2585ab(0x453,0x415,0x488,_0x412e99._0x160ead)+_0x2585ab(_0x412e99._0xa2ac93,_0x412e99._0x1597c9,0x3c3,0x3f6),'OYxvQ':function(_0x3a5a9c,_0x2f98e4){return _0x3a5a9c(_0x2f98e4);},'eMuYk':_0x2585ab(0x459,0x4a5,_0x412e99._0x3ab8e2,0x43e)+'er'};function _0x2585ab(_0x19066d,_0x443d45,_0x573c9c,_0x56835f){return _0x4c4dae(_0x19066d-_0x1c21d9._0x4e18ab,_0x19066d-0x2d,_0x443d45,_0x56835f-0x1b9);}const _0xc207b4=await _0x4c94ad[_0x2585ab(0x438,0x434,_0x412e99._0x114684,_0x412e99._0x22fff7)](getUsers),_0x3bc90a=_0xc207b4[_0x4ec9f5(-_0x412e99._0x3403d,0x32,-_0x412e99._0x9b46ed,_0x412e99._0x3149f3)](_0x71fef1=>_0x71fef1['id']===_0x5a35c9);if(_0x4c94ad[_0x4ec9f5(-_0x412e99._0x45baf1,-0x3e,-_0x412e99._0x5a1d16,-_0x412e99._0x158f7f)](_0x3bc90a,-(0x1f02+-0x17da+-0x727))){const _0xca3a16={};return _0xca3a16[_0x4ec9f5(_0x412e99._0x10d45f,0x5f,-_0x412e99._0x2d08b8,_0x412e99._0x5620f4)]=_0x5a35c9,logger[_0x4ec9f5(_0x412e99._0x35ae79,-_0x412e99._0x36fe6c,-_0x412e99._0x4d50df,-_0x412e99._0x191ce4)](_0x4c94ad[_0x4ec9f5(0x83,0x4d,_0x412e99._0x3c012b,0x52)],_0xca3a16),![];}function _0x4ec9f5(_0x57e751,_0x39fb74,_0x565009,_0x1f9d3c){return _0x4dd77d(_0x57e751-_0x2d0798._0xbf030f,_0x39fb74,_0x565009-_0x2d0798._0x27f6cc,_0x1f9d3c- -_0x2d0798._0x3c0040);}const _0x34d5e6=_0xc207b4[_0x3bc90a];_0xc207b4[_0x4ec9f5(-0x14,0x70,0x4e,0x31)](_0x3bc90a,0x2be*0x8+-0x15e3*0x1+0xc*-0x1),await _0x4c94ad[_0x4ec9f5(-_0x412e99._0x316864,_0x412e99._0x4613e2,-0x33,0x5)](saveUsers,_0xc207b4);const _0x117e0c={};return _0x117e0c['userId']=_0x34d5e6['id'],_0x117e0c[_0x2585ab(_0x412e99._0x94aa0e,0x444,0x40a,_0x412e99._0x2649c2)]=_0x34d5e6[_0x2585ab(0x414,0x3e9,0x403,0x40e)],logger['info'](_0x4c94ad['eMuYk'],_0x117e0c),!![];}export async function setUserPassword(_0x1010e8,_0x227b30){const _0x349c59={_0x3cdd90:0x560,_0x2303d8:0x53c,_0x34798c:0x57a,_0x8baa8e:0x580,_0x51a888:0x545,_0x19f1a1:0x585,_0x55be20:0x540,_0x4aaa27:0x537,_0x4ff3bc:0x577,_0x4566fc:0x59d,_0x571693:0x50f,_0x43c743:0x591,_0x20a9e3:0x525,_0x2a35c4:0x582,_0x26d3a4:0x58b,_0x8d16f5:0x54b,_0x2d17b7:0x570,_0x4a43e6:0x57d,_0xcda979:0x58e,_0x3529c8:0x593,_0x492654:0x5db,_0x49b535:0x54d,_0x2c40a8:0x565,_0x6cfed0:0x513,_0x5efd1f:0x545,_0x971f21:0x559,_0x9e821d:0x54c,_0x3169be:0x55b},_0x5bd736={_0x13ec92:0x150},_0x19d2cb={_0x1c22f3:0x4b,_0x2fae35:0x12e};function _0x5ec169(_0x3024e2,_0x1c370a,_0x282640,_0x2509aa){return _0x4c4dae(_0x3024e2-_0x19d2cb._0x1c22f3,_0x282640-_0x19d2cb._0x2fae35,_0x2509aa,_0x2509aa-0x1f4);}const _0x183824={'GbHvN':function(_0x3b9a15){return _0x3b9a15();},'yDfCo':function(_0x2c833d,_0x4036f4){return _0x2c833d===_0x4036f4;},'moEDZ':function(_0x1c5f60,_0x348604){return _0x1c5f60(_0x348604);},'FebrR':function(_0x39db93,_0x55bddb){return _0x39db93(_0x55bddb);},'hXkZm':'Set\x20passwo'+'rd\x20for\x20use'+'r'},_0x57696e=await _0x183824[_0x5876be(0x59e,_0x349c59._0x3cdd90,0x588,0x54a)](getUsers),_0xfdcc51=_0x57696e[_0x5876be(_0x349c59._0x2303d8,0x581,_0x349c59._0x34798c,_0x349c59._0x8baa8e)](_0x57df91=>_0x57df91['id']===_0x1010e8);if(_0x183824[_0x5876be(_0x349c59._0x51a888,_0x349c59._0x19f1a1,_0x349c59._0x55be20,0x5d1)](_0xfdcc51,-(-0x1*-0x107b+0x687+-0x1701)))throw new Error('User\x20not\x20f'+_0x5ec169(0x506,0x4fb,_0x349c59._0x4aaa27,_0x349c59._0x4ff3bc)+_0x1010e8);const _0x4097db=_0x57696e[_0xfdcc51];_0x4097db[_0x5876be(_0x349c59._0x4566fc,0x557,_0x349c59._0x571693,_0x349c59._0x43c743)+'ash']=await _0x183824['moEDZ'](hashPassword,_0x227b30),_0x4097db[_0x5ec169(0x56b,0x4e0,_0x349c59._0x20a9e3,0x531)]=new Date()[_0x5876be(0x56a,0x5a1,_0x349c59._0x2a35c4,0x589)+'g'](),await _0x183824[_0x5ec169(0x50f,_0x349c59._0x26d3a4,_0x349c59._0x8d16f5,_0x349c59._0x2d17b7)](saveUsers,_0x57696e);const _0x451e60={};function _0x5876be(_0x24f4e9,_0x154d2f,_0x3e55f7,_0x55980f){return _0x4c4dae(_0x24f4e9-0x44,_0x154d2f-_0x5bd736._0x13ec92,_0x24f4e9,_0x55980f-0xa9);}_0x451e60[_0x5876be(_0x349c59._0x4a43e6,_0x349c59._0xcda979,_0x349c59._0x3529c8,_0x349c59._0x492654)]=_0x4097db['id'],_0x451e60[_0x5876be(_0x349c59._0x49b535,0x537,0x57a,_0x349c59._0x2c40a8)]=_0x4097db[_0x5876be(_0x349c59._0x6cfed0,0x537,_0x349c59._0x5efd1f,0x509)],logger[_0x5ec169(0x53e,_0x349c59._0x971f21,_0x349c59._0x9e821d,_0x349c59._0x3169be)](_0x183824['hXkZm'],_0x451e60);const {password_hash:_0x19d641,..._0x43dfc6}=_0x4097db;return _0x43dfc6;}
1
+ (function(_0x29b082,_0x470a7c){const _0x3e04d3={_0x2c48ba:0x3f0,_0x2e835e:0x42c,_0x6b2e26:0x3c7,_0x259cb4:0x439,_0x32b651:0x38e,_0x1af2d5:0x3bc,_0x3c5378:0x373,_0x34652b:0x38b,_0x1272ce:0x45d,_0x1eaa5b:0x4a6,_0x5075f3:0x410,_0x24e99f:0x3e4,_0x181ddb:0x416,_0x47dc43:0x405,_0x3d1246:0x43d,_0x1cedab:0x462,_0x1f9fb5:0x47b},_0x5e6f2b={_0x5a1611:0x18c},_0x550aad={_0x15c8b5:0x26c};function _0x5da9dc(_0x1e0b1e,_0x3083f9,_0x4ebb32,_0x554bb3){return _0x1229(_0x1e0b1e-_0x550aad._0x15c8b5,_0x4ebb32);}function _0x56be87(_0x5780bf,_0x3710c3,_0x280fec,_0x5664ff){return _0x1229(_0x3710c3-_0x5e6f2b._0x5a1611,_0x5780bf);}const _0xe0212e=_0x29b082();while(!![]){try{const _0x5d05aa=-parseInt(_0x5da9dc(_0x3e04d3._0x2c48ba,_0x3e04d3._0x2e835e,0x3d1,_0x3e04d3._0x6b2e26))/(0x4c4+-0x7e2*-0x1+-0xca5)*(parseInt(_0x5da9dc(0x45f,0x431,_0x3e04d3._0x259cb4,0x4a2))/(0x2647+-0x1*-0x1d02+-0x1*0x4347))+-parseInt(_0x56be87(0x3a1,_0x3e04d3._0x32b651,0x351,_0x3e04d3._0x1af2d5))/(0x1574+-0xb*-0x157+-0x2*0x1217)+-parseInt(_0x56be87(0x352,_0x3e04d3._0x3c5378,0x33c,_0x3e04d3._0x34652b))/(-0x19dc*-0x1+0x1e47+-0x381f)*(parseInt(_0x5da9dc(0x408,0x442,0x3c7,0x415))/(0x176b+-0x21fe+0x4*0x2a6))+-parseInt(_0x5da9dc(_0x3e04d3._0x1272ce,_0x3e04d3._0x1eaa5b,0x439,_0x3e04d3._0x5075f3))/(-0x201d+0x1a6b*-0x1+-0x1*-0x3a8e)+parseInt(_0x5da9dc(_0x3e04d3._0x24e99f,_0x3e04d3._0x181ddb,0x3ad,_0x3e04d3._0x47dc43))/(-0x31f*0x8+-0x14d8+0x2dd7)+-parseInt(_0x5da9dc(_0x3e04d3._0x3d1246,0x404,0x41b,0x408))/(-0x6*-0x4e1+0x1*0x65b+-0x1*0x2399)+parseInt(_0x5da9dc(_0x3e04d3._0x1cedab,_0x3e04d3._0x1f9fb5,0x428,0x456))/(0x26cc+-0x47*0x84+0x1*-0x227);if(_0x5d05aa===_0x470a7c)break;else _0xe0212e['push'](_0xe0212e['shift']());}catch(_0x38f583){_0xe0212e['push'](_0xe0212e['shift']());}}}(_0x2746,-0xdbb60+-0xa3156+0x22c285));import{promises as _0x244123}from'fs';import _0x397d51 from'path';import _0x499898 from'bcrypt';import{fileURLToPath}from'url';import{logger}from'./logger.js';function _0x2746(){const _0x2897e7=['r3zRsKe','Dg9tDhjPBMC','yxnO','twLZC2LUzYbYzq','BgvUz3rO','AgfZAa','BeTxEfm','B21IquS','DxnLCNm','Dg9ju09tDhjPBG','BYbWyxnZD29Yza','BMfTzq','zxHPC3rZ','Bgu6ia','B3bLCIWGDMLLDW','Ew9Ztve','yuLPCwq','u1jPrKq','CM9Szq','mJi0mJKYnfrWrMLQBW','ihnLDa','CwfRz1u','DxbKyxrLzf9HDa','q3jLyxrLzcbUzq','q2fXqNi','DufXzwq','weDsy1C','BgrZoIb1C2vYBG','zgLYBMfTzq','nti4mZq5oe5YugjkAW','CMfUzg9T','mNf1tw5jzq','BgvZigfYztOGyq','vLzevee','mZm0ntqZntbmturgB2S','sMn2BMS','yLbhqK8','CNmGzNjVBsbMAq','D0HusMq','vxnLCM5HBwuGjW','B3vUzcbMB3iGza','rvvrruS','wxvpwKW','DxnLCM5HBwu','ChvZAa','C3bSAwnL','mJK1mJGYmKLMD0Llva','teDnAgO','Aw5MBW','reHtyxG','ywnJzxnZ','lIbwywXPzcbYBW','sevQrge','DxnLCNmUANnVBG','zw1HAwW','zMLUza','ru5pru5u','DNnPDKm','rvnQvKS','EKzrqMy','uwntswq','zwXLDgLVBG','nJyYmJuWnfnhr0jpqW','y29Kzq','CxvPCMvKigzPzq','vxfZy1q','CgfZC3DVCMrFAa','z2LbtwW','y29TCgfYzq','BNrPy2f0zwqGCW','t2Xsy0e','CMvJDxjZAxzL','s1Lnu3q','zgvIDwC','ntK2mJuXte1OuM1q','Dg9mB3DLCKnHCW','lcbPBML0AwfSAq','vxnLCNmGzMLSzq','EKzUBwy','zxjYB3i','B29Kqxi','wuXQwfG','Ag5JBfq','rLbhy3G','u0TlwwG','twLNCMf0zwqGBa','ChjLzMvYzw5Jzq','CgvYBwLZC2LVBG','C3rYAw5NAwz5','C3n3B3jKigzVCG','Bg9Hzcb1C2vYCW','ywLjEve','AKjZAfO','CgfYC2u','lcbUyw1L','yxzHDgfY','B1PVBu4','DxnLCG','nwnKq0jczW','sw52ywXPzcbYBW','r3jUA1O','z3btyNa','AM9PBG','y291BNq','BYbKzwzHDwX0ia','BM93','sw52ywXPzcbWyq','C3vIC3rY','CMqGzM9YihvZzq','B2LyAei','vxnLCIbUB3qGzG','sKzbsKe','r0jTvhy','vxnLCIbHDxrOzq','uxb5yLG','tg94zLy','rMfPBgvKihrVia','tg9HzgvKihvZzq','rLLSy1m','q1rmENq','CM1PC3nPB246ia','qMrsyLu','C3nOx3vZzxjUyq','DxnLCKLK','r3LlyvG','CgfZC3DVCMq','ihvZzxi','ANLjsei','DwnJzxnZzNvSBa','ywXPzgf0Aw9U','sw52ywXPzcbWzq','B3vUzdOG','zMLUzeLUzgv4','z2vYlcbKzxzLBa','rKzMC24','DxnLCIbSAxn0','vwnvAgi','vffNAgO','y0zyyLC','AhPStKC','A2v5CW','BwTKAxi','C2LuufG','vxbKyxrLzcb1CW','jYbHBhjLywr5ia','q3n5t1C','CMvHzezPBgu','DxrMltG','B3vUzcbMB3iGDG','terKufO','rLrNqvC','nZq1mdmWnfHguuTlwa','EMvKigvTChr5ia','u3DXBLu'];_0x2746=function(){return _0x2897e7;};return _0x2746();}import{DATA_DIR}from'./data-dir.js';function _0x4853c0(_0x4c32c7,_0x2d6049,_0x3a80c9,_0x1238c0){const _0x42887b={_0x27a0ec:0x1e1};return _0x1229(_0x1238c0-_0x42887b._0x27a0ec,_0x2d6049);}import{DEFAULT_ROLE,isValidRole,isValidPermission}from'./roles.js';const __filename=fileURLToPath(import.meta.url),__dirname=_0x397d51[_0x2c50d1(-0x1bf,-0x186,-0x1b7,-0x18f)](__filename),USERS_FILE=_0x397d51['join'](DATA_DIR,_0x4853c0(0x39a,0x324,0x375,0x350)),SALT_ROUNDS=0x21e5*-0x1+-0x2a5+-0x1*-0x2494;let usersCache=null;export async function loadUsers(){const _0x27ce98={_0x1dfb85:0x112,_0x128652:0x14a,_0x296de6:0x148,_0x3bea29:0x172,_0x8367bc:0x10b,_0x5ea3c6:0x162,_0x38895d:0x166,_0x3a09b9:0x5e7,_0x3d9957:0x58f,_0x185cec:0x51f,_0x153f80:0x178,_0x5e73a3:0x164,_0x2279f4:0x18d,_0x4f0b25:0x13a,_0x234b2f:0x184,_0x2fb2a0:0x5c8,_0x43564e:0x5de,_0xe52b81:0x5b2,_0x4361b6:0x144,_0x478d50:0x130,_0x510ad2:0x163,_0x1a1233:0x191,_0x132b86:0xca,_0x17a7a2:0xfb,_0xd2305:0x14e,_0x4e1910:0x11f,_0x482a5c:0x12a,_0x41c322:0x58f,_0x550939:0x58b,_0x5518a6:0x196,_0x454df5:0x15e,_0xae0ef9:0x16d,_0x42a83d:0x180,_0x4ef804:0x5b4,_0x54cb13:0x5d6,_0x30e3ed:0x5dd,_0x5a9928:0xf3,_0x5e5f4e:0x132,_0x409b5c:0x17d,_0x52f393:0x112,_0x526f6a:0x10e,_0x358748:0x13a,_0x5eaa36:0x176,_0xfa0c49:0x136,_0x1f5bf7:0x15f,_0x1a89a5:0x156,_0x3f6a90:0x127,_0x2b7f46:0xe0,_0x380005:0x5a5,_0x1b236e:0x5c0,_0x5e6641:0x58e,_0x3ff40a:0x14d,_0x587a17:0x172,_0x196199:0x5ad,_0x3f4d1c:0x56f,_0x2fead1:0x559,_0x39d154:0x5b9,_0x19bdf8:0x5d9,_0x526447:0xf0,_0x218dfe:0x131,_0x2d107e:0xf0,_0x1ebfc0:0x5e1,_0x30b41e:0x60b,_0x265c94:0x5c2,_0x4b245d:0x565,_0x1a2668:0x102,_0x5b0e92:0x12c,_0x90aa8e:0x152,_0x3380e9:0x113,_0x1276da:0x5ba,_0x1d45bc:0x58e,_0x43372a:0x585,_0x262a5f:0x199,_0x12bcd3:0x140,_0x1d6685:0x198,_0x3840ca:0xea,_0xc0799e:0x522,_0x1f0fef:0x59c,_0x1995c8:0x54c,_0x3f27b5:0x52a,_0x465066:0x558,_0x56a541:0xf1,_0x44e7b8:0x12a,_0x494c84:0x524,_0x1a579d:0x5c7,_0x1d25ad:0x5a2},_0x1a5443={_0x5708a0:0xaf};function _0x42b0b9(_0x57f851,_0x5d3ce5,_0x265d01,_0x2008b7){return _0x2c50d1(_0x57f851-0x791,_0x5d3ce5-0x120,_0x265d01-0x102,_0x265d01);}function _0x1d5ca2(_0x4757e0,_0x3e3cca,_0x388cf0,_0x1b5faf){return _0x2c50d1(_0x388cf0-0xbc,_0x3e3cca-_0x1a5443._0x5708a0,_0x388cf0-0x16f,_0x4757e0);}const _0x20969b={};_0x20969b[_0x1d5ca2(-_0x27ce98._0x1dfb85,-0xfe,-_0x27ce98._0x128652,-_0x27ce98._0x296de6)]='User\x20not\x20f'+_0x42b0b9(0x5b0,0x5a3,0x58b,0x5ce)+_0x1d5ca2(-_0x27ce98._0x3bea29,-_0x27ce98._0x8367bc,-0x138,-0x169),_0x20969b[_0x1d5ca2(-0x186,-_0x27ce98._0x5ea3c6,-_0x27ce98._0x38895d,-0x131)]=function(_0x4fc8ce,_0x4fadd8){return _0x4fc8ce===_0x4fadd8;},_0x20969b[_0x42b0b9(0x5a4,_0x27ce98._0x3a09b9,0x572,_0x27ce98._0x3d9957)]='yTjmS',_0x20969b[_0x42b0b9(0x56c,_0x27ce98._0x185cec,0x580,0x58d)]=_0x1d5ca2(-_0x27ce98._0x153f80,-0x13b,-_0x27ce98._0x5e73a3,-_0x27ce98._0x2279f4)+'egacy\x20\x22use'+'r\x22\x20roles\x20t'+_0x1d5ca2(-_0x27ce98._0x4f0b25,-0x13e,-0x151,-_0x27ce98._0x234b2f)+_0x42b0b9(_0x27ce98._0x2fb2a0,_0x27ce98._0x43564e,0x59e,_0x27ce98._0xe52b81),_0x20969b[_0x1d5ca2(-0x173,-_0x27ce98._0x4361b6,-_0x27ce98._0x478d50,-_0x27ce98._0x510ad2)]=_0x1d5ca2(-0x10e,-_0x27ce98._0x1a1233,-_0x27ce98._0x4361b6,-0x11b)+_0x1d5ca2(-0x108,-_0x27ce98._0x132b86,-0xfa,-_0x27ce98._0x17a7a2)+'le',_0x20969b[_0x1d5ca2(-_0x27ce98._0xd2305,-0x10a,-_0x27ce98._0x4e1910,-_0x27ce98._0x482a5c)]='ENOENT',_0x20969b['SwqnU']=_0x42b0b9(0x569,_0x27ce98._0x41c322,_0x27ce98._0x550939,0x569)+'\x20not\x20found'+_0x1d5ca2(-_0x27ce98._0x5518a6,-_0x27ce98._0x454df5,-_0x27ce98._0xae0ef9,-_0x27ce98._0x42a83d)+_0x42b0b9(_0x27ce98._0x4ef804,_0x27ce98._0x54cb13,0x5d4,_0x27ce98._0x30e3ed)+_0x1d5ca2(-_0x27ce98._0x5a9928,-0x167,-_0x27ce98._0x5e5f4e,-_0x27ce98._0x409b5c),_0x20969b[_0x1d5ca2(-0xf0,-_0x27ce98._0x52f393,-_0x27ce98._0x526f6a,-0x10b)]=_0x1d5ca2(-_0x27ce98._0x358748,-0x100,-0x145,-_0x27ce98._0x5eaa36)+_0x1d5ca2(-_0x27ce98._0xfa0c49,-0x119,-_0x27ce98._0x1f5bf7,-0x168);const _0x22cbdc=_0x20969b;try{await _0x244123[_0x42b0b9(0x54e,0x580,0x55f,0x559)](USERS_FILE);const _0x3873f9=await _0x244123[_0x1d5ca2(-_0x27ce98._0x1a89a5,-0xfd,-_0x27ce98._0x3f6a90,-_0x27ce98._0x2b7f46)](USERS_FILE,_0x42b0b9(0x5af,_0x27ce98._0x380005,_0x27ce98._0x1b236e,_0x27ce98._0x5e6641)),_0x357a13=JSON[_0x1d5ca2(-0x19b,-_0x27ce98._0x3ff40a,-0x15c,-_0x27ce98._0x587a17)](_0x3873f9);usersCache=_0x357a13[_0x42b0b9(0x5be,0x60b,0x5e8,_0x27ce98._0x196199)]||[];let _0x356d93=![];for(const _0x5be2de of usersCache){if(_0x22cbdc[_0x42b0b9(_0x27ce98._0x3f4d1c,0x530,_0x27ce98._0x2fead1,_0x27ce98._0x39d154)](_0x5be2de[_0x42b0b9(_0x27ce98._0x2fb2a0,0x59d,0x5dc,_0x27ce98._0x19bdf8)],_0x1d5ca2(-0x170,-0x197,-0x158,-0x126))){if('AISQi'===_0x22cbdc[_0x1d5ca2(-0x123,-_0x27ce98._0x526447,-_0x27ce98._0x218dfe,-_0x27ce98._0x2d107e)]){const _0x19c0a0={};return _0x19c0a0[_0x42b0b9(_0x27ce98._0x1ebfc0,_0x27ce98._0x30b41e,_0x27ce98._0x265c94,0x5fc)]=_0x522d63,_0x1aa343[_0x42b0b9(_0x27ce98._0x4b245d,0x551,0x554,0x526)](_0x22cbdc[_0x1d5ca2(-0x103,-0x133,-0x14a,-_0x27ce98._0x1a2668)],_0x19c0a0),null;}else _0x5be2de['role']=DEFAULT_ROLE,_0x356d93=!![];}}_0x356d93&&(await saveUsers(usersCache),logger[_0x42b0b9(0x54c,0x525,0x55c,0x598)](_0x22cbdc['oodAr']));const _0xb5b0b6={};return _0xb5b0b6[_0x1d5ca2(-_0x27ce98._0x5b0e92,-0x114,-_0x27ce98._0x90aa8e,-_0x27ce98._0x3380e9)]=usersCache[_0x42b0b9(_0x27ce98._0x1276da,0x5a1,_0x27ce98._0x1d45bc,_0x27ce98._0x43372a)],logger[_0x1d5ca2(-_0x27ce98._0x262a5f,-_0x27ce98._0x12bcd3,-0x170,-_0x27ce98._0x1d6685)](_0x22cbdc[_0x1d5ca2(-0x129,-0xf0,-0x130,-_0x27ce98._0x3840ca)],_0xb5b0b6),usersCache;}catch(_0x412613){if(_0x412613[_0x42b0b9(0x55b,_0x27ce98._0xc0799e,0x536,_0x27ce98._0x1f0fef)]===_0x22cbdc['GvkJA'])return usersCache=[],logger[_0x42b0b9(_0x27ce98._0x1995c8,_0x27ce98._0x3f27b5,_0x27ce98._0x465066,0x514)](_0x22cbdc[_0x1d5ca2(-0x11c,-_0x27ce98._0x56a541,-0x120,-_0x27ce98._0x44e7b8)]),usersCache;logger[_0x42b0b9(0x56b,0x566,0x5aa,_0x27ce98._0x494c84)](_0x22cbdc[_0x42b0b9(_0x27ce98._0x1a579d,0x5ce,0x609,_0x27ce98._0x1d25ad)],_0x412613);throw _0x412613;}}export async function saveUsers(_0x180821){const _0x4851d0={_0x71d6a5:0x58f,_0x1fc55b:0x53e,_0x3c39e9:0x114,_0x5ba708:0xe8,_0x2a207a:0x149,_0x53cd98:0x143,_0x55c6e3:0x14c,_0x347c03:0x586,_0x52450e:0x56e,_0x34491e:0x4e0,_0x44b087:0x518,_0x5b29a5:0x4b0,_0xdd596a:0x529,_0x2afc98:0x4cc,_0x45ea4f:0x552,_0x4a3fb6:0x50f,_0x147676:0x54d,_0x5db1b5:0xbc,_0x45dfda:0x57f,_0x3629ff:0x544,_0x297d0c:0x545},_0x1767d5={_0x366cc2:0x2ca},_0x20dc38={_0x4064f2:0x142,_0x33da7f:0x25},_0x2d756d={};function _0x5e164c(_0x24124f,_0x5210fb,_0x1eea40,_0x134221){return _0x2c50d1(_0x5210fb-0x70a,_0x5210fb-_0x20dc38._0x4064f2,_0x1eea40-_0x20dc38._0x33da7f,_0x24124f);}_0x2d756d[_0x5e164c(_0x4851d0._0x71d6a5,0x552,_0x4851d0._0x1fc55b,0x55b)]=_0x4b9309(_0x4851d0._0x3c39e9,0xee,_0x4851d0._0x5ba708,0xe6),_0x2d756d['sdNGq']='Saved\x20user'+'s\x20to\x20file',_0x2d756d[_0x4b9309(_0x4851d0._0x2a207a,_0x4851d0._0x53cd98,0x104,_0x4851d0._0x55c6e3)]='Failed\x20to\x20'+'save\x20users';function _0x4b9309(_0x299676,_0x5854d1,_0x3a37fc,_0x550ee1){return _0x2c50d1(_0x3a37fc-_0x1767d5._0x366cc2,_0x5854d1-0x1db,_0x3a37fc-0x81,_0x299676);}const _0x42e8cc=_0x2d756d;try{const _0x405cce=_0x397d51[_0x5e164c(_0x4851d0._0x347c03,0x54b,0x575,_0x4851d0._0x52450e)](USERS_FILE),_0x2690c9={};_0x2690c9[_0x5e164c(0x4c1,0x4dc,0x4d2,0x4dc)]=!![],await _0x244123[_0x5e164c(_0x4851d0._0x34491e,0x522,0x4e7,0x4ff)](_0x405cce,_0x2690c9);const _0x24f12d={};_0x24f12d[_0x5e164c(0x524,0x537,_0x4851d0._0x44b087,0x4f1)]=_0x180821,await _0x244123['writeFile'](USERS_FILE,JSON[_0x5e164c(_0x4851d0._0x5b29a5,0x4ed,_0x4851d0._0xdd596a,_0x4851d0._0x2afc98)](_0x24f12d,null,-0x18bc+0x1ace+-0x3*0xb0),_0x42e8cc[_0x5e164c(0x51a,_0x4851d0._0x45ea4f,_0x4851d0._0x4a3fb6,_0x4851d0._0x147676)]),usersCache=_0x180821;const _0x4a8f78={};_0x4a8f78[_0x4b9309(0xd2,0xf8,_0x4851d0._0x5db1b5,0xcf)]=_0x180821['length'],logger['info'](_0x42e8cc['sdNGq'],_0x4a8f78);}catch(_0x519388){logger[_0x5e164c(0x499,0x4e4,0x4c7,0x4fc)](_0x42e8cc[_0x5e164c(_0x4851d0._0x45dfda,0x544,_0x4851d0._0x3629ff,_0x4851d0._0x297d0c)],_0x519388);throw _0x519388;}}function _0x1229(_0x3e0a80,_0x3accaa){_0x3e0a80=_0x3e0a80-(-0x7ab+0x75b+0x3*0x93);const _0x335b7f=_0x2746();let _0x251889=_0x335b7f[_0x3e0a80];if(_0x1229['wAWDLT']===undefined){var _0x33b30f=function(_0x21fa47){const _0x1372f9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eb325='',_0x59a754='';for(let _0x4fb2fb=-0x175f+0x2705+-0xfa6,_0x423ceb,_0x2153eb,_0x507193=0x17a0+0x2484+-0x2*0x1e12;_0x2153eb=_0x21fa47['charAt'](_0x507193++);~_0x2153eb&&(_0x423ceb=_0x4fb2fb%(-0x1*-0xa3+0x9*0x426+0xed*-0x29)?_0x423ceb*(-0x6a9+0x749+-0x2*0x30)+_0x2153eb:_0x2153eb,_0x4fb2fb++%(0x176b+-0x1597+-0x1d0))?_0x4eb325+=String['fromCharCode'](-0xfa9*-0x1+-0x1*0x18b3+0xa09&_0x423ceb>>(-(0x1*-0x679+-0x5*-0x6be+-0x1b3b)*_0x4fb2fb&-0x8d4*0x4+-0x1*-0x237a+-0x4*0x9)):-0x113f+0xe21*0x2+-0xb03){_0x2153eb=_0x1372f9['indexOf'](_0x2153eb);}for(let _0x15941b=0x2*-0x574+0x1*0x251d+0x1a35*-0x1,_0x1fd41d=_0x4eb325['length'];_0x15941b<_0x1fd41d;_0x15941b++){_0x59a754+='%'+('00'+_0x4eb325['charCodeAt'](_0x15941b)['toString'](-0xc18+0x1c53+-0x102b*0x1))['slice'](-(0x2*0x989+0xb*-0x65+-0xeb9));}return decodeURIComponent(_0x59a754);};_0x1229['DlEyZs']=_0x33b30f,_0x1229['BCykkQ']={},_0x1229['wAWDLT']=!![];}const _0x52527c=_0x335b7f[-0x1fa4+0x17eb+-0x3*-0x293],_0x5c339e=_0x3e0a80+_0x52527c,_0x3c20f9=_0x1229['BCykkQ'][_0x5c339e];return!_0x3c20f9?(_0x251889=_0x1229['DlEyZs'](_0x251889),_0x1229['BCykkQ'][_0x5c339e]=_0x251889):_0x251889=_0x3c20f9,_0x251889;}function _0x2c50d1(_0x5e500a,_0xc2dad5,_0x5e501d,_0x37c458){const _0x36792c={_0x13f783:0x3af};return _0x1229(_0x5e500a- -_0x36792c._0x13f783,_0x37c458);}export async function getUsers(){const _0x7d5323={_0x32cf4f:0x25,_0x3394ea:0xe},_0x24c014={_0x4f4855:0x13b};function _0x24a84e(_0x44ed05,_0x59a13e,_0x533fe5,_0x2b3a05){return _0x2c50d1(_0x59a13e-0x1e9,_0x59a13e-0x1b7,_0x533fe5-_0x24c014._0x4f4855,_0x44ed05);}const _0x3e39a6={'uAqed':function(_0x47a886){return _0x47a886();}};if(!usersCache)return await _0x3e39a6[_0x24a84e(0x3b,0x27,-_0x7d5323._0x32cf4f,_0x7d5323._0x3394ea)](loadUsers);return usersCache;}export async function findUserByUsername(_0x197c45){const _0x3a788d={_0x1f0bed:0x355,_0x160242:0x397},_0x41edbc={_0x3f5aa0:0xf2};function _0x5f083e(_0x43dbe3,_0x25e816,_0x2ceb06,_0x37e725){return _0x2c50d1(_0x37e725-0x5d5,_0x25e816-0x162,_0x2ceb06-_0x41edbc._0x3f5aa0,_0x43dbe3);}function _0x4dd5eb(_0x1284d4,_0x33cf9f,_0x18625b,_0x59333f){return _0x4853c0(_0x1284d4-0x134,_0x59333f,_0x18625b-0xc,_0x33cf9f- -0x10b);}const _0x5dd91d=await getUsers();return _0x5dd91d[_0x5f083e(0x39d,_0x3a788d._0x1f0bed,0x39d,_0x3a788d._0x160242)](_0x57e17a=>_0x57e17a[_0x5f083e(0x400,0x42f,0x3ee,0x425)]===_0x197c45)||null;}export async function findUserById(_0x8b2b1c){const _0x50ad5e={_0x5b5bd4:0x1f6,_0x29526e:0x1da},_0xc577c5={_0x5b441b:0xf8};function _0x2d247f(_0x521795,_0x1c8af0,_0x5023a4,_0x2d2cc2){return _0x4853c0(_0x521795-_0xc577c5._0x5b441b,_0x2d2cc2,_0x5023a4-0x104,_0x1c8af0- -0x165);}const _0x16ab69=await getUsers();return _0x16ab69[_0x2d247f(_0x50ad5e._0x5b5bd4,0x1ed,_0x50ad5e._0x29526e,0x1a0)](_0x2957c4=>_0x2957c4['id']===_0x8b2b1c)||null;}export async function findUserByEmail(_0x4948f6){const _0x483945={_0x5a46c5:0x13d,_0x4d6f37:0x520},_0x3bf01e={_0x424765:0x14e,_0x25b22d:0x7c},_0x11cb26={_0x120d8b:0x711,_0x5c09f5:0x1f2,_0x2ca6f9:0xb6};function _0x3ad691(_0x4427d3,_0x42d0d8,_0x1aa268,_0x5e341e){return _0x2c50d1(_0x1aa268-_0x11cb26._0x120d8b,_0x42d0d8-_0x11cb26._0x5c09f5,_0x1aa268-_0x11cb26._0x2ca6f9,_0x4427d3);}const _0x40af3d={'LGMhj':function(_0x174c54){return _0x174c54();}};function _0x3c8996(_0x3f7bf7,_0x31c98e,_0x1b0171,_0x32c0b2){return _0x4853c0(_0x3f7bf7-_0x3bf01e._0x424765,_0x32c0b2,_0x1b0171-_0x3bf01e._0x25b22d,_0x31c98e- -0x487);}const _0x4ea2e8=await _0x40af3d[_0x3c8996(-0x184,-_0x483945._0x5a46c5,-0x154,-0x124)](getUsers);return _0x4ea2e8[_0x3ad691(_0x483945._0x4d6f37,0x4ad,0x4d3,0x4b7)](_0x457af1=>_0x457af1[_0x3c8996(-0x109,-0x136,-0x17d,-0x154)]?.[_0x3ad691(0x4e7,0x525,0x4e7,0x52b)+'e']()===_0x4948f6?.['toLowerCas'+'e']())||null;}export async function hashPassword(_0x557ec4){const _0x1c5d0b={_0x559aa6:0x218,_0x25cc35:0x86,_0x54de65:0x41};function _0x1d5bee(_0x584083,_0x313792,_0x32c80e,_0x362536){return _0x2c50d1(_0x362536-_0x1c5d0b._0x559aa6,_0x313792-_0x1c5d0b._0x25cc35,_0x32c80e-_0x1c5d0b._0x54de65,_0x313792);}return await _0x499898[_0x1d5bee(0x76,0x3c,0xd,0x42)](_0x557ec4,SALT_ROUNDS);}export async function validatePassword(_0x2f2ef6,_0x34751a){const _0x199267={_0x7f8018:0x62,_0x9f1de8:0x24,_0xc2dde1:0x80,_0x244751:0x73,_0x2df1ca:0x36,_0x2c67e2:0x362,_0x3b8072:0x365,_0x1e7192:0x64,_0x34e18a:0x5d,_0x4db0ef:0x2f0,_0x36a907:0x2eb,_0x456da8:0x301,_0x3f60c7:0x2d3,_0x238db3:0x7a,_0x353b13:0x34,_0x4c46ae:0x351,_0x4f1ca9:0x346,_0xb885fe:0x342,_0x44debf:0x5,_0x26e7ac:0x35,_0x6ae6f8:0x30d,_0x1ce71a:0x31d,_0x1f9b09:0x27,_0x3ad27d:0x4d,_0x15fed9:0xd,_0x2630af:0x1f,_0x3b2111:0x34a,_0x595e9f:0x33f,_0x1b3693:0x2c0,_0x54094f:0x2cb,_0x589200:0x2a7,_0x5b6d85:0x29b,_0x3c78ce:0x31a,_0x468d22:0x2fb,_0x23a47d:0x306,_0x32a448:0x2d2,_0x55ca30:0x299,_0x5351d8:0x2d1,_0x35fe8c:0x364,_0x101a89:0x34b,_0x3b9b17:0x2bc,_0x2e3236:0x2bf,_0x1b881b:0x324,_0x4755c3:0x29d,_0x19b1f6:0x30a,_0x1015fb:0x328,_0x2f8eed:0x42,_0x3a1482:0x6a,_0x28a925:0x56,_0x396e97:0x76,_0x5b50ec:0x71,_0x47f70d:0x5f,_0x37366f:0x3b,_0x5c11d2:0x11,_0x254412:0x1e,_0x1ba186:0x86,_0x3d0313:0x77,_0x607f18:0xa1,_0x2579ac:0xdc,_0x24b8e2:0x2d8,_0x224829:0x2a5,_0x4f8e23:0x31e,_0xd45168:0x41,_0x5f511e:0x2e,_0x318ad6:0x42,_0x2bce8c:0x354,_0x514316:0x3a0,_0x3af5d9:0xc,_0x4f1773:0x2d},_0x3cdce2={_0x1d279c:0x33f},_0x4667cd={_0x31c4a7:0x12d},_0x31b08c={'LDdPZ':_0x29b69c(_0x199267._0x7f8018,_0x199267._0x9f1de8,0x50,_0x199267._0xc2dde1)+_0x29b69c(0x57,_0x199267._0x244751,_0x199267._0x2df1ca,-0xa),'QcSId':function(_0x4c45f9,_0x3ea38f){return _0x4c45f9(_0x3ea38f);},'CTLzt':'User\x20not\x20f'+_0x48e35b(0x35d,0x323,_0x199267._0x2c67e2,_0x199267._0x3b8072)+_0x29b69c(_0x199267._0x1e7192,0x62,_0x199267._0x34e18a,0x42),'KlTtt':_0x48e35b(_0x199267._0x4db0ef,_0x199267._0x36a907,_0x199267._0x456da8,_0x199267._0x3f60c7),'YLjXX':'User\x20has\x20n'+_0x29b69c(0x6c,_0x199267._0x238db3,_0x199267._0xc2dde1,_0x199267._0x353b13)+_0x48e35b(_0x199267._0x4c46ae,0x33d,_0x199267._0x4f1ca9,_0x199267._0xb885fe),'hnclT':'Invalid\x20pa'+_0x29b69c(-0xb,_0x199267._0x44debf,_0x199267._0x26e7ac,-0x16)+_0x48e35b(0x324,_0x199267._0x6ae6f8,0x318,_0x199267._0x1ce71a),'qmgJx':_0x29b69c(_0x199267._0x1f9b09,0x26,_0x199267._0x3ad27d,0x5c)+_0x29b69c(_0x199267._0x15fed9,-_0x199267._0x2630af,0x21,0x49)+_0x48e35b(0x2f0,0x30f,_0x199267._0x3b2111,_0x199267._0x595e9f)+'y'};function _0x48e35b(_0x10f3a3,_0xce2dcc,_0x379048,_0x29a1da){return _0x4853c0(_0x10f3a3-_0x4667cd._0x31c4a7,_0x379048,_0x379048-0x1a2,_0xce2dcc- -0x8c);}const _0x49813d=await _0x31b08c[_0x48e35b(_0x199267._0x1b3693,_0x199267._0x54094f,_0x199267._0x589200,_0x199267._0x5b6d85)](findUserByUsername,_0x2f2ef6);if(!_0x49813d){const _0x55ed6a={};return _0x55ed6a[_0x48e35b(0x349,0x354,0x35e,0x3a1)]=_0x2f2ef6,logger[_0x48e35b(_0x199267._0x3c78ce,0x2d8,_0x199267._0x468d22,_0x199267._0x1ce71a)](_0x31b08c[_0x48e35b(0x2c9,_0x199267._0x23a47d,_0x199267._0x32a448,0x342)],_0x55ed6a),null;}function _0x29b69c(_0x2dd1f9,_0x1827c9,_0x5ef128,_0x1e9389){return _0x4853c0(_0x2dd1f9-0x1ab,_0x1e9389,_0x5ef128-0x47,_0x5ef128- -_0x3cdce2._0x1d279c);}if(!_0x49813d[_0x48e35b(_0x199267._0x55ca30,_0x199267._0x5351d8,0x2f7,0x2db)+_0x48e35b(0x372,0x32b,_0x199267._0x35fe8c,_0x199267._0x101a89)]){if(_0x48e35b(_0x199267._0x3b9b17,0x2d0,0x2f0,0x306)===_0x31b08c['KlTtt']){if(_0x224657['code']===_0x29b69c(0x42,0x50,0x14,0x55))return _0x21779f=[],_0xe564f8[_0x48e35b(0x2c4,_0x199267._0x2e3236,0x28b,0x2d8)](_0x48e35b(0x2d4,0x2dc,_0x199267._0x1b881b,0x2bb)+'\x20not\x20found'+_0x48e35b(_0x199267._0x4755c3,0x2db,0x2b8,_0x199267._0x19b1f6)+'zed\x20empty\x20'+_0x48e35b(0x34c,0x316,0x30a,_0x199267._0x1015fb)),_0x27ca02;_0x43b894[_0x29b69c(_0x199267._0x2f8eed,0x39,0x2b,_0x199267._0x3a1482)](_0x31b08c[_0x29b69c(_0x199267._0x28a925,_0x199267._0x396e97,_0x199267._0x5b50ec,_0x199267._0x47f70d)],_0x90b3f2);throw _0x464372;}else{const _0x2428a7={};return _0x2428a7['username']=_0x2f2ef6,logger['debug'](_0x31b08c[_0x29b69c(-0x19,_0x199267._0x37366f,0x2d,0x15)],_0x2428a7),null;}}const _0x191966=await _0x499898[_0x29b69c(0x2f,0x0,0x20,_0x199267._0x5c11d2)](_0x34751a,_0x49813d[_0x29b69c(-0xf,0x5e,_0x199267._0x254412,0x8)+_0x29b69c(_0x199267._0x1ba186,0x60,0x78,0x4d)]);if(!_0x191966){const _0x3edca3={};return _0x3edca3[_0x29b69c(_0x199267._0x3d0313,0xd2,_0x199267._0x607f18,_0x199267._0x2579ac)]=_0x2f2ef6,logger[_0x48e35b(0x28f,_0x199267._0x24b8e2,_0x199267._0x224829,_0x199267._0x4f8e23)](_0x31b08c[_0x29b69c(_0x199267._0xd45168,0x5d,_0x199267._0x5f511e,_0x199267._0x318ad6)],_0x3edca3),null;}const _0x2a0667={};return _0x2a0667[_0x48e35b(0x35d,_0x199267._0x2bce8c,_0x199267._0x514316,0x30c)]=_0x2f2ef6,_0x2a0667[_0x29b69c(0x83,0x94,0x57,0x75)]=_0x49813d['id'],logger[_0x29b69c(0x2b,-0x3a,_0x199267._0x3af5d9,_0x199267._0x4f1773)](_0x31b08c['qmgJx'],_0x2a0667),_0x49813d;}export async function createUser(_0x4f9c4b){const _0xed14a5={_0xfb28a4:0x29e,_0x3f527f:0x260,_0x2252b0:0x115,_0x112e0b:0x123,_0x5d1661:0x139,_0x2a8654:0x10f,_0x361d5d:0x314,_0x5d0fde:0x2ea,_0x1f05a4:0x92,_0x322518:0xab,_0x4cf029:0xeb,_0x1b8f6e:0xd0,_0x3a5cd3:0x2e8,_0x4df18a:0x123,_0x4d1623:0x2d9,_0x32bb96:0x2cc,_0x16d819:0x2fc,_0xfaf26b:0x2bc,_0x1f3e8d:0x2af,_0x209270:0x238,_0x4c7291:0x2ad,_0x5cd85b:0x8a,_0x55b96b:0x101,_0x180180:0xd6,_0x48e32f:0x2d2,_0x28cb71:0x310,_0x31ba75:0x280,_0x1be08a:0x246,_0x541de1:0x2b2,_0x18f3ef:0xc4,_0x6555ec:0xda,_0x90a93f:0xea,_0x41aa9e:0x10c,_0x317784:0x97,_0x31bf0c:0x292,_0x16f387:0x2e1,_0x5d0d9f:0x2ab,_0x5de567:0x78,_0x518b2e:0xa7,_0xe4d427:0xa9,_0x44bdfe:0x275,_0x4f5436:0x2a9,_0x1a3a0c:0x270,_0x1ae03e:0x2eb,_0x583172:0x2aa,_0x44e25e:0x174,_0x729f1b:0x176,_0x32727a:0x133,_0x4d21ad:0xce,_0x2348af:0x2d9,_0x9fc725:0xfc,_0x335ec3:0x14a,_0x1924ea:0x132,_0x23792b:0xc7,_0xff2a2f:0x118,_0x3592b1:0xe6,_0x5c52cc:0x102,_0x4caade:0x2dd,_0x5955b5:0xa3,_0x467748:0x90,_0x2072c7:0xf7,_0x5385cd:0x14a,_0x1722f0:0xe1,_0x105bd6:0x9d,_0x4aa2e9:0xdd,_0x49e479:0x127,_0x448eff:0x13a,_0x390ca0:0xdc,_0x31e7d3:0x2a4,_0x5d3c3f:0x2c0,_0x5e00b6:0x261,_0x509d62:0x29a,_0x22c280:0x278,_0x246dea:0x266,_0x5ea535:0x25e,_0x127435:0x64,_0x28661b:0xa5,_0x149c6f:0x174,_0x31f516:0x2b6,_0xb30821:0x2e5,_0x4dddde:0x2a5,_0x19dce1:0x2f5,_0x4b940a:0xbb,_0x55f7e9:0xc9,_0x4bcbd6:0x118,_0x27f072:0xf4,_0x439e0d:0x172,_0x1bf010:0xb9,_0x5d03e2:0x9a,_0x13a44d:0xa8,_0xa9b9c1:0x125,_0x292fbe:0xd3,_0x365250:0x157,_0x3cd065:0x14f,_0xf13028:0xe3,_0x38358f:0x110,_0x3216cb:0x2fd,_0x5d8b10:0x2e2,_0x5f1ae8:0x331,_0x4ee5d6:0xa0,_0x300e28:0xdc,_0x507f57:0x2b8,_0x40309c:0x2e3,_0x3ffeb5:0x2a8,_0x5db7fb:0x27f,_0x307bc2:0x26e},_0x2111e5={_0x1e0e1b:0x182},_0x528402={'siTPX':function(_0x13729c){return _0x13729c();},'FYlcS':function(_0x5be091,_0x785d13){return _0x5be091===_0x785d13;},'GrnkZ':'cIMNz','UOCAF':_0xdf602e(0x272,_0xed14a5._0xfb28a4,_0xed14a5._0x3f527f,0x24b),'aIiqd':_0x147a4f(_0xed14a5._0x2252b0,_0xed14a5._0x112e0b,_0xed14a5._0x5d1661,_0xed14a5._0x2a8654)+'quired\x20fie'+_0xdf602e(0x2ec,_0xed14a5._0x361d5d,0x2c4,_0xed14a5._0x5d0fde)+'ame,\x20email'+_0x147a4f(_0xed14a5._0x1f05a4,_0xed14a5._0x322518,_0xed14a5._0x4cf029,_0xed14a5._0x1b8f6e),'QpybX':_0xdf602e(0x2c2,0x28e,_0xed14a5._0x3a5cd3,0x29c),'oiXhB':function(_0x4f3a16,_0x2b4443){return _0x4f3a16(_0x2b4443);},'Zzcva':function(_0x6cb20,_0x16f1cc){return _0x6cb20(_0x16f1cc);},'KYMSt':_0x147a4f(0xf4,0x168,0x106,_0xed14a5._0x4df18a)+'w\x20user'},_0x4e3562=await _0x528402[_0xdf602e(0x2c5,_0xed14a5._0x4d1623,0x2ee,_0xed14a5._0x32bb96)](getUsers);if(!_0x4f9c4b[_0xdf602e(_0xed14a5._0x16d819,0x342,_0xed14a5._0xfaf26b,_0xed14a5._0x1f3e8d)]||!_0x4f9c4b[_0xdf602e(0x26d,_0xed14a5._0x209270,0x236,0x22d)]||!_0x4f9c4b['name']){if(_0x528402[_0xdf602e(_0xed14a5._0x4c7291,0x27b,0x27c,0x2e9)](_0x528402[_0x147a4f(0xf0,_0xed14a5._0x5cd85b,_0xed14a5._0x55b96b,_0xed14a5._0x180180)],_0x528402['UOCAF'])){const _0x4d2d31={};return _0x4d2d31[_0xdf602e(_0xed14a5._0x16d819,_0xed14a5._0x48e32f,_0xed14a5._0x28cb71,0x31f)]=_0x37f4ee,_0x4ce9dc[_0xdf602e(_0xed14a5._0x31ba75,0x268,_0xed14a5._0x1be08a,_0xed14a5._0x541de1)](_0x147a4f(_0xed14a5._0x18f3ef,_0xed14a5._0x6555ec,_0xed14a5._0x90a93f,0xdc)+_0x147a4f(_0xed14a5._0x41aa9e,0xc0,_0xed14a5._0x317784,0xcb)+_0xdf602e(0x2b5,_0xed14a5._0x31bf0c,0x2c3,0x29a),_0x4d2d31),null;}else throw new Error(_0x528402[_0xdf602e(_0xed14a5._0x16f387,_0xed14a5._0x5d0d9f,0x2b3,0x299)]);}const _0x18d3c1=_0x4e3562[_0x147a4f(_0xed14a5._0x5de567,0x62,_0xed14a5._0x518b2e,_0xed14a5._0xe4d427)](_0x100d76=>_0x100d76[_0x147a4f(0xff,0x139,0xef,0x137)]===_0x4f9c4b[_0xdf602e(0x2fc,0x31f,0x319,0x315)]);if(_0x18d3c1){if(_0x528402[_0xdf602e(0x2a9,_0xed14a5._0x44bdfe,0x2b4,0x2d7)]===_0x528402[_0xdf602e(_0xed14a5._0x4f5436,_0xed14a5._0x1a3a0c,_0xed14a5._0x1ae03e,_0xed14a5._0x583172)])throw new Error(_0x147a4f(_0xed14a5._0x44e25e,0x162,_0xed14a5._0x729f1b,_0xed14a5._0x32727a)+_0x4f9c4b['username']+(_0x147a4f(_0xed14a5._0x4d21ad,0x134,0xda,0x102)+_0xdf602e(0x2dd,0x2c9,_0xed14a5._0x2348af,0x2e3)));else throw new _0x20ed7e(_0x147a4f(_0xed14a5._0x9fc725,0x174,0x131,0x133)+_0x5242d7[_0x147a4f(0x14c,_0xed14a5._0x335ec3,_0xed14a5._0x1924ea,0x137)]+(_0x147a4f(_0xed14a5._0x23792b,_0xed14a5._0xff2a2f,_0xed14a5._0x3592b1,_0xed14a5._0x5c52cc)+_0xdf602e(_0xed14a5._0x4caade,0x2d8,0x30a,0x2b1)));}const _0x4e1040='user_'+Date[_0x147a4f(_0xed14a5._0x5955b5,0xb9,_0xed14a5._0x467748,0xdb)]()+'_'+Math[_0x147a4f(0x101,0x145,_0xed14a5._0x2072c7,0x12a)]()[_0x147a4f(0x132,0xcb,_0xed14a5._0x5385cd,0x10d)](0x1*0x7d5+0xfdf+-0x1790)[_0x147a4f(0x97,_0xed14a5._0x1722f0,_0xed14a5._0x105bd6,_0xed14a5._0x4aa2e9)](0x137e+-0x5*0x368+-0x274,0x1ce4+-0x95*0x13+-0x10c*0x11),_0x4f6db5=_0x4f9c4b[_0x147a4f(_0xed14a5._0x49e479,0x131,_0xed14a5._0x448eff,0xef)]?await hashPassword(_0x4f9c4b['password']):null,_0x41a928=_0x4f9c4b[_0x147a4f(0x105,_0xed14a5._0x390ca0,0xfe,0x11e)]||DEFAULT_ROLE;if(!_0x528402[_0xdf602e(_0xed14a5._0x31e7d3,_0xed14a5._0x5d3c3f,_0xed14a5._0x5e00b6,0x2d4)](isValidRole,_0x41a928))throw new Error(_0xdf602e(_0xed14a5._0x509d62,_0xed14a5._0x22c280,_0xed14a5._0x246dea,_0xed14a5._0x5ea535)+'le:\x20'+_0x41a928+(_0x147a4f(0x91,_0xed14a5._0x127435,0xbb,_0xed14a5._0x28661b)+_0x147a4f(0x117,_0xed14a5._0x149c6f,0x10c,0x12c)+'dmin,\x20mana'+_0xdf602e(0x2bc,0x274,_0xed14a5._0x31f516,_0xed14a5._0x31f516)+_0xdf602e(0x2df,_0xed14a5._0xb30821,_0xed14a5._0x4dddde,_0xed14a5._0x19dce1)+'er'));function _0x147a4f(_0x45390d,_0x33acf6,_0x4893b7,_0x44c54e){return _0x2c50d1(_0x44c54e-0x2e7,_0x33acf6-0x17e,_0x4893b7-_0x2111e5._0x1e0e1b,_0x45390d);}const _0x48248b=_0x4f9c4b[_0x147a4f(0xa6,0x7f,_0xed14a5._0x4b940a,_0xed14a5._0x55f7e9)+'s']||[];for(const _0x4dbae8 of _0x48248b){if(!isValidPermission(_0x4dbae8))throw new Error(_0x147a4f(0xb2,_0xed14a5._0x4bcbd6,0x12f,_0xed14a5._0x27f072)+'rmission:\x20'+_0x4dbae8);}const _0x14f4ee={'id':_0x4e1040,'username':_0x4f9c4b[_0x147a4f(0x116,0x127,_0xed14a5._0x439e0d,0x137)],'email':_0x4f9c4b[_0x147a4f(_0xed14a5._0x1bf010,0xe6,_0xed14a5._0x5d03e2,_0xed14a5._0x13a44d)],'name':_0x4f9c4b[_0x147a4f(_0xed14a5._0xa9b9c1,_0xed14a5._0x292fbe,_0xed14a5._0x365250,0x117)],'password_hash':_0x4f6db5,'created_at':new Date()[_0x147a4f(0x140,_0xed14a5._0x3cd065,0x110,_0xed14a5._0x2252b0)+'g'](),'role':_0x41a928,'permissions':_0x48248b[_0x147a4f(0x128,0x10c,_0xed14a5._0xf13028,_0xed14a5._0x38358f)]>0x23d1+0x10a3+0x24*-0x175?_0x48248b:undefined};_0x4e3562[_0xdf602e(_0xed14a5._0x3216cb,_0xed14a5._0x5d8b10,_0xed14a5._0x5f1ae8,0x300)](_0x14f4ee),await _0x528402['Zzcva'](saveUsers,_0x4e3562);const _0x529ecb={};_0x529ecb[_0x147a4f(_0xed14a5._0x4ee5d6,_0xed14a5._0x300e28,0xaa,0xed)]=_0x14f4ee['id'];function _0xdf602e(_0x33070f,_0x5aeb52,_0x17c3c7,_0x43abad){return _0x2c50d1(_0x33070f-0x4ac,_0x5aeb52-0x0,_0x17c3c7-0x181,_0x17c3c7);}_0x529ecb[_0xdf602e(0x2fc,_0xed14a5._0x507f57,0x2ef,0x2e1)]=_0x14f4ee['username'],_0x529ecb[_0xdf602e(_0xed14a5._0x40309c,_0xed14a5._0x3ffeb5,0x2d1,0x2a1)]=_0x14f4ee['role'],_0x529ecb['hasPasswor'+'d']=!!_0x4f6db5,logger['info'](_0x528402[_0xdf602e(_0xed14a5._0x5db7fb,_0xed14a5._0x5e00b6,_0xed14a5._0x307bc2,0x27b)],_0x529ecb);const {password_hash:_0x1c2f7,..._0x3ff471}=_0x14f4ee;return _0x3ff471;}export async function updateUser(_0x483909,_0x31d81b){const _0x34e6d4={_0x13d705:0x1ef,_0x40a85d:0x186,_0x47f08e:0x18e,_0x178c57:0x1c6,_0x37a43c:0x21d,_0x111ad6:0x243,_0xd842ee:0x18d,_0x3dc191:0x1b2,_0x3a7d3a:0x16c,_0x4b2a97:0x225,_0x13b1b3:0x1f1,_0x57a978:0x1e9,_0xc916d5:0x2ef,_0x514deb:0x2e4,_0x15d1d5:0x2e7,_0x1bb42f:0x2f1,_0x4b5e78:0x2f8,_0x4a894c:0x308,_0x2ce472:0x2eb,_0x4022cf:0x2fe,_0x52bf1e:0x2b6,_0x4d8e2e:0x2d7,_0x577bb9:0x2d6,_0xa14c2b:0x1d8,_0x405f80:0x1c0,_0x1337e0:0x18a,_0x5bdb57:0x337,_0x154619:0x247,_0x3301a0:0x249,_0x7d0a22:0x21e,_0x4a32f2:0x2eb,_0x29230e:0x307,_0x39c991:0x32d,_0x19021d:0x342,_0x384656:0x346,_0x36930c:0x2d5,_0x1c9a0b:0x2c1,_0x596ca7:0x1f2,_0x31378e:0x2cd,_0x5062bd:0x16b,_0x119db3:0x1a3,_0xddc168:0x1fc,_0x25a19f:0x1f4,_0x5be8da:0x1c7,_0x4d6c5d:0x211,_0x36b078:0x2f3,_0x2b8a83:0x2b1,_0x3d3928:0x368,_0x232cee:0x313,_0x39e19c:0x2f8,_0x41f749:0x177,_0x428621:0x1b8,_0x4657ce:0x2b7,_0x589301:0x316,_0x5c9de5:0x338,_0x5d7801:0x326,_0x2bdcd6:0x2d9,_0x2d3a6b:0x1b7,_0x576b0f:0x1f8,_0x3f514b:0x262,_0x456c8d:0x262,_0x2c7826:0x299,_0x39197f:0x298,_0xb87aeb:0x31e,_0x1dbf1f:0x319,_0x339ea4:0x328,_0x51d7e5:0x2ae,_0x2f86a2:0x305,_0x547a3b:0x2c0,_0x18f93e:0x2bf,_0x3818de:0x2f9,_0x17b352:0x183,_0x7d7d8f:0x18d,_0x1ff179:0x2e3,_0x1473d0:0x340,_0x4b63f2:0x1b9,_0x32fd88:0x1b6,_0x365976:0x28b,_0x1f7c23:0x1e5,_0x47f4be:0x219,_0x9198a6:0x1fa,_0x107044:0x1ed,_0x303b81:0x1aa,_0x2b6f9e:0x191,_0x3e8a57:0x1b5,_0x4be98d:0x2ff,_0x14ea64:0x2e3,_0x3d7ed8:0x1ec,_0xa9b9ed:0x1ea,_0x54d9ea:0x1a6,_0x3ce5c7:0x1e4,_0x1d5c35:0x1f5,_0x1f4339:0x1d5,_0x30c6de:0x1cd,_0x46dd45:0x1de,_0x536fd5:0x1a0,_0x26ad97:0x206,_0x124a3a:0x31f,_0x29d7e6:0x332,_0x9fa4c4:0x369,_0x2ce949:0x323,_0x4f6556:0x21a,_0x36ff5a:0x1f8,_0xddccb8:0x2c5,_0x47de94:0x2c7,_0x4a9502:0x30d,_0x48fcc6:0x347,_0x172b1b:0x246,_0x42c0d0:0x1d6,_0x2afeb2:0x1f9,_0x49d94a:0x1bf,_0x2df83e:0x2f0,_0xdcc1df:0x2cc,_0x1236df:0x2be,_0xdeef6:0x1d2,_0x2b0f99:0x1b7,_0x38fd18:0x18a,_0x308e5d:0x2ca,_0x3aeeb2:0x309,_0x26119c:0x256,_0x40a325:0x1d4,_0x23e64e:0x253,_0x2864a8:0x2e1,_0x59c47d:0x1cb,_0x19bb8f:0x1b3,_0x47463c:0x29f,_0x4c9661:0x2ea,_0x5c8a78:0x301,_0x3b4d40:0x2e8,_0x3b926e:0x218,_0x50ddc0:0x20d,_0x1a970b:0x22b,_0x466df9:0x17e,_0x20a136:0x1f6,_0x365868:0x20b,_0x43da73:0x1d0,_0x27396b:0x13d,_0x2ec0b9:0x2cc,_0x566495:0x2f4,_0x14056b:0x2c7},_0x45db8e={_0x1be11e:0xad},_0x306014={_0x56e841:0x1e1},_0x597e16={'YuOZL':_0x3a2cae(-_0x34e6d4._0x13d705,-0x227,-0x1e1,-0x1d8)+_0x3a2cae(-0x1a7,-_0x34e6d4._0x40a85d,-0x18d,-_0x34e6d4._0x47f08e)+_0x3a2cae(-_0x34e6d4._0x178c57,-_0x34e6d4._0x37a43c,-0x212,-_0x34e6d4._0x111ad6),'CsyOW':function(_0x279020,_0x5221d2){return _0x279020(_0x5221d2);},'LoxfV':_0x3a2cae(-_0x34e6d4._0xd842ee,-0x1d1,-_0x34e6d4._0x3dc191,-_0x34e6d4._0x3a7d3a)+_0x3a2cae(-0x224,-0x1ce,-0x20f,-0x217)+'lds:\x20usern'+'ame,\x20email'+_0x3a2cae(-_0x34e6d4._0x4b2a97,-0x21a,-_0x34e6d4._0x13b1b3,-_0x34e6d4._0x57a978),'vsivC':function(_0x40bb73,_0x10e38d){return _0x40bb73===_0x10e38d;},'giAMl':function(_0x4965ed,_0x3f2d43){return _0x4965ed!==_0x3f2d43;},'DHSax':function(_0x1cc804,_0x4fabf2){return _0x1cc804(_0x4fabf2);},'aiIyQ':'lNawR','CaqBr':_0x360aa6(_0x34e6d4._0xc916d5,_0x34e6d4._0x514deb,0x2a1,_0x34e6d4._0x15d1d5),'wHTJd':_0x360aa6(_0x34e6d4._0x1bb42f,0x2bc,_0x34e6d4._0x4b5e78,_0x34e6d4._0x4a894c),'gpSbp':function(_0x22daea,_0x49ee32){return _0x22daea!==_0x49ee32;},'PnxBY':function(_0x5aea93,_0x522f04){return _0x5aea93!==_0x522f04;},'VVDTA':function(_0x1d6bc4,_0x4cebf4){return _0x1d6bc4>_0x4cebf4;},'RgGNb':function(_0x38c039,_0x424e10){return _0x38c039===_0x424e10;},'bPGBO':_0x360aa6(0x294,_0x34e6d4._0x2ce472,_0x34e6d4._0x4022cf,_0x34e6d4._0x52bf1e),'KnoaD':_0x360aa6(0x2ad,_0x34e6d4._0x4d8e2e,_0x34e6d4._0x577bb9,0x2ee),'GBmTv':function(_0x4d6be1,_0xd1abcf){return _0x4d6be1!==_0xd1abcf;},'WJpLL':_0x360aa6(0x2c7,0x2b7,0x30c,0x2e4),'XGRcW':'drctY','ombAK':function(_0x514acb,_0x4cd220){return _0x514acb===_0x4cd220;},'sfcIf':function(_0x3fd88c,_0x507ae8){return _0x3fd88c(_0x507ae8);},'ESjVK':function(_0x7c967b,_0x56ea53){return _0x7c967b(_0x56ea53);},'oZomN':_0x3a2cae(-_0x34e6d4._0xa14c2b,-0x20b,-_0x34e6d4._0x405f80,-_0x34e6d4._0x1337e0)+'er'},_0x53c911=await getUsers(),_0x50e6f0=_0x53c911[_0x360aa6(_0x34e6d4._0x5bdb57,0x2ff,0x2e2,0x2ec)](_0x371c39=>_0x371c39['id']===_0x483909);if(_0x597e16[_0x3a2cae(-_0x34e6d4._0x154619,-0x1f6,-0x216,-_0x34e6d4._0x3301a0)](_0x50e6f0,-(0x27*0xad+0x8*-0xbb+-0x5*0x41a)))throw new Error(_0x3a2cae(-_0x34e6d4._0x7d0a22,-0x1ae,-0x1e1,-0x21c)+_0x360aa6(0x2bf,0x2e3,0x2fe,_0x34e6d4._0x4a32f2)+_0x483909);const _0x39ccb9=_0x53c911[_0x50e6f0];if(_0x31d81b[_0x360aa6(0x2e9,_0x34e6d4._0x29230e,0x360,_0x34e6d4._0x39c991)]&&_0x597e16[_0x3a2cae(-0x231,-0x205,-0x20c,-0x250)](_0x31d81b[_0x360aa6(_0x34e6d4._0x19021d,_0x34e6d4._0x4a894c,_0x34e6d4._0x384656,0x32d)],_0x39ccb9['username'])){const _0x3f6862=_0x53c911[_0x360aa6(_0x34e6d4._0x36930c,_0x34e6d4._0x36930c,0x26b,0x29f)](_0x41d99d=>_0x41d99d['username']===_0x31d81b[_0x3a2cae(-0x179,-0x179,-0x18a,-0x169)]);if(_0x3f6862)throw new Error(_0x3a2cae(-0x17b,-0x1ab,-0x18e,-0x190)+_0x31d81b[_0x360aa6(0x345,0x354,0x335,0x32d)]+(_0x360aa6(0x32b,0x2e6,_0x34e6d4._0x1c9a0b,0x2f8)+_0x3a2cae(-0x1ae,-0x1c9,-0x1a9,-_0x34e6d4._0x596ca7)));}if(_0x31d81b[_0x360aa6(0x323,_0x34e6d4._0x31378e,0x2e7,0x314)]&&!_0x597e16['DHSax'](isValidRole,_0x31d81b[_0x3a2cae(-0x179,-_0x34e6d4._0x5062bd,-_0x34e6d4._0x119db3,-0x1a3)])){if(_0x597e16[_0x3a2cae(-0x1c4,-_0x34e6d4._0xddc168,-_0x34e6d4._0x25a19f,-0x236)]===_0x597e16[_0x3a2cae(-_0x34e6d4._0x5be8da,-0x162,-0x19d,-_0x34e6d4._0x405f80)]){const _0x3793bd={};return _0x3793bd[_0x3a2cae(-0x1a7,-0x1de,-0x1d4,-_0x34e6d4._0x4d6c5d)]=_0x12d957,_0x50a07b[_0x360aa6(0x29e,_0x34e6d4._0x36b078,0x29f,_0x34e6d4._0x2b8a83)](_0x597e16[_0x360aa6(_0x34e6d4._0x3d3928,0x365,_0x34e6d4._0x232cee,0x32c)],_0x3793bd),![];}else throw new Error(_0x360aa6(0x2f4,0x2e6,_0x34e6d4._0x39e19c,0x2cb)+_0x3a2cae(-0x167,-0x1c2,-0x1a8,-_0x34e6d4._0x41f749)+_0x31d81b[_0x3a2cae(-0x1cf,-_0x34e6d4._0x428621,-0x1a3,-0x170)]+('.\x20Valid\x20ro'+'les\x20are:\x20a'+'dmin,\x20mana'+_0x360aa6(_0x34e6d4._0x4657ce,0x30c,_0x34e6d4._0x589301,0x2ed)+_0x360aa6(_0x34e6d4._0x5c9de5,_0x34e6d4._0x5d7801,_0x34e6d4._0x2bdcd6,0x310)+'er'));}if(_0x31d81b['permission'+'s'])for(const _0x51ea81 of _0x31d81b[_0x3a2cae(-_0x34e6d4._0x2d3a6b,-0x1ca,-_0x34e6d4._0x576b0f,-0x22d)+'s']){if(!_0x597e16[_0x360aa6(_0x34e6d4._0x3f514b,_0x34e6d4._0x456c8d,0x29a,_0x34e6d4._0x2c7826)](isValidPermission,_0x51ea81)){if(_0x597e16[_0x360aa6(0x2bf,_0x34e6d4._0x39197f,0x2a0,0x2ab)](_0x597e16['wHTJd'],_0x597e16[_0x360aa6(0x33e,_0x34e6d4._0xb87aeb,_0x34e6d4._0x1dbf1f,_0x34e6d4._0x339ea4)]))for(const _0x1824c8 of _0x540bb8[_0x360aa6(_0x34e6d4._0x51d7e5,_0x34e6d4._0x2f86a2,_0x34e6d4._0x547a3b,_0x34e6d4._0x18f93e)+'s']){if(!_0x597e16[_0x360aa6(0x2e7,0x2fb,0x33b,_0x34e6d4._0x3818de)](_0x5912d1,_0x1824c8))throw new _0x4bc9ab(_0x3a2cae(-0x185,-_0x34e6d4._0x17b352,-0x1cd,-0x1c4)+'rmission:\x20'+_0x1824c8);}else throw new Error(_0x3a2cae(-_0x34e6d4._0x7d7d8f,-_0x34e6d4._0x47f08e,-0x1cd,-_0x34e6d4._0x57a978)+_0x360aa6(_0x34e6d4._0xb87aeb,_0x34e6d4._0x1ff179,0x2b2,0x2e0)+_0x51ea81);}}function _0x3a2cae(_0x554160,_0x4bed0a,_0x2cfce4,_0x208545){return _0x4853c0(_0x554160-_0x306014._0x56e841,_0x208545,_0x2cfce4-0x183,_0x2cfce4- -0x56a);}if(_0x31d81b[_0x360aa6(_0x34e6d4._0x1473d0,0x366,0x367,0x32d)])_0x39ccb9[_0x3a2cae(-0x19e,-_0x34e6d4._0x4b63f2,-0x18a,-_0x34e6d4._0x32fd88)]=_0x31d81b[_0x360aa6(0x351,0x361,0x30c,0x32d)];if(_0x31d81b[_0x360aa6(0x27f,0x2a9,_0x34e6d4._0x365976,0x29e)])_0x39ccb9['email']=_0x31d81b[_0x3a2cae(-_0x34e6d4._0x1f7c23,-0x220,-_0x34e6d4._0x47f4be,-_0x34e6d4._0x9198a6)];if(_0x31d81b['name'])_0x39ccb9[_0x3a2cae(-_0x34e6d4._0x107044,-0x1ea,-_0x34e6d4._0x303b81,-_0x34e6d4._0x2b6f9e)]=_0x31d81b['name'];if(_0x31d81b['role'])_0x39ccb9[_0x3a2cae(-0x1e4,-0x1a1,-0x1a3,-_0x34e6d4._0x3e8a57)]=_0x31d81b[_0x360aa6(_0x34e6d4._0x4be98d,0x2ed,_0x34e6d4._0x14ea64,0x314)];if(_0x597e16[_0x3a2cae(-0x210,-_0x34e6d4._0x3d7ed8,-_0x34e6d4._0xa9b9ed,-_0x34e6d4._0x54d9ea)](_0x31d81b[_0x3a2cae(-_0x34e6d4._0x3ce5c7,-_0x34e6d4._0x1d5c35,-_0x34e6d4._0x1f4339,-_0x34e6d4._0x30c6de)+'me'],undefined))_0x39ccb9[_0x3a2cae(-_0x34e6d4._0x46dd45,-_0x34e6d4._0x536fd5,-_0x34e6d4._0x1f4339,-0x1cb)+'me']=_0x31d81b[_0x3a2cae(-_0x34e6d4._0x26ad97,-0x21a,-_0x34e6d4._0x1f4339,-_0x34e6d4._0x1f7c23)+'me'];if(_0x597e16['PnxBY'](_0x31d81b[_0x3a2cae(-0x1e5,-0x1e8,-0x1f8,-_0x34e6d4._0x428621)+'s'],undefined)){if(_0x597e16[_0x360aa6(_0x34e6d4._0x124a3a,_0x34e6d4._0x29d7e6,_0x34e6d4._0x9fa4c4,_0x34e6d4._0x2ce949)](_0x31d81b['permission'+'s']['length'],0x32f*0x3+0x625*0x1+-0xfb2)){if(_0x597e16['RgGNb'](_0x597e16[_0x3a2cae(-0x174,-0x15d,-0x191,-0x184)],_0x597e16['KnoaD']))throw new _0x32fa85(_0x597e16[_0x3a2cae(-0x1bc,-_0x34e6d4._0x4f6556,-0x1dc,-0x20c)]);else _0x39ccb9['permission'+'s']=_0x31d81b[_0x3a2cae(-0x214,-0x1ac,-_0x34e6d4._0x36ff5a,-0x219)+'s'];}else delete _0x39ccb9['permission'+'s'];}if(_0x597e16[_0x360aa6(0x31c,0x30d,0x2a0,0x2d8)](_0x31d81b['avatar'],undefined))_0x39ccb9[_0x360aa6(_0x34e6d4._0xddccb8,0x2a7,0x2b0,_0x34e6d4._0x47de94)]=_0x31d81b['avatar'];_0x31d81b[_0x360aa6(0x30a,0x2f7,_0x34e6d4._0x39197f,0x2be)+'s']&&(_0x597e16['WJpLL']!==_0x597e16[_0x360aa6(_0x34e6d4._0x4a9502,_0x34e6d4._0x48fcc6,_0x34e6d4._0x36930c,0x31c)]?_0x39ccb9['preference'+'s']={..._0x39ccb9[_0x3a2cae(-_0x34e6d4._0x172b1b,-_0x34e6d4._0x42c0d0,-_0x34e6d4._0x2afeb2,-_0x34e6d4._0x49d94a)+'s']||{},..._0x31d81b[_0x360aa6(_0x34e6d4._0x2df83e,_0x34e6d4._0xdcc1df,_0x34e6d4._0x1c9a0b,_0x34e6d4._0x1236df)+'s']}:(_0x527933['role']=_0x278f3f,_0x389507=!![]));if(_0x31d81b[_0x3a2cae(-_0x34e6d4._0xdeef6,-_0x34e6d4._0x2b0f99,-_0x34e6d4._0xdeef6,-_0x34e6d4._0x38fd18)]){if(_0x597e16[_0x360aa6(_0x34e6d4._0x308e5d,0x2f5,0x32d,_0x34e6d4._0x3aeeb2)](_0x3a2cae(-_0x34e6d4._0x26119c,-_0x34e6d4._0x40a325,-0x209,-_0x34e6d4._0x23e64e),_0x360aa6(0x313,0x2cf,_0x34e6d4._0x339ea4,_0x34e6d4._0x2864a8))){if(!_0x597e16[_0x3a2cae(-_0x34e6d4._0x59c47d,-0x1e3,-0x1be,-_0x34e6d4._0x19bb8f)](_0x558cd5,_0x3db992))throw new _0x1183fb(_0x360aa6(_0x34e6d4._0x47463c,0x2db,0x29e,_0x34e6d4._0x4c9661)+_0x360aa6(_0x34e6d4._0x5c8a78,0x312,_0x34e6d4._0x3b4d40,0x2e0)+_0x5efc3f);}else _0x39ccb9[_0x3a2cae(-0x207,-_0x34e6d4._0x3b926e,-_0x34e6d4._0x50ddc0,-_0x34e6d4._0x1a970b)+_0x360aa6(0x2e4,0x2c0,0x304,0x304)]=await _0x597e16['sfcIf'](hashPassword,_0x31d81b['password']);}_0x39ccb9[_0x3a2cae(-_0x34e6d4._0x3dc191,-_0x34e6d4._0x5be8da,-0x19f,-0x172)]=new Date()[_0x3a2cae(-_0x34e6d4._0x466df9,-0x1df,-0x1ac,-0x198)+'g'](),await _0x597e16[_0x3a2cae(-0x260,-_0x34e6d4._0x20a136,-0x215,-_0x34e6d4._0x365868)](saveUsers,_0x53c911),logger['info'](_0x597e16[_0x3a2cae(-0x21f,-0x22c,-0x1ef,-_0x34e6d4._0x43da73)],{'userId':_0x39ccb9['id'],'username':_0x39ccb9[_0x3a2cae(-0x1a0,-_0x34e6d4._0x27396b,-0x18a,-0x1a7)],'updatedFields':Object[_0x360aa6(_0x34e6d4._0x2ec0b9,_0x34e6d4._0x4b5e78,_0x34e6d4._0x1236df,_0x34e6d4._0x566495)](_0x31d81b)[_0x360aa6(0x281,0x291,_0x34e6d4._0x14056b,0x2ce)](',\x20')});function _0x360aa6(_0x8a441,_0x1347af,_0x13d099,_0x16e1ae){return _0x4853c0(_0x8a441-_0x45db8e._0x1be11e,_0x1347af,_0x13d099-0x1a2,_0x16e1ae- -0xb3);}const {password_hash:_0x272c94,..._0x385421}=_0x39ccb9;return _0x385421;}export async function deleteUser(_0x5b235b){const _0x1ab732={_0x514cb2:0x162,_0x5570d4:0x140,_0x35fb27:0x112,_0x2b2b16:0x1e8,_0x58965f:0x19e,_0x25d440:0xf4,_0xc561d2:0xfb,_0x612744:0x12e,_0x5ac5ef:0x136,_0x517fe5:0x170,_0x559905:0x164,_0x6eba53:0x160,_0xc2b16e:0xe7,_0x353d81:0xf8,_0x41f364:0x115,_0x32ca79:0x15c,_0x2e8f69:0x126,_0xfbb4a4:0x167,_0x43827d:0x175},_0x275bdd={_0x32a0ef:0x361,_0xfe29a8:0xd6,_0x45558b:0x18d},_0x33fc6c={_0x5f7bea:0xc7,_0x101839:0xdf,_0x2f722a:0x16f};function _0x28c1d6(_0x2c9144,_0x4d2872,_0x24d987,_0x50c47a){return _0x2c50d1(_0x4d2872-_0x33fc6c._0x5f7bea,_0x4d2872-_0x33fc6c._0x101839,_0x24d987-_0x33fc6c._0x2f722a,_0x2c9144);}const _0x50d054={'yosMQ':_0x28c1d6(-_0x1ab732._0x514cb2,-_0x1ab732._0x5570d4,-_0x1ab732._0x35fb27,-0x182)+_0x594079(_0x1ab732._0x2b2b16,0x193,_0x1ab732._0x58965f,0x1ae)+_0x594079(_0x1ab732._0x25d440,_0x1ab732._0xc561d2,0x166,0x129),'HEjDa':function(_0x532779,_0x1b0bb3){return _0x532779(_0x1b0bb3);},'SKKYh':'Deleted\x20us'+'er'},_0x570044=await getUsers(),_0x4c9f74=_0x570044[_0x594079(_0x1ab732._0x612744,_0x1ab732._0x5ac5ef,0x1a6,_0x1ab732._0x517fe5)](_0x1df6c9=>_0x1df6c9['id']===_0x5b235b);if(_0x4c9f74===-(0x6dc*-0x1+-0x26*0x9a+0x1db9)){const _0x57e027={};return _0x57e027[_0x28c1d6(-0x146,-0x133,-_0x1ab732._0x559905,-0x121)]=_0x5b235b,logger[_0x28c1d6(-0x12d,-0x165,-0x13c,-_0x1ab732._0x6eba53)](_0x50d054[_0x594079(0x162,0x151,0x18a,0x195)],_0x57e027),![];}const _0x4040ae=_0x570044[_0x4c9f74];_0x570044[_0x28c1d6(-0xc5,-_0x1ab732._0xc2b16e,-0x113,-0x125)](_0x4c9f74,-0x2346+0x14e*0x1+-0x21f9*-0x1),await _0x50d054[_0x594079(_0x1ab732._0x353d81,_0x1ab732._0x41f364,_0x1ab732._0x32ca79,0x120)](saveUsers,_0x570044);const _0x195539={};_0x195539[_0x594079(0x16e,0x16e,_0x1ab732._0x2e8f69,_0x1ab732._0xfbb4a4)]=_0x4040ae['id'];function _0x594079(_0x5d0ece,_0xe12ba,_0x4aa8df,_0x303e89){return _0x2c50d1(_0x303e89-_0x275bdd._0x32a0ef,_0xe12ba-_0x275bdd._0xfe29a8,_0x4aa8df-_0x275bdd._0x45558b,_0x4aa8df);}return _0x195539['username']=_0x4040ae['username'],logger['info'](_0x50d054[_0x594079(_0x1ab732._0x43827d,0x136,0x17f,0x140)],_0x195539),!![];}export async function setUserPassword(_0x40fc8b,_0x4fe6b0){const _0x2bb8b0={_0x4ba489:0x3c8,_0x30fa82:0x25,_0x3b224e:0x27,_0x41818c:0x3c1,_0x8bd722:0x40d,_0x5cb8cd:0x3e2,_0x3a1d73:0x3e2,_0x1f6792:0x3e5,_0xa05d18:0x3bc,_0x45acc9:0x3a,_0x9e44be:0x2,_0x1055f5:0x0,_0x11f9b2:0xb,_0x57f755:0x3e8,_0x44ca49:0x427,_0x17915a:0x411,_0x1e7845:0x3f2,_0x2c1ab5:0x3b2,_0x24b01f:0x15,_0x3a0ff2:0x2,_0xe3bbe6:0x43c,_0x169b3f:0x484,_0x41cdf0:0xb7,_0x4a44b9:0x7f,_0x11a8a0:0x2a,_0x386475:0x3f,_0x575f7b:0x22},_0x22f8c8={_0x951b65:0x5ec,_0x141920:0x18d,_0x533479:0x67},_0x4ecb60={_0x522f2c:0x92,_0xfd00b8:0x3b7},_0x79bb24={'FTgAW':function(_0x674462,_0x3b145c){return _0x674462===_0x3b145c;},'EUQEK':function(_0x2005eb,_0x377349){return _0x2005eb(_0x377349);},'cFXbW':'Set\x20passwo'+_0x5d8792(0x410,0x3a6,0x3e3,_0x2bb8b0._0x4ba489)+'r'},_0x9c7e5c=await getUsers();function _0x9ca2f8(_0x44f579,_0x1ecbf8,_0xb00142,_0x2f05d9){return _0x4853c0(_0x44f579-_0x4ecb60._0x522f2c,_0x1ecbf8,_0xb00142-0x1df,_0x2f05d9- -_0x4ecb60._0xfd00b8);}const _0x6ac88b=_0x9c7e5c[_0x9ca2f8(_0x2bb8b0._0x30fa82,_0x2bb8b0._0x3b224e,-0x36,-0x18)](_0x18fad8=>_0x18fad8['id']===_0x40fc8b);if(_0x79bb24[_0x5d8792(_0x2bb8b0._0x41818c,0x42a,_0x2bb8b0._0x8bd722,_0x2bb8b0._0x5cb8cd)](_0x6ac88b,-(-0x5*0x52a+-0x16c+0x117*0x19)))throw new Error(_0x5d8792(0x3bc,_0x2bb8b0._0x3a1d73,_0x2bb8b0._0x1f6792,_0x2bb8b0._0xa05d18)+_0x9ca2f8(-0x5,-0xe,-_0x2bb8b0._0x45acc9,-0x19)+_0x40fc8b);const _0x1f1f71=_0x9c7e5c[_0x6ac88b];_0x1f1f71['password_h'+_0x9ca2f8(0x4d,-0x19,_0x2bb8b0._0x9e44be,_0x2bb8b0._0x1055f5)]=await _0x79bb24[_0x9ca2f8(0x4,0x38,-_0x2bb8b0._0x11f9b2,_0x2bb8b0._0x3b224e)](hashPassword,_0x4fe6b0),_0x1f1f71[_0x5d8792(0x44e,_0x2bb8b0._0x57f755,_0x2bb8b0._0x44ca49,0x3fb)]=new Date()['toISOStrin'+'g'](),await saveUsers(_0x9c7e5c);const _0xa36ebb={};_0xa36ebb[_0x5d8792(0x3cb,_0x2bb8b0._0x17915a,_0x2bb8b0._0x1e7845,_0x2bb8b0._0x2c1ab5)]=_0x1f1f71['id'];function _0x5d8792(_0x1cb391,_0x467cb0,_0x55074,_0x46376d){return _0x2c50d1(_0x55074-_0x22f8c8._0x951b65,_0x467cb0-_0x22f8c8._0x141920,_0x55074-_0x22f8c8._0x533479,_0x467cb0);}_0xa36ebb[_0x9ca2f8(_0x2bb8b0._0x24b01f,_0x2bb8b0._0x3a0ff2,0x75,0x29)]=_0x1f1f71[_0x5d8792(0x465,0x445,_0x2bb8b0._0xe3bbe6,_0x2bb8b0._0x169b3f)],logger[_0x9ca2f8(-_0x2bb8b0._0x41cdf0,-_0x2bb8b0._0x4a44b9,-0x30,-0x6c)](_0x79bb24[_0x9ca2f8(-_0x2bb8b0._0x11a8a0,-_0x2bb8b0._0x386475,_0x2bb8b0._0x575f7b,-0x12)],_0xa36ebb);const {password_hash:_0x19e43d,..._0x5a8911}=_0x1f1f71;return _0x5a8911;}