@profoundlogic/coderflow-server 0.4.9 → 0.5.1

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 (185) hide show
  1. package/README.md +16 -158
  2. package/dist/README.md +16 -158
  3. package/dist/base-image/agent-wrapper.sh +1 -1
  4. package/dist/capture-screenshot.mjs +34 -0
  5. package/dist/coder-server.js +1 -1
  6. package/dist/config/cli-models.json +4 -3
  7. package/dist/config.js +1 -1
  8. package/dist/lib/agent-keepalive.js +1 -1
  9. package/dist/lib/agent-models.js +1 -1
  10. package/dist/lib/api-keys.js +1 -1
  11. package/dist/lib/apiKeys.js +1 -1
  12. package/dist/lib/app-server-ports.js +1 -1
  13. package/dist/lib/auto-judge.js +1 -1
  14. package/dist/lib/automation-service.js +1 -1
  15. package/dist/lib/basic-auth.js +1 -1
  16. package/dist/lib/bindings.js +1 -1
  17. package/dist/lib/build-history.js +1 -1
  18. package/dist/lib/build-output-service.js +1 -1
  19. package/dist/lib/build-scheduler.js +1 -1
  20. package/dist/lib/build-service.js +1 -1
  21. package/dist/lib/ca-certificates.js +1 -1
  22. package/dist/lib/claude-oauth-refresh.js +1 -1
  23. package/dist/lib/cli/build.js +1 -1
  24. package/dist/lib/cli/cleanup-users.js +1 -0
  25. package/dist/lib/cli/config-command.js +1 -1
  26. package/dist/lib/cli/config.js +1 -1
  27. package/dist/lib/cli/create-user.js +1 -1
  28. package/dist/lib/cli/grant-admin.js +1 -0
  29. package/dist/lib/cli/init.js +1 -1
  30. package/dist/lib/cli/jira.js +1 -1
  31. package/dist/lib/cli/license.js +1 -1
  32. package/dist/lib/cli/list-roles.js +1 -0
  33. package/dist/lib/cli/list-users.js +1 -0
  34. package/dist/lib/cli/server-manager.js +1 -1
  35. package/dist/lib/cli/set-password.js +1 -0
  36. package/dist/lib/config-migration.js +1 -1
  37. package/dist/lib/container-credential-sync.js +1 -1
  38. package/dist/lib/container-tokens.js +1 -1
  39. package/dist/lib/data-dir.js +1 -1
  40. package/dist/lib/deployment-history.js +1 -1
  41. package/dist/lib/deployment-service.js +1 -1
  42. package/dist/lib/docker-utils.js +1 -1
  43. package/dist/lib/email.js +1 -1
  44. package/dist/lib/emailTemplates.js +1 -1
  45. package/dist/lib/entitlement.js +1 -1
  46. package/dist/lib/external-connections.js +1 -1
  47. package/dist/lib/fetch-utils.js +1 -1
  48. package/dist/lib/git-commit-details-route.js +1 -1
  49. package/dist/lib/git-history-diff-guardrails.js +1 -1
  50. package/dist/lib/git-provider-service.js +1 -1
  51. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  52. package/dist/lib/git-provider-setup/index.js +1 -1
  53. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  54. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  55. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  56. package/dist/lib/git-providers/github-app-provider.js +1 -1
  57. package/dist/lib/git-providers/index.js +1 -1
  58. package/dist/lib/git-providers/provider-factory.js +1 -1
  59. package/dist/lib/git-providers/provider-interface.js +1 -1
  60. package/dist/lib/github-urls.js +1 -1
  61. package/dist/lib/group-objective-linking.js +1 -1
  62. package/dist/lib/ibmi-sync.js +1 -0
  63. package/dist/lib/jira-client.js +1 -1
  64. package/dist/lib/judge-blinding.js +1 -1
  65. package/dist/lib/logger.js +1 -1
  66. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  67. package/dist/lib/model-fetcher.js +1 -1
  68. package/dist/lib/notifications.js +1 -1
  69. package/dist/lib/objective-context.js +1 -1
  70. package/dist/lib/oidc-auth.js +1 -1
  71. package/dist/lib/oidc-device-flow.js +1 -1
  72. package/dist/lib/passwordTokens.js +1 -1
  73. package/dist/lib/permission-resolver.js +1 -1
  74. package/dist/lib/pin-cascade.js +1 -1
  75. package/dist/lib/provider-accounts.js +1 -1
  76. package/dist/lib/provider-oauth.js +1 -1
  77. package/dist/lib/provider-profile.js +1 -1
  78. package/dist/lib/provider-token-refresh.js +1 -1
  79. package/dist/lib/rbac-user-state.js +1 -1
  80. package/dist/lib/request-url.js +1 -1
  81. package/dist/lib/rewind.js +1 -1
  82. package/dist/lib/role-definitions.js +1 -1
  83. package/dist/lib/roles.js +1 -1
  84. package/dist/lib/secrets.js +1 -1
  85. package/dist/lib/setup-repo-git-auth.js +1 -1
  86. package/dist/lib/state-capture.js +1 -1
  87. package/dist/lib/static-files.js +1 -1
  88. package/dist/lib/task-name-format.js +1 -1
  89. package/dist/lib/task-name-generator.js +1 -1
  90. package/dist/lib/task-source-metadata.js +1 -1
  91. package/dist/lib/teams.js +1 -1
  92. package/dist/lib/user-git-oauth.js +1 -1
  93. package/dist/lib/user-git-tokens.js +1 -1
  94. package/dist/lib/users.js +1 -1
  95. package/dist/middleware/requireAuth.js +1 -1
  96. package/dist/middleware/requireInit.js +1 -1
  97. package/dist/middleware/requirePermission.js +1 -1
  98. package/dist/package.json +1 -1
  99. package/dist/playwright.config.js +1 -1
  100. package/dist/routes/apiKeys.js +1 -1
  101. package/dist/routes/auth-oidc.js +1 -1
  102. package/dist/routes/auth.js +1 -1
  103. package/dist/routes/automations.js +1 -1
  104. package/dist/routes/bindings.js +1 -1
  105. package/dist/routes/build.js +1 -1
  106. package/dist/routes/containers.js +1 -1
  107. package/dist/routes/deploy-task.js +1 -1
  108. package/dist/routes/environment-management.js +1 -1
  109. package/dist/routes/environments.js +1 -1
  110. package/dist/routes/external-skills.js +1 -1
  111. package/dist/routes/git-credentials.js +1 -1
  112. package/dist/routes/git-oauth.js +1 -1
  113. package/dist/routes/git-provider-setup.js +1 -1
  114. package/dist/routes/health.js +1 -1
  115. package/dist/routes/jira.js +1 -1
  116. package/dist/routes/objective-management.js +1 -1
  117. package/dist/routes/password.js +1 -1
  118. package/dist/routes/prompt.js +1 -1
  119. package/dist/routes/provider-auth.js +1 -1
  120. package/dist/routes/qa.js +1 -1
  121. package/dist/routes/roles.js +1 -1
  122. package/dist/routes/settings.js +1 -1
  123. package/dist/routes/skill-management.js +1 -1
  124. package/dist/routes/skills.js +1 -1
  125. package/dist/routes/tasks.js +1 -1
  126. package/dist/routes/teams.js +1 -1
  127. package/dist/routes/templates.js +1 -1
  128. package/dist/routes/test-task.js +1 -1
  129. package/dist/routes/test.js +1 -1
  130. package/dist/routes/users.js +1 -1
  131. package/dist/routes/visualizations.js +1 -1
  132. package/dist/scripts/create-user.js +1 -1
  133. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  134. package/dist/scripts/sync_to_ibmi.sh +204 -0
  135. package/dist/start.js +1 -1
  136. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  137. package/dist/web-ui/public/activity-feed.js +1 -1
  138. package/dist/web-ui/public/activity-formatters.js +1 -1
  139. package/dist/web-ui/public/agent-event-parser.js +1 -1
  140. package/dist/web-ui/public/app.js +1 -1
  141. package/dist/web-ui/public/approve-dialog.js +1 -1
  142. package/dist/web-ui/public/automation-links.js +1 -1
  143. package/dist/web-ui/public/automation-schedule.js +1 -1
  144. package/dist/web-ui/public/comments-widget.js +1 -1
  145. package/dist/web-ui/public/diff-utils.js +1 -1
  146. package/dist/web-ui/public/docs/admin/environments.md +1 -0
  147. package/dist/web-ui/public/docs/tasks/approval-and-deployment.md +36 -0
  148. package/dist/web-ui/public/environments.html +1 -1
  149. package/dist/web-ui/public/environments.js +1 -1
  150. package/dist/web-ui/public/feedback-widget.js +1 -1
  151. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  152. package/dist/web-ui/public/git-history.js +1 -1
  153. package/dist/web-ui/public/git-status.js +1 -1
  154. package/dist/web-ui/public/index.html +2 -2
  155. package/dist/web-ui/public/index.js +1 -1
  156. package/dist/web-ui/public/login.js +1 -1
  157. package/dist/web-ui/public/markdown-editor.js +1 -1
  158. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  159. package/dist/web-ui/public/modal-maximize.js +1 -1
  160. package/dist/web-ui/public/notifications.js +1 -1
  161. package/dist/web-ui/public/pr-dialog.js +1 -1
  162. package/dist/web-ui/public/roles.html +3 -2
  163. package/dist/web-ui/public/roles.js +1 -1
  164. package/dist/web-ui/public/server-health.js +1 -1
  165. package/dist/web-ui/public/settings.css +3 -2
  166. package/dist/web-ui/public/settings.html +0 -1
  167. package/dist/web-ui/public/settings.js +1 -1
  168. package/dist/web-ui/public/setup-password.js +1 -1
  169. package/dist/web-ui/public/skills.js +1 -1
  170. package/dist/web-ui/public/sse-client.js +1 -1
  171. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  172. package/dist/web-ui/public/styles.css +110 -12
  173. package/dist/web-ui/public/task.html +80 -1
  174. package/dist/web-ui/public/task.js +1 -1
  175. package/dist/web-ui/public/teams.html +76 -81
  176. package/dist/web-ui/public/teams.js +1 -1
  177. package/dist/web-ui/public/terminal.js +1 -1
  178. package/dist/web-ui/public/theme.js +1 -1
  179. package/dist/web-ui/public/users.html +12 -11
  180. package/dist/web-ui/public/users.js +1 -1
  181. package/dist/web-ui/public/variant-grouping.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/lib/cli/migrate-rbac.js +0 -1
  184. package/dist/lib/scoped-rbac-migration-runner.js +0 -1
  185. package/dist/scripts/migrate-to-scoped-rbac.js +0 -2
