@profoundlogic/coderflow-server 0.6.2 → 0.6.3

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 (179) hide show
  1. package/dist/base-image/Dockerfile +4 -2
  2. package/dist/base-image/agent-wrapper.sh +32 -4
  3. package/dist/base-image/entrypoint.sh +3 -0
  4. package/dist/coder-server.js +1 -1
  5. package/dist/config/cli-models.json +12 -0
  6. package/dist/config.js +1 -1
  7. package/dist/lib/agent-keepalive.js +1 -1
  8. package/dist/lib/agent-models.js +1 -1
  9. package/dist/lib/api-keys.js +1 -1
  10. package/dist/lib/apiKeys.js +1 -1
  11. package/dist/lib/app-server-ports.js +1 -1
  12. package/dist/lib/auto-judge.js +1 -1
  13. package/dist/lib/automation-service.js +1 -1
  14. package/dist/lib/basic-auth.js +1 -1
  15. package/dist/lib/bindings.js +1 -1
  16. package/dist/lib/build-history.js +1 -1
  17. package/dist/lib/build-output-service.js +1 -1
  18. package/dist/lib/build-scheduler.js +1 -1
  19. package/dist/lib/build-service.js +1 -1
  20. package/dist/lib/ca-certificates.js +1 -1
  21. package/dist/lib/claude-oauth-refresh.js +1 -1
  22. package/dist/lib/cli/build.js +1 -1
  23. package/dist/lib/cli/cleanup-users.js +1 -1
  24. package/dist/lib/cli/config-command.js +1 -1
  25. package/dist/lib/cli/config.js +1 -1
  26. package/dist/lib/cli/create-user.js +1 -1
  27. package/dist/lib/cli/grant-admin.js +1 -1
  28. package/dist/lib/cli/init.js +1 -1
  29. package/dist/lib/cli/jira.js +1 -1
  30. package/dist/lib/cli/license.js +1 -1
  31. package/dist/lib/cli/list-roles.js +1 -1
  32. package/dist/lib/cli/list-users.js +1 -1
  33. package/dist/lib/cli/server-manager.js +1 -1
  34. package/dist/lib/cli/set-password.js +1 -1
  35. package/dist/lib/config-migration.js +1 -1
  36. package/dist/lib/container-credential-sync.js +1 -1
  37. package/dist/lib/container-tokens.js +1 -1
  38. package/dist/lib/data-dir.js +1 -1
  39. package/dist/lib/deployment-history.js +1 -1
  40. package/dist/lib/deployment-service.js +1 -1
  41. package/dist/lib/docker-utils.js +1 -1
  42. package/dist/lib/email.js +1 -1
  43. package/dist/lib/emailTemplates.js +1 -1
  44. package/dist/lib/entitlement.js +1 -1
  45. package/dist/lib/external-connections.js +1 -1
  46. package/dist/lib/fetch-utils.js +1 -1
  47. package/dist/lib/git-commit-details-route.js +1 -1
  48. package/dist/lib/git-history-diff-guardrails.js +1 -1
  49. package/dist/lib/git-provider-service.js +1 -1
  50. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  51. package/dist/lib/git-provider-setup/index.js +1 -1
  52. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  53. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  54. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  55. package/dist/lib/git-providers/github-app-provider.js +1 -1
  56. package/dist/lib/git-providers/index.js +1 -1
  57. package/dist/lib/git-providers/provider-factory.js +1 -1
  58. package/dist/lib/git-providers/provider-interface.js +1 -1
  59. package/dist/lib/github-urls.js +1 -1
  60. package/dist/lib/group-objective-linking.js +1 -1
  61. package/dist/lib/ibmi-sync.js +1 -1
  62. package/dist/lib/jira-client.js +1 -1
  63. package/dist/lib/judge-blinding.js +1 -1
  64. package/dist/lib/logger.js +1 -1
  65. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  66. package/dist/lib/model-fetcher.js +1 -1
  67. package/dist/lib/notifications.js +1 -1
  68. package/dist/lib/objective-context.js +1 -1
  69. package/dist/lib/oidc-auth.js +1 -1
  70. package/dist/lib/oidc-device-flow.js +1 -1
  71. package/dist/lib/passwordTokens.js +1 -1
  72. package/dist/lib/permission-resolver.js +1 -1
  73. package/dist/lib/pin-cascade.js +1 -1
  74. package/dist/lib/provider-accounts.js +1 -1
  75. package/dist/lib/provider-oauth.js +1 -1
  76. package/dist/lib/provider-profile.js +1 -1
  77. package/dist/lib/provider-token-refresh.js +1 -1
  78. package/dist/lib/rbac-user-state.js +1 -1
  79. package/dist/lib/request-url.js +1 -1
  80. package/dist/lib/rewind.js +1 -1
  81. package/dist/lib/role-definitions.js +1 -1
  82. package/dist/lib/roles.js +1 -1
  83. package/dist/lib/secrets.js +1 -1
  84. package/dist/lib/setup-repo-git-auth.js +1 -1
  85. package/dist/lib/state-capture.js +1 -1
  86. package/dist/lib/static-files.js +1 -1
  87. package/dist/lib/task-name-format.js +1 -1
  88. package/dist/lib/task-name-generator.js +1 -1
  89. package/dist/lib/task-source-metadata.js +1 -1
  90. package/dist/lib/teams.js +1 -1
  91. package/dist/lib/user-git-oauth.js +1 -1
  92. package/dist/lib/user-git-tokens.js +1 -1
  93. package/dist/lib/users.js +1 -1
  94. package/dist/middleware/requireAuth.js +1 -1
  95. package/dist/middleware/requireInit.js +1 -1
  96. package/dist/middleware/requirePermission.js +1 -1
  97. package/dist/package.json +1 -1
  98. package/dist/playwright.config.js +1 -1
  99. package/dist/playwright.task-terminal.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/start.js +1 -1
  135. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  136. package/dist/web-ui/public/activity-feed.js +1 -1
  137. package/dist/web-ui/public/activity-formatters.js +1 -1
  138. package/dist/web-ui/public/agent-event-parser.js +1 -1
  139. package/dist/web-ui/public/app.js +1 -1
  140. package/dist/web-ui/public/approve-dialog.js +1 -1
  141. package/dist/web-ui/public/automation-links.js +1 -1
  142. package/dist/web-ui/public/automation-schedule.js +1 -1
  143. package/dist/web-ui/public/comments-widget.js +1 -1
  144. package/dist/web-ui/public/diff-utils.js +1 -1
  145. package/dist/web-ui/public/environments.js +1 -1
  146. package/dist/web-ui/public/feedback-widget.js +1 -1
  147. package/dist/web-ui/public/file-selection-tree.js +1 -1
  148. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  149. package/dist/web-ui/public/git-history.js +1 -1
  150. package/dist/web-ui/public/git-status.js +1 -1
  151. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  152. package/dist/web-ui/public/index.html +39 -0
  153. package/dist/web-ui/public/index.js +1 -1
  154. package/dist/web-ui/public/login.js +1 -1
  155. package/dist/web-ui/public/markdown-editor.js +1 -1
  156. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  157. package/dist/web-ui/public/modal-maximize.js +1 -1
  158. package/dist/web-ui/public/notifications.js +1 -1
  159. package/dist/web-ui/public/permissions.js +1 -1
  160. package/dist/web-ui/public/pr-dialog.js +1 -1
  161. package/dist/web-ui/public/roles.js +1 -1
  162. package/dist/web-ui/public/server-health.js +1 -1
  163. package/dist/web-ui/public/settings.html +23 -0
  164. package/dist/web-ui/public/settings.js +1 -1
  165. package/dist/web-ui/public/setup-password.js +1 -1
  166. package/dist/web-ui/public/skills.js +1 -1
  167. package/dist/web-ui/public/sse-client.js +1 -1
  168. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  169. package/dist/web-ui/public/styles.css +101 -1
  170. package/dist/web-ui/public/task.html +46 -1
  171. package/dist/web-ui/public/task.js +1 -1
  172. package/dist/web-ui/public/teams.js +1 -1
  173. package/dist/web-ui/public/terminal.js +1 -1
  174. package/dist/web-ui/public/theme.js +1 -1
  175. package/dist/web-ui/public/users.js +1 -1
  176. package/dist/web-ui/public/variant-grouping.js +1 -1
  177. package/package.json +1 -1
  178. package/dist/.claude/settings.local.json +0 -20
  179. package/dist/playwright-test-results/.last-run.json +0 -54
