@onairos/react-native 3.6.0 โ†’ 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/lib/commonjs/api/index.js +1 -1
  2. package/lib/commonjs/components/BodyText.js +1 -1
  3. package/lib/commonjs/components/BrandMark.js +1 -1
  4. package/lib/commonjs/components/CodeInput.js +1 -1
  5. package/lib/commonjs/components/EmailInput.js +1 -1
  6. package/lib/commonjs/components/GoogleButton.js +1 -1
  7. package/lib/commonjs/components/HeadingGroup.js +1 -1
  8. package/lib/commonjs/components/LLMDataInputModal.js +1 -1
  9. package/lib/commonjs/components/ModalHeader.js +1 -1
  10. package/lib/commonjs/components/ModalSheet.js +1 -1
  11. package/lib/commonjs/components/Onairos.js +1 -1
  12. package/lib/commonjs/components/OnairosButton.js +1 -1
  13. package/lib/commonjs/components/OnairosSignInButton.js +1 -1
  14. package/lib/commonjs/components/Overlay.js +1 -1
  15. package/lib/commonjs/components/PersonaImage.js +1 -1
  16. package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
  17. package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
  18. package/lib/commonjs/components/PinCreationScreen.js +1 -1
  19. package/lib/commonjs/components/PinInput.js +1 -1
  20. package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
  21. package/lib/commonjs/components/PlatformList.js +1 -1
  22. package/lib/commonjs/components/PlatformToggle.js +1 -1
  23. package/lib/commonjs/components/PrimaryButton.js +1 -1
  24. package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
  25. package/lib/commonjs/components/SignInStep.js +1 -1
  26. package/lib/commonjs/components/UniversalOnboarding.js +1 -1
  27. package/lib/commonjs/components/VerificationStep.js +1 -1
  28. package/lib/commonjs/components/WelcomeScreen.js +1 -1
  29. package/lib/commonjs/components/icons/Basicproficon.js +1 -1
  30. package/lib/commonjs/components/icons/Basicprofile.js +1 -1
  31. package/lib/commonjs/components/icons/Checkbox.js +1 -1
  32. package/lib/commonjs/components/icons/Checkmark.js +1 -1
  33. package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
  34. package/lib/commonjs/components/icons/Contenticon.js +1 -1
  35. package/lib/commonjs/components/icons/EnochE.js +1 -1
  36. package/lib/commonjs/components/icons/Personalityicon.js +1 -1
  37. package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
  38. package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
  39. package/lib/commonjs/components/icons/Userpreferences.js +1 -1
  40. package/lib/commonjs/components/icons/index.js +1 -1
  41. package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
  42. package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
  43. package/lib/commonjs/components/onboarding/PinInput.js +1 -1
  44. package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
  45. package/lib/commonjs/config/api.js +1 -1
  46. package/lib/commonjs/constants/index.js +1 -1
  47. package/lib/commonjs/context/AuthContext.js +1 -1
  48. package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
  49. package/lib/commonjs/hooks/useConnections.js +1 -1
  50. package/lib/commonjs/hooks/useCredentials.js +1 -1
  51. package/lib/commonjs/hooks/useUserConnections.js +1 -1
  52. package/lib/commonjs/index.js +1 -1
  53. package/lib/commonjs/services/apiClient.js +1 -1
  54. package/lib/commonjs/services/apiKeyService.js +1 -1
  55. package/lib/commonjs/services/authService.js +1 -1
  56. package/lib/commonjs/services/biometricPinService.js +1 -1
  57. package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
  58. package/lib/commonjs/services/chatGPTConversationService.js +1 -1
  59. package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
  60. package/lib/commonjs/services/claudeConversationService.js +1 -1
  61. package/lib/commonjs/services/connectedAccountsService.js +1 -1
  62. package/lib/commonjs/services/googleAuthService.js +1 -1
  63. package/lib/commonjs/services/hingeDataExtractor.js +1 -1
  64. package/lib/commonjs/services/hingeDataService.js +1 -1
  65. package/lib/commonjs/services/imageCompressionService.js +1 -1
  66. package/lib/commonjs/services/instagramDataExtractor.js +1 -1
  67. package/lib/commonjs/services/instagramDataService.js +1 -1
  68. package/lib/commonjs/services/jwtStorageService.js +1 -1
  69. package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
  70. package/lib/commonjs/services/linkedinProfileService.js +1 -1
  71. package/lib/commonjs/services/linkedinScrapingService.js +1 -1
  72. package/lib/commonjs/services/llmDataStorage.js +1 -1
  73. package/lib/commonjs/services/mobileTrainingService.js +1 -1
  74. package/lib/commonjs/services/oauthService.js +1 -1
  75. package/lib/commonjs/services/pinEncryptionService.js +1 -1
  76. package/lib/commonjs/services/pinStorageUtils.js +1 -1
  77. package/lib/commonjs/services/platformAuthService.js +1 -1
  78. package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
  79. package/lib/commonjs/services/sephoraDataService.js +1 -1
  80. package/lib/commonjs/services/storageService.js +1 -1
  81. package/lib/commonjs/services/telegramDataExtractor.js +1 -1
  82. package/lib/commonjs/services/telegramDataService.js +2 -4
  83. package/lib/commonjs/services/trainingApiHelpers.js +1 -1
  84. package/lib/commonjs/services/userConnectionsService.js +1 -1
  85. package/lib/commonjs/services/youtubeMigrationService.js +1 -1
  86. package/lib/commonjs/theme/index.js +1 -1
  87. package/lib/commonjs/types/index.js +1 -1
  88. package/lib/commonjs/types.js +1 -1
  89. package/lib/commonjs/utils/Portal.js +1 -1
  90. package/lib/commonjs/utils/api.js +1 -1
  91. package/lib/commonjs/utils/assetRegistry.js +1 -1
  92. package/lib/commonjs/utils/auth.js +1 -1
  93. package/lib/commonjs/utils/connectorTests.js +1 -1
  94. package/lib/commonjs/utils/crypto.js +1 -1
  95. package/lib/commonjs/utils/debugHelper.js +1 -1
  96. package/lib/commonjs/utils/encryption.js +1 -1
  97. package/lib/commonjs/utils/eventUtils.js +1 -1
  98. package/lib/commonjs/utils/haptics.js +1 -1
  99. package/lib/commonjs/utils/imagePreloader.js +1 -1
  100. package/lib/commonjs/utils/networkDiagnostics.js +1 -1
  101. package/lib/commonjs/utils/onairosApi.js +1 -1
  102. package/lib/commonjs/utils/programmaticFlow.js +1 -1
  103. package/lib/commonjs/utils/retryHelper.js +1 -1
  104. package/lib/commonjs/utils/secureStorage.js +1 -1
  105. package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
  106. package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
  107. package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
  108. package/lib/commonjs/utils/webviewScripts/index.js +1 -1
  109. package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
  110. package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
  111. package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
  112. package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
  113. package/lib/module/api/index.js +1 -1
  114. package/lib/module/components/BodyText.js +1 -1
  115. package/lib/module/components/BrandMark.js +1 -1
  116. package/lib/module/components/CodeInput.js +1 -1
  117. package/lib/module/components/EmailInput.js +1 -1
  118. package/lib/module/components/GoogleButton.js +1 -1
  119. package/lib/module/components/HeadingGroup.js +1 -1
  120. package/lib/module/components/LLMDataInputModal.js +1 -1
  121. package/lib/module/components/ModalHeader.js +1 -1
  122. package/lib/module/components/ModalSheet.js +1 -1
  123. package/lib/module/components/Onairos.js +1 -1
  124. package/lib/module/components/OnairosButton.js +1 -1
  125. package/lib/module/components/OnairosSignInButton.js +1 -1
  126. package/lib/module/components/Overlay.js +1 -1
  127. package/lib/module/components/PersonaImage.js +1 -1
  128. package/lib/module/components/PersonaLoadingScreen.js +1 -1
  129. package/lib/module/components/PersonalizationConsentScreen.js +1 -1
  130. package/lib/module/components/PinCreationScreen.js +1 -1
  131. package/lib/module/components/PinInput.js +1 -1
  132. package/lib/module/components/PlatformConnectorsStep.js +1 -1
  133. package/lib/module/components/PlatformList.js +1 -1
  134. package/lib/module/components/PlatformToggle.js +1 -1
  135. package/lib/module/components/PrimaryButton.js +1 -1
  136. package/lib/module/components/SignInMatchAnimation.js +1 -1
  137. package/lib/module/components/SignInStep.js +1 -1
  138. package/lib/module/components/UniversalOnboarding.js +1 -1
  139. package/lib/module/components/VerificationStep.js +1 -1
  140. package/lib/module/components/WelcomeScreen.js +1 -1
  141. package/lib/module/components/icons/Basicproficon.js +1 -1
  142. package/lib/module/components/icons/Basicprofile.js +1 -1
  143. package/lib/module/components/icons/Checkbox.js +1 -1
  144. package/lib/module/components/icons/Checkmark.js +1 -1
  145. package/lib/module/components/icons/Contentanalysis.js +1 -1
  146. package/lib/module/components/icons/Contenticon.js +1 -1
  147. package/lib/module/components/icons/EnochE.js +1 -1
  148. package/lib/module/components/icons/Personalityicon.js +1 -1
  149. package/lib/module/components/icons/Personalityprofile.js +1 -1
  150. package/lib/module/components/icons/Personalitytraits.js +1 -1
  151. package/lib/module/components/icons/Userpreferences.js +1 -1
  152. package/lib/module/components/onboarding/OAuthWebView.js +1 -1
  153. package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
  154. package/lib/module/components/onboarding/PinInput.js +1 -1
  155. package/lib/module/components/onboarding/PlatformConnector.js +1 -1
  156. package/lib/module/config/api.js +1 -1
  157. package/lib/module/constants/index.js +1 -1
  158. package/lib/module/context/AuthContext.js +1 -1
  159. package/lib/module/hooks/useConnectedAccounts.js +1 -1
  160. package/lib/module/hooks/useConnections.js +1 -1
  161. package/lib/module/hooks/useCredentials.js +1 -1
  162. package/lib/module/hooks/useUserConnections.js +1 -1
  163. package/lib/module/index.js +1 -1
  164. package/lib/module/services/apiClient.js +1 -1
  165. package/lib/module/services/apiKeyService.js +1 -1
  166. package/lib/module/services/authService.js +1 -1
  167. package/lib/module/services/biometricPinService.js +1 -1
  168. package/lib/module/services/chatGPTConversationExtractor.js +1 -1
  169. package/lib/module/services/chatGPTConversationService.js +1 -1
  170. package/lib/module/services/claudeConversationExtractor.js +1 -1
  171. package/lib/module/services/claudeConversationService.js +1 -1
  172. package/lib/module/services/connectedAccountsService.js +1 -1
  173. package/lib/module/services/googleAuthService.js +1 -1
  174. package/lib/module/services/hingeDataExtractor.js +1 -1
  175. package/lib/module/services/hingeDataService.js +1 -1
  176. package/lib/module/services/imageCompressionService.js +1 -1
  177. package/lib/module/services/instagramDataExtractor.js +1 -1
  178. package/lib/module/services/instagramDataService.js +1 -1
  179. package/lib/module/services/jwtStorageService.js +1 -1
  180. package/lib/module/services/linkedinDOMExtractor.js +1 -1
  181. package/lib/module/services/linkedinProfileService.js +1 -1
  182. package/lib/module/services/linkedinScrapingService.js +1 -1
  183. package/lib/module/services/llmDataStorage.js +1 -1
  184. package/lib/module/services/mobileTrainingService.js +1 -1
  185. package/lib/module/services/oauthService.js +1 -1
  186. package/lib/module/services/pinEncryptionService.js +1 -1
  187. package/lib/module/services/pinStorageUtils.js +1 -1
  188. package/lib/module/services/platformAuthService.js +1 -1
  189. package/lib/module/services/sephoraDataExtractor.js +1 -1
  190. package/lib/module/services/sephoraDataService.js +1 -1
  191. package/lib/module/services/storageService.js +1 -1
  192. package/lib/module/services/telegramDataExtractor.js +1 -1
  193. package/lib/module/services/telegramDataService.js +1 -8
  194. package/lib/module/services/trainingApiHelpers.js +1 -1
  195. package/lib/module/services/userConnectionsService.js +1 -1
  196. package/lib/module/services/youtubeMigrationService.js +1 -1
  197. package/lib/module/theme/index.js +1 -1
  198. package/lib/module/types.js +1 -1
  199. package/lib/module/utils/Portal.js +1 -1
  200. package/lib/module/utils/api.js +1 -1
  201. package/lib/module/utils/assetRegistry.js +1 -1
  202. package/lib/module/utils/auth.js +1 -1
  203. package/lib/module/utils/connectorTests.js +1 -1
  204. package/lib/module/utils/crypto.js +1 -1
  205. package/lib/module/utils/debugHelper.js +1 -1
  206. package/lib/module/utils/encryption.js +1 -1
  207. package/lib/module/utils/eventUtils.js +1 -1
  208. package/lib/module/utils/haptics.js +1 -1
  209. package/lib/module/utils/networkDiagnostics.js +1 -1
  210. package/lib/module/utils/onairosApi.js +1 -1
  211. package/lib/module/utils/programmaticFlow.js +1 -1
  212. package/lib/module/utils/retryHelper.js +1 -1
  213. package/lib/module/utils/secureStorage.js +1 -1
  214. package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
  215. package/lib/module/utils/webviewScripts/claude.js +1 -1
  216. package/lib/module/utils/webviewScripts/hinge.js +1 -1
  217. package/lib/module/utils/webviewScripts/index.js +1 -1
  218. package/lib/module/utils/webviewScripts/instagram.js +1 -1
  219. package/lib/module/utils/webviewScripts/linkedin.js +1 -1
  220. package/lib/module/utils/webviewScripts/sephora.js +1 -1
  221. package/lib/module/utils/webviewScripts/telegram.js +1 -1
  222. package/package.json +1 -1
@@ -1 +1 @@
1
- import{getJWTForRoute,TokenType,getTokenTypeForRoute,clearJWT,getAllTokens,replaceJWTAfterVerification}from'./jwtStorageService';import{API_CONFIG}from'../config/api';let currentRequestId=0x0;const activeRequests=new Map();class ApiClient{constructor(_0x5900c2=API_CONFIG[_0x9641(0x0)],_0x4b1bfe={}){this[_0x9641(0x1)]=_0x5900c2,this[_0x9641(0x2)]=_0x4b1bfe;}async[_0x9641(0x3)](_0x650e99,_0x404afd={}){const _0xd23f81={'fzIzn':_0x9641(0x4),'fZslf':_0x9641(0x5),'mrMgv':_0x9641(0x6),'BdusT':function(_0x490f98,_0x2ad729){return _0x490f98===_0x2ad729;},'uHSxu':function(_0x4d1cca,_0x1f9f4e){return _0x4d1cca===_0x1f9f4e;},'byXOP':_0x9641(0x7),'IqwLU':'rjVIs','UIqRu':_0x9641(0x8),'kwtXr':function(_0x58f42a,_0x3611f3){return _0x58f42a instanceof _0x3611f3;},'cqpQi':_0x9641(0x9),'SHOeH':_0x9641(0xa),'wwPrc':_0x9641(0xb)},_0xc9a0a4=++currentRequestId,_0x10f30d=new AbortController();activeRequests[_0x9641(0xc)](_0xc9a0a4,_0x10f30d);try{console['log']('๐Ÿ”—\x20[API\x20Client]\x20Starting\x20request\x20'+_0xc9a0a4+'\x20to:\x20'+_0x650e99);const _0x199007=getTokenTypeForRoute(_0x650e99);console[_0x9641(0xd)](_0x9641(0xe)+_0x650e99+'\x20requires\x20'+_0x199007+_0x9641(0xf));const _0x40c8c7=await this['getRequestHeaders'](_0x650e99,_0x404afd['requiresAuth']!==![]),_0x2d3575={'method':_0x404afd['method']||'GET','headers':{'Content-Type':'application/json','User-Agent':_0xd23f81[_0x9641(0x10)],..._0x40c8c7,..._0x404afd['headers']},'body':_0x404afd[_0x9641(0x11)]?JSON[_0x9641(0x12)](_0x404afd[_0x9641(0x11)]):undefined,'signal':_0x10f30d[_0x9641(0x13)]};console[_0x9641(0xd)](_0x9641(0x14)+_0xc9a0a4+_0x9641(0x15)+_0x199007+'\x20token');const _0x4ed50a=await fetch(''+this['baseUrl']+_0x650e99,_0x2d3575);console[_0x9641(0xd)](_0x9641(0x16)+_0xc9a0a4+_0x9641(0x17),_0x4ed50a['status']);if(_0xd23f81[_0x9641(0x18)](_0x4ed50a['status'],0x191)){if(_0xd23f81[_0x9641(0x19)](_0xd23f81['byXOP'],_0xd23f81[_0x9641(0x1a)]))return await this[_0x9641(0x1b)](_0xc9a0a4,_0x650e99,_0x199007,_0x404afd);else _0x968e17[_0x9641(0x1c)](_0xd23f81[_0x9641(0x1d)]);}const _0x648410=await _0x4ed50a[_0x9641(0x1e)]();activeRequests[_0x9641(0x1f)](_0xc9a0a4);if(!_0x4ed50a['ok'])return{'success':![],'error':_0x648410[_0x9641(0x20)]||_0x9641(0x21)+_0x4ed50a[_0x9641(0x22)],'status':_0x4ed50a['status'],'tokenType':_0x199007};return{'success':!![],'data':_0x648410,'status':_0x4ed50a[_0x9641(0x22)],'tokenType':_0x199007};}catch(_0x2981ba){if(_0xd23f81[_0x9641(0x18)](_0xd23f81[_0x9641(0x23)],_0xd23f81[_0x9641(0x24)]))_0x45a7e2['warn'](_0xd23f81[_0x9641(0x25)]);else{activeRequests[_0x9641(0x1f)](_0xc9a0a4);if(_0xd23f81[_0x9641(0x26)](_0x2981ba,Error)&&_0x2981ba['name']===_0xd23f81[_0x9641(0x27)])return console['log']('๐Ÿšซ\x20[API\x20Client]\x20Request\x20'+_0xc9a0a4+_0x9641(0x28)),{'success':![],'error':_0xd23f81[_0x9641(0x29)],'status':0x0};return console['error'](_0x9641(0x2a)+_0xc9a0a4+_0x9641(0x2b),_0x2981ba),{'success':![],'error':_0xd23f81[_0x9641(0x26)](_0x2981ba,Error)?_0x2981ba[_0x9641(0x20)]:_0xd23f81[_0x9641(0x2c)],'status':0x0};}}}async[_0x9641(0x2d)](_0x1e1e7f,_0xfadf1){const _0x5683f6={'mNuvn':function(_0x36908d,_0x10e480){return _0x36908d===_0x10e480;},'LmAXp':_0x9641(0x2e),'evCEt':_0x9641(0x2f),'DIjHK':function(_0x2017fb,_0x3ad566){return _0x2017fb!==_0x3ad566;},'ADcVc':'pVcMH','PHutZ':function(_0x40dade,_0x31d77b){return _0x40dade(_0x31d77b);}};if(!_0xfadf1)return _0x5683f6[_0x9641(0x30)](_0x5683f6[_0x9641(0x31)],_0x5683f6[_0x9641(0x32)])?this['request'](_0x42833a,{..._0x1cca0d,'method':'POST','body':_0x3079dc}):{};const _0x12e644=await getJWTForRoute(_0x1e1e7f);if(!_0x12e644){if(_0x5683f6['DIjHK'](_0x5683f6['ADcVc'],_0x9641(0x33))){const _0xa49a73=_0x5683f6[_0x9641(0x34)](getTokenTypeForRoute,_0x1e1e7f);throw new Error(_0x9641(0x35)+_0xa49a73+_0x9641(0x36)+_0x1e1e7f+'.\x20Please\x20authenticate\x20first.');}else{const _0x3ed45b=_0xf63a04(_0x1bcf79);throw new _0x2bb6bd(_0x9641(0x35)+_0x3ed45b+_0x9641(0x36)+_0x42970a+_0x9641(0x37));}}return{'Authorization':_0x12e644};}async['handle401Error'](_0x4c9deb,_0x2119ef,_0xf0775c,_0x270de1){const _0x3eaa00={'hiDQC':function(_0x33a920,_0x4be0d8){return _0x33a920(_0x4be0d8);}};return console[_0x9641(0x38)](_0x9641(0x39)+_0x4c9deb+_0x9641(0x3a)+_0xf0775c+'\x20token\x20on\x20route:\x20'+_0x2119ef),console[_0x9641(0xd)]('๐Ÿ”„\x20[API\x20Client]\x20Clearing\x20'+_0xf0775c+_0x9641(0x3b)),await _0x3eaa00[_0x9641(0x3c)](clearJWT,_0xf0775c),this[_0x9641(0x3d)](_0xf0775c,_0x4c9deb),await this[_0x9641(0x3e)](_0xf0775c,_0x2119ef),console[_0x9641(0xd)](_0x9641(0x3f)+_0xf0775c+_0x9641(0x40)),{'success':![],'error':_0xf0775c+_0x9641(0x41)+_0x2119ef+_0x9641(0x42),'status':0x191,'tokenType':_0xf0775c};}async[_0x9641(0x3e)](_0x3911b4,_0x3cb4bd){const _0x19f7cb={'cNHmq':function(_0x1ce087,_0x5cc8cb){return _0x1ce087 instanceof _0x5cc8cb;},'OnrFl':function(_0x2f882d,_0x3d60cf){return _0x2f882d===_0x3d60cf;},'mogjP':_0x9641(0x9),'RMgmu':_0x9641(0xa),'fATxH':_0x9641(0xb),'FfaaJ':function(_0x5e89c3,_0x3d98a2){return _0x5e89c3!==_0x3d98a2;},'NYZAV':_0x9641(0x4),'khmMF':_0x9641(0x43),'KKfml':_0x9641(0x5),'sMbTJ':'๐Ÿ”„\x20[API\x20Client]\x20Triggering\x20auth\x20token\x20refresh','ssXPO':_0x9641(0x44)};console[_0x9641(0xd)](_0x9641(0x45)+_0x3911b4+_0x9641(0x46)+_0x3cb4bd+')');try{switch(_0x3911b4){case TokenType[_0x9641(0x47)]:if(this[_0x9641(0x2)][_0x9641(0x48)]){if(_0x19f7cb[_0x9641(0x49)]('HNecP',_0x9641(0x4a))){_0x2e50ff[_0x9641(0x1f)](_0x11246a);if(_0x19f7cb[_0x9641(0x4b)](_0x17f0d1,_0x5057f3)&&_0x19f7cb[_0x9641(0x4c)](_0x30df50['name'],_0x19f7cb[_0x9641(0x4d)]))return _0x521bf3[_0x9641(0xd)](_0x9641(0x39)+_0x318b03+_0x9641(0x28)),{'success':![],'error':_0x19f7cb['RMgmu'],'status':0x0};return _0x7f8a14[_0x9641(0x38)](_0x9641(0x2a)+_0x2e49bb+_0x9641(0x2b),_0x743d25),{'success':![],'error':_0x19f7cb[_0x9641(0x4b)](_0x2780f3,_0x11739b)?_0x3acbe7[_0x9641(0x20)]:_0x19f7cb[_0x9641(0x4e)],'status':0x0};}else console['log'](_0x9641(0x4f)),await this[_0x9641(0x2)][_0x9641(0x48)]();}else console[_0x9641(0x1c)](_0x19f7cb['NYZAV']);break;case TokenType[_0x9641(0x50)]:this[_0x9641(0x2)]['triggerOnairosReAuth']?(console[_0x9641(0xd)](_0x19f7cb[_0x9641(0x51)]),await this[_0x9641(0x2)][_0x9641(0x52)]()):console[_0x9641(0x1c)](_0x19f7cb[_0x9641(0x53)]);break;case TokenType[_0x9641(0x54)]:this[_0x9641(0x2)][_0x9641(0x55)]?(console[_0x9641(0xd)](_0x19f7cb[_0x9641(0x56)]),await this[_0x9641(0x2)][_0x9641(0x55)]()):console[_0x9641(0x1c)](_0x19f7cb[_0x9641(0x57)]);break;}}catch(_0x146579){console['error'](_0x9641(0x58)+_0x3911b4+':',_0x146579);}}[_0x9641(0x3d)](_0x2cbb88,_0x45a8c1){const _0x4d36b2={'ZQpRC':function(_0x24f67a,_0x552703){return _0x24f67a===_0x552703;},'SIMrT':_0x9641(0x59),'cOhcW':_0x9641(0x5a)};let _0x38737a=0x0;for(const [_0x8dfc49,_0x4f4ead]of activeRequests[_0x9641(0x5b)]()){_0x8dfc49!==_0x45a8c1&&(_0x4d36b2[_0x9641(0x5c)](_0x9641(0x59),_0x4d36b2[_0x9641(0x5d)])?(_0x4f4ead[_0x9641(0x5e)](),activeRequests[_0x9641(0x1f)](_0x8dfc49),_0x38737a++):_0x1daaf4?_0x284b9d[_0x9641(0xd)](_0x9641(0x5f)+_0x5f5d24+':\x20'+_0x43c1fd[_0x9641(0x60)](0x0,0x14)+'...\x20(length:\x20'+_0x3d8037[_0x9641(0x61)]+')'):_0x30b23c[_0x9641(0xd)]('๐Ÿ“ญ\x20'+_0x18f3f+_0x9641(0x62)));}if(_0x38737a>0x0){if(_0x4d36b2[_0x9641(0x5c)](_0x4d36b2[_0x9641(0x63)],_0x4d36b2[_0x9641(0x63)]))console['log'](_0x9641(0x64)+_0x38737a+_0x9641(0x65)+_0x2cbb88+_0x9641(0x66));else return{'success':![],'error':_0x11e36a[_0x9641(0x20)]||'Request\x20failed\x20with\x20status\x20'+_0x56453d[_0x9641(0x22)],'status':_0x35dcb0['status'],'tokenType':_0x5e6605};}}async['replaceTokenForType'](_0x5e5625,_0x29b9a2){const _0x1e9b23={'RxYnM':function(_0x21ddfd,_0x39376d,_0x4ea720){return _0x21ddfd(_0x39376d,_0x4ea720);}};console['log'](_0x9641(0x67)+_0x5e5625+_0x9641(0xf)),this['cancelRequestsForTokenType'](_0x5e5625);const _0x1592e6=await _0x1e9b23[_0x9641(0x68)](replaceJWTAfterVerification,_0x5e5625,_0x29b9a2);return _0x1592e6&&console['log'](_0x9641(0x69)+_0x5e5625+_0x9641(0x6a)),_0x1592e6;}async[_0x9641(0x6b)](){const _0x32c82f={'BRvOT':_0x9641(0x6c),'VXbxz':function(_0x349596){return _0x349596();},'jYrCe':function(_0x58b716,_0x454277){return _0x58b716===_0x454277;},'VMyBe':_0x9641(0x6d)};console[_0x9641(0xd)](_0x32c82f['BRvOT']);const _0xcd2be5=await _0x32c82f['VXbxz'](getAllTokens);for(const [_0x13b0a9,_0x23591b]of Object[_0x9641(0x5b)](_0xcd2be5)){_0x23591b?_0x32c82f[_0x9641(0x6e)](_0x9641(0x6f),_0x32c82f['VMyBe'])?_0x5d4de5[_0x9641(0xd)]('โœ…\x20[API\x20Client]\x20'+_0x500c5d+_0x9641(0x6a)):console[_0x9641(0xd)]('๐Ÿ”\x20'+_0x13b0a9+':\x20'+_0x23591b[_0x9641(0x60)](0x0,0x14)+_0x9641(0x70)+_0x23591b[_0x9641(0x61)]+')'):console[_0x9641(0xd)]('๐Ÿ“ญ\x20'+_0x13b0a9+_0x9641(0x62));}return _0xcd2be5;}[_0x9641(0x71)](_0x384b82){const _0x480dc7={'tlObX':_0x9641(0x72)};this[_0x9641(0x2)]={...this['authTriggers'],..._0x384b82},console[_0x9641(0xd)](_0x480dc7[_0x9641(0x73)]);}async['get'](_0x254919,_0x53db6b={}){return this[_0x9641(0x3)](_0x254919,{..._0x53db6b,'method':'GET'});}async[_0x9641(0x74)](_0x17b41e,_0x5dd5de,_0x4a5926={}){return this[_0x9641(0x3)](_0x17b41e,{..._0x4a5926,'method':'POST','body':_0x5dd5de});}async[_0x9641(0x75)](_0x192fd6,_0x520057,_0x563052={}){return this['request'](_0x192fd6,{..._0x563052,'method':'PUT','body':_0x520057});}async[_0x9641(0x1f)](_0x5926cd,_0x492174={}){return this[_0x9641(0x3)](_0x5926cd,{..._0x492174,'method':'DELETE'});}}export const apiClient=new ApiClient();export{ApiClient};export const authenticatedRequest=apiClient[_0x9641(0x3)][_0x9641(0x76)](apiClient);export const apiGet=apiClient['get'][_0x9641(0x76)](apiClient);export const apiPost=apiClient[_0x9641(0x74)]['bind'](apiClient);export const apiPut=apiClient['put'][_0x9641(0x76)](apiClient);function _0x9641(_0x1d0ca0,_0x96417a){_0x1d0ca0=_0x1d0ca0-0x0;const _0x521d52=_0x1d0c();let _0x3877f0=_0x521d52[_0x1d0ca0];return _0x3877f0;}export const apiDelete=apiClient[_0x9641(0x1f)][_0x9641(0x76)](apiClient);export default apiClient;function _0x1d0c(){const _0x416fcd=['BASE_URL','baseUrl','authTriggers','request','โš ๏ธ\x20[API\x20Client]\x20No\x20Enoch\x20re-auth\x20trigger\x20configured','โš ๏ธ\x20[API\x20Client]\x20No\x20Onairos\x20re-auth\x20trigger\x20configured','OnairosSDK/1.0.0','vOCQR','NUfGD','AbortError','Request\x20cancelled','Unknown\x20error','set','log','๐ŸŽฏ\x20[API\x20Client]\x20Route\x20','\x20token','mrMgv','body','stringify','signal','๐Ÿ”\x20[API\x20Client]\x20Request\x20','\x20using\x20','๐Ÿ“ก\x20[API\x20Client]\x20Response\x20','\x20status:','BdusT','uHSxu','byXOP','handle401Error','warn','fzIzn','json','delete','message','Request\x20failed\x20with\x20status\x20','status','IqwLU','UIqRu','fZslf','kwtXr','cqpQi','\x20was\x20cancelled','SHOeH','โŒ\x20[API\x20Client]\x20Request\x20','\x20failed:','wwPrc','getRequestHeaders','FSEor','SYogD','mNuvn','LmAXp','evCEt','AVMrv','PHutZ','No\x20','\x20token\x20available\x20for\x20route\x20','.\x20Please\x20authenticate\x20first.','error','๐Ÿšซ\x20[API\x20Client]\x20Request\x20','\x20received\x20401\x20for\x20','\x20token\x20due\x20to\x20401\x20error','hiDQC','cancelRequestsForTokenType','triggerReAuthForTokenType','๐Ÿ”‘\x20[API\x20Client]\x20','\x20token\x20cleared,\x20user\x20needs\x20to\x20re-authenticate','\x20authentication\x20expired\x20for\x20','.\x20Please\x20re-authenticate.','๐Ÿ”‘\x20[API\x20Client]\x20Triggering\x20Onairos\x20re-authentication','โš ๏ธ\x20[API\x20Client]\x20No\x20auth\x20token\x20refresh\x20trigger\x20configured','๐Ÿ”„\x20[API\x20Client]\x20Triggering\x20re-auth\x20for\x20','\x20token\x20(endpoint:\x20','ENOCH','triggerEnochReAuth','FfaaJ','HNecP','cNHmq','OnrFl','mogjP','fATxH','๐Ÿ“ง\x20[API\x20Client]\x20Triggering\x20Enoch\x20email\x20re-verification','ONAIROS','khmMF','triggerOnairosReAuth','KKfml','AUTH','triggerAuthTokenRefresh','sMbTJ','ssXPO','โŒ\x20[API\x20Client]\x20Failed\x20to\x20trigger\x20re-auth\x20for\x20','VxTzY','teati','entries','ZQpRC','SIMrT','abort','๐Ÿ”\x20','substring','length',':\x20null','cOhcW','๐Ÿšซ\x20[API\x20Client]\x20Cancelled\x20','\x20requests\x20due\x20to\x20','\x20token\x20failure','๐Ÿ”„\x20[API\x20Client]\x20Replacing\x20','RxYnM','โœ…\x20[API\x20Client]\x20','\x20token\x20replaced\x20and\x20related\x20requests\x20cancelled','debugTokens','๐Ÿ”\x20[API\x20Client]\x20Debug:\x20Current\x20token\x20status','RGlXC','jYrCe','fhlGb','...\x20(length:\x20','setAuthTriggers','๐Ÿ”ง\x20[API\x20Client]\x20Authentication\x20triggers\x20updated','tlObX','post','put','bind'];_0x1d0c=function(){return _0x416fcd;};return _0x1d0c();}
1
+ import{getJWTForRoute,TokenType,getTokenTypeForRoute,clearJWT,getAllTokens,replaceJWTAfterVerification}from'./jwtStorageService';function _0x4c4f(_0x23796d,_0x4c4f18){_0x23796d=_0x23796d-0x0;const _0x66c5dc=_0x2379();let _0x311cc2=_0x66c5dc[_0x23796d];return _0x311cc2;}import{API_CONFIG}from'../config/api';let currentRequestId=0x0;const activeRequests=new Map();function _0x2379(){const _0x57aa27=['BASE_URL','baseUrl','request','AnPxr','OnairosSDK/1.0.0','eQhRn','Request\x20cancelled','Unknown\x20error','wauwi','log','๐Ÿ”—\x20[API\x20Client]\x20Starting\x20request\x20','\x20to:\x20','iDzPg','๐ŸŽฏ\x20[API\x20Client]\x20Route\x20','\x20requires\x20','\x20token','ewdSL','requiresAuth','kAbso','headers','body','stringify','signal','๐Ÿ”\x20[API\x20Client]\x20Request\x20','\x20using\x20','๐Ÿ“ก\x20[API\x20Client]\x20Response\x20','\x20status:','status','Request\x20failed\x20with\x20status\x20','abort','delete','fMUek','\x20requests\x20due\x20to\x20','\x20token\x20failure','vbaqG','name','xpOgv','๐Ÿšซ\x20[API\x20Client]\x20Request\x20','\x20was\x20cancelled','uznft','\x20failed:','JUYPY','message','getRequestHeaders','โš ๏ธ\x20[API\x20Client]\x20No\x20Enoch\x20re-auth\x20trigger\x20configured','LKLyY','gMCut','โœ…\x20[API\x20Client]\x20','\x20token\x20replaced\x20and\x20related\x20requests\x20cancelled','JiTGB','warn','lltVY','IBqyQ','No\x20','\x20token\x20available\x20for\x20route\x20','.\x20Please\x20authenticate\x20first.','handle401Error','split','EUsnK','cancelRequestsForTokenType','๐Ÿ”‘\x20[API\x20Client]\x20','\x20token\x20cleared,\x20user\x20needs\x20to\x20re-authenticate','\x20token\x20due\x20to\x20401\x20error','\x20authentication\x20expired\x20for\x20','.\x20Please\x20re-authenticate.','triggerReAuthForTokenType','โš ๏ธ\x20[API\x20Client]\x20No\x20Onairos\x20re-auth\x20trigger\x20configured','XtdNC','๐Ÿ”„\x20[API\x20Client]\x20Triggering\x20auth\x20token\x20refresh','iscUn','โš ๏ธ\x20[API\x20Client]\x20No\x20auth\x20token\x20refresh\x20trigger\x20configured','fYuBj','๐Ÿ”„\x20[API\x20Client]\x20Triggering\x20re-auth\x20for\x20','\x20token\x20(endpoint:\x20','authTriggers','triggerEnochReAuth','๐Ÿ“ง\x20[API\x20Client]\x20Triggering\x20Enoch\x20email\x20re-verification','CVacz','ONAIROS','nhmWA','๐Ÿ”‘\x20[API\x20Client]\x20Triggering\x20Onairos\x20re-authentication','triggerOnairosReAuth','UCDAN','Xzwgf','AUTH','CqTXC','triggerAuthTokenRefresh','oixAE','GZARA','ZSkmX','flXJq','โŒ\x20[API\x20Client]\x20Failed\x20to\x20trigger\x20re-auth\x20for\x20','WIgLo','gsmKp','entries','qStDJ','VBTXA','ZlBYE','๐Ÿšซ\x20[API\x20Client]\x20Cancelled\x20','replaceTokenForType','hkYCb','debugTokens','gHNPm','hhanu','WLRvx','pzOMZ','๐Ÿ”\x20','...\x20(length:\x20','length','substring','TYQeR','๐Ÿ“ญ\x20',':\x20null','setAuthTriggers','๐Ÿ”ง\x20[API\x20Client]\x20Authentication\x20triggers\x20updated','HQpMP','get','put','bind','post'];_0x2379=function(){return _0x57aa27;};return _0x2379();}class ApiClient{constructor(_0x27f391=API_CONFIG[_0x4c4f(0x0)],_0x329036={}){this[_0x4c4f(0x1)]=_0x27f391,this['authTriggers']=_0x329036;}async[_0x4c4f(0x2)](_0xda6f6c,_0x126bf8={}){const _0x1daa91={'fMUek':function(_0x4be9aa,_0x3d98ef){return _0x4be9aa>_0x3d98ef;},'wauwi':function(_0x23488c,_0x97366b){return _0x23488c===_0x97366b;},'xRYPn':_0x4c4f(0x3),'iDzPg':function(_0x5655c5,_0x1fba18){return _0x5655c5(_0x1fba18);},'ewdSL':function(_0x5634de,_0x1d7587){return _0x5634de!==_0x1d7587;},'kAbso':_0x4c4f(0x4),'VEeeI':function(_0x42d379,_0x4cc7ff,_0x24a218){return _0x42d379(_0x4cc7ff,_0x24a218);},'JUYPY':function(_0x1f52a4,_0x49c4e8){return _0x1f52a4 instanceof _0x49c4e8;},'vbaqG':function(_0xe5fad9,_0x183b41){return _0xe5fad9===_0x183b41;},'xpOgv':_0x4c4f(0x5),'uznft':_0x4c4f(0x6),'jETdU':_0x4c4f(0x7)},_0x1dae92=++currentRequestId,_0x2f5765=new AbortController();activeRequests['set'](_0x1dae92,_0x2f5765);try{if(_0x1daa91[_0x4c4f(0x8)](_0x4c4f(0x3),_0x1daa91['xRYPn'])){console[_0x4c4f(0x9)](_0x4c4f(0xa)+_0x1dae92+_0x4c4f(0xb)+_0xda6f6c);const _0x222fe4=_0x1daa91[_0x4c4f(0xc)](getTokenTypeForRoute,_0xda6f6c);console['log'](_0x4c4f(0xd)+_0xda6f6c+_0x4c4f(0xe)+_0x222fe4+_0x4c4f(0xf));const _0x2dac3b=await this['getRequestHeaders'](_0xda6f6c,_0x1daa91[_0x4c4f(0x10)](_0x126bf8[_0x4c4f(0x11)],![])),_0x1d7d98={'method':_0x126bf8['method']||'GET','headers':{'Content-Type':'application/json','User-Agent':_0x1daa91[_0x4c4f(0x12)],..._0x2dac3b,..._0x126bf8[_0x4c4f(0x13)]},'body':_0x126bf8[_0x4c4f(0x14)]?JSON[_0x4c4f(0x15)](_0x126bf8[_0x4c4f(0x14)]):undefined,'signal':_0x2f5765[_0x4c4f(0x16)]};console[_0x4c4f(0x9)](_0x4c4f(0x17)+_0x1dae92+_0x4c4f(0x18)+_0x222fe4+'\x20token');const _0x4058da=await _0x1daa91['VEeeI'](fetch,''+this[_0x4c4f(0x1)]+_0xda6f6c,_0x1d7d98);console[_0x4c4f(0x9)](_0x4c4f(0x19)+_0x1dae92+_0x4c4f(0x1a),_0x4058da[_0x4c4f(0x1b)]);if(_0x1daa91[_0x4c4f(0x8)](_0x4058da[_0x4c4f(0x1b)],0x191))return await this['handle401Error'](_0x1dae92,_0xda6f6c,_0x222fe4,_0x126bf8);const _0x58af9c=await _0x4058da['json']();activeRequests['delete'](_0x1dae92);if(!_0x4058da['ok'])return{'success':![],'error':_0x58af9c['message']||_0x4c4f(0x1c)+_0x4058da[_0x4c4f(0x1b)],'status':_0x4058da[_0x4c4f(0x1b)],'tokenType':_0x222fe4};return{'success':!![],'data':_0x58af9c,'status':_0x4058da[_0x4c4f(0x1b)],'tokenType':_0x222fe4};}else{let _0x5adc7e=0x0;for(const [_0x82a47,_0x499244]of _0x1a4cee['entries']()){_0x82a47!==_0xe293e5&&(_0x499244[_0x4c4f(0x1d)](),_0x5eaddf[_0x4c4f(0x1e)](_0x82a47),_0x5adc7e++);}_0x1daa91[_0x4c4f(0x1f)](_0x5adc7e,0x0)&&_0x36408e['log']('๐Ÿšซ\x20[API\x20Client]\x20Cancelled\x20'+_0x5adc7e+_0x4c4f(0x20)+_0x2c4df4+_0x4c4f(0x21));}}catch(_0x5a1a3e){activeRequests[_0x4c4f(0x1e)](_0x1dae92);if(_0x1daa91['JUYPY'](_0x5a1a3e,Error)&&_0x1daa91[_0x4c4f(0x22)](_0x5a1a3e[_0x4c4f(0x23)],'AbortError')){if(_0x1daa91['xpOgv']!==_0x1daa91[_0x4c4f(0x24)])_0x3ef91f[_0x4c4f(0x1d)](),_0x216963['delete'](_0x27b80c),_0x1c4f38++;else return console[_0x4c4f(0x9)](_0x4c4f(0x25)+_0x1dae92+_0x4c4f(0x26)),{'success':![],'error':_0x1daa91[_0x4c4f(0x27)],'status':0x0};}return console['error']('โŒ\x20[API\x20Client]\x20Request\x20'+_0x1dae92+_0x4c4f(0x28),_0x5a1a3e),{'success':![],'error':_0x1daa91[_0x4c4f(0x29)](_0x5a1a3e,Error)?_0x5a1a3e[_0x4c4f(0x2a)]:_0x1daa91['jETdU'],'status':0x0};}}async[_0x4c4f(0x2b)](_0x2f20b5,_0x2d5f2f){const _0x451028={'lltVY':_0x4c4f(0x2c),'gMCut':_0x4c4f(0x2d),'JiTGB':'xzCuy','IBqyQ':function(_0x1e27ba,_0x265b20){return _0x1e27ba(_0x265b20);}};if(!_0x2d5f2f){if(_0x451028[_0x4c4f(0x2e)]!==_0x451028[_0x4c4f(0x2e)])_0x1655d4[_0x4c4f(0x9)](_0x4c4f(0x2f)+_0x2449f8+_0x4c4f(0x30));else return{};}const _0x1931ee=await getJWTForRoute(_0x2f20b5);if(!_0x1931ee){if(_0x451028['JiTGB']!==_0x451028[_0x4c4f(0x31)])_0x42f85c[_0x4c4f(0x32)](_0x451028[_0x4c4f(0x33)]);else{const _0x3dba45=_0x451028[_0x4c4f(0x34)](getTokenTypeForRoute,_0x2f20b5);throw new Error(_0x4c4f(0x35)+_0x3dba45+_0x4c4f(0x36)+_0x2f20b5+_0x4c4f(0x37));}}return{'Authorization':_0x1931ee};}async[_0x4c4f(0x38)](_0x4c5ba2,_0x184ada,_0xb09959,_0x3d7717){const _0x5e1d23={'EUsnK':function(_0x17608a,_0xc1a8d8){return _0x17608a(_0xc1a8d8);}},_0xdd0cff='2|4|0|1|6|3|5'[_0x4c4f(0x39)]('|');let _0x1bf10f=0x0;while(!![]){switch(_0xdd0cff[_0x1bf10f++]){case'0':await _0x5e1d23[_0x4c4f(0x3a)](clearJWT,_0xb09959);continue;case'1':this[_0x4c4f(0x3b)](_0xb09959,_0x4c5ba2);continue;case'2':console['error'](_0x4c4f(0x25)+_0x4c5ba2+'\x20received\x20401\x20for\x20'+_0xb09959+'\x20token\x20on\x20route:\x20'+_0x184ada);continue;case'3':console['log'](_0x4c4f(0x3c)+_0xb09959+_0x4c4f(0x3d));continue;case'4':console[_0x4c4f(0x9)]('๐Ÿ”„\x20[API\x20Client]\x20Clearing\x20'+_0xb09959+_0x4c4f(0x3e));continue;case'5':return{'success':![],'error':_0xb09959+_0x4c4f(0x3f)+_0x184ada+_0x4c4f(0x40),'status':0x191,'tokenType':_0xb09959};case'6':await this['triggerReAuthForTokenType'](_0xb09959,_0x184ada);continue;}break;}}async[_0x4c4f(0x41)](_0x5b6dcb,_0x13fcdb){const _0x3604af={'Xzwgf':_0x4c4f(0x42),'CVacz':_0x4c4f(0x2c),'nhmWA':'XQsJA','KvtFE':function(_0x501a31,_0x5d3118){return _0x501a31!==_0x5d3118;},'UCDAN':_0x4c4f(0x43),'aocsK':'lMvMT','CqTXC':_0x4c4f(0x44),'qZJHQ':function(_0x14bb56,_0x59210a){return _0x14bb56===_0x59210a;},'oixAE':_0x4c4f(0x45),'GZARA':_0x4c4f(0x46),'ZSkmX':function(_0x36e84b,_0x1abbb5){return _0x36e84b===_0x1abbb5;},'flXJq':_0x4c4f(0x47)};console[_0x4c4f(0x9)](_0x4c4f(0x48)+_0x5b6dcb+_0x4c4f(0x49)+_0x13fcdb+')');try{switch(_0x5b6dcb){case TokenType['ENOCH']:this[_0x4c4f(0x4a)][_0x4c4f(0x4b)]?(console[_0x4c4f(0x9)](_0x4c4f(0x4c)),await this[_0x4c4f(0x4a)]['triggerEnochReAuth']()):console[_0x4c4f(0x32)](_0x3604af[_0x4c4f(0x4d)]);break;case TokenType[_0x4c4f(0x4e)]:this[_0x4c4f(0x4a)]['triggerOnairosReAuth']?_0x3604af[_0x4c4f(0x4f)]!==_0x3604af[_0x4c4f(0x4f)]?_0x462633['warn']('โš ๏ธ\x20[API\x20Client]\x20No\x20auth\x20token\x20refresh\x20trigger\x20configured'):(console['log'](_0x4c4f(0x50)),await this[_0x4c4f(0x4a)][_0x4c4f(0x51)]()):_0x3604af['KvtFE'](_0x3604af[_0x4c4f(0x52)],_0x3604af['aocsK'])?console['warn'](_0x4c4f(0x42)):_0x1be3da[_0x4c4f(0x32)](_0x3604af[_0x4c4f(0x53)]);break;case TokenType[_0x4c4f(0x54)]:this['authTriggers']['triggerAuthTokenRefresh']?(console[_0x4c4f(0x9)](_0x3604af[_0x4c4f(0x55)]),await this[_0x4c4f(0x4a)][_0x4c4f(0x56)]()):_0x3604af['qZJHQ'](_0x3604af[_0x4c4f(0x57)],_0x4c4f(0x45))?console[_0x4c4f(0x32)](_0x3604af[_0x4c4f(0x58)]):_0xbba540!==_0x2aa52a&&(_0x3b1aa6[_0x4c4f(0x1d)](),_0x5b5c88[_0x4c4f(0x1e)](_0x19a196),_0x59cabd++);break;}}catch(_0x2e7f5d){_0x3604af[_0x4c4f(0x59)](_0x3604af[_0x4c4f(0x5a)],_0x3604af[_0x4c4f(0x5a)])?console['error'](_0x4c4f(0x5b)+_0x5b6dcb+':',_0x2e7f5d):_0x23fd28[_0x4c4f(0x9)]('๐Ÿšซ\x20[API\x20Client]\x20Cancelled\x20'+_0x1323e3+_0x4c4f(0x20)+_0x5c318c+_0x4c4f(0x21));}}[_0x4c4f(0x3b)](_0x5ed1f9,_0x1c2849){const _0x3c5a91={'wnGaP':function(_0x39dbb4,_0x576116){return _0x39dbb4===_0x576116;},'gSGRv':'zUiZW','HwfRk':_0x4c4f(0x5c),'qStDJ':function(_0x3dd6d0,_0x43c8ad){return _0x3dd6d0>_0x43c8ad;},'VBTXA':function(_0x5d21a5,_0x587cb0){return _0x5d21a5!==_0x587cb0;},'ZlBYE':_0x4c4f(0x5d)};let _0x40824d=0x0;for(const [_0x134d61,_0x5c435c]of activeRequests[_0x4c4f(0x5e)]()){if(_0x134d61!==_0x1c2849){if(_0x3c5a91['wnGaP'](_0x3c5a91['gSGRv'],_0x3c5a91['HwfRk']))return this['request'](_0x5a0e4e,{..._0x4f3bea,'method':'GET'});else _0x5c435c[_0x4c4f(0x1d)](),activeRequests[_0x4c4f(0x1e)](_0x134d61),_0x40824d++;}}_0x3c5a91[_0x4c4f(0x5f)](_0x40824d,0x0)&&(_0x3c5a91[_0x4c4f(0x60)](_0x3c5a91[_0x4c4f(0x61)],_0x3c5a91['ZlBYE'])?(this[_0x4c4f(0x1)]=_0x323de6,this[_0x4c4f(0x4a)]=_0xdad45a):console[_0x4c4f(0x9)](_0x4c4f(0x62)+_0x40824d+_0x4c4f(0x20)+_0x5ed1f9+_0x4c4f(0x21)));}async[_0x4c4f(0x63)](_0x289d28,_0x560498){const _0x211386={'hkYCb':function(_0x14670c,_0x358c1,_0x4fe8bc){return _0x14670c(_0x358c1,_0x4fe8bc);}};console[_0x4c4f(0x9)]('๐Ÿ”„\x20[API\x20Client]\x20Replacing\x20'+_0x289d28+_0x4c4f(0xf)),this['cancelRequestsForTokenType'](_0x289d28);const _0x2144d6=await _0x211386[_0x4c4f(0x64)](replaceJWTAfterVerification,_0x289d28,_0x560498);return _0x2144d6&&console['log'](_0x4c4f(0x2f)+_0x289d28+'\x20token\x20replaced\x20and\x20related\x20requests\x20cancelled'),_0x2144d6;}async[_0x4c4f(0x65)](){const _0x30170d={'hhanu':'๐Ÿ”\x20[API\x20Client]\x20Debug:\x20Current\x20token\x20status','WLRvx':function(_0xfe04e3,_0xf5092c){return _0xfe04e3!==_0xf5092c;},'TYQeR':function(_0x438b8c,_0x5bb43b){return _0x438b8c!==_0x5bb43b;},'LbmmZ':_0x4c4f(0x66)};console[_0x4c4f(0x9)](_0x30170d[_0x4c4f(0x67)]);const _0x5a43c8=await getAllTokens();for(const [_0x2550b3,_0x433bd6]of Object[_0x4c4f(0x5e)](_0x5a43c8)){_0x433bd6?_0x30170d[_0x4c4f(0x68)](_0x4c4f(0x69),'oyuSo')?console[_0x4c4f(0x9)](_0x4c4f(0x6a)+_0x2550b3+':\x20'+_0x433bd6['substring'](0x0,0x14)+_0x4c4f(0x6b)+_0x433bd6[_0x4c4f(0x6c)]+')'):_0x42e0ce[_0x4c4f(0x9)](_0x4c4f(0x6a)+_0xd0a946+':\x20'+_0x4253a3[_0x4c4f(0x6d)](0x0,0x14)+_0x4c4f(0x6b)+_0x3af72b['length']+')'):_0x30170d[_0x4c4f(0x6e)](_0x4c4f(0x66),_0x30170d['LbmmZ'])?_0x405360?_0x5146ba[_0x4c4f(0x9)]('๐Ÿ”\x20'+_0x35a311+':\x20'+_0x20637c[_0x4c4f(0x6d)](0x0,0x14)+'...\x20(length:\x20'+_0x4b56ad[_0x4c4f(0x6c)]+')'):_0x323fee[_0x4c4f(0x9)](_0x4c4f(0x6f)+_0x5bfd0f+_0x4c4f(0x70)):console[_0x4c4f(0x9)](_0x4c4f(0x6f)+_0x2550b3+_0x4c4f(0x70));}return _0x5a43c8;}[_0x4c4f(0x71)](_0x1acf46){const _0x2b5d53={'HQpMP':_0x4c4f(0x72)};this[_0x4c4f(0x4a)]={...this['authTriggers'],..._0x1acf46},console[_0x4c4f(0x9)](_0x2b5d53[_0x4c4f(0x73)]);}async[_0x4c4f(0x74)](_0x2414a7,_0x12e26e={}){return this[_0x4c4f(0x2)](_0x2414a7,{..._0x12e26e,'method':'GET'});}async['post'](_0x35c1e8,_0x52e3d6,_0x132cc5={}){return this[_0x4c4f(0x2)](_0x35c1e8,{..._0x132cc5,'method':'POST','body':_0x52e3d6});}async[_0x4c4f(0x75)](_0x2dcdb3,_0x391cfe,_0x243ace={}){return this[_0x4c4f(0x2)](_0x2dcdb3,{..._0x243ace,'method':'PUT','body':_0x391cfe});}async[_0x4c4f(0x1e)](_0x325471,_0x5143e1={}){return this[_0x4c4f(0x2)](_0x325471,{..._0x5143e1,'method':'DELETE'});}}export const apiClient=new ApiClient();export{ApiClient};export const authenticatedRequest=apiClient[_0x4c4f(0x2)][_0x4c4f(0x76)](apiClient);export const apiGet=apiClient['get'][_0x4c4f(0x76)](apiClient);export const apiPost=apiClient[_0x4c4f(0x77)]['bind'](apiClient);export const apiPut=apiClient['put'][_0x4c4f(0x76)](apiClient);export const apiDelete=apiClient[_0x4c4f(0x1e)]['bind'](apiClient);export default apiClient;
@@ -1 +1 @@
1
- import AsyncStorage from'@react-native-async-storage/async-storage';import NetInfo from'@react-native-community/netinfo';import{API_CONFIG}from'../config/api';export let ApiKeyType=function(_0x272e89){const _0x591e6c={'qukwe':'DEVELOPER','WIMPX':_0x2ff6(0x0),'BTKNU':'INVALID','mQWeq':_0x2ff6(0x1)};return _0x272e89[_0x591e6c['qukwe']]=_0x591e6c['WIMPX'],_0x272e89[_0x591e6c[_0x2ff6(0x2)]]=_0x591e6c[_0x2ff6(0x3)],_0x272e89;}({});const JWT_TOKEN_KEY=_0x2ff6(0x4);let globalConfig=null,validationCache=new Map(),isInitialized=![],userToken=null;const CACHE_DURATION=0x5*0x3c*0x3e8,checkNetworkConnectivity=async()=>{const _0x1c25ed={'OsIjP':function(_0x2d46f7,_0x5503b4){return _0x2d46f7!==_0x5503b4;},'HactT':_0x2ff6(0x5),'cfCfk':_0x2ff6(0x6),'OhjXp':function(_0x3bf11e,_0x179a86){return _0x3bf11e===_0x179a86;}};try{if(_0x1c25ed[_0x2ff6(0x7)](_0x1c25ed[_0x2ff6(0x8)],_0x1c25ed[_0x2ff6(0x9)])){const _0x320cbc=await NetInfo['fetch']();return _0x1c25ed['OhjXp'](_0x320cbc[_0x2ff6(0xa)],!![])&&_0x320cbc[_0x2ff6(0xb)]!==![];}else return{'isValid':![],'error':_0x8b475,'keyType':_0x21d3e8,'isNetworkError':!![]};}catch(_0x36bb6e){return console[_0x2ff6(0xc)](_0x2ff6(0xd),_0x36bb6e),!![];}},API_ENDPOINTS={'production':''+API_CONFIG[_0x2ff6(0xe)],'staging':''+API_CONFIG[_0x2ff6(0xe)],'development':''+API_CONFIG[_0x2ff6(0xe)]};export const initializeApiKey=async _0x1e5d43=>{const _0x1f6210={'aUmZn':_0x2ff6(0xf),'kmRzc':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','BfPCr':function(_0x3b11a6,_0x178508){return _0x3b11a6<_0x178508;},'ZiQDO':function(_0x5d0036,_0x4e311b){return _0x5d0036|_0x4e311b;},'LzMSJ':function(_0x2618e6,_0x3c925c){return _0x2618e6<<_0x3c925c;},'vwbwn':function(_0x3869cf,_0x4e6918){return _0x3869cf&_0x4e6918;},'CTmWa':function(_0x35c1a7,_0x1e03fc){return _0x35c1a7>>_0x1e03fc;},'PTUts':function(_0x4c7196,_0x4fe241){return _0x4c7196!==_0x4fe241;},'mFxmf':function(_0x5af383,_0x17f0b5){return _0x5af383!==_0x17f0b5;},'rjbbh':function(_0x486dbb,_0x220aa8){return _0x486dbb&_0x220aa8;},'rkiPB':_0x2ff6(0x10),'ZcwzJ':_0x2ff6(0x11),'ZfAtW':_0x2ff6(0x12),'xhSZQ':function(_0x100eb2,_0x4ce92e){return _0x100eb2<_0x4ce92e;},'Lpgzs':_0x2ff6(0x13),'fBDyw':'Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20be\x20at\x20least\x2032\x20characters\x20long.','qbRDn':_0x2ff6(0x14),'YHrHz':_0x2ff6(0x15),'pYjPi':'Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20start\x20with\x20dev_,\x20ona_,\x20or\x20pk_','DYNue':function(_0x53e799,_0x31b048){return _0x53e799!==_0x31b048;},'PPLtG':function(_0x3534ef,_0x5137b1){return _0x3534ef===_0x5137b1;},'uVepW':_0x2ff6(0x16),'CQfAR':_0x2ff6(0x17),'DZLtn':'๐Ÿ“\x20SDK\x20Configuration:','DKyCM':function(_0x1d532b,_0x5d52f3){return _0x1d532b+_0x5d52f3;},'NvIui':'Network\x20request\x20failed','amXzW':_0x2ff6(0x18),'tRfuU':_0x2ff6(0x19),'bpPng':_0x2ff6(0x1a),'IoiHr':_0x2ff6(0x1b),'MMOtJ':'No\x20network\x20connection','kCjfF':'1|2|0|4|3','TRcDy':'๐Ÿ”„\x20Continuing\x20in\x20offline\x20mode\x20with\x20basic\x20validation','gxSgU':_0x2ff6(0x1c),'tyHSs':'๐ŸŒ\x20Error\x20details:','rjbdZ':function(_0x4c9306,_0x303133){return _0x4c9306!==_0x303133;},'MVcKQ':_0x2ff6(0x1d),'sUlji':function(_0x4ed95b,_0x81efa8){return _0x4ed95b!==_0x81efa8;},'NKEmd':'lLyIn','uNFoo':_0x2ff6(0x1e),'KUstr':_0x2ff6(0x1f),'vXFaj':function(_0x1bf77e,_0x30c817){return _0x1bf77e!==_0x30c817;},'swSHV':_0x2ff6(0x20),'kPPFM':_0x2ff6(0x21)};try{console[_0x2ff6(0x22)](_0x2ff6(0x23));if(!_0x1e5d43[_0x2ff6(0x24)])throw new Error(_0x1f6210['ZfAtW']);if(_0x1f6210['xhSZQ'](_0x1e5d43[_0x2ff6(0x24)][_0x2ff6(0x25)],0x20)){if('RmOoO'===_0x1f6210['Lpgzs'])throw new Error(_0x1f6210['fBDyw']);else{const _0xae5fa6='API\x20key\x20validation\x20error:\x20'+_0x5d3a33[_0x2ff6(0x26)];return _0xf035ad[_0x2ff6(0x27)](_0x1f6210[_0x2ff6(0x28)],_0x375d03),{'isValid':![],'error':_0xae5fa6,'keyType':_0x3c8d77['INVALID']};}}const _0x5b2a39=[_0x2ff6(0x29),_0x1f6210[_0x2ff6(0x2a)],_0x1f6210[_0x2ff6(0x2b)]],_0x839228=_0x5b2a39[_0x2ff6(0x2c)](_0x183538=>_0x1e5d43['apiKey']['startsWith'](_0x183538));if(!_0x839228)throw new Error(_0x1f6210[_0x2ff6(0x2d)]);globalConfig={'apiKey':_0x1e5d43[_0x2ff6(0x24)],'environment':_0x1e5d43['environment']||'production','enableLogging':_0x1f6210[_0x2ff6(0x2e)](_0x1e5d43[_0x2ff6(0x2f)],![]),'timeout':_0x1e5d43[_0x2ff6(0x1a)]||0x7530,'retryAttempts':_0x1e5d43[_0x2ff6(0x30)]||0x3};if(globalConfig[_0x2ff6(0x2f)]){if(_0x1f6210['PPLtG'](_0x1f6210['uVepW'],_0x1f6210[_0x2ff6(0x31)]))return _0x157fc7;else console['log'](_0x1f6210[_0x2ff6(0x32)],{'environment':globalConfig[_0x2ff6(0x33)],'timeout':globalConfig['timeout'],'retryAttempts':globalConfig[_0x2ff6(0x30)],'apiKeyPrefix':_0x1f6210['DKyCM'](_0x1e5d43[_0x2ff6(0x24)]['substring'](0x0,0x8),'...'),'enableLogging':globalConfig[_0x2ff6(0x2f)]});}const _0x5e8114=await validateApiKey(_0x1e5d43[_0x2ff6(0x24)]);if(!_0x5e8114[_0x2ff6(0x34)]){const _0x37278f=_0x5e8114[_0x2ff6(0x27)]||'',_0x1619ac=_0x5e8114[_0x2ff6(0x35)]||_0x37278f[_0x2ff6(0x36)](_0x1f6210[_0x2ff6(0x37)])||_0x37278f[_0x2ff6(0x36)](_0x1f6210[_0x2ff6(0x38)])||_0x37278f[_0x2ff6(0x36)]('JSON\x20Parse\x20error')||_0x37278f['includes'](_0x1f6210[_0x2ff6(0x39)])||_0x37278f[_0x2ff6(0x36)](_0x1f6210[_0x2ff6(0x3a)])||_0x37278f[_0x2ff6(0x36)]('ENOTFOUND')||_0x37278f[_0x2ff6(0x36)](_0x1f6210[_0x2ff6(0x3b)])||_0x37278f[_0x2ff6(0x36)](_0x1f6210[_0x2ff6(0x3c)]);if(_0x1619ac){const _0x22bbab=_0x1f6210[_0x2ff6(0x3d)][_0x2ff6(0x3e)]('|');let _0x247cbd=0x0;while(!![]){switch(_0x22bbab[_0x247cbd++]){case'0':console[_0x2ff6(0xc)]('๐Ÿ“\x20SDK\x20will\x20function\x20with\x20limited\x20validation.\x20Network\x20connectivity\x20will\x20be\x20retried\x20automatically.');continue;case'1':console[_0x2ff6(0xc)](_0x2ff6(0x3f));continue;case'2':console[_0x2ff6(0xc)](_0x1f6210['TRcDy']);continue;case'3':console[_0x2ff6(0x22)](_0x1f6210[_0x2ff6(0x40)]);continue;case'4':console['warn'](_0x1f6210[_0x2ff6(0x41)],_0x5e8114[_0x2ff6(0x27)]);continue;}break;}}else{if(_0x1f6210['rjbdZ'](_0x1f6210[_0x2ff6(0x42)],_0x1f6210['MVcKQ'])){const _0x170291=_0x1f6210[_0x2ff6(0x43)];let _0x1af9fa='',_0x2057da=0x0;_0x452deb=_0x5b3a6d[_0x2ff6(0x44)](/[^A-Za-z0-9+/]/g,'');while(_0x1f6210['BfPCr'](_0x2057da,_0x493029[_0x2ff6(0x25)])){const _0x5d11b7=_0x170291[_0x2ff6(0x45)](_0x2cf8ed[_0x2ff6(0x46)](_0x2057da++)),_0x9261fe=_0x170291['indexOf'](_0x5630f9[_0x2ff6(0x46)](_0x2057da++)),_0x2a8511=_0x170291[_0x2ff6(0x45)](_0x1823c3[_0x2ff6(0x46)](_0x2057da++)),_0x3bc284=_0x170291['indexOf'](_0x20fdde[_0x2ff6(0x46)](_0x2057da++)),_0x37d31b=_0x1f6210['ZiQDO'](_0x1f6210[_0x2ff6(0x47)](_0x5d11b7<<0x12,_0x9261fe<<0xc)|_0x1f6210[_0x2ff6(0x48)](_0x2a8511,0x6),_0x3bc284);_0x1af9fa+=_0xdfc6b4[_0x2ff6(0x49)](_0x1f6210[_0x2ff6(0x4a)](_0x1f6210[_0x2ff6(0x4b)](_0x37d31b,0x10),0xff));if(_0x1f6210[_0x2ff6(0x4c)](_0x2a8511,0x40))_0x1af9fa+=_0x1eb770[_0x2ff6(0x49)](_0x37d31b>>0x8&0xff);if(_0x1f6210[_0x2ff6(0x4d)](_0x3bc284,0x40))_0x1af9fa+=_0x1f8d8d[_0x2ff6(0x49)](_0x1f6210[_0x2ff6(0x4e)](_0x37d31b,0xff));}return _0x1af9fa;}else throw new Error(_0x2ff6(0x4f)+_0x5e8114['error']);}}await loadJWT(),isInitialized=!![];if(globalConfig['enableLogging']){if(_0x1f6210[_0x2ff6(0x50)](_0x1f6210[_0x2ff6(0x51)],_0x1f6210['NKEmd'])){_0xe74b9['error'](_0x1f6210['rkiPB'],_0x25656e),_0x54d21f=![];throw _0x1eadbb;}else{console[_0x2ff6(0x22)](_0x1f6210[_0x2ff6(0x52)]),console['log'](_0x1f6210[_0x2ff6(0x53)]);userToken&&console[_0x2ff6(0x22)](_0x2ff6(0x54));if(_0x5e8114['permissions']){if(_0x1f6210['vXFaj'](_0x1f6210[_0x2ff6(0x55)],_0x1f6210[_0x2ff6(0x56)]))console['log'](_0x2ff6(0x57),_0x5e8114[_0x2ff6(0x58)]);else return _0x393e89;}if(_0x5e8114[_0x2ff6(0x59)]){if(_0x1f6210[_0x2ff6(0x5a)](_0x2ff6(0x5b),_0x2ff6(0x5b)))console['log'](_0x2ff6(0x5c),_0x5e8114[_0x2ff6(0x59)]);else return _0x45b164[_0x2ff6(0x27)](_0x1f6210[_0x2ff6(0x5d)],_0x1a457a),null;}}}}catch(_0x555cc8){console['error'](_0x1f6210[_0x2ff6(0x5e)],_0x555cc8),isInitialized=![];throw _0x555cc8;}};export const getApiKeyType=_0x646467=>{const _0x2dd41b={'nXBwn':function(_0x1506bc,_0x342bde){return _0x1506bc>=_0x342bde;},'XzByH':_0x2ff6(0x15)};if(_0x2dd41b['nXBwn'](_0x646467[_0x2ff6(0x25)],0x20)&&(_0x646467[_0x2ff6(0x5f)]('dev_')||_0x646467[_0x2ff6(0x5f)](_0x2dd41b['XzByH'])||_0x646467[_0x2ff6(0x5f)]('ona_')))return ApiKeyType['DEVELOPER'];return ApiKeyType[_0x2ff6(0x60)];};export const validateApiKey=async _0x510db3=>{const _0x1ad44d={'UTwmu':function(_0x4cd5c3,_0x3b086e){return _0x4cd5c3!==_0x3b086e;},'gcdWa':function(_0x46d960,_0x39d5e0){return _0x46d960!==_0x39d5e0;},'YbQAu':_0x2ff6(0x61),'SKiHL':'User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','nUwnP':_0x2ff6(0x62),'uRdVX':function(_0x2d52f5,_0x1a0323){return _0x2d52f5!==_0x1a0323;},'ekBIL':function(_0x35390d,_0x1f91f9){return _0x35390d*_0x1f91f9;},'fdbSf':function(_0x556541,_0x484173){return _0x556541/_0x484173;},'ZyAmb':function(_0x67223b,_0x3dc928){return _0x67223b(_0x3dc928);},'xdpsc':function(_0x1f0e26,_0x309054){return _0x1f0e26===_0x309054;},'bPKlC':function(_0xcbe6f,_0x1ca9c8){return _0xcbe6f===_0x1ca9c8;},'UaMpf':'JSON\x20Parse\x20error','xWhtM':_0x2ff6(0x1b),'WLDAw':_0x2ff6(0x3f),'Xdyaz':_0x2ff6(0x63),'noYRr':_0x2ff6(0x1c),'NcAcp':'โœ…\x20API\x20key\x20validation\x20successful','wxXCd':function(_0x2d54ff,_0x45680a){return _0x2d54ff===_0x45680a;},'SVBRC':function(_0x6f9db9,_0x239aef){return _0x6f9db9===_0x239aef;},'fHNig':_0x2ff6(0x64),'tvyGJ':_0x2ff6(0x65),'GUMcT':_0x2ff6(0x66),'LbBzW':'โฑ๏ธ\x20Rate\x20Limits:','RsGqs':_0x2ff6(0x57),'YILgp':'๐Ÿ”‘\x20Developer\x20API\x20key\x20ready\x20for\x20app-level\x20operations','ywpMf':_0x2ff6(0x67),'dNOUn':function(_0x348f17,_0x10e2ce){return _0x348f17!==_0x10e2ce;},'VYLue':_0x2ff6(0x68),'mAqbo':_0x2ff6(0x69),'nbaOu':function(_0x3cb148,_0x59478f){return _0x3cb148-_0x59478f;},'TSSUy':function(_0x30dc72){return _0x30dc72();},'Zejmb':'production','zpKvQ':function(_0x6c3288,_0xf969df){return _0x6c3288===_0xf969df;},'BfsIl':function(_0x23d5ed,_0x5891fd){return _0x23d5ed===_0x5891fd;},'WRVdI':function(_0x49e5ff,_0x1e3d3b){return _0x49e5ff<=_0x1e3d3b;},'lCnMS':function(_0x180603,_0x45a175,_0x3969e3){return _0x180603(_0x45a175,_0x3969e3);},'OpOkU':_0x2ff6(0x6a),'AqkVT':_0x2ff6(0x6b),'jExAI':function(_0x5de75e,_0xfb5fdb){return _0x5de75e!==_0xfb5fdb;},'XYgYY':function(_0x582d5d,_0x54b2ea){return _0x582d5d!==_0x54b2ea;},'YTTYX':function(_0x4d8ada,_0x5d4519){return _0x4d8ada>_0x5d4519;},'ZExxT':function(_0x2f65a1,_0x346790,_0x2e1648){return _0x2f65a1(_0x346790,_0x2e1648);},'oKehE':_0x2ff6(0x6c),'ogagQ':function(_0x1dfab8,_0x551b59){return _0x1dfab8===_0x551b59;},'uJwgT':'bWqVW','bfxTO':_0x2ff6(0x6d),'OipXH':'No\x20response\x20received\x20from\x20server','uaVDS':function(_0x6776e6,_0x2841b3){return _0x6776e6===_0x2841b3;},'JETXP':'rJQpZ','DQZxK':_0x2ff6(0x6e),'Auirb':function(_0x3a1e1d,_0x1c546a){return _0x3a1e1d===_0x1c546a;},'OTUBW':_0x2ff6(0x6f),'GYzUD':function(_0x156a87,_0x18ec2f){return _0x156a87===_0x18ec2f;},'bSONx':_0x2ff6(0x70),'SKeFq':'Onairos\x20API\x20request\x20timed\x20out\x20(504\x20Gateway\x20Timeout).\x20Please\x20try\x20again.','ZzXJx':_0x2ff6(0x71),'tyGbP':_0x2ff6(0x72),'bdUyD':_0x2ff6(0x73),'zLivj':_0x2ff6(0x74),'GpjUL':function(_0x32eb03,_0xa0216){return _0x32eb03||_0xa0216;},'sawHU':_0x2ff6(0x75),'FRMJg':function(_0x96b4f4,_0x5c98f0){return _0x96b4f4===_0x5c98f0;},'EIehq':function(_0x4ba391,_0xca9595){return _0x4ba391!==_0xca9595;},'GcLph':_0x2ff6(0x76),'mnzza':function(_0x559f2e,_0x380905){return _0x559f2e===_0x380905;},'LbBbl':'fKKEr','LXzsB':function(_0xb3653,_0x443f36){return _0xb3653===_0x443f36;},'WZymC':function(_0x42cca3,_0x16e3e8){return _0x42cca3!==_0x16e3e8;},'NwcbC':_0x2ff6(0x77),'Vzgta':_0x2ff6(0x78),'DiSGf':_0x2ff6(0x79),'xOwUY':_0x2ff6(0x7a),'AuPpY':function(_0x34e114,_0xf8c096){return _0x34e114||_0xf8c096;},'xtxAr':_0x2ff6(0x7b),'eTPbg':_0x2ff6(0x7c),'zrpES':function(_0x61c5f3,_0x4f23a7){return _0x61c5f3===_0x4f23a7;},'johXq':function(_0x3c4f02,_0x1ed7db){return _0x3c4f02===_0x1ed7db;},'Btctu':function(_0x2786f1,_0x472220){return _0x2786f1!==_0x472220;},'KRefv':_0x2ff6(0x7d),'EoTKM':function(_0xaf2f89,_0x2b8093){return _0xaf2f89!==_0x2b8093;},'tcgms':function(_0x505255,_0x34d623){return _0x505255!==_0x34d623;},'ZzaFG':function(_0xe74859,_0x12b15d){return _0xe74859(_0x12b15d);},'jFdxh':_0x2ff6(0x7e),'xwlpZ':_0x2ff6(0x7f),'WGJxX':function(_0x3b6a6d,_0x763126){return _0x3b6a6d===_0x763126;},'YTffl':function(_0x8a98c9,_0x24379d){return _0x8a98c9!==_0x24379d;},'ByFZC':_0x2ff6(0x80),'AibSw':_0x2ff6(0x81),'nuJJn':_0x2ff6(0x82),'dYjeJ':_0x2ff6(0x83),'rIrOo':function(_0x1d435d,_0x2a4649){return _0x1d435d===_0x2a4649;},'jKDOU':function(_0x523be9,_0x38cdc9){return _0x523be9===_0x38cdc9;},'BPpHk':function(_0x578945,_0x3c6ea2){return _0x578945*_0x3c6ea2;},'nEGWV':function(_0x16c68a,_0x2d6e4b){return _0x16c68a!==_0x2d6e4b;},'hsEwr':_0x2ff6(0x84),'efPcG':function(_0x4332dd,_0x1d906d){return _0x4332dd!==_0x1d906d;},'NyscW':'OlwXm','nUQdp':_0x2ff6(0xf)};try{var _0x3e543d,_0x4e4367,_0x533e83;console[_0x2ff6(0x22)](_0x1ad44d['ywpMf']);const _0x42246f=_0x1ad44d[_0x2ff6(0x85)](getApiKeyType,_0x510db3);if(_0x42246f===ApiKeyType[_0x2ff6(0x60)]){if(_0x1ad44d[_0x2ff6(0x86)](_0x1ad44d['VYLue'],'ncmKe'))return{'isValid':![],'error':_0x1ad44d[_0x2ff6(0x87)],'keyType':ApiKeyType[_0x2ff6(0x60)]};else{var _0x5061ed;return _0x1ad44d[_0x2ff6(0x88)](_0x5061ed=_0x777ed7,null)&&_0x1ad44d[_0x2ff6(0x89)](_0x5061ed,void 0x0)&&_0x5061ed[_0x2ff6(0x2f)]&&_0x2dd890['error'](_0x1ad44d[_0x2ff6(0x8a)],_0xe1d30f),_0x21d344;}}const _0x2a37e7=validationCache[_0x2ff6(0x8b)](_0x510db3);if(_0x2a37e7&&_0x1ad44d['nbaOu'](Date[_0x2ff6(0x8c)](),_0x2a37e7['timestamp'])<CACHE_DURATION){var _0x2b0446;return(_0x2b0446=globalConfig)!==null&&_0x2b0446!==void 0x0&&_0x2b0446[_0x2ff6(0x2f)]&&console[_0x2ff6(0x22)]('๐Ÿ“‹\x20Using\x20cached\x20API\x20key\x20validation\x20result'),_0x2a37e7[_0x2ff6(0x8d)];}const _0x4d20a7=await _0x1ad44d[_0x2ff6(0x8e)](checkNetworkConnectivity);if(!_0x4d20a7)return console[_0x2ff6(0xc)](_0x2ff6(0x64)),{'isValid':![],'error':_0x2ff6(0x65),'keyType':_0x42246f,'isNetworkError':!![]};const _0x16be82=(_0x1ad44d[_0x2ff6(0x8f)](_0x3e543d=globalConfig,null)||_0x1ad44d[_0x2ff6(0x8f)](_0x3e543d,void 0x0)?void 0x0:_0x3e543d[_0x2ff6(0x33)])||_0x1ad44d['Zejmb'],_0x3b2fc1=API_ENDPOINTS[_0x16be82],_0xe0af13=((_0x4e4367=globalConfig)===null||_0x1ad44d[_0x2ff6(0x90)](_0x4e4367,void 0x0)?void 0x0:_0x4e4367[_0x2ff6(0x1a)])||0x7530,_0x4b90e6=(_0x1ad44d[_0x2ff6(0x91)](_0x533e83=globalConfig,null)||_0x1ad44d[_0x2ff6(0x92)](_0x533e83,void 0x0)?void 0x0:_0x533e83['retryAttempts'])||0x3;for(let _0x135605=0x1;_0x1ad44d[_0x2ff6(0x93)](_0x135605,_0x4b90e6);_0x135605++){const _0x248284=new AbortController(),_0x98a1bd=_0x1ad44d[_0x2ff6(0x94)](setTimeout,()=>_0x248284[_0x2ff6(0x95)](),_0xe0af13);try{if(_0x1ad44d['OpOkU']===_0x1ad44d[_0x2ff6(0x96)])throw new _0x34df80(_0x1ad44d[_0x2ff6(0x97)]);else{var _0x4cca76;_0x1ad44d['jExAI'](_0x4cca76=globalConfig,null)&&_0x1ad44d['XYgYY'](_0x4cca76,void 0x0)&&_0x4cca76[_0x2ff6(0x2f)]&&_0x1ad44d['YTTYX'](_0x135605,0x1)&&console['log'](_0x2ff6(0x98)+_0x135605+'/'+_0x4b90e6+_0x2ff6(0x99));const _0xbfd965=await _0x1ad44d[_0x2ff6(0x9a)](fetch,_0x3b2fc1+_0x2ff6(0x9b),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x510db3,'User-Agent':_0x2ff6(0x9c),'X-API-Key-Type':_0x42246f,'X-SDK-Platform':'react-native','X-Retry-Attempt':_0x135605[_0x2ff6(0x9d)]()},'body':JSON[_0x2ff6(0x9e)]({'environment':_0x16be82,'sdk_version':_0x1ad44d[_0x2ff6(0x9f)],'platform':'react-native','keyType':_0x42246f,'timestamp':new Date()['toISOString'](),'attempt':_0x135605}),'signal':_0x248284[_0x2ff6(0xa0)]});_0x1ad44d['ZyAmb'](clearTimeout,_0x98a1bd);if(!_0xbfd965){if(_0x1ad44d['ogagQ'](_0x1ad44d['uJwgT'],_0x1ad44d[_0x2ff6(0xa1)]))_0x50e1bc[_0x2ff6(0x22)](_0x2ff6(0xa2)+_0x4cac03+_0x2ff6(0xa3));else throw new Error(_0x1ad44d['OipXH']);}if(_0xbfd965[_0x2ff6(0xa4)]===0x1f6){if(_0x1ad44d['uaVDS'](_0x1ad44d[_0x2ff6(0xa5)],_0x1ad44d[_0x2ff6(0xa5)]))throw new Error(_0x1ad44d['DQZxK']);else _0x2ec18c['log']('๐Ÿ”\x20API\x20Key\x20Permissions:',_0x8d235e[_0x2ff6(0x58)]);}if(_0x1ad44d['Auirb'](_0xbfd965['status'],0x1f7))throw new Error(_0x1ad44d[_0x2ff6(0xa6)]);if(_0x1ad44d[_0x2ff6(0xa7)](_0xbfd965[_0x2ff6(0xa4)],0x1f8)){if(_0x2ff6(0x70)===_0x1ad44d[_0x2ff6(0xa8)])throw new Error(_0x1ad44d[_0x2ff6(0xa9)]);else{_0xf00910[_0x2ff6(0x27)]('โŒ\x20Failed\x20to\x20parse\x20JSON\x20response:',{'error':_0x485446[_0x2ff6(0x26)],'status':_0x5e5bf2[_0x2ff6(0xa4)],'contentType':_0x230502,'attempt':_0x20fc23});throw new _0x32109d(_0x2ff6(0xaa)+_0x3d9ffc['message']);}}const _0x2ef96a=_0xbfd965['headers'][_0x2ff6(0x8b)](_0x1ad44d[_0x2ff6(0xab)]),_0x44f906=_0x2ef96a&&_0x2ef96a[_0x2ff6(0x36)]('application/json');if(!_0x44f906){if(_0x1ad44d[_0x2ff6(0xac)]!==_0x1ad44d[_0x2ff6(0xad)]){const _0x2d3d20=await _0xbfd965[_0x2ff6(0xae)](),_0x2eec18=_0x2d3d20[_0x2ff6(0xaf)](0x0,0xc8);console['error'](_0x1ad44d[_0x2ff6(0xb0)],{'status':_0xbfd965[_0x2ff6(0xa4)],'statusText':_0xbfd965[_0x2ff6(0xb1)],'contentType':_0x1ad44d[_0x2ff6(0xb2)](_0x2ef96a,_0x1ad44d[_0x2ff6(0xb3)]),'preview':_0x2eec18,'url':_0x3b2fc1+_0x2ff6(0x9b),'attempt':_0x135605});if(_0x1ad44d['FRMJg'](_0xbfd965['status'],0x194)){if(_0x1ad44d[_0x2ff6(0xb4)](_0x1ad44d[_0x2ff6(0xb5)],_0x1ad44d['GcLph'])){_0x326b0d[_0x2ff6(0x27)](_0x2ff6(0xb6));throw new _0x217fd3(_0x2ff6(0xb7));}else throw new Error(_0x2ff6(0xb8)+_0x3b2fc1+_0x2ff6(0xb9));}else{if(_0x1ad44d[_0x2ff6(0xba)](_0xbfd965['status'],0x1f4)){if(_0x1ad44d[_0x2ff6(0xbb)](_0x2ff6(0xbc),_0x1ad44d[_0x2ff6(0xbd)]))throw new Error(_0x2ff6(0xbe));else return _0x5fbecc['error'](_0x1ad44d[_0x2ff6(0xbf)],_0x2207b9),null;}else{if(_0xbfd965[_0x2ff6(0xa4)]===0x1f6||_0x1ad44d[_0x2ff6(0xc0)](_0xbfd965[_0x2ff6(0xa4)],0x1f7)){if(_0x1ad44d[_0x2ff6(0xc1)](_0x1ad44d[_0x2ff6(0xc2)],_0x1ad44d[_0x2ff6(0xc2)]))return _0x28f236&&_0x1ad44d[_0x2ff6(0xc3)](_0x492c47,null);else throw new Error(_0x2ff6(0xc4)+_0xbfd965[_0x2ff6(0xa4)]+_0x2ff6(0xc5));}else{if(_0x2d3d20[_0x2ff6(0x36)](_0x1ad44d[_0x2ff6(0xc6)])||_0x2d3d20[_0x2ff6(0x36)](_0x2ff6(0xc7)))throw new Error(_0x2ff6(0xc8));else{if(_0x1ad44d[_0x2ff6(0xc9)](_0x1ad44d[_0x2ff6(0xca)],_0x1ad44d[_0x2ff6(0xcb)]))throw new Error(_0x2ff6(0xcc)+_0xbfd965[_0x2ff6(0xa4)]+_0x2ff6(0xcd)+_0xbfd965[_0x2ff6(0xb1)]+_0x2ff6(0xce)+_0x1ad44d[_0x2ff6(0xcf)](_0x2ef96a,_0x2ff6(0xd0))+'.');else throw new _0x1f3548(_0x2ff6(0xd1));}}}}}else{const _0x56c443=_0x400912[_0x2ff6(0x3e)]('.');if(_0x1ad44d[_0x2ff6(0x89)](_0x56c443['length'],0x3))return _0x315e95[_0x2ff6(0x27)](_0x2ff6(0xd2)),null;const _0x34eeac=_0x56c443[0x1],_0x54bd76=_0x34eeac[_0x2ff6(0x44)](/-/g,'+')[_0x2ff6(0x44)](/_/g,'/'),_0x4d943e=_0x54bd76['padEnd'](_0x1ad44d[_0x2ff6(0xd3)](_0x57ffdb[_0x2ff6(0xd4)](_0x1ad44d[_0x2ff6(0xd5)](_0x54bd76[_0x2ff6(0x25)],0x4)),0x4),'='),_0x2efa44=_0x1ad44d[_0x2ff6(0x85)](_0x1cc5fa,_0x4d943e);return _0x4b65b9['parse'](_0x2efa44);}}let _0x1d51a2;try{if(_0x1ad44d['EIehq'](_0x2ff6(0x7b),_0x1ad44d[_0x2ff6(0xd6)])){var _0x3e1034;return(_0x1ad44d['xdpsc'](_0x3e1034=_0x883e92,null)||_0x1ad44d[_0x2ff6(0x92)](_0x3e1034,void 0x0)?void 0x0:_0x3e1034['apiKey'])||null;}else _0x1d51a2=await _0xbfd965['json']();}catch(_0x5502e2){console[_0x2ff6(0x27)](_0x1ad44d[_0x2ff6(0xd7)],{'error':_0x5502e2[_0x2ff6(0x26)],'status':_0xbfd965[_0x2ff6(0xa4)],'contentType':_0x2ef96a,'attempt':_0x135605});throw new Error(_0x2ff6(0xaa)+_0x5502e2[_0x2ff6(0x26)]);}if(_0xbfd965['ok']&&(_0x1d51a2[_0x2ff6(0xd8)]||_0x1d51a2[_0x2ff6(0xd9)])){var _0x34d1f5;const _0x38eef7={'isValid':!![],'permissions':_0x1d51a2[_0x2ff6(0x58)]||[],'rateLimits':_0x1d51a2[_0x2ff6(0x59)]||null,'keyType':_0x42246f};validationCache[_0x2ff6(0xda)](_0x510db3,{'result':_0x38eef7,'timestamp':Date[_0x2ff6(0x8c)]()});if(_0x1ad44d[_0x2ff6(0x89)](_0x34d1f5=globalConfig,null)&&_0x34d1f5!==void 0x0&&_0x34d1f5[_0x2ff6(0x2f)]){var _0x3c3639,_0x3d6366,_0x3ec6ed;console[_0x2ff6(0x22)](_0x1ad44d[_0x2ff6(0xdb)],{'apiKeyId':(_0x3c3639=_0x1d51a2[_0x2ff6(0x24)])===null||_0x1ad44d[_0x2ff6(0xdc)](_0x3c3639,void 0x0)?void 0x0:_0x3c3639['id'],'appName':_0x1ad44d[_0x2ff6(0xdd)](_0x3d6366=_0x1d51a2[_0x2ff6(0xde)],null)||_0x1ad44d[_0x2ff6(0xdf)](_0x3d6366,void 0x0)?void 0x0:_0x3d6366[_0x2ff6(0xe0)],'usageCount':_0x1ad44d[_0x2ff6(0xe1)](_0x3ec6ed=_0x1d51a2['apiKey'],null)||_0x1ad44d[_0x2ff6(0xe2)](_0x3ec6ed,void 0x0)?void 0x0:_0x3ec6ed[_0x2ff6(0xe3)]});}return _0x38eef7;}else{const _0x2007df=_0x1d51a2[_0x2ff6(0x27)]||_0x1d51a2[_0x2ff6(0x26)]||_0x2ff6(0xe4)+_0xbfd965[_0x2ff6(0xa4)]+':\x20'+_0xbfd965[_0x2ff6(0xb1)],_0x1ff656={'isValid':![],'error':_0x2007df,'keyType':_0x42246f};if(_0xbfd965[_0x2ff6(0xa4)]>=0x190&&_0xbfd965[_0x2ff6(0xa4)]<0x1f4){if(_0x1ad44d[_0x2ff6(0xe5)](_0x1ad44d[_0x2ff6(0xe6)],_0x2ff6(0xe7))){var _0x4045a8;return _0x1ad44d[_0x2ff6(0xe8)](_0x4045a8=globalConfig,null)&&_0x1ad44d[_0x2ff6(0xe9)](_0x4045a8,void 0x0)&&_0x4045a8[_0x2ff6(0x2f)]&&console['error'](_0x1ad44d[_0x2ff6(0x8a)],_0x2007df),_0x1ff656;}else{const _0x1c4681=_0x220f07[_0x2ff6(0x27)]||'',_0x403079=_0xea6c8a[_0x2ff6(0x35)]||_0x1c4681[_0x2ff6(0x36)](_0x2ff6(0xea))||_0x1c4681[_0x2ff6(0x36)](_0x2ff6(0x18))||_0x1c4681[_0x2ff6(0x36)](_0x1ad44d['UaMpf'])||_0x1c4681[_0x2ff6(0x36)]('API\x20validation\x20endpoint\x20returned')||_0x1c4681[_0x2ff6(0x36)](_0x2ff6(0x1a))||_0x1c4681[_0x2ff6(0x36)](_0x2ff6(0x83))||_0x1c4681[_0x2ff6(0x36)](_0x1ad44d[_0x2ff6(0xeb)])||_0x1c4681['includes']('No\x20network\x20connection');if(_0x403079){const _0x5816d9=_0x2ff6(0xec)[_0x2ff6(0x3e)]('|');let _0x4303c6=0x0;while(!![]){switch(_0x5816d9[_0x4303c6++]){case'0':_0x297e59[_0x2ff6(0xc)](_0x1ad44d['WLDAw']);continue;case'1':_0x447137[_0x2ff6(0xc)](_0x1ad44d[_0x2ff6(0xed)]);continue;case'2':_0x49bd16[_0x2ff6(0xc)](_0x2ff6(0xee));continue;case'3':_0x517401[_0x2ff6(0xc)](_0x2ff6(0xef),_0x5f3b02[_0x2ff6(0x27)]);continue;case'4':_0x47f88d[_0x2ff6(0x22)](_0x1ad44d['noYRr']);continue;}break;}}else throw new _0x1fd89e(_0x2ff6(0x4f)+_0x1c881a[_0x2ff6(0x27)]);}}throw new Error(_0x2007df);}}}catch(_0x545b89){var _0x3ed601;_0x1ad44d[_0x2ff6(0xf0)](clearTimeout,_0x98a1bd);if(_0x1ad44d['LXzsB'](_0x545b89[_0x2ff6(0xe0)],_0x1ad44d[_0x2ff6(0xf1)])){const _0x303b7c=_0x2ff6(0xf2)+_0xe0af13+_0x2ff6(0xf3);console[_0x2ff6(0x27)](_0x1ad44d[_0x2ff6(0xf4)]);if(_0x1ad44d[_0x2ff6(0xf5)](_0x135605,_0x4b90e6)){if(_0x1ad44d['YTffl'](_0x1ad44d[_0x2ff6(0xf6)],_0x1ad44d[_0x2ff6(0xf6)])){var _0x28057b,_0x79bf1,_0x27e151;_0xd52be3[_0x2ff6(0x22)](_0x1ad44d[_0x2ff6(0xdb)],{'apiKeyId':_0x1ad44d[_0x2ff6(0x92)](_0x28057b=_0xb4ef0e[_0x2ff6(0x24)],null)||_0x1ad44d['wxXCd'](_0x28057b,void 0x0)?void 0x0:_0x28057b['id'],'appName':_0x1ad44d[_0x2ff6(0xf7)](_0x79bf1=_0x5ca1e7[_0x2ff6(0xde)],null)||_0x1ad44d[_0x2ff6(0x92)](_0x79bf1,void 0x0)?void 0x0:_0x79bf1[_0x2ff6(0xe0)],'usageCount':_0x1ad44d['xdpsc'](_0x27e151=_0x486cc7['apiKey'],null)||_0x1ad44d[_0x2ff6(0xf7)](_0x27e151,void 0x0)?void 0x0:_0x27e151[_0x2ff6(0xe3)]});}else return{'isValid':![],'error':_0x303b7c,'keyType':_0x42246f};}continue;}let _0x25fb13=_0x2ff6(0xf8)+_0x545b89[_0x2ff6(0x26)];if(_0x545b89[_0x2ff6(0x26)]['includes'](_0x1ad44d['UaMpf'])||_0x545b89['message'][_0x2ff6(0x36)](_0x1ad44d['AibSw']))_0x25fb13=_0x2ff6(0xf9)+_0x545b89[_0x2ff6(0x26)];else{if(_0x545b89[_0x2ff6(0x26)][_0x2ff6(0x36)](_0x2ff6(0xea))||_0x545b89[_0x2ff6(0x26)][_0x2ff6(0x36)](_0x1ad44d['xWhtM']))_0x25fb13=_0x2ff6(0xfa)+_0x545b89[_0x2ff6(0x26)];else{if(_0x545b89[_0x2ff6(0x26)][_0x2ff6(0x36)](_0x1ad44d[_0x2ff6(0xfb)])||_0x545b89['message'][_0x2ff6(0x36)](_0x1ad44d[_0x2ff6(0xfc)])){if(_0x1ad44d[_0x2ff6(0xfd)](_0x2ff6(0xfe),_0x2ff6(0xfe)))_0x25fb13=_0x2ff6(0xff)+_0x3b2fc1+_0x2ff6(0x100)+_0x545b89[_0x2ff6(0x26)];else return _0x1149e6[_0x2ff6(0xc)](_0x1ad44d['fHNig']),{'isValid':![],'error':_0x1ad44d[_0x2ff6(0x101)],'keyType':_0x3a4390,'isNetworkError':!![]};}}}console['error'](_0x2ff6(0x102),{'error':_0x545b89,'endpoint':_0x3b2fc1+'/dev/validate-apikey','attempt':_0x135605,'maxRetries':_0x4b90e6,'retryable':_0x135605<_0x4b90e6});if(_0x1ad44d[_0x2ff6(0x103)](_0x135605,_0x4b90e6))return{'isValid':![],'error':_0x25fb13,'keyType':_0x42246f,'isNetworkError':!![]};const _0x18b6c3=Math[_0x2ff6(0x104)](_0x1ad44d[_0x2ff6(0x105)](0x3e8,Math[_0x2ff6(0x106)](0x2,_0x1ad44d[_0x2ff6(0x107)](_0x135605,0x1))),0x1388);if(_0x1ad44d[_0x2ff6(0x108)](_0x3ed601=globalConfig,null)&&_0x1ad44d['YTffl'](_0x3ed601,void 0x0)&&_0x3ed601[_0x2ff6(0x2f)]){if(_0x1ad44d[_0x2ff6(0xc1)](_0x1ad44d[_0x2ff6(0x109)],_0x2ff6(0x84))){const _0xc0e865=_0x1ad44d[_0x2ff6(0x10a)]['split']('|');let _0x6d8178=0x0;while(!![]){switch(_0xc0e865[_0x6d8178++]){case'0':_0x25cb46[_0x2ff6(0x22)]('โœ…\x20Onairos\x20SDK\x20initialized\x20successfully');continue;case'1':_0x5ee943[_0x2ff6(0x59)]&&_0x2563da['log'](_0x1ad44d[_0x2ff6(0x10b)],_0x158617[_0x2ff6(0x59)]);continue;case'2':_0x372bcd['permissions']&&_0x9c2a40[_0x2ff6(0x22)](_0x1ad44d['RsGqs'],_0x3c4b5b['permissions']);continue;case'3':_0x2bc55b[_0x2ff6(0x22)](_0x1ad44d[_0x2ff6(0x10c)]);continue;case'4':_0x4ae1d4&&_0x50a539[_0x2ff6(0x22)](_0x2ff6(0x54));continue;}break;}}else console[_0x2ff6(0x22)]('โณ\x20Waiting\x20'+_0x18b6c3+_0x2ff6(0xa3));}await new Promise(_0x80fb05=>setTimeout(()=>_0x80fb05(),_0x18b6c3));}}return{'isValid':![],'error':_0x2ff6(0x10d),'keyType':_0x42246f};}catch(_0xebb55){if(_0x1ad44d[_0x2ff6(0x10e)](_0x1ad44d[_0x2ff6(0x10f)],_0x2ff6(0x110)))_0x3ae52d['log'](_0x2ff6(0x54));else{const _0x2689c6=_0x2ff6(0x111)+_0xebb55[_0x2ff6(0x26)];return console['error'](_0x1ad44d[_0x2ff6(0x112)],_0xebb55),{'isValid':![],'error':_0x2689c6,'keyType':ApiKeyType['INVALID']};}}};export const getApiConfig=()=>{return globalConfig;};export const getApiKey=()=>{var _0x232079;return((_0x232079=globalConfig)===null||_0x232079===void 0x0?void 0x0:_0x232079[_0x2ff6(0x24)])||null;};export const isApiKeyInitialized=()=>{const _0x37b8fe={'xBvXG':function(_0x262e75,_0x3efdc8){return _0x262e75!==_0x3efdc8;}};return isInitialized&&_0x37b8fe['xBvXG'](globalConfig,null);};export const storeJWT=async _0x35b10c=>{const _0x13a750={'KLRCl':_0x2ff6(0x113),'uOAbC':_0x2ff6(0x114),'GxTBE':_0x2ff6(0x115)};try{if(_0x13a750['uOAbC']===_0x13a750['uOAbC']){var _0x538c8d;await AsyncStorage['setItem'](JWT_TOKEN_KEY,_0x35b10c),userToken=_0x35b10c,(_0x538c8d=globalConfig)!==null&&_0x538c8d!==void 0x0&&_0x538c8d[_0x2ff6(0x2f)]&&console[_0x2ff6(0x22)](_0x13a750[_0x2ff6(0x116)]);}else{_0xe5ae02[_0x2ff6(0x27)](_0x2ff6(0x117));throw new _0x26c78b(_0x13a750['KLRCl']);}}catch(_0x3391fd){console['error']('โŒ\x20Failed\x20to\x20store\x20JWT\x20token:',_0x3391fd);throw _0x3391fd;}};function _0x2e30(){const _0x8028d=['developer','invalid','BTKNU','mQWeq','onairos_jwt_token','mhMqg','UufFK','OsIjP','HactT','cfCfk','isConnected','isInternetReachable','warn','โš ๏ธ\x20Failed\x20to\x20check\x20network\x20connectivity:','BASE_URL','โŒ\x20API\x20key\x20validation\x20error:','โŒ\x20Failed\x20to\x20initialize\x20Onairos\x20SDK:','โŒ\x20Failed\x20to\x20load\x20JWT\x20token:','Developer\x20API\x20key\x20is\x20required\x20for\x20SDK\x20initialization','RmOoO','ona_','pk_','WzZBg','nRxkn','Network\x20error','API\x20validation\x20endpoint\x20returned','timeout','fetch','๐Ÿ“ฑ\x20SDK\x20initialized\x20in\x20offline\x20mode\x20-\x20will\x20retry\x20validation\x20when\x20network\x20is\x20available','cqzAu','โœ…\x20Onairos\x20SDK\x20initialized\x20successfully','๐Ÿ”‘\x20Developer\x20API\x20key\x20ready\x20for\x20app-level\x20operations','XUvTU','tcypT','log','๐Ÿ”‘\x20Initializing\x20Onairos\x20SDK\x20with\x20developer\x20API\x20key...','apiKey','length','message','error','aUmZn','dev_','qbRDn','YHrHz','some','pYjPi','DYNue','enableLogging','retryAttempts','CQfAR','DZLtn','environment','isValid','isNetworkError','includes','NvIui','amXzW','tRfuU','bpPng','IoiHr','MMOtJ','kCjfF','split','โš ๏ธ\x20API\x20key\x20validation\x20failed\x20due\x20to\x20network/connectivity\x20issues','gxSgU','tyHSs','MVcKQ','kmRzc','replace','indexOf','charAt','ZiQDO','LzMSJ','fromCharCode','vwbwn','CTmWa','PTUts','mFxmf','rjbbh','API\x20key\x20validation\x20failed:\x20','sUlji','NKEmd','uNFoo','KUstr','๐ŸŽซ\x20User\x20JWT\x20token\x20loaded\x20from\x20storage','swSHV','kPPFM','๐Ÿ”\x20API\x20Key\x20Permissions:','permissions','rateLimits','PPLtG','rRIbS','โฑ๏ธ\x20Rate\x20Limits:','ZcwzJ','rkiPB','startsWith','INVALID','โŒ\x20API\x20key\x20validation\x20failed\x20(client\x20error):','โŒ\x20Failed\x20to\x20extract\x20user\x20data\x20from\x20JWT:','๐Ÿ“\x20SDK\x20will\x20function\x20with\x20limited\x20validation.\x20Network\x20connectivity\x20will\x20be\x20retried\x20automatically.','โš ๏ธ\x20No\x20network\x20connectivity\x20detected','No\x20network\x20connection\x20available.\x20Please\x20check\x20your\x20internet\x20connection\x20and\x20try\x20again.','0|3|4|2|1','๐Ÿ”\x20Validating\x20developer\x20API\x20key\x20against\x20backend...','zXVfj','Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20be\x20at\x20least\x2032\x20characters\x20and\x20start\x20with\x20\x22dev_\x22,\x20\x22pk_\x22,\x20or\x20\x22ona_\x22','DjUXp','gCkHb','3.3.1','OTvNT','Onairos\x20API\x20is\x20temporarily\x20unavailable\x20(502\x20Bad\x20Gateway).\x20Please\x20try\x20again\x20later.','Onairos\x20API\x20is\x20under\x20maintenance\x20(503\x20Service\x20Unavailable).\x20Please\x20try\x20again\x20later.','ymXop','content-type','xbfMy','PvdHA','โŒ\x20API\x20endpoint\x20returned\x20non-JSON\x20response:','unknown','ccbaK','UDzHh','<html','EYzGF','TjekB','igkjT','โŒ\x20Failed\x20to\x20parse\x20JSON\x20response:','egCmN','AbortError','โฑ๏ธ\x20API\x20key\x20validation\x20timeout','mldtE','Unexpected\x20character','DNS','ENOTFOUND','mdgHm','ZyAmb','dNOUn','mAqbo','UTwmu','gcdWa','YbQAu','get','now','result','TSSUy','xdpsc','zpKvQ','BfsIl','bPKlC','WRVdI','lCnMS','abort','AqkVT','SKiHL','๐Ÿ”„\x20Retry\x20attempt\x20','\x20for\x20API\x20key\x20validation','ZExxT','/dev/validate-apikey','OnairosReactNative/3.3.1','toString','stringify','oKehE','signal','bfxTO','โณ\x20Waiting\x20','ms\x20before\x20retry...','status','JETXP','OTUBW','GYzUD','bSONx','SKeFq','Failed\x20to\x20parse\x20server\x20response\x20as\x20JSON:\x20','ZzXJx','tyGbP','bdUyD','text','substring','zLivj','statusText','GpjUL','sawHU','EIehq','GcLph','โŒ\x20API\x20key\x20permissions\x20insufficient\x20for\x20this\x20operation.','Insufficient\x20API\x20key\x20permissions','API\x20validation\x20endpoint\x20not\x20found\x20(404).\x20The\x20endpoint\x20','/dev/validate-apikey\x20may\x20not\x20exist\x20or\x20be\x20configured\x20correctly.','mnzza','XYgYY','TglsJ','LbBbl','Server\x20error\x20(500).\x20The\x20Onairos\x20backend\x20is\x20experiencing\x20issues.','nUwnP','LXzsB','WZymC','NwcbC','uRdVX','Service\x20unavailable\x20(',').\x20The\x20Onairos\x20backend\x20may\x20be\x20temporarily\x20down.','Vzgta','<!DOCTYPE','Server\x20returned\x20HTML\x20page\x20instead\x20of\x20JSON\x20API\x20response.\x20This\x20often\x20indicates\x20a\x20routing\x20issue\x20or\x20server\x20misconfiguration.','jExAI','DiSGf','xOwUY','API\x20validation\x20endpoint\x20returned\x20','\x20-\x20','.\x20Expected\x20JSON\x20but\x20got\x20','AuPpY','unknown\x20content\x20type','SDK\x20not\x20initialized.\x20Call\x20initializeApiKey()\x20first.','โŒ\x20Invalid\x20JWT\x20token\x20format','ekBIL','ceil','fdbSf','xtxAr','eTPbg','success','valid','set','NcAcp','Auirb','zrpES','application','uaVDS','name','FRMJg','johXq','usageCount','HTTP\x20','Btctu','KRefv','wVPnC','EoTKM','tcgms','Network\x20request\x20failed','xWhtM','0|2|1|3|4','Xdyaz','๐Ÿ”„\x20Continuing\x20in\x20offline\x20mode\x20with\x20basic\x20validation','๐ŸŒ\x20Error\x20details:','ZzaFG','jFdxh','API\x20key\x20validation\x20timeout\x20(','ms)','xwlpZ','WGJxX','ByFZC','SVBRC','Network\x20error\x20during\x20API\x20key\x20validation:\x20','Server\x20returned\x20invalid\x20JSON\x20response.\x20This\x20usually\x20indicates\x20the\x20API\x20endpoint\x20returned\x20HTML\x20instead\x20of\x20JSON\x20(often\x20a\x20404\x20or\x20server\x20error\x20page).\x20','Network\x20connectivity\x20issue.\x20Please\x20check\x20internet\x20connection\x20and\x20verify\x20the\x20Onairos\x20API\x20is\x20accessible.\x20','nuJJn','dYjeJ','rIrOo','oyoVU','DNS\x20resolution\x20failed\x20for\x20','.\x20Please\x20check\x20network\x20settings\x20and\x20domain\x20accessibility.\x20','tvyGJ','๐ŸŒ\x20Network\x20error\x20during\x20API\x20key\x20validation:','jKDOU','min','BPpHk','pow','nbaOu','nEGWV','hsEwr','GUMcT','LbBzW','YILgp','All\x20retry\x20attempts\x20exhausted','efPcG','NyscW','OlwXm','API\x20key\x20validation\x20error:\x20','nUQdp','Rate\x20limit\x20exceeded','YISfd','๐ŸŽซ\x20JWT\x20token\x20stored\x20successfully','GxTBE','โŒ\x20API\x20rate\x20limit\x20exceeded','XgPdH','โŒ\x20Failed\x20to\x20store\x20JWT\x20token:','kJaRL','๐Ÿ—‘๏ธ\x20JWT\x20token\x20cleared','โŒ\x20Failed\x20to\x20clear\x20JWT\x20token:','removeItem','KjmdW','OBakq','RpLFT','MBtgP','iShel','HKAXq','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','VdZvc','jqTax','xnEJr','jyquI','NVbvR','BSxnK','JxzqD','PrSfk','โŒ\x20Failed\x20to\x20decode\x20JWT\x20token:','rWFrW','padEnd','LXgYx','parse','DQIiB','3.0.72','production','โฑ๏ธ\x20Request\x20timeout\x20for:','Request\x20timeout','XwMcS','IGeqe','๐Ÿ‘ค\x20Extracted\x20username\x20from\x20JWT:','IRHtk','xgSuR','โŒ\x20Failed\x20to\x20extract\x20username\x20from\x20JWT:','tkqqj','uyOlz','tTWqp','khjIK','โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20username\x20extraction','yZjGt','TKqAj','qKgCj','Bearer\x20','NKemC','toISOString','WnXly','userName','username','userId','LSpdH','PzNpW','GKwYW','iHSSG','VQTAy','tnatA','TWewV','SVqXw','kKTOg','CTKSY','โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20user\x20data\x20extraction','WiGdX','๐Ÿ‘ค\x20Extracted\x20user\x20data\x20from\x20JWT:','cCWxi','VFfix','DXkaA','email','verified','iat','exp','RlhFm','jlhVE','๐Ÿ“ก\x20Response\x20status:\x20','\x20for\x20','LmDob','ITAKi','gbJGf','LmbRF','xZIjv','clear','RAJut','nRKPE','fcHHo','DjUhM','liZkw','YAHzH','YLTJm','RLDsd','mfooi','ptoWI','KCWAj','LExvw','Insufficient\x20permissions\x20for\x20this\x20operation','User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','vwFxS','UfYNH','โŒ\x20API\x20key\x20authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.','votiD','mIqAM','โŒ\x20API\x20rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','Sdafu','FApuD','NvCNA','ylcCS','VzntC','kXBqc','pFLqH','goKev','hcDTl','๐ŸŒ\x20Making\x20authenticated\x20request\x20to:\x20','QgZdu','QFcXv','YXGLG','lAlOL','BiFgk','XPxJx','pLHyS','rcTrr','gXTuU','mBHSY','ERxoS','eEBva','aYyLb','CcHjy','efdIp','ZvTPc','mTGCm','EYILm','xbkun','seWDj','vbxMq','hRlDO','OuSJw','โŒ\x20Developer\x20API\x20key\x20permissions\x20insufficient','ObSAr','OmNhw','gKaWk','DFnIs','wXWte','qWGpT','headers','IiEwS','LzraM','NdYNC','BsTmR','MaHBf','gxArg','OnairosSDK/1.0.0','pjeGu','poxat','๐ŸŒ\x20Making\x20developer\x20request\x20to:\x20','GTbwv','XmcRX','๐Ÿ“ก\x20Developer\x20request\x20response:\x20','TaJgO','kyzYJ','โŒ\x20Developer\x20API\x20key\x20authentication\x20failed','Invalid\x20or\x20expired\x20API\x20key','UdIEU','aRwWT','mgrBl','BITGR','IknfF','sKZQL','DlsUh','kvAJD','EcbUC','EdXpo','iKHqF','DEVELOPER','GTFhZ','yQWWp','โŒ\x20JWT\x20token\x20authentication\x20failed\x20-\x20token\x20may\x20be\x20expired','Authentication\x20expired.\x20Please\x20verify\x20email\x20again.','AbYHT','UqWZb','SNdIY','ojOQh','nVcte','MIQvB','๐ŸŒ\x20Making\x20user\x20request\x20to:\x20','zzMmc','xzTjv','jdWwn','๐Ÿ“ก\x20User\x20request\x20response:\x20','uDxQR','YOXTh','CQfuh','uULGM','toEil','JCHDt','wFHbP','KcEIP','EdQUm','ivicO','xDgjM','โŒ\x20JWT\x20token\x20permissions\x20insufficient','Lzugq','cnOpw','uYEpp','kOYcb','QIwsH','eNvCn','๐Ÿ—‘๏ธ\x20API\x20key\x20validation\x20cache\x20cleared'];_0x2e30=function(){return _0x8028d;};return _0x2e30();}export const loadJWT=async()=>{const _0x3dddfe={'XgPdH':_0x2ff6(0x11)};try{const _0x4d0c6f=await AsyncStorage['getItem'](JWT_TOKEN_KEY);return userToken=_0x4d0c6f,_0x4d0c6f;}catch(_0x3ecb60){return console['error'](_0x3dddfe[_0x2ff6(0x118)],_0x3ecb60),null;}};export const getJWT=()=>{return userToken;};export const clearJWT=async()=>{const _0x9d6783={'iShel':_0x2ff6(0x119),'KjmdW':function(_0x486952,_0x4919a3){return _0x486952!==_0x4919a3;},'OBakq':function(_0x1ecbbe,_0x16e26f){return _0x1ecbbe===_0x16e26f;},'MBtgP':_0x2ff6(0x11a),'unPkY':_0x2ff6(0x11b),'HKAXq':_0x2ff6(0x11c)};try{var _0x4ea4cc;await AsyncStorage[_0x2ff6(0x11d)](JWT_TOKEN_KEY),userToken=null;if(_0x9d6783[_0x2ff6(0x11e)](_0x4ea4cc=globalConfig,null)&&_0x9d6783[_0x2ff6(0x11e)](_0x4ea4cc,void 0x0)&&_0x4ea4cc[_0x2ff6(0x2f)]){if(_0x9d6783[_0x2ff6(0x11f)](_0x2ff6(0x120),_0x9d6783[_0x2ff6(0x121)])){_0xde384[_0x2ff6(0x27)](_0x9d6783[_0x2ff6(0x122)],_0x3acf78);throw _0x24ac89;}else console['log'](_0x9d6783['unPkY']);}}catch(_0x23d80d){console[_0x2ff6(0x27)](_0x9d6783[_0x2ff6(0x123)],_0x23d80d);}};const base64Decode=_0x422e2f=>{const _0x43f687={'VdZvc':_0x2ff6(0x124),'jqTax':function(_0x39f61b,_0x287443){return _0x39f61b<_0x287443;},'xnEJr':function(_0x4fb000,_0x34a278){return _0x4fb000|_0x34a278;},'jyquI':function(_0x5ba6d2,_0x4eee47){return _0x5ba6d2|_0x4eee47;},'WpKVk':function(_0x4dcdd9,_0x7606b2){return _0x4dcdd9<<_0x7606b2;},'NVbvR':function(_0x21d48a,_0x439ae9){return _0x21d48a<<_0x439ae9;},'BSxnK':function(_0x2ca594,_0x29ab0d){return _0x2ca594!==_0x29ab0d;},'JxzqD':function(_0x35ac26,_0xd2adcc){return _0x35ac26>>_0xd2adcc;},'PrSfk':function(_0x104237,_0x4a5c14){return _0x104237&_0x4a5c14;}},_0x2e1cdb=_0x43f687[_0x2ff6(0x125)];let _0x43e28b='',_0x2940f0=0x0;_0x422e2f=_0x422e2f['replace'](/[^A-Za-z0-9+/]/g,'');while(_0x43f687[_0x2ff6(0x126)](_0x2940f0,_0x422e2f['length'])){const _0x436324=_0x2e1cdb[_0x2ff6(0x45)](_0x422e2f[_0x2ff6(0x46)](_0x2940f0++)),_0x2c1408=_0x2e1cdb[_0x2ff6(0x45)](_0x422e2f[_0x2ff6(0x46)](_0x2940f0++)),_0x3e832b=_0x2e1cdb[_0x2ff6(0x45)](_0x422e2f[_0x2ff6(0x46)](_0x2940f0++)),_0x5773c6=_0x2e1cdb[_0x2ff6(0x45)](_0x422e2f[_0x2ff6(0x46)](_0x2940f0++)),_0x190b38=_0x43f687[_0x2ff6(0x127)](_0x43f687[_0x2ff6(0x128)](_0x43f687['WpKVk'](_0x436324,0x12),_0x43f687[_0x2ff6(0x129)](_0x2c1408,0xc))|_0x3e832b<<0x6,_0x5773c6);_0x43e28b+=String[_0x2ff6(0x49)](_0x190b38>>0x10&0xff);if(_0x43f687[_0x2ff6(0x12a)](_0x3e832b,0x40))_0x43e28b+=String[_0x2ff6(0x49)](_0x43f687[_0x2ff6(0x12b)](_0x190b38,0x8)&0xff);if(_0x5773c6!==0x40)_0x43e28b+=String[_0x2ff6(0x49)](_0x43f687[_0x2ff6(0x12c)](_0x190b38,0xff));}return _0x43e28b;};export const decodeJWTPayload=_0x129b01=>{const _0x41bf45={'rWFrW':function(_0x548815,_0x55a5c8){return _0x548815!==_0x55a5c8;},'pSPIV':function(_0x34afb4,_0x46dd45){return _0x34afb4*_0x46dd45;},'oCFaA':function(_0xfc7fc1,_0x576e64){return _0xfc7fc1/_0x576e64;},'LXgYx':function(_0x41de4e,_0x1f8732){return _0x41de4e(_0x1f8732);},'DQIiB':_0x2ff6(0x12d)};try{const _0x4f2cd9=_0x129b01['split']('.');if(_0x41bf45[_0x2ff6(0x12e)](_0x4f2cd9[_0x2ff6(0x25)],0x3))return console[_0x2ff6(0x27)]('โŒ\x20Invalid\x20JWT\x20token\x20format'),null;const _0x1e61f4=_0x4f2cd9[0x1],_0x3550bc=_0x1e61f4['replace'](/-/g,'+')[_0x2ff6(0x44)](/_/g,'/'),_0x15b729=_0x3550bc[_0x2ff6(0x12f)](_0x41bf45['pSPIV'](Math[_0x2ff6(0xd4)](_0x41bf45['oCFaA'](_0x3550bc[_0x2ff6(0x25)],0x4)),0x4),'='),_0xaa06cc=_0x41bf45[_0x2ff6(0x130)](base64Decode,_0x15b729);return JSON[_0x2ff6(0x131)](_0xaa06cc);}catch(_0x33f4b5){return console[_0x2ff6(0x27)](_0x41bf45[_0x2ff6(0x132)],_0x33f4b5),null;}};export const extractUsernameFromJWT=_0x579f43=>{const _0x42440a={'tkqqj':function(_0x10d2c6,_0x1790e7){return _0x10d2c6!==_0x1790e7;},'yZjGt':function(_0x1c7526,_0x51a07a){return _0x1c7526!==_0x51a07a;},'TKqAj':'SDK\x20not\x20initialized.\x20Call\x20initializeApiKey()\x20first.','qKgCj':function(_0x43f152,_0x1bc89a){return _0x43f152(_0x1bc89a);},'NKemC':'OnairosReactNative/3.0.72','pvela':_0x2ff6(0x133),'tZvfy':_0x2ff6(0x134),'GKwYW':'โŒ\x20API\x20rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','iHSSG':_0x2ff6(0x113),'kKTOg':_0x2ff6(0x135),'CTKSY':_0x2ff6(0x136),'uyOlz':_0x2ff6(0x137),'tTWqp':function(_0x7af43e,_0x228b79){return _0x7af43e===_0x228b79;},'khjIK':_0x2ff6(0x138),'WnXly':function(_0x322fc4,_0x2ce0c7){return _0x322fc4(_0x2ce0c7);},'LSpdH':function(_0x29b146,_0x5d49c3){return _0x29b146!==_0x5d49c3;},'PzNpW':_0x2ff6(0x139),'VQTAy':function(_0x40cd68,_0x167d5b){return _0x40cd68!==_0x167d5b;},'tnatA':_0x2ff6(0x13a),'TWewV':_0x2ff6(0x13b),'SVqXw':_0x2ff6(0x13c)};try{if(_0x42440a[_0x2ff6(0x13d)]('Diwqo',_0x42440a[_0x2ff6(0x13e)])){var _0x38412d;const _0x5f1918=_0x579f43||userToken;if(!_0x5f1918){if(_0x42440a[_0x2ff6(0x13f)](_0x42440a[_0x2ff6(0x140)],_0x42440a[_0x2ff6(0x140)]))return console[_0x2ff6(0xc)](_0x2ff6(0x141)),null;else{var _0x23a974;if(!(_0x42440a[_0x2ff6(0x13d)](_0x23a974=_0x4ab92c,null)&&_0x42440a[_0x2ff6(0x142)](_0x23a974,void 0x0)&&_0x23a974[_0x2ff6(0x24)]))throw new _0x49e18a(_0x42440a[_0x2ff6(0x143)]);const _0x2ee677=_0x42440a[_0x2ff6(0x144)](_0x1dd6f8,_0x14652e[_0x2ff6(0x24)]);return{'Content-Type':'application/json','Authorization':_0x2ff6(0x145)+_0x52fa1c[_0x2ff6(0x24)],'User-Agent':_0x42440a[_0x2ff6(0x146)],'X-SDK-Version':_0x42440a['pvela'],'X-SDK-Environment':_0x47e83b[_0x2ff6(0x33)]||_0x42440a['tZvfy'],'X-API-Key-Type':_0x2ee677,'X-Timestamp':new _0x4469e2()[_0x2ff6(0x147)]()};}}const _0x2c5b38=_0x42440a[_0x2ff6(0x148)](decodeJWTPayload,_0x5f1918);if(!_0x2c5b38)return null;const _0x4efb6e=_0x2c5b38[_0x2ff6(0x149)]||_0x2c5b38[_0x2ff6(0x14a)]||_0x2c5b38[_0x2ff6(0x14b)]||_0x2c5b38['email'];return _0x42440a['tkqqj'](_0x38412d=globalConfig,null)&&_0x42440a[_0x2ff6(0x14c)](_0x38412d,void 0x0)&&_0x38412d[_0x2ff6(0x2f)]&&console[_0x2ff6(0x22)](_0x42440a[_0x2ff6(0x14d)],_0x4efb6e),_0x4efb6e||null;}else{_0xb1c8d4[_0x2ff6(0x27)](_0x42440a[_0x2ff6(0x14e)]);throw new _0x1c69d3(_0x42440a[_0x2ff6(0x14f)]);}}catch(_0x13d0fa){if(_0x42440a[_0x2ff6(0x150)](_0x42440a[_0x2ff6(0x151)],_0x42440a[_0x2ff6(0x152)]))return console[_0x2ff6(0x27)](_0x42440a[_0x2ff6(0x153)],_0x13d0fa),null;else{_0x38de76[_0x2ff6(0x27)](_0x42440a[_0x2ff6(0x154)],_0x46c50c);throw new _0x7e28a2(_0x42440a[_0x2ff6(0x155)]);}}};export const extractUserDataFromJWT=_0x52797a=>{const _0x63dddc={'cCWxi':function(_0x4c1670,_0x2d4839){return _0x4c1670||_0x2d4839;},'VFfix':_0x2ff6(0x156),'DXkaA':function(_0x1f919f,_0x165962){return _0x1f919f(_0x165962);},'kiKwB':function(_0x5a7fdc,_0x2f6518){return _0x5a7fdc!==_0x2f6518;},'yeyzz':_0x2ff6(0x157),'jlhVE':_0x2ff6(0x158)};try{var _0x54b44e;const _0x1844e8=_0x63dddc[_0x2ff6(0x159)](_0x52797a,userToken);if(!_0x1844e8)return console[_0x2ff6(0xc)](_0x63dddc[_0x2ff6(0x15a)]),null;const _0x3beee5=_0x63dddc[_0x2ff6(0x15b)](decodeJWTPayload,_0x1844e8);if(!_0x3beee5)return null;const _0x23c97f={'id':_0x3beee5['id'],'email':_0x3beee5[_0x2ff6(0x15c)],'userId':_0x3beee5[_0x2ff6(0x14b)],'userName':_0x3beee5['userName']||_0x3beee5[_0x2ff6(0x14a)],'verified':_0x3beee5[_0x2ff6(0x15d)],'iat':_0x3beee5[_0x2ff6(0x15e)],'exp':_0x3beee5[_0x2ff6(0x15f)]};return _0x63dddc['kiKwB'](_0x54b44e=globalConfig,null)&&_0x54b44e!==void 0x0&&_0x54b44e[_0x2ff6(0x2f)]&&(_0x63dddc['yeyzz']!==_0x2ff6(0x160)?console[_0x2ff6(0x22)](_0x63dddc[_0x2ff6(0x161)],_0x23c97f):_0x40c632[_0x2ff6(0x22)](_0x2ff6(0x162)+_0x39cfd8[_0x2ff6(0xa4)]+_0x2ff6(0x163)+_0x1717d3)),_0x23c97f;}catch(_0x47bb7f){return console[_0x2ff6(0x27)](_0x2ff6(0x62),_0x47bb7f),null;}};export const isUserAuthenticated=()=>{return!!userToken;};function _0x2ff6(_0x2e306d,_0x2ff65b){_0x2e306d=_0x2e306d-0x0;const _0x12f0af=_0x2e30();let _0x56ec0a=_0x12f0af[_0x2e306d];return _0x56ec0a;}export const getAuthHeaders=()=>{const _0x42e7c0={'gbJGf':function(_0x3ae66e,_0x5c6222){return _0x3ae66e!==_0x5c6222;},'RAJut':'๐Ÿ—‘๏ธ\x20API\x20key\x20validation\x20cache\x20cleared','ITAKi':function(_0x55bc5a,_0x5c3b88){return _0x55bc5a!==_0x5c3b88;},'beQLO':function(_0x497350,_0x336310){return _0x497350===_0x336310;},'LmbRF':_0x2ff6(0x164),'xZIjv':_0x2ff6(0xd1),'nRKPE':function(_0x5777b3,_0x42f652){return _0x5777b3(_0x42f652);},'fcHHo':'OnairosReactNative/3.0.72','vMcBZ':_0x2ff6(0x133),'DjUhM':'production'};var _0x5bf8ab;if(!(_0x42e7c0[_0x2ff6(0x165)](_0x5bf8ab=globalConfig,null)&&_0x42e7c0[_0x2ff6(0x166)](_0x5bf8ab,void 0x0)&&_0x5bf8ab[_0x2ff6(0x24)])){if(_0x42e7c0['beQLO'](_0x42e7c0[_0x2ff6(0x167)],_0x42e7c0[_0x2ff6(0x167)]))throw new Error(_0x42e7c0[_0x2ff6(0x168)]);else{var _0x2222dc;_0x5685ed[_0x2ff6(0x169)](),(_0x2222dc=_0x57c999)!==null&&_0x42e7c0[_0x2ff6(0x166)](_0x2222dc,void 0x0)&&_0x2222dc['enableLogging']&&_0xcc0af5[_0x2ff6(0x22)](_0x42e7c0[_0x2ff6(0x16a)]);}}const _0x437da0=_0x42e7c0[_0x2ff6(0x16b)](getApiKeyType,globalConfig['apiKey']);return{'Content-Type':'application/json','Authorization':'Bearer\x20'+globalConfig['apiKey'],'User-Agent':_0x42e7c0[_0x2ff6(0x16c)],'X-SDK-Version':_0x42e7c0['vMcBZ'],'X-SDK-Environment':globalConfig['environment']||_0x42e7c0[_0x2ff6(0x16d)],'X-API-Key-Type':_0x437da0,'X-Timestamp':new Date()['toISOString']()};};export const getDeveloperAuthHeaders=()=>{const _0x49f7d3={'liZkw':function(_0x15e873,_0x1d9195){return _0x15e873!==_0x1d9195;},'YAHzH':function(_0x23fdbd,_0x177fb2){return _0x23fdbd===_0x177fb2;},'RLDsd':'yQbAo','mfooi':'SDK\x20not\x20initialized.\x20Call\x20initializeApiKey()\x20first.','ptoWI':function(_0x31ee68,_0x131d52){return _0x31ee68(_0x131d52);},'KCWAj':_0x2ff6(0x133),'gcjKw':'production'};var _0x1bcc2a;if(!(_0x49f7d3[_0x2ff6(0x16e)](_0x1bcc2a=globalConfig,null)&&_0x49f7d3[_0x2ff6(0x16e)](_0x1bcc2a,void 0x0)&&_0x1bcc2a[_0x2ff6(0x24)])){if(_0x49f7d3[_0x2ff6(0x16f)](_0x2ff6(0x170),_0x49f7d3[_0x2ff6(0x171)]))return!!_0x338a8c;else throw new Error(_0x49f7d3[_0x2ff6(0x172)]);}const _0x292b8a=_0x49f7d3[_0x2ff6(0x173)](getApiKeyType,globalConfig[_0x2ff6(0x24)]);return{'Content-Type':'application/json','Authorization':_0x2ff6(0x145)+globalConfig['apiKey'],'User-Agent':'OnairosSDK/1.0.0','X-SDK-Version':_0x49f7d3[_0x2ff6(0x174)],'X-SDK-Environment':globalConfig[_0x2ff6(0x33)]||_0x49f7d3['gcjKw'],'X-API-Key-Type':_0x292b8a,'X-Timestamp':new Date()[_0x2ff6(0x147)]()};};export const getUserAuthHeaders=()=>{const _0x42244e={'LExvw':'3.0.72'};var _0x5271f6;if(!userToken)throw new Error('User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.');return{'Content-Type':'application/json','Authorization':_0x2ff6(0x145)+userToken,'User-Agent':'OnairosSDK/1.0.0','X-SDK-Version':_0x42244e[_0x2ff6(0x175)],'X-SDK-Environment':((_0x5271f6=globalConfig)===null||_0x5271f6===void 0x0?void 0x0:_0x5271f6[_0x2ff6(0x33)])||_0x2ff6(0x134)};};export const makeAuthenticatedRequest=async(_0x522ce4,_0x2c3db1={})=>{const _0x415408={'VzntC':_0x2ff6(0xd),'BiFgk':_0x2ff6(0xd1),'mBHSY':_0x2ff6(0x176),'aYyLb':_0x2ff6(0x177),'kXBqc':function(_0x401cd4){return _0x401cd4();},'ylcCS':_0x2ff6(0x178),'RQLEY':_0x2ff6(0x134),'pFLqH':function(_0x5eaebb){return _0x5eaebb();},'nNKDn':function(_0x307682,_0x3359f1){return _0x307682!==_0x3359f1;},'goKev':'lWeLm','hcDTl':_0x2ff6(0x179),'QgZdu':function(_0x4448aa,_0x525b95,_0x26f0ea){return _0x4448aa(_0x525b95,_0x26f0ea);},'QFcXv':function(_0x11bf24,_0x4579f5){return _0x11bf24===_0x4579f5;},'YXGLG':_0x2ff6(0x17a),'XIceE':_0x2ff6(0x17b),'lAlOL':_0x2ff6(0x17c),'XPxJx':_0x2ff6(0x17d),'pLHyS':_0x2ff6(0x113),'rcTrr':_0x2ff6(0x17e),'ERxoS':function(_0x55282e,_0x4696e2){return _0x55282e(_0x4696e2);},'eEBva':_0x2ff6(0x7e),'UOwiu':_0x2ff6(0x17f),'mjaDs':_0x2ff6(0x180),'CcHjy':'โฑ๏ธ\x20Request\x20timeout\x20for:','efdIp':_0x2ff6(0x136)};if(!_0x415408['kXBqc'](isApiKeyInitialized)){if('vwFxS'!==_0x415408[_0x2ff6(0x181)])return _0x13958a[_0x2ff6(0xc)](_0x415408[_0x2ff6(0x182)],_0x24ac25),!![];else throw new Error(_0x2ff6(0xd1));}const _0xae11d1=_0x415408[_0x2ff6(0x183)](getApiConfig),_0x499205=API_ENDPOINTS[_0xae11d1[_0x2ff6(0x33)]||_0x415408['RQLEY']],_0x3a4eb2=''+_0x499205+(_0x522ce4['startsWith']('/')?'':'/')+_0x522ce4,_0x3c573d={..._0x415408[_0x2ff6(0x184)](getAuthHeaders),..._0x2c3db1['headers']||{}},_0x9afd1=new AbortController(),_0x50261f=setTimeout(()=>_0x9afd1['abort'](),_0xae11d1[_0x2ff6(0x1a)]||0x7530);try{if(_0xae11d1['enableLogging']){if(_0x415408['nNKDn'](_0x415408[_0x2ff6(0x185)],_0x415408[_0x2ff6(0x186)]))console['log'](_0x2ff6(0x187)+_0x522ce4);else throw new _0x80c8f6('Onairos\x20API\x20is\x20temporarily\x20unavailable\x20(502\x20Bad\x20Gateway).\x20Please\x20try\x20again\x20later.');}const _0x45f483=await _0x415408[_0x2ff6(0x188)](fetch,_0x3a4eb2,{..._0x2c3db1,'headers':_0x3c573d,'signal':_0x9afd1[_0x2ff6(0xa0)]});clearTimeout(_0x50261f);_0xae11d1[_0x2ff6(0x2f)]&&console['log'](_0x2ff6(0x162)+_0x45f483[_0x2ff6(0xa4)]+_0x2ff6(0x163)+_0x522ce4);if(_0x415408[_0x2ff6(0x189)](_0x45f483[_0x2ff6(0xa4)],0x191)){console[_0x2ff6(0x27)](_0x415408[_0x2ff6(0x18a)]);throw new Error('Invalid\x20or\x20expired\x20API\x20key');}if(_0x415408[_0x2ff6(0x189)](_0x45f483[_0x2ff6(0xa4)],0x193)){console[_0x2ff6(0x27)](_0x2ff6(0xb6));throw new Error('Insufficient\x20API\x20key\x20permissions');}if(_0x415408[_0x2ff6(0x189)](_0x45f483[_0x2ff6(0xa4)],0x1ad)){if(_0x415408['XIceE']===_0x415408[_0x2ff6(0x18b)])throw new _0x53ea01(_0x415408[_0x2ff6(0x18c)]);else{console[_0x2ff6(0x27)](_0x415408[_0x2ff6(0x18d)]);throw new Error(_0x415408[_0x2ff6(0x18e)]);}}return _0x45f483;}catch(_0x20c1de){if(_0x415408[_0x2ff6(0x18f)]===_0x2ff6(0x190)){_0x4a51b1['error']('โŒ\x20JWT\x20token\x20permissions\x20insufficient');throw new _0xa96974(_0x415408[_0x2ff6(0x191)]);}else{_0x415408[_0x2ff6(0x192)](clearTimeout,_0x50261f);if(_0x415408[_0x2ff6(0x189)](_0x20c1de[_0x2ff6(0xe0)],_0x415408[_0x2ff6(0x193)])){if(_0x415408['QFcXv'](_0x415408['UOwiu'],_0x415408['mjaDs']))throw new _0x3e38c2(_0x415408[_0x2ff6(0x194)]);else{console[_0x2ff6(0x27)](_0x415408[_0x2ff6(0x195)],_0x522ce4);throw new Error(_0x415408[_0x2ff6(0x196)]);}}throw _0x20c1de;}}};export const makeDeveloperRequest=async(_0xfb824a,_0x24bb85={})=>{const _0x5b8127={'LAEqo':_0x2ff6(0x61),'pjeGu':_0x2ff6(0x133),'poxat':_0x2ff6(0x134),'OmNhw':function(_0x3958cd){return _0x3958cd();},'gKaWk':function(_0x1b879b,_0x1fb194){return _0x1b879b!==_0x1fb194;},'DFnIs':_0x2ff6(0x197),'qWGpT':_0x2ff6(0xd1),'IiEwS':function(_0x3ed566,_0xffc960){return _0x3ed566===_0xffc960;},'LzraM':_0x2ff6(0x198),'NdYNC':_0x2ff6(0x199),'BsTmR':function(_0x211971,_0x2a077d){return _0x211971===_0x2a077d;},'MaHBf':_0x2ff6(0x19a),'gxArg':_0x2ff6(0x19b),'GTbwv':function(_0x396331,_0x4d8069,_0x1cc648){return _0x396331(_0x4d8069,_0x1cc648);},'XmcRX':function(_0x290461,_0x4883f1){return _0x290461(_0x4883f1);},'TaJgO':_0x2ff6(0x19c),'kyzYJ':_0x2ff6(0x19d),'UdIEU':'whrqs','QSHDr':_0x2ff6(0x19e),'aRwWT':_0x2ff6(0x19f),'mgrBl':'Insufficient\x20API\x20key\x20permissions','BITGR':function(_0x45b965,_0x2bb7ff){return _0x45b965===_0x2bb7ff;},'IknfF':function(_0x4521c2,_0x13fe54){return _0x4521c2!==_0x13fe54;},'sKZQL':_0x2ff6(0x1a0),'DlsUh':_0x2ff6(0x113),'kvAJD':function(_0x1b2abd,_0x568e61){return _0x1b2abd===_0x568e61;},'EcbUC':_0x2ff6(0x7e),'EdXpo':_0x2ff6(0x135),'iKHqF':_0x2ff6(0x136)};if(!_0x5b8127[_0x2ff6(0x1a1)](isApiKeyInitialized)){if(_0x5b8127[_0x2ff6(0x1a2)](_0x5b8127[_0x2ff6(0x1a3)],_0x2ff6(0x1a4)))throw new Error(_0x5b8127[_0x2ff6(0x1a5)]);else _0x644f5c[_0x2ff6(0x22)](_0x2ff6(0x98)+_0x2880e2+'/'+_0x2c42a1+_0x2ff6(0x99));}const _0x45dc95=_0x5b8127[_0x2ff6(0x1a1)](getApiConfig),_0x2bdb03=API_ENDPOINTS[_0x45dc95['environment']||_0x5b8127['poxat']],_0xf3ee18=''+_0x2bdb03+(_0xfb824a[_0x2ff6(0x5f)]('/')?'':'/')+_0xfb824a,_0x39cd25={...getDeveloperAuthHeaders(),..._0x24bb85[_0x2ff6(0x1a6)]||{}},_0x53fdd7=new AbortController(),_0x565a21=setTimeout(()=>_0x53fdd7[_0x2ff6(0x95)](),_0x45dc95[_0x2ff6(0x1a)]||0x7530);try{if(_0x5b8127[_0x2ff6(0x1a7)](_0x5b8127[_0x2ff6(0x1a8)],_0x5b8127[_0x2ff6(0x1a9)]))_0x2f7f13[_0x2ff6(0x27)](_0x5b8127['LAEqo'],_0x2fcb00);else{if(_0x45dc95['enableLogging']){if(_0x5b8127[_0x2ff6(0x1aa)](_0x5b8127[_0x2ff6(0x1ab)],_0x5b8127[_0x2ff6(0x1ac)])){var _0x2f7e40;if(!_0x59f9b4)throw new _0x48f3ce('User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.');return{'Content-Type':'application/json','Authorization':_0x2ff6(0x145)+_0x4d2373,'User-Agent':_0x2ff6(0x1ad),'X-SDK-Version':_0x5b8127[_0x2ff6(0x1ae)],'X-SDK-Environment':((_0x2f7e40=_0x4abdfc)===null||_0x2f7e40===void 0x0?void 0x0:_0x2f7e40[_0x2ff6(0x33)])||_0x5b8127[_0x2ff6(0x1af)]};}else console['log'](_0x2ff6(0x1b0)+_0xfb824a);}const _0x39d354=await _0x5b8127[_0x2ff6(0x1b1)](fetch,_0xf3ee18,{..._0x24bb85,'headers':_0x39cd25,'signal':_0x53fdd7[_0x2ff6(0xa0)]});_0x5b8127[_0x2ff6(0x1b2)](clearTimeout,_0x565a21);_0x45dc95['enableLogging']&&console['log'](_0x2ff6(0x1b3)+_0x39d354[_0x2ff6(0xa4)]+'\x20for\x20'+_0xfb824a);if(_0x5b8127[_0x2ff6(0x1a7)](_0x39d354['status'],0x191)){if(_0x5b8127[_0x2ff6(0x1b4)]!==_0x5b8127[_0x2ff6(0x1b5)]){console[_0x2ff6(0x27)](_0x2ff6(0x1b6));throw new Error(_0x2ff6(0x1b7));}else return null;}if(_0x39d354[_0x2ff6(0xa4)]===0x193){if(_0x5b8127[_0x2ff6(0x1b8)]===_0x5b8127['QSHDr'])throw new _0x3105aa('Server\x20error\x20(500).\x20The\x20Onairos\x20backend\x20is\x20experiencing\x20issues.');else{console[_0x2ff6(0x27)](_0x5b8127[_0x2ff6(0x1b9)]);throw new Error(_0x5b8127[_0x2ff6(0x1ba)]);}}if(_0x5b8127[_0x2ff6(0x1bb)](_0x39d354[_0x2ff6(0xa4)],0x1ad)){if(_0x5b8127[_0x2ff6(0x1bc)]('qzxDw',_0x5b8127[_0x2ff6(0x1bd)])){console[_0x2ff6(0x27)](_0x2ff6(0x117));throw new Error(_0x5b8127[_0x2ff6(0x1be)]);}else throw new _0xac77a0(_0x2ff6(0xcc)+_0x463507['status']+_0x2ff6(0xcd)+_0x31d0e5[_0x2ff6(0xb1)]+_0x2ff6(0xce)+(_0x2ed090||_0x2ff6(0xd0))+'.');}return _0x39d354;}}catch(_0x496816){_0x5b8127[_0x2ff6(0x1b2)](clearTimeout,_0x565a21);if(_0x5b8127[_0x2ff6(0x1bf)](_0x496816[_0x2ff6(0xe0)],_0x5b8127[_0x2ff6(0x1c0)])){console['error'](_0x5b8127[_0x2ff6(0x1c1)],_0xfb824a);throw new Error(_0x5b8127[_0x2ff6(0x1c2)]);}throw _0x496816;}};export const makeUserRequest=async(_0x389f76,_0x68d2f7={})=>{const _0x49959b={'uDxQR':function(_0xb70e3,_0x2575b2){return _0xb70e3!==_0x2575b2;},'YOXTh':'โœ…\x20API\x20key\x20validation\x20successful','ZVlVF':function(_0x41e9dc,_0x15f29c){return _0x41e9dc===_0x15f29c;},'uULGM':function(_0x2186ff,_0x539126){return _0x2186ff===_0x539126;},'TeEUY':function(_0x18c846,_0x5238cd){return _0x18c846===_0x5238cd;},'CQfuh':function(_0x20d056,_0x344240){return _0x20d056===_0x344240;},'KcEIP':_0x2ff6(0x1c3),'juZpN':_0x2ff6(0x0),'EdQUm':_0x2ff6(0x60),'ivicO':_0x2ff6(0x1),'QIwsH':_0x2ff6(0x156),'ojOQh':function(_0x41694e){return _0x41694e();},'nVcte':_0x2ff6(0x177),'MIQvB':_0x2ff6(0x134),'zzMmc':function(_0x4742d7,_0x304561,_0x3f423d){return _0x4742d7(_0x304561,_0x3f423d);},'xzTjv':function(_0xda3a09,_0x6b4f50){return _0xda3a09===_0x6b4f50;},'jdWwn':_0x2ff6(0x1c4),'toEil':_0x2ff6(0x1c5),'gKVfh':_0x2ff6(0x1c6),'JCHDt':function(_0x3bcffa){return _0x3bcffa();},'wFHbP':_0x2ff6(0x1c7),'xDgjM':function(_0x5e147a,_0x5359ab){return _0x5e147a===_0x5359ab;},'PPtNn':_0x2ff6(0x1c8),'EmRQO':_0x2ff6(0x1c9),'Lzugq':'Insufficient\x20permissions\x20for\x20this\x20operation','cnOpw':function(_0x5376ad,_0x3449c8){return _0x5376ad(_0x3449c8);},'DmlNj':_0x2ff6(0x1ca),'cPLNc':_0x2ff6(0x135),'kOYcb':_0x2ff6(0x136)};!isUserAuthenticated()&&await _0x49959b['ojOQh'](loadJWT);if(!_0x49959b[_0x2ff6(0x1cb)](isUserAuthenticated))throw new Error(_0x49959b[_0x2ff6(0x1cc)]);const _0xe34751=_0x49959b['ojOQh'](getApiConfig)||{'environment':_0x2ff6(0x134),'timeout':0x7530,'enableLogging':![]},_0x2020b1=API_ENDPOINTS[_0xe34751['environment']||_0x49959b[_0x2ff6(0x1cd)]],_0x269fbd=''+_0x2020b1+(_0x389f76['startsWith']('/')?'':'/')+_0x389f76,_0x7195b9={..._0x49959b['ojOQh'](getUserAuthHeaders),..._0x68d2f7[_0x2ff6(0x1a6)]||{}},_0x42b948=new AbortController(),_0x237349=setTimeout(()=>_0x42b948[_0x2ff6(0x95)](),_0xe34751[_0x2ff6(0x1a)]||0x7530);try{_0xe34751[_0x2ff6(0x2f)]&&console[_0x2ff6(0x22)](_0x2ff6(0x1ce)+_0x389f76);const _0x198602=await _0x49959b[_0x2ff6(0x1cf)](fetch,_0x269fbd,{..._0x68d2f7,'headers':_0x7195b9,'signal':_0x42b948[_0x2ff6(0xa0)]});clearTimeout(_0x237349);if(_0xe34751['enableLogging']){if(_0x49959b[_0x2ff6(0x1d0)](_0x49959b['jdWwn'],_0x49959b[_0x2ff6(0x1d1)]))console[_0x2ff6(0x22)](_0x2ff6(0x1d2)+_0x198602['status']+'\x20for\x20'+_0x389f76);else{var _0x5a30b4;const _0x45cd98={'isValid':!![],'permissions':_0x5e672a[_0x2ff6(0x58)]||[],'rateLimits':_0xedaab0[_0x2ff6(0x59)]||null,'keyType':_0x551daf};_0x1ae199[_0x2ff6(0xda)](_0x16f305,{'result':_0x45cd98,'timestamp':_0x322563[_0x2ff6(0x8c)]()});if(_0x49959b[_0x2ff6(0x1d3)](_0x5a30b4=_0x51c27d,null)&&_0x49959b[_0x2ff6(0x1d3)](_0x5a30b4,void 0x0)&&_0x5a30b4[_0x2ff6(0x2f)]){var _0x617899,_0x4a926e,_0x12ae79;_0x4e0dad[_0x2ff6(0x22)](_0x49959b[_0x2ff6(0x1d4)],{'apiKeyId':_0x49959b['ZVlVF'](_0x617899=_0x341bec[_0x2ff6(0x24)],null)||_0x617899===void 0x0?void 0x0:_0x617899['id'],'appName':_0x49959b['ZVlVF'](_0x4a926e=_0x310321[_0x2ff6(0xde)],null)||_0x49959b['uULGM'](_0x4a926e,void 0x0)?void 0x0:_0x4a926e['name'],'usageCount':_0x49959b['TeEUY'](_0x12ae79=_0x2217d8[_0x2ff6(0x24)],null)||_0x49959b[_0x2ff6(0x1d5)](_0x12ae79,void 0x0)?void 0x0:_0x12ae79[_0x2ff6(0xe3)]});}return _0x45cd98;}}if(_0x49959b[_0x2ff6(0x1d6)](_0x198602[_0x2ff6(0xa4)],0x191)){if(_0x49959b[_0x2ff6(0x1d5)](_0x49959b[_0x2ff6(0x1d7)],_0x49959b[_0x2ff6(0x1d7)])){console[_0x2ff6(0x27)](_0x49959b['gKVfh']),await _0x49959b[_0x2ff6(0x1d8)](clearJWT);throw new Error(_0x49959b[_0x2ff6(0x1d9)]);}else return _0xbdec0[_0x49959b[_0x2ff6(0x1da)]]=_0x49959b['juZpN'],_0x239631[_0x49959b[_0x2ff6(0x1db)]]=_0x49959b[_0x2ff6(0x1dc)],_0x4ea5a1;}if(_0x49959b[_0x2ff6(0x1dd)](_0x198602[_0x2ff6(0xa4)],0x193)){if(_0x49959b[_0x2ff6(0x1dd)](_0x49959b['PPtNn'],_0x49959b['EmRQO']))_0x6c98c7[_0x2ff6(0x22)]('๐ŸŒ\x20Making\x20authenticated\x20request\x20to:\x20'+_0x3bdec4);else{console[_0x2ff6(0x27)](_0x2ff6(0x1de));throw new Error(_0x49959b[_0x2ff6(0x1df)]);}}return _0x198602;}catch(_0x285c44){_0x49959b[_0x2ff6(0x1e0)](clearTimeout,_0x237349);if(_0x285c44['name']===_0x2ff6(0x7e)){if(_0x49959b[_0x2ff6(0x1d3)](_0x49959b['DmlNj'],_0x2ff6(0x1e1))){console[_0x2ff6(0x27)](_0x49959b['cPLNc'],_0x389f76);throw new Error(_0x49959b[_0x2ff6(0x1e2)]);}else return _0x59bcd6[_0x2ff6(0xc)](_0x49959b[_0x2ff6(0x1e3)]),null;}throw _0x285c44;}};export const clearValidationCache=()=>{const _0x350ff1={'BndId':function(_0x51fd5b,_0x18a31f){return _0x51fd5b!==_0x18a31f;},'eNvCn':function(_0x36077b,_0x40b01f){return _0x36077b!==_0x40b01f;}};var _0x393e7b;validationCache[_0x2ff6(0x169)](),_0x350ff1['BndId'](_0x393e7b=globalConfig,null)&&_0x350ff1[_0x2ff6(0x1e4)](_0x393e7b,void 0x0)&&_0x393e7b[_0x2ff6(0x2f)]&&console['log'](_0x2ff6(0x1e5));};export const resetApiKeyService=()=>{const _0x39d980={'sOFGq':function(_0x209348){return _0x209348();},'Vifla':'๐Ÿ”„\x20API\x20key\x20service\x20reset'};globalConfig=null,isInitialized=![],_0x39d980['sOFGq'](clearValidationCache),console['log'](_0x39d980['Vifla']);};
1
+ import AsyncStorage from'@react-native-async-storage/async-storage';import NetInfo from'@react-native-community/netinfo';import{API_CONFIG}from'../config/api';export let ApiKeyType=function(_0x3909e3){const _0x403303={'gcwGr':_0x113c(0x0),'ctEVF':_0x113c(0x1),'RYKEH':_0x113c(0x2),'JNoMM':_0x113c(0x3)};return _0x3909e3[_0x403303[_0x113c(0x4)]]=_0x403303[_0x113c(0x5)],_0x3909e3[_0x403303[_0x113c(0x6)]]=_0x403303[_0x113c(0x7)],_0x3909e3;}({});const JWT_TOKEN_KEY=_0x113c(0x8);let globalConfig=null,validationCache=new Map(),isInitialized=![],userToken=null;const CACHE_DURATION=0x5*0x3c*0x3e8,checkNetworkConnectivity=async()=>{const _0x108c0b={'zxnCA':_0x113c(0x9),'HxguB':'Rate\x20limit\x20exceeded','wRjEm':function(_0x66fb9a,_0x3fb660){return _0x66fb9a===_0x3fb660;},'cwHNo':function(_0x21324b,_0x23a02c){return _0x21324b!==_0x23a02c;},'EzNnF':_0x113c(0xa),'pPCaH':_0x113c(0xb)};try{const _0x1fcda8=await NetInfo[_0x113c(0xc)]();return _0x108c0b['wRjEm'](_0x1fcda8[_0x113c(0xd)],!![])&&_0x108c0b[_0x113c(0xe)](_0x1fcda8[_0x113c(0xf)],![]);}catch(_0x2341b4){if(_0x108c0b[_0x113c(0x10)]===_0x108c0b[_0x113c(0x10)])return console['warn'](_0x108c0b[_0x113c(0x11)],_0x2341b4),!![];else{_0xf4021f[_0x113c(0x12)](_0x108c0b[_0x113c(0x13)]);throw new _0x3728e2(_0x108c0b[_0x113c(0x14)]);}}},API_ENDPOINTS={'production':''+API_CONFIG[_0x113c(0x15)],'staging':''+API_CONFIG[_0x113c(0x15)],'development':''+API_CONFIG[_0x113c(0x15)]};export const initializeApiKey=async _0xe736ee=>{const _0x20a775={'onSux':'โŒ\x20Invalid\x20JWT\x20token\x20format','IrYMV':function(_0x16cdb7,_0xa27828){return _0x16cdb7||_0xa27828;},'mVZLT':'unknown\x20content\x20type','OjtaY':'Developer\x20API\x20key\x20is\x20required\x20for\x20SDK\x20initialization','yGsJo':function(_0x20fa5c,_0x4da219){return _0x20fa5c<_0x4da219;},'weESL':'Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20be\x20at\x20least\x2032\x20characters\x20long.','MGNaG':_0x113c(0x16),'ULfTF':_0x113c(0x17),'tWgVd':_0x113c(0x18),'xeETJ':_0x113c(0x19),'ezNrh':function(_0x2d6ba6,_0x119f63){return _0x2d6ba6!==_0x119f63;},'iVxvV':function(_0x501d6c,_0x5015fe){return _0x501d6c===_0x5015fe;},'cUciV':_0x113c(0x1a),'RBSmk':_0x113c(0x1b),'foGdY':function(_0x7e6bf2,_0x3f6af4){return _0x7e6bf2(_0x3f6af4);},'CQNoi':_0x113c(0x1c),'SzNcM':_0x113c(0x1d),'rsoja':_0x113c(0x1e),'unEGO':_0x113c(0x1f),'FeaUi':_0x113c(0x20),'hKGAi':_0x113c(0x21),'uXVGv':_0x113c(0xc),'FvuFJ':_0x113c(0x22),'KEJJC':_0x113c(0x23),'Stfug':_0x113c(0x24),'GileG':_0x113c(0x25),'YnODH':function(_0x41c140){return _0x41c140();},'voBpA':_0x113c(0x26),'nDoHH':_0x113c(0x27),'vcqKx':'๐Ÿ”\x20API\x20Key\x20Permissions:','PBhKS':_0x113c(0x28),'UrXnU':_0x113c(0x29),'GUruT':'๐Ÿ”‘\x20Developer\x20API\x20key\x20ready\x20for\x20app-level\x20operations'};try{console[_0x113c(0x2a)]('๐Ÿ”‘\x20Initializing\x20Onairos\x20SDK\x20with\x20developer\x20API\x20key...');if(!_0xe736ee['apiKey'])throw new Error(_0x20a775[_0x113c(0x2b)]);if(_0x20a775[_0x113c(0x2c)](_0xe736ee['apiKey']['length'],0x20))throw new Error(_0x20a775['weESL']);const _0x495578=[_0x20a775[_0x113c(0x2d)],_0x20a775[_0x113c(0x2e)],_0x20a775[_0x113c(0x2f)]],_0x29d00c=_0x495578[_0x113c(0x30)](_0x15eaa0=>_0xe736ee['apiKey'][_0x113c(0x31)](_0x15eaa0));if(!_0x29d00c)throw new Error(_0x113c(0x32));globalConfig={'apiKey':_0xe736ee[_0x113c(0x33)],'environment':_0xe736ee['environment']||_0x20a775[_0x113c(0x34)],'enableLogging':_0x20a775[_0x113c(0x35)](_0xe736ee[_0x113c(0x36)],![]),'timeout':_0xe736ee[_0x113c(0x20)]||0x7530,'retryAttempts':_0xe736ee[_0x113c(0x37)]||0x3};if(globalConfig[_0x113c(0x36)]){if(_0x20a775[_0x113c(0x38)](_0x20a775['cUciV'],_0x20a775[_0x113c(0x39)]))console[_0x113c(0x2a)](_0x113c(0x3a),{'environment':globalConfig[_0x113c(0x3b)],'timeout':globalConfig[_0x113c(0x20)],'retryAttempts':globalConfig[_0x113c(0x37)],'apiKeyPrefix':_0xe736ee['apiKey'][_0x113c(0x3c)](0x0,0x8)+_0x20a775[_0x113c(0x3d)],'enableLogging':globalConfig[_0x113c(0x36)]});else return _0x2c61ec[_0x113c(0x12)](_0x20a775[_0x113c(0x3e)]),null;}const _0x5f585a=await _0x20a775[_0x113c(0x3f)](validateApiKey,_0xe736ee[_0x113c(0x33)]);if(!_0x5f585a[_0x113c(0x40)]){const _0x42b906=_0x5f585a[_0x113c(0x12)]||'',_0x209c9a=_0x5f585a['isNetworkError']||_0x42b906[_0x113c(0x41)](_0x20a775[_0x113c(0x42)])||_0x42b906[_0x113c(0x41)](_0x20a775[_0x113c(0x43)])||_0x42b906['includes'](_0x20a775[_0x113c(0x44)])||_0x42b906[_0x113c(0x41)](_0x20a775[_0x113c(0x45)])||_0x42b906['includes'](_0x20a775[_0x113c(0x46)])||_0x42b906['includes'](_0x20a775[_0x113c(0x47)])||_0x42b906[_0x113c(0x41)](_0x20a775['uXVGv'])||_0x42b906['includes'](_0x113c(0x48));if(_0x209c9a){const _0x2f8975=_0x20a775[_0x113c(0x49)]['split']('|');let _0x2cf6ac=0x0;while(!![]){switch(_0x2f8975[_0x2cf6ac++]){case'0':console[_0x113c(0x4a)]('โš ๏ธ\x20API\x20key\x20validation\x20failed\x20due\x20to\x20network/connectivity\x20issues');continue;case'1':console[_0x113c(0x4a)](_0x113c(0x4b),_0x5f585a[_0x113c(0x12)]);continue;case'2':console['warn'](_0x20a775[_0x113c(0x4c)]);continue;case'3':console['warn'](_0x20a775[_0x113c(0x4d)]);continue;case'4':console[_0x113c(0x2a)](_0x20a775[_0x113c(0x4e)]);continue;}break;}}else throw new Error(_0x113c(0x4f)+_0x5f585a['error']);}await _0x20a775[_0x113c(0x50)](loadJWT),isInitialized=!![];if(globalConfig['enableLogging']){if(_0x20a775['iVxvV'](_0x20a775[_0x113c(0x51)],_0x113c(0x26))){const _0x4888ce=_0x20a775[_0x113c(0x52)][_0x113c(0x53)]('|');let _0x8dbfdb=0x0;while(!![]){switch(_0x4888ce[_0x8dbfdb++]){case'0':_0x5f585a[_0x113c(0x54)]&&console['log'](_0x20a775[_0x113c(0x55)],_0x5f585a['permissions']);continue;case'1':_0x5f585a[_0x113c(0x56)]&&console[_0x113c(0x2a)](_0x20a775[_0x113c(0x57)],_0x5f585a[_0x113c(0x56)]);continue;case'2':userToken&&console[_0x113c(0x2a)](_0x113c(0x58));continue;case'3':console[_0x113c(0x2a)](_0x20a775['UrXnU']);continue;case'4':console[_0x113c(0x2a)](_0x20a775[_0x113c(0x59)]);continue;}break;}}else throw new _0x1d5ae6(_0x113c(0x5a)+_0x19cf79['status']+'\x20-\x20'+_0x20775f[_0x113c(0x5b)]+'.\x20Expected\x20JSON\x20but\x20got\x20'+_0x20a775[_0x113c(0x5c)](_0x266516,_0x20a775['mVZLT'])+'.');}}catch(_0x2419bc){console[_0x113c(0x12)](_0x113c(0x5d),_0x2419bc),isInitialized=![];throw _0x2419bc;}};function _0x113c(_0x15f2a8,_0x113cf5){_0x15f2a8=_0x15f2a8-0x0;const _0xd05f18=_0x15f2();let _0xbd667f=_0xd05f18[_0x15f2a8];return _0xbd667f;}export const getApiKeyType=_0x2db237=>{const _0x19647b={'wcmhu':function(_0x18501e,_0x588567){return _0x18501e>=_0x588567;},'UBOwx':_0x113c(0x16),'tAeKl':_0x113c(0x17)};if(_0x19647b[_0x113c(0x5e)](_0x2db237['length'],0x20)&&(_0x2db237[_0x113c(0x31)](_0x19647b[_0x113c(0x5f)])||_0x2db237[_0x113c(0x31)](_0x113c(0x18))||_0x2db237[_0x113c(0x31)](_0x19647b['tAeKl'])))return ApiKeyType[_0x113c(0x0)];return ApiKeyType['INVALID'];};export const validateApiKey=async _0x415e58=>{const _0x492e37={'PUhWZ':function(_0x48ed31,_0xd1af6d){return _0x48ed31>=_0xd1af6d;},'psnlz':_0x113c(0x16),'xiXYW':_0x113c(0x17),'JcvUq':function(_0x51c5b6,_0x3a277c){return _0x51c5b6!==_0x3a277c;},'udIvw':_0x113c(0x60),'XDFYq':function(_0x44c456,_0x4f6a68){return _0x44c456===_0x4f6a68;},'Cpsrc':_0x113c(0x61),'tRZcf':_0x113c(0x2),'wYqfi':_0x113c(0x62),'AuBYY':_0x113c(0x63),'TuguR':'๐Ÿ”\x20Validating\x20developer\x20API\x20key\x20against\x20backend...','UbXdU':function(_0x5dc928,_0x9014ba){return _0x5dc928(_0x9014ba);},'MWaAY':_0x113c(0x64),'bcaGa':'Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20be\x20at\x20least\x2032\x20characters\x20and\x20start\x20with\x20\x22dev_\x22,\x20\x22pk_\x22,\x20or\x20\x22ona_\x22','ZtEtf':function(_0x3ee6c8,_0x412592){return _0x3ee6c8!==_0x412592;},'vOttu':_0x113c(0x65),'pdRdv':function(_0x8fd3f4,_0x237947){return _0x8fd3f4===_0x237947;},'myqux':function(_0x44d657,_0x10e28c){return _0x44d657<=_0x10e28c;},'bOUJK':_0x113c(0x66),'mFFjR':_0x113c(0x67),'uHYtV':function(_0x2335ca,_0x11b4a2,_0x3fb31c){return _0x2335ca(_0x11b4a2,_0x3fb31c);},'kIxMz':'DUpPK','BgOdu':function(_0x548c02,_0x5e3441){return _0x548c02!==_0x5e3441;},'gpycV':function(_0x48be89,_0x1cb509){return _0x48be89>_0x1cb509;},'LvOuX':function(_0x43f50e,_0x679f1){return _0x43f50e!==_0x679f1;},'cRTBP':'OPNdr','osqfV':_0x113c(0x68),'ApzIg':_0x113c(0x69),'iSaSR':_0x113c(0x6a),'uLxyT':_0x113c(0x6b),'ONqLz':function(_0x259bcb,_0x156f18){return _0x259bcb===_0x156f18;},'gXntR':function(_0x3ce3c4,_0x891bda){return _0x3ce3c4===_0x891bda;},'ZFUeW':_0x113c(0x6c),'RVrrX':'Onairos\x20API\x20request\x20timed\x20out\x20(504\x20Gateway\x20Timeout).\x20Please\x20try\x20again.','GaUwC':_0x113c(0x6d),'KgkAO':function(_0x1a2aae,_0x532e8b){return _0x1a2aae||_0x532e8b;},'QLwpR':_0x113c(0x6e),'rTHIP':function(_0x38fb79,_0x1fcc06){return _0x38fb79===_0x1fcc06;},'jnpib':function(_0x49c74d,_0x380641){return _0x49c74d===_0x380641;},'qcQzR':'pkuHe','YdvGr':_0x113c(0x6f),'GsHcD':function(_0x443d19,_0x489494){return _0x443d19===_0x489494;},'Ukhae':_0x113c(0x70),'hslGv':_0x113c(0x71),'uiESm':function(_0x4d6922,_0x16f77d){return _0x4d6922||_0x16f77d;},'xUlsf':_0x113c(0x72),'WKdfZ':'zmqXC','jhmTR':'โŒ\x20Failed\x20to\x20parse\x20JSON\x20response:','PbsYD':function(_0x358fef,_0x3d1876){return _0x358fef!==_0x3d1876;},'MbFTS':_0x113c(0x73),'ihEIs':'hvyoo','qArTH':_0x113c(0x74),'SOggx':_0x113c(0x75),'weMMF':_0x113c(0x76),'MilFM':function(_0x59d069,_0x31fff){return _0x59d069===_0x31fff;},'SldDb':function(_0x2dd86b,_0x394772){return _0x2dd86b===_0x394772;},'rdYiC':function(_0xc11c02,_0xc420b){return _0xc11c02===_0xc420b;},'WyRXZ':function(_0x32cead,_0x3249d4){return _0x32cead<_0x3249d4;},'eGSEh':function(_0x1edb95,_0x7ef2ba){return _0x1edb95!==_0x7ef2ba;},'krhsg':_0x113c(0x77),'tWziz':_0x113c(0x78),'raHCV':_0x113c(0x79),'qnBBZ':_0x113c(0x7a),'fowQV':'Unexpected\x20character','MgCtv':'Network\x20request\x20failed','LcYLP':_0x113c(0xc),'MkETX':_0x113c(0x7b),'gbife':_0x113c(0x21),'wPFOe':_0x113c(0x7c),'vgoRG':_0x113c(0x7d),'kLLxu':function(_0x1ab1e5,_0x4738c4){return _0x1ab1e5<_0x4738c4;},'uLUWg':_0x113c(0x7e),'RAyap':function(_0x961985,_0x2195a6){return _0x961985*_0x2195a6;},'XMtpR':function(_0x12e0a9,_0x104526){return _0x12e0a9-_0x104526;},'MHTHk':function(_0x3dad3c,_0x410a68){return _0x3dad3c!==_0x410a68;},'LEsdR':_0x113c(0x7f),'pmkMb':'All\x20retry\x20attempts\x20exhausted','mwMXa':_0x113c(0x80),'hKMPJ':_0x113c(0x81)};try{var _0x352bcd,_0x2a93dd,_0x175382;console[_0x113c(0x2a)](_0x492e37[_0x113c(0x82)]);const _0x4f7653=_0x492e37[_0x113c(0x83)](getApiKeyType,_0x415e58);if(_0x4f7653===ApiKeyType[_0x113c(0x2)]){if(_0x492e37[_0x113c(0x84)](_0x492e37[_0x113c(0x85)],_0x492e37[_0x113c(0x85)]))return{'isValid':![],'error':_0x492e37[_0x113c(0x86)],'keyType':ApiKeyType[_0x113c(0x2)]};else _0x387317=_0x113c(0x87)+_0x4ac5e7['message'];}const _0x5ae76a=validationCache[_0x113c(0x88)](_0x415e58);if(_0x5ae76a&&Date[_0x113c(0x89)]()-_0x5ae76a[_0x113c(0x8a)]<CACHE_DURATION){if(_0x492e37[_0x113c(0x8b)](_0x113c(0x8c),_0x113c(0x8c))){if(_0x492e37['PUhWZ'](_0x219830[_0x113c(0x8d)],0x20)&&(_0x169915['startsWith'](_0x492e37[_0x113c(0x8e)])||_0x2f59c0[_0x113c(0x31)]('pk_')||_0x4f8fc9[_0x113c(0x31)](_0x492e37[_0x113c(0x8f)])))return _0x2c5944['DEVELOPER'];return _0x5b3640[_0x113c(0x2)];}else{var _0x48d814;return(_0x48d814=globalConfig)!==null&&_0x48d814!==void 0x0&&_0x48d814['enableLogging']&&console['log'](_0x492e37['udIvw']),_0x5ae76a[_0x113c(0x90)];}}const _0x1b749d=await checkNetworkConnectivity();if(!_0x1b749d)return console[_0x113c(0x4a)](_0x113c(0x91)),{'isValid':![],'error':_0x492e37['vOttu'],'keyType':_0x4f7653,'isNetworkError':!![]};const _0x45ba22=(_0x492e37[_0x113c(0x84)](_0x352bcd=globalConfig,null)||_0x492e37[_0x113c(0x84)](_0x352bcd,void 0x0)?void 0x0:_0x352bcd[_0x113c(0x3b)])||'production',_0x512e98=API_ENDPOINTS[_0x45ba22],_0x5e5a66=((_0x2a93dd=globalConfig)===null||_0x492e37['XDFYq'](_0x2a93dd,void 0x0)?void 0x0:_0x2a93dd[_0x113c(0x20)])||0x7530,_0x1c116b=(_0x492e37['pdRdv'](_0x175382=globalConfig,null)||_0x492e37[_0x113c(0x92)](_0x175382,void 0x0)?void 0x0:_0x175382[_0x113c(0x37)])||0x3;for(let _0x9e26c5=0x1;_0x492e37[_0x113c(0x93)](_0x9e26c5,_0x1c116b);_0x9e26c5++){if(_0x492e37[_0x113c(0x94)]===_0x492e37['mFFjR']){var _0x186bb7;return _0x492e37[_0x113c(0x95)](_0x186bb7=_0x10384e,null)&&_0x186bb7!==void 0x0&&_0x186bb7[_0x113c(0x36)]&&_0x2e29d0['log'](_0x492e37[_0x113c(0x96)]),_0x2dda27[_0x113c(0x90)];}else{const _0x5e267a=new AbortController(),_0x3ff559=_0x492e37['uHYtV'](setTimeout,()=>_0x5e267a[_0x113c(0x97)](),_0x5e5a66);try{if(_0x492e37[_0x113c(0x84)](_0x492e37[_0x113c(0x98)],_0x492e37[_0x113c(0x98)])){var _0x4be51c;if(_0x492e37['BgOdu'](_0x4be51c=globalConfig,null)&&_0x492e37['ZtEtf'](_0x4be51c,void 0x0)&&_0x4be51c[_0x113c(0x36)]&&_0x492e37['gpycV'](_0x9e26c5,0x1)){if(_0x492e37[_0x113c(0x99)](_0x492e37[_0x113c(0x9a)],_0x492e37[_0x113c(0x9a)]))return _0x232773['error'](_0x113c(0x9b),_0x13aa64),null;else console[_0x113c(0x2a)]('๐Ÿ”„\x20Retry\x20attempt\x20'+_0x9e26c5+'/'+_0x1c116b+_0x113c(0x9c));}const _0x179344=await _0x492e37[_0x113c(0x9d)](fetch,_0x512e98+_0x113c(0x9e),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x113c(0x9f)+_0x415e58,'User-Agent':_0x492e37[_0x113c(0xa0)],'X-API-Key-Type':_0x4f7653,'X-SDK-Platform':'react-native','X-Retry-Attempt':_0x9e26c5['toString']()},'body':JSON[_0x113c(0xa1)]({'environment':_0x45ba22,'sdk_version':_0x492e37[_0x113c(0xa2)],'platform':'react-native','keyType':_0x4f7653,'timestamp':new Date()[_0x113c(0xa3)](),'attempt':_0x9e26c5}),'signal':_0x5e267a[_0x113c(0xa4)]});_0x492e37[_0x113c(0x83)](clearTimeout,_0x3ff559);if(!_0x179344){if(_0x492e37[_0x113c(0x8b)](_0x492e37[_0x113c(0xa5)],_0x492e37[_0x113c(0xa5)]))return null;else throw new Error(_0x492e37[_0x113c(0xa6)]);}if(_0x492e37[_0x113c(0xa7)](_0x179344[_0x113c(0xa8)],0x1f6))throw new Error('Onairos\x20API\x20is\x20temporarily\x20unavailable\x20(502\x20Bad\x20Gateway).\x20Please\x20try\x20again\x20later.');if(_0x492e37[_0x113c(0xa9)](_0x179344[_0x113c(0xa8)],0x1f7))throw new Error(_0x492e37[_0x113c(0xaa)]);if(_0x492e37['XDFYq'](_0x179344[_0x113c(0xa8)],0x1f8))throw new Error(_0x492e37[_0x113c(0xab)]);const _0x24200f=_0x179344[_0x113c(0xac)][_0x113c(0x88)]('content-type'),_0x50dc94=_0x24200f&&_0x24200f[_0x113c(0x41)]('application/json');if(!_0x50dc94){const _0x4a65cb=await _0x179344[_0x113c(0xad)](),_0x2e2b89=_0x4a65cb[_0x113c(0x3c)](0x0,0xc8);console[_0x113c(0x12)](_0x492e37[_0x113c(0xae)],{'status':_0x179344['status'],'statusText':_0x179344[_0x113c(0x5b)],'contentType':_0x492e37['KgkAO'](_0x24200f,_0x492e37[_0x113c(0xaf)]),'preview':_0x2e2b89,'url':_0x512e98+_0x113c(0x9e),'attempt':_0x9e26c5});if(_0x492e37['rTHIP'](_0x179344[_0x113c(0xa8)],0x194))throw new Error(_0x113c(0xb0)+_0x512e98+_0x113c(0xb1));else{if(_0x179344[_0x113c(0xa8)]===0x1f4){if(_0x492e37['jnpib'](_0x492e37['qcQzR'],_0x492e37['YdvGr']))_0x40bafe[_0x113c(0x2a)]('๐Ÿ“ก\x20Response\x20status:\x20'+_0x32f626[_0x113c(0xa8)]+'\x20for\x20'+_0x4e1ab2);else throw new Error(_0x113c(0xb2));}else{if(_0x492e37[_0x113c(0xb3)](_0x179344[_0x113c(0xa8)],0x1f6)||_0x179344[_0x113c(0xa8)]===0x1f7)throw new Error('Service\x20unavailable\x20('+_0x179344[_0x113c(0xa8)]+_0x113c(0xb4));else{if(_0x4a65cb[_0x113c(0x41)](_0x492e37[_0x113c(0xb5)])||_0x4a65cb['includes'](_0x492e37[_0x113c(0xb6)]))throw new Error('Server\x20returned\x20HTML\x20page\x20instead\x20of\x20JSON\x20API\x20response.\x20This\x20often\x20indicates\x20a\x20routing\x20issue\x20or\x20server\x20misconfiguration.');else throw new Error('API\x20validation\x20endpoint\x20returned\x20'+_0x179344[_0x113c(0xa8)]+_0x113c(0xb7)+_0x179344[_0x113c(0x5b)]+_0x113c(0xb8)+_0x492e37[_0x113c(0xb9)](_0x24200f,_0x492e37[_0x113c(0xba)])+'.');}}}}let _0x1ee91a;try{if(_0x492e37[_0x113c(0xa7)](_0x492e37[_0x113c(0xbb)],_0x492e37[_0x113c(0xbb)]))_0x1ee91a=await _0x179344[_0x113c(0xbc)]();else{var _0x1a9c88,_0xf3c996,_0x1896de;_0x563151[_0x113c(0x2a)](_0x113c(0x76),{'apiKeyId':_0x492e37['XDFYq'](_0x1a9c88=_0x529516[_0x113c(0x33)],null)||_0x492e37[_0x113c(0x84)](_0x1a9c88,void 0x0)?void 0x0:_0x1a9c88['id'],'appName':(_0xf3c996=_0x1a2796['application'])===null||_0x492e37[_0x113c(0x84)](_0xf3c996,void 0x0)?void 0x0:_0xf3c996[_0x113c(0xbd)],'usageCount':_0x492e37[_0x113c(0x84)](_0x1896de=_0x516728[_0x113c(0x33)],null)||_0x1896de===void 0x0?void 0x0:_0x1896de[_0x113c(0xbe)]});}}catch(_0x35a2a5){console['error'](_0x492e37[_0x113c(0xbf)],{'error':_0x35a2a5['message'],'status':_0x179344[_0x113c(0xa8)],'contentType':_0x24200f,'attempt':_0x9e26c5});throw new Error(_0x113c(0xc0)+_0x35a2a5[_0x113c(0xc1)]);}if(_0x179344['ok']&&(_0x1ee91a['success']||_0x1ee91a[_0x113c(0xc2)])){if(_0x492e37['PbsYD'](_0x492e37[_0x113c(0xc3)],_0x492e37[_0x113c(0xc4)])){var _0x575344;const _0x493789={'isValid':!![],'permissions':_0x1ee91a[_0x113c(0x54)]||[],'rateLimits':_0x1ee91a['rateLimits']||null,'keyType':_0x4f7653};validationCache[_0x113c(0xc5)](_0x415e58,{'result':_0x493789,'timestamp':Date[_0x113c(0x89)]()});if(_0x492e37[_0x113c(0xc6)](_0x575344=globalConfig,null)&&_0x575344!==void 0x0&&_0x575344['enableLogging']){if(_0x492e37[_0x113c(0x84)](_0x492e37[_0x113c(0xc7)],_0x492e37[_0x113c(0xc8)]))return _0x2411f8['error'](_0x113c(0xc9),_0xd763a4),null;else{var _0x31b9d6,_0x3b7d84,_0x1a87cc;console['log'](_0x492e37[_0x113c(0xca)],{'apiKeyId':(_0x31b9d6=_0x1ee91a[_0x113c(0x33)])===null||_0x492e37[_0x113c(0xcb)](_0x31b9d6,void 0x0)?void 0x0:_0x31b9d6['id'],'appName':_0x492e37[_0x113c(0xcc)](_0x3b7d84=_0x1ee91a[_0x113c(0xcd)],null)||_0x492e37[_0x113c(0xce)](_0x3b7d84,void 0x0)?void 0x0:_0x3b7d84[_0x113c(0xbd)],'usageCount':_0x492e37[_0x113c(0xcb)](_0x1a87cc=_0x1ee91a[_0x113c(0x33)],null)||_0x492e37[_0x113c(0xa9)](_0x1a87cc,void 0x0)?void 0x0:_0x1a87cc[_0x113c(0xbe)]});}}return _0x493789;}else _0x5cf1a8[_0x113c(0x2a)]('๐Ÿ”„\x20Retry\x20attempt\x20'+_0x4b3d1c+'/'+_0x53844f+'\x20for\x20API\x20key\x20validation');}else{const _0x578e7b=_0x1ee91a[_0x113c(0x12)]||_0x1ee91a[_0x113c(0xc1)]||_0x113c(0xcf)+_0x179344['status']+':\x20'+_0x179344[_0x113c(0x5b)],_0x47f1c8={'isValid':![],'error':_0x578e7b,'keyType':_0x4f7653};if(_0x492e37[_0x113c(0xd0)](_0x179344[_0x113c(0xa8)],0x190)&&_0x492e37['WyRXZ'](_0x179344[_0x113c(0xa8)],0x1f4)){var _0x5afb5e;if((_0x5afb5e=globalConfig)!==null&&_0x492e37[_0x113c(0x95)](_0x5afb5e,void 0x0)&&_0x5afb5e[_0x113c(0x36)]){if(_0x492e37[_0x113c(0xd1)](_0x113c(0xd2),_0x492e37[_0x113c(0xd3)]))console['error'](_0x492e37['tWziz'],_0x578e7b);else throw new _0x384904(_0x113c(0x6c));}return _0x47f1c8;}throw new Error(_0x578e7b);}}else throw new _0x419a54(_0x492e37[_0x113c(0xd4)]);}catch(_0x56e071){var _0x53f7e1;clearTimeout(_0x3ff559);if(_0x56e071[_0x113c(0xbd)]===_0x492e37[_0x113c(0xd5)]){const _0x39e17f='API\x20key\x20validation\x20timeout\x20('+_0x5e5a66+_0x113c(0xd6);console['error'](_0x492e37[_0x113c(0xd7)]);if(_0x9e26c5===_0x1c116b)return{'isValid':![],'error':_0x39e17f,'keyType':_0x4f7653};continue;}let _0x2c2750=_0x113c(0xd8)+_0x56e071[_0x113c(0xc1)];if(_0x56e071[_0x113c(0xc1)][_0x113c(0x41)](_0x113c(0x1e))||_0x56e071[_0x113c(0xc1)][_0x113c(0x41)](_0x492e37['fowQV']))_0x2c2750='Server\x20returned\x20invalid\x20JSON\x20response.\x20This\x20usually\x20indicates\x20the\x20API\x20endpoint\x20returned\x20HTML\x20instead\x20of\x20JSON\x20(often\x20a\x20404\x20or\x20server\x20error\x20page).\x20'+_0x56e071[_0x113c(0xc1)];else{if(_0x56e071[_0x113c(0xc1)]['includes'](_0x492e37[_0x113c(0xd9)])||_0x56e071[_0x113c(0xc1)][_0x113c(0x41)](_0x492e37[_0x113c(0xda)]))_0x2c2750=_0x113c(0x87)+_0x56e071['message'];else(_0x56e071['message'][_0x113c(0x41)](_0x492e37['MkETX'])||_0x56e071[_0x113c(0xc1)][_0x113c(0x41)](_0x492e37[_0x113c(0xdb)]))&&(_0x492e37[_0x113c(0xdc)]!=='inbLF'?_0x1e1641[_0x113c(0x2a)]('๐Ÿ“ก\x20Developer\x20request\x20response:\x20'+_0x2bd56b[_0x113c(0xa8)]+'\x20for\x20'+_0x229fa6):_0x2c2750=_0x113c(0xdd)+_0x512e98+_0x113c(0xde)+_0x56e071[_0x113c(0xc1)]);}console[_0x113c(0x12)](_0x492e37[_0x113c(0xdf)],{'error':_0x56e071,'endpoint':_0x512e98+_0x113c(0x9e),'attempt':_0x9e26c5,'maxRetries':_0x1c116b,'retryable':_0x492e37[_0x113c(0xe0)](_0x9e26c5,_0x1c116b)});if(_0x9e26c5===_0x1c116b)return _0x492e37[_0x113c(0xe1)]!==_0x492e37[_0x113c(0xe1)]?(_0x8801b4['DEVELOPER']=_0x113c(0x1),_0x53dee8[_0x492e37[_0x113c(0xe2)]]='invalid',_0x289bd6):{'isValid':![],'error':_0x2c2750,'keyType':_0x4f7653,'isNetworkError':!![]};const _0x5f4a1e=Math[_0x113c(0xe3)](_0x492e37[_0x113c(0xe4)](0x3e8,Math[_0x113c(0xe5)](0x2,_0x492e37[_0x113c(0xe6)](_0x9e26c5,0x1))),0x1388);if((_0x53f7e1=globalConfig)!==null&&_0x492e37[_0x113c(0xe7)](_0x53f7e1,void 0x0)&&_0x53f7e1[_0x113c(0x36)]){if('yeQJV'!==_0x492e37[_0x113c(0xe8)]){_0x45787d[_0x113c(0x12)](_0x492e37[_0x113c(0xe9)]);throw new _0xdd72e7(_0x492e37[_0x113c(0xea)]);}else console[_0x113c(0x2a)](_0x113c(0xeb)+_0x5f4a1e+'ms\x20before\x20retry...');}await new Promise(_0x5dfa79=>setTimeout(()=>_0x5dfa79(),_0x5f4a1e));}}}return{'isValid':![],'error':_0x492e37['pmkMb'],'keyType':_0x4f7653};}catch(_0x530e75){if(_0x113c(0x80)!==_0x492e37['mwMXa'])return _0x53adb0;else{const _0x1398de=_0x113c(0xec)+_0x530e75[_0x113c(0xc1)];return console[_0x113c(0x12)](_0x492e37['hKMPJ'],_0x530e75),{'isValid':![],'error':_0x1398de,'keyType':ApiKeyType[_0x113c(0x2)]};}}};export const getApiConfig=()=>{return globalConfig;};export const getApiKey=()=>{const _0x157b86={'NDRPb':function(_0x28f9f5,_0x3ee7ed){return _0x28f9f5===_0x3ee7ed;}};var _0x294073;return(_0x157b86[_0x113c(0xed)](_0x294073=globalConfig,null)||_0x157b86[_0x113c(0xed)](_0x294073,void 0x0)?void 0x0:_0x294073[_0x113c(0x33)])||null;};export const isApiKeyInitialized=()=>{return isInitialized&&globalConfig!==null;};export const storeJWT=async _0x1106d7=>{const _0x4c9773={'rJcYM':_0x113c(0xee),'IIZYL':function(_0x248be9,_0x4f76d8){return _0x248be9!==_0x4f76d8;},'zplKN':_0x113c(0xef),'JZsAi':function(_0x121977,_0x41dcda){return _0x121977!==_0x41dcda;},'RjeLd':function(_0x447977,_0x3595e2){return _0x447977!==_0x3595e2;},'qjobl':function(_0x3fdb4a,_0xe2c968){return _0x3fdb4a===_0xe2c968;},'pXpON':_0x113c(0xf0),'xZUur':_0x113c(0xf1),'IjWPd':_0x113c(0xf2)};try{var _0x4c997c;await AsyncStorage[_0x113c(0xf3)](JWT_TOKEN_KEY,_0x1106d7),userToken=_0x1106d7,_0x4c9773['JZsAi'](_0x4c997c=globalConfig,null)&&_0x4c9773[_0x113c(0xf4)](_0x4c997c,void 0x0)&&_0x4c997c[_0x113c(0x36)]&&(_0x4c9773[_0x113c(0xf5)](_0x4c9773[_0x113c(0xf6)],_0x4c9773[_0x113c(0xf6)])?console['log'](_0x4c9773['rJcYM']):_0x5399bb[_0x113c(0x2a)](_0x4c9773[_0x113c(0xf7)]));}catch(_0x2753fb){if(_0x4c9773['xZUur']!==_0x4c9773['xZUur']){var _0x1023df;const _0x3a8f52=_0x21d212||_0x186879;if(!_0x3a8f52)return _0x2e870c[_0x113c(0x4a)](_0x113c(0xf8)),null;const _0x2c2c23=_0x4c7aa8(_0x3a8f52);if(!_0x2c2c23)return null;const _0x1aa03f={'id':_0x2c2c23['id'],'email':_0x2c2c23[_0x113c(0xf9)],'userId':_0x2c2c23[_0x113c(0xfa)],'userName':_0x2c2c23[_0x113c(0xfb)]||_0x2c2c23['username'],'verified':_0x2c2c23[_0x113c(0xfc)],'iat':_0x2c2c23['iat'],'exp':_0x2c2c23[_0x113c(0xfd)]};return(_0x1023df=_0x1c03e8)!==null&&_0x4c9773['IIZYL'](_0x1023df,void 0x0)&&_0x1023df[_0x113c(0x36)]&&_0x4e84f2[_0x113c(0x2a)](_0x4c9773[_0x113c(0xfe)],_0x1aa03f),_0x1aa03f;}else{console['error'](_0x4c9773[_0x113c(0xff)],_0x2753fb);throw _0x2753fb;}}};export const loadJWT=async()=>{const _0x231140={'yZKFe':function(_0x5f21ae,_0x46dcfa){return _0x5f21ae!==_0x46dcfa;},'sEmSg':function(_0x364b0f,_0x5c3dae){return _0x364b0f!==_0x5c3dae;},'ZvCAw':function(_0xc1b82f,_0x24d575){return _0xc1b82f!==_0x24d575;},'ZPveP':_0x113c(0x100),'izBNn':_0x113c(0x101),'liFXZ':_0x113c(0x102)};try{if(_0x231140[_0x113c(0x103)](_0x231140[_0x113c(0x104)],_0x231140[_0x113c(0x105)])){const _0x39de4c=await AsyncStorage['getItem'](JWT_TOKEN_KEY);return userToken=_0x39de4c,_0x39de4c;}else{var _0x10d1ff;_0x106628[_0x113c(0x106)](),_0x231140[_0x113c(0x107)](_0x10d1ff=_0x29c7e8,null)&&_0x231140['sEmSg'](_0x10d1ff,void 0x0)&&_0x10d1ff[_0x113c(0x36)]&&_0x17254e['log']('๐Ÿ—‘๏ธ\x20API\x20key\x20validation\x20cache\x20cleared');}}catch(_0x4e5e11){return console['error'](_0x231140['liFXZ'],_0x4e5e11),null;}};export const getJWT=()=>{return userToken;};export const clearJWT=async()=>{const _0x36b4f7={'PheLp':_0x113c(0x32),'OFlOu':function(_0x83aa84,_0x870658){return _0x83aa84!==_0x870658;},'sHSTv':_0x113c(0x108),'ojxdI':_0x113c(0x109),'TSOgT':function(_0x197892,_0x1d8df1){return _0x197892!==_0x1d8df1;},'XSPkK':_0x113c(0x10a),'Bxrtz':_0x113c(0x10b)};try{if(_0x36b4f7[_0x113c(0x10c)](_0x36b4f7[_0x113c(0x10d)],_0x36b4f7[_0x113c(0x10e)])){var _0xde1bd4;await AsyncStorage[_0x113c(0x10f)](JWT_TOKEN_KEY),userToken=null;if(_0x36b4f7[_0x113c(0x10c)](_0xde1bd4=globalConfig,null)&&_0xde1bd4!==void 0x0&&_0xde1bd4[_0x113c(0x36)]){if(_0x36b4f7[_0x113c(0x110)](_0x36b4f7[_0x113c(0x111)],_0x113c(0x10a)))throw new _0x47f5b9(_0x36b4f7[_0x113c(0x112)]);else console['log'](_0x36b4f7[_0x113c(0x113)]);}}else return{'isValid':![],'error':_0x2e7665,'keyType':_0x443465,'isNetworkError':!![]};}catch(_0x53f666){if(_0x113c(0x114)===_0x113c(0x114))console[_0x113c(0x12)](_0x113c(0x115),_0x53f666);else return!!_0xb1a9f9;}};const base64Decode=_0x35144c=>{const _0x1a2412={'dDzIi':_0x113c(0x61),'lwfvw':_0x113c(0x116),'ZpBXB':function(_0x978ee1,_0x2f7e2d){return _0x978ee1<_0x2f7e2d;},'sImdb':function(_0x4e9c42,_0x1f921b){return _0x4e9c42===_0x1f921b;},'LJBjx':_0x113c(0x117),'uBSvu':_0x113c(0x118),'AxcDq':function(_0x45ebe1,_0x359404){return _0x45ebe1|_0x359404;},'boGwi':function(_0x357a7c,_0x5e706b){return _0x357a7c<<_0x5e706b;},'MiKnQ':function(_0x58b624,_0x1e326e){return _0x58b624&_0x1e326e;},'VeauL':function(_0x21f841,_0x1ac337){return _0x21f841>>_0x1ac337;},'PAgwU':function(_0x5e1ff3,_0x3f5b5d){return _0x5e1ff3!==_0x3f5b5d;}},_0x4b9fe8=_0x1a2412[_0x113c(0x119)];let _0x5cd92e='',_0x3351c7=0x0;_0x35144c=_0x35144c[_0x113c(0x11a)](/[^A-Za-z0-9+/]/g,'');while(_0x1a2412[_0x113c(0x11b)](_0x3351c7,_0x35144c['length'])){if(_0x1a2412['sImdb'](_0x1a2412[_0x113c(0x11c)],_0x1a2412[_0x113c(0x11d)]))throw new _0xa227ef(_0x1a2412[_0x113c(0x11e)]);else{const _0x12ac8d=_0x4b9fe8[_0x113c(0x11f)](_0x35144c[_0x113c(0x120)](_0x3351c7++)),_0x5591ae=_0x4b9fe8[_0x113c(0x11f)](_0x35144c[_0x113c(0x120)](_0x3351c7++)),_0x4c1150=_0x4b9fe8[_0x113c(0x11f)](_0x35144c['charAt'](_0x3351c7++)),_0x312afb=_0x4b9fe8['indexOf'](_0x35144c[_0x113c(0x120)](_0x3351c7++)),_0x4372b2=_0x1a2412[_0x113c(0x121)](_0x1a2412[_0x113c(0x122)](_0x12ac8d,0x12)|_0x5591ae<<0xc|_0x4c1150<<0x6,_0x312afb);_0x5cd92e+=String[_0x113c(0x123)](_0x1a2412[_0x113c(0x124)](_0x1a2412['VeauL'](_0x4372b2,0x10),0xff));if(_0x4c1150!==0x40)_0x5cd92e+=String['fromCharCode'](_0x1a2412[_0x113c(0x124)](_0x4372b2>>0x8,0xff));if(_0x1a2412[_0x113c(0x125)](_0x312afb,0x40))_0x5cd92e+=String[_0x113c(0x123)](_0x1a2412['MiKnQ'](_0x4372b2,0xff));}}return _0x5cd92e;};function _0x15f2(){const _0x1000d2=['DEVELOPER','developer','INVALID','invalid','gcwGr','ctEVF','RYKEH','JNoMM','onairos_jwt_token','โŒ\x20API\x20rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','cbxzH','โš ๏ธ\x20Failed\x20to\x20check\x20network\x20connectivity:','fetch','isConnected','cwHNo','isInternetReachable','EzNnF','pPCaH','error','zxnCA','HxguB','BASE_URL','dev_','ona_','pk_','production','kCjWo','...','Network\x20request\x20failed','Network\x20error','JSON\x20Parse\x20error','API\x20validation\x20endpoint\x20returned','timeout','ENOTFOUND','0|3|2|1|4','๐Ÿ“\x20SDK\x20will\x20function\x20with\x20limited\x20validation.\x20Network\x20connectivity\x20will\x20be\x20retried\x20automatically.','๐Ÿ”„\x20Continuing\x20in\x20offline\x20mode\x20with\x20basic\x20validation','๐Ÿ“ฑ\x20SDK\x20initialized\x20in\x20offline\x20mode\x20-\x20will\x20retry\x20validation\x20when\x20network\x20is\x20available','oNXRH','3|4|2|0|1','โฑ๏ธ\x20Rate\x20Limits:','โœ…\x20Onairos\x20SDK\x20initialized\x20successfully','log','OjtaY','yGsJo','MGNaG','ULfTF','tWgVd','some','startsWith','Invalid\x20API\x20key\x20format.\x20Developer\x20keys\x20must\x20start\x20with\x20dev_,\x20ona_,\x20or\x20pk_','apiKey','xeETJ','ezNrh','enableLogging','retryAttempts','iVxvV','cUciV','๐Ÿ“\x20SDK\x20Configuration:','environment','substring','RBSmk','onSux','foGdY','isValid','includes','CQNoi','SzNcM','rsoja','unEGO','FeaUi','hKGAi','No\x20network\x20connection','FvuFJ','warn','๐ŸŒ\x20Error\x20details:','KEJJC','Stfug','GileG','API\x20key\x20validation\x20failed:\x20','YnODH','voBpA','nDoHH','split','permissions','vcqKx','rateLimits','PBhKS','๐ŸŽซ\x20User\x20JWT\x20token\x20loaded\x20from\x20storage','GUruT','API\x20validation\x20endpoint\x20returned\x20','statusText','IrYMV','โŒ\x20Failed\x20to\x20initialize\x20Onairos\x20SDK:','wcmhu','UBOwx','๐Ÿ“‹\x20Using\x20cached\x20API\x20key\x20validation\x20result','SDK\x20not\x20initialized.\x20Call\x20initializeApiKey()\x20first.','โŒ\x20Developer\x20API\x20key\x20authentication\x20failed','Invalid\x20or\x20expired\x20API\x20key','sjjVy','No\x20network\x20connection\x20available.\x20Please\x20check\x20your\x20internet\x20connection\x20and\x20try\x20again.','FSjtf','wwTCt','OnairosReactNative/3.3.1','3.3.1','THGNy','No\x20response\x20received\x20from\x20server','Onairos\x20API\x20is\x20under\x20maintenance\x20(503\x20Service\x20Unavailable).\x20Please\x20try\x20again\x20later.','โŒ\x20API\x20endpoint\x20returned\x20non-JSON\x20response:','unknown','PmapD','<html','<!DOCTYPE','unknown\x20content\x20type','oGmxn','fiQnt','RIohI','โœ…\x20API\x20key\x20validation\x20successful','NSjHZ','โŒ\x20API\x20key\x20validation\x20failed\x20(client\x20error):','AbortError','โฑ๏ธ\x20API\x20key\x20validation\x20timeout','DNS','inbLF','๐ŸŒ\x20Network\x20error\x20during\x20API\x20key\x20validation:','KzWtV','yeQJV','bxwiv','โŒ\x20API\x20key\x20validation\x20error:','TuguR','UbXdU','XDFYq','MWaAY','bcaGa','Network\x20connectivity\x20issue.\x20Please\x20check\x20internet\x20connection\x20and\x20verify\x20the\x20Onairos\x20API\x20is\x20accessible.\x20','get','now','timestamp','ZtEtf','dkELe','length','psnlz','xiXYW','result','โš ๏ธ\x20No\x20network\x20connectivity\x20detected','pdRdv','myqux','bOUJK','JcvUq','udIvw','abort','kIxMz','LvOuX','cRTBP','โŒ\x20Failed\x20to\x20decode\x20JWT\x20token:','\x20for\x20API\x20key\x20validation','uHYtV','/dev/validate-apikey','Bearer\x20','osqfV','stringify','ApzIg','toISOString','signal','iSaSR','uLxyT','ONqLz','status','gXntR','ZFUeW','RVrrX','headers','text','GaUwC','QLwpR','API\x20validation\x20endpoint\x20not\x20found\x20(404).\x20The\x20endpoint\x20','/dev/validate-apikey\x20may\x20not\x20exist\x20or\x20be\x20configured\x20correctly.','Server\x20error\x20(500).\x20The\x20Onairos\x20backend\x20is\x20experiencing\x20issues.','GsHcD',').\x20The\x20Onairos\x20backend\x20may\x20be\x20temporarily\x20down.','Ukhae','hslGv','\x20-\x20','.\x20Expected\x20JSON\x20but\x20got\x20','uiESm','xUlsf','WKdfZ','json','name','usageCount','jhmTR','Failed\x20to\x20parse\x20server\x20response\x20as\x20JSON:\x20','message','valid','MbFTS','ihEIs','set','PbsYD','qArTH','SOggx','โŒ\x20Failed\x20to\x20extract\x20user\x20data\x20from\x20JWT:','weMMF','MilFM','SldDb','application','rdYiC','HTTP\x20','PUhWZ','eGSEh','xSHQp','krhsg','Cpsrc','raHCV','ms)','qnBBZ','Network\x20error\x20during\x20API\x20key\x20validation:\x20','MgCtv','LcYLP','gbife','wPFOe','DNS\x20resolution\x20failed\x20for\x20','.\x20Please\x20check\x20network\x20settings\x20and\x20domain\x20accessibility.\x20','vgoRG','kLLxu','uLUWg','tRZcf','min','RAyap','pow','XMtpR','MHTHk','LEsdR','wYqfi','AuBYY','โณ\x20Waiting\x20','API\x20key\x20validation\x20error:\x20','NDRPb','๐ŸŽซ\x20JWT\x20token\x20stored\x20successfully','๐Ÿ‘ค\x20Extracted\x20user\x20data\x20from\x20JWT:','wfDgf','NdLZk','โŒ\x20Failed\x20to\x20store\x20JWT\x20token:','setItem','RjeLd','qjobl','pXpON','rJcYM','โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20user\x20data\x20extraction','email','userId','userName','verified','exp','zplKN','IjWPd','yaXLJ','TSwrp','โŒ\x20Failed\x20to\x20load\x20JWT\x20token:','ZvCAw','ZPveP','izBNn','clear','yZKFe','Jtxot','PuUqa','COXGD','๐Ÿ—‘๏ธ\x20JWT\x20token\x20cleared','OFlOu','sHSTv','ojxdI','removeItem','TSOgT','XSPkK','PheLp','Bxrtz','apiir','โŒ\x20Failed\x20to\x20clear\x20JWT\x20token:','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','Ovtuq','XqlSw','lwfvw','replace','ZpBXB','LJBjx','uBSvu','dDzIi','indexOf','charAt','AxcDq','boGwi','fromCharCode','MiKnQ','PAgwU','HBJvX','LSPos','wWdGv','OWpWS','ceil','ztnor','iDgZE','โŒ\x20JWT\x20token\x20permissions\x20insufficient','Developer\x20API\x20key\x20is\x20required\x20for\x20SDK\x20initialization','โŒ\x20Developer\x20API\x20key\x20permissions\x20insufficient','Insufficient\x20API\x20key\x20permissions','qbfsb','hNCQs','vPedg','IUVkL','๐Ÿ‘ค\x20Extracted\x20username\x20from\x20JWT:','FCvkp','โŒ\x20Failed\x20to\x20extract\x20username\x20from\x20JWT:','ErNhG','TrCOJ','vfpco','raIxz','Insufficient\x20permissions\x20for\x20this\x20operation','TFqZp','UlkXr','oyEbQ','TqooY','WqmSo','PWCte','HWZME','epXUP','OXTeT','iat','zFyzb','OnairosReactNative/3.0.72','3.0.72','ptvvi','kozVV','OnairosSDK/1.0.0','lsBTf','sJlDh','tfZMW','qHnwb','oudOh','qurRo','YSWrn','โŒ\x20API\x20key\x20authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.','HyumF','Rate\x20limit\x20exceeded','zGKhd','โฑ๏ธ\x20Request\x20timeout\x20for:','Request\x20timeout','dsZNZ','iamUi','BgGbU','syjhw','TVDhN','๐Ÿ“ก\x20Response\x20status:\x20','\x20for\x20','ahACE','bHnWQ','mMtQk','cKvEV','YCLXl','โŒ\x20API\x20key\x20permissions\x20insufficient\x20for\x20this\x20operation.','djmJd','jqeUC','gezPQ','๐Ÿ“ก\x20User\x20request\x20response:\x20','rtLni','XxKsC','โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20username\x20extraction','jxDVH','UEhae','IktEn','FcwrU','ChewP','โŒ\x20API\x20rate\x20limit\x20exceeded','KEMOs','cNikv','nwmZS','PAPnl','qqGWa','khFDp','username','RwUlq','ewBLa','AsSsc','ppEHD','KwKcg','MKJqU','๐ŸŒ\x20Making\x20developer\x20request\x20to:\x20','aHrzA','skAbL','KqTrF','XgRei','๐Ÿ“ก\x20Developer\x20request\x20response:\x20','nNtIb','agNmx','gTBdW','ORAzb','Bxhnt','koXqx','QmAkD','DsRUX','FGMPH','RUwmY','YWrHE','xQrFl','User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','mavkB','cGLrl','kKZda','tmMur','syaDR','SOQIu','AIHfl','aJAgy','Server\x20returned\x20HTML\x20page\x20instead\x20of\x20JSON\x20API\x20response.\x20This\x20often\x20indicates\x20a\x20routing\x20issue\x20or\x20server\x20misconfiguration.','dgJBx','PjvDj','pRNmn','CJawG','NrdEL','eFTIE','CyhUt','pxkTm','PrAPQ','ZwPFo','VHfeN','๐ŸŒ\x20Making\x20authenticated\x20request\x20to:\x20','LfUAe','CKaBX','eHeTd','dwADy','TgBPL','KGUut','foESE','gPsgi','sdkTP','tiYtX','๐Ÿ—‘๏ธ\x20API\x20key\x20validation\x20cache\x20cleared','๐Ÿ”„\x20API\x20key\x20service\x20reset','QRLIb'];_0x15f2=function(){return _0x1000d2;};return _0x15f2();}export const decodeJWTPayload=_0x574c41=>{const _0x36fbeb={'UQUeS':'๐Ÿ“‹\x20Using\x20cached\x20API\x20key\x20validation\x20result','HBJvX':function(_0x2f44a8,_0x4b7a53){return _0x2f44a8!==_0x4b7a53;},'KtuNk':function(_0x51dd55,_0x3de767){return _0x51dd55===_0x3de767;},'nxNYz':'sjTfV','wWdGv':'โŒ\x20Invalid\x20JWT\x20token\x20format','OWpWS':function(_0x588665,_0x2bf943){return _0x588665*_0x2bf943;},'VprEC':function(_0x3bbee6,_0x46e4f3){return _0x3bbee6/_0x46e4f3;},'ztnor':function(_0x4c0f8a,_0xbd9cd4){return _0x4c0f8a(_0xbd9cd4);},'iDgZE':_0x113c(0x9b)};try{const _0x16b56f=_0x574c41[_0x113c(0x53)]('.');if(_0x36fbeb[_0x113c(0x126)](_0x16b56f[_0x113c(0x8d)],0x3)){if(_0x36fbeb['KtuNk'](_0x113c(0x127),_0x36fbeb['nxNYz']))_0x317b60[_0x113c(0x2a)](_0x36fbeb['UQUeS']);else return console['error'](_0x36fbeb[_0x113c(0x128)]),null;}const _0x10a8b2=_0x16b56f[0x1],_0x1d22cd=_0x10a8b2['replace'](/-/g,'+')[_0x113c(0x11a)](/_/g,'/'),_0x371fdb=_0x1d22cd['padEnd'](_0x36fbeb[_0x113c(0x129)](Math[_0x113c(0x12a)](_0x36fbeb['VprEC'](_0x1d22cd[_0x113c(0x8d)],0x4)),0x4),'='),_0x4fbae2=_0x36fbeb[_0x113c(0x12b)](base64Decode,_0x371fdb);return JSON['parse'](_0x4fbae2);}catch(_0x3026ee){return console[_0x113c(0x12)](_0x36fbeb[_0x113c(0x12c)],_0x3026ee),null;}};export const extractUsernameFromJWT=_0xa8e1b5=>{const _0x13e689={'raIxz':_0x113c(0x12d),'UlkXr':_0x113c(0x12e),'OXTeT':_0x113c(0x12f),'VThOz':_0x113c(0x130),'ErNhG':function(_0x54bfba,_0xf91ff0){return _0x54bfba||_0xf91ff0;},'TrCOJ':function(_0x19ed11,_0x12d0af){return _0x19ed11!==_0x12d0af;},'vfpco':_0x113c(0x131),'wckSs':_0x113c(0x132),'TFqZp':_0x113c(0x133),'oyEbQ':function(_0x333928,_0x51fbaf){return _0x333928!==_0x51fbaf;},'viWSV':function(_0x1afd47,_0x2a066f){return _0x1afd47!==_0x2a066f;},'TqooY':_0x113c(0x134),'WqmSo':_0x113c(0x135),'PWCte':function(_0x47d126,_0x3a4016){return _0x47d126||_0x3a4016;},'HWZME':_0x113c(0x136),'epXUP':_0x113c(0x137)};try{var _0x331074;const _0x27c470=_0x13e689[_0x113c(0x138)](_0xa8e1b5,userToken);if(!_0x27c470){if(_0x13e689[_0x113c(0x139)]('aEctu',_0x13e689[_0x113c(0x13a)]))return console[_0x113c(0x4a)]('โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20username\x20extraction'),null;else{_0x4ef44e[_0x113c(0x12)](_0x13e689[_0x113c(0x13b)]);throw new _0x1f6cac(_0x113c(0x13c));}}const _0x507cad=decodeJWTPayload(_0x27c470);if(!_0x507cad){if(_0x13e689[_0x113c(0x139)](_0x13e689['wckSs'],_0x13e689[_0x113c(0x13d)]))return null;else throw new _0x3c9786(_0x13e689[_0x113c(0x13e)]);}const _0x357781=_0x507cad[_0x113c(0xfb)]||_0x507cad['username']||_0x507cad[_0x113c(0xfa)]||_0x507cad[_0x113c(0xf9)];if(_0x13e689[_0x113c(0x13f)](_0x331074=globalConfig,null)&&_0x13e689[_0x113c(0x13f)](_0x331074,void 0x0)&&_0x331074[_0x113c(0x36)]){if(_0x13e689['viWSV'](_0x113c(0x134),_0x13e689[_0x113c(0x140)]))return _0x4b7ae6;else console['log'](_0x13e689[_0x113c(0x141)],_0x357781);}return _0x13e689[_0x113c(0x142)](_0x357781,null);}catch(_0x214097){if(_0x13e689[_0x113c(0x143)]===_0x13e689[_0x113c(0x143)])return console['error'](_0x13e689[_0x113c(0x144)],_0x214097),null;else{_0x5daca9[_0x113c(0x12)](_0x13e689[_0x113c(0x145)]);throw new _0x1dad34(_0x13e689['VThOz']);}}};export const extractUserDataFromJWT=_0x155d34=>{const _0x3225bc={'QhVlu':'โš ๏ธ\x20No\x20JWT\x20token\x20available\x20for\x20user\x20data\x20extraction','zFyzb':function(_0x5ea16b,_0x275cca){return _0x5ea16b!==_0x275cca;},'HowkJ':_0x113c(0xef)};try{var _0xa93869;const _0xdc0496=_0x155d34||userToken;if(!_0xdc0496)return console[_0x113c(0x4a)](_0x3225bc['QhVlu']),null;const _0x5b2882=decodeJWTPayload(_0xdc0496);if(!_0x5b2882)return null;const _0x35db26={'id':_0x5b2882['id'],'email':_0x5b2882[_0x113c(0xf9)],'userId':_0x5b2882[_0x113c(0xfa)],'userName':_0x5b2882['userName']||_0x5b2882['username'],'verified':_0x5b2882[_0x113c(0xfc)],'iat':_0x5b2882[_0x113c(0x146)],'exp':_0x5b2882[_0x113c(0xfd)]};return _0x3225bc[_0x113c(0x147)](_0xa93869=globalConfig,null)&&_0x3225bc[_0x113c(0x147)](_0xa93869,void 0x0)&&_0xa93869[_0x113c(0x36)]&&console[_0x113c(0x2a)](_0x3225bc['HowkJ'],_0x35db26),_0x35db26;}catch(_0x4bd54b){return console['error'](_0x113c(0xc9),_0x4bd54b),null;}};export const isUserAuthenticated=()=>{return!!userToken;};export const getAuthHeaders=()=>{const _0x14e3fb={'ptvvi':function(_0x19ec7d,_0x43c944){return _0x19ec7d!==_0x43c944;},'CxQIk':_0x113c(0x61),'fRWNl':_0x113c(0x148),'kozVV':_0x113c(0x149)};var _0x337f2a;if(!(_0x14e3fb[_0x113c(0x14a)](_0x337f2a=globalConfig,null)&&_0x14e3fb['ptvvi'](_0x337f2a,void 0x0)&&_0x337f2a[_0x113c(0x33)]))throw new Error(_0x14e3fb['CxQIk']);const _0x5bd860=getApiKeyType(globalConfig[_0x113c(0x33)]);return{'Content-Type':'application/json','Authorization':_0x113c(0x9f)+globalConfig[_0x113c(0x33)],'User-Agent':_0x14e3fb['fRWNl'],'X-SDK-Version':_0x14e3fb[_0x113c(0x14b)],'X-SDK-Environment':globalConfig[_0x113c(0x3b)]||_0x113c(0x19),'X-API-Key-Type':_0x5bd860,'X-Timestamp':new Date()['toISOString']()};};export const getDeveloperAuthHeaders=()=>{const _0x317de2={'lsBTf':function(_0x4b908e,_0x767fcd){return _0x4b908e!==_0x767fcd;},'sJlDh':_0x113c(0x61),'khRim':_0x113c(0x14c),'tfZMW':'3.0.72','goZaF':'production'};var _0x1a4b93;if(!(_0x317de2[_0x113c(0x14d)](_0x1a4b93=globalConfig,null)&&_0x317de2[_0x113c(0x14d)](_0x1a4b93,void 0x0)&&_0x1a4b93[_0x113c(0x33)]))throw new Error(_0x317de2[_0x113c(0x14e)]);const _0x6d709a=getApiKeyType(globalConfig[_0x113c(0x33)]);return{'Content-Type':'application/json','Authorization':_0x113c(0x9f)+globalConfig[_0x113c(0x33)],'User-Agent':_0x317de2['khRim'],'X-SDK-Version':_0x317de2[_0x113c(0x14f)],'X-SDK-Environment':globalConfig[_0x113c(0x3b)]||_0x317de2['goZaF'],'X-API-Key-Type':_0x6d709a,'X-Timestamp':new Date()[_0x113c(0xa3)]()};};export const getUserAuthHeaders=()=>{const _0x3baf6c={'LmeNJ':'User\x20not\x20authenticated.\x20Please\x20verify\x20email\x20first.','qHnwb':'OnairosSDK/1.0.0','oudOh':function(_0x3966b7,_0x140b04){return _0x3966b7===_0x140b04;},'qurRo':function(_0x827613,_0x14d4dd){return _0x827613===_0x14d4dd;}};var _0x28d4ed;if(!userToken)throw new Error(_0x3baf6c['LmeNJ']);return{'Content-Type':'application/json','Authorization':'Bearer\x20'+userToken,'User-Agent':_0x3baf6c[_0x113c(0x150)],'X-SDK-Version':_0x113c(0x149),'X-SDK-Environment':(_0x3baf6c[_0x113c(0x151)](_0x28d4ed=globalConfig,null)||_0x3baf6c[_0x113c(0x152)](_0x28d4ed,void 0x0)?void 0x0:_0x28d4ed[_0x113c(0x3b)])||_0x113c(0x19)};};export const makeAuthenticatedRequest=async(_0x424eec,_0x2bf149={})=>{const _0x4fc108={'ahACE':function(_0x45a2e9,_0xa50b0e){return _0x45a2e9!==_0xa50b0e;},'iamUi':_0x113c(0x61),'kVDCK':function(_0x47dc70,_0x479826){return _0x47dc70!==_0x479826;},'CynNe':_0x113c(0x78),'dsZNZ':function(_0x1abbf2){return _0x1abbf2();},'waplD':_0x113c(0x19),'coxen':function(_0x56fe58,_0x4228b7,_0x4751c0){return _0x56fe58(_0x4228b7,_0x4751c0);},'Bdhje':function(_0x49db02,_0x9ba410){return _0x49db02(_0x9ba410);},'BgGbU':function(_0x1737d6,_0x33a381){return _0x1737d6!==_0x33a381;},'bHnWQ':function(_0xba7426,_0x809730){return _0xba7426===_0x809730;},'mMtQk':_0x113c(0x153),'cKvEV':_0x113c(0x154),'YCLXl':_0x113c(0x155),'UGnVR':'Insufficient\x20API\x20key\x20permissions','djmJd':_0x113c(0x9),'jqeUC':_0x113c(0x156),'yqYHe':'AbortError','gezPQ':_0x113c(0x157),'rtLni':_0x113c(0x158),'XxKsC':_0x113c(0x159)};if(!_0x4fc108[_0x113c(0x15a)](isApiKeyInitialized))throw new Error(_0x4fc108[_0x113c(0x15b)]);const _0x59e9de=_0x4fc108[_0x113c(0x15a)](getApiConfig),_0x44aea6=API_ENDPOINTS[_0x59e9de[_0x113c(0x3b)]||_0x4fc108['waplD']],_0x160d45=''+_0x44aea6+(_0x424eec[_0x113c(0x31)]('/')?'':'/')+_0x424eec,_0x1189f5={..._0x4fc108['dsZNZ'](getAuthHeaders),..._0x2bf149[_0x113c(0xac)]||{}},_0x4ad068=new AbortController(),_0x4947d4=_0x4fc108['coxen'](setTimeout,()=>_0x4ad068[_0x113c(0x97)](),_0x59e9de[_0x113c(0x20)]||0x7530);try{_0x59e9de[_0x113c(0x36)]&&console[_0x113c(0x2a)]('๐ŸŒ\x20Making\x20authenticated\x20request\x20to:\x20'+_0x424eec);const _0x38b663=await fetch(_0x160d45,{..._0x2bf149,'headers':_0x1189f5,'signal':_0x4ad068[_0x113c(0xa4)]});_0x4fc108['Bdhje'](clearTimeout,_0x4947d4);if(_0x59e9de['enableLogging']){if(_0x4fc108[_0x113c(0x15c)](_0x113c(0x15d),_0x113c(0x15e)))console[_0x113c(0x2a)](_0x113c(0x15f)+_0x38b663[_0x113c(0xa8)]+_0x113c(0x160)+_0x424eec);else return _0x114668&&_0x4fc108[_0x113c(0x161)](_0x3bebf3,null);}if(_0x4fc108[_0x113c(0x162)](_0x38b663[_0x113c(0xa8)],0x191)){if(_0x4fc108['bHnWQ'](_0x4fc108[_0x113c(0x163)],_0x4fc108[_0x113c(0x163)])){console['error'](_0x4fc108[_0x113c(0x164)]);throw new Error(_0x113c(0x63));}else throw new _0x3c0229(_0x4fc108['iamUi']);}if(_0x38b663[_0x113c(0xa8)]===0x193){if(_0x4fc108[_0x113c(0x161)](_0x4fc108[_0x113c(0x165)],_0x4fc108[_0x113c(0x165)])){var _0x395ce8;return(_0x395ce8=_0x53fb85)!==null&&_0x4fc108['kVDCK'](_0x395ce8,void 0x0)&&_0x395ce8[_0x113c(0x36)]&&_0x24960e['error'](_0x4fc108['CynNe'],_0x3667d0),_0x57e759;}else{console['error'](_0x113c(0x166));throw new Error(_0x4fc108['UGnVR']);}}if(_0x38b663[_0x113c(0xa8)]===0x1ad){console[_0x113c(0x12)](_0x4fc108[_0x113c(0x167)]);throw new Error(_0x4fc108[_0x113c(0x168)]);}return _0x38b663;}catch(_0x308a73){clearTimeout(_0x4947d4);if(_0x4fc108[_0x113c(0x162)](_0x308a73[_0x113c(0xbd)],_0x4fc108['yqYHe'])){if(_0x4fc108[_0x113c(0x15c)](_0x4fc108[_0x113c(0x169)],_0x4fc108[_0x113c(0x169)]))_0x33ef8f[_0x113c(0x2a)](_0x113c(0x16a)+_0x1190ef['status']+'\x20for\x20'+_0x4f05a6);else{console['error'](_0x4fc108[_0x113c(0x16b)],_0x424eec);throw new Error(_0x4fc108[_0x113c(0x16c)]);}}throw _0x308a73;}};export const makeDeveloperRequest=async(_0xbda56c,_0x2ac4db={})=>{const _0x5cdbf={'khFDp':function(_0x5ecaee,_0x42f335){return _0x5ecaee||_0x42f335;},'YWGhW':_0x113c(0x16d),'RwUlq':function(_0x206464,_0x5b7f01){return _0x206464!==_0x5b7f01;},'ewBLa':_0x113c(0x135),'ppEHD':function(_0x7e952a,_0xf4285){return _0x7e952a===_0xf4285;},'aHrzA':_0x113c(0x91),'skAbL':_0x113c(0x65),'nNtIb':function(_0x545705,_0x1e22ae){return _0x545705(_0x1e22ae);},'agNmx':_0x113c(0x79),'gTBdW':_0x113c(0x158),'ORAzb':_0x113c(0x159),'MVrEn':function(_0x495197,_0xa0a755){return _0x495197<_0xa0a755;},'yGbfg':'โŒ\x20API\x20key\x20validation\x20failed\x20(client\x20error):','cNikv':function(_0x2f6dfb){return _0x2f6dfb();},'nwmZS':function(_0x2363ee,_0x3ea147){return _0x2363ee===_0x3ea147;},'PAPnl':_0x113c(0x16e),'qqGWa':_0x113c(0x61),'Cqrds':function(_0x142f75,_0x244233,_0x15472a){return _0x142f75(_0x244233,_0x15472a);},'nkOUu':_0x113c(0x16f),'KqTrF':function(_0x1b3f5b,_0x502afb){return _0x1b3f5b(_0x502afb);},'XgRei':_0x113c(0x170),'Xiocx':_0x113c(0x171),'Bxhnt':_0x113c(0x62),'xYkVU':_0x113c(0x63),'koXqx':_0x113c(0x12f),'QmAkD':_0x113c(0x130),'DsRUX':_0x113c(0x172),'FGMPH':'nPcCR','RUwmY':_0x113c(0x173),'YWrHE':function(_0x4bfd05,_0x234746){return _0x4bfd05===_0x234746;},'xQrFl':_0x113c(0x174)};if(!_0x5cdbf[_0x113c(0x175)](isApiKeyInitialized)){if(_0x5cdbf[_0x113c(0x176)](_0x5cdbf[_0x113c(0x177)],'jxDVH'))throw new Error(_0x5cdbf[_0x113c(0x178)]);else{var _0x11ef9f;const _0x38486b=_0x5cdbf[_0x113c(0x179)](_0x214470,_0x270917);if(!_0x38486b)return _0x49fc81['warn'](_0x5cdbf['YWGhW']),null;const _0x5a5e64=_0x4b475a(_0x38486b);if(!_0x5a5e64)return null;const _0x3816bb=_0x5a5e64[_0x113c(0xfb)]||_0x5a5e64[_0x113c(0x17a)]||_0x5a5e64[_0x113c(0xfa)]||_0x5a5e64[_0x113c(0xf9)];return(_0x11ef9f=_0x4d3d95)!==null&&_0x5cdbf[_0x113c(0x17b)](_0x11ef9f,void 0x0)&&_0x11ef9f['enableLogging']&&_0x1df6bb[_0x113c(0x2a)](_0x5cdbf[_0x113c(0x17c)],_0x3816bb),_0x3816bb||null;}}const _0x5e81c9=_0x5cdbf[_0x113c(0x175)](getApiConfig),_0x4402c0=API_ENDPOINTS[_0x5e81c9['environment']||_0x113c(0x19)],_0x2af969=''+_0x4402c0+(_0xbda56c[_0x113c(0x31)]('/')?'':'/')+_0xbda56c,_0x23786e={..._0x5cdbf[_0x113c(0x175)](getDeveloperAuthHeaders),..._0x2ac4db[_0x113c(0xac)]||{}},_0x2e3c61=new AbortController(),_0xd19ea=_0x5cdbf['Cqrds'](setTimeout,()=>_0x2e3c61[_0x113c(0x97)](),_0x5e81c9[_0x113c(0x20)]||0x7530);try{if(_0x5cdbf['nwmZS'](_0x5cdbf['nkOUu'],_0x113c(0x17d))){var _0x2edad0;return((_0x2edad0=_0x330e4e)===null||_0x5cdbf[_0x113c(0x17e)](_0x2edad0,void 0x0)?void 0x0:_0x2edad0[_0x113c(0x33)])||null;}else{if(_0x5e81c9[_0x113c(0x36)]){if(_0x113c(0x17f)!==_0x113c(0x180))console[_0x113c(0x2a)](_0x113c(0x181)+_0xbda56c);else return _0x4ed83d[_0x113c(0x4a)](_0x5cdbf[_0x113c(0x182)]),{'isValid':![],'error':_0x5cdbf[_0x113c(0x183)],'keyType':_0x4ba86d,'isNetworkError':!![]};}const _0x498664=await fetch(_0x2af969,{..._0x2ac4db,'headers':_0x23786e,'signal':_0x2e3c61['signal']});_0x5cdbf[_0x113c(0x184)](clearTimeout,_0xd19ea);if(_0x5e81c9[_0x113c(0x36)]){if(_0x5cdbf['ppEHD'](_0x5cdbf[_0x113c(0x185)],_0x5cdbf[_0x113c(0x185)]))console[_0x113c(0x2a)](_0x113c(0x186)+_0x498664[_0x113c(0xa8)]+_0x113c(0x160)+_0xbda56c);else return _0x46e09e['DEVELOPER'];}if(_0x498664['status']===0x191){if(_0x5cdbf['Xiocx']!==_0x5cdbf['Xiocx']){_0x5cdbf[_0x113c(0x187)](_0x1fe9ab,_0x18ca7b);if(_0x5cdbf[_0x113c(0x17e)](_0x13568b[_0x113c(0xbd)],_0x5cdbf[_0x113c(0x188)])){_0x1eeb6b[_0x113c(0x12)](_0x5cdbf[_0x113c(0x189)],_0xa745f7);throw new _0x4f9b11(_0x5cdbf[_0x113c(0x18a)]);}throw _0x5531f0;}else{console[_0x113c(0x12)](_0x5cdbf[_0x113c(0x18b)]);throw new Error(_0x5cdbf['xYkVU']);}}if(_0x498664[_0x113c(0xa8)]===0x193){console['error'](_0x5cdbf[_0x113c(0x18c)]);throw new Error(_0x5cdbf[_0x113c(0x18d)]);}if(_0x5cdbf[_0x113c(0x17e)](_0x498664['status'],0x1ad)){if(_0x5cdbf[_0x113c(0x17b)](_0x5cdbf[_0x113c(0x18e)],_0x5cdbf[_0x113c(0x18f)])){console['error'](_0x5cdbf[_0x113c(0x190)]);throw new Error(_0x113c(0x156));}else{const _0x4c9948=_0x557d97[_0x113c(0x12)]||_0x29e9d6[_0x113c(0xc1)]||_0x113c(0xcf)+_0x203213[_0x113c(0xa8)]+':\x20'+_0x2fee74[_0x113c(0x5b)],_0x4dbd77={'isValid':![],'error':_0x4c9948,'keyType':_0x20297a};if(_0xe39e86[_0x113c(0xa8)]>=0x190&&_0x5cdbf['MVrEn'](_0xefa4a4[_0x113c(0xa8)],0x1f4)){var _0x3ac1c0;return(_0x3ac1c0=_0x21c132)!==null&&_0x3ac1c0!==void 0x0&&_0x3ac1c0['enableLogging']&&_0x5b3ede[_0x113c(0x12)](_0x113c(0x78),_0x4c9948),_0x4dbd77;}throw new _0x1d84f0(_0x4c9948);}}return _0x498664;}}catch(_0x5b0a02){if(_0x5cdbf[_0x113c(0x191)](_0x5cdbf[_0x113c(0x192)],_0x113c(0x174))){clearTimeout(_0xd19ea);if(_0x5b0a02[_0x113c(0xbd)]===_0x5cdbf[_0x113c(0x188)]){console[_0x113c(0x12)](_0x5cdbf['gTBdW'],_0xbda56c);throw new Error(_0x113c(0x159));}throw _0x5b0a02;}else _0x204323[_0x113c(0x12)](_0x5cdbf['yGbfg'],_0x29a8e9);}};export const makeUserRequest=async(_0x5f0250,_0x353526={})=>{const _0x2d6fd3={'NrdEL':function(_0x2c0a4f,_0x1962f1){return _0x2c0a4f|_0x1962f1;},'eFTIE':function(_0x5c0d97,_0x537626){return _0x5c0d97<<_0x537626;},'ManKR':function(_0x2c74e5,_0x5ca6af){return _0x2c74e5<<_0x5ca6af;},'ORrCW':function(_0x230626,_0x432c6c){return _0x230626&_0x432c6c;},'CyhUt':function(_0x352ac3,_0x1052a3){return _0x352ac3>>_0x1052a3;},'pxkTm':function(_0x5f1584,_0x1c1fc1){return _0x5f1584&_0x1c1fc1;},'PrAPQ':function(_0x50daf1,_0x2835b9){return _0x50daf1!==_0x2835b9;},'xagRj':function(_0x21e711,_0x284500){return _0x21e711&_0x284500;},'QLMRm':function(_0x491394){return _0x491394();},'kKZda':function(_0x16058b){return _0x16058b();},'tmMur':_0x113c(0x193),'syaDR':function(_0x5258d8){return _0x5258d8();},'SOQIu':'production','AIHfl':function(_0x32249d,_0x88c5e9){return _0x32249d===_0x88c5e9;},'aJAgy':'leGhx','dgJBx':function(_0x14f51b,_0x40f846,_0x4ccf0e){return _0x14f51b(_0x40f846,_0x4ccf0e);},'PjvDj':function(_0x140508,_0x4e5b34){return _0x140508(_0x4e5b34);},'pRNmn':function(_0x56ad6c,_0x5e36b1){return _0x56ad6c===_0x5e36b1;},'CJawG':_0x113c(0x194),'ZwPFo':'โŒ\x20JWT\x20token\x20authentication\x20failed\x20-\x20token\x20may\x20be\x20expired','VHfeN':_0x113c(0x195),'LfUAe':_0x113c(0x12d),'CKaBX':'Insufficient\x20permissions\x20for\x20this\x20operation','mmFOu':function(_0x59068a,_0x581808){return _0x59068a(_0x581808);},'eHeTd':_0x113c(0x79),'dwADy':_0x113c(0x158)};!_0x2d6fd3['QLMRm'](isUserAuthenticated)&&await _0x2d6fd3[_0x113c(0x196)](loadJWT);if(!isUserAuthenticated())throw new Error(_0x2d6fd3[_0x113c(0x197)]);const _0x47035d=_0x2d6fd3[_0x113c(0x198)](getApiConfig)||{'environment':_0x2d6fd3[_0x113c(0x199)],'timeout':0x7530,'enableLogging':![]},_0x486a7a=API_ENDPOINTS[_0x47035d[_0x113c(0x3b)]||_0x2d6fd3[_0x113c(0x199)]],_0x573601=''+_0x486a7a+(_0x5f0250[_0x113c(0x31)]('/')?'':'/')+_0x5f0250,_0x347356={...getUserAuthHeaders(),..._0x353526['headers']||{}},_0x113c7f=new AbortController(),_0x3f7e5d=setTimeout(()=>_0x113c7f[_0x113c(0x97)](),_0x47035d['timeout']||0x7530);try{if(_0x47035d[_0x113c(0x36)]){if(_0x2d6fd3[_0x113c(0x19a)](_0x2d6fd3[_0x113c(0x19b)],_0x2d6fd3[_0x113c(0x19b)]))console[_0x113c(0x2a)]('๐ŸŒ\x20Making\x20user\x20request\x20to:\x20'+_0x5f0250);else throw new _0x2e9f4a(_0x113c(0x19c));}const _0x59b3e5=await _0x2d6fd3[_0x113c(0x19d)](fetch,_0x573601,{..._0x353526,'headers':_0x347356,'signal':_0x113c7f[_0x113c(0xa4)]});_0x2d6fd3[_0x113c(0x19e)](clearTimeout,_0x3f7e5d);if(_0x47035d[_0x113c(0x36)]){if(_0x2d6fd3[_0x113c(0x19f)](_0x2d6fd3[_0x113c(0x1a0)],'zTtwj')){const _0x17d69e=_0x7c25cc['indexOf'](_0x6afe63[_0x113c(0x120)](_0x423cbe++)),_0x546f59=_0x591732[_0x113c(0x11f)](_0x4edd1e[_0x113c(0x120)](_0x4a2c65++)),_0x13127c=_0x626d2c[_0x113c(0x11f)](_0x3b5b2a[_0x113c(0x120)](_0x238dc4++)),_0x4ccff4=_0x5eb4f2[_0x113c(0x11f)](_0x1b2bac[_0x113c(0x120)](_0x167fdc++)),_0x3a2892=_0x2d6fd3['NrdEL'](_0x2d6fd3['NrdEL'](_0x2d6fd3[_0x113c(0x1a1)](_0x2d6fd3['eFTIE'](_0x17d69e,0x12),_0x2d6fd3[_0x113c(0x1a2)](_0x546f59,0xc)),_0x2d6fd3['ManKR'](_0x13127c,0x6)),_0x4ccff4);_0x542535+=_0x42d46b['fromCharCode'](_0x2d6fd3['ORrCW'](_0x2d6fd3[_0x113c(0x1a3)](_0x3a2892,0x10),0xff));if(_0x13127c!==0x40)_0x3d5e38+=_0x37b265['fromCharCode'](_0x2d6fd3[_0x113c(0x1a4)](_0x3a2892>>0x8,0xff));if(_0x2d6fd3[_0x113c(0x1a5)](_0x4ccff4,0x40))_0x30c1b0+=_0x3e65bf['fromCharCode'](_0x2d6fd3['xagRj'](_0x3a2892,0xff));}else console[_0x113c(0x2a)](_0x113c(0x16a)+_0x59b3e5[_0x113c(0xa8)]+_0x113c(0x160)+_0x5f0250);}if(_0x59b3e5[_0x113c(0xa8)]===0x191){console[_0x113c(0x12)](_0x2d6fd3[_0x113c(0x1a6)]),await clearJWT();throw new Error('Authentication\x20expired.\x20Please\x20verify\x20email\x20again.');}if(_0x2d6fd3[_0x113c(0x19f)](_0x59b3e5[_0x113c(0xa8)],0x193)){if(_0x2d6fd3[_0x113c(0x1a7)]!==_0x2d6fd3[_0x113c(0x1a7)])_0x39d551[_0x113c(0x2a)](_0x113c(0x1a8)+_0x5485f2);else{console[_0x113c(0x12)](_0x2d6fd3[_0x113c(0x1a9)]);throw new Error(_0x2d6fd3[_0x113c(0x1aa)]);}}return _0x59b3e5;}catch(_0x30d0f5){_0x2d6fd3['mmFOu'](clearTimeout,_0x3f7e5d);if(_0x2d6fd3['pRNmn'](_0x30d0f5[_0x113c(0xbd)],_0x2d6fd3[_0x113c(0x1ab)])){console[_0x113c(0x12)](_0x2d6fd3[_0x113c(0x1ac)],_0x5f0250);throw new Error(_0x113c(0x159));}throw _0x30d0f5;}};export const clearValidationCache=()=>{const _0x32487f={'sdkTP':_0x113c(0x3a),'nPdHN':function(_0x4aa3e0,_0x587b30){return _0x4aa3e0+_0x587b30;},'tiYtX':_0x113c(0x1b),'KGUut':function(_0x11e81a,_0x68317){return _0x11e81a!==_0x68317;},'foESE':function(_0x4eb72b,_0x37dcc3){return _0x4eb72b!==_0x37dcc3;},'gPsgi':_0x113c(0x1ad)};var _0x2cbeda;validationCache[_0x113c(0x106)](),_0x32487f[_0x113c(0x1ae)](_0x2cbeda=globalConfig,null)&&_0x2cbeda!==void 0x0&&_0x2cbeda['enableLogging']&&(_0x32487f[_0x113c(0x1af)](_0x32487f[_0x113c(0x1b0)],_0x113c(0x1ad))?_0x2298fd[_0x113c(0x2a)](_0x32487f[_0x113c(0x1b1)],{'environment':_0xa13962['environment'],'timeout':_0x4dfa0b[_0x113c(0x20)],'retryAttempts':_0x5b3ca7[_0x113c(0x37)],'apiKeyPrefix':_0x32487f['nPdHN'](_0x4026db[_0x113c(0x33)][_0x113c(0x3c)](0x0,0x8),_0x32487f[_0x113c(0x1b2)]),'enableLogging':_0x73be4e['enableLogging']}):console[_0x113c(0x2a)](_0x113c(0x1b3)));};export const resetApiKeyService=()=>{const _0x249a9d={'kpNMp':function(_0xa17970){return _0xa17970();},'QRLIb':_0x113c(0x1b4)};globalConfig=null,isInitialized=![],_0x249a9d['kpNMp'](clearValidationCache),console[_0x113c(0x2a)](_0x249a9d[_0x113c(0x1b5)]);};
@@ -1 +1 @@
1
- import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG,getApiHeaders,getAuthHeaders}from'../config/api';import{getDeveloperAuthHeaders}from'./apiKeyService';import{storeJWT,getJWT,clearJWT}from'./jwtStorageService';const API_BASE_URL=API_CONFIG[_0x3c6f(0x0)];export const authenticateWithOnairos=async _0x22948b=>{const _0xf987ea={'JABfE':_0x3c6f(0x1),'DMfWR':function(_0x45e7bc,_0x34e36b){return _0x45e7bc(_0x34e36b);},'NaFuQ':_0x3c6f(0x2),'cbUBg':'Onairos\x20User','QBrKo':_0x3c6f(0x3),'Raapa':_0x3c6f(0x4),'bKDll':function(_0x24bbfd,_0x9f7447){return _0x24bbfd!==_0x9f7447;},'ynGNf':_0x3c6f(0x5)};try{console[_0x3c6f(0x6)](_0xf987ea[_0x3c6f(0x7)]),await _0xf987ea[_0x3c6f(0x8)](storeJWT,_0x22948b[_0x3c6f(0x9)]);const _0x12fdc9=await AsyncStorage[_0x3c6f(0xa)](_0xf987ea[_0x3c6f(0xb)]),_0x2dd0d3=_0x12fdc9||_0x22948b[_0x3c6f(0xc)][_0x3c6f(0xd)]('@')[0x0]||_0xf987ea['cbUBg'];return await AsyncStorage[_0x3c6f(0xe)](_0xf987ea[_0x3c6f(0xb)],_0x2dd0d3),await AsyncStorage[_0x3c6f(0xe)](_0xf987ea[_0x3c6f(0xf)],_0x22948b[_0x3c6f(0xc)]),console['log'](_0x3c6f(0x10),_0x22948b[_0x3c6f(0x9)][_0x3c6f(0x11)](0x0,0x14)+_0x3c6f(0x12)),console[_0x3c6f(0x6)](_0xf987ea['Raapa'],{'email':_0x22948b[_0x3c6f(0xc)],'username':_0x2dd0d3}),{'token':_0x22948b['token'],'user':{'id':Date[_0x3c6f(0x13)]()[_0x3c6f(0x14)](),'name':_0x2dd0d3,'email':_0x22948b['email'],'profilePicture':''}};}catch(_0x3063d9){if(_0xf987ea['bKDll'](_0xf987ea['ynGNf'],_0xf987ea[_0x3c6f(0x15)])){_0x2e4167[_0x3c6f(0x16)]('Error\x20saving\x20auth\x20token:',_0x54f265);throw _0x1207b2;}else{console[_0x3c6f(0x16)]('โŒ\x20Onairos\x20authentication\x20error:',_0x3063d9);throw _0x3063d9;}}};export const authenticateWithOnairosSignIn=async _0x15b08a=>{const _0x263a8b={'KMQgI':_0x3c6f(0x17),'qlJix':_0x3c6f(0x18),'zcsGB':_0x3c6f(0x19),'ieopF':function(_0x4e970f,_0x8bbc7){return _0x4e970f!==_0x8bbc7;},'apZVJ':_0x3c6f(0x1a),'ontQO':_0x3c6f(0x1b),'Bofig':function(_0xc4aceb){return _0xc4aceb();},'qtjbO':_0x3c6f(0x1c),'QvFDR':'โœ…\x20Onairos\x20sign-in\x20successful','dWlYw':_0x3c6f(0x1d),'OHZfm':'DyILv','nRnYH':function(_0x3649e6,_0x2a5d7b){return _0x3649e6(_0x2a5d7b);},'QSrnG':'RaXqE','zeaqD':'onairos_username','SCCmF':_0x3c6f(0x3),'KRqyo':'๐Ÿ”‘\x20Onairos\x20sign-in\x20token\x20stored:'};try{if(_0x263a8b[_0x3c6f(0x1e)](_0x263a8b[_0x3c6f(0x1f)],_0x3c6f(0x1a)))return _0xa0f8f8[_0x3c6f(0x6)](_0x263a8b[_0x3c6f(0x20)]),!![];else{console['log'](_0x263a8b['ontQO']);const _0x2f03cb=await fetch(API_BASE_URL+_0x3c6f(0x21),{'method':'POST','headers':_0x263a8b[_0x3c6f(0x22)](getApiHeaders),'body':JSON['stringify'](_0x15b08a)});if(!_0x2f03cb['ok']){if(_0x263a8b[_0x3c6f(0x23)]!==_0x263a8b[_0x3c6f(0x23)])_0x32444b['error'](_0x263a8b[_0x3c6f(0x24)],_0x5ab40e);else{const _0x1cb333=await _0x2f03cb[_0x3c6f(0x25)]();throw new Error(_0x1cb333[_0x3c6f(0x16)]||_0x3c6f(0x26));}}const _0x4b3690=await _0x2f03cb[_0x3c6f(0x25)]();console[_0x3c6f(0x6)](_0x263a8b[_0x3c6f(0x27)]);if(!_0x4b3690[_0x3c6f(0x9)]){if(_0x263a8b[_0x3c6f(0x28)]!==_0x263a8b[_0x3c6f(0x29)])throw new Error(_0x3c6f(0x2a));else return _0x206bbf[_0x3c6f(0x16)](_0x263a8b['zcsGB'],_0x5b263a),{'success':![],'message':_0x3c6f(0x2b)};}await _0x263a8b[_0x3c6f(0x2c)](storeJWT,_0x4b3690[_0x3c6f(0x9)]);if(_0x4b3690['username']){if(_0x263a8b[_0x3c6f(0x1e)](_0x263a8b[_0x3c6f(0x2d)],_0x263a8b['QSrnG']))return _0x3f7710['log']('โŒ\x20Verification\x20failed:',_0xd6b957[_0x3c6f(0x16)]||_0x1ca8c6[_0x3c6f(0x2e)]),{'success':![],'message':_0x1e8ab0['error']||_0x2d0be2['message']||'Invalid\x20verification\x20code'};else await AsyncStorage['setItem'](_0x263a8b['zeaqD'],_0x4b3690['username']);}return await AsyncStorage[_0x3c6f(0xe)](_0x263a8b[_0x3c6f(0x2f)],_0x15b08a[_0x3c6f(0xc)]),console[_0x3c6f(0x6)](_0x263a8b[_0x3c6f(0x30)],_0x4b3690['token'][_0x3c6f(0x11)](0x0,0x14)+_0x3c6f(0x12)),{'token':_0x4b3690[_0x3c6f(0x9)],'user':{'id':Date[_0x3c6f(0x13)]()[_0x3c6f(0x14)](),'name':_0x4b3690['username'],'email':_0x15b08a[_0x3c6f(0xc)],'profilePicture':''}};}}catch(_0x23b6cb){console[_0x3c6f(0x16)](_0x3c6f(0x31),_0x23b6cb);throw _0x23b6cb;}};export const authenticateWithApple=async _0x5e9388=>{const _0x2e00fc={'rqeWz':_0x3c6f(0x32),'kGUot':_0x3c6f(0x33),'eHPBp':function(_0x9d9898,_0x5d455c){return _0x9d9898===_0x5d455c;},'hrmfM':'ecYfh','clwIs':_0x3c6f(0x34),'MXNjW':function(_0xea6368,_0x32ab33,_0x48d0ef){return _0xea6368(_0x32ab33,_0x48d0ef);},'eKJaX':function(_0x4ac315){return _0x4ac315();},'BgCpn':function(_0x17f1f1,_0x56aa05){return _0x17f1f1!==_0x56aa05;},'rbjdg':_0x3c6f(0x35),'OzXEk':_0x3c6f(0x36),'wuxoE':function(_0x36603b,_0x1cca1e){return _0x36603b(_0x1cca1e);},'GTkAw':function(_0x26aa2f,_0x4b43ac){return _0x26aa2f===_0x4b43ac;},'cNPKN':'onairos_username','sgwxL':function(_0x2fe019,_0x5ddb61){return _0x2fe019===_0x5ddb61;},'HzfgN':_0x3c6f(0x3),'gJOqE':_0x3c6f(0x37),'DOixx':function(_0x2befa5,_0x4761af){return _0x2befa5===_0x4761af;},'fuoal':function(_0x1ee2f6,_0xa716dc){return _0x1ee2f6===_0xa716dc;}};try{if(_0x2e00fc[_0x3c6f(0x38)](_0x2e00fc[_0x3c6f(0x39)],'qxkGT'))_0x207585[_0x3c6f(0x3a)](_0x3c6f(0x3b)+_0x412f28+_0x3c6f(0x3c));else{var _0x4c0879,_0x1cc123,_0x1570cc,_0x46ed63;const _0x470976=_0x5e9388[_0x3c6f(0x3d)]?((_0x5e9388[_0x3c6f(0x3d)][_0x3c6f(0x3e)]||'')+'\x20'+(_0x5e9388['fullName'][_0x3c6f(0x3f)]||''))[_0x3c6f(0x40)]():_0x2e00fc[_0x3c6f(0x41)];console[_0x3c6f(0x6)](_0x3c6f(0x42));const _0x50a4b7=await _0x2e00fc[_0x3c6f(0x43)](fetch,API_BASE_URL+_0x3c6f(0x44),{'method':'POST','headers':_0x2e00fc[_0x3c6f(0x45)](getApiHeaders),'body':JSON[_0x3c6f(0x46)]({'idToken':_0x5e9388[_0x3c6f(0x47)],'nonce':_0x5e9388[_0x3c6f(0x48)],'name':_0x470976,'email':_0x5e9388[_0x3c6f(0xc)]})});if(!_0x50a4b7['ok']){if(_0x2e00fc[_0x3c6f(0x49)]('wrsgx',_0x2e00fc['rbjdg']))return _0x21164c['error'](_0x2e00fc[_0x3c6f(0x4a)],_0x2e17a0),{'success':![],'message':_0x2e00fc[_0x3c6f(0x4b)]};else{const _0x2ecaf6=await _0x50a4b7[_0x3c6f(0x25)]();throw new Error(_0x2ecaf6['error']||_0x3c6f(0x4c));}}const _0x24e2ab=await _0x50a4b7[_0x3c6f(0x25)]();console['log'](_0x2e00fc['OzXEk']);if(!_0x24e2ab['token'])throw new Error(_0x3c6f(0x4d));await _0x2e00fc['wuxoE'](storeJWT,_0x24e2ab[_0x3c6f(0x9)]);const _0x303773=((_0x4c0879=_0x24e2ab['user'])===null||_0x2e00fc[_0x3c6f(0x4e)](_0x4c0879,void 0x0)?void 0x0:_0x4c0879[_0x3c6f(0x4f)])||_0x24e2ab[_0x3c6f(0x4f)]||_0x470976;await AsyncStorage[_0x3c6f(0xe)](_0x2e00fc[_0x3c6f(0x50)],_0x303773);const _0x2b43fb=(_0x2e00fc['sgwxL'](_0x1cc123=_0x24e2ab[_0x3c6f(0x51)],null)||_0x2e00fc[_0x3c6f(0x4e)](_0x1cc123,void 0x0)?void 0x0:_0x1cc123[_0x3c6f(0xc)])||_0x5e9388['email']||_0x3c6f(0x52)+_0x5e9388[_0x3c6f(0x51)]+'@privaterelay.apple.com';return await AsyncStorage[_0x3c6f(0xe)](_0x2e00fc[_0x3c6f(0x53)],_0x2b43fb),console[_0x3c6f(0x6)](_0x2e00fc['gJOqE'],_0x24e2ab[_0x3c6f(0x9)][_0x3c6f(0x11)](0x0,0x14)+_0x3c6f(0x12)),{'success':!![],'token':_0x24e2ab[_0x3c6f(0x9)],'user':{'id':(_0x2e00fc[_0x3c6f(0x38)](_0x1570cc=_0x24e2ab[_0x3c6f(0x51)],null)||_0x2e00fc['DOixx'](_0x1570cc,void 0x0)?void 0x0:_0x1570cc['id'])||'','odeanId':_0x2e00fc[_0x3c6f(0x54)](_0x46ed63=_0x24e2ab[_0x3c6f(0x51)],null)||_0x2e00fc[_0x3c6f(0x55)](_0x46ed63,void 0x0)?void 0x0:_0x46ed63[_0x3c6f(0x56)],'email':_0x2b43fb,'username':_0x303773},'isNewUser':_0x24e2ab['isNewUser']||![]};}}catch(_0x41e0a8){console['error'](_0x3c6f(0x57),_0x41e0a8);throw _0x41e0a8;}};export const saveAuthToken=async _0x5408aa=>{const _0x127a92={'QlsLz':'auth_token','eOKRP':_0x3c6f(0x58)};try{await AsyncStorage['setItem'](_0x127a92[_0x3c6f(0x59)],_0x5408aa);}catch(_0x1ecfcb){console[_0x3c6f(0x16)](_0x127a92[_0x3c6f(0x5a)],_0x1ecfcb);throw _0x1ecfcb;}};export const debugAuthStorage=async()=>{const _0x8e72e={'rbAuF':_0x3c6f(0x5b),'nrTtt':_0x3c6f(0x5c),'oyMCz':_0x3c6f(0x3),'UyRAv':_0x3c6f(0x5d),'ZoIbK':_0x3c6f(0x5e),'WRxmT':_0x3c6f(0x5f),'NJhAz':_0x3c6f(0x60),'lyqPg':_0x3c6f(0x61),'iOvKW':function(_0x41f140,_0x16374b){return _0x41f140===_0x16374b;},'XcZtP':_0x3c6f(0x62)};console[_0x3c6f(0x6)](_0x8e72e[_0x3c6f(0x63)]);const _0x29654c=await AsyncStorage[_0x3c6f(0xa)](_0x8e72e[_0x3c6f(0x64)]),_0x59c7bf=await AsyncStorage['getItem'](_0x8e72e['oyMCz']),_0x2cdbb6=await AsyncStorage[_0x3c6f(0xa)](_0x3c6f(0x2)),_0x220991=await AsyncStorage[_0x3c6f(0xa)](_0x8e72e[_0x3c6f(0x65)]);console[_0x3c6f(0x6)]('๐Ÿ”‘\x20sdk_jwt_token:',_0x29654c?'\x22'+_0x29654c[_0x3c6f(0x11)](0x0,0x1e)+'...\x22':_0x8e72e[_0x3c6f(0x66)]),console[_0x3c6f(0x6)](_0x8e72e[_0x3c6f(0x67)],_0x59c7bf?'\x22'+_0x59c7bf+'\x22':'null'),console['log'](_0x8e72e[_0x3c6f(0x68)],_0x2cdbb6?'\x22'+_0x2cdbb6+'\x22':_0x8e72e['ZoIbK']),console['log'](_0x8e72e[_0x3c6f(0x69)],_0x220991?'\x22'+_0x220991+'\x22':'null');if(_0x29654c){const _0x88f2b5=_0x8e72e[_0x3c6f(0x6a)](_0x29654c[_0x3c6f(0xd)]('.')[_0x3c6f(0x6b)],0x3);console[_0x3c6f(0x6)](_0x8e72e[_0x3c6f(0x6c)],_0x88f2b5);}};export const clearAllAuthTokens=async()=>{const _0x490127={'KcATF':function(_0xf5cafe){return _0xf5cafe();},'NGaYH':_0x3c6f(0x3),'crbyC':_0x3c6f(0x2),'wUxii':_0x3c6f(0x5d),'rQUxZ':_0x3c6f(0x6d),'uwzmU':_0x3c6f(0x6e)};console[_0x3c6f(0x6)]('๐Ÿงน\x20[AUTH]\x20Clearing\x20all\x20auth\x20tokens...'),await _0x490127['KcATF'](clearJWT),await AsyncStorage[_0x3c6f(0x6f)]([_0x490127['NGaYH'],_0x490127[_0x3c6f(0x70)],_0x490127[_0x3c6f(0x71)],_0x490127['rQUxZ']]),console[_0x3c6f(0x6)](_0x490127[_0x3c6f(0x72)]);};function _0x4791(){const _0xd22c40=['BASE_URL','๐Ÿ”‘\x20Authenticating\x20with\x20Onairos...','onairos_username','user_email','๐Ÿ‘ค\x20User\x20info:','MlJHA','log','JABfE','DMfWR','token','getItem','NaFuQ','email','split','setItem','QBrKo','๐Ÿ”‘\x20Onairos\x20auth\x20token\x20stored:','substring','...','now','toString','ynGNf','error','โœ…\x20[TOKEN\x20VERIFY]\x20Token\x20is\x20valid','Error\x20removing\x20auth\x20token:','โŒ\x20Error\x20verifying\x20code:','rVFhu','๐Ÿ”‘\x20Signing\x20in\x20with\x20Onairos\x20via\x20/login/signin\x20endpoint...','YtuwY','aMjvS','ieopF','apZVJ','KMQgI','/login/signin','Bofig','qtjbO','qlJix','json','Onairos\x20sign-in\x20failed','QvFDR','dWlYw','OHZfm','No\x20authentication\x20token\x20returned\x20from\x20Onairos\x20sign-in','Verification\x20failed.\x20Please\x20try\x20again.','nRnYH','QSrnG','message','SCCmF','KRqyo','โŒ\x20Onairos\x20sign-in\x20error:','โŒ\x20Error\x20sending\x20verification\x20code:','Network\x20error.\x20Please\x20check\x20your\x20connection.','Onairos\x20User','wrsgx','โœ…\x20Apple\x20authentication\x20successful','๐Ÿ”‘\x20Apple\x20auth\x20token\x20stored:','eHPBp','hrmfM','warn','โš ๏ธ\x20[',']\x20No\x20valid\x20authentication\x20available\x20-\x20API\x20call\x20may\x20return\x20limited\x20data','fullName','givenName','familyName','trim','clwIs','๐ŸŽ\x20Authenticating\x20with\x20Apple\x20via\x20generic\x20SDK\x20endpoint...','MXNjW','/register/apple','eKJaX','stringify','identityToken','nonce','BgCpn','rqeWz','kGUot','Apple\x20authentication\x20failed','No\x20authentication\x20token\x20returned\x20from\x20Apple\x20auth','GTkAw','username','cNPKN','user','apple_','HzfgN','DOixx','fuoal','odeanId','โŒ\x20Apple\x20authentication\x20error:','Error\x20saving\x20auth\x20token:','QlsLz','eOKRP','๐Ÿ”\x20[AUTH\x20STORAGE\x20DEBUG]\x20Checking\x20all\x20auth-related\x20storage:','sdk_jwt_token','auth_method','null','๐Ÿ”‘\x20user_email:','๐Ÿ”‘\x20onairos_username:','๐Ÿ”‘\x20auth_method:','๐Ÿ”\x20Token\x20appears\x20to\x20be\x20valid\x20JWT:','rbAuF','nrTtt','UyRAv','ZoIbK','WRxmT','NJhAz','lyqPg','iOvKW','length','XcZtP','onairos_user','โœ…\x20[AUTH]\x20All\x20auth\x20tokens\x20and\x20data\x20cleared','multiRemove','crbyC','wUxii','uwzmU','โœ…\x20[AUTH]\x20Found\x20JWT\x20token:','โŒ\x20[AUTH]\x20Error\x20during\x20token\x20retrieval:','fZKIz','theil','hevNA','OsFrL','eFpbE','DJifG','ZsnzM','removeItem','SqWAb','โŒ\x20Onairos\x20authentication\x20error:','โŒ\x20[AUTH\x20VALIDATION]\x20Error\x20checking\x20authentication\x20status:','CRWdH','CLttS','cmvaY','kbJKu',']\x20Authentication\x20validated\x20for\x20API\x20call','Ltvtf','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Verifying\x20token\x20with\x20backend...','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Token\x20preview:','โŒ\x20[TOKEN\x20VERIFY]\x20Token\x20verification\x20failed:','JDzPB','senOS','RLcsO','qnzjb','eoDdZ','HULjc','EQzAt','vFfqD','tLchz','trEbg','/api/auth/verify','uRFrh','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Verification\x20response\x20status:','status','oIHJw','wFHNA','text','BbFEi','qqDMV','UMyiL','โŒ\x20[TOKEN\x20VERIFY]\x20Token\x20verification\x20error:','admin@enoch.events','admin@onairos.uk','๐Ÿšซ\x20[Admin\x20Check]\x20No\x20admin\x20access\x20for:','gjIMa','fZNIT','ZPpVZ','odEal','includes','๐Ÿ”‘\x20[Admin\x20Check]\x20Admin\x20access\x20granted\x20for:','VKCMW','โŒ\x20Failed\x20to\x20get\x20auth\x20headers:','SDK\x20not\x20properly\x20initialized.\x20Please\x20restart\x20the\x20app\x20and\x20try\x20again.','lTmHW','ZQnBN','riDoJ','VcLoy','TvkUP','KedBx','ooyEF','ojKpl','zfoWy','RzmoQ','CdawP','dQuMs','oLWfX','PLGgb','โœ…\x20Verification\x20code\x20sent\x20successfully','Error\x20saving\x20admin\x20status:','aFHyq','DbeVT','ZOqut','user_admin_status','dEYAo','OfUka','crsRW','YblGD','๐Ÿ”’\x20[Admin\x20Check]\x20No\x20email\x20provided','nicholas.berry@onairos.uk','zion.darko@onairos.uk','AISce','toLowerCase','qGYEE','XUSXS','lhYIu','TTBqm','sxpBg','KjoEy','sfqTD','PwCRr','HYYTz','๐Ÿ“ง\x20Sending\x20verification\x20code\x20to:','request','fBgqr','โŒ\x20Failed\x20to\x20send\x20verification\x20code:','Failed\x20to\x20send\x20verification\x20code','/email/verification','EaApx','rqVqQ','pNoxA','NAoJQ','success','XHooy','LwYYv','gfISK','cZEQd','rZnhv','URxDe','๐Ÿ”\x20Verifying\x20code\x20for:','nPeif','CcJPv','verify','ENVPY','mIjSw','true','Invalid\x20verification\x20code','JDhmy','upAUv','mdLsC','UuUAd','ikMIX','eBVpS','hOGoA','LRYas','OqtAP','MFlct','jwtToken','hEkrE','qgqKr','Error\x20getting\x20Onairos\x20username:','HAPAp','existingUser','nQpsR','existingUserData','flowType','xTuwL','ndqek','rFBDA','oyJkC','iLvLw','enochInstructions','โŒ\x20Verification\x20failed:','lEGNU','JqcpN'];_0x4791=function(){return _0xd22c40;};return _0x4791();}export const getAuthToken=async()=>{const _0x5a3164={'DDLCZ':function(_0x310587){return _0x310587();},'fZKIz':_0x3c6f(0x73),'theil':_0x3c6f(0x74)};try{const _0x1d5952=await _0x5a3164['DDLCZ'](getJWT);if(_0x1d5952)return console[_0x3c6f(0x6)](_0x5a3164[_0x3c6f(0x75)],_0x1d5952['substring'](0x0,0x14)+_0x3c6f(0x12)),_0x1d5952;return console[_0x3c6f(0x3a)]('โŒ\x20[AUTH]\x20No\x20valid\x20JWT\x20token\x20found'),null;}catch(_0x3ca834){return console['error'](_0x5a3164[_0x3c6f(0x76)],_0x3ca834),null;}};export const removeAuthToken=async()=>{const _0x3fa3e0={'ZsnzM':_0x3c6f(0x57),'OMEhi':function(_0x834fda,_0x217d8f){return _0x834fda===_0x217d8f;},'eFpbE':_0x3c6f(0x77),'DJifG':_0x3c6f(0x78),'SqWAb':'auth_token','nyUNa':_0x3c6f(0x18)};try{if(_0x3fa3e0['OMEhi'](_0x3fa3e0[_0x3c6f(0x79)],_0x3fa3e0[_0x3c6f(0x7a)])){_0x2c87e0[_0x3c6f(0x16)](_0x3fa3e0[_0x3c6f(0x7b)],_0x3ef59f);throw _0x3735d3;}else await AsyncStorage[_0x3c6f(0x7c)](_0x3fa3e0[_0x3c6f(0x7d)]);}catch(_0x1eff08){console[_0x3c6f(0x16)](_0x3fa3e0['nyUNa'],_0x1eff08);}};export const isAuthenticated=async()=>{const _0x4d489c={'kbJKu':_0x3c6f(0x7e),'StTLJ':function(_0x4a5513){return _0x4a5513();},'CRWdH':function(_0x278742,_0x43327a){return _0x278742!==_0x43327a;},'CLttS':'cmvaY','ywVjZ':_0x3c6f(0x7f)};try{const _0x18a6f0=await _0x4d489c['StTLJ'](getAuthToken);return _0x18a6f0!==null&&_0x18a6f0[_0x3c6f(0x6b)]>0x32;}catch(_0x3a2c58){if(_0x4d489c[_0x3c6f(0x80)](_0x4d489c[_0x3c6f(0x81)],_0x3c6f(0x82))){_0x2e94c7[_0x3c6f(0x16)](_0x4d489c[_0x3c6f(0x83)],_0x5e1d48);throw _0x249192;}else return console['error'](_0x4d489c['ywVjZ'],_0x3a2c58),![];}};export const ensureAuthentication=async _0x26cbe1=>{const _0x2d17a8=await isAuthenticated();return!_0x2d17a8?console[_0x3c6f(0x3a)](_0x3c6f(0x3b)+_0x26cbe1+']\x20No\x20valid\x20authentication\x20available\x20-\x20API\x20call\x20may\x20return\x20limited\x20data'):console[_0x3c6f(0x6)]('โœ…\x20['+_0x26cbe1+_0x3c6f(0x84)),_0x2d17a8;};export const verifyToken=async()=>{const _0x59dc19={'vFfqD':function(_0x262b5c,_0x3ea5a0){return _0x262b5c===_0x3ea5a0;},'qaLgu':_0x3c6f(0x62),'wFHNA':_0x3c6f(0x73),'RLcsO':function(_0x1a473b){return _0x1a473b();},'qnzjb':function(_0x7d6b57,_0x4df9c5){return _0x7d6b57!==_0x4df9c5;},'eoDdZ':_0x3c6f(0x85),'HULjc':'WHugJ','EQzAt':'๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20No\x20token\x20available\x20for\x20verification','tLchz':_0x3c6f(0x86),'trEbg':_0x3c6f(0x87),'AXWtU':function(_0x158fcb,_0x1d1956,_0x9c0442){return _0x158fcb(_0x1d1956,_0x9c0442);},'uRFrh':function(_0x42ab2b,_0x3ae12d){return _0x42ab2b(_0x3ae12d);},'oIHJw':'XCaHB','BbFEi':_0x3c6f(0x88),'qqDMV':_0x3c6f(0x89),'UMyiL':_0x3c6f(0x8a)};try{const _0x3cd658=await _0x59dc19[_0x3c6f(0x8b)](getAuthToken);if(!_0x3cd658){if(_0x59dc19[_0x3c6f(0x8c)](_0x59dc19[_0x3c6f(0x8d)],_0x59dc19[_0x3c6f(0x8e)]))return console[_0x3c6f(0x3a)](_0x59dc19[_0x3c6f(0x8f)]),![];else{const _0x3ad001=_0x59dc19[_0x3c6f(0x90)](_0x8f8cfb[_0x3c6f(0xd)]('.')[_0x3c6f(0x6b)],0x3);_0x74ed07[_0x3c6f(0x6)](_0x59dc19['qaLgu'],_0x3ad001);}}console['log'](_0x59dc19[_0x3c6f(0x91)]),console['log'](_0x59dc19[_0x3c6f(0x92)],_0x3cd658[_0x3c6f(0x11)](0x0,0x14)+_0x3c6f(0x12));const _0x1aa484=await _0x59dc19['AXWtU'](fetch,API_BASE_URL+_0x3c6f(0x93),{'method':'GET','headers':_0x59dc19[_0x3c6f(0x94)](getAuthHeaders,_0x3cd658)});console[_0x3c6f(0x6)](_0x3c6f(0x95),_0x1aa484[_0x3c6f(0x96)]);if(_0x1aa484['ok'])return _0x59dc19[_0x3c6f(0x97)]===_0x59dc19[_0x3c6f(0x97)]?(console[_0x3c6f(0x6)]('โœ…\x20[TOKEN\x20VERIFY]\x20Token\x20is\x20valid'),!![]):(_0x50399f[_0x3c6f(0x6)](_0x59dc19[_0x3c6f(0x98)],_0x238c0e[_0x3c6f(0x11)](0x0,0x14)+_0x3c6f(0x12)),_0x3c53a4);else{const _0x122215=await _0x1aa484[_0x3c6f(0x99)]();return console[_0x3c6f(0x3a)](_0x59dc19[_0x3c6f(0x9a)],_0x1aa484[_0x3c6f(0x96)],_0x122215),![];}}catch(_0x4ae0b7){if(_0x59dc19[_0x3c6f(0x9b)]!==_0x59dc19[_0x3c6f(0x9c)])return console[_0x3c6f(0x16)](_0x3c6f(0x9d),_0x4ae0b7),![];else throw new _0x599415(_0x3c6f(0x2a));}};export const isAdminEmail=_0x14b190=>{const _0x4f3022={'gjIMa':'๐Ÿ”’\x20[Admin\x20Check]\x20No\x20email\x20provided','fZNIT':'zion.darko@onairos.uk','ZPpVZ':_0x3c6f(0x9e),'odEal':_0x3c6f(0x9f),'VKCMW':_0x3c6f(0xa0)};if(!_0x14b190)return console[_0x3c6f(0x6)](_0x4f3022[_0x3c6f(0xa1)]),![];const _0x13e2f7=['nicholas.berry@onairos.uk',_0x4f3022[_0x3c6f(0xa2)],_0x4f3022[_0x3c6f(0xa3)],_0x4f3022[_0x3c6f(0xa4)]],_0x2c9f7f=_0x13e2f7[_0x3c6f(0xa5)](_0x14b190['toLowerCase']());return _0x2c9f7f?console[_0x3c6f(0x6)](_0x3c6f(0xa6),_0x14b190):console[_0x3c6f(0x6)](_0x4f3022[_0x3c6f(0xa7)],_0x14b190),_0x2c9f7f;};export const getAdminStatus=async()=>{const _0x508ed1={'ojKpl':_0x3c6f(0x31),'CdawP':_0x3c6f(0xa8),'dQuMs':function(_0x3ef3e5,_0x80b0d6){return _0x3ef3e5===_0x80b0d6;},'oLWfX':function(_0x47981d,_0x1ac6e0){return _0x47981d===_0x1ac6e0;},'hkWXL':_0x3c6f(0xa9),'fLQVn':function(_0x100dab,_0x3cb6ff){return _0x100dab!==_0x3cb6ff;},'VcLoy':_0x3c6f(0xaa),'TvkUP':'user_admin_status','KedBx':function(_0x35fdc1,_0x358f50){return _0x35fdc1===_0x358f50;},'ooyEF':'true','zfoWy':function(_0x2dbd6e,_0x1a44d6){return _0x2dbd6e!==_0x1a44d6;},'RzmoQ':_0x3c6f(0xab),'PLGgb':'Error\x20getting\x20admin\x20status:'};try{if(_0x508ed1['fLQVn'](_0x3c6f(0xac),_0x508ed1[_0x3c6f(0xad)])){const _0x367026=await AsyncStorage[_0x3c6f(0xa)](_0x508ed1[_0x3c6f(0xae)]);return _0x508ed1[_0x3c6f(0xaf)](_0x367026,_0x508ed1[_0x3c6f(0xb0)]);}else{_0x42aa7a[_0x3c6f(0x16)](_0x508ed1[_0x3c6f(0xb1)],_0x197dc0);throw _0x4b543e;}}catch(_0x6d2bdf){return _0x508ed1[_0x3c6f(0xb2)](_0x508ed1[_0x3c6f(0xb3)],_0x508ed1[_0x3c6f(0xb3)])?(_0xa65867[_0x3c6f(0x16)](_0x508ed1[_0x3c6f(0xb4)],_0x508ed1[_0x3c6f(0xb5)](_0x22ce01,null)||_0x508ed1[_0x3c6f(0xb6)](_0x49b9be,void 0x0)?void 0x0:_0x4605bb[_0x3c6f(0x2e)]),{'success':![],'message':_0x508ed1['hkWXL']}):(console[_0x3c6f(0x16)](_0x508ed1[_0x3c6f(0xb7)],_0x6d2bdf),![]);}};function _0x3c6f(_0x479166,_0x3c6fea){_0x479166=_0x479166-0x0;const _0x831f6b=_0x4791();let _0x114c29=_0x831f6b[_0x479166];return _0x114c29;}export const saveAdminStatus=async _0x3fbd07=>{const _0x39e1cd={'dEYAo':_0x3c6f(0xb8),'aFHyq':function(_0x57d3a6,_0x2a326d){return _0x57d3a6!==_0x2a326d;},'DbeVT':'GkyGv','OfUka':_0x3c6f(0xb9)};try{if(_0x39e1cd[_0x3c6f(0xba)](_0x39e1cd[_0x3c6f(0xbb)],_0x3c6f(0xbc)))await AsyncStorage[_0x3c6f(0xe)](_0x3c6f(0xbd),_0x3fbd07[_0x3c6f(0x14)]());else return _0x458f75[_0x3c6f(0x6)](_0x39e1cd[_0x3c6f(0xbe)]),{'success':!![]};}catch(_0x10f373){console['error'](_0x39e1cd[_0x3c6f(0xbf)],_0x10f373);}};export const getOnairosUsername=async()=>{const _0x48f28a={'AISce':_0x3c6f(0x9e),'WMhBV':_0x3c6f(0x9f),'qGYEE':_0x3c6f(0xa6),'XUSXS':'๐Ÿšซ\x20[Admin\x20Check]\x20No\x20admin\x20access\x20for:','AfIeV':_0x3c6f(0xc0),'YblGD':_0x3c6f(0x2),'mqwuI':'Error\x20getting\x20Onairos\x20username:'};try{if(_0x48f28a['AfIeV']===_0x3c6f(0xc0))return await AsyncStorage[_0x3c6f(0xa)](_0x48f28a[_0x3c6f(0xc1)]);else{if(!_0x24a682)return _0x256392[_0x3c6f(0x6)](_0x3c6f(0xc2)),![];const _0x1f12fa=[_0x3c6f(0xc3),_0x3c6f(0xc4),_0x48f28a[_0x3c6f(0xc5)],_0x48f28a['WMhBV']],_0x4eb920=_0x1f12fa[_0x3c6f(0xa5)](_0x33b9f1[_0x3c6f(0xc6)]());return _0x4eb920?_0x34a994[_0x3c6f(0x6)](_0x48f28a[_0x3c6f(0xc7)],_0x5b25c0):_0x43513f[_0x3c6f(0x6)](_0x48f28a[_0x3c6f(0xc8)],_0x38cb64),_0x4eb920;}}catch(_0x3ec1b6){return console['error'](_0x48f28a['mqwuI'],_0x3ec1b6),null;}};export const saveOnairosUsername=async _0x4c9029=>{const _0x263c1d={'kSfnD':function(_0x1faade,_0x284136){return _0x1faade!==_0x284136;},'sxpBg':'mBjcw','KjoEy':'HVarW','sfqTD':'onairos_username','JxPbl':function(_0x5c77c3,_0x3df09a){return _0x5c77c3===_0x3df09a;},'PwCRr':_0x3c6f(0xc9),'rQjnG':_0x3c6f(0xca),'HYYTz':'Error\x20saving\x20Onairos\x20username:'};try{if(_0x263c1d['kSfnD'](_0x263c1d[_0x3c6f(0xcb)],_0x263c1d[_0x3c6f(0xcc)]))await AsyncStorage[_0x3c6f(0xe)](_0x263c1d[_0x3c6f(0xcd)],_0x4c9029);else return _0x19b683[_0x3c6f(0x16)](_0x3c6f(0x7f),_0x3ebf27),![];}catch(_0x423752){if(_0x263c1d['JxPbl'](_0x263c1d[_0x3c6f(0xce)],_0x263c1d['rQjnG']))throw new _0x11996a('No\x20authentication\x20token\x20returned\x20from\x20Apple\x20auth');else console[_0x3c6f(0x16)](_0x263c1d[_0x3c6f(0xcf)],_0x423752);}};export const sendEmailVerificationCode=async _0x6d3bed=>{const _0x1940dd={'kVFYX':'โŒ\x20[TOKEN\x20VERIFY]\x20Token\x20verification\x20error:','EHHpt':_0x3c6f(0xd0),'OwpSG':function(_0x5d2228){return _0x5d2228();},'xqoUA':'โŒ\x20Failed\x20to\x20get\x20auth\x20headers:','EaApx':function(_0x48e900,_0x491497){return _0x48e900===_0x491497;},'rqVqQ':function(_0x289020,_0x386506){return _0x289020===_0x386506;},'pNoxA':_0x3c6f(0xa9),'NAoJQ':function(_0x1be488,_0x11f0cb,_0x2e5037){return _0x1be488(_0x11f0cb,_0x2e5037);},'oGeDd':_0x3c6f(0xd1),'XHooy':_0x3c6f(0xb8),'KZEuC':function(_0x4899ad,_0x256ccb){return _0x4899ad!==_0x256ccb;},'LwYYv':_0x3c6f(0xd2),'gfISK':_0x3c6f(0xd3),'cZEQd':_0x3c6f(0xd4),'rZnhv':_0x3c6f(0x32),'URxDe':_0x3c6f(0x33)},_0x2c880b=API_BASE_URL+_0x3c6f(0xd5);console['log'](_0x1940dd['EHHpt'],_0x6d3bed);try{let _0x23ef10;try{_0x23ef10=await _0x1940dd['OwpSG'](getDeveloperAuthHeaders);}catch(_0x3b4e03){return console[_0x3c6f(0x16)](_0x1940dd['xqoUA'],_0x1940dd[_0x3c6f(0xd6)](_0x3b4e03,null)||_0x1940dd[_0x3c6f(0xd7)](_0x3b4e03,void 0x0)?void 0x0:_0x3b4e03[_0x3c6f(0x2e)]),{'success':![],'message':_0x1940dd[_0x3c6f(0xd8)]};}const _0x2d82ff=await _0x1940dd[_0x3c6f(0xd9)](fetch,_0x2c880b,{'method':'POST','headers':_0x23ef10,'body':JSON[_0x3c6f(0x46)]({'email':_0x6d3bed,'action':_0x1940dd['oGeDd']})}),_0x307cc7=await _0x2d82ff[_0x3c6f(0x25)]();return _0x2d82ff['ok']&&_0x307cc7[_0x3c6f(0xda)]?(console[_0x3c6f(0x6)](_0x1940dd[_0x3c6f(0xdb)]),{'success':!![]}):_0x1940dd['KZEuC'](_0x1940dd[_0x3c6f(0xdc)],_0x1940dd[_0x3c6f(0xdc)])?(_0x34b3a4[_0x3c6f(0x16)](_0x1940dd['kVFYX'],_0x579b62),![]):(console[_0x3c6f(0x6)](_0x1940dd[_0x3c6f(0xdd)],_0x307cc7[_0x3c6f(0x16)]||_0x307cc7[_0x3c6f(0x2e)]),{'success':![],'message':_0x307cc7[_0x3c6f(0x16)]||_0x307cc7[_0x3c6f(0x2e)]||_0x1940dd[_0x3c6f(0xde)]});}catch(_0x1f8d3f){return console[_0x3c6f(0x16)](_0x1940dd[_0x3c6f(0xdf)],_0x1f8d3f),{'success':![],'message':_0x1940dd[_0x3c6f(0xe0)]};}};export const confirmEmailVerificationCode=async(_0x2c4e1c,_0x5bde3a)=>{const _0x2a0060={'UuUAd':_0x3c6f(0xa8),'ikMIX':function(_0x5a4a30,_0x29a65d){return _0x5a4a30===_0x29a65d;},'LRYas':'โŒ\x20[AUTH]\x20Error\x20during\x20token\x20retrieval:','JDhmy':_0x3c6f(0xe1),'upAUv':function(_0x3eeaaa,_0x42cd74){return _0x3eeaaa!==_0x42cd74;},'rwWqZ':function(_0x19ec7e){return _0x19ec7e();},'eBVpS':_0x3c6f(0xe2),'auhgF':_0x3c6f(0xe3),'hOGoA':_0x3c6f(0xa9),'OqtAP':function(_0x540ab5,_0x18daf4,_0x286989){return _0x540ab5(_0x18daf4,_0x286989);},'perwt':_0x3c6f(0xe4),'MFlct':'๐Ÿ“ง\x20Verification\x20response:','hEkrE':_0x3c6f(0xe5),'qgqKr':_0x3c6f(0xe6),'HAPAp':'โœ…\x20Email\x20verification\x20successful','nQpsR':function(_0x2c54e8,_0x1a840c){return _0x2c54e8===_0x1a840c;},'xTuwL':'returning_user','HWrvY':'onboarding','ndqek':function(_0x2f4a0b,_0x344245){return _0x2f4a0b(_0x344245);},'rFBDA':_0x3c6f(0x2),'oyJkC':_0x3c6f(0x6d),'iLvLw':_0x3c6f(0xe7),'lEGNU':_0x3c6f(0xe8),'JqcpN':'โŒ\x20Error\x20verifying\x20code:'};try{console[_0x3c6f(0x6)](_0x2a0060[_0x3c6f(0xe9)],_0x2c4e1c);let _0x53cafb;try{if(_0x2a0060[_0x3c6f(0xea)](_0x3c6f(0xeb),_0x3c6f(0xeb)))return _0x63e316[_0x3c6f(0x16)](_0x2a0060[_0x3c6f(0xec)],_0x430fdf===null||_0x2a0060[_0x3c6f(0xed)](_0x556f23,void 0x0)?void 0x0:_0x586c1d[_0x3c6f(0x2e)]),{'success':![],'message':_0x3c6f(0xa9)};else _0x53cafb=await _0x2a0060['rwWqZ'](getDeveloperAuthHeaders);}catch(_0x10d675){return _0x2a0060[_0x3c6f(0xee)]!==_0x2a0060['auhgF']?(console['error'](_0x2a0060[_0x3c6f(0xec)],_0x2a0060[_0x3c6f(0xed)](_0x10d675,null)||_0x10d675===void 0x0?void 0x0:_0x10d675[_0x3c6f(0x2e)]),{'success':![],'message':_0x2a0060[_0x3c6f(0xef)]}):(_0xd460b9[_0x3c6f(0x16)](_0x2a0060[_0x3c6f(0xf0)],_0x5d8f47),null);}const _0x3079f7=await _0x2a0060[_0x3c6f(0xf1)](fetch,API_BASE_URL+'/email/verification',{'method':'POST','headers':_0x53cafb,'body':JSON[_0x3c6f(0x46)]({'email':_0x2c4e1c,'code':_0x5bde3a,'action':_0x2a0060['perwt']})}),_0x3809d4=await _0x3079f7[_0x3c6f(0x25)]();console[_0x3c6f(0x6)](_0x2a0060[_0x3c6f(0xf2)],JSON[_0x3c6f(0x46)](_0x3809d4,null,0x2));const _0xf7cdc6=_0x3809d4[_0x3c6f(0x9)]||_0x3809d4[_0x3c6f(0xf3)];if(_0x3079f7['ok']&&_0x3809d4[_0x3c6f(0xda)]&&_0xf7cdc6){if(_0x2a0060[_0x3c6f(0xed)](_0x2a0060[_0x3c6f(0xf4)],_0x2a0060[_0x3c6f(0xf5)]))return _0x1c8214[_0x3c6f(0x16)](_0x3c6f(0xf6),_0x806c3b),null;else{var _0x46a017;console[_0x3c6f(0x6)](_0x2a0060[_0x3c6f(0xf7)]);const _0x205a31=_0x2a0060[_0x3c6f(0xed)](_0x3809d4[_0x3c6f(0xf8)],!![]),_0xadad2b=!_0x205a31,_0x5528db=(_0x2a0060[_0x3c6f(0xf9)](_0x46a017=_0x3809d4['accountInfo'],null)||_0x2a0060[_0x3c6f(0xf9)](_0x46a017,void 0x0)?void 0x0:_0x46a017['existingUserData'])||_0x3809d4[_0x3c6f(0xfa)]||null,_0x522cd8=_0x3809d4[_0x3c6f(0xfb)]||(_0x205a31?_0x2a0060[_0x3c6f(0xfc)]:_0x2a0060['HWrvY']);await _0x2a0060[_0x3c6f(0xfd)](storeJWT,_0xf7cdc6),await AsyncStorage[_0x3c6f(0xe)](_0x3c6f(0x3),_0x2c4e1c);const _0x316015=_0x3809d4['userName']||_0x3809d4[_0x3c6f(0x4f)]||_0x2c4e1c[_0x3c6f(0xd)]('@')[0x0];return await AsyncStorage[_0x3c6f(0xe)](_0x2a0060[_0x3c6f(0xfe)],_0x316015),await AsyncStorage[_0x3c6f(0xe)](_0x2a0060[_0x3c6f(0xff)],_0x2a0060[_0x3c6f(0x100)]),{'success':!![],'token':_0xf7cdc6,'username':_0x316015,'isNewUser':_0xadad2b,'flowType':_0x522cd8,'existingUserData':_0x5528db,'enochInstructions':_0x3809d4[_0x3c6f(0x101)]};}}else return console['log'](_0x3c6f(0x102),_0x3809d4[_0x3c6f(0x16)]||_0x3809d4[_0x3c6f(0x2e)]),{'success':![],'message':_0x3809d4[_0x3c6f(0x16)]||_0x3809d4[_0x3c6f(0x2e)]||_0x2a0060[_0x3c6f(0x103)]};}catch(_0x19565d){return console[_0x3c6f(0x16)](_0x2a0060[_0x3c6f(0x104)],_0x19565d),{'success':![],'message':_0x3c6f(0x2b)};}};
1
+ import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG,getApiHeaders,getAuthHeaders}from'../config/api';import{getDeveloperAuthHeaders}from'./apiKeyService';function _0x4d00(_0x428cd5,_0x4d005c){_0x428cd5=_0x428cd5-0x0;const _0x5dea63=_0x428c();let _0x42a03a=_0x5dea63[_0x428cd5];return _0x42a03a;}import{storeJWT,getJWT,clearJWT}from'./jwtStorageService';const API_BASE_URL=API_CONFIG[_0x4d00(0x0)];export const authenticateWithOnairos=async _0xdee8ab=>{const _0x188fa7={'YRKgb':_0x4d00(0x1),'NtTmI':function(_0x38b762,_0x30b487){return _0x38b762(_0x30b487);},'hwtuF':_0x4d00(0x2),'ZYRwi':'Onairos\x20User','jQTqE':_0x4d00(0x3),'bTXQE':_0x4d00(0x4)};try{console['log'](_0x188fa7[_0x4d00(0x5)]),await _0x188fa7[_0x4d00(0x6)](storeJWT,_0xdee8ab[_0x4d00(0x7)]);const _0x567e1c=await AsyncStorage[_0x4d00(0x8)](_0x188fa7[_0x4d00(0x9)]),_0x597e05=_0x567e1c||_0xdee8ab[_0x4d00(0xa)][_0x4d00(0xb)]('@')[0x0]||_0x188fa7[_0x4d00(0xc)];return await AsyncStorage['setItem'](_0x188fa7[_0x4d00(0x9)],_0x597e05),await AsyncStorage[_0x4d00(0xd)]('user_email',_0xdee8ab[_0x4d00(0xa)]),console[_0x4d00(0xe)](_0x188fa7[_0x4d00(0xf)],_0xdee8ab[_0x4d00(0x7)][_0x4d00(0x10)](0x0,0x14)+_0x4d00(0x11)),console['log'](_0x188fa7['bTXQE'],{'email':_0xdee8ab[_0x4d00(0xa)],'username':_0x597e05}),{'token':_0xdee8ab['token'],'user':{'id':Date[_0x4d00(0x12)]()['toString'](),'name':_0x597e05,'email':_0xdee8ab['email'],'profilePicture':''}};}catch(_0x4e97f9){console[_0x4d00(0x13)]('โŒ\x20Onairos\x20authentication\x20error:',_0x4e97f9);throw _0x4e97f9;}};export const authenticateWithOnairosSignIn=async _0x233948=>{const _0x1b10c9={'lbNKk':_0x4d00(0x14),'wYtnM':function(_0x1cce28,_0x37555e){return _0x1cce28===_0x37555e;},'AUctQ':_0x4d00(0x15),'SXsDu':_0x4d00(0x16),'qowvg':function(_0x2ffb26){return _0x2ffb26();},'FNjov':_0x4d00(0x17),'lzrIU':_0x4d00(0x18),'nGzwV':function(_0x44c46a,_0x3bc179){return _0x44c46a!==_0x3bc179;},'tQTiD':function(_0x372991,_0x3598d5){return _0x372991(_0x3598d5);},'vVDSA':_0x4d00(0x19),'ZmVyS':_0x4d00(0x1a),'qmFMF':_0x4d00(0x1b)};try{if(_0x1b10c9['wYtnM'](_0x1b10c9[_0x4d00(0x1c)],_0x1b10c9[_0x4d00(0x1c)])){console[_0x4d00(0xe)](_0x1b10c9[_0x4d00(0x1d)]);const _0xc04544=await fetch(API_BASE_URL+_0x4d00(0x1e),{'method':'POST','headers':_0x1b10c9[_0x4d00(0x1f)](getApiHeaders),'body':JSON[_0x4d00(0x20)](_0x233948)});if(!_0xc04544['ok']){const _0x40c210=await _0xc04544[_0x4d00(0x21)]();throw new Error(_0x40c210[_0x4d00(0x13)]||_0x1b10c9['FNjov']);}const _0x6c7668=await _0xc04544[_0x4d00(0x21)]();console[_0x4d00(0xe)](_0x1b10c9[_0x4d00(0x22)]);if(!_0x6c7668[_0x4d00(0x7)]){if(_0x1b10c9[_0x4d00(0x23)](_0x4d00(0x24),_0x4d00(0x24)))return _0x12bbbf[_0x4d00(0xe)]('โœ…\x20Verification\x20code\x20sent\x20successfully'),{'success':!![]};else throw new Error(_0x4d00(0x25));}return await _0x1b10c9[_0x4d00(0x26)](storeJWT,_0x6c7668[_0x4d00(0x7)]),_0x6c7668[_0x4d00(0x27)]&&await AsyncStorage[_0x4d00(0xd)](_0x4d00(0x2),_0x6c7668[_0x4d00(0x27)]),await AsyncStorage[_0x4d00(0xd)](_0x1b10c9['vVDSA'],_0x233948[_0x4d00(0xa)]),console[_0x4d00(0xe)](_0x1b10c9[_0x4d00(0x28)],_0x6c7668[_0x4d00(0x7)][_0x4d00(0x10)](0x0,0x14)+_0x4d00(0x11)),{'token':_0x6c7668[_0x4d00(0x7)],'user':{'id':Date[_0x4d00(0x12)]()[_0x4d00(0x29)](),'name':_0x6c7668[_0x4d00(0x27)],'email':_0x233948[_0x4d00(0xa)],'profilePicture':''}};}else return _0x33092c[_0x4d00(0x13)](_0x1b10c9['lbNKk'],_0x1b10c9[_0x4d00(0x2a)](_0x3a6872,null)||_0x1b10c9[_0x4d00(0x2a)](_0x44c2ba,void 0x0)?void 0x0:_0x537d0a[_0x4d00(0x2b)]),{'success':![],'message':_0x4d00(0x2c)};}catch(_0x262dff){console[_0x4d00(0x13)](_0x1b10c9[_0x4d00(0x2d)],_0x262dff);throw _0x262dff;}};export const authenticateWithApple=async _0x4e0809=>{const _0x581879={'YpdEj':'โœ…\x20[TOKEN\x20VERIFY]\x20Token\x20is\x20valid','oTGgu':_0x4d00(0x14),'ZvTgo':function(_0x1d94dc,_0x5b9fad){return _0x1d94dc===_0x5b9fad;},'UCirn':function(_0x30e3cb,_0x2dcb39){return _0x30e3cb===_0x2dcb39;},'hFqvp':_0x4d00(0x2c),'TsSBL':_0x4d00(0x2e),'dRHpr':_0x4d00(0x2f),'BPxBG':function(_0x2e20c4,_0x4454b6,_0x34a572){return _0x2e20c4(_0x4454b6,_0x34a572);},'TxxDH':'Apple\x20authentication\x20failed','EgqeI':function(_0x1f6319,_0x3161b7){return _0x1f6319===_0x3161b7;},'xjioE':_0x4d00(0x30),'BPYjk':'AKGcz','bvhgW':_0x4d00(0x31),'JUumw':function(_0x5aca21,_0x5467b6){return _0x5aca21(_0x5467b6);},'wxSsN':'onairos_username','tQogH':'user_email','wBIJa':_0x4d00(0x32),'BUvhh':function(_0xf4dfa9,_0x5f264f){return _0xf4dfa9===_0x5f264f;},'lPRPQ':function(_0xacd62f,_0x470060){return _0xacd62f===_0x470060;},'UjINq':function(_0x285532,_0x2e6570){return _0x285532===_0x2e6570;},'AExIa':function(_0x1b2e84,_0x222327){return _0x1b2e84!==_0x222327;},'mwVNb':'nDDaD'};try{var _0xfae174,_0x4399f4,_0x1259ce,_0x372356;const _0x32e4c9=_0x4e0809[_0x4d00(0x33)]?((_0x4e0809[_0x4d00(0x33)]['givenName']||'')+'\x20'+(_0x4e0809[_0x4d00(0x33)][_0x4d00(0x34)]||''))[_0x4d00(0x35)]():_0x581879[_0x4d00(0x36)];console['log'](_0x581879[_0x4d00(0x37)]);const _0x2b9030=await _0x581879[_0x4d00(0x38)](fetch,API_BASE_URL+_0x4d00(0x39),{'method':'POST','headers':getApiHeaders(),'body':JSON[_0x4d00(0x20)]({'idToken':_0x4e0809[_0x4d00(0x3a)],'nonce':_0x4e0809['nonce'],'name':_0x32e4c9,'email':_0x4e0809[_0x4d00(0xa)]})});if(!_0x2b9030['ok']){const _0x312653=await _0x2b9030[_0x4d00(0x21)]();throw new Error(_0x312653[_0x4d00(0x13)]||_0x581879[_0x4d00(0x3b)]);}const _0x33c318=await _0x2b9030['json']();console[_0x4d00(0xe)](_0x4d00(0x3c));if(!_0x33c318[_0x4d00(0x7)]){if(_0x581879[_0x4d00(0x3d)](_0x581879[_0x4d00(0x3e)],_0x581879[_0x4d00(0x3f)]))return _0x2e4dde[_0x4d00(0xe)](_0x581879[_0x4d00(0x40)]),!![];else throw new Error(_0x581879[_0x4d00(0x41)]);}await _0x581879[_0x4d00(0x42)](storeJWT,_0x33c318[_0x4d00(0x7)]);const _0x356cd3=((_0xfae174=_0x33c318[_0x4d00(0x43)])===null||_0x581879['ZvTgo'](_0xfae174,void 0x0)?void 0x0:_0xfae174[_0x4d00(0x27)])||_0x33c318[_0x4d00(0x27)]||_0x32e4c9;await AsyncStorage[_0x4d00(0xd)](_0x581879[_0x4d00(0x44)],_0x356cd3);const _0x22ab7f=(_0x581879[_0x4d00(0x3d)](_0x4399f4=_0x33c318['user'],null)||_0x4399f4===void 0x0?void 0x0:_0x4399f4['email'])||_0x4e0809[_0x4d00(0xa)]||_0x4d00(0x45)+_0x4e0809['user']+_0x4d00(0x46);return await AsyncStorage[_0x4d00(0xd)](_0x581879[_0x4d00(0x47)],_0x22ab7f),console[_0x4d00(0xe)](_0x581879['wBIJa'],_0x33c318[_0x4d00(0x7)][_0x4d00(0x10)](0x0,0x14)+_0x4d00(0x11)),{'success':!![],'token':_0x33c318[_0x4d00(0x7)],'user':{'id':(_0x581879['BUvhh'](_0x1259ce=_0x33c318[_0x4d00(0x43)],null)||_0x581879['lPRPQ'](_0x1259ce,void 0x0)?void 0x0:_0x1259ce['id'])||'','odeanId':_0x581879[_0x4d00(0x48)](_0x372356=_0x33c318[_0x4d00(0x43)],null)||_0x372356===void 0x0?void 0x0:_0x372356[_0x4d00(0x49)],'email':_0x22ab7f,'username':_0x356cd3},'isNewUser':_0x33c318['isNewUser']||![]};}catch(_0x866cd5){if(_0x581879['AExIa'](_0x581879[_0x4d00(0x4a)],_0x4d00(0x4b)))return _0x523b6a['error'](_0x581879[_0x4d00(0x4c)],_0x581879['ZvTgo'](_0x54477a,null)||_0x581879['UCirn'](_0x4f3543,void 0x0)?void 0x0:_0x5a5723['message']),{'success':![],'message':_0x581879[_0x4d00(0x4d)]};else{console[_0x4d00(0x13)](_0x4d00(0x4e),_0x866cd5);throw _0x866cd5;}}};export const saveAuthToken=async _0x2015c7=>{const _0x45e6df={'gYdbE':_0x4d00(0x4f),'BUJqA':_0x4d00(0x50),'xGUgo':function(_0x5ed5ca,_0x518440){return _0x5ed5ca!==_0x518440;},'BtwQv':_0x4d00(0x51),'WxqXL':_0x4d00(0x52)};try{await AsyncStorage[_0x4d00(0xd)](_0x45e6df[_0x4d00(0x53)],_0x2015c7);}catch(_0xc36d12){if(_0x45e6df[_0x4d00(0x54)](_0x45e6df['BtwQv'],_0x45e6df['WxqXL'])){console['error']('Error\x20saving\x20auth\x20token:',_0xc36d12);throw _0xc36d12;}else return _0x449e11[_0x4d00(0x13)](_0x45e6df[_0x4d00(0x55)],_0x242191),![];}};export const debugAuthStorage=async()=>{const _0x3674b7={'vFRdp':'sdk_jwt_token','wqcLS':_0x4d00(0x19),'isWmy':_0x4d00(0x2),'FTuKq':_0x4d00(0x56),'foVIO':_0x4d00(0x57),'ncQUS':'๐Ÿ”‘\x20user_email:','GxTQx':_0x4d00(0x58),'NokrY':function(_0x3c9e8e,_0x3107e0){return _0x3c9e8e===_0x3107e0;},'ijoKD':_0x4d00(0x59)};console[_0x4d00(0xe)]('๐Ÿ”\x20[AUTH\x20STORAGE\x20DEBUG]\x20Checking\x20all\x20auth-related\x20storage:');const _0x23909b=await AsyncStorage[_0x4d00(0x8)](_0x3674b7[_0x4d00(0x5a)]),_0x3acac7=await AsyncStorage[_0x4d00(0x8)](_0x3674b7['wqcLS']),_0xda4e20=await AsyncStorage['getItem'](_0x3674b7[_0x4d00(0x5b)]),_0x523c7b=await AsyncStorage[_0x4d00(0x8)]('auth_method');console['log'](_0x3674b7[_0x4d00(0x5c)],_0x23909b?'\x22'+_0x23909b['substring'](0x0,0x1e)+'...\x22':_0x3674b7[_0x4d00(0x5d)]),console[_0x4d00(0xe)](_0x3674b7['ncQUS'],_0x3acac7?'\x22'+_0x3acac7+'\x22':_0x3674b7['foVIO']),console[_0x4d00(0xe)](_0x3674b7[_0x4d00(0x5e)],_0xda4e20?'\x22'+_0xda4e20+'\x22':_0x3674b7[_0x4d00(0x5d)]),console['log'](_0x4d00(0x5f),_0x523c7b?'\x22'+_0x523c7b+'\x22':_0x4d00(0x57));if(_0x23909b){const _0x5230a2=_0x3674b7[_0x4d00(0x60)](_0x23909b[_0x4d00(0xb)]('.')[_0x4d00(0x61)],0x3);console[_0x4d00(0xe)](_0x3674b7[_0x4d00(0x62)],_0x5230a2);}};function _0x428c(){const _0x4ff2de=['BASE_URL','๐Ÿ”‘\x20Authenticating\x20with\x20Onairos...','onairos_username','๐Ÿ”‘\x20Onairos\x20auth\x20token\x20stored:','๐Ÿ‘ค\x20User\x20info:','YRKgb','NtTmI','token','getItem','hwtuF','email','split','ZYRwi','setItem','log','jQTqE','substring','...','now','error','โŒ\x20Failed\x20to\x20get\x20auth\x20headers:','PsDte','๐Ÿ”‘\x20Signing\x20in\x20with\x20Onairos\x20via\x20/login/signin\x20endpoint...','Onairos\x20sign-in\x20failed','โœ…\x20Onairos\x20sign-in\x20successful','user_email','๐Ÿ”‘\x20Onairos\x20sign-in\x20token\x20stored:','โŒ\x20Onairos\x20sign-in\x20error:','AUctQ','SXsDu','/login/signin','qowvg','stringify','json','lzrIU','nGzwV','giUZA','No\x20authentication\x20token\x20returned\x20from\x20Onairos\x20sign-in','tQTiD','username','ZmVyS','toString','wYtnM','message','SDK\x20not\x20properly\x20initialized.\x20Please\x20restart\x20the\x20app\x20and\x20try\x20again.','qmFMF','Onairos\x20User','๐ŸŽ\x20Authenticating\x20with\x20Apple\x20via\x20generic\x20SDK\x20endpoint...','BflOA','No\x20authentication\x20token\x20returned\x20from\x20Apple\x20auth','๐Ÿ”‘\x20Apple\x20auth\x20token\x20stored:','fullName','familyName','trim','TsSBL','dRHpr','BPxBG','/register/apple','identityToken','TxxDH','โœ…\x20Apple\x20authentication\x20successful','EgqeI','xjioE','BPYjk','YpdEj','bvhgW','JUumw','user','wxSsN','apple_','@privaterelay.apple.com','tQogH','UjINq','odeanId','mwVNb','nDDaD','oTGgu','hFqvp','โŒ\x20Apple\x20authentication\x20error:','โŒ\x20[TOKEN\x20VERIFY]\x20Token\x20verification\x20error:','auth_token','fFbxt','YsanE','BUJqA','xGUgo','gYdbE','๐Ÿ”‘\x20sdk_jwt_token:','null','๐Ÿ”‘\x20onairos_username:','๐Ÿ”\x20Token\x20appears\x20to\x20be\x20valid\x20JWT:','vFRdp','isWmy','FTuKq','foVIO','GxTQx','๐Ÿ”‘\x20auth_method:','NokrY','length','ijoKD','auth_method','onairos_user','โœ…\x20[AUTH]\x20All\x20auth\x20tokens\x20and\x20data\x20cleared','pOjVt','multiRemove','WBOEz','Llswi','taxxk','cuYfA','โœ…\x20[AUTH]\x20Found\x20JWT\x20token:','โŒ\x20[AUTH]\x20No\x20valid\x20JWT\x20token\x20found','mNtXS','xtgfU','uGACi','removeItem','OopcX','โŒ\x20Verification\x20failed:','XVVZi','zbBeK','vOmgZ','TbHNF','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20No\x20token\x20available\x20for\x20verification','qxKQe',']\x20No\x20valid\x20authentication\x20available\x20-\x20API\x20call\x20may\x20return\x20limited\x20data','gnwQI','uiYPG','โœ…\x20[',']\x20Authentication\x20validated\x20for\x20API\x20call','sBJty','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Verifying\x20token\x20with\x20backend...','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Token\x20preview:','๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20Verification\x20response\x20status:','โœ…\x20[TOKEN\x20VERIFY]\x20Token\x20is\x20valid','LbVyT','OEfeu','ttGhr','ZOZwU','VhfJR','warn','GiokH','/api/auth/verify','Nosxp','QVUiE','GzSOC','text','NpDTi','status','โš ๏ธ\x20[','๐Ÿ”’\x20[Admin\x20Check]\x20No\x20email\x20provided','zion.darko@onairos.uk','admin@onairos.uk','๐Ÿ”‘\x20[Admin\x20Check]\x20Admin\x20access\x20granted\x20for:','VuOcD','QCoic','toLowerCase','VMElS','๐Ÿšซ\x20[Admin\x20Check]\x20No\x20admin\x20access\x20for:','PiDli','user_admin_status','true','mNgRw','SOzbz','mtTeW','VOjzH','Error\x20getting\x20admin\x20status:','srCNs','GCJdO','qPImU','wJpKx','GUSTr','JcXoq','xbmlM','โŒ\x20Error\x20verifying\x20code:','Verification\x20failed.\x20Please\x20try\x20again.','gUQrD','GgsUp','VbKom','aqdEI','vTqix','Error\x20removing\x20auth\x20token:','๐Ÿ“ง\x20Sending\x20verification\x20code\x20to:','aOEdJ','โœ…\x20Verification\x20code\x20sent\x20successfully','Failed\x20to\x20send\x20verification\x20code','โŒ\x20Error\x20sending\x20verification\x20code:','QeWSC','lDERi','FEPiE','bzPjN','NdEmI','MLfwl','DBdlh','jsRdv','jDQmF','pxHcX','JXCnX','wZDHC','JeFam','โŒ\x20Failed\x20to\x20send\x20verification\x20code:','ZopYf','OjuUV','ulwCQ','Error\x20getting\x20Onairos\x20username:','nicholas.berry@onairos.uk','admin@enoch.events','โŒ\x20Onairos\x20authentication\x20error:','fMZEc','fvJae','โœ…\x20Email\x20verification\x20successful','returning_user','onboarding','gKfgK','mKWHv','๐Ÿ”\x20Verifying\x20code\x20for:','rzFnS','ydCiT','kBfSU','vYNsu','ZiUSV','IORQk','mFAkV','rcfWx','zUWaD','dBjLW','aazHj','unXTp','/email/verification','rNEZd','jwtToken','kDIkh','PoZSA','zjbTB','existingUser','accountInfo','existingUserData','flowType','ezeXW','RNjxv','hmwiX','lSCpI','enochInstructions','NFUwr','gYmgc','KbEXY','DZpIl','IAEHa'];_0x428c=function(){return _0x4ff2de;};return _0x428c();}export const clearAllAuthTokens=async()=>{const _0x16a26a={'pOjVt':'๐Ÿงน\x20[AUTH]\x20Clearing\x20all\x20auth\x20tokens...','eESaa':function(_0x27eb78){return _0x27eb78();},'WBOEz':'onairos_username','Llswi':_0x4d00(0x63),'taxxk':_0x4d00(0x64),'cuYfA':_0x4d00(0x65)};console['log'](_0x16a26a[_0x4d00(0x66)]),await _0x16a26a['eESaa'](clearJWT),await AsyncStorage[_0x4d00(0x67)](['user_email',_0x16a26a[_0x4d00(0x68)],_0x16a26a[_0x4d00(0x69)],_0x16a26a[_0x4d00(0x6a)]]),console['log'](_0x16a26a[_0x4d00(0x6b)]);};export const getAuthToken=async()=>{const _0x415574={'mNtXS':_0x4d00(0x6c),'xtgfU':_0x4d00(0x6d),'uGACi':'โŒ\x20[AUTH]\x20Error\x20during\x20token\x20retrieval:'};try{const _0xae9080=await getJWT();if(_0xae9080)return console[_0x4d00(0xe)](_0x415574[_0x4d00(0x6e)],_0xae9080[_0x4d00(0x10)](0x0,0x14)+_0x4d00(0x11)),_0xae9080;return console['warn'](_0x415574[_0x4d00(0x6f)]),null;}catch(_0x41438f){return console['error'](_0x415574[_0x4d00(0x70)],_0x41438f),null;}};export const removeAuthToken=async()=>{const _0xb22305={'OopcX':'Error\x20removing\x20auth\x20token:'};try{await AsyncStorage[_0x4d00(0x71)](_0x4d00(0x50));}catch(_0x2e3cf6){console['error'](_0xb22305[_0x4d00(0x72)],_0x2e3cf6);}};export const isAuthenticated=async()=>{const _0x21f695={'RbYxW':_0x4d00(0x73),'vOmgZ':'Invalid\x20verification\x20code','zbBeK':function(_0x32a206,_0x5e4607){return _0x32a206!==_0x5e4607;},'hdrGG':_0x4d00(0x74),'gbkgI':'VJOZn','fXmiR':function(_0x3cf798,_0x453505){return _0x3cf798>_0x453505;},'TbHNF':'โŒ\x20[AUTH\x20VALIDATION]\x20Error\x20checking\x20authentication\x20status:'};try{if(_0x21f695[_0x4d00(0x75)](_0x21f695['hdrGG'],_0x21f695['gbkgI'])){const _0x58982f=await getAuthToken();return _0x21f695['zbBeK'](_0x58982f,null)&&_0x21f695['fXmiR'](_0x58982f['length'],0x32);}else return _0x1ae1e9[_0x4d00(0xe)](_0x21f695['RbYxW'],_0x2a8ac4[_0x4d00(0x13)]||_0x3735b9[_0x4d00(0x2b)]),{'success':![],'message':_0x32de31[_0x4d00(0x13)]||_0x71751f[_0x4d00(0x2b)]||_0x21f695[_0x4d00(0x76)]};}catch(_0x5c5151){return console[_0x4d00(0x13)](_0x21f695[_0x4d00(0x77)],_0x5c5151),![];}};export const ensureAuthentication=async _0x4b698c=>{const _0x4e26d6={'BBPNp':_0x4d00(0x78),'deLWK':function(_0x467073){return _0x467073();},'gnwQI':function(_0x2bc2f8,_0x4ada74){return _0x2bc2f8!==_0x4ada74;},'uiYPG':_0x4d00(0x79)},_0x6ba163=await _0x4e26d6['deLWK'](isAuthenticated);if(!_0x6ba163)console['warn']('โš ๏ธ\x20['+_0x4b698c+_0x4d00(0x7a));else{if(_0x4e26d6[_0x4d00(0x7b)]('ZSbCY',_0x4e26d6[_0x4d00(0x7c)]))console[_0x4d00(0xe)](_0x4d00(0x7d)+_0x4b698c+_0x4d00(0x7e));else return _0x5a6144['warn'](_0x4e26d6['BBPNp']),![];}return _0x6ba163;};export const verifyToken=async()=>{const _0x4928c1={'DVBFj':'๐Ÿšซ\x20[Admin\x20Check]\x20No\x20admin\x20access\x20for:','OEfeu':function(_0x1bd25d,_0x1d7b03){return _0x1bd25d===_0x1d7b03;},'YNhdt':'AaVjL','ttGhr':function(_0x5ba6a8){return _0x5ba6a8();},'ZOZwU':function(_0x1d0915,_0x26be0a){return _0x1d0915!==_0x26be0a;},'VhfJR':_0x4d00(0x7f),'jTIio':'๐Ÿ”’\x20[TOKEN\x20VERIFY]\x20No\x20token\x20available\x20for\x20verification','GiokH':_0x4d00(0x80),'UUHjV':_0x4d00(0x81),'ttDWR':function(_0x176c19,_0x1da20d,_0x5759f1){return _0x176c19(_0x1da20d,_0x5759f1);},'Nosxp':function(_0x320b92,_0x5ea2e2){return _0x320b92(_0x5ea2e2);},'QVUiE':_0x4d00(0x82),'GzSOC':_0x4d00(0x83),'KRnbE':_0x4d00(0x84),'NpDTi':'โŒ\x20[TOKEN\x20VERIFY]\x20Token\x20verification\x20failed:'};try{if(_0x4928c1[_0x4d00(0x85)]('MXTOh',_0x4928c1['YNhdt'])){_0x29dc9a[_0x4d00(0x13)](_0x4d00(0x4e),_0x405a9c);throw _0x1f35f5;}else{const _0x2af191=await _0x4928c1[_0x4d00(0x86)](getAuthToken);if(!_0x2af191){if(_0x4928c1[_0x4d00(0x87)](_0x4928c1['VhfJR'],_0x4928c1[_0x4d00(0x88)]))_0x14e2d8[_0x4d00(0xe)](_0x4928c1['DVBFj'],_0x11c152);else return console[_0x4d00(0x89)](_0x4928c1['jTIio']),![];}console[_0x4d00(0xe)](_0x4928c1[_0x4d00(0x8a)]),console[_0x4d00(0xe)](_0x4928c1['UUHjV'],_0x2af191['substring'](0x0,0x14)+_0x4d00(0x11));const _0x5b73fe=await _0x4928c1['ttDWR'](fetch,API_BASE_URL+_0x4d00(0x8b),{'method':'GET','headers':_0x4928c1[_0x4d00(0x8c)](getAuthHeaders,_0x2af191)});console[_0x4d00(0xe)](_0x4928c1[_0x4d00(0x8d)],_0x5b73fe['status']);if(_0x5b73fe['ok'])return console['log'](_0x4928c1[_0x4d00(0x8e)]),!![];else{if(_0x4928c1[_0x4d00(0x87)]('qjCbM',_0x4928c1['KRnbE'])){const _0x4d3374=await _0x5b73fe[_0x4d00(0x8f)]();return console['warn'](_0x4928c1[_0x4d00(0x90)],_0x5b73fe[_0x4d00(0x91)],_0x4d3374),![];}else _0x3ed15c['warn'](_0x4d00(0x92)+_0x3e514f+_0x4d00(0x7a));}}}catch(_0x1adafb){return console['error'](_0x4d00(0x4f),_0x1adafb),![];}};export const isAdminEmail=_0xcf6a42=>{const _0x548710={'LQaFl':_0x4d00(0x93),'VuOcD':'nicholas.berry@onairos.uk','QCoic':_0x4d00(0x94),'AOvxI':_0x4d00(0x95),'VMElS':_0x4d00(0x96)};if(!_0xcf6a42)return console[_0x4d00(0xe)](_0x548710['LQaFl']),![];const _0xdd48e9=[_0x548710[_0x4d00(0x97)],_0x548710[_0x4d00(0x98)],'admin@enoch.events',_0x548710['AOvxI']],_0x55e7cd=_0xdd48e9['includes'](_0xcf6a42[_0x4d00(0x99)]());return _0x55e7cd?console[_0x4d00(0xe)](_0x548710[_0x4d00(0x9a)],_0xcf6a42):console[_0x4d00(0xe)](_0x4d00(0x9b),_0xcf6a42),_0x55e7cd;};export const getAdminStatus=async()=>{const _0x1e3a3c={'mtTeW':_0x4d00(0x31),'LnIqT':function(_0x14345a,_0x5259e0){return _0x14345a===_0x5259e0;},'mNgRw':_0x4d00(0x9c),'SOzbz':'QwpIJ','OuZZA':_0x4d00(0x9d),'VOjzH':_0x4d00(0x9e)};try{if(_0x1e3a3c['LnIqT'](_0x1e3a3c[_0x4d00(0x9f)],_0x1e3a3c[_0x4d00(0xa0)]))throw new _0x576079(_0x1e3a3c[_0x4d00(0xa1)]);else{const _0x506375=await AsyncStorage[_0x4d00(0x8)](_0x1e3a3c['OuZZA']);return _0x506375===_0x1e3a3c[_0x4d00(0xa2)];}}catch(_0x104c04){return console[_0x4d00(0x13)](_0x4d00(0xa3),_0x104c04),![];}};export const saveAdminStatus=async _0x5d4c19=>{const _0x1ae949={'wJpKx':'โŒ\x20Onairos\x20sign-in\x20error:','hNzUi':_0x4d00(0x9d),'GCJdO':function(_0x6b0ee8,_0x2b9613){return _0x6b0ee8!==_0x2b9613;},'qPImU':_0x4d00(0xa4),'GUSTr':'Error\x20saving\x20admin\x20status:'};try{await AsyncStorage[_0x4d00(0xd)](_0x1ae949['hNzUi'],_0x5d4c19['toString']());}catch(_0x12d306){if(_0x1ae949[_0x4d00(0xa5)](_0x1ae949[_0x4d00(0xa6)],_0x1ae949[_0x4d00(0xa6)])){_0x1fb620['error'](_0x1ae949[_0x4d00(0xa7)],_0x1a3986);throw _0xfcebf0;}else console['error'](_0x1ae949[_0x4d00(0xa8)],_0x12d306);}};export const getOnairosUsername=async()=>{const _0x2cb262={'JcXoq':'onairos_username','xbmlM':'Error\x20getting\x20Onairos\x20username:'};try{return await AsyncStorage[_0x4d00(0x8)](_0x2cb262[_0x4d00(0xa9)]);}catch(_0x4ac5b2){return console[_0x4d00(0x13)](_0x2cb262[_0x4d00(0xaa)],_0x4ac5b2),null;}};export const saveOnairosUsername=async _0x34a5b3=>{const _0x53bd89={'VbKom':_0x4d00(0xab),'fGQOA':_0x4d00(0xac),'uUZre':function(_0x1e3160,_0x184349){return _0x1e3160!==_0x184349;},'GgsUp':_0x4d00(0xad),'aqdEI':_0x4d00(0x2),'vTqix':'Error\x20saving\x20Onairos\x20username:'};try{if(_0x53bd89['uUZre'](_0x53bd89[_0x4d00(0xae)],'gUQrD'))return _0x4b308c[_0x4d00(0x13)](_0x53bd89[_0x4d00(0xaf)],_0xdbbe34),{'success':![],'message':_0x53bd89['fGQOA']};else await AsyncStorage[_0x4d00(0xd)](_0x53bd89[_0x4d00(0xb0)],_0x34a5b3);}catch(_0x6e1c60){console[_0x4d00(0x13)](_0x53bd89[_0x4d00(0xb1)],_0x6e1c60);}};export const sendEmailVerificationCode=async _0x5a9670=>{const _0x2e6870={'NdEmI':_0x4d00(0x25),'wZDHC':_0x4d00(0xb2),'QeWSC':_0x4d00(0xb3),'lDERi':function(_0x1685a8){return _0x1685a8();},'FEPiE':function(_0x4ab4fa,_0x18331d){return _0x4ab4fa!==_0x18331d;},'bzPjN':_0x4d00(0xb4),'MLfwl':_0x4d00(0x14),'DBdlh':function(_0x2f3efc,_0x5d0f08){return _0x2f3efc===_0x5d0f08;},'jsRdv':_0x4d00(0x2c),'jDQmF':function(_0x36a684,_0x4f976b,_0x229834){return _0x36a684(_0x4f976b,_0x229834);},'EzzsG':'request','pxHcX':function(_0x82b607,_0x179035){return _0x82b607!==_0x179035;},'JXCnX':'kuSna','JeFam':_0x4d00(0xb5),'ZopYf':_0x4d00(0xb6),'OjuUV':_0x4d00(0xb7),'ulwCQ':'Network\x20error.\x20Please\x20check\x20your\x20connection.'},_0x4072a7=API_BASE_URL+'/email/verification';console[_0x4d00(0xe)](_0x2e6870[_0x4d00(0xb8)],_0x5a9670);try{let _0x11b648;try{_0x11b648=await _0x2e6870[_0x4d00(0xb9)](getDeveloperAuthHeaders);}catch(_0x421ebe){if(_0x2e6870[_0x4d00(0xba)](_0x2e6870[_0x4d00(0xbb)],_0x4d00(0xb4)))throw new _0x54d7d7(_0x2e6870[_0x4d00(0xbc)]);else return console['error'](_0x2e6870[_0x4d00(0xbd)],_0x421ebe===null||_0x2e6870[_0x4d00(0xbe)](_0x421ebe,void 0x0)?void 0x0:_0x421ebe[_0x4d00(0x2b)]),{'success':![],'message':_0x2e6870[_0x4d00(0xbf)]};}const _0x13a01a=await _0x2e6870[_0x4d00(0xc0)](fetch,_0x4072a7,{'method':'POST','headers':_0x11b648,'body':JSON['stringify']({'email':_0x5a9670,'action':_0x2e6870['EzzsG']})}),_0x3c20a2=await _0x13a01a[_0x4d00(0x21)]();if(_0x13a01a['ok']&&_0x3c20a2['success']){if(_0x2e6870[_0x4d00(0xc1)](_0x2e6870[_0x4d00(0xc2)],_0x2e6870['JXCnX']))_0x4cdc93['error'](_0x2e6870[_0x4d00(0xc3)],_0x416abd);else return console['log'](_0x2e6870[_0x4d00(0xc4)]),{'success':!![]};}else return console[_0x4d00(0xe)](_0x4d00(0xc5),_0x3c20a2[_0x4d00(0x13)]||_0x3c20a2[_0x4d00(0x2b)]),{'success':![],'message':_0x3c20a2[_0x4d00(0x13)]||_0x3c20a2[_0x4d00(0x2b)]||_0x2e6870[_0x4d00(0xc6)]};}catch(_0x11c6ce){return console[_0x4d00(0x13)](_0x2e6870[_0x4d00(0xc7)],_0x11c6ce),{'success':![],'message':_0x2e6870[_0x4d00(0xc8)]};}};export const confirmEmailVerificationCode=async(_0x303611,_0xd5209a)=>{const _0x3ee9ef={'HmAFQ':_0x4d00(0xa3),'oKLbV':_0x4d00(0xc9),'mFAkV':_0x4d00(0x93),'rcfWx':_0x4d00(0xca),'zUWaD':'zion.darko@onairos.uk','dBjLW':_0x4d00(0xcb),'aazHj':_0x4d00(0x95),'unXTp':_0x4d00(0x96),'jESgL':_0x4d00(0x9b),'NFUwr':_0x4d00(0xcc),'rzFnS':function(_0x183df8,_0x30e3e0){return _0x183df8===_0x30e3e0;},'IAEHa':'๐Ÿ”\x20Token\x20appears\x20to\x20be\x20valid\x20JWT:','gKfgK':function(_0x45fed1,_0x18d1c5){return _0x45fed1!==_0x18d1c5;},'mKWHv':'nQJyg','ydCiT':'KlwHh','kBfSU':function(_0x5053d4){return _0x5053d4();},'ZiUSV':_0x4d00(0xcd),'IORQk':function(_0x1f54b8,_0x3dc596){return _0x1f54b8===_0x3dc596;},'zjbTB':function(_0x3fef80,_0x45c666){return _0x3fef80===_0x45c666;},'WyLHr':'SDK\x20not\x20properly\x20initialized.\x20Please\x20restart\x20the\x20app\x20and\x20try\x20again.','RqSGn':'verify','rNEZd':'๐Ÿ“ง\x20Verification\x20response:','kDIkh':function(_0x335b6a,_0x43a523){return _0x335b6a!==_0x43a523;},'whXkZ':_0x4d00(0xce),'LAMNB':'emDyQ','PoZSA':_0x4d00(0xcf),'SzZTK':function(_0x546da5,_0x347425){return _0x546da5===_0x347425;},'ezeXW':_0x4d00(0xd0),'RNjxv':_0x4d00(0xd1),'hmwiX':_0x4d00(0x19),'lSCpI':_0x4d00(0x9e),'gYmgc':'โŒ\x20Verification\x20failed:','KbEXY':'TCcNt','DZpIl':_0x4d00(0xac)};try{if(_0x3ee9ef[_0x4d00(0xd2)](_0x3ee9ef[_0x4d00(0xd3)],_0x3ee9ef[_0x4d00(0xd3)]))return _0x31eee0[_0x4d00(0x13)](_0x3ee9ef['HmAFQ'],_0x3b38bb),![];else{console[_0x4d00(0xe)](_0x4d00(0xd4),_0x303611);let _0x40cb5b;try{if(_0x3ee9ef[_0x4d00(0xd5)](_0x3ee9ef[_0x4d00(0xd6)],_0x3ee9ef[_0x4d00(0xd6)]))_0x40cb5b=await _0x3ee9ef[_0x4d00(0xd7)](getDeveloperAuthHeaders);else return _0x60320d['error'](_0x3ee9ef['oKLbV'],_0x540adc),null;}catch(_0x5db7d6){if(_0x4d00(0xd8)!==_0x3ee9ef[_0x4d00(0xd9)])return console[_0x4d00(0x13)](_0x4d00(0x14),_0x3ee9ef[_0x4d00(0xda)](_0x5db7d6,null)||_0x3ee9ef['zjbTB'](_0x5db7d6,void 0x0)?void 0x0:_0x5db7d6[_0x4d00(0x2b)]),{'success':![],'message':_0x3ee9ef['WyLHr']};else{if(!_0x31c77c)return _0x38f1cc[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xdb)]),![];const _0x3da012=[_0x3ee9ef[_0x4d00(0xdc)],_0x3ee9ef[_0x4d00(0xdd)],_0x3ee9ef[_0x4d00(0xde)],_0x3ee9ef[_0x4d00(0xdf)]],_0x27be8=_0x3da012['includes'](_0x3ba257['toLowerCase']());return _0x27be8?_0x22810[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xe0)],_0x2c4a82):_0x5c53ca[_0x4d00(0xe)](_0x3ee9ef['jESgL'],_0x3c3599),_0x27be8;}}const _0x508ee7=await fetch(API_BASE_URL+_0x4d00(0xe1),{'method':'POST','headers':_0x40cb5b,'body':JSON[_0x4d00(0x20)]({'email':_0x303611,'code':_0xd5209a,'action':_0x3ee9ef['RqSGn']})}),_0x1afac3=await _0x508ee7[_0x4d00(0x21)]();console[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xe2)],JSON[_0x4d00(0x20)](_0x1afac3,null,0x2));const _0x1e54de=_0x1afac3['token']||_0x1afac3[_0x4d00(0xe3)];if(_0x508ee7['ok']&&_0x1afac3['success']&&_0x1e54de){if(_0x3ee9ef[_0x4d00(0xe4)](_0x3ee9ef['whXkZ'],_0x3ee9ef['LAMNB'])){var _0x55f28b;console[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xe5)]);const _0x53fb33=_0x3ee9ef[_0x4d00(0xe6)](_0x1afac3[_0x4d00(0xe7)],!![]),_0x2fe68d=!_0x53fb33,_0xdb508b=(_0x3ee9ef['IORQk'](_0x55f28b=_0x1afac3[_0x4d00(0xe8)],null)||_0x3ee9ef['SzZTK'](_0x55f28b,void 0x0)?void 0x0:_0x55f28b['existingUserData'])||_0x1afac3[_0x4d00(0xe9)]||null,_0x191876=_0x1afac3[_0x4d00(0xea)]||(_0x53fb33?_0x3ee9ef[_0x4d00(0xeb)]:_0x3ee9ef[_0x4d00(0xec)]);await storeJWT(_0x1e54de),await AsyncStorage[_0x4d00(0xd)](_0x3ee9ef[_0x4d00(0xed)],_0x303611);const _0x1ec20e=_0x1afac3['userName']||_0x1afac3['username']||_0x303611['split']('@')[0x0];return await AsyncStorage['setItem'](_0x4d00(0x2),_0x1ec20e),await AsyncStorage[_0x4d00(0xd)]('onairos_user',_0x3ee9ef[_0x4d00(0xee)]),{'success':!![],'token':_0x1e54de,'username':_0x1ec20e,'isNewUser':_0x2fe68d,'flowType':_0x191876,'existingUserData':_0xdb508b,'enochInstructions':_0x1afac3[_0x4d00(0xef)]};}else{_0x3e63d6[_0x4d00(0x13)](_0x3ee9ef[_0x4d00(0xf0)],_0x14cf6c);throw _0x4fdb1f;}}else return console[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xf1)],_0x1afac3[_0x4d00(0x13)]||_0x1afac3[_0x4d00(0x2b)]),{'success':![],'message':_0x1afac3['error']||_0x1afac3[_0x4d00(0x2b)]||'Invalid\x20verification\x20code'};}}catch(_0x4db51c){if(_0x3ee9ef['rzFnS'](_0x3ee9ef[_0x4d00(0xf2)],_0x3ee9ef['KbEXY']))return console[_0x4d00(0x13)](_0x4d00(0xab),_0x4db51c),{'success':![],'message':_0x3ee9ef[_0x4d00(0xf3)]};else{const _0x1c5d59=_0x3ee9ef['rzFnS'](_0x508abb['split']('.')[_0x4d00(0x61)],0x3);_0x5e1ef7[_0x4d00(0xe)](_0x3ee9ef[_0x4d00(0xf4)],_0x1c5d59);}}};