package/dist/lib/teams.js CHANGED
@@ -1 +1 @@
1
- function _0x5e30(_0x44a7ca,_0x30333d){_0x44a7ca=_0x44a7ca-(-0x181d+-0x207*0x11+0x3c13);const _0x365b50=_0x2210();let _0x3814d0=_0x365b50[_0x44a7ca];if(_0x5e30['TyeSFZ']===undefined){var _0x527cc6=function(_0x4ef0ec){const _0x1f24be='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d8778='',_0x2c6983='';for(let _0x3c63f1=0x21f+0x1a9f+0xe5f*-0x2,_0x442df7,_0x14c861,_0x4b8688=-0x243*0x1+0xfee+-0xdab;_0x14c861=_0x4ef0ec['charAt'](_0x4b8688++);~_0x14c861&&(_0x442df7=_0x3c63f1%(0x21*0x89+-0x40*0x36+-0x425*0x1)?_0x442df7*(-0x1662+-0x1f*-0xf7+-0x747)+_0x14c861:_0x14c861,_0x3c63f1++%(-0x14*-0xa1+0x948+-0x576*0x4))?_0x1d8778+=String['fromCharCode'](0x14*-0x10+0x22fe+-0x20bf&_0x442df7>>(-(0x10f*-0x20+0x255b*0x1+-0x379)*_0x3c63f1&0xb5*-0x22+0x1603+0x20d)):-0x52*-0x64+-0x21e4+-0x7*-0x44){_0x14c861=_0x1f24be['indexOf'](_0x14c861);}for(let _0x2cc323=0x9*0xf7+-0xf90+-0x6e1*-0x1,_0x469489=_0x1d8778['length'];_0x2cc323<_0x469489;_0x2cc323++){_0x2c6983+='%'+('00'+_0x1d8778['charCodeAt'](_0x2cc323)['toString'](0x1*0xe6f+0xb0f+-0x196e))['slice'](-(-0x4*-0x8e1+0x199e+-0xa30*0x6));}return decodeURIComponent(_0x2c6983);};_0x5e30['lmCukO']=_0x527cc6,_0x5e30['vOVzno']={},_0x5e30['TyeSFZ']=!![];}const _0x5b1fac=_0x365b50[0x1*0xead+0x1*0x1ce1+-0x8b6*0x5],_0x2db655=_0x44a7ca+_0x5b1fac,_0x541b43=_0x5e30['vOVzno'][_0x2db655];return!_0x541b43?(_0x3814d0=_0x5e30['lmCukO'](_0x3814d0),_0x5e30['vOVzno'][_0x2db655]=_0x3814d0):_0x3814d0=_0x541b43,_0x3814d0;}(function(_0x60a993,_0xdede06){const _0x430db0={_0x1259c8:0x236,_0x15f104:0x1fb,_0x37aa37:0x22b,_0x3da94d:0x23e,_0x2508e9:0x196,_0xd95758:0x191,_0x456685:0x166,_0xe86891:0x15a,_0x5ea157:0x1ae,_0x47bbb7:0x266,_0x5229ca:0x292,_0x4f8005:0x2da,_0x3a658d:0x160,_0x551392:0x214,_0x55317f:0x24a,_0x4511fa:0x1a2,_0x1aeabc:0x1ae,_0x1d3707:0x1ed};function _0xd398fe(_0x51836a,_0x33d76f,_0x3fa526,_0x3c0067){return _0x5e30(_0x51836a- -0x5b,_0x3c0067);}function _0x25dedf(_0x385788,_0x330891,_0x5745b5,_0xd38860){return _0x5e30(_0x330891-0x88,_0x385788);}const _0x523fad=_0x60a993();while(!![]){try{const _0x411b71=-parseInt(_0x25dedf(0x1f1,_0x430db0._0x1259c8,0x20b,_0x430db0._0x15f104))/(0x1465*0x1+0xb2a*0x1+-0x1f8e)*(parseInt(_0x25dedf(0x21e,0x20a,0x1f7,_0x430db0._0x37aa37))/(-0x1867*-0x1+-0x557*0x3+-0x860))+-parseInt(_0x25dedf(0x1fc,_0x430db0._0x3da94d,0x227,0x213))/(-0x765+-0x7fe+0xf66)*(parseInt(_0xd398fe(_0x430db0._0x2508e9,0x184,0x194,0x15f))/(0x266f+-0x3*-0xb93+-0x4924))+-parseInt(_0xd398fe(_0x430db0._0xd95758,_0x430db0._0x456685,_0x430db0._0xe86891,_0x430db0._0x5ea157))/(-0x2281+-0x1*0x1380+0x3606)+parseInt(_0x25dedf(_0x430db0._0x47bbb7,_0x430db0._0x5229ca,0x2a9,_0x430db0._0x4f8005))/(-0x1de3+-0x1951+-0x1b9d*-0x2)+parseInt(_0xd398fe(_0x430db0._0x3a658d,0x129,0x126,0x140))/(-0x34+-0x3*0x8d+0x1*0x1e2)+parseInt(_0x25dedf(0x1f2,0x234,_0x430db0._0x551392,_0x430db0._0x55317f))/(0x2186+0xe51+-0x1*0x2fcf)*(parseInt(_0xd398fe(0x197,0x180,0x169,_0x430db0._0x4511fa))/(0x1e57+0x1a66+-0xe2d*0x4))+parseInt(_0xd398fe(_0x430db0._0x1aeabc,0x1e5,_0x430db0._0x1d3707,0x169))/(0x4a*-0x71+-0x21*-0x21+0x1c73*0x1);if(_0x411b71===_0xdede06)break;else _0x523fad['push'](_0x523fad['shift']());}catch(_0x513d6d){_0x523fad['push'](_0x523fad['shift']());}}}(_0x2210,-0x1c0a1+0x1*-0xdf870+0x1ac999));import{promises as _0x563b0b}from'fs';import _0x5f06fd from'path';import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';const TEAMS_FILE=_0x5f06fd[_0x2eaff8(-0x166,-0x1c6,-0x193,-0x18d)](DATA_DIR,'teams.json');let teamsCache=null;export async function loadTeams(){const _0x2fa7fc={_0xb00687:0x44,_0x3877d1:0x2b,_0x33a3ce:0xd6,_0x1616b9:0x29,_0xcf718b:0x38,_0x34f566:0x3a,_0x17e8f4:0x12,_0x2f5e6a:0x3e,_0x38e54b:0x7c,_0x3d2b49:0x7,_0x27c02f:0x14,_0x4462e7:0x3b,_0x4c570b:0x8b,_0x1e3b94:0x7a,_0x1f5b41:0x37,_0x7b8cff:0x2,_0x139ed7:0x5,_0x18e02f:0x30,_0x305327:0x9a,_0x458947:0x10f,_0x2761dc:0xb5,_0x1fddf4:0xcd,_0x51967f:0x40,_0x35a204:0xb3,_0x52ce33:0x107,_0x2a24b8:0xd4,_0x5e28b2:0x9,_0x7e8a33:0x5e,_0x582580:0x1a,_0x6804e8:0x2d,_0x259802:0x27,_0x1281d5:0x7e,_0x3d36c7:0xc4,_0x5276a6:0x1f,_0x128d9d:0x3,_0x4b31d0:0xc,_0x3b575e:0xbd,_0x4ecc53:0xb0,_0x16b957:0x2a,_0x454b2e:0x68,_0x6b70bc:0x78,_0x1154cd:0x8b,_0x432d7e:0x58,_0x1bb66b:0x65,_0xd59cc8:0x1,_0x442382:0x11,_0x1239c0:0xec,_0x2c357e:0xd3,_0x2e4c6a:0x13,_0x2e0dfd:0x28,_0x78988e:0xfa,_0x41bee9:0x46,_0x20bb94:0x8a,_0x5b79ac:0x11},_0x131a6b={_0x38dcd7:0x11d,_0x4d812a:0x119,_0x18e5fd:0xb5},_0x2e32fb={_0x45c5df:0xad,_0x23a3ff:0xd8,_0x1d8f21:0x150},_0x43113f={};_0x43113f[_0x2b97e4(0x13,0xc,_0x2fa7fc._0xb00687,_0x2fa7fc._0x3877d1)]=_0x294440(-0xb7,-0x9f,-_0x2fa7fc._0x33a3ce,-0x6d),_0x43113f['JRVzb']=_0x2b97e4(-_0x2fa7fc._0x1616b9,-_0x2fa7fc._0xcf718b,-_0x2fa7fc._0x34f566,-_0x2fa7fc._0x17e8f4)+_0x2b97e4(_0x2fa7fc._0x2f5e6a,0x5c,_0x2fa7fc._0x38e54b,_0x2fa7fc._0x17e8f4)+'le',_0x43113f[_0x2b97e4(_0x2fa7fc._0x3d2b49,-_0x2fa7fc._0x27c02f,-_0x2fa7fc._0x4462e7,0x1a)]=function(_0x207ba6,_0x3dbecc){return _0x207ba6!==_0x3dbecc;},_0x43113f[_0x294440(-0xd3,-_0x2fa7fc._0x4c570b,-0x59,-0x6d)]='ErpSa',_0x43113f['livHR']=function(_0x42b99b,_0xbaf02e){return _0x42b99b===_0xbaf02e;};function _0x2b97e4(_0x52d6d3,_0x4629ed,_0x2e22bb,_0xed7e81){return _0x2eaff8(_0x52d6d3-_0x2e32fb._0x45c5df,_0x4629ed-_0x2e32fb._0x23a3ff,_0x52d6d3-_0x2e32fb._0x1d8f21,_0xed7e81);}function _0x294440(_0x5db11c,_0xaffe5b,_0x33ffea,_0x3df349){return _0x2eaff8(_0x5db11c-_0x131a6b._0x38dcd7,_0xaffe5b-_0x131a6b._0x4d812a,_0xaffe5b-_0x131a6b._0x18e5fd,_0x3df349);}_0x43113f[_0x294440(-0x89,-_0x2fa7fc._0x1e3b94,-0x5d,-_0x2fa7fc._0x1f5b41)]=_0x2b97e4(-_0x2fa7fc._0x7b8cff,-0x1d,-0x2,_0x2fa7fc._0x139ed7),_0x43113f['oWlhd']='Teams\x20file'+_0x2b97e4(-_0x2fa7fc._0x18e02f,0xf,-0x38,_0x2fa7fc._0x139ed7)+_0x294440(-0xf1,-0xcf,-_0x2fa7fc._0x305327,-_0x2fa7fc._0x458947)+_0x294440(-0x97,-0xb1,-_0x2fa7fc._0x2761dc,-_0x2fa7fc._0x1fddf4)+_0x2b97e4(0x38,_0x2fa7fc._0x51967f,0x75,-0x1),_0x43113f['sBUvi']=_0x294440(-_0x2fa7fc._0x35a204,-0xe0,-_0x2fa7fc._0x52ce33,-_0x2fa7fc._0x2a24b8)+'load\x20teams';const _0x54104b=_0x43113f;try{await _0x563b0b['access'](TEAMS_FILE);const _0x5acebe=await _0x563b0b[_0x2b97e4(-0x3f,_0x2fa7fc._0x5e28b2,-0x76,-_0x2fa7fc._0x7e8a33)](TEAMS_FILE,_0x2b97e4(_0x2fa7fc._0x582580,0x27,-_0x2fa7fc._0x6804e8,-_0x2fa7fc._0x259802)),_0xf93f98=JSON['parse'](_0x5acebe);teamsCache=_0xf93f98[_0x294440(-0x47,-_0x2fa7fc._0x1281d5,-_0x2fa7fc._0x3d36c7,-0xac)]||[];const _0x306f94={};return _0x306f94['count']=teamsCache[_0x2b97e4(0x6,-_0x2fa7fc._0x5276a6,-_0x2fa7fc._0x128d9d,-_0x2fa7fc._0x4b31d0)],logger[_0x294440(-_0x2fa7fc._0x1fddf4,-_0x2fa7fc._0x3b575e,-0xe5,-_0x2fa7fc._0x4ecc53)](_0x54104b[_0x2b97e4(-_0x2fa7fc._0x5276a6,-_0x2fa7fc._0x16b957,-_0x2fa7fc._0x454b2e,0x1b)],_0x306f94),teamsCache;}catch(_0x41475d){if(_0x54104b['Qtjzr'](_0x54104b[_0x294440(-_0x2fa7fc._0x6b70bc,-_0x2fa7fc._0x1154cd,-_0x2fa7fc._0x432d7e,-_0x2fa7fc._0x1bb66b)],_0x54104b[_0x2b97e4(0x10,_0x2fa7fc._0xd59cc8,0x47,-_0x2fa7fc._0x442382)])){const _0x1c5095=new _0x22e39b('Team\x20\x27'+_0x300567+('\x27\x20not\x20foun'+'d'));_0x1c5095[_0x294440(-_0x2fa7fc._0x1239c0,-_0x2fa7fc._0x2c357e,-0xcb,-0xba)]=_0x54104b[_0x2b97e4(_0x2fa7fc._0x2e4c6a,_0x2fa7fc._0x2e0dfd,0x45,0x38)];throw _0x1c5095;}else{if(_0x54104b[_0x294440(-_0x2fa7fc._0x78988e,-0xc0,-0xd0,-0xf6)](_0x41475d['code'],_0x54104b['toNUr']))return teamsCache=[],logger[_0x2b97e4(_0x2fa7fc._0x41bee9,0x7d,_0x2fa7fc._0x20bb94,_0x2fa7fc._0x5b79ac)](_0x54104b[_0x2b97e4(-0x3e,-0x45,-0xc,-0x78)]),teamsCache;logger['error'](_0x54104b[_0x294440(-0x9a,-0x6e,-0x5e,-0x8f)],_0x41475d);throw _0x41475d;}}}function _0x2eaff8(_0x12a863,_0x25cd39,_0x270adc,_0x131089){return _0x5e30(_0x270adc- -0x319,_0x131089);}export async function saveTeams(_0xb8ef44){const _0x45aa78={_0x53e4a8:0x368,_0x6722ca:0x303,_0x497348:0x326,_0x4b6e4a:0x33c,_0x22db9d:0x36f,_0x3e730d:0x360,_0x2ae748:0x333,_0x32dfad:0xdb,_0x5bf74b:0xeb,_0x4363a2:0xe0,_0x250b79:0xaf,_0x2d97ec:0xc6,_0x53bbc6:0x2fe,_0x5065ba:0x316,_0x3d6dd5:0xbf,_0x2e030c:0x11a,_0x43068f:0x355,_0x32137b:0x35c,_0x5443c4:0x342,_0x24165f:0x30d,_0x4b2892:0x315,_0x42c930:0x329,_0x5af5c5:0x358,_0x1c9546:0x33b,_0x5a3dfa:0x372,_0x17e383:0x338,_0x32117a:0x341,_0x4259dc:0x37f,_0x234477:0x353,_0x49b5be:0x33d,_0x182186:0x35e,_0x37c684:0x335,_0x307a19:0x32b,_0x5a5746:0x35b,_0x23f6ee:0x2f9,_0x4457a0:0x326,_0x2b2cef:0x31c,_0x14ef73:0x32e,_0x4db3e9:0x2c3,_0x3741d6:0x2fc,_0x4bc7f4:0x309,_0xfed5bf:0x2f4,_0x4d70ae:0x2e5,_0x3f3bd0:0x2d2,_0x37d473:0x2f4,_0x2973da:0x77,_0x3c2117:0x84,_0x137355:0x89,_0x1c6082:0xdf,_0x688887:0xf3,_0x2b7073:0xed,_0x4ca151:0xfc,_0x5a2bcb:0x104,_0x53f13e:0xf2,_0x318104:0x104,_0x1bc717:0x33e,_0x3cecde:0x34d},_0x1ddb07={_0x1f53cc:0x9a},_0x527b18={_0x6952d8:0x188},_0x4e8212={};_0x4e8212[_0xfcb617(_0x45aa78._0x53e4a8,0x2ee,_0x45aa78._0x6722ca,_0x45aa78._0x497348)]=_0xfcb617(_0x45aa78._0x4b6e4a,_0x45aa78._0x22db9d,_0x45aa78._0x3e730d,_0x45aa78._0x2ae748)+'s\x20to\x20file',_0x4e8212[_0x3af617(-0x12b,-0xe3,-_0x45aa78._0x32dfad,-0xd1)]=function(_0x1f6c1f,_0x2f0303){return _0x1f6c1f===_0x2f0303;},_0x4e8212[_0x3af617(-_0x45aa78._0x5bf74b,-_0x45aa78._0x4363a2,-0xc2,-0xd3)]=_0x3af617(-_0x45aa78._0x250b79,-_0x45aa78._0x2d97ec,-0xda,-0x8d),_0x4e8212[_0xfcb617(_0x45aa78._0x53bbc6,0x301,0x30e,_0x45aa78._0x5065ba)]=_0x3af617(-_0x45aa78._0x3d6dd5,-0xfb,-0xec,-_0x45aa78._0x2e030c)+_0xfcb617(_0x45aa78._0x43068f,_0x45aa78._0x32137b,_0x45aa78._0x5065ba,_0x45aa78._0x5443c4);function _0xfcb617(_0x17516a,_0x54ee6e,_0x3b6082,_0x4069e7){return _0x2eaff8(_0x17516a-_0x527b18._0x6952d8,_0x54ee6e-0xc3,_0x4069e7-0x46e,_0x3b6082);}const _0x514790=_0x4e8212;function _0x3af617(_0x4ab7eb,_0x578d26,_0x1a12e2,_0x18e944){return _0x2eaff8(_0x4ab7eb-0x147,_0x578d26-0x145,_0x578d26-_0x1ddb07._0x1f53cc,_0x18e944);}try{const _0x2f79c4=_0x5f06fd[_0xfcb617(_0x45aa78._0x24165f,0x355,0x325,_0x45aa78._0x4b2892)](TEAMS_FILE),_0x5de787={};_0x5de787['recursive']=!![],await _0x563b0b['mkdir'](_0x2f79c4,_0x5de787);const _0x4345a3={};_0x4345a3[_0xfcb617(_0x45aa78._0x42c930,_0x45aa78._0x5af5c5,0x2ff,_0x45aa78._0x1c9546)]=_0xb8ef44,await _0x563b0b['writeFile'](TEAMS_FILE,JSON['stringify'](_0x4345a3,null,-0x1*-0x1933+0x1d87+-0x36b8*0x1),_0xfcb617(_0x45aa78._0x5a3dfa,0x324,0x31d,_0x45aa78._0x17e383)),teamsCache=_0xb8ef44;const _0x2308ab={};_0x2308ab[_0xfcb617(_0x45aa78._0x32117a,0x389,_0x45aa78._0x4259dc,_0x45aa78._0x234477)]=_0xb8ef44[_0xfcb617(_0x45aa78._0x49b5be,0x30e,_0x45aa78._0x182186,0x324)],logger[_0xfcb617(0x325,_0x45aa78._0x37c684,_0x45aa78._0x307a19,0x364)](_0x514790[_0xfcb617(_0x45aa78._0x5a5746,_0x45aa78._0x23f6ee,0x334,_0x45aa78._0x4457a0)],_0x2308ab);}catch(_0x36b321){if(_0x514790[_0xfcb617(0x2b4,_0x45aa78._0x2b2cef,_0x45aa78._0x14ef73,0x2f1)](_0x514790[_0xfcb617(_0x45aa78._0x4db3e9,_0x45aa78._0x3741d6,_0x45aa78._0x4bc7f4,_0x45aa78._0xfed5bf)],_0x514790[_0xfcb617(0x2c2,_0x45aa78._0x4d70ae,_0x45aa78._0x3f3bd0,_0x45aa78._0x37d473)])){logger['error'](_0x514790['amdgU'],_0x36b321);throw _0x36b321;}else{const _0x3d126f=new _0x3814d0('User\x20\x27'+_0x527cc6+(_0x3af617(-_0x45aa78._0x2973da,-_0x45aa78._0x3c2117,-_0x45aa78._0x137355,-0x5f)+_0x3af617(-_0x45aa78._0x1c6082,-0x100,-_0x45aa78._0x688887,-_0x45aa78._0x5bf74b)+'r\x20of\x20this\x20'+_0x3af617(-_0x45aa78._0x2b7073,-_0x45aa78._0x4ca151,-_0x45aa78._0x5a2bcb,-_0x45aa78._0x53f13e)));_0x3d126f[_0x3af617(-_0x45aa78._0x318104,-0xee,-0xac,-0x135)]=_0xfcb617(0x33e,0x360,_0x45aa78._0x1bc717,_0x45aa78._0x3cecde);throw _0x3d126f;}}}export async function getTeams(){const _0xf0d82d={_0x21b045:0x82,_0x555cb9:0x8a},_0x52fa05={_0x2ac1b2:0x6b,_0x5c655d:0xb8},_0x13c60f={'dKIGt':function(_0x5db046){return _0x5db046();}};if(!teamsCache)return await _0x13c60f[_0x543fe4(-_0xf0d82d._0x21b045,-_0xf0d82d._0x21b045,-0x45,-_0xf0d82d._0x555cb9)](loadTeams);function _0x543fe4(_0x614807,_0x36ed02,_0x43dad6,_0x54440d){return _0x2eaff8(_0x614807-_0x52fa05._0x2ac1b2,_0x36ed02-0x1dc,_0x54440d-_0x52fa05._0x5c655d,_0x36ed02);}return teamsCache;}export async function getTeamById(_0xf57d3d){const _0x10db93={_0x442093:0xa,_0x2779cb:0x2b},_0x542b8d={_0x54dad9:0x1a7},_0x559faf={_0x327eb1:0xf7,_0x15100d:0x404};function _0x360c15(_0x2602b7,_0x2383e9,_0x3f3373,_0xe97e41){return _0x2eaff8(_0x2602b7-_0x559faf._0x327eb1,_0x2383e9-0xc1,_0xe97e41-_0x559faf._0x15100d,_0x3f3373);}const _0xe64ff4={'zfjsW':function(_0x38c8ac){return _0x38c8ac();}};function _0x306022(_0x45090f,_0x590c01,_0x3908fa,_0x578e4b){return _0x2eaff8(_0x45090f-0x1d8,_0x590c01-_0x542b8d._0x54dad9,_0x3908fa-0x181,_0x578e4b);}const _0x28ed2d=await _0xe64ff4[_0x306022(0x47,0x3b,0x62,0x27)](getTeams);return _0x28ed2d[_0x306022(_0x10db93._0x442093,-0x42,-0x6,_0x10db93._0x2779cb)](_0x5258c9=>_0x5258c9['id']===_0xf57d3d)||null;}export async function getTeamsByUserId(_0x435109){const _0x469c73={_0x1e112e:0x49},_0x1ea428={_0x430b97:0x1a0},_0x3fbc6d={_0x179704:0x4f,_0x20e47e:0x66d};function _0x23df88(_0x4a608a,_0x4a273e,_0x3a02d9,_0x2a5a88){return _0x2eaff8(_0x4a608a-_0x3fbc6d._0x179704,_0x4a273e-0x13f,_0x2a5a88-_0x3fbc6d._0x20e47e,_0x4a608a);}function _0x2cae8d(_0x2017b2,_0x213886,_0x331c45,_0x481b9d){return _0x2eaff8(_0x2017b2-0x147,_0x213886-0x13,_0x331c45-_0x1ea428._0x430b97,_0x213886);}const _0x49bf05=await getTeams();return _0x49bf05[_0x2cae8d(0x14,0x1f,_0x469c73._0x1e112e,0x21)](_0x3b7e15=>_0x3b7e15[_0x23df88(0x528,0x4f5,0x4fb,0x517)][_0x23df88(0x4f8,0x4fe,0x531,0x505)](_0x435109));}export async function getTeamsManagedBy(_0x1b1cd6){const _0x21ff1d={_0x15fc3e:0x333,_0x4d8da1:0x382,_0x5278df:0x361},_0x25c089={_0x10bda2:0x6d};function _0x1e9898(_0x22dabd,_0x2d4171,_0x15aac9,_0x63e878){return _0x2eaff8(_0x22dabd-0x6b,_0x2d4171-0x1f0,_0x63e878-0x4b8,_0x22dabd);}const _0x455ac8=await getTeams();function _0x345b92(_0xc70bf,_0x326112,_0x586501,_0x48e265){return _0x2eaff8(_0xc70bf-0xda,_0x326112-0x21,_0x586501- -_0x25c089._0x10bda2,_0xc70bf);}return _0x455ac8[_0x1e9898(_0x21ff1d._0x15fc3e,_0x21ff1d._0x4d8da1,0x378,_0x21ff1d._0x5278df)](_0x3964e0=>_0x3964e0[_0x1e9898(0x367,0x36a,0x3c2,0x3a1)][_0x345b92(-0x209,-0x1d8,-0x1d5,-0x1d9)](_0x1b1cd6));}export async function isTeamManager(_0x4dda9a,_0x5170f9){const _0x42f0ce={_0x136000:0x34d,_0x129fc1:0x39c,_0x381133:0x130,_0x4c66c4:0x124},_0x78d7c0={_0x42b693:0x15f,_0x1df0dd:0x1e5,_0xf49c80:0x25a},_0x1f6a01={_0x455b64:0xae},_0x1cf425={'NlCce':function(_0x42109d,_0x9c365c){return _0x42109d(_0x9c365c);}};function _0x1a7bf6(_0x5f17a8,_0x36cf48,_0x5312a3,_0x43cfcc){return _0x2eaff8(_0x5f17a8-_0x1f6a01._0x455b64,_0x36cf48-0x8d,_0x5f17a8-0x4cf,_0x43cfcc);}const _0x169fde=await _0x1cf425[_0x1a7bf6(0x37a,_0x42f0ce._0x136000,_0x42f0ce._0x129fc1,0x365)](getTeamById,_0x5170f9);function _0x1f6d22(_0x4ee349,_0x5a1ca7,_0x544ea3,_0x11a6a0){return _0x2eaff8(_0x4ee349-_0x78d7c0._0x42b693,_0x5a1ca7-_0x78d7c0._0x1df0dd,_0x544ea3-_0x78d7c0._0xf49c80,_0x4ee349);}if(!_0x169fde)return![];return _0x169fde['managers'][_0x1f6d22(_0x42f0ce._0x381133,_0x42f0ce._0x4c66c4,0xf2,0x112)](_0x4dda9a);}export async function createTeam(_0x21b2cd){const _0x2d0cc9={_0x1d96f6:0x168,_0x2944ed:0x1a3,_0x30e832:0x17c,_0x3fd1bc:0x1b1,_0x181eaa:0x170,_0x1ce84e:0x193,_0x73b18b:0x1d9,_0x514fe4:0x19e,_0x5726f3:0x1b3,_0x3781b1:0x16a,_0x3bf143:0x19e,_0x5cfea4:0x1c7,_0x22b6aa:0x14f,_0x2b9246:0x5b2,_0x1298ff:0x592,_0x293e91:0x132,_0x169010:0xf4,_0x140813:0x16c,_0x4b2fca:0x590,_0x2095e2:0x5e2,_0x3f6432:0x5a0,_0x5d2477:0x150,_0x3c7112:0x17b,_0x54df1e:0x569,_0xe7944f:0x5a5,_0x1c9307:0x5ca,_0x46d627:0x5cf,_0x3c8496:0x5b8,_0x5766ff:0x593,_0x17ed12:0x109,_0x547285:0xe6,_0x206d4f:0x1d6,_0x18b7b0:0x14b,_0x27963c:0x1a5,_0x177a7c:0x1a8,_0x425426:0x5c3,_0x2785c0:0x5a6,_0xa8d68:0x581,_0x4f7467:0x133,_0x5e61f7:0x169,_0x53c99a:0x120,_0x17b5d3:0x195,_0x390ef2:0x58d,_0xc864e8:0x56a,_0x303ca9:0x54c,_0x2121fe:0x556,_0x4f6272:0x164,_0x23572:0x196,_0x352a1e:0x134,_0x5abb07:0x1be,_0x3f7ce3:0x1b9,_0x2934b7:0x591,_0x3ab4c2:0x5a6,_0x4d54fa:0x57a,_0x2101c4:0x569,_0x37c1c6:0x54a,_0x1f1182:0x574,_0xf44e08:0x54b,_0x421471:0x185,_0x1a27aa:0x188,_0xe60816:0x142,_0x4bcb91:0x136,_0x5c13b0:0x5cc,_0x5afea5:0x5aa,_0x1e7f41:0x54b,_0x51d86a:0x582,_0x43ab3a:0x540,_0x7b90d:0x507,_0x4ab7ce:0x172,_0x1c55b6:0x138,_0xbc2ee5:0x199,_0x10fba1:0x593,_0xead6d3:0x58b,_0x8501b9:0x513,_0x59de73:0x5a1,_0x1fb3b0:0x58f,_0x55b775:0x5d0,_0x64b3ae:0x592,_0x3bd45e:0x159,_0x527856:0x1a1,_0x1fc149:0x5f0,_0x37903d:0x579,_0x45d5d5:0x5b0,_0x1ccc12:0x5bd},_0x1c1f49={_0x531675:0x158,_0x2ddadd:0xbd},_0x46ea0d={_0x388f46:0x189,_0x3dd6c3:0x6d1},_0x58545d={'pdOGS':'DUPLICATE','cCsTo':function(_0x9b46ec){return _0x9b46ec();},'gcsFp':_0x184be4(0x169,0x168,_0x2d0cc9._0x1d96f6,_0x2d0cc9._0x2944ed)+'is\x20require'+'d','pxTEB':function(_0x478444,_0x51b694){return _0x478444!==_0x51b694;},'Afauv':_0x184be4(_0x2d0cc9._0x30e832,_0x2d0cc9._0x3fd1bc,0x19d,_0x2d0cc9._0x181eaa),'vsdcr':function(_0x1e3770,_0x576db1){return _0x1e3770>_0x576db1;},'gFbVJ':_0x184be4(0x189,0x15a,0x1b0,_0x2d0cc9._0x1ce84e)},_0x3b9cb2=await _0x58545d[_0x184be4(0x1af,0x1da,_0x2d0cc9._0x73b18b,0x1f3)](getTeams);function _0xe8c2a4(_0x5edb5f,_0x20a540,_0x5d4637,_0x50f916){return _0x2eaff8(_0x5edb5f-0x1bd,_0x20a540-_0x46ea0d._0x388f46,_0x50f916-_0x46ea0d._0x3dd6c3,_0x5edb5f);}if(!_0x21b2cd[_0x184be4(_0x2d0cc9._0x514fe4,_0x2d0cc9._0x5726f3,0x1a2,_0x2d0cc9._0x3781b1)]||!_0x21b2cd[_0x184be4(_0x2d0cc9._0x3bf143,_0x2d0cc9._0x5cfea4,0x1a8,0x1d3)][_0x184be4(0x175,0x152,_0x2d0cc9._0x22b6aa,0x147)]()){const _0x36ecc2=new Error(_0x58545d[_0xe8c2a4(_0x2d0cc9._0x2b9246,0x5c6,0x5ac,_0x2d0cc9._0x1298ff)]);_0x36ecc2[_0x184be4(_0x2d0cc9._0x293e91,0x12b,_0x2d0cc9._0x169010,_0x2d0cc9._0x140813)]=_0xe8c2a4(_0x2d0cc9._0x4b2fca,_0x2d0cc9._0x2095e2,0x5b1,_0x2d0cc9._0x3f6432);throw _0x36ecc2;}if(_0x3b9cb2[_0x184be4(_0x2d0cc9._0x5d2477,0x160,_0x2d0cc9._0x3c7112,0x126)](_0x531fff=>_0x531fff[_0x184be4(0x19e,0x195,0x166,0x180)]===_0x21b2cd['name'])){if(_0x58545d[_0xe8c2a4(0x59a,_0x2d0cc9._0x54df1e,_0x2d0cc9._0xe7944f,0x560)](_0xe8c2a4(_0x2d0cc9._0x1c9307,_0x2d0cc9._0x46d627,_0x2d0cc9._0x3c8496,_0x2d0cc9._0x5766ff),_0x58545d[_0x184be4(0x126,_0x2d0cc9._0x17ed12,_0x2d0cc9._0x547285,0xe9)])){const _0x89ddfc=new _0x2d9ed8(_0x184be4(0x1a7,0x17b,0x17f,_0x2d0cc9._0x206d4f)+_0x496b5d+('\x27\x20is\x20alrea'+_0x184be4(0x188,_0x2d0cc9._0x18b7b0,_0x2d0cc9._0x27963c,_0x2d0cc9._0x177a7c)+_0xe8c2a4(0x5bc,0x58d,_0x2d0cc9._0x425426,0x5ab)+_0xe8c2a4(_0x2d0cc9._0x2785c0,0x580,0x588,_0x2d0cc9._0xa8d68)));_0x89ddfc['code']=_0x58545d[_0x184be4(0x12d,0x107,0x14a,_0x2d0cc9._0x4f7467)];throw _0x89ddfc;}else{const _0x328387=new Error(_0x184be4(_0x2d0cc9._0x5e61f7,0x166,_0x2d0cc9._0x53c99a,0x129)+'\x27'+_0x21b2cd['name']+(_0x184be4(0x14e,0x138,0x10a,_0x2d0cc9._0x17b5d3)+_0xe8c2a4(0x529,0x58c,_0x2d0cc9._0x390ef2,_0x2d0cc9._0xc864e8)));_0x328387[_0x184be4(_0x2d0cc9._0x293e91,0x148,0x147,0x101)]=_0x58545d[_0xe8c2a4(_0x2d0cc9._0x303ca9,0x589,_0x2d0cc9._0x2121fe,0x544)];throw _0x328387;}}const _0x524749=_0x21b2cd[_0x184be4(_0x2d0cc9._0x4f6272,_0x2d0cc9._0x23572,0x196,_0x2d0cc9._0x352a1e)]||[],_0x546987=_0x21b2cd[_0x184be4(0x1a3,_0x2d0cc9._0x5abb07,0x1aa,_0x2d0cc9._0x3f7ce3)]||[],_0x11c58e=_0x546987[_0xe8c2a4(_0x2d0cc9._0x2934b7,0x58b,_0x2d0cc9._0x3ab4c2,_0x2d0cc9._0x4d54fa)](_0x3ebf14=>!_0x524749[_0x184be4(0x152,0x11a,0x168,0x199)](_0x3ebf14));if(_0x58545d[_0xe8c2a4(0x537,0x557,0x5a0,0x561)](_0x11c58e['length'],0x2*0x12f9+-0x82b+-0x63*0x4d)){const _0x1554ca=new Error(_0xe8c2a4(_0x2d0cc9._0x2101c4,_0x2d0cc9._0x37c1c6,_0x2d0cc9._0x1f1182,_0x2d0cc9._0xf44e08)+_0x184be4(_0x2d0cc9._0x421471,_0x2d0cc9._0x1a27aa,_0x2d0cc9._0xe60816,_0x2d0cc9._0x4f6272)+_0x184be4(0x12f,0x13b,0xf5,_0x2d0cc9._0x4bcb91)+_0xe8c2a4(_0x2d0cc9._0x5c13b0,0x5dd,_0x2d0cc9._0x5afea5,0x598)+_0xe8c2a4(0x57b,0x590,_0x2d0cc9._0x1e7f41,_0x2d0cc9._0x51d86a)+_0x11c58e[_0xe8c2a4(_0x2d0cc9._0x43ab3a,_0x2d0cc9._0x7b90d,0x564,0x53e)](',\x20'));_0x1554ca[_0xe8c2a4(0x54f,0x544,0x588,0x549)]=_0x58545d['gFbVJ'];throw _0x1554ca;}const _0x5c1354=new Date()[_0x184be4(0x180,_0x2d0cc9._0x4ab7ce,_0x2d0cc9._0x1c55b6,_0x2d0cc9._0xbc2ee5)+'g'](),_0x464f4c={'id':_0xe8c2a4(0x557,_0x2d0cc9._0x10fba1,_0x2d0cc9._0xead6d3,0x56d)+Date[_0xe8c2a4(_0x2d0cc9._0x8501b9,0x526,0x53e,0x555)]()+'_'+Math['random']()[_0xe8c2a4(0x592,0x583,0x58c,_0x2d0cc9._0x59de73)](0x8*0x32b+-0x10d0+-0x864)[_0xe8c2a4(_0x2d0cc9._0x1fb3b0,0x5d0,0x5d6,0x59d)](-0x10a6+-0x19c1+-0x7*-0x60f,0xe7b+0x465*-0x5+-0x29*-0x2f),'name':_0x21b2cd[_0xe8c2a4(_0x2d0cc9._0x55b775,0x5f2,_0x2d0cc9._0x64b3ae,0x5b5)],'description':_0x21b2cd['descriptio'+'n']||'','members':_0x524749,'managers':_0x546987,'created_at':_0x5c1354,'created_by':_0x21b2cd[_0x184be4(_0x2d0cc9._0x3bd45e,_0x2d0cc9._0x527856,0x154,0x14d)]||null,'updated_at':_0x5c1354};_0x3b9cb2[_0xe8c2a4(_0x2d0cc9._0x1fc149,_0x2d0cc9._0x37903d,_0x2d0cc9._0x45d5d5,_0x2d0cc9._0x1ccc12)](_0x464f4c);function _0x184be4(_0x4aa4c5,_0x183412,_0x1c598d,_0x4746e7){return _0x2eaff8(_0x4aa4c5-_0x1c1f49._0x531675,_0x183412-_0x1c1f49._0x2ddadd,_0x4aa4c5-0x2ba,_0x1c598d);}return await saveTeams(_0x3b9cb2),_0x464f4c;}export async function updateTeam(_0x233d5d,_0x385a03){const _0x4b996e={_0x4ba709:0x204,_0xd5330d:0x1ce,_0x4db43c:0x3dc,_0x41d65f:0x3ce,_0x59275a:0x3f4,_0x3f0606:0x3e9,_0x557208:0x3d5,_0x5d108f:0x3ee,_0xd496d2:0x233,_0x2c905a:0x254,_0x1ff989:0x236,_0x58455f:0x1ed,_0x5dc8f9:0x3ca,_0x241cd0:0x41b,_0x3b615e:0x361,_0x5c0aa8:0x199,_0x347f7d:0x1c9,_0xde2394:0x1b8,_0x28df0e:0x38b,_0x4b2451:0x352,_0x3b639d:0x366,_0x2727f1:0x361,_0x413bf6:0x3d6,_0x2232cb:0x1cc,_0x27e2fa:0x1e1,_0x3bf30f:0x1d0,_0x2941c8:0x1af,_0x4d83d9:0x41a,_0x1db8d4:0x43c,_0x2d9bda:0x19e,_0x24c9ef:0x410,_0x1e4a97:0x3d5,_0x2b2fdf:0x41c,_0x14d525:0x388,_0x3be285:0x3d4,_0x3e68af:0x3bf,_0x286c73:0x1c3,_0x53360d:0x1b1,_0x254f89:0x1dc,_0x2ed7ff:0x38e,_0x21b1a2:0x1f7,_0x4b73dd:0x205,_0x59b8ef:0x3d6,_0x2b2ab2:0x398,_0x3aab6a:0x3ae,_0x323ea0:0x3cc,_0x3c5526:0x247,_0x17def7:0x3a6,_0x5e3618:0x392,_0x9dc8d6:0x357,_0x2b7912:0x1fd,_0xba3050:0x243,_0x1bdd03:0x1cb,_0x129d99:0x1d3,_0x3587f3:0x428,_0x3a2d4f:0x3fe,_0x5323bb:0x3ac,_0x1098da:0x358,_0x202eca:0x3d1,_0x2edd83:0x39f,_0x3f2d56:0x206,_0x5ae83b:0x1da,_0x1459c3:0x1ea,_0x9a6f47:0x1c7,_0x129afd:0x1b9,_0x30eea2:0x18d,_0x59b1ff:0x207,_0x4c0fdb:0x1e0,_0x5f01d0:0x1f3,_0x100bb2:0x3d8,_0x29a330:0x3a4},_0x566d9c={_0xe3203c:0x194,_0x20354a:0x1c6},_0x38ad2c={_0x4e5556:0x183},_0x51f3d0={'gjfjr':function(_0x4a0d08){return _0x4a0d08();},'NmCGz':function(_0x661887,_0x483f09){return _0x661887===_0x483f09;},'zfcLZ':_0x3c5815(-_0x4b996e._0x4ba709,-0x1c6,-0x214,-_0x4b996e._0xd5330d),'HjaRw':function(_0x1d4fdb,_0x5bd67e){return _0x1d4fdb!==_0x5bd67e;},'MWYXi':'fAeIQ','khjcL':_0x3c7b82(0x410,_0x4b996e._0x4db43c,0x3c9,_0x4b996e._0x41d65f)+'is\x20require'+'d','eOBFW':_0x3c7b82(_0x4b996e._0x59275a,0x405,_0x4b996e._0x3f0606,_0x4b996e._0x557208),'Yugpp':_0x3c7b82(0x3b7,_0x4b996e._0x5d108f,0x3f9,0x3cb),'prxWN':function(_0x588a40,_0x2067e9){return _0x588a40!==_0x2067e9;},'eBhmu':function(_0x1cb6a1,_0x49829c){return _0x1cb6a1(_0x49829c);}},_0x57c520=await _0x51f3d0[_0x3c5815(-_0x4b996e._0xd496d2,-_0x4b996e._0x2c905a,-_0x4b996e._0x1ff989,-_0x4b996e._0x58455f)](getTeams),_0xad473b=_0x57c520[_0x3c7b82(0x3cb,_0x4b996e._0x5dc8f9,0x3f1,_0x4b996e._0x241cd0)](_0x5788a1=>_0x5788a1['id']===_0x233d5d);function _0x3c5815(_0x347652,_0x15bc35,_0x3bf563,_0x48928e){return _0x2eaff8(_0x347652-_0x38ad2c._0x4e5556,_0x15bc35-0xe5,_0x347652- -0xb0,_0x48928e);}if(_0x51f3d0[_0x3c7b82(0x3e1,0x3cd,0x3a3,_0x4b996e._0x3b615e)](_0xad473b,-(0x16*-0x139+0x45*-0x2a+0x2639))){const _0x538a6e=new Error(_0x3c5815(-0x1da,-0x212,-_0x4b996e._0x5c0aa8,-_0x4b996e._0x347f7d)+_0x233d5d+(_0x3c5815(-0x1f4,-0x23b,-_0x4b996e._0xde2394,-0x1ba)+'d'));_0x538a6e[_0x3c7b82(_0x4b996e._0x28df0e,_0x4b996e._0x4b2451,0x392,_0x4b996e._0x3b639d)]=_0x51f3d0[_0x3c7b82(_0x4b996e._0x2727f1,_0x4b996e._0x413bf6,0x3a6,0x3d7)];throw _0x538a6e;}const _0x3e0521=_0x57c520[_0xad473b];if(_0x385a03['name']!==undefined&&_0x51f3d0['HjaRw'](_0x385a03[_0x3c5815(-_0x4b996e._0x2232cb,-_0x4b996e._0x27e2fa,-_0x4b996e._0x3bf30f,-_0x4b996e._0x2941c8)],_0x3e0521[_0x3c7b82(0x426,_0x4b996e._0x4d83d9,0x3fe,_0x4b996e._0x1db8d4)])){if(!_0x385a03[_0x3c5815(-0x1cc,-_0x4b996e._0x2d9bda,-0x209,-0x1a2)][_0x3c7b82(0x3eb,_0x4b996e._0x24c9ef,_0x4b996e._0x1e4a97,_0x4b996e._0x2b2fdf)]()){if(_0x51f3d0['HjaRw'](_0x3c7b82(0x395,_0x4b996e._0x14d525,0x3c7,0x3ef),_0x51f3d0[_0x3c7b82(0x3a0,0x39b,_0x4b996e._0x3be285,_0x4b996e._0x3e68af)])){const _0x3f5e22=new _0x175f43(_0x3c5815(-_0x4b996e._0x286c73,-_0x4b996e._0x53360d,-_0x4b996e._0x254f89,-0x1ab)+_0x24d524+('\x27\x20is\x20not\x20a'+'\x20manager\x20o'+_0x3c5815(-0x1d4,-0x195,-0x1b6,-0x1b2)+'m'));_0x3f5e22[_0x3c7b82(0x3c0,0x3bc,0x392,_0x4b996e._0x2ed7ff)]='NOT_FOUND';throw _0x3f5e22;}else{const _0x3f9c50=new Error(_0x51f3d0['khjcL']);_0x3f9c50['code']=_0x51f3d0[_0x3c5815(-0x22e,-0x214,-0x1ea,-_0x4b996e._0x21b1a2)];throw _0x3f9c50;}}if(_0x57c520[_0x3c5815(-0x21a,-0x24a,-_0x4b996e._0x4b73dd,-0x262)](_0xf01cde=>_0xf01cde[_0x3c5815(-0x1cc,-0x1e6,-0x1a1,-0x1ac)]===_0x385a03[_0x3c7b82(0x421,0x3b6,0x3fe,0x3bc)])){const _0x57c8d0=new Error(_0x3c7b82(0x409,0x3da,0x3c9,0x388)+'\x27'+_0x385a03['name']+(_0x3c7b82(_0x4b996e._0x59b8ef,_0x4b996e._0x2b2ab2,_0x4b996e._0x3aab6a,_0x4b996e._0x323ea0)+_0x3c5815(-0x217,-_0x4b996e._0x3c5526,-0x221,-0x1e9)));_0x57c8d0[_0x3c7b82(_0x4b996e._0x17def7,_0x4b996e._0x5dc8f9,_0x4b996e._0x5e3618,_0x4b996e._0x9dc8d6)]=_0x51f3d0[_0x3c5815(-_0x4b996e._0x2b7912,-_0x4b996e._0xba3050,-0x1eb,-0x1e0)];throw _0x57c8d0;}}if(_0x51f3d0[_0x3c5815(-0x1bd,-0x1ff,-_0x4b996e._0x1bdd03,-_0x4b996e._0x129d99)](_0x385a03['name'],undefined))_0x3e0521['name']=_0x385a03[_0x3c7b82(0x42e,_0x4b996e._0x3587f3,_0x4b996e._0x3a2d4f,0x407)];if(_0x385a03[_0x3c7b82(_0x4b996e._0x5323bb,_0x4b996e._0x1098da,0x39f,_0x4b996e._0x202eca)+'n']!==undefined)_0x3e0521[_0x3c5815(-0x22b,-0x237,-0x247,-0x24a)+'n']=_0x385a03[_0x3c7b82(0x392,0x378,_0x4b996e._0x2edd83,0x3bc)+'n'];if(_0x385a03['members']!==undefined)_0x3e0521['members']=_0x385a03[_0x3c5815(-_0x4b996e._0x3f2d56,-_0x4b996e._0x5ae83b,-0x210,-_0x4b996e._0x1459c3)];if(_0x385a03[_0x3c5815(-0x1c7,-_0x4b996e._0xd5330d,-0x1ba,-0x18c)]!==undefined)_0x3e0521[_0x3c7b82(_0x4b996e._0x4d83d9,0x445,0x403,0x424)]=_0x385a03['managers'];_0x3e0521[_0x3c5815(-_0x4b996e._0x9a6f47,-0x199,-_0x4b996e._0x129afd,-_0x4b996e._0x30eea2)]=_0x3e0521['managers'][_0x3c5815(-_0x4b996e._0x59b1ff,-_0x4b996e._0x4c0fdb,-0x222,-_0x4b996e._0x5f01d0)](_0x19a81a=>_0x3e0521[_0x3c5815(-0x206,-0x203,-0x23f,-0x200)][_0x3c5815(-0x218,-0x22f,-0x246,-0x205)](_0x19a81a)),_0x3e0521[_0x3c7b82(0x340,0x357,0x389,_0x4b996e._0x5e3618)]=new Date()[_0x3c7b82(_0x4b996e._0x100bb2,_0x4b996e._0x29a330,0x3e0,0x424)+'g']();function _0x3c7b82(_0x2728e4,_0x399906,_0x2d72cc,_0x1f1e5b){return _0x2eaff8(_0x2728e4-_0x566d9c._0xe3203c,_0x399906-_0x566d9c._0x20354a,_0x2d72cc-0x51a,_0x399906);}return await _0x51f3d0[_0x3c7b82(0x435,0x40d,0x3fa,0x3cd)](saveTeams,_0x57c520),_0x3e0521;}export async function deleteTeam(_0x176d1b,_0x5c6821){const _0x1c5ec5={_0x36d840:0xeb,_0x194049:0xfe,_0x1bde0f:0x13f,_0x28286a:0x131,_0x342373:0x160,_0x18cabd:0x120,_0x40bd5a:0x120,_0x36a6c6:0x485,_0x27b3bf:0x4a2,_0x4ba188:0x425,_0x270f7b:0x430,_0x2ef5c2:0x45b,_0x202840:0x18b,_0x4f82ce:0x14b,_0xa3174a:0x43d,_0x20b3e2:0x48d,_0x4cd4a8:0x448,_0x30dbad:0x16d,_0x15950d:0x105,_0x46b4ba:0x121,_0xffb728:0x12e,_0x5587c1:0x157,_0x1efeab:0x10b,_0x4fcbfc:0xe5,_0xf6f2b9:0x113,_0x53ee81:0x433,_0x58f29d:0x497,_0x3413ee:0x145,_0x2d8d4b:0x144,_0x7c77e2:0x149,_0x48e030:0x47a,_0x255f68:0x470,_0x576ec5:0x48a,_0x1eb51f:0x45b,_0x1ff58e:0x482,_0x249e7a:0x4aa,_0x2ee470:0x3fb,_0xcc6262:0x43e,_0x1ecd4c:0x46a,_0x517e3a:0x13d,_0x19dd96:0x16f,_0x44cf91:0x179,_0x475051:0x4c8,_0x577395:0x4ac,_0xeb32b6:0x4d6,_0x4fefcd:0xee,_0x1fba1c:0x129,_0x2bf925:0x45c,_0x497c06:0x495,_0x1171c5:0x451,_0x1a9fa7:0x428,_0x3d1762:0x123,_0x253a93:0x187,_0x4ca4ce:0x165,_0x1ceb3b:0x180,_0xe4dfd5:0x479,_0x1c8bbf:0x429,_0x8b5f4e:0x453,_0x156b87:0x127,_0x1fc220:0x15f,_0x20080d:0x14a,_0x347576:0xb3,_0x384269:0x4bf,_0x2038df:0x4bc,_0x57b1d7:0x41f,_0x1a1430:0x411,_0x53d1e1:0x44c,_0x1d8c83:0x475,_0xd107ee:0x454,_0x144395:0x4f4,_0x316953:0x4b0,_0x100d4a:0x4ac},_0x375c79={_0x2fcedb:0xd6,_0x32cf08:0x60},_0x27ce9a={_0x363917:0xa4,_0x2a35f3:0x171},_0x45bb26={'tlAqW':_0x1966e9(-0xf9,-_0x1c5ec5._0x36d840,-_0x1c5ec5._0x194049,-0x136),'cNAnq':_0x1966e9(-0x116,-_0x1c5ec5._0x1bde0f,-_0x1c5ec5._0x28286a,-0x133),'ajoqS':function(_0x151ca1){return _0x151ca1();},'dDsSp':function(_0x414a8a,_0x4d5605){return _0x414a8a===_0x4d5605;},'slZzV':function(_0x1f5cb9,_0x297708){return _0x1f5cb9!==_0x297708;},'GySAw':'oGFsL','HQNuJ':function(_0x26d7ef,_0x5e9fb2){return _0x26d7ef(_0x5e9fb2);},'zGxWU':_0x1966e9(-0x115,-_0x1c5ec5._0x342373,-_0x1c5ec5._0x18cabd,-_0x1c5ec5._0x40bd5a),'jHdeE':_0x950eb1(_0x1c5ec5._0x36a6c6,_0x1c5ec5._0x27b3bf,0x4b1,0x491),'LMkWs':function(_0x52e4af,_0x31adcd,_0x4c6ce1){return _0x52e4af(_0x31adcd,_0x4c6ce1);},'VaXas':_0x950eb1(_0x1c5ec5._0x4ba188,0x45e,_0x1c5ec5._0x270f7b,_0x1c5ec5._0x2ef5c2),'ZiBFo':'Deleted\x20te'+'am'},_0x29384d=await _0x45bb26['ajoqS'](getTeams),_0xd9c946=_0x29384d['findIndex'](_0x2b6e20=>_0x2b6e20['id']===_0x176d1b);function _0x1966e9(_0x495f39,_0xf7cb05,_0xcd510d,_0x4d4c97){return _0x2eaff8(_0x495f39-_0x27ce9a._0x363917,_0xf7cb05-_0x27ce9a._0x2a35f3,_0xcd510d-0x23,_0x495f39);}if(_0x45bb26['dDsSp'](_0xd9c946,-(0x2*-0xa33+-0x121c+0x2683*0x1))){if(_0x45bb26[_0x1966e9(-_0x1c5ec5._0x202840,-_0x1c5ec5._0x4f82ce,-0x166,-0x199)](_0x45bb26[_0x950eb1(_0x1c5ec5._0xa3174a,_0x1c5ec5._0x20b3e2,0x469,_0x1c5ec5._0x4cd4a8)],_0x45bb26[_0x1966e9(-_0x1c5ec5._0x30dbad,-0x12e,-0x13a,-_0x1c5ec5._0x15950d)])){const _0x2d53dd=new _0x1e639a(_0x1966e9(-0xfb,-_0x1c5ec5._0x46b4ba,-_0x1c5ec5._0xffb728,-_0x1c5ec5._0x5587c1)+'\x27'+_0x1c94e0[_0x1966e9(-_0x1c5ec5._0x1efeab,-_0x1c5ec5._0x4fcbfc,-0xf9,-_0x1c5ec5._0xf6f2b9)]+(_0x950eb1(_0x1c5ec5._0x53ee81,0x43d,0x45a,_0x1c5ec5._0x58f29d)+_0x1966e9(-0x168,-_0x1c5ec5._0x3413ee,-_0x1c5ec5._0x2d8d4b,-0x128)));_0x2d53dd[_0x1966e9(-0x15d,-0x168,-0x165,-_0x1c5ec5._0x7c77e2)]=_0x45bb26[_0x950eb1(_0x1c5ec5._0x48e030,_0x1c5ec5._0x255f68,_0x1c5ec5._0x576ec5,0x487)];throw _0x2d53dd;}else{const _0x893b23=new Error('Team\x20\x27'+_0x176d1b+(_0x950eb1(_0x1c5ec5._0x1eb51f,0x4c9,_0x1c5ec5._0x1ff58e,_0x1c5ec5._0x249e7a)+'d'));_0x893b23[_0x950eb1(0x46f,_0x1c5ec5._0x2ee470,_0x1c5ec5._0xcc6262,0x463)]=_0x45bb26[_0x950eb1(0x467,0x484,_0x1c5ec5._0x1ecd4c,0x472)];throw _0x893b23;}}const _0xf7e24=_0x29384d[_0xd9c946];_0x29384d[_0x1966e9(-0x172,-_0x1c5ec5._0x517e3a,-_0x1c5ec5._0x19dd96,-_0x1c5ec5._0x44cf91)](_0xd9c946,0x22e+0xcac+-0xed9),await _0x45bb26[_0x950eb1(_0x1c5ec5._0x475051,0x4e3,_0x1c5ec5._0x577395,_0x1c5ec5._0xeb32b6)](saveTeams,_0x29384d);let _0x448855=0x5e5+-0x1d9b+-0x4be*-0x5;function _0x950eb1(_0x10135a,_0x559e15,_0x55b159,_0x577473){return _0x2eaff8(_0x10135a-_0x375c79._0x2fcedb,_0x559e15-_0x375c79._0x32cf08,_0x55b159-0x5c6,_0x577473);}if(_0x5c6821){if(_0x45bb26[_0x1966e9(-0xed,-0xbc,-_0x1c5ec5._0x4fefcd,-0x123)](_0x45bb26[_0x1966e9(-0x185,-_0x1c5ec5._0x1fba1c,-0x15c,-0x18e)],_0x45bb26['jHdeE'])){const _0x5cc8a2=new _0x442df7('User\x20\x27'+_0x14c861+(_0x950eb1(_0x1c5ec5._0x2bf925,0x464,0x49b,0x4c6)+_0x950eb1(_0x1c5ec5._0x497c06,_0x1c5ec5._0x1171c5,0x46c,_0x1c5ec5._0x1a9fa7)+'\x20this\x20team'));_0x5cc8a2[_0x1966e9(-_0x1c5ec5._0x3d1762,-_0x1c5ec5._0x253a93,-_0x1c5ec5._0x4ca4ce,-_0x1c5ec5._0x1ceb3b)]=_0x45bb26['cNAnq'];throw _0x5cc8a2;}else _0x448855=await _0x45bb26[_0x950eb1(_0x1c5ec5._0xe4dfd5,_0x1c5ec5._0x1c8bbf,_0x1c5ec5._0x8b5f4e,_0x1c5ec5._0x270f7b)](_0x5c6821,_0x45bb26[_0x1966e9(-_0x1c5ec5._0x156b87,-0x143,-0x115,-0x126)],_0x176d1b);}const _0x7a057f={};_0x7a057f['teamId']=_0x176d1b,_0x7a057f[_0x1966e9(-0x14d,-0x17a,-_0x1c5ec5._0x1fc220,-_0x1c5ec5._0x20080d)]=_0xf7e24['name'],_0x7a057f['deletedBin'+_0x1966e9(-0xb4,-_0x1c5ec5._0x347576,-0xf3,-0x120)]=_0x448855,logger[_0x950eb1(_0x1c5ec5._0x384269,0x47c,_0x1c5ec5._0x2038df,0x4bb)](_0x45bb26['ZiBFo'],_0x7a057f);const _0x4ce05c={};return _0x4ce05c[_0x950eb1(_0x1c5ec5._0x57b1d7,_0x1c5ec5._0x1a1430,_0x1c5ec5._0x270f7b,_0x1c5ec5._0x53d1e1)]=_0xf7e24,_0x4ce05c[_0x950eb1(_0x1c5ec5._0x1d8c83,0x4b2,0x498,_0x1c5ec5._0xd107ee)+_0x950eb1(_0x1c5ec5._0x144395,0x4aa,_0x1c5ec5._0x316953,_0x1c5ec5._0x100d4a)]=_0x448855,_0x4ce05c;}function _0x2210(){const _0x4a2283=['vNLyruy','BgL2sfi','EMzJtfO','te1Rv3m','zgvIDwC','ChHurui','DNnKy3i','sLjwEMi','yKXyyw4','nZm5mJH4CwDOExa','jYbHBhjLywr5ia','ouzQtuvosa','C29Tzq','Bg9Hzcb0zwfTCW','Aw5JBhvKzxm','zxHPC3rZ','EMvKigvTChr5ia','zK1pqvO','DgvHBv8','ndG1n0n2A1bryG','ihrOAxmGDgvHBq','y3jLyxrLzf9IEq','AM9ru1a','EfH5q1K','ndKXmJqXmvbruenXAW','r3LtqxC','y05bBNe','jYbTDxn0igjLia','ig1LBwjLCIbVzG','zgLYBMfTzq','yw1Kz1u','zMLSDgvY','BwvTyMvYCW','tMXdy2u','tK9ux0zpvu5e','zKfLsve','ru5pru5u','vgvHBsbUyw1Lia','ihrLyw0','DMfSAwq6ia','ig1HBMfNzxiGBW','wxvNCha','AhLeu3q','sMTOCuC','BgvUz3rO','uxrQENi','CgDwvhe','CIbVzIb0AgLZia','tvDzwgK','DhjPBq','jYbUB3qGzM91BG','tMDYrgu','zeTjr3q','rMXvyNa','C0T6z1y','z2nZrNa','rLfTBxO','q3njC04','DgXbCvC','u2f2zwqGDgvHBq','Dg9ju09tDhjPBG','zsb0zwfTlIbjBG','vMfyyxm','uxrvyvO','DxrMltG','Dxn0igjLig1LBq','C3vIC3rY','DgvHBxm','zhKGysbTyw5HzW','vKfmsurbveLptG','Dg9tDhjPBMC','Dg9ovxi','zgvSzxrLzejPBG','ndqYmdeWmgfHEMTZBG','C2f2zsb0zwfTCW','jYbPCYbUB3qGyq','vgvHBsaN','zMLUzeLUzgv4','mty1mNfVD25fsq','odCZtfzoz2v2','zxiGB2yGDgHPCW','igjLzM9YzsbIzq','zIb0AgLZihrLyq','C0jvDMK','B0jrCfi','rfvqteLdqvrf','zujOBxu','EMzQC1C','jYbPCYbHBhjLyq','sxLqAu4','BMfTzq','y291BNq','sffoDuO','yw5Hz2vY','DgvHBsbSAxn0','BwfUywDLCNm','zgLUz3m','DMrVCwu','ChvZAa','vxnLCIaN','BxmGzNjVBsbMAq','zerZu3a','ntu5nJuWmgrvELDtta','mtuXodG0nMLNq25QDG','vgvHBxmGzMLSzq','Chj4v04','AxL4veW','y0nZvg8','Aw5MBW','zhKGysbTzw1Izq','ysbTzw1IzxiGBW','zIb0AguGDgvHBq','mJK1odHgywXHrMq','DgvHBq','rMfPBgvKihrVia','qwzHDxy','AM9PBG','C3bSAwnL','DxbKyxrLzf9HDa','zxjYB3i','CMvHzezPBgu','B1DSAgq','Cgrpr1m','Aw5KzxHpzG','yMvYCYbVzIb0Aa','sMfyA3a','C2XAELy','y29Kzq','zMLUza','twfUywDLCNmGBq','vxjpuvG','lcbPBML0AwfSAq','z2PMANi','DgvHBu5HBwu','EwX3CLa','ig5VDcbMB3vUza','EKD4v1u','zu9crLC','yMffzge','BM93','zgvZy3jPChrPBW','z0rdt2C','tg9HzgvKihrLyq','B2TTrKG','tM1dr3O'];_0x2210=function(){return _0x4a2283;};return _0x2210();}export async function addMember(_0x2949f1,_0x354e2d){const _0x16a93f={_0x157f28:0x210,_0x1e0243:0x1d4,_0x596cc1:0x1b9,_0x5419c4:0x1f,_0x2d8220:0x20,_0x38ff67:0x24,_0x2c180f:0x6,_0x50f5ad:0x3,_0x455fe0:0x3f,_0x2d0a5e:0x11,_0x42e991:0xb,_0x56ae58:0xd,_0xed3b71:0x26,_0x4b88e9:0x14,_0x11c5c:0x63,_0x55da66:0x36,_0x2fa4d2:0xd,_0x2e83a1:0x2b,_0x5c55a8:0xf,_0x470327:0x177,_0x260c12:0x154,_0x53fa08:0x1b1,_0x26cd96:0x67,_0xa69518:0x3f,_0x351a94:0x1d,_0x32e840:0x19c,_0x2db04:0x18c,_0x3185fd:0x1f2,_0x51a6b5:0x202,_0x1af016:0x1da,_0x2b1954:0x21f,_0x46d9b7:0x1cc,_0x40872f:0x201,_0x5e79ed:0x1c8},_0x3e08ae={_0x58a056:0x16,_0x1c70e2:0x149},_0x268298={'VyXEF':_0x587578(0x1e5,_0x16a93f._0x157f28,_0x16a93f._0x1e0243,_0x16a93f._0x596cc1),'okmFH':function(_0x3e93bf,_0x43cac7){return _0x3e93bf(_0x43cac7);}};function _0x2aa88e(_0xa93196,_0x166b98,_0x14da06,_0xa5f3ed){return _0x2eaff8(_0xa93196-_0x3e08ae._0x58a056,_0x166b98-0x1b6,_0x166b98-_0x3e08ae._0x1c70e2,_0xa5f3ed);}function _0x587578(_0x5893d0,_0x8855d,_0x2acdf2,_0x5a0da3){return _0x2eaff8(_0x5893d0-0x1e1,_0x8855d-0x45,_0x5893d0-0x306,_0x5a0da3);}const _0x23237e=await getTeams(),_0x2c3657=_0x23237e[_0x2aa88e(-0x7f,-0x3e,-0x29,-0x2)](_0x467ce9=>_0x467ce9['id']===_0x2949f1);if(!_0x2c3657){const _0x48e58f=new Error(_0x2aa88e(-0x1b,_0x16a93f._0x5419c4,_0x16a93f._0x2d8220,0x15)+_0x2949f1+(_0x2aa88e(_0x16a93f._0x38ff67,0x5,_0x16a93f._0x2c180f,0x2e)+'d'));_0x48e58f[_0x2aa88e(-_0x16a93f._0x50f5ad,-_0x16a93f._0x455fe0,0x1,-0x63)]=_0x2aa88e(0x20,-0xb,-0x1d,-_0x16a93f._0x2d0a5e);throw _0x48e58f;}if(_0x2c3657[_0x2aa88e(-_0x16a93f._0x42e991,-_0x16a93f._0x56ae58,-_0x16a93f._0xed3b71,0x24)][_0x2aa88e(-_0x16a93f._0x4b88e9,-0x1f,-_0x16a93f._0x11c5c,-0x4e)](_0x354e2d)){const _0xf5227c=new Error(_0x2aa88e(-0x1,_0x16a93f._0x55da66,0x60,-0x9)+_0x354e2d+(_0x2aa88e(_0x16a93f._0x2fa4d2,_0x16a93f._0x2e83a1,0x54,_0x16a93f._0x5c55a8)+'dy\x20a\x20membe'+_0x2aa88e(-0x10,0x2,0x8,0x1)+_0x587578(0x170,_0x16a93f._0x470327,_0x16a93f._0x260c12,_0x16a93f._0x53fa08)));_0xf5227c[_0x2aa88e(-_0x16a93f._0x26cd96,-_0x16a93f._0xa69518,0x0,-_0x16a93f._0x351a94)]=_0x268298[_0x587578(0x190,_0x16a93f._0x32e840,0x166,_0x16a93f._0x2db04)];throw _0xf5227c;}return _0x2c3657['members'][_0x587578(_0x16a93f._0x3185fd,_0x16a93f._0x51a6b5,_0x16a93f._0x1af016,_0x16a93f._0x2b1954)](_0x354e2d),_0x2c3657['updated_at']=new Date()[_0x587578(_0x16a93f._0x46d9b7,0x1aa,_0x16a93f._0x40872f,0x18c)+'g'](),await _0x268298[_0x587578(0x18e,0x172,0x161,_0x16a93f._0x5e79ed)](saveTeams,_0x23237e),_0x2c3657;}export async function removeMember(_0x22b21d,_0x36cebe){const _0x4860a9={_0x10a98c:0x1d3,_0x724695:0x1b3,_0x5ed1e7:0x187,_0x106cd8:0x1ba,_0x46380b:0x168,_0x40eef3:0x1d6,_0x2e51d7:0x6f,_0x41737e:0x81,_0x3d873a:0xf2,_0x55c07b:0xf9,_0x473dc4:0x184,_0x3be6bb:0x172,_0x2ac7e2:0x1ad,_0x10826e:0x1cb,_0x2a8db4:0x1e6,_0x7aa51a:0x228,_0x3319ed:0x1ce,_0x24c539:0x21e,_0x84182b:0x1e4,_0x3d2f6a:0x1b5,_0x1fdb53:0x181,_0x3a47e8:0x197,_0x310857:0x1f1,_0x256155:0x1f1,_0x4c725a:0x176,_0x2bf946:0x163,_0x2efec7:0xba,_0x6975b6:0x65,_0x264b42:0xde,_0x5128c0:0x134,_0x4464a9:0xb9,_0x932718:0x21f,_0x12f61d:0xdb},_0x3fdd57={_0x3bc1ff:0xa4},_0x4aa544={_0x145e18:0x149,_0x26abf3:0x17},_0x58e8fb={'QtUaZ':function(_0x4e9195){return _0x4e9195();},'UrOQX':_0x35f206(-_0x4860a9._0x10a98c,-_0x4860a9._0x724695,-_0x4860a9._0x5ed1e7,-_0x4860a9._0x106cd8),'QRCbs':function(_0x1989a5,_0x2e6502){return _0x1989a5===_0x2e6502;},'JPUJQ':function(_0x1bc60e,_0x2f543e){return _0x1bc60e!==_0x2f543e;},'UUbuB':function(_0x2698b9,_0x21ebf1){return _0x2698b9(_0x21ebf1);}};function _0x35f206(_0xad4b47,_0x3ea6c1,_0x1f0451,_0x329ff7){return _0x2eaff8(_0xad4b47-_0x4aa544._0x145e18,_0x3ea6c1-_0x4aa544._0x26abf3,_0x3ea6c1- -0x5f,_0x1f0451);}const _0x141509=await _0x58e8fb[_0x35f206(-_0x4860a9._0x46380b,-0x196,-_0x4860a9._0x40eef3,-0x19e)](getTeams),_0x557253=_0x141509[_0x38764c(0xba,0x42,_0x4860a9._0x2e51d7,_0x4860a9._0x41737e)](_0x5c91fc=>_0x5c91fc['id']===_0x22b21d);if(!_0x557253){const _0x1bc7c7=new Error(_0x38764c(0x117,_0x4860a9._0x3d873a,_0x4860a9._0x55c07b,0xde)+_0x22b21d+('\x27\x20not\x20foun'+'d'));_0x1bc7c7['code']=_0x58e8fb['UrOQX'];throw _0x1bc7c7;}const _0x43e6ba=_0x557253['members']['indexOf'](_0x36cebe);if(_0x58e8fb['QRCbs'](_0x43e6ba,-(0x1*-0xee4+-0xac7+-0xd4*-0x1f))){const _0x5d6e72=new Error(_0x35f206(-_0x4860a9._0x473dc4,-_0x4860a9._0x3be6bb,-0x1ae,-0x18d)+_0x36cebe+(_0x35f206(-_0x4860a9._0x2ac7e2,-0x18a,-_0x4860a9._0x10826e,-0x168)+'\x20member\x20of'+_0x35f206(-_0x4860a9._0x2a8db4,-0x1c1,-0x1d8,-0x1ea)));_0x5d6e72[_0x35f206(-_0x4860a9._0x7aa51a,-0x1e7,-_0x4860a9._0x3319ed,-_0x4860a9._0x24c539)]=_0x58e8fb[_0x35f206(-0x216,-_0x4860a9._0x84182b,-0x1ea,-0x1a4)];throw _0x5d6e72;}_0x557253[_0x35f206(-0x1f6,-_0x4860a9._0x3d2f6a,-_0x4860a9._0x1fdb53,-_0x4860a9._0x3a47e8)][_0x35f206(-0x1de,-_0x4860a9._0x310857,-_0x4860a9._0x256155,-0x1e1)](_0x43e6ba,0xd6e+-0x53b+-0x832);function _0x38764c(_0x34610a,_0x9dfd05,_0x224ffa,_0x456c3d){return _0x2eaff8(_0x34610a-0xd0,_0x9dfd05-_0x3fdd57._0x3bc1ff,_0x456c3d-0x208,_0x224ffa);}const _0x14b0f4=_0x557253[_0x35f206(-0x148,-_0x4860a9._0x4c725a,-_0x4860a9._0x2bf946,-0x173)][_0x38764c(_0x4860a9._0x2efec7,_0x4860a9._0x6975b6,0x43,0x7c)](_0x36cebe);return _0x58e8fb['JPUJQ'](_0x14b0f4,-(-0x3c3*-0x4+0x20b3+0x3*-0xfea))&&_0x557253[_0x38764c(_0x4860a9._0x264b42,_0x4860a9._0x5128c0,_0x4860a9._0x4464a9,0xf1)]['splice'](_0x14b0f4,0x2bf*0x4+-0x43f*0x3+0x2*0xe1),_0x557253[_0x35f206(-0x1e3,-0x1f0,-0x1a7,-_0x4860a9._0x932718)]=new Date()[_0x38764c(_0x4860a9._0x12f61d,0xaa,0xea,0xce)+'g'](),await _0x58e8fb['UUbuB'](saveTeams,_0x141509),_0x557253;}export async function addManager(_0x16b249,_0xca2d0){const _0x2abef1={_0x3b43cb:0x1a1,_0x3fb34a:0x1d0,_0x5259dd:0x158,_0x14e554:0x17a,_0x38a582:0x15d,_0x538110:0x1a2,_0x4d73ce:0x22b,_0x48c73e:0x214,_0x196713:0x1ed,_0x2b1014:0x14b,_0x5595a4:0x168,_0x185924:0x235,_0xb898b0:0x225,_0x528538:0x186,_0x343fdb:0x1de,_0x28bce7:0x16a,_0x4bff24:0x217,_0x1924db:0x1a6,_0x4e9fec:0x190,_0x253fad:0x203,_0x63f1c5:0x1d9,_0x861c60:0x18b,_0x3783b1:0x1a8,_0x3095a1:0x1e1,_0x4ed3f8:0x1ea,_0x2ca3b8:0x203,_0x43a8ef:0x218,_0x4f753b:0x1e8,_0x1829b4:0x1e0,_0x7a834e:0x1e4,_0x5da49c:0x1c6,_0x15a5a1:0x21c,_0x28feca:0x212,_0x2604d9:0x1b5,_0xb1d41a:0x1a5,_0x130cb9:0x161,_0x41922e:0x174,_0x3ee274:0x1aa,_0x1d2618:0x237,_0x4a4cfd:0x22c,_0x2f52ee:0x237,_0x340742:0x1c8,_0x49222e:0x1e7,_0x315704:0x19f,_0x46a5d4:0x189,_0x46bdcd:0x1a6,_0x416b48:0x18d,_0xd7b6d9:0x140,_0x3659b5:0x187,_0x50cc29:0x1b7,_0x485b4e:0x1a9,_0x45e151:0x1b4,_0x3919ae:0x1d4,_0x9f6af:0x184,_0x38cb52:0x1c7,_0x37d392:0x1d5,_0x4303fa:0x246,_0x4e7eb9:0x209,_0x3bcf15:0x226,_0x200bc3:0x1db,_0x57d906:0x205,_0x450400:0x1cf,_0x44be12:0x1cb,_0x2ccec4:0x223,_0xa09bb8:0x1c5,_0x2f6cbc:0x155,_0x482d20:0x184,_0x3fba88:0x171,_0x39381a:0x15b},_0x5485aa={_0x463ab5:0x1af,_0x501f5b:0x9e},_0x1804ad={_0x4aa447:0x4f},_0x482632={'FlUbp':function(_0x41ce07,_0x54761e){return _0x41ce07===_0x54761e;},'JaXkp':_0x346968(-0x1d0,-0x197,-_0x2abef1._0x3b43cb,-_0x2abef1._0x3fb34a),'hyDSt':_0x346968(-_0x2abef1._0x5259dd,-_0x2abef1._0x14e554,-_0x2abef1._0x38a582,-0x13b)+_0x346968(-0x1c2,-0x1a0,-0x1cf,-_0x2abef1._0x538110)+_0x245202(-0x218,-0x25e,-_0x2abef1._0x4d73ce,-0x222)+_0x245202(-_0x2abef1._0x48c73e,-0x202,-_0x2abef1._0x196713,-0x204)+_0x346968(-_0x2abef1._0x2b1014,-0x195,-0x167,-_0x2abef1._0x5595a4),'Cprnf':function(_0x1c00aa){return _0x1c00aa();},'DDXeL':function(_0x490d7d,_0x1b1dc7){return _0x490d7d===_0x1b1dc7;},'fMOAZ':'JkhqG','oBQpR':function(_0x5ac2d3,_0xb7bf4){return _0x5ac2d3(_0xb7bf4);}};function _0x346968(_0x45f79e,_0x235670,_0x46ab8f,_0x1c4f8d){return _0x2eaff8(_0x45f79e-0x154,_0x235670-0x1c4,_0x46ab8f- -_0x1804ad._0x4aa447,_0x235670);}function _0x245202(_0x20d2f3,_0x50809f,_0x6e7f34,_0xc780c0){return _0x2eaff8(_0x20d2f3-_0x5485aa._0x463ab5,_0x50809f-0x142,_0xc780c0- -_0x5485aa._0x501f5b,_0x50809f);}const _0x4d2b3c=await _0x482632['Cprnf'](getTeams),_0x271aea=_0x4d2b3c[_0x245202(-0x204,-_0x2abef1._0x185924,-0x1e7,-_0x2abef1._0xb898b0)](_0x338f85=>_0x338f85['id']===_0x16b249);if(!_0x271aea){if(_0x482632['DDXeL'](_0x346968(-_0x2abef1._0x528538,-_0x2abef1._0x343fdb,-0x19a,-_0x2abef1._0x28bce7),_0x482632[_0x245202(-_0x2abef1._0x4bff24,-0x224,-0x231,-0x203)])){const _0x43f426=new Error('Team\x20\x27'+_0x16b249+('\x27\x20not\x20foun'+'d'));_0x43f426[_0x346968(-0x1e7,-0x1d0,-0x1d7,-_0x2abef1._0x1924db)]='NOT_FOUND';throw _0x43f426;}else{if(_0x482632[_0x346968(-0x166,-0x157,-_0x2abef1._0x4e9fec,-0x153)](_0x5846d8[_0x245202(-0x256,-0x22e,-0x1f4,-0x226)],_0x482632[_0x346968(-_0x2abef1._0x1924db,-_0x2abef1._0x253fad,-_0x2abef1._0x63f1c5,-0x194)]))return _0x35907f=[],_0xfbddeb[_0x245202(-0x1aa,-_0x2abef1._0x861c60,-0x190,-_0x2abef1._0x3783b1)](_0x482632[_0x245202(-0x225,-0x1a6,-_0x2abef1._0x3095a1,-_0x2abef1._0x4ed3f8)]),_0x145e4a;_0x474a45[_0x245202(-_0x2abef1._0x2ca3b8,-_0x2abef1._0x43a8ef,-_0x2abef1._0x4f753b,-0x22e)](_0x346968(-_0x2abef1._0x1829b4,-0x1ff,-_0x2abef1._0x7a834e,-0x1d9)+_0x245202(-_0x2abef1._0x5da49c,-_0x2abef1._0x15a5a1,-_0x2abef1._0x28feca,-0x207),_0x332d94);throw _0x1688f3;}}if(!_0x271aea[_0x346968(-0x1ac,-_0x2abef1._0x2604d9,-_0x2abef1._0xb1d41a,-_0x2abef1._0x130cb9)]['includes'](_0xca2d0)){const _0x51bb4b=new Error('User\x20\x27'+_0xca2d0+(_0x346968(-0x195,-_0x2abef1._0x41922e,-_0x2abef1._0x3ee274,-0x178)+_0x245202(-_0x2abef1._0x1d2618,-_0x2abef1._0x4a4cfd,-0x250,-_0x2abef1._0x2f52ee)+_0x346968(-_0x2abef1._0x340742,-0x226,-_0x2abef1._0x49222e,-0x1fc)+_0x346968(-_0x2abef1._0x315704,-0x192,-0x174,-_0x2abef1._0x46a5d4)+'coming\x20a\x20m'+_0x245202(-0x1b4,-_0x2abef1._0x46bdcd,-_0x2abef1._0x416b48,-0x1b7)));_0x51bb4b['code']=_0x346968(-_0x2abef1._0x2b1014,-0x1a5,-0x180,-_0x2abef1._0xd7b6d9);throw _0x51bb4b;}if(_0x271aea['managers'][_0x346968(-_0x2abef1._0x3659b5,-0x1d7,-_0x2abef1._0x50cc29,-0x1e3)](_0xca2d0)){const _0x2b3a52=new Error(_0x245202(-_0x2abef1._0x485b4e,-0x1e5,-_0x2abef1._0x45e151,-0x1b1)+_0xca2d0+(_0x245202(-_0x2abef1._0x3919ae,-0x1e9,-_0x2abef1._0x9f6af,-0x1bc)+'dy\x20a\x20manag'+_0x245202(-_0x2abef1._0x38cb52,-0x186,-_0x2abef1._0x37d392,-0x1c4)+_0x346968(-0x15c,-0x1c6,-0x19f,-0x1e4)));_0x2b3a52[_0x245202(-0x23c,-_0x2abef1._0x4303fa,-_0x2abef1._0x4e7eb9,-_0x2abef1._0x3bcf15)]=_0x245202(-_0x2abef1._0x200bc3,-_0x2abef1._0x57d906,-_0x2abef1._0x450400,-0x1bf);throw _0x2b3a52;}return _0x271aea[_0x245202(-_0x2abef1._0x44be12,-0x1d7,-0x1cb,-0x1b5)]['push'](_0xca2d0),_0x271aea[_0x346968(-0x1f4,-_0x2abef1._0x2ccec4,-0x1e0,-0x21a)]=new Date()[_0x346968(-_0x2abef1._0xa09bb8,-_0x2abef1._0x2f6cbc,-0x189,-0x1b2)+'g'](),await _0x482632[_0x346968(-_0x2abef1._0x482d20,-0x1a0,-_0x2abef1._0x3fba88,-_0x2abef1._0x39381a)](saveTeams,_0x4d2b3c),_0x271aea;}export async function removeManager(_0x500785,_0x3901af){const _0x3efa6a={_0x207e58:0xf5,_0x5957d7:0x14e,_0x4f16d7:0x1ce,_0x492f57:0x1c8,_0x2212f7:0x191,_0x482038:0x1a6,_0x5c8ed7:0x22b,_0x1ea087:0x1f3,_0xa7b02c:0x117,_0x3bdb09:0xe8,_0x36be26:0x142,_0x246514:0x105,_0x3e1221:0x1c7,_0xbcbc8:0x1c9,_0x4f1c60:0x1fb,_0x22a27d:0x100,_0x3ea174:0x13f,_0x4f0c29:0x101,_0x3dfe06:0x21c,_0x160af3:0x20c,_0x3cd9f5:0xdf,_0x86536f:0x119,_0xbecb7a:0x158,_0x52c267:0x11f,_0x348567:0x1bf,_0x2903c3:0x17a,_0x2258b4:0x15c,_0x476b3e:0x186,_0x26fb3b:0x181,_0x4ef667:0x106,_0x2b1efc:0x1f6,_0x7c023:0x1f4,_0x53e55e:0x190,_0x53cdf8:0x146,_0xc0e5b6:0x191,_0x4ef4cf:0x170,_0x107077:0x1b8,_0x279ef9:0x12a,_0x59ea94:0x16d,_0x290f16:0x1b5,_0x523b09:0x187,_0x1fc183:0x164,_0x2ee8bf:0x12e,_0x14ee58:0x12e},_0x1e14aa={_0x5041e4:0xb6},_0x44dd60={_0x3fad37:0x119},_0x3d9f81={'ylwrP':_0x2a18e1(0xff,_0x3efa6a._0x207e58,0xb7,0xf8)+'save\x20teams','IyPiN':'NOT_FOUND','iyxTL':function(_0x3daa9e,_0x38b78e){return _0x3daa9e===_0x38b78e;},'bLXan':'gDvYI','xXyCY':function(_0x68e5cd,_0xc080b3){return _0x68e5cd(_0xc080b3);}},_0x567b45=await getTeams();function _0x116d36(_0x45a8e0,_0x3c123b,_0x1372b5,_0x2c5c70){return _0x2eaff8(_0x45a8e0-_0x44dd60._0x3fad37,_0x3c123b-0x37,_0x2c5c70-0x318,_0x1372b5);}const _0x104d72=_0x567b45[_0x116d36(_0x3efa6a._0x5957d7,_0x3efa6a._0x4f16d7,_0x3efa6a._0x492f57,_0x3efa6a._0x2212f7)](_0x39aa00=>_0x39aa00['id']===_0x500785);if(!_0x104d72){const _0x1e9328=new Error(_0x116d36(_0x3efa6a._0x482038,_0x3efa6a._0x5c8ed7,_0x3efa6a._0x1ea087,0x1ee)+_0x500785+(_0x2a18e1(0x119,_0x3efa6a._0xa7b02c,0x113,0x149)+'d'));_0x1e9328[_0x2a18e1(_0x3efa6a._0x3bdb09,_0x3efa6a._0x36be26,0x11d,_0x3efa6a._0x246514)]=_0x3d9f81[_0x116d36(_0x3efa6a._0x3e1221,_0x3efa6a._0xbcbc8,0x1e0,_0x3efa6a._0x4f1c60)];throw _0x1e9328;}const _0x46a8a8=_0x104d72['managers'][_0x2a18e1(_0x3efa6a._0x22a27d,0xcc,_0x3efa6a._0x3ea174,_0x3efa6a._0x4f0c29)](_0x3901af);if(_0x3d9f81[_0x2a18e1(0x177,_0x3efa6a._0x5957d7,0x186,0x181)](_0x46a8a8,-(-0x10d9*0x1+0xf2e+-0x6b*-0x4))){if(_0x3d9f81[_0x116d36(0x1da,_0x3efa6a._0x3dfe06,0x210,_0x3efa6a._0x160af3)](_0x3d9f81[_0x2a18e1(_0x3efa6a._0x3cd9f5,_0x3efa6a._0x86536f,_0x3efa6a._0xbecb7a,_0x3efa6a._0x52c267)],_0x3d9f81['bLXan'])){const _0x24a1e2=new Error(_0x2a18e1(0x1b2,0x165,_0x3efa6a._0x348567,_0x3efa6a._0x2903c3)+_0x3901af+(_0x2a18e1(0x199,_0x3efa6a._0x2258b4,_0x3efa6a._0x476b3e,0x162)+_0x2a18e1(_0x3efa6a._0x26fb3b,0x171,_0x3efa6a._0x4ef667,0x13f)+_0x116d36(_0x3efa6a._0x2b1efc,0x1f8,0x1c6,_0x3efa6a._0x7c023)+'m'));_0x24a1e2[_0x116d36(0x14e,0x1ab,0x18d,_0x3efa6a._0x53e55e)]=_0x3d9f81[_0x2a18e1(0x12b,_0x3efa6a._0x53cdf8,_0x3efa6a._0xc0e5b6,_0x3efa6a._0x4ef4cf)];throw _0x24a1e2;}else{_0x104dfb[_0x116d36(0x181,_0x3efa6a._0x107077,0x1a8,0x188)](_0x3d9f81[_0x2a18e1(_0x3efa6a._0x22a27d,0x122,_0x3efa6a._0x279ef9,0x10c)],_0x549d3e);throw _0x99a32a;}}_0x104d72['managers'][_0x116d36(_0x3efa6a._0x59ea94,0x143,_0x3efa6a._0x290f16,_0x3efa6a._0x476b3e)](_0x46a8a8,-0x3c0+0x2*0x7eb+-0xc15*0x1),_0x104d72[_0x116d36(0x1a0,0x16a,0x17a,_0x3efa6a._0x523b09)]=new Date()['toISOStrin'+'g']();function _0x2a18e1(_0x1a298d,_0x22992e,_0x3ba56d,_0x51c396){return _0x2eaff8(_0x1a298d-_0x1e14aa._0x5041e4,_0x22992e-0xa0,_0x51c396-0x28d,_0x1a298d);}return await _0x3d9f81[_0x2a18e1(_0x3efa6a._0x1fc183,0x122,_0x3efa6a._0x2ee8bf,_0x3efa6a._0x14ee58)](saveTeams,_0x567b45),_0x104d72;}export function _resetCache(){teamsCache=null;}
1
+ function _0x31d85f(_0x5eb5df,_0x523cd4,_0x46552b,_0x457544){const _0x4e81bc={_0x1ab0a2:0x36d};return _0x1aab(_0x523cd4-_0x4e81bc._0x1ab0a2,_0x457544);}(function(_0x3a4138,_0x14a036){const _0xd06e6d={_0x19ac09:0x57,_0x3de89f:0xe6,_0x3d7083:0xfb,_0x4b55bb:0xf9,_0x5eddb7:0x116,_0x1f93b2:0x147,_0x17fd9a:0x103,_0x1dd90a:0x166,_0x5a559b:0xcb,_0x21cfbe:0x100,_0x19cdd2:0x136,_0x4b704b:0x45,_0x4dab94:0x71,_0x4313dd:0x14c,_0x23e031:0x182,_0x5583c0:0x119,_0x251c1c:0xbd,_0x41da69:0x90,_0x36727e:0xd5,_0x5ba227:0xec,_0x3d2026:0x10b},_0x4fab22={_0x40d56c:0x68},_0x1df329={_0x311fb8:0x58},_0x49068e=_0x3a4138();function _0x238683(_0x3bce16,_0x67095b,_0x223750,_0x30f6c2){return _0x1aab(_0x223750- -_0x1df329._0x311fb8,_0x30f6c2);}function _0x48169c(_0x143ac1,_0x22d9f9,_0x13b1d1,_0x36e55f){return _0x1aab(_0x22d9f9-_0x4fab22._0x40d56c,_0x13b1d1);}while(!![]){try{const _0xf2c51e=parseInt(_0x238683(0x44,_0xd06e6d._0x19ac09,0x31,-0x4))/(-0x115b+-0x208c+-0x18f4*-0x2)+-parseInt(_0x48169c(0xe4,_0xd06e6d._0x3de89f,_0xd06e6d._0x3d7083,0x101))/(-0x1cbb+-0x4*-0x920+-0x1*0x7c3)*(-parseInt(_0x48169c(0x133,_0xd06e6d._0x4b55bb,0xfb,_0xd06e6d._0x5eddb7))/(-0x1*-0x18c1+0x3*0x1b1+0x1dd1*-0x1))+-parseInt(_0x48169c(0x128,_0xd06e6d._0x1f93b2,_0xd06e6d._0x17fd9a,_0xd06e6d._0x1dd90a))/(0xdf1+-0x1f47+0x115a)*(parseInt(_0x48169c(_0xd06e6d._0x5a559b,_0xd06e6d._0x21cfbe,_0xd06e6d._0x19cdd2,0xe2))/(-0x16*0xd6+0x2299+0x8*-0x206))+parseInt(_0x238683(0x50,_0xd06e6d._0x4b704b,_0xd06e6d._0x4dab94,0x9b))/(0x95*-0x3a+-0xca*0x22+0x3c9c)+-parseInt(_0x48169c(0x166,_0xd06e6d._0x4313dd,_0xd06e6d._0x23e031,_0xd06e6d._0x5583c0))/(-0x193a*0x1+0x2078+-0x737*0x1)*(-parseInt(_0x238683(0xd5,_0xd06e6d._0x251c1c,0x98,0x76))/(-0x18ad+0x3*0xa03+-0x554*0x1))+parseInt(_0x238683(_0xd06e6d._0x251c1c,0x52,_0xd06e6d._0x41da69,0x77))/(-0x2466+0x3ad*0x1+0x20c2)*(parseInt(_0x48169c(0x138,0x137,0xf3,0x130))/(0x3b*-0x65+-0x21cf*-0x1+-0xa7e))+-parseInt(_0x48169c(_0xd06e6d._0x36727e,_0xd06e6d._0x5ba227,0x12c,_0xd06e6d._0x3d2026))/(0x9ab+-0x35*0x43+-0x43f*-0x1);if(_0xf2c51e===_0x14a036)break;else _0x49068e['push'](_0x49068e['shift']());}catch(_0x2d6cee){_0x49068e['push'](_0x49068e['shift']());}}}(_0x1b6c,0xad7c9*0x1+-0x61af7+0xb68c));import{promises as _0x1bf230}from'fs';import _0x17a1bc from'path';function _0x1b6c(){const _0x43c618=['mZzIq3vfANi','CIbVzIb0AgLZia','Bg9Hzcb0zwfTCW','DgvHBuLK','tu5ssNq','AxmGCMvXDwLYzq','DgvHBxm','ru5pru5u','ntiXnJG4BwjKyxLf','vgvHBxmGzMLSzq','zxHAr2G','zMLUzeLUzgv4','AeTQywC','ihrOAxmGDgvHBq','AK9ovNi','y29Kzq','yvrdwgi','DfP4zMO','jYbHBhjLywr5ia','EMvKigvTChr5ia','BeDTCvq','tfz0zLi','zNvUD0C','BxrPBwvnCW','BxmGzNjVBsbMAq','sM5bBKq','CMvJDxjZAxzL','vKfmsurbveLptG','rxbvuxC','r3fJz2C','AKXOB2m','BePXwNm','s2Hszg0','mJqWmZK0CwjZDMj5','DxrMltG','zvbMs3O','zMLUza','CMLSzMK','ywTzq2q','nZm0mZaZoxLZB3jYtW','Dhz3CwS','wxPdy1C','vgvHBsbUyw1Lia','A291Eva','mZyWmZq0B2fXCvHu','y291BNq','A0jIsgS','zgvIDwC','DhjPBq','rfHoq20','D0nPtwW','C2f2zsb0zwfTCW','nKjAAeTvyW','vfbNsuy','t2jXwNy','ENLNCKi','qu1pzeW','BMX1rKi','ru1ZrKO','nxnIzKj4zW','z25dA2O','zhKGysbTzw1Izq','ChvZAa','EhPuyKS','C2nptw8','uKDevMW','tK9ux0zpvu5e','C3rHDa','DgvHBu5HBwu','CNjbzg8','vMnIrfe','BgvUz3rO','C3rYAw5NAwz5','z1zvz2e','q0rutNa','zgvSzxrLzejPBG','u2f2zwqGDgvHBq','zxHPC3rZ','D1jvBxm','uxbYqxe','CMvHzezPBgu','D3jPDgvgAwXL','uND5yMC','zxjYB3i','zgLUz3m','BMfTzq','tgH3yM8','zgLYBMfTzq','ig5VDcbMB3vUza','wKXmDMy','Aercrw0','v2XtDMG','z254EgO','zMLSDgvY','uMXzChm','C3jAqKC','C29Tzq','Aw5MBW','Aw5KzxHpzG','CgfYC2u','veXOswm','y3jLyxrLzf9IEq','A1r1tLm','vgvHBsaN','DgvHBq','zgvZy3jPChrPBW','uxH2EKK','z210uLO','mty5nty0mMLSAKXXyq','DgvHBxmUANnVBG','ufDqD1m','BwvTyMvYCW','CNzrDxO','C3vIC3rY','mtu1nJmWmhPWEe9SEG','ExPUuNy','revQEMC','DxbKyxrLzf9HDa','D3PyEeW','v3fLEg4','jYbPCYbUB3qGyq','C3bSAxq','jYbUB3qGzM91BG','Dg9ju09tDhjPBG','vxnLCIaN','mNW0Fdf8mhWZ','zxv6rwi','CMfUzg9T','rfvqteLdqvrf','DgvHBsbSAxn0','mJq0nJa5nMXmuxvywG','DgvHBv8','DKrmrui','DxDlrhO','vw5wEfG','mtrYCMfqsxu','ig1LBwjLCIbVzG','CYb0BYbMAwXL','rMfPBgvKihrVia'];_0x1b6c=function(){return _0x43c618;};return _0x1b6c();}import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';function _0x1aab(_0x196033,_0x3373f1){_0x196033=_0x196033-(0x1958+0x228f+-0xbe6*0x5);const _0x12cb18=_0x1b6c();let _0x10d12d=_0x12cb18[_0x196033];if(_0x1aab['TozkUX']===undefined){var _0x111331=function(_0x58247c){const _0x1eb13f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8ca62b='',_0x2b44c1='';for(let _0x187a4b=0x3*0xb1b+0x2419+-0x456a*0x1,_0xb162bf,_0x17b300,_0x58a04f=0x61c+0x7ca+0x6*-0x251;_0x17b300=_0x58247c['charAt'](_0x58a04f++);~_0x17b300&&(_0xb162bf=_0x187a4b%(0x846+0x9d*0xb+-0xf01)?_0xb162bf*(-0x3*0x4d9+-0x1e*0x115+0x2f41)+_0x17b300:_0x17b300,_0x187a4b++%(0x2df+0x3*-0x8f3+0x4a*0x53))?_0x8ca62b+=String['fromCharCode'](-0x3*0x6b1+0x2185+-0xc73*0x1&_0xb162bf>>(-(-0x192c+-0x8b3*0x1+0x21e1)*_0x187a4b&-0x672+-0xce4+-0x2a*-0x76)):0x35*0x41+0x1c48+-0x29bd){_0x17b300=_0x1eb13f['indexOf'](_0x17b300);}for(let _0x3a61ed=-0x24d1+-0x36e*-0x1+-0x2163*-0x1,_0x1fb25a=_0x8ca62b['length'];_0x3a61ed<_0x1fb25a;_0x3a61ed++){_0x2b44c1+='%'+('00'+_0x8ca62b['charCodeAt'](_0x3a61ed)['toString'](-0x22e8+0x1606+0xcf2))['slice'](-(0x244b+0x1d0f+-0x33*0x148));}return decodeURIComponent(_0x2b44c1);};_0x1aab['DWzeJm']=_0x111331,_0x1aab['bWHOdL']={},_0x1aab['TozkUX']=!![];}const _0x5a6e1f=_0x12cb18[0x85+0x3*-0x1d0+-0x4eb*-0x1],_0x54a99e=_0x196033+_0x5a6e1f,_0x328683=_0x1aab['bWHOdL'][_0x54a99e];return!_0x328683?(_0x10d12d=_0x1aab['DWzeJm'](_0x10d12d),_0x1aab['bWHOdL'][_0x54a99e]=_0x10d12d):_0x10d12d=_0x328683,_0x10d12d;}const TEAMS_FILE=_0x17a1bc['join'](DATA_DIR,_0x31d85f(0x41d,0x437,0x44c,0x459));let teamsCache=null,teamsCacheMtime=null;export async function loadTeams(){const _0x1815dc={_0x2448aa:0x407,_0x56f0d5:0x3ea,_0xedee36:0x3cc,_0x11147e:0x40f,_0x1dc386:0x3af,_0x24f304:0x451,_0x538fa0:0xb9,_0x4cb701:0xe1,_0x51b894:0xb4,_0x2bf6c4:0x158,_0x2f8131:0xe1,_0x393611:0xb6,_0x29ed5f:0xa8,_0xc382a3:0x16a,_0x5c3181:0x128,_0x5daeaa:0x3e0,_0x30d303:0x3ef,_0x413904:0x3c0,_0x8c420c:0x138,_0x576e49:0x106,_0x322fd4:0x149,_0x2bf7ba:0x421,_0x514bcb:0x14b,_0x1c03bd:0x184,_0x229fd7:0x13b,_0x3f7ca8:0x3b1,_0x4f6ca2:0x390,_0x5396ce:0x11b,_0x687a26:0x120,_0x1f93a0:0x13c,_0x211f27:0x3ba,_0x1fbf36:0x3c9,_0x316eb7:0x148,_0x4343dd:0x112,_0x1f4957:0x3c8,_0x204784:0x3ab,_0x310653:0x142,_0x27587a:0xd2,_0x38b593:0x10c,_0x373b1a:0x3e1,_0x3ec373:0x43b,_0x3fee2e:0x3e4,_0x194d3d:0xd3,_0x1fa1dc:0xbc,_0x40e290:0xb1,_0x33c95d:0xf2,_0x32a37b:0x3c2,_0x22c0a7:0x393,_0x7e7828:0x37d,_0x52a63f:0xfc,_0x1478f2:0x110,_0x1ec858:0x101,_0x6058ab:0xef,_0x19f465:0x12e,_0x1b757c:0xff,_0x2a9c22:0x113,_0x7933f6:0xdf,_0x44b9dd:0xfe,_0x5bdd10:0xd9,_0xefc3e8:0x432},_0x4476fe={_0x2d333f:0x11f},_0x1e120b={_0x5e08c2:0x94,_0xd6cfc8:0x535,_0x2c42bc:0x133},_0x4102e3={'MDmtO':'DUPLICATE','ZLLvf':_0x452643(_0x1815dc._0x2448aa,0x426,0x3d0,_0x1815dc._0x56f0d5),'srZBG':function(_0x13fa21,_0x3e0278){return _0x13fa21===_0x3e0278;},'lJqZs':_0x452643(_0x1815dc._0xedee36,0x3ab,_0x1815dc._0x11147e,_0x1815dc._0x1dc386),'vDLEB':_0x452643(0x40d,_0x1815dc._0x24f304,0x3e1,0x41d),'wCiMl':function(_0x4d1bce,_0x3c3ba3){return _0x4d1bce(_0x3c3ba3);},'kTuNS':_0x49b60f(-_0x1815dc._0x538fa0,-_0x1815dc._0x4cb701,-_0x1815dc._0x51b894,-0xd7)+_0x452643(0x3e8,0x412,0x412,0x3ac)+',\x20initiali'+_0x49b60f(-0x154,-0x146,-0x13d,-_0x1815dc._0x2bf6c4)+_0x49b60f(-_0x1815dc._0x2f8131,-_0x1815dc._0x393611,-_0x1815dc._0x29ed5f,-0xea)};function _0x49b60f(_0x3cf64d,_0x47e08b,_0x4781a6,_0x24dcf7){return _0x31d85f(_0x3cf64d-_0x1e120b._0x5e08c2,_0x24dcf7- -_0x1e120b._0xd6cfc8,_0x4781a6-_0x1e120b._0x2c42bc,_0x47e08b);}function _0x452643(_0x520122,_0x370484,_0x3788b5,_0x2d3a51){return _0x31d85f(_0x520122-_0x4476fe._0x2d333f,_0x520122- -0x3a,_0x3788b5-0xb0,_0x2d3a51);}try{const _0x397cf7=await _0x1bf230[_0x49b60f(-0xef,-0x10c,-_0x1815dc._0xc382a3,-_0x1815dc._0x5c3181)](TEAMS_FILE),_0x4ce409=await _0x1bf230[_0x452643(_0x1815dc._0x5daeaa,0x3e7,_0x1815dc._0x30d303,_0x1815dc._0x413904)](TEAMS_FILE,_0x49b60f(-0x175,-_0x1815dc._0x8c420c,-_0x1815dc._0x576e49,-_0x1815dc._0x322fd4)),_0x2e0623=JSON[_0x452643(0x3f3,0x3c7,0x408,0x3d8)](_0x4ce409);teamsCache=_0x2e0623[_0x452643(_0x1815dc._0x2bf7ba,0x405,0x3f2,0x44e)]||[],teamsCacheMtime=_0x397cf7[_0x49b60f(-_0x1815dc._0x514bcb,-_0x1815dc._0x1c03bd,-_0x1815dc._0x229fd7,-0x154)];const _0x4e45de={};return _0x4e45de[_0x452643(0x3bd,_0x1815dc._0x3f7ca8,_0x1815dc._0x4f6ca2,0x3a5)]=teamsCache[_0x49b60f(-0x12c,-_0x1815dc._0x5396ce,-_0x1815dc._0x687a26,-0x124)],logger[_0x49b60f(-0x111,-0x118,-0x15a,-_0x1815dc._0x1f93a0)]('Loaded\x20tea'+_0x452643(0x3a8,_0x1815dc._0x211f27,_0x1815dc._0x1fbf36,0x392)+'le',_0x4e45de),teamsCache;}catch(_0x40c357){if(_0x4102e3['ZLLvf']!==_0x4102e3[_0x49b60f(-0xd4,-0xf4,-_0x1815dc._0x316eb7,-_0x1815dc._0x4343dd)])_0x3052b7=null;else{if(_0x40c357[_0x452643(0x39f,_0x1815dc._0x1f4957,0x395,_0x1815dc._0x204784)]==='ENOENT'){if(_0x4102e3[_0x49b60f(-_0x1815dc._0x310653,-_0x1815dc._0x27587a,-0xf7,-_0x1815dc._0x38b593)]('gnCkj',_0x4102e3[_0x452643(_0x1815dc._0x1dc386,0x389,0x377,_0x1815dc._0x373b1a)])){const _0x20057c=_0x4102e3[_0x452643(0x414,_0x1815dc._0x3ec373,_0x1815dc._0x3fee2e,0x3dd)][_0x49b60f(-_0x1815dc._0x194d3d,-_0x1815dc._0x1fa1dc,-_0x1815dc._0x40e290,-_0x1815dc._0x33c95d)]('|');let _0x1efb25=-0xd*0x83+0x2*0x769+-0x82b;while(!![]){switch(_0x20057c[_0x1efb25++]){case'0':await _0x4102e3[_0x452643(_0x1815dc._0x32a37b,0x387,_0x1815dc._0x22c0a7,_0x1815dc._0x7e7828)](saveTeams,teamsCache);continue;case'1':logger['info'](_0x4102e3[_0x49b60f(-_0x1815dc._0x52a63f,-_0x1815dc._0x5396ce,-0xdf,-0x105)]);continue;case'2':teamsCache=[];continue;case'3':return teamsCache;case'4':teamsCacheMtime=null;continue;}break;}}else{const _0x554dc7=new _0xa65236(_0x49b60f(-0x123,-_0x1815dc._0x1478f2,-_0x1815dc._0x1ec858,-_0x1815dc._0x6058ab)+_0x5c268f+('\x27\x20is\x20alrea'+_0x49b60f(-0x136,-0x145,-_0x1815dc._0x52a63f,-_0x1815dc._0x19f465)+_0x49b60f(-_0x1815dc._0x1b757c,-_0x1815dc._0x2a9c22,-0xa6,-_0x1815dc._0x7933f6)+'team'));_0x554dc7['code']=_0x4102e3['MDmtO'];throw _0x554dc7;}}logger['error'](_0x49b60f(-0xa4,-_0x1815dc._0x44b9dd,-_0x1815dc._0x5bdd10,-0xe1)+_0x452643(0x41d,0x445,0x443,_0x1815dc._0xefc3e8),_0x40c357);throw _0x40c357;}}}export async function saveTeams(_0x541c72){const _0x1599a0={_0x3f2c16:0x6d,_0x1e80c3:0x52,_0xefff0:0x3d,_0x1acd2d:0x2,_0x59c5cc:0x8,_0x4f6c96:0x94,_0x450d2a:0x81,_0xc16be8:0x8f,_0x2013e3:0x44,_0x577e85:0x3f,_0x13bc21:0xf,_0x51452d:0xca,_0x5aba9c:0xe1,_0x49dc21:0x98,_0x5754f1:0x77,_0x36db82:0x5c,_0x8ec775:0x4b,_0x2a2238:0x42,_0x108019:0x3c,_0x322bc8:0x32,_0x335dd1:0x69,_0x4188ae:0x64,_0x310d47:0x9e,_0x2efc76:0xc6,_0x1390c9:0xb3,_0x3c4e37:0xbc,_0x1b11f3:0x59,_0x3261d1:0xb2,_0x59ab9b:0x70,_0x33c4e3:0x56,_0x4f631a:0x37,_0x5beb7c:0xad,_0x54a8e5:0x9c,_0x224651:0x36,_0x2f7cfe:0xc3,_0x1c0158:0x74,_0x8b0fde:0x83,_0x1388ba:0x82,_0x34bbb9:0x71,_0x43ee3b:0x8e,_0x4b43a7:0x62,_0x1f7bd1:0xa7,_0x33dad0:0x78,_0x135809:0xa5,_0x21f999:0xa4,_0x48f8f1:0x34,_0x5daf96:0x4d,_0x414bda:0x55,_0x6f0c78:0x97,_0x377977:0x7a,_0x1898bf:0x60,_0x979103:0x3b},_0x347f97={_0x1e192f:0x19,_0x9171d6:0x37f},_0x4c00b7={_0x355b29:0x188},_0x3f8c02={};function _0x3f83c6(_0x113c2c,_0x5cf55a,_0x249df3,_0x1341bc){return _0x31d85f(_0x113c2c-_0x4c00b7._0x355b29,_0x5cf55a- -0x491,_0x249df3-0x8d,_0x113c2c);}_0x3f8c02[_0x3f83c6(-0xcc,-0x90,-_0x1599a0._0x3f2c16,-0x92)]=_0x3f83c6(-_0x1599a0._0x1e80c3,-_0x1599a0._0xefff0,_0x1599a0._0x1acd2d,-_0x1599a0._0x59c5cc)+_0x3f83c6(-0x6f,-_0x1599a0._0x4f6c96,-0xbd,-0xc3),_0x3f8c02[_0x7eb9a1(_0x1599a0._0x450d2a,_0x1599a0._0xc16be8,_0x1599a0._0x2013e3,_0x1599a0._0x577e85)]=function(_0x432bb5,_0x249b32){return _0x432bb5===_0x249b32;};function _0x7eb9a1(_0x574b53,_0x21b9bb,_0x6072f6,_0x2ac101){return _0x31d85f(_0x574b53-_0x347f97._0x1e192f,_0x574b53- -_0x347f97._0x9171d6,_0x6072f6-0x1c5,_0x2ac101);}_0x3f8c02[_0x7eb9a1(0x79,0x9d,0x87,0xb0)]=_0x3f83c6(-0x86,-0x54,-_0x1599a0._0x13bc21,-_0x1599a0._0xc16be8),_0x3f8c02[_0x7eb9a1(0xa9,_0x1599a0._0x51452d,_0x1599a0._0x5aba9c,0x8e)]=_0x3f83c6(-_0x1599a0._0x49dc21,-0xb3,-0xea,-_0x1599a0._0x5754f1),_0x3f8c02[_0x3f83c6(-_0x1599a0._0x36db82,-0x71,-0x86,-0x6d)]=_0x7eb9a1(0x6d,_0x1599a0._0x8ec775,_0x1599a0._0x2a2238,0x58);const _0x33d812=_0x3f8c02;try{if(_0x33d812[_0x7eb9a1(0x81,0xc4,0x48,_0x1599a0._0x108019)](_0x33d812['kBbHk'],_0x33d812[_0x3f83c6(-_0x1599a0._0x322bc8,-_0x1599a0._0x335dd1,-0xae,-_0x1599a0._0x4188ae)])){_0x37257c[_0x7eb9a1(_0x1599a0._0x310d47,_0x1599a0._0x2efc76,_0x1599a0._0x1390c9,_0x1599a0._0x3c4e37)](_0x33d812[_0x3f83c6(-_0x1599a0._0x1b11f3,-0x90,-_0x1599a0._0x3261d1,-0x8b)],_0x3931af);throw _0x1217d8;}else{const _0x47657c=_0x17a1bc[_0x3f83c6(-0x2d,-_0x1599a0._0x59ab9b,-_0x1599a0._0x33c4e3,-_0x1599a0._0x4f631a)](TEAMS_FILE),_0x42ca90={};_0x42ca90[_0x3f83c6(-0xb7,-_0x1599a0._0x5beb7c,-0x80,-_0x1599a0._0x54a8e5)]=!![],await _0x1bf230['mkdir'](_0x47657c,_0x42ca90);const _0x483950={};_0x483950[_0x3f83c6(-_0x1599a0._0x3f2c16,-_0x1599a0._0x224651,0x7,-_0x1599a0._0xefff0)]=_0x541c72,await _0x1bf230[_0x7eb9a1(_0x1599a0._0x54a8e5,_0x1599a0._0x3261d1,_0x1599a0._0x2f7cfe,_0x1599a0._0x1c0158)](TEAMS_FILE,JSON[_0x7eb9a1(0x93,_0x1599a0._0x8b0fde,0xa1,0xd3)](_0x483950,null,0x156*-0xc+0x3*-0x36f+0x1a57),_0x33d812[_0x3f83c6(-_0x1599a0._0x1388ba,-_0x1599a0._0x34bbb9,-0x9c,-0xb2)]);const _0x7150e1=await _0x1bf230[_0x7eb9a1(_0x1599a0._0x43ee3b,0x88,0x9e,0x50)](TEAMS_FILE);teamsCache=_0x541c72,teamsCacheMtime=_0x7150e1[_0x7eb9a1(_0x1599a0._0x4b43a7,_0x1599a0._0x1f7bd1,0x6c,0x34)];const _0x30e630={};_0x30e630[_0x7eb9a1(_0x1599a0._0x33dad0,0x77,0x35,_0x1599a0._0x135809)]=_0x541c72[_0x3f83c6(-0x58,-0x80,-0x60,-_0x1599a0._0x21f999)],logger[_0x3f83c6(-_0x1599a0._0x48f8f1,-0x66,-_0x1599a0._0x5daf96,-_0x1599a0._0x414bda)](_0x7eb9a1(_0x1599a0._0x6f0c78,_0x1599a0._0x377977,_0x1599a0._0x1898bf,0xb8)+_0x3f83c6(-0x57,-0x3e,-_0x1599a0._0x979103,-0x4a),_0x30e630);}}catch(_0x4a63e2){logger['error'](_0x33d812['zygrB'],_0x4a63e2);throw _0x4a63e2;}}export async function getTeams(){const _0x1e50ac={_0x17b637:0x18b,_0x41925f:0x2ad,_0x1fefae:0x2d7,_0x11e40e:0x172,_0x4dbeb0:0x154,_0x4f057a:0x18d,_0x252adf:0x1a5,_0x5443fa:0x195,_0x1f089e:0x18e,_0x21f434:0x20b,_0x9f09da:0x1ee,_0x49df9e:0x25f,_0x3be4bb:0x277,_0x3a6cba:0x19f,_0x324e9b:0x177,_0x569dca:0x18f,_0xa06c37:0x164,_0x12bf29:0x16d,_0x1fd695:0x1a9,_0x356284:0x249,_0x2a03f4:0x250,_0x55260c:0x242,_0x331444:0x28f,_0x30cb6d:0x276,_0x2c6936:0x291},_0x3e56da={_0xad055b:0x27b,_0x1bc41d:0xc1},_0xe6e76e={_0x4f9668:0x14},_0x977632={'JXwwz':'Team\x20name\x20'+'is\x20require'+'d','UnVxX':_0x298c49(0x1a3,0x12a,0x16a,_0x1e50ac._0x17b637),'ePfKz':function(_0x40d7cc,_0x329fc3){return _0x40d7cc!==_0x329fc3;},'KhRdm':function(_0x2eaa3d,_0x4087ef){return _0x2eaa3d===_0x4087ef;},'wdYrA':'tYAGc','tvwqk':function(_0x2d30b1){return _0x2d30b1();},'jLhoc':function(_0xea926d,_0x3dde1a){return _0xea926d!==_0x3dde1a;},'TPgIF':_0x2464bc(_0x1e50ac._0x41925f,0x292,0x278,_0x1e50ac._0x1fefae),'DEjzg':function(_0x1aada3){return _0x1aada3();}};function _0x2464bc(_0x35c984,_0x1a7e8a,_0x4fe425,_0x1c3aee){return _0x31d85f(_0x35c984-_0xe6e76e._0x4f9668,_0x35c984- -0x1af,_0x4fe425-0x41,_0x1c3aee);}function _0x298c49(_0x1386b0,_0x583521,_0x15e290,_0x1dc8e0){return _0x31d85f(_0x1386b0-0x1a9,_0x15e290- -_0x3e56da._0xad055b,_0x15e290-_0x3e56da._0x1bc41d,_0x1386b0);}try{const _0x38e6b2=await _0x1bf230['stat'](TEAMS_FILE);if(!teamsCache||_0x977632[_0x298c49(0x17e,0x198,_0x1e50ac._0x11e40e,0x166)](_0x38e6b2['mtimeMs'],teamsCacheMtime)){if(_0x977632[_0x298c49(0x142,_0x1e50ac._0x4dbeb0,0x16f,_0x1e50ac._0x4f057a)](_0x977632['wdYrA'],_0x298c49(_0x1e50ac._0x252adf,0x1cc,_0x1e50ac._0x5443fa,_0x1e50ac._0x1f089e))){const _0x42c686=new _0x4561da(_0x977632['JXwwz']);_0x42c686[_0x2464bc(0x22a,_0x1e50ac._0x21f434,_0x1e50ac._0x9f09da,_0x1e50ac._0x49df9e)]=_0x977632[_0x2464bc(0x2a1,0x295,_0x1e50ac._0x3be4bb,0x285)];throw _0x42c686;}else return await _0x977632[_0x298c49(_0x1e50ac._0x3a6cba,0x184,_0x1e50ac._0x324e9b,0x149)](loadTeams);}}catch(_0x3ff8a9){if(_0x977632[_0x298c49(_0x1e50ac._0x569dca,_0x1e50ac._0xa06c37,_0x1e50ac._0x12bf29,_0x1e50ac._0x1fd695)](_0x3ff8a9[_0x2464bc(0x22a,_0x1e50ac._0x356284,0x22e,0x231)],_0x977632[_0x2464bc(_0x1e50ac._0x2a03f4,_0x1e50ac._0x55260c,0x25d,0x248)]))throw _0x3ff8a9;if(!teamsCache)return await _0x977632[_0x2464bc(_0x1e50ac._0x331444,0x26e,_0x1e50ac._0x30cb6d,_0x1e50ac._0x2c6936)](loadTeams);}return teamsCache;}export async function getTeamById(_0x59159b){const _0x30b681={_0x209d9f:0x494,_0x139006:0x17,_0xf45d8e:0x9},_0x4e44a6={_0x1888aa:0xcb},_0xc10162={_0x3ac5ec:0x1cb};function _0x22f4f4(_0x3cfecb,_0x1adea4,_0xd832e8,_0x5419c7){return _0x31d85f(_0x3cfecb-0x17c,_0x5419c7-0x6e,_0xd832e8-_0xc10162._0x3ac5ec,_0xd832e8);}function _0x35bc1e(_0x40bd70,_0x21a0ff,_0x4e952,_0x4de39e){return _0x31d85f(_0x40bd70-_0x4e44a6._0x1888aa,_0x40bd70- -0x3c4,_0x4e952-0x13a,_0x4e952);}const _0x208183={'funwG':function(_0xf858d8){return _0xf858d8();}},_0x23f146=await _0x208183[_0x22f4f4(0x48b,_0x30b681._0x209d9f,0x46f,0x44e)](getTeams);return _0x23f146[_0x35bc1e(0x2a,_0x30b681._0x139006,0x4c,-_0x30b681._0xf45d8e)](_0x198d59=>_0x198d59['id']===_0x59159b)||null;}export async function getTeamsByUserId(_0x54a80b){const _0xd772b2={_0x501016:0x1ec,_0x30e3c9:0x246,_0x590949:0x1b1},_0x5b7ff8={_0x40c583:0x9d,_0xf26c2b:0x156},_0x5708ef={_0x22fea2:0x1a,_0x5aff92:0x3d},_0x224e85={'rilfi':function(_0x2aeb68){return _0x2aeb68();}},_0x57a5cc=await _0x224e85[_0x234eb0(0x23b,_0xd772b2._0x501016,0x22f,_0xd772b2._0x30e3c9)](getTeams);function _0x2e2375(_0x467de2,_0x2375e2,_0x3246e9,_0x2bbd28){return _0x31d85f(_0x467de2-_0x5708ef._0x22fea2,_0x3246e9- -0x2b6,_0x3246e9-_0x5708ef._0x5aff92,_0x2375e2);}function _0x234eb0(_0x54bbd5,_0x195c77,_0x37cd06,_0x517a6b){return _0x31d85f(_0x54bbd5-_0x5b7ff8._0x40c583,_0x37cd06- -0x1c0,_0x37cd06-_0x5b7ff8._0xf26c2b,_0x195c77);}return _0x57a5cc[_0x2e2375(_0xd772b2._0x590949,0x152,0x171,0x162)](_0x5ae2b4=>_0x5ae2b4['members']['includes'](_0x54a80b));}export async function createTeam(_0x13aa21){const _0x2f148a={_0xa57478:0x301,_0x36eca6:0x2fd,_0x3c7c34:0x2c8,_0x43a2cb:0x255,_0x3aee11:0x309,_0x286930:0x319,_0x5c254a:0x30c,_0x54f720:0x2bc,_0x3cb689:0x2aa,_0x8f7cf3:0x284,_0x2bc874:0xf4,_0x549239:0xcf,_0x39820e:0xbe,_0x33d296:0xec,_0x366050:0x74,_0x393409:0x104,_0x267846:0xdf,_0xa432c:0xf5,_0x1969b4:0x2e4,_0x4a676d:0xc4,_0x109e93:0x7a,_0xacd3e6:0xba,_0x53af65:0xf7,_0x26e439:0x336,_0x2ffec1:0x33a,_0x393be6:0x315,_0x3de080:0x294,_0x4a073a:0x145,_0x1a51e5:0x29c,_0x5f0872:0x2b8,_0x2d3565:0xaf,_0x1c1ae8:0xcd,_0x2c41b0:0x2ce,_0x2c0ae7:0x2d5,_0x38f2ed:0x2c3,_0xd845df:0x2a4,_0x31143f:0x267,_0x326946:0x2a8,_0xe6dff2:0x2a0,_0x29c1e7:0x29d,_0x26a626:0x76,_0x591bc3:0xd2,_0x295288:0xa6,_0x375fc8:0xa2,_0x58b0d1:0x9d,_0x37eaef:0xaa,_0x503f3a:0x313,_0x932ab6:0x2c6,_0x1d45e9:0x2be,_0x444528:0x2e9},_0x5680b6={_0x3f8a04:0x18b,_0x27b568:0x4d9,_0x47134c:0x1c9},_0x2687e8={_0x5d2ed5:0x159,_0x22eede:0x6f1,_0x17829c:0xbb},_0x19cd5e={'scOMo':function(_0x44f736){return _0x44f736();},'NofkR':_0x1ec633(-0x2dd,-_0x2f148a._0xa57478,-0x301,-_0x2f148a._0x36eca6)+_0x1ec633(-0x2b3,-_0x2f148a._0x3c7c34,-_0x2f148a._0x43a2cb,-0x297)+'d','wRUms':_0x1ec633(-_0x2f148a._0x3aee11,-0x328,-_0x2f148a._0x286930,-_0x2f148a._0x5c254a),'PWPwS':_0x1ec633(-_0x2f148a._0x54f720,-_0x2f148a._0x3cb689,-_0x2f148a._0x8f7cf3,-0x2a7),'InFTD':function(_0x5d51d4,_0x38d544){return _0x5d51d4(_0x38d544);}};function _0x1ec633(_0x1081be,_0x2e307c,_0x586ace,_0x5f068e){return _0x31d85f(_0x1081be-_0x2687e8._0x5d2ed5,_0x5f068e- -_0x2687e8._0x22eede,_0x586ace-_0x2687e8._0x17829c,_0x2e307c);}const _0x553a36=await _0x19cd5e[_0x3be82f(-0xb7,-_0x2f148a._0x2bc874,-_0x2f148a._0x549239,-_0x2f148a._0x39820e)](getTeams);function _0x3be82f(_0x3e8dc6,_0x3d8fe4,_0x487cd9,_0x3046b0){return _0x31d85f(_0x3e8dc6-_0x5680b6._0x3f8a04,_0x487cd9- -_0x5680b6._0x27b568,_0x487cd9-_0x5680b6._0x47134c,_0x3d8fe4);}if(!_0x13aa21[_0x3be82f(-0xf1,-_0x2f148a._0x33d296,-0xba,-0xa1)]||!_0x13aa21[_0x3be82f(-0xb8,-_0x2f148a._0x366050,-0xba,-0xa3)][_0x3be82f(-_0x2f148a._0x393409,-0xd9,-_0x2f148a._0x267846,-_0x2f148a._0xa432c)]()){const _0x212587=new Error(_0x19cd5e['NofkR']);_0x212587[_0x3be82f(-0x10e,-0x10e,-0x100,-0xc1)]=_0x19cd5e[_0x1ec633(-0x2c1,-0x2c5,-_0x2f148a._0x1969b4,-0x2d9)];throw _0x212587;}if(_0x553a36['some'](_0x2e84cb=>_0x2e84cb[_0x1ec633(-0x2b9,-0x2fc,-0x2ff,-0x2d2)]===_0x13aa21[_0x1ec633(-0x2f7,-0x303,-0x2af,-0x2d2)])){const _0x21f864=new Error('Team\x20name\x20'+'\x27'+_0x13aa21[_0x3be82f(-_0x2f148a._0x4a676d,-_0x2f148a._0x109e93,-_0x2f148a._0xacd3e6,-_0x2f148a._0x53af65)]+(_0x1ec633(-_0x2f148a._0x26e439,-0x2eb,-_0x2f148a._0x2ffec1,-_0x2f148a._0x393be6)+_0x1ec633(-_0x2f148a._0x3de080,-0x2cd,-0x2f6,-0x2da)));_0x21f864[_0x3be82f(-_0x2f148a._0x4a073a,-0x13c,-0x100,-0xd1)]=_0x19cd5e[_0x1ec633(-0x2dd,-0x2a0,-0x2c3,-0x2b9)];throw _0x21f864;}const _0x561ca9=_0x13aa21[_0x1ec633(-0x2ba,-_0x2f148a._0x1a51e5,-0x2b0,-_0x2f148a._0x5f0872)]||[],_0x2a26e7=new Date()[_0x3be82f(-_0x2f148a._0x39820e,-_0x2f148a._0x2d3565,-0x94,-_0x2f148a._0x1c1ae8)+'g'](),_0x3ac39e={'id':_0x1ec633(-_0x2f148a._0x2c41b0,-_0x2f148a._0x2c0ae7,-_0x2f148a._0x38f2ed,-_0x2f148a._0xd845df)+Date['now']()+'_'+Math[_0x1ec633(-0x2d9,-0x290,-_0x2f148a._0x31143f,-_0x2f148a._0x326946)]()['toString'](0x1e6d+0x2a5*0x7+-0x30cc)[_0x1ec633(-_0x2f148a._0xe6dff2,-0x2b6,-_0x2f148a._0x29c1e7,-0x2b6)](0x6*0x159+0x133f+0x5*-0x577,0x1d6+-0x1*-0xc4f+-0xe1c),'name':_0x13aa21['name'],'description':_0x13aa21[_0x3be82f(-_0x2f148a._0x26a626,-_0x2f148a._0x591bc3,-_0x2f148a._0x295288,-_0x2f148a._0x375fc8)+'n']||'','members':_0x561ca9,'created_at':_0x2a26e7,'created_by':_0x13aa21[_0x3be82f(-_0x2f148a._0x58b0d1,-0xd0,-_0x2f148a._0x37eaef,-0xab)]||null,'updated_at':_0x2a26e7};return _0x553a36[_0x1ec633(-_0x2f148a._0x503f3a,-_0x2f148a._0x932ab6,-_0x2f148a._0x1d45e9,-_0x2f148a._0x444528)](_0x3ac39e),await _0x19cd5e['InFTD'](saveTeams,_0x553a36),_0x3ac39e;}export async function updateTeam(_0x2d9278,_0x4dad31){const _0x263a91={_0x1824ed:0xf9,_0x2d060e:0x234,_0xdbf16f:0x291,_0x11c36d:0x242,_0x20f827:0x285,_0x58a6c0:0xd9,_0x46b467:0x128,_0x4944db:0x2ad,_0x367a6e:0xb6,_0x179da8:0xfc,_0x4c80ae:0xd5,_0x45fdb7:0x291,_0x25b661:0x240,_0x35447d:0x2c4,_0x2b4734:0x299,_0x12c5da:0xd8,_0x34ec28:0x27f,_0x430110:0x265,_0x222634:0x127,_0x15970a:0x2c2,_0x260f6e:0x9f,_0x17b978:0x5b,_0x338d39:0x90,_0x10c41b:0x8c,_0x3671e6:0x7c,_0x14b2bf:0x2de,_0x4b2d62:0x293,_0x107a9e:0x29d,_0x192f08:0x72,_0x5b532b:0x2b1,_0x19de38:0x29b,_0x280b55:0x28a,_0x23a78e:0x63,_0x35ee37:0x70,_0xe072b:0x254,_0x581aa5:0x288,_0x473261:0x26f,_0x5b1405:0x66,_0x216d39:0x27d,_0x1aba20:0x2f2,_0x52e654:0x23b,_0x211c23:0x273,_0x50a56f:0x2d0,_0x3d0cdc:0x2f4,_0x4a693f:0x2cd,_0x4f6ac1:0xc2,_0x327981:0xdd,_0x45f4dc:0xa0,_0x10c9db:0xd0,_0x8a70f6:0x107,_0xcea795:0xf1,_0x582a03:0x110,_0xbd369d:0xcb,_0x189d5c:0x2b8,_0x2ce049:0x27f,_0x26a359:0x2ef,_0x57e450:0x2e0,_0x41b897:0x7e,_0x1a6bd3:0xaa,_0x42140d:0x29f,_0x153a41:0x294,_0x45e775:0x2a2,_0xebdcf3:0x292,_0x5a7bd4:0x2d5,_0x25c90d:0x2b4,_0x35d90f:0xd6,_0x203527:0xc1,_0xa022a0:0xbd,_0x49e83b:0xd0,_0x2b30e9:0xdf,_0x481ef6:0xdd,_0x1a9538:0xad,_0x1cc613:0xaa,_0x40d019:0x10f,_0x5ce3a2:0xee,_0x15f3be:0x276,_0x24b4b7:0x268,_0x193014:0x28b,_0x2aaabd:0x292,_0xe57401:0x283,_0x35191b:0x25f,_0x34b57f:0x26e,_0x1956a7:0x263,_0x4ddc40:0x26a,_0x53574d:0x59},_0x57c566={_0xaf6c5b:0x12b},_0x48ae74={_0x2b0a34:0xdd,_0x5e648e:0x4c9,_0x314d7d:0x11a};function _0x38a9ba(_0x4426f8,_0x193f68,_0x5e6dda,_0x2dcaef){return _0x31d85f(_0x4426f8-_0x48ae74._0x2b0a34,_0x2dcaef- -_0x48ae74._0x5e648e,_0x5e6dda-_0x48ae74._0x314d7d,_0x4426f8);}const _0x24fefb={'Gqcgg':_0x38a9ba(-0xc7,-_0x263a91._0x1824ed,-0xb6,-0xbd),'jONVr':_0x50f8a8(-_0x263a91._0x2d060e,-_0x263a91._0xdbf16f,-0x27c,-0x25f),'EpUQw':function(_0x55417a,_0x3334a5){return _0x55417a===_0x3334a5;},'kouyP':'whXLk','JnAnD':_0x50f8a8(-0x2a2,-0x26e,-_0x263a91._0x11c36d,-_0x263a91._0x20f827),'gmtRZ':function(_0x1ecae0,_0x38982d){return _0x1ecae0!==_0x38982d;},'RGDVl':function(_0x1e8369,_0x103902){return _0x1e8369!==_0x103902;},'MNRJt':function(_0x472ff9,_0x5f8aba){return _0x472ff9!==_0x5f8aba;},'rvQuz':_0x38a9ba(-0xd6,-_0x263a91._0x58a6c0,-_0x263a91._0x46b467,-0xf3),'VMran':function(_0x731ab8,_0x44343f){return _0x731ab8===_0x44343f;},'ftCAW':_0x50f8a8(-_0x263a91._0x4944db,-0x251,-0x287,-0x290),'uwKDz':'zBvRe','akYCd':_0x38a9ba(-0xd9,-_0x263a91._0x367a6e,-_0x263a91._0x179da8,-_0x263a91._0x4c80ae)+_0x50f8a8(-_0x263a91._0x45fdb7,-0x272,-_0x263a91._0x25b661,-0x24f)+'d','VcpLK':_0x50f8a8(-0x2cf,-0x2b2,-0x2f9,-_0x263a91._0x35447d),'TYZuK':function(_0x401035,_0x127774){return _0x401035!==_0x127774;},'tZxfj':function(_0x17d22b,_0x5cc5f5){return _0x17d22b!==_0x5cc5f5;},'vWcwt':function(_0x2936ea,_0x4e3814){return _0x2936ea(_0x4e3814);}},_0x42dfa4=await getTeams(),_0x3891b8=_0x42dfa4[_0x38a9ba(-0x82,-0x8d,-0x89,-0x69)](_0x428b05=>_0x428b05['id']===_0x2d9278);if(_0x24fefb['EpUQw'](_0x3891b8,-(0x7ab+0xc59+0x1*-0x1403))){if(_0x24fefb[_0x50f8a8(-_0x263a91._0x2b4734,-0x2df,-0x2c7,-0x2c3)](_0x24fefb[_0x38a9ba(-0xd9,-0x119,-_0x263a91._0x12c5da,-0xd4)],_0x24fefb[_0x50f8a8(-0x2c7,-0x2f5,-0x2ce,-0x2c6)])){const _0x32e2d1=new _0x8112b0('Team\x20\x27'+_0x502d22+(_0x50f8a8(-0x278,-_0x263a91._0x34ec28,-0x297,-_0x263a91._0x430110)+'d'));_0x32e2d1[_0x38a9ba(-_0x263a91._0x222634,-0xce,-0xbc,-0xf0)]=_0x24fefb[_0x50f8a8(-0x2dc,-0x2af,-_0x263a91._0x2b4734,-_0x263a91._0x15970a)];throw _0x32e2d1;}else{const _0x27a104=new Error(_0x38a9ba(-_0x263a91._0x260f6e,-_0x263a91._0x17b978,-_0x263a91._0x338d39,-0x98)+_0x2d9278+(_0x38a9ba(-_0x263a91._0x10c41b,-0x72,-_0x263a91._0x3671e6,-0x85)+'d'));_0x27a104[_0x50f8a8(-0x2da,-_0x263a91._0x14b2bf,-_0x263a91._0x4b2d62,-0x2d0)]=_0x50f8a8(-0x282,-0x28f,-0x25e,-_0x263a91._0x107a9e);throw _0x27a104;}}const _0x19a466=_0x42dfa4[_0x3891b8];if(_0x24fefb[_0x38a9ba(-_0x263a91._0x192f08,-0x85,-0xa0,-0x94)](_0x4dad31['name'],undefined)&&_0x24fefb[_0x50f8a8(-0x2d6,-_0x263a91._0x5b532b,-0x275,-0x29e)](_0x4dad31[_0x50f8a8(-0x2cb,-0x29f,-_0x263a91._0x19de38,-_0x263a91._0x280b55)],_0x19a466['name'])){if(_0x24fefb[_0x38a9ba(-_0x263a91._0x23a78e,-0x6f,-0x45,-_0x263a91._0x35ee37)](_0x24fefb[_0x50f8a8(-0x2ab,-_0x263a91._0xe072b,-_0x263a91._0x581aa5,-_0x263a91._0x473261)],_0x24fefb['rvQuz'])){const _0x409cbf=new _0x401c59(_0x38a9ba(-_0x263a91._0x5b1405,-0xb7,-0xcc,-0x98)+_0x523477+('\x27\x20not\x20foun'+'d'));_0x409cbf['code']=_0x24fefb['Gqcgg'];throw _0x409cbf;}else{if(!_0x4dad31['name'][_0x50f8a8(-_0x263a91._0x216d39,-_0x263a91._0x1aba20,-0x2eb,-0x2af)]()){if(_0x24fefb['VMran'](_0x24fefb['ftCAW'],_0x24fefb[_0x50f8a8(-_0x263a91._0x52e654,-_0x263a91._0x211c23,-0x214,-0x25a)])){const _0x1fbb98=new _0x210abe('Team\x20name\x20'+'\x27'+_0x4b20ab['name']+(_0x50f8a8(-0x28d,-_0x263a91._0x50a56f,-_0x263a91._0x3d0cdc,-_0x263a91._0x4a693f)+_0x38a9ba(-_0x263a91._0x4f6ac1,-_0x263a91._0x327981,-_0x263a91._0x45f4dc,-0xb2)));_0x1fbb98[_0x50f8a8(-0x2ec,-0x303,-0x2d8,-0x2d0)]=_0x24fefb[_0x38a9ba(-_0x263a91._0x10c9db,-_0x263a91._0x8a70f6,-0xf8,-_0x263a91._0xcea795)];throw _0x1fbb98;}else{const _0x2b809c=new Error(_0x24fefb[_0x38a9ba(-0xc9,-_0x263a91._0x582a03,-0x10e,-_0x263a91._0x58a6c0)]);_0x2b809c[_0x38a9ba(-_0x263a91._0xbd369d,-0x11a,-_0x263a91._0x4f6ac1,-0xf0)]=_0x24fefb['VcpLK'];throw _0x2b809c;}}if(_0x42dfa4[_0x50f8a8(-0x274,-_0x263a91._0x189d5c,-0x265,-_0x263a91._0x2ce049)](_0x5a8fcd=>_0x5a8fcd['name']===_0x4dad31['name'])){const _0x4b0732=new Error(_0x50f8a8(-_0x263a91._0x26a359,-_0x263a91._0x57e450,-0x278,-0x2b5)+'\x27'+_0x4dad31[_0x38a9ba(-0x9f,-_0x263a91._0x41b897,-0xe1,-_0x263a91._0x1a6bd3)]+(_0x50f8a8(-_0x263a91._0x42140d,-0x30f,-0x30c,-_0x263a91._0x4a693f)+_0x50f8a8(-_0x263a91._0x153a41,-0x2cc,-_0x263a91._0x45e775,-_0x263a91._0xebdcf3)));_0x4b0732[_0x50f8a8(-_0x263a91._0x5a7bd4,-0x2b1,-_0x263a91._0x25c90d,-0x2d0)]=_0x24fefb[_0x38a9ba(-_0x263a91._0x35d90f,-_0x263a91._0x203527,-_0x263a91._0xa022a0,-0xf1)];throw _0x4b0732;}}}if(_0x24fefb['TYZuK'](_0x4dad31[_0x38a9ba(-_0x263a91._0x49e83b,-0x66,-_0x263a91._0x2b30e9,-0xaa)],undefined))_0x19a466[_0x38a9ba(-_0x263a91._0x481ef6,-0xdc,-_0x263a91._0x1a9538,-0xaa)]=_0x4dad31[_0x38a9ba(-0xb1,-0xa6,-0x9f,-_0x263a91._0x1cc613)];if(_0x24fefb[_0x38a9ba(-0xe6,-0xd9,-_0x263a91._0x40d019,-_0x263a91._0x5ce3a2)](_0x4dad31[_0x50f8a8(-0x29b,-0x2b1,-0x265,-_0x263a91._0x15f3be)+'n'],undefined))_0x19a466[_0x50f8a8(-_0x263a91._0x24b4b7,-_0x263a91._0x193014,-_0x263a91._0x2aaabd,-_0x263a91._0x15f3be)+'n']=_0x4dad31['descriptio'+'n'];if(_0x24fefb[_0x50f8a8(-0x238,-_0x263a91._0xe57401,-0x261,-0x274)](_0x4dad31['members'],undefined))_0x19a466['members']=_0x4dad31[_0x50f8a8(-0x23e,-_0x263a91._0x35191b,-0x25d,-0x270)];_0x19a466[_0x50f8a8(-0x287,-_0x263a91._0x34b57f,-_0x263a91._0x1956a7,-_0x263a91._0x4ddc40)]=new Date()[_0x38a9ba(-_0x263a91._0x53574d,-0x86,-0xc1,-0x84)+'g'](),await _0x24fefb['vWcwt'](saveTeams,_0x42dfa4);function _0x50f8a8(_0x187334,_0x1b4d0f,_0x34786a,_0x2d67b1){return _0x31d85f(_0x187334-_0x57c566._0xaf6c5b,_0x2d67b1- -0x6a9,_0x34786a-0x168,_0x1b4d0f);}return _0x19a466;}export async function deleteTeam(_0x2f8b6d,_0x5cda25,_0x4bea48){const _0xa40268={_0x25f884:0x3a5,_0x3e7de0:0x31d,_0x3fe476:0x360,_0x364cb5:0x32d,_0x1f3f43:0x336,_0x5047f3:0x329,_0x5ddb0d:0x3ca,_0x350efd:0x395,_0x11f627:0x339,_0x3c7ed3:0x32b,_0x531454:0x3b6,_0x524d9c:0x3b3,_0x20d33b:0x398,_0x2ee7bb:0x390,_0x3cb358:0x37e,_0x83d5ce:0x3ae,_0x206766:0x39c,_0x2f53cb:0x347,_0x41fe9c:0x34c,_0x693f7d:0x35d,_0x25af7e:0x34d,_0x59bfc6:0x2f4,_0x4a8940:0x3a3,_0x49f397:0x35c,_0x217500:0x35f,_0x4a4613:0x372,_0x319edf:0x31b,_0x2332c8:0x2f5,_0x5c9c2f:0x329,_0x372ea7:0x357,_0x2ef10d:0x369,_0xf4f02e:0x2e9,_0x75e744:0x30a,_0x17b877:0x315},_0xfc390a={_0x33e295:0x19c},_0xf6e0cb={_0x42362d:0x196,_0x42d460:0xc6},_0x19901f={'wzXxL':function(_0x495332){return _0x495332();},'QxvzI':function(_0x171eca,_0x4c74a4){return _0x171eca===_0x4c74a4;},'caWQe':_0x2a2e8f(0x347,_0xa40268._0x25f884,_0xa40268._0x3e7de0,_0xa40268._0x3fe476),'euzEb':function(_0x4eae6c,_0x3b26c6,_0x21b645){return _0x4eae6c(_0x3b26c6,_0x21b645);},'rrAdo':_0x2e84a3(_0xa40268._0x364cb5,_0xa40268._0x1f3f43,0x33d,_0xa40268._0x5047f3),'nluFB':'Deleted\x20te'+'am'};function _0x2e84a3(_0x13f772,_0x4e0853,_0x1ff199,_0x5dbc65){return _0x31d85f(_0x13f772-_0xf6e0cb._0x42362d,_0x5dbc65- -0x109,_0x1ff199-_0xf6e0cb._0x42d460,_0x1ff199);}const _0x228b2d=await _0x19901f[_0x2a2e8f(0x35a,0x3cc,_0xa40268._0x5ddb0d,0x394)](getTeams),_0x2c9fc1=_0x228b2d[_0x2e84a3(0x32f,0x33f,_0xa40268._0x350efd,0x357)](_0x4c4cb3=>_0x4c4cb3['id']===_0x2f8b6d);if(_0x19901f[_0x2e84a3(_0xa40268._0x11f627,0x363,0x354,_0xa40268._0x3c7ed3)](_0x2c9fc1,-(-0x2513+0x12cc+0x3a8*0x5))){const _0x5efbc6=new Error(_0x2a2e8f(0x38f,0x38a,_0xa40268._0x531454,0x385)+_0x2f8b6d+(_0x2a2e8f(_0xa40268._0x524d9c,0x353,0x392,_0xa40268._0x20d33b)+'d'));_0x5efbc6['code']=_0x19901f['caWQe'];throw _0x5efbc6;}const _0x13e7c0=_0x228b2d[_0x2c9fc1];_0x228b2d['splice'](_0x2c9fc1,0x218f+0xb79+0x2d07*-0x1),await saveTeams(_0x228b2d);let _0x8675f7=-0x336*0x3+-0x5*-0x421+-0xb03;_0x5cda25&&(_0x8675f7+=await _0x5cda25(_0x2a2e8f(_0xa40268._0x2ee7bb,_0xa40268._0x3cb358,0x387,0x386),_0x2f8b6d));_0x4bea48&&(_0x8675f7+=await _0x19901f[_0x2a2e8f(0x3a8,0x365,_0xa40268._0x83d5ce,_0xa40268._0x206766)](_0x4bea48,_0x19901f[_0x2a2e8f(0x339,_0xa40268._0x2f53cb,_0xa40268._0x41fe9c,0x363)],_0x2f8b6d));const _0x2576d8={};_0x2576d8[_0x2e84a3(0x378,_0xa40268._0x693f7d,0x347,0x34f)]=_0x2f8b6d,_0x2576d8[_0x2a2e8f(0x353,_0xa40268._0x25af7e,0x367,0x362)]=_0x13e7c0['name'],_0x2576d8[_0x2e84a3(0x2d6,_0xa40268._0x59bfc6,0x313,0x30c)+_0x2a2e8f(_0xa40268._0x4a8940,_0xa40268._0x49f397,_0xa40268._0x217500,_0xa40268._0x4a4613)]=_0x8675f7;function _0x2a2e8f(_0x4138e2,_0x26c3c5,_0x10d024,_0xc7c7aa){return _0x31d85f(_0x4138e2-0xd5,_0xc7c7aa- -0xac,_0x10d024-_0xfc390a._0x33e295,_0x4138e2);}logger['info'](_0x19901f[_0x2e84a3(_0xa40268._0x319edf,0x2e8,0x339,0x2fa)],_0x2576d8);const _0x1ec7dd={};return _0x1ec7dd[_0x2e84a3(0x30d,_0xa40268._0x2332c8,0x321,_0xa40268._0x5c9c2f)]=_0x13e7c0,_0x1ec7dd[_0x2a2e8f(0x3ad,_0xa40268._0x372ea7,0x381,_0xa40268._0x2ef10d)+_0x2e84a3(0x318,_0xa40268._0xf4f02e,_0xa40268._0x75e744,_0xa40268._0x17b877)]=_0x8675f7,_0x1ec7dd;}export async function addMember(_0x1f725e,_0x952ed8){const _0x1d159b={_0x1e5a0e:0x3e3,_0x53d150:0x418,_0xfa3789:0x27a,_0x4f6759:0x24f,_0x3a431c:0x242,_0x41d4a5:0x21e,_0x4dce5b:0x260,_0x25e040:0x481,_0x234379:0x41d,_0x2a32d3:0x444,_0x3704e1:0x447,_0x5eca45:0x468,_0x4fe842:0x485,_0x312e19:0x41e,_0x280acd:0x40c,_0x107966:0x423,_0x12a929:0x250,_0x5141ff:0x24c,_0x190a56:0x259,_0x52ced0:0x22b,_0x4f7f36:0x217,_0x43c092:0x200,_0x20a8c2:0x23d,_0x157ca0:0x261,_0x24ad84:0x24e,_0x2db032:0x459,_0x1a63f8:0x413,_0x4db354:0x3e5,_0x5c35e7:0x267,_0x29f9b4:0x45a,_0x2203a7:0x434,_0x581561:0x410,_0x4da759:0x41b,_0x312a79:0x216,_0x273ee2:0x224,_0x1d2432:0x40f,_0x5c0a8b:0x42d,_0x41ae10:0x432,_0x87f941:0x40a,_0x2471f4:0x3dd,_0x4a9641:0x448,_0x201fd7:0x483,_0x5b87c2:0x480,_0x568416:0x407,_0x2e443a:0x409},_0x3ade67={_0x3f3f49:0xd6},_0xb211f4={'exZGh':function(_0x2f0a7d){return _0x2f0a7d();},'xzTbK':_0x3dde06(_0x1d159b._0x1e5a0e,0x40f,_0x1d159b._0x53d150,0x3d6),'gVUga':function(_0x337cbd,_0x25c726){return _0x337cbd===_0x25c726;},'gnxxj':_0xd067ae(-_0x1d159b._0xfa3789,-_0x1d159b._0x4f6759,-0x254,-_0x1d159b._0x3a431c),'WlSvh':_0xd067ae(-0x227,-0x226,-_0x1d159b._0x41d4a5,-_0x1d159b._0x4dce5b),'EMsFJ':function(_0x2c7a31,_0xdb3115){return _0x2c7a31(_0xdb3115);}},_0xf1d346=await _0xb211f4[_0x3dde06(_0x1d159b._0x25e040,0x462,0x425,_0x1d159b._0x234379)](getTeams);function _0xd067ae(_0x176c90,_0x5dc7ea,_0x53f75a,_0x8371c3){return _0x31d85f(_0x176c90-_0x3ade67._0x3f3f49,_0x53f75a- -0x668,_0x53f75a-0xed,_0x176c90);}const _0x354ee9=_0xf1d346['find'](_0x58e91e=>_0x58e91e['id']===_0x1f725e);if(!_0x354ee9){const _0xc3f0cd=new Error('Team\x20\x27'+_0x1f725e+(_0x3dde06(_0x1d159b._0x2a32d3,_0x1d159b._0x3704e1,_0x1d159b._0x5eca45,_0x1d159b._0x4fe842)+'d'));_0xc3f0cd['code']=_0xb211f4[_0x3dde06(_0x1d159b._0x312e19,_0x1d159b._0x280acd,0x421,_0x1d159b._0x107966)];throw _0xc3f0cd;}if(_0x354ee9[_0xd067ae(-_0x1d159b._0x12a929,-_0x1d159b._0x5141ff,-0x22f,-0x1ef)]['includes'](_0x952ed8)){if(_0xb211f4[_0xd067ae(-_0x1d159b._0x190a56,-_0x1d159b._0x52ced0,-0x255,-_0x1d159b._0x4f7f36)](_0xb211f4[_0xd067ae(-_0x1d159b._0x43c092,-_0x1d159b._0x20a8c2,-_0x1d159b._0x3a431c,-0x206)],'CDTNp')){const _0x129e41=new Error('User\x20\x27'+_0x952ed8+('\x27\x20is\x20alrea'+_0xd067ae(-0x272,-0x292,-_0x1d159b._0x157ca0,-_0x1d159b._0x24ad84)+_0x3dde06(0x487,_0x1d159b._0x2db032,_0x1d159b._0x1a63f8,0x45b)+'team'));_0x129e41[_0x3dde06(0x3a8,0x3dc,_0x1d159b._0x4db354,0x3a3)]=_0xb211f4[_0xd067ae(-_0x1d159b._0x5c35e7,-0x225,-0x243,-0x20a)];throw _0x129e41;}else{const _0x1a8f31=new _0x16630c(_0x3dde06(_0x1d159b._0x29f9b4,_0x1d159b._0x2203a7,_0x1d159b._0x581561,_0x1d159b._0x4da759)+_0x2c1146+(_0xd067ae(-0x23e,-_0x1d159b._0x312a79,-_0x1d159b._0x273ee2,-0x218)+'d'));_0x1a8f31['code']=_0x3dde06(0x400,_0x1d159b._0x1d2432,0x3d4,_0x1d159b._0x5c0a8b);throw _0x1a8f31;}}_0x354ee9[_0x3dde06(_0x1d159b._0x41ae10,0x43c,0x440,_0x1d159b._0x87f941)][_0x3dde06(_0x1d159b._0x2471f4,0x40b,0x3fc,0x401)](_0x952ed8),_0x354ee9['updated_at']=new Date()[_0x3dde06(0x481,_0x1d159b._0x4a9641,_0x1d159b._0x201fd7,_0x1d159b._0x5b87c2)+'g'](),await _0xb211f4[_0x3dde06(0x44d,_0x1d159b._0x568416,0x433,_0x1d159b._0x2e443a)](saveTeams,_0xf1d346);function _0x3dde06(_0x60fd55,_0x3108ff,_0x5eff03,_0x5a6a2f){return _0x31d85f(_0x60fd55-0x1be,_0x3108ff-0x3,_0x5eff03-0xcd,_0x5eff03);}return _0x354ee9;}export async function removeMember(_0x46420e,_0x5896a5){const _0x233c7c={_0x44b10b:0x8a,_0x47618b:0x99,_0xad6f04:0xa8,_0x5ed308:0x254,_0x2dc256:0x2a5,_0x1db78f:0x241,_0x5c3eb3:0x274,_0x13e787:0x80,_0x4f3671:0x58,_0x21ef22:0x29b,_0xabfb9b:0x29b,_0x194d20:0xe,_0x39bd6c:0x2b7,_0x13a7c2:0x2bc,_0x34ee63:0x27d,_0x26d440:0x297,_0x2f40e0:0x3a,_0x4833b8:0x32,_0x43e3d5:0x6,_0x250f15:0x291,_0x235d93:0x26e,_0x4c0e16:0x294,_0x58b0fe:0x268,_0x4d6304:0x282,_0x5795ef:0x24,_0x2e5353:0x10,_0x5f4896:0x18,_0x261ae5:0x23e,_0x3cef82:0x287,_0x387f71:0x28d,_0xac0ef:0x5b,_0x3f46f1:0x34,_0xa4357:0x46,_0x4dc378:0x9a,_0x5e1041:0x6e,_0x1b9578:0x2b2,_0xc56908:0x2a8,_0x344866:0x2ab,_0x5673a8:0x72,_0x5f0f5e:0x82,_0x1101a8:0xa9,_0x7167d2:0x9,_0x54b57c:0x25,_0x30a46b:0x1a,_0x442e9:0x25b,_0x8ae4b3:0x258,_0x58ff7a:0x75,_0x69c1d8:0xac},_0x350f87={_0xdca3d6:0x18e,_0x54bf38:0x3d},_0x1eecae={_0x56a097:0x3b},_0x18c338={'LVtfR':_0x4d21ca(0x294,0x2bc,0x2c2,0x283)+_0x57b5de(_0x233c7c._0x44b10b,0x6b,_0x233c7c._0x47618b,_0x233c7c._0xad6f04)+'d','AMOdL':_0x4d21ca(_0x233c7c._0x5ed308,_0x233c7c._0x2dc256,_0x233c7c._0x1db78f,_0x233c7c._0x5c3eb3),'aTCXb':function(_0x41ca52){return _0x41ca52();},'YzCcW':function(_0xe5520a,_0x3dc30f){return _0xe5520a!==_0x3dc30f;},'DXNCm':_0x57b5de(0x5e,_0x233c7c._0x13e787,_0x233c7c._0x4f3671,0x93),'TaQbH':_0x4d21ca(_0x233c7c._0x21ef22,0x2a0,0x26e,_0x233c7c._0xabfb9b),'Rwybg':function(_0x5a3e11,_0x3c82b2){return _0x5a3e11===_0x3c82b2;},'oTqQR':function(_0x1cd6e7,_0xab0602){return _0x1cd6e7(_0xab0602);}},_0x3b438b=await _0x18c338[_0x57b5de(0xa,_0x233c7c._0x194d20,0x22,0x46)](getTeams),_0x756168=_0x3b438b[_0x4d21ca(0x2c0,_0x233c7c._0x39bd6c,_0x233c7c._0x13a7c2,_0x233c7c._0x34ee63)](_0xbef262=>_0xbef262['id']===_0x46420e);if(!_0x756168){if(_0x18c338[_0x57b5de(0x23,0x31,0x15,0x43)](_0x18c338[_0x4d21ca(_0x233c7c._0x26d440,0x25f,0x271,0x28a)],_0x18c338['DXNCm'])){if(!_0x312500[_0x57b5de(0x4f,0x23,_0x233c7c._0x2f40e0,_0x233c7c._0x4833b8)][_0x57b5de(0x2a,-_0x233c7c._0x43e3d5,0x38,0x65)]()){const _0x39c4b0=new _0x3a8216(_0x18c338[_0x4d21ca(0x23e,0x285,_0x233c7c._0x250f15,_0x233c7c._0x235d93)]);_0x39c4b0[_0x4d21ca(_0x233c7c._0x4c0e16,0x26a,0x231,_0x233c7c._0x58b0fe)]=_0x18c338[_0x4d21ca(0x254,_0x233c7c._0x4d6304,0x29a,0x291)];throw _0x39c4b0;}if(_0x3f088b['some'](_0x36eff3=>_0x36eff3['name']===_0x21e023[_0x4d21ca(0x285,0x28f,0x2bc,0x2ae)])){const _0xe0dfb6=new _0x964cf1(_0x57b5de(_0x233c7c._0x5795ef,-_0x233c7c._0x2e5353,_0x233c7c._0x5f4896,0x5c)+'\x27'+_0x58d11e['name']+(_0x4d21ca(0x2a9,0x249,_0x233c7c._0x261ae5,0x26b)+_0x4d21ca(0x2af,_0x233c7c._0x3cef82,0x29b,0x2a6)));_0xe0dfb6[_0x4d21ca(_0x233c7c._0x4c0e16,0x24f,_0x233c7c._0x387f71,0x268)]='DUPLICATE';throw _0xe0dfb6;}}else{const _0x2eda21=new Error(_0x57b5de(0x61,_0x233c7c._0xac0ef,0x26,0x79)+_0x46420e+(_0x57b5de(0x74,_0x233c7c._0x3f46f1,_0x233c7c._0xa4357,_0x233c7c._0x4dc378)+'d'));_0x2eda21['code']=_0x18c338['TaQbH'];throw _0x2eda21;}}const _0x102ed3=_0x756168[_0x57b5de(0x69,0x8c,0xac,0x35)][_0x57b5de(0x5c,_0x233c7c._0x5e1041,0x18,0x56)](_0x5896a5);if(_0x18c338[_0x4d21ca(_0x233c7c._0x1b9578,0x281,_0x233c7c._0xc56908,_0x233c7c._0x344866)](_0x102ed3,-(-0x1cb+0x1459*0x1+-0x128d))){const _0x4a321a=new Error('User\x20\x27'+_0x5896a5+(_0x57b5de(_0x233c7c._0x5673a8,_0x233c7c._0x5673a8,0x9e,0xb7)+_0x57b5de(_0x233c7c._0x5f0f5e,0x68,_0x233c7c._0x1101a8,0xc4)+_0x4d21ca(0x244,0x238,0x244,0x266)));_0x4a321a[_0x57b5de(_0x233c7c._0x7167d2,-_0x233c7c._0x54b57c,-0x33,_0x233c7c._0x30a46b)]=_0x4d21ca(0x2ae,_0x233c7c._0x442e9,_0x233c7c._0x8ae4b3,_0x233c7c._0xabfb9b);throw _0x4a321a;}_0x756168['members']['splice'](_0x102ed3,-0x3*-0x297+0x5e7+-0xdab);function _0x57b5de(_0x58e69c,_0x27b3b8,_0x2e2265,_0x15f11b){return _0x31d85f(_0x58e69c-_0x1eecae._0x56a097,_0x58e69c- -0x3d0,_0x2e2265-0x137,_0x27b3b8);}_0x756168['updated_at']=new Date()[_0x57b5de(_0x233c7c._0x58ff7a,_0x233c7c._0x69c1d8,0x58,_0x233c7c._0x2f40e0)+'g'](),await _0x18c338['oTqQR'](saveTeams,_0x3b438b);function _0x4d21ca(_0x44fe8d,_0x32981b,_0x558f6f,_0x279315){return _0x31d85f(_0x44fe8d-_0x350f87._0xdca3d6,_0x279315- -0x171,_0x558f6f-_0x350f87._0x54bf38,_0x558f6f);}return _0x756168;}export function _resetCache(){teamsCache=null;}