@@ -1 +1 @@
1
- function _0xfefe(_0x229cff,_0x7df966){_0x229cff=_0x229cff-(0x141a+0x102+-0x143d);const _0x1cc2d4=_0x17f0();let _0xe3a70b=_0x1cc2d4[_0x229cff];if(_0xfefe['eSiVRk']===undefined){var _0x4574ac=function(_0xad3a60){const _0x3c7f60='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x280304='',_0x5c0094='';for(let _0x5524af=-0x26bf+0x6d*-0x17+0x308a,_0x523456,_0x1d2d41,_0x5b6097=0x14cc+-0x1*-0x16c+-0x1638;_0x1d2d41=_0xad3a60['charAt'](_0x5b6097++);~_0x1d2d41&&(_0x523456=_0x5524af%(-0x4f*0xb+-0xdd5+-0x1*-0x113e)?_0x523456*(-0x2359+0x4b2*-0x7+0x4477*0x1)+_0x1d2d41:_0x1d2d41,_0x5524af++%(-0x1b19+-0x1e96+0x39b3))?_0x280304+=String['fromCharCode'](0x1731+-0xa19+-0xa3*0x13&_0x523456>>(-(-0x22b1+-0x1*-0xc29+-0x482*-0x5)*_0x5524af&0x1*-0xae7+-0x19*-0x131+-0x12dc)):-0x31*-0x31+0x1cb1*-0x1+0x1350){_0x1d2d41=_0x3c7f60['indexOf'](_0x1d2d41);}for(let _0x28912e=-0x1c1a+-0x1ecb+0x3ae5,_0x36ebff=_0x280304['length'];_0x28912e<_0x36ebff;_0x28912e++){_0x5c0094+='%'+('00'+_0x280304['charCodeAt'](_0x28912e)['toString'](-0x24ed+-0x217c+0x1*0x4679))['slice'](-(-0x16*0x12e+0x25c3+0x39*-0x35));}return decodeURIComponent(_0x5c0094);};_0xfefe['XEVqpP']=_0x4574ac,_0xfefe['ECPUSj']={},_0xfefe['eSiVRk']=!![];}const _0x41bd54=_0x1cc2d4[-0xedb+0x1552+0x677*-0x1],_0x487256=_0x229cff+_0x41bd54,_0x4bdba6=_0xfefe['ECPUSj'][_0x487256];return!_0x4bdba6?(_0xe3a70b=_0xfefe['XEVqpP'](_0xe3a70b),_0xfefe['ECPUSj'][_0x487256]=_0xe3a70b):_0xe3a70b=_0x4bdba6,_0xe3a70b;}(function(_0x54916a,_0xd364b){const _0x19cfd9={_0x2c1a11:0x364,_0x30219b:0x35e,_0x16e86d:0x35a,_0x4042bc:0x358,_0x2ca6c1:0x359,_0xfe6931:0x354,_0x30f109:0x35c,_0x391773:0x362,_0x272337:0x357,_0x177892:0x351,_0x50f988:0x20f,_0x24bd4:0x219,_0x768c57:0x214,_0x537bc1:0x216,_0x5e0547:0x356,_0x29496e:0x209,_0x3124e4:0x204},_0x31f967=_0x54916a();function _0x5e3f39(_0x22d8b1,_0x593f95,_0x4d6d05,_0x4fbd80){return _0xfefe(_0x4fbd80-0x26e,_0x22d8b1);}function _0x2d4fb8(_0x7fbb70,_0x49e75c,_0x28d7c,_0x5b3652){return _0xfefe(_0x49e75c-0x12c,_0x7fbb70);}while(!![]){try{const _0x2a05d0=parseInt(_0x5e3f39(0x35b,_0x19cfd9._0x2c1a11,0x366,_0x19cfd9._0x30219b))/(0x140e+0x92*0x29+-0x2b6f)*(parseInt(_0x5e3f39(_0x19cfd9._0x16e86d,_0x19cfd9._0x4042bc,_0x19cfd9._0x2ca6c1,0x35f))/(-0x1d*0x11c+-0x94d*0x3+0x3c15))+-parseInt(_0x5e3f39(_0x19cfd9._0xfe6931,_0x19cfd9._0x30f109,_0x19cfd9._0x391773,0x35d))/(0x1*-0x26ce+-0x1f1e+0x1*0x45ef)*(-parseInt(_0x5e3f39(_0x19cfd9._0x272337,0x347,_0x19cfd9._0x177892,0x351))/(-0x16af+0x4ee+-0x1*-0x11c5))+-parseInt(_0x2d4fb8(_0x19cfd9._0x50f988,_0x19cfd9._0x24bd4,_0x19cfd9._0x24bd4,_0x19cfd9._0x768c57))/(-0x1597+0x2*-0xa4d+0x2a36)+-parseInt(_0x2d4fb8(0x217,_0x19cfd9._0x537bc1,0x21a,0x20d))/(0x2*0x3e6+0x1*-0xd1e+0x26*0x24)*(-parseInt(_0x5e3f39(_0x19cfd9._0x5e0547,0x35b,_0x19cfd9._0xfe6931,0x359))/(0x2365+-0x1486+-0xa*0x17c))+-parseInt(_0x2d4fb8(_0x19cfd9._0x29496e,0x20c,0x214,0x213))/(0x1278+0x14d0+-0x2740)+-parseInt(_0x5e3f39(_0x19cfd9._0x30219b,_0x19cfd9._0x4042bc,_0x19cfd9._0x391773,_0x19cfd9._0x30f109))/(0x23+0x25*-0x14+0x2ca)+parseInt(_0x2d4fb8(_0x19cfd9._0x3124e4,0x20b,0x206,0x212))/(0xb36+0x9*-0x446+0x1b4a);if(_0x2a05d0===_0xd364b)break;else _0x31f967['push'](_0x31f967['shift']());}catch(_0x5d3979){_0x31f967['push'](_0x31f967['shift']());}}}(_0x17f0,0xa2e6*-0x8+-0x37f59+0x56b*0x345));function normalizeOptionalString(_0x347ec7){const _0x334e10={_0x2e4f9c:0x4d,_0x42bbf1:0x1c3,_0x9a18a4:0x1c6,_0x49f7ab:0x1c4,_0x39f4ed:0x4f,_0xe0d17c:0x4a,_0x34df0d:0x49,_0x1b5141:0x4c},_0x2e6cce={_0x36c79c:0x2a8},_0x1ee4a9={_0x1920e5:0x130},_0x325fd5={};function _0x5bbc7c(_0x31f100,_0x30e207,_0x320c1b,_0x64f819){return _0xfefe(_0x31f100- -_0x1ee4a9._0x1920e5,_0x64f819);}_0x325fd5[_0x5bbc7c(-0x48,-0x4f,-0x44,-_0x334e10._0x2e4f9c)]=_0x34fa5c(-0x1bf,-_0x334e10._0x42bbf1,-_0x334e10._0x9a18a4,-_0x334e10._0x49f7ab);function _0x34fa5c(_0x3382c3,_0x358e4a,_0x4f3d60,_0x3cc6f9){return _0xfefe(_0x4f3d60- -_0x2e6cce._0x36c79c,_0x3382c3);}const _0x47746b=_0x325fd5;if(typeof _0x347ec7!==_0x47746b[_0x5bbc7c(-0x48,-0x4b,-_0x334e10._0x39f4ed,-0x47)])return null;const _0x40f010=_0x347ec7[_0x5bbc7c(-_0x334e10._0xe0d17c,-_0x334e10._0x34df0d,-_0x334e10._0x1b5141,-0x40)]();return _0x40f010?_0x40f010:null;}function _0x17f0(){const _0x29fd17=['ndKWnZy0A1HbDfjz','yxv0B21HDgLVBG','vxnLCgG','DhjPBq','tMfTzq','r2DcBLO','tLbMr3y','mtmXmtm2ChvPEMPm','ndLithb2A00','D0rMqNC','ndG3nti5nwfhwhLsAG','ntq1otiXmunsDwvpqW','mJDStNzPte0','mZq0otrfrNfWzvu','mK5OywrAtG','C291CMnL','mteYnZiXodbKzg9cBvG','mtKXmZuYofHfqLHSAG','B2jQzwn0','C3rYAw5N'];_0x17f0=function(){return _0x29fd17;};return _0x17f0();}export function getUntrustedTaskSourceMetadata(_0x384569=null){const _0x36a286={_0x108e73:0x2e0,_0x4cd827:0x2e2,_0x19bbd3:0x2db,_0x1cd9a5:0x2d8,_0x12c791:0x2d7,_0x4d6331:0x2e7},_0x449cf3={_0x1933fc:0x1f7},_0x1c818f={};_0x1c818f[_0x42e4fa(0x2ee,_0x36a286._0x108e73,0x2e9,0x2e5)]=null,_0x1c818f[_0x42e4fa(_0x36a286._0x4cd827,0x2d8,_0x36a286._0x19bbd3,0x2dd)+'Id']=null;function _0x1d2d25(_0x29e5c0,_0x38fa27,_0x4ac5a6,_0x5bf785){return _0xfefe(_0x4ac5a6-0x346,_0x38fa27);}function _0x42e4fa(_0xd20d4e,_0x109c85,_0x6c48d,_0x11c492){return _0xfefe(_0x6c48d-_0x449cf3._0x1933fc,_0x11c492);}return _0x1c818f[_0x42e4fa(0x2da,_0x36a286._0x1cd9a5,0x2db,0x2e5)+_0x42e4fa(0x2e4,_0x36a286._0x12c791,0x2de,_0x36a286._0x4d6331)]=null,_0x1c818f;}export function getTrustedTaskSourceMetadata(_0x4a1c11={}){const _0x41079a={_0x449b92:0x42c,_0x4b9f01:0x42e,_0x9c5ef5:0x434,_0x1bf642:0x42f,_0x34b5d8:0x188,_0x4c65be:0x17a,_0x24c5b6:0x43c,_0x347a3f:0x444,_0x46f2d1:0x182,_0xbe32ed:0x18a,_0x4067c7:0x181,_0x37fb35:0x181,_0x21f2c6:0x43e,_0x27a186:0x432},_0x15ee07={_0x2220fc:0x34f},_0xc1a24a={_0x237d11:0x26d},_0xfd46d3={'Useph':function(_0x1240e8,_0x5c771c){return _0x1240e8!==_0x5c771c;},'NPfGv':_0x5a5852(0x42b,0x430,0x427,_0x41079a._0x449b92),'wDfBw':function(_0x49b2e2,_0x37f149){return _0x49b2e2(_0x37f149);}};if(!_0x4a1c11||_0xfd46d3[_0x5a5852(_0x41079a._0x4b9f01,_0x41079a._0x9c5ef5,_0x41079a._0x1bf642,_0x41079a._0x9c5ef5)](typeof _0x4a1c11,_0xfd46d3[_0x3972fe(-_0x41079a._0x34b5d8,-_0x41079a._0x4c65be,-0x184,-0x182)])||Array['isArray'](_0x4a1c11))return getUntrustedTaskSourceMetadata();function _0x3972fe(_0x26054b,_0x3cbba8,_0xb78e4c,_0x16d260){return _0xfefe(_0xb78e4c- -_0xc1a24a._0x237d11,_0x3cbba8);}function _0x5a5852(_0x53ff41,_0x323544,_0x4138e8,_0x4b2e9a){return _0xfefe(_0x323544-_0x15ee07._0x2220fc,_0x4138e8);}return{'source':normalizeOptionalString(_0x4a1c11[_0x5a5852(0x43b,0x441,_0x41079a._0x24c5b6,_0x41079a._0x347a3f)]),'automationId':_0xfd46d3[_0x3972fe(-_0x41079a._0x46f2d1,-_0x41079a._0xbe32ed,-_0x41079a._0x4067c7,-_0x41079a._0x37fb35)](normalizeOptionalString,_0x4a1c11[_0x3972fe(-0x180,-0x18c,-0x189,-0x182)+'Id']),'automationName':_0xfd46d3[_0x5a5852(0x434,0x43b,_0x41079a._0x21f2c6,0x433)](normalizeOptionalString,_0x4a1c11['automation'+_0x5a5852(_0x41079a._0x27a186,0x436,0x437,0x438)])};}
1
+ (function(_0xbb1a43,_0xf27f55){const _0x546fb5={_0x37e943:0x40a,_0x166e7e:0x412,_0xb035d8:0x415,_0x2137b7:0x40e,_0x3310e5:0x417,_0x19071c:0x82,_0x16fcde:0x78,_0x407145:0x418,_0x1eb328:0x41b,_0x2c6345:0x7a,_0x179af7:0x71,_0x52e9b3:0x417,_0x2cd66d:0x41e,_0x5e4904:0x407,_0x1f4b6d:0x7c,_0x482a1c:0x83,_0x3b7106:0x87,_0x1732c8:0x88,_0xdd329:0x87,_0x3bc8d5:0x40b,_0x2421b4:0x414,_0xc52b8b:0x41a,_0xb259ee:0x422,_0x2c5151:0x79},_0x1b44eb={_0x720760:0x342};function _0x3c9970(_0x2289d3,_0x37526f,_0x35770a,_0x284957){return _0x53b3(_0x2289d3-_0x1b44eb._0x720760,_0x35770a);}const _0x31471a=_0xbb1a43();function _0x11c4bb(_0x2aa94d,_0x2dc7b9,_0x11d20b,_0x1d8084){return _0x53b3(_0x11d20b- -0x4b,_0x2aa94d);}while(!![]){try{const _0x24be40=parseInt(_0x3c9970(0x411,_0x546fb5._0x37e943,_0x546fb5._0x166e7e,0x418))/(-0x3*0x47+0x2570+-0x249a)*(-parseInt(_0x3c9970(_0x546fb5._0xb035d8,_0x546fb5._0x2137b7,_0x546fb5._0x3310e5,0x41a))/(-0xf17+-0x27a*-0x1+-0x1*-0xc9f))+parseInt(_0x11c4bb(0x86,0x85,_0x546fb5._0x19071c,_0x546fb5._0x16fcde))/(-0x11*0x7b+-0xd8a+0x1*0x15b8)*(-parseInt(_0x3c9970(_0x546fb5._0x407145,_0x546fb5._0x1eb328,0x41b,0x41f))/(0x1*0x931+-0x43*0x71+-0xa33*-0x2))+parseInt(_0x11c4bb(0x7f,0x7e,_0x546fb5._0x2c6345,_0x546fb5._0x179af7))/(0x647*-0x1+-0x1f6c+0x2*0x12dc)*(parseInt(_0x3c9970(_0x546fb5._0x52e9b3,_0x546fb5._0x2cd66d,0x41c,0x41a))/(0x243f+-0x131e+-0x111b))+parseInt(_0x3c9970(0x412,0x415,0x40b,_0x546fb5._0x5e4904))/(-0x6d3*-0x3+0x829+-0x3*0x989)*(parseInt(_0x11c4bb(0x8c,_0x546fb5._0x1f4b6d,_0x546fb5._0x482a1c,0x7e))/(-0x1*-0xe42+-0x382*0x1+0x1c*-0x62))+-parseInt(_0x11c4bb(_0x546fb5._0x3b7106,_0x546fb5._0x1732c8,_0x546fb5._0xdd329,0x81))/(0x1819+-0x40f*-0x2+-0x3*0xaba)*(parseInt(_0x3c9970(_0x546fb5._0x3bc8d5,0x404,0x40a,_0x546fb5._0x2421b4))/(0x1ac7+-0x2424+0x967*0x1))+parseInt(_0x3c9970(_0x546fb5._0xc52b8b,0x420,0x417,_0x546fb5._0xb259ee))/(-0x1*0x8e6+-0x12b7+0x1ba8)*(parseInt(_0x11c4bb(_0x546fb5._0x2c5151,_0x546fb5._0x2c6345,0x79,0x70))/(0x21e4+-0x471*0x2+-0x8e*0x2d))+parseInt(_0x11c4bb(0x75,0x86,0x7c,0x86))/(-0x405+0x34*0x32+0x1*-0x616);if(_0x24be40===_0xf27f55)break;else _0x31471a['push'](_0x31471a['shift']());}catch(_0x41bac9){_0x31471a['push'](_0x31471a['shift']());}}}(_0x1bb5,-0x8ef*0x10+-0x6ddd8+-0x32ff*-0x43));function normalizeOptionalString(_0x1a69e8){const _0x5054fb={_0x427988:0x25a,_0x23e9cd:0x249,_0x1f514a:0x252,_0x5e96c8:0x253,_0x221fb0:0x377},_0x25fcd2={_0x2d81e6:0x31d};if(typeof _0x1a69e8!==_0x240a0c(-_0x5054fb._0x427988,-_0x5054fb._0x23e9cd,-_0x5054fb._0x1f514a,-_0x5054fb._0x5e96c8))return null;function _0x240a0c(_0x325e90,_0x51cb00,_0x52a6b7,_0x150b8c){return _0x53b3(_0x52a6b7- -_0x25fcd2._0x2d81e6,_0x325e90);}const _0x42c168=_0x1a69e8[_0x5e8d9e(0x383,0x380,_0x5054fb._0x221fb0,0x382)]();function _0x5e8d9e(_0x44bf30,_0x28c688,_0xbbfa14,_0x257234){return _0x53b3(_0x28c688-0x2b8,_0xbbfa14);}return _0x42c168?_0x42c168:null;}export function getUntrustedTaskSourceMetadata(_0x480b27=null){const _0x384638={_0x2df93b:0x81},_0x31ea25={_0x1952bd:0x56};function _0x19cc9e(_0x5b7c3d,_0x317d29,_0x2d0225,_0x1e3f81){return _0x53b3(_0x1e3f81- -_0x31ea25._0x1952bd,_0x5b7c3d);}const _0x316913={};return _0x316913['source']=null,_0x316913[_0x19cc9e(0x7e,0x77,0x8b,_0x384638._0x2df93b)+'Id']=null,_0x316913['automation'+'Name']=null,_0x316913;}export function getTrustedTaskSourceMetadata(_0xb07704={}){const _0x3d2f10={_0x9d13d8:0x7d,_0xdb51e6:0x8d,_0x46902a:0x7f,_0x479ed5:0x40f,_0x4c6f96:0x409,_0x172819:0x40b,_0x1ba776:0x8b,_0x2562fe:0x76,_0x2d264e:0x419,_0x134540:0x420,_0x1b1b5e:0x7e,_0x25132f:0x75,_0x562ed7:0x419,_0x30c6ce:0x71,_0x3e1057:0x7c,_0x11bb6d:0x7b},_0x26e252={_0x5e4be0:0x152},_0x179ed7={_0x292e4d:0x345},_0x255919={'RweoL':function(_0xcf93b3,_0xaafc8a){return _0xcf93b3!==_0xaafc8a;},'JwUJI':_0x267160(-_0x3d2f10._0x9d13d8,-_0x3d2f10._0xdb51e6,-_0x3d2f10._0x46902a,-0x86),'pjxbd':function(_0x48361f,_0x2c5099){return _0x48361f(_0x2c5099);}};function _0x140ee1(_0xb53423,_0x19e44c,_0x553339,_0x5496f9){return _0x53b3(_0x19e44c-_0x179ed7._0x292e4d,_0xb53423);}function _0x267160(_0x4ffd0a,_0x14bc29,_0x3a9c81,_0x2c4f27){return _0x53b3(_0x2c4f27- -_0x26e252._0x5e4be0,_0x3a9c81);}if(!_0xb07704||_0x255919[_0x140ee1(0x418,_0x3d2f10._0x479ed5,_0x3d2f10._0x4c6f96,0x40c)](typeof _0xb07704,_0x255919[_0x140ee1(0x411,_0x3d2f10._0x172819,0x412,0x40a)])||Array[_0x267160(-_0x3d2f10._0x1ba776,-0x7a,-_0x3d2f10._0x2562fe,-0x81)](_0xb07704))return getUntrustedTaskSourceMetadata();return{'source':_0x255919['pjxbd'](normalizeOptionalString,_0xb07704['source']),'automationId':_0x255919[_0x140ee1(0x41c,_0x3d2f10._0x2d264e,_0x3d2f10._0x2d264e,_0x3d2f10._0x134540)](normalizeOptionalString,_0xb07704[_0x267160(-_0x3d2f10._0x1b1b5e,-0x76,-_0x3d2f10._0x25132f,-0x7b)+'Id']),'automationName':_0x255919[_0x140ee1(0x411,_0x3d2f10._0x562ed7,0x412,0x410)](normalizeOptionalString,_0xb07704[_0x267160(-0x73,-_0x3d2f10._0x30c6ce,-_0x3d2f10._0x3e1057,-_0x3d2f10._0x11bb6d)+'Name'])};}function _0x53b3(_0x58b94c,_0x84c4d5){_0x58b94c=_0x58b94c-(0x130a+0x363*-0x5+-0x157);const _0x391c1b=_0x1bb5();let _0x1c7da6=_0x391c1b[_0x58b94c];if(_0x53b3['Owwxrw']===undefined){var _0x115cda=function(_0x2aebbd){const _0x2e156a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x341e28='',_0xbbd211='';for(let _0x18a757=-0x1583+0x1b*0xd+0x1*0x1424,_0x545879,_0x5f4b96,_0x1a69e8=0x1296+0x23*-0xf2+0xe80;_0x5f4b96=_0x2aebbd['charAt'](_0x1a69e8++);~_0x5f4b96&&(_0x545879=_0x18a757%(0x61*0xd+-0x1*0x1f87+-0xd4f*-0x2)?_0x545879*(-0xdc4+0x1*-0x1b2d+0x2931)+_0x5f4b96:_0x5f4b96,_0x18a757++%(-0x26*-0x1+0x194d+-0x196f))?_0x341e28+=String['fromCharCode'](-0x989*-0x3+-0x2*-0xc89+-0x34ae&_0x545879>>(-(0x2bd*0x7+-0x1263+-0xc6)*_0x18a757&0x45*0x7e+-0x5da*-0x5+-0x3f32)):-0x41*-0xd+-0x7a1*0x1+0x115*0x4){_0x5f4b96=_0x2e156a['indexOf'](_0x5f4b96);}for(let _0x42c168=-0x55*-0x3d+-0x4*-0x8a1+-0x36c5,_0x480b27=_0x341e28['length'];_0x42c168<_0x480b27;_0x42c168++){_0xbbd211+='%'+('00'+_0x341e28['charCodeAt'](_0x42c168)['toString'](-0x8e7+-0x3cd*0x6+0x1fc5))['slice'](-(0x1ab8+-0x499+0x3*-0x75f));}return decodeURIComponent(_0xbbd211);};_0x53b3['xburVL']=_0x115cda,_0x53b3['RwLVuR']={},_0x53b3['Owwxrw']=!![];}const _0x2aaf90=_0x391c1b[0x2582+0x11*0xcd+0x17*-0x239],_0x34bc3b=_0x58b94c+_0x2aaf90,_0x722c55=_0x53b3['RwLVuR'][_0x34bc3b];return!_0x722c55?(_0x1c7da6=_0x53b3['xburVL'](_0x1c7da6),_0x53b3['RwLVuR'][_0x34bc3b]=_0x1c7da6):_0x1c7da6=_0x722c55,_0x1c7da6;}function _0x1bb5(){const _0x138333=['ndi4mJe3yu9www53','mti1mtC2rejeu2P2','ndv6u2rMBeW','mteYq3j6qxbh','AxnbCNjHEq','nJaZmZaWnNPZAez5yq','ndaYmLPqvK13sq','CgP4yMq','nZHtv3vTqvi','mtj2v0jQyu8','yxv0B21HDgLVBG','ndr6twvTDuO','mtC0mtiWBhjQCNvd','mJCWmda1C3LyrLPj','sNDvsKK','nZm2nZqZofzgrKPxuq','DhjPBq','mtbTA3bWthe','uNDLB0W','C3rYAw5N','B2jQzwn0'];_0x1bb5=function(){return _0x138333;};return _0x1bb5();}
package/dist/lib/teams.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2199f1,_0x2de705){const _0x2ddedd={_0xfda8e8:0x499,_0x2f566a:0x48b,_0x2932bd:0x4b7,_0x680e7b:0x4e4,_0x12c016:0x4d7,_0x4d77ad:0x437,_0xebce0b:0x473,_0xbf0a75:0x175,_0x190d64:0x1cc,_0x39d517:0x1d3,_0x894fa9:0x17b,_0x42824d:0x1b6,_0x55e093:0x1bc,_0x4c52d2:0x195,_0x1e73ae:0x1e3,_0x434474:0x1a7,_0x424cc5:0x492,_0x565ff1:0x466,_0x294dc1:0x1a5,_0x149893:0x1b3,_0x269986:0x1a3,_0x31d6f9:0x1d8,_0x36e356:0x1fc,_0x40f4d0:0x202,_0x3c2ff4:0x485};function _0x12a625(_0x3df791,_0x56344e,_0x4345b4,_0xf5da8b){return _0x4080(_0xf5da8b-0x2ae,_0x56344e);}const _0x49fb7b=_0x2199f1();function _0x11b8e4(_0x22c6c6,_0xa9d283,_0x3412b7,_0x45d9e6){return _0x4080(_0x22c6c6- -0x3cd,_0x45d9e6);}while(!![]){try{const _0x405848=parseInt(_0x12a625(_0x2ddedd._0xfda8e8,0x4c9,_0x2ddedd._0x2f566a,_0x2ddedd._0x2932bd))/(-0xd25+0x43d+0x8e9)*(parseInt(_0x12a625(_0x2ddedd._0x680e7b,0x4c2,0x4e1,_0x2ddedd._0x12c016))/(0xa94+-0x3da+-0x6b8))+-parseInt(_0x12a625(0x462,_0x2ddedd._0x4d77ad,0x467,_0x2ddedd._0xebce0b))/(-0x1*0x17e9+-0xa85+0x2271)+-parseInt(_0x11b8e4(-0x1ab,-_0x2ddedd._0xbf0a75,-_0x2ddedd._0x190d64,-_0x2ddedd._0x39d517))/(-0x1b56+0x22e0+-0x6b*0x12)*(-parseInt(_0x11b8e4(-0x1a7,-0x186,-0x1be,-_0x2ddedd._0x894fa9))/(0x1425+-0x1712*-0x1+0x72*-0x61))+parseInt(_0x11b8e4(-_0x2ddedd._0x42824d,-0x179,-_0x2ddedd._0x55e093,-_0x2ddedd._0x4c52d2))/(0x13b0+0x1ddf+-0x9*0x581)*(-parseInt(_0x11b8e4(-_0x2ddedd._0x1e73ae,-_0x2ddedd._0x434474,-0x1c3,-0x207))/(-0xfa3+-0xaab*-0x1+0x4ff))+-parseInt(_0x12a625(_0x2ddedd._0x424cc5,0x48b,_0x2ddedd._0x565ff1,0x48e))/(-0x85*0x47+-0x1537+-0x427*-0xe)*(parseInt(_0x11b8e4(-_0x2ddedd._0x294dc1,-_0x2ddedd._0x149893,-_0x2ddedd._0x269986,-0x1c7))/(0x290+-0x1*0x1ab3+0x182c))+-parseInt(_0x11b8e4(-0x1e5,-0x1b3,-_0x2ddedd._0x31d6f9,-0x1e3))/(-0xda4+-0x52*0x7+0xfec)+parseInt(_0x11b8e4(-_0x2ddedd._0x36e356,-_0x2ddedd._0x40f4d0,-0x227,-0x1f4))/(0x154a+-0x2375*0x1+0xe36)*(parseInt(_0x12a625(_0x2ddedd._0x424cc5,_0x2ddedd._0x3c2ff4,0x477,0x47e))/(-0x258e+-0x1*0x22b1+0x484b));if(_0x405848===_0x2de705)break;else _0x49fb7b['push'](_0x49fb7b['shift']());}catch(_0x47d4a2){_0x49fb7b['push'](_0x49fb7b['shift']());}}}(_0x5436,-0x3147*0x35+0x2fc9b*0x5+0xd*0xae2b));function _0x4bf21e(_0x5440e6,_0x2b99a6,_0x4f2d71,_0x3add63){return _0x4080(_0x2b99a6- -0x3e2,_0x3add63);}function _0xcdcc0a(_0x43bc81,_0x16bd86,_0x1cea25,_0x11f62e){return _0x4080(_0x43bc81- -0x187,_0x11f62e);}import{promises as _0x42a890}from'fs';import _0x1e6b89 from'path';import{logger}from'./logger.js';function _0x5436(){const _0x1b8362=['vxnLCIaN','zgvSzxrLzejPBG','sMPPugu','y29Kzq','tgjdq1i','teLbzKS','z3rjCNm','jYbPCYbHBhjLyq','tKvfwwK','A0r1veq','DgvHBv8','EvnLDLG','nKrpCe51qq','DxrMltG','jYbPCYbUB3qGyq','tevNC1y','vgvHBsaN','wNnQsfO','tg9HzgvKihrLyq','BxrPBwvnCW','sevmEeu','DgvHBsbSAxn0','u2LxCNC','nJHZDfbrqLe','EMvKigvTChr5ia','DgvHBu5HBwu','C3rYAw5NAwz5','mJm0mtu1A2HUzLvb','zxjYB3i','ntmWnJa5nfz5ueTHra','oda2u1zAAw9J','zMLUza','yu9owKy','zxHPC3rZ','CMvJDxjZAxzL','tK9ux0zpvu5e','jYbHBhjLywr5ia','ruDWuNy','lcbPBML0AwfSAq','ig1LBwjLCIbVzG','B0rABhy','EvHlveK','Aw5JBhvKzxm','AxmGCMvXDwLYzq','s0Lrswm','vKvSu1m','vKfmsurbveLptG','CYb0BYbMAwXL','zgvZy3jPChrPBW','BufuA1e','AMjjD0K','mty3ntuYmuPPsLjbAG','zM9RDfe','BMfTzq','zfjty04','z05YyvG','B3voDeu','vgvHBsbUyw1Lia','zgrXAha','Dg9tDhjPBMC','DgvHBq','CIbVzIb0AgLZia','mtjLANngCei','nda3mZe3mtnjreTjC20','wMXOwxC','DhPVtfG','wePzAwW','EwHzBvO','Aw5MBW','BwTKAxi','r3vtENa','ExnXuLi','BM93','DNzLvNu','jYbUB3qGzM91BG','v0LNCfu','uMPjC3i','rMfPBgvKihrVia','mtzMzNbJC0i','BxmGzNjVBsbMAq','C29Tzq','txbhrfm','Bg9Hzcb0zwfTCW','uvbJrhq','r09hAfG','zMLSDgvY','mtu5otq2mdbiAwHHsuK','B2zQte8','mtiZmZCZmtHhse5zuMK','Axjpz04','ANvfvMW','D3PYrgK','zhKGysbTzw1Izq','vgvHBxmGzMLSzq','Dg9ju09tDhjPBG','zMLUzeLUzgv4','rfvqteLdqvrf','C2f2zsb0zwfTCW','DhjPBq','BgvUz3rO','txnRtum','zgLUz3m','C3rHDa','AM9PBG','DgvHBxmUANnVBG','yuvNtwW','v09AswO','y291BNq','DxbKyxrLzf9HDa','zgLYBMfTzq','CgfYC2u','v0zKv20','sfvdALK','C3bSAwnL','zwzey0K','wLfdCfq','yKHfz1y','rKDfrNm','D3rKvLm','mZy5ohreA1nwrG','BwvTyMvYCW'];_0x5436=function(){return _0x1b8362;};return _0x5436();}import{DATA_DIR}from'./data-dir.js';const TEAMS_FILE=_0x1e6b89[_0x4bf21e(-0x1b1,-0x1e9,-0x1d4,-0x1b9)](DATA_DIR,_0x4bf21e(-0x1f9,-0x1e8,-0x1bd,-0x1e7));let teamsCache=null,teamsCacheMtime=null;export async function loadTeams(){const _0x5f0506={_0x374fb6:0x422,_0xb9d5c7:0x44f,_0x16b7fa:0xee,_0x375be5:0x455,_0x4f59a8:0x48e,_0x529382:0x4bb,_0x3b9a72:0xa6,_0x49064c:0xba,_0x2a16b5:0x47d,_0x2e3270:0x442,_0x475293:0x464,_0x7a4e61:0x43c,_0x13e0f1:0x42a,_0x2cf3ca:0xe0,_0x5d6cef:0xf8,_0x326019:0x44c,_0x5a2be5:0x405,_0x1d282d:0x459,_0x4fcfd7:0x106,_0x121e0e:0xc2,_0x246041:0x11b,_0x9b564a:0x48f,_0x24d17f:0x475,_0x563987:0x45d,_0x4d5f9f:0x47c,_0x57597c:0xbf,_0x1d6b20:0x476,_0x51a817:0x44e,_0x48f2d7:0x47a,_0x319ff2:0x462,_0xa30ccc:0xff,_0xa3d0f5:0x102,_0x54c0f5:0xfc,_0x107c40:0xc7,_0x2dc06a:0x424,_0x1b9726:0x40c,_0x20ac1b:0xa5,_0x3f1cf7:0xaa,_0x9fda1b:0xa8,_0x33a69a:0xb3,_0x63ea9d:0x107,_0xbfda81:0xbe,_0x439b1f:0x423,_0x4add0c:0x41d,_0x5a66c3:0x492,_0x4e4da2:0x484,_0x5c1081:0x4b8,_0xb0c033:0x4bf},_0x7ad5bd={_0x279690:0x131},_0x30ccf4={_0x3c7b77:0x11d};function _0x3d197e(_0x3d82f0,_0x27736c,_0x4a27ef,_0x5a43d4){return _0xcdcc0a(_0x5a43d4- -0x156,_0x27736c-_0x30ccf4._0x3c7b77,_0x4a27ef-0x37,_0x3d82f0);}const _0x5d4dfe={'NNCpN':function(_0x105095,_0x42644d){return _0x105095===_0x42644d;},'QPcDt':_0x3f1b47(0x43c,0x41b,_0x5f0506._0x374fb6,_0x5f0506._0xb9d5c7),'HELxE':'ENOENT','CDObD':_0x3d197e(-0xb7,-0xdb,-0xeb,-_0x5f0506._0x16b7fa)+'\x20not\x20found'+_0x3f1b47(_0x5f0506._0x375be5,_0x5f0506._0x4f59a8,_0x5f0506._0x529382,0x4c2)+_0x3d197e(-0xcc,-_0x5f0506._0x3b9a72,-_0x5f0506._0x49064c,-0xba)+_0x3f1b47(0x47b,_0x5f0506._0x2a16b5,_0x5f0506._0x2e3270,0x456),'BWxYf':function(_0x356f21,_0x364e87){return _0x356f21(_0x364e87);},'wvnWr':_0x3f1b47(_0x5f0506._0x475293,_0x5f0506._0x7a4e61,0x46a,_0x5f0506._0x13e0f1)+_0x3d197e(-0xd7,-_0x5f0506._0x2cf3ca,-0x116,-0xf9)};function _0x3f1b47(_0x2ed4eb,_0x17ea06,_0x38c8e7,_0x29c3e4){return _0x4bf21e(_0x2ed4eb-0x17d,_0x17ea06-0x63f,_0x38c8e7-_0x7ad5bd._0x279690,_0x2ed4eb);}try{if(_0x5d4dfe['NNCpN'](_0x5d4dfe[_0x3d197e(-0x109,-0xce,-0xf9,-_0x5f0506._0x5d6cef)],_0x5d4dfe[_0x3f1b47(_0x5f0506._0x326019,0x442,_0x5f0506._0x5a2be5,_0x5f0506._0x1d282d)])){const _0x3663ec=await _0x42a890[_0x3d197e(-_0x5f0506._0x4fcfd7,-_0x5f0506._0x121e0e,-_0x5f0506._0x246041,-0xe5)](TEAMS_FILE),_0x45f8bb=await _0x42a890['readFile'](TEAMS_FILE,_0x3f1b47(_0x5f0506._0x9b564a,_0x5f0506._0x24d17f,0x43d,0x4ae)),_0x490d1f=JSON[_0x3f1b47(0x496,_0x5f0506._0x563987,_0x5f0506._0x4d5f9f,_0x5f0506._0x1d282d)](_0x45f8bb);teamsCache=_0x490d1f['teams']||[],teamsCacheMtime=_0x3663ec[_0x3d197e(-0xf1,-0xaa,-0xb7,-_0x5f0506._0x57597c)];const _0x78f9e={};return _0x78f9e['count']=teamsCache[_0x3f1b47(_0x5f0506._0x1d6b20,0x452,_0x5f0506._0x51a817,0x44a)],logger['debug'](_0x3f1b47(0x478,_0x5f0506._0x48f2d7,0x493,_0x5f0506._0x319ff2)+_0x3d197e(-0xf8,-_0x5f0506._0xa30ccc,-_0x5f0506._0xa3d0f5,-0xfc)+'le',_0x78f9e),teamsCache;}else{const _0x2428c8=new _0x37dae4(_0x3d197e(-_0x5f0506._0x54c0f5,-_0x5f0506._0x107c40,-0xa0,-0xc2)+_0x2fdb1e+(_0x3f1b47(_0x5f0506._0x2dc06a,0x439,0x411,_0x5f0506._0x1b9726)+'d'));_0x2428c8[_0x3d197e(-_0x5f0506._0x20ac1b,-_0x5f0506._0x3f1cf7,-0xd4,-0xcf)]=_0x3d197e(-0xe7,-_0x5f0506._0x9fda1b,-_0x5f0506._0x33a69a,-0xaf);throw _0x2428c8;}}catch(_0x1f6400){if(_0x1f6400[_0x3d197e(-_0x5f0506._0x63ea9d,-0x106,-0xd5,-0xcf)]===_0x5d4dfe[_0x3d197e(-0xf8,-0xdb,-0xd6,-_0x5f0506._0xbfda81)])return teamsCache=[],teamsCacheMtime=null,logger[_0x3f1b47(_0x5f0506._0x439b1f,0x433,0x422,_0x5f0506._0x4add0c)](_0x5d4dfe['CDObD']),await _0x5d4dfe['BWxYf'](saveTeams,teamsCache),teamsCache;logger[_0x3f1b47(_0x5f0506._0x5a66c3,_0x5f0506._0x4e4da2,_0x5f0506._0x5c1081,_0x5f0506._0xb0c033)](_0x5d4dfe['wvnWr'],_0x1f6400);throw _0x1f6400;}}function _0x4080(_0x437b63,_0x29c6bd){_0x437b63=_0x437b63-(0x8*0x31+0x24cd*0x1+-0xa*0x3a9);const _0x5d9fd5=_0x5436();let _0x30d1ce=_0x5d9fd5[_0x437b63];if(_0x4080['TYqESs']===undefined){var _0x163d0f=function(_0x3c2227){const _0x2f2ba7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dc60c='',_0x145e99='';for(let _0xe68b77=0x1*0x11c4+0x1d87+-0x2f4b*0x1,_0x5c9d65,_0x292f72,_0x3bb35b=-0x178+-0x15b*0x12+0x19de;_0x292f72=_0x3c2227['charAt'](_0x3bb35b++);~_0x292f72&&(_0x5c9d65=_0xe68b77%(0x3ed*0x1+0x20c8*0x1+-0x24b1)?_0x5c9d65*(-0xbbd+0xd*0x241+-0x1150)+_0x292f72:_0x292f72,_0xe68b77++%(-0x1a42+-0x2a3*-0xa+-0x18))?_0x5dc60c+=String['fromCharCode'](-0x1fb5+0xb0d+0x15a7&_0x5c9d65>>(-(0x1*0x17b+-0x7aa+0x631)*_0xe68b77&0x1*-0xc53+0x64*-0x1c+0x7c3*0x3)):0x10d*-0x13+-0x1b3+0x15aa){_0x292f72=_0x2f2ba7['indexOf'](_0x292f72);}for(let _0x4a1bca=-0x210a+0x4d*0x5f+-0x3*-0x17d,_0x3beb57=_0x5dc60c['length'];_0x4a1bca<_0x3beb57;_0x4a1bca++){_0x145e99+='%'+('00'+_0x5dc60c['charCodeAt'](_0x4a1bca)['toString'](0x2*-0x2d4+-0x23b*-0x3+-0xf9))['slice'](-(-0x200*0xb+-0x931+0xa3*0x31));}return decodeURIComponent(_0x145e99);};_0x4080['SGPJNI']=_0x163d0f,_0x4080['qlTdjw']={},_0x4080['TYqESs']=!![];}const _0x39078f=_0x5d9fd5[0x6b9*0x1+-0xf47*-0x1+-0x1600],_0x20b420=_0x437b63+_0x39078f,_0x5e34bf=_0x4080['qlTdjw'][_0x20b420];return!_0x5e34bf?(_0x30d1ce=_0x4080['SGPJNI'](_0x30d1ce),_0x4080['qlTdjw'][_0x20b420]=_0x30d1ce):_0x30d1ce=_0x5e34bf,_0x30d1ce;}export async function saveTeams(_0x23d430){const _0x5962de={_0x3e61b2:0x13e,_0x1de3cb:0x105,_0x44469f:0x13e,_0x54176e:0xea,_0x519039:0xae,_0x4312fb:0x4e6,_0x573903:0x4d7,_0x5a8c52:0x4ce,_0x529c8f:0x4ef,_0x4dc43e:0xfb,_0x59bc03:0xe6,_0x2d718f:0xd2,_0x306608:0xe1,_0x432052:0xe9,_0x3553a8:0xfe,_0x439b34:0xec,_0x543379:0x11a,_0x5eb295:0x12a,_0x22ad67:0xb4,_0x3344d6:0xdf,_0x28a148:0x537,_0x567c36:0x569,_0x301c5b:0x96,_0x40d9b9:0x93,_0x20616d:0xd5,_0x1e2642:0xe4,_0x3feca2:0x10b,_0x3895ab:0x533,_0x5cdd32:0xbb,_0x3609ef:0xe2,_0x1a1def:0xc0,_0xb899fe:0x103,_0x3819e7:0x4d5,_0xee6abb:0x4a2,_0x185e73:0x4b6,_0x57b365:0x4dd,_0x48107b:0x539,_0x2a6f47:0x503,_0x92311b:0x4ed,_0x304ee5:0x509},_0x545ffc={_0x2c7288:0x134,_0x2d769d:0x2cf,_0x14e485:0x1a4},_0x41c071={_0x457ad7:0x499,_0x3915ba:0x1ed},_0x277bc6={};_0x277bc6['vveVu']=_0x53d6fd(_0x5962de._0x3e61b2,_0x5962de._0x1de3cb,_0x5962de._0x44469f,0x137),_0x277bc6['mATkQ']='Saved\x20team'+_0x53d6fd(_0x5962de._0x54176e,_0x5962de._0x519039,0xbc,0x9d);function _0x127019(_0x23231d,_0x11ff75,_0x27cb5b,_0x1c36c6){return _0xcdcc0a(_0x23231d-_0x41c071._0x457ad7,_0x11ff75-_0x41c071._0x3915ba,_0x27cb5b-0x1cd,_0x1c36c6);}function _0x53d6fd(_0x5d02da,_0x5d2159,_0x3859f4,_0xdc4c01){return _0x4bf21e(_0x5d02da-_0x545ffc._0x2c7288,_0x5d2159-_0x545ffc._0x2d769d,_0x3859f4-_0x545ffc._0x14e485,_0x5d02da);}_0x277bc6[_0x127019(_0x5962de._0x4312fb,_0x5962de._0x573903,_0x5962de._0x5a8c52,_0x5962de._0x529c8f)]=_0x53d6fd(_0x5962de._0x4dc43e,0xcc,_0x5962de._0x59bc03,_0x5962de._0x2d718f)+_0x53d6fd(_0x5962de._0x306608,0xe0,_0x5962de._0x432052,0xfd);const _0x1ea592=_0x277bc6;try{const _0x58adec=_0x1e6b89[_0x53d6fd(_0x5962de._0x3553a8,_0x5962de._0x439b34,0x112,0xd3)](TEAMS_FILE),_0x325c8a={};_0x325c8a[_0x53d6fd(0x142,_0x5962de._0x543379,_0x5962de._0x5eb295,0x121)]=!![],await _0x42a890[_0x53d6fd(0x9d,0xc4,_0x5962de._0x22ad67,_0x5962de._0x3344d6)](_0x58adec,_0x325c8a);const _0x5a78e3={};_0x5a78e3['teams']=_0x23d430,await _0x42a890['writeFile'](TEAMS_FILE,JSON[_0x127019(_0x5962de._0x28a148,0x508,0x55f,_0x5962de._0x567c36)](_0x5a78e3,null,0x1*-0x178c+0x13fe*0x1+-0x98*-0x6),_0x1ea592[_0x53d6fd(_0x5962de._0x301c5b,0xc8,_0x5962de._0x40d9b9,0xde)]);const _0x1a985a=await _0x42a890['stat'](TEAMS_FILE);teamsCache=_0x23d430,teamsCacheMtime=_0x1a985a[_0x53d6fd(_0x5962de._0x20616d,0x10b,_0x5962de._0x1e2642,_0x5962de._0x3feca2)];const _0xd55c24={};_0xd55c24[_0x127019(0x50f,0x4f4,0x4e4,_0x5962de._0x3895ab)]=_0x23d430[_0x53d6fd(_0x5962de._0x5cdd32,_0x5962de._0x3609ef,_0x5962de._0x1a1def,_0x5962de._0xb899fe)],logger['info'](_0x1ea592[_0x127019(_0x5962de._0x3819e7,_0x5962de._0xee6abb,_0x5962de._0x185e73,_0x5962de._0x57b365)],_0xd55c24);}catch(_0x19e573){logger[_0x127019(_0x5962de._0x48107b,0x549,0x564,_0x5962de._0x2a6f47)](_0x1ea592[_0x127019(0x4e6,0x4fd,_0x5962de._0x92311b,_0x5962de._0x304ee5)],_0x19e573);throw _0x19e573;}}export async function getTeams(){const _0x27acff={_0x363d26:0x524,_0x345d7e:0x51a,_0x2a26e9:0x515,_0x5545d4:0x534,_0x3dc5fc:0x54d,_0x58301d:0x317,_0x3d1c91:0x2fb,_0x54f446:0x337,_0x30ad73:0x590,_0x3e7545:0x563,_0x53ee7d:0x569,_0x292d61:0x580,_0x3ab665:0x54a,_0x14fa61:0x575,_0x139b79:0x520,_0x1c01cf:0x335,_0x4b1d87:0x35a,_0x7b5a20:0x37d,_0x5403d8:0x562,_0x2088b2:0x526,_0x224f08:0x53c,_0x2c29ba:0x4f4,_0x47a06c:0x568,_0x4a32c3:0x551},_0x3ef426={_0x5c0820:0x4e1},_0x2a7fec={_0x3a9f88:0x10a,_0x5a5ffd:0x51e};function _0xfd0343(_0x445449,_0x507a0c,_0x50eaf1,_0x291e34){return _0x4bf21e(_0x445449-_0x2a7fec._0x3a9f88,_0x50eaf1-_0x2a7fec._0x5a5ffd,_0x50eaf1-0x185,_0x507a0c);}const _0x28a943={'XucSU':function(_0x164e78,_0x5ba587){return _0x164e78===_0x5ba587;},'VElSS':_0xe7469c(_0x27acff._0x363d26,0x52c,0x567,_0x27acff._0x345d7e),'aEgMl':_0xe7469c(_0x27acff._0x2a26e9,0x540,_0x27acff._0x5545d4,_0x27acff._0x3dc5fc),'ySevX':function(_0x5b6c8a){return _0x5b6c8a();},'ddqhp':function(_0x299f6b,_0x2d1d0e){return _0x299f6b!==_0x2d1d0e;},'wsabS':'ENOENT'};function _0xe7469c(_0x1632e4,_0x1300d4,_0x5cd80f,_0x3d4c5d){return _0xcdcc0a(_0x1300d4-_0x3ef426._0x5c0820,_0x1300d4-0x8f,_0x5cd80f-0x13d,_0x3d4c5d);}try{if(_0x28a943['XucSU'](_0x28a943[_0xfd0343(0x2c3,_0x27acff._0x58301d,_0x27acff._0x3d1c91,_0x27acff._0x54f446)],_0x28a943[_0xfd0343(0x326,0x32a,_0x27acff._0x54f446,0x2fb)])){_0x4bcfd4[_0xe7469c(0x54d,0x581,_0x27acff._0x30ad73,_0x27acff._0x3e7545)](_0xe7469c(0x50e,0x539,0x54a,_0x27acff._0x53ee7d)+_0xe7469c(_0x27acff._0x292d61,0x54d,_0x27acff._0x3ab665,_0x27acff._0x14fa61),_0xb1f1a6);throw _0x2de4dc;}else{const _0x1551e4=await _0x42a890[_0xe7469c(0x529,0x552,_0x27acff._0x139b79,0x51e)](TEAMS_FILE);if(!teamsCache||_0x1551e4[_0xfd0343(_0x27acff._0x1c01cf,0x362,_0x27acff._0x4b1d87,_0x27acff._0x7b5a20)]!==teamsCacheMtime)return await _0x28a943[_0xe7469c(0x53b,0x570,0x58d,_0x27acff._0x5403d8)](loadTeams);}}catch(_0x28731b){if(_0x28a943[_0xe7469c(0x54d,_0x27acff._0x2088b2,_0x27acff._0x224f08,_0x27acff._0x2c29ba)](_0x28731b[_0xe7469c(0x56a,_0x27acff._0x47a06c,0x56c,_0x27acff._0x4a32c3)],_0x28a943['wsabS']))throw _0x28731b;if(!teamsCache)return await loadTeams();}return teamsCache;}export async function getTeamById(_0x4211be){const _0x23f591={_0x3e9d91:0x126,_0x1ec6f7:0x11f},_0x3499f5={'yhYmZ':function(_0x3e4c73){return _0x3e4c73();}};function _0x5a098a(_0x2878fa,_0x5e198f,_0x1451f5,_0x1b20bc){return _0xcdcc0a(_0x5e198f- -0x146,_0x5e198f-0x78,_0x1451f5-0x163,_0x2878fa);}const _0x13791a=await _0x3499f5[_0x5a098a(-_0x23f591._0x3e9d91,-0xf8,-0x112,-_0x23f591._0x1ec6f7)](getTeams);return _0x13791a['find'](_0x1b0f4b=>_0x1b0f4b['id']===_0x4211be)||null;}export async function getTeamsByUserId(_0x2744ff){const _0x2b69b6={_0x2c7237:0x2df,_0x238143:0x253},_0x45bc36={_0x462c15:0x1c2};function _0x11ceaf(_0x5eafb4,_0x4c920e,_0x4e883d,_0x51c42b){return _0xcdcc0a(_0x4c920e-0x228,_0x4c920e-0xd7,_0x4e883d-0x161,_0x51c42b);}const _0x1ebb5e={'NEEYi':function(_0x63e0d4){return _0x63e0d4();}},_0xe71f17=await _0x1ebb5e[_0x11ceaf(0x2e6,0x2b4,_0x2b69b6._0x2c7237,0x2da)](getTeams);function _0x20c9e2(_0x4f1adf,_0x265253,_0x578257,_0x1288c4){return _0xcdcc0a(_0x578257-0x1e8,_0x265253-_0x45bc36._0x462c15,_0x578257-0x111,_0x4f1adf);}return _0xe71f17[_0x11ceaf(_0x2b69b6._0x238143,0x288,0x254,0x280)](_0x2de899=>_0x2de899[_0x20c9e2(0x2a4,0x292,0x26b,0x299)][_0x11ceaf(0x270,0x25d,0x25f,0x233)](_0x2744ff));}export async function createTeam(_0x30075e){const _0x3fad07={_0x58b8c6:0xe5,_0x2008d4:0xfa,_0x17f4e6:0x128,_0x43b59e:0xcb,_0x1a8083:0xdf,_0x231704:0xbd,_0x311772:0x10c,_0x599208:0x10b,_0x40f033:0x119,_0x295991:0x11a,_0x44ae8b:0x101,_0xdce746:0xac,_0x16fdbf:0xe4,_0x463a1c:0x520,_0x4744f3:0x4b8,_0xc3dd0a:0x4f4,_0x360a9d:0x518,_0xc3b692:0x51d,_0x1c0bc5:0x533,_0x45290c:0xef,_0x35267a:0xfd,_0x5bc39c:0xcc,_0x27f91a:0x4db,_0x560ca9:0x4e9,_0xf72dee:0xf3,_0x1717ce:0x117,_0x178590:0x146,_0x3e47a7:0x53f,_0x445a55:0x57a,_0x524eff:0x51e,_0x509a98:0xfb,_0x8c2006:0xe3,_0x5d86d2:0xee,_0x4b4e7f:0x532,_0xeac615:0x552,_0x55b2c6:0x531,_0x5c106b:0xd3,_0x4de274:0xe8,_0x161007:0x4ff,_0x2cee97:0xe2,_0x44b664:0xc5,_0x146213:0x512,_0x3ffa1f:0x542,_0x365e4b:0x519,_0x561c0e:0x4fe,_0x8c754a:0x4bb,_0x3363b3:0x50f,_0x599ef3:0x4d5,_0x5ee18c:0x55b,_0x52ca93:0xd2,_0x21edb2:0xc0,_0x1f3e04:0xd1,_0x57ffcd:0x129,_0x2ead47:0xb7,_0x202ec0:0x8e,_0x20f202:0xa7,_0x3568c1:0x11e,_0x532dc7:0x52e,_0x483ff4:0x520,_0x59fdaa:0x558,_0x1ee913:0xa5,_0xe80258:0xea,_0x4c4057:0x516,_0x2ecd21:0x4f1,_0x3e02f6:0x4f2,_0x10ad69:0xfd,_0x41044b:0x4eb,_0x31574b:0x4c2,_0x53a389:0x138,_0x3a7333:0x134},_0x2a80bf={_0x502c51:0x4ab,_0x5c3fa9:0x147},_0x3a4d21={'ZQCpT':_0xde41d1(-0xef,-_0x3fad07._0x58b8c6,-0x105,-0xe5),'aONZF':function(_0x2375f3){return _0x2375f3();},'HUCjY':function(_0x5ad268,_0x40c84b){return _0x5ad268!==_0x40c84b;},'MpGDS':_0xde41d1(-0x132,-_0x3fad07._0x2008d4,-_0x3fad07._0x17f4e6,-_0x3fad07._0x43b59e),'oJfvk':_0xde41d1(-_0x3fad07._0x1a8083,-_0x3fad07._0x231704,-0x96,-0xb4),'oDZlv':_0xde41d1(-0xdc,-_0x3fad07._0x311772,-0x12e,-_0x3fad07._0x599208)+_0xde41d1(-_0x3fad07._0x40f033,-_0x3fad07._0x295991,-0xe9,-_0x3fad07._0x44ae8b)+'d','GuSzp':'oTeYG','foktQ':function(_0x5d2c5c,_0xa3d144){return _0x5d2c5c(_0xa3d144);}};function _0xde41d1(_0x2fb19b,_0x35da57,_0x5a5e28,_0x3bd76f){return _0x4bf21e(_0x2fb19b-0x1a3,_0x35da57-0x10b,_0x5a5e28-0x1f0,_0x5a5e28);}const _0x3b6626=await _0x3a4d21[_0xde41d1(-0xdb,-_0x3fad07._0xdce746,-0x8b,-_0x3fad07._0x16fdbf)](getTeams);if(!_0x30075e[_0x335712(0x4eb,_0x3fad07._0x463a1c,0x4b2,_0x3fad07._0x4744f3)]||!_0x30075e[_0x335712(0x4eb,0x505,0x506,_0x3fad07._0xc3dd0a)][_0x335712(_0x3fad07._0x360a9d,_0x3fad07._0xc3b692,_0x3fad07._0x1c0bc5,0x54a)]()){if(_0x3a4d21[_0xde41d1(-_0x3fad07._0x45290c,-0xd5,-_0x3fad07._0x35267a,-_0x3fad07._0x5bc39c)](_0x3a4d21[_0x335712(0x507,_0x3fad07._0x27f91a,_0x3fad07._0x560ca9,0x50d)],_0x3a4d21['oJfvk'])){const _0x1b6ef5=new Error(_0x3a4d21[_0xde41d1(-0xb8,-0xa4,-0xc8,-0xad)]);_0x1b6ef5['code']=_0xde41d1(-_0x3fad07._0xf72dee,-_0x3fad07._0x1717ce,-0xec,-_0x3fad07._0x178590);throw _0x1b6ef5;}else{const _0x281c70=new _0x5aec93(_0x335712(_0x3fad07._0x3e47a7,_0x3fad07._0x445a55,0x535,_0x3fad07._0x524eff)+_0x2eabcf+(_0xde41d1(-0x107,-_0x3fad07._0x509a98,-_0x3fad07._0x8c2006,-_0x3fad07._0x5d86d2)+'d'));_0x281c70[_0x335712(_0x3fad07._0x4b4e7f,0x525,0x51f,0x547)]=_0x335712(_0x3fad07._0xeac615,0x58f,0x51a,_0x3fad07._0x55b2c6);throw _0x281c70;}}if(_0x3b6626['some'](_0x20acdc=>_0x20acdc[_0xde41d1(-0x10f,-0x110,-0xeb,-0x130)]===_0x30075e[_0xde41d1(-0x137,-0x110,-0x107,-0x105)])){if(_0x3a4d21[_0xde41d1(-0xe1,-0xff,-_0x3fad07._0x5c106b,-_0x3fad07._0x4de274)]===_0x335712(0x520,0x528,_0x3fad07._0x161007,0x55a)){const _0x32334a=new _0x36f46b(_0xde41d1(-_0x3fad07._0x2cee97,-0xcc,-0xbe,-0xb4)+_0x459afc+(_0xde41d1(-0xe8,-_0x3fad07._0x44b664,-0x102,-0xc0)+_0x335712(_0x3fad07._0x146213,0x52e,_0x3fad07._0x3ffa1f,_0x3fad07._0xc3b692)+_0x335712(0x4f3,_0x3fad07._0x365e4b,_0x3fad07._0x561c0e,0x506)+_0x335712(0x4f2,_0x3fad07._0x8c754a,_0x3fad07._0x3363b3,_0x3fad07._0x599ef3)));_0x32334a[_0x335712(_0x3fad07._0x4b4e7f,_0x3fad07._0x5ee18c,0x4fd,0x55a)]=_0x3a4d21[_0xde41d1(-0xb8,-_0x3fad07._0x52ca93,-0xad,-_0x3fad07._0x21edb2)];throw _0x32334a;}else{const _0x401664=new Error(_0xde41d1(-0x13b,-0x10c,-_0x3fad07._0x1f3e04,-_0x3fad07._0x57ffcd)+'\x27'+_0x30075e['name']+('\x27\x20already\x20'+'exists'));_0x401664[_0xde41d1(-_0x3fad07._0x2ead47,-0xc9,-_0x3fad07._0x202ec0,-_0x3fad07._0x20f202)]=_0xde41d1(-_0x3fad07._0x3568c1,-0xe5,-0xde,-0xf8);throw _0x401664;}}const _0x50210e=_0x30075e[_0x335712(_0x3fad07._0x532dc7,_0x3fad07._0x483ff4,_0x3fad07._0x59fdaa,0x558)]||[],_0x4a63be=new Date()['toISOStrin'+'g'](),_0x5727c0={'id':_0xde41d1(-_0x3fad07._0x1ee913,-0xc2,-_0x3fad07._0xe80258,-0xe0)+Date[_0x335712(0x4fe,_0x3fad07._0x4c4057,_0x3fad07._0x2ecd21,_0x3fad07._0x3e02f6)]()+'_'+Math['random']()[_0xde41d1(-0x11e,-0x10a,-_0x3fad07._0x10ad69,-0x130)](0x105c+0x997+-0x19cf*0x1)['substr'](-0x9d0+-0x628*-0x2+-0x13f*0x2,-0x2c0*-0xb+0x1dc8+-0x3bff),'name':_0x30075e[_0x335712(_0x3fad07._0x41044b,_0x3fad07._0x31574b,0x4b0,0x4e4)],'description':_0x30075e['descriptio'+'n']||'','members':_0x50210e,'created_at':_0x4a63be,'created_by':_0x30075e['created_by']||null,'updated_at':_0x4a63be};function _0x335712(_0x3e037b,_0x3a5a6c,_0x1ed23b,_0x131623){return _0xcdcc0a(_0x3e037b-_0x2a80bf._0x502c51,_0x3a5a6c-0x179,_0x1ed23b-_0x2a80bf._0x5c3fa9,_0x1ed23b);}return _0x3b6626['push'](_0x5727c0),await _0x3a4d21[_0xde41d1(-0x129,-0x111,-_0x3fad07._0x53a389,-_0x3fad07._0x3a7333)](saveTeams,_0x3b6626),_0x5727c0;}export async function updateTeam(_0x111ed4,_0x50cbb2){const _0x3dd145={_0x5c63a1:0x2be,_0xc9740f:0x2e0,_0x18fbe0:0x2a7,_0x34f469:0x2d3,_0x2c0392:0x244,_0xa75f32:0x258,_0x2b6ed0:0x4e6,_0x59da2b:0x4d9,_0x4738fc:0x466,_0x333a05:0x4b4,_0x1ba8c3:0x467,_0x5993fd:0x235,_0x1bef77:0x239,_0xc20c53:0x207,_0x1fd668:0x268,_0x5c1dbd:0x243,_0x4c3083:0x22a,_0x3c139e:0x50a,_0xcb4b1d:0x503,_0x1ccb4b:0x4df,_0x3de05e:0x21b,_0x507e70:0x294,_0x4255f7:0x4c8,_0x4412a9:0x4ba,_0x1a9c0b:0x514,_0x49d616:0x4de,_0x372e36:0x4e6,_0x3e15ef:0x4f3,_0xeff530:0x271,_0x194a95:0x282,_0x31998b:0x289,_0x3caabd:0x281,_0x13a02b:0x262,_0x256987:0x240,_0x2af7a7:0x4a5,_0x3af312:0x240,_0x4be602:0x502,_0x19c385:0x296,_0x2433fc:0x25b,_0x57d250:0x23e,_0x6e18ec:0x48c,_0x443d28:0x4a5,_0x173d1b:0x2bf,_0x1d2de3:0x280,_0x6a7b22:0x510,_0x9c8576:0x4ec,_0x2838af:0x4e8,_0x8d8240:0x4b0,_0x178a1f:0x4a3,_0x5d1fa2:0x473,_0x5a8308:0x4aa,_0x2a6fb9:0x48a,_0x3868aa:0x479,_0x5a0b2f:0x4cb,_0x5dd9e0:0x490,_0x27b403:0x4a5,_0x4c294d:0x267,_0x19f1d9:0x4fc,_0x5826c6:0x4d5,_0x49690a:0x283,_0x275f63:0x275,_0x26db46:0x26a,_0x12c433:0x277,_0x27de4a:0x2b1,_0x343332:0x29a},_0x1f3fa3={_0x1c0bb5:0x465,_0x40a99e:0x88},_0x39279b={_0x47ebc4:0x1ca,_0x43b383:0x103},_0x310341={'ofjLO':_0x206a2c(_0x3dd145._0x5c63a1,_0x3dd145._0xc9740f,_0x3dd145._0x18fbe0,_0x3dd145._0x34f469),'ouNtE':function(_0x439ec2){return _0x439ec2();},'ScKnO':function(_0x26e133,_0x2d2aa0){return _0x26e133===_0x2d2aa0;},'WFdWm':function(_0x45e3d7,_0x13d678){return _0x45e3d7!==_0x13d678;},'gNraX':_0x206a2c(0x254,_0x3dd145._0x2c0392,0x26f,_0x3dd145._0xa75f32),'qtawp':function(_0x505a32,_0x3088c2){return _0x505a32!==_0x3088c2;},'YHrby':_0x3ed7f6(0x4c1,_0x3dd145._0x2b6ed0,_0x3dd145._0x59da2b,0x4a9)+_0x3ed7f6(_0x3dd145._0x4738fc,_0x3dd145._0x333a05,_0x3dd145._0x1ba8c3,0x49b)+'d','Quozg':_0x206a2c(_0x3dd145._0x5993fd,0x217,_0x3dd145._0x1bef77,_0x3dd145._0xc20c53),'SiWrw':function(_0xa49cd6,_0x94df48){return _0xa49cd6(_0x94df48);}},_0x3124df=await _0x310341[_0x206a2c(0x23c,_0x3dd145._0x1fd668,_0x3dd145._0x5c1dbd,_0x3dd145._0x4c3083)](getTeams),_0x44dbd1=_0x3124df[_0x3ed7f6(0x4ed,0x4b7,0x4d4,0x4cf)](_0x2b59ea=>_0x2b59ea['id']===_0x111ed4);if(_0x310341['ScKnO'](_0x44dbd1,-(0x188+-0x761*0x1+-0x6b*-0xe))){if(_0x310341[_0x3ed7f6(_0x3dd145._0x3c139e,_0x3dd145._0xcb4b1d,0x4da,_0x3dd145._0x1ccb4b)](_0x310341[_0x206a2c(0x232,0x223,0x242,_0x3dd145._0x3de05e)],_0x310341['gNraX'])){const _0x2eb45d=new _0x1ed3f8(_0x206a2c(0x281,0x2c2,_0x3dd145._0x507e70,0x262)+_0x13d27d+(_0x3ed7f6(0x49f,_0x3dd145._0x4255f7,0x4a6,_0x3dd145._0x4412a9)+'d'));_0x2eb45d[_0x3ed7f6(0x4fc,_0x3dd145._0x1a9c0b,_0x3dd145._0x49d616,0x4ec)]=_0x310341[_0x3ed7f6(0x4bb,_0x3dd145._0x372e36,_0x3dd145._0x3e15ef,0x4c7)];throw _0x2eb45d;}else{const _0x2d0245=new Error('Team\x20\x27'+_0x111ed4+(_0x206a2c(0x236,_0x3dd145._0xa75f32,0x255,_0x3dd145._0xeff530)+'d'));_0x2d0245[_0x206a2c(_0x3dd145._0x194a95,_0x3dd145._0x31998b,0x287,0x257)]=_0x310341[_0x206a2c(0x26a,_0x3dd145._0x3caabd,_0x3dd145._0x13a02b,0x288)];throw _0x2d0245;}}function _0x206a2c(_0x36c4ba,_0x39c7ba,_0x1309cd,_0x2bb605){return _0x4bf21e(_0x36c4ba-_0x39279b._0x47ebc4,_0x1309cd-0x45b,_0x1309cd-_0x39279b._0x43b383,_0x2bb605);}const _0x5254d6=_0x3124df[_0x44dbd1];function _0x3ed7f6(_0xcfb4ae,_0x18db6e,_0x355619,_0x5c2d29){return _0xcdcc0a(_0x5c2d29-_0x1f3fa3._0x1c0bb5,_0x18db6e-0x1ec,_0x355619-_0x1f3fa3._0x40a99e,_0xcfb4ae);}if(_0x310341['WFdWm'](_0x50cbb2[_0x206a2c(0x207,0x248,_0x3dd145._0x256987,_0x3dd145._0x3de05e)],undefined)&&_0x310341['qtawp'](_0x50cbb2[_0x3ed7f6(0x4bc,0x48f,0x4a6,_0x3dd145._0x2af7a7)],_0x5254d6[_0x206a2c(0x234,0x277,_0x3dd145._0x3af312,0x258)])){if(!_0x50cbb2['name'][_0x3ed7f6(0x4a1,0x4a2,_0x3dd145._0x4be602,0x4d2)]()){const _0x104948=new Error(_0x310341['YHrby']);_0x104948['code']=_0x310341['Quozg'];throw _0x104948;}if(_0x3124df[_0x206a2c(0x284,_0x3dd145._0x19c385,_0x3dd145._0x2433fc,_0x3dd145._0x57d250)](_0xc7d699=>_0xc7d699[_0x3ed7f6(0x46b,0x4c0,0x4a4,0x4a5)]===_0x50cbb2['name'])){const _0x2361e9=new Error('Team\x20name\x20'+'\x27'+_0x50cbb2[_0x3ed7f6(_0x3dd145._0x6e18ec,0x4b9,0x474,_0x3dd145._0x443d28)]+(_0x206a2c(_0x3dd145._0x173d1b,0x2aa,0x2a8,_0x3dd145._0x1d2de3)+_0x206a2c(0x2d2,0x276,0x2a5,0x2ba)));_0x2361e9[_0x3ed7f6(0x4b6,_0x3dd145._0x6a7b22,_0x3dd145._0x9c8576,0x4ec)]=_0x3ed7f6(_0x3dd145._0x2838af,0x493,_0x3dd145._0x8d8240,0x4d0);throw _0x2361e9;}}if(_0x310341['WFdWm'](_0x50cbb2[_0x3ed7f6(_0x3dd145._0x178a1f,_0x3dd145._0x5d1fa2,0x4d9,_0x3dd145._0x2af7a7)],undefined))_0x5254d6[_0x3ed7f6(0x4c3,_0x3dd145._0x5a8308,_0x3dd145._0x2a6fb9,_0x3dd145._0x2af7a7)]=_0x50cbb2[_0x3ed7f6(_0x3dd145._0x3868aa,_0x3dd145._0x5a0b2f,_0x3dd145._0x5dd9e0,_0x3dd145._0x27b403)];if(_0x50cbb2[_0x206a2c(_0x3dd145._0x4c294d,0x260,0x23b,0x253)+'n']!==undefined)_0x5254d6['descriptio'+'n']=_0x50cbb2['descriptio'+'n'];if(_0x310341['WFdWm'](_0x50cbb2['members'],undefined))_0x5254d6[_0x3ed7f6(_0x3dd145._0x19f1d9,_0x3dd145._0x5826c6,0x4bb,0x4e8)]=_0x50cbb2[_0x206a2c(0x289,0x284,_0x3dd145._0x49690a,_0x3dd145._0x275f63)];return _0x5254d6[_0x206a2c(0x2a2,_0x3dd145._0x26db46,_0x3dd145._0x12c433,0x27b)]=new Date()[_0x206a2c(0x27c,0x265,0x269,_0x3dd145._0x1d2de3)+'g'](),await _0x310341[_0x206a2c(0x2ba,_0x3dd145._0x27de4a,_0x3dd145._0x343332,0x2b9)](saveTeams,_0x3124df),_0x5254d6;}export async function deleteTeam(_0x8fa647,_0x440d8,_0x424f15){const _0x67ce2f={_0x2c5ee9:0xa3,_0x40c5aa:0xd6,_0x2b4cc9:0xbb,_0x44ce83:0xa5,_0x100392:0x92,_0x3529fa:0xcd,_0x522a21:0x5c1,_0x44272c:0x5dd,_0x3a54b5:0x5c5,_0x57b6ab:0x57f,_0x33b845:0x5b2,_0x3a88c8:0x5e4,_0x4c5e5e:0xee,_0x3b365b:0xb8,_0x5d625e:0x5d4,_0x2a5e15:0x59a,_0x6129cf:0xcc,_0x27b3f2:0xb6,_0x5b62f6:0xea,_0x1b4f05:0x554,_0x28bcda:0x79,_0x1785da:0x93,_0x5007cb:0x62,_0x1e04b4:0x38,_0xfc56f8:0x5c1,_0x25019c:0x5bb,_0x3df9b1:0x5d5,_0x3ac14e:0x5a6,_0x307eae:0x56d,_0x1903a6:0x77,_0x3f6d9e:0xa0,_0x1f42b6:0x575,_0x78328c:0x58d,_0x4ed504:0x546,_0x9bd2cb:0xb3,_0x547ae6:0xe7,_0x8feb09:0x58f,_0x1c7399:0x559},_0x2d6bd2={_0x4e90bf:0x8c,_0x5c1b10:0x779,_0x5ed7db:0x81},_0x51b634={_0x1dbccc:0x2e,_0x533519:0xda,_0x546440:0x57},_0x4a00f7={'kDuTD':function(_0xe874ba){return _0xe874ba();},'gtIrs':_0x2c703e(_0x67ce2f._0x2c5ee9,_0x67ce2f._0x40c5aa,0xd5,_0x67ce2f._0x2b4cc9),'LbCCR':function(_0x5e75ec,_0x346ece){return _0x5e75ec(_0x346ece);},'Kpdyk':function(_0x30ed53,_0x81e83c){return _0x30ed53!==_0x81e83c;},'wzrDi':_0x2c703e(_0x67ce2f._0x44ce83,0x78,_0x67ce2f._0x100392,_0x67ce2f._0x3529fa),'yXKTI':function(_0x507f6e,_0x307db5,_0x51e0e0){return _0x507f6e(_0x307db5,_0x51e0e0);},'HmTvR':'team','JjiPe':'Deleted\x20te'+'am'};function _0x2c703e(_0x23d966,_0x9b5f78,_0x336411,_0x66df7c){return _0xcdcc0a(_0x336411-_0x51b634._0x1dbccc,_0x9b5f78-_0x51b634._0x533519,_0x336411-_0x51b634._0x546440,_0x23d966);}const _0x40342e=await _0x4a00f7[_0x2d52cc(_0x67ce2f._0x522a21,0x5ab,_0x67ce2f._0x44272c,_0x67ce2f._0x3a54b5)](getTeams),_0x328e34=_0x40342e[_0x2c703e(0x90,0x74,0x98,0xd4)](_0x2061e1=>_0x2061e1['id']===_0x8fa647);if(_0x328e34===-(0x13bc+-0x12cb*-0x2+-0x3951)){const _0x3fd8b0=new Error(_0x2d52cc(_0x67ce2f._0x57b6ab,_0x67ce2f._0x33b845,0x5ab,_0x67ce2f._0x3a88c8)+_0x8fa647+('\x27\x20not\x20foun'+'d'));_0x3fd8b0['code']=_0x4a00f7[_0x2c703e(_0x67ce2f._0x4c5e5e,0xa1,_0x67ce2f._0x3b365b,0xa8)];throw _0x3fd8b0;}const _0x59e592=_0x40342e[_0x328e34];_0x40342e[_0x2d52cc(_0x67ce2f._0x5d625e,_0x67ce2f._0x2a5e15,0x5c8,0x5a7)](_0x328e34,0xd0+0x185+0x254*-0x1),await _0x4a00f7[_0x2c703e(_0x67ce2f._0x6129cf,0x87,_0x67ce2f._0x27b3f2,_0x67ce2f._0x5b62f6)](saveTeams,_0x40342e);let _0x480a75=-0x22a8+-0x4be*0x4+0x35a0;_0x440d8&&(_0x480a75+=await _0x440d8(_0x2d52cc(0x57c,0x565,0x544,_0x67ce2f._0x1b4f05),_0x8fa647));_0x424f15&&(_0x4a00f7['Kpdyk'](_0x4a00f7[_0x2d52cc(0x587,0x584,0x587,0x550)],_0x4a00f7['wzrDi'])?_0xa9fe77=null:_0x480a75+=await _0x4a00f7[_0x2c703e(_0x67ce2f._0x28bcda,_0x67ce2f._0x1785da,_0x67ce2f._0x5007cb,_0x67ce2f._0x1e04b4)](_0x424f15,_0x4a00f7['HmTvR'],_0x8fa647));const _0x19d799={};_0x19d799['teamId']=_0x8fa647,_0x19d799[_0x2d52cc(_0x67ce2f._0xfc56f8,_0x67ce2f._0x25019c,0x592,0x5ca)]=_0x59e592['name'],_0x19d799[_0x2d52cc(0x588,0x5a3,_0x67ce2f._0x3df9b1,0x5cf)+_0x2d52cc(0x5b8,0x58e,0x59e,_0x67ce2f._0x3ac14e)]=_0x480a75;function _0x2d52cc(_0x3b7a6b,_0x263dd7,_0x4e7add,_0x5f5400){return _0x4bf21e(_0x3b7a6b-_0x2d6bd2._0x4e90bf,_0x263dd7-_0x2d6bd2._0x5c1b10,_0x4e7add-_0x2d6bd2._0x5ed7db,_0x4e7add);}logger[_0x2d52cc(0x563,_0x67ce2f._0x307eae,0x565,0x580)](_0x4a00f7[_0x2c703e(0xb2,_0x67ce2f._0x1903a6,0xb4,_0x67ce2f._0x3f6d9e)],_0x19d799);const _0x3ba5b9={};return _0x3ba5b9[_0x2d52cc(_0x67ce2f._0x1f42b6,0x565,_0x67ce2f._0x78328c,_0x67ce2f._0x4ed504)]=_0x59e592,_0x3ba5b9[_0x2c703e(0xc9,0xc2,_0x67ce2f._0x9bd2cb,_0x67ce2f._0x547ae6)+_0x2d52cc(_0x67ce2f._0x8feb09,0x58e,_0x67ce2f._0x1c7399,0x56a)]=_0x480a75,_0x3ba5b9;}export async function addMember(_0x80e381,_0x3f38a7){const _0x5052c0={_0x29ccba:0x2ca,_0x55f470:0x32d,_0x3cae23:0x31d,_0x5e2d6a:0x380,_0x5ca71c:0x33d,_0x2869c9:0x2fd,_0xf853eb:0x2c3,_0x5c2eb6:0x301,_0x2a2612:0x305,_0x29365:0x2e9,_0x354788:0x9b,_0x494fd0:0x2ff,_0x5f568e:0x32e,_0x12d641:0x314,_0x502128:0x35d,_0x181b5f:0x306,_0x1cac49:0x364,_0x5e3486:0x10d,_0x527fb1:0x353,_0x58ac0b:0x2e3,_0x82c1c7:0x2d0,_0x4de89d:0x102,_0x895b8d:0xd9,_0x4409c4:0x138,_0x4d2515:0x100,_0x236a12:0x119,_0x380668:0x8d,_0x20f0b7:0xb5,_0x2d034d:0xd6,_0x499f26:0xe0,_0x45fd33:0xda,_0x3f0336:0xb9,_0x1e5300:0xd2,_0x14e774:0xba,_0xb925b3:0xf6,_0x95aef9:0xdc,_0x2d9513:0xf3,_0x55bccf:0x115,_0x117079:0x124,_0x30f16c:0x2f1,_0x5998e3:0x2e6,_0x5284a7:0x2e4,_0x497ea0:0x30f,_0x2b2b6c:0x300,_0x232471:0x32d,_0x871b56:0x318,_0x4724b1:0x325,_0x3b2045:0x313,_0x1dce01:0x346,_0x55c76e:0x330,_0x315578:0x2ea,_0x2e6be7:0x317,_0x1cf2a1:0x33b},_0x3db170={_0x6278bf:0x2aa,_0x27c1bc:0x1f1},_0x554e89={_0x21650f:0x100},_0x5d4cd1={'LbWJv':'Team\x20name\x20'+_0x343095(0x2e0,_0x5052c0._0x29ccba,0x2fc,0x2c4)+'d','juEVl':_0x343095(0x315,_0x5052c0._0x55f470,0x30e,_0x5052c0._0x3cae23),'vjrkY':function(_0x14c17e){return _0x14c17e();},'dRScN':function(_0x37b112,_0x514d10){return _0x37b112===_0x514d10;},'GBepz':_0x1e948d(-0xda,-0x111,-0x106,-0x118),'wtdVS':_0x343095(0x351,_0x5052c0._0x5e2d6a,_0x5052c0._0x5ca71c,0x377),'ZsjHZ':function(_0x4ed53c,_0x38df1a){return _0x4ed53c(_0x38df1a);}},_0x5602e4=await _0x5d4cd1['vjrkY'](getTeams);function _0x1e948d(_0x47ffee,_0x44d344,_0x46e665,_0x534c14){return _0xcdcc0a(_0x46e665- -0x15d,_0x44d344-_0x554e89._0x21650f,_0x46e665-0xb8,_0x44d344);}const _0x190cab=_0x5602e4['find'](_0x301d0a=>_0x301d0a['id']===_0x80e381);if(!_0x190cab){if(_0x5d4cd1[_0x343095(0x2eb,_0x5052c0._0x2869c9,0x2fa,_0x5052c0._0xf853eb)](_0x343095(_0x5052c0._0x5c2eb6,_0x5052c0._0x2a2612,0x2ed,_0x5052c0._0x29365),_0x5d4cd1['GBepz'])){const _0x8b2cdf=new Error(_0x1e948d(-_0x5052c0._0x354788,-0xa0,-0xc9,-0x9a)+_0x80e381+(_0x343095(_0x5052c0._0x494fd0,_0x5052c0._0x5f568e,0x2c6,_0x5052c0._0x12d641)+'d'));_0x8b2cdf[_0x343095(0x331,_0x5052c0._0x502128,_0x5052c0._0x181b5f,_0x5052c0._0x1cac49)]=_0x5d4cd1[_0x1e948d(-0xdb,-0xdd,-0xdc,-_0x5052c0._0x5e3486)];throw _0x8b2cdf;}else{if(!_0x4fdf4d['name']['trim']()){const _0x2ca106=new _0x3d2d81(_0x5d4cd1['LbWJv']);_0x2ca106[_0x343095(0x331,0x35e,0x325,_0x5052c0._0x527fb1)]=_0x343095(_0x5052c0._0x58ac0b,_0x5052c0._0x82c1c7,0x2bc,0x2aa);throw _0x2ca106;}if(_0x4eb5bc[_0x1e948d(-0xf6,-0x13f,-_0x5052c0._0x4de89d,-_0x5052c0._0x895b8d)](_0x1f436c=>_0x1f436c[_0x343095(0x2ea,0x325,0x30e,0x2d5)]===_0x1bfce8[_0x1e948d(-0x136,-0x134,-0x11d,-0x140)])){const _0xdcd900=new _0x5f5517(_0x1e948d(-_0x5052c0._0x4409c4,-_0x5052c0._0x4d2515,-_0x5052c0._0x236a12,-0xe0)+'\x27'+_0x1f19c8['name']+(_0x1e948d(-_0x5052c0._0x380668,-0x8c,-_0x5052c0._0x20f0b7,-0xea)+'exists'));_0xdcd900[_0x1e948d(-0xc8,-0xa4,-_0x5052c0._0x2d034d,-_0x5052c0._0x499f26)]=_0x5d4cd1['juEVl'];throw _0xdcd900;}}}if(_0x190cab[_0x1e948d(-0x10c,-0xde,-_0x5052c0._0x45fd33,-0x10b)]['includes'](_0x3f38a7)){const _0x2b346a=new Error('User\x20\x27'+_0x3f38a7+(_0x1e948d(-0xae,-_0x5052c0._0x3f0336,-_0x5052c0._0x1e5300,-0xc5)+_0x1e948d(-_0x5052c0._0x14e774,-0x10d,-_0x5052c0._0xb925b3,-_0x5052c0._0x95aef9)+_0x1e948d(-_0x5052c0._0x4409c4,-_0x5052c0._0x2d9513,-_0x5052c0._0x55bccf,-_0x5052c0._0x117079)+_0x343095(_0x5052c0._0x30f16c,_0x5052c0._0x5998e3,0x2ed,_0x5052c0._0x5284a7)));_0x2b346a['code']=_0x5d4cd1[_0x343095(_0x5052c0._0x497ea0,_0x5052c0._0x2b2b6c,0x2da,0x2f6)];throw _0x2b346a;}_0x190cab[_0x343095(_0x5052c0._0x232471,0x33b,0x32c,_0x5052c0._0x871b56)]['push'](_0x3f38a7),_0x190cab[_0x343095(0x321,_0x5052c0._0x2869c9,_0x5052c0._0x4724b1,0x319)]=new Date()[_0x343095(_0x5052c0._0x3b2045,_0x5052c0._0x1dce01,_0x5052c0._0x55c76e,_0x5052c0._0x315578)+'g'](),await _0x5d4cd1[_0x343095(0x33f,_0x5052c0._0x2e6be7,_0x5052c0._0x1cf2a1,0x338)](saveTeams,_0x5602e4);function _0x343095(_0x233bd2,_0x2350e1,_0x2f1fc0,_0x48bfea){return _0xcdcc0a(_0x233bd2-_0x3db170._0x6278bf,_0x2350e1-_0x3db170._0x27c1bc,_0x2f1fc0-0x52,_0x2f1fc0);}return _0x190cab;}export async function removeMember(_0x5f1dcd,_0x79bf6f){const _0x3715e3={_0x1d0015:0x38d,_0x58ccf5:0x39e,_0x2dc144:0x3a5,_0x4f50e2:0x36b,_0x1cde3b:0x396,_0x286b38:0x398,_0x435f07:0x338,_0xbcad54:0x3d5,_0x39f985:0x3e7,_0x336a15:0x3a8,_0x349a68:0x40c,_0x42577e:0x3c5,_0xcd21d4:0x3da,_0x522a71:0x387,_0x34a776:0x331,_0xdb37ea:0x39d,_0x42d201:0x404,_0xa7eda:0x400,_0x6be8b7:0x3d6,_0xa6744e:0x367,_0x57d803:0x353,_0x51dce5:0x3dc,_0x544d46:0x3fa,_0x59937b:0x3d3,_0x13d6cb:0x341,_0x2fecd6:0x379,_0x48f2bb:0x3d6,_0x492950:0x3d7,_0x48a7ae:0x3eb,_0x3ed764:0x3a9,_0x47d3a1:0x3e5,_0x20ff69:0x3ce,_0x33ec75:0x3de,_0x48bf59:0x343,_0x361179:0x2fd,_0x2fcfdd:0x3c1,_0x34398a:0x3b6,_0xf8abb5:0x3c1,_0x8ff4bb:0x389,_0x4faaf2:0x3c3,_0x1d9824:0x355,_0xf3ffcb:0x38c,_0x59ee43:0x347,_0x5b762f:0x34a,_0x25b3d8:0x3d8,_0x3c10db:0x3d7,_0x2cf64c:0x3e3,_0x171eab:0x337,_0x111d32:0x34c,_0x1b0679:0x32e},_0x153d85={_0x4ce605:0x2c4,_0x2a4832:0x165},_0x2d8f0c={_0x39ac34:0x5ae,_0x24fdcd:0x12c};function _0x3c4780(_0x28d431,_0x3f2232,_0x24158f,_0x43513e){return _0x4bf21e(_0x28d431-0x12b,_0x43513e-_0x2d8f0c._0x39ac34,_0x24158f-_0x2d8f0c._0x24fdcd,_0x3f2232);}const _0x4360ab={'LIAfK':function(_0x5ba2ff){return _0x5ba2ff();},'jbIwI':function(_0x356aac,_0x208873){return _0x356aac===_0x208873;},'FGEFs':function(_0x846b79,_0x5f0d61){return _0x846b79!==_0x5f0d61;},'EGpRv':_0x3c4780(0x395,_0x3715e3._0x1d0015,_0x3715e3._0x58ccf5,_0x3715e3._0x2dc144),'efDcI':'PWInY','bHEgV':_0x22c0ec(_0x3715e3._0x4f50e2,0x38c,0x375,0x354),'tzoLX':function(_0x2b856d,_0x2a8f0f){return _0x2b856d(_0x2a8f0f);}},_0xf39a79=await _0x4360ab[_0x3c4780(0x419,0x3e0,0x407,0x3dc)](getTeams),_0x5067fd=_0xf39a79[_0x22c0ec(0x367,_0x3715e3._0x1cde3b,_0x3715e3._0x286b38,_0x3715e3._0x435f07)](_0x557455=>_0x557455['id']===_0x5f1dcd);if(!_0x5067fd){const _0x36c0f7=new Error(_0x3c4780(0x3c9,_0x3715e3._0xbcad54,0x3b2,_0x3715e3._0x39f985)+_0x5f1dcd+(_0x3c4780(0x3bf,0x37f,0x3ca,_0x3715e3._0x336a15)+'d'));_0x36c0f7[_0x3c4780(_0x3715e3._0x349a68,0x3d6,_0x3715e3._0x42577e,_0x3715e3._0xcd21d4)]=_0x22c0ec(0x36b,_0x3715e3._0x522a71,_0x3715e3._0x34a776,_0x3715e3._0xdb37ea);throw _0x36c0f7;}const _0x26b36b=_0x5067fd[_0x3c4780(_0x3715e3._0x42d201,_0x3715e3._0xa7eda,0x3e7,_0x3715e3._0x6be8b7)]['indexOf'](_0x79bf6f);function _0x22c0ec(_0x5df672,_0x3f1b50,_0x2e9ad1,_0x5e67ad){return _0xcdcc0a(_0x5df672-_0x153d85._0x4ce605,_0x3f1b50-0x61,_0x2e9ad1-_0x153d85._0x2a4832,_0x5e67ad);}if(_0x4360ab[_0x3c4780(_0x3715e3._0xa6744e,_0x3715e3._0x57d803,0x386,0x390)](_0x26b36b,-(0x1*-0x17f8+-0x4*0x9c0+-0x157*-0x2f))){if(_0x4360ab[_0x3c4780(_0x3715e3._0xcd21d4,_0x3715e3._0x51dce5,_0x3715e3._0x544d46,_0x3715e3._0x59937b)](_0x4360ab[_0x3c4780(0x414,_0x3715e3._0x39f985,0x3e3,0x3fc)],_0x4360ab[_0x22c0ec(_0x3715e3._0x13d6cb,_0x3715e3._0x2fecd6,0x369,0x342)])){const _0x746854=new Error(_0x3c4780(0x39b,0x412,_0x3715e3._0x48f2bb,_0x3715e3._0x492950)+_0x79bf6f+(_0x3c4780(_0x3715e3._0x48a7ae,0x3fc,_0x3715e3._0x3ed764,_0x3715e3._0x47d3a1)+_0x3c4780(_0x3715e3._0x20ff69,0x40d,_0x3715e3._0x33ec75,0x3fe)+'\x20this\x20team'));_0x746854[_0x3c4780(0x3a2,0x3c5,0x3e6,_0x3715e3._0xcd21d4)]=_0x4360ab[_0x22c0ec(_0x3715e3._0x48bf59,0x366,0x31e,0x372)];throw _0x746854;}else{const _0x1fa5c2=new _0x137d28(_0x22c0ec(0x308,0x331,_0x3715e3._0x361179,0x2f0)+_0x3c4780(_0x3715e3._0x2fcfdd,_0x3715e3._0x34398a,_0x3715e3._0xf8abb5,_0x3715e3._0x8ff4bb)+'d');_0x1fa5c2[_0x3c4780(_0x3715e3._0x4faaf2,0x3ea,0x40e,_0x3715e3._0xcd21d4)]=_0x3c4780(0x357,_0x3715e3._0x1d9824,0x384,_0x3715e3._0xf3ffcb);throw _0x1fa5c2;}}return _0x5067fd[_0x22c0ec(_0x3715e3._0x59ee43,_0x3715e3._0x13d6cb,_0x3715e3._0x5b762f,0x30b)][_0x22c0ec(0x340,0x34b,0x334,0x371)](_0x26b36b,0x2*0xeaa+-0x9fd*-0x2+0x70b*-0x7),_0x5067fd[_0x3c4780(_0x3715e3._0x47d3a1,_0x3715e3._0x25b3d8,0x3b8,0x3ca)]=new Date()[_0x3c4780(_0x3715e3._0x3c10db,_0x3715e3._0x2cf64c,0x3d5,0x3bc)+'g'](),await _0x4360ab[_0x22c0ec(0x310,_0x3715e3._0x171eab,_0x3715e3._0x111d32,_0x3715e3._0x1b0679)](saveTeams,_0xf39a79),_0x5067fd;}export function _resetCache(){teamsCache=null;}
1
+ (function(_0x1ef44d,_0xd06443){const _0x1ebef6={_0x488b35:0x5a1,_0x2bc05e:0x53b,_0x4fcfbf:0x4d8,_0x279dc8:0x589,_0xed0eaa:0x5be,_0x2d1668:0x638,_0x966f13:0x524,_0x589efe:0x513,_0x34ebc7:0x4ff,_0x3e9581:0x4f9,_0x66083f:0x52d,_0x42be37:0x53a,_0x575c6a:0x4d0,_0x543fdb:0x4d1,_0x595a5a:0x5f6,_0x229d8e:0x5d3,_0x3d0029:0x610,_0x595467:0x4e2,_0xeea74:0x52a,_0x5c36ca:0x507};function _0x325f70(_0xbc7304,_0x589baa,_0x542be3,_0x53c555){return _0x2900(_0x53c555-0x2ef,_0x589baa);}function _0x9c9ada(_0xb33e7a,_0x530f25,_0x11cf52,_0x34d40c){return _0x2900(_0x11cf52-0x3c0,_0x34d40c);}const _0x3a9928=_0x1ef44d();while(!![]){try{const _0x32e5ed=parseInt(_0x9c9ada(0x596,0x5d1,0x5b0,_0x1ebef6._0x488b35))/(-0x1b5f+0x27a*0xd+-0x4d2*0x1)+parseInt(_0x325f70(0x53c,0x510,0x513,0x51f))/(-0xb3f+0x2*-0xd15+-0xc79*-0x3)+parseInt(_0x325f70(_0x1ebef6._0x2bc05e,0x534,_0x1ebef6._0x4fcfbf,0x515))/(-0x223*-0x1+0x2206+-0x2426)*(-parseInt(_0x9c9ada(0x5dd,_0x1ebef6._0x279dc8,_0x1ebef6._0xed0eaa,0x59c))/(-0xc07*0x3+0x1d*0x1d+0x20d0))+-parseInt(_0x9c9ada(_0x1ebef6._0x2d1668,0x635,0x621,0x649))/(-0x3e*-0x8e+0x1a35*-0x1+-0x82a)*(-parseInt(_0x325f70(0x517,_0x1ebef6._0x966f13,0x4fe,0x524))/(0x1597+-0x612+-0xf7f))+-parseInt(_0x325f70(_0x1ebef6._0x589efe,_0x1ebef6._0x34ebc7,_0x1ebef6._0x3e9581,_0x1ebef6._0x66083f))/(-0x13dc+-0x840+0x1c23)*(-parseInt(_0x325f70(0x532,_0x1ebef6._0x42be37,0x517,0x522))/(-0xd*-0xc9+-0x1*0x1447+0xa1a))+-parseInt(_0x325f70(_0x1ebef6._0x575c6a,0x504,_0x1ebef6._0x543fdb,0x4e3))/(0x16fc*0x1+-0xacb+-0x1*0xc28)+-parseInt(_0x9c9ada(0x59c,_0x1ebef6._0x595a5a,_0x1ebef6._0x229d8e,_0x1ebef6._0x3d0029))/(-0x14d3+-0x91+-0x1*-0x156e)*(parseInt(_0x325f70(_0x1ebef6._0x595467,_0x1ebef6._0xeea74,0x52a,_0x1ebef6._0x5c36ca))/(0x19dd+-0x1b5f+-0x18d*-0x1));if(_0x32e5ed===_0xd06443)break;else _0x3a9928['push'](_0x3a9928['shift']());}catch(_0xe3d735){_0x3a9928['push'](_0x3a9928['shift']());}}}(_0x445d,-0x19*0x2519+-0x3f3*-0x4+0x2d*0x4e91));import{promises as _0x4c7d0b}from'fs';function _0x445d(){const _0x12d1dd=['vgvHBsbUyw1Lia','q1Hnq2K','DxbKyxrLzf9HDa','Afn0wwC','CMfUzg9T','zu1uv24','tg9HzgvKihrLyq','lcbPBML0AwfSAq','t1zYwum','mZiYmda3nvHTC1LzEG','q2H0zvi','rfvqteLdqvrf','DhjPBq','C3rHDa','DgvHBq','Bu5AtMy','q01KCLG','wNn6Ceu','rerZz2y','zgLUz3m','jYbHBhjLywr5ia','wKPlBwW','s1LJrfa','tfLrCg8','u2z3zeu','zgvZy3jPChrPBW','rhbZDeK','DgvHBxm','ota2nJqXufHrruLY','BND0B2G','tfnJugK','AM9PBG','ndu3odi4mNzLy0frsq','qM1qsvq','BwvTyMvYCW','AKzTBwm','tK9ux0zpvu5e','Eg5UveS','BKTnteG','C29Tzq','ChvZAa','rvHjELm','mtuZmdrPBhzjvg0','zxHPC3rZ','ufDMEhm','ru5pru5u','u2f2zwqGDgvHBq','B2HfwMK','s2DOAey','uxHJtMy','AxmGCMvXDwLYzq','DgvHBsbSAxn0','CMvJDxjZAxzL','DujvzuO','y291BNq','vgvHBxmGzMLSzq','y3jLyxrLzf9IEq','tKLjtKW','C2f2zsb0zwfTCW','rMfPBgvKihrVia','BeXMBM8','txLWqNG','Aw5MBW','mJKWsNHuu2jP','Bg9Hzcb0zwfTCW','ig5VDcbMB3vUza','D3jPDgvgAwXL','zgvIDwC','mZuXntCXr0vUsg1g','C3rYAw5NAwz5','CIbVzIb0AgLZia','Aw5JBhvKzxm','rwzKyK0','zMLUzeLUzgv4','vKfmsurbveLptG','Dg9ju09tDhjPBG','z0zxDhG','C3bSAwnL','y09Ot28','EuD1wNq','zhKGysbTzw1Izq','BxrPBwvnCW','odC5ALbwD2n5','BMfTzq','ig1LBwjLCIbVzG','Axfqq0i','BMfHwhG','Aw5KzxHpzG','AMnXBw0','tLnYsNC','qKTXtvm','C3bSAxq','ntu0ndqWvhnsrg9U','se5Wt1K','t29jt0O','mZaYntu5mML1s09gtq','vLbWv2m','mtjyqM5frMW','s2XryxC','vxnLCIaN','jYbPCYbUB3qGyq','EMXbyxC','BwTKAxi','tKvsD1a','vgvHBsaN','jYbPCYbHBhjLyq','mtrRAw9TtKS','rxvdDwe','zgLYBMfTzq','rgvSzxrLzcb0zq','C3vIC3rY','DxrMltG','s1bhBMK','yvnSwMi','ihrOAxmGDgvHBq','DgvHBuLK','zw1SuMq','Dg9tDhjPBMC','t2DoA2O','jYbUB3qGzM91BG','BgvUz3rO','A0jXueG','zMLSDgvY','EMvKigvTChr5ia','C2fprhG','C0PQtxu','zxjYB3i','y29Kzq','sLflqwm','zLbuBMi','y2PbENa','zMLUza'];_0x445d=function(){return _0x12d1dd;};return _0x445d();}import _0x32f256 from'path';function _0x480c94(_0x9f418c,_0x220bfa,_0x1d1f1c,_0x57788e){const _0x3ba837={_0x37b010:0x17};return _0x2900(_0x1d1f1c-_0x3ba837._0x37b010,_0x220bfa);}import{logger}from'./logger.js';import{DATA_DIR}from'./data-dir.js';const TEAMS_FILE=_0x32f256[_0x480c94(0x202,0x21a,0x20a,0x1e4)](DATA_DIR,'teams.json');let teamsCache=null,teamsCacheMtime=null;export async function loadTeams(){const _0x37f9e5={_0xf1085:0x5eb,_0x5fa73a:0x5c5,_0x2ecd69:0x5a9,_0x33e8d9:0x5ae,_0x2d09ad:0x11,_0x1d267b:0x1d,_0x438d5f:0x5b3,_0x393322:0x5c3,_0x2ca1ec:0x607,_0xfcb8b1:0x604,_0x2d1e3b:0x5e1,_0x25e28a:0x609,_0x3cd477:0x22,_0x219f23:0x21,_0x4e6a20:0x13,_0x3509a3:0x5d0,_0x17ab2a:0x59e,_0x47043f:0x39,_0x16fed4:0x9,_0x468bbb:0x4c,_0x33098c:0x3e,_0x325e8c:0x20,_0x3a1f37:0x24,_0xd59318:0x1,_0x58606c:0x4e,_0x4d4d67:0x38,_0x262a16:0x5,_0x559019:0x5f2,_0x5011dc:0x59d,_0x343c56:0x3b,_0x43ad39:0x13,_0x63d5e3:0x20,_0x3d4f31:0x45,_0xf91b8a:0x8,_0x2c076a:0x53,_0xaf24a7:0x2d,_0x257364:0x43,_0x540ed8:0x56,_0x56ac5d:0x28,_0x499de3:0x50,_0x36465f:0x1d,_0x3aed95:0x5fc,_0x242a32:0x6b,_0x3a1cc7:0x26,_0x37f5eb:0x5e4,_0x53c1be:0x41,_0xdeb3fb:0x0,_0x50fb21:0x5fb,_0x2b6c14:0x635,_0x535409:0x613,_0x887515:0x5ed,_0x33dda2:0x631,_0x4bb105:0x608,_0x2d214f:0x73,_0x3f78f7:0x19,_0x59bad7:0x48},_0x38504e={_0x7abc5b:0x1a8,_0x5ca367:0x391},_0x3baebb={_0x4b387c:0x15a};function _0x15b127(_0x54a112,_0x7d26a8,_0x4ab020,_0x50d6e1){return _0x480c94(_0x54a112-0xe3,_0x4ab020,_0x50d6e1- -0x262,_0x50d6e1-_0x3baebb._0x4b387c);}function _0x3ef625(_0x537c84,_0x1ab557,_0x4332b8,_0x4da45e){return _0x480c94(_0x537c84-_0x38504e._0x7abc5b,_0x4332b8,_0x537c84-_0x38504e._0x5ca367,_0x4da45e-0x14b);}const _0x4fe248={'SAydd':'Team\x20name\x20'+_0x3ef625(0x5ae,0x5f0,0x5d3,0x59c)+'d','ZawXy':'NOT_FOUND','DDsgf':function(_0x3eb791,_0x445094){return _0x3eb791===_0x445094;},'ChteR':'rfpIP','OgNkj':_0x3ef625(_0x37f9e5._0xf1085,_0x37f9e5._0x5fa73a,0x5ea,0x5ef),'NRQnX':_0x3ef625(_0x37f9e5._0x2ecd69,0x587,_0x37f9e5._0x33e8d9,0x57e),'yGuZt':_0x15b127(-0x6,_0x37f9e5._0x2d09ad,-0x22,-_0x37f9e5._0x1d267b),'UZuWI':'3|2|4|1|0','JQKAc':function(_0x29bcb9,_0x2dbd33){return _0x29bcb9(_0x2dbd33);},'kBqPH':_0x3ef625(_0x37f9e5._0x438d5f,0x5e9,0x574,0x5d0)+_0x3ef625(0x5bd,_0x37f9e5._0x393322,0x592,0x5b1)+_0x3ef625(_0x37f9e5._0x2ca1ec,0x5e8,_0x37f9e5._0xfcb8b1,0x636)+_0x3ef625(0x5f7,0x618,_0x37f9e5._0x2d1e3b,_0x37f9e5._0x25e28a)+_0x15b127(-_0x37f9e5._0x3cd477,-0x34,-_0x37f9e5._0x219f23,-0x44),'ohEZi':_0x15b127(-_0x37f9e5._0x4e6a20,-0xe,-0x28,-0x3c)+_0x3ef625(0x5bc,_0x37f9e5._0x3509a3,0x59b,_0x37f9e5._0x17ab2a)};try{if(_0x4fe248[_0x15b127(_0x37f9e5._0x47043f,0x52,_0x37f9e5._0x16fed4,0x1f)](_0x4fe248[_0x15b127(_0x37f9e5._0x468bbb,0x14,0x30,0x17)],_0x4fe248[_0x15b127(0x24,_0x37f9e5._0x33098c,0x51,0x17)])){const _0x5acff1=await _0x4c7d0b[_0x15b127(_0x37f9e5._0x325e8c,0x2c,0x2e,0x1a)](TEAMS_FILE),_0x2e057f=await _0x4c7d0b['readFile'](TEAMS_FILE,_0x4fe248[_0x15b127(0xf,-_0x37f9e5._0x3a1f37,0x2d,-_0x37f9e5._0xd59318)]),_0x5749b0=JSON['parse'](_0x2e057f);teamsCache=_0x5749b0[_0x15b127(-0x50,-0x73,-0x45,-0x5c)]||[],teamsCacheMtime=_0x5acff1[_0x15b127(-0x40,-0x6,0x12,-0x26)];const _0x27a422={};return _0x27a422[_0x15b127(-0x5e,-0x5,-_0x37f9e5._0x58606c,-0x41)]=teamsCache[_0x15b127(_0x37f9e5._0x4d4d67,-_0x37f9e5._0x262a16,0x8,0x1)],logger[_0x3ef625(0x5bf,0x5a8,_0x37f9e5._0x559019,_0x37f9e5._0x5011dc)](_0x15b127(0x54,_0x37f9e5._0x343c56,0x27,_0x37f9e5._0x43ad39)+'ms\x20from\x20fi'+'le',_0x27a422),teamsCache;}else{const _0x180ac8=new _0x3a5bda(_0x4fe248['SAydd']);_0x180ac8[_0x15b127(_0x37f9e5._0x63d5e3,_0x37f9e5._0x2d09ad,_0x37f9e5._0x3d4f31,_0x37f9e5._0xf91b8a)]=_0x15b127(-0x1d,-_0x37f9e5._0x2c076a,-0x27,-_0x37f9e5._0xaf24a7);throw _0x180ac8;}}catch(_0x2bc9dc){if(_0x2bc9dc[_0x3ef625(0x5fb,0x5c5,0x5c7,0x5cf)]===_0x4fe248['NRQnX']){if(_0x4fe248[_0x15b127(_0x37f9e5._0x47043f,-0xa,0x58,0x1f)](_0x4fe248[_0x15b127(-0x2f,-_0x37f9e5._0x257364,0x17,-0x28)],_0x4fe248[_0x15b127(-_0x37f9e5._0x540ed8,-0x19,-0x5e,-_0x37f9e5._0x56ac5d)])){const _0xbeae39=_0x4fe248['UZuWI'][_0x15b127(-_0x37f9e5._0x499de3,-0x1d,_0x37f9e5._0x36465f,-0x1c)]('|');let _0x29fb84=-0x6cd+0x1*0xf0c+-0x83f;while(!![]){switch(_0xbeae39[_0x29fb84++]){case'0':return teamsCache;case'1':await _0x4fe248[_0x3ef625(_0x37f9e5._0x3aed95,0x635,0x625,0x617)](saveTeams,teamsCache);continue;case'2':teamsCacheMtime=null;continue;case'3':teamsCache=[];continue;case'4':logger[_0x15b127(0x6,-0x57,-_0x37f9e5._0x242a32,-_0x37f9e5._0x47043f)](_0x4fe248[_0x15b127(-0x28,-_0x37f9e5._0x3a1cc7,-0x26,0x2)]);continue;}break;}}else{const _0x32e370=new _0x4e5be7(_0x3ef625(_0x37f9e5._0x37f5eb,0x5d2,_0x37f9e5._0xf1085,_0x37f9e5._0x33e8d9)+_0x4714ac+(_0x15b127(0x1f,0x2b,-_0x37f9e5._0x53c1be,_0x37f9e5._0xdeb3fb)+'d'));_0x32e370[_0x3ef625(_0x37f9e5._0x50fb21,_0x37f9e5._0x2b6c14,_0x37f9e5._0x535409,_0x37f9e5._0x887515)]=_0x4fe248['ZawXy'];throw _0x32e370;}}logger[_0x3ef625(0x5fa,_0x37f9e5._0x33dda2,_0x37f9e5._0x4bb105,0x5e3)](_0x4fe248[_0x15b127(-_0x37f9e5._0x2d214f,-0x7,-_0x37f9e5._0x3f78f7,-_0x37f9e5._0x59bad7)],_0x2bc9dc);throw _0x2bc9dc;}}export async function saveTeams(_0x263e5e){const _0xd24735={_0x2a898f:0x1b4,_0x113ab1:0x1a1,_0x4b2577:0x1b1,_0x2a8916:0x1a8,_0x4c9334:0x19a,_0x1403ac:0x1d0,_0x212bf1:0x18b,_0x49794f:0x197,_0x3f3c64:0x190,_0x4d841f:0x188,_0x3213c2:0x176,_0x4ef9bc:0x16e,_0x15fa13:0x157,_0x2db117:0x156,_0x5ea6c1:0x1a7,_0x580265:0x16e,_0x167dfc:0x13f,_0x22c9a0:0x165,_0x4752b5:0x1a0,_0x506655:0x198,_0x496ac0:0x182,_0x22f1b0:0x18a,_0x29c673:0x151,_0x4bc616:0x141,_0x53e109:0x191,_0x2176fe:0x1b1,_0x396998:0x1bf,_0x5a84ab:0x138,_0x570dee:0x159,_0x22b9ea:0x16d,_0x4ee1bd:0x162,_0xcaddb3:0x18d,_0x3aa2d7:0x133,_0x31e6d1:0x1b1,_0x59c201:0x19a,_0x58005b:0x176,_0x106cb8:0x16b,_0x5af504:0x143,_0xb51964:0x153,_0x3105e4:0x16c,_0x33f64c:0x195,_0x3a95d0:0x169,_0x2bca84:0x19e,_0x21e4c3:0x137,_0x71005a:0x1ad,_0x56021a:0x162,_0x33defc:0x19c,_0x670d76:0x1a9,_0xf0df1e:0x11e,_0x1e473c:0x184,_0x521f2b:0x180,_0x594e26:0x1b3,_0x5dafff:0x189,_0x3ed172:0x154,_0x5c6048:0x167},_0x22621e={_0x9afec:0xc0},_0x3f9ca5={_0x3b0435:0xb6},_0x3179e3={};_0x3179e3['BghQx']=_0x3acc57(_0xd24735._0x2a898f,_0xd24735._0x113ab1,0x1a0,0x1d9)+'is\x20require'+'d',_0x3179e3[_0x3acc57(0x174,_0xd24735._0x4b2577,_0xd24735._0x2a8916,0x1a7)]=_0x1b6a48(_0xd24735._0x4c9334,_0xd24735._0x1403ac,0x186,_0xd24735._0x212bf1),_0x3179e3['HNpOY']=_0x1b6a48(0x159,_0xd24735._0x49794f,_0xd24735._0x3f3c64,0x16c)+'s\x20to\x20file',_0x3179e3[_0x3acc57(0x18c,_0xd24735._0x4d841f,_0xd24735._0x3213c2,_0xd24735._0x4ef9bc)]=function(_0x383b56,_0x1354b9){return _0x383b56===_0x1354b9;};function _0x3acc57(_0x2c68e4,_0x2089b5,_0x3f8cfe,_0x1bf493){return _0x480c94(_0x2c68e4-0xa6,_0x3f8cfe,_0x2089b5- -0xce,_0x1bf493-_0x3f9ca5._0x3b0435);}function _0x1b6a48(_0x26057f,_0x2ea324,_0x1aa511,_0x6e6dff){return _0x480c94(_0x26057f-0x14f,_0x6e6dff,_0x26057f- -_0x22621e._0x9afec,_0x6e6dff-0x1b);}_0x3179e3[_0x1b6a48(_0xd24735._0x15fa13,0x181,0x16e,_0xd24735._0x2db117)]=_0x1b6a48(_0xd24735._0x5ea6c1,0x167,0x1d6,_0xd24735._0x580265),_0x3179e3[_0x3acc57(_0xd24735._0x167dfc,_0xd24735._0x3213c2,0x143,0x140)]='Failed\x20to\x20'+_0x1b6a48(_0xd24735._0x22c9a0,_0xd24735._0x4752b5,0x15b,_0xd24735._0x506655);const _0x50cf37=_0x3179e3;try{const _0x40d210=_0x32f256[_0x1b6a48(0x197,_0xd24735._0x496ac0,_0xd24735._0x22f1b0,0x1bb)](TEAMS_FILE),_0x466457={};_0x466457[_0x3acc57(0x10f,_0xd24735._0x29c673,_0xd24735._0x4bc616,0x179)]=!![],await _0x4c7d0b[_0x1b6a48(_0xd24735._0x53e109,_0xd24735._0x2176fe,_0xd24735._0x396998,_0xd24735._0x3213c2)](_0x40d210,_0x466457);const _0x43bdc5={};_0x43bdc5[_0x3acc57(0x106,_0xd24735._0x5a84ab,_0xd24735._0x570dee,0x11d)]=_0x263e5e,await _0x4c7d0b[_0x1b6a48(_0xd24735._0x22b9ea,0x19b,0x16b,0x151)](TEAMS_FILE,JSON[_0x3acc57(0x16d,_0xd24735._0x4ee1bd,_0xd24735._0xcaddb3,_0xd24735._0x3aa2d7)](_0x43bdc5,null,-0x2122+-0xa65*0x1+0x2b89),_0x50cf37[_0x3acc57(0x198,_0xd24735._0x31e6d1,_0xd24735._0x59c201,0x171)]);const _0x58d1d5=await _0x4c7d0b[_0x3acc57(_0xd24735._0x58005b,0x1ae,0x194,0x1c8)](TEAMS_FILE);teamsCache=_0x263e5e,teamsCacheMtime=_0x58d1d5[_0x3acc57(_0xd24735._0x106cb8,_0xd24735._0x580265,0x13b,0x15e)];const _0x4b85cc={};_0x4b85cc[_0x3acc57(_0xd24735._0x5af504,_0xd24735._0xb51964,0x167,_0xd24735._0x3105e4)]=_0x263e5e[_0x3acc57(0x181,_0xd24735._0x33f64c,0x163,0x1a1)],logger[_0x1b6a48(_0xd24735._0x3a95d0,0x19d,_0xd24735._0x2bca84,_0xd24735._0x21e4c3)](_0x50cf37[_0x1b6a48(0x188,_0xd24735._0x71005a,0x16d,_0xd24735._0x4b2577)],_0x4b85cc);}catch(_0x4fd6f5){if(_0x50cf37[_0x3acc57(_0xd24735._0x56021a,0x188,_0xd24735._0x33defc,_0xd24735._0x670d76)](_0x50cf37[_0x1b6a48(0x157,0x139,_0xd24735._0xf0df1e,0x15b)],'saODx')){logger[_0x1b6a48(0x1a9,0x1a9,0x1a7,0x18e)](_0x50cf37[_0x1b6a48(_0xd24735._0x1e473c,0x14e,_0xd24735._0x521f2b,_0xd24735._0x594e26)],_0x4fd6f5);throw _0x4fd6f5;}else{const _0x3b6693=new _0x16395c(_0x50cf37['BghQx']);_0x3b6693[_0x3acc57(0x1c3,0x19c,0x167,_0xd24735._0x5dafff)]=_0x3acc57(_0xd24735._0x3ed172,_0xd24735._0x5c6048,0x149,0x141);throw _0x3b6693;}}}export async function getTeams(){const _0x4b4446={_0x168978:0x24f,_0x3155e2:0x2b2,_0x2fc37f:0x2a4,_0xdf8b2c:0x2e3,_0x13a2f8:0x464,_0x1dbbe8:0x48e,_0x75d04e:0x45b,_0xe72a05:0x2a0,_0x213df1:0x2b2,_0xa94e71:0x2b8,_0x150843:0x473},_0x55a64c={_0x265f1b:0x255},_0x4e2fcf={_0x72ec90:0x10f};function _0x2ec72c(_0x477168,_0x27693,_0x186ea9,_0x46a737){return _0x480c94(_0x477168-0x9a,_0x186ea9,_0x477168-0x36,_0x46a737-_0x4e2fcf._0x72ec90);}const _0x21a676={'fTwwH':function(_0x5180de,_0x22cf73){return _0x5180de!==_0x22cf73;},'NIINL':'kXMSq','aSlZb':'fwxQx','AzKIn':function(_0x3a70e8,_0x21e50b){return _0x3a70e8!==_0x21e50b;},'APjIS':_0x2ec72c(0x24e,_0x4b4446._0x168978,0x229,0x23e),'gFWtx':function(_0x44093f){return _0x44093f();}};try{const _0x2682bb=await _0x4c7d0b[_0x2ec72c(_0x4b4446._0x3155e2,_0x4b4446._0x2fc37f,0x2dd,_0x4b4446._0xdf8b2c)](TEAMS_FILE);if(!teamsCache||_0x21a676['fTwwH'](_0x2682bb[_0x3d335f(0x491,_0x4b4446._0x13a2f8,0x4ce,_0x4b4446._0x1dbbe8)],teamsCacheMtime))return await loadTeams();}catch(_0x3ce54d){if(_0x21a676['fTwwH'](_0x21a676[_0x3d335f(0x479,0x489,_0x4b4446._0x75d04e,0x4ab)],_0x21a676[_0x3d335f(0x4b1,0x48d,0x4d0,0x4d1)])){if(_0x21a676['AzKIn'](_0x3ce54d[_0x2ec72c(_0x4b4446._0xe72a05,0x2d7,_0x4b4446._0x213df1,_0x4b4446._0xa94e71)],_0x21a676['APjIS']))throw _0x3ce54d;if(!teamsCache)return await _0x21a676[_0x3d335f(0x48c,0x478,_0x4b4446._0x150843,0x4b1)](loadTeams);}else _0x2c163e=null;}function _0x3d335f(_0x41b09c,_0xb65bff,_0x291789,_0x223059){return _0x480c94(_0x41b09c-0x5a,_0x291789,_0x41b09c-_0x55a64c._0x265f1b,_0x223059-0x1d2);}return teamsCache;}function _0x2900(_0x3fb9fb,_0x4cca8e){_0x3fb9fb=_0x3fb9fb-(-0x2*0x103c+-0x1*-0x23ef+-0x189*0x1);const _0x1ddf2d=_0x445d();let _0x3c06fe=_0x1ddf2d[_0x3fb9fb];if(_0x2900['fbSgkj']===undefined){var _0x51f11d=function(_0x1d59e9){const _0x47419d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50e2bd='',_0x2b5286='';for(let _0xc0e1f9=-0x35+-0x171+0x1a6,_0x3fbd7d,_0x13955a,_0xcf8dfb=-0x972+-0x4fd*0x1+0x5*0x2e3;_0x13955a=_0x1d59e9['charAt'](_0xcf8dfb++);~_0x13955a&&(_0x3fbd7d=_0xc0e1f9%(0x24c5*-0x1+0x1*-0x22cb+-0x4*-0x11e5)?_0x3fbd7d*(-0xd3+-0x122b*-0x1+-0x1118*0x1)+_0x13955a:_0x13955a,_0xc0e1f9++%(0x1*0xcb6+0x1f20+-0x2bd2))?_0x50e2bd+=String['fromCharCode'](0x2*-0x12f0+0x96c+0x1d73&_0x3fbd7d>>(-(-0x6df*-0x4+-0x409*0x4+-0xb56)*_0xc0e1f9&-0x469*0x7+0x143a+0xaab*0x1)):0x21*0x32+-0x1f9f+0x192d){_0x13955a=_0x47419d['indexOf'](_0x13955a);}for(let _0x37378d=-0x1ecc+0x698+0x1834,_0x4aea4a=_0x50e2bd['length'];_0x37378d<_0x4aea4a;_0x37378d++){_0x2b5286+='%'+('00'+_0x50e2bd['charCodeAt'](_0x37378d)['toString'](0x14*0xe0+-0xfe+-0x1072))['slice'](-(0x19a8+-0x1*-0x1ef1+-0x3897));}return decodeURIComponent(_0x2b5286);};_0x2900['NAEzMh']=_0x51f11d,_0x2900['cHUHpq']={},_0x2900['fbSgkj']=!![];}const _0x354de2=_0x1ddf2d[-0x10*0x54+0xc9f+-0x75f],_0x31d16e=_0x3fb9fb+_0x354de2,_0x43984d=_0x2900['cHUHpq'][_0x31d16e];return!_0x43984d?(_0x3c06fe=_0x2900['NAEzMh'](_0x3c06fe),_0x2900['cHUHpq'][_0x31d16e]=_0x3c06fe):_0x3c06fe=_0x43984d,_0x3c06fe;}export async function getTeamById(_0x3a8ca8){const _0x21d941=await getTeams();return _0x21d941['find'](_0x499c38=>_0x499c38['id']===_0x3a8ca8)||null;}export async function getTeamsByUserId(_0xd8c446){const _0xcdd84d={_0x14e40d:0x370,_0x357e7c:0x35c,_0x3fd908:0x377,_0x265c66:0x292},_0x4a8a0c={_0xeac2c9:0x85},_0x1a1ebb={_0x13d19c:0x100,_0x36860f:0x120};function _0xc1cc95(_0x28a0b2,_0x414ed3,_0x279d5f,_0x17b13e){return _0x480c94(_0x28a0b2-_0x1a1ebb._0x13d19c,_0x279d5f,_0x28a0b2-_0x1a1ebb._0x36860f,_0x17b13e-0x1eb);}function _0x50b474(_0x344d62,_0x39671a,_0x3d7086,_0x271abc){return _0x480c94(_0x344d62-0x36,_0x3d7086,_0x271abc-0x53,_0x271abc-_0x4a8a0c._0xeac2c9);}const _0x5e6efd={'zlAaw':function(_0x5d3fb6){return _0x5d3fb6();}},_0x3794fe=await _0x5e6efd[_0xc1cc95(_0xcdd84d._0x14e40d,_0xcdd84d._0x357e7c,0x39a,_0xcdd84d._0x3fd908)](getTeams);return _0x3794fe[_0x50b474(0x285,_0xcdd84d._0x265c66,0x2f5,0x2b8)](_0x123287=>_0x123287['members'][_0x50b474(0x260,0x2bb,0x282,0x285)](_0xd8c446));}export async function createTeam(_0x142a41){const _0x182547={_0x1dd7b7:0x57e,_0x368960:0x5bb,_0x58e201:0x580,_0x781191:0x551,_0x1781b3:0x195,_0x5ea3ab:0x53d,_0x88ebf8:0x576,_0xfecf77:0x571,_0xb6d041:0x5a2,_0x396690:0x1da,_0x4a7d10:0x1ec,_0x50d14a:0x59a,_0x4b12d5:0x56c,_0x2af62c:0x5a9,_0x5aff04:0x5bf,_0x1b997e:0x1d5,_0x5f3eb3:0x1a1,_0x29a8dd:0x1a2,_0x9df003:0x1d0,_0x53369f:0x1a7,_0x485961:0x1c1,_0x5b5216:0x53f,_0x1b9e76:0x196,_0x4e0b97:0x575,_0x2d27d6:0x56c,_0x365d22:0x540,_0x27dd1a:0x597,_0x2991e3:0x5a3,_0x276bdf:0x1d0,_0x518c38:0x1ae,_0x5417bd:0x1a1,_0x241a9b:0x1e6,_0xe9fb61:0x19c,_0x542972:0x172,_0x53788f:0x5d0,_0x1f115d:0x5c6,_0x4d3c7b:0x569,_0x371f03:0x588,_0x13c9e3:0x591,_0x1e88c9:0x54d,_0x2d2512:0x55c,_0x1a6c43:0x58c,_0x697f32:0x559,_0x350cf6:0x5dd,_0x3121fe:0x574,_0xe504c8:0x5b6,_0x51722b:0x5cc,_0x451bc9:0x58f,_0x210329:0x53f},_0x4e7e78={_0x353560:0x3c},_0x40d5e6={_0x42d6a8:0x18b,_0x506d1e:0xd7};function _0x234d09(_0x4d5ba7,_0x29e2c0,_0x2f2113,_0x129bee){return _0x480c94(_0x4d5ba7-_0x40d5e6._0x42d6a8,_0x29e2c0,_0x4d5ba7- -0x9a,_0x129bee-_0x40d5e6._0x506d1e);}function _0x11d08c(_0x14a073,_0x1ed8c0,_0x1561fb,_0x19d3aa){return _0x480c94(_0x14a073-0x37,_0x14a073,_0x1561fb-0x32e,_0x19d3aa-_0x4e7e78._0x353560);}const _0x54f181={};_0x54f181[_0x11d08c(_0x182547._0x1dd7b7,_0x182547._0x368960,_0x182547._0x58e201,_0x182547._0x781191)]=_0x234d09(0x19b,0x1c4,_0x182547._0x1781b3,0x1a3),_0x54f181[_0x11d08c(_0x182547._0x5ea3ab,_0x182547._0x88ebf8,_0x182547._0xfecf77,_0x182547._0xb6d041)]=_0x234d09(0x1e0,_0x182547._0x396690,0x204,_0x182547._0x4a7d10);const _0x2e1f32=_0x54f181,_0x5c4fcb=await getTeams();if(!_0x142a41['name']||!_0x142a41[_0x11d08c(_0x182547._0x50d14a,0x531,_0x182547._0x4b12d5,0x57c)][_0x11d08c(0x5a2,_0x182547._0x58e201,_0x182547._0x2af62c,_0x182547._0x5aff04)]()){const _0x3df281=new Error(_0x234d09(_0x182547._0x1b997e,0x1e1,0x1c6,_0x182547._0x5f3eb3)+_0x234d09(0x183,_0x182547._0x29a8dd,0x17f,0x17b)+'d');_0x3df281[_0x234d09(_0x182547._0x9df003,0x1ba,_0x182547._0x53369f,_0x182547._0x485961)]=_0x2e1f32[_0x11d08c(0x547,0x5a0,0x580,_0x182547._0x5b5216)];throw _0x3df281;}if(_0x5c4fcb[_0x11d08c(0x514,0x546,0x540,0x54b)](_0x539920=>_0x539920[_0x234d09(0x1a4,0x18f,0x16d,0x1c2)]===_0x142a41[_0x11d08c(0x542,0x567,0x56c,0x546)])){const _0x19b616=new Error(_0x234d09(_0x182547._0x1b997e,0x1ab,0x1a8,_0x182547._0x1b9e76)+'\x27'+_0x142a41[_0x11d08c(_0x182547._0x4e0b97,0x57b,_0x182547._0x2d27d6,_0x182547._0x365d22)]+(_0x11d08c(0x5bc,_0x182547._0x27dd1a,0x5b1,_0x182547._0x2991e3)+'exists'));_0x19b616[_0x234d09(_0x182547._0x276bdf,_0x182547._0x518c38,_0x182547._0x5417bd,0x1b7)]=_0x2e1f32[_0x234d09(0x1a9,0x1bc,_0x182547._0x485961,_0x182547._0x241a9b)];throw _0x19b616;}const _0x29e13e=_0x142a41['members']||[],_0x3ed882=new Date()[_0x234d09(_0x182547._0xe9fb61,0x15b,0x15a,_0x182547._0x542972)+'g'](),_0x25aaba={'id':'team_'+Date['now']()+'_'+Math[_0x11d08c(_0x182547._0x53788f,_0x182547._0x1f115d,0x5a1,_0x182547._0x4d3c7b)]()[_0x11d08c(_0x182547._0x371f03,_0x182547._0x13c9e3,0x58e,0x5b0)](-0x14b+-0x1123+-0x1*-0x1292)[_0x11d08c(_0x182547._0x1e88c9,0x588,0x587,_0x182547._0x2d2512)](-0x1c1c+0x16fb+0x5*0x107,0x1ab4+-0x18d*0x2+-0x3*0x7db),'name':_0x142a41[_0x11d08c(_0x182547._0x1a6c43,_0x182547._0x697f32,0x56c,0x54d)],'description':_0x142a41[_0x11d08c(_0x182547._0x350cf6,_0x182547._0x3121fe,_0x182547._0xe504c8,_0x182547._0x51722b)+'n']||'','members':_0x29e13e,'created_at':_0x3ed882,'created_by':_0x142a41[_0x11d08c(0x56c,0x546,0x551,_0x182547._0x451bc9)]||null,'updated_at':_0x3ed882};return _0x5c4fcb[_0x11d08c(0x572,_0x182547._0x210329,0x541,0x52f)](_0x25aaba),await saveTeams(_0x5c4fcb),_0x25aaba;}export async function updateTeam(_0x354f10,_0xe57041){const _0x3f22f1={_0x443323:0xbb,_0xdbdaa7:0x50c,_0x27e9e5:0x53b,_0x23f713:0x541,_0x40e0a7:0x52b,_0x131f3f:0xb7,_0x4a4fb9:0x4fe,_0x3dc05f:0x19,_0x248661:0x512,_0x4a9dac:0x4d6,_0x3c7495:0x8f,_0xedfa95:0x55d,_0x25f060:0x54c,_0xf77271:0x4ca,_0x20bf2b:0x43,_0x48f274:0xbb,_0x463056:0x90,_0xbc9f7e:0x523,_0x361428:0x4f9,_0x46bee0:0xa4,_0x2b4ea5:0xb9,_0x894176:0x5f,_0x1acd78:0x6f,_0x45f744:0x51d,_0x4ea482:0x571,_0x282912:0x1a,_0x2b22a9:0x49,_0x1787d5:0x47,_0x27f9e6:0x546,_0x11a35a:0xc4,_0x198ab4:0xae,_0x14e628:0x87,_0x347db2:0x6e,_0x4cf127:0xaf,_0x57bd3f:0x554,_0xe5c2fc:0x579,_0x59c954:0x53f,_0x10f01f:0x557,_0x42d33f:0x545,_0x37e073:0x525,_0x1c8bbd:0x9d,_0x572216:0x59,_0x1188af:0x536,_0x8f9fa7:0x514,_0x385af1:0x537,_0xf60f5b:0x564,_0x5a117c:0x4ea,_0x5afd0e:0x527,_0x152060:0x4dc,_0x35b718:0x4cd,_0x45e5eb:0x50f,_0xeda97:0x4db,_0xd10098:0x51f,_0x49523e:0x11,_0xbcc9ee:0x556,_0x519531:0x4f6,_0x92f1df:0x557,_0x260f92:0x4ef,_0x29b58e:0x50e,_0x2112cf:0x54b,_0xc6697d:0x57e,_0x53f952:0x543,_0x539d9e:0x57a,_0x47a98c:0x575,_0x5991d6:0x4a6,_0x2a89ab:0x4c9,_0x2004c9:0x492,_0x52dc35:0x48a,_0x3eb7e0:0x3a,_0x3f049d:0xc,_0x36632b:0x2c,_0x531b47:0x3e,_0x1e3f3d:0x4b4,_0x173564:0x523,_0x2e7d89:0x52c,_0x3681b8:0x7d,_0xf98f0e:0xa4,_0x48a99b:0x67},_0x8ef722={_0x4e8087:0x2bb},_0x42b568={_0x254ba9:0x1cf},_0x55d28f={'fPTnb':_0x2aef4d(_0x3f22f1._0x443323,0x97,0x7e,0xab),'KghhF':function(_0x1e7ded){return _0x1e7ded();},'ecXfT':function(_0x265ef5,_0x1b3094){return _0x265ef5===_0x1b3094;},'emlRd':function(_0x4a99c7,_0x296373){return _0x4a99c7!==_0x296373;},'eMTWn':_0x1662a8(_0x3f22f1._0xdbdaa7,_0x3f22f1._0x27e9e5,_0x3f22f1._0x23f713,_0x3f22f1._0x40e0a7),'mNZNf':_0x2aef4d(0xdf,0xf7,0x94,0xb8),'ZJKml':_0x2aef4d(0x86,0xaf,0xdc,_0x3f22f1._0x131f3f),'aNNAe':_0x1662a8(0x542,_0x3f22f1._0x4a4fb9,0x52f,0x52a)+_0x2aef4d(_0x3f22f1._0x3dc05f,0x83,0xf,0x4e)+'d','KYcDP':'VALIDATION','jFmmc':function(_0xd6dd2a,_0x256b77){return _0xd6dd2a!==_0x256b77;},'coPrq':function(_0x23f385,_0x537406){return _0x23f385(_0x537406);}},_0x50ae19=await _0x55d28f[_0x1662a8(0x500,0x4f9,_0x3f22f1._0x248661,_0x3f22f1._0x4a9dac)](getTeams),_0x210c7f=_0x50ae19['findIndex'](_0x2bd691=>_0x2bd691['id']===_0x354f10);if(_0x55d28f['ecXfT'](_0x210c7f,-(0x16ce+-0x1ebb+0x7ee))){const _0x29b0bd=new Error(_0x2aef4d(_0x3f22f1._0x3c7495,0x79,0xae,0x84)+_0x354f10+(_0x1662a8(0x4e9,_0x3f22f1._0xedfa95,_0x3f22f1._0x25f060,0x51d)+'d'));_0x29b0bd[_0x1662a8(0x4fa,0x561,0x507,0x525)]=_0x1662a8(0x4af,0x4e4,0x4b3,_0x3f22f1._0xf77271);throw _0x29b0bd;}const _0x26d7e4=_0x50ae19[_0x210c7f];if(_0xe57041[_0x2aef4d(0x6a,_0x3f22f1._0x20bf2b,0x7c,0x6f)]!==undefined&&_0x55d28f[_0x2aef4d(0x7f,_0x3f22f1._0x48f274,0xa8,_0x3f22f1._0x463056)](_0xe57041[_0x1662a8(0x4c6,_0x3f22f1._0xbc9f7e,0x4c4,_0x3f22f1._0x361428)],_0x26d7e4['name'])){if(_0x55d28f[_0x2aef4d(0xda,_0x3f22f1._0x46bee0,_0x3f22f1._0x2b4ea5,0xa5)]!==_0x55d28f['eMTWn']){const _0x58badb=new _0x539881(_0x2aef4d(_0x3f22f1._0x894176,0x96,0xbc,0xa0)+'\x27'+_0x4aa2e5[_0x2aef4d(0x8a,0x80,0x62,_0x3f22f1._0x1acd78)]+(_0x1662a8(0x54d,_0x3f22f1._0x45f744,_0x3f22f1._0x4ea482,0x53e)+_0x2aef4d(_0x3f22f1._0x282912,_0x3f22f1._0x3dc05f,_0x3f22f1._0x2b22a9,_0x3f22f1._0x1787d5)));_0x58badb[_0x1662a8(0x557,_0x3f22f1._0x27f9e6,0x558,0x525)]=_0x55d28f[_0x2aef4d(0x6d,_0x3f22f1._0x11a35a,0xad,0x9d)];throw _0x58badb;}else{if(!_0xe57041['name'][_0x2aef4d(_0x3f22f1._0x198ab4,0xbb,_0x3f22f1._0x14e628,0xac)]()){if(_0x55d28f['emlRd'](_0x55d28f[_0x2aef4d(0x9c,_0x3f22f1._0x347db2,0xbc,_0x3f22f1._0x4cf127)],_0x55d28f[_0x1662a8(_0x3f22f1._0x57bd3f,0x52d,_0x3f22f1._0xe5c2fc,_0x3f22f1._0x59c954)])){const _0x30e241=new Error(_0x55d28f['aNNAe']);_0x30e241[_0x1662a8(0x536,_0x3f22f1._0x10f01f,_0x3f22f1._0x42d33f,_0x3f22f1._0x37e073)]=_0x55d28f[_0x1662a8(0x503,0x526,0x530,0x540)];throw _0x30e241;}else{const _0x4575bf=new _0x17d8f1('Team\x20name\x20'+'\x27'+_0xa02d74[_0x2aef4d(_0x3f22f1._0x1c8bbd,_0x3f22f1._0x1acd78,_0x3f22f1._0x572216,0x6f)]+(_0x1662a8(0x576,0x517,_0x3f22f1._0x1188af,0x53e)+'exists'));_0x4575bf[_0x1662a8(0x4fe,_0x3f22f1._0x8f9fa7,_0x3f22f1._0x385af1,0x525)]=_0x55d28f[_0x1662a8(0x4ef,_0x3f22f1._0xf60f5b,_0x3f22f1._0x5a117c,_0x3f22f1._0x5afd0e)];throw _0x4575bf;}}if(_0x50ae19[_0x1662a8(_0x3f22f1._0x152060,0x50f,0x49e,_0x3f22f1._0x35b718)](_0x34dfe0=>_0x34dfe0['name']===_0xe57041[_0x2aef4d(0x55,0x2e,0x93,0x6f)])){const _0x29c39f=new Error('Team\x20name\x20'+'\x27'+_0xe57041[_0x1662a8(_0x3f22f1._0x45e5eb,_0x3f22f1._0xeda97,_0x3f22f1._0xd10098,_0x3f22f1._0x361428)]+('\x27\x20already\x20'+_0x2aef4d(0x3f,0x5b,_0x3f22f1._0x49523e,0x47)));_0x29c39f['code']=_0x55d28f[_0x1662a8(0x50a,0x4fd,_0x3f22f1._0xbcc9ee,_0x3f22f1._0x5afd0e)];throw _0x29c39f;}}}if(_0x55d28f[_0x1662a8(_0x3f22f1._0x519531,_0x3f22f1._0x92f1df,_0x3f22f1._0x260f92,0x51a)](_0xe57041['name'],undefined))_0x26d7e4[_0x1662a8(0x512,_0x3f22f1._0x40e0a7,0x4fc,_0x3f22f1._0x361428)]=_0xe57041['name'];if(_0xe57041[_0x1662a8(_0x3f22f1._0x29b58e,_0x3f22f1._0x2112cf,_0x3f22f1._0xc6697d,_0x3f22f1._0x53f952)+'n']!==undefined)_0x26d7e4[_0x1662a8(0x52d,_0x3f22f1._0x539d9e,0x559,_0x3f22f1._0x53f952)+'n']=_0xe57041[_0x1662a8(0x53c,0x551,_0x3f22f1._0x47a98c,_0x3f22f1._0x53f952)+'n'];function _0x2aef4d(_0xe935b9,_0x31f337,_0x275d3e,_0x43b40c){return _0x480c94(_0xe935b9-0xec,_0xe935b9,_0x43b40c- -_0x42b568._0x254ba9,_0x43b40c-0x28);}if(_0x55d28f[_0x1662a8(0x49d,0x4fe,_0x3f22f1._0x5991d6,_0x3f22f1._0x2a89ab)](_0xe57041[_0x1662a8(_0x3f22f1._0x2004c9,0x4be,_0x3f22f1._0x52dc35,0x4c8)],undefined))_0x26d7e4[_0x2aef4d(_0x3f22f1._0x3eb7e0,_0x3f22f1._0x3f049d,_0x3f22f1._0x36632b,_0x3f22f1._0x531b47)]=_0xe57041[_0x1662a8(_0x3f22f1._0x1e3f3d,0x4ba,0x494,0x4c8)];_0x26d7e4[_0x1662a8(0x53b,_0x3f22f1._0x173564,0x51b,_0x3f22f1._0x2e7d89)]=new Date()[_0x2aef4d(0x2d,_0x3f22f1._0x3681b8,_0x3f22f1._0xf98f0e,_0x3f22f1._0x48a99b)+'g']();function _0x1662a8(_0x4a7859,_0x5afe44,_0x21027e,_0x4312af){return _0x480c94(_0x4a7859-0x139,_0x4a7859,_0x4312af-_0x8ef722._0x4e8087,_0x4312af-0x6d);}return await _0x55d28f['coPrq'](saveTeams,_0x50ae19),_0x26d7e4;}export async function deleteTeam(_0x271d5f,_0x2a47c7,_0x34fc56){const _0x1b7348={_0x5ed1af:0x27d,_0x158b2b:0x2c5,_0x32ed93:0x2fc,_0x24d320:0x2f8,_0xa42940:0x2fd,_0x173fc3:0x298,_0x4678d9:0x2d8,_0x3fd123:0x2d2,_0x57f79e:0x2db,_0xdc05e9:0x2c9,_0x3b6d8a:0x294,_0x348ee5:0x2a7,_0x549301:0x2f,_0x36ca7f:0x70,_0x412477:0x40,_0x5e6371:0x68,_0x527172:0x51,_0x4bc74c:0x52,_0x237c6f:0x67,_0x28441c:0x92,_0x478f96:0x90,_0x3db798:0x6a,_0x2ab076:0x2af,_0x11c0b3:0x73,_0x56dc32:0x93,_0x2194c6:0x84,_0x234ed4:0xa5,_0x10ec9a:0x2be,_0x437fd8:0x2bf,_0x3929b5:0x3c,_0xb81fc:0x39,_0x2e7fd4:0x2c1,_0x297614:0x301,_0x8ae6f4:0x2ea,_0x8d2f8c:0xcf,_0x3003d3:0xba,_0x4a35ee:0xc3,_0x2bbd1b:0x29b,_0x27d43e:0x83,_0x546147:0x87,_0x374a60:0x2de,_0x2105bc:0x2ba,_0x553fa3:0x2a0,_0x209198:0xa4,_0x386606:0x2bb,_0x1a23b4:0x300,_0x26fac3:0x334,_0x40cae3:0x296,_0x50d673:0x2c2,_0x18b6c7:0x50,_0x203b5a:0xd2,_0x5971c2:0x91,_0x2266c3:0x4c,_0x1f26cc:0x38,_0x46fd4c:0x24,_0x40df43:0x55},_0x3a7aaa={_0x1f7c6b:0x26,_0x5e9aa3:0x2d2},_0x56ff7d={_0x13baab:0x87,_0x3e6a0d:0x80,_0x5cff14:0x146},_0x59f67e={'OVrYC':function(_0x27ad0c){return _0x27ad0c();},'lLfno':function(_0x510e39,_0x3ec719){return _0x510e39===_0x3ec719;},'ZszpE':'NOT_FOUND','sJjMu':function(_0x23c673,_0x21489b){return _0x23c673!==_0x21489b;},'EfdbM':_0x58db00(_0x1b7348._0x5ed1af,_0x1b7348._0x158b2b,0x275,0x289),'uBUeJ':function(_0x3b8e74,_0x2122d0,_0x45c11d){return _0x3b8e74(_0x2122d0,_0x45c11d);},'VPpWc':_0x58db00(_0x1b7348._0x32ed93,0x2e6,_0x1b7348._0x24d320,_0x1b7348._0xa42940),'naaXx':_0x58db00(0x2f5,_0x1b7348._0x173fc3,0x314,_0x1b7348._0x4678d9)+'am'},_0x2cb93e=await _0x59f67e[_0x58db00(_0x1b7348._0x3fd123,0x334,0x30d,0x2f7)](getTeams),_0xe3557=_0x2cb93e[_0x58db00(_0x1b7348._0x57f79e,_0x1b7348._0xdc05e9,_0x1b7348._0x3b6d8a,0x2b4)](_0xbca46d=>_0xbca46d['id']===_0x271d5f);if(_0x59f67e[_0x58db00(_0x1b7348._0x57f79e,0x2b6,0x29d,_0x1b7348._0x348ee5)](_0xe3557,-(-0x1*-0x9a9+-0x7*-0x53f+-0x2e61))){const _0x118d87=new Error('Team\x20\x27'+_0x271d5f+(_0x4694b5(-0x7c,-0xaf,-_0x1b7348._0x549301,-_0x1b7348._0x36ca7f)+'d'));_0x118d87[_0x4694b5(-_0x1b7348._0x412477,-0x8b,-0x31,-_0x1b7348._0x5e6371)]=_0x59f67e[_0x4694b5(-_0x1b7348._0x527172,-0x48,-0x91,-_0x1b7348._0x4bc74c)];throw _0x118d87;}const _0x4bf9f0=_0x2cb93e[_0xe3557];_0x2cb93e['splice'](_0xe3557,-0x2053+0x54b+-0x3*-0x903),await saveTeams(_0x2cb93e);let _0x114012=0x912*0x2+0x14*0x1be+-0x34fc;if(_0x2a47c7){if(_0x59f67e[_0x4694b5(-_0x1b7348._0x237c6f,-_0x1b7348._0x28441c,-_0x1b7348._0x478f96,-_0x1b7348._0x3db798)](_0x59f67e['EfdbM'],_0x59f67e[_0x58db00(0x2e0,0x299,_0x1b7348._0x2ab076,0x2b3)])){const _0x19177e=new _0x4f0009(_0x4694b5(-_0x1b7348._0x11c0b3,-_0x1b7348._0x56dc32,-0x9e,-_0x1b7348._0x2194c6)+_0x557434+(_0x4694b5(-_0x1b7348._0x234ed4,-0x68,-0x88,-0x83)+_0x58db00(0x300,_0x1b7348._0x10ec9a,0x2d4,_0x1b7348._0x437fd8)+_0x4694b5(-0x54,-_0x1b7348._0x3929b5,-_0x1b7348._0xb81fc,-0x75)));_0x19177e[_0x58db00(_0x1b7348._0x2e7fd4,0x2c4,_0x1b7348._0x297614,_0x1b7348._0x8ae6f4)]=_0x4694b5(-0x8f,-_0x1b7348._0x8d2f8c,-_0x1b7348._0x3003d3,-_0x1b7348._0x4a35ee);throw _0x19177e;}else _0x114012+=await _0x59f67e[_0x58db00(_0x1b7348._0x2bbd1b,0x2c8,0x29d,0x2a0)](_0x2a47c7,_0x59f67e[_0x4694b5(-0x74,-0x66,-_0x1b7348._0x27d43e,-_0x1b7348._0x546147)],_0x271d5f);}_0x34fc56&&(_0x114012+=await _0x59f67e[_0x58db00(0x28d,_0x1b7348._0x374a60,_0x1b7348._0x2105bc,_0x1b7348._0x553fa3)](_0x34fc56,_0x59f67e[_0x4694b5(-0x58,-_0x1b7348._0x209198,-0x9d,-0x87)],_0x271d5f));function _0x58db00(_0x8b8f14,_0x4b9258,_0x92e512,_0x35afe9){return _0x480c94(_0x8b8f14-_0x56ff7d._0x13baab,_0x4b9258,_0x35afe9-_0x56ff7d._0x3e6a0d,_0x35afe9-_0x56ff7d._0x5cff14);}const _0xd3ad1e={};_0xd3ad1e[_0x58db00(_0x1b7348._0x386606,_0x1b7348._0x1a23b4,0x2ba,0x2de)]=_0x271d5f,_0xd3ad1e['teamName']=_0x4bf9f0['name'],_0xd3ad1e['deletedBin'+_0x58db00(_0x1b7348._0x26fac3,0x323,0x2e7,0x302)]=_0x114012,logger[_0x58db00(_0x1b7348._0x40cae3,_0x1b7348._0x50d673,_0x1b7348._0x10ec9a,0x2a9)](_0x59f67e[_0x4694b5(-_0x1b7348._0x18b6c7,-_0x1b7348._0x203b5a,-0xa1,-_0x1b7348._0x5971c2)],_0xd3ad1e);const _0x3f50b5={};function _0x4694b5(_0x431701,_0x3847c7,_0x419868,_0x2b7e7f){return _0x480c94(_0x431701-_0x3a7aaa._0x1f7c6b,_0x431701,_0x2b7e7f- -_0x3a7aaa._0x5e9aa3,_0x2b7e7f-0x122);}return _0x3f50b5[_0x4694b5(-_0x1b7348._0x2266c3,-_0x1b7348._0x1f26cc,-_0x1b7348._0x46fd4c,-_0x1b7348._0x40df43)]=_0x4bf9f0,_0x3f50b5['deletedBin'+'dings']=_0x114012,_0x3f50b5;}export async function addMember(_0x58ed85,_0x218729){const _0x328470={_0x19bc12:0x116,_0x181d12:0x119,_0x27c948:0x2ba,_0x29c48b:0x2d9,_0x351541:0x2d8,_0x92b70c:0x2a7,_0x317c2a:0x17c,_0x3d3f3a:0x178,_0x5d6a5a:0x189,_0x40ef77:0x134,_0x36087f:0x13a,_0x2c9a68:0x102,_0x143e7c:0x303,_0x518d0f:0x2a3,_0xa1a54d:0x2ac,_0x264786:0x2df,_0x5ab127:0x13d,_0x80b44b:0x11b,_0x3767a3:0x130,_0x37c1f7:0x11d,_0x8efa41:0x277,_0x17adcb:0x2a0,_0x262c9c:0x2c2,_0x4d3b57:0x2e2,_0x30e15b:0x2a9,_0x196244:0x278,_0x5c269f:0x16a,_0xab1031:0x124,_0x16fd4b:0x18b,_0x34c87c:0x1c9,_0x58e1b7:0x2d8,_0x287e96:0x2d2,_0x219c1d:0x182,_0xa88119:0x15c,_0x6c023e:0xe6,_0xd0cf8d:0x11b,_0x4f17c3:0x14e,_0x254c1d:0xfb,_0x3aaa12:0x17f,_0x1f5eb8:0x169,_0x54926f:0x150,_0x18fed8:0x12a,_0x325e20:0x13f},_0x31a73b={_0x46ccc9:0x6e},_0x93bd9e={_0x1d3ef8:0xcd},_0x443659={'MypBx':'NOT_FOUND','cOhOo':function(_0x432313){return _0x432313();},'DKENO':_0x211f6e(0x121,_0x328470._0x19bc12,0x10d,_0x328470._0x181d12),'hStYg':_0x22997e(0x329,_0x328470._0x27c948,0x2e8,_0x328470._0x29c48b),'QxcNf':function(_0x20ae43,_0x47dddf){return _0x20ae43(_0x47dddf);}},_0x38a459=await _0x443659[_0x22997e(0x28f,_0x328470._0x351541,_0x328470._0x92b70c,0x2b8)](getTeams),_0x700316=_0x38a459[_0x211f6e(0x18c,_0x328470._0x317c2a,0x1b6,0x148)](_0x306710=>_0x306710['id']===_0x58ed85);function _0x211f6e(_0x1c8522,_0x73d871,_0x4df0f6,_0x906841){return _0x480c94(_0x1c8522-0x12d,_0x1c8522,_0x73d871- -0xf2,_0x906841-_0x93bd9e._0x1d3ef8);}if(!_0x700316){if('nwtoh'===_0x443659['DKENO']){const _0x2fda97=new Error('Team\x20\x27'+_0x58ed85+('\x27\x20not\x20foun'+'d'));_0x2fda97[_0x211f6e(0x166,_0x328470._0x3d3f3a,0x181,_0x328470._0x5d6a5a)]=_0x443659[_0x211f6e(_0x328470._0x40ef77,0x136,_0x328470._0x36087f,_0x328470._0x2c9a68)];throw _0x2fda97;}else{const _0x33c49f=new _0x57258b('Team\x20\x27'+_0x267a36+(_0x22997e(0x2bc,0x2b7,0x2d0,_0x328470._0x143e7c)+'d'));_0x33c49f[_0x22997e(_0x328470._0x518d0f,_0x328470._0xa1a54d,_0x328470._0x351541,_0x328470._0x264786)]=_0x443659['MypBx'];throw _0x33c49f;}}if(_0x700316[_0x211f6e(_0x328470._0x5ab127,_0x328470._0x80b44b,_0x328470._0x3767a3,_0x328470._0x37c1f7)][_0x22997e(_0x328470._0x8efa41,0x28d,_0x328470._0x17adcb,0x2b3)](_0x218729)){const _0x123e56=new Error('User\x20\x27'+_0x218729+(_0x22997e(0x293,0x2f3,_0x328470._0x262c9c,0x2c8)+_0x22997e(0x2cc,_0x328470._0x4d3b57,_0x328470._0x30e15b,_0x328470._0x196244)+_0x211f6e(0x160,0x13f,_0x328470._0x5c269f,_0x328470._0xab1031)+_0x211f6e(0x197,_0x328470._0x16fd4b,_0x328470._0x34c87c,0x1a6)));_0x123e56[_0x22997e(0x2cb,0x2c3,_0x328470._0x58e1b7,_0x328470._0x287e96)]=_0x443659[_0x211f6e(_0x328470._0x219c1d,0x180,0x158,_0x328470._0xa88119)];throw _0x123e56;}_0x700316[_0x211f6e(_0x328470._0x6c023e,_0x328470._0xd0cf8d,_0x328470._0x4f17c3,_0x328470._0x254c1d)]['push'](_0x218729),_0x700316[_0x211f6e(0x143,_0x328470._0x3aaa12,_0x328470._0x1f5eb8,0x1ab)]=new Date()['toISOStrin'+'g'](),await _0x443659[_0x211f6e(_0x328470._0x54926f,_0x328470._0x18fed8,0x122,_0x328470._0x325e20)](saveTeams,_0x38a459);function _0x22997e(_0x217423,_0x37a40f,_0x209c0e,_0x2775b4){return _0x480c94(_0x217423-0x15f,_0x2775b4,_0x209c0e-_0x31a73b._0x46ccc9,_0x2775b4-0x8e);}return _0x700316;}export async function removeMember(_0x27e480,_0x18a044){const _0x43093a={_0x41da04:0x282,_0x209ab7:0x2b8,_0x54830c:0x243,_0x2ef8a7:0x247,_0x19865d:0x232,_0x408945:0x26a,_0x285a69:0x1d0,_0x794bf:0x23b,_0x58dfbd:0x1fc,_0x4fa0c7:0x234,_0x147cb7:0x231,_0x26b1b9:0x230,_0x3302b0:0x27d,_0x3a6038:0x21c,_0x3f7c80:0x26b,_0x36e905:0x27e,_0x52f2ed:0x255,_0x21d88a:0x2d5,_0x823786:0x2c2,_0x4fb994:0x2b2,_0x429136:0x2b0,_0x77983f:0x227,_0x480177:0x1c4,_0x22d9ec:0x1fd,_0x20947d:0x200,_0x68ec14:0x214,_0x39633e:0x1de,_0x14817f:0x29c,_0x498ca8:0x28b,_0x59cb0e:0x236,_0x516b8f:0x27d,_0xed9fb4:0x277,_0x484674:0x24b,_0x55957e:0x238,_0x41bcca:0x253,_0x270be2:0x22a,_0x2e44c0:0x259,_0x2723fe:0x247,_0x11df7f:0x1e6,_0x4acbb1:0x1ff,_0x2a455b:0x221,_0x13d89c:0x204,_0x5145fd:0x23b,_0x2ca15e:0x2ba,_0x5dfd65:0x284,_0x50db7e:0x242,_0x410425:0x25b,_0x1da2f5:0x27c,_0x5b4e4d:0x29a,_0x5c8eb7:0x280,_0x3555c1:0x287,_0x1a5f8f:0x27c,_0x46beae:0x27a,_0x20d20c:0x28d,_0x454240:0x273,_0x39352e:0x2be,_0x5745c3:0x23b,_0x2baf1c:0x226,_0x56a03d:0x25a,_0x5ace09:0x21d,_0x2cfd10:0x28f,_0x3f07e3:0x256,_0x485ca3:0x28c,_0x4ebb9e:0x237,_0x361936:0x25d},_0x138782={'EXIzS':_0x463525(0x2ea,_0x43093a._0x41da04,_0x43093a._0x209ab7,0x295)+_0x7a03ca(0x206,0x22e,_0x43093a._0x54830c,0x20d)+'d','KlQaw':_0x7a03ca(0x202,_0x43093a._0x2ef8a7,0x223,0x225),'nKMLH':_0x7a03ca(_0x43093a._0x19865d,0x251,0x286,_0x43093a._0x408945),'DpstI':function(_0x29350f,_0x5ea3ec){return _0x29350f!==_0x5ea3ec;},'wBgBR':_0x7a03ca(_0x43093a._0x285a69,_0x43093a._0x794bf,0x21e,_0x43093a._0x58dfbd),'xnnTK':_0x463525(0x272,0x265,0x258,_0x43093a._0x4fa0c7),'OoIOJ':function(_0x3be585,_0x322d1d){return _0x3be585===_0x322d1d;},'KPGni':_0x7a03ca(_0x43093a._0x147cb7,0x224,0x26a,_0x43093a._0x26b1b9),'cjAzp':function(_0x1d5429,_0x4fa683){return _0x1d5429(_0x4fa683);}},_0x2af5fe=await getTeams(),_0x1c4fc4=_0x2af5fe['find'](_0x514fe7=>_0x514fe7['id']===_0x27e480);if(!_0x1c4fc4){if(_0x138782[_0x463525(_0x43093a._0x3302b0,_0x43093a._0x3a6038,0x24e,_0x43093a._0x3f7c80)](_0x463525(0x24e,_0x43093a._0x36e905,_0x43093a._0x52f2ed,0x27f),_0x138782['wBgBR'])){_0x242964[_0x463525(_0x43093a._0x21d88a,_0x43093a._0x823786,_0x43093a._0x4fb994,0x299)]('Failed\x20to\x20'+'save\x20teams',_0x29998d);throw _0xad7a6b;}else{const _0x1c8eb6=new Error('Team\x20\x27'+_0x27e480+(_0x463525(0x2dd,0x2e3,0x2ab,_0x43093a._0x429136)+'d'));_0x1c8eb6['code']=_0x138782[_0x7a03ca(_0x43093a._0x77983f,_0x43093a._0x480177,_0x43093a._0x22d9ec,_0x43093a._0x20947d)];throw _0x1c8eb6;}}function _0x7a03ca(_0x28d542,_0x1528fd,_0x103e6f,_0x48a0ac){return _0x480c94(_0x28d542-0x13,_0x103e6f,_0x48a0ac- -0x10,_0x48a0ac-0x20);}function _0x463525(_0x3c17b0,_0x50cc07,_0x11e4dd,_0x54b79a){return _0x480c94(_0x3c17b0-0xa5,_0x3c17b0,_0x11e4dd-0x49,_0x54b79a-0xa8);}const _0x2478c3=_0x1c4fc4[_0x7a03ca(_0x43093a._0x68ec14,_0x43093a._0x39633e,0x1fd,0x1fd)][_0x463525(_0x43093a._0x14817f,0x28c,_0x43093a._0x498ca8,0x2a8)](_0x18a044);if(_0x2478c3===-(0x15dc+-0x20e2+0xb07)){if(_0x138782[_0x7a03ca(_0x43093a._0x59cb0e,0x277,0x279,0x239)](_0x138782[_0x7a03ca(_0x43093a._0x516b8f,_0x43093a._0xed9fb4,0x213,_0x43093a._0x484674)],_0x463525(0x278,0x247,0x289,0x264))){const _0x75d1c6=new Error('User\x20\x27'+_0x18a044+('\x27\x20is\x20not\x20a'+'\x20member\x20of'+_0x7a03ca(0x22b,0x24f,_0x43093a._0x55957e,0x24d)));_0x75d1c6['code']=_0x138782[_0x463525(_0x43093a._0x41bcca,_0x43093a._0x270be2,_0x43093a._0x2e44c0,0x258)];throw _0x75d1c6;}else{if(!_0x3f3336[_0x463525(0x271,0x29c,0x287,0x26f)][_0x7a03ca(_0x43093a._0x2723fe,0x264,_0x43093a._0x26b1b9,_0x43093a._0x3f7c80)]()){const _0x4fa5be=new _0x1762ed(_0x138782[_0x7a03ca(_0x43093a._0x11df7f,_0x43093a._0x4acbb1,_0x43093a._0x2a455b,_0x43093a._0x13d89c)]);_0x4fa5be[_0x7a03ca(0x23d,0x242,_0x43093a._0x5145fd,0x25a)]=_0x138782[_0x463525(_0x43093a._0x2ca15e,0x28f,0x296,_0x43093a._0x5dfd65)];throw _0x4fa5be;}if(_0x5d3715[_0x463525(0x277,_0x43093a._0x50db7e,_0x43093a._0x410425,_0x43093a._0x1da2f5)](_0x16c0cb=>_0x16c0cb['name']===_0x3b3023['name'])){const _0x335fe5=new _0x4f6d90('Team\x20name\x20'+'\x27'+_0x33808b[_0x463525(_0x43093a._0x5b4e4d,_0x43093a._0x5c8eb7,_0x43093a._0x3555c1,_0x43093a._0x1a5f8f)]+(_0x7a03ca(0x254,_0x43093a._0x46beae,_0x43093a._0x20d20c,_0x43093a._0x454240)+'exists'));_0x335fe5[_0x463525(_0x43093a._0x3555c1,_0x43093a._0x39352e,0x2b3,0x295)]=_0x138782[_0x463525(_0x43093a._0x5745c3,_0x43093a._0x2baf1c,_0x43093a._0x56a03d,_0x43093a._0x5ace09)];throw _0x335fe5;}}}return _0x1c4fc4[_0x463525(0x241,_0x43093a._0x2cfd10,_0x43093a._0x3f07e3,0x24b)][_0x463525(0x2a8,0x2a2,0x281,0x257)](_0x2478c3,-0x4f*0x11+0x2343+0x24f*-0xd),_0x1c4fc4['updated_at']=new Date()['toISOStrin'+'g'](),await _0x138782[_0x7a03ca(_0x43093a._0x485ca3,0x29c,_0x43093a._0x4ebb9e,_0x43093a._0x361936)](saveTeams,_0x2af5fe),_0x1c4fc4;}export function _resetCache(){teamsCache=null;}